5ab003bfabdbeed74e97464c3e1915628ef2bd94
[gnulib.git] / ChangeLog
1 2008-09-28  Bruno Haible  <bruno@clisp.org>
2
3         New module 'sched'.
4         * modules/sched: New file.
5         * lib/sched.in.h: New file.
6         * m4/sched_h.m4: New file.
7         * doc/posix-headers/sched.texi: Mention the new module.
8
9 2008-09-27  Eric Blake  <ebb9@byu.net>
10
11         Fix previous patch, and tweak references to $0.
12         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
13         (func_version, func_gnulib_dir): Don't call this program
14         gnulib-tool.
15         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
16         with using $0 in function.
17         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18         (func_fatal_error): Reuse the name the user invoked us with.
19
20 2008-09-27  Bruno Haible  <bruno@clisp.org>
21
22         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
23         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
24         (gl_ICONV_H): Not here.
25         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26         instead of assigning ICONV_H directly.
27
28         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
30         WCHAR_H directly.
31
32 2008-09-27  Bruno Haible  <bruno@clisp.org>
33
34         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35         * modules/arpa_inet (Depends-on): Add link-warning.
36         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37         * modules/unistd (Makefile.am): Likewise.
38
39 2008-09-26  Bruno Haible  <bruno@clisp.org>
40
41         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42         variables.
43         (func_version): Essentially copied from gnulib-tool.
44         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45         func_readlink): Copied from gnulib-tool.
46
47 2008-09-26  Bruno Haible  <bruno@clisp.org>
48
49         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50         invoking git-version-gen.
51
52 2008-09-26  Bruno Haible  <bruno@clisp.org>
53
54         * posix-modules: Update to directory names changed on 2008-01-19.
55         Remove commas in output before splitting into words. No more need to
56         avoid 'ftruncate' since 2007-02-19.
57
58 2008-09-26  Bruno Haible  <bruno@clisp.org>
59
60         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
61
62 2008-09-26  Bruno Haible  <bruno@clisp.org>
63
64         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
65         * modules/fwriteerror (Depends-on): Add errno.
66
67 2008-09-26  Bruno Haible  <bruno@clisp.org>
68
69         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
70         * tests/test-vc-list-files-cvs.sh: Likewise.
71
72 2008-09-26  Bruno Haible  <bruno@clisp.org>
73
74         * doc/posix-headers/sys_resource.texi: Reorder items.
75
76 2008-09-26  Jim Meyering  <meyering@redhat.com>
77
78         fts: tweak inode comparison function
79         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
80         inode numbers, as documented.
81
82         fts: sort dirent entries on inode number before traversing
83         This avoids a quadratic, seek-related performance penalty when
84         operating on a directory containing many entries (measurable at 10k;
85         3.5 hours at 2 million entries with a cold cache) on certain types
86         of file systems, including ext3 and ext4, but not tmpfs.
87         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
89         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92         (fts_build): Set the stat.st_ino member from D_INO.
93         If it is likely to be useful, sort dirent entries on inode number.
94
95         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
96         and the struct statfs.f_type member.
97         * modules/fts (Depends-on): Add d-ino.
98
99 2008-09-26  Bruno Haible  <bruno@clisp.org>
100
101         * modules/sigpipe-die (Depends-on): Add sigpipe.
102
103         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
104         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
105         and GNULIB_STDIO_H_SIGPIPE are set.
106         * lib/stdio-write.c: New file.
107         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
108         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
109         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
110         REPLACE_STDIO_WRITE_FUNCS.
111         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
112         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
113         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
114         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
115         * modules/stdio (Files): Add lib/stdio-write.c.
116         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
117         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
118         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
119         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
120         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
121         REPLACE_FPRINTF_POSIX.
122         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
123         REPLACE_PRINTF_POSIX.
124         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
125         REPLACE_VFPRINTF_POSIX.
126         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
127         REPLACE_VPRINTF_POSIX.
128         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
129         SIGPIPE issue.
130         * doc/posix-functions/fputc.texi: Likewise.
131         * doc/posix-functions/fputs.texi: Likewise.
132         * doc/posix-functions/fwrite.texi: Likewise.
133         * doc/posix-functions/printf.texi: Likewise.
134         * doc/posix-functions/putc.texi: Likewise.
135         * doc/posix-functions/putchar.texi: Likewise.
136         * doc/posix-functions/puts.texi: Likewise.
137         * doc/posix-functions/vfprintf.texi: Likewise.
138         * doc/posix-functions/vprintf.texi: Likewise.
139
140         * modules/safe-write (Depends-on): Add write.
141
142         * modules/sigpipe-tests: New file.
143         * tests/test-sigpipe.c: New file.
144         * tests/test-sigpipe.sh: New file.
145
146         * modules/write: New file.
147         * lib/unistd.in.h: Include <sys/types.h>.
148         (write): New declaration.
149         * lib/write.c: New file.
150         * m4/write.m4: New file.
151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
152         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
153         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
154         GNULIB_WRITE, REPLACE_WRITE.
155         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
156         and the SIGPIPE issue.
157
158         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
159         (raise): New declaration.
160         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
161         (ext_signal): New function.
162         (rpl_raise): New function.
163         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
164         GNULIB_SIGNAL_H_SIGPIPE.
165         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
166         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
167
168         * modules/sigpipe: New file.
169         * m4/sigpipe.m4: New file.
170
171 2008-09-25  Derek Price  <derek@ximbiot.com>
172             Bruno Haible  <bruno@clisp.org>
173
174         * gnulib-tool (func_import): Report all license incompatibilities, not
175         just the first one.
176
177 2008-09-25  Bruno Haible  <bruno@clisp.org>
178
179         * gnulib-tool (func_import): When computing the edits, consider not
180         only the Makefile.ams that exist but also those that will be generated.
181
182 2008-09-25  Simon Josefsson  <simon@josefsson.org>
183
184         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
185         fixes gnulib-tool --test warning about duplicate dependency.
186
187 2008-09-25  Bruno Haible  <bruno@clisp.org>
188
189         * gnulib-tool: Don't ask the user to perform edits in the generated
190         Makefile.ams.
191         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
192         apply to the Makefile.am being generated.
193         (func_emit_tests_Makefile_am): Execute edits that apply to the
194         Makefile.am being generated.
195         (func_import): Setup list of Makefile.am edits before emitting the
196         Makefile.ams, not at the end.
197         (func_create_testdir): Update.
198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
199
200 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
201
202         * gnulib-tool (func_import): Store the --tests-base option in the
203         comment in gnulib-cache.m4.
204
205 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
206
207         * NEWS: Document increased portability that sys_select now provides.
208
209         * lib/sys_select.in.h: Install select wrapper.
210         * lib/sys_socket.in.h: Use more descriptive name when there is no
211         select wrapper.
212         * lib/winsock-select.c: New.
213         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
214         Require gl_HEADER_SYS_SOCKET.
215         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
216         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
217         * tests/test-sys_select.c: Add functional tests.
218
219 2008-09-24  Eric Blake  <ebb9@byu.net>
220
221         open, fopen: close fd leak in last patch
222         * lib/open.c (rpl_open): Close fd before returning error.
223         * lib/fopen.c (rpl_fopen): Close fd before returning error.
224         * doc/posix-functions/open.texi (open): Document that Irix also
225         has the bug.
226         * doc/posix-functions/fopen.texi (fopen): Likewise.
227         Reported by Paolo Bonzini.
228
229 2008-09-24  Bruno Haible  <bruno@clisp.org>
230
231         Ensure that a filename ending in a slash cannot be used to access a
232         non-directory.
233         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
234         to check whether it's really a directory.
235         * lib/fopen.c: Include fcntl.h, unistd.h.
236         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
237         and fdopen().
238         * modules/fopen (Depends-on): Add unistd.
239         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
240         * tests/test-fopen.c (main): Likewise.
241         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
242         * doc/posix-functions/fopen.texi: Likewise.
243         Reported by Eric Blake.
244
245 2008-09-23  Eric Blake  <ebb9@byu.net>
246
247         c-stack: avoid compiler optimizations when provoking overflow
248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
249         recursion harder to optimize, to ensure a stack overflow occurs.
250         * tests/test-c-stack.c (recurse): Likewise.
251         Borrowed from libsigsegv.
252
253         c-stack: work around Irix sigaltstack bug
254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
255         whether sigaltstack uses wrong end of stack_t (copied in part from
256         libsigsegv).
257         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
258         Irix bug, without requiring an over-allocation.
259         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
260         bug.
261
262         fopen: document mingw bug on directories
263         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
264         not allowing a stream visiting a directory, even though reading
265         from such a stream is not portable.
266
267 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
268
269         * lib/poll.c: Rewrite.
270         * modules/poll: Depend on alloca.
271
272 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
273
274         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
275         instead define prototypes for a full set of wrappers.  Ensure
276         that Cygwin does not use the compatibility code, which is only
277         for MinGW.
278         * lib/winsock.c: New.
279         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
280         * modules/sys_socket: Add lib/winsock.c.
281
282         * modules/poll-tests: Add errno and perror.
283         * tests/test-poll.c: Use ioctl, not ioctlsocket.
284
285 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
286
287         * tests/test-poll.c: Downgrade minimum needed Winsock version.
288
289 2008-09-23  Bruno Haible  <bruno@clisp.org>
290
291         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
292         * doc/glibc-functions/*: Likewise.
293
294 2008-09-23  Simon Josefsson  <simon@josefsson.org>
295
296         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
297         success.
298
299 2008-09-22  Eric Blake  <ebb9@byu.net>
300             Bruno Haible  <bruno@clisp.org>
301
302         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
303         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
304         supply %A but mishandle pseudo-NaN.
305         Reported by Simon Josefsson.
306
307 2008-09-21  Bruno Haible  <bruno@clisp.org>
308
309         * tests/test-lock.c (main): Tweak skip message.
310         * tests/test-tls.c (main): Likewise.
311
312 2008-09-21  Bruno Haible  <bruno@clisp.org>
313
314         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
315         whether 'struct sigaction' has sa_sigaction here...
316         (gl_PREREQ_SIG_HANDLER_H): ... not here.
317         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
318
319 2008-09-21  Bruno Haible  <bruno@clisp.org>
320
321         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
322         section.
323         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
324         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
325         the new section.
326         (Support for obsolete systems lacking POSIX:2001): New section.
327         (String handling <string.h>): Move strdup to the new section.
328         Suggested by Simon Josefsson and Paolo Bonzini.
329
330 2008-09-21  Bruno Haible  <bruno@clisp.org>
331
332         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
333         exponents in %e and %g results on 'long double'. Needed for mingw's
334         improved *printf functions.
335         * tests/test-vasprintf-posix.c (test_function): Likewise.
336         * tests/test-snprintf-posix.h (test_function): Likewise.
337         * tests/test-sprintf-posix.h (test_function): Likewise.
338         Reported by Eric Blake.
339
340 2008-09-21  Bruno Haible  <bruno@clisp.org>
341
342         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
343         * tests/test-sprintf-posix.h (test_function): Likewise.
344
345 2008-09-21  Bruno Haible  <bruno@clisp.org>
346
347         * modules/getpass (Depends-on): Add strdup-posix.
348
349         New module 'strdup-posix'.
350         * modules/strdup-posix: New file.
351         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
352         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
354         REPLACE_STRDUP.
355         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
356         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
358         strdup-posix.
359
360         * modules/strdup (Depends-on): Remove malloc-posix.
361
362 2008-09-20  Bruno Haible  <bruno@clisp.org>
363
364         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
365         Wildenhues.
366
367 2008-09-20  Bruno Haible  <bruno@clisp.org>
368
369         Ensure that wint_t gets defined on IRIX 5.3.
370         * lib/wchar.in.h (wint_t): Define if not defined by the system.
371         * lib/wctype.in.h (wint_t): Likewise.
372         (__wctype_wint_t): Remove type.
373         (isw*): Use wint_t instead of __wctype_wint_t.
374         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
375         * modules/wchar (Files): Add m4/wint_t.m4.
376         (Makefile.am): Substitute HAVE_WINT_T.
377         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
378         * tests/test-wctype.c: Check that wint_t is defined.
379         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
380         * doc/posix-headers/wctype.texi: Likewise.
381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
382
383 2008-09-18  Bruno Haible  <bruno@clisp.org>
384
385         * gnulib-tool (func_exit): Update comment.
386
387 2008-09-18  Simon Josefsson  <simon@josefsson.org>
388
389         * modules/getaddrinfo (Depends-on): Remove strdup, this module
390         assumes strdup exists and does not depend on strdup to return
391         ENOMEM on out of memory conditions.
392
393 2008-09-18  Bruno Haible  <bruno@clisp.org>
394
395         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
396         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
397         digits for the exponent.
398
399 2008-09-18  Jim Meyering  <meyering@redhat.com>
400             Bruno Haible  <bruno@clisp.org>
401
402         * lib/vasnprintf.c (decimal_point_char): Define also if
403         NEED_PRINTF_INFINITE_LONG_DOUBLE.
404
405 2008-09-16  Bruno Haible  <bruno@clisp.org>
406         and Eric Blake  <ebb9@byu.net>
407
408         vasnprintf: support Irix 5.3
409         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
410         that mishandle long double infinity.
411         Reported by Tom G. Christensen.
412
413 2008-09-16  Bruno Haible  <bruno@clisp.org>
414
415         * doc/glibc-functions/scandir.texi: Mention the function is missing on
416         Solaris 9.
417         * doc/glibc-functions/alphasort.texi: Likewise.
418         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
419
420 2008-09-16  Jim Meyering  <meyering@redhat.com>
421
422         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
423         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
424         a umask modification leak out of a subshell.  Otherwise, the
425         opensolaris /bin/sh would be accepted and thus cause unwarranted
426         failures in the coreutils test suite.
427
428 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
429
430         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
431         to succeed.
432
433 2008-09-16  Jim Meyering  <meyering@redhat.com>
434
435         avoid spurious test failure when library is built without ACL support
436         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
437         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
438         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
439         * tests/test-copy-acl.sh: Likewise.
440
441 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
442
443         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
444         based on character occurrence counts.
445
446 2008-09-15  Eric Blake  <ebb9@byu.net>
447
448         tests: avoid some compiler warnings
449         * tests/test-memchr.c (main): Pass NULL indirectly.
450         * tests/test-closein.c (main): Avoid unused variable.
451
452 2008-09-15  Bruno Haible  <bruno@clisp.org>
453
454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
455         are missing on OpenBSD 4.0 individually.
456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
457
458 2008-09-15  Bruno Haible  <bruno@clisp.org>
459
460         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
461         * doc/posix-functions/strerror.texi: Mention also Cygwin.
462         * doc/posix-functions/perror.texi: Likewise.
463         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
464         is missing.
465         Reported by Eric Blake.
466
467         * lib/errno.in.h: Use replacement values >= 2000.
468         Reported by Eric Blake.
469
470 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
471
472         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
473         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
474         limit.
475         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
476         compareseq was aborted.
477
478 2008-09-14  Bruno Haible  <bruno@clisp.org>
479
480         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
481         yvec_edit_count.
482         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
483         (fstrcmp_bounded): Simplify result computation accordingly.
484
485 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
486
487         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
488         (fstrcmp): Define in terms of fstrcmp_bounded.
489         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
490         lower_bound argument.
491         Return quickly if the result is certainly < lower_bound.
492         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
493
494 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
495
496         * lib/diffseq.h (EARLY_ABORT): New macro.
497         (compareseq): Change return type to bool. Return true when EARLY_ABORT
498         evaluates to true.
499
500 2008-09-14  Bruno Haible  <bruno@clisp.org>
501
502         * modules/perror-tests: New file.
503         * tests/test-perror.sh: New file.
504         * tests/test-perror.c: New file.
505
506         New module 'perror'.
507         * lib/stdio.in.h (perror): New declaration.
508         * lib/perror.c: New file.
509         * m4/perror.m4: New file.
510         * modules/perror: New file.
511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
512         * doc/posix-functions/perror.texi: Mention the perror module.
513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
514         REPLACE_PERROR.
515         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
516         REPLACE_PERROR.
517
518 2008-09-14  Bruno Haible  <bruno@clisp.org>
519
520         * modules/stdio (Makefile.am): Reorder to match the order in
521         lib/stdio.in.h.
522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
523
524 2008-09-13  Bruno Haible  <bruno@clisp.org>
525
526         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
527
528 2008-09-13  Bruno Haible  <bruno@clisp.org>
529
530         Extend strerror to cover the added errno values.
531         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
532         (rpl_strerror): Provide error messages for the added errno values and
533         for the WSA* values.
534         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
535         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
536         strerror.
537         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
538         * modules/strerror (Depends-on): Add errno.
539         * doc/posix-functions/strerror.texi: Document the change.
540         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
541         and EOVERFLOW.
542
543 2008-09-13  Bruno Haible  <bruno@clisp.org>
544
545         * modules/EOVERFLOW: Remove file.
546         * m4/eoverflow.m4: Remove file.
547         * modules/EOVERFLOW-tests: Remove file.
548         * tests/test-EOVERFLOW.c: Remove file.
549         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
550         * modules/ftell (Depends-on): Likewise.
551         * modules/getdelim (Depends-on): Likewise.
552         * modules/getugroups (Depends-on): Likewise.
553         * modules/poll (Depends-on): Likewise.
554         * modules/snprintf (Depends-on): Likewise.
555         * modules/sprintf-posix (Depends-on): Likewise.
556         * modules/vasnprintf (Depends-on): Likewise.
557         * modules/vasprintf (Depends-on): Likewise.
558         * modules/vfprintf-posix (Depends-on): Likewise.
559         * modules/vsnprintf (Depends-on): Likewise.
560         * modules/vsprintf-posix (Depends-on): Likewise.
561         * modules/xvasprintf (Depends-on): Likewise.
562         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
563         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
564         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
565         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
566         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
567         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
568         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
569         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
570         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
571         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
572         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
573         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
574         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
575         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
576         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
577         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
578         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
579         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
580         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
581         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
582         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
583         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
584         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
585         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
586         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
587         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
588         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
589         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
590         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
591         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
592         * MODULES.html.sh: Remove EOVERFLOW.
593         * NEWS: Mention the change.
594
595 2008-09-13  Bruno Haible  <bruno@clisp.org>
596
597         * modules/errno-tests: New file.
598         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
599
600         * lib/errno.in.h: New file.
601         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
602         * modules/errno: New file.
603         * doc/posix-headers/errno.texi: Update documentation.
604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
605
606 2008-09-13  Bruno Haible  <bruno@clisp.org>
607
608         * tests/test-poll.c: Use #if for native Windows, rather than testing
609         __MSVCRT__.
610
611 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
612             Bruno Haible  <bruno@clisp.org>
613
614         * lib/glob.c: Don't include <pwd.h> on native Windows.
615         (WINDOWS32): New macro.
616         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
617
618 2008-09-13  Bruno Haible  <bruno@clisp.org>
619
620         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
621         (ETIMEDOUT): Remove macro.
622         (glthread_cond_timedwait_multithreaded): New declaration.
623         (glthread_cond_timedwait): Use it.
624         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
625         (glthread_cond_timedwait_multithreaded): New function.
626
627 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
628
629         * modules/poll-tests: Do not check for io.h.
630         * tests/test-poll.c: Check for __MSVCRT__ instead.
631
632 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
633
634         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
635         * modules/poll-tests: Add inet_pton, stdbool, sockets.
636         * tests/test-poll.c: Use them.  Use _pipe on Windows.
637
638 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
639
640         * modules/poll-tests: New.
641         * tests/test-poll.c: New.
642
643 2008-09-12  Eric Blake  <ebb9@byu.net>
644
645         frexp: test for NetBSD failure on -0.0
646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
647         not all, bugs from NetBSD 3.0 have been fixed.
648         * doc/posix-functions/frexp.texi (frexp): Document bug.
649         Reported by Thomas Klausner.
650
651         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
652         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
653         literal -0.0.
654         Reported by Jonathan C. Patschke <jp@centtech.com>.
655
656 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
657
658         * lib/glthread/cond.h: Use dummy implementation also if
659         USE_WIN32_THREADS.
660
661 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
662
663         * modules/fnmatch-posix (License): Change to LGPLv2+.
664         * modules/fnmatch-gnu (License): Likewise.
665
666 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
667
668         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
669
670 2008-09-11  Jim Meyering  <meyering@redhat.com>
671
672         * users.txt: Add gtk-vnc.
673
674 2008-09-08  Simon Josefsson  <simon@josefsson.org>
675
676         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
677         rotate amounts.
678
679         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
680         required for 16-bit and 8-bit rotates.
681         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
682         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
683         UINT8_MAX instead of hard-coded constants.
684         Suggested by Paul Eggert.
685
686 2008-09-07  Bruno Haible  <bruno@clisp.org>
687
688         * tests/test-striconveh.c (main): Check behaviour when converting from
689         UTF-7.
690
691         Make striconveh work better with stateful encodings.
692         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
693         that iconv does not increment the inptr when returning -1/EINVAL.
694
695 2008-09-07  Bruno Haible  <bruno@clisp.org>
696
697         * build-aux/config.rpath: Update according to libtool-2.2.6.
698         * build-aux/config.libpath: Likewise.
699
700 2008-09-06  Bruno Haible  <bruno@clisp.org>
701
702         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
703         * lib/freadptr.c (freadptr): Likewise.
704         * lib/freadseek.c (freadptrinc): Likewise.
705         Reported by Simon Josefsson.
706
707 2008-09-06  Bruno Haible  <bruno@clisp.org>
708
709         * modules/freadptr (License): Change to LGPLv2+.
710         * modules/freadseek (License): Likewise.
711         Suggested by Eric Blake.
712
713         * modules/memchr2 (License): Change to LGPLv2+.
714         Approved by Eric Blake.
715
716 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
717             Bruno Haible  <bruno@clisp.org>
718
719         Make gnulib-tool work with native 'sed' on AIX.
720         * gnulib-tool (sed_noop): New variable.
721         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
722         func_add_or_update, func_create_testdir): Use it to initialize sed
723         script variables.
724         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
725
726 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
727             Bruno Haible  <bruno@clisp.org>
728
729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
730         also works after #include directives.
731
732 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
733
734         getdate.y: reject an out-of-range timezone value
735         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
736         the range [-24...+24].  When specified with only one or two digits,
737         * tests/test-getdate.c: Tests for the fix.
738         * doc/getdate.texi: Document this change.
739
740 2008-09-03  Bruno Haible  <bruno@clisp.org>
741
742         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
743
744 2008-09-02  Simon Josefsson  <simon@josefsson.org>
745
746         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
747         <bruce.korb@gmail.com> with ideas from Ben Pfaff
748         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
749         Blake <ebb9@byu.net>.
750
751         * tests/test-bitrotate.c: Add more test vectors.
752
753 2008-09-02  Eric Blake  <ebb9@byu.net>
754
755         vasnprintf-posix: handle large precision via %.*d
756         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
757         when handling it ourselves.
758         * tests/test-vasnprintf-posix.c (test_function): Add test.
759         * tests/test-snprintf-posix.h (test_function): Likewise.
760         * tests/test-sprintf-posix.h (test_function): Likewise.
761         * tests/test-vasprintf-posix.c (test_function): Likewise.
762         Reported by Alain Guibert.
763
764 2008-09-01  Eric Blake  <ebb9@byu.net>
765
766         c-stack: make configure-time check more robust
767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
768         successful sigaction call.
769         Reported by Tom G. Christensen.
770
771 2008-09-01  Bruno Haible  <bruno@clisp.org>
772
773         New module 'findprog-lgpl'.
774         * modules/findprog-lgpl: New file.
775         * lib/findprog-lgpl.c: New file.
776         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
777         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
778         to decide whether to use strdup or xstrdup, concatenated_filename or
779         xconcatenated_filename.
780
781 2008-09-01  Bruno Haible  <bruno@clisp.org>
782
783         Split module 'concat-filename' into 'concat-filename' (LGPL) and
784         'xconcat-filename' (GPL).
785         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
786         (License): Change to LGPLv2+.
787         * modules/xconcat-filename: New file.
788         * lib/concat-filename.h (concatenated_filename): Change specification.
789         (xconcatenated_filename): New declaration.
790         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
791         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
792         memory situations.
793         * lib/xconcat-filename.c: New file.
794         * NEWS: Mention the change.
795         * lib/findprog.c: Include concat-filename.h, not filename.h.
796         (find_in_path): Use xconcatenated_filename instead of
797         concatenated_filename.
798         * lib/javacomp.c: Include concat-filename.h, not filename.h.
799         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
800         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
801         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
802         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
803         instead of concatenated_filename.
804         * lib/javaexec.c: Include concat-filename.h, not filename.h.
805         (execute_java_class): Use xconcatenated_filename instead of
806         concatenated_filename.
807         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
808         * modules/javacomp (Depends-on): Likewise.
809         * modules/javaexec (Depends-on): Likewise.
810
811 2008-09-01  Bruno Haible  <bruno@clisp.org>
812
813         Split module 'filename' into 'filename' and 'concat-filename'.
814         * modules/filename: Keep only lib/filename.h.
815         (License): Change to LGPLv2+.
816         * modules/concat-filename: New file, extracted from modules/filename.
817         * lib/filename.h (concatenated_filename): Remove declaration.
818         * lib/concat-filename.h: New file, extracted from lib/filename.h.
819         * lib/concat-filename.c: Include concat-filename.h.
820         * NEWS: Mention the change.
821
822 2008-09-01  Simon Josefsson  <simon@josefsson.org>
823
824         * lib/bitrotate.h (rotl8, rotr8): Add.
825
826         * modules/bitrotate (configure.ac): Need
827         AC_REQUIRE([AC_C_INLINE]).
828         (Description): Mention stdint.h.  Reported by Bruno Haible
829         <bruno@clisp.org>.
830
831         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
832         Paolo Bonzini <bonzini@gnu.org>.
833
834 2008-08-31  Bruno Haible  <bruno@clisp.org>
835
836         Assume Solaris specific bi-arch conventions on Solaris systems.
837         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
838         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
840         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
841         like acl_libdirstem.
842         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
843         acl_libdirstem.
844         * NEWS: Mention the change.
845         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
846
847 2008-08-31  Jim Meyering  <meyering@redhat.com>
848
849         * lib/strftime.h: Add comments describing the two added arguments.
850
851         remove duplicate #include directives
852         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
853         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
854
855 2008-08-31  Bruno Haible  <bruno@clisp.org>
856
857         New module 'sigpipe-die'.
858         * modules/sigpipe-die: New file.
859         * lib/sigpipe-die.h: New file.
860         * lib/sigpipe-die.c: New file.
861         * MODULES.html.sh (Signal handling): Add sigpipe-die.
862
863 2008-08-31  Bruno Haible  <bruno@clisp.org>
864
865         Don't override previously installed signal handlers.
866         * lib/fatal-signal.c (saved_sigactions): New variable.
867         (uninstall_handlers): Reset the signal to the saved handler, not
868         to SIG_DFL (except when ignored).
869         (install_handlers): Save the previous handlers.
870
871 2008-08-30  Bruno Haible  <bruno@clisp.org>
872
873         * gnulib-tool (func_reset_sigpipe): New function.
874         (func_get_automake_snippet, func_modules_transitive_closure,
875         func_import): Invoke it before a join command that reads from stdin,
876         to avoid "echo: write error: Broken pipe" error messages on stderr.
877         Reported by Sam Steingold <sds@gnu.org>.
878
879 2008-08-30  Bruno Haible  <bruno@clisp.org>
880
881         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
882         Code copied from m4/open.m4.
883         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
884         access and the filename ends in a slash. Code copied from lib/open.c.
885         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
886         * tests/test-fopen.c (main): Check against bug with trailing slash.
887
888 2008-08-29  Bruno Haible  <bruno@clisp.org>
889
890         Avoid some "gcc -pedantic" warnings.
891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
892         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
893         * lib/dirent.in.h: Likewise.
894         * lib/fcntl.in.h: Likewise.
895         * lib/float.in.h: Likewise.
896         * lib/iconv.in.h: Likewise.
897         * lib/inttypes.in.h: Likewise.
898         * lib/locale.in.h: Likewise.
899         * lib/math.in.h: Likewise.
900         * lib/netinet_in.in.h: Likewise.
901         * lib/search.in.h: Likewise.
902         * lib/signal.in.h: Likewise.
903         * lib/stdarg.in.h: Likewise.
904         * lib/stdint.in.h: Likewise.
905         * lib/stdio.in.h: Likewise.
906         * lib/stdlib.in.h: Likewise.
907         * lib/string.in.h: Likewise.
908         * lib/strings.in.h: Likewise.
909         * lib/sys_select.in.h: Likewise.
910         * lib/sys_socket.in.h: Likewise.
911         * lib/sys_stat.in.h: Likewise.
912         * lib/sys_time.in.h: Likewise.
913         * lib/sysexits.in.h: Likewise.
914         * lib/time.in.h: Likewise.
915         * lib/unistd.in.h: Likewise.
916         * lib/wchar.in.h: Likewise.
917         * lib/wctype.in.h: Likewise.
918         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
919         * modules/fchdir (Makefile.am): Likewise.
920         * modules/fcntl (Makefile.am): Likewise.
921         * modules/float (Makefile.am): Likewise.
922         * modules/iconv_open (Makefile.am): Likewise.
923         * modules/inttypes (Makefile.am): Likewise.
924         * modules/locale (Makefile.am): Likewise.
925         * modules/math (Makefile.am): Likewise.
926         * modules/netinet_in (Makefile.am): Likewise.
927         * modules/search (Makefile.am): Likewise.
928         * modules/signal (Makefile.am): Likewise.
929         * modules/stdarg (Makefile.am): Likewise.
930         * modules/stdint (Makefile.am): Likewise.
931         * modules/stdio (Makefile.am): Likewise.
932         * modules/stdlib (Makefile.am): Likewise.
933         * modules/string (Makefile.am): Likewise.
934         * modules/strings (Makefile.am): Likewise.
935         * modules/sys_select (Makefile.am): Likewise.
936         * modules/sys_socket (Makefile.am): Likewise.
937         * modules/sys_stat (Makefile.am): Likewise.
938         * modules/sys_time (Makefile.am): Likewise.
939         * modules/sysexits (Makefile.am): Likewise.
940         * modules/time (Makefile.am): Likewise.
941         * modules/unistd (Makefile.am): Likewise.
942         * modules/wchar (Makefile.am): Likewise.
943         * modules/wctype (Makefile.am): Likewise.
944         Reported by Reuben Thomas <rrt@sc3d.org>.
945
946 2008-08-29  Bruno Haible  <bruno@clisp.org>
947
948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
949         any more.
950
951 2008-08-29  Simon Josefsson  <simon@josefsson.org>
952
953         * MODULES.html.sh (Misc): Add bitrotate.
954
955         * modules/bitrotate: New file.
956
957         * lib/bitrotate.h: New file.
958
959         * modules/bitrotate-tests: New file.
960
961         * tests/test-bitrotate.c: New file.
962
963         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
964         on the bitrotate module.
965
966         * lib/arctwo.c: Use new bitrotate module.
967
968 2008-08-29  Jim Meyering  <meyering@redhat.com>
969
970         bootstrap: merge changes from coreutils
971         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
972         of copied files.  Remove a kludge, now that this is fixed.
973         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
974         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
975         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
976
977 2008-08-29  Bruno Haible  <bruno@clisp.org>
978
979         * MODULES.html.sh: Remove --cvs-urls option.
980
981 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
982
983         maint.mk: adjust to file name change
984         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
985
986 2008-08-28  Jim Meyering  <meyering@redhat.com>
987
988         * modules/getndelim2 (License): Relicense to LGPLv2+.
989         Approved by Richard Stallman for the version of 1995, and by
990         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
991
992 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
993
994         * lib/getdelim.c (flockfile, funlockfile): Make all of them
995         dummy if one is not available.  Do not touch them if
996         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
997         (getc_maybe_unlocked): New.
998         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
999
1000 2008-08-26  Eric Blake  <ebb9@byu.net>
1001
1002         doc/INSTALL: resync from autoconf
1003         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1004         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1005         moving...
1006         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1007         * INSTALL: Regenerate.
1008         * INSTALL.ISO: New file.
1009         * INSTALL.UTF-8: Likewise.
1010
1011 2008-08-26  Jim Meyering  <meyering@redhat.com>
1012
1013         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1014         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1015         these definitions conditional, so that they may be overridden, too.
1016
1017 2008-08-26  Bruno Haible  <bruno@clisp.org>
1018
1019         Generate INSTALL file variants with prettier quotes.
1020         * doc/Makefile (INSTALL_PRELUDE): New macro.
1021         (INSTALL): Use it.
1022         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1023
1024 2008-08-26  Bruno Haible  <bruno@clisp.org>
1025
1026         Run makeinfo in an English locale.
1027         * doc/Makefile (MAKEINFO): New variable.
1028
1029 2008-08-26  Bruno Haible  <bruno@clisp.org>
1030
1031         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1032         Suggested by Eric Blake.
1033
1034 2008-08-25  Bruno Haible  <bruno@clisp.org>
1035
1036         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
1037
1038 2008-08-25  Eric Blake  <ebb9@byu.net>
1039
1040         c-stack: test that stack overflow can be caught
1041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
1042         that platform allows handling stack overflow; at least OS/2 EMX
1043         has sigaltstack, but crashes before transferring control to
1044         handler on stack overflow.
1045         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
1046         check for HAVE_STACK_OVERFLOW_HANDLING.
1047         Reported by Elbert Pol.
1048
1049 2008-08-25  Bruno Haible  <bruno@clisp.org>
1050
1051         * doc/posix-functions/strftime.texi: Fix description of strftime
1052         module.
1053
1054 2008-08-24  Bruno Haible  <bruno@clisp.org>
1055
1056         * tests/uniwidth/test-uc_width2.c: New file.
1057         * tests/uniwidth/test-uc_width2.sh: New file.
1058         * modules/uniwidth/width-tests (Files): Add the new files.
1059         (TESTS): Add uniwidth/test-uc_width2.sh.
1060         (TESTS_ENVIRONMENT): New variable.
1061         (check_PROGRAMS): Add test-uc_width2.
1062         (test_uc_width2_SOURCES): New variable.
1063
1064         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1065         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1066         not 0x00AB.
1067         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1068
1069 2008-08-22  Eric Blake  <ebb9@byu.net>
1070
1071         test-lock, test-tls: mention why a test is skipped
1072         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1073         skipped.
1074         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1075
1076         count-one-bits: relax license
1077         * modules/count-one-bits (License): Relicense to LGPLv2+.
1078         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1079
1080 2008-08-22  Andreas Schwab  <schwab@suse.de>
1081
1082         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1083         Remove spurious space in assignment.
1084
1085 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1086
1087         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1088         Paul Eggert <eggert@CS.UCLA.EDU>.
1089
1090 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1091
1092         * modules/gettext: Add m4/threadlib.m4.
1093
1094 2008-08-19  Eric Blake  <ebb9@byu.net>
1095
1096         test-c-stack: fix compilation failure on FreeBSD 5.0
1097         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1098         headers before <sys/resource.h>.
1099         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1100         the bug.
1101         Reported by Nelson H. F. Beebe.
1102
1103         strverscmp: migrate from "strverscmp.h" to <string.h>
1104         * modules/string (Makefile.am): Add new hooks.
1105         * modules/strverscmp (Files): Remove strverscmp.h.
1106         (Depends-on): Add string.
1107         (configure.ac): Add indicator.
1108         (Include): Mention new header.
1109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1110         defaults.
1111         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1112         results.
1113         * lib/strverscmp.h: Delete.
1114         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1115         * tests/test-strverscmp.c (includes): Adjust client.
1116         * lib/check-version.c (includes): Likewise.
1117         * NEWS: Document the change.
1118
1119         strverscmp: add unit test
1120         * modules/strverscmp-tests: New file.
1121         * tests/test-strverscmp.c: Likewise.
1122
1123 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1124
1125         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1126         regarding Windows crypto stuff, from Mono.
1127
1128 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1129
1130         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1131         if present, for intel RND.  Return error on failures.
1132
1133 2008-08-18  Ben Pfaff  <blp@gnu.org>
1134
1135         gitlog-to-changelog: give better diagnostic for failed pipe-open
1136         * build-aux/gitlog-to-changelog: Improve error message: suggest
1137         that the version of Git may be too old.
1138
1139 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1140
1141         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1142         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1143
1144 2008-08-18  Bruno Haible  <bruno@clisp.org>
1145
1146         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1147         pthread_in_use().
1148
1149 2008-08-18  Bruno Haible  <bruno@clisp.org>
1150
1151         * lib/glthread/threadlib.c: Include <pthread.h>.
1152
1153 2008-08-18  Bruno Haible  <bruno@clisp.org>
1154
1155         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1156         glthread_recursive_lock_* macros.
1157         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1158         Fix syntax error.
1159
1160 2008-08-18  Bruno Haible  <bruno@clisp.org>
1161
1162         * lib/glthread/thread.c: Avoid forcing a context switch right after
1163         thread creation.
1164
1165 2008-08-17  Bruno Haible  <bruno@clisp.org>
1166
1167         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1168         * lib/glthread/thread.h: Provide Win32 specific implementation.
1169         * modules/thread (Files): Add lib/glthread/thread.c.
1170         (Depends-on): Add lock.
1171         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1172
1173 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1174
1175         New module 'yield'.
1176         * modules/yield: New file.
1177         * lib/glthread/yield.h: New file.
1178         * m4/yield.m4: New file.
1179         * MODULES.html.sh (Multithreading): Add yield.
1180
1181 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1182
1183         New module 'thread'.
1184         * modules/thread: New file.
1185         * lib/glthread/thread.h: New file.
1186         * m4/thread.m4: New file.
1187         * MODULES.html.sh (Multithreading): Add thread.
1188
1189 2008-08-17  Bruno Haible  <bruno@clisp.org>
1190
1191         * lib/glthread/lock.h: Include <stdlib.h> always.
1192         * lib/glthread/tls.h: Likewise.
1193         * lib/glthread/cond.h: Likewise.
1194
1195 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1196
1197         New module 'cond'.
1198         * modules/cond: New file.
1199         * lib/glthread/cond.h: New file.
1200         * lib/glthread/cond.c: New file.
1201         * m4/cond.m4: New file.
1202         * MODULES.html.sh (Multithreading): Add cond.
1203
1204 2008-08-16  Eric Blake  <ebb9@byu.net>
1205
1206         c-stack: fix regression on Irix 5.3 from 2008-06-21
1207         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1208         sa_sigaction...
1209         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1210         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1211         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1212         * modules/signal (Makefile.am): Use the value.
1213         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1214         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1215         * doc/posix-headers/signal.texi (signal.h): Document this
1216         portability issue.
1217         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1218         Reported by Tom G. Christensen.
1219
1220 2008-08-17  Bruno Haible  <bruno@clisp.org>
1221
1222         New module 'threadlib'.
1223         * modules/threadlib: New file.
1224         * lib/glthread/threadlib.c: New file, extracted from
1225         lib/glthread/lock.c.
1226         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1227         functions.
1228         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1229         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1230         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1231         macros.
1232         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1233         (gl_DISABLE_THREADS): Remove macro.
1234         * modules/lock (Files): Remove build-aux/config.rpath.
1235         (Depends-on): Remove havelib. Add threadlib.
1236         (configure.ac-early): Remove section.
1237         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1238         * modules/tls (Depends-on): Remove lock. Add threadlib.
1239         (Link): New section, copied from threadlib.
1240         * MODULES.html.sh (Multithreading): Add threadlib.
1241
1242 2008-08-14  Bruno Haible  <bruno@clisp.org>
1243
1244         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1245         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1246         glthread_rwlock_unlock, glthread_rwlock_destroy,
1247         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1248         glthread_recursive_lock_destroy): Define as macros always.
1249         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1250         glthread_lock_lock.
1251         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1252         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1253         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1254         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1255         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1256         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1257         (glthread_recursive_lock_lock_func): Renamed from
1258         glthread_recursive_lock_lock.
1259         (glthread_recursive_lock_unlock_func): Renamed from
1260         glthread_recursive_lock_unlock.
1261         (glthread_recursive_lock_destroy_func): Renamed from
1262         glthread_recursive_lock_destroy.
1263
1264 2008-08-14  Bruno Haible  <bruno@clisp.org>
1265
1266         * lib/glthread/lock.h: Renamed from lib/lock.h.
1267         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1268         * lib/glthread/tls.h: Renamed from lib/tls.h.
1269         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1270         * lib/fstrcmp.c: Update includes.
1271         * lib/strsignal.c: Update includes.
1272         * modules/lock (Files, Makefile.am): Update.
1273         (Include): Change to "glthread/lock.h".
1274         * modules/tls (Files, Makefile.am): Update.
1275         (Include): Change to "glthread/tls.h".
1276         * tests/test-lock.c: Update includes.
1277         * tests/test-tls.c: Update includes.
1278         * NEWS: Mention the renamed header files.
1279
1280 2008-08-11  Jim Meyering  <meyering@redhat.com>
1281
1282         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1283
1284 2008-08-11  Eric Blake  <ebb9@byu.net>
1285
1286         test-c-stack: avoid C99-ism
1287         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1288         before statement.
1289         Reported by Alain Guibert.
1290
1291 2008-08-10  Jim Meyering  <meyering@redhat.com>
1292
1293         ensure that return value of uinttostr et al are not ignored
1294         * lib/inttostr.h (__GNUC_PREREQ): Define.
1295         (__attribute_warn_unused_result__): Define.
1296         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1297
1298 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1299
1300         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1301         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1302
1303 2008-08-07  Jim Meyering  <meyering@redhat.com>
1304
1305         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1306
1307         * modules/mkstemp (License): Relicense under LGPLv2+.
1308         * modules/tempname (License): Likewise.
1309
1310 2008-08-06  Bruno Haible  <bruno@clisp.org>
1311
1312         * lib/poll.c (poll): Further micro-optimization.
1313
1314 2008-08-06  Jim Meyering  <meyering@redhat.com>
1315
1316         inet_pton.c: use locale-independent tolower
1317         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1318         (inet_pton6): Use c_tolower rather than tolower.
1319         * modules/inet_pton (Depends-on): Add c-ctype.
1320
1321 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1322
1323         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1324         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1325
1326 2008-08-06  Jim Meyering  <meyering@redhat.com>
1327
1328         * modules/inet_pton (License): Relicense under LGPLv2+.
1329
1330 2008-08-03  Bruno Haible  <bruno@clisp.org>
1331
1332         Additional non-aborting API for lock and tls.
1333         * lib/lock.h: Include <errno.h>.
1334         (glthread_lock_init): New macro/function.
1335         (gl_lock_init): Define as wrapper around glthread_lock_init.
1336         (glthread_lock_lock): New macro/function.
1337         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1338         (glthread_lock_unlock): New macro/function.
1339         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1340         (glthread_lock_destroy): New macro/function.
1341         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1342         (glthread_rwlock_init): New macro/function.
1343         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1344         (glthread_rwlock_rdlock): New macro/function.
1345         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1346         (glthread_rwlock_wrlock): New macro/function.
1347         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1348         (glthread_rwlock_unlock): New macro/function.
1349         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1350         (glthread_rwlock_destroy): New macro/function.
1351         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1352         (glthread_recursive_lock_init): New macro/function.
1353         (gl_recursive_lock_init): Define as wrapper around
1354         glthread_recursive_lock_init.
1355         (glthread_recursive_lock_lock): New macro/function.
1356         (gl_recursive_lock_lock): Define as wrapper around
1357         glthread_recursive_lock_lock.
1358         (glthread_recursive_lock_unlock): New macro/function.
1359         (gl_recursive_lock_unlock): Define as wrapper around
1360         glthread_recursive_lock_unlock.
1361         (glthread_recursive_lock_destroy): New macro/function.
1362         (gl_recursive_lock_destroy): Define as wrapper around
1363         glthread_recursive_lock_destroy.
1364         (glthread_once): New macro/function.
1365         (gl_once): Define as wrapper around glthread_once.
1366         Update function declarations.
1367         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1368         glthread_rwlock_init. Return error code.
1369         (glthread_rwlock_rdlock_multithreaded): Renamed from
1370         glthread_rwlock_rdlock. Return error code.
1371         (glthread_rwlock_wrlock_multithreaded): Renamed from
1372         glthread_rwlock_wrlock. Return error code.
1373         (glthread_rwlock_unlock_multithreaded): Renamed from
1374         glthread_rwlock_unlock. Return error code.
1375         (glthread_rwlock_destroy_multithreaded): Renamed from
1376         glthread_rwlock_destroy. Return error code.
1377         (glthread_recursive_lock_init_multithreaded): Renamed from
1378         glthread_recursive_lock_init. Return error code.
1379         (glthread_recursive_lock_lock_multithreaded): Renamed from
1380         glthread_recursive_lock_lock. Return error code.
1381         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1382         glthread_recursive_lock_unlock. Return error code.
1383         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1384         glthread_recursive_lock_destroy. Return error code.
1385         (glthread_once_call): Make static.
1386         (glthread_once_multithreaded): Renamed from glthread_once.
1387         * lib/tls.h: Include <errno.h>.
1388         (glthread_tls_key_init): New macro/function.
1389         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1390         (glthread_tls_set): New macro/function.
1391         (gl_tls_set): Define as wrapper around glthread_tls_set.
1392         (glthread_tls_key_destroy): New macro/function.
1393         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1394         Update function declarations.
1395         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1396         glthread_tls_get.
1397         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1398
1399 2008-08-04  Eric Blake  <ebb9@byu.net>
1400
1401         gnumakefile: use space, not TAB, outside of targets
1402         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1403
1404 2008-08-02  Jim Meyering  <meyering@redhat.com>
1405
1406         getdate.y: avoid locale-dependent date parsing failure
1407         In Turkish locales, getdate would fail to recognize keywords
1408         containing a lowercase "i".  The solution is not to rely on
1409         locale-sensitive case-conversion.
1410         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1411         (lookup_word): Use c_toupper in place of toupper.
1412         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1413         Reported by Vefa Bicakci <bicave@superonline.com> in
1414         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1415         * modules/getdate (Depends-on): Add c-ctype.
1416
1417 2008-08-02  Bruno Haible  <bruno@clisp.org>
1418
1419         * gnulib-tool (func_import): When updating or creating a .gitignore
1420         file, prepend each added line with a slash, and ignore leading slashes
1421         from the existing lines.
1422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1423
1424 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1425
1426         Portability fix for GNU make 3.79.1.
1427         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1428         versions do not understand.
1429
1430 2008-08-01  Bruno Haible  <bruno@clisp.org>
1431
1432         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1433         * tests/test-isnanf.h (zero): New variable.
1434         (main): Avoid literal -0.0f.
1435         * tests/test-isnand.h (zero): New variable.
1436         (main): Avoid literal -0.0.
1437         * tests/test-isnanl.h (zero): New variable.
1438         (main): Avoid literal -0.0L.
1439         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1440         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1441         -0.0, -0.0L.
1442         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1443         (test_signbitd): Avoid literal -0.0.
1444         (test_signbitl): Avoid literal -0.0L.
1445         * tests/test-ceilf1.c (zero): New variable.
1446         (main): Avoid literal -0.0f.
1447         * tests/test-ceill.c (zero): New variable.
1448         (main): Avoid literal -0.0L.
1449         * tests/test-floorf1.c (zero): New variable.
1450         (main): Avoid literal -0.0f.
1451         * tests/test-floorl.c (zero): New variable.
1452         (main): Avoid literal -0.0L.
1453         * tests/test-roundf1.c (zero): New variable.
1454         (main): Avoid literal -0.0f.
1455         * tests/test-round1.c (zero): New variable.
1456         (main): Avoid literal -0.0.
1457         * tests/test-roundl.c (zero): New variable.
1458         (main): Avoid literal -0.0L.
1459         * tests/test-truncf1.c (zero): New variable.
1460         (main): Avoid literal -0.0f.
1461         * tests/test-trunc1.c (zero): New variable.
1462         (main): Avoid literal -0.0.
1463         * tests/test-truncl.c (zero): New variable.
1464         (main): Avoid literal -0.0L.
1465         * tests/test-frexp.c (zero): New variable.
1466         (main): Avoid literal -0.0.
1467         * tests/test-frexpl.c (zero): New variable.
1468         (main): Avoid literal -0.0L.
1469         * tests/test-ldexpl.c (zero): New variable.
1470         (main): Avoid literal -0.0L.
1471         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1472         (zerod, zerol): New variables.
1473         (test_function): Avoid literals -0.0, -0.0L.
1474         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1475         (zerod, zerol): New variables.
1476         (test_function): Avoid literals -0.0, -0.0L.
1477         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1478         (zerod, zerol): New variables.
1479         (test_function): Avoid literals -0.0, -0.0L.
1480         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1481         (zerod, zerol): New variables.
1482         (test_function): Avoid literals -0.0, -0.0L.
1483         * tests/test-strtod.c (zero): New variable.
1484         (main): Avoid literal -0.0.
1485         Reported by Jonathan C. Patschke <jp@centtech.com>.
1486
1487 2008-07-31  Jim Meyering  <meyering@redhat.com>
1488
1489         sha256.h: correct definition of SHA224_DIGEST_SIZE
1490         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1491         Reported by Paulie Pena IV <paulie4@gmail.com>.
1492         Define as 224 / 8, rather than as a literal.
1493         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1494         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1495         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1496
1497 2008-07-31  Bruno Haible  <bruno@clisp.org>
1498
1499         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1500         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1501         Reported by Jonathan Patschke <jp@centtech.com>.
1502
1503 2008-07-31  Bruno Haible  <bruno@clisp.org>
1504
1505         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1506         Reported by Paolo Bonzini <bonzini@gnu.org>.
1507
1508 2008-07-30  Eric Blake  <ebb9@byu.net>
1509
1510         test-strtod: allow compilation without -lm
1511         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1512         Reported by Dennis Clarke <blastwave@gmail.com>.
1513
1514 2008-07-28  Jim Meyering  <meyering@redhat.com>
1515
1516         bootstrap: work also when there are no .po files in po/
1517         * build-aux/bootstrap (update_po_files): Complete the change
1518         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1519
1520 2008-07-27  Jim Meyering  <meyering@redhat.com>
1521
1522         * users.txt: Add zile.
1523
1524 2008-07-26  Ben Pfaff  <blp@gnu.org>
1525
1526         Add missing dependencies on new m4/exponent[fdl].m4 files.
1527         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1528         * modules/isnand-nolibm: Add m4/exponentd.m4.
1529         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1530         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1531         m4/isnan[fdl].m4, because the macros actually used moved.
1532         Reported by Jim Meyering.
1533
1534 2008-07-14  Ben Pfaff  <blp@gnu.org>
1535
1536         Add isinf module.
1537         * lib/isinf.c: New file.
1538         * lib/math.in.h: Define isinf macro if we have decided to replace
1539         it.
1540         * m4/isinf.m4: New file.
1541         * m4/math_h.m4: Initialize and substitute variables for isinf
1542         module.
1543         * modules/isinf: New file.
1544         * modules/isinf-tests: New file.
1545         * modules/math: Add substitutions for new module.
1546         * tests/test-isinf.c: New file.
1547         * doc/posix-functions/isinf.texi: Mention new module.
1548         * MODULES.html.sh: Mention new module.
1549
1550 2008-07-14  Ben Pfaff  <blp@gnu.org>
1551
1552         Factor out some macros for use by additional modules.
1553         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1554         exponentf.m4.
1555         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1556         exponentd.m4.
1557         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1558         file exponentl.m4.
1559         * m4/exponentf.m4: New file.
1560         * m4/exponentd.m4: New file.
1561         * m4/exponentl.m4: New file.
1562         * modules/isnanf: Use new file m4/exponentf.m4.
1563         * modules/isnand: Use new file m4/exponentd.m4.
1564         * modules/isnanl: Use new file m4/exponentl.m4.
1565
1566 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1567
1568         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1569         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1570         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1571         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1572
1573         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1574         readlink on platforms without PATH_MAX.
1575
1576 2008-07-21  Eric Blake  <ebb9@byu.net>
1577
1578         Warn, not fail, on stale version.
1579         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1580
1581         Don't allow installation with stale devel version number.
1582         * top/GNUmakefile (_is-install-target): New macro.
1583         (_curr-ver): Forbid installation with stale version number.
1584
1585 2008-07-20  Bruno Haible  <bruno@clisp.org>
1586
1587         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1588         TESTS_ENVIRONMENT.
1589         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1590
1591 2008-07-20  Bruno Haible  <bruno@clisp.org>
1592
1593         * lib/c-stack.h (c_stack_action): Add documentation.
1594         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1595
1596 2008-07-20  Bruno Haible  <bruno@clisp.org>
1597
1598         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1599         * modules/readlink (License): Likewise.
1600
1601 2008-07-17  Eric Blake  <ebb9@byu.net>
1602
1603         * modules/c-stack (Link): Fix typo.
1604
1605         Make c-stack use libsigsegv, when available.
1606         * modules/c-stack (Depends-on): Add libsigsegv.
1607         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1608         needed.
1609         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1610         (segv_handler, overflow_handler, c_stack_action)
1611         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1612         implementation when libsigsegv is available, but only when using
1613         the library is necessary.
1614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1615         comment, explaining why XSI check fails on Linux.
1616         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1617         * tests/test-c-stack2.sh: Tweak skip message.
1618         * NEWS: Document new link-time requirements.
1619
1620 2008-07-16  Eric Blake  <ebb9@byu.net>
1621
1622         c-stack: Expose false positives when not using libsigsegv.
1623         * modules/c-stack-tests (Files): Expand test.
1624         * tests/test-c-stack.c (main): Add means to conditionally trigger
1625         non-overflow SIGSEGV.
1626         * tests/test-c-stack2.sh: New file.
1627
1628 2008-07-14  Bruno Haible  <bruno@clisp.org>
1629
1630         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1631         Reported by Eric Blake.
1632
1633 2008-07-14  Sam Steingold  <sds@gnu.org>
1634             Bruno Haible  <bruno@clisp.org>
1635
1636         New module libsigsegv.
1637         * modules/libsigsegv: New file.
1638         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1639         modifications.
1640         * MODULES.html.sh (Signal handling): New section.
1641
1642 2008-07-14  Bruno Haible  <bruno@clisp.org>
1643
1644         * modules/unictype/ctype-* (Description): Add the word "function".
1645         Improves the resulting doc in MODULES.html.
1646
1647 2008-07-12  Ben Pfaff  <blp@gnu.org>
1648
1649         Add longlong module.
1650         * modules/longlong: New file.
1651
1652 2008-07-12  Bruno Haible  <bruno@clisp.org>
1653
1654         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1655         to empty.
1656
1657 2008-07-10  Ben Pfaff  <blp@gnu.org>
1658
1659         Add isnan module.
1660         * doc/posix-functions/isnan.texi: Mention new module.
1661         * lib/math.in.h: Define isnan macro if we have decided to replace
1662         it.
1663         * m4/isnan.m4: New file.
1664         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1665         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1666         also.
1667         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1668         redundancy.
1669         * m4/math_h.m4: Initialize and substitute variables for isnan
1670         module.
1671         * modules/isnan: New file.
1672         * modules/isnan-tests: New file.
1673         * modules/math: Add substitutions for new module.
1674         * tests/test-isnan.c: New file.
1675         * MODULES.html.sh: Mention new module.
1676
1677 2008-07-10  Ben Pfaff  <blp@gnu.org>
1678
1679         Add isnanf module.
1680         * lib/isnanf.m4: New file.
1681         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1682         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1683         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1684         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1685         * modules/isnanf: New file.
1686         * modules/isnanf-tests: New file.
1687         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1688         files.
1689         * tests/test-isnanf-nolibm.c: factored most of its contents into
1690         new file tests/test-isnanf.h.
1691         * tests/test-isnanf.h: New file.
1692         * tests/test-isnanf.c: New file.
1693         * MODULES.html.sh: Mention new module.
1694         * doc/glibc-functions/isnanf.texi: Mention new module.
1695
1696 2008-07-10  Ben Pfaff  <blp@gnu.org>
1697
1698         Add isnand module.
1699         * lib/isnand.h: New file.
1700         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1701         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1702         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1703         functionality also.
1704         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1705         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1706         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1707         * modules/isnand: New file.
1708         * modules/isnand-tests: New file.
1709         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1710         files.
1711         * tests/test-isnand-nolibm.c: factored most of its contents into
1712         new file tests/test-isnand.h.
1713         * tests/test-isnand.h: New file.
1714         * tests/test-isnand.c: New file.
1715         * MODULES.html.sh: Mention new module.
1716
1717 2008-07-10  Ben Pfaff  <blp@gnu.org>
1718
1719         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1720         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1721         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1722         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1723         * modules/isnanf-nolibm: Update references to renamed files.
1724         * modules/isnand-nolibm: Likewise.
1725         * modules/isnanf-nolibm-tests: Likewise.
1726         * modules/isnand-nolibm-tests: Likewise.
1727         * lib/frexp.c: Likewise.
1728         * lib/isfinite.c: Likewise.
1729         * lib/signbitd.c: Likewise.
1730         * lib/signbitf.c: Likewise.
1731         * lib/vasnprintf.c: Likewise.
1732         * tests/test-ceilf1.c: Likewise.
1733         * tests/test-ceilf2.c: Likewise.
1734         * tests/test-floorf1.c: Likewise.
1735         * tests/test-floorf2.c: Likewise.
1736         * tests/test-frexp.c: Likewise.
1737         * tests/test-round1.c: Likewise.
1738         * tests/test-round2.c: Likewise.
1739         * tests/test-roundf1.c: Likewise.
1740         * tests/test-strtod.c: Likewise.
1741         * tests/test-trunc1.c: Likewise.
1742         * tests/test-trunc2.c: Likewise.
1743         * tests/test-truncf1.c: Likewise.
1744         * tests/test-truncf2.c: Likewise.
1745         * NEWS: Mention the renamed header files.
1746
1747 2008-07-11  Jim Meyering  <meyering@redhat.com>
1748
1749         vc-list-files: make the last-resort awk code more portable
1750         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1751         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1752         does not support it.
1753
1754 2008-07-10  Eric Blake  <ebb9@byu.net>
1755
1756         Work with tar's bootstrap.
1757         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1758         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1759         an m4 comment.
1760
1761 2008-07-09  Jim Meyering  <meyering@redhat.com>
1762
1763         posix-shell.m4: fix typo that made this test malfunction
1764         * m4/posix-shell.m4: Remove capitalization in variable name.
1765
1766 2008-07-08  Bruno Haible  <bruno@clisp.org>
1767
1768         * m4/onceonly.m4: Update comments.
1769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1770
1771 2008-07-04  Jim Meyering  <meyering@redhat.com>
1772
1773         * users.txt: Add vc-dwim.
1774         (bison, coreutils): Use the gitweb URL.
1775
1776 2008-07-03  Jim Meyering  <meyering@redhat.com>
1777
1778         * users.txt: Add libffcall.  From Sam Steingold.
1779
1780 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
1781
1782         getdate.y: do not ignore TZ with relative day, month or year offset
1783         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1784         relative-date-handling, since otherwise, the latter would clobber the
1785         sole output (an updated Start value) of the tz-handling block.
1786         * tests/test-getdate.c: Tests for the fix
1787
1788 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1789
1790         Recognize 'foo_LIBRARIES += libgnu.a'.
1791         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1792         makefile snippet has already specified an installation location,
1793         also using '+='.
1794
1795 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
1796
1797         getdate.y: factor out common actions
1798         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1799         Use them in place of open-coded actions.
1800
1801 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1802
1803         Add self-test for getdate module.
1804         * modules/getdate-tests: New file.
1805         * tests/test-getdate.c: New file.
1806
1807 2008-06-29  Bruno Haible  <bruno@clisp.org>
1808
1809         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1810         .gitignore.
1811         Reported by Sylvain Beucler <beuc@beuc.net>.
1812
1813 2008-06-29  Bruno Haible  <bruno@clisp.org>
1814
1815         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1816         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1817
1818 2008-06-29  Bruno Haible  <bruno@clisp.org>
1819
1820         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1821         EXTRA_DIST.
1822         Reported by Sylvain Beucler <beuc@beuc.net>.
1823
1824 2008-06-26  Jim Meyering  <meyering@redhat.com>
1825
1826         make several modules depend on the "open" module
1827         This provides slightly increased consistency when opening-for-write
1828         the name of a non-directory spelled with a trailing slash.
1829         * modules/chdir-safer: Likewise.
1830         * modules/chown: Likewise.
1831         * modules/clean-temp: Likewise.
1832         * modules/copy-file: Likewise.
1833         * modules/fchdir: Likewise.
1834         * modules/fcntl-safer: Likewise.
1835         * modules/pipe: Likewise.
1836         * modules/utime: Likewise.
1837         Prompted by Eric Blake and Bruno Haible.
1838
1839 2008-06-24  Andreas Schwab  <schwab@suse.de>
1840
1841         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1842         literals can be used as initializers for global variables.
1843
1844 2008-06-23  Eric Blake  <ebb9@byu.net>
1845
1846         Make gnulib-cache.m4 easier to diff.
1847         * gnulib-tool (func_import): Allow newlines when reading cached
1848         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1849
1850 2008-06-23  Bruno Haible  <bruno@clisp.org>
1851
1852         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1853         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1854         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1855         m4/signalblocking.m4.
1856         (gl_PREREQ_SIGACTION): Don't invoke it.
1857         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1858         gl_PREREQ_SIG_HANDLER_H.
1859         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1860         Don't check for sigaction here.
1861
1862 2008-06-23  Bruno Haible  <bruno@clisp.org>
1863
1864         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1865         (install_handlers): Don't set the SA_RESETHAND flag.
1866
1867 2008-06-23  Bruno Haible  <bruno@clisp.org>
1868
1869         * m4/sigaction.m4: Comment fixes.
1870         * lib/signal.in.h: Likewise.
1871
1872 2008-06-23  Eric Blake  <ebb9@byu.net>
1873
1874         Fix typo.
1875         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1876
1877         Avoid SA_ namespace.
1878         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1879         Reported by Ralf Wildenhues.
1880
1881         Avoid test failure due to SA_RESTORER.
1882         * tests/test-sigaction.c (SA_MASK): New macro.
1883         (main): Avoid failing due to extension flags being set.
1884         Reported by Jim Meyering.
1885
1886         Revert use of sig-handler.h in sigprocmask.c.
1887         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1888         it requires the existence of struct sigaction.
1889         * lib/sigprocmask.c (handler_t): Restore typedef.
1890         (rpl_signal, old_handlers): Use local type.
1891
1892 2008-06-22  Bruno Haible  <bruno@clisp.org>
1893
1894         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1895         conditionally.
1896         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1897
1898 2008-06-22  Bruno Haible  <bruno@clisp.org>
1899
1900         * doc/posix-functions/siginterrupt.texi: Move note.
1901
1902         * lib/signal.in.h (SA_RESTART): New macro.
1903         * lib/sigaction.c: Update comment.
1904
1905         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1906
1907         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1908         (gl_PREREQ_SIGPROCMASK): Invoke it.
1909         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1910
1911         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1912
1913         * lib/sigprocmask.c: Update a comment.
1914
1915 2008-06-21  Eric Blake  <ebb9@byu.net>
1916
1917         Use sigaction module rather than signal().
1918         * modules/c-stack (Depends-on): Add sigaction.
1919         * modules/fatal-signal (Depends-on): Likewise.
1920         * modules/nanosleep (Depends-on): Likewise.
1921         * modules/sigprocmask (Files): Add sig-handler.h.
1922         * modules/sigaction (Files): Likewise.
1923         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1924         Eggert.
1925         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1926         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1927         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1928         (init_fatal_signals): Likewise.
1929         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1930         (siginterrupt): Delete fallback.
1931         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1932         instead.
1933         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1934         siginterrupt.
1935
1936         New module sigaction, for mingw.
1937         * modules/sigaction: New module...
1938         * modules/sigaction-tests: ...and its test.
1939         * m4/sigaction.m4: New file.
1940         * lib/sigaction.c: Likewise.
1941         * tests/test-sigaction.c: Likewise.
1942         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1943         * modules/signal (Makefile.am): Likewise.
1944         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1945         needed.
1946         * doc/posix-headers/signal.texi (signal.h): Mention provided
1947         types.
1948         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1949         that sigaction is preferable.
1950         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1951         module.
1952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1953         sigaction.
1954
1955         Improve robustness of sigprocmask by overriding signal.
1956         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1957         is in use.
1958         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1959         (SIGKILL, SIGSTOP): Provide fallbacks.
1960         (rpl_signal): Implement.
1961         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1962         signal can be called inside handlers.
1963
1964         Fix nanosleep module on mingw.
1965         * modules/nanosleep (Depends-on): Add sys_select.
1966         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1967
1968         Fix licensing of sigprocmask.
1969         * modules/raise (License): Relicense as LGPL.
1970
1971 2008-06-21  Bruno Haible  <bruno@clisp.org>
1972
1973         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1974         result if it contains question marks.
1975         Reported by Michael Geng <linux@michaelgeng.de>.
1976
1977 2008-06-19  Bruno Haible  <bruno@clisp.org>
1978
1979         Fix CVS-ism.
1980         * doc/gnulib.texi: Include updated-stamp.texi.
1981         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1982         (updated-stamp.texi): New rule.
1983         (gnulib.info): Depend on it.
1984         * doc/.gitignore: Add updated-stamp.texi.
1985         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1986
1987 2008-06-19  Bruno Haible  <bruno@clisp.org>
1988
1989         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1990         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1991
1992 2008-06-19  Eric Blake  <ebb9@byu.net>
1993
1994         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1995         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1996         Reported by Stepan Kasal.
1997
1998 2008-06-18  Bruno Haible  <bruno@clisp.org>
1999
2000         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2001         Reported by Eric Blake.
2002
2003 2008-06-18  Eric Blake  <ebb9@byu.net>
2004
2005         Work around cygwin 1.5.25 strsignal bug.
2006         * tests/test-strsignal.c: Allow for const char *.
2007         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2008
2009 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2010
2011         * users.txt: Update URL to article and add author/date
2012         information.
2013
2014 2008-06-17  Bruno Haible  <bruno@clisp.org>
2015
2016         New macro gl_DISABLE_THREADS.
2017         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2018         if the user did not pass --enable-threads or --disable-threads option.
2019         (gl_DISABLE_THREADS): New macro.
2020         Reported by Eric Blake <ebb9@byu.net>.
2021
2022 2008-06-17  Bruno Haible  <bruno@clisp.org>
2023
2024         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2025         when the macro ignores it.
2026         Based on a patch by Eric Blake <ebb9@byu.net>.
2027
2028 2008-06-17  Bruno Haible  <bruno@clisp.org>
2029
2030         * modules/tls (License): Change to LGPLv2+.
2031         Reported by Eric Blake.
2032
2033 2008-06-17  Eric Blake  <ebb9@byu.net>
2034
2035         Simplify c-stack prerequisites.
2036         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
2037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
2038         no longer requires <ucontext.h> to exist.  Optimize setrlimit
2039         check.
2040         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
2041         <sys/resource.h>.
2042
2043         Move c-stack test into testsuite.
2044         * modules/c-stack-tests: New file.
2045         * lib/c-stack.c [DEBUG]: Move test program...
2046         * tests/test-c-stack.c: ...into this new file.  Skip rather than
2047         fail test if sigaltstack is lacking.
2048         * tests/test-c-stack.sh: New driver file.
2049
2050 2008-06-16  Eric Blake  <ebb9@byu.net>
2051
2052         Use raise module consistently.
2053         * modules/fatal-signal (Depends-on): Add raise.
2054         * modules/sigprocmask (Depends-on): Likewise.
2055         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
2056         * lib/sigprocmask.c (sigprocmask): Likewise.
2057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2058         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2059
2060         Fix compliance bug in sigpending.
2061         * lib/sigprocmask.c (sigpending): Return pending array via
2062         parameter, not return value.
2063
2064 2008-06-14  Eric Blake  <ebb9@byu.net>
2065
2066         Improve obstack-printf test code.
2067         * tests/test-obstack-printf.c (test_function): Fix comment, and
2068         simplify usage of obstack_* in macros.  Add a test for coverage.
2069         Reported by Bruno Haible.
2070
2071 2008-06-14  Bruno Haible  <bruno@clisp.org>
2072
2073         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2074         array size as a constant, not as a const variable.
2075         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2076         AC_USE_SYSTEM_EXTENSIONS.
2077         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2078         Test whether the obstack_printf function actually exists.
2079         * modules/obstack-printf (Depends-on): Add extensions.
2080         (Include): Remove obstack.h.
2081         * modules/obstack-printf-posix (Depends-on): Add extensions.
2082         (Include): Remove obstack.h.
2083
2084 2008-06-13  Eric Blake  <ebb9@byu.net>
2085
2086         Add obstack-printf and obstack-printf-posix modules.
2087         * modules/obstack-printf: New file.
2088         * modules/obstack-printf-posix: Likewise.
2089         * MODULES.html.sh (Misc): Mention them.
2090         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2091         Likewise.
2092         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2093         Likewise.
2094         * modules/stdio (Makefile.am): Accomodate new modules.
2095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2096         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2097         Declare.
2098         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2099         functions.
2100         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2101         (gl_REPLACE_OBSTACK_PRINTF): New macros
2102         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2103         * tests/test-obstack-printf.c: New file.
2104         * modules/obstack-printf-tests: Likewise.
2105         * modules/obstack-printf-posix-tests: Likewise.
2106
2107 2008-06-11  Bruno Haible  <bruno@clisp.org>
2108
2109         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2110         * lib/open.c: Include errno.h.
2111         (open): Fail when attempting to write to a file that has a trailing
2112         slash.
2113         * tests/test-open.c (main): Test against trailing slash bug.
2114         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2115
2116 2008-06-10  Bruno Haible  <bruno@clisp.org>
2117
2118         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2119         for $? to work inside the trap command, with various /bin/sh-s.
2120         * tests/test-vc-list-files-cvs.sh: Likewise.
2121
2122 2008-06-10  Bruno Haible  <bruno@clisp.org>
2123
2124         * lib/acl-internal.h: Don't include gettext.h here.
2125         * lib/set-mode-acl.c: Include gettext.h here.
2126         * lib/copy-acl.c: Likewise.
2127
2128 2008-06-10  Bruno Haible  <bruno@clisp.org>
2129
2130         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2131         * lib/wait-process.c (wait_subprocess): Likewise.
2132         * lib/execute.h (execute): Add termsigp argument.
2133         * lib/execute.c (execute): Likewise.
2134         * lib/csharpcomp.c (compile_csharp_using_pnet,
2135         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2136         * lib/csharpexec.c (execute_csharp_using_pnet,
2137         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2138         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2139         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2140         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2141         is_jikes_present): Update.
2142         * lib/javaexec.c (execute_java_class): Update.
2143         * lib/javaversion.c (execute_and_read_line): Update.
2144         * NEWS: Document the changes.
2145         Reported by Eric Blake.
2146
2147 2008-06-10  Eric Blake  <ebb9@byu.net>
2148
2149         Add missing include.
2150         * tests/test-strstr.c (includes): Add <signal.h>.
2151         * tests/test-strcasestr.c (includes): Likewise.
2152         * tests/test-memmem.c (includes): Likewise.
2153
2154 2008-06-10  Bruno Haible  <bruno@clisp.org>
2155
2156         * lib/wait-process.c (wait_subprocess): Add an assertion.
2157
2158 2008-06-10  Bruno Haible  <bruno@clisp.org>
2159
2160         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2161
2162 2008-06-10  Bruno Haible  <bruno@clisp.org>
2163
2164         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2165         using alarm().
2166         * tests/test-strcasestr.c (main): Likewise.
2167         * tests/test-strstr.c (main): Likewise.
2168
2169 2008-06-09  Bruno Haible  <bruno@clisp.org>
2170
2171         Work around the Solaris 10 ACE ACLs ABI change.
2172         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2173         declare if ACL_NO_TRIVIAL is present.
2174         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2175         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2176         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2177         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2178         define if ACL_NO_TRIVIAL is present.
2179         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2180         and use the current ABI.
2181         (file_has_acl): Use same #if condition as elsewhere.
2182         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2183         in use, and use the current ABI.
2184         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2185         Reported by Jim Meyering.
2186
2187 2008-06-09  Eric Blake  <ebb9@byu.net>
2188
2189         Work around environments that (stupidly) ignore SIGALRM.
2190         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2191         before using alarm().
2192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2194         Reported by Ian Beckwith <ianb@erislabs.net>.
2195
2196         Produce autobuild blurb earlier in log.
2197         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2198
2199 2008-06-09  Jim Meyering  <meyering@redhat.com>
2200         and OndÅ™ej Vašík  <ovasik@redhat.com>
2201
2202         utimens.c: correct kernel bug work-around
2203         OndÅ™ej Vašík found that the invalid return value of 280 indicates
2204         failure, not success, and the kernel bug we're trying to work
2205         around affects not just the utimensat call, but also the fallback
2206         futimens call.
2207         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2208         not success.
2209         [HAVE_FUTIMENS]: Use the same work-around, here.
2210
2211 2008-06-09  Jim Meyering  <meyering@redhat.com>
2212
2213         add more guards around definition of ACE_-related code
2214         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2215         ALLOW and ACE_OWNER are also defined.
2216
2217 2008-06-08  Bruno Haible  <bruno@clisp.org>
2218
2219         * lib/acl-internal.h: Add me as co-author.
2220         * lib/file-has-acl.c: Likewise.
2221         * lib/set-mode-acl.c: Likewise.
2222         * lib/copy-acl.c: Likewise.
2223
2224 2008-06-08  Bruno Haible  <bruno@clisp.org>
2225
2226         Add support for AIX ACLs.
2227         * lib/acl-internal.h (acl_nontrivial): New declaration.
2228         * lib/file-has-acl.c (acl_nontrivial): New function.
2229         (file_has_acl): Add implementation using AIX 4 ACL API.
2230         * lib/set-mode-acl.c (qset_acl): Likewise.
2231         * lib/copy-acl.c (qcopy_acl): Likewise.
2232
2233 2008-06-08  Bruno Haible  <bruno@clisp.org>
2234
2235         Add support for HP-UX ACLs.
2236         * lib/acl-internal.h (acl_nontrivial): New declaration.
2237         * lib/file-has-acl.c (acl_nontrivial): New function.
2238         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2239         * lib/set-mode-acl.c (qset_acl): Likewise.
2240         * lib/copy-acl.c (qcopy_acl): Likewise.
2241
2242 2008-06-08  Bruno Haible  <bruno@clisp.org>
2243
2244         Add support for Cygwin ACLs.
2245         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2246         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2247         the chmod_or_fchmod call.
2248         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2249
2250 2008-06-08  Bruno Haible  <bruno@clisp.org>
2251
2252         Fix bug with setuid modes in Solaris 10+ code.
2253         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2254         succeeded, when the mode contains some special bits.
2255
2256 2008-06-08  Bruno Haible  <bruno@clisp.org>
2257
2258         Add support for Solaris 7..10 ACLs.
2259         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2260         declarations.
2261         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2262         functions.
2263         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2264         * lib/set-mode-acl.c (qset_acl): Likewise.
2265         * lib/copy-acl.c (qcopy_acl): Likewise.
2266
2267 2008-06-08  Bruno Haible  <bruno@clisp.org>
2268
2269         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2270         declaration.
2271         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2272         (acl_access_nontrivial): Remove MacOS X case.
2273         (file_has_acl): Use acl_extended_nontrivial.
2274         * lib/copy-acl.c (qcopy_acl): Likewise.
2275
2276 2008-06-08  Bruno Haible  <bruno@clisp.org>
2277
2278         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2279
2280 2008-06-08  Jim Meyering  <meyering@redhat.com>
2281
2282         * modules/acl (Maintainer): Add Bruno Haible.
2283
2284 2008-06-07  Bruno Haible  <bruno@clisp.org>
2285
2286         Improve support for Tru64 ACLs.
2287         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2288         ACL on OSF/1.
2289
2290 2008-06-07  Bruno Haible  <bruno@clisp.org>
2291
2292         Add support for MacOS X ACLs.
2293         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2294         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2295         * lib/set-mode-acl.c (qset_acl): Likewise.
2296         * lib/copy-acl.c (qcopy_acl): Likewise.
2297
2298 2008-06-07  Bruno Haible  <bruno@clisp.org>
2299
2300         Fix memory leak introduced on 2008-05-22.
2301         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2302         use.
2303
2304 2008-06-07  Bruno Haible  <bruno@clisp.org>
2305
2306         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2307         to construct an empty ACL.
2308
2309 2008-06-07  Bruno Haible  <bruno@clisp.org>
2310
2311         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2312         precisely.
2313         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2314
2315 2008-06-07  Bruno Haible  <bruno@clisp.org>
2316
2317         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2318         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2319
2320 2008-06-07  Bruno Haible  <bruno@clisp.org>
2321
2322         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2323         regardless of POSIX.
2324         * doc/posix-functions/_longjmp.texi: Likewise.
2325         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2326         SystemV platform in this case.
2327
2328 2008-06-06  Eric Blake  <ebb9@byu.net>
2329
2330         Document abort() bugs.
2331         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2332
2333         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2334         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2335         sigsetjmp.
2336         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2337         siglongjmp, but only as a macro.
2338         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2339         is obsolete.
2340         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2341
2342         Tweak documentation to cover cygwin argz bugs.
2343         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2344         argz bug fix; no code change needed since no cygwin releases
2345         occurred between the last fix and the bug being tested.
2346         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2347         module and recently fixed cygwin bugs.
2348         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2349         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2350         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2351         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2352         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2353         Likewise.
2354         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2355         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2356         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2357         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2358         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2359         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2360         Likewise.
2361
2362         Avoid gcc warning on cygwin.
2363         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2364         !ACL_NO_TRIVIAL]: Avoid unused variable.
2365
2366 2008-06-05  Eric Blake  <ebb9@byu.net>
2367
2368         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2369         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2370         git-version-gen fails to come up with a version.
2371         Reported by Simon Josefsson.
2372
2373 2008-06-05  Jim Meyering  <meyering@redhat.com>
2374             Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         utimens.c: work around a probable Linux kernel bug
2377         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2378         appears to be a kernel bug that causes utimensat to return 280
2379         instead of 0, indicating success.
2380
2381 2008-06-04  Bruno Haible  <bruno@clisp.org>
2382
2383         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2384         2008-06-01 commit.
2385
2386 2008-06-04  Bruno Haible  <bruno@clisp.org>
2387
2388         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2389         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2390         (file_has_acl): Use it. Save errno afterwards.
2391         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2392
2393 2008-06-03  Bruno Haible  <bruno@clisp.org>
2394
2395         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2396         draft code. Simplify #ifs.
2397         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2398         Put Solaris code after POSIX-draft code. Fix comments regarding
2399         Solaris 10, HP-UX. Mention Cygwin.
2400         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2401
2402 2008-06-03  Eric Blake  <ebb9@byu.net>
2403
2404         Provide fallback for older kernels.
2405         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2406         Provide runtime fallback if kernel lacks support.
2407         Reported by Mike Frysinger.
2408
2409 2008-06-02  Bruno Haible  <bruno@clisp.org>
2410
2411         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2412         it exists.
2413
2414 2008-06-02  Bruno Haible  <bruno@clisp.org>
2415
2416         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2417         * lib/copy-acl.c (qcopy_acl): Update comment.
2418
2419 2008-06-02  Bruno Haible  <bruno@clisp.org>
2420
2421         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2422         like ACL APIs.
2423
2424 2008-06-02  Bruno Haible  <bruno@clisp.org>
2425
2426         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2427         * tests/test-set-mode-acl.sh: Likewise.
2428         * tests/test-copy-acl.sh: Likewise.
2429         * tests/test-copy-file.sh: Likewise.
2430
2431 2008-06-02  Bruno Haible  <bruno@clisp.org>
2432
2433         * tests/test-file-has-acl.sh: Remove unused code.
2434
2435 2008-06-01  Bruno Haible  <bruno@clisp.org>
2436
2437         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2438         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2439         messages.
2440         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2441
2442 2008-06-01  Bruno Haible  <bruno@clisp.org>
2443
2444         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2445         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2446         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2447         APIs.
2448         * modules/acl-tests (configure.ac): Remove tests now contained in
2449         m4/acl.m4.
2450
2451 2008-06-02  Jim Meyering  <meyering@redhat.com>
2452
2453         announce-gen: use a better key-server host name
2454         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2455         it may be more consistently reliable.  Suggested by Werner Koch
2456         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2457
2458 2008-06-01  Bruno Haible  <bruno@clisp.org>
2459
2460         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2461         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2462
2463 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2464
2465         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2466
2467 2008-06-01  Bruno Haible  <bruno@clisp.org>
2468
2469         New ACL tests.
2470         * tests/test-file-has-acl.sh: New file.
2471         * tests/test-file-has-acl.c: New file.
2472         * tests/test-set-mode-acl.sh: New file.
2473         * tests/test-set-mode-acl.c: New file.
2474         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2475         * tests/test-copy-acl.c: New file.
2476         * modules/acl-tests: New file, based on modules/copy-file-tests.
2477         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2478         (Depends-on): Add acl-tests.
2479         (configure.ac): Remove checks.
2480         (Makefile.am): Don't create test-sameacls program here any more.
2481
2482 2008-06-01  Bruno Haible  <bruno@clisp.org>
2483
2484         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2485         * tests/test-sameacls.c: Include progname.h.
2486         (main): Invoke set_program_name. Portability fixes for MacOS X,
2487         Solaris, HP-UX.
2488
2489 2008-06-01  Bruno Haible  <bruno@clisp.org>
2490
2491         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2492         function.
2493         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2494
2495 2008-06-01  Bruno Haible  <bruno@clisp.org>
2496
2497         * modules/rpmatch (Depends-on): Add strdup.
2498
2499 2008-06-01  Bruno Haible  <bruno@clisp.org>
2500
2501         * lib/pipe.c: Include unistd-safer.h.
2502         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2503         * modules/pipe (Depends-on): Add unistd-safer.
2504
2505 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2506
2507         * modules/autobuild (configure.ac): Call AB_INIT.
2508
2509 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2510
2511         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2512         Suggested by Bruno Haible <bruno@clisp.org>.
2513
2514 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2515
2516         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2517         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2518         <bruno@clisp.org>.
2519
2520 2008-05-29  Eric Blake  <ebb9@byu.net>
2521
2522         Prefer new POSIX 200x interfaces over futimesat.
2523         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2524         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2525         when available.
2526         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2527
2528 2008-05-28  Bruno Haible  <bruno@clisp.org>
2529
2530         * modules/stpcpy (License): Change to LGPLv2+.
2531         Requested by David Lutterkort <dlutter@redhat.com>.
2532
2533 2008-05-27  Bruno Haible  <bruno@clisp.org>
2534
2535         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2536         current mingw.
2537         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2538
2539 2008-05-27  Bruno Haible  <bruno@clisp.org>
2540
2541         * modules/iconv_open (Link): New section, from module 'iconv'.
2542         * modules/striconv (Link): Likewise.
2543         * modules/striconveh (Link): Likewise.
2544         * modules/xstriconv (Link): Likewise.
2545         * modules/unicodeio (Link): Likewise.
2546         * modules/propername (Link): Likewise.
2547         Reported by Jim Meyering.
2548
2549 2008-05-26  Jim Meyering  <meyering@redhat.com>
2550
2551         sha256: do not artificially restrict buffer length to be < 2^32
2552         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2553         uint32_t to size_t.
2554         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2555         to match.
2556
2557         avoid unaligned access errors, e.g., on sparc
2558         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2559         direct access through a possibly-unaligned uint64* pointer.
2560         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2561         direct access through a possibly-unaligned uint32* pointer.
2562         Prompted by this patch from Tom "spot" Callaway:
2563         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2564
2565         sha512.c: fix typo in comment
2566         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2567
2568 2008-05-25  Bruno Haible  <bruno@clisp.org>
2569
2570         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2571         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2572         (Makefile.am): Update lib_SOURCES.
2573
2574 2008-05-25  Bruno Haible  <bruno@clisp.org>
2575
2576         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2577
2578 2008-05-25  Jim Meyering  <meyering@redhat.com>
2579
2580         useless-if-before-free: freed expr may have white-space differences
2581         * build-aux/useless-if-before-free: Recognize cases in which the
2582         freed expression differs from the tested one in embedded white
2583         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2584         $1 was used, so we can't make any regexp shy.  Improved tests now
2585         detect this.
2586
2587         useless-if-before-free: accept white space in the expression.
2588         * build-aux/useless-if-before-free: For now, any white space
2589         in the expression must be identical in the free argument.
2590
2591         useless-if-before-free: efficiency tweak
2592         * build-aux/useless-if-before-free: Make the expression-matching
2593         regexp "shy".
2594         Make the *outer* regexp shy, not the expr-matching one.
2595
2596         update code-in-comment to accept cast of free arg
2597         * build-aux/useless-if-before-free: Update regexp.
2598
2599 2008-05-25  Bruno Haible  <bruno@clisp.org>
2600
2601         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2602         * modules/copy-file-tests (Files, Makefile.am): Update.
2603         * tests/test-copy-file.c (func_test_copy): Update.
2604
2605 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2606
2607         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2608
2609 2008-05-23  Bruno Haible  <bruno@clisp.org>
2610
2611         Improve support for ACLs on OSF/1.
2612         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2613         Remove fallback for unknown flavors of ACLs.
2614
2615 2008-05-22  Bruno Haible  <bruno@clisp.org>
2616
2617         Add support for ACLs on OSF/1.
2618         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2619         replacements.
2620         (acl_free_text): New macro fallback.
2621         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2622         acl_free.
2623         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2624         acl_free_text function. Require AC_C_INLINE.
2625
2626 2008-05-22  Bruno Haible  <bruno@clisp.org>
2627
2628         Make copy_acl work on MacOS X 10.5.
2629         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2630         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2631         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2632         If MODE_INSIDE_ACL, don't assume that every system has the same text
2633         representation for ACLs as FreeBSD.
2634         * lib/copy-acl.c (copy_acl): Add support for platforms with
2635         !MODE_INSIDE_ACL.
2636         * lib/file-has-acl.c (file_has_acl): Likewise.
2637         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2638         FreeBSD, MacOS X, or IRIX, respectively.
2639
2640 2008-05-22  Bruno Haible  <bruno@clisp.org>
2641
2642         * lib/acl.h: Don't include <sys/acl.h>.
2643         (GETACLCNT): Move fallback to lib/acl-internal.h.
2644         * lib/acl-internal.h: Include <sys/acl.h> here.
2645         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2646
2647 2008-05-22  Bruno Haible  <bruno@clisp.org>
2648
2649         Split off copy_acl function to separate file.
2650         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2651         * lib/acl.c (copy_acl): Moved function to separate file.
2652         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2653         * modules/acl (Files): Add lib/copy-acl.c.
2654         (Makefiles.am): Augment lib_SOURCES.
2655
2656 2008-05-22  Bruno Haible  <bruno@clisp.org>
2657
2658         * modules/copy-file-tests: New file.
2659         * tests/test-copy-file.sh: New file.
2660         * tests/test-copy-file.c: New file.
2661         * tests/test-copy-file-sameacls.c: New file.
2662
2663 2008-05-22  Eric Blake  <ebb9@byu.net>
2664
2665         Avoid gcc warning.
2666         * tests/test-memcmp.c (main): Pass NULL indirectly.
2667
2668 2008-05-21  Bruno Haible  <bruno@clisp.org>
2669
2670         Add reference doc about ACLs.
2671         * doc/acl-resources.txt: New file.
2672         * doc/acl-cygwin.txt: New file.
2673
2674 2008-05-21  Bruno Haible  <bruno@clisp.org>
2675
2676         Avoid one more warning from gcc.
2677         * lib/vasnprintf.c (IF_LINT): Update comments.
2678         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2679
2680 2008-05-21  Jim Meyering  <meyering@redhat.com>
2681
2682         avoid a warning from gcc
2683         * lib/vasnprintf.c (IF_LINT): Define.
2684         (scale10_round_decimal_long_double):
2685         Use it to avoid a "may be used uninitialized" warning.
2686         (scale10_round_decimal_double): Likewise.
2687
2688 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2689
2690         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2691         declared.
2692
2693 2008-05-20  Bruno Haible  <bruno@clisp.org>
2694
2695         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2696         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2697
2698 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2699
2700         * modules/memcmp-tests: New file.
2701         * tests/test-memcmp.c: New file.
2702
2703 2008-05-19  Bruno Haible  <bruno@clisp.org>
2704
2705         * modules/propername (Notice, configure.ac): Put quoted "..." into
2706         --keyword option.
2707         * lib/propername.h: Update comments accordingly.
2708         Reported by Eric Blake.
2709
2710 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2711
2712         * modules/getpass-gnu (Depends-on): Add fseeko.
2713
2714 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2715
2716         * modules/base64-tests: New file.
2717
2718 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2719
2720         * lib/base64.c (base64_decode_ctx): If a decode context structure
2721         was passed in use it to ignore newlines.  If a context structure
2722         was _not_ passed in, continue to treat newlines as garbage (this
2723         is the historical behavior).  Formerly base64_decode.
2724         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2725         takes a decode context structure.
2726         * lib/base64.h (base64_decode): Macro for four-argument calls.
2727         (base64_decode_alloc): Likewise.
2728         * lib/base64.c (base64_decode_ctx): If a decode context structure
2729         was passed in use it to ignore newlines.  If a context structure
2730         was _not_ passed in, continue to treat newlines as garbage (this
2731         is the historical behavior).  Formerly base64_decode.
2732         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2733         takes a decode context structure.
2734         * lib/base64.h (base64_decode): Macro for four-argument calls.
2735         (base64_decode_alloc): Likewise.
2736
2737 2008-05-19  Jim Meyering  <meyering@redhat.com>
2738
2739         avoid a warning from gcc
2740         * lib/trim.c (IF_LINT): Define.
2741         (trim2): Use it to avoid a "may be used uninitialized" warning.
2742
2743         Fix doc typo.
2744         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2745
2746 2008-05-19  Bruno Haible  <bruno@clisp.org>
2747
2748         * doc/glibc-functions/getpass.texi: Document limits of other
2749         implementations.
2750
2751 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2752             Bruno Haible <bruno@clisp.org>
2753
2754         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2755
2756 2008-05-18  Bruno Haible  <bruno@clisp.org>
2757
2758         * modules/propername: New file, from GNU gettext.
2759         * lib/propername.h: New file, from GNU gettext.
2760         * lib/propername.c: New file, from GNU gettext.
2761         * MODULES.html.sh (Internationalization functions): Add propername.
2762
2763 2008-05-16  Jim Meyering  <meyering@redhat.com>
2764             Bruno Haible  <bruno@clisp.org>
2765
2766         Avoid some warnings from "gcc -Wshadow".
2767         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2768
2769 2008-05-15  Eric Blake  <ebb9@byu.net>
2770
2771         Extend previous patch to cygwin 1.7.0.
2772         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2773         fast implementation in cygwin >= 1.7.0.
2774         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2776
2777 2008-05-15  Bruno Haible  <bruno@clisp.org>
2778
2779         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2780         implementation in glibc >= 2.9.
2781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2783
2784 2008-05-15  Bruno Haible  <bruno@clisp.org>
2785
2786         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2787         (Unicode string functions): Add unilbrk/*.
2788         Reported by Karl Berry.
2789
2790 2008-05-15  Eric Blake  <ebb9@byu.net>
2791
2792         Fix violation of <stdbool.h> replacement in regex.
2793         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2794         * lib/regexec.c (re_search_internal): Likewise.
2795         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2796
2797 2008-05-15  Jim Meyering  <meyering@redhat.com>
2798
2799         avoid distracting test output when git or cvs is not found
2800         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2801         * tests/test-vc-list-files-git.sh: Likewise.
2802
2803 2008-05-15  Eric Blake  <ebb9@byu.net>
2804
2805         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2806         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2807         glibc version.
2808         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2809         * doc/posix-functions/strstr.texi (strstr): Likewise.
2810         * lib/str-two-way.h (MAX): Sychronize with glibc.
2811
2812 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2813
2814         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2815         opr.ctx_type.
2816         (calc_first): Initialize constraint field.
2817         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2818         Fix grammar.
2819         (duplicate_node): Merge constraint field for all node types.
2820         (calc_eclosure_iter): Look at constraint field for all node types.
2821         * lib/regex_internal.c (create_cd_newstate): Don't look at
2822         opr.ctx_type.
2823
2824 2008-05-14  Bruno Haible  <bruno@clisp.org>
2825
2826         Help GCC to do better code generation.
2827         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2828         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2829         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2830         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2831         Declare with attribute 'malloc' if supported.
2832
2833 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2834
2835         use "echo STR|wc -c" rather than unportable "expr length STR"
2836         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2837         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2838
2839 2008-05-14  Jim Meyering  <meyering@redhat.com>
2840
2841         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2842         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2843         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2844         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2845         via Collin Lasse.
2846
2847 2008-05-14  Eric Blake  <ebb9@byu.net>
2848
2849         Avoid quadratic growth in gl_LIBSOURCES.
2850         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2851         Suggested by Bruno Haible.
2852
2853         Test xmemdup0.
2854         * modules/xmemdup0-tests: New file.
2855         * tests/test-xmemdup0.c: Likewise.
2856
2857 2008-05-13  Eric Blake  <ebb9@byu.net>
2858
2859         Split xmemdup0 into its own module.
2860         * modules/xmemdup0: New file.
2861         * lib/xmemdup0.h: Likewise.
2862         * lib/xmemdup0.c: Likewise.
2863         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2864         * lib/xalloc.h (xmemdup0): Remove.
2865         * lib/xmalloc.c (xmemdup0): Likewise.
2866
2867 2008-05-13  Eric Blake  <ebb9@byu.net>
2868             Bruno Haible  <bruno@clisp.org>
2869
2870         Reduce number of forks required during autoconf.
2871         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2872         and gl_LIBSOURCES_DIR.
2873         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2874         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2875         m4_syscmd per file.
2876         <m4_foreach_w>: Move...
2877         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2878
2879 2008-05-13  Eric Blake  <ebb9@byu.net>
2880
2881         * gnulib-tool: Fix various comment typos.
2882
2883 2008-05-12  Bruno Haible  <bruno@clisp.org>
2884
2885         Tailor the linebreaking algorithm.
2886         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2887
2888 2008-05-12  Bruno Haible  <bruno@clisp.org>
2889
2890         Update to Unicode 5.0.0.
2891         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2892         LBP_JV, LBP_JT. Redistribute values.
2893         (unilbrk_table): Change size.
2894         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2895         Unicode TR#14 rev. 22.
2896         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2897         LBP_JV, LBP_JT. Redistribute values.
2898         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2899         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2900         Update.
2901         * lib/unilbrk/lbrkprop1.h: Regenerated.
2902         * lib/unilbrk/lbrkprop2.h: Regenerated.
2903         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2904         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2905         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2906         Likewise.
2907         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2908         Likewise.
2909         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2910         result.
2911         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2912         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2913         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2914         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2915         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2916         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2917
2918 2008-05-11  Bruno Haible  <bruno@clisp.org>
2919
2920         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2921
2922 2008-05-11  Bruno Haible  <bruno@clisp.org>
2923
2924         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2925         * modules/unilbrk/gen-lbrk: New file.
2926
2927 2008-05-11  Bruno Haible  <bruno@clisp.org>
2928
2929         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2930         * m4/sha512.m4 (gl_SHA512): Likewise.
2931
2932 2008-05-11  Jim Meyering  <meyering@redhat.com>
2933
2934         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2935         * modules/crypto/sha256: New file.
2936         * modules/crypto/sha512: Likewise.
2937         * lib/sha256.c: Likewise.
2938         * lib/sha256.h: Likewise.
2939         * lib/sha512.c: Likewise.
2940         * lib/sha512.h: Likewise.
2941         * lib/u64.h: Likewise.
2942         * m4/sha256.m4: Likewise.
2943         * m4/sha512.m4: Likewise.
2944         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2945
2946 2008-05-10  Bruno Haible  <bruno@clisp.org>
2947
2948         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2949         (Input/Output <stdio.h>): Add xprintf.
2950         (Signal handling <signal.h>): Add strsignal.
2951         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2952         (Core language properties): Add func.
2953         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2954         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2955         strings.
2956         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2957         (Input/output): New section.
2958         (File system functions): Add openat-die, stat-macros.
2959         (Networking functions): Add sockets.
2960         (Unicode string functions): Add unictype/*.
2961         (Support for building libraries and executables): Add gperf.
2962         (Support for building documentation): Add agpl-3.0.
2963         (Misc): Add nocrash.
2964
2965 2008-05-10  Bruno Haible  <bruno@clisp.org>
2966
2967         * modules/unictype/gen-ctype: New file.
2968
2969 2008-05-10  Jim Meyering  <meyering@redhat.com>
2970
2971         Make chdir-safer.c more efficient on a system with no symlinks.
2972         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2973         also if ELOOP is zero.  Suggested by Bruno Haible.
2974
2975         Make chdir-safer.c slightly safer.
2976         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2977         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2978
2979         Avoid compile failure on systems without ELOOP (like mingw).
2980         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2981         Reported by Bruno Haible.
2982
2983 2008-05-10  Bruno Haible  <bruno@clisp.org>
2984
2985         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2986         (is_utf8_encoding): Use a case-insensitive comparison.
2987         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2988         streq.
2989
2990 2008-05-10  Bruno Haible  <bruno@clisp.org>
2991
2992         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2993         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2994         * lib/unilbrk/ulc-common.h (iconv_string_length,
2995         iconv_string_keeping_offsets): Remove declarations.
2996         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2997         Don't include <iconv.h>, streq.h, xsize.h.
2998         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2999         conversion.
3000         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3001         <iconv.h>, streq.h, xsize.h.
3002         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3003         conversion.
3004         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3005         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3006         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3007         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3008
3009 2008-05-10  Bruno Haible  <bruno@clisp.org>
3010
3011         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3012         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3013
3014         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3015         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3016
3017         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3018         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3019
3020         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3021         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3022
3023         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3024         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3025
3026         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3027         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3028
3029         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3030         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3031
3032         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3033         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3034
3035 2008-05-10  Bruno Haible  <bruno@clisp.org>
3036
3037         Split up 'linebreak' module.
3038         * lib/unilbrk.h: New file, based on lib/linebreak.h.
3039         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
3040         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
3041         modifications.
3042         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
3043         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
3044         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
3045         lib/linebreak.c.
3046         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
3047         lib/linebreak.c.
3048         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
3049         lib/linebreak.c.
3050         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
3051         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
3052         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
3053         lib/linebreak.c.
3054         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
3055         lib/linebreak.c.
3056         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
3057         lib/linebreak.c.
3058         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3059         lib/linebreak.c.
3060         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3061         lib/linebreak.c.
3062         * modules/unilbrk/base: New file.
3063         * modules/unilbrk/tables: New file.
3064         * modules/unilbrk/u8-possible-linebreaks: New file.
3065         * modules/unilbrk/u16-possible-linebreaks: New file.
3066         * modules/unilbrk/u32-possible-linebreaks: New file.
3067         * modules/unilbrk/ulc-common: New file.
3068         * modules/unilbrk/ulc-possible-linebreaks: New file.
3069         * modules/unilbrk/u8-width-linebreaks: New file.
3070         * modules/unilbrk/u16-width-linebreaks: New file.
3071         * modules/unilbrk/u32-width-linebreaks: New file.
3072         * modules/unilbrk/ulc-width-linebreaks: New file.
3073         * lib/linebreak.h: Remove file.
3074         * lib/linebreak.c: Remove file.
3075         * m4/linebreak.m4: Remove file.
3076         * modules/linebreak: Remove file.
3077         * NEWS: Mention the changes.
3078
3079 2008-05-09  Eric Blake  <ebb9@byu.net>
3080
3081         Add xmemdup0.
3082         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3083         implementation.
3084         * lib/xmalloc.c (xmemdup0): New C implementation.
3085
3086 2008-05-08  Bruno Haible  <bruno@clisp.org>
3087
3088         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3089
3090 2008-05-07  Eric Blake  <ebb9@byu.net>
3091
3092         Support cross-compilation of <wctype.h>.
3093         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3094         AC_CACHE_CHECK.
3095
3096 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3097
3098         * build-aux/vc-list-files: Add support for bzr.
3099
3100 2008-05-03  Jim Meyering  <meyering@redhat.com>
3101
3102         avoid failed assertion with tight malloc
3103         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3104
3105 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3106
3107         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3108         are needed from arpa/inet.h.
3109         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3110         Reported by Bruno Haible.
3111
3112 2008-05-02  Jim Meyering  <meyering@redhat.com>
3113
3114         avoid compilation error on FreeBSD 6
3115         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3116
3117 2008-05-01  Jim Meyering  <meyering@redhat.com>
3118
3119         useless-if-before-free: correct --help's exit status description
3120         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3121         for one or more matches, etc.  Reported by Bruno Haible.
3122
3123         vc-list-files: make the stand-alone gnulib test work
3124         * modules/vc-list-files-tests (configure.ac):
3125         Define and AC_SUBST abs_aux_dir.
3126         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3127         $(abs_top_srcdir) to each script and having each of them
3128         duplicate the work of setting PATH, set PATH here, using
3129         the new variable, abs_aux_dir instead.
3130         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3131         * tests/test-vc-list-files-git.sh: Likewise.
3132         Reported by Bruno Haible.
3133
3134 2008-05-01  Bruno Haible  <bruno@clisp.org>
3135
3136         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3137         reallocation. Rename 'done' to 'found_delimiter'.
3138
3139 2008-05-01  Jim Meyering  <meyering@redhat.com>
3140
3141         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3142         * build-aux/vc-list-files: Use `...`, not $(...).
3143
3144 2008-04-30  Jim Meyering  <meyering@redhat.com>
3145
3146         add tests for vc-list-files
3147         * modules/vc-list-files-tests: New module.
3148         * tests/test-vc-list-files-cvs.sh: New file.
3149         * tests/test-vc-list-files-git.sh: New file.
3150
3151         avoid a warning from gcc
3152         * lib/getndelim2.c (IF_LINT): Define.
3153         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3154
3155         vc-list-files: work properly with build-aux/cvsu, too
3156         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3157         to all cvs-based clauses.
3158
3159         vc-list-files: work properly in the CVS+awk case, too
3160         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3161
3162         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3163         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3164         take more than one file argument, so .  Add quotes, just in case $dir
3165         ever contains a shell meta-character.  Prompted by Soren Hansen in
3166         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3167
3168 2008-04-29  Eric Blake  <ebb9@byu.net>
3169
3170         Optimize getndelim2 to use block operations when possible.
3171         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3172         freadseek, and memchr2.
3173         * lib/getndelim2.c (getndelim2): Use them for block reads.
3174
3175 2008-04-29  Bruno Haible  <bruno@clisp.org>
3176
3177         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3178         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3179         * modules/inet_ntop (Depends-on): Add extensions.
3180         * modules/inet_pton (Depends-on): Likewise.
3181         Reported by Simon Josefsson.
3182
3183 2008-04-29  Jim Meyering  <meyering@redhat.com>
3184
3185         When the is more than one match in a block, match all of them.
3186         * build-aux/useless-if-before-free: Iterate through each block
3187         until there are no more matches.
3188
3189         Fix broken useless-if-before-free script.
3190         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3191         the expression to match cast of argument to free-like function.
3192
3193 2008-04-29  Eric Blake  <ebb9@byu.net>
3194
3195         Use new header.
3196         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3197
3198 2008-04-29  Jim Meyering  <meyering@redhat.com>
3199
3200         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3201         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3202         by gnulib to exist and to declare e.g., inet_ntop.
3203         Don't include "inet_ntop.h", now removed.
3204
3205         * m4/arpa_inet_h.m4: Remove trailing blanks.
3206
3207 2008-04-29  Eric Blake  <ebb9@byu.net>
3208
3209         Silence valgrind on safe reads beyond potential array bounds.
3210         * lib/rawmemchr.valgrind: New file.
3211         * lib/strchrnul.valgrind: Likewise.
3212         * modules/rawmemchr (Files): Distribute new file.
3213         * modules/strchrnul (Files): Likewise.
3214         Suggested by Bruno Haible.
3215
3216 2008-04-29  Bruno Haible  <bruno@clisp.org>
3217
3218         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3219         (inet_ntop, inet_pton): Change portability warning's wording.
3220         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3221         Invoke gl_CHECK_NEXT_HEADERS.
3222         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3223         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3224         set ARPA_INET_H.
3225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3226         * modules/arpa_inet (Description): No longer only for systems that
3227         lack it.
3228         (Depends-on): Add include_next.
3229         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3230         HAVE_ARPA_INET_H.
3231
3232 2008-04-29  Jim Meyering  <meyering@redhat.com>
3233
3234         * modules/mkdir (License): Re-license as LGPLv2+.
3235
3236 2008-04-29  Bruno Haible  <bruno@clisp.org>
3237
3238         * modules/rawmemchr (Maintainer): Set to Eric.
3239         * modules/strchrnul (Maintainer): Likewise.
3240
3241 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3242
3243         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3244         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3245
3246         * modules/arpa_inet (arpa/inet.h): Use them.
3247
3248 2008-04-28  Eric Blake  <ebb9@byu.net>
3249
3250         Test getndelim2.
3251         * modules/getndelim2-tests: New file.
3252         * tests/test-getndelim2.c: Likewise.
3253         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3254         stream.
3255         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3256
3257         * MODULES.html.sh: Document new module.
3258
3259 2008-04-20  Bruno Haible  <bruno@clisp.org>
3260
3261         * lib/c-stack.c (die): Use raise.
3262         * modules/c-stack (Depends-on): Add raise.
3263
3264 2008-04-28  Bruno Haible  <bruno@clisp.org>
3265
3266         Expect rpmatch to be declared.
3267         * lib/yesno.c (rpmatch): Remove declaration.
3268
3269         Declare rpmatch.
3270         * lib/stdlib.in.h (rpmatch): New declaration.
3271         * lib/rpmatch.c: Include <stdlib.h> first.
3272         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3273         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3275         HAVE_RPMATCH.
3276         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3278         (Include): Set to <stdlib.h>.
3279         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3280         HAVE_RPMATCH.
3281         * NEWS: Document the change.
3282
3283 2008-04-28  Bruno Haible  <bruno@clisp.org>
3284
3285         Change rpmatch to use nl_langinfo when appropriate.
3286         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3287         (N_): New macro.
3288         (localized_pattern): New function/macro.
3289         (try): Remove match, nomatch arguments. Copy the pattern into safe
3290         memory before caching it.
3291         (rpmatch): Use localized_pattern. Add translator comments.
3292         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3293         Suggested by Eric Blake.
3294         * modules/rpmatch (Depends-on): Add stdbool.
3295
3296 2008-04-28  Eric Blake  <ebb9@byu.net>
3297
3298         Add rawmemchr module, matching glibc.
3299         * modules/string (Makefile.am): New indicator.
3300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3301         * lib/string.in.h (rawmemchr): Declare when appropriate.
3302         * modules/rawmemchr: New file.
3303         * m4/rawmemchr.m4: Likewise.
3304         * lib/rawmemchr.c: Likewise.
3305         * modules/rawmemchr-tests: Likewise.
3306         * tests/test-rawmemchr.c: Likewise.
3307         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3308         module.
3309         * modules/strchrnul (Depends-on): Add rawmemchr.
3310         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3311
3312         Whitespace cleanup.
3313         * tests/test-strchrnul.c: Reindent.
3314         * lib/strchrnul.c: Likewise.
3315
3316         Optimize and test strchrnul.
3317         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3318         * modules/strchrnul-tests: New file.
3319         * tests/test-strchrnul.c: Likewise.
3320
3321         Remove intprops dependency.
3322         * modules/memchr (Depends-on): Remove intprops.
3323         * modules/memrchr (Depends-on): Likewise.
3324         * modules/memchr2 (Depends-on): Likewise.
3325         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3326         * lib/memrchr.c (__memrchr): Likewise.
3327         * lib/memrchr2.c (memchr2): Likewise.
3328         Reported by Simon Josefsson.
3329
3330 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3331
3332         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3333         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3334
3335 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3336
3337         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3338
3339         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3340
3341         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3342
3343         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3344         declarations.
3345         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3346
3347         * m4/inet_pton.m4: Don't check for header files.
3348
3349         * m4/inet_ntop.m4: Don't check for header files.
3350
3351 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3352
3353         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3354         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3355         trigger for cygwin).
3356         Reported by Bruno Haible  <bruno@clisp.org>.
3357
3358 2008-04-28  Bruno Haible  <bruno@clisp.org>
3359
3360         * doc/posix-functions/strdup.texi: Mention mingw problem.
3361
3362 2008-04-27  Bruno Haible  <bruno@clisp.org>
3363
3364         * modules/stat-time-tests (Depends-on): Add sleep.
3365         * tests/test-stat-time.c (force_unlink): New function.
3366         (cleanup): Use it.
3367         (test_mtime): Remove the ctime related tests.
3368         (test_ctime): New function, containing the ctime related tests.
3369         (main): Call test_ctime, except on native Windows platforms.
3370
3371 2008-04-27  Bruno Haible  <bruno@clisp.org>
3372
3373         * lib/rpmatch.c (rpmatch): Add some comments.
3374         Reported by James Youngman <jay@gnu.org>.
3375
3376 2008-04-27  Bruno Haible  <bruno@clisp.org>
3377
3378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3379         quiet NaNs.
3380
3381 2008-04-27  Bruno Haible  <bruno@clisp.org>
3382
3383         Make test-yesno.sh work on mingw.
3384         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3385         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3386         (main): Set stdin to binary mode.
3387         * modules/yesno-tests (Depends-on): Add binary-io.
3388
3389 2008-04-27  Bruno Haible  <bruno@clisp.org>
3390
3391         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3392         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3393         argument that lie outside the IEEE 854 domain.
3394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3395         (gl_ISFINITE): Use it.
3396         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3397
3398 2008-04-27  Bruno Haible  <bruno@clisp.org>
3399
3400         Allow local renaming in config.h.
3401         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3402
3403 2008-04-27  Bruno Haible  <bruno@clisp.org>
3404
3405         * lib/memchr.c (__memchr): Change type of 'i'.
3406         * lib/memchr2.c (memchr2): Likewise.
3407
3408 2008-04-26  Eric Blake  <ebb9@byu.net>
3409         and Bruno Haible  <bruno@clisp.org>
3410
3411         Optimize and test memrchr.
3412         * modules/memrchr (Depends-on): Add intprops.
3413         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3414         * modules/memrchr-tests: New file.
3415         * tests/test-memrchr.c: New file.
3416
3417 2008-04-26  Bruno Haible  <bruno@clisp.org>
3418
3419         Add tentative support for DragonFly BSD.
3420         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3421         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3422         fp.
3423         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3424         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3425         * lib/fpurge.c (fpurge): Likewise.
3426         * lib/freadable.c (freaadable): Likewise.
3427         * lib/freadahead.c (freadahead): Likewise.
3428         * lib/freading.c (freading): Likewise.
3429         * lib/freadptr.c (freadptr): Likewise.
3430         * lib/freadseek.c (freadptrinc): Likewise.
3431         * lib/fseeko.c (fseeko): Likewise.
3432         * lib/fseterr.c (fseterr): Likewise.
3433         * lib/fwritable.c (fwritable): Likewise.
3434         * lib/fwriting.c (fwriting): Likewise.
3435
3436 2008-04-26  Bruno Haible  <bruno@clisp.org>
3437
3438         * lib/stdio-impl.h: New file.
3439         * lib/fbufmode.c: Include stdio-impl.h.
3440         (fbufmode): Use fp_, remove redundant #defines.
3441         * lib/fflush.c: Include stdio-impl.h.
3442         (clear_ungetc_buffer): Remove redundant #defines.
3443         * lib/fpurge.c: Include stdio-impl.h.
3444         (fpurge): Remove redundant #defines.
3445         * lib/freadable.c: Include stdio-impl.h.
3446         (freadable): Remove redundant #defines.
3447         * lib/freadahead.c: Include stdio-impl.h.
3448         (freadahead): Remove redundant #defines.
3449         * lib/freading.c: Include stdio-impl.h.
3450         (freading): Remove redundant #defines.
3451         * lib/freadptr.c: Include stdio-impl.h.
3452         (freadptr): Remove redundant #defines.
3453         * lib/freadseek.c: Include stdio-impl.h.
3454         (freadptrinc): Remove redundant #defines.
3455         * lib/fseeko.c: Include stdio-impl.h.
3456         (rpl_fseeko): Remove redundant #defines.
3457         * lib/fseterr.c: Include stdio-impl.h.
3458         (fseterr): Remove redundant #defines.
3459         * lib/fwritable.c: Include stdio-impl.h.
3460         (fwritable: Remove redundant #defines.
3461         * lib/fwriting.c: Include stdio-impl.h.
3462         (fwriting): Remove redundant #defines.
3463         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3464         * modules/fflush (Files): Likewise.
3465         * modules/fpurge (Files): Likewise.
3466         * modules/freadable (Files): Likewise.
3467         * modules/freadahead (Files): Likewise.
3468         * modules/freading (Files): Likewise.
3469         * modules/freadptr (Files): Likewise.
3470         * modules/freadseek (Files): Likewise.
3471         * modules/fseeko (Files): Likewise.
3472         * modules/fseterr (Files): Likewise.
3473         * modules/fwritable (Files): Likewise.
3474         * modules/fwriting (Files): Likewise.
3475
3476 2008-04-26  Bruno Haible  <bruno@clisp.org>
3477
3478         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3479         restore_seek_optimization, update_fpos_cache): New functions, extracted
3480         from rpl_fflush.
3481         (rpl_fflush): Use them.
3482         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3483         (gl_REPLACE_FFLUSH): Use it.
3484
3485 2008-04-26  Bruno Haible  <bruno@clisp.org>
3486
3487         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3488         on Solaris.
3489         * tests/test-xstrtoimax.sh: Likewise.
3490         * tests/test-xstrtoumax.sh: Likewise.
3491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3492
3493 2008-04-26  Bruno Haible  <bruno@clisp.org>
3494
3495         * modules/memchr-tests: New file.
3496         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3497
3498 2008-04-26  Eric Blake  <ebb9@byu.net>
3499             Bruno Haible  <bruno@clisp.org>
3500
3501         * lib/memchr.c: Include intprops.h.
3502         (__memchr): Optimize parallel detection of matching bytes. Rename local
3503         variables. Add explanatory comments.
3504
3505 2008-04-26  Bruno Haible  <bruno@clisp.org>
3506
3507         Fix module 'memchr', broken since 2000-10-28.
3508         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3509
3510 2008-04-26  Bruno Haible  <bruno@clisp.org>
3511
3512         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3513         comments.
3514
3515 2008-04-25  Eric Blake  <ebb9@byu.net>
3516
3517         Use native fstatat on cygwin 1.7.0.
3518         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3519         first.
3520
3521 2008-04-23  Eric Blake  <ebb9@byu.net>
3522
3523         Improve memchr2 performance.
3524         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3525         NUL bytes.
3526         * modules/memchr2 (Depends-on): Use intprops.h.
3527
3528 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3529
3530         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3531         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3532         <blp@cs.stanford.edu>.
3533
3534 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3535
3536         * lib/arpa_inet.in.h: New file.
3537
3538         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3539         (Makefile.am): Sed in substitute header file.
3540
3541         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3542         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3543
3544         * modules/inet_ntop (configure.ac): Use
3545         gl_ARPA_INET_MODULE_INDICATOR.
3546
3547         * modules/inet_pton (configure.ac): Use
3548         gl_ARPA_INET_MODULE_INDICATOR.
3549
3550 2008-04-22  Jim Meyering  <meyering@redhat.com>
3551
3552         * modules/verify (License): Re-license as LGPLv2+.
3553
3554 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3555
3556         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3557         parameter to void* as per POSIX standard (MinGW uses char*).
3558
3559 2008-04-21  Bruno Haible  <bruno@clisp.org>
3560
3561         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3562         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3563         Define to replacements if REPLACE_ISWCNTRL is 1.
3564         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3565         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3566         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3567         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3568         what it fixes.
3569         * doc/posix-functions/iswalpha.texi: Likewise.
3570         * doc/posix-functions/iswblank.texi: Likewise.
3571         * doc/posix-functions/iswcntrl.texi: Likewise.
3572         * doc/posix-functions/iswdigit.texi: Likewise.
3573         * doc/posix-functions/iswgraph.texi: Likewise.
3574         * doc/posix-functions/iswlower.texi: Likewise.
3575         * doc/posix-functions/iswprint.texi: Likewise.
3576         * doc/posix-functions/iswpunct.texi: Likewise.
3577         * doc/posix-functions/iswspace.texi: Likewise.
3578         * doc/posix-functions/iswupper.texi: Likewise.
3579         * doc/posix-functions/iswxdigit.texi: Likewise.
3580         Reported by Alain Guibert.
3581
3582 2008-04-21  Bruno Haible  <bruno@clisp.org>
3583
3584         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3585         Patch by Alain Guibert.
3586
3587 2008-04-21  Bruno Haible  <bruno@clisp.org>
3588
3589         Fix test failures on mingw.
3590         * tests/test-xstrtol.c (print_no_progname): New function.
3591         (main): Install it in error_print_progname hook.
3592         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3593         * tests/test-xstrtoimax.sh: Likewise.
3594         * tests/test-xstrtoumax.sh: Likewise.
3595
3596 2008-04-21  Bruno Haible  <bruno@clisp.org>
3597
3598         Fix test failure on mingw.
3599         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3600
3601 2008-04-21  Bruno Haible  <bruno@clisp.org>
3602
3603         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3604         Actually assign a value.
3605
3606 2008-04-20  Bruno Haible  <bruno@clisp.org>
3607
3608         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3609         take 2.
3610         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3611         'canonicalize-lgpl' module is also used.
3612         * lib/canonicalize-lgpl.c: Undo last change.
3613         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3614
3615 2008-04-20  Bruno Haible  <bruno@clisp.org>
3616
3617         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3618         config.h. Provide _mkdir based fallback for mingw.
3619         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3620         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3622         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3623         rather than defining mkdir in config.h.
3624         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3625         (gl_SYS_STAT_H_DEFAULTS): New macro.
3626         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3627         HAVE_IO_H any more.
3628         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3629         HAVE_DECL_MKDIR and HAVE_IO_H.
3630
3631 2008-04-20  Bruno Haible  <bruno@clisp.org>
3632
3633         * lib/isapipe.c: Port to native Windows platforms.
3634
3635 2008-04-20  Bruno Haible  <bruno@clisp.org>
3636
3637         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3638
3639 2008-04-21  Eric Blake  <ebb9@byu.net>
3640
3641         Work around preprocessors that don't handle UINTMAX_MAX.
3642         * lib/memchr2.c (memchr2): Avoid embedded #if.
3643         Reported by Alain Guibert, fix suggested by Bruno Haible.
3644
3645 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3646
3647         * doc/posix-functions/strftime.texi (strftime): Explain better
3648         Windows incompatibility.  Suggested by Micah Cowan
3649         <micah@cowan.name>.
3650
3651 2008-04-20  Bruno Haible  <bruno@clisp.org>
3652
3653         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3654         unistr/u8-mblen.
3655
3656 2008-04-20  Bruno Haible  <bruno@clisp.org>
3657
3658         Fix test failure on platforms with non-GNU iconv.
3659         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3660         (U_TO_U8): Use it, rather than u16_to_u8.
3661         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3662         units at the end of the input string.
3663         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3664
3665 2008-04-20  Bruno Haible  <bruno@clisp.org>
3666
3667         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3668         when the resulting length is 0.
3669         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3670
3671 2008-04-20  Bruno Haible  <bruno@clisp.org>
3672
3673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3674         works.
3675         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3676
3677 2008-04-20  Bruno Haible  <bruno@clisp.org>
3678
3679         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3680         * modules/tsearch-tests (configure.ac): Test for initstate function.
3681
3682 2008-04-20  Bruno Haible  <bruno@clisp.org>
3683
3684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3685         for nlink_t if missing.
3686         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3687
3688 2008-04-19  Bruno Haible  <bruno@clisp.org>
3689
3690         Work around snprintf bug on Linux libc5.
3691         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3693         gl_SNPRINTF_SIZE1.
3694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3695         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3696         that test failed.
3697         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3698         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3699         * modules/snprintf (Files): Add m4/printf.m4.
3700         * modules/vsnprintf (Files): Likewise.
3701         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3702         * doc/posix-functions/vsnprintf.texi: Likewise.
3703
3704 2008-04-19  Bruno Haible  <bruno@clisp.org>
3705
3706         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3707         from 0.0058 to less than 10^-7.
3708
3709 2008-04-19  Bruno Haible  <bruno@clisp.org>
3710
3711         Fix rounding when a precision is given.
3712         * lib/vasnprintf.c (is_borderline): New function.
3713         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3714         9...9x.
3715         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3716         %e, %g.
3717         * tests/test-vasprintf-posix.c (test_function): Likewise.
3718         * tests/test-snprintf-posix.h (test_function): Likewise.
3719         * tests/test-sprintf-posix.h (test_function): Likewise.
3720         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3721         * tests/test-printf-posix.h (test_function): Likewise.
3722         * tests/test-printf-posix.output: Update.
3723         Reported by John Darrington <john@darrington.wattle.id.au> via
3724         Ben Pfaff <blp@cs.stanford.edu>.
3725
3726 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3727
3728         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3729         Suggested by Bruno Haible <bruno@clisp.org>.
3730
3731 2008-04-17  Bruno Haible  <bruno@clisp.org>
3732
3733         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3734         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3735         implementation.
3736         Patch by Bruce Merry <bmerry@gmail.com>.
3737
3738 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3739
3740         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3741         doesn't work under Windows.
3742
3743 2008-04-16  Bruno Haible  <bruno@clisp.org>
3744
3745         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3746         New macros.
3747         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3748         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3749         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3750         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3751         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3752         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3753         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3754         macros.
3755         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3756         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3757         Northern Sotho, Uighur.
3758
3759 2008-04-16  Bruno Haible  <bruno@clisp.org>
3760
3761         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3762         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3763         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3764         Reported by Daniel Bergström <daniel@octocode.com>.
3765
3766 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3767             Bruno Haible  <bruno@clisp.org>
3768
3769         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3770         function.
3771         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3772         New functions, mostly extracted from gl_locale_name_default.
3773         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3774
3775 2008-04-16  Eric Blake  <ebb9@byu.net>
3776
3777         Adjust strtod detection to catch glibc 2.7 bug.
3778         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3779         Reported by John Gatewood Ham.
3780
3781 2008-04-16  Bruno Haible  <bruno@clisp.org>
3782
3783         Add tentative support for Linux libc5.
3784         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3785         * lib/fpurge.c (fpurge): Likewise.
3786         * lib/freadable.c (freadable): Likewise.
3787         * lib/freadahead.c (freadahead): Likewise.
3788         * lib/freading.c (freading): Likewise.
3789         * lib/freadptr.c (freadptr): Likewise.
3790         * lib/freadseek.c (freadptrinc): Likewise.
3791         * lib/fseeko.c (rpl_fseeko): Likewise.
3792         * lib/fseterr.c (fseterr): Likewise.
3793         * lib/fwritable.c (fwritable): Likewise.
3794         * lib/fwriting.c (fwriting): Likewise.
3795         Reported by Alain Guibert <alguibert+bts@free.fr>.
3796
3797 2008-04-15  Bruno Haible  <bruno@clisp.org>
3798
3799         * modules/mathl (configure.ac): Define module indicator.
3800
3801 2008-04-15  Bruno Haible  <bruno@clisp.org>
3802
3803         * lib/logl.c (logl): Remove unused variables.
3804
3805 2008-04-15  Bruno Haible  <bruno@clisp.org>
3806
3807         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3808         fails.
3809
3810 2008-04-15  Bruno Haible  <bruno@clisp.org>
3811
3812         * lib/trim.c (trim2): Fix argument of isspace() macro.
3813
3814 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3815
3816         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3817         to 0.
3818         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3819
3820 2008-04-14  Bruno Haible  <bruno@clisp.org>
3821
3822         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3823         AC_LANG_PROGRAM argument.
3824         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3825         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3828         * m4/math_h.m4 (gl_MATH_H): Likewise.
3829         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3831         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3832         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3833         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3834         * m4/regex.m4 (gl_REGEX): Likewise.
3835         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3836         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3840         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3842         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3843
3844 2008-04-14  Jim Meyering  <meyering@redhat.com>
3845
3846         test-strtod: fix typos: s/abs/fabs/
3847         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3848
3849 2008-04-13  Bruno Haible  <bruno@clisp.org>
3850
3851         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3852         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3853         module is also used and while not building the reloc-wrapper.
3854
3855 2008-04-13  Bruno Haible  <bruno@clisp.org>
3856
3857         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3858
3859 2008-04-13  Bruno Haible  <bruno@clisp.org>
3860
3861         Fix AIX compilation failure introduced on 2008-04-02.
3862         * tests/test-frexp.c (exp): Undefine before redefining.
3863         * tests/test-frexpl.c (exp): Likewise.
3864
3865 2008-04-13  Bruno Haible  <bruno@clisp.org>
3866
3867         Work around a HP-UX stdio bug.
3868         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3869         * tests/test-ftello.c (main): Likewise.
3870         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3871         * doc/posix-functions/ftello.texi: Likewise.
3872
3873 2008-04-13  Bruno Haible  <bruno@clisp.org>
3874
3875         Make test-signbit pass on HP-UX/hppa.
3876         * tests/test-signbit.c (minus_zerol): New variable.
3877         (test_signbitl): Use it.
3878
3879 2008-04-13  Bruno Haible  <bruno@clisp.org>
3880
3881         Make truncl work on OSF/1 4.0.
3882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3883         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3884         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3886         HAVE_DECL_TRUNCL.
3887         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3888         HAVE_DECL_TRUNCL.
3889         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3890
3891 2008-04-13  Bruno Haible  <bruno@clisp.org>
3892
3893         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3894
3895 2008-04-13  Bruno Haible  <bruno@clisp.org>
3896
3897         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3898         expression, so as to avoid HP-UX 11 cc compiler bug.
3899
3900 2008-04-13  Bruno Haible  <bruno@clisp.org>
3901
3902         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3903
3904 2008-04-13  Bruno Haible  <bruno@clisp.org>
3905
3906         * lib/git-merge-changelog.c: Remove empty declaration outside of
3907         functions.
3908
3909 2008-04-13  Bruno Haible  <bruno@clisp.org>
3910
3911         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3912
3913 2008-04-13  Bruno Haible  <bruno@clisp.org>
3914
3915         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3916         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3917         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3918         also if it exists but lacks definitions of the SHUT_* macros.
3919         * modules/sys_socket (Description): Update.
3920         Reported by Elbert Pol <e.pol@chello.nl>.
3921
3922 2008-04-13  Bruno Haible  <bruno@clisp.org>
3923
3924         * lib/localcharset.c (OS2): Don't redefine if already defined.
3925         Reported by Elbert Pol <e.pol@chello.nl>.
3926
3927 2008-04-13  Bruno Haible  <bruno@clisp.org>
3928
3929         * lib/binary-io.h [__EMX__]: Include <io.h>.
3930         Reported by Elbert Pol <e.pol@chello.nl>.
3931
3932 2008-04-12  Bruno Haible  <bruno@clisp.org>
3933
3934         * lib/fpucw.h: Enable the definitions also for x86_64.
3935         Needed for NetBSD/x86_64.
3936         Reported by Thomas Klausner <tk@giga.or.at>.
3937
3938 2008-04-12  Bruno Haible  <bruno@clisp.org>
3939
3940         * tests/test-strtod.c: Include isnand.h.
3941         (main): Use isnand instead of isnan.
3942         Reported by Jim Meyering.
3943
3944 2008-04-12  Bruno Haible  <bruno@clisp.org>
3945
3946         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3947         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3948
3949 2008-04-12  Jim Meyering  <meyering@redhat.com>
3950
3951         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3952
3953 2008-04-12  Bruno Haible  <bruno@clisp.org>
3954
3955         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3956         Reported by Elbert Pol <e.pol@chello.nl>.
3957
3958 2008-04-12  Eric Blake  <ebb9@byu.net>
3959
3960         Work around Solaris 10 math.h bug.
3961         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3962         (gl_MATH_H_DEFAULTS): Set up default.
3963         * modules/math (Makefile.am): Replace new indicators.
3964         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3965         * tests/test-math.c (main): Test this.
3966         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3967         * doc/posix-headers/math.texi (math.h): Mention bug.
3968         Reported by Nelson H. F. Beebe and Jim Meyering.
3969
3970 2008-04-11  Bruno Haible  <bruno@clisp.org>
3971
3972         Adapt to future versions of Apple GCC.
3973         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3974         Reported by Peter O'Gorman <peter@pogma.com>.
3975
3976 2008-04-11  Bruno Haible  <bruno@clisp.org>
3977
3978         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3979
3980 2008-04-11  Bruno Haible  <bruno@clisp.org>
3981
3982         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3983
3984         * modules/getaddrinfo-tests (Makefile.am): Define
3985         test_getaddrinfo_LDADD.
3986
3987 2008-04-11  Bruno Haible  <bruno@clisp.org>
3988
3989         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3990         (init): Fix syntax error.
3991         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3992         is declared.
3993
3994 2008-04-11  Bruno Haible  <bruno@clisp.org>
3995
3996         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3997         * modules/glob (Depends-on): Add stdbool.
3998
3999 2008-04-11  Bruno Haible  <bruno@clisp.org>
4000
4001         * lib/trim.c: Include <string.h>.
4002
4003 2008-04-11  Eric Blake  <ebb9@byu.net>
4004
4005         Avoid compile failure on OS/2.
4006         * lib/regex_internal.h (internal_function): Disable optimization
4007         on OS/2 (__EMX__), where it caused compiler error.
4008         Reported by Elbert Pol.
4009
4010 2008-04-11  Bruno Haible  <bruno@clisp.org>
4011
4012         Flush the standard error stream before aborting. Needed on mingw.
4013         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4014         * tests/test-array_list.c (ASSERT): Likewise.
4015         * tests/test-array_oset.c (ASSERT): Likewise.
4016         * tests/test-avltree_list.c (ASSERT): Likewise.
4017         * tests/test-avltree_oset.c (ASSERT): Likewise.
4018         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4019         * tests/test-binary-io.c (ASSERT): Likewise.
4020         * tests/test-byteswap.c (ASSERT): Likewise.
4021         * tests/test-c-ctype.c (ASSERT): Likewise.
4022         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4023         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4024         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4025         * tests/test-c-strstr.c (ASSERT): Likewise.
4026         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4027         * tests/test-canonicalize.c (ASSERT): Likewise.
4028         * tests/test-carray_list.c (ASSERT): Likewise.
4029         * tests/test-ceilf1.c (ASSERT): Likewise.
4030         * tests/test-ceilf2.c (ASSERT): Likewise.
4031         * tests/test-ceill.c (ASSERT): Likewise.
4032         * tests/test-count-one-bits.c (ASSERT): Likewise.
4033         * tests/test-fbufmode.c (ASSERT): Likewise.
4034         * tests/test-fflush2.c (ASSERT): Likewise.
4035         * tests/test-floorf1.c (ASSERT): Likewise.
4036         * tests/test-floorf2.c (ASSERT): Likewise.
4037         * tests/test-floorl.c (ASSERT): Likewise.
4038         * tests/test-fopen.c (ASSERT): Likewise.
4039         * tests/test-fpending.c (ASSERT): Likewise.
4040         * tests/test-fprintf-posix.c (ASSERT): Likewise.
4041         * tests/test-fpurge.c (ASSERT): Likewise.
4042         * tests/test-freadable.c (ASSERT): Likewise.
4043         * tests/test-freadahead.c (ASSERT): Likewise.
4044         * tests/test-freading.c (ASSERT): Likewise.
4045         * tests/test-freadptr.c (ASSERT): Likewise.
4046         * tests/test-freadptr2.c (ASSERT): Likewise.
4047         * tests/test-freadseek.c (ASSERT): Likewise.
4048         * tests/test-freopen.c (ASSERT): Likewise.
4049         * tests/test-frexp.c (ASSERT): Likewise.
4050         * tests/test-frexpl.c (ASSERT): Likewise.
4051         * tests/test-fseek.c (ASSERT): Likewise.
4052         * tests/test-fseeko.c (ASSERT): Likewise.
4053         * tests/test-fstrcmp.c (ASSERT): Likewise.
4054         * tests/test-ftell.c (ASSERT): Likewise.
4055         * tests/test-ftello.c (ASSERT): Likewise.
4056         * tests/test-func.c (ASSERT): Likewise.
4057         * tests/test-fwritable.c (ASSERT): Likewise.
4058         * tests/test-fwriting.c (ASSERT): Likewise.
4059         * tests/test-getdelim.c (ASSERT): Likewise.
4060         * tests/test-getline.c (ASSERT): Likewise.
4061         * tests/test-i-ring.c (ASSERT): Likewise.
4062         * tests/test-iconv-utf.c (ASSERT): Likewise.
4063         * tests/test-iconv.c (ASSERT): Likewise.
4064         * tests/test-isfinite.c (ASSERT): Likewise.
4065         * tests/test-isnand.c (ASSERT): Likewise.
4066         * tests/test-isnanf.c (ASSERT): Likewise.
4067         * tests/test-isnanl.h (ASSERT): Likewise.
4068         * tests/test-ldexpl.c (ASSERT): Likewise.
4069         * tests/test-linked_list.c (ASSERT): Likewise.
4070         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4071         * tests/test-localename.c (ASSERT): Likewise.
4072         * tests/test-lseek.c (ASSERT): Likewise.
4073         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4074         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4075         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4076         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4077         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4078         * tests/test-mbschr.c (ASSERT): Likewise.
4079         * tests/test-mbscspn.c (ASSERT): Likewise.
4080         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4081         * tests/test-mbspbrk.c (ASSERT): Likewise.
4082         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4083         * tests/test-mbsrchr.c (ASSERT): Likewise.
4084         * tests/test-mbsspn.c (ASSERT): Likewise.
4085         * tests/test-mbsstr1.c (ASSERT): Likewise.
4086         * tests/test-mbsstr2.c (ASSERT): Likewise.
4087         * tests/test-mbsstr3.c (ASSERT): Likewise.
4088         * tests/test-memchr2.c (ASSERT): Likewise.
4089         * tests/test-memmem.c (ASSERT): Likewise.
4090         * tests/test-open.c (ASSERT): Likewise.
4091         * tests/test-printf-frexp.c (ASSERT): Likewise.
4092         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4093         * tests/test-printf-posix.c (ASSERT): Likewise.
4094         * tests/test-quotearg.c (ASSERT): Likewise.
4095         * tests/test-rbtree_list.c (ASSERT): Likewise.
4096         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4097         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4098         * tests/test-round1.c (ASSERT): Likewise.
4099         * tests/test-roundf1.c (ASSERT): Likewise.
4100         * tests/test-roundl.c (ASSERT): Likewise.
4101         * tests/test-signbit.c (ASSERT): Likewise.
4102         * tests/test-sleep.c (ASSERT): Likewise.
4103         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4104         * tests/test-snprintf.c (ASSERT): Likewise.
4105         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4106         * tests/test-stat-time.c (ASSERT): Likewise.
4107         * tests/test-strcasestr.c (ASSERT): Likewise.
4108         * tests/test-strerror.c (ASSERT): Likewise.
4109         * tests/test-striconv.c (ASSERT): Likewise.
4110         * tests/test-striconveh.c (ASSERT): Likewise.
4111         * tests/test-striconveha.c (ASSERT): Likewise.
4112         * tests/test-strsignal.c (ASSERT): Likewise.
4113         * tests/test-strstr.c (ASSERT): Likewise.
4114         * tests/test-strtod.c (ASSERT): Likewise.
4115         * tests/test-trunc1.c (ASSERT): Likewise.
4116         * tests/test-trunc2.c (ASSERT): Likewise.
4117         * tests/test-truncf1.c (ASSERT): Likewise.
4118         * tests/test-truncf2.c (ASSERT): Likewise.
4119         * tests/test-truncl.c (ASSERT): Likewise.
4120         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4121         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4122         * tests/test-vasnprintf.c (ASSERT): Likewise.
4123         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4124         * tests/test-vasprintf.c (ASSERT): Likewise.
4125         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4126         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4127         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4128         * tests/test-vsnprintf.c (ASSERT): Likewise.
4129         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4130         * tests/test-wcwidth.c (ASSERT): Likewise.
4131         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4132         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4133         * tests/test-xvasprintf.c (ASSERT): Likewise.
4134         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4135         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4136         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4137         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4138         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4139         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4140         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4141         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4142         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4143         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4144         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4145         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4146         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4147         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4148         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4149         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4150         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4151         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4152         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4153         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4154         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4155         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4156         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4157         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4158         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4159         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4160         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4161         * tests/unictype/test-combining.c (ASSERT): Likewise.
4162         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4163         * tests/unictype/test-digit.c (ASSERT): Likewise.
4164         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4165         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4166         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4167         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4168         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4169         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4170         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4171         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4172         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4173         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4174         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4175         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4176         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4177         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4178         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4179         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4180         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4181         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4182         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4183         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4184         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4185         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4186         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4187         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4188         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4189         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4190         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4191         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4192         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4193         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4194         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4195         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4196         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4197         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4198         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4199         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4200         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4201         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4202         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4203         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4204         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4205         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4206         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4207         Reported by Eric Blake.
4208
4209 2008-04-11  Bruno Haible  <bruno@clisp.org>
4210
4211         * lib/wchar.in.h: Tweak comment.
4212
4213 2008-04-11  Bruno Haible  <bruno@clisp.org>
4214
4215         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4216         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4217         gl_COMMON.
4218         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4219
4220 2008-04-11  Bruno Haible  <bruno@clisp.org>
4221
4222         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4223
4224 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4225
4226         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4227         of attempting to use non-existing /dev/*random.  Based on patch
4228         from Adam Strzelecki <ono@java.pl> in
4229         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4230
4231 2008-04-08  Bruno Haible  <bruno@clisp.org>
4232
4233         Add tentative support for emx+gcc.
4234         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4235         * lib/fpurge.c (fpurge): Likewise.
4236         * lib/freadable.c (freadable): Likewise.
4237         * lib/freadahead.c (freadahead): Likewise.
4238         * lib/freading.c (freading): Likewise.
4239         * lib/freadptr.c (freadptr): Likewise.
4240         * lib/freadseek.c (freadptrinc): Likewise.
4241         * lib/fseeko.c (rpl_fseeko): Likewise.
4242         * lib/fseterr.c (fseterr): Likewise.
4243         * lib/fwritable.c (fwritable): Likewise.
4244         * lib/fwriting.c (fwriting): Likewise.
4245         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4246
4247 2008-04-09  Eric Blake  <ebb9@byu.net>
4248
4249         Avoid some autoconf warnings.
4250         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4251         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4252         * m4/afs.m4 (gl_AFS): Likewise.
4253         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4254         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4256         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4257         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4258         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4259         (AC_CHECK_DECLS_ONCE): Likewise.
4260         Rename file...
4261         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4262         gnulib-tool requires autoconf 2.59 or better.
4263         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4264
4265 2008-04-08  Eric Blake  <ebb9@byu.net>
4266
4267         Use 'git describe --match' if present (added in git 1.5.5).
4268         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4269         if possible.
4270
4271 2008-04-08  Bruno Haible  <bruno@clisp.org>
4272
4273         Add tentative support for OpenServer.
4274         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4275         _ptr, _cnt.
4276         * lib/fpurge.c (fpurge): Likewise.
4277         * lib/freadable.c (freadable): Likewise.
4278         * lib/freadahead.c (freadahead): Likewise.
4279         * lib/freading.c (freading): Likewise.
4280         * lib/freadptr.c (freadptr): Likewise.
4281         * lib/freadseek.c (freadptrinc): Likewise.
4282         * lib/fseeko.c (rpl_fseeko): Likewise.
4283         * lib/fseterr.c (fseterr): Likewise.
4284         * lib/fwritable.c (fwritable): Likewise.
4285         * lib/fwriting.c (fwriting): Likewise.
4286         Reported by Roger Cornelius <rac@tenzing.org> and
4287         Brian K. White <brian@aljex.com>.
4288
4289 2008-04-06  Jim Meyering  <meyering@redhat.com>
4290
4291         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4292
4293 2008-04-06  Bruno Haible  <bruno@clisp.org>
4294
4295         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4296         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4297         * tests/test-printf-posix.sh: Likewise.
4298         * tests/test-vfprintf-posix.sh: Likewise.
4299         * tests/test-vprintf-posix.sh: Likewise.
4300         * tests/test-xprintf-posix.sh: Likewise.
4301
4302 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4303
4304         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4305         hide error from 'ls', needed on OS/2.
4306         Report by Elbert Pol <elbert.pol@gmail.com>.
4307
4308 2008-04-04  Eric Blake  <ebb9@byu.net>
4309
4310         Make test-fseeko.c failures meaningful.
4311         * tests/test-fseeko.c: Print line number on failure.
4312         * tests/test-fseek.c: Likewise.
4313         Reported by Nelson H. F. Beebe.
4314
4315         Improve strtod bug detection check.
4316         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4317         required for Solaris 10.
4318         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4319
4320 2008-04-04  Bruno Haible  <bruno@clisp.org>
4321
4322         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4323         by m4/setenv.m4.
4324
4325 2008-04-03  Eric Blake  <ebb9@byu.net>
4326
4327         Ensure sane .version contents.
4328         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4329         version string.
4330         * build-aux/git-version-gen: Improve documentation.
4331
4332         Make GNU make output nicer.
4333         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4334         MAKECMDGOALS to enforce message for all command line targets.  Set
4335         srcdir for use in maint.mk.
4336
4337         Another maintainer tweak.
4338         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4339         a target that regenerates version.
4340
4341 2008-04-03  Jim Meyering  <meyering@redhat.com>
4342
4343         vc-list-files: don't cause coreutils "make po-check" failure
4344         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4345
4346 2008-04-03  Eric Blake  <ebb9@byu.net>
4347
4348         Allow VPATH usage of vc-list-files.
4349         * build-aux/vc-list-files (scriptversion): Add timestamp.
4350         (options): Add --help, --version, -C.
4351         (CVS): Support installed cvsu.
4352
4353 2008-04-02  Bruno Haible  <bruno@clisp.org>
4354
4355         Avoid some "statement with no effect" warnings from gcc.
4356         * tests/test-wctype.c (main): Explicitly ignore unused values.
4357         Reported by Jim Meyering.
4358
4359 2008-04-02  Jim Meyering  <meyering@redhat.com>
4360
4361         Avoid some warnings from "gcc -Wshadow".
4362         * tests/test-frexp.c (exp): Define to a different identifier.
4363         * tests/test-frexpl.c (exp): Likewise.
4364
4365 2008-04-03  Jim Meyering  <meyering@redhat.com>
4366
4367         bootstrap: remove dangling *.[ch] symlinks from lib
4368         * build-aux/bootstrap [dangling symlink removal]: Move find's
4369         -depth option to precede all others, to avoid a warning.
4370         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4371
4372 2008-04-02  Bruno Haible  <bruno@clisp.org>
4373
4374         Avoid some warnings from "gcc -Wshadow".
4375         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4376         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4377         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4378         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4379         Reported by Jim Meyering.
4380
4381 2008-04-01  Bruno Haible  <bruno@clisp.org>
4382
4383         Fix test to work on IRIX 6.5 with cc.
4384         * tests/test-math.c (numeric_equal): New function.
4385         (main): Use it.
4386
4387 2008-04-01  Bruno Haible  <bruno@clisp.org>
4388
4389         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4390
4391 2008-04-01  Bruno Haible  <bruno@clisp.org>
4392
4393         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4394         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4395         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4396         (Depends-on): Remove math.
4397
4398         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4399         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4400         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4401         (Depends-on): Remove math.
4402
4403         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4404         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4405         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4406         (Depends-on): Remove math.
4407         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4408         (Depends-on): Remove math.
4409
4410         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4411         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4412         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4413         (Depends-on): Remove math.
4414         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4415         (Depends-on): Remove math.
4416
4417         * tests/test-round1.c: Include nan.h.
4418         (main): Use NaNd instead of NAN.
4419         * modules/round-tests (Files): Add tests/nan.h.
4420
4421         * tests/test-trunc1.c: Include nan.h.
4422         (main): Use NaNd instead of NAN.
4423         * modules/trunc-tests (Files): Add tests/nan.h.
4424
4425         * tests/test-roundf1.c: Include nan.h.
4426         (main): Use NaNf instead of NAN.
4427         * modules/roundf-tests (Files): Add tests/nan.h.
4428
4429         * tests/test-truncf1.c: Include nan.h.
4430         (main): Use NaNf instead of NAN.
4431         * modules/truncf-tests (Files): Add tests/nan.h.
4432
4433         * tests/test-ceilf1.c: Include nan.h.
4434         (main): Use NaNf instead of NAN.
4435         * modules/ceilf-tests (Files): Add tests/nan.h.
4436
4437         * tests/test-floorf1.c: Include nan.h.
4438         (main): Use NaNf instead of NAN.
4439         * modules/floorf-tests (Files): Add tests/nan.h.
4440
4441         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4442         (main): Use NaNf instead of NAN.
4443         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4444
4445         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4446         (main): Use NaNd instead of NAN.
4447         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4448
4449         * tests/test-frexp.c: Include nan.h.
4450         (main): Use NaNd instead of NAN.
4451         * modules/frexp-tests (Files): Add tests/nan.h.
4452
4453         * lib/isnan.c: Don't include <math.h>.
4454         (FUNC): Don't use NAN macro.
4455         * modules/isnand-nolibm (Depends-on): Remove math.
4456         * modules/isnanf-nolibm (Depends-on): Remove math.
4457         * modules/isnanl (Depends-on): Remove math.
4458         * modules/isnanl-nolibm (Depends-on): Remove math.
4459
4460         * tests/nan.h: New file.
4461
4462 2008-04-01  Eric Blake  <ebb9@byu.net>
4463
4464         Fix typos.
4465         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4466         values to be the right type.
4467
4468         For now, cater to gnulib strtod inaccuracies.
4469         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4470         fractional results.  While not as nice from a QoI perspective, it
4471         is a quicker patch than correctly implementing decimal to binary
4472         rounding.
4473
4474 2008-03-31  Eric Blake  <ebb9@byu.net>
4475
4476         Guarantee a definition of NAN.
4477         * lib/math.in.h (NAN): Define if missing.
4478         * tests/test-math.c (main): Test it.
4479         * doc/posix-headers/math.texi (math.h): Document this.
4480         * lib/isnan.c (rpl_isnand): Use it.
4481         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4482         * tests/test-floorf1.c (NaN): Likewise.
4483         * tests/test-frexp.c (NaN): Likewise.
4484         * tests/test-isnand.c (NaN): Likewise.
4485         * tests/test-isnanf.c (NaN): Likewise.
4486         * tests/test-round1.c (NaN): Likewise.
4487         * tests/test-roundf1.c (NaN): Likewise.
4488         * tests/test-snprintf-posix.h (NaN): Likewise.
4489         * tests/test-sprintf-posix.h (NaN): Likewise.
4490         * tests/test-trunc1.c (NaN): Likewise.
4491         * tests/test-truncf1.c (NaN): Likewise.
4492         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4493         * tests/test-vasprintf-posix.c (NaN): Likewise.
4494         * modules/isnand-nolibm (Depends-on): Add math.
4495         * modules/isnanf-nolibm (Depends-on): Likewise.
4496         * modules/isnanl (Depends-on): Likewise.
4497         * modules/isnanl-nolibm (Depends-on): Likewise.
4498         * modules/snprintf-posix-tests (Depends-on): Likewise.
4499         * modules/sprintf-posix-tests (Depends-on): Likewise.
4500         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4501         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4502         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4503         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4504
4505 2008-03-31  Bruno Haible  <bruno@clisp.org>
4506
4507         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4508         * doc/posix-functions/strtod.texi: Likewise.
4509
4510 2008-03-31  Bruno Haible  <bruno@clisp.org>
4511
4512         * tests/test-strtod.c (main): Don't use C99 syntax.
4513
4514 2008-03-31  Bruno Haible  <bruno@clisp.org>
4515
4516         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4517         Reported by Eric Blake.
4518
4519 2008-03-31  Jim Meyering  <meyering@redhat.com>
4520
4521         Don't compare actual signbit return values.
4522         * tests/test-strtod.c (main): Rather, compare only their
4523         zero/non-zero nature.
4524
4525 2008-03-31  Eric Blake  <ebb9@byu.net>
4526
4527         More strtod documentation.
4528         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4529         failures as distinct bugs.
4530
4531 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4532
4533         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4534         Problem reported by Erik Benada in
4535         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4536
4537 2008-03-30  Bruno Haible  <bruno@clisp.org>
4538
4539         * tests/test-strtod.c: Add comments about which assertion fails on which
4540         platform.
4541         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4542
4543 2008-03-30  Eric Blake  <ebb9@byu.net>
4544
4545         Test signbit behavior on zeros.
4546         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4547         (test_signbitd, test_signbitl): Likewise.
4548
4549         More strtod touchups.
4550         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4551         sign of negative underflow, for now.  Use .5, not .1.
4552         * doc/posix-functions/strtod.texi (strtod): Mention these
4553         limitations.
4554         Reported by Jim Meyering.
4555
4556 2008-03-30  Bruno Haible  <bruno@clisp.org>
4557
4558         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4559         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4560
4561 2008-03-30  Bruno Haible  <bruno@clisp.org>
4562
4563         Avoid failure when attempting to return empty iconv results on some
4564         platforms.
4565         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4566         allocation, don't report ENOMEM when the resulting string is empty.
4567
4568 2008-03-30  Bruno Haible  <bruno@clisp.org>
4569
4570         Fix buffer overrun.
4571         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4572         Don't consider the width for tmp_length. Check count against tmp_length
4573         before doing the padding. Ensure enough allocation during padding.
4574
4575 2008-03-30  Eric Blake  <ebb9@byu.net>
4576
4577         strtod touchups.
4578         * lib/strtod.c (strtod): Avoid compiler warnings.
4579         Reported by Jim Meyering.
4580
4581 2008-03-30  Bruno Haible  <bruno@clisp.org>
4582
4583         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4584         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4585         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4586         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4587         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4588         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4589         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4590         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4591
4592         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4593         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4594         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4595         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4596         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4597         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4598         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4599         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4600
4601         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4602         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4603         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4604         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4605         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4606         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4607         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4608         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4609
4610         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4611         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4612
4613         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4614         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4615
4616         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4617         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4618
4619         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4621         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4622
4623         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4625         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4626
4627         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4629         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4630
4631         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4633         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4634
4635         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4636         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4638         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4639         (Depends-on): Add EOVERFLOW.
4640         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4641         (Depends-on): Add EOVERFLOW.
4642         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4643         (Depends-on): Add EOVERFLOW.
4644         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4645         (Depends-on): Add EOVERFLOW.
4646         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4647         (Depends-on): Add EOVERFLOW.
4648         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4649         (Depends-on): Add EOVERFLOW.
4650         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4651         (Depends-on): Add EOVERFLOW.
4652         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4653         (Depends-on): Add EOVERFLOW.
4654
4655         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4657         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4658
4659         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4661         * modules/snprintf (Depends-on): Add EOVERFLOW.
4662
4663         * lib/poll.c (EOVERFLOW): Remove fallback.
4664         * modules/poll (Depends-on): Add EOVERFLOW.
4665
4666         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4667         * modules/getugroups (Depends-on): Add EOVERFLOW.
4668
4669         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4670         * modules/getdelim (Depends-on): Add EOVERFLOW.
4671
4672         * lib/ftell.c (EOVERFLOW): Remove fallback.
4673         * modules/ftell (Depends-on): Add EOVERFLOW.
4674
4675         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4676         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4677         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4678
4679         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4680
4681         * modules/EOVERFLOW-tests: New file.
4682         * tests/test-EOVERFLOW.c: New file.
4683
4684         * modules/EOVERFLOW: New file.
4685         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4686
4687 2008-03-30  Bruno Haible  <bruno@clisp.org>
4688
4689         Fix bug introduced on 2007-06-10.
4690         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4691         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4692
4693 2008-03-30  Bruno Haible  <bruno@clisp.org>
4694
4695         Improve freadseek's efficiency after ungetc.
4696         * lib/freadseek.c: Include freadahead.h.
4697         (freadptrinc): New function, extracted from freadseek.
4698         (freadseek): Use it in a loop. Use freadahead to determine the number
4699         of loop iterations.
4700         * modules/freadseek (Depends-on): Add freadahead.
4701         (configure.ac): Require AC_C_INLINE.
4702
4703 2008-03-30  Bruno Haible  <bruno@clisp.org>
4704
4705         * lib/freadseek.c (freadseek): Don't ignore the return value of
4706         freadptr.
4707
4708 2008-03-29  Eric Blake  <ebb9@byu.net>
4709
4710         Add hex float support.
4711         * modules/strtod (Depends-on): Add c-ctype.
4712         (Link): Mention POW_LIB.
4713         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4714         whitespace between 'e' and exponent.
4715         * tests/test-strtod.c (main): Enable hex float tests.
4716         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4717         now provides.
4718
4719         Document various strtod bugs, with some fixes.
4720         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4721         "-0x", "inf", "nan", and hex constants.
4722         * doc/posix-functions/atof.texi (atof): Likewise.
4723         * modules/stdlib (Makefile.am): Support strtod.
4724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4725         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4726         detect additional strtod bugs.
4727         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4728         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4729         bool where appropriate.  Parse 'inf' and 'nan'.
4730         * tests/test-strtod.c: New file.
4731         * modules/strtod (Depends-on): Add stdbool, stdlib.
4732         (configure.ac): Turn on module indicator.
4733         * modules/strtod-tests: New module.
4734
4735 2008-03-29  Eric Blake  <ebb9@byu.net>
4736
4737         Fix ftell on mingw.
4738         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4739         * modules/ftell-tests (Depends-on): Add binary-io.
4740         * modules/ftello-tests (Depends-on): Likewise.
4741         * tests/test-ftell.c (main): Enhance test to cover behavior after
4742         ungetc.  Enforce binary mode.
4743         * tests/test-ftello.c (main): Likewise.
4744
4745         Pass test-freadseek on cygwin.
4746         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4747         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4748         ungetc buffer.
4749
4750         * tests/test-fflush2.c (main): Fix typo.
4751
4752 2008-03-29  Bruno Haible  <bruno@clisp.org>
4753
4754         * tests/test-fflush2.c (main): Temporarily disable the contents of
4755         this test.
4756         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4757         Reported by Eric Blake.
4758
4759 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4760
4761         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4762         (GC_SHA224_DIGEST_SIZE): Add.
4763
4764         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4765         (gc_hash_digest_length): Likewise.
4766         (gc_hash_buffer): Likewise.
4767
4768 2008-03-25  Bruno Haible  <bruno@clisp.org>
4769
4770         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4771         detail which gettext release to use.
4772         Reported by Simon Josefsson.
4773
4774 2008-03-26  Jim Meyering  <meyering@redhat.com>
4775
4776         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4777         * modules/gnumakefile (clean-GNUmakefile): Also, use
4778         test ... && ... || : syntax rather than if-then ... fi.
4779
4780         gnumakefile: Don't double-quote-expand $(VPATH) value.
4781         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4782
4783 2008-03-24  Eric Blake  <ebb9@byu.net>
4784
4785         Alter GNUmakefile to install into top directory.
4786         * modules/maintainer-makefile: Split, and add dependency...
4787         * modules/gnumakefile: to this new module.
4788         * build-aux/GNUmakefile: Move...
4789         * top/GNUmakefile: ...here.
4790         * build-aux/maint.mk: Move...
4791         * top/maint.mk: ...here.
4792         * MODULES.html.sh (Support for maintaining...): Document new
4793         module.
4794
4795 2008-03-23  Bruno Haible  <bruno@clisp.org>
4796
4797         * gnulib-tool: New options --vc-files, --no-vc-files.
4798         (func_usage): Document them.
4799         (vc_files): New variable.
4800         (func_import): Consider vc_files.
4801         (func_create_testdir): Set vc_files to empty.
4802         Suggested by Jim Meyering and Karl Berry.
4803
4804 2008-03-23  Bruno Haible  <bruno@clisp.org>
4805
4806         Fix regex compilation error on HP-UX 11.
4807         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4808         * modules/regex (Files): Add m4/mbstate_t.m4.
4809         Reported by Ton Voon <ton.voon@altinity.com>.
4810
4811 2008-03-23  Bruno Haible  <bruno@clisp.org>
4812
4813         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4814
4815 2008-03-23  Eric Blake  <ebb9@byu.net>
4816             Bruno Haible  <bruno@clisp.org>
4817
4818         Install files from top/ in the destination directory.
4819         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4820         augmentation also for the files from top/.
4821         (func_import, func_create_testdir): Rewrite file names:
4822         top/filename -> filename.
4823
4824 2008-03-23  Bruno Haible  <bruno@clisp.org>
4825
4826         Tweak "gnulib --version" output.
4827         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4828
4829 2008-03-23  Bruno Haible  <bruno@clisp.org>
4830
4831         Tweak "gnulib --version" output.
4832         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4833         rather than contents of ChangeLog, when possible.
4834
4835 2008-03-21  Eric Blake  <ebb9@byu.net>
4836
4837         More --version tweaks.
4838         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4839         date of last ChangeLog entry.
4840
4841 2008-03-21  Jim Meyering  <meyering@redhat.com>
4842
4843         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4844
4845 2008-03-20  Eric Blake  <ebb9@byu.net>
4846
4847         VPATH fix.
4848         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4849
4850 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4851
4852         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4853         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4854
4855 2008-03-20  Eric Blake  <ebb9@byu.net>
4856
4857         Sync GNUmakefile with coreutils.
4858         * build-aux/GNUmakefile (have-Makefile): Rename...
4859         (_have-Makefile): ...to this, for namespace consideration.
4860         (GNUmakefile.cfg): Include, if present.
4861         (_autoreconf): Define a default.
4862         (_is-dist-target): New rule for rebuilds to pick up intra-release
4863         version.
4864         (maint-cfg.mk): Rename...
4865         (cfg.mk): ...to this.
4866
4867 2008-03-18  Jim Meyering  <meyering@redhat.com>
4868
4869         New script and module: mktempd
4870         * MODULES.html.sh (maint+release support): Add mktempd.
4871         * build-aux/mktempd: New file.
4872         * modules/mktempd: New file.
4873
4874 2008-03-15  Jim Meyering  <meyering@redhat.com>
4875
4876         Undo last change.
4877         * lib/sha1.c, lib/md5.c: 63 != ~63.
4878         Reported by Andreas Schwab.
4879
4880         sha1.c, md5.c: Hoist a redundant expression.
4881         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4882         "ctx->buflen" only once, before calling *_process_block.
4883         * lib/md5.c (md5_process_bytes): Likewise.
4884
4885 2008-03-14  Eric Blake  <ebb9@byu.net>
4886
4887         Bump copyright year in files generated by gnulib-tool.
4888         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4889         gnulib-tool, rather than hard-coding it.
4890
4891         Fix 'gnulib-tool --version' output to work with git.
4892         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4893         (startup): ...here.
4894         (func_version): Use it to invoke git-version-gen, rather than
4895         relying on CVS keyword expansion.  Modernize wording.
4896         (cvsdatestamp, last_checkin_date, version): Kill unused
4897         variables.
4898
4899 2008-03-12  Jim Meyering  <meyering@redhat.com>
4900
4901         Recognize optional cast of the argument to free.
4902         * build-aux/useless-if-before-free: Update regexps.
4903
4904         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4905
4906 2008-03-11  Bruno Haible  <bruno@clisp.org>
4907
4908         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4909         by a single package.
4910         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4911         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4912         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4913         Reported by Sam Steingold <sds@gnu.org>.
4914
4915 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4916
4917         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4918         repositories.
4919
4920 2008-03-11  Bruno Haible  <bruno@clisp.org>
4921
4922         Avoid conflicts between local macro definitions.
4923         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4924         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4925
4926 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4927             Bruno Haible  <bruno@clisp.org>
4928
4929         Make va_copy work with some version of xlc on AIX 5.1.
4930         * lib/stdarg.in.h: New file.
4931         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4932         On AIX, use a <stdarg.h> file substitute.
4933         * modules/stdarg (Files): Add lib/stdarg.in.h.
4934         (Depends-on): Add include_next.
4935         (Makefile.am): Build a stdarg.h substitute if requested.
4936         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4937
4938 2008-03-10  Bruno Haible  <bruno@clisp.org>
4939
4940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4941         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4942         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4943
4944 2008-03-10  Bruno Haible  <bruno@clisp.org>
4945
4946         * modules/stdlib (Depends-on): Add include_next, remove
4947         absolute-header.
4948
4949 2008-03-09  Bruno Haible  <bruno@clisp.org>
4950
4951         * lib/freadahead.h (freadahead): Document more precisely.
4952         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4953         the sum of both buffer sizes.
4954         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4955         * NEWS: Document the change.
4956
4957 2008-03-09  Bruno Haible  <bruno@clisp.org>
4958
4959         Extend freadptr to return also the buffer size.
4960         * lib/freadptr.h (freadptr): Add sizep argument.
4961         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4962         (freadptr): Add sizep argument. Determine buffer size like freadahead
4963         does.
4964         * tests/test-freadptr.c: Don't include freadahead.h.
4965         (main): Adapt for new calling convention of freadptr.
4966         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4967         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4968         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4969         tests/test-freadptr2.sh.
4970         (Depends): Remove freadahead.
4971         (TESTS): Add test-freadptr2.sh.
4972         (check_PROGRAMS): Add test-freadptr2.
4973
4974 2008-03-09  Bruno Haible  <bruno@clisp.org>
4975
4976         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4977         Report and solution by Simon Josefsson.
4978
4979 2008-03-06  Bruno Haible  <bruno@clisp.org>
4980
4981         Make fflush after ungetc work on BSD platforms.
4982         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4983         * tests/test-fflush2.c: New file.
4984         * tests/test-fflush2.sh: New file.
4985         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4986         tests/test-fflush2.c.
4987         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4988         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4989
4990 2008-03-06  Eric Blake  <ebb9@byu.net>
4991
4992         Likewise for ftello.
4993         * modules/ftello (Dependencies): Add extensions.
4994         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4995
4996 2008-03-06  Bruno Haible  <bruno@clisp.org>
4997
4998         * modules/fseeko (Dependencies): Add extensions.
4999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5000         Needed on glibc systems.
5001
5002 2008-03-06  Bruno Haible  <bruno@clisp.org>
5003
5004         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5005         email address.
5006         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5007
5008 2008-03-06  Bruno Haible  <bruno@clisp.org>
5009
5010         * users.txt: Add libgnupdf.
5011
5012 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5013
5014         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5015         (Header File Substitutes, Function Substitutes,
5016         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5017         (Build robot for gnulib): Fix typo.
5018
5019 2008-03-06  Bruno Haible  <bruno@clisp.org>
5020
5021         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5022         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5023
5024 2008-03-06  Bruno Haible  <bruno@clisp.org>
5025
5026         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5027         * doc/gnulib.texi: Include it.
5028
5029 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5030
5031         * modules/func (License): Change license to unlimited; there was
5032         no LGPL parts in the module anyway.
5033
5034 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5035
5036         * modules/__func__: Renamed to modules/func.
5037         * modules/__func__-tests: Renamed to modules/func-tests.
5038         * tests/test-__func__.c: Renamed to tests/test-func.c.
5039         * m4/__func__.m4: Renamed to m4/func.m4.
5040         * doc/gnulib.texi (__func__): Section renamed to func.
5041         Suggested by Eric Blake <ebb9@byu.net>.
5042
5043 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5044
5045         * doc/gnulib.texi (__func__): Use C99 terminology when talking
5046         about __func__.  Make example self-contained.  Suggested by Eric
5047         Blake <ebb9@byu.net>.
5048
5049         * tests/test-__func__.c (main): Avoid extraneous () around __func.
5050         Suggested by Eric Blake <ebb9@byu.net>.
5051
5052 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5053
5054         * modules/__func__: New file.
5055         * modules/__func__-tests: New file.
5056         * tests/test-__func__.c: New file.
5057         * m4/__func__.m4: New file.
5058         * doc/gnulib.texi (__func__): Document __func__ module.
5059
5060 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5061
5062         * modules/byteswap (License): Re-license as LGPLv2+.
5063
5064 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5065
5066         * doc/Makefile: Add pdf target.
5067
5068 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5069
5070         * modules/inline (License): Use 'unlimited', since there are only
5071         *.m4 files in this module.
5072
5073 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5074             Bruno Haible  <bruno@clisp.org>
5075
5076         Add support for HP C 7.1 on OpenVMS 8.3.
5077         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5078
5079 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5080
5081         Update VMS specifics.
5082         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5083
5084 2008-03-02  Jim Meyering  <meyering@redhat.com>
5085
5086         Remove the last dependency on the "free" module.
5087         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5088         Reported by Bob Proulx.
5089
5090         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5091
5092         Remove useless "if" tests before free.  Deprecate "free" module.
5093         * doc/posix-functions/free.texi: Mention that this
5094         module is no longer useful.
5095         * modules/free (Notice): Say this module is obsolete.
5096         * modules/readutmp (Depends-on): Remove free.
5097         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5098         * lib/putenv.c (putenv): Likewise.
5099         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5100         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5101         * tests/test-c-strcasestr.c (main): Likewise.
5102         * tests/test-c-strstr.c (main): Likewise.
5103         * tests/test-mbscasestr1.c (main): Likewise.
5104         * tests/test-mbscasestr2.c (main): Likewise.
5105         * tests/test-mbsstr1.c (main): Likewise.
5106         * tests/test-mbsstr2.c (main): Likewise.
5107         * tests/test-memmem.c (main): Likewise.
5108         * tests/test-strcasestr.c (main): Likewise.
5109         * tests/test-striconv.c (main): Likewise.
5110         * tests/test-striconveh.c (main): Likewise.
5111         * tests/test-striconveha.c (main): Likewise.
5112         * tests/test-strstr.c (main): Likewise.
5113
5114         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5115
5116         bootstrap: sync from coreutils again
5117         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5118
5119 2008-03-01  Jim Meyering  <meyering@redhat.com>
5120
5121         bootstrap: sync from coreutils
5122         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5123         also when the target doesn't exist.
5124
5125 2008-03-01  Eric Blake  <ebb9@byu.net>
5126
5127         Fix bugs in last patch.
5128         * lib/memchr2.c (memchr2): Fix typo.
5129         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5130         extension.
5131         Reported by Bruce Korb.
5132
5133         New module 'memchr2'.
5134         * modules/memchr2: New file.
5135         * modules/memchr2-tests: Likewise.
5136         * lib/memchr2.h: Likewise.
5137         * lib/memchr2.c: Likewise, based on memchr.c.
5138         * tests/test-memchr2.c: New test.
5139         * MODULES.html.sh (String handling): Add memchr2.
5140
5141 2008-02-29  Bruno Haible  <bruno@clisp.org>
5142
5143         * modules/freadseek-tests: New file.
5144         * tests/test-freadseek.sh: New file.
5145         * tests/test-freadseek.c: New file.
5146
5147         New module 'freadseek'.
5148         * modules/freadseek: New file.
5149         * lib/freadseek.h: New file.
5150         * lib/freadseek.c: New file.
5151         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5152
5153 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5154
5155         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5156         wydawca.
5157
5158         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5159         program_invocation_name and program_invocation_short_name are
5160         present.
5161
5162 2008-02-28  Bruno Haible  <bruno@clisp.org>
5163
5164         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5165         * tests/test-freadptr.sh: Also test non-seekable stdin.
5166
5167 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5168
5169         * build-aux/bootstrap (source_base, m4_base)
5170         (doc_base, tests_base): New variables.
5171         (gnulib_tool_options): Do not hardcode base directories, use
5172         the above variables instead.
5173
5174 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5175
5176         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5177
5178 2008-02-28  Bruno Haible  <bruno@clisp.org>
5179
5180         * modules/freadptr-tests: New file.
5181         * tests/test-freadptr.sh: New file.
5182         * tests/test-freadptr.c: New file.
5183
5184         New module 'freadptr'.
5185         * modules/freadptr: New file.
5186         * lib/freadptr.h: New file.
5187         * lib/freadptr.c: New file.
5188         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5189
5190 2008-02-26  Karl Berry  <karl@freefriends.org>
5191
5192         Sync from Libtool:
5193         * libltdl/argz.c (argz_add, argz_count): New functions.
5194         * libltdl/argz.in.h: Declare them.
5195         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5196
5197 2008-02-22  Bruno Haible  <bruno@clisp.org>
5198
5199         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5200         is a pointer type.  Needed for HP-UX 10.
5201         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5202         * doc/posix-functions/gmtime_r.texi: Likewise.
5203         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5204
5205 2008-02-24  Bruno Haible  <bruno@clisp.org>
5206
5207         * modules/environ-tests: New file.
5208         * tests/test-environ.c: New file.
5209
5210         New module 'environ'.
5211         * modules/environ: New file.
5212         * lib/unistd.in.h (environ): New declaration.
5213         * m4/environ.m4: New file.
5214         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5215         after use.
5216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5217         HAVE_DECL_ENVIRON.
5218         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5219         HAVE_DECL_ENVIRON.
5220         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5221         wrong claim that 'environ' is missing on some systems.
5222         * modules/execute (Depends-on): Add environ.
5223         * lib/execute.c (environ): Remove fallback declaration.
5224         * modules/pipe (Depends-on): Add environ.
5225         * lib/pipe.c (environ): Remove fallback declaration.
5226         * modules/setenv (Depends-on): Add environ.
5227         * lib/setenv.c (environ): Remove fallback declaration.
5228         * modules/unsetenv (Depends-on): Add environ.
5229         * lib/unsetenv.c (environ): Remove fallback declaration.
5230         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5231         m4/environ.m4.
5232         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5233         (gl_PREREQ_UNSETENV): Likewise.
5234
5235 2008-02-24  Bruno Haible  <bruno@clisp.org>
5236
5237         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5238
5239 2008-02-20  Bob Proulx  <bob@proulx.com>
5240
5241         Enable use of older two part flavor 'git describe'.
5242         * build-aux/git-version-gen: If using the older two part flavor of
5243         git version then recreate the third part now present in the
5244         newer three part flavor of git describe.
5245
5246 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5247
5248         * lib/fts.c (fts_build): Typo correction to comment.
5249
5250 2008-02-17  Bruno Haible  <bruno@clisp.org>
5251
5252         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5253         generating no-op conflicts.
5254
5255 2008-02-17  Bruno Haible  <bruno@clisp.org>
5256
5257         Speed up by 10%.
5258         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5259         result_entries, rather than an index-based loop.
5260
5261 2008-02-17  Bruno Haible  <bruno@clisp.org>
5262
5263         Speed up by 25%.
5264         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5265         'hashcode_cached'.
5266         (entry_create): New function.
5267         (entry_hashcode): Use the cached hashcode if possible.
5268         (read_changelog_file, try_split_merged_entry): Use entry_create.
5269
5270 2008-02-17  Bruno Haible  <bruno@clisp.org>
5271
5272         Speed up from O(n^2) to O(n) for long ChangeLog files.
5273         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5274         (read_changelog_file): Change implementation of entries_reversed list
5275         to rbtreehash.
5276         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5277
5278 2008-02-17  Bruno Haible  <bruno@clisp.org>
5279
5280         New option --split-merged-entry.
5281         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5282         (find_paragraph_end, try_split_merged_entry): New functions.
5283         (long_options): Add option --split-merged-entry.
5284         (usage): Document option --split-merged-entry.
5285         (main): Implement option --split-merged-entry.
5286         Reported by Eric Blake.
5287
5288 2008-02-17  Bruno Haible  <bruno@clisp.org>
5289
5290         * lib/git-merge-changelog.c: Include c-strstr.h.
5291         (main): Support the "git pull --rebase" situation.
5292         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5293         Reported by Eric Blake.
5294
5295 2008-02-16  Eric Blake  <ebb9@byu.net>
5296
5297         Avoid doubling \ in common case of "c-maybe" quoting style.
5298         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5299         eliding outer quotes.
5300         * lib/quotearg.h: Document this.
5301         * tests/test-quotearg.c (result_strings, inputs, results_g)
5302         (flag_results, locale_results): Test it by adding a new string to
5303         each test group.
5304         (compare_strings): Test new string.
5305
5306 2008-02-13  Eric Blake  <ebb9@byu.net>
5307
5308         Avoid trigraph quoting in default output.
5309         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5310         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5311         unless explicitly requested.
5312         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5313
5314 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5315
5316         Don't rely on signed integer overflowing to negative value.
5317         * lib/getugroups.c (getugroups): Include <limits.h>.
5318         Instead, compare against INT_MAX, and increment only if the test passes.
5319
5320 2008-02-13  Jim Meyering  <meyering@redhat.com>
5321         and Eric Blake  <ebb9@byu.net>
5322
5323         Avoid shadowing warning and compile errors on Linux.
5324         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5325         forwarding macros on Linux.
5326         (dcgettext): Define a stub, for Linux.
5327         (results_g, main): Avoid warnings.
5328
5329 2008-02-12  Eric Blake  <ebb9@byu.net>
5330
5331         Silence warning in last patch.
5332         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5333
5334         Quotearg part 4: add tests, fix c-maybe colon quoting.
5335         * lib/quotearg.h: Improve documentation.
5336         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5337         escapes when adding outer quotes.  When quoting trigraphs, use
5338         valid C notation.  When quoting NUL, omit extra characters if next
5339         character is not digit.  Alter prototype.
5340         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5341         callers.
5342         * modules/quotearg-tests: New module.
5343         * tests/test-quotearg.c: New test.
5344
5345 2008-02-07  Eric Blake  <ebb9@byu.net>
5346
5347         Quotearg part 3: add flag to control outer quote elision.
5348         * lib/quotearg.h (c_maybe_quoting_style): New style.
5349         (enum quoting_flags): Better documentation of flags.
5350         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5351         c-maybe style.
5352         (quotearg_buffer_restyled): Handle new flag to elide outer
5353         quotes.
5354
5355         Quotearg part 2: add flag that can control NUL elision.
5356         * lib/quotearg.h (set_quoting_flags): New prototype.
5357         * lib/quotearg.c (struct quoting_options): Add flag field.
5358         (set_quoting_flags): New function.
5359         (quotearg_buffer_restyled): Add flags parameter.
5360         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5361         (quotearg_n_options): Set the flag, since length cannot be
5362         returned.
5363         (quoting_options_from_style): Default flags correctly.
5364
5365         Quotearg part 1: more wrappers, restore quotearg_char state.
5366         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5367         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5368         (quotearg_colon_mem): New wrappers.
5369         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5370         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5371         functions.
5372         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5373         (quotearg_colon_mem): New functions.
5374
5375 2008-02-11  Bruno Haible  <bruno@clisp.org>
5376
5377         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5378         library in the current directory: it does not work with parallel make.
5379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5380
5381 2008-02-11  Bruno Haible  <bruno@clisp.org>
5382
5383         * .gitattributes: New file.
5384
5385 2008-02-11  Jim Meyering  <meyering@redhat.com>
5386
5387         useless-if-before-free: Fix reversed exit values.
5388         * build-aux/useless-if-before-free: Use correct values
5389         for EXIT_MATCH and EXIT_NO_MATCH.
5390
5391         * build-aux/useless-if-before-free: Close stdout carefully.
5392
5393 2008-02-10  Bruno Haible  <bruno@clisp.org>
5394
5395         New module 'git-merge-changelog'.
5396         * modules/git-merge-changelog: New file.
5397         * lib/git-merge-changelog.c: New file.
5398
5399 2008-02-10  Jim Meyering  <meyering@redhat.com>
5400
5401         useless-if-before-free: New option: --list (-l).
5402
5403         useless-if-before-free: Don't exit immediately upon open failure.
5404         * build-aux/useless-if-before-free: Exit 2 for errors.
5405         Upon failure to open a file, don't exit immediately.
5406         Rather, just warn and continue with any remaining files.
5407
5408 2008-02-10  Bruno Haible  <bruno@clisp.org>
5409
5410         New abstract list operation 'node_set_value'.
5411         * lib/gl_list.h (gl_list_node_set_value): New function.
5412         (struct gl_list_implementation): New field node_set_value.
5413         * lib/gl_list.c (gl_list_node_set_value): New function.
5414         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5415         (gl_array_list_implementation): Update.
5416         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5417         (gl_carray_list_implementation): Update.
5418         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5419         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5420         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5421         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5422         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5423         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5424         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5425         Update.
5426         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5427         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5428         (gl_sublist_list_implementation): Update.
5429
5430 2008-02-10  Bruno Haible  <bruno@clisp.org>
5431
5432         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5433         Needed when ELEMENT is #defined to 'some_type *'.
5434
5435 2008-02-10  Jim Meyering  <meyering@redhat.com>
5436
5437         New script and module: useless-if-before-free
5438         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5439         * build-aux/useless-if-before-free: New file.
5440         * modules/useless-if-before-free: New file.
5441
5442         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5443
5444         xstrtol_error: Fix typo.
5445         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5446         s/exit_failure/exit_status/.
5447
5448 2008-02-09  Jim Meyering  <meyering@redhat.com>
5449
5450         New script and module: gitlog-to-changelog
5451         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5452         * modules/gitlog-to-changelog: New file.
5453         * build-aux/gitlog-to-changelog: New file.
5454
5455 2008-02-08  Jim Meyering  <meyering@redhat.com>
5456
5457         Avoid two "parameter unused" warnings.
5458         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5459         Mark "st" as used.
5460
5461         Use "git COMMAND", not "git-COMMAND".
5462         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5463         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5464         * build-aux/git-version-gen: Use "git status", not "git-status".
5465
5466 2008-02-07  Bruno Haible  <bruno@clisp.org>
5467
5468         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5469         Avoids a crash on Windows Vista.
5470         Reported by Adam Strzelecki <ono@java.pl> via
5471         Simon Josefsson <simon@josefsson.org>.
5472
5473 2008-02-06  Bruno Haible  <bruno@clisp.org>
5474
5475         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5476         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5477         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5479         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5481         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5482         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5490         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5491         left-adjust flag.
5492         * tests/test-snprintf-posix.h (test_function): Likewise.
5493         * tests/test-sprintf-posix.h (test_function): Likewise.
5494         * tests/test-vasprintf-posix.c (test_function): Likewise.
5495         * doc/posix-functions/fprintf.texi: Update.
5496         * doc/posix-functions/printf.texi: Update.
5497         * doc/posix-functions/snprintf.texi: Update.
5498         * doc/posix-functions/sprintf.texi: Update.
5499         * doc/posix-functions/vfprintf.texi: Update.
5500         * doc/posix-functions/vprintf.texi: Update.
5501         * doc/posix-functions/vsnprintf.texi: Update.
5502         * doc/posix-functions/vsprintf.texi: Update.
5503         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5504
5505 2008-02-06  Bruno Haible  <bruno@clisp.org>
5506
5507         Fix bug introduced on 2008-01-26.
5508         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5509
5510 2008-02-06  Bruno Haible  <bruno@clisp.org>
5511
5512         Fix bug introduced on 2007-06-10.
5513         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5514         !NEED_PRINTF_FLAG_ZERO.
5515
5516 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5517
5518         getloadavg: use libperfstat on AIX5
5519         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5520
5521 2008-02-03  Bruno Haible  <bruno@clisp.org>
5522
5523         * lib/diffseq.h: Add comments about required #includes.
5524         Reported by Michael Biggs <gnulib@doubleplum.net>.
5525
5526 2008-02-01  Bruno Haible  <bruno@clisp.org>
5527
5528         * users.txt: Add gnuit.
5529
5530 2008-01-31  Bruno Haible  <bruno@clisp.org>
5531
5532         * lib/md4.c (set_uint32): Mark as inline.
5533         * lib/md5.c (set_uint32): Likewise.
5534         * lib/sha1.c (set_uint32): Likewise.
5535         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5536         * m4/md5.m4 (gl_MD5): Likewise.
5537         * m4/sha1.m4 (gl_SHA1): Likewise.
5538
5539 2008-01-31  Jim Meyering  <meyering@redhat.com>
5540
5541         Use "sizeof VAR", rather than a literal "4".
5542         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5543         * lib/md4.c (md4_read_ctx): Likewise.
5544         * lib/sha1.c (sha1_read_ctx): Likewise.
5545
5546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5547
5548         * tests/test-sha1.c: New file, based on test-md5.c.
5549
5550         * modules/crypto/sha1-tests: New file.
5551
5552 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5553
5554         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5555
5556 2008-01-31  Jim Meyering  <meyering@redhat.com>
5557
5558         Prefer "sizeof v" over the equivalent "4".
5559         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5560         * lib/md5.c (set_uint32): Likewise.
5561         * lib/sha1.c (set_uint32): Likewise.
5562
5563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5564
5565         * lib/sha1.c (set_uint32): Mark function as static.
5566
5567 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5568
5569         md2: clarify comments to say that alignment is not required.
5570         * lib/md2.h: Remove warning about alignment in comment.
5571         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5572         never been required.
5573
5574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5575
5576         md4: adapt alignment constraint fix from sha1.
5577         * lib/md4.c (set_uint32): New function, from sha1.c
5578         (md4_read_ctx): Use it.
5579         (md4_finish_ctx): Doc fix.
5580         * lib/md4.h: Doc fix.
5581
5582 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5583
5584         md5: adapt alignment constraint fix from sha1.
5585         * lib/md5.c (set_uint32): New function, from sha1.c
5586         (md5_read_ctx): Use it.
5587         (md5_finish_ctx): Doc fix.
5588         * lib/md5.h: Doc fix.
5589
5590 2008-01-30  Peter Palfrader  <weasel@debian.org>
5591
5592         sha1: remove the result buffer alignment constraint
5593         * lib/sha1.c (set_uint32): New function.
5594         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5595         constraint.
5596         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5597         * lib/sha1.h: Likewise.
5598
5599 2008-01-30  Andreas Schwab  <schwab@suse.de>
5600             Bruno Haible  <bruno@clisp.org>
5601
5602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5603         correct definition of LDBL_MIN_EXP.
5604
5605 2008-01-30  Karl Berry  <karl@gnu.org>
5606
5607         * config/srclist-update: try to preserve x bit on updates.
5608         * config/srclistvars.sh: update for karl.
5609
5610 2008-01-29  Jim Meyering  <meyering@redhat.com>
5611
5612         vasnprintf.c: Avoid warning about unused label
5613         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5614         "overflow" label definition and associated code with the
5615         same cpp condition that guards the sole use of that label.
5616
5617 2008-01-26  Bruno Haible  <bruno@clisp.org>
5618
5619         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5620         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5621         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5622         * lib/isnanl-nolibm.h (isnanl): Likewise.
5623         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5624
5625 2008-01-26  Bruno Haible  <bruno@clisp.org>
5626
5627         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5628         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5629
5630 2008-01-26  Bruno Haible  <bruno@clisp.org>
5631
5632         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5633         GCC >= 4.0 built-in.
5634         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5635
5636 2008-01-26  Bruno Haible  <bruno@clisp.org>
5637
5638         Rename isnan, applicable to 'double' only, to isnand.
5639         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5640         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5641         (configure.ac): Update.
5642         (Include): Replace "isnan.h" with "isnand.h".
5643         * m4/isnand.m4: Renamed from m4/isnan.m4.
5644         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5645         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5646         instead of isnan.c.
5647         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5648         instead of HAVE_ISNAN_IN_LIBC.
5649         (isnand): Renamed from isnan.
5650         * lib/isnand.c: New file.
5651         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5652         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5653         (Makefile.am): Update.
5654         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5655         Include isnand.h instead of isnan.h.
5656         (main): Test isnand instead of isnan.
5657         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5658         isnan-nolibm.
5659         * modules/frexp (Depends-on): Likewise.
5660         * modules/frexp-tests (Depends-on): Likewise.
5661         * modules/frexp-nolibm (Depends-on): Likewise.
5662         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5663         * modules/isfinite (Depends-on): Likewise.
5664         * modules/round-tests (Depends-on): Likewise.
5665         * modules/signbit (Depends-on): Likewise.
5666         * modules/signbit-tests (Depends-on): Likewise.
5667         * modules/snprintf-posix (Depends-on): Likewise.
5668         * modules/sprintf-posix (Depends-on): Likewise.
5669         * modules/trunc-tests (Depends-on): Likewise.
5670         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5671         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5672         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5673         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5674         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5675         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5676         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5677         * modules/vasnprintf-posix (Depends-on): Likewise.
5678         * modules/vasprintf-posix (Depends-on): Likewise.
5679         * modules/vfprintf-posix (Depends-on): Likewise.
5680         * modules/vsnprintf-posix (Depends-on): Likewise.
5681         * modules/vsprintf-posix (Depends-on): Likewise.
5682         * lib/frexp.c: Include isnand.h instead of isnan.h.
5683         (ISNAN): Set to isnand instead of isnan.
5684         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5685         (gl_isfinited): Use isnand instead of isnan.
5686         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5687         (gl_signbitd): Use isnand instead of isnan.
5688         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5689         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5690         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5691         (main): Use isnand instead of isnan.
5692         * tests/test-round1.c: Include isnand.h.
5693         (main): Use isnand instead of isnan.
5694         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5695         (ISNAN): Set to isnand instead of isnan.
5696         * tests/test-trunc1.c: Include isnand.h.
5697         (main): Use isnand instead of isnan.
5698         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5699         (equal): Use isnand instead of isnan.
5700         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5701         isnand-nolibm.
5702         * NEWS: Mention the change.
5703
5704 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5705             Bruno Haible  <bruno@clisp.org>
5706
5707         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5708         the GCC builtins for signbits are present and set
5709         REPLACE_SIGNBIT_USING_GCC if so.
5710         * lib/math.in.h (signbit): Define using GCC builtins if
5711         REPLACE_SIGNBIT_USING_GCC is set.
5712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5713         REPLACE_SIGNBIT_USING_GCC.
5714         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5715
5716 2008-01-25  Jim Meyering  <meyering@redhat.com>
5717
5718         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5719         * lib/poll.c: Include <config.h>, not "config.h".
5720         * tests/test-getaddrinfo.c: Likewise.
5721
5722 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5723
5724         * modules/sockets-tests: New file.
5725
5726 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5727
5728         * modules/sockets: New module, can be used to call WSA_Startup and
5729         WSA_Cleanup when needed.
5730
5731         * lib/sockets.h, lib/sockets.c: New files.
5732
5733         * m4/sockets.m4: New file.
5734
5735         * tests/test-sockets.c: New file.
5736
5737 2008-01-19  Bruno Haible  <bruno@clisp.org>
5738
5739         * doc/posix-headers: Renamed from doc/headers.
5740         * doc/posix-functions: Renamed from doc/functions.
5741         * doc/gnulib.texi: Update.
5742
5743 2008-01-19  Bruno Haible  <bruno@clisp.org>
5744
5745         * doc/glibc-functions/strcasestr.texi: Include contents of
5746         doc/functions/strcasestr.texi, fixing the list of platforms.
5747         * doc/functions/strcasestr.texi: Remove file.
5748
5749 2008-01-19  Bruno Haible  <bruno@clisp.org>
5750
5751         * doc/glibc-functions/memmem.texi: Include contents of
5752         doc/functions/memmem.texi.
5753         * doc/functions/memmem.texi: Remove file.
5754
5755 2008-01-18  Bruno Haible  <bruno@clisp.org>
5756
5757         * doc/glibc-functions/*.texi: New files.
5758         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5759         to use the new files.
5760
5761 2008-01-17  Bruno Haible  <bruno@clisp.org>
5762
5763         * tests/test-gethostname.c (main): Fix printf statement.
5764
5765 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5766
5767         * modules/gethostname-tests: New file.
5768
5769         * tests/test-gethostname.c: New file.
5770
5771 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5772
5773         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5774         used by the UNAME case.  Reported by Bruno Haible
5775         <bruno@clisp.org>.
5776
5777 2008-01-17  Eric Blake  <ebb9@byu.net>
5778
5779         Convert c-strcasestr to be more efficient.
5780         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5781         (Depends-on): Add c-strcase, remove malloca, strnlen.
5782         * tests/test-c-strcasestr.c (main): Enhance test.
5783         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5784
5785 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5786
5787         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5788         Use it in creating po/Makevars.
5789
5790 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5791
5792         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5793         Applications that requires it should initialize libgcrypt
5794         manually.
5795
5796 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5797
5798         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5799
5800 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5801
5802         Fix problem with getdate on mingw32 reported by Simon Josefsson
5803         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5804         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5805         tzname", when deciding whether to declare tzname.
5806         * lib/strftime.c (tzname): Likewise.
5807
5808 2008-01-15  Bruno Haible  <bruno@clisp.org>
5809
5810         Work around a MacOS X 10.5 bug in frexpl().
5811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5812         * doc/functions/frexpl.texi: Document the bug.
5813         Reported by Elias Pipping <pipping@gentoo.org>.
5814
5815 2008-01-14  Eric Blake  <ebb9@byu.net>
5816
5817         Touch up previous patch.
5818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5819         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5820
5821         Convert strcasestr module to use Two-Way algorithm.
5822         * modules/strcasestr-simple: New module, based on the old
5823         strcasestr, but with Two-Way rather than KMP.
5824         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5825         * lib/string.in.h (rpl_strcasestr): Declare.
5826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5827         performance.
5828         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5829         * modules/string (Makefile.am): Support strcasestr.
5830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5831         * modules/strcasestr-tests (Depends-on): Check for alarm.
5832         * tests/test-strcasestr.c: Augment test.
5833         * lib/str-two-way.h: Clean up stray macro.
5834         * NEWS: Document new module.
5835         * MODULES.html.sh (string handling): Likewise.
5836         * doc/functions/strcasestr.texi: New file.
5837         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5838         here, since it is not a POSIX function.
5839
5840 2008-01-14  Colin Watson  <cjwatson@debian.org>
5841             Bruno Haible  <bruno@clisp.org>
5842
5843         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5844         works fine; if not, set REPLACE_STRSIGNAL.
5845         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5847         REPLACE_STRSIGNAL.
5848         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5849         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5850         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5851
5852 2008-01-14  Bruno Haible  <bruno@clisp.org>
5853
5854         * modules/strsignal (Include): Change to <string.h>.
5855
5856 2008-01-14  Colin Watson  <cjwatson@debian.org>
5857
5858         * modules/argp (Notice): Add a notice recommending to change
5859         XGETTEXT_OPTIONS.
5860         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5861
5862 2008-01-13  Colin Watson  <cjwatson@debian.org>
5863
5864         * modules/strsignal-tests: New file.
5865         * tests/test-strsignal.c: New file.
5866
5867         * lib/strsignal.c: New file, from glibc with modifications.
5868         * lib/siglist.h: New file, from glibc with modifications.
5869         * lib/string.in.h (strsignal): New declaration.
5870         * m4/strsignal.m4: New file.
5871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5872         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5873         * modules/strsignal: New file.
5874         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5875         HAVE_DECL_STRSIGNAL.
5876
5877 2008-01-13  Bruno Haible  <bruno@clisp.org>
5878
5879         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5880         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5882         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5883
5884 2008-01-13  Bruno Haible  <bruno@clisp.org>
5885
5886         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5887         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5888         * lib/argp.h (__attribute__): Likewise.
5889         * lib/c-stack.c (__attribute__): Likewise.
5890         * lib/error.h (__attribute__): Likewise.
5891         * lib/fts.c (__attribute__): Likewise.
5892         * lib/openat.h (__attribute__): Likewise.
5893         * lib/stdio.in.h (__attribute__): Likewise.
5894         * lib/string.in.h (__attribute__): Likewise.
5895         * lib/utimens.c (__attribute__): Likewise.
5896         * lib/vasnprintf.h (__attribute__): Likewise.
5897         * lib/xalloc.h (__attribute__): Likewise.
5898         * lib/xprintf.h (__attribute__): Likewise.
5899         * lib/xstrtol.h (__attribute__): Likewise.
5900         * lib/xvasprintf.h (__attribute__): Likewise.
5901
5902 2008-01-12  Bruno Haible  <bruno@clisp.org>
5903
5904         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5905         * doc/glibc-headers/a.out.texi: New file.
5906         * doc/glibc-headers/aliases.texi: New file.
5907         * doc/glibc-headers/alloca.texi: New file.
5908         * doc/glibc-headers/ar.texi: New file.
5909         * doc/glibc-headers/argp.texi: New file.
5910         * doc/glibc-headers/argz.texi: New file.
5911         * doc/glibc-headers/byteswap.texi: New file.
5912         * doc/glibc-headers/crypt.texi: New file.
5913         * doc/glibc-headers/endian.texi: New file.
5914         * doc/glibc-headers/envz.texi: New file.
5915         * doc/glibc-headers/err.texi: New file.
5916         * doc/glibc-headers/error.texi: New file.
5917         * doc/glibc-headers/execinfo.texi: New file.
5918         * doc/glibc-headers/fpu_control.texi: New file.
5919         * doc/glibc-headers/fstab.texi: New file.
5920         * doc/glibc-headers/fts.texi: New file.
5921         * doc/glibc-headers/getopt.texi: New file.
5922         * doc/glibc-headers/ieee754.texi: New file.
5923         * doc/glibc-headers/ifaddrs.texi: New file.
5924         * doc/glibc-headers/libintl.texi: New file.
5925         * doc/glibc-headers/mcheck.texi: New file.
5926         * doc/glibc-headers/mntent.texi: New file.
5927         * doc/glibc-headers/obstack.texi: New file.
5928         * doc/glibc-headers/paths.texi: New file.
5929         * doc/glibc-headers/printf.texi: New file.
5930         * doc/glibc-headers/pty.texi: New file.
5931         * doc/glibc-headers/resolv.texi: New file.
5932         * doc/glibc-headers/shadow.texi: New file.
5933         * doc/glibc-headers/sysexits.texi: New file.
5934         * doc/glibc-headers/ttyent.texi: New file.
5935
5936 2008-01-12  Jim Meyering  <meyering@redhat.com>
5937
5938         announce-gen: emit Gnulib's git-based version string.
5939         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5940         New option --gnulib-version=V, where V is expected to be
5941         the output of running git describe in the gnulib directory.
5942         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5943         not useful, and plan to stop publishing an xdelta file with each
5944         coreutils release.
5945
5946         * build-aux/announce-gen: Also check for lzma-compressed files.
5947
5948 2008-01-11  Bruno Haible  <bruno@clisp.org>
5949
5950         * tests/test-memmem.c (main): Increase maximum allowed time.
5951         * tests/test-strstr.c (main): Likewise.
5952
5953 2008-01-11  Bruno Haible  <bruno@clisp.org>
5954
5955         * doc/functions/memmem.texi: Add more precisions about platforms.
5956         * doc/functions/strstr.texi: Likewise.
5957
5958 2008-01-10  Eric Blake  <ebb9@byu.net>
5959
5960         * m4/strstr.m4: Delete cruft from copy-n-paste.
5961         Reported by Bruno Haible.
5962
5963 2008-01-10  Bruno Haible  <bruno@clisp.org>
5964
5965         Make c-strstr rely on strstr.
5966         * lib/c-strstr.c: Don't include str-kmp.h.
5967         (c_strstr): Define in terms of strstr.
5968         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5969         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5970
5971 2008-01-10  Bruno Haible  <bruno@clisp.org>
5972
5973         * doc/gnulib.texi (String Functions in C Locale): New section.
5974         * doc/c-ctype.texi: New file.
5975         * doc/c-strcase.texi: New file.
5976         * doc/c-strcaseeq.texi: New file.
5977         * doc/c-strcasestr.texi: New file.
5978         * doc/c-strstr.texi: New file.
5979         * doc/c-strtod.texi: New file.
5980         * doc/c-strtold.texi: New file.
5981
5982 2008-01-10  Eric Blake  <ebb9@byu.net>
5983
5984         * lib/relocatable.h: Fix a comment.
5985
5986 2008-01-10  Eric Blake  <ebb9@byu.net>
5987
5988         Share two-way algorithm.
5989         * lib/str-two-way.h: New file, merged from...
5990         * lib/memmem.c: ...here...
5991         * lib/strstr.c: ...and here.
5992         * modules/memmem (Files): Use it.
5993         * modules/strstr (Files): Likewise.
5994
5995         Avoid quadratic strstr implementations.
5996         * lib/strstr.c: New file.
5997         * m4/strstr.m4: Likewise.
5998         * modules/strstr: Likewise.
5999         * modules/strstr-tests: Likewise.
6000         * tests/test-strstr.c: Likewise.
6001         * lib/string.in.h (rpl_strstr): Declare.
6002         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6004         * modules/string (Makefile.am): Likewise.
6005         * MODULES.html.sh (string handling): Mention new module.
6006         * doc/functions/strstr.texi (strstr): Document the bug.
6007
6008 2008-01-10  Bruno Haible  <bruno@clisp.org>
6009
6010         * lib/relocatable.h (relocate): State whether result is freshly
6011         allocated or not.
6012         * lib/relocatable.c (relocate): Return a freshly allocated string
6013         instead of a pointer to a privately held string.
6014         Reported by Sylvain Beucler <beuc@gnu.org>.
6015
6016 2008-01-10  Colin Watson  <cjwatson@debian.org>
6017
6018         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6019         s/S_ISNLK/S_ISLNK/.
6020
6021 2008-01-09  Bruno Haible  <bruno@clisp.org>
6022
6023         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6024         and other files.
6025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6026         if it's only a guess.
6027         * modules/memmem: Simplify by depending on memmem-simple.
6028
6029 2008-01-09  Bruno Haible  <bruno@clisp.org>
6030
6031         Work around OpenBSD 4.0 tdelete() bug.
6032         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6033         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6034         macros and don't redefine the enum values.
6035         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
6036         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
6037         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
6038
6039 2008-01-09  Bruno Haible  <bruno@clisp.org>
6040
6041         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
6042         (main): Don't perform the tests if setlocale did not install a UTF-8
6043         locale. Needed on OpenBSD 4.0.
6044         * modules/wcwidth-tests (Depends-on): Add localcharset.
6045
6046 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
6049         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
6050         * NEWS: announce this.
6051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
6052
6053 2008-01-09  Simon Josefsson  <simon@josefsson.org>
6054         and Eric Blake  <ebb9@byu.net>
6055
6056         Add memmem-simple module.
6057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6058         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6059         * modules/memmem-simple: New file.
6060         * modules/memmem (Description): Tweak.
6061         * MODULES.html.sh (string handling): Mention new module.
6062         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6063         addressed by memmem-simple.
6064         * NEWS: Document the difference.
6065
6066 2008-01-09  Eric Blake  <ebb9@byu.net>
6067
6068         Give gcc some memmem optimization hints.
6069         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6070         (strcasestr): Declare as pure.
6071         * modules/memmem (Maintainer): Claim my implementation.
6072
6073 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6074
6075         Support AIX 6.1 and higher.
6076         * build-aux/config.libpath: Likewise.
6077         * build-aux/config.rpath: Likewise.
6078
6079 2008-01-08  Jim Meyering  <meyering@redhat.com>
6080             Bruno Haible  <bruno@clisp.org>
6081
6082         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6083         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6084         Reported by Peter Fales in
6085         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6086
6087 2008-01-08  Bruno Haible  <bruno@clisp.org>
6088
6089         * modules/unictype/category-of (Depends-on): Add
6090         unictype/category-none.
6091         * modules/unictype/category-and-tests (Depends-on): Add
6092         unictype/category-{L,N,Lu,Nd}.
6093         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6094         * modules/unictype/category-or-tests (Depends-on): Add
6095         unictype/category-{L,N}.
6096         * modules/unictype/category-name-tests (Depends-on): Add
6097         unictype/category-{Z,Nl}.
6098         Reported by Simon Josefsson.
6099
6100 2008-01-08  Bruno Haible  <bruno@clisp.org>
6101
6102         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6103         convention better.
6104         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6105         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6106         Reported by Peter Miller <millerp@canb.auug.org.au>.
6107
6108 2008-01-08  Eric Blake  <ebb9@byu.net>
6109
6110         Rewrite memmem to guarantee linear complexity without malloc.
6111         * lib/memmem.c (memmem): Use Two-Way rather than
6112         Knuth-Morris-Pratt, to allow O(1) space usage.
6113         (critical_factorization, two_way_short_needle)
6114         (two_way_long_needle): New functions.
6115         (knuth_morris_pratt): Delete.
6116         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6117         Add stdint.
6118         * tests/test-memmem.c (main): Add tests for periodic needle and
6119         sublinear performance.
6120         * doc/functions/memmem.texi (memmem): Document other deficiencies
6121         in cygwin and older glibc.
6122
6123 2008-01-08  Bruno Haible  <bruno@clisp.org>
6124
6125         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6126         augmentation.
6127
6128 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6129
6130         Add a configure time option: --disable-acl.
6131         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6132         AC_ARG_ENABLE(acl).
6133
6134 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6135
6136         * tests/test-localename.c: Don't include obsolete "setenv.h".
6137
6138         * modules/localename-tests (Depends-on): Need unsetenv.
6139
6140 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6141
6142         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6143
6144 2008-01-06  Colin Watson  <cjwatson@debian.org>
6145
6146         * users.txt: Add man-db.
6147
6148 2008-01-07  Bruno Haible  <bruno@clisp.org>
6149
6150         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6151         previous section name.
6152
6153 2008-01-07  Bruno Haible  <bruno@clisp.org>
6154
6155         * lib/progname.c (set_program_name): Don't strip off a leading
6156         "lt-" prefix outside a .libs directory.
6157         Suggested by Paul Eggert.
6158
6159 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6160             Bruno Haible  <bruno@clisp.org>
6161
6162         Improve memory cleanup in 'relocatable' module.
6163         * lib/relocatable.h (compute_curr_prefix): Change return type to
6164         'char *'.
6165         * lib/relocatable.c (compute_curr_prefix): Change return type to
6166         'char *'. Free curr_installdir after use.
6167         (relocate): Free curr_prefix_better after use.
6168         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6169
6170 2008-01-01  Bruno Haible  <bruno@clisp.org>
6171
6172         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6173         failure on older glibc systems.
6174         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6175
6176 2008-01-05  Eric Blake  <ebb9@byu.net>
6177
6178         Avoid quadratic system memmem.
6179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6180         Reported by Ralf Wildenhues.
6181
6182         Fix memmem test for mingw.
6183         * modules/memmem-tests (configure.ac): Check for alarm.
6184         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6185         it.
6186         * doc/functions/memmem.texi: New file.
6187         * doc/gnulib.texi (Function Substitutes): Add memmem.
6188         Reported by Bruno Haible.
6189
6190 2008-01-04  Bruno Haible  <bruno@clisp.org>
6191
6192         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6193         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6194         gl_HEADER_STRING_H_DEFAULTS.
6195
6196 2008-01-04  Eric Blake  <ebb9@byu.net>
6197
6198         Shorten duration of memmem test.
6199         * tests/test-memmem.c (main): Use alarm to declare failure if test
6200         is taking too long.
6201         Reported by Ralf Wildenhues.
6202
6203 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6204
6205         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6206         string, needed by strerror.
6207
6208 2008-01-03  Colin Watson  <cjwatson@debian.org>
6209             Bruno Haible  <bruno@clisp.org>
6210
6211         * doc/gnulib-tool.texi (Localization): New section.
6212
6213 2008-01-02  Bruno Haible  <bruno@clisp.org>
6214
6215         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6216         variables to 'unsigned char *' type.
6217         Reported by Paul Eggert.
6218
6219 2008-01-02  Jim Meyering  <jim@meyering.net>
6220
6221         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6222
6223 2007-12-31  Jim Meyering  <jim@meyering.net>
6224
6225         Avoid use of private FTS type name.
6226         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6227
6228 2007-12-30  Karl Berry  <karl@gnu.org>
6229
6230         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6231         work around defect in Texinfo and/or the standalone Info browser.
6232
6233 2007-12-30  Bruno Haible  <bruno@clisp.org>
6234
6235         Unify 5 copies of the KMP code.
6236         * lib/str-kmp.h: New file.
6237         * lib/c-strcasestr.c: Include str-kmp.h.
6238         (knuth_morris_pratt): Remove function.
6239         (c_strcasestr): Update.
6240         * lib/c-strstr.c: Include str-kmp.h.
6241         (knuth_morris_pratt): Remove function.
6242         (c_strcasestr): Update.
6243         * lib/mbscasestr.c: Include str-kmp.h.
6244         (knuth_morris_pratt_unibyte): Remove function.
6245         * lib/mbsstr.c: Include str-kmp.h.
6246         (knuth_morris_pratt_unibyte): Remove function.
6247         * lib/strcasestr.c: Include str-kmp.h.
6248         (knuth_morris_pratt): Remove function.
6249         (strcasestr): Update.
6250         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6251         * modules/c-strstr (Files): Likewise.
6252         * modules/mbscasestr (Files): Likewise.
6253         * modules/mbsstr (Files): Likewise.
6254         * modules/strcasestr (Files): Likewise.
6255         Suggested by Paul Eggert.
6256
6257 2007-12-30  Bruno Haible  <bruno@clisp.org>
6258
6259         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6260         defined.
6261
6262 2007-12-30  Bruno Haible  <bruno@clisp.org>
6263
6264         * lib/xmalloca.h: Include xalloc.h.
6265         (xnmalloca): New macro.
6266
6267 2007-12-30  Bruno Haible  <bruno@clisp.org>
6268
6269         * lib/malloca.h (nmalloca): New macro.
6270         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6271         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6272         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6273         knuth_morris_pratt_multibyte): Likewise.
6274         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6275         knuth_morris_pratt_multibyte): Likewise.
6276         * lib/memmem.c (knuth_morris_pratt): Likewise.
6277         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6278
6279 2007-12-25  Bruno Haible  <bruno@clisp.org>
6280
6281         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6282         * lib/glob.c: Don't include openat.h.
6283         (link_exists2_p): Add back the code that deals with the
6284         !GLOB_ALTDIRFUNC case.
6285         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6286         let it do the filename concatenation.
6287         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6288         * modules/glob (Depends-on): Remove openat.
6289
6290 2007-12-31  Bruno Haible  <bruno@clisp.org>
6291
6292         * modules/dirfd (License): Change to LGPLv2+.
6293         Approved by Jim Meyering.
6294
6295 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6296
6297         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6298         when multiplying M by sizeof (size_t).
6299
6300 2007-12-10  Martin Lambers  <marlam@marlam.de>
6301
6302         Override getpagesize on mingw.
6303         * lib/getpagesize.c: New file.
6304         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6305         * modules/getpagesize (Files): Add lib/getpagesize.c.
6306         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6308         REPLACE_GETPAGESIZE.
6309         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6310
6311 2007-12-25  Bruno Haible  <bruno@clisp.org>
6312
6313         * modules/localcharset (Notice): New field.
6314         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6315         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6316
6317 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6318             Bruno Haible  <bruno@clisp.org>
6319
6320         Avoid using the syntax symbol() in formatted documentation.
6321         * MODULES.html.sh (func_module): When replacing symbol() with a
6322         hyperlink, remove the parentheses. Show an error if some remain.
6323         Recognize and render the '...' syntax.
6324         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6325         Rework. Add paragraph about GCC's inlining.
6326         * doc/alloca.texi: Likewise.
6327         * doc/error.texi: Remove parentheses from symbol reference.
6328         * doc/gnulib-intro.texi: Likewise.
6329         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6330         * modules/fnmatch (Description): Reword to say "the ... function".
6331         * modules/full-read (Description): Likewise.
6332         * modules/full-write (Description): Likewise.
6333         * modules/safe-read (Description): Likewise.
6334         * modules/safe-write (Description): Likewise.
6335         * modules/strchrnul (Description): Likewise.
6336         * modules/trim (Description): Likewise.
6337         * modules/error (Description): Remove parentheses from symbol
6338         references.
6339         * modules/verror (Description): Likewise.
6340         Reported by Karl Berry.
6341
6342 2007-12-25  Bruno Haible  <bruno@clisp.org>
6343
6344         Fixup after 2007-10-16 commit.
6345         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6346
6347 2007-12-24  Bruno Haible  <bruno@clisp.org>
6348
6349         Make --enable-relocatable work with DESTDIR.
6350         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6351         to compute installdir from destprog.
6352         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6353         also set the RELOC_DESTDIR variable.
6354         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6355
6356 2007-12-24  Bruno Haible  <bruno@clisp.org>
6357
6358         Fix link error due to xalloc_die().
6359         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6360         of xreadlink.
6361         * lib/relocwrapper.c: Update comments.
6362         * build-aux/install-reloc: Remove xreadlink.c from file list.
6363         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6364         xreadlink.c.
6365         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6366
6367 2007-12-24  Bruno Haible  <bruno@clisp.org>
6368
6369         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6370         * lib/setenv.h: Remove file.
6371         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6372         lib/setenv.h.
6373         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6374         (Depends-on): Add stdlib.
6375         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6376         gl_FUNC_UNSETENV.
6377         (Include): Replace setenv.h with <stdlib.h>.
6378         * modules/unsetenv: New file.
6379         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6380         * lib/unsetenv.c: Include <stdlib.h> first.
6381         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6382         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6383         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6384         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6385         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6386         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6388         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6389         * doc/functions/unsetenv.texi: Update.
6390         * modules/xsetenv (Depends-on): Add unsetenv.
6391         * modules/getdate (Depends-on): Likewise.
6392         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6393         * lib/xsetenv.c: Don't include setenv.h.
6394         * lib/getdate.y: Likewise.
6395         * lib/relocwrapper.c: Likewise.
6396         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6397         (Depends-on): Add stdlib.
6398         * NEWS: Mention the changes.
6399         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6400
6401 2007-12-23  Bruno Haible  <bruno@clisp.org>
6402
6403         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6404         indentation.
6405
6406 2007-12-23  Bruno Haible  <bruno@clisp.org>
6407
6408         * lib/c-strcasestr.c: Add more comments.
6409         * lib/c-strstr.c: Likewise.
6410         * lib/mbscasestr.c: Likewise.
6411         * lib/mbsstr.c: Likewise.
6412         * lib/strcasestr.c: Likewise.
6413         * lib/memmem.c: Likewise.
6414
6415 2007-12-23  Bruno Haible  <bruno@clisp.org>
6416
6417         * tests/test-memmem.c: Include <string.h> first.
6418
6419 2007-12-22  Bruno Haible  <bruno@clisp.org>
6420
6421         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6422         the contents of $testsbase.
6423         Reported by Ralf Wildenhues.
6424
6425 2007-12-22  Bruno Haible  <bruno@clisp.org>
6426
6427         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6428         two variables local_ldadd_before, local_ldadd_last.
6429
6430 2007-12-20  Eric Blake  <ebb9@byu.net>
6431
6432         Work around circular library issue when cross-compiling.
6433         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6434         that progname.o does not need to pull in rpl_memcmp.
6435
6436 2007-12-19  Eric Blake  <ebb9@byu.net>
6437
6438         Fix memmem to avoid O(n^2) worst-case complexity.
6439         * lib/memmem.c (knuth_morris_pratt): New function.
6440         (memmem): Use it if first few naive iterations fail.
6441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6442         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6443         * modules/memchr (License): Likewise.
6444         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6445         malloca.
6446         * tests/test-memmem.c: Rewrite, borrowing ideas from
6447         test-mbsstr1.c; the old version wouldn't even compile!
6448         * modules/memmem-tests: New file.
6449         * lib/string.in.h (rpl_memmem): Add declaration.
6450         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6452         REPLACE_MEMMEM.
6453
6454 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6455
6456         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6457         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6458         before any system include files, and undef after them all.  This
6459         should fix a problem on VMS reported by John E. Malmberg in
6460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6461
6462 2007-12-17  Eric Blake  <ebb9@byu.net>
6463
6464         Revert addition of verify, for BSD/OS.
6465         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6466         can't handle large files, for the sake of obsolete platforms.
6467         * modules/fseeko (Depends-on): Remove verify.
6468         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6469         * doc/functions/ftello.texi (ftello): Likewise.
6470         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6471         Reported by Larry Jones.
6472
6473 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6474
6475         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6476         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6477
6478 2007-12-17  Jim Meyering  <meyering@redhat.com>
6479
6480         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6481         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6482         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6483         * modules/getcwd (Depends-on): Add openat.
6484         Reported by Petr Salinger.
6485
6486 2007-12-17  Bruno Haible  <bruno@clisp.org>
6487
6488         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6489         avoid a segmentation fault of the configure test on x86_64 systems.
6490
6491 2007-12-15  Jim Meyering  <meyering@redhat.com>
6492
6493         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6494
6495 2007-12-13  Eric Blake  <ebb9@byu.net>
6496
6497         Another fseek test.
6498         * tests/test-fseek.c (main): Also test ungetc handling.
6499         * tests/test-fseeko.c (main): Likewise.
6500         * modules/fseeko (Depends-on): Add verify.
6501         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6502         large.
6503         Reported by Larry Jones.
6504
6505         Fix fseeko on mingw.
6506         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6507         seek.
6508
6509         Beef up fseek tests.
6510         * tests/test-fseek.c (main): Also test eof handling.
6511         * tests/test-fseeko.c (main): Likewise.
6512         Reported by Larry Jones.
6513
6514 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6515
6516         Fix fseeko on BSD-based platforms.
6517         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6518         successful seek.
6519
6520 2007-12-12  Eric Blake  <ebb9@byu.net>
6521
6522         Allow circular dependency of separate libtests.a
6523         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6524         when use_libtests.
6525
6526 2007-12-11  Eric Blake  <ebb9@byu.net>
6527
6528         Fix bug with -0.0L in previous patch.
6529         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6530         * tests/test-isnan.c (main): Also test on zeroes.
6531         * tests/test-isnanf.c (main): Likewise.
6532         * tests/test-isnanl.h (main): Likewise.
6533
6534         Detect pseudo-denormals on x86 even when cross-compiling.
6535         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6536         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6537         invalid bit patterns that happen to satisfy ==.
6538
6539         Avoid link failures with separate libtests.a.
6540         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6541         last, to satisfy circular dependencies.
6542
6543 2007-12-11  Eric Blake  <ebb9@byu.net>
6544         and Bruno Haible  <bruno@clisp.org>
6545
6546         Fix OpenBSD 4.0 <float.h> handling of long double.
6547         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6548         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6549         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6550
6551 2007-12-11  Jim Meyering  <meyering@redhat.com>
6552
6553         * users.txt: Add libvirt.
6554
6555         Support versions of autoconf prior to 2.59c.
6556         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6557         if it is not already defined.
6558
6559 2007-12-09  Bruno Haible  <bruno@clisp.org>
6560
6561         Let 'gnulib-tool --import' collect sources needed for the tests in
6562         tests/ rather than in lib/.
6563         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6564         argument. If true, add rules to generate libtests.a, and put libtests.a
6565         into $(LDADD). Consider source files in subdirectories and set
6566         uses_subdirs.
6567         (func_emit_initmacro_start, func_emit_initmacro_end,
6568         func_emit_initmacro_done): Pass all arguments explicitly.
6569         (func_import): Determine two module lists main_modules,
6570         testsrelated_modules. Determine use_libtests. Determine two variables
6571         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6572         instead of just sed_transform_lib_file. Determine two variables
6573         main_files and testsrelated_files. Compute 'files' as the union of
6574         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6575         func_add_or_update. In the generated gnulib-comp.m4, collect the
6576         object files for tests/ in different variables than those for lib/.
6577         Substitute LIBTESTS_LIBDEPS.
6578         (func_create_testdir): Combine the uses_subdirs results from
6579         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6580
6581 2007-12-09  Bruno Haible  <bruno@clisp.org>
6582
6583         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6584         the build-aux directory.
6585
6586 2007-12-09  Bruno Haible  <bruno@clisp.org>
6587
6588         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6589         introduced on 2006-09-09.
6590
6591 2007-12-07  Jim Meyering  <meyering@redhat.com>
6592
6593         Let these macros work also with autoconf-2.59.
6594         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6595         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6596         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6597
6598 2007-12-06  Jim Meyering  <meyering@redhat.com>
6599
6600         Avoid a configure-time syntax error in gl_FUNC_ACL.
6601         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6602         function in each branch, before testing the cache variable.
6603
6604 2007-12-04  Eric Blake  <ebb9@byu.net>
6605
6606         Make scripts executable.
6607         * build-aux/config.guess: Add execute permissions.
6608         * build-aux/config.sub: Likewise.
6609         * build-aux/gendocs.sh: Likewise.
6610
6611         Fix frexp on mingw.
6612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6613         cross-compiling.
6614         * doc/functions/frexp.texi (frexp): Document the bug.
6615
6616         Make cygwin fseeko check more reliable.
6617         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6618         version numbers, rather than unrelated feature check.
6619         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6620         * doc/functions/ftello.texi (ftello): Likewise.
6621         Reported by Bruno Haible.
6622
6623         * m4/strerror.m4: Bump version number.
6624
6625 2007-12-03  Bruno Haible  <bruno@clisp.org>
6626
6627         * doc/functions/mprotect.texi: Mention the mingw problem.
6628
6629 2007-12-03  Eric Blake  <ebb9@byu.net>
6630
6631         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6632         REPLACE_STRERROR is initialized before this macro.
6633
6634 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6635
6636         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6637         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6638         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6639         put -lsec in even for programs other than 'ls'.  This fixes a problem
6640         for gettext reported by Bruno Haible in
6641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6642         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6643         Add support for Solaris 10.  This isn't efficient, but should get the
6644         job done for now.
6645
6646 2007-12-03  James Youngman  <jay@gnu.org>
6647
6648         * doc/regexprops-generic.texi: change "an close-group" to "a
6649         close-group" and "illegal" to "not allowed".
6650
6651 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6652
6653         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6654         pr_byname.h. Needed for the rare case when the maintainer has done
6655         "make maintainer-clean" in the source directory and then attempts a
6656         build outside the source directory.
6657         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6658         scripts_byname.h.
6659
6660 2007-12-02  Martin Lambers <marlam@marlam.de>
6661             Bruno Haible  <bruno@clisp.org>
6662
6663         * lib/getpagesize.h: Remove file.
6664         * lib/unistd.in.h: Include declaration of getpagesize here.
6665         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6666         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6667         HAVE_SYS_PARAM_H.
6668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6669         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6670         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6671         (Depends-on): Add unistd.
6672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6673         (Include): Use <unistd.h> instead of getpagesize.h.
6674         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6675         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6676         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6677         gl_GETPAGESIZE invocation, already handled by module dependency.
6678         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6679
6680 2007-12-02  Bruno Haible  <bruno@clisp.org>
6681
6682         * modules/strings-tests: New file.
6683         * tests/test-strings.c: New file.
6684
6685         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6686         * lib/strings.in.h: New file.
6687         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6688         * m4/strings_h.m4: New file.
6689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6690         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6691         * modules/strings: New file.
6692         * modules/string (Makefile.am): Update.
6693         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6694         Reported by Karl Berry.
6695
6696 2007-12-01  Eric Blake  <ebb9@byu.net>
6697
6698         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6699         accomodate fix in cygwin 1.5.25.
6700
6701 2007-12-01  Jim Meyering  <meyering@redhat.com>
6702
6703         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6704         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6705         that would inhibit utf8-optimization of a regexp containing line-
6706         or buffer-anchors, e.g., `^', `$'.
6707
6708 2007-11-30  Bruno Haible  <bruno@clisp.org>
6709
6710         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6711         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6712         glthread_recursive_lock_init.
6713         * lib/lock.c (glthread_recursive_lock_init)
6714         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6715         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6716
6717 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6718
6719         New function qset_acl, like set_acl but with syscall semantics.
6720         * lib/acl.h (qset_acl): New decl.
6721         * lib/acl.c (qset_acl): New function.
6722         (set_acl): Use new function.  Use more-consistent diagnostics.
6723
6724 2007-11-28  Jim Meyering  <meyering@redhat.com>
6725
6726         * modules/physmem (License): Change from GPL to LGPLv2+.
6727
6728 2007-11-26  Bruno Haible  <bruno@clisp.org>
6729
6730         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6731         'long double' type has excess precision.
6732         Reported by Jim Meyering in
6733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6734
6735 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6736
6737         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6738         Sync from <http://gnu.org/licenses>.
6739         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6740         with license text from same location.
6741         * doc/maintain.texi, doc/standards.texi:  Sync from
6742         <http://savannah.gnu.org/projects/gnustandards>.
6743
6744 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
6745         and Jim Meyering  <meyering@redhat.com>
6746
6747         Adjust getdate' grammar to accept a slightly more regular language.
6748         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6749         Before, the former was rejected.
6750         * lib/getdate.y (digits_to_date_time): New function, factored
6751         out of ...
6752         (number): ...here.  Just call digits_to_date_time.
6753         (hybrid): New non-terminal to handle an <unsigned number,
6754         signed relative offset> sequence consistently.
6755
6756 2007-11-18  Jim Meyering  <meyering@redhat.com>
6757
6758         Pull my changes from coreutils:
6759         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6760         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6761         use of $gnulib_tool_option_extras, so that it's separated from the
6762         preceding argument.
6763
6764         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6765         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6766         parent destination directories before copying a file into place.
6767
6768 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6769
6770         bootstrap: work also with 4-argument variant of AC_INIT
6771         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6772
6773 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         Port test-getaddrinfo to Solaris.
6776         Problem reported by Bruno Haible in
6777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6778         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6779         explanation of setting 'hints'.
6780         Don't reject an implementation merely because it returns EAI_SERVICE.
6781         (EAI_SERVICE): Define to 0 if not defined.
6782
6783 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6784
6785         The license of gnu-make and posix-shell is now "GPLed build tool".
6786         * modules/gnu-make (License): Likewise.
6787         * modules/posix-shell (License): Likewise.
6788
6789         New module posix-shell, for determining a POSIX shell
6790         or perhaps something that is close enough to a POSIX shell.
6791         * m4/posix-shell.m4: New file.
6792         * modules/posix-shell: New file.
6793
6794         * MODULES.html.sh: Mention new module.
6795
6796         New module gnu-make, for determining whether we're using GNU Make.
6797         * m4/gnu-make.m4: New file.
6798         * modules/gnu-make: New file.
6799         * MODULES.html.sh: Mention new module.
6800
6801 2007-11-14  Jim Meyering  <meyering@redhat.com>
6802
6803         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6804         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6805         use this macro to create a function _definition_.
6806         Remove useless "#undef ARGMATCH_DIE".
6807
6808 2007-11-14  Bruno Haible  <bruno@clisp.org>
6809
6810         * lib/config.charset: Update for OpenBSD 4.1.
6811         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6812
6813 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         Document 64-bit #if problems in stdint.texi.
6816         * doc/headers/stdint.texi (stdint.h): Mention problems with
6817         64-bit-#if, and how to work around them.
6818
6819         Don't insist on 'long long int' support in the preprocessor.  It
6820         breaks too many things.  For example, PRIdMAX still uses a 'long
6821         long int' format with the latest Sun compiler, even though
6822         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6823         preprocessor problem.  This causes the latest coreutils to dump
6824         core on Solaris 10 sparc with the Sun C compiler.
6825         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6826         the troublesome expressions at configure-time, not at #if-time.
6827         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6828         preprocessor.
6829         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6830         compile-time C checks, done at 'configure'-time.
6831         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6832         * modules/inttypes (Makefile): Substitute the new symbols that
6833         gl_INTTYPES_H now generates.
6834         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6835
6836 2007-11-12  Bruno Haible  <bruno@clisp.org>
6837
6838         Tests for Unicode character classification functions.
6839
6840         * modules/unictype/bidicategory-byname-tests: New file.
6841         * modules/unictype/bidicategory-name-tests: New file.
6842         * modules/unictype/bidicategory-of-tests: New file.
6843         * modules/unictype/bidicategory-test-tests: New file.
6844         * modules/unictype/block-list-tests: New file.
6845         * modules/unictype/block-of-tests: New file.
6846         * modules/unictype/block-test-tests: New file.
6847         * modules/unictype/category-C-tests: New file.
6848         * modules/unictype/category-Cc-tests: New file.
6849         * modules/unictype/category-Cf-tests: New file.
6850         * modules/unictype/category-Cn-tests: New file.
6851         * modules/unictype/category-Co-tests: New file.
6852         * modules/unictype/category-Cs-tests: New file.
6853         * modules/unictype/category-L-tests: New file.
6854         * modules/unictype/category-Ll-tests: New file.
6855         * modules/unictype/category-Lm-tests: New file.
6856         * modules/unictype/category-Lo-tests: New file.
6857         * modules/unictype/category-Lt-tests: New file.
6858         * modules/unictype/category-Lu-tests: New file.
6859         * modules/unictype/category-M-tests: New file.
6860         * modules/unictype/category-Mc-tests: New file.
6861         * modules/unictype/category-Me-tests: New file.
6862         * modules/unictype/category-Mn-tests: New file.
6863         * modules/unictype/category-N-tests: New file.
6864         * modules/unictype/category-Nd-tests: New file.
6865         * modules/unictype/category-Nl-tests: New file.
6866         * modules/unictype/category-No-tests: New file.
6867         * modules/unictype/category-P-tests: New file.
6868         * modules/unictype/category-Pc-tests: New file.
6869         * modules/unictype/category-Pd-tests: New file.
6870         * modules/unictype/category-Pe-tests: New file.
6871         * modules/unictype/category-Pf-tests: New file.
6872         * modules/unictype/category-Pi-tests: New file.
6873         * modules/unictype/category-Po-tests: New file.
6874         * modules/unictype/category-Ps-tests: New file.
6875         * modules/unictype/category-S-tests: New file.
6876         * modules/unictype/category-Sc-tests: New file.
6877         * modules/unictype/category-Sk-tests: New file.
6878         * modules/unictype/category-Sm-tests: New file.
6879         * modules/unictype/category-So-tests: New file.
6880         * modules/unictype/category-Z-tests: New file.
6881         * modules/unictype/category-Zl-tests: New file.
6882         * modules/unictype/category-Zp-tests: New file.
6883         * modules/unictype/category-Zs-tests: New file.
6884         * modules/unictype/category-and-not-tests: New file.
6885         * modules/unictype/category-and-tests: New file.
6886         * modules/unictype/category-byname-tests: New file.
6887         * modules/unictype/category-name-tests: New file.
6888         * modules/unictype/category-none-tests: New file.
6889         * modules/unictype/category-of-tests: New file.
6890         * modules/unictype/category-or-tests: New file.
6891         * modules/unictype/category-test-withtable-tests: New file.
6892         * modules/unictype/combining-class-tests: New file.
6893         * modules/unictype/ctype-alnum-tests: New file.
6894         * modules/unictype/ctype-alpha-tests: New file.
6895         * modules/unictype/ctype-blank-tests: New file.
6896         * modules/unictype/ctype-cntrl-tests: New file.
6897         * modules/unictype/ctype-digit-tests: New file.
6898         * modules/unictype/ctype-graph-tests: New file.
6899         * modules/unictype/ctype-lower-tests: New file.
6900         * modules/unictype/ctype-print-tests: New file.
6901         * modules/unictype/ctype-punct-tests: New file.
6902         * modules/unictype/ctype-space-tests: New file.
6903         * modules/unictype/ctype-upper-tests: New file.
6904         * modules/unictype/ctype-xdigit-tests: New file.
6905         * modules/unictype/decimal-digit-tests: New file.
6906         * modules/unictype/digit-tests: New file.
6907         * modules/unictype/mirror-tests: New file.
6908         * modules/unictype/numeric-tests: New file.
6909         * modules/unictype/property-alphabetic-tests: New file.
6910         * modules/unictype/property-ascii-hex-digit-tests: New file.
6911         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6912         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6913         * modules/unictype/property-bidi-block-separator-tests: New file.
6914         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6915         * modules/unictype/property-bidi-common-separator-tests: New file.
6916         * modules/unictype/property-bidi-control-tests: New file.
6917         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6918         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6919         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6920         * modules/unictype/property-bidi-european-digit-tests: New file.
6921         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6922         * modules/unictype/property-bidi-left-to-right-tests: New file.
6923         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6924         * modules/unictype/property-bidi-other-neutral-tests: New file.
6925         * modules/unictype/property-bidi-pdf-tests: New file.
6926         * modules/unictype/property-bidi-segment-separator-tests: New file.
6927         * modules/unictype/property-bidi-whitespace-tests: New file.
6928         * modules/unictype/property-byname-tests: New file.
6929         * modules/unictype/property-combining-tests: New file.
6930         * modules/unictype/property-composite-tests: New file.
6931         * modules/unictype/property-currency-symbol-tests: New file.
6932         * modules/unictype/property-dash-tests: New file.
6933         * modules/unictype/property-decimal-digit-tests: New file.
6934         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6935         * modules/unictype/property-deprecated-tests: New file.
6936         * modules/unictype/property-diacritic-tests: New file.
6937         * modules/unictype/property-extender-tests: New file.
6938         * modules/unictype/property-format-control-tests: New file.
6939         * modules/unictype/property-grapheme-base-tests: New file.
6940         * modules/unictype/property-grapheme-extend-tests: New file.
6941         * modules/unictype/property-grapheme-link-tests: New file.
6942         * modules/unictype/property-hex-digit-tests: New file.
6943         * modules/unictype/property-hyphen-tests: New file.
6944         * modules/unictype/property-id-continue-tests: New file.
6945         * modules/unictype/property-id-start-tests: New file.
6946         * modules/unictype/property-ideographic-tests: New file.
6947         * modules/unictype/property-ids-binary-operator-tests: New file.
6948         * modules/unictype/property-ids-trinary-operator-tests: New file.
6949         * modules/unictype/property-ignorable-control-tests: New file.
6950         * modules/unictype/property-iso-control-tests: New file.
6951         * modules/unictype/property-join-control-tests: New file.
6952         * modules/unictype/property-left-of-pair-tests: New file.
6953         * modules/unictype/property-line-separator-tests: New file.
6954         * modules/unictype/property-logical-order-exception-tests: New file.
6955         * modules/unictype/property-lowercase-tests: New file.
6956         * modules/unictype/property-math-tests: New file.
6957         * modules/unictype/property-non-break-tests: New file.
6958         * modules/unictype/property-not-a-character-tests: New file.
6959         * modules/unictype/property-numeric-tests: New file.
6960         * modules/unictype/property-other-alphabetic-tests: New file.
6961         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6962         * modules/unictype/property-other-grapheme-extend-tests: New file.
6963         * modules/unictype/property-other-id-continue-tests: New file.
6964         * modules/unictype/property-other-id-start-tests: New file.
6965         * modules/unictype/property-other-lowercase-tests: New file.
6966         * modules/unictype/property-other-math-tests: New file.
6967         * modules/unictype/property-other-uppercase-tests: New file.
6968         * modules/unictype/property-paired-punctuation-tests: New file.
6969         * modules/unictype/property-paragraph-separator-tests: New file.
6970         * modules/unictype/property-pattern-syntax-tests: New file.
6971         * modules/unictype/property-pattern-white-space-tests: New file.
6972         * modules/unictype/property-private-use-tests: New file.
6973         * modules/unictype/property-punctuation-tests: New file.
6974         * modules/unictype/property-quotation-mark-tests: New file.
6975         * modules/unictype/property-radical-tests: New file.
6976         * modules/unictype/property-sentence-terminal-tests: New file.
6977         * modules/unictype/property-soft-dotted-tests: New file.
6978         * modules/unictype/property-space-tests: New file.
6979         * modules/unictype/property-terminal-punctuation-tests: New file.
6980         * modules/unictype/property-test-tests: New file.
6981         * modules/unictype/property-titlecase-tests: New file.
6982         * modules/unictype/property-unassigned-code-value-tests: New file.
6983         * modules/unictype/property-unified-ideograph-tests: New file.
6984         * modules/unictype/property-uppercase-tests: New file.
6985         * modules/unictype/property-variation-selector-tests: New file.
6986         * modules/unictype/property-white-space-tests: New file.
6987         * modules/unictype/property-xid-continue-tests: New file.
6988         * modules/unictype/property-xid-start-tests: New file.
6989         * modules/unictype/property-zero-width-tests: New file.
6990         * modules/unictype/scripts-tests: New file.
6991         * modules/unictype/syntax-c-ident-tests: New file.
6992         * modules/unictype/syntax-c-whitespace-tests: New file.
6993         * modules/unictype/syntax-java-ident-tests: New file.
6994         * modules/unictype/syntax-java-whitespace-tests: New file.
6995         * tests/unictype/test-bidi_byname.c: New file.
6996         * tests/unictype/test-bidi_name.c: New file.
6997         * tests/unictype/test-bidi_of.c: New file.
6998         * tests/unictype/test-bidi_test.c: New file.
6999         * tests/unictype/test-block_list.c: New file.
7000         * tests/unictype/test-block_of.c: New file.
7001         * tests/unictype/test-block_test.c: New file.
7002         * tests/unictype/test-categ_and.c: New file.
7003         * tests/unictype/test-categ_and_not.c: New file.
7004         * tests/unictype/test-categ_byname.c: New file.
7005         * tests/unictype/test-categ_name.c: New file.
7006         * tests/unictype/test-categ_none.c: New file.
7007         * tests/unictype/test-categ_of.c: New file.
7008         * tests/unictype/test-categ_or.c: New file.
7009         * tests/unictype/test-categ_test_withtable.c: New file.
7010         * tests/unictype/test-combining.c: New file.
7011         * tests/unictype/test-decdigit.c: New file.
7012         * tests/unictype/test-digit.c: New file.
7013         * tests/unictype/test-mirror.c: New file.
7014         * tests/unictype/test-numeric.c: New file.
7015         * tests/unictype/test-pr_byname.c: New file.
7016         * tests/unictype/test-pr_test.c: New file.
7017         * tests/unictype/test-predicate-part1.h: New file.
7018         * tests/unictype/test-predicate-part2.h: New file.
7019         * tests/unictype/test-scripts.c: New file.
7020         * tests/unictype/test-sy_c_ident.c: New file.
7021         * tests/unictype/test-sy_java_ident.c: New file.
7022
7023         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7024         for Unicode 5.0.0.
7025         * tests/unictype/test-categ_Cc.c: Likewise.
7026         * tests/unictype/test-categ_Cf.c: Likewise.
7027         * tests/unictype/test-categ_Cn.c: Likewise.
7028         * tests/unictype/test-categ_Co.c: Likewise.
7029         * tests/unictype/test-categ_Cs.c: Likewise.
7030         * tests/unictype/test-categ_L.c: Likewise.
7031         * tests/unictype/test-categ_Ll.c: Likewise.
7032         * tests/unictype/test-categ_Lm.c: Likewise.
7033         * tests/unictype/test-categ_Lo.c: Likewise.
7034         * tests/unictype/test-categ_Lt.c: Likewise.
7035         * tests/unictype/test-categ_Lu.c: Likewise.
7036         * tests/unictype/test-categ_M.c: Likewise.
7037         * tests/unictype/test-categ_Mc.c: Likewise.
7038         * tests/unictype/test-categ_Me.c: Likewise.
7039         * tests/unictype/test-categ_Mn.c: Likewise.
7040         * tests/unictype/test-categ_N.c: Likewise.
7041         * tests/unictype/test-categ_Nd.c: Likewise.
7042         * tests/unictype/test-categ_Nl.c: Likewise.
7043         * tests/unictype/test-categ_No.c: Likewise.
7044         * tests/unictype/test-categ_P.c: Likewise.
7045         * tests/unictype/test-categ_Pc.c: Likewise.
7046         * tests/unictype/test-categ_Pd.c: Likewise.
7047         * tests/unictype/test-categ_Pe.c: Likewise.
7048         * tests/unictype/test-categ_Pf.c: Likewise.
7049         * tests/unictype/test-categ_Pi.c: Likewise.
7050         * tests/unictype/test-categ_Po.c: Likewise.
7051         * tests/unictype/test-categ_Ps.c: Likewise.
7052         * tests/unictype/test-categ_S.c: Likewise.
7053         * tests/unictype/test-categ_Sc.c: Likewise.
7054         * tests/unictype/test-categ_Sk.c: Likewise.
7055         * tests/unictype/test-categ_Sm.c: Likewise.
7056         * tests/unictype/test-categ_So.c: Likewise.
7057         * tests/unictype/test-categ_Z.c: Likewise.
7058         * tests/unictype/test-categ_Zl.c: Likewise.
7059         * tests/unictype/test-categ_Zp.c: Likewise.
7060         * tests/unictype/test-categ_Zs.c: Likewise.
7061         * tests/unictype/test-ctype_alnum.c: Likewise.
7062         * tests/unictype/test-ctype_alpha.c: Likewise.
7063         * tests/unictype/test-ctype_blank.c: Likewise.
7064         * tests/unictype/test-ctype_cntrl.c: Likewise.
7065         * tests/unictype/test-ctype_digit.c: Likewise.
7066         * tests/unictype/test-ctype_graph.c: Likewise.
7067         * tests/unictype/test-ctype_lower.c: Likewise.
7068         * tests/unictype/test-ctype_print.c: Likewise.
7069         * tests/unictype/test-ctype_punct.c: Likewise.
7070         * tests/unictype/test-ctype_space.c: Likewise.
7071         * tests/unictype/test-ctype_upper.c: Likewise.
7072         * tests/unictype/test-ctype_xdigit.c: Likewise.
7073         * tests/unictype/test-decdigit.h: Likewise.
7074         * tests/unictype/test-digit.h: Likewise.
7075         * tests/unictype/test-numeric.h: Likewise.
7076         * tests/unictype/test-pr_alphabetic.c: Likewise.
7077         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7078         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7079         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7080         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7081         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7082         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7083         * tests/unictype/test-pr_bidi_control.c: Likewise.
7084         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7085         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7086         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7087         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7088         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7089         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7090         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7091         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7092         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7093         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7094         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7095         * tests/unictype/test-pr_combining.c: Likewise.
7096         * tests/unictype/test-pr_composite.c: Likewise.
7097         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7098         * tests/unictype/test-pr_dash.c: Likewise.
7099         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7100         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7101         * tests/unictype/test-pr_deprecated.c: Likewise.
7102         * tests/unictype/test-pr_diacritic.c: Likewise.
7103         * tests/unictype/test-pr_extender.c: Likewise.
7104         * tests/unictype/test-pr_format_control.c: Likewise.
7105         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7106         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7107         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7108         * tests/unictype/test-pr_hex_digit.c: Likewise.
7109         * tests/unictype/test-pr_hyphen.c: Likewise.
7110         * tests/unictype/test-pr_id_continue.c: Likewise.
7111         * tests/unictype/test-pr_id_start.c: Likewise.
7112         * tests/unictype/test-pr_ideographic.c: Likewise.
7113         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7114         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7115         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7116         * tests/unictype/test-pr_iso_control.c: Likewise.
7117         * tests/unictype/test-pr_join_control.c: Likewise.
7118         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7119         * tests/unictype/test-pr_line_separator.c: Likewise.
7120         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7121         * tests/unictype/test-pr_lowercase.c: Likewise.
7122         * tests/unictype/test-pr_math.c: Likewise.
7123         * tests/unictype/test-pr_non_break.c: Likewise.
7124         * tests/unictype/test-pr_not_a_character.c: Likewise.
7125         * tests/unictype/test-pr_numeric.c: Likewise.
7126         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7127         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7128         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7129         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7130         * tests/unictype/test-pr_other_id_start.c: Likewise.
7131         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7132         * tests/unictype/test-pr_other_math.c: Likewise.
7133         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7134         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7135         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7136         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7137         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7138         * tests/unictype/test-pr_private_use.c: Likewise.
7139         * tests/unictype/test-pr_punctuation.c: Likewise.
7140         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7141         * tests/unictype/test-pr_radical.c: Likewise.
7142         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7143         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7144         * tests/unictype/test-pr_space.c: Likewise.
7145         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7146         * tests/unictype/test-pr_titlecase.c: Likewise.
7147         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7148         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7149         * tests/unictype/test-pr_uppercase.c: Likewise.
7150         * tests/unictype/test-pr_variation_selector.c: Likewise.
7151         * tests/unictype/test-pr_white_space.c: Likewise.
7152         * tests/unictype/test-pr_xid_continue.c: Likewise.
7153         * tests/unictype/test-pr_xid_start.c: Likewise.
7154         * tests/unictype/test-pr_zero_width.c: Likewise.
7155         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7156         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7157
7158 2007-11-12  Bruno Haible  <bruno@clisp.org>
7159
7160         Unicode character classification functions.
7161         * lib/unictype.h: New file.
7162         * modules/unictype/base: New file.
7163         * modules/unictype/category-L: New file.
7164         * modules/unictype/category-Lu: New file.
7165         * modules/unictype/category-Ll: New file.
7166         * modules/unictype/category-Lt: New file.
7167         * modules/unictype/category-Lm: New file.
7168         * modules/unictype/category-Lo: New file.
7169         * modules/unictype/category-M: New file.
7170         * modules/unictype/category-Mn: New file.
7171         * modules/unictype/category-Mc: New file.
7172         * modules/unictype/category-Me: New file.
7173         * modules/unictype/category-N: New file.
7174         * modules/unictype/category-Nd: New file.
7175         * modules/unictype/category-Nl: New file.
7176         * modules/unictype/category-No: New file.
7177         * modules/unictype/category-P: New file.
7178         * modules/unictype/category-Pc: New file.
7179         * modules/unictype/category-Pd: New file.
7180         * modules/unictype/category-Ps: New file.
7181         * modules/unictype/category-Pe: New file.
7182         * modules/unictype/category-Pi: New file.
7183         * modules/unictype/category-Pf: New file.
7184         * modules/unictype/category-Po: New file.
7185         * modules/unictype/category-S: New file.
7186         * modules/unictype/category-Sm: New file.
7187         * modules/unictype/category-Sc: New file.
7188         * modules/unictype/category-Sk: New file.
7189         * modules/unictype/category-So: New file.
7190         * modules/unictype/category-Z: New file.
7191         * modules/unictype/category-Zs: New file.
7192         * modules/unictype/category-Zl: New file.
7193         * modules/unictype/category-Zp: New file.
7194         * modules/unictype/category-C: New file.
7195         * modules/unictype/category-Cc: New file.
7196         * modules/unictype/category-Cf: New file.
7197         * modules/unictype/category-Cs: New file.
7198         * modules/unictype/category-Co: New file.
7199         * modules/unictype/category-Cn: New file.
7200         * modules/unictype/category-or: New file.
7201         * modules/unictype/category-of: New file.
7202         * modules/unictype/category-test: New file.
7203         * modules/unictype/category-test-withtable: New file.
7204         * modules/unictype/category-byname: New file.
7205         * modules/unictype/category-none: New file.
7206         * modules/unictype/category-and: New file.
7207         * modules/unictype/category-and-not: New file.
7208         * modules/unictype/category-name: New file.
7209         * modules/unictype/combining-class: New file.
7210         * modules/unictype/category-all: New file.
7211         * modules/unictype/bidicategory-all: New file.
7212         * modules/unictype/bidicategory-byname: New file.
7213         * modules/unictype/bidicategory-name: New file.
7214         * modules/unictype/bidicategory-of: New file.
7215         * modules/unictype/bidicategory-test: New file.
7216         * modules/unictype/decimal-digit: New file.
7217         * modules/unictype/digit: New file.
7218         * modules/unictype/numeric: New file.
7219         * modules/unictype/mirror: New file.
7220         * modules/unictype/property-white-space: New file.
7221         * modules/unictype/property-alphabetic: New file.
7222         * modules/unictype/property-other-alphabetic: New file.
7223         * modules/unictype/property-not-a-character: New file.
7224         * modules/unictype/property-default-ignorable-code-point: New file.
7225         * modules/unictype/property-other-default-ignorable-code-point: New
7226         file.
7227         * modules/unictype/property-deprecated: New file.
7228         * modules/unictype/property-logical-order-exception: New file.
7229         * modules/unictype/property-variation-selector: New file.
7230         * modules/unictype/property-private-use: New file.
7231         * modules/unictype/property-unassigned-code-value: New file.
7232         * modules/unictype/property-uppercase: New file.
7233         * modules/unictype/property-other-uppercase: New file.
7234         * modules/unictype/property-lowercase: New file.
7235         * modules/unictype/property-other-lowercase: New file.
7236         * modules/unictype/property-titlecase: New file.
7237         * modules/unictype/property-soft-dotted: New file.
7238         * modules/unictype/property-id-start: New file.
7239         * modules/unictype/property-other-id-start: New file.
7240         * modules/unictype/property-id-continue: New file.
7241         * modules/unictype/property-other-id-continue: New file.
7242         * modules/unictype/property-xid-start: New file.
7243         * modules/unictype/property-xid-continue: New file.
7244         * modules/unictype/property-pattern-white-space: New file.
7245         * modules/unictype/property-pattern-syntax: New file.
7246         * modules/unictype/property-join-control: New file.
7247         * modules/unictype/property-grapheme-base: New file.
7248         * modules/unictype/property-grapheme-extend: New file.
7249         * modules/unictype/property-other-grapheme-extend: New file.
7250         * modules/unictype/property-grapheme-link: New file.
7251         * modules/unictype/property-bidi-control: New file.
7252         * modules/unictype/property-bidi-left-to-right: New file.
7253         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7254         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7255         * modules/unictype/property-bidi-european-digit: New file.
7256         * modules/unictype/property-bidi-eur-num-separator: New file.
7257         * modules/unictype/property-bidi-eur-num-terminator: New file.
7258         * modules/unictype/property-bidi-arabic-digit: New file.
7259         * modules/unictype/property-bidi-common-separator: New file.
7260         * modules/unictype/property-bidi-block-separator: New file.
7261         * modules/unictype/property-bidi-segment-separator: New file.
7262         * modules/unictype/property-bidi-whitespace: New file.
7263         * modules/unictype/property-bidi-non-spacing-mark: New file.
7264         * modules/unictype/property-bidi-boundary-neutral: New file.
7265         * modules/unictype/property-bidi-pdf: New file.
7266         * modules/unictype/property-bidi-embedding-or-override: New file.
7267         * modules/unictype/property-bidi-other-neutral: New file.
7268         * modules/unictype/property-hex-digit: New file.
7269         * modules/unictype/property-ascii-hex-digit: New file.
7270         * modules/unictype/property-ideographic: New file.
7271         * modules/unictype/property-unified-ideograph: New file.
7272         * modules/unictype/property-radical: New file.
7273         * modules/unictype/property-ids-binary-operator: New file.
7274         * modules/unictype/property-ids-trinary-operator: New file.
7275         * modules/unictype/property-zero-width: New file.
7276         * modules/unictype/property-space: New file.
7277         * modules/unictype/property-non-break: New file.
7278         * modules/unictype/property-iso-control: New file.
7279         * modules/unictype/property-format-control: New file.
7280         * modules/unictype/property-dash: New file.
7281         * modules/unictype/property-hyphen: New file.
7282         * modules/unictype/property-punctuation: New file.
7283         * modules/unictype/property-line-separator: New file.
7284         * modules/unictype/property-paragraph-separator: New file.
7285         * modules/unictype/property-quotation-mark: New file.
7286         * modules/unictype/property-sentence-terminal: New file.
7287         * modules/unictype/property-terminal-punctuation: New file.
7288         * modules/unictype/property-currency-symbol: New file.
7289         * modules/unictype/property-math: New file.
7290         * modules/unictype/property-other-math: New file.
7291         * modules/unictype/property-paired-punctuation: New file.
7292         * modules/unictype/property-left-of-pair: New file.
7293         * modules/unictype/property-combining: New file.
7294         * modules/unictype/property-composite: New file.
7295         * modules/unictype/property-decimal-digit: New file.
7296         * modules/unictype/property-numeric: New file.
7297         * modules/unictype/property-diacritic: New file.
7298         * modules/unictype/property-extender: New file.
7299         * modules/unictype/property-ignorable-control: New file.
7300         * modules/unictype/property-test: New file.
7301         * modules/unictype/property-byname: New file.
7302         * modules/unictype/property-all: New file.
7303         * modules/unictype/scripts: New file.
7304         * modules/unictype/scripts-all: New file.
7305         * modules/unictype/block-of: New file.
7306         * modules/unictype/block-test: New file.
7307         * modules/unictype/block-list: New file.
7308         * modules/unictype/block-all: New file.
7309         * modules/unictype/syntax-c-whitespace: New file.
7310         * modules/unictype/syntax-java-whitespace: New file.
7311         * modules/unictype/syntax-c-ident: New file.
7312         * modules/unictype/syntax-java-ident: New file.
7313         * modules/unictype/ctype-alnum: New file.
7314         * modules/unictype/ctype-alpha: New file.
7315         * modules/unictype/ctype-cntrl: New file.
7316         * modules/unictype/ctype-digit: New file.
7317         * modules/unictype/ctype-graph: New file.
7318         * modules/unictype/ctype-lower: New file.
7319         * modules/unictype/ctype-print: New file.
7320         * modules/unictype/ctype-punct: New file.
7321         * modules/unictype/ctype-space: New file.
7322         * modules/unictype/ctype-upper: New file.
7323         * modules/unictype/ctype-xdigit: New file.
7324         * modules/unictype/ctype-blank: New file.
7325         * lib/unictype/bidi_byname.c: New file.
7326         * lib/unictype/bidi_name.c: New file.
7327         * lib/unictype/bidi_of.c: New file.
7328         * lib/unictype/bidi_test.c: New file.
7329         * lib/unictype/bitmap.h: New file.
7330         * lib/unictype/block_test.c: New file.
7331         * lib/unictype/blocks.c: New file.
7332         * lib/unictype/categ_C.c: New file.
7333         * lib/unictype/categ_Cc.c: New file.
7334         * lib/unictype/categ_Cf.c: New file.
7335         * lib/unictype/categ_Cn.c: New file.
7336         * lib/unictype/categ_Co.c: New file.
7337         * lib/unictype/categ_Cs.c: New file.
7338         * lib/unictype/categ_L.c: New file.
7339         * lib/unictype/categ_Ll.c: New file.
7340         * lib/unictype/categ_Lm.c: New file.
7341         * lib/unictype/categ_Lo.c: New file.
7342         * lib/unictype/categ_Lt.c: New file.
7343         * lib/unictype/categ_Lu.c: New file.
7344         * lib/unictype/categ_M.c: New file.
7345         * lib/unictype/categ_Mc.c: New file.
7346         * lib/unictype/categ_Me.c: New file.
7347         * lib/unictype/categ_Mn.c: New file.
7348         * lib/unictype/categ_N.c: New file.
7349         * lib/unictype/categ_Nd.c: New file.
7350         * lib/unictype/categ_Nl.c: New file.
7351         * lib/unictype/categ_No.c: New file.
7352         * lib/unictype/categ_P.c: New file.
7353         * lib/unictype/categ_Pc.c: New file.
7354         * lib/unictype/categ_Pd.c: New file.
7355         * lib/unictype/categ_Pe.c: New file.
7356         * lib/unictype/categ_Pf.c: New file.
7357         * lib/unictype/categ_Pi.c: New file.
7358         * lib/unictype/categ_Po.c: New file.
7359         * lib/unictype/categ_Ps.c: New file.
7360         * lib/unictype/categ_S.c: New file.
7361         * lib/unictype/categ_Sc.c: New file.
7362         * lib/unictype/categ_Sk.c: New file.
7363         * lib/unictype/categ_Sm.c: New file.
7364         * lib/unictype/categ_So.c: New file.
7365         * lib/unictype/categ_Z.c: New file.
7366         * lib/unictype/categ_Zl.c: New file.
7367         * lib/unictype/categ_Zp.c: New file.
7368         * lib/unictype/categ_Zs.c: New file.
7369         * lib/unictype/categ_and.c: New file.
7370         * lib/unictype/categ_and_not.c: New file.
7371         * lib/unictype/categ_byname.c: New file.
7372         * lib/unictype/categ_name.c: New file.
7373         * lib/unictype/categ_none.c: New file.
7374         * lib/unictype/categ_of.c: New file.
7375         * lib/unictype/categ_or.c: New file.
7376         * lib/unictype/categ_test.c: New file.
7377         * lib/unictype/combining.c: New file.
7378         * lib/unictype/ctype_alnum.c: New file.
7379         * lib/unictype/ctype_alpha.c: New file.
7380         * lib/unictype/ctype_blank.c: New file.
7381         * lib/unictype/ctype_cntrl.c: New file.
7382         * lib/unictype/ctype_digit.c: New file.
7383         * lib/unictype/ctype_graph.c: New file.
7384         * lib/unictype/ctype_lower.c: New file.
7385         * lib/unictype/ctype_print.c: New file.
7386         * lib/unictype/ctype_punct.c: New file.
7387         * lib/unictype/ctype_space.c: New file.
7388         * lib/unictype/ctype_upper.c: New file.
7389         * lib/unictype/ctype_xdigit.c: New file.
7390         * lib/unictype/decdigit.c: New file.
7391         * lib/unictype/digit.c: New file.
7392         * lib/unictype/identsyntaxmap.h: New file.
7393         * lib/unictype/mirror.c: New file.
7394         * lib/unictype/numeric.c: New file.
7395         * lib/unictype/pr_alphabetic.c: New file.
7396         * lib/unictype/pr_ascii_hex_digit.c: New file.
7397         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7398         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7399         * lib/unictype/pr_bidi_block_separator.c: New file.
7400         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7401         * lib/unictype/pr_bidi_common_separator.c: New file.
7402         * lib/unictype/pr_bidi_control.c: New file.
7403         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7404         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7405         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7406         * lib/unictype/pr_bidi_european_digit.c: New file.
7407         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7408         * lib/unictype/pr_bidi_left_to_right.c: New file.
7409         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7410         * lib/unictype/pr_bidi_other_neutral.c: New file.
7411         * lib/unictype/pr_bidi_pdf.c: New file.
7412         * lib/unictype/pr_bidi_segment_separator.c: New file.
7413         * lib/unictype/pr_bidi_whitespace.c: New file.
7414         * lib/unictype/pr_byname.c: New file.
7415         * lib/unictype/pr_byname.gperf: New file.
7416         * lib/unictype/pr_combining.c: New file.
7417         * lib/unictype/pr_composite.c: New file.
7418         * lib/unictype/pr_currency_symbol.c: New file.
7419         * lib/unictype/pr_dash.c: New file.
7420         * lib/unictype/pr_decimal_digit.c: New file.
7421         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7422         * lib/unictype/pr_deprecated.c: New file.
7423         * lib/unictype/pr_diacritic.c: New file.
7424         * lib/unictype/pr_extender.c: New file.
7425         * lib/unictype/pr_format_control.c: New file.
7426         * lib/unictype/pr_grapheme_base.c: New file.
7427         * lib/unictype/pr_grapheme_extend.c: New file.
7428         * lib/unictype/pr_grapheme_link.c: New file.
7429         * lib/unictype/pr_hex_digit.c: New file.
7430         * lib/unictype/pr_hyphen.c: New file.
7431         * lib/unictype/pr_id_continue.c: New file.
7432         * lib/unictype/pr_id_start.c: New file.
7433         * lib/unictype/pr_ideographic.c: New file.
7434         * lib/unictype/pr_ids_binary_operator.c: New file.
7435         * lib/unictype/pr_ids_trinary_operator.c: New file.
7436         * lib/unictype/pr_ignorable_control.c: New file.
7437         * lib/unictype/pr_iso_control.c: New file.
7438         * lib/unictype/pr_join_control.c: New file.
7439         * lib/unictype/pr_left_of_pair.c: New file.
7440         * lib/unictype/pr_line_separator.c: New file.
7441         * lib/unictype/pr_logical_order_exception.c: New file.
7442         * lib/unictype/pr_lowercase.c: New file.
7443         * lib/unictype/pr_math.c: New file.
7444         * lib/unictype/pr_non_break.c: New file.
7445         * lib/unictype/pr_not_a_character.c: New file.
7446         * lib/unictype/pr_numeric.c: New file.
7447         * lib/unictype/pr_other_alphabetic.c: New file.
7448         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7449         * lib/unictype/pr_other_grapheme_extend.c: New file.
7450         * lib/unictype/pr_other_id_continue.c: New file.
7451         * lib/unictype/pr_other_id_start.c: New file.
7452         * lib/unictype/pr_other_lowercase.c: New file.
7453         * lib/unictype/pr_other_math.c: New file.
7454         * lib/unictype/pr_other_uppercase.c: New file.
7455         * lib/unictype/pr_paired_punctuation.c: New file.
7456         * lib/unictype/pr_paragraph_separator.c: New file.
7457         * lib/unictype/pr_pattern_syntax.c: New file.
7458         * lib/unictype/pr_pattern_white_space.c: New file.
7459         * lib/unictype/pr_private_use.c: New file.
7460         * lib/unictype/pr_punctuation.c: New file.
7461         * lib/unictype/pr_quotation_mark.c: New file.
7462         * lib/unictype/pr_radical.c: New file.
7463         * lib/unictype/pr_sentence_terminal.c: New file.
7464         * lib/unictype/pr_soft_dotted.c: New file.
7465         * lib/unictype/pr_space.c: New file.
7466         * lib/unictype/pr_terminal_punctuation.c: New file.
7467         * lib/unictype/pr_test.c: New file.
7468         * lib/unictype/pr_titlecase.c: New file.
7469         * lib/unictype/pr_unassigned_code_value.c: New file.
7470         * lib/unictype/pr_unified_ideograph.c: New file.
7471         * lib/unictype/pr_uppercase.c: New file.
7472         * lib/unictype/pr_variation_selector.c: New file.
7473         * lib/unictype/pr_white_space.c: New file.
7474         * lib/unictype/pr_xid_continue.c: New file.
7475         * lib/unictype/pr_xid_start.c: New file.
7476         * lib/unictype/pr_zero_width.c: New file.
7477         * lib/unictype/scripts.c: New file.
7478         * lib/unictype/sy_c_ident.c: New file.
7479         * lib/unictype/sy_c_whitespace.c: New file.
7480         * lib/unictype/sy_java_ident.c: New file.
7481         * lib/unictype/sy_java_whitespace.c: New file.
7482
7483         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7484         Unicode 5.0.0.
7485         * lib/unictype/blocks.h: Likewise.
7486         * lib/unictype/categ_C.h: Likewise.
7487         * lib/unictype/categ_Cc.h: Likewise.
7488         * lib/unictype/categ_Cf.h: Likewise.
7489         * lib/unictype/categ_Cn.h: Likewise.
7490         * lib/unictype/categ_Co.h: Likewise.
7491         * lib/unictype/categ_Cs.h: Likewise.
7492         * lib/unictype/categ_L.h: Likewise.
7493         * lib/unictype/categ_Ll.h: Likewise.
7494         * lib/unictype/categ_Lm.h: Likewise.
7495         * lib/unictype/categ_Lo.h: Likewise.
7496         * lib/unictype/categ_Lt.h: Likewise.
7497         * lib/unictype/categ_Lu.h: Likewise.
7498         * lib/unictype/categ_M.h: Likewise.
7499         * lib/unictype/categ_Mc.h: Likewise.
7500         * lib/unictype/categ_Me.h: Likewise.
7501         * lib/unictype/categ_Mn.h: Likewise.
7502         * lib/unictype/categ_N.h: Likewise.
7503         * lib/unictype/categ_Nd.h: Likewise.
7504         * lib/unictype/categ_Nl.h: Likewise.
7505         * lib/unictype/categ_No.h: Likewise.
7506         * lib/unictype/categ_P.h: Likewise.
7507         * lib/unictype/categ_Pc.h: Likewise.
7508         * lib/unictype/categ_Pd.h: Likewise.
7509         * lib/unictype/categ_Pe.h: Likewise.
7510         * lib/unictype/categ_Pf.h: Likewise.
7511         * lib/unictype/categ_Pi.h: Likewise.
7512         * lib/unictype/categ_Po.h: Likewise.
7513         * lib/unictype/categ_Ps.h: Likewise.
7514         * lib/unictype/categ_S.h: Likewise.
7515         * lib/unictype/categ_Sc.h: Likewise.
7516         * lib/unictype/categ_Sk.h: Likewise.
7517         * lib/unictype/categ_Sm.h: Likewise.
7518         * lib/unictype/categ_So.h: Likewise.
7519         * lib/unictype/categ_Z.h: Likewise.
7520         * lib/unictype/categ_Zl.h: Likewise.
7521         * lib/unictype/categ_Zp.h: Likewise.
7522         * lib/unictype/categ_Zs.h: Likewise.
7523         * lib/unictype/categ_of.h: Likewise.
7524         * lib/unictype/combining.h: Likewise.
7525         * lib/unictype/ctype_alnum.h: Likewise.
7526         * lib/unictype/ctype_alpha.h: Likewise.
7527         * lib/unictype/ctype_blank.h: Likewise.
7528         * lib/unictype/ctype_cntrl.h: Likewise.
7529         * lib/unictype/ctype_digit.h: Likewise.
7530         * lib/unictype/ctype_graph.h: Likewise.
7531         * lib/unictype/ctype_lower.h: Likewise.
7532         * lib/unictype/ctype_print.h: Likewise.
7533         * lib/unictype/ctype_punct.h: Likewise.
7534         * lib/unictype/ctype_space.h: Likewise.
7535         * lib/unictype/ctype_upper.h: Likewise.
7536         * lib/unictype/ctype_xdigit.h: Likewise.
7537         * lib/unictype/decdigit.h: Likewise.
7538         * lib/unictype/digit.h: Likewise.
7539         * lib/unictype/mirror.h: Likewise.
7540         * lib/unictype/numeric.h: Likewise.
7541         * lib/unictype/pr_alphabetic.h: Likewise.
7542         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7543         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7544         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7545         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7546         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7547         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7548         * lib/unictype/pr_bidi_control.h: Likewise.
7549         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7550         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7551         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7552         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7553         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7554         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7555         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7556         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7557         * lib/unictype/pr_bidi_pdf.h: Likewise.
7558         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7559         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7560         * lib/unictype/pr_combining.h: Likewise.
7561         * lib/unictype/pr_composite.h: Likewise.
7562         * lib/unictype/pr_currency_symbol.h: Likewise.
7563         * lib/unictype/pr_dash.h: Likewise.
7564         * lib/unictype/pr_decimal_digit.h: Likewise.
7565         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7566         * lib/unictype/pr_deprecated.h: Likewise.
7567         * lib/unictype/pr_diacritic.h: Likewise.
7568         * lib/unictype/pr_extender.h: Likewise.
7569         * lib/unictype/pr_format_control.h: Likewise.
7570         * lib/unictype/pr_grapheme_base.h: Likewise.
7571         * lib/unictype/pr_grapheme_extend.h: Likewise.
7572         * lib/unictype/pr_grapheme_link.h: Likewise.
7573         * lib/unictype/pr_hex_digit.h: Likewise.
7574         * lib/unictype/pr_hyphen.h: Likewise.
7575         * lib/unictype/pr_id_continue.h: Likewise.
7576         * lib/unictype/pr_id_start.h: Likewise.
7577         * lib/unictype/pr_ideographic.h: Likewise.
7578         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7579         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7580         * lib/unictype/pr_ignorable_control.h: Likewise.
7581         * lib/unictype/pr_iso_control.h: Likewise.
7582         * lib/unictype/pr_join_control.h: Likewise.
7583         * lib/unictype/pr_left_of_pair.h: Likewise.
7584         * lib/unictype/pr_line_separator.h: Likewise.
7585         * lib/unictype/pr_logical_order_exception.h: Likewise.
7586         * lib/unictype/pr_lowercase.h: Likewise.
7587         * lib/unictype/pr_math.h: Likewise.
7588         * lib/unictype/pr_non_break.h: Likewise.
7589         * lib/unictype/pr_not_a_character.h: Likewise.
7590         * lib/unictype/pr_numeric.h: Likewise.
7591         * lib/unictype/pr_other_alphabetic.h: Likewise.
7592         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7593         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7594         * lib/unictype/pr_other_id_continue.h: Likewise.
7595         * lib/unictype/pr_other_id_start.h: Likewise.
7596         * lib/unictype/pr_other_lowercase.h: Likewise.
7597         * lib/unictype/pr_other_math.h: Likewise.
7598         * lib/unictype/pr_other_uppercase.h: Likewise.
7599         * lib/unictype/pr_paired_punctuation.h: Likewise.
7600         * lib/unictype/pr_paragraph_separator.h: Likewise.
7601         * lib/unictype/pr_pattern_syntax.h: Likewise.
7602         * lib/unictype/pr_pattern_white_space.h: Likewise.
7603         * lib/unictype/pr_private_use.h: Likewise.
7604         * lib/unictype/pr_punctuation.h: Likewise.
7605         * lib/unictype/pr_quotation_mark.h: Likewise.
7606         * lib/unictype/pr_radical.h: Likewise.
7607         * lib/unictype/pr_sentence_terminal.h: Likewise.
7608         * lib/unictype/pr_soft_dotted.h: Likewise.
7609         * lib/unictype/pr_space.h: Likewise.
7610         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7611         * lib/unictype/pr_titlecase.h: Likewise.
7612         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7613         * lib/unictype/pr_unified_ideograph.h: Likewise.
7614         * lib/unictype/pr_uppercase.h: Likewise.
7615         * lib/unictype/pr_variation_selector.h: Likewise.
7616         * lib/unictype/pr_white_space.h: Likewise.
7617         * lib/unictype/pr_xid_continue.h: Likewise.
7618         * lib/unictype/pr_xid_start.h: Likewise.
7619         * lib/unictype/pr_zero_width.h: Likewise.
7620         * lib/unictype/scripts.h: Likewise.
7621         * lib/unictype/scripts_byname.gperf: Likewise.
7622         * lib/unictype/sy_c_ident.h: Likewise.
7623         * lib/unictype/sy_c_whitespace.h: Likewise.
7624         * lib/unictype/sy_java_ident.h: Likewise.
7625         * lib/unictype/sy_java_whitespace.h: Likewise.
7626
7627         * lib/unictype/Makefile: New file.
7628         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7629         glibc.
7630         * lib/unictype/3level.h: New file, copied from glibc.
7631         * lib/unictype/3levelbit.h: New file.
7632
7633 2007-11-11  Bruno Haible  <bruno@clisp.org>
7634
7635         * modules/gperf: New file.
7636         * modules/iconv_open (Depends-on): Add it.
7637         (Makefile.am): Remove the GPERF definition.
7638
7639 2007-11-11  Bruno Haible  <bruno@clisp.org>
7640
7641         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7642         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7643
7644 2007-11-11  Bruno Haible  <bruno@clisp.org>
7645
7646         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7647         (usage): Remove function.
7648
7649 2007-11-11  Bruno Haible  <bruno@clisp.org>
7650
7651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7652         gl_FUNC_CEILF_LIBS.
7653         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7654         gl_FUNC_CEIL_LIBS.
7655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7656         gl_FUNC_CEILL_LIBS.
7657         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7658         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7659         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7660
7661 2007-11-11  Bruno Haible  <bruno@clisp.org>
7662
7663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7664         roundf were declared but do not exist on functions.
7665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7666         roundl were declared but do not exist on functions.
7667         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7668         HAVE_FLOORL_AND_CEILL, respectively.
7669         Needed for Sun C on Solaris 10.
7670
7671 2007-11-11  Bruno Haible  <bruno@clisp.org>
7672
7673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7674         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7675         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7676         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7678         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7679         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7680         HAVE_DECL_ROUNDF.
7681         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7682         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7684         of HAVE_DECL_ROUND*.
7685         * modules/math (Makefile.am): Update.
7686
7687 2007-11-10  Bruno Haible  <bruno@clisp.org>
7688
7689         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7690         ptrdiff_t as m4/intl.m4.
7691
7692 2007-11-10  Jim Meyering  <meyering@redhat.com>
7693
7694         Avoid link failure for the argmatch test.
7695         * tests/test-argmatch.c (usage): Define function to avoid a link
7696         failure: argmatch_die requires a usage function.
7697
7698 2007-11-09  Bruno Haible  <bruno@clisp.org>
7699
7700         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7701         * doc/functions/vsnprintf.texi: Likewise.
7702         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7703         with a size argument < 2.
7704
7705 2007-11-09  Bruno Haible  <bruno@clisp.org>
7706
7707         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7708         buffer. Fixes an inefficiency introduced on 2007-11-03.
7709
7710 2007-11-09  Bruno Haible  <bruno@clisp.org>
7711
7712         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7713         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7714
7715 2007-11-08  Jim Meyering  <meyering@redhat.com>
7716
7717         Change cache variable name prefix "jm_" to "gl_" everywhere.
7718         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7719         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7720         * m4/uptime.m4: s/gl_/jm_/
7721
7722 2007-11-07  Bruno Haible  <bruno@clisp.org>
7723
7724         Update to GNU gettext 0.17.
7725         * m4/intl.m4: Update to GNU gettext 0.17.
7726         * m4/po.m4: Likewise.
7727         * modules/gettext (Files): Remove m4/ulonglong.m4.
7728         (configure.ac): Require gettext infrastructure from version 0.17.
7729
7730 2007-11-06  Bruno Haible  <bruno@clisp.org>
7731
7732         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7733         symbolic values are not defined in a public header.
7734         * lib/freadable.c (freadable) [QNX]: Likewise.
7735         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7736         * lib/freading.c (freading) [QNX]: Likewise.
7737         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7738         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7739         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7740         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7741         Reported by Alain Magloire.
7742
7743         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7744
7745 2007-11-05  Bruno Haible  <bruno@clisp.org>
7746
7747         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7748         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7749         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7750         Reported by Eric Blake.
7751
7752 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7753             Bruno Haible  <bruno@clisp.org>
7754
7755         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7756         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7757         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7758         (malloc): Undefine also before including <stdlib.h>.
7759         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7760         Needed on OSF/1 4.0.
7761
7762 2007-11-05  Jim Meyering  <meyering@redhat.com>
7763
7764         git-version-gen: sync from coreutils.
7765         * build-aux/git-version-gen: Add comments.
7766         Change the first '-' to '.' in the snapshot version string,
7767         e.g., 6.9-377-08144 -> 6.9.377-08144
7768         Remove first parameter.
7769         Don't declare a version "-dirty" merely because a time
7770         stamp has changed.
7771
7772 2007-11-04  Bruno Haible  <bruno@clisp.org>
7773
7774         * lib/lock.h: Protect all macro definitions containing an 'if'
7775         statement through a "do { ... } while (0)".
7776         * lib/tls.h: Likewise.
7777
7778 2007-11-04  Bruno Haible  <bruno@clisp.org>
7779
7780         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7781
7782 2007-11-04  Bruno Haible  <bruno@clisp.org>
7783
7784         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7785         * modules/fprintf-posix (Depends-on): Add nocrash.
7786         * modules/snprintf-posix (Depends-on): Likewise.
7787         * modules/sprintf-posix (Depends-on): Likewise.
7788         * modules/vasnprintf-posix (Depends-on): Likewise.
7789         * modules/vasprintf-posix (Depends-on): Likewise.
7790         * modules/vfprintf-posix (Depends-on): Likewise.
7791         * modules/vsnprintf-posix (Depends-on): Likewise.
7792         * modules/vsprintf-posix (Depends-on): Likewise.
7793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7794         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7795         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7796         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7799         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7800
7801 2007-11-04  Bruno Haible  <bruno@clisp.org>
7802
7803         * modules/nocrash: New file.
7804         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7805         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7806
7807 2007-11-04  Bruno Haible  <bruno@clisp.org>
7808
7809         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7810         precision handling.
7811         * tests/test-vasprintf-posix.c (test_function): Likewise.
7812         * tests/test-snprintf-posix.h (test_function): Likewise.
7813         * tests/test-sprintf-posix.h (test_function): Likewise.
7814
7815         Fix *printf behaviour for large precisions on mingw and BeOS.
7816         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7817         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7819         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7821         gl_PRINTF_PRECISION and test its result. Invoke
7822         gl_PREREQ_VASNPRINTF_PRECISION.
7823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7830         * doc/functions/fprintf.texi: Update.
7831         * doc/functions/printf.texi: Update.
7832         * doc/functions/snprintf.texi: Update.
7833         * doc/functions/sprintf.texi: Update.
7834         * doc/functions/vfprintf.texi: Update.
7835         * doc/functions/vprintf.texi: Update.
7836         * doc/functions/vsnprintf.texi: Update.
7837         * doc/functions/vsprintf.texi: Update.
7838
7839 2007-11-04  Bruno Haible  <bruno@clisp.org>
7840
7841         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7842
7843 2007-11-04  Bruno Haible  <bruno@clisp.org>
7844
7845         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7846         Reported by Sylvain Beucler <beuc@gnu.org>.
7847
7848 2007-11-03  Bruno Haible  <bruno@clisp.org>
7849
7850         * tests/test-fprintf-posix2.sh: New file.
7851         * tests/test-fprintf-posix2.c: New file.
7852         * modules/fprintf-posix-tests (Files): Add them.
7853         (TESTS): Add test-fprintf-posix2.sh.
7854         (configure.ac): Check for getrlimit and setrlimit.
7855         (check_PROGRAMS): Add test-fprintf-posix2.
7856
7857         * tests/test-printf-posix2.sh: New file.
7858         * tests/test-printf-posix2.c: New file.
7859         * modules/printf-posix-tests (Files): Add them.
7860         (TESTS): Add test-printf-posix2.sh.
7861         (configure.ac): Check for getrlimit and setrlimit.
7862         (check_PROGRAMS): Add test-printf-posix2.
7863
7864         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7865         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7866         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7867         (decode_double): New function, copied from decode_long_double.
7868         (scale10_round_decimal_decoded): New function, extracted from
7869         scale10_round_decimal_long_double.
7870         (scale10_round_decimal_long_double): Use it.
7871         (scale10_round_decimal_double): New function.
7872         (floorlog10): New function.
7873         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7875         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7877         gl_PRINTF_ENOMEM and test its result. Invoke
7878         gl_PREREQ_VASNPRINTF_ENOMEM.
7879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7886         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7887         * modules/snprintf-posix (Depends-on): Likewise.
7888         * modules/sprintf-posix (Depends-on): Likewise.
7889         * modules/vasnprintf-posix (Depends-on): Likewise.
7890         * modules/vasprintf-posix (Depends-on): Likewise.
7891         * modules/vfprintf-posix (Depends-on): Likewise.
7892         * modules/vsnprintf-posix (Depends-on): Likewise.
7893         * modules/vsprintf-posix (Depends-on): Likewise.
7894         * doc/functions/fprintf.texi: Update.
7895         * doc/functions/printf.texi: Update.
7896         * doc/functions/snprintf.texi: Update.
7897         * doc/functions/sprintf.texi: Update.
7898         * doc/functions/vfprintf.texi: Update.
7899         * doc/functions/vprintf.texi: Update.
7900         * doc/functions/vsnprintf.texi: Update.
7901         * doc/functions/vsprintf.texi: Update.
7902
7903 2007-11-03  Bruno Haible  <bruno@clisp.org>
7904
7905         * modules/frexp-nolibm-tests: New file.
7906
7907         * modules/frexp-nolibm: New file.
7908         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7909
7910 2007-11-03  Bruno Haible  <bruno@clisp.org>
7911
7912         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7913         value is C99 compliant.
7914         Needed for OSF/1 5.1.
7915
7916 2007-11-03  Bruno Haible  <bruno@clisp.org>
7917
7918         Fix out-of-memory handling of vasnprintf.
7919         * lib/printf-parse.c: Include <errno.h>.
7920         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7921         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7922         is already set.
7923
7924 2007-11-02  Eric Blake  <ebb9@byu.net>
7925
7926         Fix tests on cygwin.
7927         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7928
7929 2007-11-01  Bruno Haible  <bruno@clisp.org>
7930
7931         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7932         warning.
7933         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7934         needed for POSIX compatibility.
7935
7936 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7937
7938         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7939         for compatibility with GNU.
7940
7941 2007-11-01  Bruno Haible  <bruno@clisp.org>
7942
7943         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7944         (putenv): Renamed from rpl_putenv. Change argument type from
7945         'const char *' to 'char *'.
7946         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7947         of defining putenv in config.h, just set REPLACE_PUTENV.
7948         * modules/putenv (Depends-on): Add stdlib.
7949         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7950         (Include): Use <stdlib.h>.
7951         * lib/stdlib.in.h (putenv): New declaration.
7952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7953         REPLACE_PUTENV.
7954         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7955         REPLACE_PUTENV.
7956         Needed for MacOS X 10.5.0.
7957         Reported by Peter O'Gorman <peter@pogma.com>.
7958
7959 2007-11-01  Jim Meyering  <meyering@redhat.com>
7960
7961         Treat an empty date string exactly like "0".
7962         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7963         if the remaining date string (to be parsed) is empty, use "0".
7964         Reported by Mischa Molhoek and discussed in this thread:
7965         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7966
7967 2007-10-31  Bruno Haible  <bruno@clisp.org>
7968
7969         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7970         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7971         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7972         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7973         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7974         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7975
7976 2007-10-31  Bruno Haible  <bruno@clisp.org>
7977
7978         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7979         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7980         (AC_TYPE_LONG_LONG_INT): Use it.
7981         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7982         it as well.
7983         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7984         to m4/longlong.m4.
7985         * modules/stdint (Files): Remove m4/ulonglong.m4.
7986         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7987         m4/ulonglong.m4.
7988         * modules/strtoumax (Files): Likewise.
7989
7990 2007-10-30  Bruno Haible  <bruno@clisp.org>
7991
7992         * modules/xvasprintf-posix: New file.
7993         Suggested by Eric Blake.
7994
7995 2007-10-30  Bruno Haible  <bruno@clisp.org>
7996
7997         * modules/xprintf-posix-tests: New file.
7998         * tests/test-xprintf-posix.sh: New file.
7999         * tests/test-xprintf-posix.c: New file.
8000         * tests/test-xfprintf-posix.c: New file.
8001
8002         * modules/xprintf-posix: New file.
8003
8004 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8005
8006         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8007         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8008         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8009
8010 2007-10-29  Bruno Haible  <bruno@clisp.org>
8011
8012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8013         contain the special marker '_cv_'.
8014         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8015         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8016         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8017         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8018         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8019         Reported by Ralf Wildenhues.
8020
8021 2007-10-29  Bruno Haible  <bruno@clisp.org>
8022
8023         * gnulib-tool (func_import): When --lgpl is not specified, set
8024         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8025         GPLv3.
8026         Reported by Simon Josefsson.
8027
8028 2007-10-28  Bruno Haible  <bruno@clisp.org>
8029
8030         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8031         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8032         HAVE_DECL_ISFINITE.
8033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8034         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8035         HAVE_DECL_ISFINITE.
8036
8037 2007-10-28  Bruno Haible  <bruno@clisp.org>
8038
8039         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
8040         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
8041
8042 2007-10-28  Bruno Haible  <bruno@clisp.org>
8043
8044         Fix link errors with Sun C 5.0 on Solaris 10.
8045         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
8046         function is declared but not present in the compiler's libm.
8047         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8048         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8049         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
8050         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
8051         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
8052         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
8053         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
8054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8055         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
8056         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
8057         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8058         HAVE_DECL_FLOORL.
8059
8060 2007-10-28  Bruno Haible  <bruno@clisp.org>
8061
8062         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8063         gl_FUNC_FLOORL. Cache the result.
8064         (gl_FUNC_FLOORL): Use it.
8065         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8066         gl_FUNC_CEILL. Cache the result.
8067         (gl_FUNC_CEILL): Use it.
8068
8069         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8070         gl_FUNC_FLOOR. Cache the result.
8071         (gl_FUNC_FLOOR): Use it.
8072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8073         gl_FUNC_CEIL. Cache the result.
8074         (gl_FUNC_CEIL): Use it.
8075
8076         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8077         gl_FUNC_FLOORF. Cache the result.
8078         (gl_FUNC_FLOORF): Use it.
8079         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8080         gl_FUNC_CEILF. Cache the result.
8081         (gl_FUNC_CEILF): Use it.
8082
8083 2007-10-28  Bruno Haible  <bruno@clisp.org>
8084
8085         * gnulib-tool: Allow specifying the LGPL version number through
8086         --lgpl=2 or --lgpl=3.
8087         (func_usage): Document --lgpl with argument.
8088         Handle --lgpl=... arguments.
8089         (func_import): Recognize also gl_LGPL calls with an argument. When
8090         --lgpl=2 is used and the module's license is just LGPL, report an
8091         error. Set sed_transform_lib_file according to the lgpl variable. In
8092         the generated files, use --lgpl or gl_LGPL invocations with argument,
8093         if necessary.
8094         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8095         an LGPv2+ license.
8096         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8097         gl_LGPL macro.
8098
8099 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8100             Bruno Haible  <bruno@clisp.org>
8101
8102         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8103         (u16_uctomb_aux): Likewise.
8104         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8105         !HAVE_INLINE.
8106         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8107
8108 2007-10-28  Bruno Haible  <bruno@clisp.org>
8109
8110         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8111         Invoke AM_GETTEXT_OPTION if it exists.
8112         * modules/vasprintf: Likewise.
8113         * modules/verror: Likewise.
8114         * modules/xprintf: Likewise.
8115         * modules/xvasprintf: Likewise.
8116
8117 2007-10-27  Ben Pfaff  <blp@gnu.org>
8118
8119         * lib/math.in.h: Define isfinite macro and prototypes for
8120         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8121         implementations.
8122         * m4/math_h.m4: New substitutions for isfinite module.
8123         * lib/isfinite.c: New file.
8124         * m4/isfinite.m4: New file.
8125         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8126         * modules/isfinite: New file.
8127         * modules/isfinite-tests: New file.
8128         * tests/tests-isfinite.c: New file.
8129         * doc/functions/isfinite.texi: Mention isfinite module.
8130         * MODULES.html.sh: Mention new module.
8131
8132 2007-10-27  Ben Pfaff  <blp@gnu.org>
8133
8134         Ralf Wildenhues reported that Tru64 4.0D declares the round
8135         functions but does not have definitions.
8136         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8137         cannot be found in any library, set the output variable to
8138         "missing" instead of "".
8139         * m4/round.m4: Also use our substitute if we cannot find round in
8140         any library, even if it is declared.
8141         * m4/roundf.m4: Likewise for roundf.
8142         * m4/roundl.m4: Likewise for roundl.
8143         * lib/math.in.h: Undefine roundf, round, roundl before defining
8144         their replacements, to allow for hypothetical systems where these
8145         may be defined as macros but not available in libraries.
8146
8147 2007-10-27  Bruno Haible  <bruno@clisp.org>
8148
8149         * doc/gnulib.texi: Invoke @firstparagraphindent.
8150         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8151         changes in gnulib.
8152         (Source changes): New section.
8153
8154 2007-10-26  Bruno Haible  <bruno@clisp.org>
8155
8156         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8157         borrowed from autoconf.
8158
8159 2007-10-26  Bruno Haible  <bruno@clisp.org>
8160
8161         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8162         strerror returned the empty string. Needed on HP-UX 11.00.
8163
8164 2007-10-24  Micah Cowan  <micah@cowan.name>
8165
8166         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8167         * build-aux/bootstrap: Remove support for now-unnecessary option,
8168         --cvs-user, and envvars CVS_USER, CVS_RSH.
8169
8170 2007-10-24  Jim Meyering  <meyering@redhat.com>
8171
8172         Avoid diagnostics from sha1sum when there is no cached checksum.
8173         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8174         if the po.s1 file hasn't been created yet.
8175
8176         * build-aux/bootstrap: Sync from coreutils:
8177         2007-10-24  Jim Meyering  <meyering@redhat.com>
8178         Get gnulib from the git repository, not from an obsolete cvs one.
8179         * build-aux/bootstrap: Suggestion from Micah Cowan.
8180         2007-10-04  Jim Meyering  <jim@meyering.net>
8181         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8182         (update_po_files): Work also when there are no .po files in po/.
8183
8184 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         * README: Append ".git" to git and cg examples.
8187         Problem reported by Benoit Sigoure.
8188
8189 2007-10-23  Micah Cowan  <micah@cowan.name>
8190
8191         * users.txt: Add wget.
8192
8193 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8194
8195         Fix linking of some unistdio tests on FreeBSD.
8196         * modules/unistdio/u16-vsnprintf-tests
8197         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8198         * modules/unistdio/u16-vsprintf-tests
8199         (test_u16_vsnprintf1_LDADD): Likewise.
8200         * modules/unistdio/u32-vsnprintf-tests
8201         (test_u32_vsnprintf1_LDADD): Likewise.
8202         * modules/unistdio/u32-vsprintf-tests
8203         (test_u32_vsprintf1_LDADD): Likewise.
8204         * modules/unistdio/u8-vsnprintf-tests
8205         (test_u8_vsnprintf1_LDADD): Likewise.
8206         * modules/unistdio/u8-vsprintf-tests
8207         (test_u8_vsprintf1_LDADD): Likewise.
8208         * modules/unistdio/ulc-vsnprintf-tests
8209         (test_ulc_vsnprintf1_LDADD): Likewise.
8210         * modules/unistdio/ulc-vsprintf-tests
8211         (test_ulc_vsprintf1_LDADD): Likewise.
8212
8213         Fix linking of some uniconv tests on FreeBSD.
8214         * modules/uniconv/u16-conv-from-enc-tests
8215         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8216         * modules/uniconv/u16-conv-to-enc-tests
8217         (test_u16_conv_to_enc_LDADD): Likewise.
8218         * modules/uniconv/u16-strconv-from-enc-tests
8219         (test_u16_strconv_from_enc_LDADD): Likewise.
8220         * modules/uniconv/u16-strconv-to-enc-tests
8221         (test_u16_strconv_to_enc_LDADD): Likewise.
8222         * modules/uniconv/u32-conv-from-enc-tests
8223         (test_u32_conv_from_enc_LDADD): Likewise.
8224         * modules/uniconv/u32-conv-to-enc-tests
8225         (test_u32_conv_to_enc_LDADD): Likewise.
8226         * modules/uniconv/u32-strconv-from-enc-tests
8227         (test_u32_strconv_from_enc_LDADD): Likewise.
8228         * modules/uniconv/u32-strconv-to-enc-tests
8229         (test_u32_strconv_to_enc_LDADD): Likewise.
8230         * modules/uniconv/u8-conv-from-enc-tests
8231         (test_u8_conv_from_enc_LDADD): Likewise.
8232         * modules/uniconv/u8-conv-to-enc-tests
8233         (test_u8_conv_to_enc_LDADD): Likewise.
8234         * modules/uniconv/u8-strconv-from-enc-tests
8235         (test_u8_strconv_from_enc_LDADD): Likewise.
8236         * modules/uniconv/u8-strconv-to-enc-tests
8237         (test_u8_strconv_to_enc_LDADD): Likewise.
8238
8239 2007-10-22  Bruno Haible  <bruno@clisp.org>
8240
8241         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8242         size.
8243
8244 2007-10-22  Eric Blake  <ebb9@byu.net>
8245
8246         Tweak x*printf documentation.
8247         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8248         variable name and comments.
8249         Suggested by Bruno Haible.
8250
8251 2007-10-22  Bruno Haible  <bruno@clisp.org>
8252
8253         * lib/acl.c (copy_acl): Fix file name in comment.
8254
8255 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         Fix Tru64 problem with stdbool.h.
8258         * lib/stdbool.in.h (false, true):
8259         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8260         Don't declare as an enum in this situation; it runs afoul of Tru64.
8261         Problem reported by Steven M. Schweda in
8262         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8263
8264 2007-10-22  Eric Blake  <ebb9@byu.net>
8265
8266         Also wrap vf?printf.
8267         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8268         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8269         (xvprintf, xvfprintf): New functions.
8270
8271 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8272
8273         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8274         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8275
8276         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8277         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8278
8279 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8280
8281         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8282         by Bruno Haible.
8283
8284 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8285
8286         * lib/getloadavg.c
8287         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8288         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8289
8290         * tests/test-i-ring.c: Work for C89.
8291
8292 2007-10-22  Bruno Haible  <bruno@clisp.org>
8293
8294         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8295         -1u, in preprocessor expression, so that we don't test for the bug
8296         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8298
8299 2007-10-22  Eric Blake  <ebb9@byu.net>
8300
8301         * tests/test-yesno.sh: Silence stderr during test.
8302
8303 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8304
8305         * modules/crypto/gc-camellia: New file.
8306
8307         * m4/gc-camellia.m4: New file.
8308
8309         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8310
8311         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8312
8313 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8314
8315         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8316         --help to stdout.  Reported by sms@antinode.org (Steven
8317         M. Schweda).
8318
8319 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8320
8321         * users.txt: Fix link to libksba.
8322
8323 2007-10-21  Ben Pfaff  <blp@gnu.org>
8324
8325         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8326         round.c roundf implementation that depends on floorf and ceilf to
8327         be tested unconditionally.
8328
8329 2007-10-21  Ben Pfaff  <blp@gnu.org>
8330
8331         * m4/check-libm-func.m4: Removed.
8332         * m4/check-math-lib.m4: New file.
8333         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8334         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8335         definition and lack of AC_LIBOBJ([roundf]).
8336         * m4/roundl.m4: Ditto, and similarly for roundl.
8337         * modules/round: Reference new m4 file.
8338         * modules/roundf: Ditto.
8339         * modules/roundl: Ditto.
8340         * tests/test-round2.c (main): Use ROUND instead of round.
8341         Bug report from Bruno Haible.
8342
8343 2007-10-21  Bruno Haible  <bruno@clisp.org>
8344
8345         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8346         context.
8347
8348 2007-10-21  Bruno Haible  <bruno@clisp.org>
8349
8350         * tests/test-wcwidth.c (main): Allow negative result for some control
8351         characters.
8352
8353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8354         Needed on OSF/1 5.1.
8355
8356 2007-10-21  Bruno Haible  <bruno@clisp.org>
8357
8358         * tests/test-floorf1.c: Include isnanf.h.
8359         (main): Use isnanf() instead of isnan().
8360         * tests/test-ceilf1.c: Include isnanf.h.
8361         (main): Use isnanf() instead of isnan().
8362         * tests/test-truncf1.c: Include isnanf.h.
8363         (main): Use isnanf() instead of isnan().
8364         * tests/test-roundf1.c: Include isnanf.h.
8365         (main): Use isnanf() instead of isnan().
8366
8367 2007-10-21  Eric Blake  <ebb9@byu.net>
8368
8369         * users.txt: Update URL for m4.
8370
8371 2007-10-21  Bruno Haible  <bruno@clisp.org>
8372
8373         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8374
8375 2007-10-21  Bruno Haible  <bruno@clisp.org>
8376
8377         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8378         Git's management files if the CVS files are not present.
8379
8380 2007-10-20  Bruno Haible  <bruno@clisp.org>
8381
8382         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8383         gcc-3.4.x.
8384
8385 2007-10-20  Ben Pfaff  <blp@gnu.org>
8386
8387         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8388         implementations.
8389         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8390         * lib/round.c: New file.
8391         * lib/roundf.c: New file.
8392         * lib/roundl.c: New file.
8393         * m4/round.m4: New file.
8394         * m4/roundf.m4: New file.
8395         * m4/roundl.m4: New file.
8396         * m4/check-libm-func-m4: New file.
8397         * modules/math: Replace round, roundf, roundl related @VARS@ in
8398         math.in.h.
8399         * modules/round: New file.
8400         * modules/round-tests: New file.
8401         * modules/roundf: New file.
8402         * modules/roundf-tests: New file.
8403         * modules/roundl: New file.
8404         * modules/roundl-tests: New file.
8405         * tests/test-round1.c: New file.
8406         * tests/test-round2.c: New file.
8407         * tests/test-roundf1.c: New file.
8408         * tests/test-roundf2.c: New file.
8409         * tests/test-roundl.c: New file.
8410         * doc/functions/round.texi: Mention round module.
8411         * doc/functions/roundf.texi: Mention roundf module.
8412         * doc/functions/roundl.texi: Mention roundl module.
8413         * MODULES.html.sh: Mention new modules.
8414         Thanks to Bruno Haible for suggestions.
8415
8416 2007-10-20  Jim Meyering  <meyering@redhat.com>
8417
8418         * lib/xprintf.c: Include <config.h> unconditionally.
8419
8420         Change xprintf's license to GPL.
8421         * modules/xprintf (License): s/LGPL/GPL/, since this module
8422         depends on modules (exit and exitfail) which are GPL.
8423         Suggestion from Bruno Haible.
8424
8425         xprintf fixes.
8426         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8427         Use a clearer diagnostic.
8428         Patch from Bruno Haible.
8429
8430 2007-10-20  Bruno Haible  <bruno@clisp.org>
8431
8432         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8433         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8435
8436 2007-10-20  Bruno Haible  <bruno@clisp.org>
8437
8438         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8439         precision in the comparison result > x - 1 or similar.
8440         * tests/test-ceilf2.c (correct_result_p): Likewise.
8441         * tests/test-truncf2.c (correct_result_p): Likewise.
8442         * tests/test-trunc2.c (correct_result_p): Likewise.
8443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8444
8445 2007-10-20  Bruno Haible  <bruno@clisp.org>
8446
8447         * modules/ceil: New file.
8448         * m4/ceil.m4: New file.
8449         * doc/functions/ceil.texi: Mention the 'ceil' module.
8450
8451 2007-10-20  Bruno Haible  <bruno@clisp.org>
8452
8453         * modules/floor: New file.
8454         * m4/floor.m4: New file.
8455         * doc/functions/floor.texi: Mention the 'floor' module.
8456
8457 2007-10-20  Bruno Haible  <bruno@clisp.org>
8458
8459         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8460         of %a.
8461         * modules/floorf-tests (Depends-on): Likewise.
8462         * modules/truncf-tests (Depends-on): Likewise.
8463         * modules/trunc-tests (Depends-on): Likewise.
8464         Reported by Ben Pfaff.
8465
8466 2007-10-19  Jim Meyering  <meyering@redhat.com>
8467
8468         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8469         Don't bother testing specific errno values.  Just test ferror.
8470
8471         New module: xprintf
8472         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8473
8474 2007-10-19  Bruno Haible  <bruno@clisp.org>
8475
8476         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8477         syntax.
8478         * modules/javaexec (Makefile.am): Likewise.
8479         * modules/relocatable-prog (Makefile.am): Likewise.
8480         Suggested by Jim Meyering.
8481
8482 2007-10-18  Bruno Haible  <bruno@clisp.org>
8483
8484         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8485         Reported by Jim Meyering.
8486
8487 2007-10-18  Eric Blake  <ebb9@byu.net>
8488
8489         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8490
8491 2007-10-18  Bruno Haible  <bruno@clisp.org>
8492
8493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8494         the format string into writable memory. Needed in Fortify conditions.
8495
8496 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8497             Bruno Haible  <bruno@clisp.org>
8498
8499         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8500         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8501         * modules/trim (Depends-on): Add mbchar.
8502         (configure.ac): Add gl_FUNC_MBRTOWC.
8503         (Makefile.am): Augment lib_SOURCES.
8504
8505 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8506
8507         Modify glob.c to use fstatat and dirfd, to simplify it.
8508         Suggested by Eric Blake.
8509         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8510         Don't include <stdbool.h>; not used.
8511         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8512         (link_exists_p): Simplify implementation, since we can now assume
8513         dirfd and fstatat.
8514         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8515
8516 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8517
8518         * gnulib-tool (func_get_dependencies): Fix sed script to
8519         match only tests.
8520
8521 2007-10-17  Bruno Haible  <bruno@clisp.org>
8522
8523         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8524         allow locale names without encoding suffix.
8525         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8527
8528 2007-10-16  Bruno Haible  <bruno@clisp.org>
8529
8530         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8531         * lib/getgroups.c (getgroups): Likewise.
8532         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8533
8534 2007-10-16  Bruno Haible  <bruno@clisp.org>
8535
8536         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8537         * modules/malloc-posix (License): Likewise.
8538         * modules/realloc-posix (License): Likewise.
8539         * modules/calloc-posix (License): Likewise.
8540         * modules/intprops (License): Change from GPL to LGPL, with
8541         Paul Eggert's approval.
8542
8543 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8544
8545         Merge glibc changes into lib/glob.c.
8546
8547         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8548         2007-10-15 04:59:03 UTC.  Here are the changes:
8549
8550         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8553
8554         * lib/glob.c: Add some branch prediction throughout.
8555
8556         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8557
8558         [BZ #5103]
8559         * lib/glob.c (glob): Recognize patterns starting \/.
8560
8561         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8562
8563         [BZ #3996]
8564         * lib/glob.c (attribute_hidden): Define if not defined.
8565         (glob): Unescape dirname, filename or username when needed and not
8566         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8567         is NULL.  Handle unescaped [ in pattern without closing ].
8568         Don't pass GLOB_CHECK down to recursive glob for directories.
8569         (__glob_pattern_type): New function.
8570         (__glob_pattern_p): Implement using __glob_pattern_type.
8571         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8572         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8573         Remove unreachable code.
8574
8575         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8576
8577         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8578         explain why there are no leaks.
8579
8580         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8581
8582         [BZ #3253]
8583         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8584         time, rather allocate increasingly bigger arrays of pointers, if
8585         possible with alloca, if too large with malloc.
8586
8587 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8588
8589         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8590         Problem reported by H.Merijn Brand in
8591         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8593         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8594
8595 2007-10-15  Bruno Haible  <bruno@clisp.org>
8596
8597         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8598         with explicit rpl_ prefix.
8599         * lib/fopen.c (fopen): Likewise.
8600         * lib/freopen.c (freopen): Likewise.
8601         * lib/iconv.c (iconv): Likewise.
8602         * lib/iconv_close.c (iconv_close): Likewise.
8603
8604 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8605
8606         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8607
8608 2007-10-15  Bruno Haible  <bruno@clisp.org>
8609
8610         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8611         <stddef.h> instead of <stdlib.h> since we only need NULL.
8612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8613
8614 2007-10-15  Bruno Haible  <bruno@clisp.org>
8615
8616         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8617         Replace paragraph talking about LIBOBJS.
8618         Reported by Colin Watson <cjwatson@debian.org>.
8619
8620 2007-10-15  Bruno Haible  <bruno@clisp.org>
8621
8622         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8623         <stdlib.h> before using NULL.
8624
8625 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8626
8627         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8628         Reported by Albert Chin <china@thewrittenword.com>.
8629
8630 2007-10-14  Bruno Haible  <bruno@clisp.org>
8631
8632         * modules/iconv_open-utf-tests: New file.
8633         * tests/test-iconv-utf.c: New file.
8634
8635         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8636         * modules/iconv_open-utf: New file.
8637         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8638         (iconv, iconv_close): New declarations.
8639         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8640         be defined.
8641         (iconv_open): Add special handling of conversion between UTF-8 and
8642         UTF-{16,32}{BE,LE}.
8643         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8644         * lib/iconv_close.c: New file.
8645         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8646         gl_FUNC_ICONV_OPEN.
8647         (gl_FUNC_ICONV_OPEN): Use it.
8648         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8649         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8650         and REPLACE_ICONV_UTF.
8651         * modules/iconv_open (Depends-on): Add c-strcase.
8652         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8653         ICONV_CONST.
8654         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8655
8656 2007-10-13  Albert Chin  <china@thewrittenword.com>
8657             Bruno Haible  <bruno@clisp.org>
8658
8659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8660         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8661
8662 2007-10-13  Bruno Haible  <bruno@clisp.org>
8663
8664         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8665         defined, use the ISO C99 inline semantics.
8666         * lib/argp.h (ARGP_EI): Likewise.
8667
8668 2007-10-13  Bruno Haible  <bruno@clisp.org>
8669
8670         Handle 'inline' change in gcc 4.3.0.
8671         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8672         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8673         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8674         argp_fmtstream_point): Disable 'extern' declaration if the function
8675         definition is going to be provided inline.
8676         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8677         semantics, not the ISO C99 inline semantics.
8678         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8679         'extern' declaration if the function definition is going to be provided
8680         inline.
8681         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8682         the GNU C inline semantics, not the ISO C99 inline semantics. With
8683         GCC 4.2, avoid a warning.
8684
8685 2007-10-13  Bruno Haible  <bruno@clisp.org>
8686
8687         * lib/freading.h (freading): Enable the use of __freading for
8688         glibc >= 2.7.
8689         * lib/freading.c (freading): Likewise.
8690
8691 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8692
8693         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8694         "warning: C99 inline functions are not supported; using GNU89".
8695
8696 2007-10-12  Bruno Haible  <bruno@clisp.org>
8697
8698         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8699         of 2.
8700         * tests/test-ceilf2.c: New file.
8701         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8702
8703         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8704         * modules/ceilf-tests: Update.
8705
8706 2007-10-12  Bruno Haible  <bruno@clisp.org>
8707
8708         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8709         of 2.
8710         * tests/test-floorf2.c: New file.
8711         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8712
8713         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8714         * modules/floorf-tests: Update.
8715
8716 2007-10-12  Bruno Haible  <bruno@clisp.org>
8717
8718         * tests/test-trunc2.c: New file.
8719         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8720
8721         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8722         * modules/trunc-tests: Update.
8723
8724 2007-10-12  Bruno Haible  <bruno@clisp.org>
8725
8726         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8727         of 2.
8728         * tests/test-truncf2.c: New file.
8729         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8730
8731         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8732         * modules/truncf-tests: Update.
8733
8734 2007-10-11  Eric Blake  <ebb9@byu.net>
8735
8736         Don't claim strerror is broken on Interix.
8737         * doc/functions/strerror.texi (strerror): Known broken systems are
8738         now Solaris 8, and not Interix.
8739         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8740         Interix on cross-compile.
8741         Reported by Martin Koeppe in
8742         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8743
8744 2007-10-11  Bruno Haible  <bruno@clisp.org>
8745
8746         * modules/i-ring-tests: New file.
8747         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8748         instead of assert.
8749
8750 2007-10-11  Bruno Haible  <bruno@clisp.org>
8751
8752         * modules/filenamecat-tests: New file.
8753         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8754         * lib/filenamecat.c: Remove test code.
8755
8756 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8757
8758         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8759
8760         * lib/strerror.c: Include <string.h> always, to test interface,
8761         and to remove the need for the dummy.
8762         Include intprops.h to compute width instead of doing it ourselves
8763         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8764         (strerror): Define it to return NULL if there's no system strerror.
8765         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8766         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8767         ancient pre-strerror Unix systems well any more.  Saying "unknown
8768         system error" is enough.
8769         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8770         simpler strerror.c implementation.
8771         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8772         Simplify the tests to reflect the simpler strerror implementation.
8773         * modules/strerror (Depends-on): Add intprops.
8774
8775 2007-10-09  Eric Blake  <ebb9@byu.net>
8776
8777         Silence test-fpending.
8778         * modules/fpending-tests (Files): Add wrapper script.
8779         * tests/test-fpending.sh: New file.
8780
8781 2007-10-09  Bruno Haible  <bruno@clisp.org>
8782
8783         * MODULES.html.sh (func_module): Don't create a hyperlink for
8784         function names like 'printf_frexp'.
8785         (Misc): Add crc, memxor.
8786         (Characteristics of floating types): New section.
8787         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8788         isnanf-nolibm, signbit, trunc, truncf, truncl.
8789         (Enhancements for ISO C 99 functions): New subsection Input/output.
8790         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8791         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8792         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8793         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8794         (Enhancements for POSIX:2001 functions): Add chdir-long.
8795         (File system functions): Add areadlink, chdir-safer, read-file.
8796         Remove cycle-check.
8797         (File system as inode set): New section.
8798         (Date and time): Add gethrxtime.
8799         (Multithreading): Add openmp.
8800         (Internationalization functions): Add localename.
8801         (Unicode string functions): Add unistr/u*-mbsnlen.
8802         (Support for maintaining and releasing projects): Add git-version-gen.
8803         (Lone files): Remove directories.
8804
8805 2007-10-08  Ben Pfaff  <blp@gnu.org>
8806
8807         * lib/xmalloca.h: Fix typo in comment.
8808
8809 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8810
8811         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8812         when avoiding problems with integer overflow.  Use a portable test
8813         instead.
8814
8815 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8816
8817         * modules/dummy (License): Change to LGPLv2+.
8818         * modules/float (License): Likewise
8819         * modules/realloc (License): Likewise
8820         * modules/stdlib (License): Likewise
8821
8822 2007-10-07  Bruno Haible  <bruno@clisp.org>
8823
8824         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8825         * floor.c (TWO_MANT_DIG): Likewise.
8826         * ceil.c (TWO_MANT_DIG): Likewise.
8827         Reported by Ben Pfaff.
8828
8829 2007-10-07  Bruno Haible  <bruno@clisp.org>
8830
8831         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8832         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8833         * lib/frexp.c (FUNC): Likewise.
8834         * lib/printf-frexp.h (printf_frexp): Likewise.
8835         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8836         * lib/printf-frexp.c (FUNC): Likewise.
8837         Suggested by Jim Meyering.
8838
8839 2007-10-07  Jim Meyering  <meyering@redhat.com>
8840
8841         Make xnanosleep's integer overflow test more robust.
8842         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8843         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8844
8845 2007-10-07  Bruno Haible  <bruno@clisp.org>
8846
8847         * NEWS: Mention the license change.
8848
8849         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8850         abbreviations in the modules files.
8851
8852         Change copyright notice from GPLv2+ to GPLv3+.
8853         * README: Change copyright notice.
8854         * MODULES.html.sh: Likewise.
8855         * build-aux/bootstrap.conf: Likewise.
8856         * build-aux/config.libpath: Likewise.
8857         * build-aux/csharpcomp.sh.in: Likewise.
8858         * build-aux/csharpexec.sh.in: Likewise.
8859         * build-aux/install-reloc: Likewise.
8860         * build-aux/javacomp.sh.in: Likewise.
8861         * build-aux/javaexec.sh.in: Likewise.
8862         * build-aux/ldd.sh.in: Likewise.
8863         * build-aux/reloc-ldflags: Likewise.
8864         * build-aux/relocatable.sh.in: Likewise.
8865         * build-aux/x-to-1.in: Likewise.
8866         * check-module: Likewise.
8867         * config/srclistvars.sh: Likewise.
8868         * gnulib-tool: Likewise.
8869         * lib/acl-internal.h: Likewise.
8870         * lib/acl.c: Likewise.
8871         * lib/acl.h: Likewise.
8872         * lib/acl_entries.c: Likewise.
8873         * lib/areadlink-with-size.c: Likewise.
8874         * lib/areadlink.c: Likewise.
8875         * lib/areadlink.h: Likewise.
8876         * lib/argmatch.c: Likewise.
8877         * lib/argmatch.h: Likewise.
8878         * lib/argp-ba.c: Likewise.
8879         * lib/argp-eexst.c: Likewise.
8880         * lib/argp-fmtstream.c: Likewise.
8881         * lib/argp-fmtstream.h: Likewise.
8882         * lib/argp-fs-xinl.c: Likewise.
8883         * lib/argp-help.c: Likewise.
8884         * lib/argp-namefrob.h: Likewise.
8885         * lib/argp-parse.c: Likewise.
8886         * lib/argp-pin.c: Likewise.
8887         * lib/argp-pv.c: Likewise.
8888         * lib/argp-pvh.c: Likewise.
8889         * lib/argp-xinl.c: Likewise.
8890         * lib/argp.h: Likewise.
8891         * lib/at-func.c: Likewise.
8892         * lib/atanl.c: Likewise.
8893         * lib/backupfile.c: Likewise.
8894         * lib/backupfile.h: Likewise.
8895         * lib/basename.c: Likewise.
8896         * lib/binary-io.h: Likewise.
8897         * lib/byteswap.in.h: Likewise.
8898         * lib/c-stack.c: Likewise.
8899         * lib/c-stack.h: Likewise.
8900         * lib/c-strcasestr.c: Likewise.
8901         * lib/c-strcasestr.h: Likewise.
8902         * lib/c-strstr.c: Likewise.
8903         * lib/c-strstr.h: Likewise.
8904         * lib/c-strtod.c: Likewise.
8905         * lib/calloc.c: Likewise.
8906         * lib/canon-host.c: Likewise.
8907         * lib/canon-host.h: Likewise.
8908         * lib/canonicalize-lgpl.c: Likewise.
8909         * lib/canonicalize.c: Likewise.
8910         * lib/canonicalize.h: Likewise.
8911         * lib/ceil.c: Likewise.
8912         * lib/ceilf.c: Likewise.
8913         * lib/ceill.c: Likewise.
8914         * lib/chdir-long.c: Likewise.
8915         * lib/chdir-long.h: Likewise.
8916         * lib/chdir-safer.c: Likewise.
8917         * lib/chdir-safer.h: Likewise.
8918         * lib/chown.c: Likewise.
8919         * lib/classpath.c: Likewise.
8920         * lib/classpath.h: Likewise.
8921         * lib/clean-temp.c: Likewise.
8922         * lib/clean-temp.h: Likewise.
8923         * lib/cloexec.c: Likewise.
8924         * lib/close-stream.c: Likewise.
8925         * lib/closein.c: Likewise.
8926         * lib/closein.h: Likewise.
8927         * lib/closeout.c: Likewise.
8928         * lib/closeout.h: Likewise.
8929         * lib/concat-filename.c: Likewise.
8930         * lib/copy-file.c: Likewise.
8931         * lib/copy-file.h: Likewise.
8932         * lib/count-one-bits.h: Likewise.
8933         * lib/crc.c: Likewise.
8934         * lib/crc.h: Likewise.
8935         * lib/creat-safer.c: Likewise.
8936         * lib/csharpcomp.c: Likewise.
8937         * lib/csharpcomp.h: Likewise.
8938         * lib/csharpexec.c: Likewise.
8939         * lib/csharpexec.h: Likewise.
8940         * lib/cycle-check.c: Likewise.
8941         * lib/cycle-check.h: Likewise.
8942         * lib/diacrit.c: Likewise.
8943         * lib/diacrit.h: Likewise.
8944         * lib/diffseq.h: Likewise.
8945         * lib/dirchownmod.c: Likewise.
8946         * lib/dirent.in.h: Likewise.
8947         * lib/dirfd.c: Likewise.
8948         * lib/dirfd.h: Likewise.
8949         * lib/dirname.c: Likewise.
8950         * lib/dirname.h: Likewise.
8951         * lib/dummy.c: Likewise.
8952         * lib/dup-safer.c: Likewise.
8953         * lib/dup2.c: Likewise.
8954         * lib/eealloc.h: Likewise.
8955         * lib/error.c: Likewise.
8956         * lib/error.h: Likewise.
8957         * lib/euidaccess.c: Likewise.
8958         * lib/exclude.c: Likewise.
8959         * lib/exclude.h: Likewise.
8960         * lib/execute.c: Likewise.
8961         * lib/execute.h: Likewise.
8962         * lib/exitfail.c: Likewise.
8963         * lib/exitfail.h: Likewise.
8964         * lib/expl.c: Likewise.
8965         * lib/fatal-signal.c: Likewise.
8966         * lib/fatal-signal.h: Likewise.
8967         * lib/fbufmode.c: Likewise.
8968         * lib/fbufmode.h: Likewise.
8969         * lib/fchdir.c: Likewise.
8970         * lib/fchmodat.c: Likewise.
8971         * lib/fchownat.c: Likewise.
8972         * lib/fcntl--.h: Likewise.
8973         * lib/fcntl-safer.h: Likewise.
8974         * lib/fcntl.in.h: Likewise.
8975         * lib/fd-safer.c: Likewise.
8976         * lib/fflush.c: Likewise.
8977         * lib/file-has-acl.c: Likewise.
8978         * lib/file-set.c: Likewise.
8979         * lib/file-type.c: Likewise.
8980         * lib/file-type.h: Likewise.
8981         * lib/fileblocks.c: Likewise.
8982         * lib/filemode.c: Likewise.
8983         * lib/filemode.h: Likewise.
8984         * lib/filename.h: Likewise.
8985         * lib/filenamecat.c: Likewise.
8986         * lib/filenamecat.h: Likewise.
8987         * lib/findprog.c: Likewise.
8988         * lib/findprog.h: Likewise.
8989         * lib/float.in.h: Likewise.
8990         * lib/floor.c: Likewise.
8991         * lib/floorf.c: Likewise.
8992         * lib/floorl.c: Likewise.
8993         * lib/fopen-safer.c: Likewise.
8994         * lib/fopen.c: Likewise.
8995         * lib/fpending.c: Likewise.
8996         * lib/fpending.h: Likewise.
8997         * lib/fprintf.c: Likewise.
8998         * lib/fprintftime.h: Likewise.
8999         * lib/fpucw.h: Likewise.
9000         * lib/fpurge.c: Likewise.
9001         * lib/fpurge.h: Likewise.
9002         * lib/freadable.c: Likewise.
9003         * lib/freadable.h: Likewise.
9004         * lib/freadahead.c: Likewise.
9005         * lib/freadahead.h: Likewise.
9006         * lib/freading.c: Likewise.
9007         * lib/freading.h: Likewise.
9008         * lib/free.c: Likewise.
9009         * lib/freopen.c: Likewise.
9010         * lib/frexp.c: Likewise.
9011         * lib/frexpl.c: Likewise.
9012         * lib/fseek.c: Likewise.
9013         * lib/fseterr.c: Likewise.
9014         * lib/fseterr.h: Likewise.
9015         * lib/fstatat.c: Likewise.
9016         * lib/fstrcmp.c: Likewise.
9017         * lib/fstrcmp.h: Likewise.
9018         * lib/fsusage.c: Likewise.
9019         * lib/fsusage.h: Likewise.
9020         * lib/ftell.c: Likewise.
9021         * lib/ftello.c: Likewise.
9022         * lib/fts-cycle.c: Likewise.
9023         * lib/fts.c: Likewise.
9024         * lib/fts_.h: Likewise.
9025         * lib/full-read.c: Likewise.
9026         * lib/full-read.h: Likewise.
9027         * lib/full-write.c: Likewise.
9028         * lib/full-write.h: Likewise.
9029         * lib/fwritable.c: Likewise.
9030         * lib/fwritable.h: Likewise.
9031         * lib/fwriteerror.c: Likewise.
9032         * lib/fwriteerror.h: Likewise.
9033         * lib/fwriting.c: Likewise.
9034         * lib/fwriting.h: Likewise.
9035         * lib/gcd.c: Likewise.
9036         * lib/gcd.h: Likewise.
9037         * lib/getcwd.c: Likewise.
9038         * lib/getdate.h: Likewise.
9039         * lib/getdate.y: Likewise.
9040         * lib/getdomainname.c: Likewise.
9041         * lib/getdomainname.h: Likewise.
9042         * lib/getgroups.c: Likewise.
9043         * lib/gethostname.c: Likewise.
9044         * lib/gethrxtime.c: Likewise.
9045         * lib/gethrxtime.h: Likewise.
9046         * lib/getloadavg.c: Likewise.
9047         * lib/getndelim2.c: Likewise.
9048         * lib/getndelim2.h: Likewise.
9049         * lib/getnline.c: Likewise.
9050         * lib/getnline.h: Likewise.
9051         * lib/getopt.c: Likewise.
9052         * lib/getopt.in.h: Likewise.
9053         * lib/getopt1.c: Likewise.
9054         * lib/getopt_int.h: Likewise.
9055         * lib/getpagesize.h: Likewise.
9056         * lib/getsubopt.c: Likewise.
9057         * lib/gettime.c: Likewise.
9058         * lib/getugroups.c: Likewise.
9059         * lib/getugroups.h: Likewise.
9060         * lib/getusershell.c: Likewise.
9061         * lib/gl_anyavltree_list1.h: Likewise.
9062         * lib/gl_anyavltree_list2.h: Likewise.
9063         * lib/gl_anyhash_list1.h: Likewise.
9064         * lib/gl_anyhash_list2.h: Likewise.
9065         * lib/gl_anylinked_list1.h: Likewise.
9066         * lib/gl_anylinked_list2.h: Likewise.
9067         * lib/gl_anyrbtree_list1.h: Likewise.
9068         * lib/gl_anyrbtree_list2.h: Likewise.
9069         * lib/gl_anytree_list1.h: Likewise.
9070         * lib/gl_anytree_list2.h: Likewise.
9071         * lib/gl_anytree_oset.h: Likewise.
9072         * lib/gl_anytreehash_list1.h: Likewise.
9073         * lib/gl_anytreehash_list2.h: Likewise.
9074         * lib/gl_array_list.c: Likewise.
9075         * lib/gl_array_list.h: Likewise.
9076         * lib/gl_array_oset.c: Likewise.
9077         * lib/gl_array_oset.h: Likewise.
9078         * lib/gl_avltree_list.c: Likewise.
9079         * lib/gl_avltree_list.h: Likewise.
9080         * lib/gl_avltree_oset.c: Likewise.
9081         * lib/gl_avltree_oset.h: Likewise.
9082         * lib/gl_avltreehash_list.c: Likewise.
9083         * lib/gl_avltreehash_list.h: Likewise.
9084         * lib/gl_carray_list.c: Likewise.
9085         * lib/gl_carray_list.h: Likewise.
9086         * lib/gl_linked_list.c: Likewise.
9087         * lib/gl_linked_list.h: Likewise.
9088         * lib/gl_linkedhash_list.c: Likewise.
9089         * lib/gl_linkedhash_list.h: Likewise.
9090         * lib/gl_list.c: Likewise.
9091         * lib/gl_list.h: Likewise.
9092         * lib/gl_oset.c: Likewise.
9093         * lib/gl_oset.h: Likewise.
9094         * lib/gl_rbtree_list.c: Likewise.
9095         * lib/gl_rbtree_list.h: Likewise.
9096         * lib/gl_rbtree_oset.c: Likewise.
9097         * lib/gl_rbtree_oset.h: Likewise.
9098         * lib/gl_rbtreehash_list.c: Likewise.
9099         * lib/gl_rbtreehash_list.h: Likewise.
9100         * lib/gl_sublist.c: Likewise.
9101         * lib/gl_sublist.h: Likewise.
9102         * lib/group-member.c: Likewise.
9103         * lib/group-member.h: Likewise.
9104         * lib/hard-locale.c: Likewise.
9105         * lib/hard-locale.h: Likewise.
9106         * lib/hash-pjw.c: Likewise.
9107         * lib/hash-pjw.h: Likewise.
9108         * lib/hash-triple.c: Likewise.
9109         * lib/hash.c: Likewise.
9110         * lib/hash.h: Likewise.
9111         * lib/human.c: Likewise.
9112         * lib/human.h: Likewise.
9113         * lib/i-ring.c: Likewise.
9114         * lib/i-ring.h: Likewise.
9115         * lib/idcache.c: Likewise.
9116         * lib/imaxabs.c: Likewise.
9117         * lib/imaxdiv.c: Likewise.
9118         * lib/inet_pton.c: Likewise.
9119         * lib/inet_pton.h: Likewise.
9120         * lib/intprops.h: Likewise.
9121         * lib/inttostr.c: Likewise.
9122         * lib/inttostr.h: Likewise.
9123         * lib/inttypes.in.h: Likewise.
9124         * lib/isapipe.c: Likewise.
9125         * lib/isdir.c: Likewise.
9126         * lib/isnan.c: Likewise.
9127         * lib/isnan.h: Likewise.
9128         * lib/isnanf.c: Likewise.
9129         * lib/isnanf.h: Likewise.
9130         * lib/isnanl-nolibm.h: Likewise.
9131         * lib/isnanl.c: Likewise.
9132         * lib/isnanl.h: Likewise.
9133         * lib/javacomp.c: Likewise.
9134         * lib/javacomp.h: Likewise.
9135         * lib/javaexec.c: Likewise.
9136         * lib/javaexec.h: Likewise.
9137         * lib/javaversion.c: Likewise.
9138         * lib/javaversion.h: Likewise.
9139         * lib/javaversion.java: Likewise.
9140         * lib/lbrkprop.h: Likewise.
9141         * lib/lchmod.h: Likewise.
9142         * lib/lchown.c: Likewise.
9143         * lib/ldexpl.c: Likewise.
9144         * lib/linebreak.c: Likewise.
9145         * lib/linebreak.h: Likewise.
9146         * lib/linebuffer.c: Likewise.
9147         * lib/linebuffer.h: Likewise.
9148         * lib/locale.in.h: Likewise.
9149         * lib/logl.c: Likewise.
9150         * lib/long-options.c: Likewise.
9151         * lib/long-options.h: Likewise.
9152         * lib/lstat.c: Likewise.
9153         * lib/lstat.h: Likewise.
9154         * lib/math.in.h: Likewise.
9155         * lib/mbchar.c: Likewise.
9156         * lib/mbchar.h: Likewise.
9157         * lib/mbfile.h: Likewise.
9158         * lib/mbiter.h: Likewise.
9159         * lib/mbscasecmp.c: Likewise.
9160         * lib/mbscasestr.c: Likewise.
9161         * lib/mbschr.c: Likewise.
9162         * lib/mbscspn.c: Likewise.
9163         * lib/mbslen.c: Likewise.
9164         * lib/mbsncasecmp.c: Likewise.
9165         * lib/mbsnlen.c: Likewise.
9166         * lib/mbspbrk.c: Likewise.
9167         * lib/mbspcasecmp.c: Likewise.
9168         * lib/mbsrchr.c: Likewise.
9169         * lib/mbssep.c: Likewise.
9170         * lib/mbsspn.c: Likewise.
9171         * lib/mbsstr.c: Likewise.
9172         * lib/mbstok_r.c: Likewise.
9173         * lib/mbswidth.c: Likewise.
9174         * lib/mbswidth.h: Likewise.
9175         * lib/mbuiter.h: Likewise.
9176         * lib/memcasecmp.c: Likewise.
9177         * lib/memcasecmp.h: Likewise.
9178         * lib/memchr.c: Likewise.
9179         * lib/memcmp.c: Likewise.
9180         * lib/memcoll.c: Likewise.
9181         * lib/memcoll.h: Likewise.
9182         * lib/memcpy.c: Likewise.
9183         * lib/memrchr.c: Likewise.
9184         * lib/mkancesdirs.c: Likewise.
9185         * lib/mkdir-p.c: Likewise.
9186         * lib/mkdir-p.h: Likewise.
9187         * lib/mkdir.c: Likewise.
9188         * lib/mkdirat.c: Likewise.
9189         * lib/mkdtemp.c: Likewise.
9190         * lib/mkstemp-safer.c: Likewise.
9191         * lib/mkstemp.c: Likewise.
9192         * lib/modechange.c: Likewise.
9193         * lib/modechange.h: Likewise.
9194         * lib/mountlist.c: Likewise.
9195         * lib/mountlist.h: Likewise.
9196         * lib/mpsort.c: Likewise.
9197         * lib/nanosleep.c: Likewise.
9198         * lib/obstack.c: Likewise.
9199         * lib/obstack.h: Likewise.
9200         * lib/open-safer.c: Likewise.
9201         * lib/open.c: Likewise.
9202         * lib/openat-die.c: Likewise.
9203         * lib/openat-priv.h: Likewise.
9204         * lib/openat-proc.c: Likewise.
9205         * lib/openat.c: Likewise.
9206         * lib/openat.h: Likewise.
9207         * lib/pagealign_alloc.c: Likewise.
9208         * lib/pagealign_alloc.h: Likewise.
9209         * lib/physmem.c: Likewise.
9210         * lib/physmem.h: Likewise.
9211         * lib/pipe-safer.c: Likewise.
9212         * lib/pipe.c: Likewise.
9213         * lib/pipe.h: Likewise.
9214         * lib/posixtm.c: Likewise.
9215         * lib/posixtm.h: Likewise.
9216         * lib/posixver.c: Likewise.
9217         * lib/printf-frexp.c: Likewise.
9218         * lib/printf-frexp.h: Likewise.
9219         * lib/printf-frexpl.c: Likewise.
9220         * lib/printf-frexpl.h: Likewise.
9221         * lib/printf.c: Likewise.
9222         * lib/progname.c: Likewise.
9223         * lib/progname.h: Likewise.
9224         * lib/progreloc.c: Likewise.
9225         * lib/putenv.c: Likewise.
9226         * lib/quote.c: Likewise.
9227         * lib/quote.h: Likewise.
9228         * lib/quotearg.c: Likewise.
9229         * lib/quotearg.h: Likewise.
9230         * lib/raise.c: Likewise.
9231         * lib/readline.c: Likewise.
9232         * lib/readline.h: Likewise.
9233         * lib/readlink.c: Likewise.
9234         * lib/readtokens.c: Likewise.
9235         * lib/readtokens.h: Likewise.
9236         * lib/readtokens0.c: Likewise.
9237         * lib/readtokens0.h: Likewise.
9238         * lib/readutmp.c: Likewise.
9239         * lib/readutmp.h: Likewise.
9240         * lib/realloc.c: Likewise.
9241         * lib/relocwrapper.c: Likewise.
9242         * lib/rename-dest-slash.c: Likewise.
9243         * lib/rename.c: Likewise.
9244         * lib/rmdir.c: Likewise.
9245         * lib/rpmatch.c: Likewise.
9246         * lib/safe-read.c: Likewise.
9247         * lib/safe-read.h: Likewise.
9248         * lib/safe-write.c: Likewise.
9249         * lib/safe-write.h: Likewise.
9250         * lib/same-inode.h: Likewise.
9251         * lib/same.c: Likewise.
9252         * lib/same.h: Likewise.
9253         * lib/save-cwd.c: Likewise.
9254         * lib/save-cwd.h: Likewise.
9255         * lib/savedir.c: Likewise.
9256         * lib/savedir.h: Likewise.
9257         * lib/savewd.c: Likewise.
9258         * lib/savewd.h: Likewise.
9259         * lib/search.in.h: Likewise.
9260         * lib/setenv.c: Likewise.
9261         * lib/setenv.h: Likewise.
9262         * lib/settime.c: Likewise.
9263         * lib/sh-quote.c: Likewise.
9264         * lib/sh-quote.h: Likewise.
9265         * lib/sig2str.c: Likewise.
9266         * lib/sig2str.h: Likewise.
9267         * lib/signal.in.h: Likewise.
9268         * lib/signbitd.c: Likewise.
9269         * lib/signbitf.c: Likewise.
9270         * lib/signbitl.c: Likewise.
9271         * lib/sigprocmask.c: Likewise.
9272         * lib/sincosl.c: Likewise.
9273         * lib/sleep.c: Likewise.
9274         * lib/sprintf.c: Likewise.
9275         * lib/sqrtl.c: Likewise.
9276         * lib/stat-time.h: Likewise.
9277         * lib/stdio--.h: Likewise.
9278         * lib/stdio-safer.h: Likewise.
9279         * lib/stdlib--.h: Likewise.
9280         * lib/stdlib-safer.h: Likewise.
9281         * lib/stdlib.in.h: Likewise.
9282         * lib/stpcpy.c: Likewise.
9283         * lib/stpncpy.c: Likewise.
9284         * lib/strchrnul.c: Likewise.
9285         * lib/strcspn.c: Likewise.
9286         * lib/strerror.c: Likewise.
9287         * lib/strftime.c: Likewise.
9288         * lib/strftime.h: Likewise.
9289         * lib/striconveh.c: Likewise.
9290         * lib/striconveh.h: Likewise.
9291         * lib/striconveha.c: Likewise.
9292         * lib/striconveha.h: Likewise.
9293         * lib/stripslash.c: Likewise.
9294         * lib/strnlen1.c: Likewise.
9295         * lib/strnlen1.h: Likewise.
9296         * lib/strtod.c: Likewise.
9297         * lib/strtoimax.c: Likewise.
9298         * lib/strtok_r.c: Likewise.
9299         * lib/strtol.c: Likewise.
9300         * lib/strtoll.c: Likewise.
9301         * lib/strtoul.c: Likewise.
9302         * lib/strtoull.c: Likewise.
9303         * lib/sysexits.in.h: Likewise.
9304         * lib/tempname.c: Likewise.
9305         * lib/tempname.h: Likewise.
9306         * lib/timespec.h: Likewise.
9307         * lib/tls.c: Likewise.
9308         * lib/tls.h: Likewise.
9309         * lib/tmpdir.c: Likewise.
9310         * lib/tmpdir.h: Likewise.
9311         * lib/tmpfile-safer.c: Likewise.
9312         * lib/tmpfile.c: Likewise.
9313         * lib/trigl.c: Likewise.
9314         * lib/trigl.h: Likewise.
9315         * lib/trim.c: Likewise.
9316         * lib/trim.h: Likewise.
9317         * lib/trunc.c: Likewise.
9318         * lib/truncf.c: Likewise.
9319         * lib/truncl.c: Likewise.
9320         * lib/tsearch.c: Likewise.
9321         * lib/unicodeio.c: Likewise.
9322         * lib/unicodeio.h: Likewise.
9323         * lib/unistd--.h: Likewise.
9324         * lib/unistd-safer.h: Likewise.
9325         * lib/unistdio/ulc-fprintf.c: Likewise.
9326         * lib/unistdio/ulc-vfprintf.c: Likewise.
9327         * lib/unlinkdir.c: Likewise.
9328         * lib/unlinkdir.h: Likewise.
9329         * lib/unlocked-io.h: Likewise.
9330         * lib/unsetenv.c: Likewise.
9331         * lib/userspec.c: Likewise.
9332         * lib/utime.c: Likewise.
9333         * lib/utimecmp.c: Likewise.
9334         * lib/utimecmp.h: Likewise.
9335         * lib/utimens.c: Likewise.
9336         * lib/verify.h: Likewise.
9337         * lib/verror.c: Likewise.
9338         * lib/verror.h: Likewise.
9339         * lib/version-etc-fsf.c: Likewise.
9340         * lib/version-etc.c: Likewise.
9341         * lib/version-etc.h: Likewise.
9342         * lib/vfprintf.c: Likewise.
9343         * lib/vprintf.c: Likewise.
9344         * lib/vsprintf.c: Likewise.
9345         * lib/w32spawn.h: Likewise.
9346         * lib/wait-process.c: Likewise.
9347         * lib/wait-process.h: Likewise.
9348         * lib/wcwidth.c: Likewise.
9349         * lib/write-any-file.c: Likewise.
9350         * lib/xalloc-die.c: Likewise.
9351         * lib/xalloc.h: Likewise.
9352         * lib/xasprintf.c: Likewise.
9353         * lib/xgetcwd.c: Likewise.
9354         * lib/xgetcwd.h: Likewise.
9355         * lib/xgetdomainname.c: Likewise.
9356         * lib/xgetdomainname.h: Likewise.
9357         * lib/xgethostname.c: Likewise.
9358         * lib/xmalloc.c: Likewise.
9359         * lib/xmalloca.c: Likewise.
9360         * lib/xmalloca.h: Likewise.
9361         * lib/xmemcoll.c: Likewise.
9362         * lib/xnanosleep.c: Likewise.
9363         * lib/xreadlink.c: Likewise.
9364         * lib/xreadlink.h: Likewise.
9365         * lib/xsetenv.c: Likewise.
9366         * lib/xsetenv.h: Likewise.
9367         * lib/xstriconv.c: Likewise.
9368         * lib/xstriconv.h: Likewise.
9369         * lib/xstrndup.c: Likewise.
9370         * lib/xstrndup.h: Likewise.
9371         * lib/xstrtod.c: Likewise.
9372         * lib/xstrtod.h: Likewise.
9373         * lib/xstrtol-error.c: Likewise.
9374         * lib/xstrtol.c: Likewise.
9375         * lib/xstrtol.h: Likewise.
9376         * lib/xtime.h: Likewise.
9377         * lib/xvasprintf.c: Likewise.
9378         * lib/xvasprintf.h: Likewise.
9379         * lib/yesno.c: Likewise.
9380         * lib/yesno.h: Likewise.
9381         * posix-modules: Likewise.
9382         * tests/test-alloca-opt.c: Likewise.
9383         * tests/test-arcfour.c: Likewise.
9384         * tests/test-arctwo.c: Likewise.
9385         * tests/test-argmatch.c: Likewise.
9386         * tests/test-argp-2.sh: Likewise.
9387         * tests/test-argp.c: Likewise.
9388         * tests/test-arpa_inet.c: Likewise.
9389         * tests/test-array_list.c: Likewise.
9390         * tests/test-array_oset.c: Likewise.
9391         * tests/test-atexit.c: Likewise.
9392         * tests/test-avltree_list.c: Likewise.
9393         * tests/test-avltree_oset.c: Likewise.
9394         * tests/test-avltreehash_list.c: Likewise.
9395         * tests/test-base64.c: Likewise.
9396         * tests/test-binary-io.c: Likewise.
9397         * tests/test-byteswap.c: Likewise.
9398         * tests/test-c-ctype.c: Likewise.
9399         * tests/test-c-strcasecmp.c: Likewise.
9400         * tests/test-c-strcasestr.c: Likewise.
9401         * tests/test-c-strncasecmp.c: Likewise.
9402         * tests/test-c-strstr.c: Likewise.
9403         * tests/test-canonicalize-lgpl.c: Likewise.
9404         * tests/test-canonicalize.c: Likewise.
9405         * tests/test-carray_list.c: Likewise.
9406         * tests/test-ceilf.c: Likewise.
9407         * tests/test-ceill.c: Likewise.
9408         * tests/test-count-one-bits.c: Likewise.
9409         * tests/test-crc.c: Likewise.
9410         * tests/test-dirname.c: Likewise.
9411         * tests/test-fbufmode.c: Likewise.
9412         * tests/test-fcntl.c: Likewise.
9413         * tests/test-fflush.c: Likewise.
9414         * tests/test-floorf.c: Likewise.
9415         * tests/test-floorl.c: Likewise.
9416         * tests/test-fopen.c: Likewise.
9417         * tests/test-fprintf-posix.c: Likewise.
9418         * tests/test-fprintf-posix.h: Likewise.
9419         * tests/test-fpurge.c: Likewise.
9420         * tests/test-freadable.c: Likewise.
9421         * tests/test-freadahead.c: Likewise.
9422         * tests/test-freading.c: Likewise.
9423         * tests/test-freopen.c: Likewise.
9424         * tests/test-frexp.c: Likewise.
9425         * tests/test-frexpl.c: Likewise.
9426         * tests/test-fseek.c: Likewise.
9427         * tests/test-fseeko.c: Likewise.
9428         * tests/test-fseterr.c: Likewise.
9429         * tests/test-fstrcmp.c: Likewise.
9430         * tests/test-ftell.c: Likewise.
9431         * tests/test-ftello.c: Likewise.
9432         * tests/test-fwritable.c: Likewise.
9433         * tests/test-fwriting.c: Likewise.
9434         * tests/test-getaddrinfo.c: Likewise.
9435         * tests/test-getpass.c: Likewise.
9436         * tests/test-gettimeofday.c: Likewise.
9437         * tests/test-hmac-md5.c: Likewise.
9438         * tests/test-hmac-sha1.c: Likewise.
9439         * tests/test-iconv.c: Likewise.
9440         * tests/test-iconvme.c: Likewise.
9441         * tests/test-inttypes.c: Likewise.
9442         * tests/test-isnan.c: Likewise.
9443         * tests/test-isnanf.c: Likewise.
9444         * tests/test-isnanl-nolibm.c: Likewise.
9445         * tests/test-isnanl.c: Likewise.
9446         * tests/test-isnanl.h: Likewise.
9447         * tests/test-ldexpl.c: Likewise.
9448         * tests/test-linked_list.c: Likewise.
9449         * tests/test-linkedhash_list.c: Likewise.
9450         * tests/test-locale.c: Likewise.
9451         * tests/test-localename.c: Likewise.
9452         * tests/test-lock.c: Likewise.
9453         * tests/test-lseek.c: Likewise.
9454         * tests/test-malloca.c: Likewise.
9455         * tests/test-math.c: Likewise.
9456         * tests/test-mbscasecmp.c: Likewise.
9457         * tests/test-mbscasestr1.c: Likewise.
9458         * tests/test-mbscasestr2.c: Likewise.
9459         * tests/test-mbscasestr3.c: Likewise.
9460         * tests/test-mbscasestr4.c: Likewise.
9461         * tests/test-mbschr.c: Likewise.
9462         * tests/test-mbscspn.c: Likewise.
9463         * tests/test-mbsncasecmp.c: Likewise.
9464         * tests/test-mbspbrk.c: Likewise.
9465         * tests/test-mbspcasecmp.c: Likewise.
9466         * tests/test-mbsrchr.c: Likewise.
9467         * tests/test-mbsspn.c: Likewise.
9468         * tests/test-mbsstr1.c: Likewise.
9469         * tests/test-mbsstr2.c: Likewise.
9470         * tests/test-mbsstr3.c: Likewise.
9471         * tests/test-md5.c: Likewise.
9472         * tests/test-memmem.c: Likewise.
9473         * tests/test-netinet_in.c: Likewise.
9474         * tests/test-open.c: Likewise.
9475         * tests/test-printf-frexp.c: Likewise.
9476         * tests/test-printf-frexpl.c: Likewise.
9477         * tests/test-printf-posix.c: Likewise.
9478         * tests/test-printf-posix.h: Likewise.
9479         * tests/test-rbtree_list.c: Likewise.
9480         * tests/test-rbtree_oset.c: Likewise.
9481         * tests/test-rbtreehash_list.c: Likewise.
9482         * tests/test-read-file.c: Likewise.
9483         * tests/test-rijndael.c: Likewise.
9484         * tests/test-search.c: Likewise.
9485         * tests/test-signbit.c: Likewise.
9486         * tests/test-sleep.c: Likewise.
9487         * tests/test-snprintf-posix.c: Likewise.
9488         * tests/test-snprintf-posix.h: Likewise.
9489         * tests/test-snprintf.c: Likewise.
9490         * tests/test-sprintf-posix.c: Likewise.
9491         * tests/test-sprintf-posix.h: Likewise.
9492         * tests/test-stat-time.c: Likewise.
9493         * tests/test-stdbool.c: Likewise.
9494         * tests/test-stdint.c: Likewise.
9495         * tests/test-stdio.c: Likewise.
9496         * tests/test-stdlib.c: Likewise.
9497         * tests/test-stpncpy.c: Likewise.
9498         * tests/test-strcasestr.c: Likewise.
9499         * tests/test-striconv.c: Likewise.
9500         * tests/test-striconveh.c: Likewise.
9501         * tests/test-striconveha.c: Likewise.
9502         * tests/test-string.c: Likewise.
9503         * tests/test-sys_select.c: Likewise.
9504         * tests/test-sys_socket.c: Likewise.
9505         * tests/test-sys_stat.c: Likewise.
9506         * tests/test-sys_time.c: Likewise.
9507         * tests/test-sysexits.c: Likewise.
9508         * tests/test-time.c: Likewise.
9509         * tests/test-tls.c: Likewise.
9510         * tests/test-trunc.c: Likewise.
9511         * tests/test-truncf.c: Likewise.
9512         * tests/test-truncl.c: Likewise.
9513         * tests/test-unistd.c: Likewise.
9514         * tests/test-vasnprintf-posix.c: Likewise.
9515         * tests/test-vasnprintf-posix2.c: Likewise.
9516         * tests/test-vasnprintf.c: Likewise.
9517         * tests/test-vasprintf-posix.c: Likewise.
9518         * tests/test-vasprintf.c: Likewise.
9519         * tests/test-verify.c: Likewise.
9520         * tests/test-vfprintf-posix.c: Likewise.
9521         * tests/test-vprintf-posix.c: Likewise.
9522         * tests/test-vsnprintf-posix.c: Likewise.
9523         * tests/test-vsnprintf.c: Likewise.
9524         * tests/test-vsprintf-posix.c: Likewise.
9525         * tests/test-wchar.c: Likewise.
9526         * tests/test-wctype.c: Likewise.
9527         * tests/test-wcwidth.c: Likewise.
9528         * tests/test-xstrtol.c: Likewise.
9529         * tests/test-xvasprintf.c: Likewise.
9530         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9531         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9532         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9533         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9534         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9535         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9536         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9537         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9538         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9539         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9540         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9541         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9542         * tests/uniname/test-uninames.c: Likewise.
9543         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9544         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9545         * tests/unistdio/test-u16-printf1.h: Likewise.
9546         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9547         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9548         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9549         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9550         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9551         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9552         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9553         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9554         * tests/unistdio/test-u32-printf1.h: Likewise.
9555         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9556         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9557         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9558         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9559         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9560         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9561         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9562         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9563         * tests/unistdio/test-u8-printf1.h: Likewise.
9564         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9565         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9566         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9567         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9568         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9569         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9570         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9571         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9572         * tests/unistdio/test-ulc-printf1.h: Likewise.
9573         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9574         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9575         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9576         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9577         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9578         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9579         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9580         * tests/uniwidth/test-u16-width.c: Likewise.
9581         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9582         * tests/uniwidth/test-u32-width.c: Likewise.
9583         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9584         * tests/uniwidth/test-u8-width.c: Likewise.
9585         * tests/uniwidth/test-uc_width.c: Likewise.
9586         * config/srclist-update: Likewise.
9587         (fixlicense): Update to GPLv3+.
9588
9589         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9590         * tests/test-tsearch.c: Change copyright notice.
9591
9592         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9593         * lib/c-strcaseeq.h: Change copyright notice.
9594         * lib/streq.h: Likewise.
9595         * lib/uniconv.h: Likewise.
9596         * lib/uniconv/u-conv-from-enc.h: Likewise.
9597         * lib/uniconv/u-conv-to-enc.h: Likewise.
9598         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9599         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9600         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9601         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9602         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9603         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9604         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9605         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9606         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9607         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9608         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9609         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9610         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9611         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9612         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9613         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9614         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9615         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9616         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9617         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9618         * lib/uniname.h: Likewise.
9619         * lib/uniname/uniname.c: Likewise.
9620         * lib/unistdio.h: Likewise.
9621         * lib/unistdio/u-asnprintf.h: Likewise.
9622         * lib/unistdio/u-asprintf.h: Likewise.
9623         * lib/unistdio/u-printf-args.c: Likewise.
9624         * lib/unistdio/u-printf-args.h: Likewise.
9625         * lib/unistdio/u-printf-parse.h: Likewise.
9626         * lib/unistdio/u-snprintf.h: Likewise.
9627         * lib/unistdio/u-sprintf.h: Likewise.
9628         * lib/unistdio/u-vasprintf.h: Likewise.
9629         * lib/unistdio/u-vsnprintf.h: Likewise.
9630         * lib/unistdio/u-vsprintf.h: Likewise.
9631         * lib/unistdio/u16-asnprintf.c: Likewise.
9632         * lib/unistdio/u16-asprintf.c: Likewise.
9633         * lib/unistdio/u16-printf-parse.c: Likewise.
9634         * lib/unistdio/u16-snprintf.c: Likewise.
9635         * lib/unistdio/u16-sprintf.c: Likewise.
9636         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9637         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9638         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9639         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9640         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9641         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9642         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9643         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9644         * lib/unistdio/u16-vasnprintf.c: Likewise.
9645         * lib/unistdio/u16-vasprintf.c: Likewise.
9646         * lib/unistdio/u16-vsnprintf.c: Likewise.
9647         * lib/unistdio/u16-vsprintf.c: Likewise.
9648         * lib/unistdio/u32-asnprintf.c: Likewise.
9649         * lib/unistdio/u32-asprintf.c: Likewise.
9650         * lib/unistdio/u32-printf-parse.c: Likewise.
9651         * lib/unistdio/u32-snprintf.c: Likewise.
9652         * lib/unistdio/u32-sprintf.c: Likewise.
9653         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9654         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9655         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9656         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9657         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9658         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9659         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9660         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9661         * lib/unistdio/u32-vasnprintf.c: Likewise.
9662         * lib/unistdio/u32-vasprintf.c: Likewise.
9663         * lib/unistdio/u32-vsnprintf.c: Likewise.
9664         * lib/unistdio/u32-vsprintf.c: Likewise.
9665         * lib/unistdio/u8-asnprintf.c: Likewise.
9666         * lib/unistdio/u8-asprintf.c: Likewise.
9667         * lib/unistdio/u8-printf-parse.c: Likewise.
9668         * lib/unistdio/u8-snprintf.c: Likewise.
9669         * lib/unistdio/u8-sprintf.c: Likewise.
9670         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9671         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9672         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9673         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9674         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9675         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9676         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9677         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9678         * lib/unistdio/u8-vasnprintf.c: Likewise.
9679         * lib/unistdio/u8-vasprintf.c: Likewise.
9680         * lib/unistdio/u8-vsnprintf.c: Likewise.
9681         * lib/unistdio/u8-vsprintf.c: Likewise.
9682         * lib/unistdio/ulc-asnprintf.c: Likewise.
9683         * lib/unistdio/ulc-asprintf.c: Likewise.
9684         * lib/unistdio/ulc-printf-parse.c: Likewise.
9685         * lib/unistdio/ulc-snprintf.c: Likewise.
9686         * lib/unistdio/ulc-sprintf.c: Likewise.
9687         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9688         * lib/unistdio/ulc-vasprintf.c: Likewise.
9689         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9690         * lib/unistdio/ulc-vsprintf.c: Likewise.
9691         * lib/unistr.h: Likewise.
9692         * lib/unistr/u-cpy-alloc.h: Likewise.
9693         * lib/unistr/u-cpy.h: Likewise.
9694         * lib/unistr/u-endswith.h: Likewise.
9695         * lib/unistr/u-move.h: Likewise.
9696         * lib/unistr/u-set.h: Likewise.
9697         * lib/unistr/u-startswith.h: Likewise.
9698         * lib/unistr/u-stpcpy.h: Likewise.
9699         * lib/unistr/u-stpncpy.h: Likewise.
9700         * lib/unistr/u-strcat.h: Likewise.
9701         * lib/unistr/u-strcpy.h: Likewise.
9702         * lib/unistr/u-strcspn.h: Likewise.
9703         * lib/unistr/u-strdup.h: Likewise.
9704         * lib/unistr/u-strlen.h: Likewise.
9705         * lib/unistr/u-strncat.h: Likewise.
9706         * lib/unistr/u-strncpy.h: Likewise.
9707         * lib/unistr/u-strnlen.h: Likewise.
9708         * lib/unistr/u-strpbrk.h: Likewise.
9709         * lib/unistr/u-strspn.h: Likewise.
9710         * lib/unistr/u-strstr.h: Likewise.
9711         * lib/unistr/u-strtok.h: Likewise.
9712         * lib/unistr/u16-check.c: Likewise.
9713         * lib/unistr/u16-chr.c: Likewise.
9714         * lib/unistr/u16-cmp.c: Likewise.
9715         * lib/unistr/u16-cpy-alloc.c: Likewise.
9716         * lib/unistr/u16-cpy.c: Likewise.
9717         * lib/unistr/u16-endswith.c: Likewise.
9718         * lib/unistr/u16-mblen.c: Likewise.
9719         * lib/unistr/u16-mbsnlen.c: Likewise.
9720         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9721         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9722         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9723         * lib/unistr/u16-mbtouc.c: Likewise.
9724         * lib/unistr/u16-mbtoucr.c: Likewise.
9725         * lib/unistr/u16-move.c: Likewise.
9726         * lib/unistr/u16-next.c: Likewise.
9727         * lib/unistr/u16-prev.c: Likewise.
9728         * lib/unistr/u16-set.c: Likewise.
9729         * lib/unistr/u16-startswith.c: Likewise.
9730         * lib/unistr/u16-stpcpy.c: Likewise.
9731         * lib/unistr/u16-stpncpy.c: Likewise.
9732         * lib/unistr/u16-strcat.c: Likewise.
9733         * lib/unistr/u16-strchr.c: Likewise.
9734         * lib/unistr/u16-strcmp.c: Likewise.
9735         * lib/unistr/u16-strcpy.c: Likewise.
9736         * lib/unistr/u16-strcspn.c: Likewise.
9737         * lib/unistr/u16-strdup.c: Likewise.
9738         * lib/unistr/u16-strlen.c: Likewise.
9739         * lib/unistr/u16-strmblen.c: Likewise.
9740         * lib/unistr/u16-strmbtouc.c: Likewise.
9741         * lib/unistr/u16-strncat.c: Likewise.
9742         * lib/unistr/u16-strncmp.c: Likewise.
9743         * lib/unistr/u16-strncpy.c: Likewise.
9744         * lib/unistr/u16-strnlen.c: Likewise.
9745         * lib/unistr/u16-strpbrk.c: Likewise.
9746         * lib/unistr/u16-strrchr.c: Likewise.
9747         * lib/unistr/u16-strspn.c: Likewise.
9748         * lib/unistr/u16-strstr.c: Likewise.
9749         * lib/unistr/u16-strtok.c: Likewise.
9750         * lib/unistr/u16-to-u32.c: Likewise.
9751         * lib/unistr/u16-to-u8.c: Likewise.
9752         * lib/unistr/u16-uctomb-aux.c: Likewise.
9753         * lib/unistr/u16-uctomb.c: Likewise.
9754         * lib/unistr/u32-check.c: Likewise.
9755         * lib/unistr/u32-chr.c: Likewise.
9756         * lib/unistr/u32-cmp.c: Likewise.
9757         * lib/unistr/u32-cpy-alloc.c: Likewise.
9758         * lib/unistr/u32-cpy.c: Likewise.
9759         * lib/unistr/u32-endswith.c: Likewise.
9760         * lib/unistr/u32-mblen.c: Likewise.
9761         * lib/unistr/u32-mbsnlen.c: Likewise.
9762         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9763         * lib/unistr/u32-mbtouc.c: Likewise.
9764         * lib/unistr/u32-mbtoucr.c: Likewise.
9765         * lib/unistr/u32-move.c: Likewise.
9766         * lib/unistr/u32-next.c: Likewise.
9767         * lib/unistr/u32-prev.c: Likewise.
9768         * lib/unistr/u32-set.c: Likewise.
9769         * lib/unistr/u32-startswith.c: Likewise.
9770         * lib/unistr/u32-stpcpy.c: Likewise.
9771         * lib/unistr/u32-stpncpy.c: Likewise.
9772         * lib/unistr/u32-strcat.c: Likewise.
9773         * lib/unistr/u32-strchr.c: Likewise.
9774         * lib/unistr/u32-strcmp.c: Likewise.
9775         * lib/unistr/u32-strcpy.c: Likewise.
9776         * lib/unistr/u32-strcspn.c: Likewise.
9777         * lib/unistr/u32-strdup.c: Likewise.
9778         * lib/unistr/u32-strlen.c: Likewise.
9779         * lib/unistr/u32-strmblen.c: Likewise.
9780         * lib/unistr/u32-strmbtouc.c: Likewise.
9781         * lib/unistr/u32-strncat.c: Likewise.
9782         * lib/unistr/u32-strncmp.c: Likewise.
9783         * lib/unistr/u32-strncpy.c: Likewise.
9784         * lib/unistr/u32-strnlen.c: Likewise.
9785         * lib/unistr/u32-strpbrk.c: Likewise.
9786         * lib/unistr/u32-strrchr.c: Likewise.
9787         * lib/unistr/u32-strspn.c: Likewise.
9788         * lib/unistr/u32-strstr.c: Likewise.
9789         * lib/unistr/u32-strtok.c: Likewise.
9790         * lib/unistr/u32-to-u16.c: Likewise.
9791         * lib/unistr/u32-to-u8.c: Likewise.
9792         * lib/unistr/u32-uctomb.c: Likewise.
9793         * lib/unistr/u8-check.c: Likewise.
9794         * lib/unistr/u8-chr.c: Likewise.
9795         * lib/unistr/u8-cmp.c: Likewise.
9796         * lib/unistr/u8-cpy-alloc.c: Likewise.
9797         * lib/unistr/u8-cpy.c: Likewise.
9798         * lib/unistr/u8-endswith.c: Likewise.
9799         * lib/unistr/u8-mblen.c: Likewise.
9800         * lib/unistr/u8-mbsnlen.c: Likewise.
9801         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9802         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9803         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9804         * lib/unistr/u8-mbtouc.c: Likewise.
9805         * lib/unistr/u8-mbtoucr.c: Likewise.
9806         * lib/unistr/u8-move.c: Likewise.
9807         * lib/unistr/u8-next.c: Likewise.
9808         * lib/unistr/u8-prev.c: Likewise.
9809         * lib/unistr/u8-set.c: Likewise.
9810         * lib/unistr/u8-startswith.c: Likewise.
9811         * lib/unistr/u8-stpcpy.c: Likewise.
9812         * lib/unistr/u8-stpncpy.c: Likewise.
9813         * lib/unistr/u8-strcat.c: Likewise.
9814         * lib/unistr/u8-strchr.c: Likewise.
9815         * lib/unistr/u8-strcmp.c: Likewise.
9816         * lib/unistr/u8-strcpy.c: Likewise.
9817         * lib/unistr/u8-strcspn.c: Likewise.
9818         * lib/unistr/u8-strdup.c: Likewise.
9819         * lib/unistr/u8-strlen.c: Likewise.
9820         * lib/unistr/u8-strmblen.c: Likewise.
9821         * lib/unistr/u8-strmbtouc.c: Likewise.
9822         * lib/unistr/u8-strncat.c: Likewise.
9823         * lib/unistr/u8-strncmp.c: Likewise.
9824         * lib/unistr/u8-strncpy.c: Likewise.
9825         * lib/unistr/u8-strnlen.c: Likewise.
9826         * lib/unistr/u8-strpbrk.c: Likewise.
9827         * lib/unistr/u8-strrchr.c: Likewise.
9828         * lib/unistr/u8-strspn.c: Likewise.
9829         * lib/unistr/u8-strstr.c: Likewise.
9830         * lib/unistr/u8-strtok.c: Likewise.
9831         * lib/unistr/u8-to-u16.c: Likewise.
9832         * lib/unistr/u8-to-u32.c: Likewise.
9833         * lib/unistr/u8-uctomb-aux.c: Likewise.
9834         * lib/unistr/u8-uctomb.c: Likewise.
9835         * lib/unitypes.h: Likewise.
9836         * lib/uniwidth.h: Likewise.
9837         * lib/uniwidth/cjk.h: Likewise.
9838         * lib/uniwidth/u16-strwidth.c: Likewise.
9839         * lib/uniwidth/u16-width.c: Likewise.
9840         * lib/uniwidth/u32-strwidth.c: Likewise.
9841         * lib/uniwidth/u32-width.c: Likewise.
9842         * lib/uniwidth/u8-strwidth.c: Likewise.
9843         * lib/uniwidth/u8-width.c: Likewise.
9844         * lib/uniwidth/width.c: Likewise.
9845
9846 2007-10-07  Bruno Haible  <bruno@clisp.org>
9847
9848         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9849         The file is still under LGPL (see modules/inttypes).
9850
9851 2007-10-06  Bruno Haible  <bruno@clisp.org>
9852
9853         * modules/trunc (Dependencies): Add 'extensions'.
9854         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9855         Reported by Ben Pfaff <blp@gnu.org>.
9856
9857 2007-10-06  Bruno Haible  <bruno@clisp.org>
9858
9859         * modules/freopen-tests: New file.
9860         * tests/test-freopen.c: New file.
9861
9862         * modules/fopen-tests: New file.
9863         * tests/test-fopen.c: New file.
9864
9865         * modules/fopen: New file.
9866         * lib/fopen.c: New file.
9867         * m4/fopen.m4: New file.
9868         * modules/freopen: New file.
9869         * lib/freopen.c: New file.
9870         * m4/freopen.m4: New file.
9871         * lib/stdio.in.h (fopen, freopen): New declarations.
9872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9873         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9874         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9875         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9876         * doc/functions/fopen.texi: Mention the 'fopen' module.
9877         * doc/functions/freopen.texi: Mention the 'freopen' module.
9878
9879 2007-10-06  Bruno Haible  <bruno@clisp.org>
9880
9881         * modules/open-tests: New file.
9882         * tests/test-open.c: New file.
9883
9884         * modules/open: New file.
9885         * lib/open.c: New file.
9886         * m4/open.m4: New file.
9887         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9888         lib/open.c does.
9889         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9890         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9891         macros.
9892         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9893         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9894         REPLACE_OPEN.
9895         * doc/functions/open.texi: Mention the 'open' module.
9896
9897 2007-10-04  Bruno Haible  <bruno@clisp.org>
9898
9899         * modules/ceill-tests: New file.
9900         * tests/test-ceill.c: New file.
9901
9902         * modules/ceill: New file.
9903         * lib/ceill.c: Replace entire file.
9904         * m4/ceill.m4: New file.
9905         * lib/math.in.h (ceill): Replace declaration.
9906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9907         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9908         * doc/functions/ceill.texi: Mention the 'ceill' module.
9909         * modules/mathl (Files): Remove lib/ceill.c.
9910         (Depends-on): Add ceill.
9911
9912 2007-10-04  Bruno Haible  <bruno@clisp.org>
9913
9914         * modules/ceilf-tests: New file.
9915         * tests/test-ceilf.c: New file.
9916
9917         * modules/ceilf: New file.
9918         * lib/ceil.c: New file.
9919         * lib/ceilf.c: New file.
9920         * m4/ceilf.m4: New file.
9921         * lib/math.in.h (ceilf): New declaration.
9922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9923         HAVE_DECL_CEILF.
9924         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9925         HAVE_DECL_CEILF.
9926         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9927
9928 2007-10-04  Bruno Haible  <bruno@clisp.org>
9929
9930         * modules/floorl-tests: New file.
9931         * tests/test-floorl.c: New file.
9932
9933         * modules/floorl: New file.
9934         * lib/floorl.c: Replace entire file.
9935         * m4/floorl.m4: New file.
9936         * lib/math.in.h (floorl): Replace declaration.
9937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9938         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9939         * doc/functions/floorl.texi: Mention the 'floorl' module.
9940         * modules/mathl (Files): Remove lib/floorl.c.
9941         (Depends-on): Add floorl.
9942
9943 2007-10-04  Bruno Haible  <bruno@clisp.org>
9944
9945         * modules/floorf-tests: New file.
9946         * tests/test-floorf.c: New file.
9947
9948         * modules/floorf: New file.
9949         * lib/floor.c: New file.
9950         * lib/floorf.c: New file.
9951         * m4/floorf.m4: New file.
9952         * lib/math.in.h (floorf): New declaration.
9953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9954         HAVE_DECL_FLOORF.
9955         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9956         HAVE_DECL_FLOORF.
9957         * doc/functions/floorf.texi: Mention the 'floorf' module.
9958
9959 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9960             Bruno Haible  <bruno@clisp.org>
9961
9962         Advertise for the Git server instead of the CVS server.
9963         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9964         repository instead of the CVS one.
9965         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9966         about all VCS systems generically.
9967         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9968
9969 2007-10-04  Bruno Haible  <bruno@clisp.org>
9970
9971         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9972         means.
9973         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9974
9975 2007-10-04  Bruno Haible  <bruno@clisp.org>
9976
9977         * modules/truncl-tests: New file.
9978         * tests/test-truncl.c: New file.
9979
9980         * modules/truncl: New file.
9981         * lib/truncl.c: New file.
9982         * m4/truncl.m4: New file.
9983         * lib/math.in.h (truncl): New declaration.
9984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9985         HAVE_DECL_TRUNCL.
9986         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9987         HAVE_DECL_TRUNCL.
9988         * doc/functions/truncl.texi: Mention the 'truncl' module.
9989
9990 2007-10-04  Bruno Haible  <bruno@clisp.org>
9991
9992         * modules/truncf-tests: New file.
9993         * tests/test-truncf.c: New file.
9994
9995         * modules/truncf: New file.
9996         * lib/trunc.c: Make paramerizable through USE_* macros.
9997         * lib/truncf.c: New file.
9998         * m4/truncf.m4: New file.
9999         * lib/math.in.h (truncf): New declaration.
10000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10001         HAVE_DECL_TRUNCF.
10002         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10003         HAVE_DECL_TRUNCF.
10004         * doc/functions/truncf.texi: Mention the 'truncf' module.
10005
10006 2007-10-03  Bruno Haible  <bruno@clisp.org>
10007
10008         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10009         augmentation also for tests modules.
10010         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10011         * modules/atexit-tests (Makefile.am): Likewise.
10012         * modules/binary-io-tests (Makefile.am): Likewise.
10013         * modules/c-strcase-tests (Makefile.am): Likewise.
10014         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10015         * modules/canonicalize-tests (Makefile.am): Likewise.
10016         * modules/closein-tests (Makefile.am): Likewise.
10017         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10018         * modules/freadahead-tests (Makefile.am): Likewise.
10019         * modules/fseek-tests (Makefile.am): Likewise.
10020         * modules/fseeko-tests (Makefile.am): Likewise.
10021         * modules/ftell-tests (Makefile.am): Likewise.
10022         * modules/ftello-tests (Makefile.am): Likewise.
10023         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10024         * modules/isnanl-tests (Makefile.am): Likewise.
10025         * modules/lseek-tests (Makefile.am): Likewise.
10026         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10027         * modules/mbscasestr-tests (Makefile.am): Likewise.
10028         * modules/mbschr-tests (Makefile.am): Likewise.
10029         * modules/mbscspn-tests (Makefile.am): Likewise.
10030         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10031         * modules/mbspbrk-tests (Makefile.am): Likewise.
10032         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10033         * modules/mbsrchr-tests (Makefile.am): Likewise.
10034         * modules/mbsspn-tests (Makefile.am): Likewise.
10035         * modules/mbsstr-tests (Makefile.am): Likewise.
10036         * modules/printf-posix-tests (Makefile.am): Likewise.
10037         * modules/snprintf-posix-tests (Makefile.am): Likewise.
10038         * modules/sprintf-posix-tests (Makefile.am): Likewise.
10039         * modules/tsearch-tests (Makefile.am): Likewise.
10040         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10041         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10042         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10043         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10044         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10045         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10046         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10047         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10048         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
10049         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
10050         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10051         * modules/xstrtol-tests (Makefile.am): Likewise.
10052         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10053         * modules/yesno-tests (Makefile.am): Likewise.
10054
10055 2007-10-03  Bruno Haible  <bruno@clisp.org>
10056
10057         * modules/trunc-tests: New file.
10058         * tests/test-trunc.c: New file.
10059
10060         * modules/trunc: New file.
10061         * lib/trunc.c: New file.
10062         * m4/trunc.m4: New file.
10063         * lib/math.in.h (trunc): New declaration.
10064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10065         HAVE_DECL_TRUNC.
10066         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10067         HAVE_DECL_TRUNC.
10068         * doc/functions/trunc.texi: Mention the 'trunc' module.
10069
10070 2007-10-03  Bruno Haible  <bruno@clisp.org>
10071
10072         * tests/test-fpending.c: New file, mostly copied
10073         from coreutils/lib/t-fpending.c.
10074         * modules/fpending-tests: New file.
10075
10076 2007-10-03  Bruno Haible  <bruno@clisp.org>
10077
10078         Port the stdio extensions to QNX (untested).
10079         * lib/fseterr.c (fseterr): Add support for QNX.
10080         * lib/fbufmode.c (fbufmode): Likewise.
10081         * lib/freadable.c (freadable): Likewise.
10082         * lib/fwritable.c (fwritable): Likewise.
10083         * lib/freading.c (freading): Likewise.
10084         * lib/fwriting.c (fwriting): Likewise.
10085         * lib/freadahead.c (freadahed): Likewise.
10086         * lib/fpurge.c (fpurge): Likewise.
10087         * lib/fseeko.c (rpl_fseeko): Likewise.
10088
10089 2007-10-03  Bruno Haible  <bruno@clisp.org>
10090             Jim Meyering  <jim@meyering.net>
10091             Eric Blake  <ebb9@byu.net>
10092
10093         * doc/relocatable.texi: Use @command instead of @program.
10094
10095 2007-10-02  Jim Meyering  <jim@meyering.net>
10096
10097         Perform one more "_.h" -> ".in.h" substitution.
10098         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10099         instead of unistd_.h here, too.
10100
10101 2007-10-01  Bruno Haible  <bruno@clisp.org>
10102
10103         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10104         Needed for the alloca-opt module.
10105
10106 2007-09-30  Bruno Haible  <bruno@clisp.org>
10107
10108         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10109         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10110         alloca_.h.
10111         * lib/argz.in.h: Renamed from lib/argz_.h.
10112         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10113         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10114         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10115         byteswap_.h.
10116         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10117         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10118         dirent_.h.
10119         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10120         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10121         fcntl_.h.
10122         * lib/float.in.h: Renamed from lib/float_.h.
10123         * modules/float (Files, Makefile.am): Use float.in.h instead of
10124         float_.h.
10125         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10126         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10127         fnmatch_.h.
10128         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10129         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10130         getopt_.h.
10131         * lib/glob.in.h: Renamed from lib/glob_.h.
10132         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10133         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10134         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10135         iconv_.h.
10136         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10137         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10138         inttypes_.h.
10139         * lib/locale.in.h: Renamed from lib/locale_.h.
10140         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10141         locale_.h.
10142         * lib/math.in.h: Renamed from lib/math_.h.
10143         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10144         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10145         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10146         of netinet_in_.h. Add dependency.
10147         * lib/poll.in.h: Renamed from lib/poll_.h.
10148         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10149         * lib/search.in.h: Renamed from lib/search_.h.
10150         * modules/search (Files, Makefile.am): Use search.in.h instead of
10151         search_.h.
10152         * lib/signal.in.h: Renamed from lib/signal_.h.
10153         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10154         _signal.h.
10155         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10156         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10157         stdbool_.h.
10158         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10159         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10160         stdint_.h.
10161         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10162         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10163         stdio_.h.
10164         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10165         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10166         stdlib_.h.
10167         * lib/string.in.h: Renamed from lib/string_.h.
10168         * modules/string (Files, Makefile.am): Use string.in.h instead of
10169         string_.h.
10170         * doc/gnulib-tool.texi (Initial import): Update.
10171         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10172         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10173         of sys_select_.h. Add dependency.
10174         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10175         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10176         of sys_socket_.h.
10177         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10178         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10179         sys_stat_.h.
10180         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10181         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10182         sys_time_.h.
10183         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10184         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10185         sysexits_.h.
10186         * lib/time.in.h: Renamed from lib/time_.h.
10187         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10188         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10189         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10190         unistd_.h.
10191         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10192         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10193         wchar_.h.
10194         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10195         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10196         wctype_.h.
10197         * build-aux/bootstrap (slurp): Update.
10198         * lib/.cppi-disable: Update.
10199
10200 2007-09-30  Bruno Haible  <bruno@clisp.org>
10201
10202         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10203         Needed on BeOS.
10204
10205 2007-09-30  Bruno Haible  <bruno@clisp.org>
10206
10207         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10208
10209 2007-09-29  Bruno Haible  <bruno@clisp.org>
10210
10211         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10212
10213 2007-09-29  Bruno Haible  <bruno@clisp.org>
10214
10215         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10216         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10217         * build-aux/install-reloc: Compile also areadlink.c.
10218         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10219
10220 2007-09-29  Bruno Haible  <bruno@clisp.org>
10221
10222         * gnulib-tool (func_emit_initmacro_done): Indentation.
10223
10224 2007-09-29  Bruno Haible  <bruno@clisp.org>
10225
10226         * README: Add CVS checkout update instructions.
10227         Info from Bob Proulx <bob@proulx.com>.
10228
10229 2007-09-28  Eric Blake  <ebb9@byu.net>
10230
10231         Provide move-if-change.
10232         * build-aux/move-if-change: New file, based on best practice
10233         rather than any canonical upstream location.
10234
10235 2007-09-28  Jim Meyering  <jim@meyering.net>
10236
10237         Fix canonicalize loop-detection corner case.
10238         Do not attempt to stat the symlink values stored via seen_triple.
10239         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10240         on linux-2.6.18, (but not 2.6.22).
10241         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10242         triple_compare.  The former compares dev,ino,filename, while the latter
10243         would actually stat dirname(filename) when dev and ino were equal.
10244         * lib/hash-triple.c: Install <string.h>.
10245         (STREQ): Define.
10246         (triple_compare_ino_str): New function.
10247         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10248
10249 2007-09-28  Eric Blake  <ebb9@byu.net>
10250
10251         Enforce that AC_REPLACE_FUNCS files exist.
10252         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10253         override check for typos.
10254
10255         Fix test-closein on Solaris 10.
10256         * tests/test-closein.c (main): Don't assume stdin can be inherited
10257         closed on all systems.
10258         * tests/test-closein.sh: Likewise.
10259         Reported by Piotr Tarnowski.
10260
10261 2007-09-28  Jim Meyering  <jim@meyering.net>
10262
10263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10264
10265 2007-09-27  Jim Meyering  <jim@meyering.net>
10266
10267         canonicalize: Avoid a false-positive cycle failure.
10268         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10269         Sort.  Remove cycle-check.
10270         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10271         not cycle-check.h.
10272         (seen_triple): New function.
10273         (canonicalize_filename_mode): Use it instead of cycle-check.
10274         * tests/test-canonicalize.c: Add a test for this bug.
10275         * tests/test-canonicalize.sh: Set up and run the test.
10276
10277         New module, file-set, from coreutils.
10278         * modules/file-set: Define it.
10279         * lib/file-set.c, lib/file-set.h: Implement.
10280
10281         New module, hash-triple, from coreutils.
10282         * modules/hash-triple: Define it.
10283         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10284
10285 2007-09-25  Eric Blake  <ebb9@byu.net>
10286
10287         Fix strerror on Interix.
10288         * lib/string_.h (strerror): Declare replacement.
10289         * doc/functions/strerror.texi (strerror): Document the Interix
10290         shortcoming.
10291         * modules/string (Makefile.am): Support new hooks.
10292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10293         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10294         gl_FUNC_STRERROR_SEPARATE.
10295         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10296         * lib/strerror.c (rpl_strerror): Provide replacement.
10297         * modules/strerror (Depends-on): Add string.
10298         (configure.ac): Detect use of module.
10299         * tests/test-strerror.c: New file.
10300         * modules/strerror-tests: New test module.
10301         * modules/argp (Depends-on): Add strerror.
10302         * modules/error (Depends-on): Likewise.
10303         Reported by Martin Koeppe.
10304
10305 2007-09-24  Bruno Haible  <bruno@clisp.org>
10306
10307         * README: Update git instructions.
10308
10309 2007-09-24  Eric Blake  <ebb9@byu.net>
10310
10311         Revert fpending breakage from 2007-09-08.
10312         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10313         __fpending.c.
10314
10315 2007-09-24  Jim Meyering  <jim@meyering.net>
10316
10317         filenamecat.c: Add a test.
10318         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10319         showing how the function works when DIR is the empty string.
10320
10321 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10322
10323         * tests/test-canonicalize.sh: Turn on executable bit.
10324
10325 2007-09-19  Eric Blake  <ebb9@byu.net>
10326
10327         * README: Update CVS instructions.
10328
10329 2007-09-18  Bruno Haible  <bruno@clisp.org>
10330
10331         * modules/areadlink: New file.
10332         * lib/areadlink.h (areadlink): New declaration.
10333         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10334
10335 2007-09-17  Jim Meyering  <jim@meyering.net>
10336
10337         * lib/savewd.c (ESTALE) [!defined]: Define.
10338         Reported to be required on Interix by Martin Koeppe.
10339
10340 2007-09-17  Bruno Haible  <bruno@clisp.org>
10341
10342         * gnulib-tool (func_version): Use $version.
10343
10344 2007-09-16  Bruno Haible  <bruno@clisp.org>
10345
10346         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10347         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10348         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10349         Reported by Greg Schafer <gschafer@zip.com.au>.
10350
10351 2007-09-15  Bruno Haible  <bruno@clisp.org>
10352
10353         * gnulib-tool (sed): Try a little harder to make bash understand the
10354         alias.
10355         Reported by Bruce Korb <bruce.korb@gmail.com>.
10356
10357 2007-09-13  Eric Blake  <ebb9@byu.net>
10358
10359         * ChangeLog: Remove conflict markers.
10360
10361 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10362
10363         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10364         Reported by Bruno Haible <bruno@clisp.org>.
10365
10366 2007-09-12  Bruno Haible  <bruno@clisp.org>
10367
10368         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10369         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10370         is not defined.
10371
10372 2007-09-12  Eric Blake  <ebb9@byu.net>
10373
10374         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10375         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10376         Autoconf definition.
10377         * modules/euidaccess (Depends-on): Add extensions, for
10378         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10379         * modules/fnmatch (Depends-on): Likewise.
10380         * modules/getaddrinfo (Depends-on): Likewise.
10381         * modules/getdelim (Depends-on): Likewise.
10382         * modules/getline (Depends-on): Likewise.
10383         * modules/getsubopt (Depends-on): Likewise.
10384         * modules/gettext (Depends-on): Likewise.
10385         * modules/group-member (Depends-on): Likewise.
10386         * modules/mbchar (Depends-on): Likewise.
10387         * modules/memmem (Depends-on): Likewise.
10388         * modules/mempcpy (Depends-on): Likewise.
10389         * modules/memrchr (Depends-on): Likewise.
10390         * modules/pagealign_alloc (Depends-on): Likewise.
10391         * modules/readutmp (Depends-on): Likewise.
10392         * modules/stpcpy (Depends-on): Likewise.
10393         * modules/stpncpy (Depends-on): Likewise.
10394         * modules/strchrnul (Depends-on): Likewise.
10395         * modules/strndup (Depends-on): Likewise.
10396         * modules/strsep (Depends-on): Likewise.
10397         * modules/strverscmp (Depends-on): Likewise.
10398         * modules/vasprintf (Depends-on): Likewise.
10399         * modules/wcwidth (Depends-on): Likewise.
10400         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10401         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10402         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10406         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10407         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10408         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10409         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10411         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10412         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10414         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10415         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10416         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10419         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10421         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10422         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10423         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10424         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10426         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10427         so that lock.m4 can be used in gettext without extensions module.
10428
10429 2007-09-11  Bruno Haible  <bruno@clisp.org>
10430
10431         * m4/isc-posix.m4: Remove file.
10432         Suggested by Eric Blake.
10433
10434 2007-09-11  Eric Blake  <ebb9@byu.net>
10435
10436         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10437
10438 2007-09-10  Bruno Haible  <bruno@clisp.org>
10439
10440         * posix-modules: Fix typo in error message.
10441         Reported by Matt <mkraai@beckman.com>.
10442
10443 2007-09-09  Bruno Haible  <bruno@clisp.org>
10444
10445         * doc/functions/getdelim.texi: Update list of platforms lacking the
10446         function.
10447         * doc/functions/getline.texi: Likewise.
10448
10449 2007-09-09  Jim Meyering  <jim@meyering.net>
10450
10451         * lib/hash.c (hash_initialize): Detect calloc failure.
10452         Reported by Bruno Haible.
10453
10454 2007-09-09  Bruno Haible  <bruno@clisp.org>
10455
10456         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10457         malloc or realloc fails.
10458
10459 2007-09-09  Bruno Haible  <bruno@clisp.org>
10460
10461         * modules/getcwd (Depends-on): Add malloc-posix.
10462         * modules/glob (Depends-on): Likewise.
10463         * modules/putenv (Depends-on): Likewise.
10464         * modules/strdup (Depends-on): Likewise.
10465         * modules/getdelim (Depends-on): Add realloc-posix.
10466         * modules/read-file (Depends-on): Likewise.
10467
10468 2007-09-09  Bruno Haible  <bruno@clisp.org>
10469
10470         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10471         (gl_FUNC_MALLOC_POSIX): Require it.
10472         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10473         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10474         * modules/realloc (Files): Add m4/malloc.m4.
10475         * modules/calloc (Files): Likewise.
10476
10477 2007-09-09  Bruno Haible  <bruno@clisp.org>
10478
10479         * modules/malloc-posix: New file.
10480         * modules/malloc (Depends-on): Add malloc-posix.
10481         * lib/malloc.c: Include errno.h.
10482         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10483         and a POSIX-compatible malloc into a single function. Set ENOMEM
10484         when returning NULL.
10485         * m4/malloc.m4: New file.
10486         * doc/functions/malloc.texi: Mention the malloc-posix module.
10487         * lib/stdlib_.h (malloc): New declaration.
10488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10489         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10490         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10491         and HAVE_MALLOC_POSIX.
10492
10493 2007-09-09  Bruno Haible  <bruno@clisp.org>
10494
10495         * modules/realloc-posix: New file.
10496         * modules/realloc (Depends-on): Add realloc-posix.
10497         * lib/realloc.c: Include errno.h.
10498         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10499         and a POSIX-compatible realloc into a single function. Set ENOMEM
10500         when returning NULL.
10501         * m4/realloc.m4: New file.
10502         * doc/functions/realloc.texi: Mention the realloc-posix module.
10503         * lib/stdlib_.h (realloc): New declaration.
10504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10505         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10506         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10507         and HAVE_REALLOC_POSIX.
10508
10509 2007-09-09  Bruno Haible  <bruno@clisp.org>
10510
10511         * modules/calloc-posix: New file.
10512         * modules/calloc (Depends-on): Add calloc-posix.
10513         * lib/calloc.c: Include errno.h.
10514         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10515         and a POSIX-compatible calloc into a single function. Set ENOMEM
10516         when returning NULL.
10517         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10518         * doc/functions/calloc.texi: Mention the calloc-posix module.
10519         * lib/stdlib_.h (calloc): New declaration.
10520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10521         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10522         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10523         and HAVE_CALLOC_POSIX.
10524
10525 2007-09-09  Bruno Haible  <bruno@clisp.org>
10526
10527         Allow for modules to show an arbitrary notice.
10528         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10529         * gnulib-tool: New option --extract-notice.
10530         (func_usage): Document it.
10531         (sed_extract_prog): Update.
10532         (func_get_notice): New function.
10533         (func_modules_notice): New function.
10534         (func_import, func_create_testdir): Invoke it.
10535         Suggested by Jim Meyering.
10536
10537 2007-09-09  Bruno Haible  <bruno@clisp.org>
10538
10539         * gnulib-tool: New options --verbose, --quiet.
10540         (func_usage): Document them.
10541         (verbose): New variable.
10542         (func_execute_command): New function.
10543         (func_import): Don't show the module list and the file list if
10544         $verbose < 0.
10545         (func_create_testdir): Likewise. Use func_execute_command.
10546         (func_create_megatestdir): Use func_execute_command.
10547
10548 2007-09-08  Bruno Haible  <bruno@clisp.org>
10549
10550         * gnulib-tool (func_import): Prefer rsync over wget when available,
10551         for fetching the PO files.
10552
10553 2007-09-08  Bruno Haible  <bruno@clisp.org>
10554
10555         * posix-modules: New file. Portions copied from gnulib-tool.
10556         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10557
10558 2007-09-08  Jim Meyering  <jim@meyering.net>
10559
10560         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10561         * lib/fpending.h: Rename from __fpending.h.
10562         * lib/fpending.c: Rename from __fpending.c.
10563         Include "fpending.h", not "__fpending.h".
10564         * lib/__fpending.h, lib/__fpending.c: Remove files.
10565         * modules/fpending (Files): Reflect new file names.
10566         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10567
10568 2007-09-08  Bruno Haible  <bruno@clisp.org>
10569
10570         * m4/inttypes-h.m4: Remove stub file.
10571
10572 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10573
10574         * doc/headers/stdint.texi: Discuss #include_next issue.
10575
10576 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10577
10578         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10579
10580 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10581
10582         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10583         in variable name.
10584
10585 2007-09-03  Jim Meyering  <jim@meyering.net>
10586
10587         New module: git-version-gen.
10588         * modules/git-version-gen: New file.
10589
10590         Import changes from coreutils for bootstrap script.
10591
10592         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10593
10594         bootstrap: uses rsync to download the .po files
10595         * build-aux/bootstrap (po_download_command_format): New global.
10596         (download_po_files): Use rsync.
10597         (update_po_files): Don't remove .po files after download,
10598         so future rsync runs can take advantage of the copies.
10599
10600         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10601
10602         Solve the unnecessary-.po-file-regeneration problem once and for all.
10603         * build-aux/bootstrap (download_po_files): New function, renamed from
10604         get_translations.  Now, downloads, but doesn't update LINGUAS.
10605         (update_po_files): New function.
10606
10607         bootstrap: Ignore more.
10608         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10609         uniwidth to e.g., lib/.gitignore.
10610         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10611
10612         * build-aux/bootstrap: New setting: vc_ignore.
10613         (insert_sorted_if_absent): Create $file if absent.
10614         Adapt to new, possibly empty, list: $vc_ignore.
10615
10616         bootstrap: generate more ignorable names
10617         * build-aux/bootstrap (slurp): When generating ignorable names,
10618         also map .sin to .sed, .gperf to .c, and .y to .c.
10619
10620 2007-09-03  Jim Meyering  <jim@meyering.net>
10621
10622         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10623         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10624
10625 2007-09-02  Bruno Haible  <bruno@clisp.org>
10626
10627         Fix mis-recognition of 'mcs' on QNX 6.
10628         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10629         output contains the string "Mono".
10630         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10631         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10632
10633 2007-09-01  Bruno Haible  <bruno@clisp.org>
10634
10635         Fix collision between uniwidth/* and linebreak modules.
10636         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10637         u32_width): Remove declarations.
10638         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10639         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10640         streq3, streq2, streq1, streq0): Remove functions.
10641         (STREQ): Remove macro.
10642         (is_cjk_encoding): Remove function.
10643         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10644         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10645         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10646         * NEWS: Document the change.
10647
10648 2007-09-01  Bruno Haible  <bruno@clisp.org>
10649
10650         * lib/streq.h: Add double-inclusion guard.
10651
10652 2007-09-01  Karl Berry  <karl@gnu.org>
10653
10654         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10655
10656 2007-08-28  Jim Meyering  <jim@meyering.net>
10657
10658         Rename mreadlink_with_size to areadlink_with_size.
10659         * NEWS: Document the change.
10660         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10661         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10662         * lib/mreadlink.h: Rename this to...
10663         * lib/areadlink.h: ...this.
10664         * modules/mreadlink-with-size: Rename this to...
10665         * modules/areadlink-with-size: ...this.
10666         * lib/canonicalize.c: Reflect the renaming.
10667         * modules/canonicalize: Likewise.
10668
10669 2007-08-26  Bruno Haible  <bruno@clisp.org>
10670
10671         * gnulib-tool (func_import): When deciding which files to remove,
10672         consider also dangling symbolic links.
10673         Reported by Eric Blake.
10674
10675 2007-08-26  Bruno Haible  <bruno@clisp.org>
10676
10677         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10678
10679 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10680
10681         * lib/readline.c: Don't include getline.h, the prototype is now
10682         found in stdio.h.
10683
10684 2007-08-23  Jim Meyering  <jim@meyering.net>
10685
10686         Getdelim touchup.
10687         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10688         around the funlockfile call, since funlockfile never sets errno.
10689         Don't set errno upon failed realloc.
10690
10691 2007-08-22  Eric Blake  <ebb9@byu.net>
10692
10693         Getline touchups.
10694         * lib/getdelim.c (getdelim): Revert regression that required *n to
10695         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10696         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10697         getdelim, rather than whether implementation is missing.
10698         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10699         * lib/stdio_.h (getline): Also declare if replacement is
10700         required.
10701         * doc/functions/getdelim.texi: New file.
10702         * doc/functions/getline.texi: Likewise.
10703         * doc/gnulib.texi (Function Substitutes): Add new files.
10704         Reported by Bruno Haible.
10705
10706 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10707
10708         * users.txt: Add Guile.
10709
10710 2007-08-22  Eric Blake  <ebb9@byu.net>
10711
10712         * tests/test-getdelim.c (main): Use remove, not unlink.
10713         * tests/test-getline.c (main): Likewise.
10714
10715         Move getline and getdelim into stdio.h, per POSIX 200x.
10716         * modules/getline (Files): Remove getline.h.
10717         (Depends-on): Add stdio.
10718         (configure.ac): Add module indicator.
10719         * modules/getdelim (Files): Remove getdelim.h.
10720         (Depends-on): Add stdio.
10721         (configure.ac): Add module indicator.
10722         * modules/stdio (Makefile.am): Work with new indicators.
10723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10724         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10725         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10726         * lib/getdelim.h: Delete.
10727         * lib/getline.h: Delete.
10728         * lib/stdio_.h (getdelim, getline): Declare.
10729         * modules/getdelim-tests: New module.
10730         * modules/getline-tests: Likewise.
10731         * tests/test-getdelim.c: New file.
10732         * tests/test-getline.c: Likewise.
10733         * NEWS: Document the change.
10734         * lib/getline.c: Update choice of header.
10735         * lib/csharpcomp.c: Likewise.
10736         * lib/getpass.c: Likewise.
10737         * lib/javacomp.c: Likewise.
10738         * lib/javaversion.c: Likewise.
10739         * lib/yesno.c: Likewise.
10740         * lib/getdelim.c: Likewise.
10741         (getdelim): Set errno on failure, and avoid memory leak.
10742
10743 2007-08-19  Bruno Haible  <bruno@clisp.org>
10744
10745         * modules/closein (Depends-on): Add freadahead.
10746         * lib/closein.c: Include freadahead.h.
10747         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10748         is zero.
10749
10750 2007-08-19  Bruno Haible  <bruno@clisp.org>
10751
10752         * modules/freadahead-tests: New file.
10753         * tests/test-freadahead.sh: New file.
10754         * tests/test-freadahead.c: New file.
10755
10756         * modules/freadahead: New file.
10757         * lib/freadahead.h: New file.
10758         * lib/freadahead.c: New file.
10759         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10760         fbufmode, fpurge, freadable, fwritable.
10761
10762 2007-08-19  Eric Blake  <ebb9@byu.net>
10763
10764         Test yesno in combination with closein.
10765         * lib/yesno.c (yesno): Document use of stdin.
10766         * modules/yesno-tests (Files): New module.
10767         * tests/test-yesno.c (main): New file.
10768         * tests/test-yesno.sh: Likewise.
10769
10770 2007-08-19  Bruno Haible  <bruno@clisp.org>
10771
10772         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10773         * lib/fseeko.c (rpl_fseeko): Likewise.
10774         * lib/fseterr.c (fseterr): Likewise.
10775
10776 2007-08-19  Bruno Haible  <bruno@clisp.org>
10777
10778         * tests/test-lseek.c (main): Disable a test for BeOS.
10779         * doc/functions/lseek.texi: Document the BeOS bug.
10780
10781 2007-08-19  Bruno Haible  <bruno@clisp.org>
10782             Eric Blake  <ebb9@byu.net>
10783
10784         * lib/lseek.c: Include <sys/stat.h>.
10785         (rpl_lseek): Add workaround code also for Unix platforms.
10786         Needed for BeOS.
10787         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10788         * doc/functions/lseek.texi: Document BeOS definiency.
10789
10790 2007-08-18  Bruno Haible  <bruno@clisp.org>
10791
10792         * modules/fstrcmp-tests: New file.
10793         * tests/test-fstrcmp.c: New file.
10794
10795 2007-08-18  Bruno Haible  <bruno@clisp.org>
10796
10797         * modules/fstrcmp: New file, from GNU gettext with modifications.
10798         * lib/fstrcmp.h: New file, from GNU gettext.
10799         * lib/fstrcmp.c: New file, from GNU gettext.
10800         * MODULES.html.sh (String handling): Add fstrcmp.
10801
10802 2007-08-18  Bruno Haible  <bruno@clisp.org>
10803
10804         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10805         'bool'.
10806         (diag, compareseq): Remove const from the ctxt argument.
10807         (USE_HEURISTIC): Undefine at the end.
10808
10809 2007-08-18  Jim Meyering  <jim@meyering.net>
10810
10811         New file: lib/idcache.h
10812         * NEWS: Mention the addition.
10813         * modules/idcache (Files): Add lib/idcache.h
10814         * lib/idcache.c: Include "idcache.h".
10815         Don't include <sys/types.h>.
10816         Add a FIXME comment.
10817         Move file-scoped "static" declarations to the top.
10818         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10819
10820 2007-08-17  Bruno Haible  <bruno@clisp.org>
10821         and Paul Eggert  <eggert@cs.ucla.edu>
10822
10823         * MODULES.html.sh: Add diffseq.
10824         * modules/diffseq: New file.
10825         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10826         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10827
10828 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10829
10830         Import changes from coreutils for bootstrap script.
10831
10832         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10833
10834         * build-aux/bootstrap (slurp): Work even in environments where
10835         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10836         current code does not slurp files whose names start with ".", and
10837         this looks like it might be a troublesome area.
10838
10839         2007-07-11  Jim Meyering  <jim@meyering.net>
10840
10841         If there's a GPL vN copyright comment, require that N == 3.
10842
10843         2007-07-08  Jim Meyering  <jim@meyering.net>
10844
10845         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10846         * build-aux/bootstrap (mam_template): Move definition out of loop.
10847
10848         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10849
10850         * build-aux/bootstrap (symlink_to_dir): Rename function from
10851         symlink_to_gnulib.  Add a directory parameter.  Update all
10852         callers.
10853         (cp_mark_as_generated): Also check for -- and link to -- files in
10854         gl/.
10855
10856         2007-07-08  Jim Meyering  <jim@meyering.net>
10857
10858         Adapt to deeper hierarchy in gnulib.
10859         * build-aux/bootstrap (symlink_to_dir): If the destination
10860         directory doesn't exist, create it. This is required at least for
10861         "lib/uniwidth/cjk.h".
10862
10863         2007-05-15  Jim Meyering  <jim@meyering.net>
10864
10865         * build-aux/bootstrap: Now that generated Makefile.am files
10866         are no longer under version control, they must be created at
10867         bootstrap time.
10868
10869 2007-08-14  Ben Pfaff  <blp@gnu.org>
10870
10871         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10872
10873 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10874
10875         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10876         given the changes below.
10877         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10878         even on hosts that have padding bits beyond the supported 64.
10879
10880 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10881
10882         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10883         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10884         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10885         depends on it.
10886         (xstrtol_error): Remove.
10887         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10888         but with a different signature.
10889         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10890         * lib/xstrtol-error.c: Include exitfail.h.
10891         (xstrtol_fatal): New function, with a different signature from the
10892         old xstrtol_error, so that the caller need not worry about passing
10893         in an exit status, or about storage management of the option argument.
10894         (xstrtol_error): Now a static function.  Redo signature to
10895         implement xstrtol_fatal.  Output the correct number of hyphens in
10896         front of the option so that the caller need not worry about
10897         storage management.
10898         (N_): New macro.
10899         (_): Remove; not used now.
10900         * modules/xstrtol: Depend on getopt.
10901         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10902         of old STRTOL_FATAL_ERROR macro.
10903         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10904         of test program.
10905         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10906         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10907
10908 2007-08-08  Eric Blake  <ebb9@byu.net>
10909
10910         * lib/xstrtol-error.c: Add missing include.
10911
10912         Move xstrtol messages into gnulib domain, when --pobase is used.
10913         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10914         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10915         * modules/xstrtol (Files): Distribute new file.
10916         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10917         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10918         * tests/test-xstrtol.c: ...into new file.
10919         * tests/test-xstrtoul.c: Also test xstrtoul.
10920         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10921         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10922         * tests/test-xstrtol.sh: Drive the tests.
10923         * tests/test-xstrtoimax.sh: Likewise.
10924         * tests/test-xstrtoumax.sh: Likewise.
10925         * modules/xstrtol-tests: New module.
10926         * modules/xstrtoimax-tests: Likewise.
10927         * modules/xstrtoumax-tests: Likewise.
10928
10929 2007-08-08  Jim Meyering  <jim@meyering.net>
10930
10931         New function: mfile_name_concat.
10932         * lib/filenamecat.c (mfile_name_concat): New function, just like
10933         file_name_concat, but return NULL upon failure rather than exiting
10934         with a diagnostic.
10935         * lib/filenamecat.h: Declare it.
10936
10937 2007-08-07  Bruno Haible  <bruno@clisp.org>
10938
10939         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10940         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10941         warning from gcc.
10942         Reported by Eric Blake.
10943
10944 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10945
10946         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10947         * modules/crypto/arcfour (License): Likewise.
10948         * modules/crypto/des-tests (License): Likewise.
10949         * modules/crypto/gc-arctwo-tests (License): Likewise.
10950         * modules/crypto/gc-des-tests (License): Likewise.
10951         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10952         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10953         * modules/crypto/gc-md2-tests (License): Likewise.
10954         * modules/crypto/gc-md4-tests (License): Likewise.
10955         * modules/crypto/gc-md5-tests (License): Likewise.
10956         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10957         * modules/crypto/gc-rijndael-tests (License): Likewise.
10958         * modules/crypto/gc-sha1-tests (License): Likewise.
10959         * modules/crypto/gc-tests (License): Likewise.
10960         * modules/crypto/hmac-md5 (License): Likewise.
10961         * modules/crypto/hmac-sha1 (License): Likewise.
10962         * modules/crypto/md2-tests (License): Likewise.
10963         * modules/crypto/md4-tests (License): Likewise.
10964         * modules/crypto/md5 (License): Likewise.
10965         * modules/crypto/rijndael (License): Likewise.
10966         * modules/crypto/sha1 (License): Likewise.
10967         * modules/memxor (License): Likewise.
10968
10969 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10970         and Bruno Haible  <bruno@clisp.org>
10971
10972         * NEWS: Describe interface changes to human, xstrtol.
10973         * lib/human.h: Include <xstrtol.h>.
10974         (human_options): Return enum strtol_error, not int.  Remove
10975         bool arg; take int * instead.
10976         * lib/human.c: Don't include "gettext.h".
10977         (_): Remove; no longer used.
10978         Don't include <xstrtol.h>, since human.h does it.
10979         (human_options): Adjust to abovementioned interface changes.
10980         Do not report error to stderr; that's now the caller's
10981         responsibility.
10982         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10983         interface change.
10984         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10985         Str, Argument_type_string.  All uses changed.  Put " argument"
10986         in diagnostics to make them clearer.  Change wording of suffix
10987         message for clarity.
10988         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10989         Argument_type_string.
10990         (STRTOL_FATAL_WARN): Remove; no longer used.
10991         * modules/human (Depends-on): Remove gettext-h.
10992
10993 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10994
10995         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10996
10997 2007-07-31  Bruno Haible  <bruno@clisp.org>
10998
10999         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11000         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11001         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11002
11003 2007-07-31  Bruno Haible  <bruno@clisp.org>
11004
11005         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11006         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11007
11008 2007-07-30  Bruno Haible  <bruno@clisp.org>
11009
11010         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11011         * modules/c-ctype (License): Likewise.
11012         * modules/c-strcase (License): Likewise.
11013         * modules/check-version (License): Likewise.
11014         * modules/iconv (License): Likewise.
11015         * modules/iconv_open (License): Likewise.
11016         * modules/read-file (License): Likewise.
11017         * modules/striconv (License): Likewise.
11018         * modules/strverscmp (License): Likewise.
11019         * modules/vasprintf (License): Likewise.
11020         * modules/crypto/des (License): Likewise.
11021         * modules/crypto/gc (License): Likewise.
11022         * modules/crypto/gc-arcfour (License): Likewise.
11023         * modules/crypto/gc-arctwo (License): Likewise.
11024         * modules/crypto/gc-des (License): Likewise.
11025         * modules/crypto/gc-hmac-md5 (License): Likewise.
11026         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11027         * modules/crypto/gc-md2 (License): Likewise.
11028         * modules/crypto/gc-md4 (License): Likewise.
11029         * modules/crypto/gc-md5 (License): Likewise.
11030         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11031         * modules/crypto/gc-random (License): Likewise.
11032         * modules/crypto/gc-rijndael (License): Likewise.
11033         * modules/crypto/gc-sha1 (License): Likewise.
11034         * modules/crypto/md2 (License): Likewise.
11035         * modules/crypto/md4 (License): Likewise.
11036
11037 2007-07-30  Jim Meyering  <jim@meyering.net>
11038
11039         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
11040         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
11041         it has valid stat data.  This bug would cause du not to count the
11042         sizes of inaccessible directories.
11043         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
11044         in <http://bugzilla.redhat.com/250077>.
11045
11046 2007-07-25  Peter O'Gorman  <peter@pogma.com>
11047             Bruno Haible  <bruno@clisp.org>
11048
11049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
11050         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
11051         #include_next, gives a diagnostic about it, but reports no error in
11052         the exit code.
11053         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
11054
11055 2007-07-24  Ben Pfaff  <blp@gnu.org>
11056
11057         Improve name: "count-one-bits" is better than "popcount".
11058         * MODULES.html.sh: Update name.
11059         * lib/popcount.h: Renamed lib/count-one-bits.h.
11060         (popcount): Renamed count_one_bits.
11061         (popcountl): Renamed count_one_bits_l.
11062         (popcountll): Renamed count_one_bits_ll.
11063         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11064         * modules/popcount: Renamed module/count-one-bits.
11065         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11066         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11067
11068 2007-07-23  Ben Pfaff  <blp@gnu.org>
11069
11070         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11071         better code generation, and add U to large constants to avoid
11072         warnings, in non-GCC case.
11073         Suggested by Bruno Haible.
11074
11075 2007-07-23  Ben Pfaff  <blp@gnu.org>
11076
11077         * lib/popcount.h: Use verify_true instead of if...abort.
11078         * modules/popcount: Depend on verify module.
11079         Suggested by Jim Meyering.
11080
11081 2007-07-23  Bruno Haible  <bruno@clisp.org>
11082
11083         * gnulib-tool (func_import): Create a .cvsignore file also when the
11084         directory is not yet in CVS but the toplevel directory is. When
11085         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11086         Reported by Karl Berry.
11087
11088 2007-07-22  Ben Pfaff  <blp@gnu.org>
11089
11090         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11091         case.
11092         Suggested by Eric Blake.
11093
11094 2007-07-22  Ben Pfaff  <blp@gnu.org>
11095
11096         New module: popcount.
11097         * MODULES.html.sh: Add popcount.
11098         * modules/popcount: New file.
11099         * modules/popcount-tests: New file.
11100         * tests/test-popcount.c: New file.
11101         * lib/popcount.h: New file.
11102         * m4/popcount.m4: New file.
11103
11104 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11105
11106         * build-aux/announce-gen: Update to GPLv3.
11107
11108         * build-aux/config.guess: Update from config.
11109
11110 2007-07-21  Bruno Haible  <bruno@clisp.org>
11111
11112         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11113         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11114
11115 2007-07-20  Jim Meyering  <jim@meyering.net>
11116
11117         * check-module: Diagnose a self-dependency.
11118
11119 2007-07-19  Bruno Haible  <bruno@clisp.org>
11120
11121         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11122         empty.
11123         Reported by Eric Blake.
11124
11125 2007-07-18  Bruno Haible  <bruno@clisp.org>
11126
11127         * gnulib-tool: New options --po-base, --po-domain.
11128         (func_usage): Document them.
11129         (pobase, po_domain): New variables.
11130         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11131         DEFAULT_TEXT_DOMAIN.
11132         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11133         (func_import): Consider pobase and po_domain. Create a po/ directory.
11134         (func_create_testdir): Set pobase and po_domain to empty.
11135         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11136         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11137
11138 2007-07-18  Bruno Haible  <bruno@clisp.org>
11139
11140         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11141         EXTRA_DIST augmentation for files in build-aux/.
11142
11143 2007-07-16  Bruno Haible  <bruno@clisp.org>
11144
11145         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11146         * modules/getdelim (License): Likewise.
11147
11148 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11149
11150         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11151         * modules/d-type (License): Likewise.
11152         * modules/extensions (License): Likewise.
11153         * modules/fnmatch (License): Likewise.
11154         * modules/fseeko (License): Likewise.
11155         * modules/getaddrinfo (License): Likewise.
11156         * modules/getline (License): Likewise.
11157         * modules/getlogin_r (License): Likewise.
11158         * modules/getpass (License): Likewise.
11159         * modules/gettimeofday (License): Likewise.
11160         * modules/glob (License): Likewise.
11161         * modules/inet_ntop (License): Likewise.
11162         * modules/malloc (License): Likewise.
11163         * modules/malloca (License): Likewise.
11164         * modules/memmem (License): Likewise.
11165         * modules/mempcpy (License): Likewise.
11166         * modules/memset (License): Likewise.
11167         * modules/minmax (License): Likewise.
11168         * modules/mktime (License): Likewise.
11169         * modules/netinet_in (License): Likewise.
11170         * modules/pathmax (License): Likewise.
11171         * modules/poll (License): Likewise.
11172         * modules/regex (License): Likewise.
11173         * modules/snprintf (License): Likewise.
11174         * modules/stdbool (License): Likewise.
11175         * modules/stdint (License): Likewise.
11176         * modules/stdio (License): Likewise.
11177         * modules/strcase (License): Likewise.
11178         * modules/strcasestr (License): Likewise.
11179         * modules/strdup (License): Likewise.
11180         * modules/string (License): Likewise.
11181         * modules/strndup (License): Likewise.
11182         * modules/strnlen (License): Likewise.
11183         * modules/strpbrk (License): Likewise.
11184         * modules/strptime (License): Likewise.
11185         * modules/strsep (License): Likewise.
11186         * modules/sys_select (License): Likewise.
11187         * modules/sys_socket (License): Likewise.
11188         * modules/sys_stat (License): Likewise.
11189         * modules/sys_time (License): Likewise.
11190         * modules/time (License): Likewise.
11191         * modules/time_r (License): Likewise.
11192         * modules/timegm (License): Likewise.
11193         * modules/unistd (License): Likewise.
11194         * modules/vsnprintf (License): Likewise.
11195         * modules/wctype (License): Likewise.
11196
11197 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11198
11199         * modules/argz (License): LGPLv2+.
11200
11201 2007-07-15  Karl Berry  <karl@gnu.org>
11202
11203         * doc/gnulib.texi: revise node structure per new fdl.texi.
11204
11205 2007-07-14  Bruno Haible  <bruno@clisp.org>
11206
11207         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11208         the output file.
11209         * lib/uniname/uninames.h: Regenerated.
11210
11211 2007-07-14  Karl Berry  <karl@gnu.org>
11212
11213         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11214         omitting sectioning and index commands.
11215
11216 2007-07-13  Bruno Haible  <bruno@clisp.org>
11217
11218         New gnulib-tool option --more-symlinks.
11219         * gnulib-tool (func_usage): Document --more-symlinks.
11220         (do_copyrights): New variable.
11221         Recognize option --more-symlinks.
11222         (func_import): Don't add a copyright notice transform to
11223         sed_transform_lib_file if do_copyrights is empty.
11224
11225 2007-07-13  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/vasnprintf.c (decimal_point_char): Define also if
11228         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11229         && !NEED_PRINTF_DIRECTIVE_A.
11230         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11231         Gary V. Vaughan <gary@gnu.org>.
11232
11233 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11234
11235         * lib/inttypes_.h: Undo previous change, since it was fixed
11236         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11237
11238 2007-07-13  Bruno Haible  <bruno@clisp.org>
11239
11240         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11241         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11242
11243 2007-07-13  Jim Meyering  <jim@meyering.net>
11244
11245         df: Don't fail for Tru64's "file-on-file mount".
11246         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11247         so we fall through and use statfs instead.  Details here:
11248         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11249         Reported by Albert Chin.
11250
11251 2007-07-13  Bruno Haible  <bruno@clisp.org>
11252
11253         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11254         * modules/configmake (License): Likewise.
11255         * modules/gettext (License): Likewise.
11256         * modules/gettext-h (License): Likewise.
11257         * modules/include_next (License): Likewise.
11258         * modules/link-warning (License): Likewise.
11259         * modules/localcharset (License): Likewise.
11260         * modules/localename (License): Likewise.
11261         * modules/lock (License): Likewise.
11262         * modules/relocatable-lib-lgpl (License): Likewise.
11263         * modules/size_max (License): Likewise.
11264         * modules/vasnprintf (License): Likewise.
11265         * modules/wchar (License): Likewise.
11266         * modules/xsize (License): Likewise.
11267
11268 2007-07-13  Bruno Haible  <bruno@clisp.org>
11269
11270         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11271         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11272
11273 2007-07-12  Bruno Haible  <bruno@clisp.org>
11274
11275         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11276         in the modules files.
11277
11278 2007-07-11  Karl Berry  <karl@gnu.org>
11279
11280         * MODULES.html.sh (func_module): use
11281          sed -e '\|^'"${includefile}"'$|d'
11282          instead of /.../d, to avoid errors on $includefile's containing /.
11283
11284 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11285
11286         * gnulib-tool (func_import): Avoid duplication of --avoid
11287         statements
11288         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11289         names to `_' in variable names.
11290
11291 2007-07-10  Eric Blake  <ebb9@byu.net>
11292
11293         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11294         * NEWS: Document this change.
11295
11296 2007-07-08  Bruno Haible  <bruno@clisp.org>
11297
11298         Update to Unicode 5.0.
11299         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11300         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11301         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11302         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11303         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11304         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11305         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11306         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11307         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11308         U+10A3F, U+1D242..U+1D244.
11309         (nonspacing_table_ind): Update.
11310         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11311         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11312
11313 2007-07-08  Bruno Haible  <bruno@clisp.org>
11314
11315         Update to Unicode 5.0.
11316         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11317         code transform. Extend the name index field of unicode_name_to_code and
11318         unicode_code_to_name from 16 to 24 bits.
11319         * lib/uniname/uniname.c (unicode_character_name,
11320         unicode_name_character): Add the range 0x12xxx to the code transform.
11321         * lib/uniname/uninames.h: Regenerated.
11322         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11323
11324 2007-07-07  Bruno Haible  <bruno@clisp.org>
11325
11326         * modules/wcwidth-tests: New file.
11327         * tests/test-wcwidth.c: New file.
11328
11329         Work around MacOS X wcwidth() bug.
11330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11331         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11332         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11333         original wcwidth in non-UTF-8 locales.
11334         * modules/wcwidth (Depends-on): Add localcharset, streq,
11335         uniwidth/width.
11336         * doc/functions/wcwidth.texi: Update.
11337
11338 2007-07-07  Bruno Haible  <bruno@clisp.org>
11339
11340         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11341         (wcwidth): New declaration.
11342         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11343         macros.
11344         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11345         here. Prepare for creating <wchar.h> unconditionally.
11346         * modules/wchar (Depends-on): Add link-warning.
11347         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11348         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11349         * lib/wcwidth.h: Remove file.
11350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11351         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11352         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11353         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11354         (Include): Replace wcwidth.h with <wchar.h>.
11355         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11356         * lib/mbchar.h: Don't include wcwidth.h.
11357         * lib/mbswidth.c: Likewise.
11358         * NEWS: Mention the change.
11359
11360 2007-07-07  Bruno Haible  <bruno@clisp.org>
11361
11362         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11363         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11364         definition with an external declaration.
11365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11366         defined as a function. Remove AC_C_INLINE requirement.
11367         * modules/wcwidth (Files): Add lib/wcwidth.c.
11368         (Makefile.am): Remove redundant statement.
11369
11370 2007-07-07  Bruno Haible  <bruno@clisp.org>
11371
11372         * MODULES.html.sh (Unicode string functions): Add the new modules.
11373
11374         * tests/uniwidth/test-u32-strwidth.c: New file.
11375         * modules/uniwidth/u32-strwidth-tests: New file.
11376
11377         * lib/uniwidth/u32-strwidth.c: New file.
11378         * modules/uniwidth/u32-strwidth: New file.
11379
11380         * tests/uniwidth/test-u16-strwidth.c: New file.
11381         * modules/uniwidth/u16-strwidth-tests: New file.
11382
11383         * lib/uniwidth/u16-strwidth.c: New file.
11384         * modules/uniwidth/u16-strwidth: New file.
11385
11386         * tests/uniwidth/test-u8-strwidth.c: New file.
11387         * modules/uniwidth/u8-strwidth-tests: New file.
11388
11389         * lib/uniwidth/u8-strwidth.c: New file.
11390         * modules/uniwidth/u8-strwidth: New file.
11391
11392         * tests/uniwidth/test-u32-width.c: New file.
11393         * modules/uniwidth/u32-width-tests: New file.
11394
11395         * lib/uniwidth/u32-width.c: New file.
11396         * modules/uniwidth/u32-width: New file.
11397
11398         * tests/uniwidth/test-u16-width.c: New file.
11399         * modules/uniwidth/u16-width-tests: New file.
11400
11401         * lib/uniwidth/u16-width.c: New file.
11402         * modules/uniwidth/u16-width: New file.
11403
11404         * tests/uniwidth/test-u8-width.c: New file.
11405         * modules/uniwidth/u8-width-tests: New file.
11406
11407         * lib/uniwidth/u8-width.c: New file.
11408         * modules/uniwidth/u8-width: New file.
11409
11410         * tests/uniwidth/test-uc_width.c: New file.
11411         * modules/uniwidth/width-tests: New file.
11412
11413         * lib/uniwidth/width.c: New file, from GNU libiconv.
11414         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11415         * modules/uniwidth/width: New file.
11416
11417         * lib/uniwidth.h: New file, from GNU libiconv.
11418         * modules/uniwidth/base: New file.
11419
11420 2007-07-07  Bruno Haible  <bruno@clisp.org>
11421
11422         * lib/uniname.h: New file, from GNU gettext.
11423         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11424         * lib/uniname/uninames.h: New file, from GNU gettext.
11425         * lib/uniname/uniname.c: New file, from GNU gettext.
11426         * tests/uniname/test-uninames.sh: New file.
11427         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11428         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11429         * modules/uniname/base: New file.
11430         * modules/uniname/uniname: New file.
11431         * modules/uniname/uniname-tests: New file.
11432         * MODULES.html.sh (Unicode string functions): Add the new modules.
11433
11434 2007-07-06  Bruno Haible  <bruno@clisp.org>
11435
11436         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11437
11438 2007-07-06  Bruno Haible  <bruno@clisp.org>
11439
11440         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11441         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11442         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11443         include <sys/time.h>.
11444         Reported by Eric Blake.
11445
11446 2007-07-06  Eric Blake  <ebb9@byu.net>
11447
11448         Fix testing canonicalize on cygwin.
11449         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11450         Revert patch from 2007-06-19.
11451         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11452         canonicalize module is also in use.
11453         * tests/test-canonicalize.c: New file.
11454         * tests/test-canonicalize.sh: Likewise.
11455         * modules/canonicalize-tests: Likewise.
11456
11457 2007-07-06  Jim Meyering  <jim@meyering.net>
11458
11459         * lib/getugroups.c (getugroups): Detect getgrent failure.
11460         Adjust comment to reflect reality: this function may return -1.
11461
11462 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11463
11464         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11465         the new TP address.
11466         (usage): Fix typo
11467         (gnulib_mk): New variable.
11468
11469 2007-07-05  Jim Meyering  <jim@meyering.net>
11470
11471         Don't let endgrent clobber errno, no matter how improbable.
11472         * lib/getugroups.c (getugroups): Save and restore errno around
11473         endgrent call.
11474
11475         Close the group DB even when failing with 2^31 or more members.
11476         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11477
11478 2007-07-04  Jim Meyering  <jim@meyering.net>
11479
11480         * lib/getugroups.h: New file.
11481         * lib/getugroups.c: Include "getugroups.h".
11482         Remove uses of "register" keyword.
11483         Move local variable, "cp", down into scope where used.
11484         Give "username" parameter the "const" attribute.
11485         * modules/getugroups (Files): Add lib/getugroups.h
11486
11487 2007-07-04  Karl Berry  <karl@gnu.org>
11488
11489         * MODULES.html.sh (func_all_modules): Complete rename of
11490         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11491
11492 2007-07-02  Bruno Haible  <bruno@clisp.org>
11493
11494         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11495         mode, when inttypes.h comes from gnulib.
11496         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11497
11498 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11499
11500         * NEWS: Mention lgpl module name change.
11501
11502         * modules/lgpl-2.1: Renamed from lgpl.
11503
11504         * NEWS: Mention gpl module name change.
11505
11506         * modules/gpl-3.0: New file, based on gpl-2.0.
11507
11508         * modules/gpl-2.0: Renamed from gpl.
11509
11510         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11511         doc/gpl-2.0.texi.
11512
11513 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11514
11515         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11516         #define __STDC_LIMIT_MACROS temporarily while including
11517         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11518         Problem reported by Joel E. Denny in
11519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11520
11521 2007-07-01  Bruno Haible  <bruno@clisp.org>
11522
11523         * lib/unistdio.h: New file.
11524         * lib/unistdio/u-asnprintf.h: New file.
11525         * lib/unistdio/u-asprintf.h: New file.
11526         * lib/unistdio/u-printf-args.c: New file.
11527         * lib/unistdio/u-printf-args.h: New file.
11528         * lib/unistdio/u-printf-parse.h: New file.
11529         * lib/unistdio/u-snprintf.h: New file.
11530         * lib/unistdio/u-sprintf.h: New file.
11531         * lib/unistdio/u-vasprintf.h: New file.
11532         * lib/unistdio/u-vsnprintf.h: New file.
11533         * lib/unistdio/u-vsprintf.h: New file.
11534         * lib/unistdio/ulc-asnprintf.c: New file.
11535         * lib/unistdio/ulc-asprintf.c: New file.
11536         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11537         * lib/unistdio/ulc-printf-parse.c: New file.
11538         * lib/unistdio/ulc-snprintf.c: New file.
11539         * lib/unistdio/ulc-sprintf.c: New file.
11540         * lib/unistdio/ulc-vasnprintf.c: New file.
11541         * lib/unistdio/ulc-vasprintf.c: New file.
11542         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11543         * lib/unistdio/ulc-vsnprintf.c: New file.
11544         * lib/unistdio/ulc-vsprintf.c: New file.
11545         * lib/unistdio/u8-asnprintf.c: New file.
11546         * lib/unistdio/u8-asprintf.c: New file.
11547         * lib/unistdio/u8-printf-parse.c: New file.
11548         * lib/unistdio/u8-snprintf.c: New file.
11549         * lib/unistdio/u8-sprintf.c: New file.
11550         * lib/unistdio/u8-vasnprintf.c: New file.
11551         * lib/unistdio/u8-vasprintf.c: New file.
11552         * lib/unistdio/u8-vsnprintf.c: New file.
11553         * lib/unistdio/u8-vsprintf.c: New file.
11554         * lib/unistdio/u8-u8-asnprintf.c: New file.
11555         * lib/unistdio/u8-u8-asprintf.c: New file.
11556         * lib/unistdio/u8-u8-snprintf.c: New file.
11557         * lib/unistdio/u8-u8-sprintf.c: New file.
11558         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11559         * lib/unistdio/u8-u8-vasprintf.c: New file.
11560         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11561         * lib/unistdio/u8-u8-vsprintf.c: New file.
11562         * lib/unistdio/u16-asnprintf.c: New file.
11563         * lib/unistdio/u16-asprintf.c: New file.
11564         * lib/unistdio/u16-printf-parse.c: New file.
11565         * lib/unistdio/u16-snprintf.c: New file.
11566         * lib/unistdio/u16-sprintf.c: New file.
11567         * lib/unistdio/u16-vasnprintf.c: New file.
11568         * lib/unistdio/u16-vasprintf.c: New file.
11569         * lib/unistdio/u16-vsnprintf.c: New file.
11570         * lib/unistdio/u16-vsprintf.c: New file.
11571         * lib/unistdio/u16-u16-asnprintf.c: New file.
11572         * lib/unistdio/u16-u16-asprintf.c: New file.
11573         * lib/unistdio/u16-u16-snprintf.c: New file.
11574         * lib/unistdio/u16-u16-sprintf.c: New file.
11575         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11576         * lib/unistdio/u16-u16-vasprintf.c: New file.
11577         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11578         * lib/unistdio/u16-u16-vsprintf.c: New file.
11579         * lib/unistdio/u32-asnprintf.c: New file.
11580         * lib/unistdio/u32-asprintf.c: New file.
11581         * lib/unistdio/u32-printf-parse.c: New file.
11582         * lib/unistdio/u32-snprintf.c: New file.
11583         * lib/unistdio/u32-sprintf.c: New file.
11584         * lib/unistdio/u32-vasnprintf.c: New file.
11585         * lib/unistdio/u32-vasprintf.c: New file.
11586         * lib/unistdio/u32-vsnprintf.c: New file.
11587         * lib/unistdio/u32-vsprintf.c: New file.
11588         * lib/unistdio/u32-u32-asnprintf.c: New file.
11589         * lib/unistdio/u32-u32-asprintf.c: New file.
11590         * lib/unistdio/u32-u32-snprintf.c: New file.
11591         * lib/unistdio/u32-u32-sprintf.c: New file.
11592         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11593         * lib/unistdio/u32-u32-vasprintf.c: New file.
11594         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11595         * lib/unistdio/u32-u32-vsprintf.c: New file.
11596         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11597         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11598         * tests/unistdio/test-ulc-printf1.h: New file.
11599         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11600         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11601         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11602         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11603         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11604         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11605         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11606         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11607         * tests/unistdio/test-u8-asnprintf1.c: New file.
11608         * tests/unistdio/test-u8-asnprintf1.h: New file.
11609         * tests/unistdio/test-u8-printf1.h: New file.
11610         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11611         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11612         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11613         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11614         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11615         * tests/unistdio/test-u8-vasprintf1.c: New file.
11616         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11617         * tests/unistdio/test-u8-vsprintf1.c: New file.
11618         * tests/unistdio/test-u16-asnprintf1.c: New file.
11619         * tests/unistdio/test-u16-asnprintf1.h: New file.
11620         * tests/unistdio/test-u16-printf1.h: New file.
11621         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11622         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11623         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11624         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11625         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11626         * tests/unistdio/test-u16-vasprintf1.c: New file.
11627         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11628         * tests/unistdio/test-u16-vsprintf1.c: New file.
11629         * tests/unistdio/test-u32-asnprintf1.c: New file.
11630         * tests/unistdio/test-u32-asnprintf1.h: New file.
11631         * tests/unistdio/test-u32-printf1.h: New file.
11632         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11633         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11634         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11635         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11636         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11637         * tests/unistdio/test-u32-vasprintf1.c: New file.
11638         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11639         * tests/unistdio/test-u32-vsprintf1.c: New file.
11640         * modules/unistdio/base: New file.
11641         * modules/unistdio/u-printf-args: New file.
11642         * modules/unistdio/ulc-asnprintf: New file.
11643         * modules/unistdio/ulc-asprintf: New file.
11644         * modules/unistdio/ulc-fprintf: New file.
11645         * modules/unistdio/ulc-printf-parse: New file.
11646         * modules/unistdio/ulc-snprintf: New file.
11647         * modules/unistdio/ulc-sprintf: New file.
11648         * modules/unistdio/ulc-vasnprintf: New file.
11649         * modules/unistdio/ulc-vasprintf: New file.
11650         * modules/unistdio/ulc-vfprintf: New file.
11651         * modules/unistdio/ulc-vsnprintf: New file.
11652         * modules/unistdio/ulc-vsprintf: New file.
11653         * modules/unistdio/u8-asnprintf: New file.
11654         * modules/unistdio/u8-asprintf: New file.
11655         * modules/unistdio/u8-printf-parse: New file.
11656         * modules/unistdio/u8-snprintf: New file.
11657         * modules/unistdio/u8-sprintf: New file.
11658         * modules/unistdio/u8-vasnprintf: New file.
11659         * modules/unistdio/u8-vasprintf: New file.
11660         * modules/unistdio/u8-vsnprintf: New file.
11661         * modules/unistdio/u8-vsprintf: New file.
11662         * modules/unistdio/u8-u8-asnprintf: New file.
11663         * modules/unistdio/u8-u8-asprintf: New file.
11664         * modules/unistdio/u8-u8-snprintf: New file.
11665         * modules/unistdio/u8-u8-sprintf: New file.
11666         * modules/unistdio/u8-u8-vasnprintf: New file.
11667         * modules/unistdio/u8-u8-vasprintf: New file.
11668         * modules/unistdio/u8-u8-vsnprintf: New file.
11669         * modules/unistdio/u8-u8-vsprintf: New file.
11670         * modules/unistdio/u16-asnprintf: New file.
11671         * modules/unistdio/u16-asprintf: New file.
11672         * modules/unistdio/u16-printf-parse: New file.
11673         * modules/unistdio/u16-snprintf: New file.
11674         * modules/unistdio/u16-sprintf: New file.
11675         * modules/unistdio/u16-vasnprintf: New file.
11676         * modules/unistdio/u16-vasprintf: New file.
11677         * modules/unistdio/u16-vsnprintf: New file.
11678         * modules/unistdio/u16-vsprintf: New file.
11679         * modules/unistdio/u16-u16-asnprintf: New file.
11680         * modules/unistdio/u16-u16-asprintf: New file.
11681         * modules/unistdio/u16-u16-snprintf: New file.
11682         * modules/unistdio/u16-u16-sprintf: New file.
11683         * modules/unistdio/u16-u16-vasnprintf: New file.
11684         * modules/unistdio/u16-u16-vasprintf: New file.
11685         * modules/unistdio/u16-u16-vsnprintf: New file.
11686         * modules/unistdio/u16-u16-vsprintf: New file.
11687         * modules/unistdio/u32-asnprintf: New file.
11688         * modules/unistdio/u32-asprintf: New file.
11689         * modules/unistdio/u32-printf-parse: New file.
11690         * modules/unistdio/u32-snprintf: New file.
11691         * modules/unistdio/u32-sprintf: New file.
11692         * modules/unistdio/u32-vasnprintf: New file.
11693         * modules/unistdio/u32-vasprintf: New file.
11694         * modules/unistdio/u32-vsnprintf: New file.
11695         * modules/unistdio/u32-vsprintf: New file.
11696         * modules/unistdio/u32-u32-asnprintf: New file.
11697         * modules/unistdio/u32-u32-asprintf: New file.
11698         * modules/unistdio/u32-u32-snprintf: New file.
11699         * modules/unistdio/u32-u32-sprintf: New file.
11700         * modules/unistdio/u32-u32-vasnprintf: New file.
11701         * modules/unistdio/u32-u32-vasprintf: New file.
11702         * modules/unistdio/u32-u32-vsnprintf: New file.
11703         * modules/unistdio/u32-u32-vsprintf: New file.
11704         * modules/unistdio/ulc-asnprintf-tests: New file.
11705         * modules/unistdio/ulc-vasnprintf-tests: New file.
11706         * modules/unistdio/ulc-vasprintf-tests: New file.
11707         * modules/unistdio/ulc-vsnprintf-tests: New file.
11708         * modules/unistdio/ulc-vsprintf-tests: New file.
11709         * modules/unistdio/u8-asnprintf-tests: New file.
11710         * modules/unistdio/u8-vasnprintf-tests: New file.
11711         * modules/unistdio/u8-vasprintf-tests: New file.
11712         * modules/unistdio/u8-vsnprintf-tests: New file.
11713         * modules/unistdio/u8-vsprintf-tests: New file.
11714         * modules/unistdio/u16-asnprintf-tests: New file.
11715         * modules/unistdio/u16-vasnprintf-tests: New file.
11716         * modules/unistdio/u16-vasprintf-tests: New file.
11717         * modules/unistdio/u16-vsnprintf-tests: New file.
11718         * modules/unistdio/u16-vsprintf-tests: New file.
11719         * modules/unistdio/u32-asnprintf-tests: New file.
11720         * modules/unistdio/u32-vasnprintf-tests: New file.
11721         * modules/unistdio/u32-vasprintf-tests: New file.
11722         * modules/unistdio/u32-vsnprintf-tests: New file.
11723         * modules/unistdio/u32-vsprintf-tests: New file.
11724         * MODULES.html.sh (Unicode string functions): Add the new modules.
11725
11726 2007-07-01  Bruno Haible  <bruno@clisp.org>
11727
11728         * lib/sprintf.c (sprintf): Limit the available length estimation,
11729         to avoid address wraparound.
11730         * lib/vsprintf.c (vsprintf): Likewise.
11731         * modules/sprintf-posix (Dependencies): Add stdint.
11732         * modules/vsprintf-posix (Dependencies): Likewise.
11733
11734 2007-07-01  Bruno Haible  <bruno@clisp.org>
11735
11736         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11737         Windows PATH as well. Conservative double-quoting. Comments.
11738
11739 2007-07-01  Bruno Haible  <bruno@clisp.org>
11740             Eric Blake  <ebb9@byu.net>
11741             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11742
11743         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11744         empty components in $PATH, denoting '.'.
11745
11746 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11747
11748         * gnulib-tool: Fix indentation.
11749         (func_create_megatestdir): Likewise.
11750         Report by Bruno Haible.
11751
11752 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11753
11754         Sync from Automake.
11755         * build-aux/gnupload: Fix shell portability issues with for loops.
11756         Report by Karl Berry.
11757
11758 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11759
11760         * build-aux/maint.mk (POURL): Use translationproject.org.
11761
11762 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11763             Bruno Haible  <bruno@clisp.org>
11764
11765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11766         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11767         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11768         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11769         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11770
11771 2007-06-27  Bruno Haible  <bruno@clisp.org>
11772
11773         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11774         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11775
11776 2007-06-26  Karl Berry  <karl@gnu.org>
11777
11778         * MODULES.html.sh: remove xreadlink-with-size.
11779
11780 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11781
11782         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11783         method that I hope also handles the double-include problem noted
11784         by Bruno Haible in
11785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11786
11787 2007-06-23  Bruno Haible  <bruno@clisp.org>
11788
11789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11790         Don't let the 'mostlyclean' target fail if the last subdirectory could
11791         not be removed.
11792         Reported by Karl Berry.
11793
11794 2007-06-23  Bruno Haible  <bruno@clisp.org>
11795
11796         * gnulib-tool (echo): Add a speedier workaround for ksh.
11797         * tests/test-echo.sh: Likewise.
11798
11799 2007-06-23  Bruno Haible  <bruno@clisp.org>
11800
11801         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11802         * tests/test-echo.sh: Likewise.
11803
11804 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11805
11806         * gnulib-tool (IFS): Initialize early, so we don't set it to
11807         empty later.
11808         (self_abspathname): Rewrite algorithm to set it, reindent.
11809         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11810         (func_create_megatestdir): Merge some sed scripts.
11811
11812 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11813
11814         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11815         exposed by Sun Studio 11 cc on Solaris 8.
11816
11817 2007-06-22  Bruno Haible  <bruno@clisp.org>
11818
11819         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11820         backslashes.
11821         * tests/test-echo.sh: New file.
11822
11823 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11824
11825         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11826         simplify `sed_replace_build_aux' scripts, they are portable but
11827         echoing them with `echo' is not.
11828         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11829
11830 2007-06-21  Karl Berry  <karl@gnu.org>
11831
11832         * config/srclist.txt: guess we can't handle the licenses via
11833         srclist at the moment.
11834
11835 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11836
11837         * MODULES.html.sh: Add include_next.
11838         * modules/include_next: New file.
11839
11840 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11843         INCLUDE_NEXT.
11844         (gl_CHECK_NEXT_HEADERS): New macro.
11845         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11846         the obsolescent gl_ABSOLUTE_HEADER.
11847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11848         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11849         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11850         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11851         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11852         * m4/math_h.m4 (gl_MATH_H): Likewise.
11853         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11855         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11856         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11857         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11858         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11863         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11864         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11865         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11866         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11867         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11868         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11869         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11870         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11871         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11872         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11873         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11874         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11875         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11876         * lib/float_.h: Likewise.
11877         * lib/inttypes_.h: Likewise.
11878         * lib/math_.h: Likewise.
11879         * lib/search_.h: Likewise.
11880         * lib/signal_.h: Likewise.
11881         * lib/stdint_.h: Likewise.
11882         * lib/stdio_.h: Likewise.
11883         * lib/stdlib_.h: Likewise.
11884         * lib/string_.h: Likewise.
11885         * lib/sys_stat_.h: Likewise.
11886         * lib/sys_time_.h: Likewise.
11887         * lib/time_.h: Likewise.
11888         * lib/unistd_.h: Likewise.
11889         * lib/wchar_.h: Likewise.
11890         * lib/wctype_.h: Likewise.
11891         * lib/dirent_.h: Likewise.
11892         * lib/iconv_.h: Likewise.
11893         * lib/locale_.h: Likewise.
11894         * lib/netinet_in_.h: Likewise.
11895         * lib/sys_select_.h: Likewise.
11896         * lib/sys_socket_.h: Likewise.
11897         * lib/sysexits_.h: Likewise.
11898         * modules/fcntl (Depends-on): Depend on include_next, not
11899         absolute_header.
11900         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11901         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11902         * modules/fchdir: Likewise.
11903         * modules/float: Likewise.
11904         * modules/iconv_open: Likewise.
11905         * modules/inttypes: Likewise.
11906         * modules/locale: Likewise.
11907         * modules/math: Likewise.
11908         * modules/netinet_in: Likewise.
11909         * modules/search: Likewise.
11910         * modules/signal: Likewise.
11911         * modules/stdint: Likewise.
11912         * modules/stdio: Likewise.
11913         * modules/stdlib: Likewise.
11914         * modules/string: Likewise.
11915         * modules/sys_select: Likewise.
11916         * modules/sys_socket: Likewise.
11917         * modules/sys_stat: Likewise.
11918         * modules/sys_time: Likewise.
11919         * modules/sysexits: Likewise.
11920         * modules/time: Likewise.
11921         * modules/unistd: Likewise.
11922         * modules/wchar: Likewise.
11923         * modules/wctype: Likewise.
11924         * modules/sys_stat: Change maintainer to "all".
11925         * modules/unistd: Likewise.
11926
11927 2007-06-20  Karl Berry  <karl@gnu.org>
11928
11929         * config/srclist.txt: track www changes in license files.
11930
11931 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11932
11933         * build-aux/bootstrap: Remove stray dot.
11934         Make sure build_aux settings are honored when linking
11935         gnulib_extra_files.
11936
11937 2007-06-19  Eric Blake  <ebb9@byu.net>
11938
11939         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11940         Allow compilation on cygwin.
11941
11942 2007-06-19  Jim Meyering  <jim@meyering.net>
11943
11944         xreadlink-with-size: Remove module.  No longer used.
11945         Ex-callers now use xreadlink or mreadlink-with-size.
11946         * modules/xreadlink-with-size: Remove module.
11947         * lib/xreadlink-with-size.c: Remove file.
11948         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11949         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11950         just before the function definition *is* accurate.
11951
11952         Eliminate one way canonicalize_filename_mode could exit.
11953         * lib/canonicalize.c (canonicalize_filename_mode):
11954         Use mreadlink_with_size, not xreadlink_with_size.
11955
11956 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         Detect porting problems to FreeBSD/arm, which has time_t wider than
11959         long int.  Original problem reported for GNU diff by Xin Li in
11960         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11961         * modules/getdate (Depends-on): Add intprops, verify.
11962         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11963         is an integer type no wider than long int.
11964
11965 2007-06-18  Jim Meyering  <jim@meyering.net>
11966
11967         New module: mreadlink-with-size.
11968         * MODULES.html.sh: Add mreadlink-with-size.
11969         * modules/mreadlink-with-size: New module
11970         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11971         not xreadlink-with-size.
11972         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11973
11974 2007-06-16  Bruno Haible  <bruno@clisp.org>
11975
11976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11977         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11978         Reported by Gary V. Vaughan <gary@gnu.org>.
11979
11980 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         Revamp lchown so that it lives in unistd.h where it belongs.
11983         * lib/lchown.h: Remove.
11984         * lib/dirchownmod.c: Don't include lib/lchown.h.
11985         * lib/fchownat.c: Likewise.
11986         * lib/openat.c: Likewise.
11987         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11988         does not follow symlinks.
11989         (EOPNOTSUPP): Define if not defined.
11990         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11991         is defined to 0.
11992         (lchown): New decl.
11993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11994         Do not check for lchown decl.
11995         Set REPLACE_LCHOWN.
11996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11997         REPLACE_LCHOWN.
11998         * modules/chown: Make it clear it follows symlinks.
11999         * modules/lchown: Make it clear it doesn't follow symlinks.
12000         (Files): Remove lib/lchown.h
12001         (Depends-on): Add unistd.
12002         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12003         (Include): Include <unistd.h>, not "lchown.h".
12004         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12005         REPLACE_LCHOWN.
12006
12007 2007-06-15  Jim Meyering  <jim@meyering.net>
12008
12009         Change license (GPL to LGPL) of fsusage and dependents.
12010         * modules/fsusage (License): Change to LGPL.
12011         * modules/full-read (License): Likewise.
12012         * modules/full-write (License): Likewise.
12013         * modules/safe-read (License): Likewise.
12014         * modules/safe-write (License): Likewise.
12015
12016 2007-06-14  Ben Pfaff  <blp@gnu.org>
12017
12018         Missing part of allocsa -> malloca transition.
12019         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12020         gl_MALLOCA.
12021
12022 2007-06-12  Bruno Haible  <bruno@clisp.org>
12023
12024         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12025         to ia64, x86_64, i386.
12026         Reported by Eric Blake.
12027
12028 2007-06-12  Bruno Haible  <bruno@clisp.org>
12029
12030         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12031         cross-compiling to x86_64.
12032
12033 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
12036         glitch reported by Ralf Wildenhues in
12037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
12038
12039         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
12040         Vin Shelton.
12041
12042 2007-06-11  Bruno Haible  <bruno@clisp.org>
12043
12044         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
12045         replacement string.
12046         Reported by Eric Blake.
12047
12048 2007-06-10  Bruno Haible  <bruno@clisp.org>
12049
12050         Prepare vasnprintf code for use with Unicode strings.
12051         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
12052         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
12053         TYPE_U32_STRING.
12054         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
12055         a_u32_string variants.
12056         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12057         * lib/printf-args.c: Don't include config.h and the specification
12058         header if PRINTF_FETCHARGS is already defined.
12059         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12060         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12061         TYPE_U16_STRING, TYPE_U32_STRING.
12062         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12063         u16_directive, u16_directives, u32_directive, u32_directives): New
12064         types.
12065         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12066         New declarations.
12067         * lib/printf-parse.c: Don't include config.h and the specification
12068         header if PRINTF_PARSE is already defined. Eliminate the set of
12069         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12070         them now. Include c-ctype.h.
12071         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12072         directive and CHAR_T_ONLY_ASCII.
12073         * lib/vasnprintf.c: Don't include config.h and the specification header
12074         if VASNPRINTF is already defined.
12075         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12076         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12077         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12078         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12079         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12080         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12081         code accordingly.
12082         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12083         pad_ourselves also in this case, with the 'c' and 's' directives, and
12084         with a different notion of "width".
12085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12086
12087 2007-06-10  Bruno Haible  <bruno@clisp.org>
12088
12089         * modules/unistr/u32-mbsnlen: New file.
12090         * lib/unistr/u32-mbsnlen.c: New file.
12091
12092         * modules/unistr/u16-mbsnlen: New file.
12093         * lib/unistr/u16-mbsnlen.c: New file.
12094
12095         * modules/unistr/u8-mbsnlen: New file.
12096         * lib/unistr/u8-mbsnlen.c: New file.
12097
12098         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12099         declarations.
12100
12101 2007-06-10  Bruno Haible  <bruno@clisp.org>
12102
12103         * lib/string_.h (mbsnlen): New declaration.
12104         * lib/mbsnlen.c: New file.
12105         * m4/mbsnlen.m4: New file.
12106         * modules/mbsnlen: New file.
12107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12108         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12109         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12110
12111 2007-06-10  Bruno Haible  <bruno@clisp.org>
12112
12113         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12114
12115 2007-06-10  Bruno Haible  <bruno@clisp.org>
12116
12117         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12118         * lib/mbuiter.h: Likewise.
12119
12120 2007-06-10  Bruno Haible  <bruno@clisp.org>
12121
12122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12123         declaration.
12124
12125 2007-06-10  Karl Berry  <karl@gnu.org>
12126
12127         * config/srclist.txt: remove gettext entries, Bruno prefers
12128         to update individually.
12129
12130 2007-06-10  Bruno Haible  <bruno@clisp.org>
12131
12132         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12133         'maxlen'. Ensure only length + width bytes are allocated, not
12134         length + 1 + width.
12135
12136 2007-06-09  Bruno Haible  <bruno@clisp.org>
12137
12138         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12139         (CHAR_T): Remove macro.
12140         (VASNPRINTF): Update.
12141
12142 2007-06-09  Bruno Haible  <bruno@clisp.org>
12143
12144         * MODULES.html.sh (Unicode string functions): Add the new modules.
12145
12146         * modules/uniconv/u32-conv-to-enc: New file.
12147         * lib/uniconv/u32-conv-to-enc.c: New file.
12148         * modules/uniconv/u32-conv-to-enc-tests: New file.
12149         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12150
12151         * modules/uniconv/u16-conv-to-enc: New file.
12152         * lib/uniconv/u16-conv-to-enc.c: New file.
12153         * lib/uniconv/u-conv-to-enc.h: New file.
12154         * modules/uniconv/u16-conv-to-enc-tests: New file.
12155         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12156
12157         * modules/uniconv/u8-conv-to-enc: New file.
12158         * lib/uniconv/u8-conv-to-enc.c: New file.
12159         * modules/uniconv/u8-conv-to-enc-tests: New file.
12160         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12161
12162         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12163         u32_conv_to_encoding): New declarations.
12164
12165 2007-06-09  Bruno Haible  <bruno@clisp.org>
12166
12167         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12168
12169 2007-06-09  Bruno Haible  <bruno@clisp.org>
12170
12171         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12172         * modules/malloca: Renamed from modules/allocsa, updated.
12173         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12174         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12175         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12176         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12177         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12178         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12179         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12180         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12181         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12182         * modules/c-strcasestr (Depends-on): Update.
12183         * lib/c-strcasestr.c: Update.
12184         * modules/c-strstr (Depends-on): Update.
12185         * lib/c-strstr.c: Update.
12186         * modules/canonicalize-lgpl (Depends-on): Update.
12187         * lib/canonicalize-lgpl.c: Update.
12188         * modules/clean-temp (Depends-on): Update.
12189         * lib/clean-temp.c: Update.
12190         * modules/csharpcomp (Depends-on): Update.
12191         * lib/csharpcomp.c: Update.
12192         * modules/csharpexec (Depends-on): Update.
12193         * lib/csharpexec.c: Update.
12194         * modules/javacomp (Depends-on): Update.
12195         * lib/javacomp.c: Update.
12196         * modules/javaexec (Depends-on): Update.
12197         * lib/javaexec.c: Update.
12198         * modules/mbscasestr (Depends-on): Update.
12199         * lib/mbscasestr.c: Update.
12200         * modules/mbsstr (Depends-on): Update.
12201         * lib/mbsstr.c: Update.
12202         * modules/setenv (Depends-on): Update.
12203         * lib/setenv.c: Update.
12204         * modules/strcasestr (Depends-on): Update.
12205         * lib/strcasestr.c: Update.
12206         * modules/striconveha (Depends-on): Update.
12207         * lib/striconveha.c: Update.
12208         * modules/relocatable-prog-wrapper (Files): Update.
12209         * lib/relocwrapper.c: Update.
12210         * build-aux/install-reloc: Update.
12211         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12212
12213 2007-06-08  Bruno Haible  <bruno@clisp.org>
12214
12215         Port to uClibc.
12216         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12217         * lib/fpurge.c (fpurge): Likewise.
12218         * lib/freading.c (freading): Likewise.
12219         * lib/fseeko.c (rpl_fseeko): Likewise.
12220         * lib/fseterr.c (fseterr): Likewise.
12221         * lib/fwriting.c (fwriting): Likewise.
12222         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12223
12224 2007-06-08  Bruno Haible  <bruno@clisp.org>
12225
12226         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12227         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12228         * modules/gettext (Files): Add m4/intlmacosx.m4.
12229
12230 2007-06-07  Bruno Haible  <bruno@clisp.org>
12231
12232         * modules/localename-tests: New file.
12233         * tests/test-localename.c: New file.
12234
12235         New module 'localename'.
12236         * lib/localename.h: New file.
12237         * lib/localename.c: New file, from GNU gettext.
12238         * m4/localename.m4: New file.
12239         * modules/localename: New file.
12240
12241 2007-06-07  Bruno Haible  <bruno@clisp.org>
12242
12243         Work around the lack of <wchar.h> on some builds of uClibc.
12244         * doc/headers/wchar.texi: Update.
12245         * lib/wchar_.h: Include <wchar.h> only if it exists.
12246         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12247         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12248         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12249         doesn't exist.
12250         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12251         * modules/mbfile (Depends-on): Add wchar.
12252         * modules/mbiter (Depends-on): Likewise.
12253         * modules/mbuiter (Depends-on): Likewise.
12254         Reported by Simon Josefsson.
12255
12256 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12257
12258         Work around problem reported by Steven M. Schweda in
12259         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12260         Tru64 5.1B with the Compaq compiler environment installed declares
12261         an 'isblank' function but does not define it in the C library.
12262         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12263         * lib/regex_internal.h (isblank): Likewise.
12264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12266
12267 2007-06-05  Bruno Haible  <bruno@clisp.org>
12268
12269         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12270         ia64.
12271         * modules/printf-safe: New file.
12272         * modules/fprintf-posix (Depends-on): Add printf-safe.
12273         * modules/printf-posix (Depends-on): Likewise.
12274         * modules/snprintf-posix (Depends-on): Likewise.
12275         * modules/sprintf-posix (Depends-on): Likewise.
12276         * modules/vasnprintf-posix (Depends-on): Likewise.
12277         * modules/vasprintf-posix (Depends-on): Likewise.
12278         * modules/vfprintf-posix (Depends-on): Likewise.
12279         * modules/vprintf-posix (Depends-on): Likewise.
12280         * modules/vsnprintf-posix (Depends-on): Likewise.
12281         * modules/vsprintf-posix (Depends-on): Likewise.
12282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12283         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12284         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12285         "no" on i386, x86_64, ia64.
12286         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12287         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12288         on i386, x86_64, ia64.
12289         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12290         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12291         on i386, x86_64, ia64.
12292         * tests/test-vasnprintf-posix.c: Include float.h.
12293         (LDBL80_WORDS): New macro.
12294         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12295         on i386, x86_64, ia64.
12296         * tests/test-vasprintf-posix.c: Include float.h.
12297         (LDBL80_WORDS): New macro.
12298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12299         on i386, x86_64, ia64.
12300         * tests/test-snprintf-posix.c: Include float.h.
12301         * tests/test-sprintf-posix.c: Likewise.
12302         * tests/test-vsnprintf-posix.c: Likewise.
12303         * tests/test-vsprintf-posix.c: Likewise.
12304
12305 2007-06-05  Bruno Haible  <bruno@clisp.org>
12306
12307         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12308         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12309         non-IEEE numbers on i386, x86_64, ia64.
12310         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12311         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12312         * tests/test-isnanl.h: Include float.h.
12313         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12314
12315 2007-06-05  Bruno Haible  <bruno@clisp.org>
12316
12317         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12318         also the %a / %A. Handle the %a / %A code before this extra handling.
12319
12320 2007-06-05  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12323         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12324
12325 2007-06-05  Bruno Haible  <bruno@clisp.org>
12326
12327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12328         typo in variable name.
12329
12330 2007-06-05  Eric Blake  <ebb9@byu.net>
12331
12332         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12333         Reported by Simon Josefsson.
12334
12335 2007-06-04  Bruno Haible  <bruno@clisp.org>
12336
12337         Avoid test failures on some PowerPC platforms.
12338         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12339         Define differently for PowerPC.
12340         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12341         Reported by Gary V. Vaughan <gary@gnu.org>.
12342
12343 2007-06-02  Bruno Haible  <bruno@clisp.org>
12344
12345         Fix test-stdint failure on FreeBSD/ia64.
12346         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12347         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12348         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12349         * doc/headers/stdint.texi: Update.
12350
12351 2007-06-01  Bruno Haible  <bruno@clisp.org>
12352
12353         * tests/test-binary-io.c (main): Pass a third argument to open().
12354         Reported by Gary V. Vaughan <gary@gnu.org>.
12355
12356 2007-06-01  Bruno Haible  <bruno@clisp.org>
12357
12358         * doc/functions/frexpl.texi: Update for mingw.
12359
12360 2007-06-01  Bruno Haible  <bruno@clisp.org>
12361
12362         * tests/test-lseek.c (main): Disable test of errno for invalid third
12363         argument.
12364         * doc/functions/lseek.texi: Update.
12365         Reported by Gary V. Vaughan <gary@gnu.org>.
12366
12367 2007-05-28  Bruno Haible  <bruno@clisp.org>
12368
12369         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12370
12371 2007-05-31  Eric Blake  <ebb9@byu.net>
12372
12373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12374         cross compiling.
12375
12376 2007-05-30  Eric Blake  <ebb9@byu.net>
12377         and Bruno Haible  <bruno@clisp.org>
12378
12379         Work around mingw test failures exposed by m4-1.4.9b.
12380         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12381         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12382         moment.
12383
12384 2007-05-30  Bruno Haible  <bruno@clisp.org>
12385
12386         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12387         assuming that they are closed. Needed on HP-UX 11.
12388
12389 2007-05-29  Bruno Haible  <bruno@clisp.org>
12390
12391         Fix a problem with #include_next.
12392         * lib/dirent_.h: Split the double-inclusion guard.
12393         * lib/fcntl_.h: Likewise.
12394         * lib/float_.h: Likewise.
12395         * lib/iconv_.h: Likewise.
12396         * lib/inttypes_.h: Likewise.
12397         * lib/locale_.h: Likewise.
12398         * lib/math_.h: Likewise.
12399         * lib/netinet_in_.h: Likewise.
12400         * lib/search_.h: Likewise.
12401         * lib/signal_.h: Likewise.
12402         * lib/stdint_.h: Likewise.
12403         * lib/stdio_.h: Likewise.
12404         * lib/stdlib_.h: Likewise.
12405         * lib/string_.h: Likewise.
12406         * lib/sys_select_.h: Likewise.
12407         * lib/sys_socket_.h: Likewise.
12408         * lib/sys_stat_.h: Likewise.
12409         * lib/sys_time_.h: Likewise.
12410         * lib/sysexits_.h: Likewise.
12411         * lib/time_.h: Likewise.
12412         * lib/unistd_.h: Likewise.
12413         * lib/wchar_.h: Likewise.
12414         * lib/wctype_.h: Likewise.
12415
12416 2007-05-29  Bruno Haible  <bruno@clisp.org>
12417
12418         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12419         for the moment.
12420
12421 2007-05-29  Bruno Haible  <bruno@clisp.org>
12422
12423         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12424         invocation.
12425         Reported by Eric Blake.
12426
12427 2007-05-29  Bruno Haible  <bruno@clisp.org>
12428
12429         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12430         compiling case.
12431
12432 2007-05-29  Eric Blake  <ebb9@byu.net>
12433             Bruno Haible  <bruno@clisp.org>
12434
12435         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12436         cross compiles.
12437
12438 2007-05-28  Eric Blake  <ebb9@byu.net>
12439
12440         * modules/closein-tests (test_closein_LDADD): Support test on
12441         cygwin with libtool.
12442
12443 2007-05-28  Bruno Haible  <bruno@clisp.org>
12444
12445         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12446         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12447         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12448         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12449         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12450         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12451         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12454
12455 2007-05-28  Eric Blake  <ebb9@byu.net>
12456
12457         Unconditionally include <config.h> in unit tests.
12458         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12459         * tests/test-allocsa.c, tests/test-arcfour.c,
12460         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12461         tests/test-array_list.c, tests/test-array_oset.c,
12462         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12463         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12464         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12465         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12466         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12467         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12468         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12469         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12470         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12471         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12472         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12473         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12474         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12475         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12476         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12477         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12478         test-md5.c, test-memmem.c, test-printf-posix.c,
12479         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12480         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12481         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12482         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12483         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12484         test-vasnprintf-posix2.c, test-vasnprintf.c,
12485         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12486         test-vfprintf-posix.c, test-vprintf-posix.c,
12487         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12488         test-xvasprintf.c: Likewise.
12489
12490 2007-05-28  Bruno Haible  <bruno@clisp.org>
12491
12492         * gnulib-tool (func_import): Remember the --with-tests command-line
12493         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12494         Reported by Eric Blake.
12495
12496 2007-05-28  Bruno Haible  <bruno@clisp.org>
12497
12498         * modules/ftell-tests: New file.
12499         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12500         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12501
12502         * lib/ftell.c: New file.
12503         * modules/ftell: New file.
12504         * m4/ftell.m4: New file.
12505         * doc/functions/ftell.texi: Update.
12506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12507         REPLACE_FTELL.
12508         * lib/stdio_.h (rpl_ftell): New declaration.
12509         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12510         REPLACE_FTELL.
12511
12512 2007-05-28  Eric Blake  <ebb9@byu.net>
12513
12514         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12515
12516 2007-05-28  Bruno Haible  <bruno@clisp.org>
12517
12518         * modules/fseek-tests: New file.
12519         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12520         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12521
12522         * lib/fseek.c: New file.
12523         * modules/fseek: New file.
12524         * m4/fseek.m4: New file.
12525         * doc/functions/fseek.texi: Update.
12526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12527         REPLACE_FSEEK.
12528         * lib/stdio_.h (rpl_fseek): New declaration.
12529         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12530         REPLACE_FSEEK.
12531
12532 2007-05-28  Bruno Haible  <bruno@clisp.org>
12533
12534         * lib/stdio_.h (fflush): More comments.
12535
12536 2007-05-28  Bruno Haible  <bruno@clisp.org>
12537
12538         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12539         runtime test.
12540
12541 2007-05-28  Eric Blake  <ebb9@byu.net>
12542
12543         Improve lseek module.
12544         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12545         * lib/unistd_.h (lseek): Scale back link warning message.
12546         * tests/test-lseek.c: Beef up test.
12547         * tests/test-lseek.sh: Exercise more facets of lseek.
12548         Reported by Bruno Haible.
12549
12550 2007-05-28  Bruno Haible  <bruno@clisp.org>
12551
12552         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12553         to define.
12554
12555 2007-05-27  Bruno Haible  <bruno@clisp.org>
12556
12557         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12558
12559 2007-05-27  Bruno Haible  <bruno@clisp.org>
12560
12561         * modules/openmp: New file.
12562         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12563         Noah Misch.
12564
12565 2007-05-26  Bruno Haible  <bruno@clisp.org>
12566
12567         * modules/chdir-long (Depends-on): Add fchdir.
12568         * modules/chdir-safer (Depends-on): Likewise.
12569         * modules/fts (Depends-on): Likewise.
12570         * modules/fts-lgpl (Depends-on): Likewise.
12571         * modules/openat (Depends-on): Likewise.
12572         * modules/savewd (Depends-on): Likewise.
12573
12574 2007-05-24  Eric Blake  <ebb9@byu.net>
12575
12576         Fix lseek on mingw.
12577         * modules/lseek: New module.
12578         * m4/lseek.m4: New file.
12579         * lib/lseek.c: New file.
12580         * modules/lseek-tests: New file.
12581         * tests/test-lseek.c: New file.
12582         * tests/test-lseek.sh: New file.
12583         * MODULES.html.sh: Document lseek module.
12584         * modules/fflush (Depends-on): Add lseek, fseeko.
12585         * modules/fseeko (Depends-on): Likewise.
12586         * modules/ftello (Depends-on): Likewise.
12587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12588         broken.
12589         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12590         broken.
12591         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12592         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12593         * lib/ftello.c (rpl_ftello): Likewise.
12594         * tests/test-fseeko.c (main): Test this.
12595         * tests/test-fseeko.sh: Likewise.
12596         * tests/test-ftello.c (main): Likewise.
12597         * tests/test-ftello.sh: Likewise.
12598         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12599         implies replacing fseek.
12600         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12601         HAVE_FTELLO.
12602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12603         * modules/unistd (Makefile.am): Likewise.
12604         * lib/unistd_.h (lseek): Declare a replacement.
12605         * doc/functions/lseek.texi (lseek): Document this fix.
12606         * doc/functions/fseek.texi (fseek): Likewise.
12607         * doc/functions/ftell.texi (ftell): Likewise.
12608
12609 2007-05-24  Bruno Haible  <bruno@clisp.org>
12610
12611         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12612         in the printed representation of a NaN.
12613         * tests/test-vasprintf-posix.c (test_function): Likewise.
12614         * tests/test-snprintf-posix.h (test_function): Likewise.
12615         * tests/test-sprintf-posix.h (test_function): Likewise.
12616         Reported by Eric Blake.
12617
12618 2007-05-23  Eric Blake  <ebb9@byu.net>
12619
12620         Fix fseeko/ftello on cygwin 1.5.24.
12621         * doc/functions/fseeko.texi (fseeko): Document the fix.
12622         * doc/functions/ftello.texi (ftello): Document the fix.
12623         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12624         * doc/functions/stdout.text (stdout): New file.
12625         * doc/functions/stderr.text (stderr): New file.
12626         * doc/gnulib.texi (Function Substitutes): Use new files.
12627         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12628         prior to 1.7.0.
12629         * tests/test-ftello.c (main): Likewise for ftello.
12630         * tests/test-fseeko.sh: New file.
12631         * tests/test-ftello.sh: New file.
12632         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12633         with seekable stdin.
12634         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12635         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12636         (gl_REPLACE_FSEEKO): New macro.
12637         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12638         * modules/fseeko (Files): Distribute fseeko.c.
12639         * modules/ftello (Files): Distribute ftello.c.
12640         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12641         mode.
12642         * lib/ftello.c (rpl_ftello): New file.
12643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12644         fseeko, ftello.
12645         (gl_STDIN_LARGE_OFFSET): New macro.
12646         * modules/stdio (Makefile.am): Perform the replacement.
12647         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12648
12649 2007-05-23  Bruno Haible  <bruno@clisp.org>
12650
12651         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12652         GNULIB_POSIXCHECK is defined.
12653
12654 2007-05-21  Bruno Haible  <bruno@clisp.org>
12655
12656         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12657         Check also the output for NaN arguments. When cross-compiling, guess
12658         no on IRIX.
12659         * lib/vasnprintf.c: Update comments.
12660         * tests/test-vasnprintf-posix.c (strisnan): New function.
12661         (test_function): Use it.
12662         * tests/test-vasprintf-posix.c (strisnan): New function.
12663         (test_function): Use it.
12664         * tests/test-snprintf-posix.h (strisnan): New function.
12665         (test_function): Use it.
12666         * tests/test-sprintf-posix.h (strisnan): New function.
12667         (test_function): Use it.
12668         Reported by Eric Blake.
12669
12670 2007-05-20  Bruno Haible  <bruno@clisp.org>
12671
12672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12673         numbers that fails on BeOS.
12674         * doc/functions/frexpl.texi: Update.
12675
12676 2007-05-20  Jim Meyering  <jim@meyering.net>
12677
12678         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12679         forced upon us by glibc-2.6.
12680
12681 2007-05-20  Bruno Haible  <bruno@clisp.org>
12682
12683         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12684         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12685         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12686         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12687         NEED_PRINTF_INFINITE.
12688         (is_infinitel): New function.
12689         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12691         gl_PREREQ_VASNPRINTF_INFINITE.
12692         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12694         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12695         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12696         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12697         gl_PREREQ_VASNPRINTF_INFINITE.
12698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12705         * doc/functions/fprintf.texi: Update.
12706         * doc/functions/printf.texi: Update.
12707         * doc/functions/snprintf.texi: Update.
12708         * doc/functions/sprintf.texi: Update.
12709         * doc/functions/vfprintf.texi: Update.
12710         * doc/functions/vprintf.texi: Update.
12711         * doc/functions/vsnprintf.texi: Update.
12712         * doc/functions/vsprintf.texi: Update.
12713
12714 2007-05-20  Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12717         was not found in libc.
12718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12719
12720 2007-05-20  Bruno Haible  <bruno@clisp.org>
12721
12722         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12723         printed as "-nan" instead of "nan".
12724         * tests/test-vasprintf-posix.c (test_function): Likewise.
12725         * tests/test-snprintf-posix.h (test_function): Likewise.
12726         * tests/test-sprintf-posix.h (test_function): Likewise.
12727         Needed for HP-UX 11.
12728
12729 2007-05-20  Jim Meyering  <jim@meyering.net>
12730
12731         Fix buggy test for the fchownat-deref bug.
12732         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12733         symlink required for the run-test.  Without it, this test would
12734         always declare that fchownat doesn't work, and client code would
12735         unnecessarily use the replacement function with fixed libc.
12736         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12737         Reported by Greg Schafer.
12738
12739 2007-05-19  Bruno Haible  <bruno@clisp.org>
12740
12741         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12742         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12743         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12744         Needed for IRIX 6.5 and Solaris 2.5.1.
12745
12746 2007-05-19  Bruno Haible  <bruno@clisp.org>
12747
12748         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12749         (test_function): Skip tests involving -0.0 on platforms where
12750         -0.0 = 0.0.
12751         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12752         (test_function): Skip tests involving -0.0 on platforms where
12753         -0.0 = 0.0.
12754         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12755         (test_function): Skip tests involving -0.0 on platforms where
12756         -0.0 = 0.0.
12757         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12758         (test_function): Skip tests involving -0.0 on platforms where
12759         -0.0 = 0.0.
12760         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12761         tests.
12762         * tests/test-printf-posix.h (test_function): Likewise.
12763         * tests/test-printf-posix.output: Remove all -0.0 related results.
12764         Needed for IRIX 6.5.
12765
12766 2007-05-19  Bruno Haible  <bruno@clisp.org>
12767
12768         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12769         printed as "nan0x7fffffff" instead of "nan".
12770         * tests/test-vasprintf-posix.c (test_function): Likewise.
12771         * tests/test-snprintf-posix.h (test_function): Likewise.
12772         * tests/test-sprintf-posix.h (test_function): Likewise.
12773         * tests/test-fprintf-posix.h (NaN): Remove macro.
12774         (test_function): Remove all NaN related tests.
12775         * tests/test-printf-posix.h (NaN): Remove macro.
12776         (test_function): Remove all NaN related tests.
12777         * tests/test-printf-posix.output: Remove all NaN related results.
12778         Needed for IRIX 6.5.
12779
12780 2007-05-19  Bruno Haible  <bruno@clisp.org>
12781
12782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12784
12785 2007-05-19  Bruno Haible  <bruno@clisp.org>
12786
12787         * lib/float_.h: New file.
12788         * m4/float_h.m4: New file.
12789         * modules/float: New file.
12790         * modules/isnanl (Dependencies): Add float.
12791         * modules/isnanl-nolibm (Dependencies): Likewise.
12792         * modules/mathl (Dependencies): Likewise.
12793         * modules/printf-frexpl (Dependencies): Likewise.
12794         * modules/signbit (Dependencies): Likewise.
12795         * modules/vasnprintf (Dependencies): Likewise.
12796         * doc/headers/float.texi: Update.
12797
12798 2007-05-19  Jim Meyering  <jim@meyering.net>
12799
12800         * lib/utimens.c (gl_futimens): Rename from futimens,
12801         now that glibc-2.6 declares futimens.
12802         * lib/utimens.h: Likewise.
12803
12804 2007-05-19  Bruno Haible  <bruno@clisp.org>
12805
12806         Avoid test failures on mingw.
12807         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12808         * tests/test-printf-posix.sh: Likewise.
12809         * tests/test-vfprintf-posix.sh: Likewise.
12810         * tests/test-vprintf-posix.sh: Likewise.
12811
12812 2007-05-19  Bruno Haible  <bruno@clisp.org>
12813
12814         Fix *printf result for NaN, Inf, -0.0 on mingw.
12815         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12816         * lib/vasnprintf.c: Include math.h and isnan.h.
12817         (is_infinite_or_zero): New function.
12818         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12819         values in the %f, %F, %e, %E, %g, %G directives.
12820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12822         gl_PRINTF_INFINITE and test its result. Invoke
12823         gl_PREREQ_VASNPRINTF_INFINITE.
12824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12831         * doc/functions/fprintf.texi: Update.
12832         * doc/functions/printf.texi: Update.
12833         * doc/functions/snprintf.texi: Update.
12834         * doc/functions/sprintf.texi: Update.
12835         * doc/functions/vfprintf.texi: Update.
12836         * doc/functions/vprintf.texi: Update.
12837         * doc/functions/vsnprintf.texi: Update.
12838         * doc/functions/vsprintf.texi: Update.
12839
12840 2007-05-19  Bruno Haible  <bruno@clisp.org>
12841
12842         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12843         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12844         Instead of multiplying with 10^k, set extra_zeroes to k.
12845         (scale10_round_long_double): Remove function.
12846
12847 2007-05-18  Bruno Haible  <bruno@clisp.org>
12848
12849         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12850         introduced on 2007-05-06.
12851
12852 2007-05-18  Bruno Haible  <bruno@clisp.org>
12853
12854         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12855         %g directives.
12856         * tests/test-vasprintf-posix.c (test_function): Likewise.
12857         * tests/test-snprintf-posix.h (test_function): Likewise.
12858         * tests/test-sprintf-posix.h (test_function): Likewise.
12859
12860 2007-05-18  Bruno Haible  <bruno@clisp.org>
12861
12862         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12863         (strmatch): New function.
12864         (test_function): Test the %f directive on numbers of various exponents.
12865         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12866         (strmatch): New function.
12867         (test_function): Test the %f directive on numbers of various exponents.
12868         * tests/test-snprintf-posix.h (strmatch): New function.
12869         (test_function): Test the %f directive on numbers of various exponents.
12870         * tests/test-sprintf-posix.h (strmatch): New function.
12871         (test_function): Test the %f directive on numbers of various exponents.
12872         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12873         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12874         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12875         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12876
12877 2007-05-18  Bruno Haible  <bruno@clisp.org>
12878
12879         Add support for 'long double' number output.
12880         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12881         * lib/vasnprintf.c: Include math.h and float+.h.
12882         (mp_limb_t): New type.
12883         (GMP_LIMB_BITS): New macro.
12884         (mp_twolimb_t): New type.
12885         (GMP_TWOLIMB_BITS): New macro.
12886         (mpn_t): New type.
12887         (multiply, divide, convert_to_decimal, decode_long_double,
12888         scale10_round_long_double, scale10_round_decimal_long_double,
12889         floorlog10l): New functions.
12890         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12891         for the %f, %F, %e, %E, %g, %G directives.
12892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12894         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12895         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12903         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12904         * modules/snprintf-posix (Depends-on): Likewise.
12905         * modules/sprintf-posix (Depends-on): Likewise.
12906         * modules/vasnprintf-posix (Depends-on): Likewise.
12907         * modules/vasprintf-posix (Depends-on): Likewise.
12908         * modules/vfprintf-posix (Depends-on): Likewise.
12909         * modules/vsnprintf-posix (Depends-on): Likewise.
12910         * modules/vsprintf-posix (Depends-on): Likewise.
12911         * modules/vasnprintf (Files): Add lib/float+.h.
12912         * doc/functions/fprintf.texi: Update.
12913         * doc/functions/printf.texi: Update.
12914         * doc/functions/snprintf.texi: Update.
12915         * doc/functions/sprintf.texi: Update.
12916         * doc/functions/vfprintf.texi: Update.
12917         * doc/functions/vprintf.texi: Update.
12918         * doc/functions/vsnprintf.texi: Update.
12919         * doc/functions/vsprintf.texi: Update.
12920
12921 2007-05-18  Bruno Haible  <bruno@clisp.org>
12922
12923         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12924
12925 2007-05-18  Bruno Haible  <bruno@clisp.org>
12926
12927         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12928         for printing 64-bit integers. Needed for mingw.
12929
12930 2007-05-18  Bruno Haible  <bruno@clisp.org>
12931
12932         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12933         gl_FUNC_FREXPL_WORKS.
12934         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12935
12936 2007-05-18  Bruno Haible  <bruno@clisp.org>
12937
12938         * modules/frexpl-nolibm-tests: New file.
12939
12940         * modules/frexpl-nolibm: New file.
12941         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12942
12943 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12944
12945         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12946         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12947         GCC 4.2, which otherwise issues a lot of warnings.
12948         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12949         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12950         Likewise.
12951         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12952         * modules/iconv_open (iconv.h): Likewise.
12953         * modules/locale (locale.h): Likewise.
12954         * modules/netinet_in (netinet/in.h): Likewise.
12955         * modules/sys_select (sys_select.h): Likewise.
12956         * modules/sys_socket (sys/socket.h): Likewise.
12957         * modules/sys_stat (sys/stat.h): Likewise.
12958         * modules/sysexits (sysexits.h): Likewise.
12959         * modules/unistd (unistd.h): Likewise.
12960
12961 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12962
12963         * modules/closein-tests (Makefile.am): Distribute
12964         `test-closein.sh'.
12965
12966 2007-05-17  Bruno Haible  <bruno@clisp.org>
12967
12968         * tests/test-printf-posix.output: Renamed from
12969         tests/test-fprintf-posix.out.
12970         * modules/fprintf-posix-tests: Update.
12971         * modules/printf-posix-tests: Update.
12972         * modules/vfprintf-posix-tests: Update.
12973         * modules/vprintf-posix-tests: Update.
12974         * tests/test-fprintf-posix.sh: Update.
12975         * tests/test-printf-posix.sh: Update.
12976         * tests/test-vfprintf-posix.sh: Update.
12977         * tests/test-vprintf-posix.sh: Update.
12978         Reported by Ralf Wildenhues.
12979
12980 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12981
12982         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12983         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12984         GCC 4.2, which otherwise issues a lot of warnings.
12985         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12986         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12987         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12988         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12989         it should no longer be needed.
12990         * lib/string_.h: Likewise.
12991         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12992         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12993         * modules/inttypes (inttypes.h): Likewise.
12994         * modules/math (math.h): Likewise.
12995         * modules/search (search.h): Likewise.
12996         * modules/signal (signal.h): Likewise.
12997         * modules/stdint (stdint.h): Likewise.
12998         * modules/stdio (stdio.h): Likewise.
12999         * modules/stdlib (stdlib.h): Likewise.
13000         * modules/string (string.h): Likewise.
13001         * modules/sys_time (sys/time.h): Likewise.
13002         * modules/time (time.h): Likewise.
13003         * modules/wchar (wchar.h): Likewise.
13004         * modules/wctype (wtype.h): Likewise.
13005
13006 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13007
13008         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13009
13010 2007-05-13  Bruno Haible  <bruno@clisp.org>
13011
13012         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13013         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13014         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13015         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13016         (gl_PREREQ_STRTOK_R): Don't require it here.
13017
13018 2007-05-13  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13021         when used in C++ mode.
13022
13023 2007-05-12  Bruno Haible  <bruno@clisp.org>
13024
13025         * lib/linebuffer.h: Tweak doc.
13026         * lib/linebuffer.c: Likewise.
13027
13028 2007-05-12  James Youngman  <jay@gnu.org>
13029
13030         * lib/linebuffer.c (readlinebuffer_delim): New function,
13031         like readlinebuffer, but use a caller-specified delimiter.
13032         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13033         as the delimiter.
13034         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13035
13036 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13037
13038         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
13039         * modules/openat (Files): Remove openat-die.c.
13040         (Depends-on): Add openat-die.
13041         * modules/openat-die: New module.
13042
13043 2007-05-06  Bruno Haible  <bruno@clisp.org>
13044
13045         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
13046         Update with info about Cygwin.
13047         * doc/functions/fprintf.texi: Update.
13048         * doc/functions/printf.texi: Update.
13049         * doc/functions/snprintf.texi: Update.
13050         * doc/functions/sprintf.texi: Update.
13051         * doc/functions/vfprintf.texi: Update.
13052         * doc/functions/vprintf.texi: Update.
13053         * doc/functions/vsnprintf.texi: Update.
13054         * doc/functions/vsprintf.texi: Update.
13055         Reported by Eric Blake.
13056
13057 2007-05-06  Bruno Haible  <bruno@clisp.org>
13058
13059         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13060         padding ourselves for the floating-point directives.
13061         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13064         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13065         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13073         * tests/test-snprintf-posix.h (test_function): Also check the width
13074         and some flags in the %f directive.
13075         * tests/test-sprintf-posix.h (test_function): Likewise.
13076         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13077         * tests/test-vasprintf-posix.c (test_function): Likewise.
13078         * doc/functions/fprintf.texi: Update.
13079         * doc/functions/printf.texi: Update.
13080         * doc/functions/snprintf.texi: Update.
13081         * doc/functions/sprintf.texi: Update.
13082         * doc/functions/vfprintf.texi: Update.
13083         * doc/functions/vprintf.texi: Update.
13084         * doc/functions/vsnprintf.texi: Update.
13085         * doc/functions/vsprintf.texi: Update.
13086
13087 2007-05-06  Bruno Haible  <bruno@clisp.org>
13088
13089         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13090         pass the ' flag character to sprintf or snprintf.
13091         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13094         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13095         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13103         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13104         flag.
13105         * tests/test-sprintf-posix.h (test_function): Likewise.
13106         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13107         * tests/test-vasprintf-posix.c (test_function): Likewise.
13108         * doc/functions/fprintf.texi: Update.
13109         * doc/functions/printf.texi: Update.
13110         * doc/functions/snprintf.texi: Update.
13111         * doc/functions/sprintf.texi: Update.
13112         * doc/functions/vfprintf.texi: Update.
13113         * doc/functions/vprintf.texi: Update.
13114         * doc/functions/vsnprintf.texi: Update.
13115         * doc/functions/vsprintf.texi: Update.
13116
13117 2007-05-01  Bruno Haible  <bruno@clisp.org>
13118
13119         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13120
13121 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13122
13123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13124         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13125
13126 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13127
13128         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13129         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13131
13132 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13133
13134         * lib/argp-help.c (struct hol_entry): New member `ord'.
13135         (HOL_ENTRY_PTRCMP): Use ord for comparison
13136         (hol_sort): Initialize ord.
13137
13138 2007-05-01  Bruno Haible  <bruno@clisp.org>
13139
13140         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13141         Reported by Eric Blake.
13142         * doc/gnulib.texi (Function Substitutes): Update.
13143
13144 2007-05-01  Bruno Haible  <bruno@clisp.org>
13145
13146         * doc/functions.texi: Remove file, now redundant through
13147         doc/functions/*.texi.
13148
13149 2007-05-01  Bruno Haible  <bruno@clisp.org>
13150
13151         * modules/argp (Depends-on): Add sleep.
13152
13153 2007-05-01  Bruno Haible  <bruno@clisp.org>
13154
13155         * modules/sleep-tests: New file.
13156         * tests/test-sleep.c: New file.
13157
13158         * modules/sleep: New file.
13159         * lib/sleep.c: New file.
13160         * m4/sleep.m4: New file.
13161         * lib/unistd_.h (sleep): New declaration.
13162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13163         HAVE_SLEEP.
13164         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13165         * doc/functions/sleep.texi: Document the sleep module.
13166
13167 2007-05-01  Bruno Haible  <bruno@clisp.org>
13168
13169         * lib/sigprocmask.h: Remove file.
13170         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13171         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13172         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13173         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13174         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13175         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13176         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13177         HAVE_SIGSET_T as a shell variable.
13178         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13179         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13180         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13181         (Depends-on): Add signal. Remove verify.
13182         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13183         (Include): Mention <signal.h> instead of sigprocmask.h.
13184         * NEWS: Mention the change.
13185         * lib/fatal-signal.c: Don't include sigprocmask.h.
13186
13187 2007-05-01  Bruno Haible  <bruno@clisp.org>
13188
13189         * modules/signal: New file.
13190         * lib/signal_.h: New file.
13191         * m4/signal_h.m4: New file.
13192
13193 2007-05-01  Bruno Haible  <bruno@clisp.org>
13194
13195         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13196         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13197         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13198         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13199
13200 2007-05-01  Bruno Haible  <bruno@clisp.org>
13201
13202         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13203         configure time.
13204         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13205         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13206         * modules/sys_stat (Makefile.am): Substitute their values into
13207         sys/stat.h.
13208
13209 2007-05-01  Bruno Haible  <bruno@clisp.org>
13210
13211         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13212         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13213         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13214
13215 2007-05-01  Bruno Haible  <bruno@clisp.org>
13216
13217         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13218         'assert' module here.
13219
13220 2007-05-01  Bruno Haible  <bruno@clisp.org>
13221
13222         * doc/functions/*.texi: New files.
13223         * doc/functions/google-ranking.txt: New file.
13224         * doc/gnulib.texi (Function Substitutes): New chapter.
13225         (ctime, inet_ntoa): Remove sections.
13226         * doc/ctime.texi: Remove file.
13227         * doc/inet_ntoa.texi: Remove file.
13228         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13229         dependencies.
13230         (%.info): New rule, specifying a --reference-limit.
13231
13232 2007-05-01  Bruno Haible  <bruno@clisp.org>
13233
13234         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13235
13236 2007-05-01  Bruno Haible  <bruno@clisp.org>
13237
13238         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13239         the portability of 'mkdir' to mingw systems.
13240
13241 2007-05-01  Bruno Haible  <bruno@clisp.org>
13242
13243         * doc/headers/google-ranking.txt: New file.
13244
13245 2007-04-30  Eric Blake  <ebb9@byu.net>
13246
13247         Prefer fseeko to fseek.
13248         * modules/getpass (Depends-on): Add fseeko.
13249         * lib/getpass.c (getpass): Use fseeko, not fseek.
13250
13251 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13252
13253         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13254         assumes the sorting is stable, while most qsort implementations
13255         are not.  Use argument addresses to ensure they never compare as
13256         equal.
13257
13258         * tests/test-argp-2.sh (usage-indent test): Fix output
13259         (func_compare): Restore diff options
13260         * tests/test-argp.c: Restore #include "progname.h"
13261
13262 2007-04-29  Bruno Haible  <bruno@clisp.org>
13263
13264         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13266         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13268         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13269         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13270         (TESTS, check_PROGRAMS): Add test-snprintf.
13271         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13272         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13273         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13274         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13275         assertions that fail on HP-UX, OSF/1, or IRIX.
13276         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13277
13278 2007-04-29  Bruno Haible  <bruno@clisp.org>
13279
13280         * MODULES.html.sh (posix_functions): Remove 'contents'.
13281
13282 2007-04-29  Karl Berry  <karl@gnu.org>
13283
13284         * config/srclist.txt (gendocs_template_min): new entry.
13285
13286 2007-04-29  Bruno Haible  <bruno@clisp.org>
13287
13288         Work around fpurge bug on BSD systems.
13289         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13290         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13291         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13292         fpurge to rpl_fpurge if the system already has this function.
13293         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13294         the case where the system already has this function. Correct invariants
13295         on BSD systems.
13296         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13297         BSD systems.
13298
13299 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13300
13301         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13302         proposed by Sven Verdoolaege.
13303
13304         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13305         options.
13306         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13307         (usage and help tests): Update
13308
13309 2007-04-29  Bruno Haible  <bruno@clisp.org>
13310
13311         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13312         Print more information in case of failure. Disable a test on BeOS.
13313
13314 2007-04-29  Bruno Haible  <bruno@clisp.org>
13315
13316         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13317         This helps debugging on systems on which no gdb is available.
13318
13319 2007-04-29  Bruno Haible  <bruno@clisp.org>
13320
13321         * lib/freading.h: Improve comments.
13322         * lib/fwriting.h: Likewise.
13323         * tests/test-freading.c (main): Don't check freading immediately after
13324         repositioning. Needed for glibc.
13325
13326 2007-04-29  Bruno Haible  <bruno@clisp.org>
13327
13328         * lib/freading.c (freading): Trivial simplification.
13329
13330 2007-04-28  Bruno Haible  <bruno@clisp.org>
13331
13332         * tests/test-fwriting.c (main): Also test the interaction between
13333         fflush and fwriting.
13334         * modules/fwriting-tests (Depends-on): Add fflush.
13335
13336         * tests/test-freading.c (main): Also test the interaction between
13337         fflush and freading.
13338         * modules/freading-tests (Depends-on): Add fflush.
13339
13340 2007-04-28  Bruno Haible  <bruno@clisp.org>
13341
13342         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13343         fseeko and ftello.
13344         Suggested by Eric Blake.
13345
13346 2007-04-28  Jim Meyering  <jim@meyering.net>
13347
13348         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13349         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13350         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13351
13352 2007-04-27  Eric Blake  <ebb9@byu.net>
13353
13354         * doc/headers/assert.texi (assert.h): Document assert module use.
13355
13356 2007-04-27  Bruno Haible  <bruno@clisp.org>
13357
13358         * doc/headers/*.texi: New files.
13359         * doc/gnulib.texi (Header File Substitutes): New chapter.
13360         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13361         dependencies.
13362         (standards.info ,standards.html, standards.dvi): Update dependencies.
13363         (mostlyclean, clean): New targets.
13364
13365 2007-04-27  Bruno Haible  <bruno@clisp.org>
13366
13367         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13368         * modules/sysexits (Files, Makefile.am): Update.
13369
13370         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13371         * modules/sys_socket (Files, Makefile.am): Update.
13372
13373         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13374         * modules/sys_stat (Files, Makefile.am): Update.
13375
13376 2007-04-27  Eric Blake  <ebb9@byu.net>
13377
13378         * lib/freading.h: Improve comments.
13379         * lib/fwriting.h: Likewise.
13380         * lib/fflush.c: Likewise.
13381
13382         Fix closein for mingw.
13383         * modules/closein-tests: Add tests for closein.
13384         * tests/test-closein.c: New file.
13385         * tests/test-closein.sh: Likewise.
13386         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13387         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13388
13389 2007-04-27  Bruno Haible  <bruno@clisp.org>
13390
13391         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13392         version is < 6.
13393         * lib/math_.h [__DECC]: Likewise.
13394         * lib/stdio_.h [__DECC]: Likewise.
13395         * lib/stdlib_.h [__DECC]: Likewise.
13396         * lib/string_.h [__DECC]: Likewise.
13397         * lib/time_.h [__DECC]: Likewise.
13398         * lib/wchar_.h [__DECC]: Likewise.
13399         * lib/wctype_.h [__DECC]: Likewise.
13400
13401 2007-04-27  Bruno Haible  <bruno@clisp.org>
13402
13403         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13404
13405 2007-04-27  Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/fflush.c: Add comments.
13408         * modules/fpurge-tests (Depends-on): Add fflush.
13409         * modules/freadable-tests (Depends-on): Likewise.
13410         * modules/fwritable-tests (Depends-on): Likewise.
13411
13412 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13413
13414         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13415         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13416         Report by Bruno Haible <bruno@clisp.org>.
13417
13418 2007-04-26  Eric Blake  <ebb9@byu.net>
13419
13420         Fix fflush on mingw.
13421         * modules/fflush (Depends-on): Add freading.
13422         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13423         but unread data.
13424
13425 2007-04-26  Eric Blake  <ebb9@byu.net>
13426         and Bruno Haible  <bruno@clisp.org>
13427
13428         Implement freading and fwriting.
13429         * lib/freading.c: New file.
13430         * lib/freading.h: Likewise.
13431         * m4/freading.m4: Likewise.
13432         * modules/freading: Likewise.
13433         * modules/freading-tests: Likewise.
13434         * tests/test-freading.c: Likewise.
13435         * lib/fwriting.c: New file.
13436         * lib/fwriting.h: Likewise.
13437         * m4/fwriting.m4: Likewise.
13438         * modules/fwriting: Likewise.
13439         * modules/fwriting-tests: Likewise.
13440         * tests/test-fwriting.c: Likewise.
13441         * MODULES.html.sh (File stream based Input/Output): Mention them.
13442
13443 2007-04-26  Bruno Haible  <bruno@clisp.org>
13444
13445         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13446         'long' when we assume it.
13447         Suggested by Eric Blake.
13448
13449 2007-04-26  Bruno Haible  <bruno@clisp.org>
13450
13451         Ensure fseeko, ftello are declared on glibc systems.
13452         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13453         * modules/fseeko (configure.ac-early): Likewise.
13454         * modules/ftello (configure.ac-early): Likewise.
13455         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13456         AC_FUNC_FSEEKO for this.
13457         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13458         (gl_CHECK_FSEEKO): Remove macro.
13459
13460 2007-04-26  Bruno Haible  <bruno@clisp.org>
13461
13462         * tests/test-fflush.c (main): Also check the ftell result after
13463         fflush and fseek/fseeko.
13464         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13465         file descriptor position cache in the stream.
13466         * lib/fseeko.c (rpl_fseeko): Likewise.
13467
13468 2007-04-26  Bruno Haible  <bruno@clisp.org>
13469
13470         * modules/fflush-tests (Depends-on): Add fseeko.
13471
13472 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13473             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13474
13475         * lib/argz_.h: ensure error_t definition is obtained in same
13476         mechanism system argz.h would have.
13477         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13478         argz facilities are known bad.  Err on the side of caution if
13479         cross-compiling.
13480
13481 2007-04-25  Eric Blake  <ebb9@byu.net>
13482
13483         * lib/fpurge.c (includes): Use stdlib.h for free.
13484         * tests/test-fflush.c (main): Also test fflush-fseeko.
13485
13486 2007-04-25  Bruno Haible  <bruno@clisp.org>
13487
13488         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13489         * lib/fseeko.c: New file.
13490         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13491         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13492         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13493         gl_FUNC_FSEEKO.
13494         (gl_FUNC_FSEEKO): Invoke it.
13495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13496         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13497         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13498
13499 2007-04-25  Bruno Haible  <bruno@clisp.org>
13500
13501         * modules/fflush (Depends-on): Add ftello.
13502
13503 2007-04-25  Bruno Haible  <bruno@clisp.org>
13504
13505         * modules/ftello-tests: New file.
13506         * tests/test-ftello.c: New file.
13507
13508         * modules/ftello: New file.
13509         * m4/ftello.m4: New file.
13510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13511         HAVE_FTELLO.
13512         * lib/stdio_.h (ftello): New declaration.
13513         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13514         HAVE_FTELLO.
13515
13516 2007-04-25  Bruno Haible  <bruno@clisp.org>
13517
13518         * modules/fseeko-tests: New file.
13519         * tests/test-fseeko.c: New file.
13520
13521         * modules/fseeko: New file.
13522         * m4/fseeko.m4: New file.
13523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13524         HAVE_FSEEKO.
13525         * lib/stdio_.h (fseeko): New declaration.
13526         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13527         HAVE_FSEEKO.
13528
13529 2007-04-25  Bruno Haible  <bruno@clisp.org>
13530
13531         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13532
13533 2007-04-25  Bruno Haible  <bruno@clisp.org>
13534
13535         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13536         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13537         * tests/test-unistd.c: Likewise.
13538         * tests/test-fcntl.c: Likewise.
13539
13540 2007-04-23  Eric Blake  <ebb9@byu.net>
13541
13542         * lib/fflush.c: Fix missing include.
13543         Reported by Bruno Haible.
13544
13545 2007-04-23  Bruno Haible  <bruno@clisp.org>
13546
13547         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13548         Reported by Eric Blake.
13549
13550 2007-04-23  Bruno Haible  <bruno@clisp.org>
13551
13552         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13553
13554 2007-04-23  Bruno Haible  <bruno@clisp.org>
13555
13556         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13557
13558 2007-04-23  Bruno Haible  <bruno@clisp.org>
13559
13560         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13561         Needed on HP-UX 11.
13562
13563 2007-04-16  Eric Blake  <ebb9@byu.net>
13564
13565         Make fflush rely on fpurge.
13566         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13567         open coding all variants.
13568         * modules/fflush (Depends-on): Add fpurge and unistd.
13569         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13571
13572         Fix --with-tests compilation on cygwin.
13573         * modules/argmatch-tests (Makefile.am): List gnulib library first
13574         in LDADD.
13575         * modules/argp-tests (Makefile.am): Likewise.
13576         * modules/array-list-tests (Makefile.am): Likewise.
13577         * modules/array-oset-tests (Makefile.am): Likewise.
13578         * modules/avltree-list-tests (Makefile.am): Likewise.
13579         * modules/avltree-oset-tests (Makefile.am): Likewise.
13580         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13581         * modules/carray-list-tests (Makefile.am): Likewise.
13582         * modules/dirname-tests (Makefile.am): Likewise.
13583         * modules/frexp-tests (Makefile.am): Likewise.
13584         * modules/isnanl-tests (Makefile.am): Likewise.
13585         * modules/linked-list-tests (Makefile.am): Likewise.
13586         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13587         * modules/lock-tests (Makefile.am): Likewise.
13588         * modules/rbtree-list-tests (Makefile.am): Likewise.
13589         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13590         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13591         * modules/tls-tests (Makefile.am): Likewise.
13592         * modules/tsearch-tests (Makefile.am): Likewise.
13593         * modules/xvasprintf-tests (Makefile.am): Likewise.
13594
13595         Fix fpurge for cygwin.
13596         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13597         value.
13598         * modules/fpurge-tests (Depends-on): Clean up trash.
13599
13600 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13601
13602         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13603
13604         * m4/autobuild.m4: Re-indent.
13605
13606 2007-04-13  Bruno Haible  <bruno@clisp.org>
13607
13608         * modules/fpurge-tests: New file.
13609         * tests/test-fpurge.c: New file.
13610
13611         * modules/fpurge: New file.
13612         * lib/fpurge.h: New file.
13613         * lib/fpurge.c: New file.
13614         * m4/fpurge.m4: New file.
13615
13616 2007-04-13  Bruno Haible  <bruno@clisp.org>
13617
13618         * modules/fbufmode-tests: New file.
13619         * tests/test-fbufmode.c: New file.
13620
13621         * modules/fbufmode: New file.
13622         * lib/fbufmode.h: New file.
13623         * lib/fbufmode.c: New file.
13624         * m4/fbufmode.m4: New file.
13625
13626 2007-04-13  Bruno Haible  <bruno@clisp.org>
13627
13628         * modules/fwritable-tests: New file.
13629         * tests/test-fwritable.c: New file.
13630
13631         * modules/fwritable: New file.
13632         * lib/fwritable.h: New file.
13633         * lib/fwritable.c: New file.
13634         * m4/fwritable.m4: New file.
13635
13636 2007-04-13  Bruno Haible  <bruno@clisp.org>
13637
13638         * modules/freadable-tests: New file.
13639         * tests/test-freadable.c: New file.
13640
13641         * modules/freadable: New file.
13642         * lib/freadable.h: New file.
13643         * lib/freadable.c: New file.
13644         * m4/freadable.m4: New file.
13645
13646 2007-04-13  Bruno Haible  <bruno@clisp.org>
13647
13648         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13649         MOSTLYCLEANFILES.
13650
13651 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13652
13653         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13654         gzip bootstrap.conf to avoid dragging in i18n machinery.
13655         (gnulib_tool_option): Use it.
13656
13657 2007-04-13  Bruno Haible  <bruno@clisp.org>
13658
13659         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13660         %F directives.
13661         * tests/test-vasprintf-posix.c (test_function): Likewise.
13662         * tests/test-snprintf-posix.h (test_function): Likewise.
13663         * tests/test-sprintf-posix.h (test_function): Likewise.
13664         * tests/test-fprintf-posix.h (test_function): Likewise.
13665         * tests/test-printf-posix.h (test_function): Likewise.
13666         * tests/test-fprintf-posix.out: Likewise.
13667
13668 2007-04-13  Bruno Haible  <bruno@clisp.org>
13669
13670         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13671         * modules/tls-tests (configure.ac): Likewise.
13672         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13673
13674 2007-04-13  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/tls.c (glthread_tls_get): Fix return type.
13677         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13678
13679 2007-04-12  Eric Blake  <ebb9@byu.net>
13680
13681         * modules/gettime (Depends-on): Remove gettime.
13682         Reported by Dmitry V. Levin.
13683
13684 2007-04-12  Bruno Haible  <bruno@clisp.org>
13685
13686         * modules/fflush (Include): Mention <stdio.h>.
13687         * modules/strtoimax (Include): Mention <inttypes.h>.
13688         * modules/strtoumax (Include): Likewise.
13689
13690 2007-04-12  Eric Blake  <ebb9@byu.net>
13691
13692         * .cvsignore: New file.
13693         * .gitignore: Likewise.
13694
13695 2007-04-12  Bruno Haible  <bruno@clisp.org>
13696
13697         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13698         not before, since $(LDADD) often contains libgnu.a.
13699         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13700         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13701         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13702         Needed on Cygwin.
13703
13704 2007-04-12  Eric Blake  <ebb9@byu.net>
13705
13706         Work around glibc's failure to flush stdin on fclose.
13707         * lib/closein.c (close_stdin): Flush stdin before closing.
13708
13709         Work around glibc's failure to reset seekable stdin on exit.
13710         * modules/closein: New module.
13711         * lib/closein.c: New file.
13712         * lib/closein.h: Likewise.
13713         * m4/closein.m4: Likewise.
13714         * MODULES.html.sh (File stream based Input/Output): Document it.
13715
13716 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13717
13718         * gnulib-tool: Rename generated 'autobuild' script to
13719         'do-autobuild' in --create-megatestdir output.
13720
13721         * doc/gnulib.texi (Build robot for gnulib): Fix.
13722
13723 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13724
13725         * modules/sysexits (Depends-on): Add absolute-header.
13726
13727 2007-04-12  Eric Blake  <ebb9@byu.net>
13728
13729         No need to preserve errno on success.
13730         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13731         Reported by Bruno Haible.
13732
13733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13734
13735         * MODULES.html.sh (Support for maintaining and releasing
13736         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13737
13738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13739
13740         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13741
13742 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13743
13744         * modules/autobuild: New module.
13745
13746         * m4/autobuild.m4: New file.
13747
13748 2007-04-11  Bruno Haible  <bruno@clisp.org>
13749
13750         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13751         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13754         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13758         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13759         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13761         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13762         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13773         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13774         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13776         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13777         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13778         Reported by Eric Blake.
13779
13780 2007-04-11  Bruno Haible  <bruno@clisp.org>
13781
13782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13783
13784 2007-04-10  Bruno Haible  <bruno@clisp.org>
13785
13786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13787         for NaN and Infinity. Needed on FreeBSD 6.1.
13788         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13789         regarding results for "%010a" of Infinity and NaN.
13790         * tests/test-vasprintf-posix.c (test_function): Likewise.
13791         * tests/test-snprintf-posix.h (test_function): Likewise.
13792         * tests/test-sprintf-posix.h (test_function): Likewise.
13793         * tests/test-fprintf-posix.h (test_function): Likewise.
13794         * tests/test-printf-posix.h (test_function): Likewise.
13795         * tests/test-fprintf-posix.out: Likewise.
13796
13797 2007-04-10  Bruno Haible  <bruno@clisp.org>
13798
13799         * modules/locale-tests: New file.
13800         * tests/test-locale.c: New file.
13801
13802         * modules/locale: New file.
13803         * lib/locale_.h: New file.
13804         * m4/locale_h.m4: New file.
13805
13806 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13807             Bruno Haible  <bruno@clisp.org>
13808
13809         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13810         be determined, test for availability of the copysignf, copysign,
13811         copysignl functions.
13812         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13813         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13814         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13815
13816 2007-04-09  Eric Blake  <ebb9@byu.net>
13817
13818         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13819         * modules/stdio (Makefile.am): Support fflush.
13820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13821         * modules/fflush: New file.
13822         * lib/fflush.c: Likewise.
13823         * m4/fflush.m4: Likewise.
13824         * modules/fflush-tests: New test.
13825         * tests/test-fflush.c: Likewise.
13826         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13827
13828 2007-04-06  Bruno Haible  <bruno@clisp.org>
13829
13830         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13831         (VASNPRINTF): Use signbit for faster determination whether to print a
13832         minus sign.
13833         * modules/vasnprintf (Files): Remove lib/float+.h.
13834         * modules/fprintf-posix (Depends-on): Add signbit.
13835         * modules/snprintf-posix (Depends-on): Likewise.
13836         * modules/sprintf-posix (Depends-on): Likewise.
13837         * modules/vasnprintf-posix (Depends-on): Likewise.
13838         * modules/vasprintf-posix (Depends-on): Likewise.
13839         * modules/vfprintf-posix (Depends-on): Likewise.
13840         * modules/vsnprintf-posix (Depends-on): Likewise.
13841         * modules/vsprintf-posix (Depends-on): Likewise.
13842
13843 2007-04-06  Bruno Haible  <bruno@clisp.org>
13844
13845         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13846         * tests/test-frexpl.c (main): Likewise.
13847         * tests/test-ldexpl.c (main): Likewise.
13848         * modules/frexp-tests (Depends-on): Add signbit.
13849         * modules/frexpl-tests (Depdends-on): Likewise.
13850         * modules/ldexpl-tests (Depdends-on): Likewise.
13851
13852 2007-04-06  Bruno Haible  <bruno@clisp.org>
13853
13854         * modules/signbit-tests: New file.
13855         * tests/test-signbit.c: New file.
13856
13857         * modules/signbit: New file.
13858         * lib/signbitf.c: New file.
13859         * lib/signbitd.c: New file.
13860         * lib/signbitl.c: New file.
13861         * m4/signbit.m4: New file.
13862         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13863         (signbit): New macro.
13864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13865         REPLACE_SIGNBIT.
13866         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13867         REPLACE_FREXPL into math.h.
13868
13869 2007-04-06  Bruno Haible  <bruno@clisp.org>
13870
13871         * modules/isnanf-nolibm-tests: New file.
13872         * tests/test-isnanf.c: New file.
13873
13874         * modules/isnanf-nolibm: New file.
13875         * lib/isnanf.h: New file.
13876         * lib/isnanf.c: New file.
13877         * lib/isnan.c: Consider the USE_FLOAT macro.
13878         * m4/isnanf.m4: New file.
13879
13880 2007-04-06  Bruno Haible  <bruno@clisp.org>
13881
13882         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13883         (Link): New section.
13884
13885         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13886
13887 2007-04-06  Bruno Haible  <bruno@clisp.org>
13888
13889         Assume the 'long double' type.
13890         * m4/longdouble.m4: Remove file.
13891         * config/srclist.txt: Don't mention longdouble.m4.
13892         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13893         * lib/float+.h: Likewise.
13894         * lib/frexp.c: Likewise.
13895         * lib/printf-args.h: Likewise.
13896         * lib/printf-args.c: Likewise.
13897         * lib/printf-frexp.c: Likewise.
13898         * lib/printf-parse.c: Likewise.
13899         * lib/vasnprintf.c: Likewise.
13900         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13901         * m4/intl.m4: Likewise.
13902         * m4/isnanl.m4: Likewise.
13903         * m4/printf.m4: Likewise.
13904         * m4/printf-frexpl.m4: Likewise.
13905         * m4/vasnprintf.m4: Likewise.
13906         * modules/allocsa (Files): Remove m4/longdouble.m4.
13907         * modules/gettext (Files): Likewise.
13908         * modules/relocatable-prog-wrapper (Files): Likewise.
13909         * modules/vasnprintf (Files): Likewise.
13910         * modules/isnanl (Files): Likewise.
13911         (Include): Simplify.
13912         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13913         (Include): Simplify.
13914         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13915         (Include): Simplify.
13916         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13918         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13920         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13922         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13923         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13924         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13925         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13926         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13927         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13928         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13929         * tests/test-isnanl.c: Likewise.
13930         * tests/test-snprintf-posix.h: Likewise.
13931         * tests/test-sprintf-posix.h: Likewise.
13932         * tests/test-vasnprintf-posix.c: Likewise.
13933         * tests/test-vasnprintf-posix2.c: Likewise.
13934         * tests/test-vasprintf-posix.c: Likewise.
13935
13936 2007-04-06  Bruno Haible  <bruno@clisp.org>
13937
13938         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13939         * lib/math_.h [__DECC]: Include the overridden include file through
13940         #include_next, outside the double-inclusion guard.
13941         * lib/stdio_.h [__DECC]: Likewise.
13942         * lib/stdlib_.h [__DECC]: Likewise.
13943         * lib/string_.h [__DECC]: Likewise.
13944         * lib/time_.h [__DECC]: Likewise.
13945         * lib/wchar_.h [__DECC]: Likewise.
13946         * lib/wctype_.h [__DECC]: Likewise.
13947         * lib/inttypes_.h [__DECC]: Likewise.
13948         Reported by Albert Chin <china@thewrittenword.com> in
13949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13950
13951 2007-04-04  Eric Blake  <ebb9@byu.net>
13952
13953         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13954         1.5.x.
13955
13956 2007-04-04  Bruno Haible  <bruno@clisp.org>
13957
13958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13959         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13960
13961 2007-04-04  Bruno Haible  <bruno@clisp.org>
13962
13963         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13964         results for "%010a" of Infinity and NaN.
13965         * tests/test-vasprintf-posix.c (test_function): Likewise.
13966         * tests/test-snprintf-posix.h (test_function): Likewise.
13967         * tests/test-sprintf-posix.h (test_function): Likewise.
13968         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13969         * tests/test-printf-posix.h (test_function): Likewise.
13970         * tests/test-fprintf-posix.out: Update.
13971         Needed for FreeBSD 6.1.
13972
13973 2007-04-04  Bruno Haible  <bruno@clisp.org>
13974
13975         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13976         directly used by the gnulib modules nor by gnulib-tool.
13977
13978 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         * DEPENDENCIES: Give overall description of version dependency
13981         desirability.  Use more-typical names for apps.
13982         Add shell, coreutils, diffutils, grep, tar, gzip.
13983
13984 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13985
13986         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13987
13988 2007-04-04  Karl Berry  <karl@gnu.org>
13989
13990         * MODULES.html.sh (func_module): missing '.
13991
13992 2007-04-03  Bruno Haible  <bruno@clisp.org>
13993
13994         * modules/argmatch-tests (Makefile.am): New variable
13995         test_argmatch_LDADD.
13996         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13997         * modules/array-list-tests (Makefile.am): New variable
13998         test_array_list_LDADD.
13999         * modules/array-oset-tests (Makefile.am): New variable
14000         test_array_oset_LDADD.
14001         * modules/avltree-list-tests (Makefile.am): New variable
14002         test_avltree_list_LDADD.
14003         * modules/avltree-oset-tests (Makefile.am): New variable
14004         test_avltree_oset_LDADD.
14005         * modules/avltreehash-list-tests (Makefile.am): New variable
14006         test_avltreehash_list_LDADD.
14007         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14008         test_canonicalize_lgpl_LDADD.
14009         * modules/carray-list-tests (Makefile.am): New variable
14010         test_carray_list_LDADD.
14011         * modules/dirname-tests (Makefile.am): New variable
14012         test_dirname_LDADD.
14013         * modules/linked-list-tests (Makefile.am): New variable
14014         test_linked_list_LDADD.
14015         * modules/linkedhash-list-tests (Makefile.am): New variable
14016         test_linkedhash_list_LDADD.
14017         * modules/rbtree-list-tests (Makefile.am): New variable
14018         test_rbtree_list_LDADD.
14019         * modules/rbtree-oset-tests (Makefile.am): New variable
14020         test_rbtree_oset_LDADD.
14021         * modules/rbtreehash-list-tests (Makefile.am): New variable
14022         test_rbtreehash_list_LDADD.
14023         * modules/xvasprintf-tests (Makefile.am): New variable
14024         test_xvasprintf_LDADD.
14025         Reported by Eric Blake.
14026
14027 2007-04-03  Eric Blake  <ebb9@byu.net>
14028
14029         * DEPENDENCIES: Weaken m4 requirements.
14030
14031 2007-04-03  Bruno Haible  <bruno@clisp.org>
14032
14033         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14034         * modules/isnanl-tests (configure.ac): Likewise.
14035
14036 2007-04-03  Ben Pfaff  <blp@gnu.org>
14037
14038         * modules/iconv_open: Add $(srcdir)/ to source directory
14039         references in Makefile fragments that call gperf, to fix VPATH
14040         builds.
14041
14042 2007-04-03  Bruno Haible  <bruno@clisp.org>
14043
14044         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
14045         * lib/ldexpl.c: Undo last change.
14046
14047 2007-04-03  Bruno Haible  <bruno@clisp.org>
14048
14049         * modules/printf-frexpl (Depends-on): Undo last change.
14050         (Files): Add m4/ldexpl.m4.
14051
14052 2007-04-03  Bruno Haible  <bruno@clisp.org>
14053
14054         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
14055         * modules/isnanl (Link): New section.
14056
14057         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14058         * modules/frexp (Link): New section.
14059
14060         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14061         * modules/frexpl (Link): New section.
14062
14063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14064         * modules/ldexpl (Link): New section.
14065
14066 2007-04-03  Bruno Haible  <bruno@clisp.org>
14067
14068         * modules/TEMPLATE-EXTENDED: New file.
14069         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14070
14071 2007-04-03  Bruno Haible  <bruno@clisp.org>
14072
14073         * DEPENDENCIES: New file.
14074         Suggested by Simon Josefsson.
14075
14076 2007-04-03  Bruno Haible  <bruno@clisp.org>
14077
14078         * doc/gnulib.texi: Escape @.
14079
14080 2007-04-03  James Youngman  <jay@gnu.org>
14081         and Paul Eggert  <eggert@cs.ucla.edu>
14082
14083         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14084         birthtime on all systems that have birthtime, not just those which
14085         use st_birthtimensec rather than st_birthtim.  Putting zero in
14086         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14087         that the birth time is not available for files on an NFS mount.
14088
14089 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14090
14091         * modules/memxor: Move back from crypto/, suggested by Bruno.
14092         * modules/crypto/hmac-sha1: Fix memxor dependency.
14093
14094         * modules/crypto/gc: Moved from ../.
14095
14096 2007-04-02  Eric Blake  <ebb9@byu.net>
14097
14098         * lib/ldexpl.c (includes): Avoid libm.
14099
14100         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14101
14102 2007-04-02  Bruno Haible  <bruno@clisp.org>
14103
14104         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14105         on IRIX.
14106
14107 2007-04-02  Bruno Haible  <bruno@clisp.org>
14108
14109         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14110         x86 or x86_64 platforms running MacOS X.
14111         Reported by Ryan Schmidt <@ryandesign.com>.
14112
14113 2007-04-02  Bruno Haible  <bruno@clisp.org>
14114
14115         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14116         i386.
14117
14118 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14119
14120         * modules/crypto/arcfour: Moved from ../.
14121         * modules/crypto/arcfour-tests: Moved from ../.
14122         * modules/crypto/arctwo: Moved from ../.
14123         * modules/crypto/arctwo-tests: Moved from ../.
14124         * modules/crypto/des: Moved from ../.
14125         * modules/crypto/des-tests: Moved from ../.
14126         * modules/crypto/gc-arcfour: Moved from ../.
14127         * modules/crypto/gc-arcfour-tests: Moved from ../.
14128         * modules/crypto/gc-arctwo: Moved from ../.
14129         * modules/crypto/gc-arctwo-tests: Moved from ../.
14130         * modules/crypto/gc-des: Moved from ../.
14131         * modules/crypto/gc-des-tests: Moved from ../.
14132         * modules/crypto/gc-hmac-md5: Moved from ../.
14133         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14134         * modules/crypto/gc-hmac-sha1: Moved from ../.
14135         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14136         * modules/crypto/gc-md2: Moved from ../.
14137         * modules/crypto/gc-md2-tests: Moved from ../.
14138         * modules/crypto/gc-md4: Moved from ../.
14139         * modules/crypto/gc-md4-tests: Moved from ../.
14140         * modules/crypto/gc-md5: Moved from ../.
14141         * modules/crypto/gc-md5-tests: Moved from ../.
14142         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14143         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14144         * modules/crypto/gc-random: Moved from ../.
14145         * modules/crypto/gc-rijndael: Moved from ../.
14146         * modules/crypto/gc-rijndael-tests: Moved from ../.
14147         * modules/crypto/gc-sha1: Moved from ../.
14148         * modules/crypto/gc-sha1-tests: Moved from ../.
14149         * modules/crypto/gc-tests: Moved from ../.
14150         * modules/crypto/hmac-md5: Moved from ../.
14151         * modules/crypto/hmac-md5-tests: Moved from ../.
14152         * modules/crypto/hmac-sha1: Moved from ../.
14153         * modules/crypto/hmac-sha1-tests: Moved from ../.
14154         * modules/crypto/md2: Moved from ../.
14155         * modules/crypto/md2-tests: Moved from ../.
14156         * modules/crypto/md4: Moved from ../.
14157         * modules/crypto/md4-tests: Moved from ../.
14158         * modules/crypto/md5: Moved from ../.
14159         * modules/crypto/md5-tests: Moved from ../.
14160         * modules/crypto/memxor: Moved from ../.
14161         * modules/crypto/rijndael: Moved from ../.
14162         * modules/crypto/rijndael-tests: Moved from ../.
14163         * modules/crypto/sha1: Moved from ../.
14164
14165 2007-03-30  James Youngman  <jay@gnu.org>
14166
14167         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14168         rename() to change the ctime of a file (because ctime is unaffected
14169         by rename on jfs2 on AIX 5.1).
14170         (main): Start by doing cleanup, in case a previous run failed leaving
14171         test files behind.
14172
14173 2007-03-31  Bruno Haible  <bruno@clisp.org>
14174
14175         Support old proprietary implementations of iconv.
14176         * modules/iconv_open: New file.
14177         * lib/iconv_.h: New file.
14178         * m4/iconv_h.m4: New file.
14179         * lib/iconv_open.c: New file.
14180         * lib/iconv_open-aix.gperf: New file.
14181         * lib/iconv_open-hpux.gperf: New file.
14182         * lib/iconv_open-irix.gperf: New file.
14183         * lib/iconv_open-osf.gperf: New file.
14184         * m4/iconv_open.m4: New file.
14185         * modules/linebreak (Depends-on): Add iconv_open.
14186         * modules/striconv (Depends-on): Likewise.
14187         * modules/striconveh (Depends-on): Likewise.
14188         * modules/unicodeio (Depends-on): Likewise.
14189         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14190         (iconv_t)(-1).
14191         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14192         conversion if cd is (iconv_t)(-1).
14193         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14194         is not possible.
14195
14196 2007-03-31  Bruno Haible  <bruno@clisp.org>
14197
14198         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14199         work on Solaris either. Protect also second use of "autodetect_jp".
14200
14201 2007-03-31  Bruno Haible  <bruno@clisp.org>
14202
14203         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14204         the function is not present.
14205
14206 2007-03-31  Bruno Haible  <bruno@clisp.org>
14207
14208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14209         the function is not present.
14210
14211 2007-03-31  Bruno Haible  <bruno@clisp.org>
14212
14213         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14214         a bug in HP-UX iconv_open().
14215
14216 2007-03-31  Bruno Haible  <bruno@clisp.org>
14217
14218         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14219         (Mathematics <math.h>): New section, add fpieee.
14220         (Input/output <stdio.h>): Add fseterr.
14221         (Mathematics <math.h>): New section, add printf-frexp.
14222         (Container data structures): Add sublist.
14223         (Core language properties): Add fpucw, inline.
14224         (Functions for greatest-width integer types <inttypes.h>): Add
14225         imaxabs, imaxdiv, inttypes.
14226         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14227         isnanl-nolibm, ldexp.
14228         (Mathematics <math.h>): New section, add printf-frexpl.
14229         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14230         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14231         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14232         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14233         (Unicode string functions): Add unistr/u*-mbtoucr.
14234         (Java): Add javacomp-script, javaexec-script.
14235         (C#): Add csharpcomp-script, csharpexec-script.
14236         (Support for building libraries and executables): Add havelib,
14237         relocatable-*.
14238         (Support for maintaining and releasing projects): Renamed from
14239         'Support for maintaining and release projects'. Add announce-gen.
14240
14241 2007-03-31  Bruno Haible  <bruno@clisp.org>
14242
14243         * README: Talk primarily about git.
14244         (git and CVS): Renamed from CVS.
14245         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14246         gnulib is available through git.
14247         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14248
14249 2007-03-30  Bruno Haible  <bruno@clisp.org>
14250
14251         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14252         * lib/poll_.h: Likewise.
14253         * lib/stat_.h: Likewise.
14254         * lib/sys_time_.h: Likewise.
14255         * lib/sysexit_.h: Likewise.
14256         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14257         * lib/stdbool_.h: Likewise.
14258         * lib/byteswap_.h: Add double-inclusion guard.
14259
14260 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14261
14262         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14263
14264 2007-03-30  Karl Berry  <karl@gnu.org>
14265
14266         * config/srclist-update: double space after USA in the license
14267         substitution, since that's how it's usually (?) written.
14268
14269 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14270
14271         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14272         reported by Bruno Haible.
14273
14274 2007-03-29  Bruno Haible  <bruno@clisp.org>
14275
14276         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14277         a bug in AIX iconv().
14278
14279 2007-03-29  Bruno Haible  <bruno@clisp.org>
14280
14281         * modules/ldexpl-tests: New file.
14282         * tests/test-ldexpl.c: New file.
14283
14284 2007-03-29  Bruno Haible  <bruno@clisp.org>
14285
14286         * lib/ldexpl.c: Include fpucw.h.
14287         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14288         multiplication.
14289         * modules/ldexpl (Depends-on): Add fpucw.
14290
14291 2007-03-29  Bruno Haible  <bruno@clisp.org>
14292
14293         * modules/ldexpl: New file.
14294         * m4/ldexpl.m4: New file.
14295         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14296         set.
14297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14298         REPLACE_LDEXPL.
14299         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14300         REPLACE_LDEXPL.
14301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14302         gl_FUNC_LDEXPL_WORKS.
14303         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14304         * modules/mathl (Files): Remove lib/ldexpl.c.
14305         (Depends-on): Add ldexpl.
14306
14307 2007-03-29  Bruno Haible  <bruno@clisp.org>
14308
14309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14310
14311 2007-03-29  Bruno Haible  <bruno@clisp.org>
14312
14313         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14314         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14315         and possibly also HP-UX.
14316         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14317         work on AIX, IRIX, HP-UX, OSF/1.
14318         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14319         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14320         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14321         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14322         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14323         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14324
14325 2007-03-29  Bruno Haible  <bruno@clisp.org>
14326
14327         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14328
14329 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14330
14331         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14332         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14333
14334 2007-03-29  Eric Blake  <ebb9@byu.net>
14335
14336         * lib/acl-internal.h: Remove redundant include.
14337         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14338         Cygwin when a file is locked.
14339
14340 2007-03-29  Bruno Haible  <bruno@clisp.org>
14341
14342         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14343         file.
14344         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14345
14346 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14347
14348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14349         try to remove a parent directory if the child couldn't be removed
14350         (except for the first rmdir, which could fail because the child
14351         doesn't exist).  Problem reported by Jeff Blaine in
14352         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14353
14354 2007-03-28  Bruno Haible  <bruno@clisp.org>
14355
14356         * lib/striconveh.c (utf8conv_carefully): New function.
14357         (mem_cd_iconveh_internal): Invoke it.
14358
14359 2007-03-28  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14362         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14363         input.
14364         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14365         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14366         unistr/u8-uctomb.
14367
14368 2007-03-28  Bruno Haible  <bruno@clisp.org>
14369
14370         * modules/unistr/u8-mbtoucr: New file.
14371         * lib/unistr/u8-mbtoucr.c: New file.
14372         * modules/unistr/u16-mbtoucr: New file.
14373         * lib/unistr/u16-mbtoucr.c: New file.
14374         * modules/unistr/u16-mbtoucr: New file.
14375         * lib/unistr/u16-mbtoucr.c: New file.
14376         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14377
14378 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14379             Bruno Haible  <bruno@clisp.org>
14380
14381         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14382         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14383         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14384
14385         * m4/stdio_h.m4: Add stubs for vasprintf too.
14386
14387         * modules/stdio: Support vasprintf in sed command.
14388
14389         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14390         vasprintf.h.  Add stdio module indicator.
14391
14392         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14393         vasprintf.h.
14394
14395         * lib/vasprintf.h: File removed.
14396
14397         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14398         * lib/vasprintf.c: Ditto.
14399         * lib/xvasprintf.c: Ditto.
14400         * tests/test-vasprintf-posix.c: Ditto.
14401         * tests/test-vasprintf.c: Ditto.
14402
14403 2007-03-27  Bruno Haible  <bruno@clisp.org>
14404
14405         Make vasnprintf multithread-safe.
14406         * lib/vasnprintf.c (decimal_point_char): New function.
14407         (VASNPRINTF): Use it.
14408         Suggested by Simon Josefsson.
14409
14410 2007-03-27  Eric Blake  <ebb9@byu.net>
14411
14412         Support sub-second birthtime on cygwin.
14413         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14414         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14415         (get_stat_birthtime): Also work with st_birthtim.
14416
14417 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14418
14419         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14420         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14421         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14422         (get_stat_birthtime_ns): Simplify compile-time tests.
14423         (get_stat_birthtime): Change the API to look like
14424         get_stat_mtime etc., except return a negative tv_nsec on error.
14425         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14426         Don't check for "spare" fields.
14427         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14428         or for struct stat.st_birthtime, as these tests aren't used.
14429         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14430
14431 2007-03-27  Bruno Haible  <bruno@clisp.org>
14432
14433         * lib/stat-time.h: Include <sys/stat.h>.
14434
14435 2007-03-27  James Youngman  <jay@gnu.org>
14436
14437         * lib/stat-time.h (get_stat_birthtime): New function for
14438           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14439         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14440           and its variants.
14441         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14442         * modules/stat-time-test: New file.
14443         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14444
14445 2007-03-26  Bruno Haible  <bruno@clisp.org>
14446
14447         Better support of signalling NaNs.
14448         * lib/atanl.c: Include isnanl.h.
14449         (atanl): Perform test for NaN at the beginning of the function and
14450         through a call to isnanl.
14451         * lib/cosl.c: Include isnanl.h.
14452         (cosl): Perform test for NaN at the beginning of the function and
14453         through a call to isnanl.
14454         * lib/ldexpl.c: Include isnanl.h.
14455         (ldexpl): Perform test for NaN through a call to isnanl.
14456         * lib/logl.c: Include isnanl.h.
14457         (logl): Perform test for NaN at the beginning of the function and
14458         through a call to isnanl.
14459         * lib/sinl.c: Include isnanl.h.
14460         (sinl): Perform test for NaN at the beginning of the function and
14461         through a call to isnanl.
14462         * lib/sqrtl.c: Include isnanl.h.
14463         (sqrtl): Perform test for NaN at the beginning of the function and
14464         through a call to isnanl.
14465         * lib/tanl.c: Include isnanl.h.
14466         (tanl): Perform test for NaN at the beginning of the function and
14467         through a call to isnanl.
14468         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14469         * modules/mathl (Depends-on): Add isnanl.
14470
14471 2007-03-26  Eric Blake  <ebb9@byu.net>
14472
14473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14474         regression in logic sense of previous patch.
14475
14476 2007-03-26  Bruno Haible  <bruno@clisp.org>
14477
14478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14479         unportable shell command "if ! ...".
14480         Reported by Ralf Wildenhues.
14481
14482 2007-03-25  Bruno Haible  <bruno@clisp.org>
14483
14484         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14485         <sysexits.h> file, and only add EX_CONFIG.
14486         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14487         absolute file name and whether it is sufficient. Substitute also
14488         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14489         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14490         ABSOLUTE_SYSEXITS_H into sysexits.h.
14491
14492 2007-03-25  Bruno Haible  <bruno@clisp.org>
14493
14494         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14495         hints is NULL.
14496
14497 2007-03-25  Bruno Haible  <bruno@clisp.org>
14498
14499         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14500         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14501
14502 2007-03-25  Bruno Haible  <bruno@clisp.org>
14503
14504         * lib/vasnprintf.c: Include langinfo.h.
14505         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14506         multithread-safe.
14507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14516         Reported by Simon Josefsson.
14517
14518 2007-03-25  Bruno Haible  <bruno@clisp.org>
14519
14520         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14521         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14522         * modules/vasnprintf (Depends-on): Add stdint.
14523
14524 2007-03-25  Bruno Haible  <bruno@clisp.org>
14525
14526         * modules/fpieee: New file.
14527         * m4/fpieee.m4: New file.
14528         * modules/isnan-nolibm (Depends-on): Add fpieee.
14529         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14530         * modules/isnanl (Depends-on): Add fpieee.
14531
14532 2007-03-25  Bruno Haible  <bruno@clisp.org>
14533
14534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14535
14536 2007-03-25  Bruno Haible  <bruno@clisp.org>
14537
14538         Avoid test failures on IRIX 6.5.
14539         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14540         (main): Use it.
14541         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14542         macros.
14543         (main): Use them.
14544
14545 2007-03-25  Bruno Haible  <bruno@clisp.org>
14546
14547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14548         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14549         exists but doesn't work.
14550         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14551         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14553         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14554
14555 2007-03-25  Bruno Haible  <bruno@clisp.org>
14556
14557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14558         returns inf. Needed on IRIX 6.5.
14559
14560 2007-03-25  Bruno Haible  <bruno@clisp.org>
14561
14562         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14563         (main): Use isnanl instead of x != x idiom.
14564         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14565
14566         * tests/test-frexp.c: Include isnan.h.
14567         (main): Use isnan instead of x != x idiom.
14568         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14569
14570 2007-03-25  Bruno Haible  <bruno@clisp.org>
14571
14572         * tests/test-frexp.c (NaN): New function/macro.
14573         (main): Use it instead of 0.0 / 0.0.
14574         * tests/test-isnan.c (NaN): New function/macro.
14575         (main): Use it instead of 0.0 / 0.0.
14576         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14577         (test_function): Use it instead of 0.0 / 0.0.
14578         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14579         (test_function): Use it instead of 0.0 / 0.0.
14580         * tests/test-snprintf-posix.h (NaN): New function/macro.
14581         (test_function): Use it instead of 0.0 / 0.0.
14582         * tests/test-sprintf-posix.h (NaN): New function/macro.
14583         (test_function): Use it instead of 0.0 / 0.0.
14584         * tests/test-fprintf-posix.h (NaN): New function/macro.
14585         (test_function): Use it instead of 0.0 / 0.0.
14586         * tests/test-printf-posix.h (NaN): New function/macro.
14587         (test_function): Use it instead of 0.0 / 0.0.
14588
14589         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14590
14591 2007-03-25  Bruno Haible  <bruno@clisp.org>
14592
14593         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14594
14595 2007-03-25  Bruno Haible  <bruno@clisp.org>
14596
14597         * lib/regexec.c (merge_state_with_log): Make static.
14598
14599 2007-03-25  Bruno Haible  <bruno@clisp.org>
14600
14601         * lib/trigl.c (kernel_rem_pio2): Make static.
14602
14603 2007-03-25  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/sincosl.c (sincosl_table): Make static.
14606
14607 2007-03-25  Bruno Haible  <bruno@clisp.org>
14608
14609         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14610         if the compiler does not support C99.
14611
14612 2007-03-25  Bruno Haible  <bruno@clisp.org>
14613
14614         * modules/time (Makefile.am): Ensure all rule action lines start with a
14615         tab.
14616
14617 2007-03-24  Bruno Haible  <bruno@clisp.org>
14618
14619         * modules/tsearch-tests: New file.
14620         * tests/test-tsearch.sh: New file.
14621         * tests/test-tsearch.c: New file, mostly copied from glibc.
14622
14623         * modules/search-tests: New file.
14624         * tests/test-search.c: New file.
14625
14626         * modules/search: New file.
14627         * lib/search_.h: New file, incorporating lib/tsearch.h.
14628         * m4/search_h.m4: New file.
14629         * lib/tsearch.h: Remove file.
14630         * lib/tsearch.c: Include search.h instead of tsearch.h.
14631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14632         HAVE_TSEARCH.
14633         * modules/tsearch (Files): Remove lib/tsearch.h.
14634         (Depends-on): Add search.
14635         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14636         (Include): Change tsearch.h into search.h.
14637
14638 2007-03-24  Bruno Haible  <bruno@clisp.org>
14639
14640         * modules/fpucw: New file.
14641         * lib/fpucw.h: New file.
14642         * lib/frexp.c: Include fpucw.h.
14643         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14644         (FUNC): Use them.
14645         * lib/printf-frexp.c: Include fpucw.h.
14646         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14647         (FUNC): Use them.
14648         * lib/vasnprintf.c: Include fpucw.h.
14649         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14650         'long double' calculations.
14651         * tests/test-frexpl.c: Include fpucw.h.
14652         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14653         * tests/test-printf-frexpl.c: Include fpucw.h.
14654         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14655         * modules/frexpl (Depends-on): Add fpucw.
14656         * modules/printf-frexpl (Depends-on): Likewise.
14657         * modules/fprintf-posix (Depends-on): Likewise.
14658         * modules/snprintf-posix (Depends-on): Likewise.
14659         * modules/sprintf-posix (Depends-on): Likewise.
14660         * modules/vasnprintf-posix (Depends-on): Likewise.
14661         * modules/vasprintf-posix (Depends-on): Likewise.
14662         * modules/vfprintf-posix (Depends-on): Likewise.
14663         * modules/vsnprintf-posix (Depends-on): Likewise.
14664         * modules/vsprintf-posix (Depends-on): Likewise.
14665         * modules/frexpl-tests (Depends-on): Likewise.
14666         * modules/printf-frexpl-tests (Depends-on): Likewise.
14667
14668 2007-03-24  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/float+.h: New file.
14671         * lib/isnan.c: Include float+.h.
14672         (SIZE): New macro.
14673         (FUNC): Compare only SIZE bytes of the value.
14674         * lib/vasnprintf.c: Include float+.h.
14675         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14676         SIZEOF_LDBL or SIZEOF_DBL bytes.
14677         * modules/isnan-nolibm (Files): Add lib/float+.h.
14678         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14679         * modules/isnanl (Files): Add lib/float+.h.
14680         * modules/vasnprintf (Files): Add lib/float+.h.
14681
14682 2007-03-24  Bruno Haible  <bruno@clisp.org>
14683
14684         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14685         include isnanl-nolibm.h.
14686
14687 2007-03-24  Bruno Haible  <bruno@clisp.org>
14688
14689         * tests/test-read-file.c (main): Don't produce spurious output for
14690         expected situations. Make the test fail if it encountered unexpected
14691         results.
14692
14693 2007-03-24  Bruno Haible  <bruno@clisp.org>
14694
14695         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14696         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14697
14698 2007-03-24  Bruno Haible  <bruno@clisp.org>
14699
14700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14701
14702 2007-03-24  Bruno Haible  <bruno@clisp.org>
14703
14704         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14705         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14706
14707         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14708         * modules/utf8-ucs4: Turn into a symbolic link to module
14709         unistr/u8-mbtouc.
14710
14711         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14712         utf8-ucs4-unsafe.
14713         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14714         unistr/u8-mbtouc-unsafe.
14715
14716         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14717         * modules/utf16-ucs4: Turn into a symbolic link to module
14718         unistr/u16-mbtouc.
14719
14720         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14721         utf16-ucs4-unsafe.
14722         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14723         unistr/u16-mbtouc-unsafe.
14724
14725         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14726         * modules/ucs4-utf8: Turn into a symbolic link to module
14727         unistr/u8-ubtomb.
14728
14729         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14730         * modules/ucs4-utf16: Turn into a symbolic link to module
14731         unistr/u16-ubtomb.
14732
14733 2007-03-24  Bruno Haible  <bruno@clisp.org>
14734
14735         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14736         Enable the function only if HAVE_INLINE.
14737         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14738         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14739         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14740         Enable the function only if HAVE_INLINE.
14741         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14742         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14743         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14744         Enable the function only if HAVE_INLINE.
14745         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14746         Enable the function only if HAVE_INLINE.
14747         * modules/utf8-ucs4: Update.
14748         * modules/utf8-ucs4-unsafe: Update.
14749         * modules/utf16-ucs4: Update.
14750         * modules/utf16-ucs4-unsafe: Update.
14751         * modules/ucs4-utf8: Update.
14752         * modules/ucs4-utf16: Update.
14753
14754 2007-03-24  Bruno Haible  <bruno@clisp.org>
14755
14756         * lib/utf8-ucs4.h: Remove file.
14757         * lib/utf8-ucs4-unsafe.h: Remove file.
14758         * lib/utf16-ucs4.h: Remove file.
14759         * lib/utf16-ucs4-unsafe.h: Remove file.
14760         * lib/ucs4-utf8.h: Remove file.
14761         * lib/ucs4-utf16.h: Remove file.
14762         * lib/unistr.h: Include their previous contents.
14763         * m4/utf-ucs4.m4: Remove file.
14764         * m4/ucs4-utf.m4: Remove file.
14765         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14766         (Depends-on): Add unistr/base.
14767         (configure.ac): Remove gl_UTF_UCS4.
14768         (Makefile.am): Update.
14769         (Include): Change to unistr.h.
14770         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14771         (Depends-on): Add unistr/base.
14772         (configure.ac): Remove gl_UTF_UCS4.
14773         (Makefile.am): Update.
14774         (Include): Change to unistr.h.
14775         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14776         (Depends-on): Add unistr/base.
14777         (configure.ac): Remove gl_UTF_UCS4.
14778         (Makefile.am): Update.
14779         (Include): Change to unistr.h.
14780         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14781         (Depends-on): Add unistr/base.
14782         (configure.ac): Remove gl_UTF_UCS4.
14783         (Makefile.am): Update.
14784         (Include): Change to unistr.h.
14785         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14786         (Depends-on): Add unistr/base.
14787         (configure.ac): Remove gl_UCS4_UTF.
14788         (Makefile.am): Update.
14789         (Include): Change to unistr.h.
14790         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14791         (Depends-on): Add unistr/base.
14792         (configure.ac): Remove gl_UCS4_UTF.
14793         (Makefile.am): Update.
14794         (Include): Change to unistr.h.
14795         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14796         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14797         utf8-ucs4-unsafe.h.
14798         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14799         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14800         utf16-ucs4-unsafe.h.
14801         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14802         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14803         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14804         * lib/unistr/u8-strchr.c: Likewise.
14805         * lib/unistr/u8-strrchr.c: Likewise.
14806         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14807         * lib/unistr/u16-strchr.c: Likewise.
14808         * lib/unistr/u16-strrchr.c: Likewise.
14809         * lib/striconveh.c: Update.
14810         * lib/linebreak.c: Update.
14811
14812 2007-03-24  Bruno Haible  <bruno@clisp.org>
14813
14814         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14815         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14816
14817 2007-03-22  Bruno Haible  <bruno@clisp.org>
14818
14819         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14820
14821 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14822
14823         * MODULES.html.sh (File system functions): New module write-any-file.
14824         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14825         * m4/write-any-file.m4: New files.
14826
14827 2007-03-23  Eric Blake  <ebb9@byu.net>
14828
14829         * gnulib-tool: Rearrange space-tab sequences, since some editors
14830         like to eat them.
14831
14832 2007-03-23  Eric Blake  <ebb9@byu.net>
14833
14834         * lib/version-etc.c (version_etc_va): Update license wording to
14835         be more concise.  Recommended by Richard Stallman.
14836
14837 2007-03-22  Bruno Haible  <bruno@clisp.org>
14838
14839         * lib/poll.c (MSG_PEEK): New fallback definition.
14840
14841 2007-03-22  Bruno Haible  <bruno@clisp.org>
14842
14843         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14844         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14845         (main): Update.
14846         Fixes a compilation error on BeOS.
14847
14848 2007-03-22  Bruno Haible  <bruno@clisp.org>
14849
14850         * modules/frexpl-tests: New file.
14851         * tests/test-frexpl.c: New file.
14852
14853         * modules/frexpl: New file.
14854         * m4/frexpl.m4: New file.
14855         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14856         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14858         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14859         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14860         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14861
14862 2007-03-22  Bruno Haible  <bruno@clisp.org>
14863
14864         * lib/frexpl.c: Share code with lib/frexp.c.
14865         * modules/mathl (Files): Add lib/frexp.c.
14866         (Depends-on): Add isnanl-nolibm.
14867
14868 2007-03-22  Bruno Haible  <bruno@clisp.org>
14869
14870         * modules/printf-frexp (Files): Add m4/frexp.m4.
14871         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14872         only if the found frexp function actually works.
14873
14874 2007-03-22  Bruno Haible  <bruno@clisp.org>
14875
14876         * lib/frexp.c: Remove older implementation that uses divisions.
14877
14878 2007-03-21  Bruno Haible  <bruno@clisp.org>
14879
14880         * modules/frexp-tests: New file.
14881         * tests/test-frexp.c: New file.
14882
14883         * modules/frexp: New file.
14884         * lib/frexp.c: New file.
14885         * m4/frexp.m4: New file.
14886         * lib/math_.h (frexp): New declaration.
14887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14888         REPLACE_FREXP.
14889         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14890
14891 2007-03-21  Bruno Haible  <bruno@clisp.org>
14892
14893         * modules/isnanl-tests: New file.
14894         * tests/test-isnanl.c: New file.
14895
14896         * modules/isnanl: New file.
14897         * lib/isnanl.h: New file.
14898         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14899         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14900         gl_FUNC_ISNANL_WORKS.
14901         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14902         New macros.
14903
14904 2007-03-21  Bruno Haible  <bruno@clisp.org>
14905
14906         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14907         lib/isnanl.h.
14908         (Include): Update.
14909         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14910         * lib/vasnprintf.c: Update.
14911         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14912         tests/test-isnanl.h, remove tests/test-isnanl.c.
14913         (Makefile.am): Update.
14914         * tests/test-isnanl-nolibm.c: New file.
14915         * tests/test-isnanl.h: New file.
14916         * tests/test-isnanl.c: Remove file.
14917
14918 2007-03-21  Jim Meyering  <jim@meyering.net>
14919
14920         When trying to open ".", treat ESTALE like EACCES.
14921         * lib/savewd.c (savewd_save): Resort to forking not just upon
14922         failure with EACCES, but also when errno is ESTALE.
14923
14924 2007-03-20  Bruno Haible  <bruno@clisp.org>
14925
14926         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14927         Needed on AIX 5.1. Reported by Matthew Woehlke.
14928
14929 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         Suggestions by Bruno Haible:
14932         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14933         our own.
14934         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14935         * modules/acl (Depends-on): Add gettext.
14936
14937 2007-03-19  Bruno Haible  <bruno@clisp.org>
14938
14939         * modules/iconvme: Remove file.
14940         * lib/iconvme.h: Remove file.
14941         * lib/iconvme.c: Remove file.
14942         * m4/iconvme.m4: Remove file.
14943
14944 2007-03-19  Bruno Haible  <bruno@clisp.org>
14945
14946         * doc/relocatable-maint.texi: Break long shell script line.
14947         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14948
14949 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14950
14951         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14952         handle file_has_acl.
14953         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14954         * lib/acl.c: Move header inclusions and related macro defns into
14955         lib/acl-internal.h.
14956         (S_ISLNK): Remove defn, since that's now done for us.
14957         (file_has_acl): Move to lib/file-has-acl.c.
14958         Call acl_trivial if available.  This is the crucial part of the fix.
14959         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14960         shared within the library.  Rewrite a bit, partly to make it compatible
14961         with the GNU coding style.
14962         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14963         Remove unnecessary double-quotes.
14964         Don't test for acl_to_text; the build will catch that.
14965         Replace acl_entries if it doesn't exist and it is needed.
14966         Check for -lsec and acl_trivial (as used on Solaris 10).
14967         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14968         lib/file-has-acl.c.
14969         (Depends-on): Add sys_stat, for S_ISLNK.
14970
14971 2007-03-19  Ben Pfaff  <blp@gnu.org>
14972
14973         * doc/gnulib.texi: Fix typos.
14974         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14975
14976 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14977
14978         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14979         If size is zero here, buf must be zero.
14980
14981 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14982
14983         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14984         <bruno@clisp.org>.
14985
14986 2007-03-18  Bruno Haible  <bruno@clisp.org>
14987
14988         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14989         Suggested by Eric Blake.
14990
14991 2007-03-18  Ben Pfaff  <blp@gnu.org>
14992
14993         * doc/relocatable.texi: Recommend using as prefix a directory
14994         that does not exist and will never be created.  Based on
14995         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14996         and others.
14997
14998 2007-03-17  Bruno Haible  <bruno@clisp.org>
14999
15000         * lib/fchownat.c: Include lchown.h.
15001
15002 2007-03-17  Bruno Haible  <bruno@clisp.org>
15003
15004         Fix endless loop when the given allocated size was > INT_MAX.
15005         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15006         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15007         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15008         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15009         * lib/sprintf.c (sprintf): Likewise.
15010
15011 2007-03-17  Bruno Haible  <bruno@clisp.org>
15012
15013         * tests/test-argp-2.sh (func_compare): Output a context diff.
15014
15015 2007-03-17  Bruno Haible  <bruno@clisp.org>
15016
15017         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15018         locale's decimal-point character.
15019
15020 2007-03-17  Bruno Haible  <bruno@clisp.org>
15021
15022         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15023         before comparing it. Needed because on some platforms (e.g. x86) a
15024         'long double' occupies less bytes than sizeof (long double).
15025
15026 2007-03-17  Bruno Haible  <bruno@clisp.org>
15027
15028         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15029         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15030         * tests/test-getaddrinfo.c (simple): Likewise.
15031         * tests/test-read-file.c (main): Likewise.
15032
15033 2007-03-17  Bruno Haible  <bruno@clisp.org>
15034
15035         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
15036
15037 2007-03-17  Bruno Haible  <bruno@clisp.org>
15038
15039         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
15040         unused variable.
15041
15042 2007-03-17  Bruno Haible  <bruno@clisp.org>
15043
15044         * tests/test-c-strcasecmp.c: Include c-strcase.h.
15045         * tests/test-c-strncasecmp.c: Likewise.
15046
15047 2007-03-17  Bruno Haible  <bruno@clisp.org>
15048
15049         * modules/stdlib (Depends-on): Add unistd.
15050         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
15051         Needed for MacOS X 10.3.
15052
15053 2007-03-17  Bruno Haible  <bruno@clisp.org>
15054
15055         * lib/unistr/u-strdup.h: Include <stdlib.h>.
15056
15057 2007-03-17  Bruno Haible  <bruno@clisp.org>
15058
15059         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15060
15061 2007-03-17  Bruno Haible  <bruno@clisp.org>
15062
15063         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15064         to reflect files copied from gnulib (with or without modifications).
15065         Suggested by Jim Meyering.
15066
15067 2007-03-17  Eric Blake  <ebb9@byu.net>
15068
15069         * NEWS: Document stdlib change from 2007-02-18.
15070
15071 2007-03-17  Jim Meyering  <jim@meyering.net>
15072
15073         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15074         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15075         someone uses a name containing shell meta-characters.
15076         Reported by Alfred M. Szmidt.
15077
15078         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15079
15080 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15081
15082         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15083         and copy gettext configuration files only if configure.ac contains
15084         a use of AM_GNU_GETTEXT_VERSION.
15085
15086 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15087
15088         * build-aux/bootstrap (gnulib_name): New variable.
15089         (gnulib_tool_options): Use it.
15090
15091 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15092
15093         * tests/test-des.c: Use new namespace.
15094
15095 2007-03-15  Bruno Haible  <bruno@clisp.org>
15096
15097         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15098         Reported by James Youngman <jay@gnu.org>.
15099
15100 2007-03-15  Bruno Haible  <bruno@clisp.org>
15101
15102         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15103         declared prototype. Needed with cc on OSF/1 5.1.
15104
15105 2007-03-15  Bruno Haible  <bruno@clisp.org>
15106
15107         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15108         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15109         (struct gl_list_implementation): Add dispose_fn argument to the
15110         'create_empty', 'create' methods.
15111         (struct gl_list_impl_base): Add field 'dispose_fn'.
15112         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15113         argument.
15114         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15115         dispose_fn argument.
15116         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15117         dispose_fn on the dropped values.
15118         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15119         dispose_fn argument.
15120         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15121         dropped values.
15122         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15123         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15124         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15125         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15126         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15127         argument.
15128         (gl_tree_list_free): Call dispose_fn on the dropped values.
15129         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15130         the dropped values.
15131         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15132         Add dispose_fn argument.
15133         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15134         Call dispose_fn on the dropped values.
15135         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15136         Add dispose_fn argument.
15137         (gl_sublist_create): Initialize the 'dispose_fn' field.
15138         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15139         * tests/test-array_list.c (main): Update.
15140         * tests/test-carray_list.c (main): Update.
15141         * tests/test-avltree_list.c (main): Update.
15142         * tests/test-rbtree_list.c (main): Update.
15143         * tests/test-avltreehash_list.c (main): Update.
15144         * tests/test-rbtreehash_list.c (main): Update.
15145         * tests/test-linked_list.c (main): Update.
15146         * tests/test-linkedhash_list.c (main): Update.
15147         * tests/test-array_oset.c (main): Update.
15148
15149 2007-03-15  Bruno Haible  <bruno@clisp.org>
15150
15151         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15152         (gl_oset_create_empty): Add dispose_fn argument.
15153         (struct gl_oset_implementation): Add dispose_fn argument to
15154         'create_empty' method.
15155         (struct gl_oset_impl_base): Add dispose_fn field.
15156         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15157         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15158         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15159         values.
15160         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15161         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15162         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15163         dropped value.
15164         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15165         dropped value.
15166         * tests/test-array_oset.c (main): Update.
15167         * tests/test-avltree_oset.c (main): Update.
15168         * tests/test-rbtree_oset.c (main): Update.
15169         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15170
15171 2007-03-13  Bruno Haible  <bruno@clisp.org>
15172
15173         * tests/test-stdbool.c (i): Update after last patch.
15174
15175 2007-03-12  Bruno Haible  <bruno@clisp.org>
15176
15177         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15178         the iswprint macro. Needed on Solaris 2.5.1.
15179
15180 2007-03-12  Bruno Haible  <bruno@clisp.org>
15181
15182         * tests/test-printf-frexp.c (main): Declare x as volatile.
15183
15184 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15185
15186         * doc/gnulib.texi (Build robot for gnulib): New section.
15187
15188 2007-03-12  Jim Meyering  <jim@meyering.net>
15189
15190         * build-aux/bootstrap: New file.
15191         * build-aux/bootstrap.conf: New file, from coreutils.
15192
15193 2007-03-11  Bruno Haible  <bruno@clisp.org>
15194
15195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15196
15197 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15198
15199         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15200         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15201         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15202
15203 2007-03-11  Bruno Haible  <bruno@clisp.org>
15204
15205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15206         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15207
15208 2007-03-11  Bruno Haible  <bruno@clisp.org>
15209
15210         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15211         formula. Needed for SunPRO C 5.0.
15212
15213 2007-03-11  Bruno Haible  <bruno@clisp.org>
15214
15215         * modules/long-options (Depends-on): Add getopt.
15216
15217 2007-03-11  Bruno Haible  <bruno@clisp.org>
15218
15219         * modules/modechange (Depends-on): Add stdbool.
15220
15221 2007-03-11  Bruno Haible  <bruno@clisp.org>
15222
15223         * modules/i-ring (Depends-on): Add stdbool.
15224
15225 2007-03-11  Bruno Haible  <bruno@clisp.org>
15226
15227         * modules/gc-des (Depends-on): Add stdbool.
15228
15229 2007-03-11  Bruno Haible  <bruno@clisp.org>
15230
15231         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15232
15233 2007-03-11  Bruno Haible  <bruno@clisp.org>
15234
15235         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15236
15237 2007-03-11  Bruno Haible  <bruno@clisp.org>
15238
15239         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15240
15241 2007-03-11  Bruno Haible  <bruno@clisp.org>
15242
15243         * lib/vasnprintf.c (sprintf): Undefine.
15244
15245 2007-03-11  Bruno Haible  <bruno@clisp.org>
15246
15247         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15248         initializers in SunPRO C and Compaq C compilers.
15249
15250 2007-03-11  Bruno Haible  <bruno@clisp.org>
15251
15252         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15253         decrementing code ANSI C compliant.
15254
15255 2007-03-11  Bruno Haible  <bruno@clisp.org>
15256
15257         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15258         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15259
15260 2007-03-11  Bruno Haible  <bruno@clisp.org>
15261
15262         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15263         <stdbool.h> substitute doesn't pass.
15264
15265 2007-03-11  Bruno Haible  <bruno@clisp.org>
15266
15267         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15268
15269 2007-03-11  Bruno Haible  <bruno@clisp.org>
15270
15271         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15272         script, for submission to autobuild.josefsson.org.
15273
15274 2007-03-10  Bruno Haible  <bruno@clisp.org>
15275
15276         * modules/canonicalize-lgpl-tests: New file.
15277         * tests/test-canonicalize-lgpl.sh: New file.
15278         * tests/test-canonicalize-lgpl.c: New file.
15279
15280         * modules/c-strcase-tests: New file.
15281         * tests/test-c-strcase.sh: New file.
15282         * tests/test-c-strcasecmp.c: New file.
15283         * tests/test-c-strncasecmp.c: New file.
15284
15285         * modules/atexit-tests: New file.
15286         * tests/test-atexit.sh: New file.
15287         * tests/test-atexit.c: New file.
15288
15289 2007-03-10  Bruno Haible  <bruno@clisp.org>
15290
15291         * tests/test-binary-io.sh: Use temporary filenames that are not so
15292         likely to clash with those of other tests (in a parallel make).
15293         * tests/test-binary-io.c: Likewise.
15294
15295 2007-03-10  Bruno Haible  <bruno@clisp.org>
15296
15297         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15298         fallback; use #error instead.
15299         Suggested by Simon Josefsson.
15300
15301 2007-03-10  Bruno Haible  <bruno@clisp.org>
15302
15303         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15304         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15305         first and the last.
15306
15307 2007-03-10  Bruno Haible  <bruno@clisp.org>
15308
15309         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15310
15311 2007-03-10  Bruno Haible  <bruno@clisp.org>
15312
15313         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15314         "make distcheck".
15315         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15316         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15317         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15318
15319 2007-03-10  Bruno Haible  <bruno@clisp.org>
15320
15321         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15322         variable.
15323         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15324         variable.
15325
15326 2007-03-09  Eric Blake  <ebb9@byu.net>
15327         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15328
15329         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15330         types are not being provided by gnulib.
15331         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15332         types are supported.
15333
15334 2007-03-10  Bruno Haible  <bruno@clisp.org>
15335
15336         * lib/stdio_.h (__attribute__): New macro.
15337         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15338         vsprintf): Specify __attribute__ __format__ for GCC.
15339         Suggested by Eric Blake.
15340
15341 2007-03-09  Bruno Haible  <bruno@clisp.org>
15342
15343         * modules/printf-posix-tests: New file.
15344         * tests/test-printf-posix.sh: New file.
15345         * tests/test-printf-posix.c: New file.
15346
15347         * modules/printf-posix: New file.
15348         * lib/printf.c: New file.
15349         * m4/printf-posix-rpl.m4: New file.
15350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15351         REPLACE_PRINTF.
15352         * lib/stdio_.h (printf): New declaration.
15353         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15354         ____strfmon____): New macros.
15355         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15356         REPLACE_PRINTF.
15357
15358 2007-03-09  Bruno Haible  <bruno@clisp.org>
15359
15360         * tests/test-vasnprintf-posix2.sh: New file.
15361         * tests/test-vasnprintf-posix2.c: New file.
15362         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15363         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15364         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15365
15366         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15367         a locale dependent decimal point, rather than always '.'.
15368
15369 2007-03-09  Eric Blake  <ebb9@byu.net>
15370
15371         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15372         spite of platforms like Tandem/NSK that define it to -1.
15373
15374 2007-03-08  Bruno Haible  <bruno@clisp.org>
15375
15376         * modules/vprintf-posix-tests: New file.
15377         * tests/test-vprintf-posix.sh: New file.
15378         * tests/test-vprintf-posix.c: New file.
15379         * tests/test-printf-posix.h: New file.
15380
15381         * modules/vprintf-posix: New file.
15382         * lib/vprintf.c: New file.
15383         * m4/vprintf-posix.m4: New file.
15384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15385         REPLACE_VPRINTF.
15386         * lib/stdio_.h (vprintf): New declaration.
15387         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15388         REPLACE_VPRINTF.
15389
15390 2007-03-08  Bruno Haible  <bruno@clisp.org>
15391
15392         * modules/fprintf-posix-tests: New file.
15393         * tests/test-fprintf-posix.sh: New file.
15394         * tests/test-fprintf-posix.c: New file.
15395
15396         * modules/fprintf-posix: New file.
15397         * lib/fprintf.c: New file.
15398         * m4/fprintf-posix.m4: New file.
15399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15400         REPLACE_FPRINTF.
15401         * lib/stdio_.h (fprintf): New declaration.
15402         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15403         REPLACE_FPRINTF.
15404
15405 2007-03-08  Bruno Haible  <bruno@clisp.org>
15406
15407         * modules/vfprintf-posix-tests: New file.
15408         * tests/test-vfprintf-posix.sh: New file.
15409         * tests/test-vfprintf-posix.c: New file.
15410         * tests/test-fprintf-posix.h: New file.
15411         * tests/test-fprintf-posix.out: New file.
15412
15413         * modules/vfprintf-posix: New file.
15414         * lib/vfprintf.c: New file.
15415         * m4/vfprintf-posix.m4: New file.
15416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15417         REPLACE_VFPRINTF.
15418         * lib/stdio_.h (vfprintf): New declaration.
15419         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15420         REPLACE_VFPRINTF.
15421
15422 2007-03-08  Bruno Haible  <bruno@clisp.org>
15423
15424         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15425
15426 2007-03-08  Bruno Haible  <bruno@clisp.org>
15427
15428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15429         instead of 'expr' invocations.
15430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15435         Suggested by Paul Eggert.
15436
15437 2007-03-08  Bruno Haible  <bruno@clisp.org>
15438
15439         * modules/fseterr-tests: New file.
15440         * tests/test-fseterr.c: New file.
15441
15442         * modules/fseterr: New file.
15443         * lib/fseterr.h: New file.
15444         * lib/fseterr.c: New file.
15445
15446 2007-03-08  Bruno Haible  <bruno@clisp.org>
15447
15448         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15449         * lib/getopt_.h: Likewise.
15450         * lib/mbswidth.h: Likewise.
15451         * lib/setenv.h: Likewise.
15452         * lib/vasnprintf.h: Likewise.
15453         * lib/vasprintf.h: Likewise.
15454         * lib/verror.h: Likewise.
15455         * lib/xsetenv.h: Likewise.
15456         * lib/xvasprintf.h: Likewise.
15457
15458 2007-03-08  Jim Meyering  <jim@meyering.net>
15459
15460         * users.txt: Add parted.
15461
15462         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15463
15464 2007-03-07  Bruno Haible  <bruno@clisp.org>
15465
15466         * m4/printf.m4: Make the shell script snippets copy&pastable.
15467
15468 2007-03-02  Bruno Haible  <bruno@clisp.org>
15469
15470         * lib/netinet_in_.h: New file.
15471         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15472         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15473         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15474         (Depends-on): Add absolute-header.
15475         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15476         into netinet/in.h.
15477
15478 2007-03-03  Bruno Haible  <bruno@clisp.org>
15479
15480         * lib/sys_select_.h: New file.
15481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15482         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15483         * modules/sys_select (Files): Add lib/sys_select_.h.
15484         (Depends-on): Add absolute-header.
15485         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15486         into sys/select.h.
15487
15488 2007-03-02  Bruno Haible  <bruno@clisp.org>
15489
15490         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15491         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15492         values.
15493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15494         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15495         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15496         * modules/sys_socket (Depends-on): Add absolute-header.
15497         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15498         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15499         (Include): Remove requirement of inclusion of <sys/types.h>.
15500
15501 2007-03-02  Bruno Haible  <bruno@clisp.org>
15502
15503         * lib/byteswap_.h (bswap_32): Fix formula.
15504
15505 2007-03-06  Bruno Haible  <bruno@clisp.org>
15506
15507         * modules/sprintf-posix-tests: New file.
15508         * tests/test-sprintf-posix.c: New file.
15509
15510         * modules/sprintf-posix: New file.
15511         * lib/sprintf.c: New file.
15512         * m4/sprintf-posix.m4: New file.
15513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15514         REPLACE_SPRINTF.
15515         * lib/stdio_.h (sprintf): New declaration.
15516         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15517         REPLACE_SPRINTF.
15518
15519 2007-03-06  Bruno Haible  <bruno@clisp.org>
15520
15521         * modules/vsprintf-posix-tests: New file.
15522         * tests/test-vsprintf-posix.c: New file.
15523         * tests/test-sprintf-posix.h: New file.
15524
15525         * modules/vsprintf-posix: New file.
15526         * lib/vsprintf.c: New file.
15527         * m4/vsprintf-posix.m4: New file.
15528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15529         REPLACE_VSPRINTF.
15530         * lib/stdio_.h (vsprintf): New declaration.
15531         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15532         REPLACE_VSPRINTF.
15533
15534 2007-03-06  Bruno Haible  <bruno@clisp.org>
15535
15536         * modules/vsnprintf (Depend-on): Remove minmax.
15537
15538 2007-03-06  Bruno Haible  <bruno@clisp.org>
15539
15540         * modules/snprintf-posix-tests: New file.
15541         * tests/test-snprintf-posix.c: New file.
15542
15543         * modules/snprintf-posix: New file.
15544         * m4/snprintf-posix.m4: New file.
15545         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15546         gl_FUNC_SNPRINTF.
15547         (gl_FUNC_SNPRINTF): Invoke it.
15548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15549         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15550         is set.
15551         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15552
15553 2007-03-06  Bruno Haible  <bruno@clisp.org>
15554
15555         * modules/vsnprintf-posix-tests: New file.
15556         * tests/test-vsnprintf-posix.c: New file.
15557         * tests/test-snprintf-posix.h: New file.
15558
15559         * modules/vsnprintf-posix: New file.
15560         * m4/vsnprintf-posix.m4: New file.
15561         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15562         gl_FUNC_VSNPRINTF.
15563         (gl_FUNC_VSNPRINTF): Invoke it.
15564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15565         * lib/stdio_.h (vsnprintf): Define as a replacement if
15566         REPLACE_VSNPRINTF is set.
15567         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15568
15569 2007-03-06  Bruno Haible  <bruno@clisp.org>
15570
15571         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15573
15574 2007-03-06  Bruno Haible  <bruno@clisp.org>
15575
15576         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15577         (asinl): Declare also if HAVE_DECL_ASINL is set.
15578         (atanl): Declare also if HAVE_DECL_ATANL is set.
15579         (ceill): Declare also if HAVE_DECL_CEILL is set.
15580         (cosl): Declare also if HAVE_DECL_COSL is set.
15581         (expl): Declare also if HAVE_DECL_EXPL is set.
15582         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15583         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15584         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15585         (logl): Declare also if HAVE_DECL_LOGL is set.
15586         (sinl): Declare also if HAVE_DECL_SINL is set.
15587         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15588         (tanl): Declare also if HAVE_DECL_TANL is set.
15589         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15591         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15592         declaration of frexpl, ldexpl.
15593         * modules/printf-frexpl (Depends-on): Add math.
15594         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15595
15596 2007-03-05  Bruno Haible  <bruno@clisp.org>
15597
15598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15599         frexpl and ldexpl are declared.
15600         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15601
15602 2007-03-05  Bruno Haible  <bruno@clisp.org>
15603
15604         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15605         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15606
15607 2007-03-05  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/stdio_.h: Include <stddef.h>.
15610
15611 2007-03-05  Bruno Haible  <bruno@clisp.org>
15612
15613         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15614
15615 2007-03-05  Bruno Haible  <bruno@clisp.org>
15616
15617         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15618         NetBSD 4, from Ralf Wildenhues.
15619
15620 2007-03-04  Bruno Haible  <bruno@clisp.org>
15621
15622         * lib/vasprintf.h: Update #if logic for the case when the functions
15623         exist but are overridden.
15624
15625 2007-03-04  Bruno Haible  <bruno@clisp.org>
15626
15627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15628         implementations: glibc-2.4 and MacOS X 10.3.
15629         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15630         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15631         * tests/test-vasprintf-posix.c (test_function): Likewise.
15632
15633 2007-03-04  Bruno Haible  <bruno@clisp.org>
15634
15635         * modules/vasprintf-posix-tests: New file.
15636         * tests/test-vasprintf-posix.c: New file.
15637
15638         * modules/vasprintf-posix: New file.
15639         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15640         defined.
15641         * m4/vasprintf-posix.m4: New file.
15642         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15643         gl_FUNC_VASPRINTF.
15644         (gl_FUNC_VASPRINTF): Invoke it.
15645         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15646         here.
15647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15648
15649 2007-03-04  Bruno Haible  <bruno@clisp.org>
15650
15651         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15652         REPLACE_GETTIMEOFDAY.
15653         * modules/sys_time (Makefile.am): Likewise.
15654         * m4/sys_time_h.m4: Likewise.
15655         * m4/gettimeofday.m4: Likewise.
15656
15657 2007-03-04  Bruno Haible  <bruno@clisp.org>
15658
15659         * modules/vasnprintf-posix-tests: New file.
15660         * tests/test-vasnprintf-posix.c: New file.
15661
15662         * modules/vasnprintf-posix: New file.
15663         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15664         printf-frexpl.h.
15665         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15666         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15667         REPLACE_VASNPRINTF is defined.
15668         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15669         gl_FUNC_VASNPRINTF.
15670         (gl_FUNC_VASNPRINTF): Invoke it.
15671         * m4/vasnprintf-posix.m4: New file.
15672         * m4/printf.m4: New file.
15673
15674 2007-03-04  Bruno Haible  <bruno@clisp.org>
15675
15676         Compile progreloc.c only if --enable-relocatable is specified.
15677         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15678         if --enable-relocatable was specified.
15679         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15680         lib_SOURCES.
15681
15682 2007-03-04  Jim Meyering  <jim@meyering.net>
15683
15684         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15685         Use it consistently, rather than enumerating errno constants.
15686
15687 2007-03-04  Bruno Haible  <bruno@clisp.org>
15688
15689         * modules/xvasprintf-tests: New file.
15690         * tests/test-xvasprintf.c: New file.
15691
15692         * modules/vasprintf-tests: New file.
15693         * tests/test-vasprintf.c: New file.
15694
15695         * modules/vasnprintf-tests: New file.
15696         * tests/test-vasnprintf.c: New file.
15697
15698         * modules/vsnprintf-tests: New file.
15699         * tests/test-vsnprintf.c: New file.
15700
15701         * modules/snprintf-tests: New file.
15702         * tests/test-snprintf.c: New file.
15703
15704 2007-03-04  Bruno Haible  <bruno@clisp.org>
15705
15706         Compile relocatable.c only if --enable-relocatable is specified.
15707         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15708         gl_RELOCATABLE_LIBRARY.
15709         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15710         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15711         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15712         gl_RELOCATABLE_LIBRARY.
15713         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15714         (Makefile.am): Remove lib_SOURCES.
15715         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15716         gl_RELOCATABLE_LIBRARY.
15717         (Makefile.am): Remove lib_SOURCES.
15718         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15719         always.
15720         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15721         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15722
15723 2007-03-04  Bruno Haible  <bruno@clisp.org>
15724
15725         * modules/argmatch-tests: New file.
15726         * tests/test-argmatch.c: New file.
15727
15728         * tests/test-allocsa.c (main): Halve the number of loop runs.
15729
15730         * modules/alloca-opt-tests: New file.
15731         * tests/test-alloca-opt.c: New file.
15732
15733 2007-03-04  Jim Meyering  <jim@meyering.net>
15734
15735         Work around difference between Linux ACLs and Solaris 10 ZFS.
15736         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15737         for EINVAL.
15738
15739 2007-03-03  Bruno Haible  <bruno@clisp.org>
15740
15741         * modules/relocatable-prog (Depends-on): Add back progreloc's
15742         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15743
15744 2007-03-03  Bruno Haible  <bruno@clisp.org>
15745
15746         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15747         * modules/relocatable-lib: New file.
15748
15749 2007-03-03  Bruno Haible  <bruno@clisp.org>
15750
15751         * modules/relocatable-prog: Renamed from modules/relocatable.
15752         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15753
15754 2007-03-03  Bruno Haible  <bruno@clisp.org>
15755
15756         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15757         m4/relocatable-lib.m4.
15758         (Depends-on): Remove 'relocatable'.
15759         (configure.ac): Add gl_RELOCATABLE_NOP.
15760
15761 2007-03-03  Bruno Haible  <bruno@clisp.org>
15762
15763         * modules/relocatable-prog-wrapper: New file.
15764         * modules/relocatable (Depends-on): Add it. Remove all other
15765         dependencies except progname.
15766         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15767
15768         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15769         (gl_FUNC_STRERROR): Nop.
15770         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15771
15772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15773         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15774
15775         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15776         (gl_FUNC_READLINK): Update.
15777
15778         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15779
15780 2007-03-03  Bruno Haible  <bruno@clisp.org>
15781
15782         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15783         * modules/xreadlink (Depends-on): Add unistd.
15784         * modules/xreadlink-with-size (Depends-on): Likewise.
15785
15786 2007-03-03  Bruno Haible  <bruno@clisp.org>
15787
15788         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15789         extracted from gt_FUNC_SETENV.
15790         (gt_FUNC_SETENV): Remove macro.
15791         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15792         remove gt_FUNC_SETENV.
15793
15794 2007-03-03  Bruno Haible  <bruno@clisp.org>
15795
15796         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15797         ENABLE_RELOCATABLE here.
15798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15799
15800 2007-03-03  Bruno Haible  <bruno@clisp.org>
15801
15802         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15803         * tests/test-rbtreehash_list.c: Include progname.h.
15804         (main): Call set_program_name.
15805
15806         * modules/rbtree-oset-tests (Depends-on): Add progname.
15807         * tests/test-rbtree_oset.c: Include progname.h.
15808         (main): Call set_program_name.
15809
15810         * modules/rbtree-list-tests (Depends-on): Add progname.
15811         * tests/test-rbtree_list.c: Include progname.h.
15812         (main): Call set_program_name.
15813
15814         * modules/linked-list-tests (Depends-on): Add progname.
15815         * tests/test-linked_list.c: Include progname.h.
15816         (main): Call set_program_name.
15817
15818 2007-03-03  Bruno Haible  <bruno@clisp.org>
15819
15820         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15821         All uses of __restrict changed to _Restrict_.
15822         * lib/glob_.h (__restrict): Remove macro.
15823
15824 2007-03-02  Bruno Haible  <bruno@clisp.org>
15825
15826         * modules/gettext (configure.ac): Require gettext infrastructure
15827         from version 0.16.1.
15828
15829 2007-03-02  Bruno Haible  <bruno@clisp.org>
15830
15831         * modules/linkedhash-list-tests (Depends-on): Add progname.
15832         * tests/test-linkedhash_list.c: Include progname.h.
15833         (main): Call set_program_name.
15834
15835         * modules/carray-list-tests (Depends-on): Add progname.
15836         * tests/test-carray_list.c: Include progname.h.
15837         (main): Call set_program_name.
15838
15839         * modules/avltreehash-list-tests (Depends-on): Add progname.
15840         * tests/test-avltreehash_list.c: Include progname.h.
15841         (main): Call set_program_name.
15842
15843         * modules/avltree-oset-tests (Depends-on): Add progname.
15844         * tests/test-avltree_oset.c: Include progname.h.
15845         (main): Call set_program_name.
15846
15847         * modules/avltree-list-tests (Depends-on): Add progname.
15848         * tests/test-avltree_list.c: Include progname.h.
15849         (main): Call set_program_name.
15850
15851         * modules/array-oset-tests (Depends-on): Add progname.
15852         * tests/test-array_oset.c: Include progname.h.
15853         (main): Call set_program_name.
15854
15855         * modules/array-list-tests (Depends-on): Add progname.
15856         * tests/test-array_list.c: Include progname.h.
15857         (main): Call set_program_name.
15858
15859         * modules/argp-tests (Depends-on): Add progname.
15860         * tests/test-argp.c: Include argp.h first. Include progname.h.
15861         (main): Call set_program_name.
15862
15863 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15864
15865         * doc/gnulib-tool.texi (Initial import): Reword description of
15866         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15867         limited effect even if defined after the first system include.
15868
15869 2007-03-01  Bruno Haible  <bruno@clisp.org>
15870
15871         * build-aux/config.libpath: Update to libtool-1.5.22.
15872         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15873
15874 2007-03-01  Bruno Haible  <bruno@clisp.org>
15875
15876         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15877         foo_CFLAGS.
15878         Reported by Ralf Wildenhues.
15879
15880 2007-03-01  Bruno Haible  <bruno@clisp.org>
15881
15882         * build-aux/install-reloc: Remove object files left over by some
15883         compilers.
15884         Reported by Ralf Wildenhues.
15885
15886 2007-03-01  Bruno Haible  <bruno@clisp.org>
15887
15888         * build-aux/install-reloc: Break long lines.
15889
15890 2007-03-01  Bruno Haible  <bruno@clisp.org>
15891
15892         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15893         Reported by Ralf Wildenhues.
15894
15895 2007-03-01  Bruno Haible  <bruno@clisp.org>
15896
15897         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15898         include ordering constraints.
15899
15900 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15901
15902         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15904         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15905         as another example.
15906         * lib/time_.h: Fix misspelling.
15907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15908         Require gl_HEADER_TIME_H_DEFAULTS.
15909         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15910         * m4/time_r.m4 (gl_TIME_R): Likewise.
15911         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15912
15913 2007-03-01  Bruno Haible  <bruno@clisp.org>
15914
15915         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15916         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15917
15918 2007-03-01  Jim Meyering  <jim@meyering.net>
15919
15920         * modules/xreadlink (Maintainer): Add my name.
15921         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15922
15923 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15924             Bruno Haible  <bruno@clisp.org>
15925
15926         * build-aux/install-reloc: Compile also c-ctype.c.
15927         * build-aux/relocatable.sh.in: New file.
15928         * doc/relocatable.texi: New file.
15929         * doc/relocatable-maint.texi: New file.
15930         * doc/gnulib.texi: Include relocatable-maint.texi.
15931         * lib/progreloc.c: Include unistd.h unconditionally.
15932         * lib/relocwrapper.c: Include unistd.h unconditionally.
15933         Include c-ctype.h.
15934         (add_dotbin): Use c_tolower.
15935         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15936         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15937         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15938         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15939         to m4/relocatable-lib.m4.
15940         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15941         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15942         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15943         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15944         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15945         * modules/relocatable: New file.
15946         * modules/relocatable-lib: New file.
15947         * modules/relocatable-script: New file.
15948
15949 2007-02-28  Bruno Haible  <bruno@clisp.org>
15950
15951         Import --enable-relocatable infrastructure.
15952         * build-aux/config.libpath: New file, from GNU gettext.
15953         * build-aux/install-reloc: New file, from GNU gettext.
15954         * build-aux/reloc-ldflags: New file, from GNU gettext.
15955         * lib/relocatable.h: New file, from GNU gettext.
15956         * lib/relocatable.c: New file, from GNU gettext.
15957         * lib/relocwrapper.c: New file, from GNU gettext.
15958         * m4/relocatable.m4: New file, from GNU gettext.
15959
15960 2007-02-28  Bruno Haible  <bruno@clisp.org>
15961
15962         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15963
15964         * modules/xreadlink: New file, from GNU gettext with modifications.
15965         * lib/xreadlink.c: New file, from GNU gettext.
15966         * lib/xreadlink.h: Add comments.
15967         (xreadlink): New declaration.
15968
15969         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15970         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15971         lib/xreadlink-with-size.c.
15972         (configure.ac): Remove gl_XREADLINK invocation.
15973         (Makefile.am): Augment lib_SOURCES.
15974         * m4/xreadlink.m4: Remove file.
15975         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15976         (xreadlink_with_size): Renamed from xreadink.
15977         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15978         * modules/canonicalize (Depends-on): Replace xreadlink with
15979         xreadlink-with-size.
15980         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15981
15982 2007-02-25  Jim Meyering  <jim@meyering.net>
15983
15984         * build-aux/announce-gen: When complaining about excess arguments,
15985         list them.
15986
15987 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15988
15989         * README: Document signed integer overflow situation more
15990         accurately.
15991
15992 2007-02-25  Bruno Haible  <bruno@clisp.org>
15993
15994         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15995         'a' or 'A' conversion.
15996
15997 2007-02-25  Bruno Haible  <bruno@clisp.org>
15998
15999         * modules/filename: Renamed from modules/pathname.
16000         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16001         lib/concatpath.c with lib/concat-filename.c.
16002         (Makefile.am): Update.
16003         (Include): Replace pathname.h with filename.h.
16004         * lib/filename.h: Renamed from lib/pathname.h.
16005         (concatenated_filename): Renamed from concatenated_pathname.
16006         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16007         (concatenated_filename): Renamed from concatenated_pathname.
16008         * lib/findprog.c: Include filename.h instead of pathname.h.
16009         (find_in_path): Update.
16010         * lib/javacomp.c: Include filename.h instead of pathname.h.
16011         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16012         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16013         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16014         is_oldgcj_14_13_usable, is_javac_usable): Update.
16015         * lib/javaexec.c: Include filename.h instead of pathname.h.
16016         (execute_java_class): Update.
16017         * modules/findprog: Update.
16018         * modules/javacomp: Update.
16019         * modules/javaexec: Update.
16020         * MODULES.html.sh (File system functions): Add 'filename', remove
16021         'pathname'.
16022
16023 2007-02-25  Bruno Haible  <bruno@clisp.org>
16024
16025         * modules/printf-frexpl-tests: New file.
16026         * tests/test-printf-frexpl.c: New file.
16027
16028         * modules/printf-frexpl: New file.
16029         * lib/printf-frexpl.h: New file.
16030         * lib/printf-frexpl.c: New file.
16031         * m4/printf-frexpl.m4: New file.
16032
16033 2007-02-25  Bruno Haible  <bruno@clisp.org>
16034
16035         * modules/printf-frexp-tests: New file.
16036         * tests/test-printf-frexp.c: New file.
16037
16038         * modules/printf-frexp: New file.
16039         * lib/printf-frexp.h: New file.
16040         * lib/printf-frexp.c: New file.
16041         * m4/printf-frexp.m4: New file.
16042
16043 2007-02-25  Bruno Haible  <bruno@clisp.org>
16044
16045         Assume automake >= 1.10 for the tests.
16046         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
16047         * modules/arctwo-tests: Likewise.
16048         * modules/argp-tests: Likewise.
16049         * modules/avltree-list-tests: Likewise.
16050         * modules/avltree-oset-tests: Likewise.
16051         * modules/avltreehash-list-tests: Likewise.
16052         * modules/carray-list-tests: Likewise.
16053         * modules/crc-tests: Likewise.
16054         * modules/des-tests: Likewise.
16055         * modules/gc-arcfour-tests: Likewise.
16056         * modules/gc-arctwo-tests: Likewise.
16057         * modules/gc-des-tests: Likewise.
16058         * modules/gc-hmac-md5-tests: Likewise.
16059         * modules/gc-hmac-sha1-tests: Likewise.
16060         * modules/gc-md2-tests: Likewise.
16061         * modules/gc-md4-tests: Likewise.
16062         * modules/gc-md5-tests: Likewise.
16063         * modules/gc-pbkdf2-sha1-tests: Likewise.
16064         * modules/gc-rijndael-tests: Likewise.
16065         * modules/gc-sha1-tests: Likewise.
16066         * modules/gc-tests: Likewise.
16067         * modules/getaddrinfo-tests: Likewise.
16068         * modules/hmac-md5-tests: Likewise.
16069         * modules/hmac-sha1-tests: Likewise.
16070         * modules/linked-list-tests: Likewise.
16071         * modules/linkedhash-list-tests: Likewise.
16072         * modules/lock-tests: Likewise.
16073         * modules/md2-tests: Likewise.
16074         * modules/md4-tests: Likewise.
16075         * modules/md5-tests: Likewise.
16076         * modules/rbtree-list-tests: Likewise.
16077         * modules/rbtree-oset-tests: Likewise.
16078         * modules/rbtreehash-list-tests: Likewise.
16079         * modules/read-file-tests: Likewise.
16080         * modules/rijndael-tests: Likewise.
16081         * modules/stdint-tests: Likewise.
16082         * modules/tls-tests: Likewise.
16083
16084 2007-02-24  Bruno Haible  <bruno@clisp.org>
16085
16086         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16087         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16088         function; instead check whether isnan with a double argument links.
16089         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16090         function; instead check whether isnan with a 'long double' argument
16091         links.
16092         Reported by Eric Blake <ebb9@byu.net>.
16093
16094 2007-02-24  Bruno Haible  <bruno@clisp.org>
16095
16096         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16097         defined.
16098         * lib/isnanl.c: Remove all code. Just include isnan.c.
16099         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16100
16101 2007-02-25  Jim Meyering  <jim@meyering.net>
16102
16103         Avoid conflicting types for 'unsetenv' on FreeBSD.
16104         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16105         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16106         in stdlib.h.
16107
16108 2007-02-24  Bruno Haible  <bruno@clisp.org>
16109
16110         * modules/isnanl-nolibm-tests: New file.
16111         * tests/test-isnanl.c: New file.
16112
16113         * modules/isnanl-nolibm: New file.
16114         * lib/isnanl.h: New file.
16115         * lib/isnanl.c: New file.
16116         * m4/isnanl.m4: New file.
16117
16118 2007-02-24  Bruno Haible  <bruno@clisp.org>
16119
16120         * modules/isnan-nolibm-tests: New file.
16121         * tests/test-isnan.c: New file.
16122
16123         * modules/isnan-nolibm: New file.
16124         * lib/isnan.h: New file.
16125         * lib/isnan.c: New file.
16126         * m4/isnan.m4: New file.
16127
16128 2007-02-24  Bruno Haible  <bruno@clisp.org>
16129
16130         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16131         assume that an exponent fits in 20 bits.
16132
16133 2007-02-24  Jim Meyering  <jim@meyering.net>
16134
16135         * m4/regex.m4: Update the description of the configure-time option,
16136         --without-included-regex, to state accurately what the defaults are,
16137         and perhaps to give people an idea why using this option is risky.
16138
16139 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16140
16141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16142         loops on small arguments.  This attempts to avoid the problem
16143         Bruno Haible reported for AIX 4.3.2 in
16144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16145
16146 2007-02-23  Bruno Haible  <bruno@clisp.org>
16147
16148         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16149         Needed for help2man.
16150
16151 2007-02-23  Karl Berry  <karl@gnu.org>
16152
16153         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16154         exists, foo.h should be cvs-ignored, not committed.
16155
16156 2007-02-23  Eric Blake  <ebb9@byu.net>
16157
16158         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16159         * lib/stat-time.h (includes): Likewise.
16160         * lib/utimecmp.c (includes): Likewise.
16161         * lib/utimens.h (includes): Likewise.
16162         * lib/getdate.y (includes): Also include "timespec.h" for use
16163         internal to the module.
16164         * modules/utimens (Depends-on): Revert yesterday's patch.
16165         * modules/nanosleep (Depends-on): Add missing dependency.
16166
16167 2007-02-22  Bruno Haible  <bruno@clisp.org>
16168
16169         * lib/glob.c: Don't include getlogin_r.h.
16170
16171 2007-02-22  Jim Meyering  <jim@meyering.net>
16172
16173         * modules/utimens (Depends-on): Add timespec, required for
16174         utimens.h's inclusion of timespec.h.
16175
16176 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16177
16178         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16179         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16180         Schwab in
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16182         I'll try to think of a better way to fix the Solaris problem.
16183
16184         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16185         like glibc; on Solaris 10, it fails with errno == EINVAL.
16186         POSIX says the behavior is unspecified if the first argument is NULL,
16187         so play it safe and never pass NULL to the system getcwd.
16188
16189 2007-02-21  Jim Meyering  <jim@meyering.net>
16190
16191         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16192         of gettimeofday.  It would conflict with the one now always
16193         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16194         an IRIX 6.5 build failure.
16195
16196 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16197
16198         Minor fixups to port to Solaris 10 with Sun C 5.8.
16199         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16200         * modules/getcwd (Depends-on): Add dirfd.
16201         * lib/putenv.c (putenv): #undef it.
16202         (rpl_putenv): New decl.
16203         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16204
16205 2007-02-20  Bruno Haible  <bruno@clisp.org>
16206
16207         * modules/stdio-tests: New file.
16208         * tests/test-stdio.c: New file.
16209
16210         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16211         (Depends-on): Add stdio.
16212         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16213         (Include): Use <stdio.h> instead of vsnprintf.h.
16214         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16215         HAVE_DECL_VSNPRINTF.
16216         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16217
16218         * modules/snprintf (Files): Remove lib/snprintf.h.
16219         (Depends-on): Add stdio.
16220         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16221         (Include): Use <stdio.h> instead of snprintf.h.
16222         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16223         HAVE_DECL_SNPRINTF.
16224         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16225         * lib/getaddrinfo.c: Likewise.
16226
16227         * modules/stdio: New file.
16228         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16229         * lib/snprintf.h: Remove file.
16230         * lib/vsnprintf.h: Remove file.
16231         * lib/.cppi-disable: Remove snprintf.h.
16232         * m4/stdio_h.m4: New file.
16233         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16234
16235 2007-02-20  Jim Meyering  <jim@meyering.net>
16236
16237         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16238         used by e.g., mingw.  From Bruno Haible.
16239
16240 2007-02-19  Bruno Haible  <bruno@clisp.org>
16241
16242         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16243         warnings.
16244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16245
16246 2007-02-19  Bruno Haible  <bruno@clisp.org>
16247
16248         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16249         from mingw users.
16250
16251 2007-02-19  Bruno Haible  <bruno@clisp.org>
16252
16253         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16254         warnings.
16255         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16256
16257 2007-02-19  Jim Meyering  <jim@meyering.net>
16258
16259         Don't use FD after a successful "fdopendir (fd)".
16260         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16261         Reset it by calling dirfd on the just-obtained DIR*.
16262
16263         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16264         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16265
16266 2007-02-18  Bruno Haible  <bruno@clisp.org>
16267
16268         * lib/readlink.c: Include <unistd.h>.
16269         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16270         HAVE_READLINK.
16271         * modules/readlink (Depends-on): Add unistd.
16272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16273         (Include): Add <unistd.h>.
16274
16275         * lib/getlogin_r.h: Remove file.
16276         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16277         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16278         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16279         HAVE_DECL_GETLOGIN_R.
16280         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16282         (Include): Use <unistd.h> instead of getlogin_r.h.
16283
16284         * lib/getcwd.h: Remove file.
16285         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16286         * lib/xgetcwd.c: Likewise.
16287         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16288         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16289         * modules/getcwd (Files): Remove lib/getcwd.h.
16290         (Depends-on): Add unistd.
16291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16292         (Include): Use <unistd.h> instad of getcwd.h.
16293
16294         * lib/ftruncate.c: Include <unistd.h> first.
16295         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16296         Set HAVE_FTRUNCATE.
16297         * modules/ftruncate (Depends-on): Add unistd.
16298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16299
16300         * lib/fchdir.c: Include <unistd.h> first.
16301         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16303         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16304         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16305         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16306
16307         * lib/dup2.c: Include <unistd.h> first.
16308         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16309         HAVE_DUP2.
16310         * modules/dup2 (Depends-on): Add unistd.
16311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16312
16313         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16314         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16315         REPLACE_CHOWN. Don't define chown as a macro here.
16316         * modules/chown (Depends-on): Add unistd.
16317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16318
16319         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16320         Add definition for GL_LINK_WARNING.
16321         (chown, dup2): New declarations.
16322         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16323         link warning.
16324         (ftruncate): New declaration.
16325         (getcwd): New declaration, taken from old getcwd.h.
16326         (getlogin_r): New declaration, taken from old getlogin_r.h.
16327         (readlink): New declaration.
16328         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16329         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16330         (gl_PREREQ_UNISTD): Remove macro.
16331         (gl_UNISTD_MODULE_INDICATOR): New macro.
16332         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16333         many new variables. Don't set UNISTD_H.
16334         * modules/unistd (Description): Change.
16335         (Depends-on): Add link-warning.
16336         (configure.ac): Update.
16337         (Makefile.am): Create unistd.h always. Substitute many new variables
16338         into it.
16339
16340 2007-02-18  Bruno Haible  <bruno@clisp.org>
16341
16342         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16343         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16344         HAVE_GETSUBOPT.
16345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16346         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16347         * lib/getsubopt.h: Remove file.
16348         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16349         (Depends-on): Add stdlib.
16350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16351         (Includes): Use <stdlib.h> instead of getsubopt.h.
16352         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16353         Set HAVE_GETSUBOPT.
16354         * lib/getsubopt.c: Don't include getsubopt.h.
16355
16356 2007-02-18  Bruno Haible  <bruno@clisp.org>
16357
16358         * modules/fchdir (Depends-on): Add dup2.
16359
16360 2007-02-18  Bruno Haible  <bruno@clisp.org>
16361
16362         * lib/stdlib_.h: Handle glibc's special invocation convention
16363         specially.
16364
16365 2007-02-18  Bruno Haible  <bruno@clisp.org>
16366
16367         * modules/stdlib-tests: New file.
16368         * tests/test-stdlib.c: New file.
16369
16370         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16371         (Depends-on): Add stdlib.
16372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16373         (Includes): Use <stdlib.h> instead of mkstemp.h.
16374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16375         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16376         * lib/mkstemp.c: Don't include mkstemp.h.
16377         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16378         * lib/stdlib--.h: Don't include mkstemp.h.
16379
16380         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16381         (Depends-on): Add stdlib.
16382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16383         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16384         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16385         HAVE_MKDTEMP.
16386         * lib/mkdtemp.c: Don't include mkdtemp.h.
16387         * lib/clean-temp.c: Don't include mkdtemp.h.
16388
16389         * modules/exit (Files): Remove lib/exit.h.
16390         (Depends-on): Add stdlib.
16391         (Makefile.am): Remove lib_SOURCES.
16392         (Include): Use <stdlib.h> instead of exit.h.
16393         * lib/argmatch.c: Don't include exit.h.
16394         * lib/execute.c: Likewise.
16395         * lib/pagealign_alloc.c: Likewise.
16396         * lib/pipe.c: Likewise.
16397         * lib/wait-process.c: Likewise.
16398         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16399         * lib/exitfail.c: Likewise.
16400         * lib/savewd.c: Likewise.
16401         * lib/xsetenv.c: Likewise.
16402
16403         * modules/stdlib: New file.
16404         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16405         and extra comments about mkstemp().
16406         * lib/exit.h: Remove file.
16407         * lib/mkdtemp.h: Remove file.
16408         * lib/mkstemp.h: Remove file.
16409         * m4/stdlib_h.m4: New file.
16410         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16411
16412 2007-02-18  Bruno Haible  <bruno@clisp.org>
16413
16414         * modules/math-tests: New file.
16415         * tests/test-math.c: New file.
16416
16417         * modules/math: New file.
16418         * modules/mathl (Files): Remove lib/mathl.h.
16419         (Depends-on): Add math.
16420         (Makefile.am): Don't mention mathl.h.
16421         (Include): Use <math.h> instead of mathl.h.
16422         * lib/math_.h: New file.
16423         * lib/mathl.h: Remove file.
16424         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16425         mathl.h.
16426         * lib/asinl.c: Likewise.
16427         * lib/atanl.c: Likewise.
16428         * lib/ceill.c: Likewise.
16429         * lib/cosl.c: Likewise.
16430         * lib/expl.c: Likewise.
16431         * lib/floorl.c: Likewise.
16432         * lib/frexpl.c: Likewise.
16433         * lib/ldexpl.c: Likewise.
16434         * lib/logl.c: Likewise.
16435         * lib/sincosl.c: Likewise.
16436         * lib/sinl.c: Likewise.
16437         * lib/sqrtl.c: Likewise.
16438         * lib/tanl.c: Likewise.
16439         * lib/trigl.c: Likewise.
16440         * m4/math_h.m4: New file.
16441         * MODULES.html.sh (Mathematics): Add math.
16442
16443 2007-02-17  Bruno Haible  <bruno@clisp.org>
16444
16445         * modules/wctype-tests: New file.
16446         * tests/test-wctype.c: New file.
16447
16448         * modules/wchar-tests: New file.
16449         * tests/test-wchar.c: New file.
16450
16451         * modules/unistd-tests: New file.
16452         * tests/test-unistd.c: New file.
16453
16454         * modules/time-tests: New file.
16455         * tests/test-time.c: New file.
16456
16457         * modules/sysexits-tests: New file.
16458         * tests/test-sysexits.c: New file.
16459
16460         * modules/sys_time-tests: New file.
16461         * tests/test-sys_time.c: New file.
16462
16463         * modules/sys_stat-tests: New file.
16464         * tests/test-sys_stat.c: New file.
16465
16466         * modules/sys_socket-tests: New file.
16467         * tests/test-sys_socket.c: New file.
16468
16469         * modules/sys_select-tests: New file.
16470         * tests/test-sys_select.c: New file.
16471
16472         * modules/string-tests: New file.
16473         * tests/test-string.c: New file.
16474
16475         * modules/stdbool-tests: New file.
16476         * tests/test-stdbool.c: New file.
16477
16478         * modules/netinet_in-tests: New file.
16479         * tests/test-netinet_in.c: New file.
16480
16481         * modules/inttypes-tests: New file.
16482         * tests/test-inttypes.c: New file.
16483
16484         * modules/fcntl-tests: New file.
16485         * tests/test-fcntl.c: New file.
16486
16487         * modules/byteswap-tests: New file.
16488         * tests/test-byteswap.c: New file.
16489
16490         * modules/arpa_inet-tests: New file.
16491         * tests/test-arpa_inet.c: New file.
16492
16493 2007-02-17  Bruno Haible  <bruno@clisp.org>
16494
16495         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16496         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16497         if the corresponding module is not enabled. Emit link warnings if
16498         the function is used nevertheless.
16499         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16500         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16501         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16502         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16503         * modules/inttypes (Depends-on): Add link-warning.
16504         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16505         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16506         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16507         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16508         * modules/imaxdiv (configure.ac): Likewise.
16509         * modules/strtoimax (configure.ac): Likewise.
16510         * modules/strtoumax (configure.ac): Likewise.
16511
16512 2007-02-17  Bruno Haible  <bruno@clisp.org>
16513
16514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16515         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16517         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16518
16519 2007-02-17  Bruno Haible  <bruno@clisp.org>
16520
16521         * modules/link-warning: New file.
16522         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16523         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16524         * modules/string (Depends-on): Add link-warning.
16525         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16526         string.h.
16527         * MODULES.html.sh (Support for building libraries and executables): Add
16528         link-warning.
16529
16530 2007-02-17  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16533         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16534         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16535         long lines.
16536
16537 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16538             Bruno Haible  <bruno@clisp.org>
16539
16540         * modules/tmpfile: New file.
16541         * lib/tmpfile.c: New file.
16542         * m4/tmpfile.m4: New file.
16543         * MODULES.html.sh (func_all_modules): New section "Input/output".
16544
16545 2007-02-15  Bruno Haible  <bruno@clisp.org>
16546
16547         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16548         (supports_delete_on_close): New function.
16549         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16550
16551 2007-02-14  Bruno Haible  <bruno@clisp.org>
16552
16553         * modules/mbspcasecmp-tests: New file.
16554         * tests/test-mbspcasecmp.sh: New file.
16555         * tests/test-mbspcasecmp.c: New file.
16556
16557         New module mbspcasecmp.
16558         * modules/mbspcasecmp: New file.
16559         * lib/mbspcasecmp.c: New file.
16560         * lib/string_.h (strncasecmp): Change warning message.
16561         (mbspcasecmp): New declaration.
16562         * m4/mbspcasecmp.m4: New file.
16563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16564         GNULIB_MBSPCASECMP.
16565         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16566         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16567
16568 2007-02-14  Bruno Haible  <bruno@clisp.org>
16569
16570         * modules/mbsncasecmp-tests: New file.
16571         * tests/test-mbsncasecmp.sh: New file.
16572         * tests/test-mbsncasecmp.c: New file.
16573
16574         New module mbsncasecmp.
16575         * modules/mbsncasecmp: New file.
16576         * lib/mbsncasecmp.c: New file.
16577         * lib/string_.h (mbsncasecmp): New declaration.
16578         * m4/mbsncasecmp.m4: New file.
16579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16580         GNULIB_MBSNCASECMP.
16581         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16582         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16583
16584 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16585
16586         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16587         Verify that it doesn't overlap with our flags.
16588         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16589         do not have the desired effect in multibyte locales; instead, use
16590         mbscasecmp.
16591         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16592         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16593         we don't require GNU fnmatch ourselves (if our users require it, they
16594         should do so explicitly).
16595
16596         Fix regex code so it doesn't rely on strcasecmp.
16597         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16598         Otherwise, include gnulib's langinfo.h.
16599         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16600         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16602         * modules/regex (FILES): Remove m4/codeset.m4.
16603         (Depends-on): Add localcharset.  Remove strcase.
16604
16605 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16606
16607         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16608         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16609
16610 2007-02-13  Bruno Haible  <bruno@clisp.org>
16611
16612         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16614
16615 2007-02-12  Bruno Haible  <bruno@clisp.org>
16616
16617         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16618         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16619         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16620         time warning rather than a link error.
16621
16622 2007-02-12  Bruno Haible  <bruno@clisp.org>
16623
16624         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16625         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16627
16628 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16629
16630         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16631         args, not 2.
16632
16633 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16634
16635         New module 'time', so that apps can include <time.h> as per
16636         POSIX and GNU instead of separate include files like time_r.h
16637         and timegm.h.  This implementation tries out a simpler approach
16638         for replacing decls in standard include files (as compared to
16639         the string module), somewhat as an experiment.
16640
16641         * config/srclist.txt: Comment out mktime.c for now.
16642         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16643         since it doesn't apply any more.  Use generic wording instead.
16644         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16645         'time'.
16646         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16647         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16648         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16649         Don't include <sys/types.h>; no longer needed since we assume C89.
16650         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16651         * lib/strftime.c: Likewise.
16652         * lib/time_r.c: Likewise.
16653         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16654         * lib/nanosleep.c: Include <time.h> first, to check interface.
16655         * lib/strptime.c: Likewise.
16656         * lib/time_r.c: Likewise.
16657         * lib/timegm.c: Likewise.
16658         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16659         needed.
16660         * lib/timegm.c: Don't include timegm.h; no longer needed.
16661         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16662         time.h now handles any problems in that area.
16663         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16664         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16665         that time.h defines struct timespec.
16666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16667         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16668         handles that.
16669         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16670         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16671         needed.  Set REPLACE_LOCALTIME.
16672         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16673         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16674         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16675         nanosleep; time_h.m4 now does that.  Don't require
16676         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16677         module handles this now.
16678         * modules/getdate (Depends-on): Remove timespec.  Add time.
16679         * modules/nanosleep (Depends-on): Likewise.
16680         * modules/stat-time (Depends-on): Likewise.
16681         * modules/nanosleep (Include): Include time.h, not timespec.h.
16682         * modules/strptime (Files): Remove lib/strptime.h.
16683         (Depends-on): Add extensions, time.
16684         (Include): Include time.h, not strptime.h.
16685         * modules/time_r (Files): Remove lib/time_r.h.
16686         (Depends-on): Add time.
16687         (Include): Include time.h, not time_r.h.
16688         * modules/timegm: Likewise.
16689         * modules/timespec (Description): Now does timespec-related decls
16690         of our own, instead of struct timespec itself.
16691         (Depends-on): Add time; remove extensions.
16692         (Maintainer): Add self.
16693         * modules/utimecmp (Depends-on): Add time; remove timespec.
16694         * modules/utimens (Depends-on): Likewise.
16695         * modules/xnanosleep (Depends-on): Likewise.
16696
16697 2007-02-11  Bruno Haible  <bruno@clisp.org>
16698
16699         * lib/c-strstr.c: Include allocsa.h.
16700         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16701         * lib/c-strcasestr.c: Include allocsa.h.
16702         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16703         * lib/strcasestr.c: Include allocsa.h.
16704         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16705         * lib/mbsstr.c: Include allocsa.h.
16706         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16707         allocsa/freesa instead of malloc/free.
16708         * lib/mbscasestr.c: Include allocsa.h.
16709         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16710         allocsa/freesa instead of malloc/free.
16711         * modules/c-strstr (Depends-on): Add allocsa.
16712         * modules/c-strcasestr (Depends-on): Likewise.
16713         * modules/strcasestr (Depends-on): Likewise.
16714         * modules/mbsstr (Depends-on): Likewise.
16715         * modules/mbscasestr (Depends-on): Likewise.
16716
16717 2007-02-11  Bruno Haible  <bruno@clisp.org>
16718
16719         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16720
16721         * modules/mbsspn-tests: New file.
16722         * tests/test-mbsspn.sh: New file.
16723         * tests/test-mbsspn.c: New file.
16724
16725 2007-02-11  Bruno Haible  <bruno@clisp.org>
16726
16727         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16728
16729         * modules/mbspbrk-tests: New file.
16730         * tests/test-mbspbrk.sh: New file.
16731         * tests/test-mbspbrk.c: New file.
16732
16733 2007-02-11  Bruno Haible  <bruno@clisp.org>
16734
16735         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16736         unneeded cast.
16737
16738         * modules/mbscspn-tests: New file.
16739         * tests/test-mbscspn.sh: New file.
16740         * tests/test-mbscspn.c: New file.
16741
16742 2007-02-11  Bruno Haible  <bruno@clisp.org>
16743
16744         * modules/mbscasecmp-tests: New file.
16745         * tests/test-mbscasecmp.sh: New file.
16746         * tests/test-mbscasecmp.c: New file.
16747
16748 2007-02-11  Bruno Haible  <bruno@clisp.org>
16749
16750         Ensure O(n) worst-case complexity of mbscasestr.
16751         * lib/mbscasestr.c: Include stdbool.h.
16752         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16753         functions.
16754         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16755         the bookkeeping indicates that it's worth it.
16756         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16757
16758         * modules/mbscasestr-tests: New file.
16759         * tests/test-mbscasestr1.c: New file.
16760         * tests/test-mbscasestr2.sh: New file.
16761         * tests/test-mbscasestr2.c: New file.
16762         * tests/test-mbscasestr3.sh: New file.
16763         * tests/test-mbscasestr3.c: New file.
16764         * tests/test-mbscasestr4.sh: New file.
16765         * tests/test-mbscasestr4.c: New file.
16766         * m4/locale-tr.m4: New file.
16767
16768 2007-02-11  Bruno Haible  <bruno@clisp.org>
16769
16770         Ensure O(n) worst-case complexity of mbsstr.
16771         * lib/mbsstr.c: Include stdbool.h.
16772         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16773         functions.
16774         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16775         bookkeeping indicates that it's worth it.
16776         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16777
16778         * modules/mbsstr-tests: New file.
16779         * tests/test-mbsstr1.c: New file.
16780         * tests/test-mbsstr2.sh: New file.
16781         * tests/test-mbsstr2.c: New file.
16782         * tests/test-mbsstr3.sh: New file.
16783         * tests/test-mbsstr3.c: New file.
16784         * m4/locale-fr.m4: New file.
16785
16786 2007-02-11  Bruno Haible  <bruno@clisp.org>
16787
16788         * lib/mbsrchr.c (mbsrchr): Fix bug.
16789
16790         * modules/mbsrchr-tests: New file.
16791         * tests/test-mbsrchr.sh: New file.
16792         * tests/test-mbsrchr.c: New file.
16793
16794 2007-02-11  Bruno Haible  <bruno@clisp.org>
16795
16796         * lib/mbschr.c (mbschr): Fix bug.
16797
16798         * modules/mbschr-tests: New file.
16799         * tests/test-mbschr.sh: New file.
16800         * tests/test-mbschr.c: New file.
16801         * m4/locale-zh.m4: New file.
16802
16803 2007-02-11  Bruno Haible  <bruno@clisp.org>
16804
16805         Support for copying multibyte string iterators.
16806         * lib/mbiter.h: Include <string.h>.
16807         (mbiter_multi_copy): New function.
16808         (mbi_copy): New macro.
16809         * lib/mbuiter.h: Include <string.h>.
16810         (mbuiter_multi_copy): New function.
16811         (mbui_copy): New macro.
16812
16813 2007-02-11  Bruno Haible  <bruno@clisp.org>
16814
16815         New module mbslen.
16816         * modules/mbslen: New file.
16817         * lib/mbslen.c: New file.
16818         * lib/string_.h (mbslen): New declaration.
16819         * m4/mbslen.m4: New file.
16820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16821         GNULIB_MBSLEN.
16822         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16823         * MODULES.html.sh (Internationalization functions): Add mbslen.
16824
16825 2007-02-11  Bruno Haible  <bruno@clisp.org>
16826
16827         Ensure O(n) worst-case complexity of strcasestr substitute.
16828         * lib/strcasestr.c: Include stdbool.h.
16829         (knuth_morris_pratt): New function.
16830         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16831         bookkeeping indicates that it's worth it.
16832         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16833
16834         * modules/strcasestr-tests: New file.
16835         * tests/test-strcasestr.c: New file.
16836
16837 2007-02-11  Bruno Haible  <bruno@clisp.org>
16838
16839         Ensure O(n) worst-case complexity of c_strcasestr.
16840         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16841         (knuth_morris_pratt): New function.
16842         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16843         the bookkeeping indicates that it's worth it.
16844         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16845
16846         * modules/c-strcasestr-tests: New file.
16847         * tests/test-c-strcasestr.c: New file.
16848
16849 2007-02-11  Bruno Haible  <bruno@clisp.org>
16850
16851         Ensure O(n) worst-case complexity of c_strstr.
16852         * lib/c-strstr.c: Include stdbool.h, string.h.
16853         (knuth_morris_pratt): New function.
16854         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16855         bookkeeping indicates that it's worth it.
16856         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16857
16858         * lib/c-strstr.c: Complete rewrite for maintainability.
16859
16860         * modules/c-strstr-tests: New file.
16861         * tests/test-c-strstr.c: New file.
16862
16863 2007-02-11  Bruno Haible  <bruno@clisp.org>
16864
16865         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16866         5.2.1 and earlier, whereby \055 was treated just like the range
16867         delimiter '-'.
16868         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16869
16870 2007-02-08  Bruno Haible  <bruno@clisp.org>
16871
16872         * modules/regex (Depends-on): Add stdbool.
16873         Reported by Dalibor Topic <robilad@kaffe.org>.
16874
16875 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16876
16877         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16878         Prefer returning from main to exiting from it.
16879         Remove unnecessary parens after sizeof.
16880
16881 2007-02-05  Bruno Haible  <bruno@clisp.org>
16882
16883         New module mbssep.
16884         * modules/mbssep: New file.
16885         * lib/mbssep.c: New file.
16886         * lib/string_.h (strsep): Add a conditional link warning.
16887         (mbssep): New declaration.
16888         * m4/mbssep.m4: New file.
16889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16890         GNULIB_MBSSEP.
16891         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16892         * MODULES.html.sh (Internationalization functions): Add mbssep.
16893
16894 2007-02-05  Bruno Haible  <bruno@clisp.org>
16895
16896         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16897         Optimize search in case of 1 delimiter.
16898
16899 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16900
16901         * lib/acl.h: Include sys/types.h before sys/acl.h.
16902
16903 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16904
16905         Merge upstream fix for glibc bugzilla #3957:
16906
16907         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16908
16909         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16910         bit for RE_HAT_LISTS_NOT_NEWLINE.
16911         (build_charclass_op): Remove bogus comment.
16912
16913 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16914
16915         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16916
16917 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16920         * lib/memmem.c [!defined _LIBC]: Include config.h.
16921
16922 2007-02-04  Bruno Haible  <bruno@clisp.org>
16923
16924         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16925         warning message.
16926
16927 2007-02-04  Bruno Haible  <bruno@clisp.org>
16928
16929         New module mbstok_r.
16930         * modules/mbstok_r: New file.
16931         * lib/mbstok_r.c: New file.
16932         * lib/string_.h (strtok_r): Change argument names to match the
16933         comments. Add a conditional link warning.
16934         (mbstok_r): New declaration.
16935         * m4/mbstok_r.m4: New file.
16936         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16937         GNULIB_MBSTOK_R.
16938         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16939         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16940
16941 2007-02-04  Bruno Haible  <bruno@clisp.org>
16942
16943         New module mbsspn.
16944         * modules/mbsspn: New file.
16945         * lib/mbsspn.c: New file.
16946         * lib/string_.h (strspn): Add a conditional link warning.
16947         (mbsspn): New declaration.
16948         * m4/mbsspn.m4: New file.
16949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16950         GNULIB_MBSSPN.
16951         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16952         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16953
16954 2007-02-04  Bruno Haible  <bruno@clisp.org>
16955
16956         New module mbspbrk.
16957         * modules/mbspbrk: New file.
16958         * lib/mbspbrk.c: New file.
16959         * lib/string_.h (strpbrk): Add a conditional link warning.
16960         (mbspbrk): New declaration.
16961         * m4/mbspbrk.m4: New file.
16962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16963         GNULIB_MBSPBRK.
16964         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16965         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16966
16967 2007-02-04  Bruno Haible  <bruno@clisp.org>
16968
16969         New module mbscspn.
16970         * modules/mbscspn: New file.
16971         * lib/mbscspn.c: New file.
16972         * lib/string_.h (strcspn): Add a conditional link warning.
16973         (mbscspn): New declaration.
16974         * m4/mbscspn.m4: New file.
16975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16976         GNULIB_MBSCSPN.
16977         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16978         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16979
16980 2007-02-04  Bruno Haible  <bruno@clisp.org>
16981
16982         New module mbscasestr, reduced goal of strcasestr.
16983         * modules/mbscasestr: New file.
16984         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16985         (mbscasestr): Renamed from strcasestr.
16986         * lib/strcasestr.c: Don't include mbuiter.h.
16987         (strcasestr): Remove support for multibyte locales.
16988         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16989         Change the conditional link warning.
16990         (mbscasestr): New declaration.
16991         * m4/mbscasestr.m4: New file.
16992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16993         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16994         REPLACE_STRCASESTR.
16995         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16997         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16999         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17000         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17001         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17002         (Depends-on): Remove mbuiter.
17003         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17004
17005 2007-02-04  Bruno Haible  <bruno@clisp.org>
17006
17007         Simplify handling of strncasecmp.
17008         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17009         the conditional link warning.
17010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17011         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17012         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17013         * modules/strcase (configure.ac): Don't invoke
17014         gl_STRING_MODULE_INDICATOR.
17015         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17016
17017 2007-02-04  Bruno Haible  <bruno@clisp.org>
17018
17019         New module mbscasecmp, reduced goal of strcasecmp.
17020         * modules/mbscasecmp: New file.
17021         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17022         (mbscasecmp): Renamed from strcasecmp.
17023         * lib/strcasecmp.c: Don't include mbuiter.h.
17024         (strcasecmp): Remove support for multibyte locales.
17025         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17026         Change the conditional link warning.
17027         (mbscasecmp): New declaration.
17028         * m4/mbscasecmp.m4: New file.
17029         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17030         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17031         REPLACE_STRCASECMP.
17032         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17034         GNULIB_MBSCASECMP.
17035         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
17036         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
17037         * modules/strcase (Files): Remove m4/mbrtowc.m4.
17038         (Depends-on): Remove mbuiter.
17039         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
17040
17041 2007-02-04  Bruno Haible  <bruno@clisp.org>
17042
17043         New module mbsstr. Remove module strstr.
17044         * modules/mbsstr: New file.
17045         * modules/strstr: Remove file.
17046         * lib/mbsstr.c: Renamed from lib/strstr.c.
17047         (mbsstr): Renamed from strstr.
17048         * lib/string_.h (strstr): Remove declaration. Change the conditional
17049         link warning.
17050         (mbsstr): New declaration.
17051         * m4/mbsstr.m4: New file.
17052         * m4/strstr.m4: Remove file.
17053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17054         REPLACE_STRSTR.
17055         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
17056         Don't initialize GNULIB_STRSTR.
17057         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17058         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17059         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17060         (Support for systems lacking ANSI C 89): Remove strstr.
17061
17062 2007-02-04  Bruno Haible  <bruno@clisp.org>
17063
17064         New module mbsrchr.
17065         * modules/mbsrchr: New file.
17066         * lib/mbsrchr.c: New file.
17067         * lib/string_.h (strrchr): Add a conditional link warning.
17068         (mbsrchr): New declaration.
17069         * m4/mbsrchr.m4: New file.
17070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17071         GNULIB_MBSRCHR.
17072         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17073         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17074
17075 2007-02-04  Bruno Haible  <bruno@clisp.org>
17076
17077         New module mbschr.
17078         * modules/mbschr: New file.
17079         * lib/mbschr.c: New file.
17080         * lib/string_.h (strchr): Add a conditional link warning.
17081         (mbschr): New declaration.
17082         * m4/mbschr.m4: New file.
17083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17084         GNULIB_MBSCHR.
17085         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17086         * MODULES.html.sh (Internationalization functions): Add mbschr.
17087
17088 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17089
17090         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17091
17092         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17093
17094 2007-02-04  Bruno Haible  <bruno@clisp.org>
17095
17096         New module description section 'configure.ac-early'.
17097         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17098         (func_get_autoconf_early_snippet): New function.
17099         (func_import, func_create_testdir): Use it. Remove special cases for
17100         modules 'extensions' and 'lock'.
17101         * modules/extensions (configure.ac-early): Require
17102         gl_USE_SYSTEM_EXTENSIONS.
17103         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17104
17105 2007-02-04  Bruno Haible  <bruno@clisp.org>
17106
17107         Make use of gcj-4.3's -fsource and -ftarget option.
17108         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17109         and if so try the options -fsource and -ftarget.
17110         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17111         source_version, ftarget_option, target_version arguments.
17112         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17113         (is_envjavac_oldgcj_14_14_usable): Renamed from
17114         is_envjavac_gcj_14_14_usable.
17115         (is_envjavac_oldgcj_14_13_usable): Renamed from
17116         is_envjavac_gcj_14_13_usable.
17117         (is_gcj_present): Update.
17118         (is_gcj_43, is_gcj43_usable): New functions.
17119         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17120         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17121         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17122         try the options -fsource and -ftarget.
17123
17124 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17127         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17128         larger value.
17129
17130 2007-02-03  Jim Meyering  <jim@meyering.net>
17131
17132         Give tools a better chance to allocate space for very large buffers.
17133         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17134
17135         Make pwd and readlink work also when run with an unreadable parent dir
17136         on systems with openat support.
17137         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17138         provided getcwd function, even when we have openat support.
17139         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17140
17141 2007-02-02  Bruno Haible  <bruno@clisp.org>
17142
17143         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17144         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17145         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17146         portability problems if one of these functions is only used on specific
17147         platforms.
17148         Reported by Paul Eggert.
17149
17150 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17151
17152         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17153         is causing more trouble than it's curing.
17154         * lib/regex_internal.h (__mempcpy): Remove.
17155         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17156         (and make the code a tad smaller to boot).
17157         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17158
17159 2007-02-02  Jim Meyering  <jim@meyering.net>
17160
17161         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17162         section, not in the Makefile.am: one.
17163
17164 2007-02-02  Eric Blake  <ebb9@byu.net>
17165
17166         * lib/strchrnul.c: Always include config.h first.
17167
17168         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17169         gnulib strstr is not necessary here.
17170
17171 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17172
17173         * m4/socklen.m4: Fix typo.
17174
17175 2007-02-02  Eric Blake  <ebb9@byu.net>
17176
17177         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17178         * modules/netinet_in (Makefile.am): Likewise.
17179
17180 2007-02-01  Bruno Haible  <bruno@clisp.org>
17181
17182         * lib/string_.h (GL_LINK_WARNING): New macro.
17183         (strcasecmp, strstr, strcasestr): If provided by the system,
17184         conditionally define as a macro that leads to a warning instead of to
17185         an error.
17186         (strncasecmp): Conditionally define as a macro that leads to a warning.
17187
17188 2007-02-01  Karl Berry  <karl@gnu.org>
17189
17190         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17191
17192 2007-02-01  Bruno Haible  <bruno@clisp.org>
17193
17194         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17195         renamings.
17196
17197 2007-02-01  Eric Blake  <ebb9@byu.net>
17198
17199         * modules/regex (Depends-on): Revert dependence on mempcpy.
17200         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17201         module's definition of mempcpy.
17202         Reported by Paul Eggert.
17203
17204 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17205
17206         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17207         the symbol XYZ before redefining it.  This fixes a problem with
17208         programs that don't use XYZ, when compiled on systems that define
17209         XYZ to something else.
17210
17211 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17212
17213         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17214         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17215         writeable to group or other and (2) is intended to have a special
17216         mode bit that is set or cleared.  In such a case, the directory
17217         should be neither group- nor other-writeable until the special
17218         mode bits are right.
17219
17220 2007-01-31  Eric Blake  <ebb9@byu.net>
17221
17222         * modules/mountlist (Depends-on): Add strstr.
17223
17224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17225         bug.
17226         * modules/string (Makefile.am): Remove redundant replacement.
17227         * modules/regex (Depends-on): Add mempcpy.
17228
17229 2007-01-31  Bruno Haible  <bruno@clisp.org>
17230
17231         New module description field 'Link'.
17232         * gnulib-tool (func_usage): Document --extract-link-directive.
17233         (sed_extract_prog): Recognize 'Link' directive.
17234         (func_get_link_directive): New function.
17235         (func_import): Show summary of link directives.
17236         Handle --extract-link-directive option.
17237         * modules/acl (Link): New section.
17238         * modules/clock-time (Link): New section.
17239         * modules/euidaccess (Link): New section.
17240         * modules/gettext (Link): New section.
17241         * modules/iconv (Link): New section.
17242         * modules/lock (Link): New section.
17243         * modules/nanosleep (Link): New section.
17244         * modules/readline (Link): New section.
17245
17246 2007-01-27  Bruno Haible  <bruno@clisp.org>
17247
17248         Enforce the use of gnulib modules for unportable <string.h> functions.
17249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17250         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17251         (gl_HEADER_STRING_H_BODY): Require it.
17252         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17253         the symbol XYZ to one that gives a link error.
17254         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17255         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17256         * modules/mempcpy (configure.ac): Likewise.
17257         * modules/memrchr (configure.ac): Likewise.
17258         * modules/stpcpy (configure.ac): Likewise.
17259         * modules/stpncpy (configure.ac): Likewise.
17260         * modules/strcase (configure.ac): Likewise.
17261         * modules/strcasestr (configure.ac): Likewise.
17262         * modules/strchrnul (configure.ac): Likewise.
17263         * modules/strdup (configure.ac): Likewise.
17264         * modules/strndup (configure.ac): Likewise.
17265         * modules/strnlen (configure.ac): Likewise.
17266         * modules/strpbrk (configure.ac): Likewise.
17267         * modules/strsep (configure.ac): Likewise.
17268         * modules/strstr (configure.ac): Likewise.
17269         * modules/strtok_r (configure.ac): Likewise.
17270
17271 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17272
17273         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17274
17275 2007-01-30  Jim Meyering  <jim@meyering.net>
17276
17277         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17278
17279 2007-01-29  Bruno Haible  <bruno@clisp.org>
17280
17281         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17282         * lib/execute.c: Likewise.
17283         * lib/pipe.c: Likewise.
17284         * lib/printf-args.h: Likewise.
17285         * lib/printf-args.c: Likewise.
17286         * lib/printf-parse.c: Likewise.
17287         * lib/vasnprintf.c: Likewise.
17288
17289 2007-01-29  Eric Blake  <ebb9@byu.net>
17290
17291         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17292         declaration.
17293
17294 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17295
17296         * lib/strptime.h (strptime): Use 'restrict' for args where
17297         POSIX requires this.
17298         * lib/strptime.c (strptime): Likewise.
17299         Change license notice from LGPL to GPL, since gnulib-tool will
17300         change this as needed.
17301         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17302         defined.
17303         Include "strptime.h" first, to check interface.
17304         Do not #undef _LIBC and _NL_CURRENT.
17305         Do not include <stdlib.h>; no longer needed.
17306         Include "time_r.h" and declare ptime_locale_status
17307         only if _LIBC is not defined.
17308         (__P): Remove unused macro.
17309         (match_string): Bring back glibc version, but use it only if _LIBC
17310         is defined.
17311         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17312         Remove unnecessary assertion and abort() call.
17313         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17314         * m4/strptime.m4: Fix serial number comment.
17315         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17316         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17317         (Depends-on): Add time_r.
17318
17319 2007-01-29  Bruno Haible  <bruno@clisp.org>
17320
17321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17322         strptime.
17323         * modules/strptime (Depends-on): Add stdbool.
17324         * lib/strptime.h: Include <time.h> always. Add comments.
17325
17326 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17327
17328         * modules/strptime: New file.
17329         * lib/strptime.h: New file.
17330         * lib/strptime.c: New file.
17331         * m4/strptime.m4: New file.
17332
17333 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17334
17335         * MODULES.html.sh: New module mpsort.
17336         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17337
17338         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17339         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17341         All uses changed.
17342         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17343         All uses changed.
17344         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17345         to _Restrict_.
17346         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17347         the parameter matches the prototype.
17348
17349 2007-01-28  Jim Meyering  <jim@meyering.net>
17350
17351         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17352         sys/time.h here, reverting that part of the previous patch:
17353         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17354
17355 2007-01-28  Bruno Haible  <bruno@clisp.org>
17356
17357         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17358         value of $(SYS_TIME_H).
17359         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17360         remove it conditionally, too. [added by Jim Meyering]
17361         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17363         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17364         GETTIMEOFDAY_REPLACEMENT to 1.
17365
17366 2007-01-28  Bruno Haible  <bruno@clisp.org>
17367
17368         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17369         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17371         Set UNISTD_H instead of UNISTD_H2.
17372         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17373
17374 2007-01-28  Bruno Haible  <bruno@clisp.org>
17375
17376         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17377         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17378
17379 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17380
17381         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17382         (func_create_testdir): Ensure C locale for `grep' and `tr'
17383         character ranges.
17384         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17385         ACLOCAL_AMFLAGS parsing state machine.
17386
17387 2007-01-27  Bruno Haible  <bruno@clisp.org>
17388
17389         * modules/unistr/base: Update.
17390
17391 2007-01-27  Bruno Haible  <bruno@clisp.org>
17392
17393         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17394         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17395         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17396         modules/unistr/u32-mbtouc.
17397         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17398         * lib/unistr.h: Update.
17399         * lib/linebreak.c: Update.
17400         * modules/unistr/u32-mbtouc: Renamed from
17401         modules/unistr/u32-mbtouc-safe.
17402         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17403         * lib/unistr.h: Update.
17404         * lib/unistr/u32-to-u8.c: Update.
17405         * lib/unistr/u32-to-u16.c: Update.
17406
17407 2007-01-27  Bruno Haible  <bruno@clisp.org>
17408
17409         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17410         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17411         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17412         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17413         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17414         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17415         modules/unistr/u16-mbtouc.
17416         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17417         * lib/unistr.h: Update.
17418         * lib/linebreak.c: Update.
17419         * modules/linebreak: Update.
17420         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17421         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17422         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17423         * modules/unistr/u16-mbtouc: Renamed from
17424         modules/unistr/u16-mbtouc-safe.
17425         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17426         * lib/unistr.h: Update.
17427         * lib/unistr/u16-to-u8.c: Update.
17428         * modules/unistr/u16-to-u8: Update.
17429         * lib/unistr/u16-to-u32.c: Update.
17430         * modules/unistr/u16-to-u32: Update.
17431
17432 2007-01-27  Bruno Haible  <bruno@clisp.org>
17433
17434         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17435         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17436         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17437         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17438         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17439         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17440         modules/unistr/u8-mbtouc.
17441         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17442         * lib/unistr.h: Update.
17443         * lib/striconveh.c: Update.
17444         * modules/striconveh: Update.
17445         * lib/linebreak.c: Update.
17446         * modules/linebreak: Update.
17447         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17448         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17449         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17450         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17451         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17452         * lib/unistr.h: Update.
17453         * lib/striconveh.c: Update.
17454         * modules/striconveh: Update.
17455         * lib/unistr/u8-to-u16.c: Update.
17456         * modules/unistr/u8-to-u16: Update.
17457         * lib/unistr/u8-to-u32.c: Update.
17458         * modules/unistr/u8-to-u32: Update.
17459
17460 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17461
17462         Sync from Libtool.
17463         * lib/argz.c: Do not include strings.h nor memory.h, include
17464         string.h unconditionally.  Patch by Simon Josefsson.
17465
17466 2007-01-27  Bruno Haible  <bruno@clisp.org>
17467
17468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17469         from gl_HEADER_STRING_H_BODY.
17470         (gl_HEADER_STRING_H_BODY): Require it.
17471         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17472         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17473         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17474         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17476         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17478         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17479         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17480         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17482         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17483         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17484         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17486
17487 2007-01-27  Bruno Haible  <bruno@clisp.org>
17488
17489         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17490         check_PROGRAMS into noinst_PROGRAMS.
17491         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17492         check_PROGRAMS in this case.
17493         (func_import): Set for_test to false.
17494         (func_create_testdir): Set for_test to true.
17495
17496 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17497             Bruno Haible  <bruno@clisp.org>
17498
17499         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17500         (Depends-on): Add string.
17501         (Includes): Use <string.h> instead of strcasestr.h.
17502         * modules/string (Makefile.am): Also substitute the value of
17503         REPLACE_STRCASESTR.
17504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17505         assume strcasestr is declared in <string.h> not <strings.h>. Also
17506         set REPLACE_STRCASESTR.
17507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17508         REPLACE_STRCASESTR.
17509         * lib/strcasestr.h: Remove file.
17510         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17511         * lib/string_.h (strcasestr): New declaration.
17512
17513 2007-01-27  Bruno Haible  <bruno@clisp.org>
17514
17515         * lib/string_.h: Use 'extern'.
17516
17517 2007-01-27  Jim Meyering  <jim@meyering.net>
17518
17519         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17520         of set-but-not-used local, "q".
17521
17522         * lib/mempcpy.c: Include <config.h> before <string.h>.
17523         This fixes a compilation error on HP-UX, due to the system's
17524         "restrict"-using mempcpy prototype.
17525
17526 2007-01-26  Bruno Haible  <bruno@clisp.org>
17527
17528         Small optimization.
17529         * lib/javacomp.c: Include c-strstr.h.
17530          (is_envjavac_gcj): Use c_strstr instead of strstr.
17531         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17532
17533 2007-01-26  Bruno Haible  <bruno@clisp.org>
17534
17535         * MODULES.html.sh (Unicode string functions): Add the new modules.
17536
17537         * modules/uniconv/u32-strconv-to-locale: New file.
17538         * lib/uniconv/u32-strconv-to-locale.c: New file.
17539
17540         * modules/uniconv/u16-strconv-to-locale: New file.
17541         * lib/uniconv/u16-strconv-to-locale.c: New file.
17542
17543         * modules/uniconv/u8-strconv-to-locale: New file.
17544         * lib/uniconv/u8-strconv-to-locale.c: New file.
17545
17546         * modules/uniconv/u32-strconv-from-locale: New file.
17547         * lib/uniconv/u32-strconv-from-locale.c: New file.
17548
17549         * modules/uniconv/u16-strconv-from-locale: New file.
17550         * lib/uniconv/u16-strconv-from-locale.c: New file.
17551
17552         * modules/uniconv/u8-strconv-from-locale: New file.
17553         * lib/uniconv/u8-strconv-from-locale.c: New file.
17554
17555         * modules/uniconv/u32-strconv-to-enc: New file.
17556         * lib/uniconv/u32-strconv-to-enc.c: New file.
17557         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17558         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17559
17560         * modules/uniconv/u16-strconv-to-enc: New file.
17561         * lib/uniconv/u16-strconv-to-enc.c: New file.
17562         * lib/uniconv/u-strconv-to-enc.h: New file.
17563         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17564         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17565
17566         * modules/uniconv/u8-strconv-to-enc: New file.
17567         * lib/uniconv/u8-strconv-to-enc.c: New file.
17568         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17569         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17570
17571         * modules/uniconv/u32-strconv-from-enc: New file.
17572         * lib/uniconv/u32-strconv-from-enc.c: New file.
17573         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17574         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17575
17576         * modules/uniconv/u16-strconv-from-enc: New file.
17577         * lib/uniconv/u16-strconv-from-enc.c: New file.
17578         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17579         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17580
17581         * modules/uniconv/u8-strconv-from-enc: New file.
17582         * lib/uniconv/u8-strconv-from-enc.c: New file.
17583         * lib/uniconv/u-strconv-from-enc.h: New file.
17584         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17585         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17586
17587         * modules/uniconv/u32-conv-from-enc: New file.
17588         * lib/uniconv/u32-conv-from-enc.c: New file.
17589         * modules/uniconv/u32-conv-from-enc-tests: New file.
17590         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17591
17592         * modules/uniconv/u16-conv-from-enc: New file.
17593         * lib/uniconv/u16-conv-from-enc.c: New file.
17594         * lib/uniconv/u-conv-from-enc.h: New file.
17595         * modules/uniconv/u16-conv-from-enc-tests: New file.
17596         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17597
17598         * modules/uniconv/u8-conv-from-enc: New file.
17599         * lib/uniconv/u8-conv-from-enc.c: New file.
17600         * modules/uniconv/u8-conv-from-enc-tests: New file.
17601         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17602
17603         * modules/uniconv/base: New file.
17604         * lib/uniconv.h: New file.
17605
17606 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         * doc/gnulib-tool.texi (Initial import): Update to match current
17609         behavior with strdup module.
17610         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17611         * lib/memmem.h: Remove; all uses removed.  This is now done
17612         by <string.h>.
17613         * lib/mempcpy.h: Likewise.
17614         * lib/memrchr.h: Likewise.
17615         * lib/stpcpy.h: Likewise.
17616         * lib/stpncpy.h: Likewise.
17617         * lib/strcase.h: Likewise.
17618         * lib/strchrnul.h: Likewise.
17619         * lib/strdup.h: Likewise.
17620         * lib/strndup.h: Likewise.
17621         * lib/strnlen.h: Likewise.
17622         * lib/strpbrk.h: Likewise.
17623         * lib/strsep.h: Likewise.
17624         * lib/strstr.h: Likewise.
17625         * lib/strtok_r.h: Likewise.
17626         * lib/string_.h: New file.
17627         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17628         Rely on <string.h> instead.
17629         * lib/canon-host.c: Likewise.
17630         * lib/chdir-long.c: Likewise.
17631         * lib/concatpath.c: Likewise.
17632         * lib/exclude.c: Likewise.
17633         * lib/fchdir.c: Likewise.
17634         * lib/getaddrinfo.c: Likewise.
17635         * lib/getcwd.c: Likewise.
17636         * lib/getsubopt.c: Likewise.
17637         * lib/glob.c: Likewise.
17638         * lib/hard-locale.c: Likewise.
17639         * lib/iconvme.c: Likewise.
17640         * lib/javacomp.c: Likewise.
17641         * lib/mempcpy.c: Likewise.
17642         * lib/memrchr.c: Likewise.
17643         * lib/regex_internal.h: Likewise.
17644         * lib/stpncpy.c: Likewise.
17645         * lib/strcasecmp.c: Likewise.
17646         * lib/strchrnul.c: Likewise.
17647         * lib/strdup.c: Likewise.
17648         * lib/striconv.c: Likewise.
17649         * lib/striconveh.c: Likewise.
17650         * lib/striconveha.c: Likewise.
17651         * lib/strncasecmp.c: Likewise.
17652         * lib/strndup.c: Likewise.
17653         * lib/strnlen.c: Likewise.
17654         * lib/strsep.c: Likewise.
17655         * lib/strstr.c: Likewise.
17656         * lib/strtok_r.c: Likewise.
17657         * lib/userspec.c: Likewise.
17658         * lib/w32spawn.h: Likewise.
17659         * lib/xstrndup.c: Likewise.
17660         * lib/mountlist.c (strstr): Remove decl.
17661         * m4/string_h.m4: New file.
17662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17663         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17664         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17665         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17666         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17667         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17668         Set REPLACE_STRCASECMP if necessary.
17669         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17670         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17671         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17673         HAVE_DECL_STRDUP if necessary.
17674         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17675         since gl_FUNC_STRNDUP does that now.
17676         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17677         Check for decl here...
17678         (gl_PREREQ_STRNLEN): ... not here.
17679         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17680         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17681         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17682         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17683         necessary.
17684         * modules/string: New file.
17685         * modules/memmem (Files): Remove special-purpose include file.
17686         (Depends-on): Add string.
17687         (Include): Include <string.h>, not the removed file.
17688         * modules/mempcpy: Likewise.
17689         * modules/memrchr: Likewise.
17690         * modules/stpcpy: Likewise.
17691         * modules/stpncpy: Likewise.
17692         * modules/strcase: Likewise.
17693         * modules/strchrnul: Likewise.
17694         * modules/strdup: Likewise.
17695         * modules/strndup: Likewise.
17696         * modules/strnlen: Likewise.
17697         * modules/strpbrk: Likewise.
17698         * modules/strsep: Likewise.
17699         * modules/strstr: Likewise.
17700         * modules/strtok_r: Likewise.
17701         * tests/test-dirname.c: Don't include "strdup.h", since
17702         <string.h> now suffices.
17703         * tests/test-memmem.c: Don't include "memmem.h", since
17704         <string.h> now suffices.
17705
17706 2007-01-25  Bruno Haible  <bruno@clisp.org>
17707
17708         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17709         *resultp is 0.
17710
17711         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17712         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17713         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17714         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17715
17716         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17717         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17718         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17719         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17720         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17721         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17722
17723 2007-01-24  Bruno Haible  <bruno@clisp.org>
17724
17725         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17727         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17728         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17729         gl_FUNC_FTS_CORE.
17730         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17731         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17734         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17735         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17736         gl_FUNC_FCHOWNAT.
17737         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17738         gl_FUNC_STRFTIME.
17739         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17740         Reported by Ralf Wildenhues.
17741
17742 2007-01-24  Bruno Haible  <bruno@clisp.org>
17743
17744         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17745         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17746         gl_GETADDRINFO.
17747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17748         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17749         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17750
17751 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17752
17753         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17754         Don't use 'exit'; just return from 'main'.
17755         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17756
17757         * lib/fnmatch_.h: Readjust white space and comments to match
17758         glibc, to avoid spurious diffs.
17759
17760 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17761
17762         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17763         2004-12-01 change by Jakub Jelinek, since this code won't compile
17764         if !LIBC.  Problem reported by Bob Proulx.
17765
17766 2007-01-23  Bruno Haible  <bruno@clisp.org>
17767
17768         * lib/striconveh.c: Include c-strcaseeq.h.
17769         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17770         * modules/striconveh (Depends-on): Add c-strcaseeq.
17771
17772 2007-01-23  Bruno Haible  <bruno@clisp.org>
17773
17774         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17775
17776         * modules/c-strcaseeq: New file.
17777         * lib/c-strcaseeq.h: New file.
17778
17779         * modules/streq: New file.
17780         * lib/streq.h: New file.
17781
17782 2007-01-23  Bruno Haible  <bruno@clisp.org>
17783
17784         * modules/striconveha-tests: New file.
17785         * tests/test-striconveha.c: New file.
17786
17787         * lib/striconveha.h: Include <stdbool.h>.
17788         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17789         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17790         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17791         (mem_iconveha): New function.
17792         (str_iconveha_notranslit): Renamed from str_iconveha.
17793         (str_iconveha): New function.
17794         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17795         c-strcase.
17796
17797 2007-01-23  Bruno Haible  <bruno@clisp.org>
17798
17799         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17800         encodings without forgiving before trying any encoding with handler.
17801         (str_iconveha): Try all encodings without forgiving before trying any
17802         encoding with handler.
17803
17804 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17805
17806         Import the following changes from libc.
17807
17808         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17809
17810         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17811
17812         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17813
17814         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17815         normal_bracket label.
17816
17817         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17818
17819         [BZ #361]
17820         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17821         to normal_bracket after fetching the next character.
17822
17823 2007-01-22  Bruno Haible  <bruno@clisp.org>
17824
17825         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17826         argument.
17827         * lib/striconveh.c (iconv_carefully_1): New function.
17828         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17829         argument.
17830         (str_cd_iconveh): Update.
17831         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17832         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17833         * tests/test-striconveh.c (MAGIC): New macro.
17834         (new_offsets): New function.
17835         (main): Test call with and without offsets.
17836
17837 2007-01-22  Bruno Haible  <bruno@clisp.org>
17838
17839         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17840         * modules/sys_select (Makefile.am): Likewise.
17841         * modules/sys_socket (Makefile.am): Likewise.
17842         * modules/sys_time (Makefile.am): Likewise.
17843
17844 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17845
17846         * modules/gettimeofday (License): Change from GPL to LGPL, since
17847         gettimeofday is a library function.
17848
17849 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17850
17851         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17852
17853 2007-01-21  Bruno Haible  <bruno@clisp.org>
17854
17855         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17856
17857 2007-01-21  Bruno Haible  <bruno@clisp.org>
17858
17859         * modules/striconveha: New file.
17860         * lib/striconveha.h: New file.
17861         * lib/striconveha.c: New file.
17862         * MODULES.html.sh (Internationalization functions): Add striconveha.
17863         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17864         string.
17865         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17866
17867 2007-01-21  Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17870         * lib/striconveh.c (str_iconveh): Likewise.
17871
17872 2007-01-21  Bruno Haible  <bruno@clisp.org>
17873
17874         * lib/striconveh.h (mem_iconveh): New declaration.
17875         * lib/striconveh.c (mem_iconveh): New function.
17876         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17877
17878 2007-01-21  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17881
17882         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17883         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17884         original result buffer.
17885         (str_cd_iconveh): Update.
17886         * tests/test-striconveh.c (main): Update.
17887
17888         * lib/striconv.h (mem_cd_iconv): Change specification.
17889         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17890         result buffer.
17891         (str_cd_iconv): Update.
17892         * tests/test-striconv.c (main): Update.
17893
17894 2007-01-21  Bruno Haible  <bruno@clisp.org>
17895
17896         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17897
17898 2007-01-20  Jim Meyering  <jim@meyering.net>
17899
17900         * lib/userspec.c (parse_with_separator): If a user or group string
17901         starts with "+", skip the corresponding name-to-ID look-up, since
17902         such a look-up must fail: user and group names may not include "+".
17903
17904 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17905
17906         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17907         since we now assume the sys_time module.
17908         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17909         check for sys/time.h; no longer needed.
17910         * modules/poll (Depends-on): Depend on sys_time.
17911
17912 2007-01-18  Bruno Haible  <bruno@clisp.org>
17913
17914         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17916
17917         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17918         gettimeofday.
17919
17920         * tests/test-gettimeofday.c: Include <time.h>.
17921         (dummy): Remove variable.
17922
17923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17924         gl_HEADER_SYS_TIME_H.
17925         (gl_HEADER_SYS_TIME_H): New macro.
17926
17927         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17928         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17930         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17931         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17933         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17934         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17935         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17936         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17937         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17938
17939         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17940         last change; it caused a compilation error when cross-compiling to
17941         Cygwin.
17942
17943 2007-01-18  Jim Meyering  <jim@meyering.net>
17944
17945         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17946         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17947         than the race-prone "test -d sys || mkdir sys".
17948         (configure.ac): Use AC_PROG_MKDIR_P.
17949         * modules/sys_select: Likewise.
17950         * modules/sys_socket: Likewise.
17951         * modules/sys_time: Likewise.
17952
17953 2007-01-18  Eric Blake  <ebb9@byu.net>
17954
17955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17956         replace gettimeofday.
17957         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17958         name, to avoid infinite recursion.
17959
17960 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17961
17962         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17963         module sys_time.
17964         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17965         assume timespec.h defines struct timeval.
17966         * lib/settime.c: Likewise.
17967         * lib/utimens.c: Likewise.
17968         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17969         since we now assume the gettimeofday module.
17970         * lib/tempname.c (__gen_tempname): Likewise.
17971         * lib/gettimeofday.h: Remove.
17972         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17973         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17974         Include <time.h>, for 'time()'.
17975         (localtime_buffer_addr): Also use this workaround if
17976         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17977         to simplify the uses.  All uses changed.
17978         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17979         that #undef is inside {}, and 'const' follows type name consistently.
17980         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17981         (gettimeofday): Do not use the maximum possible value for
17982         tv->tv_usec, since that might break usages other than ls.c.
17983         Instead, we'll leave ls.c alone.  This undoes today's patch
17984         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17985         we've never observed the problem but might as well keep the
17986         canary.
17987         * lib/nanosleep.c: Include timespec.h first, for interface check.
17988         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17989         now assume the sys_time module.
17990         * lib/tempname.c: Likewise.
17991         * lib/timespec.h: Likewise.
17992         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17993         needed.
17994         * lib/strftime.c: Likewise.
17995         * lib/timespec.h: Likewise.
17996         * lib/posixtm.c: Include posixtm.h first, for interface check.
17997         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17998         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17999         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18000         * lib/sys_time_.h: New file.
18001         * lib/timespec.h (struct timespec): Use long int, not long.
18002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18003         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18004         Remove obsolescent call to AC_HEADER_TIME.
18005         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18008         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18009         Likewise.
18010         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18011         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18013         into the sys_time module.  Check for gettimeofday just once.
18014         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18015         for gettimeofday signature to just check the signature.  Merely
18016         compile it, since linking doesn't test signature.  Improve test for
18017         whether gettimeofday.o is actually needed.
18018         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18019         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18020         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18021         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18022         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18023         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18024         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18025         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18026         than worrying about sys/time.h.
18027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18028         Don't bother worrying about TIME_WITH_SYS_TIME.
18029         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18030         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18031         * m4/sys_time_h.m4: New file.
18032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18033         Don't include sys/time.h.  Return from main rather than exiting.
18034         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18035         all uses changed.
18036         * modules/gethrxtime (Depends-on): Add sys_time.
18037         * modules/gettime (Depends-on): Likewise.
18038         * modules/gettimeofday (Depends-on): Likewise.
18039         * modules/nanosleep (Depends-on): Likewise.
18040         * modules/settime (Depends-on): Likewise.
18041         * modules/tempname (Depends-on): Likewise.
18042         * modules/utimens (Depends-on): Likewise.
18043         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
18044         (Include:) Change back to <sys/time.h>.
18045         (Maintainer:) Add self.
18046         * modules/sys_time: New file.
18047         * modules/tempname (Depends-on): Add gettimeofday.
18048         * tests/test-gettimeofday.c: Include <sys/time.h>
18049         rather than gettimeofday.h.
18050
18051 2007-01-17  Bruno Haible  <bruno@clisp.org>
18052
18053         * gnulib-tool (func_get_license): Revert last patch. Instead, let
18054         the license default to GPL.
18055         (func_create_testdir): Don't complain if a module is LGPL and its
18056         tests module depends on GPLed modules.
18057
18058 2007-01-17  Bruno Haible  <bruno@clisp.org>
18059
18060         * lib/gettimeofday.c (gettimeofday): Add code for the case
18061         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18062         maximum possible value for tv->tv_usec, rather than the minimum one.
18063
18064 2005-10-08  Martin Lambers  <marlam@marlam.de>
18065 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18066 2007-01-16  Bruno Haible  <bruno@clisp.org>
18067
18068         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18069         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18070         gl_FUNC_GETTIMEOFDAY.
18071         (Include): Add gettimeofday.h.
18072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18073         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18074         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18075         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18076         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18077         * lib/gettimeofday.h: New file.
18078         * lib/gettimeofday.c: Include <sys/timeb.h>.
18079         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18080         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18081         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18082         fall back on time().
18083
18084         * tests/test-gettimeofday.c: New file.
18085         * modules/gettimeofday-tests: New file.
18086
18087 2007-01-16  Eric Blake  <ebb9@byu.net>
18088
18089         * modules/fnmatch (Depends-on): Depend on wchar.
18090         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18091         * m4/fnmatch.m4: Likewise.
18092         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18093         * m4/mbchar.m4: Likewise.
18094         * modules/mbswidth (Depends-on): Depend on wchar.
18095         * lib/mbswidth.c: Assume <wchar.h>.
18096         * m4/mbswidth.m4: Likewise.
18097         * modules/quotearg (Depends-on): Depend on wchar.
18098         * lib/quotearg.c: Assume <wchar.h>.
18099         * m4/quotearg.m4: Likewise.
18100         * modules/regex (Depends-on): Depend on wchar.
18101         * lib/regex_internal.h: Assume <wchar.h>.
18102         * m4/regex.m4: Likewise.
18103         * modules/stdint (Depends-on): Depend on wchar.
18104         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18105         * m4/stdint.m4: Likewise.
18106         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18107         * modules/strftime (Depends-on): Depend on wchar.
18108         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18109         * modules/strtol (Depends-on): Depend on wchar.
18110         * lib/strtol.c: Assume <wchar.h>.
18111         * modules/wcwidth (Depends-on): Depend on wchar.
18112         * lib/wcwidth.h: Assume <wchar.h>.
18113         * m4/wcwidth.m4: Likewise.
18114
18115 2007-01-16  Bruno Haible  <bruno@clisp.org>
18116
18117         * modules/csharpexec-script: New, created from...
18118         * modules/csharpexec: ... this.
18119
18120 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18121
18122         * modules/javaexec-script: New, created from...
18123         * modules/javaexec: ... this.
18124
18125 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18126
18127         * modules/poll (Dependencies): Add sys_select.
18128
18129 2007-01-15  Jim Meyering  <jim@meyering.net>
18130
18131         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18132         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18133         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18134         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18135
18136 2007-01-15  Bruno Haible  <bruno@clisp.org>
18137
18138         * modules/striconveh: New file.
18139         * lib/striconveh.h: New file.
18140         * lib/striconveh.c: New file.
18141         * MODULES.html.sh (Internationalization functions): Add striconveh.
18142
18143         * modules/striconveh-tests: New file.
18144         * tests/test-striconveh.c: New file.
18145
18146 2007-01-15  Bruno Haible  <bruno@clisp.org>
18147
18148         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18149         not from GNU libiconv or GNU libc.
18150
18151 2007-01-15  Bruno Haible  <bruno@clisp.org>
18152
18153         * doc/gnulib-intro.texi (Copyright): Explain the different license
18154         terms for module descriptions, autoconf macros, tests, documentation.
18155
18156 2007-01-14  Bruno Haible  <bruno@clisp.org>
18157
18158         * modules/striconv-tests: New file.
18159         * tests/test-striconv.c: New file.
18160
18161 2007-01-14  Bruno Haible  <bruno@clisp.org>
18162
18163         * modules/iconv-tests: New file.
18164         * tests/test-iconv.c: New file.
18165
18166 2007-01-14  Bruno Haible  <bruno@clisp.org>
18167
18168         * gnulib-tool (func_get_license): For test modules, use the license of
18169         the main module.
18170
18171 2007-01-14  Bruno Haible  <bruno@clisp.org>
18172
18173         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18174         if iconv is found to exist.
18175
18176 2007-01-14  Bruno Haible  <bruno@clisp.org>
18177
18178         * modules/c-ctype-tests: New file.
18179         * tests/test-c-ctype.c: New file.
18180
18181 2007-01-14  Bruno Haible  <bruno@clisp.org>
18182
18183         * modules/binary-io-tests: New file.
18184         * tests/test-binary-io.sh: New file.
18185         * tests/test-binary-io.c: New file.
18186
18187 2007-01-14  Bruno Haible  <bruno@clisp.org>
18188
18189         * modules/array-oset-tests: New file.
18190         * tests/test-array_oset.c: New file.
18191
18192 2007-01-14  Bruno Haible  <bruno@clisp.org>
18193
18194         * modules/array-list-tests: New file.
18195         * tests/test-array_list.c: New file.
18196
18197 2007-01-14  Bruno Haible  <bruno@clisp.org>
18198
18199         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18200         and make.
18201         Reported by Simon Josefsson in
18202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18203
18204 2007-01-14  Bruno Haible  <bruno@clisp.org>
18205
18206         * modules/allocsa-tests: New file.
18207         * tests/test-allocsa.c: New file.
18208
18209 2007-01-14  Bruno Haible  <bruno@clisp.org>
18210
18211         * modules/fchdir (Depends-on): Add absolute-header.
18212         * modules/unistd (Depends-on): Likewise.
18213
18214 2006-12-30  Bruno Haible  <bruno@clisp.org>
18215
18216         * modules/fchdir: New file.
18217         * modules/unistd (Files): Add lib/unistd_.h.
18218         (Makefile.am): Generate unistd.h from unistd_.h.
18219         * lib/fchdir.c: New file.
18220         * lib/dirent_.h: New file.
18221         * lib/unistd_.h: New file.
18222         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18223         * m4/fchdir.m4: New file.
18224         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18225         (gl_HEADER_UNISTD): Invoke it.
18226         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18227         function.
18228         * lib/backupfile.c (opendir, closedir): Undefine.
18229         * lib/chown.c (open, close): Undefine.
18230         * lib/clean-temp.c (open, close): Undefine.
18231         * lib/copy-file.c (open, close): Undefine.
18232         * lib/execute.c (open, close): Undefine.
18233         * lib/fsusage.c (open, close): Undefine.
18234         * lib/gc-gnulib.c (open, close): Undefine.
18235         * lib/getcwd.c (opendir, closedir): Undefine.
18236         * lib/glob.c (opendir, closedir): Undefine.
18237         * lib/javacomp.c (open, close): Undefine.
18238         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18239         * lib/openat-proc.c (open, close): Undefine.
18240         * lib/pagealign_alloc.c (open, close): Undefine.
18241         * lib/pipe.c (open, close): Undefine.
18242         * lib/progreloc.c (open, close): Undefine.
18243         * lib/savedir.c (opendir, closedir): Undefine.
18244         * lib/utime.c (open, close): Undefine.
18245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18246
18247 2007-01-10  Bruno Haible  <bruno@clisp.org>
18248
18249         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18250
18251 2007-01-12  Eric Blake  <ebb9@byu.net>
18252
18253         Provide a robust <wchar.h>.  Further simplifications are now
18254         possible in other modules, but not included here.
18255         * modules/wchar: New module.
18256         * m4/wchar.m4: New file.
18257         * lib/wchar_.h: Likewise.
18258         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18259         of the new module.
18260         * MODULES.html.sh (Extended multibyte and wide character utilities):
18261         New section.
18262
18263 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18266         to a reasonable default for memory allocation.
18267         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18268         file system that reports garbage st_size values for symlinks.
18269         Problem reported by Liyang Hu.
18270
18271 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18272
18273         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18274         Emacs .#* auto-save files).
18275
18276 2007-01-11  Bruno Haible  <bruno@clisp.org>
18277
18278         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18279         directory.
18280
18281 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18282
18283         Use @...@ consistently in lib/wctype_.h.
18284         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18285         on it being set to 1 or 0.
18286         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18287         go back to AC_SUBSTing it.
18288         * modules/wctype (Makefile.am): Undo previous change.
18289
18290 2007-01-10  Eric Blake  <ebb9@byu.net>
18291
18292         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18293         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18294         * modules/wctype (Makefile.am): Likewise.
18295         Reported by Chris McGuire.
18296
18297 2007-01-10  Jim Meyering  <jim@meyering.net>
18298
18299         fts.c: a small readability/maintainability improvement
18300         * lib/fts.c (fts_read): Make this code slightly more readable and
18301         maintainable by hoisting the "sp->fts_cur = p" assignments to
18302         immediately follow the statements that set P.  Derived from
18303         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18304
18305 2007-01-10  Eric Blake  <ebb9@byu.net>
18306
18307         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18308         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18310         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18311         Reported by Chris McGuire.
18312
18313 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18314
18315         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18316         in sed script.
18317
18318 2007-01-09  Bruno Haible  <bruno@clisp.org>
18319
18320         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18321         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18322         variables.
18323         (func_module): Use them.
18324
18325 2007-01-09  Bruno Haible  <bruno@clisp.org>
18326
18327         * modules/unistr/base: New file.
18328         * lib/unistr.h: New file.
18329
18330         * modules/unistr/u8-to-u16: New file.
18331         * lib/unistr/u8-to-u16.c: New file.
18332
18333         * modules/unistr/u8-to-u32: New file.
18334         * lib/unistr/u8-to-u32.c: New file.
18335
18336         * modules/unistr/u16-to-u8: New file.
18337         * lib/unistr/u16-to-u8.c: New file.
18338
18339         * modules/unistr/u16-to-u32: New file.
18340         * lib/unistr/u16-to-u32.c: New file.
18341
18342         * modules/unistr/u32-to-u8: New file.
18343         * lib/unistr/u32-to-u8.c: New file.
18344
18345         * modules/unistr/u32-to-u16: New file.
18346         * lib/unistr/u32-to-u16.c: New file.
18347
18348         * modules/unistr/u8-check: New file.
18349         * modules/unistr/u16-check: New file.
18350         * modules/unistr/u32-check: New file.
18351         * lib/unistr/u8-check.c: New file.
18352         * lib/unistr/u16-check.c: New file.
18353         * lib/unistr/u32-check.c: New file.
18354
18355         * modules/unistr/u8-chr: New file.
18356         * modules/unistr/u16-chr: New file.
18357         * modules/unistr/u32-chr: New file.
18358         * lib/unistr/u8-chr.c: New file.
18359         * lib/unistr/u16-chr.c: New file.
18360         * lib/unistr/u32-chr.c: New file.
18361
18362         * modules/unistr/u8-cmp: New file.
18363         * modules/unistr/u16-cmp: New file.
18364         * modules/unistr/u32-cmp: New file.
18365         * lib/unistr/u8-cmp.c: New file.
18366         * lib/unistr/u16-cmp.c: New file.
18367         * lib/unistr/u32-cmp.c: New file.
18368
18369         * modules/unistr/u8-cpy: New file.
18370         * modules/unistr/u16-cpy: New file.
18371         * modules/unistr/u32-cpy: New file.
18372         * lib/unistr/u8-cpy.c: New file.
18373         * lib/unistr/u16-cpy.c: New file.
18374         * lib/unistr/u32-cpy.c: New file.
18375         * lib/unistr/u-cpy.h: New file.
18376
18377         * modules/unistr/u8-cpy-alloc: New file.
18378         * modules/unistr/u16-cpy-alloc: New file.
18379         * modules/unistr/u32-cpy-alloc: New file.
18380         * lib/unistr/u8-cpy-alloc.c: New file.
18381         * lib/unistr/u16-cpy-alloc.c: New file.
18382         * lib/unistr/u32-cpy-alloc.c: New file.
18383         * lib/unistr/u-cpy-alloc.h: New file.
18384
18385         * modules/unistr/u8-endswith: New file.
18386         * modules/unistr/u16-endswith: New file.
18387         * modules/unistr/u32-endswith: New file.
18388         * lib/unistr/u8-endswith.c: New file.
18389         * lib/unistr/u16-endswith.c: New file.
18390         * lib/unistr/u32-endswith.c: New file.
18391         * lib/unistr/u-endswith.h: New file.
18392
18393         * modules/unistr/u8-mblen: New file.
18394         * modules/unistr/u16-mblen: New file.
18395         * modules/unistr/u32-mblen: New file.
18396         * lib/unistr/u8-mblen.c: New file.
18397         * lib/unistr/u16-mblen.c: New file.
18398         * lib/unistr/u32-mblen.c: New file.
18399
18400         * modules/unistr/u8-mbtouc: New file.
18401         * modules/unistr/u16-mbtouc: New file.
18402         * modules/unistr/u32-mbtouc: New file.
18403         * lib/unistr/u8-mbtouc.c: New file.
18404         * lib/unistr/u16-mbtouc.c: New file.
18405         * lib/unistr/u32-mbtouc.c: New file.
18406
18407         * modules/unistr/u8-mbtouc-safe: New file.
18408         * modules/unistr/u16-mbtouc-safe: New file.
18409         * modules/unistr/u32-mbtouc-safe: New file.
18410         * lib/unistr/u8-mbtouc-safe.c: New file.
18411         * lib/unistr/u16-mbtouc-safe.c: New file.
18412         * lib/unistr/u32-mbtouc-safe.c: New file.
18413
18414         * modules/unistr/u8-move: New file.
18415         * modules/unistr/u16-move: New file.
18416         * modules/unistr/u32-move: New file.
18417         * lib/unistr/u8-move.c: New file.
18418         * lib/unistr/u16-move.c: New file.
18419         * lib/unistr/u32-move.c: New file.
18420         * lib/unistr/u-move.h: New file.
18421
18422         * modules/unistr/u8-next: New file.
18423         * modules/unistr/u16-next: New file.
18424         * modules/unistr/u32-next: New file.
18425         * lib/unistr/u8-next.c: New file.
18426         * lib/unistr/u16-next.c: New file.
18427         * lib/unistr/u32-next.c: New file.
18428
18429         * modules/unistr/u8-prev: New file.
18430         * modules/unistr/u16-prev: New file.
18431         * modules/unistr/u32-prev: New file.
18432         * lib/unistr/u8-prev.c: New file.
18433         * lib/unistr/u16-prev.c: New file.
18434         * lib/unistr/u32-prev.c: New file.
18435
18436         * modules/unistr/u8-set: New file.
18437         * modules/unistr/u16-set: New file.
18438         * modules/unistr/u32-set: New file.
18439         * lib/unistr/u8-set.c: New file.
18440         * lib/unistr/u16-set.c: New file.
18441         * lib/unistr/u32-set.c: New file.
18442         * lib/unistr/u-set.h: New file.
18443
18444         * modules/unistr/u8-startswith: New file.
18445         * modules/unistr/u16-startswith: New file.
18446         * modules/unistr/u32-startswith: New file.
18447         * lib/unistr/u8-startswith.c: New file.
18448         * lib/unistr/u16-startswith.c: New file.
18449         * lib/unistr/u32-startswith.c: New file.
18450         * lib/unistr/u-startswith.h: New file.
18451
18452         * modules/unistr/u8-stpcpy: New file.
18453         * modules/unistr/u16-stpcpy: New file.
18454         * modules/unistr/u32-stpcpy: New file.
18455         * lib/unistr/u8-stpcpy.c: New file.
18456         * lib/unistr/u16-stpcpy.c: New file.
18457         * lib/unistr/u32-stpcpy.c: New file.
18458         * lib/unistr/u-stpcpy.h: New file.
18459
18460         * modules/unistr/u8-stpncpy: New file.
18461         * modules/unistr/u16-stpncpy: New file.
18462         * modules/unistr/u32-stpncpy: New file.
18463         * lib/unistr/u8-stpncpy.c: New file.
18464         * lib/unistr/u16-stpncpy.c: New file.
18465         * lib/unistr/u32-stpncpy.c: New file.
18466         * lib/unistr/u-stpncpy.h: New file.
18467
18468         * modules/unistr/u8-strcat: New file.
18469         * modules/unistr/u16-strcat: New file.
18470         * modules/unistr/u32-strcat: New file.
18471         * lib/unistr/u8-strcat.c: New file.
18472         * lib/unistr/u16-strcat.c: New file.
18473         * lib/unistr/u32-strcat.c: New file.
18474         * lib/unistr/u-strcat.h: New file.
18475
18476         * modules/unistr/u8-strchr: New file.
18477         * modules/unistr/u16-strchr: New file.
18478         * modules/unistr/u32-strchr: New file.
18479         * lib/unistr/u8-strchr.c: New file.
18480         * lib/unistr/u16-strchr.c: New file.
18481         * lib/unistr/u32-strchr.c: New file.
18482
18483         * modules/unistr/u8-strcmp: New file.
18484         * modules/unistr/u16-strcmp: New file.
18485         * modules/unistr/u32-strcmp: New file.
18486         * lib/unistr/u8-strcmp.c: New file.
18487         * lib/unistr/u16-strcmp.c: New file.
18488         * lib/unistr/u32-strcmp.c: New file.
18489
18490         * modules/unistr/u8-strcpy: New file.
18491         * modules/unistr/u16-strcpy: New file.
18492         * modules/unistr/u32-strcpy: New file.
18493         * lib/unistr/u8-strcpy.c: New file.
18494         * lib/unistr/u16-strcpy.c: New file.
18495         * lib/unistr/u32-strcpy.c: New file.
18496         * lib/unistr/u-strcpy.h: New file.
18497
18498         * modules/unistr/u8-strcspn: New file.
18499         * modules/unistr/u16-strcspn: New file.
18500         * modules/unistr/u32-strcspn: New file.
18501         * lib/unistr/u8-strcspn.c: New file.
18502         * lib/unistr/u16-strcspn.c: New file.
18503         * lib/unistr/u32-strcspn.c: New file.
18504         * lib/unistr/u-strcspn.h: New file.
18505
18506         * modules/unistr/u8-strdup: New file.
18507         * modules/unistr/u16-strdup: New file.
18508         * modules/unistr/u32-strdup: New file.
18509         * lib/unistr/u8-strdup.c: New file.
18510         * lib/unistr/u16-strdup.c: New file.
18511         * lib/unistr/u32-strdup.c: New file.
18512         * lib/unistr/u-strdup.h: New file.
18513
18514         * modules/unistr/u8-strlen: New file.
18515         * modules/unistr/u16-strlen: New file.
18516         * modules/unistr/u32-strlen: New file.
18517         * lib/unistr/u8-strlen.c: New file.
18518         * lib/unistr/u16-strlen.c: New file.
18519         * lib/unistr/u32-strlen.c: New file.
18520         * lib/unistr/u-strlen.h: New file.
18521
18522         * modules/unistr/u8-strmblen: New file.
18523         * modules/unistr/u16-strmblen: New file.
18524         * modules/unistr/u32-strmblen: New file.
18525         * lib/unistr/u8-strmblen.c: New file.
18526         * lib/unistr/u16-strmblen.c: New file.
18527         * lib/unistr/u32-strmblen.c: New file.
18528
18529         * modules/unistr/u8-strmbtouc: New file.
18530         * modules/unistr/u16-strmbtouc: New file.
18531         * modules/unistr/u32-strmbtouc: New file.
18532         * lib/unistr/u8-strmbtouc.c: New file.
18533         * lib/unistr/u16-strmbtouc.c: New file.
18534         * lib/unistr/u32-strmbtouc.c: New file.
18535
18536         * modules/unistr/u8-strncat: New file.
18537         * modules/unistr/u16-strncat: New file.
18538         * modules/unistr/u32-strncat: New file.
18539         * lib/unistr/u8-strncat.c: New file.
18540         * lib/unistr/u16-strncat.c: New file.
18541         * lib/unistr/u32-strncat.c: New file.
18542         * lib/unistr/u-strncat.h: New file.
18543
18544         * modules/unistr/u8-strncmp: New file.
18545         * modules/unistr/u16-strncmp: New file.
18546         * modules/unistr/u32-strncmp: New file.
18547         * lib/unistr/u8-strncmp.c: New file.
18548         * lib/unistr/u16-strncmp.c: New file.
18549         * lib/unistr/u32-strncmp.c: New file.
18550
18551         * modules/unistr/u8-strncpy: New file.
18552         * modules/unistr/u16-strncpy: New file.
18553         * modules/unistr/u32-strncpy: New file.
18554         * lib/unistr/u8-strncpy.c: New file.
18555         * lib/unistr/u16-strncpy.c: New file.
18556         * lib/unistr/u32-strncpy.c: New file.
18557         * lib/unistr/u-strncpy.h: New file.
18558
18559         * modules/unistr/u8-strnlen: New file.
18560         * modules/unistr/u16-strnlen: New file.
18561         * modules/unistr/u32-strnlen: New file.
18562         * lib/unistr/u8-strnlen.c: New file.
18563         * lib/unistr/u16-strnlen.c: New file.
18564         * lib/unistr/u32-strnlen.c: New file.
18565         * lib/unistr/u-strnlen.h: New file.
18566
18567         * modules/unistr/u8-strpbrk: New file.
18568         * modules/unistr/u16-strpbrk: New file.
18569         * modules/unistr/u32-strpbrk: New file.
18570         * lib/unistr/u8-strpbrk.c: New file.
18571         * lib/unistr/u16-strpbrk.c: New file.
18572         * lib/unistr/u32-strpbrk.c: New file.
18573         * lib/unistr/u-strpbrk.h: New file.
18574
18575         * modules/unistr/u8-strrchr: New file.
18576         * modules/unistr/u16-strrchr: New file.
18577         * modules/unistr/u32-strrchr: New file.
18578         * lib/unistr/u8-strrchr.c: New file.
18579         * lib/unistr/u16-strrchr.c: New file.
18580         * lib/unistr/u32-strrchr.c: New file.
18581
18582         * modules/unistr/u8-strspn: New file.
18583         * modules/unistr/u16-strspn: New file.
18584         * modules/unistr/u32-strspn: New file.
18585         * lib/unistr/u8-strspn.c: New file.
18586         * lib/unistr/u16-strspn.c: New file.
18587         * lib/unistr/u32-strspn.c: New file.
18588         * lib/unistr/u-strspn.h: New file.
18589
18590         * modules/unistr/u8-strstr: New file.
18591         * modules/unistr/u16-strstr: New file.
18592         * modules/unistr/u32-strstr: New file.
18593         * lib/unistr/u8-strstr.c: New file.
18594         * lib/unistr/u16-strstr.c: New file.
18595         * lib/unistr/u32-strstr.c: New file.
18596         * lib/unistr/u-strstr.h: New file.
18597
18598         * modules/unistr/u8-strtok: New file.
18599         * modules/unistr/u16-strtok: New file.
18600         * modules/unistr/u32-strtok: New file.
18601         * lib/unistr/u8-strtok.c: New file.
18602         * lib/unistr/u16-strtok.c: New file.
18603         * lib/unistr/u32-strtok.c: New file.
18604         * lib/unistr/u-strtok.h: New file.
18605
18606         * modules/unistr/u8-uctomb: New file.
18607         * modules/unistr/u16-uctomb: New file.
18608         * modules/unistr/u32-uctomb: New file.
18609         * lib/unistr/u8-uctomb.c: New file.
18610         * lib/unistr/u16-uctomb.c: New file.
18611         * lib/unistr/u32-uctomb.c: New file.
18612
18613         * MODULES.html.sh (Unicode string functions): Add the new modules.
18614
18615 2007-01-08  Bruno Haible  <bruno@clisp.org>
18616
18617         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18618         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18619         subdirectories.
18620
18621 2007-01-08  Karl Berry  <karl@gnu.org>
18622
18623         * doc/error.texi: mention that main() fns must set program_name
18624         when progname is used.
18625
18626 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18629         WCTYPE_H is empty, for the benefit of builds from non-distclean
18630         directories.  Problem reported by Eric Blake in
18631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18632
18633 2007-01-08  Bruno Haible  <bruno@clisp.org>
18634
18635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18636         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18637         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18638         PROVIDE_CANONICALIZE_FILENAME_MODE.
18639         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18640
18641 2007-01-08  Bruno Haible  <bruno@clisp.org>
18642
18643         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18644         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18645         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18646         * lib/fts.c: Likewise.
18647         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18648
18649 2006-12-25  Bruno Haible  <bruno@clisp.org>
18650
18651         * modules/utf8-ucs4-safe: New file.
18652         * lib/utf8-ucs4-safe.h: New file.
18653         * lib/unistr/utf8-ucs4-safe.c: New file.
18654
18655         * modules/utf16-ucs4-safe: New file.
18656         * lib/utf16-ucs4-safe.h: New file.
18657         * lib/unistr/utf16-ucs4-safe.c: New file.
18658
18659         * MODULES.html.sh (Unicode string functions): Add the new modules.
18660
18661 2007-01-08  Bruno Haible  <bruno@clisp.org>
18662
18663         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18664         (Depends-on): Add unitypes.
18665         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18666         (u8_mbtouc_aux): Move out to separate file.
18667         (u8_mbtouc): Use ucs4_t, uint8_t types.
18668         * lib/unistr/utf8-ucs4.c: New file.
18669
18670         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18671         (Depends-on): Add unitypes.
18672         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18673         (u16_mbtouc_aux): Move out to separate file.
18674         (u16_mbtouc): Use ucs4_t, uint16_t types.
18675         * lib/unistr/utf16-ucs4.c: New file.
18676
18677         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18678         (Depends-on): Add unitypes.
18679         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18680         (u8_uctomb_aux): Move out to separate file.
18681         (u8_uctomb): Use ucs4_t, uint8_t types.
18682         * lib/unistr/ucs4-utf8.c: New file.
18683
18684         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18685         (Depends-on): Add unitypes.
18686         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18687         (u16_uctomb_aux): Move out to separate file.
18688         (u16_uctomb): Use ucs4_t, uint16_t types.
18689         * lib/unistr/ucs4-utf16.c: New file.
18690
18691 2006-12-25  Bruno Haible  <bruno@clisp.org>
18692
18693         * modules/unitypes: New file.
18694         * lib/unitypes.h: New file.
18695         * MODULES.html.sh (func_all_modules): New section "Unicode string
18696         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18697         this section. Add unitypes.
18698
18699 2007-01-08  Bruno Haible  <bruno@clisp.org>
18700
18701         Avoid variable names that conflict with those from libtool.
18702         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18703         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18704         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18705         library_names_spec to acl_library_names_spec, hardcode_* to
18706         acl_hardcode_*.
18707         Reported by Ralf Wildenhues.
18708
18709 2007-01-08  Bruno Haible  <bruno@clisp.org>
18710
18711         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18712         definition.
18713         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18714         definition.
18715         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18716         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18717         definition.
18718         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18719         definition.
18720         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18721         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18722         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18723         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18724         definition.
18725         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18726         definition.
18727         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18728         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18729         GC_USE_<algorithm>.
18730         * lib/gc-libgcrypt.c: Likewise.
18731         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18732         * modules/gc-arctwo (configure.ac): Likewise.
18733         * modules/gc-des (configure.ac): Likewise.
18734         * modules/gc-hmac-md5 (configure.ac): Likewise.
18735         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18736         * modules/gc-md2 (configure.ac): Likewise.
18737         * modules/gc-md4 (configure.ac): Likewise.
18738         * modules/gc-md5 (configure.ac): Likewise.
18739         * modules/gc-random (configure.ac): Likewise.
18740         * modules/gc-rijndael (configure.ac): Likewise.
18741         * modules/gc-sha1 (configure.ac): Likewise.
18742
18743 2007-01-08  Bruno Haible  <bruno@clisp.org>
18744
18745         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18746         macro definition.
18747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18748         definition.
18749         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18750         definition.
18751         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18752         * modules/fcntl-safer (configure.ac): Likewise.
18753         * modules/fopen-safer (configure.ac): Likewise.
18754         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18755         GNULIB_FWRITEERROR macro definition.
18756
18757 2007-01-08  Bruno Haible  <bruno@clisp.org>
18758
18759         * m4/gnulib-common.m4: New file.
18760         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18761         (func_get_filelist): Add m4/gnulib-common.m4.
18762
18763 2007-01-08  Bruno Haible  <bruno@clisp.org>
18764
18765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18766         command.
18767
18768 2007-01-08  Jim Meyering  <jim@meyering.net>
18769
18770         Use a more robust test for a "can't happen" condition.
18771         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18772         narrowed the st_size value.  Presuming the "can't happen" condition
18773         is true, that narrowing could conceivably convert an invalid st_size
18774         value into a valid one.  Instead, use a change based on Matthew
18775         Woehlke's original patch.
18776
18777         Slight readability improvement: use an assert-like macro
18778         in place of literal "abort ()" uses.
18779         * lib/fts.c (fts_assert): Define.
18780         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18781         Use this macro instead of a bare 'abort'.
18782
18783 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18784
18785         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18786         simply work around them.
18787         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18788         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18789         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18790         declaring.
18791         Don't bother to define as macros, since the standard doesn't require it.
18792         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18793         longer worry about IRIX 5.3.
18794         (HAVE_WCTYPE_CTMP_BUG): Remove.
18795
18796 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18797
18798         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18799         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18800         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18801         Problems reported by Georg Schwarz for IRIX 5.3.
18802
18803         * gnulib-tool (autoconf_minversion): Take the maximum version number
18804         found, not the minimum.  Problem reported by James Youngman.
18805
18806 2007-01-03  Karl Berry  <karl@gnu.org>
18807
18808         * doc/error.texi: new file, explaining interaction with progname.
18809         * doc/gnulib.texi: include it.  Update copyright.
18810
18811 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18812
18813         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18814         AC_CANONICAL_HOST, to improve autobuild outputs.
18815
18816 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18817             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18818
18819         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18820         sockets, server sockets, and other file descriptors.  Count errors
18821         to compute the return value.  Reorder the code a bit to be easier
18822         to follow.  Don't set event bits that were not requested (except
18823         POLLERR and POLLHUP).
18824
18825 2007-01-01  Bruno Haible  <bruno@clisp.org>
18826
18827         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18828
18829 2007-01-03  Jim Meyering  <jim@meyering.net>
18830
18831         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18832
18833 2007-01-02  Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/settime (Include): Require timespec.h.
18836         * modules/nanosleep (Include): Likewise.
18837
18838 2007-01-01  Bruno Haible  <bruno@clisp.org>
18839
18840         * gnulib-tool (func_emit_copyright_notice): Bump year.
18841         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18842
18843 2007-01-01  Bruno Haible  <bruno@clisp.org>
18844
18845         Improve support for OpenBSD.
18846         * build-aux/config.rpath (libname_spec): Export.
18847         (library_names_spec): New variable. Export.
18848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18849         library_names_spec from the config.rpath output. Locate shared library
18850         through the name pattern in library_names_spec.
18851
18852 2007-01-01  Eric Blake  <ebb9@byu.net>
18853
18854         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18855
18856 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18859         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18860         assume the C locale, and avoid an "eval" that could cause trouble.
18861         Problem with SORT reported by Bob Proulx.
18862
18863         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18864         Define.  Trivial patch from Henning Nielsen Lund, originally
18865         sent to bug-grep@gnu.org today.
18866
18867 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18868
18869         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18870         struct stat.  Problem reported by Henning Nielsen Lund.
18871         * lib/acl.c: Include acl.h first, to check interface.  Don't
18872         bother to include sys/types.h and sys/stat.h again.
18873
18874 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18875
18876         Import the following change from libc; problem reported by
18877         Sven Verdoolaege.
18878
18879         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18880
18881         [BZ #1373]
18882         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18883
18884 2006-12-28  Jim Meyering  <jim@meyering.net>
18885
18886         * build-aux/announce-gen: Do not assume that the package
18887         builds any of tar.gz, tar.bz2, and .xdelta files.
18888         Suggestion from Simon Josefsson.
18889
18890 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18891
18892         * modules/announce-gen: New file.
18893
18894 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18895
18896         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18897         handles its gotchas now.
18898         * lib/mbswidth.c: Likewise.
18899         * lib/wcwidth.h: Likewise.
18900         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18901         and iswcntrl; the wctype module does this stuff now.
18902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18904         * modules/mbchar (Depends-on): Add wctype.
18905         * modules/mbswidth (Depends-on): Likewise.
18906         * modules/wcwidth (Depends-on): Likewise.
18907
18908 2006-12-27  Eric Blake  <ebb9@byu.net>
18909
18910         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18911         module uses more than what <wctype.h> is required to provide.
18912
18913 2006-12-26  Eric Blake  <ebb9@byu.net>
18914
18915         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18916
18917 2006-12-26  Eric Blake  <ebb9@byu.net>
18918
18919         * modules/absolute-header: New module.
18920         * modules/fcntl (Depends-on): Depend on it.
18921         * modules/inttypes (Depends-on): Likewise.
18922         * modules/stdint (Depends-on): Likewise.
18923         * modules/sys_stat (Depends-on): Likewise.
18924         * modules/wctype (Depends-on): Likewise.
18925         * MODULES.html.sh (Support for building libraries and
18926         executables): Document it.
18927
18928 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18929
18930         * gnulib-tool (SED): Remove, undoing previous change.
18931         The problem was that it broke coreutils on Solaris, because
18932         "sed --posix" leaked into a makefile.
18933         (sed): New alias, if 'alias' and GNU sed.
18934
18935 2006-12-24  Jim Meyering  <jim@meyering.net>
18936
18937         Work around an fchownat bug in glibc-2.4:
18938         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18939         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18940         in spite of the -P option.
18941         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18942         New macros.
18943         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18944         * modules/openat (Files): Add lib/fchownat.c.
18945         * lib/openat.c (fchownat): Don't define here.  Move to...
18946         * lib/fchownat.c: ...this new file.
18947
18948 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18949
18950         Fix bug reported by Bruno Haible in
18951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18952         where quotearg.c didn't compile on Mac OS X 10.2 because it
18953         lacks <wchar.h> and wint_t.
18954         * lib/wctype_.h (__wctype_wint_t): New type.
18955         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18956         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18957         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18958         Arg is now of type __wctype_wint_t, not wint_t.
18959         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18960         substitute HAVE_WINT_T.
18961         * modules/wctype (Files): Add m4/wint_t.m4.
18962         (wctype.h): Substitute HAVE_WINT_T.
18963
18964 2006-12-23  Bruno Haible  <bruno@clisp.org>
18965
18966         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18967
18968 2006-12-23  Bruno Haible  <bruno@clisp.org>
18969
18970         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18971         S_ISLNK.
18972         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18973         mingw.
18974
18975 2006-12-22  Bruno Haible  <bruno@clisp.org>
18976
18977         * lib/copy-file.c: Include acl.h.
18978         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18979         Close the file descriptors only after being done with copy_acl.
18980         * modules/copy-file (Depends-on): Add acl.
18981
18982 2006-12-22  Bruno Haible  <bruno@clisp.org>
18983
18984         * gnulib-tool (SED): New variable.
18985         Use $SED instead of sed everywhere.
18986
18987 2006-12-22  Bruno Haible  <bruno@clisp.org>
18988
18989         * modules/no-c++: New file.
18990         * m4/no-c++.m4: New file.
18991         * MODULES.html.sh (Support for building libraries and executables):
18992         Add no-c++.
18993
18994 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18995
18996         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18997         Include <limits.h>, and use its INT_MAX to rewrite the
18998         j loop so that it does not overflow 'int'.  Problem reported by
18999         Ralf Wildenhues in
19000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19001         Play it safe by shifting left by 1 rather than multiplying by 2,
19002         as GCC is less likely to optimize this away when the value
19003         is signed (when it assumes overflow leads to undefined behavior).
19004         Also, don't assume time_t uses two's complement.
19005
19006 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19007
19008         * MODULES.html.sh: New module wctype.
19009         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19010         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19011         <wctype.h>, since the new wctype module should fix this.
19012         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19013         the wctype module should arrange for it.
19014         * lib/regex_internal.h: Likewise.
19015         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19016         since the wctype module should handle this now.
19017         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19018         * modules/fnmatch (Depends-on): Add wctype.
19019         * modules/quotearg (Depends-on): Likewise.
19020         * modules/regex (Depends-on): Likewise.
19021
19022 2006-12-19  Bruno Haible  <bruno@clisp.org>
19023
19024         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19025         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19026
19027 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19028
19029         * modules/savewd (Depends-on): Fix dependency on fcntl.
19030
19031 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19032
19033         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19034         conforms to C99, rather than relying on the user's environment
19035         setting of STDINT_H.
19036
19037 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19038         and Eric Blake  <ebb9@byu.net>
19039
19040         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
19041         This is more consistent with the other defines here.
19042         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
19043         Port to z/OS.  Problem reported by Paul Gilmartin.
19044         Change local vars to use gl_ prefix rather than ac_.
19045         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
19046         with other defines.
19047         * modules/double-slash-root: New module.
19048         * modules/dirname (Files): Remove m4/double-slash-root.m4.
19049         (Depends-on): Add double-slash-root.
19050         * MODULES.html.sh (File system functions): Mention new module.
19051
19052 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
19053
19054         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
19055         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
19056         This is for the benefit of gzip, which doesn't do i18n.
19057
19058 2006-12-12  Jim Meyering  <jim@meyering.net>
19059
19060         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19061         Reported by Andreas Schwab <schwab@suse.de>.
19062
19063 2006-12-12  Bruno Haible  <bruno@clisp.org>
19064
19065         Merge these changes.
19066         2006-09-05  Bruno Haible  <bruno@clisp.org>
19067         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19068         iconv_alloc succeeded.
19069         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19070         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19071         test for " && dest " at the end - dest is always != NULL there. Call
19072         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19073         with 2xNULL arguments, also to flush the state storage. Handle the
19074         IRIX iconv behaviour. Realloc the final result, to throw away unused
19075         memory.
19076
19077 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19080         and fchmodat unconditionally, since glibc 2.4 has them.
19081         Problem reported by Arkadiusz Miskiewicz.
19082
19083 2006-12-10  Bruno Haible  <bruno@clisp.org>
19084
19085         * gnulib-tool (func_import): Show the include files only for those
19086         modules that are copied and specified.
19087         Reported by Karl Berry.
19088
19089 2006-12-08  Jim Meyering  <jim@meyering.net>
19090
19091         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19092         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19093
19094         * build-aux/announce-gen: Add two new options, both optional:
19095         --bootstrap-tools=TOOL_LIST
19096               a comma-separated list of tools, e.g.,
19097               autoconf,automake,bison,gnulib
19098         --gnulib-snapshot-date=DATE
19099               if gnulib is in the bootstrap tool list,
19100               then report this as the snapshot date.
19101               If not specified, use the current date/time.
19102               If you specify a date here, be sure it's UTC.
19103
19104 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19105
19106         * tests/test-argp-2.sh: Fix test to match actual output.
19107         (func_compare): Fix sed script to be portable.
19108
19109 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19110
19111         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19112         workaround for this case.  It is not autoconfigured now; offhand
19113         it's hard to see how to autoconfigure it.
19114
19115 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19118         a directory that is about to be chowned.  Such a directory's
19119         initial file permissions should permit the owner only and this
19120         should not be changed until after the chown, since the group and
19121         other bits would be incorrect if they granted permission before
19122         the chown.
19123
19124         Fix porting problem for iswctype reported by Georg Schwarz in:
19125         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19126         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19127         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19128         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19129         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19130
19131 2006-12-03  Jim Meyering  <jim@meyering.net>
19132
19133         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19134         p->fts_statp may not yet be defined.
19135         (fts_read): Instead, set it in the caller, once p->fts_statp is
19136         sure to be defined, and corresponds to a top-level directory.
19137         This bug made du -x fail.  Here's the coreutils test case:
19138         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19139         Reported by Mike Frysinger.
19140
19141 2006-12-01  Jim Meyering  <jim@meyering.net>
19142
19143         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19144         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19145         Reported by Simon Josefsson.
19146
19147 2006-11-30  Jim Meyering  <jim@meyering.net>
19148
19149         * m4/warning.m4: Use the all-permissive copyright notice
19150         recommended by RMS (rather than LGPL).
19151         * m4/vararrays.m4: Likewise.
19152         * m4/flexmember.m4: Likewise.
19153
19154 2006-11-29  Bruno Haible  <bruno@clisp.org>
19155
19156         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19157         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19158         using +=.
19159         Reported by Simon Josefsson <simon@josefsson.org>.
19160
19161 2006-11-28  James Youngman <jay@gnu.org>
19162
19163         * README: Advise users that they might find the bug-gnulib@gnu.org
19164         and autotools-announce@gnu.org mailing lists useful.
19165
19166 2006-11-28  Bruno Haible  <bruno@clisp.org>
19167
19168         * m4/ptrdiff_max.m4: Remove file.
19169
19170 2006-11-21  Bruno Haible  <bruno@clisp.org>
19171
19172         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19173         _AC_COMPUTE_INT.
19174         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19175         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19176         _AC_COMPUTE_INT.
19177         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19178         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19179         _AC_COMPUTE_INT.
19180         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19181
19182 2006-11-28  Jim Meyering  <jim@meyering.net>
19183
19184         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19185         warning from "gcc -Wshadow" about shadowing the builtin.
19186
19187 2006-11-27  Bruno Haible  <bruno@clisp.org>
19188
19189         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19190         _AC_COMPUTE_INT.
19191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19192
19193 2006-11-27  Bruno Haible  <bruno@clisp.org>
19194             Paul Eggert  <eggert@cs.ucla.edu>
19195
19196         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19197
19198 2006-11-26  Bruno Haible  <bruno@clisp.org>
19199
19200         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19201         noinst_LTLIBRARIES.
19202
19203 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19204             Bruno Haible  <bruno@clisp.org>
19205
19206         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19207         if compiling with "gcc -ansi".
19208
19209 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19210
19211         Fix some incompatibilities with gcc -ansi -pedantic.
19212         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19213         if compiling pedantically with GCC, unless it's C99 or later.
19214         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19215         it mishandles gcc -ansi -pedantic as well.
19216         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19217         if gcc -pedantic.
19218         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19219         initializers for struct if -pedantic, unless it's C99 or later.
19220
19221 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19222
19223         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19224         Don't close an fd more than once. Identical atimes indicate
19225         success, not failure.
19226
19227 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19228
19229         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19230
19231 2006-11-23  Jim Meyering  <jim@meyering.net>
19232
19233         * build-aux/announce-gen: New file.  From coreutils.
19234
19235 2006-11-22  Jim Meyering  <jim@meyering.net>
19236
19237         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19238         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19239         (fts_read): Use a temporary to narrow the overused st_size member
19240         before using it in a switch statement.  Reported by Matthew Woehlke.
19241
19242         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19244
19245 2006-11-20  Bruno Haible  <bruno@clisp.org>
19246
19247         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19248         changequote instead of pairs of brackets.
19249         Reported by Andreas Schwab <schwab@suse.de>.
19250
19251 2006-11-21  Jim Meyering  <jim@meyering.net>
19252
19253         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19254         so as to remain compatible with older compilers.
19255         Patch from Michael Deutschmann.
19256
19257 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         * MODULES.html.sh (File system functions): Add openat.
19260
19261         * lib/openat.h (rpl_fstatat): New macro, if
19262         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19263         (fstatat): Define to rpl_fstatat under the same conditions,
19264         unless COMPILING_FSTATAT.
19265         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19266         seems to have the bug.
19267         * lib/fstatat.c: New file.
19268         * modules/openat (Files): Add it.
19269
19270 2006-11-20  Bruno Haible  <bruno@clisp.org>
19271
19272         * Makefile: New file.
19273
19274 2006-11-20  Jim Meyering  <jim@meyering.net>
19275
19276         The beginnings of syntax-related checks for gnulib.
19277         * lib/Makefile: New file.
19278         * lib/t-idcache: New script.  Ensure that the two halves of
19279         idcache.c stay in sync.
19280
19281         * lib/idcache.c: Adjust comments in user- and group- portions to
19282         be more accurate, and to be consistent with one another.
19283
19284 2006-11-20  Jim Meyering  <jim@meyering.net>
19285
19286         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19287         continue using the flexible array member (thus, this module performs
19288         half as many malloc calls), with the addition that...
19289         (getgroup, getuser): Consistently record a non-match via an empty
19290         "name" string, and map an empty string match to a NULL return value.
19291         * modules/idcache (Depends-on): Re-add flexmember.
19292
19293         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19294         (getuidbyname, getgroup, getgidbyname): Likewise.
19295
19296         Use cleaner syntax: NULL rather than 0.
19297         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19298
19299 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19300
19301         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19302         It mishandled the case where the group was missing.
19303         Problem reported by Greg Schafer.
19304         * modules/idcache: Likewise.
19305
19306 2006-11-18  Jim Meyering  <jim@meyering.net>
19307
19308         * check-module (%exempt_header): Add exception for some
19309         conditionally-included headers.
19310
19311         * modules/i-ring (Depends-on): Add verify.
19312         (License): Change to LGPL.
19313
19314 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19315
19316         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19317         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19318         and inttostr.h.  Use snprintf rather than uinttostr, so that
19319         LGPLed code doesn't depend on GPLed.
19320
19321 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19322
19323         * modules/inline (License): Change from GPL to LGPL.
19324
19325 2006-11-17  Jim Meyering  <jim@meyering.net>
19326
19327         * modules/d-type (License): Switch to LGPL.
19328
19329 2006-11-15  Bruno Haible  <bruno@clisp.org>
19330
19331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19332
19333 2006-11-15  Eric Blake  <ebb9@byu.net>
19334
19335         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19336         the module dependency.
19337
19338 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19339             Bruno Haible  <bruno@clisp.org>
19340
19341         * gnulib-tool (func_create_testdir): Add license consistency check.
19342
19343 2006-11-15  Eric Blake  <ebb9@byu.net>
19344
19345         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19346         random "(cached)" in configure output.
19347
19348 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19349
19350         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19351         test for conforming inttypes.h is both announced and cached.
19352
19353         * MODULES.html.sh (seen_modules, seen_files): New variables.
19354         (func_module): Rewrite to use a few less gnulib-tool and sed
19355         invocations.  Avoid a couple of quadratic algorithms for ...
19356         (missed_modules, missed_files): ... these, with ...
19357         (func_append, func_tmpdir): ... these new functions, from
19358         gnulib-tool.  Analogously, install traps for cleanup.
19359
19360         * tests/test-gc.c (main): Remove unused variables.
19361         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19362
19363 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19364
19365         * modules/inttostr (License): Change to LGPL.
19366
19367 2006-11-14  Eric Blake  <ebb9@byu.net>
19368
19369         * modules/tempname (License): Change to LGPL.
19370
19371 2006-11-14  Eric Blake  <ebb9@byu.net>
19372
19373         * doc/functions.texi (Function Portability): *printf functions on
19374         Cygwin now understand all POSIX size specifiers.
19375
19376 2006-11-14  Bruno Haible  <bruno@clisp.org>
19377
19378         * modules/c-ctype (License): Change to LGPL.
19379
19380 2006-11-12  Bruno Haible  <bruno@clisp.org>
19381
19382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19383         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19384         for GNOME libraries, for which the include files are installed in
19385         subdirectories of $prefix/include.
19386
19387 2006-11-12  Bruno Haible  <bruno@clisp.org>
19388
19389         * m4/lib-link.m4: Require at least autoconf-2.54.
19390         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19391         name to underscores for the --with option.
19392
19393 2006-11-13  Bruno Haible  <bruno@clisp.org>
19394
19395         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19396         the tests directory.
19397         Reported by Ralf Wildenhues.
19398
19399 2006-11-13  Bruno Haible  <bruno@clisp.org>
19400
19401         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19402         (func_emit_initmacro_end): Undo the override here.
19403         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19404         Works around the famous automake error in coreutils.
19405
19406 2006-11-13  Eric Blake  <ebb9@byu.net>
19407
19408         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19409         element, not its node.
19410
19411 2006-11-12  Bruno Haible  <bruno@clisp.org>
19412
19413         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19414         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19415
19416 2006-11-12  Bruno Haible  <bruno@clisp.org>
19417
19418         * gnulib-tool: New option --local-symlink.
19419         (func_usage): Document it.
19420         (lsymbolic): New variable.
19421         (func_import, func_create_testdir): If --symlink was not specified,
19422         test whether --local-symlink was specified and the file comes from
19423         the local_gnulib_dir.
19424
19425 2006-11-12  Bruno Haible  <bruno@clisp.org>
19426
19427         * gnulib-tool (func_ln): New function.
19428         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19429
19430 2006-11-12  Bruno Haible  <bruno@clisp.org>
19431
19432         Finish support for source files in subdirectories.
19433         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19434         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19435         AUTOMAKE_OPTIONS.
19436         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19437
19438 2006-11-12  Bruno Haible  <bruno@clisp.org>
19439
19440         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19441         EXTRA_lib_SOURCES augmentation.
19442         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19443
19444 2006-11-12  Jim Meyering  <jim@meyering.net>
19445
19446         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19447         file descriptors.  This also averts a failure on systems with
19448         native openat support when a traversed directory lacks "x" access.
19449         * lib/fts_.h: Include "i-ring.h"
19450         (struct FTS) [fts_fd_ring]: New member.
19451         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19452         (FCHDIR): Add parentheses.
19453         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19454         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19455         When descending, rather than simply closing the previous
19456         fts_cwd_fd value, push that file descriptor onto the ring.
19457         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19458         (fts_open): Initialize the new fd_ring member.
19459         (fts_close): Clear the ring.
19460         (fts_safe_changedir): When possible, use our new fd_ring to skip
19461         the diropen and fstat and dev/ino comparison that would normally
19462         accompany a virtual `chdir ("..")'.
19463
19464         * modules/fts (Depends-on): Add i-ring.
19465         * modules/i-ring: New module.
19466         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19467         * m4/i-ring.m4: New file.
19468
19469 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19470
19471         * gnulib-tool (func_create_testdir): Fix replacement of
19472         `build-aux' in configure.ac.  Run autotools in gltests
19473         subdirectory.
19474         (func_create_testdir, func_create_megatestdir, test): There is
19475         no need for '--force' in most autotool invocations in a new
19476         tree.  Actually fail the whole test if any of the tools, or the
19477         configure or make stages fail.
19478
19479         Sync from Automake.
19480         * build-aux/gnupload: Revert last change.  Add pointer to upload
19481         instructions of the GNU Maintenance Instructions.
19482         Suggestion by Karl Berry.
19483
19484 2006-11-10  Jim Meyering  <jim@meyering.net>
19485
19486         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19487
19488 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19489
19490         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19491         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19492         (bind_textdomain_codeset) [! ENABLE_NLS]:
19493         Evaluate all the arguments.  That way, callers get compatible behavior
19494         if the arguments have side effects.  Also, it avoids some GCC
19495         diagnostics in some cases; Joel E. Denny reported problems when Bison
19496         was configured with --enable-gcc-warnigs.
19497
19498 2006-11-10  Jim Meyering  <jim@meyering.net>
19499
19500         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19501         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19502         account.
19503
19504 2006-11-10  Jim Meyering  <jim@meyering.net>
19505
19506         * modules/inline: New file/module.
19507         * modules/xalloc (Files): Remove m4/inline.m4.
19508         (Depends-on): Add inline, instead.
19509         * modules/oset: Likewise.
19510         * modules/list: Likewise.
19511
19512 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19513
19514         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19515         Problem reported by Matthew Woehlke.
19516
19517 2006-11-09  Bruno Haible  <bruno@clisp.org>
19518
19519         * lib/tempname.c (gen_tempname): Remove variant that invokes
19520         __gen_tempname.
19521         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19522         __gen_tempname.
19523
19524 2006-11-08  Bruno Haible  <bruno@clisp.org>
19525
19526         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19527         to 'yes' instead of 'cross-compiling'.
19528
19529 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19530
19531         * lib/quotearg.h (quotearg_free): New decl.
19532         * lib/quotearg.c (quotearg_free): New function.
19533         (slot0, nslots, slotvec0, slotvec):
19534         Now file-scope so that quotearg_free can get at them.
19535
19536 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19537
19538         Sync from Automake.
19539         * build-aux/gnupload: Add missing 'gnu' to example URL.
19540         Report by Karl Berry.
19541
19542 2006-11-08  Bruno Haible  <bruno@clisp.org>
19543
19544         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19545         Suggested by Paul Eggert.
19546
19547 2006-11-08  Jim Meyering  <jim@meyering.net>
19548
19549         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19550         It's already included if !_LIBC.
19551         (fts_safe_changedir): Add a comment.
19552
19553 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19554
19555         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19556         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19557         Matthew Woehlke.
19558
19559         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19560         definitions up, to avoid colliding with change below.
19561         (static_inline) [HAVE_INLINE]: New macro.
19562         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19563         Provide extern decls when !HAVE_INLINE.  Do not define unless
19564         static_inline is defined, either by us or by xmalloc.c.  Use
19565         static_inline rather than static inline.
19566         (XCALLOC): Optimize sizeof(T) = 1 case.
19567         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19568
19569 2006-11-07  Bruno Haible  <bruno@clisp.org>
19570
19571         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19572         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19573         AC_C_INLINE.
19574         * modules/xalloc (Files): Add m4/inline.m4.
19575
19576 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19577
19578         * README: Fix typo.
19579         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19580         (Miscellanous Notes): ...from this.
19581
19582 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19585         Mention that offsetof should be used instead of sizeof.
19586         From Bruno Haible.
19587
19588 2006-11-07  Bruno Haible  <bruno@clisp.org>
19589
19590         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19591
19592 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19593
19594         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19595         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19596         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19597         (gl_tree_add_before, gl_tree_add_after):
19598         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19599         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19600         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19601         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19602         (gl_linked_add_after, gl_linked_add_at): Likewise.
19603         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19604         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19605         (gl_tree_add_before, gl_tree_add_after): Likewise.
19606         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19607         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19608         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19609
19610 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19611
19612         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19613
19614 2006-11-06  Bruno Haible  <bruno@clisp.org>
19615
19616         * m4/inline.m4: New file.
19617         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19618         * modules/list (Files): Add m4/inline.m4.
19619         * modules/oset (Files): Likewise.
19620
19621 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19622
19623         * lib/idcache.c: Include <stddef.h>, for offsetof.
19624         (struct userid.name): Change from char * to a flexible array member.
19625         All uses changed.
19626         * modules/idcache (Depends-on): Add flexmember.
19627
19628         * MODULES.html.sh (Core language properties): New module flexmember.
19629         * modules/flexmember, m4/flexmember.m4: New files.
19630
19631         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19632         inline functions that are identical with the old xnmalloc_inline,
19633         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19634         that we can avoid some unnecessary integer multiplications and
19635         divisions in the common case where the element size is known at
19636         compile time.
19637         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19638         needed.
19639         (xnboundedmalloc): Remove.
19640         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19641         arguments, for consistency with rest of this header.
19642         (xcharalloc): Rewrite using XNMALLOC.
19643         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19644         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19645         versions have been moved to lib/xalloc.h and renamed to be the
19646         non-*_inline versions.
19647         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19648         and xnrealloc functions, since those functions are now inline and
19649         now call us.
19650         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19651         renaming described above.
19652         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19653         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19654         captures the dependency in AC_C_INLINE.
19655
19656         New module canonicalize-lgpl, proposed by Charles Wilson in
19657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19658         with a few small changes afterwards.
19659         * MODULES.html.sh (File system functions): New module
19660         canonicalize-lgpl.
19661         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19662         and canonicalize_file_name.
19663         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19664         * modules/canonicalize-lgpl: New files.
19665
19666 2006-11-05  Bruno Haible  <bruno@clisp.org>
19667
19668         * gnulib-tool (func_import, func_create_testdir): Create directories
19669         also for files in subdirectories of lib/.
19670
19671 2006-11-05  Bruno Haible  <bruno@clisp.org>
19672
19673         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19674         ANSI C compliant.
19675
19676 2006-11-03  Bruno Haible  <bruno@clisp.org>
19677
19678         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19679         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19680         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19681         (xnboundedmalloc): New inline function.
19682         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19683         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19684         xmalloc.
19685         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19686         xmalloc.
19687         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19688         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19689         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19690         xmalloc.
19691         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19692         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19693         xmalloc.
19694         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19695         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19696         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19697         xmalloc.
19698         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19699         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19700         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19701         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19702         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19703         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19704         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19705
19706 2006-11-03  Bruno Haible  <bruno@clisp.org>
19707
19708         * lib/c-ctype.h [C++]: Define functions without name mangling.
19709         * lib/fwriteerror.h [C++]: Likewise.
19710         * lib/gcd.h [C++]: Likewise.
19711         * lib/linebreak.h [C++]: Likewise.
19712
19713 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19714
19715         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19716         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19717         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19718         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19719         Check for functions and headers just once.
19720         Check for declaration of canonicalize_file_name.
19721         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19722
19723 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19724
19725         * gnulib-tool (func_import): Fix typo in actioncmd.
19726
19727 2006-11-02  Bruno Haible  <bruno@clisp.org>
19728
19729         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19730         newline sequence in the Makefile.am snippet as a space, like "make"
19731         does.
19732         Reported by Roger Persson <perrog@gmail.com>.
19733
19734 2006-11-01  Bruno Haible  <bruno@clisp.org>
19735
19736         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19737         already declared in <string.h>.
19738         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19739
19740 2006-11-01  Bruno Haible  <bruno@clisp.org>
19741
19742         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19743         * lib/strcase.h: Include <string.h>.
19744         (strcasecmp): Define to rpl_strcasecmp here.
19745
19746 2006-11-01  Bruno Haible  <bruno@clisp.org>
19747
19748         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19749
19750 2006-11-01  Eric Blake  <ebb9@byu.net>
19751
19752         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19753
19754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19755
19756 2006-10-29  Bruno Haible  <bruno@clisp.org>
19757
19758         Make it compile in C++ mode.
19759         * lib/full-write.c (full_rw): Add a cast.
19760
19761 2006-11-01  Bruno Haible  <bruno@clisp.org>
19762
19763         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19764         be POSIX compliant.
19765         Reported by Roger Persson <perrog@gmail.com>.
19766
19767 2006-11-01  Eric Blake  <ebb9@byu.net>
19768
19769         * lib/getopt_.h: Fix comments.
19770
19771 2006-10-31  Eric Blake  <ebb9@byu.net>
19772
19773         * modules/tmpdir (Depends-on): Add sys_stat.
19774         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19775         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19776         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19777         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19778         tempname.
19779
19780 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         Avoid some C++ diagnostics reported by Bruno Haible.
19783         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19784         xmalloc.
19785         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19786         (struct slotvec): Move to top level.
19787         (quotearg_n_options): Rewrite to avoid xmalloc.
19788         * lib/xalloc.h (xcharalloc): New function.
19789         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19790         [defined __cplusplus]: Add function template that provides result
19791         type propagation.  This part of the change is from Bruno Haible.
19792
19793 2006-10-29  Bruno Haible  <bruno@clisp.org>
19794
19795         Make it compile in C++ mode.
19796         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19797         * lib/strnlen1.c (strnlen1): Cast memchr result.
19798         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19799         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19800         (create_temp_dir): Rename local variable 'template'.
19801         (compile_csharp_using_sscli): Add cast.
19802         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19803         * lib/findprog.c (find_in_path): Likewise.
19804         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19805         * lib/wait-process.c (register_slave_subprocess): Likewise.
19806
19807 2006-10-22  Bruno Haible  <bruno@clisp.org>
19808
19809         * modules/tsearch: New file.
19810         * lib/tsearch.h: New file.
19811         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19812         * m4/tsearch.m4: New file.
19813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19814
19815 2006-10-29  Eric Blake  <ebb9@byu.net>
19816
19817         * lib/arcfour.c: Assume config.h.
19818         * lib/arctwo.c: Likewise.
19819         * lib/base64.c: Likewise.
19820         * lib/check-version.c: Likewise.
19821         * lib/crc.c: Likewise.
19822         * lib/des.c: Likewise.
19823         * lib/gc-gnulib.c: Likewise.
19824         * lib/gc-libgcrypt.c: Likewise.
19825         * lib/gc-pbkdf2-sha1.c: Likewise.
19826         * lib/getaddrinfo.c: Likewise.
19827         * lib/getdelim.c: Likewise.
19828         * lib/getline.c: Likewise.
19829         * lib/hmac-md5.c: Likewise.
19830         * lib/hmac-sha1.c: Likewise.
19831         * lib/iconvme.c: Likewise.
19832         * lib/md2.c: Likewise.
19833         * lib/md4.c: Likewise.
19834         * lib/memxor.c: Likewise.
19835         * lib/read-file.c: Likewise.
19836         * lib/readline.c: Likewise.
19837         * lib/rijndael-alg-fst.c: Likewise.
19838         * lib/rijndael-api-fst.c: Likewise.
19839         * lib/xgetdomainname.c: Likewise.
19840
19841 2006-10-28  Eric Blake  <ebb9@byu.net>
19842
19843         * lib/xstrndup.c: Assume config.h.
19844
19845 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19846
19847         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19848         stat-macros.h is now for our own macros, whereas stat_h is for
19849         macros in the <sys/stat.h> name space.
19850         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19851         (STAT_MACROS_H): Remove.
19852         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19853         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19854         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19855         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19856         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19857         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19858         Move these macros to ...
19859         * lib/stat_.h: here.  Don't include stat-macros.h.
19860         * lib/canonicalize.c: Don't include stat-macros.h.
19861         * lib/chown.c: Likewise.
19862         * lib/euidaccess.c: Likewise.
19863         * lib/file-type.c: Likewise.
19864         * lib/filemode.c: Likewise.
19865         * lib/glob.c: Likewise.
19866         * lib/isapipe.c: Likewise.
19867         * lib/lchown.c: Likewise.
19868         * lib/lstat.c: Likewise.
19869         * lib/mkdir-p.c: Likewise.
19870         * lib/rmdir.c: Likewise.
19871         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19872         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19873         unless mkdir isn't declared, to speed up 'configure'.
19874         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19875         would define all the S_* symbols.
19876         * modules/canonicalize (Depends-on):
19877         Depend on sys_stat, not stat-macros.
19878         * modules/chown: Likewise.
19879         * modules/euidaccess: Likewise.
19880         * modules/filemode: Likewise.
19881         * modules/file-type: Likewise.
19882         * modules/glob: Likewise.
19883         * modules/isapipe: Likewise.
19884         * modules/lchown: Likewise.
19885         * modules/lstat: Likewise.
19886         * modules/mkancesdirs: Likewise.
19887         * modules/rmdir: Likewise.
19888         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19889         * modules/modechange: Likewise.
19890         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19891         (configure.ac): Remove gl_STAT_MACROS.
19892         * modules/sys_stat (Depends-on): Remove stat-macros.
19893
19894 2006-10-27  Bruno Haible  <bruno@clisp.org>
19895
19896         * m4/signed.m4: Remove file.
19897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19898         invocation.
19899         * modules/vasnprintf (Files): Remove m4/signed.m4.
19900
19901 2006-10-27  Bruno Haible  <bruno@clisp.org>
19902
19903         Update to GNU gettext 0.16.
19904         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19905         m4/inttypes-h.m4, m4/signed.m4.
19906         * m4/gettext.m4: Update to GNU gettext 0.16.
19907         * m4/intl.m4: New file, from GNU gettext.
19908         * m4/intldir.m4: New file, from GNU gettext.
19909         * config/srclist.txt: Update
19910
19911 2006-10-27  Eric Blake  <ebb9@byu.net>
19912
19913         * MODULES.html.sh: Document tempname.
19914         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19915         dependencies.
19916         (Files): Move lib/tempname.c...
19917         * modules/tempname: ...to this new module.
19918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19919         (gl_PREREQ_TEMPNAME): Move...
19920         * m4/tempname.m4: ...to this new file.
19921         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19922         * modules/sys_stat (Depends-on): Add stat-macros.
19923         * lib/stat_.h (includes): Pick up stat macros.
19924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19925         if stat macros are broken.
19926         * lib/tempname.c (includes): No need to include "stat-macros.h".
19927         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19928         (direxists, __path_search) [!_LIBC]: Don't compile these in
19929         gnulib; the tmpdir module covers that.
19930         * lib/tempname.h: New file.
19931
19932 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19933
19934         * COPYING: Explain how gnulib-tool converts licence headers.
19935         Almost all wording by Eric Blake.
19936
19937 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         * lib/mbchar.h (is_basic_table): Make read-only.
19940         * lib/mbchar.c (is_basic_table): Likewise.
19941         Reported by John Darrington.
19942
19943 2006-10-25  Bruno Haible  <bruno@clisp.org>
19944
19945         * lib/progname.h (set_program_name): Undefine before defining.
19946
19947 2006-10-25  Bruno Haible  <bruno@clisp.org>
19948
19949         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19950         false for non-gcc C++ compilers.
19951         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19952
19953 2006-10-24  Bruno Haible  <bruno@clisp.org>
19954
19955         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19956         iconv implementations like Irix iconv.
19957
19958 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         * modules/vararrays: New file.
19961         * m4/vararrays.m4: New file, taken from diffutils.
19962         * MODULES.html.sh: New module vararrays.
19963
19964 2006-10-24  Karl Berry  <karl@gnu.org>
19965
19966         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19967         Don't call GNU Unix.
19968
19969 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19970
19971         * users.txt: Add Libtool.
19972
19973         Sync from Libtool:
19974
19975         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19978         to gnulib's policy of including config.h unconditionally.
19979
19980 2006-10-24  Bruno Haible  <bruno@clisp.org>
19981
19982         * modules/wcwidth (Files): Add m4/wint_t.m4.
19983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19984         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19985
19986 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19987
19988         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19989         to pacify GCC with some -W flags enabled.  Problem reported by
19990         Bruno Haible.
19991
19992 2006-10-24  Jim Meyering  <jim@meyering.net>
19993
19994         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19995         Reported by Karl Berry.
19996
19997 2006-10-23  Bruno Haible  <bruno@clisp.org>
19998
19999         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20000
20001 2006-10-24  Bruno Haible  <bruno@clisp.org>
20002
20003         * lib/gl_list.h: Use C comment style, not C++ comment style.
20004
20005 2006-10-23  Eric Blake  <ebb9@byu.net>
20006
20007         * lib/getaddrinfo.c (includes): Add missing include.
20008
20009 2006-10-23  Bruno Haible  <bruno@clisp.org>
20010             Paul Eggert  <eggert@cs.ucla.edu>
20011
20012         Ability to rename obstack_free.
20013         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20014         obstack_free.
20015         (obstack_free): Invoke the __obstack_free macro.
20016         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20017
20018 2006-10-23  Bruno Haible  <bruno@clisp.org>
20019             Paul Eggert  <eggert@cs.ucla.edu>
20020
20021         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20022         __argc, __argv from the declaration. (They are defined as macros on
20023         mingw.)
20024
20025 2006-10-22  Bruno Haible  <bruno@clisp.org>
20026
20027         * doc/gnulib-intro.texi: New file.
20028         * doc/gnulib.texi: Include it.
20029
20030 2006-10-21  Bruno Haible  <bruno@clisp.org>
20031
20032         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20033         "Introduction", "Miscellanous Notes", "Particular Modules".
20034
20035 2006-10-21  Bruno Haible  <bruno@clisp.org>
20036
20037         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20038         Change mostlyclean-local rule to avoid sh syntax error from bash
20039         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
20040
20041 2006-10-23  Jim Meyering  <jim@meyering.net>
20042
20043         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
20044         in place of snprintf.
20045
20046         * modules/inttostr (Files): Add lib/uinttostr.c.
20047         * lib/uinttostr.c (inttostr): New file/function.
20048         * lib/inttostr.h (uinttostr): Declare.
20049         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
20050         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20051         Add uinttostr.
20052         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
20053
20054 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20055
20056         * lib/canonicalize.c (ELOOP): Define if not already defined.
20057         Problem reported by Bruno Haible in
20058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20059
20060 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20063         Problem reported by Perry Smith and Ville Laurikari.
20064
20065         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20066         uses.
20067
20068 2006-10-19  Bruno Haible  <bruno@clisp.org>
20069
20070         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20071         for mingw.
20072
20073 2006-10-19  Bruno Haible  <bruno@clisp.org>
20074
20075         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20076         Needed for mingw.
20077
20078 2006-10-19  Bruno Haible  <bruno@clisp.org>
20079
20080         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20081
20082 2006-10-19  Bruno Haible  <bruno@clisp.org>
20083
20084         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20085         it.
20086
20087 2006-10-19  Bruno Haible  <bruno@clisp.org>
20088
20089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20090         invocation.
20091
20092 2006-10-19  Bruno Haible  <bruno@clisp.org>
20093
20094         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20095         mountlist by default.
20096
20097 2006-10-16  Bruno Haible  <bruno@clisp.org>
20098
20099         * lib/c-strstr.c: Include c-strstr.h.
20100
20101 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20102
20103         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20104         in a slash.
20105
20106 2006-10-18  Bruno Haible  <bruno@clisp.org>
20107
20108         * lib/lock.h [C++]: Wrap definitions in extern "C".
20109
20110 2006-10-18  Bruno Haible  <bruno@clisp.org>
20111
20112         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20113         gl_LIBOBJS list.
20114
20115 2006-10-18  Bruno Haible  <bruno@clisp.org>
20116
20117         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20118
20119 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20120
20121         * lib/xstrtol.h: Include gettext.h.
20122         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20123         Problem reported by Eric Blake.
20124         * modules/xstrtol (Depends-on): Add gettext-h.
20125
20126 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20127
20128         * lib/strftime.c (advance): New macro.
20129         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20130         incomplete type, so you can't add 0 to it.  Problem and patch
20131         reported by Eelco Dolstra for dietlibc.
20132
20133 2006-10-18  Jim Meyering  <jim@meyering.net>
20134
20135         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20136         type for a local, and rename it: s/up/user_proc/.
20137
20138 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20139
20140         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20141         READ_UTMP_USER_PROCESS.
20142         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20143
20144 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20147         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20148
20149 2006-10-17  Eric Blake  <ebb9@byu.net>
20150
20151         * lib/sigprocmask.c (sigprocmask): Fix typo.
20152
20153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20154
20155         * modules/clean-temp (Makefile.am): Don't add to make output...
20156         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20157         config.h.
20158
20159 2006-10-17  Bruno Haible  <bruno@clisp.org>
20160
20161         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20162         differently if DEFAULT_TEXT_DOMAIN is set.
20163
20164 2006-10-16  Bruno Haible  <bruno@clisp.org>
20165
20166         * lib/clean-temp.c: Include fwriteerror.h.
20167
20168 2006-10-16  Bruno Haible  <bruno@clisp.org>
20169
20170         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20171
20172 2006-10-16  Bruno Haible  <bruno@clisp.org>
20173
20174         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20175         * lib/sigprocmask.h: Include <sys/types.h>.
20176         (sigset_t): Use the system's definition if present.
20177
20178 2006-10-17  Eric Blake  <ebb9@byu.net>
20179
20180         * lib/xvasprintf.c (includes): Assume config.h.
20181         * lib/xasprintf.c (includes): Likewise.
20182
20183 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20184
20185         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20186         at least as wide as intmax_t.
20187
20188 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20189
20190         (Imported from Automake.)
20191         * build-aux/gnupload: Update to version 1.1 of directive file.
20192
20193 2006-10-16  Eric Blake  <ebb9@byu.net>
20194
20195         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20196         match Automake 1.10a.
20197
20198 2006-10-14  Bruno Haible  <bruno@clisp.org>
20199
20200         * modules/sigprocmask: New file.
20201         * lib/sigprocmask.h: New file.
20202         * lib/sigprocmask.c: New file.
20203         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20204         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20205         request sigprocmask.o.
20206         (gl_PREREQ_SIGPROCMASK): New macro.
20207         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20208         (Depends-on): Add sigprocmask.
20209         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20210         gt_SIGNALBLOCKING. Test for 'raise' only once.
20211         * lib/fatal-signal.c: Include sigprocmask.h.
20212         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20213         unblock_fatal_signals): Define always.
20214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20215         sigprocmask.
20216
20217 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20218
20219         Sync from Automake.
20220         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20221         which incorrectly sets the mode of an existing destination
20222         directory.  In some cases the unpatched install-sh could do the
20223         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20224         system.  We hope this is rare in practice, but it's clearly worth
20225         fixing.  Problem reported by Alex Unleashed in
20226         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20227         Also, don't bother to check for -m bugs unless we're using -m;
20228         suggested by Stepan Kasal.
20229
20230 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20231
20232         Sync from Automake.
20233         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20234         `-c' flag, so they appear at the same position as in %FASTDEP%
20235         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20236         which ignores unknown options only after the first non-option.
20237         Bug report against M4 by Nelson H. F. Beebe.
20238
20239 2006-10-13  Jim Meyering  <jim@meyering.net>
20240
20241         Fix a bug in yesterday's change.
20242         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20243         p->fts_statp->st_dev would be used uninitialized.
20244         Ensures that we always call fts_stat on the very first entry.
20245         Miklos Szeredi reported that find -xdev stopped working.
20246
20247 2006-10-12  Bruno Haible  <bruno@clisp.org>
20248
20249         * gnulib-tool (func_get_automake_snippet): Append an automatically
20250         computed EXTRA_DIST augmentation.
20251         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20252         * modules/alloca-opt (Makefile.am): Likewise.
20253         * modules/allocsa (Makefile.am): Likewise.
20254         * modules/arcfour (Makefile.am): Likewise.
20255         * modules/arctwo (Makefile.am): Likewise.
20256         * modules/argmatch (Makefile.am): Likewise.
20257         * modules/argz (Makefile.am): Likewise.
20258         * modules/atexit (Makefile.am): Likewise.
20259         * modules/backupfile (Makefile.am): Likewise.
20260         * modules/byteswap (Makefile.am): Likewise.
20261         * modules/c-strtod (Makefile.am): Likewise.
20262         * modules/c-strtold (Makefile.am): Likewise.
20263         * modules/calloc (Makefile.am): Likewise.
20264         * modules/canon-host (Makefile.am): Likewise.
20265         * modules/canonicalize (Makefile.am): Likewise.
20266         * modules/chdir-long (Makefile.am): Likewise.
20267         * modules/chdir-safer (Makefile.am): Likewise.
20268         * modules/check-version (Makefile.am): Likewise.
20269         * modules/chown (Makefile.am): Likewise.
20270         * modules/cloexec (Makefile.am): Likewise.
20271         * modules/close-stream (Makefile.am): Likewise.
20272         * modules/closeout (Makefile.am): Likewise.
20273         * modules/crc (Makefile.am): Likewise.
20274         * modules/csharpexec (Makefile.am): Likewise.
20275         * modules/cycle-check (Makefile.am): Likewise.
20276         * modules/des (Makefile.am): Likewise.
20277         * modules/dev-ino (Makefile.am): Likewise.
20278         * modules/dirfd (Makefile.am): Likewise.
20279         * modules/dirname (Makefile.am): Likewise.
20280         * modules/dup2 (Makefile.am): Likewise.
20281         * modules/eealloc (Makefile.am): Likewise.
20282         * modules/error (Makefile.am): Likewise.
20283         * modules/euidaccess (Makefile.am): Likewise.
20284         * modules/exclude (Makefile.am): Likewise.
20285         * modules/exitfail (Makefile.am): Likewise.
20286         * modules/fcntl-safer (Makefile.am): Likewise.
20287         * modules/fcntl (Makefile.am): Likewise.
20288         * modules/file-type (Makefile.am): Likewise.
20289         * modules/fileblocks (Makefile.am): Likewise.
20290         * modules/filemode (Makefile.am): Likewise.
20291         * modules/filenamecat (Makefile.am): Likewise.
20292         * modules/fnmatch (Makefile.am): Likewise.
20293         * modules/fopen-safer (Makefile.am): Likewise.
20294         * modules/fpending (Makefile.am): Likewise.
20295         * modules/fprintftime (Makefile.am): Likewise.
20296         * modules/free (Makefile.am): Likewise.
20297         * modules/fsusage (Makefile.am): Likewise.
20298         * modules/ftruncate (Makefile.am): Likewise.
20299         * modules/fts (Makefile.am): Likewise.
20300         * modules/gc-arcfour (Makefile.am): Likewise.
20301         * modules/gc-des (Makefile.am): Likewise.
20302         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20303         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20304         * modules/gc-md4 (Makefile.am): Likewise.
20305         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20306         * modules/gc-sha1 (Makefile.am): Likewise.
20307         * modules/gc (Makefile.am): Likewise.
20308         * modules/getaddrinfo (Makefile.am): Likewise.
20309         * modules/getcwd (Makefile.am): Likewise.
20310         * modules/getdelim (Makefile.am): Likewise.
20311         * modules/getdomainname (Makefile.am): Likewise.
20312         * modules/getgroups (Makefile.am): Likewise.
20313         * modules/gethostname (Makefile.am): Likewise.
20314         * modules/gethrxtime (Makefile.am): Likewise.
20315         * modules/getline (Makefile.am): Likewise.
20316         * modules/getloadavg (Makefile.am): Likewise.
20317         * modules/getlogin_r (Makefile.am): Likewise.
20318         * modules/getndelim2 (Makefile.am): Likewise.
20319         * modules/getopt (Makefile.am): Likewise.
20320         * modules/getpagesize (Makefile.am): Likewise.
20321         * modules/getpass-gnu (Makefile.am): Likewise.
20322         * modules/getpass (Makefile.am): Likewise.
20323         * modules/getsubopt (Makefile.am): Likewise.
20324         * modules/gettime (Makefile.am): Likewise.
20325         * modules/gettimeofday (Makefile.am): Likewise.
20326         * modules/getugroups (Makefile.am): Likewise.
20327         * modules/getusershell (Makefile.am): Likewise.
20328         * modules/glob (Makefile.am): Likewise.
20329         * modules/group-member (Makefile.am): Likewise.
20330         * modules/hard-locale (Makefile.am): Likewise.
20331         * modules/hash (Makefile.am): Likewise.
20332         * modules/hmac-md5 (Makefile.am): Likewise.
20333         * modules/hmac-sha1 (Makefile.am): Likewise.
20334         * modules/human (Makefile.am): Likewise.
20335         * modules/idcache (Makefile.am): Likewise.
20336         * modules/imaxabs (Makefile.am): Likewise.
20337         * modules/imaxdiv (Makefile.am): Likewise.
20338         * modules/inet_ntop (Makefile.am): Likewise.
20339         * modules/inet_pton (Makefile.am): Likewise.
20340         * modules/intprops (Makefile.am): Likewise.
20341         * modules/inttostr (Makefile.am): Likewise.
20342         * modules/inttypes (Makefile.am): Likewise.
20343         * modules/isapipe (Makefile.am): Likewise.
20344         * modules/javaversion (Makefile.am): Likewise.
20345         * modules/lchmod (Makefile.am): Likewise.
20346         * modules/lchown (Makefile.am): Likewise.
20347         * modules/localcharset (Makefile.am): Likewise.
20348         * modules/long-options (Makefile.am): Likewise.
20349         * modules/lstat (Makefile.am): Likewise.
20350         * modules/malloc (Makefile.am): Likewise.
20351         * modules/mathl (Makefile.am): Likewise.
20352         * modules/mbchar (Makefile.am): Likewise.
20353         * modules/md2 (Makefile.am): Likewise.
20354         * modules/md4 (Makefile.am): Likewise.
20355         * modules/md5 (Makefile.am): Likewise.
20356         * modules/memcasecmp (Makefile.am): Likewise.
20357         * modules/memchr (Makefile.am): Likewise.
20358         * modules/memcmp (Makefile.am): Likewise.
20359         * modules/memcoll (Makefile.am): Likewise.
20360         * modules/memcpy (Makefile.am): Likewise.
20361         * modules/memmem (Makefile.am): Likewise.
20362         * modules/memmove (Makefile.am): Likewise.
20363         * modules/mempcpy (Makefile.am): Likewise.
20364         * modules/memrchr (Makefile.am): Likewise.
20365         * modules/memset (Makefile.am): Likewise.
20366         * modules/memxor (Makefile.am): Likewise.
20367         * modules/mkancesdirs (Makefile.am): Likewise.
20368         * modules/mkdir-p (Makefile.am): Likewise.
20369         * modules/mkdir (Makefile.am): Likewise.
20370         * modules/mkdtemp (Makefile.am): Likewise.
20371         * modules/mkstemp (Makefile.am): Likewise.
20372         * modules/mktime (Makefile.am): Likewise.
20373         * modules/modechange (Makefile.am): Likewise.
20374         * modules/mountlist (Makefile.am): Likewise.
20375         * modules/nanosleep (Makefile.am): Likewise.
20376         * modules/obstack (Makefile.am): Likewise.
20377         * modules/openat (Makefile.am): Likewise.
20378         * modules/pagealign_alloc (Makefile.am): Likewise.
20379         * modules/pathmax (Makefile.am): Likewise.
20380         * modules/physmem (Makefile.am): Likewise.
20381         * modules/poll (Makefile.am): Likewise.
20382         * modules/posixtm (Makefile.am): Likewise.
20383         * modules/posixver (Makefile.am): Likewise.
20384         * modules/putenv (Makefile.am): Likewise.
20385         * modules/quote (Makefile.am): Likewise.
20386         * modules/quotearg (Makefile.am): Likewise.
20387         * modules/raise (Makefile.am): Likewise.
20388         * modules/read-file (Makefile.am): Likewise.
20389         * modules/readline (Makefile.am): Likewise.
20390         * modules/readlink (Makefile.am): Likewise.
20391         * modules/readtokens (Makefile.am): Likewise.
20392         * modules/readutmp (Makefile.am): Likewise.
20393         * modules/realloc (Makefile.am): Likewise.
20394         * modules/regex (Makefile.am): Likewise.
20395         * modules/rename-dest-slash (Makefile.am): Likewise.
20396         * modules/rename (Makefile.am): Likewise.
20397         * modules/rijndael (Makefile.am): Likewise.
20398         * modules/rmdir (Makefile.am): Likewise.
20399         * modules/rpmatch (Makefile.am): Likewise.
20400         * modules/safe-read (Makefile.am): Likewise.
20401         * modules/safe-write (Makefile.am): Likewise.
20402         * modules/same-inode (Makefile.am): Likewise.
20403         * modules/same (Makefile.am): Likewise.
20404         * modules/save-cwd (Makefile.am): Likewise.
20405         * modules/savedir (Makefile.am): Likewise.
20406         * modules/setenv (Makefile.am): Likewise.
20407         * modules/settime (Makefile.am): Likewise.
20408         * modules/sha1 (Makefile.am): Likewise.
20409         * modules/sig2str (Makefile.am): Likewise.
20410         * modules/snprintf (Makefile.am): Likewise.
20411         * modules/stat-macros (Makefile.am): Likewise.
20412         * modules/stat-time (Makefile.am): Likewise.
20413         * modules/stdbool (Makefile.am): Likewise.
20414         * modules/stdint (Makefile.am): Likewise.
20415         * modules/stdlib-safer (Makefile.am): Likewise.
20416         * modules/stpcpy (Makefile.am): Likewise.
20417         * modules/stpncpy (Makefile.am): Likewise.
20418         * modules/strcase (Makefile.am): Likewise.
20419         * modules/strcasestr (Makefile.am): Likewise.
20420         * modules/strchrnul (Makefile.am): Likewise.
20421         * modules/strcspn (Makefile.am): Likewise.
20422         * modules/strdup (Makefile.am): Likewise.
20423         * modules/strerror (Makefile.am): Likewise.
20424         * modules/strftime (Makefile.am): Likewise.
20425         * modules/strndup (Makefile.am): Likewise.
20426         * modules/strnlen (Makefile.am): Likewise.
20427         * modules/strpbrk (Makefile.am): Likewise.
20428         * modules/strsep (Makefile.am): Likewise.
20429         * modules/strstr (Makefile.am): Likewise.
20430         * modules/strtod (Makefile.am): Likewise.
20431         * modules/strtoimax (Makefile.am): Likewise.
20432         * modules/strtok_r (Makefile.am): Likewise.
20433         * modules/strtol (Makefile.am): Likewise.
20434         * modules/strtoll (Makefile.am): Likewise.
20435         * modules/strtoul (Makefile.am): Likewise.
20436         * modules/strtoull (Makefile.am): Likewise.
20437         * modules/strtoumax (Makefile.am): Likewise.
20438         * modules/strverscmp (Makefile.am): Likewise.
20439         * modules/sys_socket (Makefile.am): Likewise.
20440         * modules/sys_stat (Makefile.am): Likewise.
20441         * modules/sysexits (Makefile.am): Likewise.
20442         * modules/time_r (Makefile.am): Likewise.
20443         * modules/timegm (Makefile.am): Likewise.
20444         * modules/timespec (Makefile.am): Likewise.
20445         * modules/tmpfile-safer (Makefile.am): Likewise.
20446         * modules/trim (Makefile.am): Likewise.
20447         * modules/unistd-safer (Makefile.am): Likewise.
20448         * modules/unlinkdir (Makefile.am): Likewise.
20449         * modules/unlocked-io (Makefile.am): Likewise.
20450         * modules/userspec (Makefile.am): Likewise.
20451         * modules/utime (Makefile.am): Likewise.
20452         * modules/utimecmp (Makefile.am): Likewise.
20453         * modules/utimens (Makefile.am): Likewise.
20454         * modules/vasnprintf (Makefile.am): Likewise.
20455         * modules/vasprintf (Makefile.am): Likewise.
20456         * modules/vsnprintf (Makefile.am): Likewise.
20457         * modules/xalloc (Makefile.am): Likewise.
20458         * modules/xgetcwd (Makefile.am): Likewise.
20459         * modules/xnanosleep (Makefile.am): Likewise.
20460         * modules/xreadlink (Makefile.am): Likewise.
20461         * modules/xstrtod (Makefile.am): Likewise.
20462         * modules/xstrtol (Makefile.am): Likewise.
20463         * modules/xstrtold (Makefile.am): Likewise.
20464         * modules/yesno (Makefile.am): Likewise.
20465         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20466
20467 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20468
20469         * modules/error (Makefile.am): Distribute files through
20470         EXTRA_DIST, not lib_SOURCES.
20471
20472 2006-10-12  Eric Blake  <ebb9@byu.net>
20473
20474         * modules/error (Makefile.am): Distribute files in /lib.
20475         * modules/obstack (Makefile.am): Likewise.
20476
20477 2006-10-12  Bruno Haible  <bruno@clisp.org>
20478
20479         * modules/acl (Makefile.am): Distribute all files in lib/ through
20480         EXTRA_DIST.
20481         * modules/arcfour (Makefile.am): Likewise.
20482         * modules/arctwo (Makefile.am): Likewise.
20483         * modules/argmatch (Makefile.am): Likewise.
20484         * modules/argz (Makefile.am): Likewise.
20485         * modules/atexit (Makefile.am): Likewise.
20486         * modules/backupfile (Makefile.am): Likewise.
20487         * modules/c-strtod (Makefile.am): Likewise.
20488         * modules/c-strtold (Makefile.am): Likewise.
20489         * modules/calloc (Makefile.am): Likewise.
20490         * modules/canon-host (Makefile.am): Likewise.
20491         * modules/canonicalize (Makefile.am): Likewise.
20492         * modules/chdir-long (Makefile.am): Likewise.
20493         * modules/chdir-safer (Makefile.am): Likewise.
20494         * modules/check-version (Makefile.am): Likewise.
20495         * modules/chown (Makefile.am): Likewise.
20496         * modules/cloexec (Makefile.am): Likewise.
20497         * modules/close-stream (Makefile.am): Likewise.
20498         * modules/closeout (Makefile.am): Likewise.
20499         * modules/crc (Makefile.am): Likewise.
20500         * modules/cycle-check (Makefile.am): Likewise.
20501         * modules/des (Makefile.am): Likewise.
20502         * modules/dirfd (Makefile.am): Likewise.
20503         * modules/dirname (Makefile.am): Likewise.
20504         * modules/dup2 (Makefile.am): Likewise.
20505         * modules/euidaccess (Makefile.am): Likewise.
20506         * modules/exclude (Makefile.am): Likewise.
20507         * modules/exitfail (Makefile.am): Likewise.
20508         * modules/fcntl-safer (Makefile.am): Likewise.
20509         * modules/file-type (Makefile.am): Likewise.
20510         * modules/fileblocks (Makefile.am): Likewise.
20511         * modules/filemode (Makefile.am): Likewise.
20512         * modules/filenamecat (Makefile.am): Likewise.
20513         * modules/fnmatch (Makefile.am): Likewise.
20514         * modules/fopen-safer (Makefile.am): Likewise.
20515         * modules/fpending (Makefile.am): Likewise.
20516         * modules/fprintftime (Makefile.am): Likewise.
20517         * modules/free (Makefile.am): Likewise.
20518         * modules/fsusage (Makefile.am): Likewise.
20519         * modules/ftruncate (Makefile.am): Likewise.
20520         * modules/fts (Makefile.am): Likewise.
20521         * modules/gc (Makefile.am): Likewise.
20522         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20523         * modules/getaddrinfo (Makefile.am): Likewise.
20524         * modules/getcwd (Makefile.am): Likewise.
20525         * modules/getdelim (Makefile.am): Likewise.
20526         * modules/getdomainname (Makefile.am): Likewise.
20527         * modules/getgroups (Makefile.am): Likewise.
20528         * modules/gethostname (Makefile.am): Likewise.
20529         * modules/gethrxtime (Makefile.am): Likewise.
20530         * modules/getline (Makefile.am): Likewise.
20531         * modules/getloadavg (Makefile.am): Likewise.
20532         * modules/getlogin_r (Makefile.am): Likewise.
20533         * modules/getopt (Makefile.am): Likewise.
20534         * modules/getpass (Makefile.am): Likewise.
20535         * modules/getpass-gnu (Makefile.am): Likewise.
20536         * modules/getsubopt (Makefile.am): Likewise.
20537         * modules/gettime (Makefile.am): Likewise.
20538         * modules/gettimeofday (Makefile.am): Likewise.
20539         * modules/getugroups (Makefile.am): Likewise.
20540         * modules/getusershell (Makefile.am): Likewise.
20541         * modules/glob (Makefile.am): Likewise.
20542         * modules/group-member (Makefile.am): Likewise.
20543         * modules/hard-locale (Makefile.am): Likewise.
20544         * modules/hash (Makefile.am): Likewise.
20545         * modules/hmac-md5 (Makefile.am): Likewise.
20546         * modules/hmac-sha1 (Makefile.am): Likewise.
20547         * modules/human (Makefile.am): Likewise.
20548         * modules/idcache (Makefile.am): Likewise.
20549         * modules/imaxabs (Makefile.am): Likewise.
20550         * modules/imaxdiv (Makefile.am): Likewise.
20551         * modules/inet_ntop (Makefile.am): Likewise.
20552         * modules/inet_pton (Makefile.am): Likewise.
20553         * modules/inttostr (Makefile.am): Likewise.
20554         * modules/isapipe (Makefile.am): Likewise.
20555         * modules/lchown (Makefile.am): Likewise.
20556         * modules/long-options (Makefile.am): Likewise.
20557         * modules/lstat (Makefile.am): Likewise.
20558         * modules/malloc (Makefile.am): Likewise.
20559         * modules/mathl (Makefile.am): Likewise.
20560         * modules/mbchar (Makefile.am): Likewise.
20561         * modules/md2 (Makefile.am): Likewise.
20562         * modules/md4 (Makefile.am): Likewise.
20563         * modules/md5 (Makefile.am): Likewise.
20564         * modules/memcasecmp (Makefile.am): Likewise.
20565         * modules/memchr (Makefile.am): Likewise.
20566         * modules/memcmp (Makefile.am): Likewise.
20567         * modules/memcoll (Makefile.am): Likewise.
20568         * modules/memcpy (Makefile.am): Likewise.
20569         * modules/memmem (Makefile.am): Likewise.
20570         * modules/memmove (Makefile.am): Likewise.
20571         * modules/mempcpy (Makefile.am): Likewise.
20572         * modules/memrchr (Makefile.am): Likewise.
20573         * modules/memset (Makefile.am): Likewise.
20574         * modules/memxor (Makefile.am): Likewise.
20575         * modules/mkancesdirs (Makefile.am): Likewise.
20576         * modules/mkdir (Makefile.am): Likewise.
20577         * modules/mkdir-p (Makefile.am): Likewise.
20578         * modules/mkdtemp (Makefile.am): Likewise.
20579         * modules/mkstemp (Makefile.am): Likewise.
20580         * modules/mktime (Makefile.am): Likewise.
20581         * modules/modechange (Makefile.am): Likewise.
20582         * modules/mountlist (Makefile.am): Likewise.
20583         * modules/nanosleep (Makefile.am): Likewise.
20584         * modules/openat (Makefile.am): Likewise.
20585         * modules/pagealign_alloc (Makefile.am): Likewise.
20586         * modules/physmem (Makefile.am): Likewise.
20587         * modules/poll (Makefile.am): Likewise.
20588         * modules/posixtm (Makefile.am): Likewise.
20589         * modules/posixver (Makefile.am): Likewise.
20590         * modules/putenv (Makefile.am): Likewise.
20591         * modules/quote (Makefile.am): Likewise.
20592         * modules/quotearg (Makefile.am): Likewise.
20593         * modules/raise (Makefile.am): Likewise.
20594         * modules/read-file (Makefile.am): Likewise.
20595         * modules/readline (Makefile.am): Likewise.
20596         * modules/readlink (Makefile.am): Likewise.
20597         * modules/readtokens (Makefile.am): Likewise.
20598         * modules/readutmp (Makefile.am): Likewise.
20599         * modules/realloc (Makefile.am): Likewise.
20600         * modules/regex (Makefile.am): Likewise.
20601         * modules/rename (Makefile.am): Likewise.
20602         * modules/rename-dest-slash (Makefile.am): Likewise.
20603         * modules/rijndael (Makefile.am): Likewise.
20604         * modules/rmdir (Makefile.am): Likewise.
20605         * modules/rpmatch (Makefile.am): Likewise.
20606         * modules/safe-read (Makefile.am): Likewise.
20607         * modules/safe-write (Makefile.am): Likewise.
20608         * modules/same (Makefile.am): Likewise.
20609         * modules/save-cwd (Makefile.am): Likewise.
20610         * modules/savedir (Makefile.am): Likewise.
20611         * modules/setenv (Makefile.am): Likewise.
20612         * modules/settime (Makefile.am): Likewise.
20613         * modules/sha1 (Makefile.am): Likewise.
20614         * modules/sig2str (Makefile.am): Likewise.
20615         * modules/snprintf (Makefile.am): Likewise.
20616         * modules/stdlib-safer (Makefile.am): Likewise.
20617         * modules/stpcpy (Makefile.am): Likewise.
20618         * modules/stpncpy (Makefile.am): Likewise.
20619         * modules/strcase (Makefile.am): Likewise.
20620         * modules/strcasestr (Makefile.am): Likewise.
20621         * modules/strchrnul (Makefile.am): Likewise.
20622         * modules/strcspn (Makefile.am): Likewise.
20623         * modules/strdup (Makefile.am): Likewise.
20624         * modules/strerror (Makefile.am): Likewise.
20625         * modules/strftime (Makefile.am): Likewise.
20626         * modules/strndup (Makefile.am): Likewise.
20627         * modules/strnlen (Makefile.am): Likewise.
20628         * modules/strpbrk (Makefile.am): Likewise.
20629         * modules/strsep (Makefile.am): Likewise.
20630         * modules/strstr (Makefile.am): Likewise.
20631         * modules/strtod (Makefile.am): Likewise.
20632         * modules/strtoimax (Makefile.am): Likewise.
20633         * modules/strtok_r (Makefile.am): Likewise.
20634         * modules/strtol (Makefile.am): Likewise.
20635         * modules/strtoll (Makefile.am): Likewise.
20636         * modules/strtoul (Makefile.am): Likewise.
20637         * modules/strtoull (Makefile.am): Likewise.
20638         * modules/strtoumax (Makefile.am): Likewise.
20639         * modules/strverscmp (Makefile.am): Likewise.
20640         * modules/time_r (Makefile.am): Likewise.
20641         * modules/timegm (Makefile.am): Likewise.
20642         * modules/tmpfile-safer (Makefile.am): Likewise.
20643         * modules/unistd-safer (Makefile.am): Likewise.
20644         * modules/unlinkdir (Makefile.am): Likewise.
20645         * modules/userspec (Makefile.am): Likewise.
20646         * modules/utime (Makefile.am): Likewise.
20647         * modules/utimecmp (Makefile.am): Likewise.
20648         * modules/utimens (Makefile.am): Likewise.
20649         * modules/vasnprintf (Makefile.am): Likewise.
20650         * modules/vasprintf (Makefile.am): Likewise.
20651         * modules/vsnprintf (Makefile.am): Likewise.
20652         * modules/xalloc (Makefile.am): Likewise.
20653         * modules/xgetcwd (Makefile.am): Likewise.
20654         * modules/xnanosleep (Makefile.am): Likewise.
20655         * modules/xreadlink (Makefile.am): Likewise.
20656         * modules/xstrtod (Makefile.am): Likewise.
20657         * modules/xstrtol (Makefile.am): Likewise.
20658         * modules/xstrtold (Makefile.am): Likewise.
20659         * modules/yesno (Makefile.am): Likewise.
20660
20661 2006-10-12  Jim Meyering  <jim@meyering.net>
20662
20663         * m4/getloadavg.m4: Revert the change below.
20664
20665         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20666         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20667         fail with a symlink, which is what coreutils' ./bootstrap now
20668         creates by default.
20669
20670 2006-10-12  Bruno Haible  <bruno@clisp.org>
20671
20672         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20673         mingw.
20674         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20675         MSVC and mingw explicitly.
20676
20677 2006-10-11  Simon Josefsson  <jas@extundo.com>
20678             Bruno Haible  <bruno@clisp.org>
20679
20680         Add support for multiple gnulib-tool invocations in the scope of a
20681         single configure.ac file.
20682         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20683         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20684         with the same contents as the _LIBADD variable.
20685         (func_emit_initmacro_start, func_emit_initmacro_end,
20686         func_emit_initmacro_done): New functions.
20687         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20688         gl_LIBOBJS and gl_LTLIBOBJS.
20689
20690 2006-10-11  Bruno Haible  <bruno@clisp.org>
20691
20692         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20693         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20694         autoreconf. Instead, invoke autopoint explicitly but move back the
20695         *.m4 files from gnulib.
20696
20697 2006-10-11  Bruno Haible  <bruno@clisp.org>
20698
20699         * gnulib-tool (func_usage): Make module names after --create-testdir
20700         optional.
20701         (func_create_testdir): If no module was specified, use nearly all
20702         modules.
20703
20704 2006-10-12  Jim Meyering  <jim@meyering.net>
20705
20706         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20707         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20708         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20709         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20710         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20711         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20712         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20713         (fts_set_stat_required): New function.
20714         (fts_open): Defer the calls to fts_stat, if possible or requested.
20715         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20716         into fts_stat itself.
20717         (fts_read): Perform any required (deferred) fts_stat call.
20718         (fts_build): Likewise, for the directory we're about to open and read.
20719         In the readdir loop, carefully decide whether each entry will require
20720         an eventual call to fts_stat, using dirent.d_type info if available.
20721         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20722         a command line argument into this function.  Update all callers.
20723         Map a return value of FTS_DOT to FTS_D for a command line argument.
20724         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20725         Thanks to Miklos Szeredi for his tenacity and for the initial
20726         bug report about "find" failing on a FUSE-based file system.
20727
20728         * lib/fts.c (fts_open): Use consistent indentation.
20729
20730 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20731
20732         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20733         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20734         reported by Jim Meyering.  All uses of cache variables renamed
20735         to match Autoconf's.
20736         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20737         the other one.
20738
20739         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20740         Fix misspelling in diagnostic.
20741
20742 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20743
20744         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20745         defined.  Problem reported by Matthew Woehlke.
20746
20747         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20748         Add support for Tandem NonStop R series.
20749         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20750         Use new macro.
20751
20752         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20753         (has_trailing_slash): Omit size arg; all callers changed.
20754         Omit 'inline', since it doesn't help performance and we'd
20755         need to configure it.
20756         Don't count //, ///, etc. as having a trailing slash.
20757         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20758         (rpl_rename_dest_slash): On failure, use rename's errno rather
20759         than (in some cases) an incorrect or junk errno.
20760         Simplify code by removing need to compute length; this does
20761         cause it to make two passes instead of one over the file name,
20762         but it's worth it.
20763
20764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20765         change, since Autoconf's version may no longer be appropriate now
20766         that we are using CVS Autoconf's version.  Add support for Tandem.
20767
20768 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20769             Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20772         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20773         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20774         gl_AC_TYPE_LONG_LONG.
20775
20776         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20777         instead of HAVE_LONG_LONG.
20778         * lib/printf-args.c (printf_fetchargs): Likewise.
20779         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20780         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20781         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20782         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20783         gl_AC_TYPE_LONG_LONG.
20784
20785 2006-10-11  Bruno Haible  <bruno@clisp.org>
20786
20787         * m4/longlong.m4: Add comments.
20788         * m4/ulonglong.m4: Likewise.
20789
20790 2006-10-10  Bruno Haible  <bruno@clisp.org>
20791
20792         Make it possible to #define stpcpy, strdup to aliases.
20793         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20794         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20795
20796 2006-10-10  Bruno Haible  <bruno@clisp.org>
20797
20798         Make it possible to #define gcd to an alias.
20799         * lib/gcd.c: Include config.h.
20800
20801 2006-10-10  Bruno Haible  <bruno@clisp.org>
20802
20803         Make it possible to #define c_isascii to an alias.
20804         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20805         defined. Undefine the macros before defining them, to avoid gcc
20806         warnings.
20807         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20808         define NO_C_CTYPE_MACROS early.
20809
20810 2006-10-10  Bruno Haible  <bruno@clisp.org>
20811
20812         Make it possible to #define set_program_name to an alias.
20813         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20814         ENABLE_RELOCATABLE early.
20815
20816 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20817
20818         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20819         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20820         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20821         More generally, don't assume that 64-bit signed int is available
20822         if unsigned int is, and vice versa.
20823         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20824         unsigned symbols, not on their signed counterparts.
20825         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20826         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20827         (UINT64_C, UINTMAX_C):
20828         Likewise.
20829         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20830         unsigned counterparts.
20831         (Have_long_long, Unsigned): New macros.
20832         (Int): Renamed from INT.
20833         (strtoimax): Use the new macros.
20834         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20835         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20836         * modules/inttypes (inttypes.h): Substitute
20837         HAVE_UNSIGNED_LONG_LONG_INT.
20838         * modules/stdint (stdint.h): Likewise.
20839         (Files): Add m4/ulonglong.m4.
20840
20841 2006-10-10  Bruno Haible  <bruno@clisp.org>
20842
20843         Fix a gcc -Wshadow warning.
20844         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20845         to 'bucket'.
20846         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20847         gl_linked_indexof_from_to): Likewise.
20848         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20849         Likewise.
20850         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20851         Likewise.
20852         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20853         Reported by Eric Blake.
20854
20855 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20856
20857         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20858         for NetBSD.  Problem reported by Bruno Haible.
20859
20860 2006-10-09  Jim Meyering  <jim@meyering.net>
20861
20862         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20863         Patch from Bruno Haible.
20864
20865 2006-10-09  Jim Meyering  <jim@meyering.net>
20866
20867         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20868         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20869         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20870
20871 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20872
20873         Don't include <config.h> twice; this doesn't work in some cases,
20874         e.g., when config.h has "#define intmax_t long long int" and
20875         we include <config.h>, <inttypes.h>, <config.h> in that order.
20876         Problem reported by Matthew Woehlke in:
20877         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20878         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20879         * lib/fts-cycle.c: Don't include config.h.
20880         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20881         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20882         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20883         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20884         inttypes.h.
20885         * lib/xstrtoumax.c: Likewise.
20886         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20887         __strtol and the like, so that this module is more like its siblings.
20888         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20889         Remove; no longer needed now that we assume gnulib inttypes.h.
20890
20891 2006-10-08  Bruno Haible  <bruno@clisp.org>
20892
20893         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20894         option.
20895
20896 2006-10-07  Jim Meyering  <jim@meyering.net>
20897
20898         * modules/inttypes (inttypes.h): Revert what seems to have been
20899         an inadvertent part of today's change: use "|", not "/" in the
20900         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20901
20902 2006-10-07  Bruno Haible  <bruno@clisp.org>
20903
20904         * modules/sublist: New file.
20905
20906 2006-10-07  Bruno Haible  <bruno@clisp.org>
20907
20908         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20909         * modules/argz (argz.h): Likewise.
20910         * modules/arpa_inet (arpa/inet.h): Likewise.
20911         * modules/byteswap (byteswap.h): Likewise.
20912         * modules/configmake (configmake.h): Likewise.
20913         * modules/fcntl (fcntl.h): Likewise.
20914         * modules/fnmatch (fnmatch.h): Likewise.
20915         * modules/getopt (getopt.h): Likewise.
20916         * modules/glob (glob.h): Likewise.
20917         * modules/inttypes (inttypes.h): Likewise.
20918         * modules/netinet_in (netinet/in.h): Likewise.
20919         * modules/poll (poll.h): Likewise.
20920         * modules/stdbool (stdbool.h): Likewise.
20921         * modules/stdint (stdint.h): Likewise.
20922         * modules/sys_select (sys/select.h): Likewise.
20923         * modules/sys_socket (sys/socket.h): Likewise.
20924         * modules/sys_stat (sys/stat.h): Likewise.
20925         * modules/sysexits (sysexits.h): Likewise.
20926         * modules/unistd (unistd.h): Likewise.
20927         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20928         Add a "DO NOT EDIT" comment to the generated file.
20929         (func_import): Likewise for gnulib-comp.m4.
20930
20931 2006-10-07  Bruno Haible  <bruno@clisp.org>
20932
20933         * lib/gl_sublist.h: New file.
20934         * lib/gl_sublist.c: New file.
20935
20936 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20937
20938         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20939         name (relative to the original working directory) and the file
20940         name component (relative to the temporary working directory).  All
20941         callers changed.
20942         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20943         * lib/mkdir-p.c (make_dir_parents): Likewise.
20944         * lib/mkdir-p.h (make_dir_parents): Likewise.
20945
20946 2006-10-06  Eric Blake  <ebb9@byu.net>
20947
20948         Define several macros for use by the clean-temp module.
20949         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20952
20953         * lib/clean-temp.h (close_stream_temp): New declaration.
20954         * lib/clean-temp.c (includes): Pull in headers according to what
20955         other modules are in use.
20956         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20957
20958 2006-10-06  Bruno Haible  <bruno@clisp.org>
20959
20960         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20961         instead of fopen, fwriteerror.
20962
20963 2006-10-06  Bruno Haible  <bruno@clisp.org>
20964
20965         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20966         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20967         int.
20968         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20969         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20970         Return an error indicator.
20971         Suggested by Eric Blake.
20972
20973 2006-10-06  Bruno Haible  <bruno@clisp.org>
20974
20975         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20976         Reported by Eric Blake.
20977
20978 2006-10-06  Bruno Haible  <bruno@clisp.org>
20979
20980         * modules/closeout (Description): Mention stderr too.
20981
20982 2006-10-06  Bruno Haible  <bruno@clisp.org>
20983         and Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         * lib/closeout.c (close_stdout): Also close stderr.
20986         * lib/closeout.h: Update comment.
20987
20988 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20989
20990         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20991         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20992         * lib/dirchownmod.c: Include lchown.h.
20993         * lib/lchown.c: Don't include files that lchown.h now includes.
20994         Don't declare chown, since lchown.h now does that.
20995         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20996         (lchown): Define to rpl_chown if lchown is declared but
20997         does not exist.  Declare using a prototype if lchown is not
20998         declared.  Add a copyright notice.
20999         * lib/mkstemp.h: Include <unistd.h>.
21000         * lib/openat.c: Include lchown.h.
21001
21002         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21003         we now test for that separately.
21004         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21005         rather than O_NOFOLLOW, when testing whether it's possible to
21006         avoid a race condition reliably.
21007         * lib/savewd.c (savewd_chdir): Likewise.
21008
21009         Remove macros that are no longer needed now that stdint.h is
21010         reliable.
21011         * lib/fsusage.c (UINTMAX_MAX): Remove.
21012         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21013         * lib/utimecmp.c (SIZE_MAX): Remove.
21014
21015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21016
21017         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21018         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21019         O_NOATIME works.
21020
21021 2006-10-05  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/gl_list.h (gl_sortedlist_search_from_to,
21024         gl_sortedlist_indexof_from_to): New declarations.
21025         (gl_list_implementation): New fields sortedlist_search_from_to,
21026         sortedlist_indexof_from_to.
21027         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21028         inline functions.
21029         * lib/gl_list.c (gl_sortedlist_search_from_to,
21030         gl_sortedlist_indexof_from_to): New functions.
21031         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21032         function.
21033         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21034         (gl_array_sortedlist_search_from_to): New function.
21035         (gl_array_list_implementation): Update.
21036         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
21037         function.
21038         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
21039         (gl_carray_sortedlist_search_from_to): New function.
21040         (gl_carray_list_implementation): Update.
21041         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
21042         gl_linked_sortedlist_indexof_from_to): New functions.
21043         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21044         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21045         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
21046         gl_tree_sortedlist_indexof_from_to): New functions.
21047         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21048         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21049         Update.
21050         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21051         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
21052         Update.
21053
21054 2006-10-05  Bruno Haible  <bruno@clisp.org>
21055
21056         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
21057         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21058         (struct gl_list_implementation): Add fields search_from_to,
21059         indexof_from_to. Remove fields search, indexof.
21060         (gl_list_search): Use the search_from_to method.
21061         (gl_list_search_from, gl_list_search_from_to): New functions.
21062         (gl_list_indexof): Use the indexof_from_to method.
21063         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21064         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21065         (gl_list_search_from, gl_list_search_from_to): New functions.
21066         (gl_list_indexof): Use the indexof_from_to method.
21067         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21068         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21069         gl_array_indexof. Add start_index, end_index arguments.
21070         (gl_array_search_from_to): Renamed from gl_array_search. Add
21071         start_index, end_index arguments.
21072         (gl_array_remove, gl_array_list_implementation): Update.
21073         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21074         gl_carray_indexof. Add start_index, end_index arguments.
21075         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21076         start_index, end_index arguments.
21077         (gl_carray_remove, gl_carray_list_implementation): Update.
21078         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21079         gl_linked_search. Add start_index, end_index arguments.
21080         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21081         start_index, end_index arguments.
21082         (gl_linked_remove): Update.
21083         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21084         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21085         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21086         field to 'size_t'.
21087         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21088         gl_tree_search. Add start_index, end_index arguments.
21089         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21090         start_index, end_index arguments.
21091         (gl_tree_remove): Update.
21092         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21093         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21094         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21095         function.
21096         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21097         gl_tree_search. Add start_index, end_index arguments.
21098         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21099         start_index, end_index arguments.
21100         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21101         Update.
21102         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21103
21104 2006-10-05  Bruno Haible  <bruno@clisp.org>
21105
21106         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21107
21108         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21109         fwriteerror_temp): New declarations.
21110         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21111         (descriptors): New variable.
21112         (cleanup): First, close the descriptors.
21113         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21114         fclose_temp, fwriteerror_temp): New functions.
21115
21116 2006-10-04  Jim Meyering  <jim@meyering.net>
21117
21118         * lib/fts.c (fts_open): Tiny comment change.
21119
21120 2006-10-04  Bruno Haible  <bruno@clisp.org>
21121
21122         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21123         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21124         gl_LOCK_BODY.
21125         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21126         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21127         gl_LOCK_EARLY_BODY.
21128         (gl_LOCK): Require gl_LOCK_BODY.
21129
21130 2006-10-04  Bruno Haible  <bruno@clisp.org>
21131
21132         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21133         (gl_oset_search_atleast): New declaration.
21134         (struct gl_oset_implementation): Add field 'search_atleast'.
21135         (gl_oset_search_atleast): New inline function.
21136         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21137         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21138         (gl_array_oset_implementation): Update.
21139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21140         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21141         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21142
21143 2006-10-04  Bruno Haible  <bruno@clisp.org>
21144
21145         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21146
21147 2006-10-03  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21150         from gl_avltreehash_list_implementation.
21151
21152 2006-10-03  Bruno Haible  <bruno@clisp.org>
21153
21154         * lib/gl_oset.c (gl_oset_add): Fix return type.
21155
21156 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21157
21158         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21159
21160 2006-10-02  Eric Blake  <ebb9@byu.net>
21161
21162         * modules/strnlen (Depends-on): Add extensions.
21163
21164 2006-10-02  Eric Blake  <ebb9@byu.net>
21165
21166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21167         definition in 2.60+.
21168
21169 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21170
21171         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21172         checks.
21173
21174 2006-10-02  Bruno Haible  <bruno@clisp.org>
21175
21176         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21177         to the AUTOMAKE_OPTIONS.
21178         Reported by Jim Meyering.
21179
21180 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         Work around bug in Solaris 10 /proc file system:
21183         /proc/self/fd/NNN/.. isn't the parent directory of
21184         the directory whose file descriptor is NNN.  This needs to
21185         be worked around at run time, not compile time, since a
21186         program might be built on Solaris 8, where things work, and
21187         run on Solaris 10.
21188         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21189         to use the following interface instead:
21190         (OPENAT_BUFFER_SIZE): New macro.
21191         (openat_proc_name): New function.
21192         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21193         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21194         Likewise.
21195         * lib/openat-proc.c: New file.
21196         * modules/openat (Files): Add lib/openat-proc.c.
21197         (Depends-on): Add same-inode, stdbool.
21198         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21199
21200 2006-09-29  Bruno Haible  <bruno@clisp.org>
21201
21202         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21203         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21204         argument. Set stdout_closed before testing for ferror, not after.
21205         (fwriteerror, fwriteerror_no_ebadf): New functions.
21206
21207 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21208
21209         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21210
21211 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21212
21213         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21214         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21215
21216 2006-09-28  Jim Meyering  <jim@meyering.net>
21217
21218         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21219         Include <unistd.h>.
21220
21221 2006-09-28  Bruno Haible  <bruno@clisp.org>
21222
21223         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21224         * modules/linkedhash-list (Depends-on): Likewise.
21225         * modules/rbtreehash-list (Depends-on): Likewise.
21226
21227 2006-09-28  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/strndup.h: Simplify the redefinition of strndup.
21230         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21232
21233 2006-09-28  Bruno Haible  <bruno@clisp.org>
21234
21235         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21236         * lib/gl_linkedhash_list.c: Likewise.
21237         * lib/gl_rbtreehash_list.c: Likewise.
21238
21239 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21240
21241         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21242         getaddrinfo.
21243
21244         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21245         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21246         it causes <stdio_ext.h> to cause a compile-time error.
21247         Problem reported by Nelson H. F. Beebe.
21248         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21249         of HAVE_DECL___PENDING.
21250
21251         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21252         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21253         declaration.
21254
21255 2006-09-27  Jim Meyering  <jim@meyering.net>
21256
21257         This file could end up with a definition for a function
21258         named __strndup, rather than rpl_strndup on a system with
21259         incomplete weak_alias support.
21260         * lib/strndup.c (strndup): Rename from __strndup.
21261         Remove #defines that used to map __strndup to strndup.
21262         Don't use K&R prototypes.
21263         Remove LIBC-related code, since this file is not sync'd with glibc.
21264         * lib/strndup.h: Revamp, accordingly.
21265         * m4/strndup.m4: Modernize.
21266
21267 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21268
21269         * modules/savewd (Depends-on): Add 'raise'.
21270         * lib/savewd.c: Include <signal.h>, for 'raise'.
21271
21272 2006-09-26  Jim Meyering  <jim@meyering.net>
21273
21274         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21275         when we detect Darwin 8.7.0's acl_get_file bug.
21276         Rearrange to perform the new (below) run-test while $LIBS
21277         contains any acl-related library.  Set USE_ACL at the end.
21278         (gl_ACL_GET_FILE): New function.
21279
21280 2006-09-26  Eric Blake  <ebb9@byu.net>
21281
21282         * lib/verror.c: Include <config.h> unconditionally.
21283
21284 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         * modules/clock-time (Maintainer): Add self.
21287         * modules/getlogin_r (Depends-on): Add extensions.
21288
21289 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21290
21291         * modules/clock-time: New module.
21292         * modules/nanosleep (Depends-on): Add clock-time.
21293         * modules/gethrxtime (Depends-on): Likewise.
21294         * modules/gettime (Depends-on): Likewise.
21295         * modules/settime (Depends-on): Likewise.
21296
21297         * modules/fts-lgpl: Depend on openat.
21298         * modules/mkancesdirs: Depend on savewd.
21299         * modules/mkdir-p: Likewise.
21300
21301 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21302
21303         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21304
21305         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21306         `gl_have_arbitrary_file_name_length_limit' to
21307         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21308         actually works between configure runs.
21309
21310 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21311             Bruno Haible  <bruno@clisp.org>
21312
21313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21314
21315 2006-09-25  Jim Meyering  <jim@meyering.net>
21316
21317         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21318         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21319
21320 2006-09-25  Eric Blake  <ebb9@byu.net>
21321
21322         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21323         exec's in 2006-09-18 patch when shuffling fds.
21324
21325 2006-09-25  Bruno Haible  <bruno@clisp.org>
21326
21327         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21328         Reported by Jim Meyering.
21329
21330 2006-09-24  Jim Meyering  <jim@meyering.net>
21331
21332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21333         compare a pointer against a literal "0".  That caused failures with
21334         at least HP-UX's hpcc.
21335
21336 2006-09-22  Simon Josefsson  <jas@extundo.com>
21337
21338         * modules/gc-sha1:
21339         * modules/gc-md4:
21340         * modules/gc-hmac-sha1:
21341         * modules/gc-hmac-md5:
21342         * modules/gc-des:
21343         * modules/gc-arcfour: Distribute more files.
21344
21345 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21346
21347         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21348         (gl_linked_iterator_from_to): Initialize struct completely.
21349         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21350         (gl_tree_iterator_from_to): Likewise
21351         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21352         * lib/gl_array_list.c [lint] (gl_array_iterator)
21353         (gl_array_iterator_from_to): Likewise.
21354         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21355         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21356         (gl_carray_iterator_from_to): Likewise.
21357
21358         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21359         * lib/md4.c (md4_process_block): Remove unused variable.
21360         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21361         parentheses for clarity.
21362
21363 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21364
21365         * modules/bison-i18n (Depends-on): Add gettext.
21366
21367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21368
21369         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21370         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21371         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21372         also add missing comma that caused broken test.
21373         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21374         stdlib.h, for `abort'.
21375         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21376         variables.
21377         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21378         include unistd.h if present, for `rmdir'.
21379         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21380         variables.
21381         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21382         in the process include standard headers for prototypes.
21383         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21384         gets declared on GNU/Linux.
21385         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21386         unistd.h, for `rmdir'.
21387         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21388
21389         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21390         always true.
21391         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21392
21393         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21394
21395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21396
21397         * gnulib-tool (func_version): Create output all at once.  This
21398         may help avoid triggering unnecessary SIGPIPEs, and at any
21399         rate it doesn't hurt.
21400
21401 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21402             Bruno Haible  <bruno@clisp.org>
21403
21404         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21405         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21406         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21407
21408         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21409         (gl_FUNC_VASPRINTF): Invoke it.
21410
21411 2006-09-22  Bruno Haible  <bruno@clisp.org>
21412
21413         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21414         getloadavg.c as first argument.
21415
21416 2006-09-22  Bruno Haible  <bruno@clisp.org>
21417
21418         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21419         at the beginning of the gl_INIT macro.
21420         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21421         gl_GETLOADAVG.
21422
21423 2006-09-22  Bruno Haible  <bruno@clisp.org>
21424
21425         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21426         module.
21427         Suggested by Ralf Wildenhues.
21428
21429 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21430
21431         Import this patch from libc:
21432
21433         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21434
21435         * lib/regex_internal.c (re_string_reconstruct): Handle
21436         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21437         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21438         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21439         re_string_context_at.
21440
21441         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21442         now requires it.
21443         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21444         gl_REGEX now does it for us.
21445         (gl_REGEX): Add test taken from
21446         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21447
21448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21449         Check that large offsets work.  Modernize Autoconf usages.
21450         Prefer "yes" to mean a good thing rather than a bad.
21451         Don't put "#define mkstemp" in config.h, as this might interfere
21452         with standard system headers that "#define mkstemp mkstemp64".
21453
21454         * modules/mkstemp (Depends-on): Add extensions, so that
21455         mkstemp is visible on some platforms.
21456         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21457         (Include): Change to "mkstemp.h" from <stdlib.h>.
21458         (Files): Add mkstemp.h.
21459
21460         * lib/mkstemp.h: New file, since some standard headers
21461         #define mkstemp.
21462         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21463         Include "mkstemp.h".
21464         Make the _LIBC code resemble glibc original more,
21465         e.g., use K&R style.
21466         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21467         (mkstemp): Remove, since mkstemp.h does this for us.
21468         * lib/stdlib--.h: Include mkstemp.h.
21469
21470         Import this patch from libc:
21471
21472         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21473
21474         * lib/tempname.c (__gen_tempname): Change attempts_min
21475         into a macro.  Use preprocessor to decide how to initialize
21476         attempts [Coverity CID 67].
21477
21478 2006-09-20  Bruno Haible  <bruno@clisp.org>
21479
21480         * lib/mkdtemp.c: Import from libc.
21481         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21482                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21483                 attempts_min into a macro.  Use preprocessor to decide how to
21484                 initialize attempts [Coverity CID 67].
21485         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21486                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21487                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21488
21489 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21490
21491         * gnulib-tool (func_exit): New function, to allow to pass the
21492         exit status portably through the trap.  Use everywhere.
21493         (--help, --version): Signal a write error.
21494         (trap): catch SIGPIPE, for write errors.
21495         Exit at the end of the trap, with the correct exit status.
21496
21497 2006-09-19  Karl Berry  <karl@gnu.org>
21498
21499         * doc/gnulib.texi: note about the license texinfo files.
21500
21501 2006-09-19  Eric Blake  <ebb9@byu.net>
21502
21503         * gnulib-tool: Avoid space-tab.
21504
21505 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21506
21507         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21508         that prevented coreutils 6.1 from building.  Problem reported
21509         by Petter Reinholdtsen.
21510
21511 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21512
21513         * gnulib-tool (avoidlist): Fix typo that broke options like
21514         --avoid=lock that are used by coreutils bootstrap.
21515
21516 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21517
21518         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21519         more systematically.
21520
21521 2006-09-18  Jim Meyering  <jim@meyering.net>
21522
21523         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21524
21525 2006-09-18  Bruno Haible  <bruno@clisp.org>
21526
21527         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21528
21529 2006-09-18  Bruno Haible  <bruno@clisp.org>
21530
21531         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21532         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21533         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21534         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21535         * m4/gettext.m4: Require autoconf >= 2.52.
21536         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21537         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21538         of gl_cv_header_inttypes_h.
21539
21540 2006-09-18  Bruno Haible  <bruno@clisp.org>
21541
21542         * lib/javaversion.c: Include configmake.h.
21543
21544 2006-09-18  Bruno Haible  <bruno@clisp.org>
21545
21546         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21547         avoid that the while loops be executed in a subshell.
21548
21549 2006-09-18  Bruno Haible  <bruno@clisp.org>
21550
21551         * MODULES.html.sh (func_module): Break long lines.
21552         Suggested by Bruce Korb <bkorb@gnu.org>.
21553
21554 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21555
21556         Speed up by a factor of 1.12.
21557         * gnulib-tool (nl): New variable.
21558         (func_import): Rewrite include directive extraction to only read each
21559         directive once.
21560
21561 2006-09-17  Bruno Haible  <bruno@clisp.org>
21562
21563         * modules/javaversion (Makefile.am): Remove DEFS setting.
21564         (Depends-on): Add configmake, for PKGDATADIR definition.
21565
21566 2006-09-17  Bruno Haible  <bruno@clisp.org>
21567
21568         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21569
21570 2006-09-17  Bruno Haible  <bruno@clisp.org>
21571
21572         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21573         (func_modules_transitive_closure, func_modules_add_dummy,
21574         func_modules_to_filelist, func_import, func_create_testdir,
21575         func_create_megatestdir, ...): Use it wherever possible.
21576         Suggested by Ralf Wildenhues.
21577
21578 2006-09-16  Karl Berry  <karl@gnu.org>
21579
21580         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21581         to avoid sectioning errors.
21582         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21583         [ifinfo]: blank line after @center-ed titles.
21584         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21585         Spell FSF address consistently with others.
21586         (These changes approved by rms.)
21587
21588 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21589
21590         Speed up by a factor of 1.61.
21591         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21592         already checked module names again.
21593
21594 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21595
21596         Speed up by a factor of 1.13.
21597         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21598         for new_files, and the input to func_add_or_update.
21599
21600 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21601
21602         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21603         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21604
21605 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21606
21607         * modules/mkancesdirs (Depends-on): Add fcntl.
21608         * modules/savewd: New file.
21609         * MODULES.html.sh (File system functions): Add savewd.
21610
21611         * modules/configmake (Makefile.am): Add support for the
21612         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21613
21614 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21615
21616         * m4/savewd.m4: New file.
21617
21618 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21619
21620         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21621         (dirchownmod): New arg FD.  All callers changed.
21622         Use FD rather than opening the directory ourself, as opening is
21623         now the caller's responsibility.
21624         * lib/dirchownmod.h: Likewise.
21625         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21626         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21627         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21628         (test_dir): Remove.
21629         (mkancesdirs): Return length of prefix of FILE that has already
21630         been made, or -2 if there is a child doing the work.  Redo
21631         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21632         ".", and treat ".." specially since it might stray back into
21633         already-created areas.  Use a subprocess if necessary.  New arg
21634         WD; all users changed.  MAKE_DIR function should now return 1
21635         if it creates a directory that is not readable.  Return -2 if
21636         a child process is spun off.
21637         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21638         Adjust signature to match code.
21639         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21640         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21641         all users changed.
21642         * lib/savewd.c, lib/savewd.h: New files.
21643
21644 2006-09-15  Jim Meyering  <jim@meyering.net>
21645
21646         * modules/rename-dest-slash: New module.
21647         * MODULES.html.sh (posix_compat): Add it here.
21648
21649         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21650
21651 2006-09-15  Jim Meyering  <jim@meyering.net>
21652
21653         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21654         file.
21655
21656         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21657
21658 2006-09-15  Jim Meyering  <jim@meyering.net>
21659
21660         * lib/rename-dest-slash.c (has_trailing_slash): Use
21661         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21662         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21663         test before testing whether SRC is a directory.
21664         Suggestions from Bruno Haible.
21665
21666         Avoid a warning about an unused variable.
21667         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21668         into the #ifdef block where it's used.
21669
21670         * lib/rename-dest-slash.c: New file.
21671
21672 2006-09-14  Bruno Haible  <bruno@clisp.org>
21673
21674         * lib/allocsa.c: Include <config.h> unconditionally.
21675         * lib/asnprintf.c: Likewise.
21676         * lib/asprintf.c: Likewise.
21677         * lib/c-strcasecmp.c: Likewise.
21678         * lib/c-strcasestr.c: Likewise.
21679         * lib/c-strncasecmp.c: Likewise.
21680         * lib/c-strstr.c: Likewise.
21681         * lib/classpath.c: Likewise.
21682         * lib/clean-temp.c: Likewise.
21683         * lib/concatpath.c: Likewise.
21684         * lib/copy-file.c: Likewise.
21685         * lib/csharpcomp.c: Likewise.
21686         * lib/csharpexec.c: Likewise.
21687         * lib/execute.c: Likewise.
21688         * lib/fatal-signal.c: Likewise.
21689         * lib/findprog.c: Likewise.
21690         * lib/fwriteerror.c: Likewise.
21691         * lib/gl_array_list.c: Likewise.
21692         * lib/gl_array_oset.c: Likewise.
21693         * lib/gl_avltree_list.c: Likewise.
21694         * lib/gl_avltree_oset.c: Likewise.
21695         * lib/gl_avltreehash_list.c: Likewise.
21696         * lib/gl_carray_list.c: Likewise.
21697         * lib/gl_linked_list.c: Likewise.
21698         * lib/gl_linkedhash_list.c: Likewise.
21699         * lib/gl_list.c: Likewise.
21700         * lib/gl_oset.c: Likewise.
21701         * lib/gl_rbtree_list.c: Likewise.
21702         * lib/gl_rbtree_oset.c: Likewise.
21703         * lib/gl_rbtreehash_list.c: Likewise.
21704         * lib/imaxabs.c: Likewise.
21705         * lib/imaxdiv.c: Likewise.
21706         * lib/javacomp.c: Likewise.
21707         * lib/javaexec.c: Likewise.
21708         * lib/javaversion.c: Likewise.
21709         * lib/linebreak.c: Likewise.
21710         * lib/localcharset.c: Likewise.
21711         * lib/lock.c: Likewise.
21712         * lib/mbchar.c: Likewise.
21713         * lib/mbswidth.c: Likewise.
21714         * lib/mkdtemp.c: Likewise.
21715         * lib/pipe.c: Likewise.
21716         * lib/printf-args.c: Likewise.
21717         * lib/printf-parse.c: Likewise.
21718         * lib/progname.c: Likewise.
21719         * lib/progreloc.c: Likewise.
21720         * lib/readlink.c: Likewise.
21721         * lib/sh-quote.c: Likewise.
21722         * lib/stpcpy.c: Likewise.
21723         * lib/stpncpy.c: Likewise.
21724         * lib/strcasecmp.c: Likewise.
21725         * lib/strcasestr.c: Likewise.
21726         * lib/strcspn.c: Likewise.
21727         * lib/striconv.c: Likewise.
21728         * lib/strncasecmp.c: Likewise.
21729         * lib/strnlen1.c: Likewise.
21730         * lib/strstr.c: Likewise.
21731         * lib/strtok_r.c: Likewise.
21732         * lib/tls.c: Likewise.
21733         * lib/tmpdir.c: Likewise.
21734         * lib/unicodeio.c: Likewise.
21735         * lib/unsetenv.c: Likewise.
21736         * lib/vasnprintf.c: Likewise.
21737         * lib/vasprintf.c: Likewise.
21738         * lib/wait-process.c: Likewise.
21739         * lib/xallocsa.c: Likewise.
21740         * lib/xsetenv.c: Likewise.
21741         * lib/xstriconv.c: Likewise.
21742
21743 2006-09-13  Simon Josefsson  <jas@extundo.com>
21744
21745         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21746         that internally, suggested by Ralf Wildenhues
21747         <Ralf.Wildenhues@gmx.de>.
21748
21749 2006-09-13  Simon Josefsson  <jas@extundo.com>
21750
21751         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21752         @LIBOBJS@.
21753         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21754
21755 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21756
21757         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21758         longer worry about uses that don't define HAVE_CONFIG_H.
21759         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21760         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21761         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21762         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21763         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21764         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21765         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21766         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21767         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21768         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21769         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21770         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21771         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21772         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21773         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21774         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21775         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21776         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21777         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21778         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21779         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21780         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21781         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21782         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21783         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21784         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21785         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21786         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21787         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21788         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21789         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21790         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21791         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21792         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21793         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21794         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21795         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21796         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21797         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21798         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21799         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21800         Likewise.
21801
21802 2006-09-13  Eric Blake  <ebb9@byu.net>
21803
21804         * lib/getopt.c: Fix typo in last commit.
21805
21806 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21807
21808         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21809         dgettext.
21810
21811 2006-09-12  Jim Meyering  <jim@meyering.net>
21812
21813         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21814         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21815         Reported by Nelson H. F. Beebe.
21816
21817 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21818
21819         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21820         program_invocation_name and program_invocation_short_name are
21821         initialized.
21822         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21823         and program_invocation_short_name to argp.h, so they are visible
21824         to user programs.
21825         * lib/argp.h: Likewise
21826
21827 2006-09-10  Bruno Haible  <bruno@clisp.org>
21828
21829         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21830         m4/inttypes_h.m4, m4/uintmax_t.m4.
21831
21832 2006-09-10  Bruno Haible  <bruno@clisp.org>
21833
21834         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21835         gl_AC_TYPE_UINTMAX_T.
21836
21837 2006-09-10  Bruno Haible  <bruno@clisp.org>
21838
21839         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21840
21841 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21842
21843         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21844         convention.  Text proposed by Bruno Haible.
21845         (struct argp_option): Document the use of N_() wrappers.
21846
21847         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21848         '\v', and translate the two parts separately, instead of feeding
21849         the whole string to gettext.  This allows to exclude
21850         '\v' from the strings visible to the translator by writing doc
21851         strings as N_("..") "\v" N_("..").
21852
21853 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21854
21855         * config/srclist.txt: Undo latest change; the bug was fixed.
21856
21857 2006-09-09  Bruno Haible  <bruno@clisp.org>
21858
21859         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21860         assignments if building a library without libtool.
21861         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21862         in func_emit_lib_Makefile_am.
21863         (func_import): When building a static library libfoo.a, arrange to
21864         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21865         (func_create_testdir): Likewise.
21866         * modules/gc (configure.ac, Makefile.am): If building statically,
21867         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21868         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21869         * modules/striconv (configure.ac, Makefile.am): Likewise.
21870         Based on a suggestion by Ralf Wildenhues.
21871
21872 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21875         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21876         Also:
21877
21878         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21879         Add year_2050_test to catch glibc bug 2821
21880         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21881
21882         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21883         Prefer #ifdef to #if.
21884
21885         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21886         Return from 'main' instead of calling 'exit'.
21887
21888 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21889
21890         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21891         returned the maximum time_t value rather than (time_t) -1.
21892         Problem originally reported by William Bardwell
21893         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21894
21895         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21896         Moved to here ...
21897         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21898         ... from here.
21899
21900 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21901
21902         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21903         2821 is fixed.
21904
21905 2006-09-08  Jim Meyering  <jim@meyering.net>
21906
21907         Don't make generated files read-only.  That would bother too many
21908         people.  However, do retain the ability to work when targets are
21909         read-only: remove the destination and temporary files before writing
21910         them (when generated via sed or echo), or by using the -f option for
21911         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21912         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21913         * modules/byteswap, modules/configmake, modules/fcntl:
21914         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21915         * modules/localcharset, modules/netinet_in, modules/poll:
21916         * modules/stdbool, modules/stdint, modules/sys_select:
21917         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21918
21919 2006-09-08  Jim Meyering  <jim@meyering.net>
21920
21921         Avoid new build failure on FreeBSD 6.0.
21922         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21923         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21924         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21925
21926 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21927
21928         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21929
21930 2006-09-07  Jim Meyering  <jim@meyering.net>
21931
21932         Fix global typo in last change: use chmod u-w, not chmod u-x.
21933         Spotted by Paul Eggert and Bruce Korb.
21934         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21935         * modules/byteswap, modules/configmake, modules/fcntl:
21936         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21937         * modules/localcharset, modules/netinet_in, modules/poll:
21938         * modules/stdbool, modules/stdint, modules/sys_select:
21939         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21940
21941 2006-09-06  Jim Meyering  <jim@meyering.net>
21942
21943         Make generated files be read-only.
21944         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21945         Ensure that each generated file is now read-only.
21946         * modules/argz: Likewise.
21947         * modules/arpa_inet: Likewise.
21948         * modules/byteswap: Likewise.
21949         * modules/configmake: Likewise.
21950         * modules/fcntl: Likewise.
21951         * modules/fnmatch: Likewise.
21952         * modules/getopt: Likewise.
21953         * modules/glob: Likewise.
21954         * modules/inttypes: Likewise.
21955         * modules/netinet_in: Likewise.
21956         * modules/poll: Likewise.
21957         * modules/stdbool: Likewise.
21958         * modules/stdint: Likewise.
21959         * modules/sys_select: Likewise.
21960         * modules/sys_socket: Likewise.
21961         * modules/sys_stat: Likewise.
21962         * modules/sysexits: Likewise.
21963         * modules/localcharset: Same as above, but continue using temporary
21964         file named "t-$@" (why different?) rather than the "$@-t" used
21965         everywhere else.
21966
21967         * modules/sysexits (Makefile.am): Replace literal occurrences
21968         of "sysexit.h" more readable, and more consistent, "$@".
21969
21970 2006-09-06  Bruno Haible  <bruno@clisp.org>
21971
21972         * modules/striconv: New file.
21973         * modules/xstriconv: New file.
21974         * MODULES.html.sh (Internationalization functions): Add striconv,
21975         xstriconv.
21976
21977 2006-09-06  Bruno Haible  <bruno@clisp.org>
21978
21979         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21980         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21981         not using libtool correctly.
21982
21983 2006-09-06  Bruno Haible  <bruno@clisp.org>
21984
21985         * lib/striconv.h: New file.
21986         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21987         iconvstring.c.
21988         * lib/xstriconv.h: New file.
21989         * lib/xstriconv.c: New file.
21990
21991 2006-09-06  Bruno Haible  <bruno@clisp.org>
21992
21993         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21994         lib_..._LDFLAGS.
21995
21996 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21997
21998         * lib/argz_.h: Sync from Libtool.
21999
22000         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22001                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22002
22003         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22004
22005 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22006
22007         * modules/trim: New file.
22008
22009 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22010
22011         * lib/trim.h: New file.
22012         * lib/trim.c: New file.
22013
22014 2006-09-05  Bruno Haible  <bruno@clisp.org>
22015
22016         * MODULES.html.sh (String handling): Add trim.
22017
22018 2006-09-04  Karl Berry  <karl@gnu.org>
22019
22020         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22021         until next release.
22022
22023 2006-09-03  Bruno Haible  <bruno@clisp.org>
22024
22025         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22026         correctly.
22027
22028 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22029
22030         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22031         not gl_GETLOADAVG.  Omit unneeded semicolons.
22032         Problems reported by Ralf Wildenhues in
22033         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22034         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22035         at the end, which is the usual gnulib style.
22036
22037         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
22038         of doing all the work ourselves.
22039         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
22040         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
22041
22042 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
22045         Problem reported by Ralf Wildenhues in
22046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22047
22048         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
22049         HAVE_STRUCT_STATFS_F_FSTYPENAME.
22050
22051 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22052
22053         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
22054         yesterday's patch by changing test -n to test -z.
22055
22056 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22059         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22060         the former is now obsolescent.
22061
22062         * modules/chdir-long (Depends-on): Add fcntl.
22063
22064 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22065
22066         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22067         obsolescent, and programs should use gnulib instead.
22068         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22069         but with prefixes changed.
22070
22071 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22072
22073         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22074         or stdbool.h, because they might not exist while configuring.
22075
22076         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22077         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22078         does that for us.
22079         (O_DIRECTORY): Remove.
22080
22081 2006-08-31  Eric Blake  <ebb9@byu.net>
22082
22083         * gnulib-tool: Don't let emacs change spaces to TAB.
22084
22085 2006-08-31  Bruno Haible  <bruno@clisp.org>
22086
22087         * gnulib-tool: When calling func_import more than once, do it in a
22088         subshell.
22089         Reported by Eric Blake <ebb9@byu.net>.
22090
22091 2006-08-31  Bruno Haible  <bruno@clisp.org>
22092
22093         * gnulib-tool (nl): Remove variable.
22094         (sed_transform_lib_file): Use more robust test for config-h module.
22095         (func_import): Fix typo in 2006-08-25 patch.
22096
22097 2006-08-31  Bruno Haible  <bruno@clisp.org>
22098
22099         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22100         specified, augment Makefile.am variables instead of assigning them.
22101
22102 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22103
22104         Work around a bug in both the Linux and SunOS 64-bit kernels:
22105         nanosleep mishandles sleeps for longer than 2**31 seconds.
22106         Problem reported by Frank v Waveren in
22107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22109         Check for nanosleep bug.
22110         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22111
22112 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22113
22114         Work around a bug in both the Linux and SunOS 64-bit kernels:
22115         nanosleep mishandles sleeps for longer than 2**31 seconds.
22116         Problem reported by Frank v Waveren in
22117         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22118         * lib/nanosleep.c (BILLION): New constant.
22119         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22120         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22121         implementation.
22122
22123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22124
22125         * modules/nanosleep (Depends-on): Add gettime.
22126
22127 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22128         and Simon Josefsson  <jas@extundo.com>
22129         and Oskar Liljeblad  <oskar@osk.mine.nu>
22130
22131         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22132         * gnulib-tool (func_import): New license type 'unmodifiable license
22133         text'.
22134         * modules/fdl: Use it.  Longer description.
22135         * module/gpl, module/lgpl: New files.
22136
22137 2006-08-30  Jim Meyering  <jim@meyering.net>
22138
22139         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22140         shadowing the parameter.
22141
22142 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22143
22144         Sync from Libtool:
22145
22146         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22147
22148         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22149         sharing with gnulib.  Report by Eric Blake.
22150
22151 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22152
22153         * modules/isapipe: New file.
22154         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22155
22156 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22157
22158         * modules/configmake (Makefile.am): Add a comment, and omit
22159         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22160         by Bruno Haible.
22161
22162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         * m4/isapipe.m4: New file.
22165
22166 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22167
22168         * lib/isapipe.c, lib/isapipe.h: New files.
22169
22170 2006-08-29  Jim Meyering  <jim@meyering.net>
22171
22172         * modules/configmake (Makefile.am): Make configmake.h depend on
22173         Makefile.  Otherwise, a stale configmake.h could hang around.
22174
22175 2006-08-29  Eric Blake  <ebb9@byu.net>
22176
22177         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22178         resolution of upstream bug 3044.
22179
22180 2006-08-29  Bruno Haible  <bruno@clisp.org>
22181
22182         * modules/localcharset (Depends-on): Add configmake.
22183         (Makefile.am): Remove setting of LIBDIR through DEFS.
22184
22185 2006-08-29  Bruno Haible  <bruno@clisp.org>
22186
22187         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22188         defined.
22189
22190 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22191
22192         * modules/fcntl: New file.
22193         * modules/chdir-safer (Depends-on): Add fcntl.
22194         * modules/fts: Likewise.
22195         * modules/mkdir-p: Likewise.
22196
22197         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22198         This undoes the most recent change, since we're now addressing the
22199         problem in a different way.
22200
22201         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22202         into output, since the output might be called Makefile.am even
22203         if $makefile_name is something different.
22204         (func_import): Use $makefile_am rather than
22205         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22206         empty.
22207
22208         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22209
22210 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22211
22212         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22213         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22214         recent change to stdint.m4, since we're now addressing the problem in a
22215         different way.
22216
22217 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22218
22219         * m4/fcntl_h.m4: New file.
22220
22221 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         * lib/fcntl_.h: New file.
22224         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22225         the fcntl module.
22226         * lib/dirchownmod.c: Likewise.
22227         * lib/fts.c: Likewise.
22228
22229         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22230         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22231         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22232         just before including <inttypes.h>, to avoid circular inclusion.
22233
22234 2006-08-28  Jim Meyering  <jim@meyering.net>
22235
22236         * doc/visibility.texi: Actually read and correct the grammar of the
22237         sentence affected by yesterday's change.
22238
22239 2006-08-28  Eric Blake  <ebb9@byu.net>
22240
22241         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22242         needs wrapper.
22243
22244 2006-08-28  Eric Blake  <ebb9@byu.net>
22245
22246         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22247
22248 2006-08-28  Eric Blake  <ebb9@byu.net>
22249
22250         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22251
22252 2006-08-28  Bruno Haible  <bruno@clisp.org>
22253
22254         * modules/c-strstr: New file, from GNU gettext.
22255         * MODULES.html.sh (String handling): Add c-strstr.
22256
22257 2006-08-28  Bruno Haible  <bruno@clisp.org>
22258
22259         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22260         macros.
22261         Reported by Eric Blake.
22262
22263 2006-08-28  Bruno Haible  <bruno@clisp.org>
22264
22265         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22266         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22267         * lib/vasprintf.c: Include errno.h, limits.h.
22268         (EOVERFLOW): New fallback definition.
22269         (vasprintf): Test here whether the string length is > INT_MAX.
22270         * lib/vsnprintf.c: Include errno.h, limits.h.
22271         (EOVERFLOW): New fallback definition.
22272         (vsnprintf): Fix bug when generated string was too long for the buffer.
22273         Test here whether the string length is > INT_MAX.
22274
22275 2006-08-28  Bruno Haible  <bruno@clisp.org>
22276
22277         * lib/inttypes_.h (SCNX*): Remove definitions.
22278         Reported by Eric Blake.
22279
22280 2006-08-28  Bruno Haible  <bruno@clisp.org>
22281
22282         * lib/c-strstr.h: New file, from GNU gettext.
22283         * lib/c-strstr.c: New file, from GNU gettext.
22284
22285 2006-08-28  Bruno Haible  <bruno@clisp.org>
22286
22287         * gnulib-tool: Reorder some statements.
22288
22289 2006-08-28  Bruno Haible  <bruno@clisp.org>
22290
22291         * gnulib-tool: New option --makefile-name.
22292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22293         $makefile_name.
22294         (func_import): Write $makefile_name to the cache file, and read it from
22295         there unless explicitly specified. Use $makefile_name as file name
22296         instead of Makefile.am. Adjust the recommendations accordingly.
22297
22298 2006-08-28  Bruno Haible  <bruno@clisp.org>
22299
22300         * gnulib-tool (func_verify_module): Check against misapplying patch.
22301
22302 2006-08-28  Bruno Haible  <bruno@clisp.org>
22303
22304         * gnulib-tool (func_relativize, func_relconcat): New functions.
22305         Give an error if --local-dir is given with --update.
22306         Remove trailing slashes from $local_gnulib_dir.
22307         (func_import): Store the relativized $local_gnulib_dir in
22308         gnulib-cache.m4, and read it from there if not specified explicitly.
22309
22310 2006-08-28  Bruno Haible  <bruno@clisp.org>
22311
22312         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22313         is the current directory. Respect also $local_gnulib_dir.
22314
22315 2006-08-28  Bruno Haible  <bruno@clisp.org>
22316             Simon Josefsson  <jas@extundo.com>
22317
22318         BeOS portability.
22319         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22320
22321 2006-08-27  Jim Meyering  <jim@meyering.net>
22322
22323         * doc/visibility.texi: Remove duplicate word: "pointer".
22324
22325 2006-08-26  Bruno Haible  <bruno@clisp.org>
22326
22327         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22328         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22329         (Makefile.am): Create inttypes.h from inttypes_.h.
22330         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22331
22332         * modules/imaxabs: New file.
22333
22334         * modules/imaxdiv: New file.
22335
22336 2006-08-26  Bruno Haible  <bruno@clisp.org>
22337
22338         * m4/inttypes.m4: New file.
22339         * m4/_inttypes_h.m4: Remove file.
22340         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22341         PRI_MACROS_BROKEN.
22342         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22343
22344         * m4/imaxabs.m4: New file.
22345
22346         * m4/imaxdiv.m4: New file.
22347
22348 2006-08-26  Bruno Haible  <bruno@clisp.org>
22349
22350         * lib/inttypes_.h: New file.
22351         * lib/inttypes.h: Remove file.
22352         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22353
22354         * lib/imaxabs.c: New file.
22355
22356         * lib/imaxdiv.c: New file.
22357
22358 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22359
22360         New config-h module, so that "make" output needn't be cluttered
22361         by -DHAVE_CONFIG_H.
22362         * MODULES.html.sh (Support for building libraries and executables):
22363         Add config-h.
22364         * modules/config-h: New file.
22365         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22366         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22367         the config-h module is used.
22368
22369         New configmake module, so that "make" output needn't be cluttered
22370         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22371         * MODULES.html.sh (Support for building libraries and executables):
22372         Add configmake.
22373         * modules/configmake: New file.
22374
22375 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22376
22377         * m4/config-h.m4: New file.
22378
22379 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22380
22381         * config/srclist.txt: Add elisp-comp.
22382
22383 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22384
22385         * MODULES.html.sh (Support for building libraries and executables):
22386         Add elisp-comp.
22387         * build-aux/elisp-comp: New file.
22388         * modules/elisp-comp: New file.
22389
22390 2006-08-24  Bruno Haible  <bruno@clisp.org>
22391
22392         * gnulib-tool (func_create_testdir): Use non-default values of
22393         sourcebase and m4base.
22394
22395 2006-08-24  Bruno Haible  <bruno@clisp.org>
22396
22397         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22398         HTML structure.
22399
22400 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         * modules/openat (Depends-on): Add lchown.
22403
22404 2006-08-23  Bruno Haible  <bruno@clisp.org>
22405
22406         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22407         of gl_LOCK_EARLY instead of gl_LOCK.
22408
22409 2006-08-23  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22412         on OSF/1 to no.
22413         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22414
22415 2006-08-23  Bruno Haible  <bruno@clisp.org>
22416
22417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22418         as unusable.
22419
22420         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22421         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22422         (gl_LOCK): New macro.
22423
22424 2006-08-22  Simon Josefsson  <jas@extundo.com>
22425
22426         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22427         to md5 module.
22428
22429 2006-08-22  Simon Josefsson  <jas@extundo.com>
22430
22431         * MODULES.html.sh: Add "Support for maintaining and release
22432         projects".
22433
22434         * build-aux/gnupload: New file, from coreutils.
22435
22436 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22437
22438         Avoid the need for AC_LIBSOURCES in m4 macros.
22439         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22440         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22441         * modules/check-version (EXTRA_DIST): Add check-version.h.
22442         * modules/crc (EXTRA_DIST): Add crc.h.
22443         * modules/des (EXTRA_DIST): Add des.h.
22444         * modules/gc (EXTRA_DIST): Add gc.h.
22445         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22446         * modules/getline (EXTRA_DIST): Add getline.h.
22447         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22448         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22449         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22450         * modules/md2 (EXTRA_DIST): Add md2.h.
22451         * modules/md4 (EXTRA_DIST): Add md4.h.
22452         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22453         * modules/read-file (EXTRA_DIST): Add read-file.h.
22454         * modules/readline (EXTRA_DIST): Add readline.h.
22455         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22456         rijndael-api-fst.h.
22457
22458 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         * m4/rijndael.m4 (gl_ARCFOUR):
22461         * m4/arctwo.m4 (gl_ARCTWO):
22462         * m4/check-version.m4 (gl_CHECK_VERSION):
22463         * m4/crc.m4 (gl_CRC):
22464         * m4/des.m4 (gl_DES):
22465         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22466         * m4/gc.m4 (gl_GC):
22467         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22468         * m4/getline.m4 (gl_FUNC_GETLINE):
22469         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22470         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22471         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22472         * m4/md2.m4 (gl_MD2):
22473         * m4/md4.m4 (gl_MD4):
22474         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22475         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22476         * m4/readline.m4 (gl_FUNC_READLINE):
22477         * m4/rijndael.m4 (gl_RIJNDAEL):
22478         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22479         to get the necessary .h files and whatnot.
22480
22481 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22482
22483         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22484         gnulib rather than the other way around.
22485         * config/srclistvars.sh (COREUTILS): Remove.
22486
22487 2006-08-22  Jim Meyering  <jim@meyering.net>
22488
22489         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22490
22491         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22492
22493 2006-08-22  Eric Blake  <ebb9@byu.net>
22494
22495         * modules/regexprops-generic: New file.
22496         * MODULES.html.sh (Support for building documentation): List it.
22497
22498 2006-08-22  Eric Blake  <ebb9@byu.net>
22499
22500         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22501         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22502         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22503         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22504
22505 2006-08-22  Bruno Haible  <bruno@clisp.org>
22506
22507         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22508         and lib_LTLIBRARIES like the other lib_* variables.
22509
22510 2006-08-22  Bruno Haible  <bruno@clisp.org>
22511
22512         * build-aux/x-to-1.in: New file, from GNU gettext.
22513
22514 2006-08-22  Bruno Haible  <bruno@clisp.org>
22515
22516         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22517         <utmpx.h> exists.
22518
22519 2006-08-22  Bruno Haible  <bruno@clisp.org>
22520
22521         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22522         <utmpx.h> exists.
22523
22524 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22525
22526         BeOS portability.
22527         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22528         exist.
22529         Problem reported by Bruno Haible.
22530
22531 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         Avoid the need for AC_LIBSOURCES in m4 macros.
22534         * modules/acl (EXTRA_DIST): Add acl.h.
22535         * modules/argmatch (Files): Add m4/argmatch.m4.
22536         (configure.ac): Add gl_ARGMATCH.
22537         (EXTRA_DIST): Renamed from lib_SOURCES, for
22538         consistency with the other modules.  Remove argmatch.c.
22539         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22540         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22541         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22542         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22543         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22544         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22545         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22546         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22547         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22548         * modules/closeout (EXTRA_DIST): Add closeout.h.
22549         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22550         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22551         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22552         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22553         dirname.h; remove basename.c and stripslash.c.
22554         * modules/exclude (EXTRA_DIST): Add exclude.h.
22555         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22556         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22557         * modules/file-type (EXTRA_DIST): Add file-type.h.
22558         * modules/filemode (EXTRA_DIST): Add filemode.h.
22559         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22560         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22561         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22562         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22563         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22564         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22565         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22566         * modules/getdate (EXTRA_DIST): Add getdate.c.
22567         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22568         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22569         * modules/getpass (EXTRA_DIST): Add getpass.h.
22570         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22571         * modules/group-member (EXTRA_DIST): Add group-member.h.
22572         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22573         * modules/hash (EXTRA_DIST): Add hash.h.
22574         * modules/human (EXTRA_DIST): Add human.h.
22575         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22576         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22577         * modules/lchown (EXTRA_DIST): Add lchown.h.
22578         * modules/long-options (EXTRA_DIST): Add long-options.h.
22579         * modules/lstat (EXTRA_DIST): Add lstat.h.
22580         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22581         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22582         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22583         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22584         * modules/memxor (EXTRA_DIST): Add memxor.h.
22585         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22586         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22587         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22588         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22589         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22590         * modules/physmem (EXTRA_DIST): Add physmem.h.
22591         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22592         * modules/posixver (EXTRA_DIST): Add posixver.h.
22593         * modules/quote (EXTRA_DIST): Add quote.h.
22594         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22595         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22596         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22597         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22598         regex_internal.h regexec.c.
22599         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22600         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22601         * modules/same (EXTRA_DIST): Add same.h.
22602         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22603         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22604         * modules/savedir (EXTRA_DIST): Add savedir.h.
22605         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22606         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22607         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22608         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22609         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22610         * modules/strdup (EXTRA_DIST): Add strdup.h.
22611         * modules/strftime (EXTRA_DIST): Add strftime.h.
22612         * modules/strndup (EXTRA_DIST): Add strndup.h.
22613         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22614         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22615         * modules/time_r (EXTRA_DIST): Add time_r.h.
22616         * modules/timespec (EXTRA_DIST): Add timespec.h.
22617         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22618         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22619         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22620         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22621         * modules/userspec (EXTRA_DIST): Add userspec.h.
22622         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22623         * modules/utimens (EXTRA_DIST): Add utimens.h.
22624         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22625         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22626         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22627         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22628         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22629         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22630         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22631         * modules/yesno (EXTRA_DIST): Add yesno.h.
22632
22633 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22634
22635         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22636
22637         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22638         * m4/dev-ino.m4, same-inode.m4: Remove.
22639
22640         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22641         * m4/acl.m4 (AC_FUNC_ACL):
22642         * m4/backupfile.m4 (gl_BACKUPFILE):
22643         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22644         * m4/canon-host.m4 (gl_CANON_HOST):
22645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22646         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22647         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22648         * m4/cloexec.m4 (gl_CLOEXEC):
22649         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22650         * m4/closeout.m4 (gl_CLOSEOUT):
22651         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22652         * m4/dirname.m4 (gl_DIRNAME):
22653         * m4/exclude.m4 (gl_EXCLUDE):
22654         * m4/exitfail.m4 (gl_EXITFAIL):
22655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22656         * m4/file-type.m4 (gl_FILE_TYPE):
22657         * m4/filemode.m4 (gl_FILEMODE):
22658         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22659         * m4/fpending.m4 (gl_FUNC_FPENDING):
22660         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22661         * m4/fts.m4 (gl_FUNC_FTS):
22662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22663         * m4/getdate.m4 (gl_GETDATE):
22664         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22665         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22666         * m4/getpass.m4 (gl_FUNC_GETPASS):
22667         * m4/gettime.m4 (gl_GETTIME):
22668         * m4/getugroups.m4 (gl_GETUGROUPS):
22669         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22670         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22671         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22672         * m4/hash.m4 (gl_HASH):
22673         * m4/idcache.m4 (gl_IDCACHE):
22674         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22675         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22676         * m4/long-options.m4 (gl_LONG_OPTIONS):
22677         * m4/lstat.m4 (gl_FUNC_LSTAT):
22678         * m4/md5.m4 (gl_MD5):
22679         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22680         * m4/memcoll.m4 (gl_MEMCOLL):
22681         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22683         * m4/memxor.m4 (gl_MEMXOR):
22684         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22686         * m4/modechange.m4 (gl_MODECHANGE):
22687         * m4/mountlist.m4 (gl_MOUNTLIST):
22688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22689         * m4/openat.m4 (gl_FUNC_OPENAT):
22690         * m4/pathmax.m4 (gl_PATHMAX):
22691         * m4/physmem.m4 (gl_PHYSMEM):
22692         * m4/posixtm.m4 (gl_POSIXTM):
22693         * m4/posixver.m4 (gl_POSIXVER):
22694         * m4/quote.m4 (gl_QUOTE):
22695         * m4/quotearg.m4 (gl_QUOTEARG):
22696         * m4/readtokens.m4 (gl_READTOKENS):
22697         * m4/readutmp.m4 (gl_READUTMP):
22698         * m4/regex.m4 (gl_REGEX):
22699         * m4/safe-read.m4 (gl_SAFE_READ):
22700         * m4/safe-write.m4 (gl_SAFE_WRITE):
22701         * m4/same.m4 (gl_SAME):
22702         * m4/save-cwd.m4 (gl_SAVE_CWD):
22703         * m4/savedir.m4 (gl_SAVEDIR):
22704         * m4/settime.m4 (gl_SETTIME):
22705         * m4/sha1.m4 (gl_SHA1):
22706         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22707         * m4/stat-macros.m4 (gl_STAT_MACROS):
22708         * m4/stat-time.m4 (gl_STAT_TIME):
22709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22710         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22711         * m4/strdup.m4 (gl_FUNC_STRDUP):
22712         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22713         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22714         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22715         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22716         * m4/time_r.m4 (gl_TIME_R):
22717         * m4/timespec.m4 (gl_TIMESPEC):
22718         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22719         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22720         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22721         * m4/userspec.m4 (gl_USERSPEC):
22722         * m4/utimecmp.m4 (gl_UTIMECMP):
22723         * m4/utimens.m4 (gl_UTIMENS):
22724         * m4/xalloc.m4 (gl_XALLOC):
22725         * m4/xgetcwd.m4 (gl_XGETCWD):
22726         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22727         * m4/xreadlink.m4 (gl_XREADLINK):
22728         * m4/xstrtod.m4 (gl_XSTRTOD):
22729         * m4/yesno.m4 (gl_YESNO):
22730         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22731         to get the necessary .h files and whatnot.
22732
22733 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22734             Bruno Haible  <bruno@clisp.org>
22735
22736         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22737         /bin/sh understanding of '!' conditional negation.
22738
22739 2006-08-21  Jim Meyering  <jim@meyering.net>
22740
22741         * modules/openat (Depends-on): Really alphabetize.
22742
22743         * modules/acl (Depends-on): Add error and quote.
22744
22745         * check-module (find_included_lib_files): Add at-func.c to the
22746         ok-to-include-more-than-once white list.
22747
22748         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22749
22750 2006-08-21  Bruno Haible  <bruno@clisp.org>
22751
22752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22753         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22754         Reported by Martin Lambers <marlam@marlam.de>.
22755
22756 2006-08-21  Bruno Haible  <bruno@clisp.org>
22757
22758         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22759         specify an installation location, don't emit a noinst_LIBRARIES or
22760         noinst_LTLIBRARIES assignment.
22761
22762 2006-08-21  Bruno Haible  <bruno@clisp.org>
22763
22764         BeOS portability.
22765         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22766         BeOS has mbrtowc() but no <wctype.h>.
22767
22768 2006-08-21  Bruno Haible  <bruno@clisp.org>
22769
22770         BeOS portability.
22771         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22772         exist.
22773
22774 2006-08-21  Bruno Haible  <bruno@clisp.org>
22775
22776         BeOS portability.
22777         * lib/mbchar.h: Include <wctype.h> only if it exists.
22778
22779 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22780
22781         Remove files that are no longer needed by their respective modules.
22782         * m4/obstack.m4: Remove.
22783         * m4/strerror_r.m4: Remove.
22784         * m4/uint32_t.m4: Remove.
22785         * m4/uintptr_t.m4: Remove.
22786         * m4/ullong_max.m4: Remove.
22787         * m4/xstrtoimax.m4: Remove.
22788         * m4/xstrtoumax.m4: Remove.
22789
22790         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22791         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22792         dependencies now capture this.
22793
22794         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22795         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22796         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22797         * m4/human.m4 (gl_HUMAN): Likewise.
22798         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22799         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22800
22801         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22802
22803         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22804         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22805         stdint.
22806         * m4/human.m4 (gl_HUMAN): Likewise.
22807         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22808         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22809         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22810         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22811         * m4/xstrtol (gl_XSTRTOL): Likewise.
22812
22813         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22814         AC_TYPE_LONG_LONG_INT.
22815         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22816         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22817         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22818         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22819
22820         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22821         on stdbool.
22822
22823         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22824         (gl_PREREQ_XSTRTOUL): Remove.
22825
22826         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22827
22828         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22829         mode.
22830
22831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22832
22833         Add and change modules to make it easier for coreutils to use
22834         gnulib-tool.
22835         * modules/backupfile (Files): Remove m4/d-ino.m4.
22836         (Depends-on): Add d-ino.
22837         * modules/cycle-check (Depends-on): Add stdint.
22838         (lib_SOURCES): Add cycle-check.h.
22839         * modules/d-ino: New module.
22840         * modules/d-type: New module.
22841         * modules/error (Files): Remove m4/strerror_r.m4.
22842         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22843         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22844         m4/inttypes_h.m4, m4/uintmax_t.m4.
22845         (Depends-on): Add stdint.
22846         (lib_SOURCES): Add fsusage.h.
22847         * modules/getcwd (Files): Remove d-ino.m4.
22848         (Depends-on): Add d-ino.
22849         * modules/getndelim2 (Depends-on): Add stdint.
22850         * modules/glob (Files): Remove m4/d-type.m4.
22851         (Depends-on): Add d-type.
22852         * modules/host-os: New module.
22853         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22854         m4/inttypes_h.m4, m4/uintmax_t.m4.
22855         * Depends-on: Add stdint.
22856         (lib_SOURCES): Add human.h.
22857         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22858         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22859         m4/uintmax_t.m4, m4/ulonglong.m4.
22860         (Depends-on): Add stdint.
22861         (EXTRA_DIST): Add inttostr.h.
22862         * modules/lchmod: New module.
22863         * modules/link-follow: New module.
22864         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22865         (Depends-on): Add lchmod.
22866         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22867         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22868         (Depends-on): Add stdint.
22869         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22870         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22871         (Depends-on): Add stdint.
22872         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22873         * modules/perl: New module.
22874         * modules/regex (Depends-on): Add stdint.
22875         * modules/rmdir-errno: New module.
22876         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22877         m4/intmax_t.m4.
22878         (Depends-on): Add stdint.
22879         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22880         m4/uintmax_t.m4.
22881         (Depends-on): Add stdint.
22882         * modules/unlink-busy: New module.
22883         * modules/utimecmp (Depends-on): Add stdint.
22884         * modules/uptime: New module.
22885         * modules/winsz-ioctl: New module.
22886         * modules/winsz-termios: New module.
22887         * modules/xnanosleep (Depends-on): Add nanosleep.
22888         * modules/ullong_max: Remove.
22889         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22890         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22891         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22892         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22893         (Depends-on): Add inttypes.
22894         (lib_SOURCES): Add xstrtol.h.
22895         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22896         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22897         * MODULES.html.sh: Move 'assert' into the assert section.
22898         Move 'dummy' into the linking section.
22899         Remove ullong_max.
22900         Add section for compatibility checks for POSIX:2001 functions,
22901         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22902         winsz-ioctl, and winsz-termios into it.
22903         Add lchmod.
22904         Add top-level Misc section and put host-os, perl, and uptime
22905         into it.
22906
22907 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22908
22909         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22910         now assume the stdint module.  Do not include inttypes.h.
22911         * lib/fsusage.h: Likewise.
22912         * lib/getndelim2.c: Likewise.
22913         * lib/human.h: Likewise.
22914         * lib/inttostr.h: Likewise.
22915         * lib/obstack.c: Likewise.
22916         * lib/regex_internal.h: Likewise.
22917         * lib/tempname.c: Likewise.
22918         * lib/utimecmp.c: Likewise.
22919         * lib/xstrtol.h: Likewise.
22920
22921         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22922
22923         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22924         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22925         * lib/xtime.h: Likewise.
22926
22927 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         * modules/openat (Files): Add lib/fchmodat.c.
22930         Fixes problem reported by Jay Youngman.
22931
22932 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22935         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22936
22937 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22938             Bruno Haible  <bruno@clisp.org>
22939
22940         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22941         and is a script that invokes bison. Tighten the code. Add comments.
22942
22943 2006-08-18  Jim Meyering  <jim@meyering.net>
22944
22945         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22946         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22947         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22948         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22949
22950 2006-08-18  Bruno Haible  <bruno@clisp.org>
22951
22952         * modules/bison-i18n: New file.
22953         * MODULES.html.sh (Internationalization functions): Add it.
22954
22955 2006-08-18  Bruno Haible  <bruno@clisp.org>
22956
22957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22958         sys/statvfs.h. When getmntinfo was found, check its declaration and
22959         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22960
22961 2006-08-18  Bruno Haible  <bruno@clisp.org>
22962
22963         * m4/bison-i18n.m4: New file, from bison.
22964
22965 2006-08-18  Bruno Haible  <bruno@clisp.org>
22966
22967         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22968         (ME_DUMMY): Treat "kernfs" as a dummy.
22969         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22970
22971 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22972
22973         Update from coreutils.
22974
22975         2006-08-15  Jim Meyering  <jim@meyering.net>
22976
22977         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22978
22979         2006-01-17  Jim Meyering  <jim@meyering.net>
22980
22981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22982
22983         2006-01-11  Jim Meyering  <jim@meyering.net>
22984
22985         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22986         Check for the lchmod function.
22987
22988 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22989
22990         Update from coreutils.
22991
22992         * lib/__fpending.h: Add copyright notice.
22993         * lib/fprintftime.h: Likewise.
22994         * lib/savedir.c: Use (C) in copyright notice.
22995         * lib/savedir.h: Likewise.
22996
22997         2006-08-15  Jim Meyering  <jim@meyering.net>
22998
22999         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23000         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23001         in support of the EXPECTED_ERRNO macro.
23002         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23003         definitions.  Instead, define the appropriate symbols and include
23004         "at-func.c".
23005         * lib/mkdirat.c (mkdirat): Likewise.
23006         * lib/fchmodat.c (fchmodat): Likewise.
23007         (ENOSYS): Remove definition.
23008         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23009         it.  Don't include "unistd--.h" -- it wasn't ever used.
23010
23011         2006-01-17  Jim Meyering  <jim@meyering.net>
23012
23013         Rewrite fts.c not to change the current working directory,
23014         by using openat, fstatat, fdopendir, etc..
23015
23016         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23017         (HAVE_OPENAT_SUPPORT): Define.
23018         [_LIBC] (fchdir): Don't undef or define; no longer used.
23019         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23020         Now, this `function' always succeeds, and consumes its file descriptor
23021         parameter -- so callers must not close such FDs.  Update callers.
23022         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23023         (diropen): Add parameter, SP.  Adjust all callers.
23024         Implement using diropen_fd, rather than open.
23025         (fts_open): Initialize new member, fts_cwd_fd.
23026         Remove fts_rft-setting code.
23027         (fts_close): Close fts_cwd_fd, if necessary.
23028         (__opendir2): Define in terms of opendir or opendirat,
23029         depending on whether the FST_NOCHDIR flag is set.
23030         (fts_build): Since fts_safe_changedir consumes its FD, and since
23031         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23032         and close the dup'd file descriptor upon failure.
23033         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23034         (fts_safe_changedir): Tweak semantics to reflect that this function
23035         now calls cwd_advance_fd and hence consumes its FD argument.
23036         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
23037         [struct FTS] (fts_rft): Remove now-unused member.
23038         [struct FTS] (fts_cycle.state): Improve comment.
23039
23040         * lib/openat.c (openat_needs_fchdir): New function.
23041         * lib/openat.h (openat_needs_fchdir): Declare it.
23042
23043 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23044
23045         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
23046         Problem and fix reported by Pádraig Brady in
23047         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
23048
23049 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
23052
23053 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23054
23055         * lib/memcoll.c (memcoll): Optimize for the common case where the
23056         arguments are bytewise equal.
23057
23058 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23059
23060         * doc/regexprops-generic.texi: Add a copyright notice.
23061
23062 2006-08-15  Bruno Haible  <bruno@clisp.org>
23063
23064         * modules/tmpdir (License): Change to LGPL.
23065
23066 2006-08-15  Bruno Haible  <bruno@clisp.org>
23067
23068         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23069         module.
23070
23071 2006-08-14  Simon Josefsson  <jas@extundo.com>
23072
23073         * config/srclist.txt: Add gnupload.
23074
23075 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         Change copyright notice from LGPL 2 to GPL 2, since that's the
23078         standard form used in the gnulib repository.
23079         * tests/test-lock.c: Likewise.
23080         * tests/test-stdint.c: Likewise.
23081         * tests/test-tls.c: Likewise.
23082
23083         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23084         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23085         Add copyright notice.
23086
23087         * check-module: Add copyright notice.  Output a copyright
23088         notice if "--version" is specified.
23089         * modules/COPYING: New file.
23090         * tests/test-getaddrinfo.c: Add copyright notice.
23091         * tests/test-verify.c: Likewise.
23092
23093 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23094
23095         Change copyright notice from LGPL 2 to GPL 2, since that's the
23096         standard form used in the gnulib repository.
23097         * lib/lock.c: LGPL -> GPL.
23098         * lib/lock.h: Likewise.
23099         * lib/strnlen1.c: Likewise.
23100         * lib/strnlen1.h: Likewise.
23101         * lib/tls.c: Likewise.
23102         * lib/tls.h: Likewise.
23103         * lib/tmpdir.c: Likewise.
23104
23105         * lib/TODO: Remove; this belongs only in coreutils.
23106
23107 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23108
23109         Add copyright notices to long-enough files that lack them, since
23110         otherwise the files aren't clearly free.  Use the same notice that
23111         getdate.texi already uses.
23112         * doc/alloca-opt.texi: Add copyright notice.
23113         * doc/alloca.texi: Likewise.
23114         * doc/ctime.texi: Likewise.
23115         * doc/functions.texi: Likewise.
23116         * doc/gcd.texi: Likewise.
23117         * doc/gnulib-tool.texi: Likewise.
23118         * doc/inet_ntoa.texi: Likewise.
23119         * doc/visibility.texi: Likewise.
23120
23121         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23122         * doc/quote.texi: Add copyright notice.
23123
23124         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23125         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23126         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23127         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23128         is now obsolete, and give a pointer to the Sun list.
23129         Add copyright notice.
23130
23131 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23132
23133         * config/srclistvars.sh: Add copyright notice.
23134
23135 2006-08-14  Eric Blake  <ebb9@byu.net>
23136
23137         Import the following change from libc:
23138
23139         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23140
23141         Upstream bug 2997.
23142         * lib/misc/error.c: Add space between program name and message if file
23143         name is missing.
23144
23145 2006-08-12  Karl Berry  <karl@gnu.org>
23146
23147         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23148         remove, these originate in gnulib now.
23149
23150 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23151
23152         * doc/Makefile (standards.info standards.html standards.dvi):
23153         Also depend on make-stds.texi.
23154
23155 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23156
23157         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23158         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23159
23160         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23161         in wchar_t.  Problem reported by Eric Blake.
23162
23163         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23164         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23165         Also, help the compiler to keep LEN in a register.
23166
23167 2006-08-11  Eric Blake  <ebb9@byu.net>
23168
23169         * users.txt: Sort.  Add tar.
23170
23171 2006-08-11  Bruno Haible  <bruno@clisp.org>
23172
23173         * users.txt: New file.
23174
23175 2006-08-11  Bruno Haible  <bruno@clisp.org>
23176
23177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23178         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23179
23180 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23181
23182         * modules/snprintf (Depends-on): Remove minmax.
23183         (Maintainer): Add self and Bruno.
23184
23185 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23188         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23189         (EOVERFLOW): Define if the system does not.
23190         Do not include "minmax.h"; it wasn't used.
23191         (snprintf): Don't assume size_t promotes to an unsigned type.
23192         Fix bug when generated string was too long for the buffer: the
23193         buffer's contents are supposed to be the initial prefix of the
23194         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23195         exceeds INT_MAX; do the check ourselves.
23196
23197         Import the following changes from libc:
23198
23199         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23200
23201         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23202         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23203         set wc to the byte which couldn't be converted.
23204         (re_string_reconstruct): Don't clear valid_raw_len before calling
23205         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23206         tip_context using re_string_context_at.
23207
23208         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23209
23210         * lib/posix/regex.h: g++ still cannot handled [restrict].
23211
23212         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23213
23214         * lib/posix/regex.h: Remove special handling for VMS.
23215
23216 2006-08-10  Jim Meyering  <jim@meyering.net>
23217
23218         * modules/same-inode: New module.
23219         * modules/dev-ino: New module.
23220         * modules/cycle-check: Depend on these modules, rather than simply
23221         including their .h files.
23222         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23223         required via m4/cycle-check.m4.
23224         * modules/same: Depend on new same-inode module, rather than
23225         including same-inode.h.
23226         * modules/chdir-safer: New file.
23227
23228         * modules/chown (Depends-on): Add stat-macros.
23229
23230 2006-08-10  Jim Meyering  <jim@meyering.net>
23231
23232         * m4/cycle-check.m4: New file.
23233         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23234         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23235
23236 2006-08-10  Eric Blake  <ebb9@byu.net>
23237
23238         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23239         in from original proposal.
23240
23241 2006-08-10  Eric Blake  <ebb9@byu.net>
23242         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23243
23244         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23245         namespace.
23246
23247 2006-08-10  Bruno Haible  <bruno@clisp.org>
23248
23249         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23250         as well.
23251
23252 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         Sync from coreutils.
23255
23256         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23257
23258         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23259         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23260
23261 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23262
23263         * modules/restrict: Remove; no longer needed now that we assume
23264         Autoconf 2.59 or later.
23265         * MODULES.html.sh: Remove 'restrict'.
23266         * modules/argp (Depends-on): Remove 'restrict'.
23267         * modules/base64 (Depends-on): Likewise.
23268         * modules/gc (Depends-on): Likewise.
23269         * modules/getaddrinfo (Depends-on): Likewise.
23270         * modules/glob (Depends-on): Likewise.
23271         * modules/inet_ntop (Depends-on): Likewise.
23272         * modules/inet_pton (Depends-on): Likewise.
23273         * modules/memxor (Depends-on): Likewise.
23274         * modules/regex (Depends-on): Likewise.
23275         * modules/strtok_r (Depends-on): Likewise.
23276         * modules/time_r (Depends-on): Likewise.
23277
23278 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23279
23280         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23281         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23282         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23283         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23284         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23285         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23286         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23287         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23288
23289         Merge from coreutils.
23290         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23291         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23292         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23293         * m4/time_r.m4 (gl_TIME_R): Likewise.
23294
23295 2006-08-09  Karl Berry  <karl@gnu.org>
23296
23297         * config/srclist.txt: no more gettext-tools, per Bruno.
23298
23299 2006-08-08  Eric Blake  <ebb9@byu.net>
23300
23301         * modules/verror: New module.
23302         * MODULES.html.sh: Document it.
23303
23304 2006-08-08  Eric Blake  <ebb9@byu.net>
23305
23306         * lib/verror.h, lib/verror.c: New files.
23307
23308 2006-08-08  Eric Blake  <ebb9@byu.net>
23309
23310         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23311         verror_at_line output complies with GNU Coding Standards even when
23312         file is NULL.
23313
23314 2006-08-07  Bruno Haible  <bruno@clisp.org>
23315
23316         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23317         versions of AIX.
23318         Reported by Ralf Wildenhues.
23319
23320 2006-08-07  Bruno Haible  <bruno@clisp.org>
23321
23322         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23323         in an AC_DEFUN. Needed so that the autoconf snippets can use
23324         AC_REQUIRE.
23325
23326 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23327
23328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23329         Initialize pkgdata_DATA.
23330         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23331         overriding it.
23332
23333 2006-08-06  Eric Blake  <ebb9@byu.net>
23334
23335         * lib/error.h: Fold in some upstream changes from glibc.
23336         * lib/error.c: Likewise.
23337
23338 2006-08-04  Bruno Haible  <bruno@clisp.org>
23339
23340         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23341         Make the mostlyclean-local rule depend on mostlyclean-generic.
23342         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23343
23344 2006-07-31  Bruno Haible  <bruno@clisp.org>
23345
23346         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23347         <stdlib.h>, <string.h>.
23348
23349 2006-07-30  Bruno Haible  <bruno@clisp.org>
23350
23351         * modules/readlink (License): Change to LGPL.
23352
23353 2006-07-30  Bruno Haible  <bruno@clisp.org>
23354
23355         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23356         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23357         set PKGDATADIR to point to it.
23358
23359 2006-07-30  Bruno Haible  <bruno@clisp.org>
23360
23361         * modules/csharpexec (configure.ac): Comment out macro invocation.
23362         * modules/javaexec (configure.ac): Likewise.
23363         * modules/javacomp-script (configure.ac): Likewise.
23364
23365         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23366
23367 2006-07-30  Bruno Haible  <bruno@clisp.org>
23368
23369         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23370         linked-list.
23371
23372 2006-07-30  Bruno Haible  <bruno@clisp.org>
23373
23374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23375
23376 2006-07-30  Bruno Haible  <bruno@clisp.org>
23377
23378         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23379         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23380         get removed.
23381
23382 2006-07-29  Bruno Haible  <bruno@clisp.org>
23383
23384         Make it possible for gnulib-tool to work with locally modified or
23385         augmented gnulib repositories.
23386         * gnulib-tool (func_usage): Document --local-dir option.
23387         (local_gnulib_dir): New variable.
23388         Handle --local-dir option.
23389         (func_lookup_file): New function.
23390         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23391         (func_get_description, func_get_filelist, func_get_description,
23392         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23393         func_get_automake_snippet, func_get_include_directive,
23394         func_get_license, func_get_maintainer): Use func_lookup_file.
23395         (func_import, func_create_testdir): Use func_lookup_file.
23396
23397 2006-07-29  Bruno Haible  <bruno@clisp.org>
23398
23399         * modules/setenv (Depends-on): Add unistd.
23400
23401 2006-07-29  Bruno Haible  <bruno@clisp.org>
23402
23403         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23404
23405 2006-07-29  Bruno Haible  <bruno@clisp.org>
23406
23407         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23408
23409 2006-07-29  Bruno Haible  <bruno@clisp.org>
23410
23411         * gnulib-tool (import, update): If there is no Makefile.am, look at
23412         aclocal.m4, instead of bailing out.
23413
23414 2006-07-29  Bruno Haible  <bruno@clisp.org>
23415
23416         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23417         Categorize the options by when they are useful.
23418
23419 2006-07-29  Bruno Haible  <bruno@clisp.org>
23420
23421         * gnulib-tool (func_usage): Document option --no-libtool.
23422         Handle option --no-libtool.
23423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23424         for changed semantics of $libtool variable.
23425         (func_import): Likewise. If libtool is not used, show this through
23426         an option --no-libtool.
23427         (func_create_testdir): Update.
23428
23429 2006-07-29  Bruno Haible  <bruno@clisp.org>
23430
23431         * gnulib-tool (func_import): Extend error message about missing
23432         --doc-base.
23433
23434 2006-07-29  Bruno Haible  <bruno@clisp.org>
23435
23436         * gnulib-tool (func_import): Don't create the $docbase directory if
23437         there is no file to store there.
23438
23439 2006-07-29  Bruno Haible  <bruno@clisp.org>
23440
23441         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23442         relevant, look for configure.ac there, not in the current directory.
23443         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23444
23445 2006-07-29  Bruno Haible  <bruno@clisp.org>
23446
23447         * gnulib-tool (SORT): New variable.
23448         (func_usage): Undocument --assume-autoconf option.
23449         Remove --assume-autoconf option handling.
23450         (autoconf_minversion): Determine from the contents of configure.ac.
23451         (func_import): Remove autoconf_minversion handling.
23452         Suggested by Eric Blake.
23453
23454 2006-07-29  Bruno Haible  <bruno@clisp.org>
23455
23456         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23457
23458 2006-07-29  Bruno Haible  <bruno@clisp.org>
23459
23460         * config/srclist.txt (*setenv.[ch]): Remove rules.
23461
23462 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23463
23464         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23465
23466 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23467
23468         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23469         arpa/inet.h.
23470
23471 2006-07-28  Simon Josefsson  <jas@extundo.com>
23472
23473         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23474         * modules/inet_pton (Depends-on): Likewise.
23475
23476 2006-07-28  Simon Josefsson  <jas@extundo.com>
23477
23478         * m4/netinet_in_h.m4: New file.
23479
23480 2006-07-28  Simon Josefsson  <jas@extundo.com>
23481
23482         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23483         #include's.
23484
23485 2006-07-28  Simon Josefsson  <jas@extundo.com>
23486
23487         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23488         #include's.
23489
23490 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23491
23492         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23493         setgid on directories only if they set these bits.
23494         * lib/modechange.h: Remove obsolete comment about masks.
23495
23496 2006-07-28  Eric Blake  <ebb9@byu.net>
23497
23498         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23499         macro expansion.
23500
23501 2006-07-28  Bruno Haible  <bruno@clisp.org>
23502
23503         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23504
23505 2006-07-28  Bruno Haible  <bruno@clisp.org>
23506
23507         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23508
23509 2006-07-28  Bruno Haible  <bruno@clisp.org>
23510
23511         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23512         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23513         Define fallbacks.
23514         Avoids link error on FreeBSD 4.x.
23515         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23516
23517         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23518         encoding.
23519         * lib/mbswidth.c (iswcntrl): Likewise.
23520
23521 2006-07-27  Bruno Haible  <bruno@clisp.org>
23522
23523         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23524         test.
23525
23526 2006-07-27  Bruno Haible  <bruno@clisp.org>
23527
23528         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23529         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23530         defined.
23531
23532 2006-07-26  Eric Blake  <ebb9@byu.net>
23533
23534         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23535
23536 2006-07-26  Eric Blake  <ebb9@byu.net>
23537
23538         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23539         like mingw that lack mkstemp.
23540         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23541         avoid compilation warning on mingw.
23542
23543 2006-07-26  Bruno Haible  <bruno@clisp.org>
23544
23545         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23546         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23547         INT_FAST*_MIN, INTPTR_MIN.
23548
23549 2006-07-25  Bruno Haible  <bruno@clisp.org>
23550
23551         * modules/version-etc (Depends-on): Add stdarg.
23552
23553 2006-07-25  Bruno Haible  <bruno@clisp.org>
23554
23555         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23556         complex commands.
23557
23558 2006-07-25  Bruno Haible  <bruno@clisp.org>
23559
23560         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23561         defined in <stdarg.h> or config.h.
23562
23563 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23564
23565         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23566         (gl_STDIO_SAFER): Remove.
23567
23568 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23569
23570         * MODULES.html.sh (File stream based Input/Output):
23571         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23572         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23573         * modules/fopen-safer, modules/tmpfile-safer: New files.
23574         * modules/stdio-safer: Remove.
23575
23576 2006-07-24  Bruno Haible  <bruno@clisp.org>
23577
23578         * modules/tmpdir: New file.
23579         * MODULES.html.sh (File system functions): Add it.
23580
23581 2006-07-24  Bruno Haible  <bruno@clisp.org>
23582
23583         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23584         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23585
23586 2006-07-24  Bruno Haible  <bruno@clisp.org>
23587
23588         * modules/clean-temp: New file.
23589
23590 2006-07-24  Bruno Haible  <bruno@clisp.org>
23591
23592         * m4/tmpdir.m4: New file, from GNU gettext.
23593
23594 2006-07-24  Bruno Haible  <bruno@clisp.org>
23595
23596         * lib/tmpdir.h: New file, from GNU gettext.
23597         * lib/tmpdir.c: New file, from GNU gettext.
23598
23599 2006-07-24  Bruno Haible  <bruno@clisp.org>
23600
23601         * lib/clean-temp.h: New file, from GNU gettext.
23602         * lib/clean-temp.c: New file, from GNU gettext.
23603
23604 2006-07-23  Eric Blake  <ebb9@byu.net>
23605
23606         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23607         (Depends-on): Add binary-io.
23608
23609 2006-07-23  Eric Blake  <ebb9@byu.net>
23610
23611         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23612
23613 2006-07-23  Eric Blake  <ebb9@byu.net>
23614
23615         * lib/tmpfile-safer.c: New file.
23616         * lib/stdio-safer.h (fopen_safer): Add prototype.
23617         * lib/stdio--.h (tmpfile): Make safer.
23618
23619 2006-07-23  Bruno Haible  <bruno@clisp.org>
23620
23621         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23622         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23623         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23624         gl_linked_remove_at): Use it.
23625
23626 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23627         and Simon Josefsson <jas@extundo.com>
23628
23629         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23630
23631         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23632
23633 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23634
23635         * modules/close-stream: New file.
23636         * modules/closeout (Description): Make it clear that it exits
23637         with a diagnostic on error.
23638         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23639         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23640
23641 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23642
23643         * m4/close-stream.m4: New file.
23644
23645 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23646
23647         * lib/close-stream.c, lib/close-stream.h: New files.
23648
23649 2006-07-22  Bruno Haible  <bruno@clisp.org>
23650
23651         Merge from GNU gettext 0.15.
23652
23653         2006-05-01  Bruno Haible  <bruno@clisp.org>
23654
23655                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23656
23657         2006-07-22  Bruno Haible  <bruno@clisp.org>
23658
23659                 * modules/javaversion: New file.
23660                 * MODULES.html.sh (Java): Add javaversion.
23661
23662         2006-03-12  Bruno Haible  <bruno@clisp.org>
23663
23664                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23665
23666         2005-12-04  Bruno Haible  <bruno@clisp.org>
23667
23668                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23669                 (untested).
23670
23671         2006-06-21  Bruno Haible  <bruno@clisp.org>
23672
23673                 Avoid warnings from recent versions of mcs.
23674                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23675                 -o, -L, -r any more. Use options documented since mcs-1.0
23676                 instead. Similarly for -g.
23677
23678         2005-12-04  Bruno Haible  <bruno@clisp.org>
23679
23680                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23681                 .resources, not .resource.
23682
23683         2005-07-09  Bruno Haible  <bruno@clisp.org>
23684
23685                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23686                 add a .dll suffix.
23687                 Reported by Mark Junker <mjscod@gmx.de>.
23688
23689         2006-07-22  Bruno Haible  <bruno@clisp.org>
23690
23691                 * modules/gettext: Upgrade to gettext-0.15.
23692                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23693                 m4/visibility.m4.
23694                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23695
23696 2006-07-22  Bruno Haible  <bruno@clisp.org>
23697
23698         Merge from GNU gettext 0.15.
23699
23700         2006-03-25  Bruno Haible  <bruno@clisp.org>
23701
23702                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23703
23704         2006-07-21  Bruno Haible  <bruno@clisp.org>
23705
23706                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23707                 "1.1".
23708
23709         2006-05-09  Bruno Haible  <bruno@clisp.org>
23710
23711                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23712                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23713                 for the conftestver execution.
23714
23715         2006-05-01  Bruno Haible  <bruno@clisp.org>
23716
23717                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23718                 optional target-version argument. Verify that the compiler
23719                 groks source of the specified source-version, or add -source
23720                 option as necessary. Verify that the compiler produces
23721                 bytecode in the specified target-version, or add -target and
23722                 -source options as necessary. Make the result of the test
23723                 available as variable CONF_JAVAC. Also log error output in
23724                 config.log.
23725
23726         2006-03-11  Bruno Haible  <bruno@clisp.org>
23727
23728                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23729
23730         2006-05-09  Bruno Haible  <bruno@clisp.org>
23731
23732                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23733                 CLASSPATH_SEPARATOR to a semicolon.
23734
23735         2006-03-12  Bruno Haible  <bruno@clisp.org>
23736
23737                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23738                 available as variable CONF_JAVA, for subsequent autoconf
23739                 tests. Also log error output in config.log.
23740
23741         2006-07-19  Bruno Haible  <bruno@clisp.org>
23742
23743                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23744                 that getline works on glibc2 systems. Needed to avoid trouble
23745                 in relocatable.c.
23746                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23747
23748         2005-12-04  Bruno Haible  <bruno@clisp.org>
23749
23750                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23751                 launcher (untested).
23752
23753         2005-12-04  Bruno Haible  <bruno@clisp.org>
23754
23755                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23756
23757         2006-07-22  Bruno Haible  <bruno@clisp.org>
23758
23759                 * gettext.m4: Update from GNU gettext-0.15.
23760                 * nls.m4: Likewise.
23761                 * po.m4: Likewise.
23762                 * inttypes-pri.m4: Likewise.
23763                 * inttypes-h.m4: Renamed from inttypes.m4.
23764                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23765
23766 2006-07-22  Bruno Haible  <bruno@clisp.org>
23767
23768         Merge from GNU gettext 0.15.
23769
23770         2005-07-05  Bruno Haible  <bruno@clisp.org>
23771
23772                 * printf-args.c (printf_fetchargs): Work around broken
23773                 definition of wint_t on mingw.
23774
23775         2005-02-12  Bruno Haible  <bruno@clisp.org>
23776
23777                 * xallocsa.h: Add extern "C" for C++.
23778
23779         2006-05-17  Bruno Haible  <bruno@clisp.org>
23780
23781                 Cygwin portability.
23782                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23783
23784         2006-04-30  Bruno Haible  <bruno@clisp.org>
23785
23786                 * progreloc.c: Include <mach-o/dyld.h> if available.
23787                 (find_executable): Use _NSGetExecutablePath when possible.
23788
23789         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23790
23791                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23792                 function.
23793
23794         2005-12-29  Bruno Haible  <bruno@clisp.org>
23795
23796                 * progreloc.c (set_program_name_and_installdir): Fix
23797                 compilation error.
23798
23799         2005-12-04  Bruno Haible  <bruno@clisp.org>
23800
23801                 Cygwin portability.
23802                 * progreloc.c: Include <windows.h> also on Cygwin.
23803                 (find_executable): Add support for Cygwin.
23804                 (set_program_name_and_installdir): Handle also platforms with
23805                 nonempty EXEEXT.
23806
23807         2006-07-11  Bruno Haible  <bruno@clisp.org>
23808
23809                 * javacomp.c: Fix a comment.
23810                 Reported by Jim Meyering.
23811
23812         2006-04-30  Bruno Haible  <bruno@clisp.org>
23813
23814                 * javacomp.h (compile_java_class): Add source_version,
23815                 target_version arguments.
23816                 * javacomp.c: Rewritten to choose only a compiler that
23817                 respects the specified source_version and target_version.
23818
23819         2006-06-27  Bruno Haible  <bruno@clisp.org>
23820
23821                 Assume correct S_ISDIR macro.
23822                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23823
23824         2006-07-22  Bruno Haible  <bruno@clisp.org>
23825
23826                 * javaversion.h: New file, from GNU gettext.
23827                 * javaversion.c: New file, from GNU gettext.
23828                 * javaversion.java: New file, from GNU gettext.
23829                 * javaversion.class: New file, from GNU gettext.
23830
23831         2006-05-17  Bruno Haible  <bruno@clisp.org>
23832
23833                 Cygwin portability.
23834                 * javaexec.c (execute_java_class): Test for jview program
23835                 also on Cygwin.
23836
23837         2006-04-09  Bruno Haible  <bruno@clisp.org>
23838
23839                 * fatal-signal.c: Don't include string.h.
23840                 (at_fatal_signal): Use a copying loop instead of memcpy.
23841
23842         2005-12-04  Bruno Haible  <bruno@clisp.org>
23843
23844                 * csharpexec.c: Add support for 'clix' launcher (untested).
23845                 (execute_csharp_using_sscli): New function.
23846                 (execute_csharp_program): Call it.
23847
23848         2006-06-21  Bruno Haible  <bruno@clisp.org>
23849
23850                 Avoid warnings from recent versions of mcs.
23851                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23852                 -o, -L, -r any more. Use options documented since mcs-1.0
23853                 instead. Similarly for -g.
23854
23855         2005-07-09  Bruno Haible  <bruno@clisp.org>
23856
23857                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23858                 add a .dll suffix.
23859                 Reported by Mark Junker <mjscod@gmx.de>.
23860
23861         2006-06-17  Bruno Haible  <bruno@clisp.org>
23862
23863                 * config.charset: Update for NetBSD 3.0.
23864
23865         2006-05-17  Bruno Haible  <bruno@clisp.org>
23866
23867                 Cygwin portability.
23868                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23869
23870         2006-05-16  Bruno Haible  <bruno@clisp.org>
23871
23872                 * localcharset.c [CYGWIN]: Include <windows.h>.
23873                 (get_charset_aliases): For Cygwin, return the same CPxxx
23874                 aliases list as under WIN32.
23875                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23876                 the environment variables. Fall back to GetACP().
23877
23878         2006-04-05  Bruno Haible  <bruno@clisp.org>
23879
23880                 * config.charset: Update Juan Manuel Guerrero's address.
23881
23882         2005-02-12  Bruno Haible  <bruno@clisp.org>
23883
23884                 * allocsa.h: Add extern "C" for C++.
23885
23886         2005-02-10  Bruno Haible  <bruno@clisp.org>
23887
23888                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23889                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23890
23891         2006-07-22  Bruno Haible  <bruno@clisp.org>
23892
23893                 * gettext.h: Update to GNU gettext-0.15.
23894
23895 2006-07-22  Bruno Haible  <bruno@clisp.org>
23896
23897         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23898         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23899         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23900
23901 2006-07-21  Eric Blake  <ebb9@byu.net>
23902
23903         * modules/stdlib-safer: New file.
23904         * MODULES.html.sh (File stream based Input/Output): Add
23905         stdlib-safer.
23906
23907 2006-07-21  Eric Blake  <ebb9@byu.net>
23908
23909         * lib/stdlib-safer.h: New file from coreutils, required by
23910         stdlib--.h.
23911
23912 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23915
23916 2006-07-20  Bruno Haible  <bruno@clisp.org>
23917
23918         * gnulib-tool: Recognize new option --assume-autoconf.
23919         (autoconf_minversion): New variable.
23920         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23921
23922 2006-07-20  Bruno Haible  <bruno@clisp.org>
23923
23924         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23925
23926 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23927
23928         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23929         Reindent and repaginate.
23930
23931 2006-07-19  Derek Price  <derek@ximbiot.com>
23932
23933         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23934         Correct grammar.
23935
23936 2006-07-17  Bruno Haible  <bruno@clisp.org>
23937
23938         * modules/list: New file.
23939         * modules/array-list: New file.
23940         * modules/carray-list, modules/carray-list-tests: New files.
23941         * modules/linked-list, modules/linked-list-tests: New files.
23942         * modules/avltree-list, modules/avltree-list-tests: New files.
23943         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23944         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23945         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23946         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23947         * modules/oset: New file.
23948         * modules/array-oset: New file.
23949         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23950         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23951         * tests/test-carray_list.c: New file.
23952         * tests/test-linked_list.c: New file.
23953         * tests/test-avltree_list.c: New file.
23954         * tests/test-rbtree_list.c: New file.
23955         * tests/test-linkedhash_list.c: New file.
23956         * tests/test-avltreehash_list.c: New file.
23957         * tests/test-rbtreehash_list.c: New file.
23958         * tests/test-avltree_oset.c: New file.
23959         * tests/test-rbtree_oset.c: New file.
23960         * MODULES.html.sh (Container data structures): New section.
23961
23962 2006-07-17  Bruno Haible  <bruno@clisp.org>
23963
23964         * m4/gl_list.m4: New file.
23965
23966 2006-07-17  Bruno Haible  <bruno@clisp.org>
23967
23968         * lib/gl_list.h: New file.
23969         * lib/gl_list.c: New file.
23970         * lib/gl_array_list.h: New file.
23971         * lib/gl_array_list.c: New file.
23972         * lib/gl_carray_list.h: New file.
23973         * lib/gl_carray_list.c: New file.
23974         * lib/gl_linked_list.h: New file.
23975         * lib/gl_linked_list.c: New file.
23976         * lib/gl_anylinked_list1.h: New file.
23977         * lib/gl_anylinked_list2.h: New file.
23978         * lib/gl_avltree_list.h: New file.
23979         * lib/gl_avltree_list.c: New file.
23980         * lib/gl_anyavltree_list1.h: New file.
23981         * lib/gl_anyavltree_list2.h: New file.
23982         * lib/gl_rbtree_list.h: New file.
23983         * lib/gl_rbtree_list.c: New file.
23984         * lib/gl_anyrbtree_list1.h: New file.
23985         * lib/gl_anyrbtree_list2.h: New file.
23986         * lib/gl_anytree_list1.h: New file.
23987         * lib/gl_anytree_list2.h: New file.
23988         * lib/gl_linkedhash_list.h: New file.
23989         * lib/gl_linkedhash_list.c: New file.
23990         * lib/gl_anyhash_list1.h: New file.
23991         * lib/gl_anyhash_list2.h: New file.
23992         * lib/gl_avltreehash_list.h: New file.
23993         * lib/gl_avltreehash_list.c: New file.
23994         * lib/gl_rbtreehash_list.h: New file.
23995         * lib/gl_rbtreehash_list.c: New file.
23996         * lib/gl_anytreehash_list1.h: New file.
23997         * lib/gl_anytreehash_list2.h: New file.
23998
23999         * lib/gl_oset.h: New file.
24000         * lib/gl_oset.c: New file.
24001         * lib/gl_array_oset.h: New file.
24002         * lib/gl_array_oset.c: New file.
24003         * lib/gl_avltree_oset.h: New file.
24004         * lib/gl_avltree_oset.c: New file.
24005         * lib/gl_rbtree_oset.h: New file.
24006         * lib/gl_rbtree_oset.c: New file.
24007         * lib/gl_anytree_oset.h: New file.
24008
24009 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24010
24011         * m4/mkancesdirs.m4: New file.
24012         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24013         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24014         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24015         it.
24016
24017 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24018
24019         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24020         * lib/mkancesdirs.h: New files.
24021         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24022         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24023         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24024         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24025         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24026         callers changed.  Revamp internals significantly, by not
24027         attempting to create directories that are temporarily more
24028         permissive than the final results.  Do not attempt to use
24029         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24030         This removes some race conditions, fixes some bugs, and simplifies
24031         things.  Use new dirchownmod function to do owner and mode changes.
24032         * lib/mkdir-p.h: Likewise.
24033         * lib/modechange.c (octal_to_mode): New function.
24034         (struct mode_change): New member mentioned.
24035         (make_node_op_equals): New arg mentioned.  All callers changed.
24036         (mode_compile): Keep track of which mode bits the user has explicitly
24037         mentioned.
24038         (mode_adjust): New arg DIR, so that we implement the X op correctly.
24039         New arg PMODE_BITS, to keep track of which mode bits the user
24040         mentioned; it treats S_ISUID and S_ISGID speciall.
24041         All callers changed.
24042         * lib/modechange.h: Likewise.
24043
24044 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24045
24046         * MODULES.html.sh: Add mkancestors.
24047         * modules/mkancesdirs: New module.
24048         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
24049         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
24050         The chdir-safer and afs files are now orphans; I'll remove them
24051         unless someone speaks up.
24052         Add lib/dirchownmod.c, lib/dirchownmod.h.
24053         (Depends-on): Remove alloca, chown, save-cwd, dirname.
24054         Add lchown, mkancesdirs.
24055         (Maintainer): Add self.
24056
24057 2006-07-15  Karl Berry  <karl@gnu.org>
24058
24059         * gnulib-tool: help message wording/arrangement.
24060
24061 2006-07-14  Simon Josefsson  <jas@extundo.com>
24062
24063         * doc/gnulib.texi (Libtool and Windows): New section.
24064
24065 2006-07-12  Simon Josefsson  <jas@extundo.com>
24066
24067         * modules/gendocs (License): Fix license, approved by Karl.
24068
24069 2006-07-12  Eric Blake  <ebb9@byu.net>
24070
24071         * MODULES.html.sh: Add gendocs.
24072
24073 2006-07-11  Eric Blake  <ebb9@byu.net>
24074
24075         * modules/fdl: New module, to install doc/fdl.texi.
24076         * MODULES.html.sh: Add new section for documentation modules.
24077         * gnulib-tool: Avoid space-tab.
24078         (--doc-base): New option, to manage files from doc.
24079
24080 2006-07-11  Eric Blake  <ebb9@byu.net>
24081
24082         * m4/absolute-header.m4: Fix comments to match recent change.
24083
24084 2006-07-11  Eric Blake  <ebb9@byu.net>
24085
24086         * gnulib-tool: List --doc-base before --tests-base.
24087
24088 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24089
24090         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24091
24092 2006-07-11  Bruno Haible  <bruno@clisp.org>
24093
24094         * README: Mention where to put documentation.
24095
24096 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24097
24098         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24099
24100 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24101
24102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24103         to stdint.m4.
24104
24105 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24106
24107         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24108         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24109         "no/such/file/stdint.h" when there is no such file, so that
24110         the resulting C code can be parsed by dodgy compilers.
24111         Problems reported by Bob Proulx.
24112
24113 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24114
24115         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24116         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24117         macros into the GNU _D_EXACT_NAMLEN.
24118         * lib/savedir.c:  Likewise.
24119         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24120
24121 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24122         and Paul Eggert  <eggert@cs.ucla.edu>
24123
24124         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24125         * m4/savedir.m4:
24126         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24127         macros into the GNU _D_EXACT_NAMLEN.
24128
24129 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24130
24131         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24132         around the absolute name, to work around a problem with the HP-UX
24133         11.23 native C compiler, reported by Bob Proulx.
24134
24135 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24136
24137         * doc/maintain.texi, make-stds.texi: Sync from
24138         <http://savannah.gnu.org/projects/gnustandards>.
24139
24140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24141
24142         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24143
24144 2006-07-09  Jim Meyering  <jim@meyering.net>
24145
24146         * m4/glob.m4: Remove a doubled word in a comment.
24147
24148 2006-07-09  Jim Meyering  <jim@meyering.net>
24149
24150         * lib/argp-pv.c: Remove a doubled word in a comment.
24151         * lib/check-version.c (check_version): Likewise.
24152         * lib/javacomp.c (compile_java_class): Likewise.
24153
24154 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24155
24156         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24157         for the benefit of people using Autoconf 2.60.  If you want to
24158         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24159         (or m4/onceonly.m4, if pre-2.57) manually.
24160
24161 2006-07-08  Jim Meyering  <jim@meyering.net>
24162
24163         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24164         comment.
24165         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24166         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24167         comment.
24168
24169 2006-07-08  Jim Meyering  <jim@meyering.net>
24170
24171         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24172
24173 2006-07-07  Simon Josefsson  <jas@extundo.com>
24174
24175         * tests/test-crc.c: Change expected crc value, the test vector
24176         were probably computed using the old broken crc.c?
24177
24178 2006-07-06  Simon Josefsson  <jas@extundo.com>
24179
24180         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24181         now the canonical place for the M4 file).
24182
24183         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24184         from the sys_socket dependency now.
24185
24186         * modules/inet_pton (Files): Ditto.
24187
24188         * modules/inet_ntop (Files): Ditto.
24189
24190 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24191
24192         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24193         not gl_PREREQ_GETUSERSHELL.
24194
24195 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24196
24197         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24198         with only one argument, for Autoconf 2.60.
24199         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24200         expand to nothing, so add a shell command to avoid syntax error.
24201         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24202
24203 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24204
24205         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24206
24207 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24210         no longer needed.  Check for isblank decl.
24211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24212         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24213         of existence.
24214
24215 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24216
24217         * lib/getloadavg.c: Use __VMS, not VMS.
24218         * lib/getopt.c: Likewise.
24219         * lib/getpagesize.h: Likewise.
24220         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24221         and probably does not work.
24222
24223 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24224
24225         * lib/.cppi-disable: Add wcwidth.
24226         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24227         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24228         (ISGRAPH): Remove.  All uses changed to isgraph.
24229         (FOLD) [!defined _LIBC]: Remove special case.
24230         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24231         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24232         HAVE_ISBLANK.
24233         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24234         case.
24235
24236 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24237
24238         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24239         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24240         brackets.  Other minor changes to suppress some compiler
24241         warnings.
24242
24243 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24244         and Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24247         of invoking obsolescent AC_HEADER_DIRENT macro.
24248         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24249         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24252         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24253         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24254         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24255         * m4/readdir.m4: Remove; no longer needed.
24256
24257 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24258         and Paul Eggert  <eggert@cs.ucla.edu>
24259
24260         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24261         Don't worry about this obsolete case any more.
24262         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24263         directories.
24264         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24265         worry about this obsolete case any more.
24266         * lib/fts.c: Likewise.
24267         * lib/getcwd.c: Likewise.
24268         * lib/glob.h: Likewise.
24269         * lib/savedir.c: Likewise.
24270
24271 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24272
24273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24274         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24275         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24276         needed.
24277         All uses removed.
24278         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24279         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24280         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24281         needed.
24282         * m4/getdate.m4 (gl_GETDATE): Likewise.
24283         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24284         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24285         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24286         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24287         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24288         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24289         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24290         needed.
24291
24292 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24293
24294         * lib/memcasecmp.c: Include <limits.h>.
24295         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24296         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24297         Don't assume isdigit succeeds only on '0' through '9'.
24298
24299 2006-07-05  Eric Blake  <ebb9@byu.net>
24300
24301         * modules/getaddrinfo (Depends-on): Add snprintf.
24302
24303 2006-07-05  Eric Blake  <ebb9@byu.net>
24304
24305         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24306         to avoid 'header present but could not be compiled' on cygwin.
24307
24308 2006-07-05  Eric Blake  <ebb9@byu.net>
24309
24310         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24311         missing from netdb.h.
24312         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24313
24314 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24315
24316         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24317         no longer needed.
24318         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24319         * m4/getdate.m4 (gl_GETDATE): Likewise.
24320         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24321         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24322         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24323         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24324         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24325
24326 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24327
24328         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24329         All uses of is_space replaced by isspace.
24330         * lib/exit.h: Don't talk about STDC_HEADERS.
24331         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24332         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24333         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24334         replaced by isprint etc.
24335         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24336         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24337         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24338         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24339         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24340         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24341
24342 2006-07-05  Bruno Haible  <bruno@clisp.org>
24343
24344         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24345         the function exists, before testing against AIX.
24346         Reported by Martin Lambers <marlam@marlam.de>.
24347
24348 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24351         From Mark D. Baushke.
24352
24353 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24354
24355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24356         to the absolute name, not just one, to bypass Sun C 5.8's
24357         "warning: #include of /usr/include/... may be non-portable".
24358
24359 2006-07-04  Eric Blake  <ebb9@byu.net>
24360
24361         * modules/dirname-tests: New test module.
24362         * tests/test-dirname.c: New file, replacing dirname.c
24363         TEST_DIRNAME section that was recently deleted.
24364
24365 2006-07-04  Bruno Haible  <bruno@clisp.org>
24366
24367         Assume ANSI C header files and <ctype.h> functions.
24368         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24369         (mbsnwidth): Use isprint, iscntrl instead.
24370
24371 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24372
24373         Merge from coreutils.
24374         * MODULES.html.sh: Add xstrtold.
24375         * modules/xstrtold: New file.
24376         * modules/cycle-check (Files): Add lib/same-inode.h.
24377         * modules/dirname (Files): Add m4/double-slash-root.m4.
24378         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24379         * modules/mkdir-p (Files): Add lib/same-inode.h.
24380         * modules/same (Files): Add lib/same-inode.h.
24381
24382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24383
24384         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24385         This is to keep the terminology clean; POSIX talks about
24386         "absolute pathnames", not "full pathnames", but the GNU
24387         Coding Standards say to use "path" for something else;
24388         so use "absolute" to keep both sides happy.
24389         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24390         Set gl_absolute_header, not gl_full_header_path.
24391         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24392         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24393         All uses changed.
24394
24395         Merge from coreutils.
24396
24397         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24398
24399         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24400         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24401         want to require the building of c-strtod.o.
24402         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24403         needs -lm directly.
24404         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24405
24406         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24407
24408         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24409         --as-needed option if available.  Problem reported by Albert Chin in
24410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24411         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24412         cc merely issues a bunch of annoying warnings for --as-needed
24413         (this problem was reported by Bob Proulx).  Also, try linking with
24414         -lm to detect a bug in binutils 2.16 (this problem was reported
24415         by Ralf Wildenhues).
24416
24417         2006-06-18  Jim Meyering  <jim@meyering.net>
24418
24419         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24420         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24421         macro.
24422         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24423         also check for glibc-2.4's abort-inducing bug.
24424
24425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24426         Low-probability clean-up should be to use rmdir to get rid of
24427         the just-created directory, not unlink.
24428
24429         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24430         configure fail, and request a bug report to inform us about it.
24431         Add a comment that, barring reports to the contrary, in 2007 we'll
24432         assume ftruncate is universally available.
24433
24434         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24435
24436         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24437
24438         2006-03-12  Jim Meyering  <jim@meyering.net>
24439
24440         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24441         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24442         * m4/same.m4 (gl_SAME): Likewise.
24443         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24444
24445         2006-03-11  Eric Blake  <ebb9@byu.net>
24446
24447         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24448         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24449         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24450         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24451
24452 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24453
24454         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24455         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24456         reported by Mark D. Baushke, one in
24457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24458
24459         Merge from coreutils.
24460
24461         * lib/.cppi-disable: Add stdint_.h.
24462         * lib/.cvsignore: Add stdint.h.
24463
24464         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24465
24466         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24467         both double and long double versions.
24468         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24469         * lib/xstrtold.c: New file.
24470         * lib/xstrtod.h (xstrtold): New decl.
24471
24472         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         * lib/filemode.c (setst): Remove.
24475         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24476         (arguably) clearer, and the generated code is a bit smaller on my
24477         Debian GNU/Linux stable x86 host.
24478
24479         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24480
24481         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24482         Assume that filemode.h includes sys/types.h and sys/stat.h.
24483         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24484         (ftypelet): Reorder to put common cases first, for efficiency.
24485         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24486         to do 'M'.
24487         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24488         of 10, for compatibility with FreeBSD.  All callers changed.
24489         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24490         types that can't be deduced solely from st_mode.  First arg is now a
24491         const pointer.
24492         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24493         (strmode): Renamed from mode_string.
24494         (filemodestring): New decl.
24495         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24496         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24497         needed.
24498         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24499
24500         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24503         fsusage.h now does that.  Include fsusage.h first, to test interface.
24504         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24505         at most one method (the old code could have generated decls that
24506         didn't conform to C89, not that this was ever exercised).
24507         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24508
24509         2006-03-19  Jim Meyering  <jim@meyering.net>
24510
24511         Work even in a chroot where d_ino values for entries in "/"
24512         don't match the stat.st_ino values for the same names.
24513         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24514         number, iterate through all entries again, using lstat instead.
24515         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24516         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24517
24518         * lib/getcwd.c (__getcwd): Clarify a comment.
24519         Use memcpy in place of a call to strcpy.
24520
24521         2006-03-12  Jim Meyering  <jim@meyering.net>
24522
24523         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24524         matches that of the current directory (which we're about to chdir ".."
24525         out of), then save the dev-ino of the parent, instead.
24526
24527         * lib/same-inode.h (SAME_INODE): New file/macro.
24528         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24529         Include "same-inode.h", instead.
24530         * lib/same.c: Likewise.
24531         * lib/cycle-check.h: Include "same-inode.h".
24532         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24533         * lib/cycle-check.c (SAME_INODE): Remove definition.
24534         * lib/root-dev-ino.h: Include "same-inode.h".
24535
24536         2006-03-11  Eric Blake  <ebb9@byu.net>
24537
24538         * lib/same.c (same_name): s/base_name/last_component/
24539         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24540         * lib/filenamecat.c (file_name_concat): Likewise.
24541
24542         2006-03-11  Eric Blake  <ebb9@byu.net>,
24543                     Paul Eggert  <eggert@cs.ucla.edu>
24544
24545         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24546         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24547         drive prefix.
24548         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24549         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24550         (last_component): New method.
24551         * lib/dirname.c (dir_len): Determine when drive letters need a
24552         subsequent slash.  Preserve // when it is special.
24553         (dir_name): Don't append dot when drive letter is absolute.
24554         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24555         * lib/basename.c (base_name): New semantics - malloc the result.
24556         Preserve // when it is special.  Preserve relative files that look
24557         like drive letters.
24558         (base_len): Preserve // when it is special.
24559         (last_component): New method, similar to old base_name semantics.
24560         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24561         base_name.  Strip redundant slashes from ///.
24562
24563 2006-07-03  Jim Meyering  <jim@meyering.net>
24564
24565         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24566         macro is used before the first cycle_check call.
24567
24568 2006-07-03  Eric Blake  <ebb9@byu.net>
24569
24570         * modules/dirname (Depends-on): Add xstrndup.
24571
24572 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24573
24574         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24575         test cases, so that config.log is a bit easier to follow.
24576
24577 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24580         both are 64 bits, since this seems to be the tradition, and this
24581         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24582         we ever run into a host that prefers long long to long in this
24583         case, we'll need another configure-time test.  Problem reported by
24584         Jim Meyering.
24585
24586 2006-07-02  Eric Blake  <ebb9@byu.net>
24587
24588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24589
24590 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         * modules/inttypes (Depends-on): No longer depends on stdint.
24593         * modules/stdint (Description): Say more about assumptions.
24594         Say that the fast types might differ.  Say macros are used.
24595         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24596         (Makefile.am): Revise list of substituted symbols to match
24597         new stdint.m4.
24598         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24599         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24600         * tests/test-stdint.c (verify_same_types)
24601         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24602         the code conforms to C99/C89.
24603         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24604         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24605
24606 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24607
24608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24609         but fix a bug, by requiring at least 64 bits.
24610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24611         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24612         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24613         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24614
24615         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24616         changes.  Make 2.59 a prerequisite.  Check and substitute for
24617         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24618         inttypes.h.  Do not use special include files; just use the
24619         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24620         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24621         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24622         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24623         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24624         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24625         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24626         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24627         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24628         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24629         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24630         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24631         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24632         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24633         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24634         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24635         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24636         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24637         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24638         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24639         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24640         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24641         not check for things that C99 does not require, e.g., int8_t.  If
24642         a test isn't needed unless <stdint.h> isn't working, and is
24643         unlikely to be needed for any other reason, then don't do it
24644         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24645         size_t, since we assume C89 freestanding at least.  Do not check
24646         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24647         the right thing even if the types are not defined.  Instead use:
24648         (gl_STDINT_TYPE_PROPERTIES): New macro.
24649         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24650         testing whether <sys/types.h> clashes, as Autoconf does this for
24651         us now.  All uses removed.
24652         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24653         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24654         (gl_CHECK_TYPE_SAME):
24655         Remove; no longer needed.
24656         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24657         exists, since we'll return 0 anyway in that case.
24658         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24659
24660 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24661
24662         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24663         possible collision with system files.
24664         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24665         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24666         WCHAR_MIN and WCHAR_MAX in this case.
24667         (<stddef.h>): Do not include; no longer needed.
24668         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24669         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24670         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24671         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24672         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24673         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24674         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24675         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24676         !defined(__c99))]: Include in this case too, since it's harmless
24677         now.
24678         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24679         dangerous to do so.
24680         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24681         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24682         (_STDINT_MIN, _STDINT_MAX): New macros.
24683         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24684         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24685         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24686         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24687         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24688         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24689         macros, not typedefs; this simplifies things quite a bit.
24690         Use long int for all types narrower than int64_t.
24691         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24692         Define in terms of long long int or int64_t or long int,
24693         not int64_t or int32_t.  This saves some compile-time testing.
24694         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24695         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24696         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24697         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24698         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24699         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24700         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24701         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24702         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24703         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24704         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24705         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24706         undef any previous version and define our own version, for
24707         simplicity and consistency with the new macros for types.
24708         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24709         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24710         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24711         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24712         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24713         @WINT_T_SUFFIX@ to keep things simple here.
24714         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24715         Simplify by assuming typical 8/16/32/64 host, since we're
24716         already doing that elsewhere anyway.
24717         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24718         and assume long long int is 64 bits if available.  This
24719         speeds up 'configure'.
24720
24721 2006-07-01  Eric Blake  <ebb9@byu.net>
24722
24723         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24724         Reported by Andreas Buening.
24725
24726 2006-07-01  Eric Blake  <ebb9@byu.net>
24727
24728         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24729
24730 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24731
24732         * lib/getaddrinfo.c: fixed typo
24733
24734 2006-06-29  Jim Meyering  <jim@meyering.net>
24735
24736         * modules/strftime (Maintainer): Add my name, since with the
24737         FPRINTFTIME changes strftime.c has forked from glibc.
24738
24739 2006-06-29  Eric Blake  <ebb9@byu.net>
24740
24741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24742
24743 2006-06-29  Eric Blake  <ebb9@byu.net>
24744
24745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24746
24747 2006-06-29  Eric Blake  <ebb9@byu.net>
24748
24749         * lib/stat_.h: New file.
24750
24751 2006-06-29  Eric Blake  <ebb9@byu.net>
24752
24753         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24754         unused static function.
24755
24756 2006-06-29  Eric Blake  <ebb9@byu.net>
24757
24758         * doc/functions.texi (Function Portability): Document missing lstat
24759         on mingw.
24760
24761 2006-06-29  Eric Blake  <ebb9@byu.net>
24762
24763         * MODULES.html.sh: Add sys_stat.
24764         * modules/sys_stat: New module.
24765         * modules/mkstemp (Depends-on): Add sys_stat.
24766
24767 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24768
24769         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24770
24771 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24772
24773         * m4/c-bs-a.m4: Removed.
24774
24775 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24776
24777         * lib/strftime.c: Assume strftime() exists.
24778
24779 2006-06-29  Derek Price  <derek@ximbiot.com>
24780
24781         * modules/c-bs-a: Removed - \a is C89.
24782         * MODULES.html.sh: Remove c-bs-a.
24783
24784 2006-06-29  Bruno Haible  <bruno@clisp.org>
24785
24786         * modules/wcwidth (License): Change to LGPL.
24787
24788 2006-06-28  Simon Josefsson  <jas@extundo.com>
24789
24790         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24791         on _WIN32.
24792
24793         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24794         getnameinfo.
24795
24796 2006-06-28  Simon Josefsson  <jas@extundo.com>
24797
24798         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24799
24800 2006-06-28  Simon Josefsson  <jas@extundo.com>
24801
24802         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24803         functions there.  It will succeed on Windows XP, but on Windows
24804         2000 and (presumably) earlier, it will fail, and use the internal
24805         re-implementation.
24806         (use_win32_p): New function.
24807         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24808         Support AI_NUMERICSERV to disable getservbyname.
24809         (getnameinfo): New function, only supports
24810         NI_NUMERICHOST|NI_NUMERICSERV for now.
24811
24812         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24813         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24814         getnameinfo.
24815
24816 2006-06-28  Eric Blake  <ebb9@byu.net>
24817
24818         * modules/wcwidth: New file.
24819         * modules/mbchar (Depends-on): Add wcwidth.
24820         * modules/mbswidth (Depends-on): Add wcwidth.
24821         * MODULES.html.sh: Add wcwidth.
24822
24823 2006-06-28  Eric Blake  <ebb9@byu.net>
24824
24825         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24827
24828 2006-06-28  Eric Blake  <ebb9@byu.net>
24829
24830         * lib/xvasprintf.h: Fix comments.
24831
24832 2006-06-28  Eric Blake  <ebb9@byu.net>
24833
24834         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24835         * lib/mbswidth.c (wcwidth): Move from here...
24836         * lib/wcwidth.h: ...to this new file.
24837
24838 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24839
24840         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24841
24842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24843         it's obsolete.
24844         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24845
24846 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24847
24848         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24849         Autoconf 2.60 says this stuff was obsolete.
24850
24851 2006-06-28  Bruno Haible  <bruno@clisp.org>
24852
24853         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24854
24855 2006-06-28  Bruno Haible  <bruno@clisp.org>
24856
24857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24858         gt_TYPE_WCHAR_T.
24859
24860 2006-06-28  Bruno Haible  <bruno@clisp.org>
24861
24862         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24863         declaration for wcwidth.
24864         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24865
24866 2006-06-28  Bruno Haible  <bruno@clisp.org>
24867
24868         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24869         (mkdir): Define using _mkdir.
24870
24871 2006-06-28  Bruno Haible  <bruno@clisp.org>
24872
24873         * lib/getaddrinfo.h: Fix POSIX URL.
24874         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24875         _WIN32.
24876         (use_win32_p): Make static.
24877         (getaddrinfo): Reject service name if it is empty or does not consist
24878         solely of decimal digits, or if its value is > 65535.
24879         (getnameinfo): Remove useless casts.
24880
24881 2006-06-27  Simon Josefsson  <jas@extundo.com>
24882
24883         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24884         Eggert and Martin Lambers.
24885
24886 2006-06-27  Simon Josefsson  <jas@extundo.com>
24887
24888         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24889         Eggert and Martin Lambers.
24890
24891 2006-06-27  Bruno Haible  <bruno@clisp.org>
24892
24893         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24894         result to 0, not to empty.
24895         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24896
24897 2006-06-27  Bruno Haible  <bruno@clisp.org>
24898
24899         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24900
24901 2006-06-26  Simon Josefsson  <jas@extundo.com>
24902
24903         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24904         present.
24905
24906 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24907
24908         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24909         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24911
24912 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24913
24914         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24915
24916 2006-06-26  Bruno Haible  <bruno@clisp.org>
24917
24918         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24919
24920 2006-06-26  Bruno Haible  <bruno@clisp.org>
24921
24922         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24923
24924 2006-06-26  Bruno Haible  <bruno@clisp.org>
24925
24926         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24927         SGI C compiler in pre-C99 mode.
24928         Suggested by Mark D. Baushke and Larry Jones.
24929
24930 2006-06-26  Bruno Haible  <bruno@clisp.org>
24931
24932         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24933         WCHAR_MAX.
24934         Reported by Mark D. Baushke and Larry Jones.
24935
24936 2006-06-26  Bruno Haible  <bruno@clisp.org>
24937
24938         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24939         in pre-C99 mode.
24940         Suggested by Mark D. Baushke and Larry Jones.
24941
24942 2006-06-23  Simon Josefsson  <jas@extundo.com>
24943             Bruno Haible  <bruno@clisp.org>
24944
24945         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24946         Emit mostlyclean-local rule.
24947         (func_emit_tests_Makefile_am): Likewise.
24948         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24949
24950 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24951
24952         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24953
24954 2006-06-23  Bruno Haible  <bruno@clisp.org>
24955
24956         * tests/test-stdint.c: Update to match ISO C 99 Technical
24957         Corrigendum 1.
24958
24959 2006-06-23  Bruno Haible  <bruno@clisp.org>
24960
24961         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24962
24963 2006-06-23  Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/stdint_.h: Treat IRIX like OpenBSD.
24966
24967 2006-06-23  Bruno Haible  <bruno@clisp.org>
24968
24969         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24970         ISO C 99 Technical Corrigendum 1.
24971
24972 2006-06-22  Simon Josefsson  <jas@extundo.com>
24973
24974         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24975         MinGW.
24976
24977 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24978
24979         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24980         needed.  Some compiler complained about some of them.  Problem reported
24981         by Larry Jones in
24982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24983
24984 2006-06-21  Simon Josefsson  <jas@extundo.com>
24985
24986         * tests/test-getaddrinfo.c: New file.
24987
24988         * modules/getaddrinfo-tests: New file.
24989
24990         * MODULES.html.sh: Add inet_pton.
24991
24992         * modules/inet_pton: New file.
24993
24994 2006-06-21  Simon Josefsson  <jas@extundo.com>
24995
24996         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24997         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24998         of using the (limited) gnulib implementation on Windows XP.
24999
25000         * m4/inet_pton.m4: New file.
25001
25002 2006-06-21  Simon Josefsson  <jas@extundo.com>
25003
25004         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25005         variable.
25006
25007         * lib/socket_.h: Don't define WINVER.
25008
25009         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25010         slightly modified to work in gnulib.
25011
25012 2006-06-21  Simon Josefsson  <jas@extundo.com>
25013
25014         * doc/gnulib.texi (Windows sockets): Add.
25015
25016 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25017
25018         * lib/read-file.c (fread_file): Start with buffer allocation of
25019         0 bytes rather than 1 byte; this simplifies the code.
25020         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25021         code to free buffer and save/restore errno.
25022         (internal_read_file): Remove unused local.
25023
25024 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25025
25026         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25027         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25028         Problem reported by Denis Excoffier in
25029         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25030
25031 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25032
25033         * modules/sys_socket, modules/socklen: Include sys/types since
25034         FreeBSD 4.x's sys/socket.h needs it.
25035
25036 2006-06-19  Simon Josefsson  <jas@extundo.com>
25037
25038         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
25039
25040 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
25043
25044 2006-06-19  Bruno Haible  <bruno@clisp.org>
25045
25046         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
25047         and FULL_PATH_INTTYPES_H in angle brackets.
25048         Reported by Mark D. Baushke <mdb@gnu.org>.
25049
25050 2006-06-17  Eric Blake  <ebb9@byu.net>
25051
25052         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
25053         errno.
25054
25055 2006-06-17  Bruno Haible  <bruno@clisp.org>
25056
25057         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25058         <sys/inttypes.h>.
25059
25060 2006-06-17  Bruno Haible  <bruno@clisp.org>
25061
25062         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25063         whether errno is declared. Assume <errno.h> declares errno.
25064
25065 2006-06-17  Bruno Haible  <bruno@clisp.org>
25066
25067         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25068
25069 2006-06-17  Bruno Haible  <bruno@clisp.org>
25070
25071         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25072         problem on Solaris 2.5.1.
25073
25074 2006-06-16  Eric Blake  <ebb9@byu.net>
25075
25076         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25077         * lib/unicodeio.c [!defined errno]: Likewise.
25078         * lib/strtol.c [!defined errno]: Likewise.
25079         * lib/strtod.c [!defined errno]: Likewise.
25080
25081 2006-06-15  Eric Blake  <ebb9@byu.net>
25082
25083         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25084
25085 2006-06-15  Eric Blake  <ebb9@byu.net>
25086
25087         * config/srclist.txt (ssize_t.m4): Lose sync.
25088
25089 2006-06-15  Bruno Haible  <bruno@clisp.org>
25090
25091         * modules/stdint (Files): Include m4/full-header-path.m4,
25092         m4/size_max.m4, m4/wchar_t.m4.
25093         (Makefile.am): Many more substitutions.
25094         * modules/stdint-tests: New file.
25095         * tests/test-stdint.c: New file.
25096
25097 2006-06-15  Bruno Haible  <bruno@clisp.org>
25098
25099         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25100         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25101         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25102         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25103         gl_CHECK_TYPE_SAME): New macros.
25104
25105 2006-06-15  Bruno Haible  <bruno@clisp.org>
25106
25107         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25108
25109 2006-06-15  Bruno Haible  <bruno@clisp.org>
25110
25111         * lib/stdint_.h: Rewritten to be fully auto-configured.
25112         Fixes bug on HP-UX/IA64.
25113
25114 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25115
25116         * lib/getdate.y (__attribute__): Don't define if already defined.
25117         Problem reported by Larry Jones.
25118         * lib/utimens.c (__attribute__): Likewise.
25119
25120 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25123         reported by Andreas Schwab.
25124
25125 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25126             Bruno Haible  <bruno@clisp.org>
25127
25128         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25129         check for the declaration of strnlen and a run test that exposes the
25130         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25131         rpl_strndup.
25132
25133 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25134             Bruno Haible  <bruno@clisp.org>
25135
25136         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25137
25138 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25139
25140         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25141         compile test, for Tru64 4.0D.
25142
25143 2006-05-28  Karl Berry  <karl@gnu.org>
25144
25145         * config/srclist.txt (printf-args.c): lose sync.
25146
25147 2006-05-26  Martin Lambers  <marlam@marlam.de>
25148
25149         * lib/getpass.c: Updates the test for the native W32 API, and adds
25150         missing includes, thus fixing compilation warnings.
25151
25152 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25153
25154         * lib/exclude.c (exclude_fnmatch): New function.
25155         (excluded_file_name): Call exclude_fnmatch.
25156         * lib/exclude.h (excluded_file_name): New prototype
25157
25158 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25159
25160         * lib/tempname.c (small_open, large_open): New macros.
25161         (__open, __open64) [!_LIBC]: Remove.
25162         (__gen_tempname): Use small_open and large_open instead of __open
25163         and __open64.  This fixes a portability bug on HP-UX 11.11i
25164         reported by Simon Wing-Tang in
25165         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25166
25167 2006-05-24  Bruno Haible  <bruno@clisp.org>
25168
25169         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25170         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25171         Reported by Thorsten Maerz <torte@netztorte.de> via
25172         Aaron Stone <aaron@serendipity.cx>.
25173
25174 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25175
25176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25177         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25178         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25179         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25180         not really conditional on the cache.
25181         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25182
25183 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25184
25185         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25186         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25187         (my_usleep): Don't mishandle maximum value.
25188
25189 2006-05-19  Jim Meyering  <jim@meyering.net>
25190
25191         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25192
25193 2006-05-17  Bruno Haible  <bruno@clisp.org>
25194
25195         Cygwin portability.
25196         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25197
25198 2006-05-17  Bruno Haible  <bruno@clisp.org>
25199
25200         * lib/stdint_.h: Fix recognition of Cygwin.
25201
25202 2006-05-15  Bruno Haible  <bruno@clisp.org>
25203
25204         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25205         on libtool patch by Ralf Wildenhues.
25206
25207 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25208
25209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25210         test for C99 conformance; (bool) 0.5 is an integer constant
25211         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25212         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25213
25214 2006-05-11  Simon Josefsson  <jas@extundo.com>
25215
25216         * m4/xvasprintf.m4: Fix obvious typo.
25217
25218 2006-05-11  Jim Meyering  <jim@meyering.net>
25219
25220         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25221         James Lemley.
25222
25223 2006-05-10  Simon Josefsson  <jas@extundo.com>
25224
25225         * lib/md4.c: Typo fix, update copyright years.
25226         (K1, K2): Don't use L because it turn computations into 64-bit on
25227         64-bit platforms.
25228
25229 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25230
25231         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25232         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25233         unwanted sign propagation, e.g., on hosts with 64-bit int.
25234         There still are some problems with reeelly weird theoretical hosts
25235         (e.g., 33-bit int) but it's not worth worrying about now.
25236         * lib/sha1.c (rol): Likewise.
25237         (K1, K2, K3, K4): Remove unnecessary L suffix.
25238
25239 2006-05-10  Bruno Haible  <bruno@clisp.org>
25240
25241         * lib/des.c: Cast to avoid warnings.
25242
25243 2006-05-09  Bruno Haible  <bruno@clisp.org>
25244
25245         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25246         (Depends-on): Depend also on xsize, stdarg.
25247         (configure.ac): Add gl_XVASPRINTF.
25248
25249 2006-05-09  Bruno Haible  <bruno@clisp.org>
25250
25251         * m4/xvasprintf.m4: New file.
25252
25253 2006-05-09  Bruno Haible  <bruno@clisp.org>
25254
25255         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25256         (EOVERFLOW): Define fallback value.
25257         (xstrcat): New function.
25258         (xvasprintf): Recognize the special case of a string concatenation.
25259
25260 2006-05-08  Eric Blake  <ebb9@byu.net>
25261
25262         * gnulib-tool (func_version): Base copyright year on CVS date.
25263         (func_emit_copyright_notice): New function.
25264         (func_emit_lib_Makefile_am): Use it.
25265         (func_emit_tests_Makefile_am): Likewise.
25266         (func_import): Likewise.
25267
25268 2006-05-08  Bruno Haible  <bruno@clisp.org>
25269
25270         * modules/stdarg: New file.
25271         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25272
25273 2006-05-08  Bruno Haible  <bruno@clisp.org>
25274
25275         * m4/stdarg.m4: New file, from GNU gettext.
25276
25277 2006-05-08  Bruno Haible  <bruno@clisp.org>
25278
25279         * config/srclist.txt (build-aux/config.rpath): different from latest
25280         release.
25281
25282 2006-05-08  Bruno Haible  <bruno@clisp.org>
25283
25284         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25285
25286 2006-05-05  Jim Meyering  <jim@meyering.net>
25287
25288         * m4/warning.m4: New file, derived from bison's file by the same name.
25289
25290 2006-05-03  Bruno Haible  <bruno@clisp.org>
25291
25292         * lib/stdint_.h: Shorter URL.
25293         * lib/inttypes.h: Likewise.
25294
25295 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25296
25297         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25298
25299 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25300
25301         * lib/verify.h: Document the internals better.  Most of this change
25302         was written by Bruno Haible.
25303
25304 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25305
25306         * doc/verify.texi: New file, partly based on a proposal by
25307         Bruno Haible.
25308
25309 2006-05-02  Bruno Haible  <bruno@clisp.org>
25310
25311         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25312         test from here...
25313         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25314
25315 2006-04-29  Bruno Haible  <bruno@clisp.org>
25316
25317         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25318         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25319
25320 2006-04-29  Bruno Haible  <bruno@clisp.org>
25321
25322         * gnulib-tool: Make --update option actually work.
25323
25324 2006-04-29  Bruno Haible  <bruno@clisp.org>
25325
25326         * doc/gcd.texi: New file.
25327         * doc/gnulib.texi: Include it.
25328
25329 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25330
25331         * lib/getdate.y (get_date): When adding relative date, start with the
25332         initial time, not with the result of the first mktime call.
25333
25334 2006-04-25  Bruno Haible  <bruno@clisp.org>
25335
25336         * gnulib-tool (func_import): Output the include directives in three
25337         blocks, sorted separately.
25338         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25339
25340 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25341
25342         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25343         to define main with arguments, for C++.  Reported by Eric Blake.
25344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25345         Prefer 'int main ()' to 'int main (void)', for C++.
25346         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25348         for 'main', for C99 and C++.
25349
25350 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25351
25352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25353         Don't assume that exit status -1 is valid.
25354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25355         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25356         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25357         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25358         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25359         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25360         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25361         functions can be used without declaring them, or that you can
25362         exit with status -1.
25363         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25364
25365 2006-04-24  Karl Berry  <karl@gnu.org>
25366
25367         * config/srclist.txt (longdouble.m4): sync lost.
25368
25369 2006-04-24  Eric Blake  <ebb9@byu.net>
25370
25371         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25372
25373 2006-04-24  Bruno Haible  <bruno@clisp.org>
25374
25375         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25376         poll() implementation in AIX.
25377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25378
25379 2006-04-24  Bruno Haible  <bruno@clisp.org>
25380
25381         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25382         assigned exactly once.
25383
25384 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25385             Bruno Haible  <bruno@clisp.org>
25386
25387         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25388         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25389         for AM_CPPFLAGS.
25390
25391 2006-04-23  Bruno Haible  <bruno@clisp.org>
25392
25393         * modules/copy-file: Depend on unistd.
25394         * modules/execute: Likewise.
25395         * modules/fatal-signal: Likewise.
25396         * modules/findprog: Likewise.
25397         * modules/mkdtemp : Likewise.
25398         * modules/pipe: Likewise.
25399         * modules/wait-process: Likewise.
25400
25401 2006-04-23  Bruno Haible  <bruno@clisp.org>
25402
25403         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25404         condition was already detected.
25405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25406
25407 2006-04-23  Bruno Haible  <bruno@clisp.org>
25408
25409         * lib/copy-file.c: Include <unistd.h> unconditionally.
25410         * lib/execute.c: Likewise.
25411         * lib/fatal-signal.c: Likewise.
25412         * lib/findprog.c: Likewise.
25413         * lib/mkdtemp.c: Likewise.
25414         * lib/pipe.h: Likewise.
25415         * lib/pipe.c: Likewise.
25416         * lib/wait-process.h: Likewise.
25417
25418 2006-04-23  Bruno Haible  <bruno@clisp.org>
25419
25420         * gnulib-tool (func_usage): Fix --import description. Document
25421         --update.
25422         (func_import): Create temporary file in a temporary directory, if
25423         --dry-run is specified. Silence errors from 'grep' when there are no
25424         m4 files in $m4dir.
25425         (func_create_testdir): Silence errors from 'grep' when there are no
25426         m4 files in $m4dir.
25427         Reported by Karl Berry <karl@freefriends.org>.
25428
25429 2006-04-20  Bruno Haible  <bruno@clisp.org>
25430
25431         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25432         one argument, so that the code will be portable to Autoconf 2.60.
25433         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25434         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25435         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25436
25437 2006-04-19  Derek Price  <derek@ximbiot.com>
25438             Eric Blake  <ebb9@byu.net>
25439
25440         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25441         rather than "/full/path.h".  Update comment to match.  Shorten &
25442         generalize m4_translit call via AS_TR_CPP.
25443
25444 2006-04-19  Derek Price  <derek@ximbiot.com>
25445             Eric Blake  <ebb9@byu.net>
25446
25447         * lib/inttypes.h: Correct grammar in comment.
25448
25449 2006-04-18  Derek Price  <derek@ximbiot.com>
25450             Paul Eggert  <eggert@cs.ucla.edu>
25451
25452         * modules/inttypes: New file.
25453         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25454
25455 2006-04-18  Derek Price  <derek@ximbiot.com>
25456             Paul Eggert  <eggert@cs.ucla.edu>
25457
25458         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25459         New files.
25460
25461 2006-04-18  Derek Price  <derek@ximbiot.com>
25462             Paul Eggert  <eggert@cs.ucla.edu>
25463
25464         * lib/inttypes.h: New file.
25465         * lib/strtoimax.c: Assume <inttypes.h>.
25466
25467 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25468
25469         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25470         isn't mounted.  Problem reported by Kir Kolyshkin.
25471
25472 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25473
25474         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25475         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25476         Derek R. Price.
25477         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25478         implementation.
25479
25480 2006-04-12  Eric Blake  <ebb9@byu.net>
25481
25482         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25483         is now done automatically by the corresponding Autoconf macro.
25484
25485 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25486
25487         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25488         time_r.h.
25489
25490 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25491
25492         Merge regex changes from libc, removing some of our
25493         POSIX-conformance changes that were rejected and redoing them in a
25494         less-intrusive way.
25495
25496         * lib/regcomp.c (re_compile_internal, init_dfa):
25497         Length arg is now size_t, not Idx.  All uses changed.
25498         (peek_token): Forward decl now says internal_function.
25499         (__re_error_msgid, __re_error_msgid_idx):
25500         Now static rather than extern with attribute_hidden.
25501         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25502         For some reason libc prefers K&R style defns for external functions.
25503         (regerror) [!defined _LIBC]: Likewise.
25504         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25505         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25506         (build_range_exp, build_collating_symbol):
25507         Use K&R-style defn.
25508         (re_compile_fastmap): Use '\0' to memset, not 0.
25509         (utf8_sb_map): Make the calculations more obvious.
25510         (init_dfa, parse_bracket_exp, build_charclass_op):
25511         Call calloc and cast result, as glibc does.
25512         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25513         (build_range_exp, build_collating_symbol):
25514         Now internal functions.
25515
25516         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25517
25518         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25519         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25520         Don't depend on VMS; depend on __VMS instead, for POSIX
25521         namespace cleanness.
25522         (regoff_t): Define to ssize_t, not long int.
25523
25524         Remove the REG_ macros named below.  Instead, make the old names
25525         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25526         __USE_GNU_REGEX.
25527         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25528         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25529         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25530         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25531         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25532         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25533         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25534         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25535         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25536         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25537         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25538         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25539         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25540         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25541         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25542         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25543         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25544         (REG_NREGS):
25545         Remove.  All uses replaced by the old RE_* names.
25546         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25547         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25548         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25549         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25550         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25551         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25552         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25553         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25554         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25555         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25556         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25557         Don't bother having these macros be independent of each others'
25558         values, since they no longer exist in the POSIX name space.
25559
25560         Rename the following member names back to their old names,
25561         unless !__USE_GNU_REGEX.  All uses changed back.
25562         (buffer): Renamed from re_buffer.
25563         (allocated): Renamed from re_allocated.
25564         (used): Renamed from re_used.
25565         (syntax): Renamed from re_syntax.
25566         (fastmap): Renamed from re_fastmap.
25567         (translate): Renamed from re_translate.
25568         (can_be_null): Renamed from re_can_be_null.
25569         (regs_allocated): Renamed from re_regs_allocated.
25570         (fastmap_accurate): Renamed from re_fastmap_accurate.
25571         (no_sub): Renamed from re_no_sub.
25572         (not_bol): Renamed from re_not_bol.
25573         (not_eol): Renamed from re_not_eol.
25574         (newline_anchor): Renamed from re_newline_anchor.
25575         (num_regs): Renamed from rm_num_regs.
25576         (start): Renamed from rm_start.
25577         (end): Renamed from rm_end.
25578
25579         (free_state): Move up a bit.
25580
25581         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25582         #define to be empty.
25583         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25584         when that is what is intended.
25585         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25586         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25587         (MAX): New macro.
25588         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25589         All uses changed back to re_malloc, etc.  It's now the caller's
25590         responsibility to check for overflow; all callers changed.
25591         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25592         (re_x2nrealloc): Remove.
25593         (free_state): Remove decl.
25594
25595         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25596         (re_set_registers, re_exec):
25597         Use K&R-style defn.
25598
25599         2006-01-31  Roland McGrath  <roland@redhat.com>
25600
25601         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25602         Reported by Mike Frysinger <vapier@gentoo.org>.
25603
25604         2006-01-15  Andreas Jaeger  <aj@suse.de>
25605
25606         [BZ #1950]
25607         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25608         build_wcs_upper_buffer change.
25609         (build_wcs_upper_buffer): Change return type.
25610
25611         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25612
25613         * lib/regex_internal.h: Include <stdint.h> if available.
25614
25615         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25616
25617         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25618
25619         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25620
25621         * lib/regcomp.c: Adjust for changed secondary hash function.
25622
25623         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25624
25625         * lib/regex.h: Pretty printing.
25626         Clean up namespace a bit.
25627
25628         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25629
25630         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25631         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25632
25633         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25634                     Ulrich Drepper  <drepper@redhat.com>
25635
25636         [BZ #1302]
25637         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25638         changed.
25639         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25640
25641         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25642
25643         [BZ #281]
25644         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25645         * lib/regcomp.c: Remove unnecessary uses of
25646         unsigned RE_TRANSLATE_TYPE.
25647         * lib/regex_internal.h: Likewise.
25648         * lib/regex_internal.c: Likewise.
25649         * lib/regexec.c: Likewise.
25650         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25651
25652         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25653
25654         * lib/regexec.c (find_recover_state): Remove unnecessary
25655         initialization.
25656         (transit_state_bkref): Make DFA a const pointer.
25657         (get_subexp): Likewise.
25658         (check_arrival): Likewise.
25659         (update_cur_sifted_state): Likewise.
25660         (re_search_internal): Likewise.
25661         (prune_impossible_nodes): Likewise.
25662         (acquire_init_state_context): Likewise.
25663         (proceed_next_node): Likewise.
25664         (set_regs): Likewise.
25665         (free_fail_stack_return): Likewise.
25666         (check_arrival_expand_ecl): Mark DFA parameter as const.
25667         (check_arrival_expand_ecl_sub): Likewise.
25668         (check_subexp_limits): Likewise.
25669         (sub_epsilon_src_nodes):  Likewise.
25670         (add_epsilon_src_nodes):  Likewise.
25671         (merge_state_array): Likewise.
25672         (update_regs): Likewise.
25673         (build_trtable): Likewise.
25674         (sift_states_backward): Mark MCTX parameter as const.
25675         (build_sifted_states): Likewise.
25676         (update_cur_sifted_state): Likewise.
25677         (sift_states_mkref): Likewise.
25678         (check_arrival_expand_ecl): Mark eclosure as const.
25679         (check_dst_limits_calc_pos_1): Likewise.
25680         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25681         pointer.
25682
25683         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25684
25685         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25686         (transit_state_sb): Likewise.
25687         (transit_state_mb): Likewise.
25688         (sift_states_iter_mb): Likewise.
25689         (check_arrival_add_next_nodes): Likewise.
25690         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25691         [_LIBC] (re_search_2_stub): Use mempcpy.
25692
25693         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25694         mbrtowc for very simple UTF-8 case.
25695
25696         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25697         a pointer-to-const.
25698         (re_acquire_state_context): Likewise.
25699         * lib/regex_internal.h: Adjust prototypes.
25700
25701         * lib/regex.c: Prevent using C++ compilers.
25702
25703         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25704         (re_acquire_state_context): Likewise.
25705
25706 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25707
25708         * modules/regex (Depends-on): Add ssize_t.
25709
25710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25711
25712         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25713         translation table.
25714
25715 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25716
25717         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25718
25719 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25720             Bruno Haible  <bruno@clisp.org>
25721
25722         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25723         <sys/types.h> and <inttypes.h>.
25724
25725 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25726
25727         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25728         `__error_t_defined', so argp.h will not typedef the former.
25729
25730 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25731
25732         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25733         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25734         glibc names.  Even if glibc is changed to conform to POSIX, the
25735         traditional names will be available anyway, since regex depends on
25736         the extensions module.  Also, fix a longstanding typo in the
25737         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25738         reported by Emanuele Giaquinta.  Also, change sense of cached
25739         variable, so that the message makes sense.
25740
25741 2006-03-24  Simon Josefsson  <jas@extundo.com>
25742
25743         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25744         including some doc fixes.
25745         (base64_encode_alloc): Fix +1 bug on allocation failures.
25746
25747 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25748
25749         * lib/base64.c (base64_encode): Do not read past end of array with
25750         unsanitized input on systems with CHAR_BIT > 8.
25751
25752 2006-03-24  Eric Blake  <ebb9@byu.net>
25753
25754         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25755
25756 2006-03-22  Karl Berry  <karl@gnu.org>
25757
25758         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25759         * config/srclistvars.sh (COREUTILS): new var.
25760
25761 2006-03-17  Jim Meyering  <jim@meyering.net>
25762
25763         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25764         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25765
25766 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25767
25768         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25769         no longer needs it.  Instead, check that regoff_t is as least
25770         as wide as ptrdiff_t.
25771
25772         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25773         so that our regex.h stays compatible with the installed regex.
25774         This is helpful for installers who configure --without-included-regex.
25775         Problem reported by Emanuele Giaquinta.
25776
25777 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25778
25779         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25780         Typedef to long int, not to off_, as POSIX will likely change
25781         in that direction.
25782
25783 2006-03-15  Eric Blake  <ebb9@byu.net>
25784
25785         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25786
25787 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25788
25789         * lib/argp-help.c (validate_uparams): Fix typo
25790         * lib/argp-parse.c (argp_default_options): Consistently begin help
25791         messages with a lowercase letter.
25792
25793 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25794
25795         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25796         overrun buffers and shouldn't be used (much as gets shouldn't be
25797         used).
25798         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25799
25800 2006-03-08  Simon Josefsson  <jas@extundo.com>
25801
25802         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25803         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25804
25805 2006-03-08  Simon Josefsson  <jas@extundo.com>
25806
25807         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25808         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25809
25810 2006-03-08  Simon Josefsson  <jas@extundo.com>
25811
25812         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25813         signal that configure disabled the device.
25814
25815 2006-03-08  Simon Josefsson  <jas@extundo.com>
25816
25817         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25818         languages.
25819
25820 2006-03-07  Simon Josefsson  <jas@extundo.com>
25821
25822         * modules/getopt (Depends-on): Add unistd.
25823
25824         * modules/unistd: New file.
25825
25826 2006-03-07  Simon Josefsson  <jas@extundo.com>
25827
25828         * modules/gc-random: New file.
25829
25830 2006-03-07  Simon Josefsson  <jas@extundo.com>
25831
25832         * m4/unistd_h.m4: New file.
25833
25834 2006-03-07  Simon Josefsson  <jas@extundo.com>
25835
25836         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25837         test to be side-effect free by storing the result in the cache
25838         variable gl_cv_lib_readline, and moving the assignment of
25839         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25840         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25841
25842 2006-03-07  Simon Josefsson  <jas@extundo.com>
25843
25844         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25845         error on missing devices (the functions will return an error).
25846
25847         * m4/gc.m4: Move random stuff to gc-random.m4
25848
25849 2006-03-07  Simon Josefsson  <jas@extundo.com>
25850
25851         * lib/unistd_.h: New file.
25852
25853 2006-03-07  Simon Josefsson  <jas@extundo.com>
25854
25855         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25856
25857 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25858
25859         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25860         Problem reported by Juan Manuel Guerrero.
25861
25862 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25863
25864         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25865         the unistd module.
25866         * lib/getlogin_r.c: Likewise.
25867         * lib/getlogin_r.h: Likewise.
25868         * lib/glob.c: Likewise.
25869         * lib/pagealign_alloc.c: Likewise.
25870         * lib/unistd_.h: Remove; no longer needed.
25871
25872 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25873
25874         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25875         Add unistd.
25876         * modules/c-stack (Depends-on): Add unistd.
25877         * modules/getlogin_r: Likewise.
25878         * modules/glob: Likewise.
25879         * modules/pagealign_alloc: Likewise.
25880         * modules/unistd (Files): Remove lib/unistd_.h.
25881         (EXTRA_DIST): Remove.
25882         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25883         need unistd_.h.
25884         (MOSTLYCLEANFILES): Remove unistd.h-t.
25885
25886 2006-03-03  Simon Josefsson  <jas@extundo.com>
25887
25888         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25889
25890 2006-03-03  Simon Josefsson  <jas@extundo.com>
25891
25892         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25893         libidn and bison.
25894
25895 2006-03-03  Simon Josefsson  <jas@extundo.com>
25896
25897         * build-aux/maint.mk: Add indent target.
25898
25899 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25900
25901         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25902         our replacement poll.h in any case, to avoid a differing
25903         declaration from a system header.  Seen on AIX.
25904
25905 2006-03-01  Simon Josefsson  <jas@extundo.com>
25906
25907         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25908         <kasal@ucw.cz>.
25909
25910 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25911
25912         * modules/gettime (Depends-on): Add extensions module.
25913         * modules/nanosleep (Depends-on): Likewise.
25914         * modules/settime (Depends-on): Likewise.
25915
25916 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25917
25918         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25919         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25920         pedantically.
25921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25922         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25923
25924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25925         not "==".  Reported by Ralf Wildenhues.
25926
25927 2006-03-01  Karl Berry  <karl@gnu.org>
25928
25929         * doc/Copyright/request-*: new files, synced from gnuorg.
25930
25931 2006-03-01  Karl Berry  <karl@gnu.org>
25932
25933         * config/srclist.txt (Copyright/*): new entries.
25934
25935 2006-02-28  Simon Josefsson  <jas@extundo.com>
25936
25937         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25938
25939 2006-02-27  Simon Josefsson  <jas@extundo.com>
25940
25941         * lib/base64.h: Indent #define's.  From Jim Meyering
25942         <jim@meyering.net>.
25943
25944 2006-02-27  Jim Meyering  <jim@meyering.net>
25945
25946         Revert the change of 2006-02-24, so these files can continue
25947         to be sync'd from gettext.
25948         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25949         of `config.h'.
25950
25951 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25952
25953         * modules/intprops: New file.
25954         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25955         Add intprops.
25956         * modules/getloadavg (Files): Remove lib/intprops.h.
25957         (Depends-on): Add intprops.
25958         * modules/human: Likewise.
25959         * modules/inttostr: Likewise.
25960         * modules/openat: Likewise.
25961         * modules/sig2str: Likewise.
25962         * modules/userspec: Likewise.
25963         * modules/utimecmp: Likewise.
25964         * modules/xnanosleep: Likewise.
25965         * modules/xstrtol: Likewise.
25966
25967 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25968
25969         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25970         * modules/lock-tests (TESTS): Use $(EXEEXT).
25971         * modules/tls-tests: Likewise.
25972         * modules/argp-tests: Likewise.
25973         (check_PROGRAMS): New var, replacing...
25974         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25975
25976 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25977
25978         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25979         `config.h'.
25980
25981 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25982
25983         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25984
25985 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25986
25987         Sync from coreutils.
25988         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25989         gl_CHDIR_SAFER.
25990
25991 2006-02-22  Jim Meyering  <jim@meyering.net>
25992
25993         Sync from coreutils.
25994         * m4/chdir-safer.m4: New file.
25995
25996 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25997
25998         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25999         AT_FDCWD exceeds INT_MAX.
26000         * lib/openat.h (AT_FDCWD): Likewise.
26001
26002 2006-02-17  Eric Blake  <address@hidden>
26003
26004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26005
26006 2006-02-16  Simon Josefsson  <jas@extundo.com>
26007
26008         * modules/getaddrinfo (Depends-on): Add sys_socket.
26009
26010 2006-02-15  Simon Josefsson  <jas@extundo.com>
26011
26012         * build-aux/maint.mk: Add dsyntax-check rule.
26013
26014 2006-02-15  Eric Blake  <ebb9@byu.net>
26015
26016         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26017         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26018         'present but cannot compile' warnings on cygwin.
26019         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26020         use ws2tcpip.h if sys/socket.h works.
26021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26022         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26023
26024 2006-02-14  Simon Josefsson  <jas@extundo.com>
26025
26026         * modules/maintainer-makefile (Files): Rename.
26027
26028         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26029         and (the local) Makefile.cfg to maint-cfg.mk.
26030
26031         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26032         to the latter.
26033
26034         * modules/maintainer-makefile: New module.
26035
26036         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
26037         severaly stripped to make it possible to build it up from scratch
26038         with reliable tests.
26039
26040         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
26041         fixes to permit overriding the default actions when configure and
26042         makefile are not available.
26043
26044 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26045
26046         Sync from coreutils.
26047         * modules/lstat (Depends-on): Don't depend on xalloc.
26048         (License): Change from GPL to LGPL, since this is now simply a
26049         replacement for a libc function.
26050
26051 2006-02-14  Jim Meyering  <jim@meyering.net>
26052
26053         Sync from coreutils.
26054
26055         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
26056         failure on deficient systems, and simplify gnulib lgpl dependencies.
26057         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26058         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26059
26060         * lib/xalloc-die.c: Remove unused definition of N_.
26061
26062 2006-02-14  Jim Meyering  <jim@meyering.net>
26063
26064         Sync from coreutils.
26065         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26066         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26067         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26068         double-quote uses of that variable, to accommodate the rare case in
26069         which getmntent is available in none of the libraries checked.  This
26070         happens at least on FreeBSD 5.0.
26071
26072 2006-02-13  Simon Josefsson  <jas@extundo.com>
26073
26074         * gnulib-tool (Usage): Fix --import, from
26075         karl@freefriends.org (Karl Berry).
26076
26077 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26078
26079         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26080
26081 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26082
26083         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26084         "autoupdate" on 2005-12-12.
26085
26086 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26087
26088         * modules/closeout (Depends-on): Remove atexit.
26089
26090 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26093         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26094
26095 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26096
26097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26098         __EXTENSIONS__ if this causes compilation to fail.  Problem
26099         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26100         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26101
26102 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26103
26104         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26105         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26107         All uses changed.
26108
26109 2006-01-26  Simon Josefsson  <jas@extundo.com>
26110
26111         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26112         prototype is visible on mingw32.
26113
26114         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26115         for mingw32.
26116
26117         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26118         mingw32).
26119
26120 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26121
26122         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26123         attempt to open for write; this always fails, at least on POSIX
26124         hosts.  This reinstates the 2006-01-09 change, which was
26125         inadvertently removed.
26126
26127 2006-01-26  Bruno Haible  <bruno@clisp.org>
26128
26129         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26130         Reported by Paul Eggert.
26131
26132 2006-01-26  Bruno Haible  <bruno@clisp.org>
26133             Paul Eggert  <eggert@cs.ucla.edu>
26134
26135         * lib/stdbool_.h (_Bool)
26136         [(! (defined __cplusplus || defined __BEOS__)
26137           && !defined __GNUC__
26138           && !(defined __HP_cc || defined __xlc__
26139                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26140                || defined __sgi))]:
26141         #define to signed char in these cases too; this simplifies
26142         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26143         etc., separately) and makes it more conservative.
26144
26145 2006-01-25  Simon Josefsson  <jas@extundo.com>
26146
26147         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26148         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26149         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26150
26151 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26152
26153         * lib/argp-namefrob.h: Bugfix. Remove stray #
26154
26155 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26156
26157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26158         so that we test the test.
26159         Check for yet another HP-UX cc bug involving *bool |= bool.
26160
26161 2006-01-25  Karl Berry  <karl@gnu.org>
26162
26163         * config/srclist.txt (vasnprintf.c): sync lost.
26164
26165 2006-01-25  Jim Meyering  <jim@meyering.net>
26166
26167         Sync from the stable (b5) branch of coreutils:
26168
26169         * lib/fts.c (fts_children): Don't let close() clobber errno from
26170         failed fchdir().
26171
26172         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26173         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26174         a dangling symlink.  That can also happen at least for ELOOP.
26175         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26176         FYI, this bug predates the inclusion of fts.c in coreutils.
26177
26178         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26179         in their own block, so pre-c99 compilers don't object.
26180
26181         Avoid the double-free (first in fts_read, second in fts_close) that
26182         would occur when an `active' directory is made inaccessible (e.g.,
26183         via chmod a-x) during a traversal.
26184         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26185         before returning.  Reproduce this failure by
26186         mkdir -p a/b; cd a; chmod a-x . b
26187         Reported by Stavros Passas.
26188
26189 2006-01-25  Jim Meyering  <jim@meyering.net>
26190
26191         * lib/fileblocks.c: Remove more useless parentheses.
26192         * lib/readutmp.h: Likewise.
26193
26194 2006-01-25  Bruno Haible  <bruno@clisp.org>
26195
26196         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26197         warnings.
26198         Reported by Paul Eggert.
26199
26200 2006-01-25  Bruno Haible  <bruno@clisp.org>
26201
26202         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26203         rid of a trap command. For Solaris sh.
26204         Reported by Mark D. Baushke <mdb@gnu.org>.
26205
26206 2006-01-24  Simon Josefsson  <jas@extundo.com>
26207
26208         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26209         Bruno.
26210
26211 2006-01-24  Karl Berry  <karl@gnu.org>
26212
26213         * config/srclist.txt (argp-namefrob.h): sync lost.
26214
26215 2006-01-24  Jim Meyering  <jim@meyering.net>
26216
26217         * modules/openat (Files): Add lib/intprops.h.
26218         From Mark D. Baushke.
26219
26220 2006-01-24  Jim Meyering  <jim@meyering.net>
26221
26222         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26223         Reported by Mark D. Baushke.
26224
26225 2006-01-24  Jim Meyering  <jim@meyering.net>
26226
26227         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26228
26229 2006-01-24  Bruno Haible  <bruno@clisp.org>
26230
26231         * modules/strnlen (Maintainer): Change from glibc to all.
26232
26233 2006-01-24  Bruno Haible  <bruno@clisp.org>
26234
26235         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26236         Patch by Paul Eggert.
26237
26238 2006-01-24  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26241         already has it.
26242         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26243         2005-11-26.
26244
26245         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26246         'signed char' to avoid problems with the built-in _Bool type.
26247         Reported by Paul Eggert on 2005-11-26.
26248
26249 2006-01-24  Bruno Haible  <bruno@clisp.org>
26250
26251         * gnulib-tool (func_import): Avoid constructing complicated sed
26252         expressions inside backquote.
26253         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26254
26255 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26256
26257         These changes imported from libc.
26258         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26259         test and two separate function calls.
26260         * lib/strndup.c (__strndup): Add libc_hidden_def.
26261
26262 2006-01-23  Simon Josefsson  <jas@extundo.com>
26263
26264         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26265         Remove the test_*_SOURCES variable: automake infers it by default.
26266         * modules/tls-tests: Likewise.
26267
26268 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26269
26270         Work around porting bugs reported by Dieter in
26271         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26272         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26273         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26274         Include "getopt.h" first, to check interface.
26275         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26276         !HAVE_DECL_GETENV.
26277         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26278         (__strndup): Revert to K&R-style function dfns, the glibc style.
26279         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26280         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26281         Include strnlen.h first, to get prototype properly.
26282         (strnlen): Renamed from __strnlen.
26283         Remove weak alias.
26284
26285 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26288
26289 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         * config/srclist.txt: Adjust to reflect glibc reorganization.
26292         This affects only comments.
26293
26294 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26295
26296          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26297          Reported by Bruce Korb <bkorb@gnu.org>.
26298
26299 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26300
26301         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26302         to pacify gcc -Wswitch-default.
26303
26304 2006-01-22  Bruno Haible  <bruno@clisp.org>
26305
26306         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26307         temporary buffer for sprintf, take into account the precision also
26308         for 'd', 'i', 'u', 'o', 'x', 'X'.
26309
26310 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26311
26312         * modules/argp-tests: New module
26313         * tests/test-argp.c: New file
26314         * tests/test-argp-2.sh: New file
26315
26316 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26317
26318         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26319         (__argp_base_name): Removed
26320         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26321         typo.
26322         (__argp_base_name): Provide macro definition or extern declaration
26323         depending on the configuration
26324
26325 2006-01-20  Simon Josefsson  <jas@extundo.com>
26326
26327         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26328
26329 2006-01-20  Simon Josefsson  <jas@extundo.com>
26330
26331         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26332
26333 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26334
26335         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26336         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26337         Suggested by Bruno Haible.
26338
26339 2006-01-20  Karl Berry  <karl@gnu.org>
26340
26341         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26342         until changes propagate, I guess.
26343
26344 2006-01-19  Simon Josefsson  <jas@extundo.com>
26345
26346         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26347
26348 2006-01-19  Simon Josefsson  <jas@extundo.com>
26349
26350         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26351
26352 2006-01-19  Simon Josefsson  <jas@extundo.com>
26353
26354         * gnulib-tool: Set check_PROGRAMS.
26355
26356         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26357         modules/des-tests, modules/gc-arcfour-tests,
26358         modules/gc-arctwo-tests, modules/gc-des-tests,
26359         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26360         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26361         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26362         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26363         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26364         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26365         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26366         test_*_SOURCES.
26367
26368 2006-01-18  Simon Josefsson  <jas@extundo.com>
26369
26370         * modules/socklen (Depends-on): Depend on sys_socket.
26371
26372 2006-01-18  Simon Josefsson  <jas@extundo.com>
26373
26374         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26375         modules/des-tests, modules/gc-arcfour-tests,
26376         modules/gc-arctwo-tests, modules/gc-des-tests,
26377         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26378         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26379         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26380         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26381         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26382         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26383         $(EXEEXT) to automake TESTS variable, for mingw32.
26384
26385 2006-01-17  Simon Josefsson  <jas@extundo.com>
26386
26387         * modules/socklen (Include): Need sys/socket.h.
26388
26389 2006-01-17  Bruno Haible  <bruno@clisp.org>
26390
26391         * modules/ssize_t (Include): Add <sys/types.h>.
26392
26393 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26394
26395         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26396         it's not portable and it doesn't work with cross-compiles.
26397         Problem reported by Bruno Haible.  Fix missing-$ typo in
26398         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26399         -zignore from being used with Sun's C compiler.
26400
26401 2006-01-12  Simon Josefsson  <jas@extundo.com>
26402
26403         * lib/base64.c: Fix warning, reported by Bruno Haible
26404         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26405
26406 2006-01-12  Bruno Haible  <bruno@clisp.org>
26407
26408         * modules/ldd: New file.
26409         * build-aux/ldd.sh.in: New file.
26410         * MODULES.html.sh (Support for building libraries and executables): Add
26411         ldd.
26412
26413 2006-01-12  Bruno Haible  <bruno@clisp.org>
26414
26415         * m4/ldd.m4: New file.
26416
26417 2006-01-12  Bruno Haible  <bruno@clisp.org>
26418
26419         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26420         endless loop while replacing $auxdir with build-aux.
26421
26422 2006-01-11  Simon Josefsson  <jas@extundo.com>
26423
26424         * lib/stdint_.h (SIZE_MAX): Add missing (.
26425
26426 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26427
26428         Sync from coreutils.
26429         * lib/md5.c: Fix commentary typos.
26430         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26431         * lib/md5.h (__attribute__): Remove; unused.
26432         * lib/sha1.c: Fix commentary to match md5 better.
26433         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26434         so that we don't need to worry about alignment.  All uses changed.
26435         This merges the 2005-10-28 md5 change into sha1.
26436
26437 2006-01-11  Jim Meyering  <jim@meyering.net>
26438
26439         Sync from coreutils.
26440         * lib/md5.c (OP): Fix spacing.
26441
26442 2006-01-11  Bruno Haible  <bruno@clisp.org>
26443
26444         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26445         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26446         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26447
26448 2006-01-11  Bruno Haible  <bruno@clisp.org>
26449
26450         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26451         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26452         the "early" section as well.
26453
26454 2006-01-11  Bruno Haible  <bruno@clisp.org>
26455
26456         Avoid "ar: no archive members specified" error on MacOS X.
26457         * gnulib-tool (func_modules_add_dummy): New function.
26458         (func_import, func_create_testdir): Invoke it.
26459
26460 2006-01-11  Bruno Haible  <bruno@clisp.org>
26461
26462         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26463         with $auxdir in AC_CONFIG_FILES statements.
26464
26465 2006-01-11  Bruno Haible  <bruno@clisp.org>
26466
26467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26468         Initialize also noinst_HEADERS to empty.
26469
26470 2006-01-11  Bruno Haible  <bruno@clisp.org>
26471
26472         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26473         variables.
26474         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26475         autoreconf.
26476
26477 2006-01-11  Bruno Haible  <bruno@clisp.org>
26478
26479         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26480         overridable by the user.
26481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26482
26483 2006-01-10  Simon Josefsson  <jas@extundo.com>
26484
26485         * modules/sys_socket: New file.
26486
26487 2006-01-10  Simon Josefsson  <jas@extundo.com>
26488
26489         * m4/sys_socket_h.m4: New file.
26490
26491 2006-01-10  Simon Josefsson  <jas@extundo.com>
26492
26493         * lib/socket_.h: New file.
26494
26495 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26496
26497         * modules/readutmp (Maintainer): Add myself.
26498
26499 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26500
26501         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26502         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26503         People who are still concerned with buggy memcmp implementations
26504         can invoke gl_FUNC_MEMCMP themselves.
26505
26506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26507
26508         * lib/regex_internal.h (BITSET_WORD_BITS):
26509         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26510         preprocessor mishandles large unsigned values as if they were signed.
26511         Problem reported by Claudio Fontana in
26512         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26513
26514 2006-01-10  Jim Meyering  <jim@meyering.net>
26515
26516         Avoid the double-free (first in fts_read, second in fts_close) that
26517         would occur when an `active' directory is made inaccessible (e.g.,
26518         via chmod a-x) during a traversal.
26519         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26520         before returning.  Reproduce this failure by
26521         mkdir -p a/b; cd a; chmod a-x . b
26522         Reported by Stavros Passas.
26523
26524         Sync from coreutils.
26525         * lib/sha1.c: Tweak grammar in a comment.
26526
26527 2006-01-10  Jim Meyering  <jim@meyering.net>
26528
26529         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26530         Patch by Joerg Sonnenberger.
26531
26532 2006-01-10  Bruno Haible  <bruno@clisp.org>
26533
26534         * modules/readutmp: Depend on module free.
26535         * modules/strtok_r: Depend on module restrict.
26536
26537 2006-01-10  Bruno Haible  <bruno@clisp.org>
26538
26539         * modules/gettext (configure.ac): Add an invocation of
26540         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26541
26542 2006-01-10  Bruno Haible  <bruno@clisp.org>
26543
26544         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26545         Reported by Werner Lemberg <wl@gnu.org>.
26546
26547 2006-01-10  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/localcharset.c: Update from GNU gettext.
26550
26551 2006-01-10  Bruno Haible  <bruno@clisp.org>
26552
26553         * lib/argp.h (__const): Remove macro. Use const instead.
26554         * lib/argp-fmtstream.h (__const): Likewise.
26555         * lib/glob_.h (__const): Remove macro.
26556         * lib/glob-libc.h: Use const instead of __const.
26557
26558 2006-01-10  Bruno Haible  <bruno@clisp.org>
26559
26560         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26561         variable.
26562         Needed to avoid an automake error regarding the 'gettext' module.
26563
26564 2006-01-09  Simon Josefsson  <jas@extundo.com>
26565
26566         * modules/inet_ntop (Depends-on): Add restrict.
26567
26568 2006-01-09  Simon Josefsson  <jas@extundo.com>
26569
26570         * modules/gc-rijndael-tests (License): Put under LGPL.
26571
26572         * modules/gc-des-tests (License): Likewise.
26573
26574         * modules/gc-arcfour-tests (License): Likewise.
26575
26576         * modules/gc-arctwo-tests (License): Likewise.
26577
26578         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26579
26580         * modules/gc-hmac-sha1-tests (Files): Likewise.
26581
26582         * modules/gc-hmac-md5-tests (License): Likewise.
26583
26584         * modules/gc-sha1-tests (License): Likewise.
26585
26586         * modules/gc-md5-tests (License): Likewise.
26587
26588         * modules/gc-md4-tests (License): Likewise.
26589
26590         * modules/gc-md2-tests (License): Likewise.
26591
26592         * modules/gc-tests (License): Likewise.
26593
26594         * modules/des-tests (License): Likewise.
26595
26596         * modules/md4-tests (License): Likewise.
26597
26598         * modules/md2-tests (License): Likewise.
26599
26600 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26601
26602         Sync from coreutils:
26603
26604         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26605         * modules/lib-ignore: New file.
26606         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26607         chdir-safer.m4, lchmod.m4.
26608         * modules/openat: Add mkdirat.c, openat-priv.h.
26609
26610 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26611
26612         Sync from coreutils.
26613         * m4/lib-ignore.m4: New file.
26614         * m4/lchmod.m4: New file.
26615
26616 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         Sync from coreutils.
26619         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26620         for write access: POSIX says that must fail.
26621         * lib/fts.c (diropen): Likewise.
26622         * lib/save-cwd.c (save_cwd): Likewise.
26623         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26624         well, for minor improvements on hosts that lack O_DIRECTORY.
26625         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26626         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26627         Fall back on chown if open failed with EACCES.
26628
26629         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26630         Report an error at compile-time if only a 1-second nominal clock
26631         resolution is found.
26632
26633         * lib/lchmod.h: New file.
26634         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26635         (make_dir_parents): Use lchown rather than chown, and
26636         lchmod rather than chmod.
26637
26638         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26639         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26640         "proc" reported by n0dalus.
26641
26642         * lib/mountlist.c: Include <limits.h>.
26643         (dev_from_mount_options)
26644         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26645         New function.  It no longer assumes "dev=" has the System V meaning
26646         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26647         (read_file_system_list)
26648         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26649         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26650         dev= in that case.
26651
26652         * lib/posixtm.h (PDS_PRE_2000): New macro.
26653         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26654         allow_century.  All usages changed.  Reject dates outside the range
26655         1969-1999 if PDS_PRE_2000 is used.
26656
26657 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26658
26659         Sync from coreutils.
26660         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26661         (Time of day items): Mention the possibility of leap seconds.
26662         Problem reported by Dr. David Alan Gilbert.
26663
26664 2006-01-09  Jim Meyering  <jim@meyering.net>
26665
26666         Sync from coreutils.
26667
26668         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26669
26670         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26671
26672         * lib/modechange.c (mode_compile): Reject an invalid mode string
26673         that starts with an octal digit.  From Andreas Gruenbacher.
26674
26675         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26676         and dup to open_safer and dup_safer, respectively.
26677         (openat_permissive): Fix typo in comment.
26678
26679         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26680         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26681         (_): Remove; no longer needed.
26682         (openat): Renamed from rpl_openat; no need for rpl_openat
26683         since openat.h renames openat for us.
26684         Replace most of the body with a call to openat_permissive,
26685         to avoid duplicate code.
26686         Port to (probably hypothetical) environments were mode_t is
26687         wider than int.
26688         (openat_permissive): Require mode arg, so that we can check
26689         types better.  Put it just after flags.  Change cwd failure
26690         indicator from pointer-to-bool to pointer-to-errno-value.
26691         All callers changed.
26692         Invoke openat_save_fail and/or openat_restore_fail if
26693         cwd_errno is null, so that openat can call us.
26694         (openat_permissive, fdopendir, fstatat, unlinkat):
26695         Simplify errno handling to avoid some duplicate code,
26696         as it's OK to set errno on success.
26697         * lib/openat.h: Revamp code so that function macros depend on
26698         __OPENAT_PREFIX only, not also on AT_FDCWD.
26699         (openat_ro): Remove.  Caller changed to use openat_permissive.
26700         (openat_permissive): Now a macro, if not a function.
26701         (openat_restore_fail, openat_save_fail): Now always functions,
26702         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26703
26704         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26705         and openat.c.
26706         * lib/mkdirat.c: Include openat-priv.h.
26707         Remove definitions of macros defined therein.
26708         * lib/openat.c: Likewise.
26709
26710         * lib/mkdirat.c (mkdirat): New file and function.
26711         * lib/openat.h (mkdirat): Declare.
26712
26713         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26714
26715         * lib/openat.h (openat_permissive): Declare.
26716         (openat_ro): Define.
26717
26718         * lib/openat.c (EXPECTED_ERRNO): New macro.
26719         (openat_permissive): New function -- used in remove.c rewrite.
26720         (all functions): Set errno just before returning, only if there
26721         was an actual failure.
26722         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26723
26724         Emulate openat-family functions using Linux's procfs, if possible.
26725         Idea and some code based on Ulrich Drepper's glibc changes.
26726
26727         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26728         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26729         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26730         before falling back on save_cwd and restore_cwd.
26731         (fdopendir, fstatat, unlinkat): Likewise.
26732
26733         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26734         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26735
26736         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26737         as second argument to va_arg.  Otherwise, some versions of gcc
26738         warn that `if this code is reached, the program will abort'.
26739
26740 2006-01-09  Jim Meyering  <jim@meyering.net>
26741
26742         Sync from coreutils.
26743         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26744         Require openat-priv.h.
26745
26746 2006-01-09  Bruno Haible  <bruno@clisp.org>
26747
26748         * modules/strnlen (Include): Use strnlen.h.
26749
26750 2006-01-09  Bruno Haible  <bruno@clisp.org>
26751
26752         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26753
26754 2006-01-09  Bruno Haible  <bruno@clisp.org>
26755
26756         * lib/sysexit_.h (EX_OK): New macro.
26757         Suggested by Martin Lambers <marlam@marlam.de>.
26758
26759 2006-01-09  Bruno Haible  <bruno@clisp.org>
26760
26761         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26762         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26763
26764 2006-01-09  Bruno Haible  <bruno@clisp.org>
26765
26766         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26767         numbers.
26768
26769 2006-01-09  Bruno Haible  <bruno@clisp.org>
26770
26771         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26772         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26773         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26774         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26775
26776 2006-01-09  Bruno Haible  <bruno@clisp.org>
26777
26778         * build-aux/javacomp.sh.in: New file, moved from lib/.
26779         * modules/javacomp-script (Files): Update.
26780         (configure.ac): Add AC_CONFIG_FILES invocation.
26781         (EXTRA_DIST): Remove variable.
26782
26783         * build-aux/javaexec.sh.in: New file, moved from lib/.
26784         * modules/javaexec (Files): Update.
26785         (configure.ac): Add AC_CONFIG_FILES invocation.
26786         (EXTRA_DIST): Remove javaexec.sh.in.
26787
26788         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26789         * modules/csharpcomp-script (Files): Update.
26790         (configure.ac): Add AC_CONFIG_FILES invocation.
26791         (EXTRA_DIST): Remove variable.
26792
26793         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26794         * modules/csharpexec (Files): Update.
26795         (configure.ac): Add AC_CONFIG_FILES invocation.
26796         (EXTRA_DIST): Remove csharpexec.sh.in.
26797
26798 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26799
26800         Sync from coreutils.
26801
26802         Add POSIX ACL support
26803         * lib/acl.h (copy_acl, set_acl): Add declarations.
26804         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26805         systems other than Linux.
26806         (chmod_or_fchmod): New function: use fchmod when possible,
26807         and chmod otherwise.
26808         (file_has_acl): Add a POSIX ACL implementation, with a
26809         Linux-specific subcase.
26810         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26811         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26812         acls are unsupported.
26813         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26814         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26815         are unsupported.
26816
26817 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26818
26819         Sync from coreutils.
26820         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26821
26822 2006-01-07  Bruno Haible  <bruno@clisp.org>
26823
26824         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26825         gl_EARLY.
26826
26827 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26828
26829         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26830         Problem reported for Mingw by Mark Junker.
26831
26832 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26833
26834         * README: Gnulib normally doesn't generate a tarball.
26835
26836 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26837
26838         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26839         long int, not int, for nanosecond counts, so that people who are
26840         used to POSIX struct timespec won't be surprised.  Reported by Jim
26841         Meyering.
26842
26843 2005-12-28  Bruno Haible  <bruno@clisp.org>
26844
26845         * build-aux/config.rpath: Update from GNU gettext.
26846
26847 2005-12-16  Jim Meyering  <jim@meyering.net>
26848
26849         * modules/fprintftime: New module.
26850         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26851
26852 2005-12-16  Jim Meyering  <jim@meyering.net>
26853
26854         * m4/fprintftime.m4: New file.
26855
26856 2005-12-16  Jim Meyering  <jim@meyering.net>
26857
26858         * lib/fprintftime.c, lib/fprintftime.h: New files.
26859
26860 2005-12-15  Simon Josefsson  <jas@extundo.com>
26861
26862         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26863         new m4/socklen.m4.
26864
26865 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26866
26867         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26868         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26869
26870 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26871
26872         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26873         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26874         struct uparams is valid. Fall back to the default values if it is
26875         not.
26876
26877 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26878
26879         * modules/argp (Files): Add argp-pin.c
26880         (Depends-on): dirname
26881         (lib_SOURCES): Add argp-pin.c
26882
26883 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26884
26885         * m4/argp.m4:  Check if program_invocation_name and
26886         program_invocation_short_name are declared and define appropriate
26887         macros if they are not.
26888
26889 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26890
26891         * lib/argp-help.c (__argp_base_name): New function
26892         (__argp_short_program_name): Rewrite using __argp_base_name
26893         * lib/argp-namefrob.h: Define program_invocation_name and
26894         program_invocation_short_name if requested
26895         (__argp_base_name): Add prototype
26896         * lib/argp-parse.c (argp_def): Use gettext wrappers
26897         (argp_default_parser): Use __argp_base_name
26898         * lib/argp-pin.c: New file. Defines program_invocation_name and
26899         program_invocation_short_name on systems that lack them.
26900
26901 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26902
26903         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26904         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26905         porting problem reported by Georg Schwarz in
26906         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26907
26908 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26911         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26912         porting problem reported by Georg Schwarz in
26913         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26914
26915 2005-12-05  Bruno Haible  <bruno@clisp.org>
26916
26917         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26918         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26919         Reported by Mark Junker <mjscod@gmx.de>.
26920
26921 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26922
26923         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26924         Use implementation from Albert Chin, with some
26925         comments/corrections by Stepan Kasal and myself.
26926
26927 2005-12-02  Bruno Haible  <bruno@clisp.org>
26928
26929         * gnulib-tool (func_import): Accept GPLed build tool modules when
26930         --lgpl is given.
26931         * modules/csharpcomp-script: New file.
26932         * modules/csharpcomp: Depend on it.
26933         * modules/javacomp-script: New file.
26934         * modules/javacomp: Depend on it.
26935         Suggested by Simon Josefsson.
26936
26937 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26938
26939         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26940         statement, to work around an HP-UX 10.20 compiler bug reported by
26941         Peter O'Gorman.
26942
26943 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26944
26945         * modules/savedir (Depends-on): Add openat.
26946
26947 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26948
26949         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26950         (uintmax_t) [defined uintmax_t]: Do not declare.
26951         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26952         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26953         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26954         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26955         sake of portability to weird hosts that C allows (though we don't
26956         know of any practical examples).
26957
26958         * lib/savedir.h (fdsavedir): New decl.
26959         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26960         contains most of the former guts of savedir.
26961         (savedir): Use savedirstream.
26962         Include "openat.h".
26963
26964 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26965
26966         * modules/obstack (Files): Add m4/ulonglong.m4.
26967         Problem reported by Davide Angelocola.
26968
26969 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26970
26971         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26972         coreutils no longer futzes with rounding modes.
26973
26974 2005-11-14  Jim Meyering  <jim@meyering.net>
26975
26976         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26977         replacement of mkstemp.
26978
26979 2005-11-10  Simon Josefsson  <jas@extundo.com>
26980
26981         * lib/readline.c: Remove EOL.
26982
26983 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26984
26985         * modules/gethrxtime (Depends-on): Add gettime.
26986
26987 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26988
26989         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26990         or gettimeofday; no longer needed.
26991
26992 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26993
26994         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26995         time business.
26996         (gethrxtime) [! (HAVE_NANOUPTIME
26997         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26998         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26999         our own approximation.
27000
27001 2005-11-08  Eric Blake  <ebb9@byu.net>
27002
27003         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27004
27005 2005-11-08  Eric Blake  <ebb9@byu.net>
27006
27007         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27008
27009 2005-11-04  Bruno Haible  <bruno@clisp.org>
27010
27011         * gnulib-tool: Implement --update mode.
27012
27013 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27014
27015         Fix porting problem reported by Theodoros V. Kalamatianos.
27016         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27017         Don't assume that futimes failing means we must fail.
27018
27019 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27020
27021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27022         variables to suggest the intended function of the PATH_MAX check.
27023
27024 2005-10-30  Kean Johnston  <jkj@sco.com>
27025
27026         Trivial changes to support SCO systems.
27027         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27028         as PATH_MAX.
27029         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27030         where __ptr is null when no I/O is pending.
27031
27032 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27033
27034         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27035         leave errno alone.  Problem reported by Dmitry V. Levin.
27036
27037 2005-10-28  Simon Josefsson  <jas@extundo.com>
27038
27039         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
27040         Test more.
27041
27042         * tests/test-gc-md2.c, tests/test-md2.c: New files.
27043
27044         * modules/md2, modules/md2-tests: New files.
27045
27046 2005-10-28  Simon Josefsson  <jas@extundo.com>
27047
27048         * m4/inet_ntop.m4: More tests.
27049
27050         * m4/gc-md2.m4, md2.m4: New file.
27051
27052 2005-10-28  Simon Josefsson  <jas@extundo.com>
27053
27054         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
27055         "restrict" keywords, as per POSIX.  Protect the function
27056         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
27057         Don't use K&R prototypes.  Check the sprintf return values.
27058         Re-define EAFNOSUPPORT if not present.  Indent.
27059
27060         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27061         suggested by Bruno Haible <bruno@clisp.org>.
27062
27063         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27064
27065         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27066
27067         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27068         libgcrypt).
27069
27070         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27071
27072         * lib/md2.h, lib/md2.c: New files.
27073
27074 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27075
27076         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27077         errno alone.  Problem reported by Frederic Jolliton.
27078
27079 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27080
27081         * modules/verify (License): Change from GPL to LGPL.  This is a
27082         tiny module and there are apparently near-equivalents that are
27083         under the BSD license.
27084
27085 2005-10-24  Simon Josefsson  <jas@extundo.com>
27086
27087         * modules/sha1: Relicense to LGPL.
27088
27089 2005-10-24  Simon Josefsson  <jas@extundo.com>
27090
27091         * lib/md4.h: Shrink buffer size, now that we changed the type.
27092
27093 2005-10-23  Simon Josefsson  <jas@extundo.com>
27094
27095         * gnulib-tool (func_import): Fix --tests-base.
27096
27097 2005-10-22  Simon Josefsson  <jas@extundo.com>
27098
27099         * modules/arcfour (Depends-on): Need stdint.
27100
27101 2005-10-22  Simon Josefsson  <jas@extundo.com>
27102
27103         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27104         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27105
27106 2005-10-22  Simon Josefsson  <jas@extundo.com>
27107
27108         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27109         suggested by Bruno Haible <bruno@clisp.org>.
27110
27111 2005-10-22  Simon Josefsson  <jas@extundo.com>
27112
27113         * lib/crc.h: Include stddef.h, for size_t.
27114
27115 2005-10-22  Simon Josefsson  <jas@extundo.com>
27116
27117         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27118         arcfour_context struct (simplify test vector testing in GNU
27119         Shishi).
27120
27121 2005-10-21  Simon Josefsson  <jas@extundo.com>
27122
27123         * modules/des, modules/des-tests: New files.
27124
27125         * modules/gc-des, modules/gc-des-tests: New files.
27126
27127         * tests/test-des.c, tests/test-gc-des.c: New file.
27128
27129 2005-10-21  Simon Josefsson  <jas@extundo.com>
27130
27131         * modules/arctwo, modules/arctwo-tests: New files.
27132
27133         * tests/test-arctwo.c: New file.
27134
27135         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27136
27137         * tests/test-gc-arctwo.c: New file.
27138
27139 2005-10-21  Simon Josefsson  <jas@extundo.com>
27140
27141         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27142         Bruno Haible <bruno@clisp.org>.
27143
27144         * m4/gc-des.m4: New file.
27145
27146 2005-10-21  Simon Josefsson  <jas@extundo.com>
27147
27148         * m4/arctwo.m4: New file.
27149
27150         * m4/gc-arctwo.m4: New file.
27151
27152 2005-10-21  Simon Josefsson  <jas@extundo.com>
27153
27154         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27155         block.
27156
27157 2005-10-21  Simon Josefsson  <jas@extundo.com>
27158
27159         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27160         <bruno@clisp.org>.
27161
27162         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27163
27164         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27165         Bruno Haible <bruno@clisp.org>.
27166
27167         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27168         <bruno@clisp.org>.
27169
27170 2005-10-21  Simon Josefsson  <jas@extundo.com>
27171
27172         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27173
27174 2005-10-21  Simon Josefsson  <jas@extundo.com>
27175
27176         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27177
27178 2005-10-21  Simon Josefsson  <jas@extundo.com>
27179
27180         * lib/des.h, lib/des.c: New files.
27181
27182         * lib/gc-gnulib.c: Support DES.c
27183
27184 2005-10-21  Simon Josefsson  <jas@extundo.com>
27185
27186         * lib/arctwo.h, lib/arctwo.c: New files.
27187
27188         * lib/gc-gnulib.c: Support ARCTWO.
27189
27190 2005-10-21  Simon Josefsson  <jas@extundo.com>
27191
27192         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27193         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27194
27195 2005-10-21  Simon Josefsson  <jas@extundo.com>
27196
27197         * gnulib-tool (func_import, func_create_testdir): Define automake
27198         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27199         Makefile.am snippet),
27200         suggested by Bruno Haible <bruno@clisp.org>.
27201
27202         * modules/gc (Makefile.am): Use it.
27203
27204 2005-10-21  Bruno Haible  <bruno@clisp.org>
27205
27206         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27207         patch.
27208
27209 2005-10-19  Simon Josefsson  <jas@extundo.com>
27210
27211         * tests/test-gc-rijndael.c: New file.
27212
27213         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27214
27215 2005-10-19  Simon Josefsson  <jas@extundo.com>
27216
27217         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27218         interface too.
27219
27220 2005-10-19  Simon Josefsson  <jas@extundo.com>
27221
27222         * tests/test-gc-arcfour.c: New file.
27223
27224         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27225
27226 2005-10-19  Simon Josefsson  <jas@extundo.com>
27227
27228         * modules/gc-md4, modules/gc-md4-tests: New file.
27229
27230         * tests/test-gc-md4.c: New file.
27231
27232 2005-10-19  Simon Josefsson  <jas@extundo.com>
27233
27234         * m4/gc-md4.m4: New file.
27235
27236 2005-10-19  Simon Josefsson  <jas@extundo.com>
27237
27238         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27239         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27240         <kasal@ucw.cz>.
27241
27242 2005-10-19  Simon Josefsson  <jas@extundo.com>
27243
27244         * m4/gc-arcfour.m4: New file.
27245
27246         * m4/gc-rijndael.m4: New file.
27247
27248 2005-10-19  Simon Josefsson  <jas@extundo.com>
27249
27250         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27251
27252 2005-10-19  Simon Josefsson  <jas@extundo.com>
27253
27254         * lib/gc-gnulib.c: Support ARCFOUR.
27255
27256 2005-10-19  Simon Josefsson  <jas@extundo.com>
27257
27258         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27259         support.
27260
27261         * lib/gc.h: Add ECB enum type.
27262
27263         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27264
27265 2005-10-18  Simon Josefsson  <jas@extundo.com>
27266
27267         * tests/test-md5.c: New file.
27268
27269         * modules/md5-tests: New file.
27270
27271 2005-10-18  Simon Josefsson  <jas@extundo.com>
27272
27273         * tests/test-md4.c: New file.
27274
27275         * modules/md4, modules/md4-tests: New files.
27276
27277 2005-10-18  Simon Josefsson  <jas@extundo.com>
27278
27279         * m4/md4.m4: New file.
27280
27281 2005-10-18  Simon Josefsson  <jas@extundo.com>
27282
27283         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27284
27285 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27286
27287         * gnulib-tool (func_create_testdir): Omit the second check whether
27288         BUILT_SOURCES in nonempty.
27289
27290 2005-10-17  Simon Josefsson  <jas@extundo.com>
27291
27292         * tests/test-rijndael.c: New file.
27293
27294 2005-10-17  Simon Josefsson  <jas@extundo.com>
27295
27296         * modules/sha1: Depend on stdint instead of md5.
27297
27298         * modules/md5: Depend on stdint, remove uint32_t.
27299
27300 2005-10-17  Simon Josefsson  <jas@extundo.com>
27301
27302         * modules/gc-sha1-tests: New file.
27303
27304         * tests/test-gc-sha1.c: New file.
27305
27306 2005-10-17  Simon Josefsson  <jas@extundo.com>
27307
27308         * m4/md5.m4: Remove call to uint32_t.m4.
27309
27310 2005-10-17  Simon Josefsson  <jas@extundo.com>
27311
27312         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27313
27314         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27315         md5.h.
27316
27317         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27318
27319         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27320
27321 2005-10-17  Simon Josefsson  <jas@extundo.com>
27322
27323         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27324
27325 2005-10-17  Simon Josefsson  <jas@extundo.com>
27326
27327         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27328
27329 2005-10-17  Simon Josefsson  <jas@extundo.com>
27330
27331         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27332
27333         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27334
27335 2005-10-17  Bruno Haible  <bruno@clisp.org>
27336
27337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27338         that it can also be used in a test.
27339
27340 2005-10-16  Bruno Haible  <bruno@clisp.org>
27341
27342         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27343         TESTS_ENVIRONMENT, so that individual tests can augment it.
27344
27345         * gnulib-tool (func_create_testdir): Use an intermediate target for
27346         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27347         macros, like $(ALLOCA_H), which cannot be passed through the command
27348         line.
27349
27350 2005-10-15  Simon Josefsson  <jas@extundo.com>
27351
27352         * modules/rijndael-tests: New file.
27353
27354         * modules/rijndael: New file.
27355
27356 2005-10-15  Simon Josefsson  <jas@extundo.com>
27357
27358         * m4/rijndael.m4: New file.
27359
27360 2005-10-15  Simon Josefsson  <jas@extundo.com>
27361
27362         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27363
27364         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27365
27366 2005-10-14  Simon Josefsson  <jas@extundo.com>
27367
27368         * tests/test-arcfour.c: New file.
27369
27370         * modules/arcfour, modules/arcfour-tests: New files.
27371
27372 2005-10-14  Simon Josefsson  <jas@extundo.com>
27373
27374         * m4/arcfour.m4: New file.
27375
27376 2005-10-14  Simon Josefsson  <jas@extundo.com>
27377
27378         * lib/arcfour.h, lib/arcfour.c: New files.
27379
27380 2005-10-14  Roland McGrath  <roland@redhat.com>
27381
27382         Import from libc.  [BZ #1331]
27383         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27384         macro argument.
27385         Reported by Matej Vela <vela@debian.org>.
27386
27387 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27388
27389         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27390         include <wchar.h>; no longer needed.
27391
27392 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27393
27394         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27395
27396 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27397         and  Ulrich Drepper  <drepper@redhat.com>
27398
27399         Import from libc.
27400         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27401         instead of inline stream orientation test and two separate
27402         function calls.  Pay no attention to USE_IN_LIBIO.
27403
27404 2005-10-13  Simon Josefsson  <jas@extundo.com>
27405
27406         * modules/gc-hmac-md5-tests: New file.
27407
27408         * tests/test-gc-hmac-sha1.c: New file.
27409
27410         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27411
27412         * modules/gc-hmac-md5-tests: New file.
27413
27414         * tests/test-gc-md5.c: New file.
27415
27416         * modules/gc-md5-tests: New file.
27417
27418 2005-10-13  Simon Josefsson  <jas@extundo.com>
27419
27420         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27421         Move memory allocation outside of loop.
27422
27423 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27424
27425         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27426         intermediate directory is in a read-only file system.  Problem
27427         reported by Eric Blake.
27428
27429 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27430
27431         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27432
27433 2005-10-12  Simon Josefsson  <jas@extundo.com>
27434
27435         * tests/test-hmac-sha1.c: New file.
27436
27437         * modules/hmac-sha1-tests: New file.
27438
27439         * modules/hmac-sha1: New file.
27440
27441 2005-10-12  Simon Josefsson  <jas@extundo.com>
27442
27443         * modules/gc-sha1: New file.
27444
27445 2005-10-12  Simon Josefsson  <jas@extundo.com>
27446
27447         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27448
27449         * tests/test-gc-pbkdf2-sha1.c: New file.
27450
27451 2005-10-12  Simon Josefsson  <jas@extundo.com>
27452
27453         * modules/gc-md5, modules/gc-hmac-md5: New files.
27454
27455         * modules/gc (Files): Remove md5, memxor and hmac files.
27456
27457 2005-10-12  Simon Josefsson  <jas@extundo.com>
27458
27459         * m4/gc-pbkdf2-sha1.m4: New file.
27460
27461         * m4/gc-hmac-sha1.m4: New file.
27462
27463         * m4/gc-sha1: New file.
27464
27465         * m4/hmac-sha1.m4: New file.
27466
27467 2005-10-12  Simon Josefsson  <jas@extundo.com>
27468
27469         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27470
27471         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27472
27473 2005-10-12  Simon Josefsson  <jas@extundo.com>
27474
27475         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27476         suggested by Bruno Haible <bruno@clisp.org>.
27477
27478 2005-10-12  Simon Josefsson  <jas@extundo.com>
27479
27480         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27481
27482 2005-10-12  Simon Josefsson  <jas@extundo.com>
27483
27484         * lib/gc-pbkdf2-sha1.c: New file.
27485
27486         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27487
27488 2005-10-12  Simon Josefsson  <jas@extundo.com>
27489
27490         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27491
27492         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27493
27494 2005-10-12  Simon Josefsson  <jas@extundo.com>
27495
27496         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27497         GC_USE_HMAC_MD5, respectively.
27498
27499         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27500         (gc_md5): Fix typo.
27501
27502         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27503
27504         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27505
27506         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27507
27508 2005-10-12  Bruno Haible  <bruno@clisp.org>
27509
27510         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27511         Reported by Stepan Kasal <kasal@ucw.cz>.
27512
27513 2005-10-11  Simon Josefsson  <jas@extundo.com>
27514
27515         * tests/test-crc.c: New file.
27516
27517         * modules/crc, modules/crc-tests: New files.
27518
27519 2005-10-11  Simon Josefsson  <jas@extundo.com>
27520
27521         * m4/crc.m4: New file.
27522
27523 2005-10-11  Simon Josefsson  <jas@extundo.com>
27524
27525         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27526
27527         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27528
27529         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27530
27531 2005-10-11  Simon Josefsson  <jas@extundo.com>
27532
27533         * lib/crc.h, lib/crc.c: New files.
27534
27535         * lib/gc.h (gc_hash_buffer): Add doc.
27536
27537 2005-10-11  Bruno Haible  <bruno@clisp.org>
27538
27539         * modules/c-strcasestr: New file.
27540         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27541
27542 2005-10-11  Bruno Haible  <bruno@clisp.org>
27543
27544         * modules/c-strcase: New file.
27545         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27546
27547 2005-10-11  Bruno Haible  <bruno@clisp.org>
27548
27549         * lib/strcasecmp.c: Include limits.h.
27550         (strcasecmp): Avoid integer overflow on exotic platforms.
27551         * lib/strncasecmp.c: Include limits.h.
27552         (strncasecmp): Avoid integer overflow on exotic platforms.
27553         Reported by Paul Eggert.
27554
27555 2005-10-11  Bruno Haible  <bruno@clisp.org>
27556
27557         * lib/c-strcasestr.h: New file, from GNU gettext.
27558         * lib/c-strcasestr.c: New file, from GNU gettext.
27559
27560 2005-10-11  Bruno Haible  <bruno@clisp.org>
27561
27562         * lib/c-strcase.h: New file, from GNU gettext.
27563         * lib/c-strcasecmp.c: New file, from GNU gettext.
27564         * lib/c-strncasecmp.c: New file, from GNU gettext.
27565
27566 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27567
27568         * modules/mempcpy (License): GPL -> LGPL.
27569         * modules/strchrnul (License): Likewise.
27570         * modules/sysexits (License): Likewise.
27571
27572 2005-10-08  Simon Josefsson  <jas@extundo.com>
27573
27574         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27575
27576 2005-10-07  Simon Josefsson  <jas@extundo.com>
27577
27578         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27579
27580 2005-10-06  Simon Josefsson  <jas@extundo.com>
27581
27582         * tests/test-hmac-md5.c: New file.
27583
27584         * modules/hmac-md5-tests: New file.
27585
27586         * modules/hmac-md5: New file.
27587
27588 2005-10-06  Simon Josefsson  <jas@extundo.com>
27589
27590         * m4/hmac-md5.m4: New file.
27591
27592         * m4/memxor.m4: Require gl_C_RESTRICT.
27593
27594 2005-10-06  Simon Josefsson  <jas@extundo.com>
27595
27596         * lib/memxor.c (memxor): Avoid casts and warnings.
27597
27598 2005-10-06  Simon Josefsson  <jas@extundo.com>
27599
27600         * lib/hmac-md5.c: New file.
27601
27602         * lib/hmac.h: New file.
27603
27604 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27605
27606         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27607         promotes to int, not unsigned int, to catch the AIX 5.3
27608         compiler bug.
27609
27610 2005-10-05  Simon Josefsson  <jas@extundo.com>
27611
27612         * modules/memxor: New file.
27613
27614         * modules/iconv (Files): Move config.rpath to havelib, it is used
27615         there.
27616
27617         * modules/havelib (Files): Add config.rpath.
27618
27619 2005-10-05  Simon Josefsson  <jas@extundo.com>
27620
27621         * m4/memxor.m4: New file.
27622
27623 2005-10-05  Simon Josefsson  <jas@extundo.com>
27624
27625         * lib/memxor.c (memxor): Fix compiler error.
27626
27627         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27628         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27629
27630         * lib/memxor.h, lib/memxor.c: New files.
27631
27632         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27633         we assume all systems have it, suggested by Jim Meyering
27634         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27635         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27636         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27637         same reasons.
27638
27639 2005-10-05  Simon Josefsson  <jas@extundo.com>
27640
27641         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27642
27643 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27644
27645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27646         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27647         needed, since the source code now assumes these .h files.
27648
27649 2005-10-05  Derek Price  <derek@ximbiot.com>
27650
27651         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27652
27653 2005-10-05  Bruno Haible  <bruno@clisp.org>
27654
27655         * modules/stdint (License): Change to LGPL.
27656
27657 2005-10-04  Simon Josefsson  <jas@extundo.com>
27658
27659         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27660         D. Baushke" <mdb@gnu.org>.
27661
27662 2005-10-04  Bruno Haible  <bruno@clisp.org>
27663
27664         * lib/verify.h (verify_true): Provide alternative definition for C++.
27665
27666 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27667
27668         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27669         (SSIZE_MAX): New macro, if not already defined.
27670         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27671         than 2 GiB.
27672
27673 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27674
27675         Sync from coreutils.
27676         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27677         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27678         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27679         ULLONG_MAX doesn't work with 2.7.2.1.
27680
27681 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27682
27683         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27684         From Ben Pfaff.
27685
27686         * modules/exclude (Depends-on): Depend on verify.
27687         * modules/strtoimax (Depends-on): Likewise.
27688         * modules/utimecmp (Depends-on): Likewise.
27689
27690 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27691
27692         * lib/exclude.c: Include verify.h.
27693         (verify): Remove.  All callers changed to use verify.h's version.
27694         * lib/strtoimax.c: Likewise.
27695         * lib/utimecmp.c: Likewis.e
27696
27697         Sync from coreutils.
27698         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27699         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27700         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27701         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27702         bother returning ENOSYS if settimeofday or stime fails; just let
27703         them return whatever errno they want to return.
27704         * lib/utimens.c: Include unistd.h, for dup2.
27705         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27706         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27707
27708 2005-10-02  Jim Meyering  <jim@meyering.net>
27709
27710         Sync from coreutils.
27711         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27712         from glibc-2.2.5 that fails for read-only files.
27713
27714 2005-10-02  Jim Meyering  <jim@meyering.net>
27715
27716         Sync from coreutils.
27717         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27718         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27719         `#if HAVE_CONFIG_H'.
27720         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27721         Remove AT_FDCWD test.
27722         Do not consume the fd unless successful.
27723         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27724         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27725         block, so that we don't even try to compile it if settimeofday is
27726         available.  This works around a compilation failure on OSF1 V5.1,
27727         due to stime requiring a `long int*' while tv_sec is `int'.
27728
27729 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27730
27731         Sync from coreutils.
27732         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27733         against `yes', rather than just testing for nonempty.
27734
27735 2005-10-01  Simon Josefsson  <jas@extundo.com>
27736
27737         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27738         and Darwin.
27739
27740         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27741         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27742         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27743         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27744         Check if struct addrinfo is declared.
27745
27746 2005-10-01  Simon Josefsson  <jas@extundo.com>
27747
27748         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27749         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27750         AI_* and EAI_* definitions.  Protect function declarations.
27751
27752 2005-10-01  Jim Meyering  <jim@meyering.net>
27753
27754         Sync from coreutils.
27755
27756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27757         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27758         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27760         in the inet and nsl libraries.  Required on Solaris 5.7.
27761
27762 2005-10-01  Jim Meyering  <jim@meyering.net>
27763
27764         Sync from coreutils.
27765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27766         in the inet and nsl libraries.  Required on Solaris 5.7.
27767
27768 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27769
27770         * lib/getdelim.c (getdelim): Remove unused variables.
27771
27772 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27773
27774         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27775         so that the code works even with ancient cpp.  Portability problem
27776         with GCC 2.7.2.1 reported by Thomas M.Ott.
27777
27778 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27779
27780         * modules/regex (Depends-on): Add strcase.
27781
27782         * modules/gethostname (Licence): Change from GPL to LGPL, since
27783         gethostname.c is a trivial implementation of a standard library
27784         function.
27785         * modules/poll (License): Change from GPL to LGPL, since it's
27786         derived from LGPL code.
27787
27788 2005-09-27  Jim Meyering  <jim@meyering.net>
27789
27790         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27791         HAVE_CONFIG_H.
27792
27793         * lib/intprops.h (signed_type_or_expr__): Define.
27794         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27795         for unsigned types.
27796
27797 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27798
27799         * lib/verify.h (verify_expr): Remove, replacing with:
27800         (verify_true): New macro that returns true instead of void.
27801         (verify_type__): Remove.
27802         (verify): Use verify_true rather than verify_type__.
27803
27804 2005-09-26  Bruno Haible  <bruno@clisp.org>
27805
27806         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27807         is necessary.
27808         (lib_SOURCES): Remove mbchar.c.
27809         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27810         (Files): Add m4/mbrtowc.m4.
27811         * modules/mbiter: Likewise.
27812         * modules/mbuiter: Likewise.
27813
27814 2005-09-26  Bruno Haible  <bruno@clisp.org>
27815
27816         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27817         compile mbchar.c if they are not both present.
27818         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27819         * m4/mbiter.m4 (gl_MBITER): Likewise.
27820         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27821         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27822         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27823
27824 2005-09-25  Jim Meyering  <jim@meyering.net>
27825
27826         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27827         also uses socklen_t.
27828
27829 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27830
27831         * lib/utimens.c (ENOSYS): Define if not already defined.
27832         (futimens): Support having a null PATH if the file descriptor
27833         is nonnegative.
27834
27835         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27836         Remove.
27837         (__attribute): Define to empty unless GCC 3.1 or later.
27838         This works around a core dump on OpenBSD 3.4, which has GCC
27839         2.95.3, which dumps core when given __attribute__(()).  It also
27840         simplifies other tests, since we really don't want to bother with
27841         worrying about which ancient version of GCC supported what.
27842         Original problem reported by Yoann Vandoorselaere, with part of
27843         the fix suggested by Derek Price.
27844
27845 2005-09-24  Jim Meyering  <jim@meyering.net>
27846
27847         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27848         so we can once again use a positive bitfield width of 1 -- now we
27849         don't have to explain why we were using a bitfield width of 2.
27850
27851 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27852
27853         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27854         and similarly for the other external symbols.  Problem reported
27855         by James Gallager.
27856
27857         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27858         bug reported by Jim Meyering.
27859
27860         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27862         not needed, since socklen is a prerequisite module.
27863
27864 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27865
27866         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27867         Problem reported by Eric Blake.
27868         (getaddrinfo): Initialize se so that it's not garbage.
27869         Redo internal storage allocation so that it doesn't make unportable
27870         assumptions about alignment.
27871         Fix a memory leak.
27872
27873         * lib/utimens.c (futimens): Use futimesat if available.
27874         Prefer it to futimes since it doesn't have the futimes bug.
27875
27876         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27877         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27878         Instead, declare a function that returns a pointer to an array,
27879         and use verify_type__ to declare the size of the array.
27880         Problem and germ of a solution reported by Bruno Haible.
27881         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27882         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27883
27884 2005-09-23  Jim Meyering  <jim@meyering.net>
27885
27886         Sync from coreutils.
27887         Correct build failure (socklen_t not defined) on at least
27888         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27889         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27890
27891 2005-09-23  Jim Meyering  <jim@meyering.net>
27892
27893         * modules/getaddrinfo (Depends-on): Add socklen.
27894
27895 2005-09-23  Bruno Haible  <bruno@clisp.org>
27896
27897         * tests/test-verify.c: New file.
27898
27899 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         Sync from coreutils.
27902
27903         * modules/argmatch (Depends-on): Add verify.
27904         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27905         unistd-safer.
27906         * modules/save-cwd (Depends-on): Likewise.
27907
27908         * modules/openat (Files): Add lib/openat-die.c.
27909         (Depends-on): Remove error, exitfail.
27910         Add dirname.
27911
27912         * modules/verify: New file.
27913         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27914         with "verify" module.
27915
27916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27917
27918         Sync from coreutils.
27919
27920         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27921         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27922         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27923         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27924         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27925         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27926         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27927         Don't bother checking for string.h, stdlib.h, unistd.h.
27928         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27929         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27930         module's job.
27931         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27932         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27933
27934         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27935         (gl_GETDATE): Use it.
27936
27937         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27938
27939 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27940
27941         Sync from coreutils.
27942
27943         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27944         stat-time.h.
27945         * lib/argmatch.h: Include verify.h
27946         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27947         (ARGMATCH_ASSERT): Remove; unused.
27948         * lib/canonicalize.c: Assume STDC_HEADERS.
27949         * lib/exclude.c: Include "strcase.h".
27950         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27951         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27952         and stdio-safer.h.
27953         (getusershell): Call fopen, not fopen_safer.
27954         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27955         Do not include unistd-safer.h.
27956         (save_cwd): Don't call fd_safer; no longer needed
27957         now that we include fcntl--.h.
27958
27959         * lib/getdate.y (relative_time): New type.
27960         (RELATIVE_TIME_0): New constant.
27961         (parser_control): Use relative_time instead of doing it ourselves.
27962         (%union): Add new relative_time rel member.
27963         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27964         Now typeless.
27965         (relunit, relunit_snumber): Now of type rel.
27966         (zone, rel, relunit, get_date): Adjust to above changes.
27967
27968         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27969         Do not include unistd-safer.h.
27970         (getloadavg): Don't call fd_safer; no longer needed
27971         now that we include fcntl--.h.
27972
27973         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27974         (make_dir_parents): Treat ENOSYS like EEXIST.
27975
27976         Improve quality of diagnostics on restore_cwd failure.
27977         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27978         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27979         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27980         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27981         each time through the loop.  Do not diagnose restore_cwd failure;
27982         that is the caller's job (and perhaps the caller does not care).
27983
27984         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27985         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27986         If the file already exists but is not a directory, don't bother
27987         to try to make its parents.
27988         Close potential file descriptor leak if we can't chdir("/") (!).
27989         Don't always return true if chdir($PWD) fails; return true only
27990         if the requested action was done successfully (except for the
27991         chdir($PWD)).
27992         Don't log final directory unless we actually made it.
27993         Refactor to avoid duplicate code to fix up permissions.
27994         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27995
27996         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27997         to make it a bit faster and (I hope) clearer.
27998         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27999         Fix bug in formats like %2N.
28000
28001         * lib/verify.h: New file.
28002
28003 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28004
28005         Sync from coreutils.
28006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28007
28008 2005-09-22  Jim Meyering  <jim@meyering.net>
28009
28010         Sync from coreutils.
28011
28012         * m4/lstat.m4 (gl_FUNC_LSTAT):
28013         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28014         Remove obsolete comment.
28015         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28016         * m4/xstrtod.m4: Likewise.
28017
28018         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28019
28020 2005-09-22  Jim Meyering  <jim@meyering.net>
28021
28022         Sync from coreutils.
28023
28024         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28025
28026         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28027         the .tm_year member, since otherwise gcc-4.0 would now warn about
28028         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28029
28030         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28031         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28032
28033         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28034         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28035         when run in a time zone for which daylight savings time is in effect
28036         for the starting date.
28037
28038         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
28039         stop us from restricting permissions of just-created absolute-named
28040         directories.
28041         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
28042         to restore initial working directory.
28043         * lib/mkdir-p.c (make_dir_parents): New parameter:
28044         different_working_dir, to tell caller if/when we change the working
28045         directory and are unable to return to the initial one.
28046         * lib/mkdir-p.h (make_dir_parents): Update prototype.
28047         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
28048         `return false'.  This fixes a bug introduced on 2004-07-30.
28049
28050         * lib/openat.c (fdopendir): Be sure to close the supplied
28051         file descriptor before returning.  This makes our replacement
28052         implementation a little closer to Solaris's, where fdopendir
28053         ties the file descriptor to the returned DIR* pointer.
28054         * lib/openat.c (unlinkat): New function.
28055         * lib/openat.h (unlinkat): Add prototype.
28056         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
28057         (openat_restore_fail): Rename from openat_restore_die.
28058         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28059
28060         Provide an alternative to exiting immediately upon save_cwd or
28061         restore_cwd failure.  Now, an application can arrange e.g.,
28062         to perform a longjump in that case.
28063         * lib/openat.c: Include dirname.h.
28064         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28065         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28066         and openat_restore_die rather than calling error directly.
28067         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28068
28069         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28070         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28071         define.
28072
28073         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28074         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28075                             int utc, int nanoseconds);
28076         Background:
28077         date should not have to allocate a megabyte of virtual memory to
28078         handle a format argument like +%1048575T.  When implemented with
28079         strftime, it must allocate such a buffer, use strftime to fill it
28080         in, print it, then free it.
28081         With fprintftime, it simply prints everything and exits.
28082         With no need for memory allocation, that's one fewer way to fail.
28083         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28084         optional field width, not before, so we accept %9:z, not %:9z.
28085         (my_strftime): Be sure to use L_('x') for literals.
28086
28087         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28088         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28089         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28090         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28091         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28092         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28093         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28094         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28095         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28096         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28097         * lib/xgethostname.c, lib/xreadlink.c:
28098         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28099
28100         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28101         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28102         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28103         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28104         and don't include <sys/file.h>).
28105
28106 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28107
28108         Sync from coreutils.
28109
28110         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28111         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28112         [!LDAV_DONE]: Avoid unused variable warning.
28113
28114 2005-09-21  Bruno Haible  <bruno@clisp.org>
28115
28116         * lib/unicodeio.h (unicode_to_mb): New declaration.
28117
28118 2005-09-20  Derek Price  <derek@ximbiot.com>
28119
28120         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28121         getaddrinfo.h.
28122
28123 2005-09-20  Bruno Haible  <bruno@clisp.org>
28124
28125         * gnulib-tool: Remove trailing slashes from the values specified for
28126         --source-base, --m4-base, --tests-base, --aux-dir.
28127         Suggested by Simon Josefsson <jas@extundo.com>.
28128
28129 2005-09-20  Bruno Haible  <bruno@clisp.org>
28130
28131         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28132         func_modules_to_filelist, func_import, func_create_testdir): Make all
28133         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28134         change when gnulib-tool is invoked in a different locale.
28135
28136 2005-09-19  Simon Josefsson  <jas@extundo.com>
28137
28138         * m4/socklen.m4: Fix typo.
28139
28140 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28141
28142         Use a consistent style for including <config.h>.
28143         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28144         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28145         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28146         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28147         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28148         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28149         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28150         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28151         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28152         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28153         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28154         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28155         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28156         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28157         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28158         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28159         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28160         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28161         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28162         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28163         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28164         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28165         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28166         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28167         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28168         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28169         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28170         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28171         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28172         lib/xstrtoumax.c, lib/yesno.c:
28173         Standardize inclusion of config.h.
28174         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28175         lib/inttostr.h:  Removed inclusion of config.h from header files.
28176         * lib/inttostr.c:  Adjusted in-tree users.
28177         * lib/timespec.h: Remove superfluous warning to include config.h.
28178         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28179         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28180         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28181         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28182         config.h with HAVE_CONFIG_H.
28183
28184 2005-09-19  Jim Meyering  <jim@meyering.net>
28185
28186         * modules/pathmax (License): Change to LGPL.
28187
28188 2005-09-19  Derek Price  <derek@ximbiot.com>
28189
28190         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28191
28192 2005-09-19  Bruno Haible  <bruno@clisp.org>
28193
28194         * gnulib-tool (import): Provide default for --tests-base.
28195
28196 2005-09-19  Bruno Haible  <bruno@clisp.org>
28197
28198         * doc/quote.texi: New file, extracted from gnulib.texi.
28199         * doc/ctime.texi: New file, extracted from gnulib.texi.
28200         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28201         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28202         * doc/gnulib.texi: Include them.
28203
28204 2005-09-18  Bruno Haible  <bruno@clisp.org>
28205
28206         Portability fix.
28207         * gnulib-tool (func_readlink): New function.
28208         (func_ln_if_changed): Use it.
28209
28210 2005-09-18  Bruno Haible  <bruno@clisp.org>
28211
28212         * gnulib-tool: Support --with-tests also with --import.
28213         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28214         (func_import): Use variables $testsbase and $inctests. Emit a
28215         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28216         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28217         SUBDIRS += $testsdir.
28218         (func_create_testdir): Update.
28219
28220 2005-09-18  Bruno Haible  <bruno@clisp.org>
28221
28222         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28223         instead of $dry_run.
28224         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28225         (func_ln_if_changed): Don't handle dry-run here.
28226         (func_import): In dry-run mode, detect more precisely which actions
28227         would be performed, and don't use "...ing" verbs.
28228
28229 2005-09-18  Bruno Haible  <bruno@clisp.org>
28230
28231         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28232         (func_import): Use join on two temporary files instead of three nested
28233         loops, in order to determine which files are new or old.
28234
28235 2005-09-18  Bruno Haible  <bruno@clisp.org>
28236
28237         * gnulib-tool (func_import): Comment out code that spits out the
28238         new files with --dry-run.
28239
28240 2005-09-18  Bruno Haible  <bruno@clisp.org>
28241
28242         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28243
28244 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28245
28246         * lib/stat-time.h: New file.
28247         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28248         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28249         in a different way.
28250         (timespec_cmp): New function.
28251         * lib/utimecmp.c: Include stat-time.h.
28252         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28253         members exist, not on the obsolescent ST_MTIM_NSEC.
28254         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28255
28256 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28259
28260 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28261
28262         * MODULES.html.sh (File system functions): Add stat-time.
28263         * modules/stat-time: New file.
28264         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28265         is now done in a different way, by the stat-time module.
28266         * modules/utimecmp (Depends-on): Add stat-time.
28267
28268 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28269
28270         * m4/st_mtim.m4: Remove.  Superseded by...
28271         * m4/stat-time.m4: New file.
28272         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28273         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28274
28275 2005-09-15  Derek Price  <derek@ximbiot.com>
28276
28277         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28278
28279 2005-09-15  Derek Price  <derek@ximbiot.com>
28280
28281         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28282         * lib/regex_internal.c: Ditto, using this...
28283         (__GNUC_PREREQ): ...new macro.
28284         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28285         using...
28286         (__GNUC_PREREQ): ...this new macro.
28287
28288         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28289
28290 2005-09-15  Derek Price  <derek@ximbiot.com>
28291             Paul Eggert  <eggert@cs.ucla.edu>
28292
28293         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28294         changes, consolidating in...
28295         * lib/regex_internal.h: ...this file.
28296
28297 2005-09-13  Jim Meyering  <jim@meyering.net>
28298
28299         * lib/canon-host.c: Filter through gnu indent and reword comments
28300         slightly.
28301         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28302
28303 2005-09-13  Derek Price  <derek@ximbiot.com>
28304
28305         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28306         failure.
28307         Reported by Jim Meyering  <jim@meyering.net>.
28308
28309 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28310
28311         * lib/base64.c: Typo.
28312         (base64_encode): Put b64str in initialized data section.
28313
28314 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28315
28316         Merge glibc and coreutils changes into gnulib, plus a few
28317         extra fixes.
28318         * lib/md5.c: Use #error rather than a string.
28319         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28320         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28321         (__attribute__): Define to empty for non recent-GCC.
28322         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28323         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28324         Renamed from their non-__ counterparts, with new macros replacing
28325         them if not _LIBC.  Add __THROW attribute.
28326         (rol): Remove.
28327         (struct md5_ctx): Align buffer if using GCC.
28328         * lib/sha1.h (struct sha1_ctx): Likewise.
28329         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28330         The old name was backwards.
28331         (NOTSWAP): Remove; not used.
28332         (rol): New macro, moved here from md5.h.
28333         (sha1_process_block): Remove a FIXME that doesn't make sense.
28334
28335 2005-09-12  Derek Price  <derek@ximbiot.com>
28336
28337         Return usable errors from canon-host.
28338         * lib/canon-host.h: New file.
28339         * lib/canon-host.c (canon_host): Wrap...
28340         (canon_host_r): ...this new function, which now relies exclusively on
28341         getaddrinfo.
28342         (ch_strerror): New function.
28343         (last_cherror): New global.
28344         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28345         interface.
28346         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28347         void *.
28348         (freeaddrinfo): Free ai->ai_canonname when set.
28349
28350 2005-09-12  Derek Price  <derek@ximbiot.com>
28351
28352         Make canon-host require getaddrinfo.
28353         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28354         AC_LIBSOURCE canon-host.h.  Call...
28355         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28356         gl_GETADDRINFO.
28357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28358
28359 2005-09-12  Derek Price  <derek@ximbiot.com>
28360
28361         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28362         LGPL.
28363         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28364
28365 2005-09-12  Derek Price  <derek@ximbiot.com>
28366
28367         * lib/gai_strerror.c: Include config.h when available.  Include
28368         getaddrinfo.h before other headers to test interface.
28369         Reported by Larry Jones <lawrence.jones@ugs.com>.
28370
28371 2005-09-12  Derek Price  <derek@ximbiot.com>
28372             Paul Eggert  <eggert@cs.ucla.edu>
28373
28374         * modules/glob (Files): Add glob-libc.h.
28375
28376 2005-09-12  Derek Price  <derek@ximbiot.com>
28377             Paul Eggert  <eggert@cs.ucla.edu>
28378
28379         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28380         glob_.h, glob-libc.h.
28381         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28382
28383 2005-09-12  Derek Price  <derek@ximbiot.com>
28384             Paul Eggert  <eggert@cs.ucla.edu>
28385
28386         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28387         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28388         protecting things that should be done only in gnulib contexts.
28389         * lib/glob_.h: New file, containing only the glob things needed for
28390         gnulib.
28391         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28392         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28393         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28394         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28395         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28396         and to respect the namespace rules better.
28397
28398 2005-09-08  Simon Josefsson  <jas@extundo.com>
28399
28400         * modules/socklen: New file.
28401
28402 2005-09-08  Simon Josefsson  <jas@extundo.com>
28403
28404         * m4/socklen.m4: New file.
28405
28406 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28407
28408         * modules/utimens (Files): Add m4/utimbuf.m4, since
28409         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28410         Reported by Sergey Poznyakoff.
28411
28412 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28413
28414         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28415         definitions, since that's the preferred style in glibc.
28416         Fix a minor spacing issue, and update copyright notice to match
28417         glibc's.
28418
28419 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28420
28421         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28422
28423 2005-09-06  Simon Josefsson  <jas@extundo.com>
28424
28425         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28426         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28427
28428 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28429
28430         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28431         warning.
28432
28433 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28434
28435         * config/srclist.txt: Add glibc bug 1302.
28436
28437 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28438
28439         Change bitset word type from unsigned int to unsigned long int,
28440         as this has better performance on typical 64-bit hosts.
28441         Port bitset code to hosts with unusual word sizes.
28442         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28443         (build_collating_symbol):
28444         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28445         argument is a bitset.  This is merely a style issue, but it makes
28446         it clearer that an entire array is expected.
28447         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28448         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28449         Port to the case where bitset_word is not the same as unsigned int.
28450         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28451         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28452         Likewise.
28453         * lib/regexec.c (check_dst_limits_calc_pos_1,
28454         check_subexp_matching_top):
28455         (build_trtable, group_nodes_into_DFAstates):
28456         Likewise.
28457         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28458         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28459         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28460         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28461         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28462         * lib/regcomp.c (optimize_subexps, lower_subexp):
28463         Work even if bitset_word has holes in its bitwise representation.
28464         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28465         * lib/regexec.c (check_dst_limits_calc_pos_1,
28466         check_subexp_matching_top):
28467         Likewise.
28468         * lib/regex_internal.c (re_string_reconstruct):
28469         Don't assume UCHAR_MAX == 255.
28470         * lib/regex_internal.h (bitset_set_all): Likewise.
28471         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28472         All uses changed.
28473         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28474         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28475         All uses changed.
28476         (BITSET_WORD_MAX): New macro.
28477         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28478         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28479         (bitset_empty, bitset_copy):
28480         Prefer sizeof (bitset) to multiplying it out ourselves.
28481         (bitset_not_merge): Remove; unused.
28482         (bitset_contain): Return bool, not unsigned int with one bit on.
28483         All callers changed.
28484         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28485         alignment than re_node_set; do this by defining a new internal
28486         type struct dests_alloc and using it to allocate memory.
28487
28488 2005-09-05  Bruno Haible  <bruno@clisp.org>
28489
28490         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28491         links.
28492
28493 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28494
28495         * modules/size_max (Makefile.am): Add size_max.h
28496
28497 2005-09-04  Derek Price  <derek@ximbiot.com>
28498
28499         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28500
28501 2005-09-03  Simon Josefsson  <jas@extundo.com>
28502
28503         * gnulib-tool: Fix typo.
28504
28505 2005-09-03  Simon Josefsson  <jas@extundo.com>
28506
28507         * config/srclist.txt: Add glibc bug 1293.
28508
28509 2005-09-03  Derek Price  <derek@ximbiot.com>
28510
28511         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28512         From Larry Jones <lawrence.jones@ugs.com>.
28513
28514 2005-09-02  Simon Josefsson  <jas@extundo.com>
28515
28516         * modules/socklen: New file.
28517
28518 2005-09-02  Simon Josefsson  <jas@extundo.com>
28519
28520         * modules/havelib: New module.
28521
28522         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28523         Use havelib.
28524
28525 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         Check for arithmetic overflow when calculating sizes, to prevent
28528         some buffer-overflow issues.  These patches are conservative, in the
28529         sense that when I couldn't determine whether an overflow was possible,
28530         I inserted a run-time check.
28531         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28532         macros.
28533         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28534         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28535         (re_xnrealloc, re_x2nrealloc): New inline functions.
28536         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28537         parse_bracket_exp):
28538         (build_equiv_class, build_charclass): Check for arithmetic overflow
28539         in size expression calculations.
28540         * lib/regex_internal.c (re_string_realloc_buffers):
28541         (build_wcs_upper_buffer, re_node_set_add_intersect):
28542         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28543         (re_dfa_add_node, register_state): Likewise.
28544         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28545         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28546         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28547         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28548
28549 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28550
28551         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28552         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28553
28554 2005-09-02  Bruno Haible  <bruno@clisp.org>
28555
28556         Support for lib vs. lib64 distinction on biarch platforms.
28557         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28558         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28560
28561 2005-09-02  Bruno Haible  <bruno@clisp.org>
28562
28563         * gnulib-tool (import): In the other first-use case, provide defaults
28564         as well.
28565
28566 2005-09-02  Bruno Haible  <bruno@clisp.org>
28567
28568         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28569         patches not yet found in the latest gettext release.
28570
28571 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28572
28573         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28574         to avoid a collision with bits/local_lim.h in glibc.
28575         All uses changed.  Problem reported by Dmitry V. Levin in
28576         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28577
28578         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28579         bugs in int versus size_t comparisons.
28580         (re_string_context_at): Fix bug where the code assumed that
28581         Idx is signed.
28582
28583         Use bool where appropriate.
28584         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28585         All callers changed.
28586         (calc_eclosure_iter): Likewise, for ROOT arg.
28587         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28588         (build_charclass_op): Likewise, for NON_MATCH arg.
28589         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28590         (re_string_construct_common): Likewise, for ICASE arg.
28591         * lib/regexec.c (re_search_2_stub, re_search_stub):
28592         Likewise, for RET_LEN arg.
28593         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28594         (set_regs): Likewise, for FL_BACKTRACK arg.
28595         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28596         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28597         (calc_eclosure_iter, parse_bracket_exp):
28598         Use bool for internal variables that are booleans.
28599         * lib/regexec.c (re_search_internal, check_matching,
28600         proceed_next_node):
28601         (set_regs, build_sifted_states, sift_states_bkref):
28602         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28603         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28604         (find_collation_sequence_value):
28605         Likewise.
28606         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28607         (re_node_set_compare):
28608         Return bool, not int. All callers changed.
28609         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28610         (build_trtable, check_node_accept): Likewise.
28611         * lib/regex_internal.h: Include stdbool.h.
28612
28613         Fix bugs uncovered when converting to bool.
28614         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28615         failure instead of charging ahead blindly.
28616         * lib/regex_internal.c (register_state): Likewise.
28617         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28618         for freeing internal storage.
28619         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28620         bitset pieces used as boolean, to avoid undefined behavior
28621         on hosts that do int overflow checking.
28622
28623 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28624
28625         * config/srclist.txt: Add glibc bugs 1285-1287.
28626
28627 2005-09-01  Jim Meyering  <jim@meyering.net>
28628
28629         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28630         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28631         Require gl_STAT_MACROS, too.
28632
28633 2005-09-01  Bruno Haible  <bruno@clisp.org>
28634
28635         * gnulib-tool (import): In the first-use case, provide defaults.
28636
28637 2005-09-01  Bruno Haible  <bruno@clisp.org>
28638
28639         * gnulib-tool (func_import): Remove the .tmp files.
28640
28641 2005-09-01  Bruno Haible  <bruno@clisp.org>
28642
28643         * gnulib-tool (func_import): Fix handling of symbolic links.
28644
28645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28648         old glibc regex code mishandles strings longer than 2**31 bytes.
28649         This patch fixes this when the regex code is used in gnulib
28650         (i.e., outside glibc).
28651
28652         This patch should not affect the use of the regex code inside
28653         glibc.  No doubt this problem also needs to be handled for glibc
28654         as well, but the result will be an incompatible change to the
28655         glibc ABI, and the old ABI will have to be supported too.  That
28656         can be the the subject for another patch.
28657
28658         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28659         governing whether the rest of this patch is active.  By default,
28660         the macro is disabled and the patch has no effect.
28661         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28662         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28663         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28664         (re_match_2, re_set_registers): Use the new types.
28665         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28666         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28667         New macros.
28668         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28669         (re_string_context_at, bin_tree_t, re_dfastate_t):
28670         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28671         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28672         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28673         (re_string_char_size_at, re_string_wchar_at):
28674         (re_string_elem_size_at):
28675         Use the new types and macros to port to 64-bit hosts.
28676         Use unsigned types for internal values, so that the code
28677         mostly works even for arrays larger than SSIZE_MAX.
28678         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28679         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28680         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28681         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28682         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28683         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28684         (calc_inveclosure, parse_dup_op, build_range_exp):
28685         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28686         (fetch_number, create_token_tree, mark_opt_subexp):
28687         Likewise.
28688         * lib/regex_internal.c (re_string_construct_common,
28689         create_ci_newstate):
28690         (create_cd_newstate, re_string_allocate, re_string_construct):
28691         (re_string_realloc_buffers, build_wcs_upper_buffer):
28692         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28693         (re_string_reconstruct, re_string_peek_byte_case):
28694         (re_string_fetch_byte_case, re_string_context_at):
28695         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28696         (re_node_set_init_copy, re_node_set_add_intersect):
28697         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28698         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28699         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28700         (re_acquire_state, re_acquire_state_context, register_state):
28701         Likewise.
28702         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28703         search_cur_bkref_entry):
28704         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28705         (re_search_internal, re_search_2_stub, re_search_stub)
28706         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28707         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28708         (update_cur_sifted_state, check_dst_limits):
28709         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28710         (check_subexp_limits, sift_states_bkref, merge_state_array):
28711         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28712         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28713         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28714         (expand_bkref_cache, check_node_accept_bytes):
28715         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28716         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28717         (acquire_init_state_context, check_halt_node_context):
28718         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28719         (sift_states_backward, clean_state_log_if_needed):
28720         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28721         (find_recover_state, transit_state_sb, transit_state_mb):
28722         (transit_state_bkref, build_trtable, match_ctx_clean):
28723         Likewise.
28724         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28725         to work around an assumption that REG_MISSING is negative.
28726
28727         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28728         (seek_collating_symbol_entry) [defined _LIBC]:
28729         (lookup_collation_sequence_value) [defined _LIBC]:
28730         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28731         Use prototypes rather than old-style function definitions.
28732         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28733         (transit_state_sb) [0]:
28734         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28735
28736         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28737         rm_eo.
28738
28739         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28740         (optimize_subexps, lower_subexp):
28741         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28742         since the signed shift might overflow.  Use 1u<<31 instead.
28743         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28744         Likewise.
28745         * lib/regexec.c (check_dst_limits_calc_pos_1,
28746         check_subexp_matching_top): Likewise.
28747
28748         * lib/regcomp.c (optimize_subexps, lower_subexp):
28749         Use CHAR_BIT rather than 8, for clarity.
28750         * lib/regexec.c (check_dst_limits_calc_pos_1):
28751         (check_subexp_matching_top): Likewise.
28752         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28753         have to worry about portability issues when shifting it left.
28754         Remove no-longer-needed test for table_size > 0.
28755         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28756         in a word, as the resulting behavior is undefined.
28757         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28758         in one case, a <= should have been an <, and in another case the
28759         whole test was missing.
28760         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28761         the standard name CHAR_BIT.
28762         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28763         this is not true on one's complement and signed-magnitude hosts.
28764
28765         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28766         next_last_offset.
28767         (struct re_dfa_t): Remove unused member states_alloc.
28768         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28769
28770 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28771
28772         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28773         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28774         and large-file glibc and in 32-bit large-file Solaris.
28775
28776 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28777
28778         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28779         lengths fit in regoff_t; this isn't true if regoff_t is the same
28780         width as size_t.
28781         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28782         (= START + RANGE) instead of RANGE.  This avoids overflow
28783         problems when regoff_t is the same width as size_t.
28784         All callers changed.
28785         (re_search_2_stub): Check for overflow when adding the
28786         sizes of the two strings.
28787         (re_search_stub): Check for overflow when adding START
28788         to RANGE; if it occurs, substitute the extreme value.
28789
28790 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28791
28792         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28793
28794 2005-08-31  Jim Meyering  <jim@meyering.net>
28795
28796         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28797         a pointer-to-const.
28798         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28799         (register_state): Likewise.
28800         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28801         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28802         (group_nodes_into_DFAstates): Likewise.
28803
28804 2005-08-31  Jim Meyering  <jim@meyering.net>
28805
28806         * check-module: Add a FIXME comment.
28807
28808 2005-08-31  Eric Blake  <ebb9@byu.net>
28809
28810         * modules/unistd-safer (Files): Add unistd--.h.
28811         * modules/stdio-safer (Files): Add stdio--.h.
28812
28813 2005-08-31  Derek Price  <derek@ximbiot.com>
28814
28815         * lib/getdelim.c (getdelim): Return EOF on EOF.
28816         Reported by Larry Jones <lawrence.jones@ugs.com>.
28817
28818 2005-08-31  Bruno Haible  <bruno@clisp.org>
28819
28820         Avoid unnecessary diffs in the generated lib/Makefile.am.
28821         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28822         the generated files.
28823         (func_import): Don't set cmd.
28824
28825 2005-08-31  Bruno Haible  <bruno@clisp.org>
28826
28827         * lib/strstr.c: Include <stddef.h>, for NULL.
28828         * lib/strcasestr.c: Likewise.
28829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28830
28831 2005-08-31  Bruno Haible  <bruno@clisp.org>
28832
28833         * gnulib-tool: New option --macro-prefix.
28834         (func_import): Use macro_prefix.
28835         (import): Handle option --macro-prefix.
28836
28837 2005-08-31  Bruno Haible  <bruno@clisp.org>
28838
28839         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28840         Also use new variables cached_lgpl, cached_libtool.
28841
28842 2005-08-31  Bruno Haible  <bruno@clisp.org>
28843
28844         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28845         always instantiating them.
28846
28847 2005-08-31  Bruno Haible  <bruno@clisp.org>
28848
28849         * gnulib-tool (func_import): Read the previous cached settings
28850         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28851         earlier added by gnulib but are now dropped. Warn when a gnulib file
28852         overwrites a non-gnulib file.
28853
28854 2005-08-31  Bruno Haible  <bruno@clisp.org>
28855
28856         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28857         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28858         projects that don't keep autogenerated files in CVS. Put into
28859         actioncmd only the specified modules, not the transitive closure.
28860
28861 2005-08-31  Bruno Haible  <bruno@clisp.org>
28862
28863         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28864         Create directories that shall be filled.
28865         (import): Don't look for gl_* macros in configure.ac. Recurse across
28866         all directories containing a gnulib-cache.m4 files, if meaningful.
28867
28868 2005-08-31  Bruno Haible  <bruno@clisp.org>
28869
28870         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28871         (import): Set seen_libtool when we see gl_LIBTOOL.
28872
28873 2005-08-31  Bruno Haible  <bruno@clisp.org>
28874
28875         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28876         declaration macro definitions from generated gnulib.m4.
28877
28878 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28879
28880         * lib/iconvme.h: Add prototype for iconv_alloc.
28881
28882 2005-08-29  Simon Josefsson  <jas@extundo.com>
28883
28884         * lib/iconvme.c: Fix errno.
28885
28886 2005-08-29  Bruno Haible  <bruno@clisp.org>
28887
28888         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28889         that it works when the directory contains spaces.
28890
28891 2005-08-29  Bruno Haible  <bruno@clisp.org>
28892
28893         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28894
28895 2005-08-29  Bruno Haible  <bruno@clisp.org>
28896
28897         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28898         Emit more advice.
28899
28900 2005-08-29  Bruno Haible  <bruno@clisp.org>
28901         and Stepan Kasal  <kasal@ucw.cz>
28902
28903         * check-module: If more parameters are given, check each of them
28904         separately; add more exceptions, as noted by Jim Meyering.
28905         (check_module): New procedure.
28906         (%exempt_header): Now contains all exceptions.
28907
28908 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28909
28910         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28911
28912 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28913
28914         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28915
28916 2005-08-28  Bruno Haible  <bruno@clisp.org>
28917
28918         * m4/gnulib-tool.m4: New file.
28919
28920 2005-08-27  Jim Meyering  <jim@meyering.net>
28921
28922         * modules/unistd-safer (Files): Add pipe-safer.c.
28923         * modules/fcntl-safer (Files): Add creat-safer.c.
28924
28925 2005-08-27  Jim Meyering  <jim@meyering.net>
28926
28927         * m4/stdlib-safer.m4: New file.  From coreutils.
28928         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28929         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28930         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28931         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28932         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28933
28934 2005-08-27  Jim Meyering  <jim@meyering.net>
28935
28936         * lib/fopen-safer.c: Merge minor changes from coreutils.
28937         * lib/dup-safer.c: Likewise.
28938         * lib/fd-safer.c: Likewise.
28939
28940         Merge from coreutils.
28941         * lib/stdio--.h: New file.
28942         * lib/stdlib--.h: New file.
28943         * lib/mkstemp-safer.c: New file.
28944
28945         GNU tar needs these.
28946         * lib/pipe-safer.c: New file.
28947         * lib/creat-safer.c: New file.
28948         * lib/fcntl--.h (creat): Define to creat_safer.
28949         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28950         * lib/unistd--.h (pipe): Define to pipe_safer.
28951         * lib/unistd-safer.h: Declare pipe_safer.
28952
28953 2005-08-26  Simon Josefsson  <jas@extundo.com>
28954
28955         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28956         Haible <bruno@clisp.org>.
28957
28958 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28959
28960         * lib/regex_internal.h: Remove all references to
28961         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28962         or better.
28963         (bitset_not, bitset_merge, bitset_not_merge):
28964         (bitset_mask, re_string_allocate, re_string_construct):
28965         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28966         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28967         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28968         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28969         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28970         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28971         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28972         (re_acquire_state_context):
28973         Remove unnecessary forward decls.
28974         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28975         Put __attribute at function definition,
28976         now that the function decl has been removed.
28977         * lib/regex_internal.c (re_string_peek_byte_case):
28978         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28979         Likewise.
28980
28981 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28982
28983         * m4/regex.m4: Add AC_PREREQ(2.50).
28984         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28985
28986 2005-08-25  Simon Josefsson  <jas@extundo.com>
28987
28988         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28989         __fsetlocking.
28990
28991 2005-08-25  Simon Josefsson  <jas@extundo.com>
28992
28993         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28994         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28995         GLIBC specific code.
28996
28997 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28998
28999         Make regex safe for g++.  This fixes one real bug (an "err"
29000         that should have been "*err").  g++ problem reported by
29001         Sam Steingold.
29002         * lib/regex_internal.h (re_calloc): New macro, consistent with
29003         re_malloc etc.  All callers of calloc changed to use re_calloc.
29004         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29005         not int.  All callers changed.
29006         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29007         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29008         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29009         (find_recover_state): Change "err" to "*err"; this fixes what
29010         appears to be a real bug.
29011         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29012         versus int.
29013
29014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         * modules/regex (Depends-on): Add malloc, since the code
29017         assumes that !malloc(0) means failure.
29018
29019 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29020
29021         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29022
29023         alloca modernization/simplification for regex.
29024         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29025         needs to be at the start of the file, and can be moved into
29026         regex_internal.h and simplified.
29027         * lib/regex_internal.h: Include <alloca.h>.
29028         (__libc_use_alloca) [!defined _LIBC]: New macro.
29029         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29030         now works outside glibc.
29031
29032 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29033
29034         * config/srclist.txt: Add glibc bugs 1241, 1245.
29035
29036 2005-08-25  Jim Meyering  <jim@meyering.net>
29037
29038         * lib/open-safer.c: Include <config.h>.
29039         Otherwise, we'd lose LARGEFILE support in any file using
29040         e.g. "fcntl--.h"
29041
29042 2005-08-25  Bruno Haible  <bruno@clisp.org>
29043
29044         * m4/minmax.m4: Require autoconf 2.52.
29045         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
29046         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
29047         alternatives of translit over the alphabet.
29048         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
29049
29050 2005-08-24  Simon Josefsson  <jas@extundo.com>
29051
29052         * tests/test-getpass.c: New file.
29053
29054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29055
29056         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
29057         for GNU regex features.
29058
29059 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29062         * lib/regex.h (regerror): Likewise.
29063
29064         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29065         requires this.  (The code never needed it.)
29066
29067         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29068         All uses of recently-renamed identifiers changed to use the new,
29069         POSIX-compliant names.  The code will build and run just fine
29070         without these changes, but it's better to eat our own dog food
29071         and use the standard-conforming names.
29072
29073         * lib/regex.h: Fix a multitude of POSIX name space violations.
29074         These changes have an effect only for programs that define
29075         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29076         do not change anything for programs compiled in the normal way.
29077         Also, there is no effect on the ABI.
29078
29079         (_REGEX_SOURCE): New macro.
29080         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29081         defined and _GNU_SOURCE is not; this fixes a name space violation.
29082
29083         Rename the following macros to obey POSIX requirements.
29084         The old names are still visible as macros if _REGEX_SOURCE is defined.
29085         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29086         RE_BACKSLASH_ESCAPE_IN_LISTS.
29087         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29088         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29089         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29090         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29091         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29092         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29093         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29094         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29095         (REG_INTERVALS): renamed from RE_INTERVALS.
29096         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29097         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29098         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29099         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29100         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29101         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29102         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29103         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29104         RE_UNMATCHED_RIGHT_PAREN_ORD.
29105         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29106         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29107         (REG_DEBUG): renamed from RE_DEBUG.
29108         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29109         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29110         unusual, since we can't clash with the POSIX REG_ICASE.
29111         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29112         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29113         (REG_NO_SUB): renamed from RE_NO_SUB.
29114         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29115         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29116         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29117         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29118         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29119         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29120         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29121         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29122         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29123         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29124         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29125         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29126         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29127         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29128         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29129         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29130         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29131         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29132         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29133         (REG_FIXED): Renamed from REGS_FIXED.
29134         (REG_NREGS): Renamed from RE_NREGS.
29135
29136         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29137         of other REG_* macros, since POSIX says the user is allowed to
29138         #undef these macros selectively.
29139
29140         (reg_errcode_t): Update comment stating what other tables need
29141         to be consistent.
29142
29143         Rename the following enum values to obey POSIX requirements.
29144         The old names are still visible as macros.
29145         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29146         is not defined, since GNU is supposed to be a superset of POSIX as
29147         much as possible, and since we want reg_errcode_t to be a signed
29148         type for implementation consistency.
29149         (_REG_NOERROR): Renamed from REG_NOERROR.
29150         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29151         (_REG_BADPAT): Renamed from REG_BADPAT.
29152         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29153         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29154         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29155         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29156         (_REG_EBRACK): Renamed from REG_EBRACK.
29157         (_REG_EPAREN): Renamed from REG_EPAREN.
29158         (_REG_EBRACE): Renamed from REG_EBRACE.
29159         (_REG_BADBR): Renamed from REG_BADBR.
29160         (_REG_ERANGE): Renamed from REG_ERANGE.
29161         (_REG_ESPACE): Renamed from REG_ESPACE.
29162         (_REG_BADRPT): Renamed from REG_BADRPT.
29163         (_REG_EEND): Renamed from REG_EEND.
29164         (_REG_ESIZE): Renamed from REG_ESIZE.
29165         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29166         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29167         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29168         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29169         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29170
29171         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29172         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29173         changed.  But support the old name if the new one is not defined
29174         and if _REGEX_SOURCE.
29175
29176         Change the following member names in struct re_pattern_buffer.
29177         The old names are still supported if !_REGEX_SOURCE.
29178         The new names are always supported, regardless of _REGEX_SOURCE.
29179         (re_buffer): Renamed from buffer.
29180         (re_allocated): Renamed from allocated.
29181         (re_used): Renamed from used.
29182         (re_syntax): Renamed from syntax.
29183         (re_fastmap): Renamed from fastmap.
29184         (re_translate): Renamed from translate.
29185         (re_can_be_null): Renamed from can_be_null.
29186         (re_regs_allocated): Renamed from regs_allocated.
29187         (re_fastmap_accurate): Renamed from fastmap_accurate.
29188         (re_no_sub): Renamed from no_sub.
29189         (re_not_bol): Renamed from not_bol.
29190         (re_not_eol): Renamed from not_eol.
29191         (re_newline_anchor): Renamed from newline_anchor.
29192
29193         Change the following member names in struct re_registers.
29194         The old names are still supported if !_REGEX_SOURCE.
29195         The new names are always supported, regardless of _REGEX_SOURCE.
29196         (rm_num_regs): Renamed from num_regs.
29197         (rm_start): Renamed from start.
29198         (rm_end): Renamed from end.
29199
29200         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29201         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29202         Prepend __ to parameter names.
29203
29204         Undo yesterday's changes.
29205
29206 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29207
29208         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29209         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29210         lib/regex.c.
29211
29212 2005-08-24  Jim Meyering  <jim@meyering.net>
29213
29214         Sync from coreutils.
29215         * m4/fcntl-safer.m4: New file.
29216
29217         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29218         and object files for this module.
29219
29220 2005-08-24  Jim Meyering  <jim@meyering.net>
29221
29222         Sync from coreutils.
29223         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29224
29225 2005-08-24  Jim Meyering  <jim@meyering.net>
29226
29227         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29228         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29229
29230 2005-08-24  Jim Meyering  <jim@meyering.net>
29231
29232         * modules/fcntl-safer: New module.
29233         * modules/fts (Depends-on): Add fcntl-safer.
29234         * MODULES.html.sh (File descriptor based Input/Output):
29235         Add fcntl-safer.
29236
29237 2005-08-24  Bruno Haible  <bruno@clisp.org>
29238
29239         Support for unit test modules.
29240         * modules/README: Mention tests modules.
29241         * modules/TEMPLATE-TESTS: New file.
29242         * gnulib-tool: New options --extract-tests-module, --with-tests and
29243         --tests-base (unused for the moment).
29244         (testsbase, inctests): New variables.
29245         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29246         (func_verify_module): Exclude TEMPLATE-TESTS.
29247         (func_verify_nontests_module, func_verify_tests_module): New functions.
29248         (func_get_dependencies): Add implicit dependency for tests modules.
29249         (func_get_tests_module): New function.
29250         (func_modules_transitive_closure): When --with-tests was specified,
29251         include the unit tests as well, unless explicitly avoided.
29252         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29253         (func_emit_tests_Makefile_am): New function.
29254         (func_create_testdir): When --with-tests was specified, emit a
29255         tests/ directory.
29256         * MODULES.html.sh (Future developments): Update.
29257
29258 2005-08-24  Bruno Haible  <bruno@clisp.org>
29259
29260         * modules/tls-tests: New file.
29261         * tests/test-tls.c: New file, from GNU gettext.
29262
29263 2005-08-24  Bruno Haible  <bruno@clisp.org>
29264
29265         * modules/lock-tests: New file.
29266         * tests/test-lock.c: New file, from GNU gettext.
29267
29268 2005-08-24  Bruno Haible  <bruno@clisp.org>
29269
29270         * lib/lock.h: Add multiple inclusion guard.
29271         * lib/tls.h: Add multiple inclusion guard.
29272
29273 2005-08-24  Bruno Haible  <bruno@clisp.org>
29274
29275         * gnulib-tool: Add support for the --aux-dir option to
29276         --create-testdir, --create-megatestdir, --test, --megatest.
29277         (func_create_testdir, func_create_megatestdir): Optionally emit a
29278         AC_CONFIG_AUX_DIR directive.
29279         (create-testdir, create-megatestdir, test, megatest): Provide a
29280         default value for $auxdir.
29281
29282 2005-08-24  Bruno Haible  <bruno@clisp.org>
29283
29284         * gnulib-tool (import): Use compound statement instead of subshell
29285         where possible.
29286
29287 2005-08-24  Bruno Haible  <bruno@clisp.org>
29288
29289         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29290
29291 2005-08-24  Bruno Haible  <bruno@clisp.org>
29292
29293         * gnulib-tool (func_version): Update.
29294
29295 2005-08-24  Bruno Haible  <bruno@clisp.org>
29296
29297         * gnulib-tool (func_import, func_create_testdir,
29298         func_create_megatestdir): Quote all autoconf macro arguments.
29299
29300 2005-08-24  Bruno Haible  <bruno@clisp.org>
29301
29302         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29303         option --force, because --force causes the aclocal.m4 of each
29304         subdirectory to be newer than the corresponding config.h.in.
29305
29306 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29309         All contents moved to gl_REGEX.
29310         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29311         assume that it does.
29312
29313 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29314
29315         * lib/regex.h (REG_NOSYS)
29316         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29317         Define, since POSIX requires it as of 2001.
29318         (_REG_ENOSYS)
29319         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29320         New private symbol, used to keep the enum signed in all cases.
29321         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29322         Youngman in
29323         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29324
29325         * lib/regex_internal.c (re_string_skip_chars, register_state):
29326         (calc_state_hash):
29327         Remove forward decls; no longer needed now that we use prototypes.
29328         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29329         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29330         (clean_state_log_if_needed): Likewise.
29331
29332 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29333
29334         * config/srclist.txt: Add glibc bugs 1231-1233.
29335
29336 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29337
29338         Fix problems reported by Sam Steingold in
29339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29340         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29341         assumed that reg_errcode_t is a signed type, which is not
29342         necessarily true if _XOPEN_SOURCE is not defined.
29343         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29344         since some compilers warn about it otherwise.
29345
29346 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29347
29348         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29349         (init_word_char, create_initial_state, duplicate_node_closure):
29350         (fetch_token, peek_token_bracket, build_range_exp):
29351         (build_collating_symbol): Remove forward decls; no longer needed
29352         now that we use prototypes.
29353
29354         * lib/regcomp.c:
29355         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29356         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29357         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29358         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29359         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29360         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29361         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29362         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29363         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29364         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29365         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29366         (build_charclass, build_charclass_op, fetch_number, create_tree):
29367         (create_token_tree, mark_opt_subexp, duplicate_tree):
29368         Use prototypes rather than old-style definitions.
29369
29370         * lib/regex_internal.c:
29371         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29372         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29373         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29374         (re_string_reconstruct, re_string_peek_byte_case):
29375         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29376         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29377         (re_node_set_init_copy, re_node_set_add_intersect):
29378         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29379         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29380         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29381         (re_acquire_state, re_acquire_state_context, register_state):
29382         (create_ci_newstate, create_cd_newstate, free_state):
29383         Likewise.
29384         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29385         re_search_2):
29386         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29387         (re_search_internal, prune_impossible_nodes):
29388         (acquire_init_state_context, check_matching, static):
29389         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29390         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29391         (update_regs, sift_states_backward, build_sifted_states):
29392         (clean_state_log_if_needed, merge_state_array):
29393         (update_cur_sifted_state, add_epsilon_src_nodes):
29394         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29395         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29396         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29397         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29398         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29399         (check_arrival, check_arrival_add_next_nodes):
29400         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29401         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29402         (check_node_accept_bytes, check_node_accept, extend_buffers):
29403         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29404         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29405         (sift_ctx_init):
29406         Likewise.
29407
29408         * lib/regex_internal.h:
29409         (re_string_allocate, re_string_construct, re_string_reconstruct):
29410         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29411         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29412         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29413         (re_string_context_at, re_string_peek_byte_case):
29414         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29415         is defined, since we now use prototypes always.
29416
29417         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29418         C89 or better.  All uses removed.
29419
29420 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         * config/srclist.txt: Add glibc bugs 1220-1227.
29423
29424 2005-08-20  Jim Meyering  <jim@meyering.net>
29425
29426         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29427         of unused local, dfa.
29428
29429 2005-08-20  Bruno Haible  <bruno@clisp.org>
29430
29431         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29432
29433 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29434
29435         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29436         (re_node_set_insert_last, re_dfa_add_node):
29437         Rename local variables to avoid GCC shadowing warnings.
29438
29439 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29440
29441         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29442         [defined lint]: Suppress bogus uninitialized-variable warnings.
29443
29444         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29445         and let the caller return REG_ESPACE if out of space.  This
29446         removes an uninitialied-variable warning with GCC 4.0.1, and also
29447         avoids taking the address of a local variable.  All callers
29448         changed.
29449
29450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29451
29452         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29453         $LIBCSRC/posix/regexec.c.
29454         Add glibc bug 1217 for regcomp.c.
29455
29456 2005-08-19  Jim Meyering  <jim@meyering.net>
29457
29458         * lib/regexec.c (proceed_next_node): Redo local variables to
29459         avoid GCC shadowing warnings.
29460
29461 2005-08-18  Bruno Haible  <bruno@clisp.org>
29462
29463         * lib/strstr.c (strstr): Fix return value in multibyte case.
29464         * lib/strcasestr.c (strcasestr): Likewise.
29465
29466 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29467
29468         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29469
29470 2005-08-17  Jim Meyering  <jim@meyering.net>
29471
29472         Make the %s format (seconds since the epoch) work for a negative
29473         number and when used with a zero-padded field width, e.g. %015s.
29474
29475         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29476         label so that it precedes the code to set `digits'.  Otherwise,
29477         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29478         print `00-22'.  Now, it prints `-0022', as it should.
29479
29480 2005-08-17  Bruno Haible  <bruno@clisp.org>
29481
29482         * modules/strstr (Files): Add m4/mbrtowc.m4.
29483         (Depends-on): Add mbuiter.
29484
29485 2005-08-17  Bruno Haible  <bruno@clisp.org>
29486
29487         * modules/strcasestr: New file.
29488         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29489         strcasestr.
29490
29491 2005-08-17  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29494
29495 2005-08-17  Bruno Haible  <bruno@clisp.org>
29496
29497         * modules/mbuiter: New file.
29498         * MODULES.html.sh (Extended multibyte and wide character utilities):
29499         Add mbuiter.
29500
29501 2005-08-17  Bruno Haible  <bruno@clisp.org>
29502
29503         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29504         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29505
29506 2005-08-17  Bruno Haible  <bruno@clisp.org>
29507
29508         * m4/strcasestr.m4: New file.
29509
29510 2005-08-17  Bruno Haible  <bruno@clisp.org>
29511
29512         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29513         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29514
29515 2005-08-17  Bruno Haible  <bruno@clisp.org>
29516
29517         * lib/strcasestr.h: New file.
29518         * lib/strcasestr.c: New file.
29519
29520 2005-08-17  Bruno Haible  <bruno@clisp.org>
29521
29522         * lib/strcasecmp.c: Use mbuiter.h.
29523
29524 2005-08-17  Bruno Haible  <bruno@clisp.org>
29525
29526         * lib/mbuiter.h: New file.
29527
29528 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29529
29530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29531         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29532         and gl_GETOPT are both invoked via different paths (as happens
29533         with GNU tar CVS because it uses both argp and getopt), the former
29534         wins.
29535
29536 2005-08-16  Bruno Haible  <bruno@clisp.org>
29537
29538         * modules/tls: New file.
29539         * MODULES.html.sh (Multithreading): Add tls.
29540
29541 2005-08-16  Bruno Haible  <bruno@clisp.org>
29542
29543         * modules/strnlen1: New file.
29544         * MODULES.html.sh (String handling): Add strnlen1.
29545
29546 2005-08-16  Bruno Haible  <bruno@clisp.org>
29547
29548         * modules/strcase (Files): Add m4/mbrtowc.m4.
29549         (Depends-on): Add strnlen1, mbchar.
29550
29551 2005-08-16  Bruno Haible  <bruno@clisp.org>
29552
29553         * modules/mbiter: New file.
29554         * MODULES.html.sh (Extended multibyte and wide character utilities):
29555         Add mbiter.
29556
29557 2005-08-16  Bruno Haible  <bruno@clisp.org>
29558
29559         * modules/mbfile: New file.
29560         * MODULES.html.sh (Extended multibyte and wide character utilities):
29561         Add mbfile.
29562
29563 2005-08-16  Bruno Haible  <bruno@clisp.org>
29564
29565         * modules/mbchar: New file.
29566         * MODULES.html.sh (Extended multibyte and wide character utilities):
29567         New section.
29568
29569 2005-08-16  Bruno Haible  <bruno@clisp.org>
29570
29571         * m4/tls.m4: New file, from GNU gettext.
29572
29573 2005-08-16  Bruno Haible  <bruno@clisp.org>
29574
29575         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29576         always.
29577         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29578
29579 2005-08-16  Bruno Haible  <bruno@clisp.org>
29580
29581         * m4/mbiter.m4: New file.
29582
29583 2005-08-16  Bruno Haible  <bruno@clisp.org>
29584
29585         * m4/mbfile.m4: New file.
29586
29587 2005-08-16  Bruno Haible  <bruno@clisp.org>
29588
29589         * m4/mbchar.m4: New file.
29590
29591 2005-08-16  Bruno Haible  <bruno@clisp.org>
29592
29593         * lib/tls.h: New file, from GNU gettext.
29594         * lib/tls.c: New file, from GNU gettext.
29595
29596 2005-08-16  Bruno Haible  <bruno@clisp.org>
29597
29598         * lib/strnlen1.h: New file.
29599         * lib/strnlen1.c: New file.
29600
29601 2005-08-16  Bruno Haible  <bruno@clisp.org>
29602
29603         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29604         (mbi_init): Update.
29605         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29606         NUL byte, not after it.
29607
29608 2005-08-16  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/strcase.h (strcasecmp): Add note in comments.
29611         * lib/strncasecmp.c: Use code from strcasecmp.c.
29612         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29613         (strcasecmp): Work correctly in multibyte locales.
29614
29615 2005-08-16  Bruno Haible  <bruno@clisp.org>
29616
29617         * lib/mbiter.h: New file.
29618
29619 2005-08-16  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/mbfile.h: New file.
29622
29623 2005-08-16  Bruno Haible  <bruno@clisp.org>
29624
29625         * lib/mbchar.h: New file.
29626         * lib/mbchar.c: New file.
29627
29628 2005-08-16  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29631         the valid ones. Makes the comparison operations transitive:
29632         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29633         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29634
29635 2005-08-15  Simon Josefsson  <jas@extundo.com>
29636
29637         * modules/ssize_t (License): Change to 'unlimited'.
29638
29639         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29640
29641 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29642
29643         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29644         Add comments for each pending glibc patch.
29645
29646 2005-08-15  Bruno Haible  <bruno@clisp.org>
29647
29648         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29649         __cplusplus is defined.
29650
29651 2005-08-14  Jim Meyering  <jim@meyering.net>
29652
29653         Sync from coreutils.
29654
29655         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29656         Use the hash-table-based cycle-detection code not just when
29657         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29658         Reported by James Youngman in
29659         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29660         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29661         FTS_TIGHT_CYCLE_CHECK.
29662         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29663         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29664         once again.
29665         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29666         * lib/fts.c (fd_safer): Remove decl.
29667         Include fcntl--.h rather than unistd-safer.h
29668         (fts_safe_changedir): Don't call fd_safer; no longer needed
29669         now that we include fcntl--.h.
29670
29671 2005-08-12  Simon Josefsson  <jas@extundo.com>
29672
29673         * modules/getndelim2: Use ssize_t module.
29674         * modules/getnline: Likewise.
29675         * modules/safe-read: Likewise.
29676         * modules/xreadlink: Likewise.
29677
29678         * modules/ssize_t: New file.
29679
29680 2005-08-12  Simon Josefsson  <jas@extundo.com>
29681
29682         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29683
29684 2005-08-12  Simon Josefsson  <jas@extundo.com>
29685
29686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29687         ssize_t.
29688
29689 2005-08-12  Simon Josefsson  <jas@extundo.com>
29690
29691         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29692         readline, getdelim and check_version.
29693         (Support for systems lacking ISO C 99: Sizes of integer types):
29694         Add size_max.
29695
29696 2005-08-12  Bruno Haible  <bruno@clisp.org>
29697
29698         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29699
29700 2005-08-11  Simon Josefsson  <jas@extundo.com>
29701
29702         * modules/readline: New file.
29703
29704         * modules/strnlen (Files): Add strnlen.h.
29705
29706 2005-08-11  Simon Josefsson  <jas@extundo.com>
29707
29708         * m4/readline.m4: New file.
29709
29710 2005-08-11  Simon Josefsson  <jas@extundo.com>
29711
29712         * lib/readline.h, readline.c: New file.
29713
29714 2005-08-11  Simon Josefsson  <jas@extundo.com>
29715
29716         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29717         gl_AVOID.
29718
29719 2005-08-11  Bruno Haible  <bruno@clisp.org>
29720
29721         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29722
29723 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29724
29725         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29726
29727 2005-08-10  Simon Josefsson  <jas@extundo.com>
29728
29729         * tests/test-iconvme.c: New file.
29730
29731 2005-08-10  Simon Josefsson  <jas@extundo.com>
29732
29733         * m4/strnlen.m4: New file.
29734
29735         * m4/strndup.m4: Don't check for strnlen declaration, done in
29736         strnlen.m4.
29737
29738 2005-08-10  Simon Josefsson  <jas@extundo.com>
29739
29740         * lib/strndup.c: Use strnlen.h.
29741
29742         * lib/strnlen.h: New file.
29743
29744 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29745
29746         * README: Typos.
29747
29748 2005-08-02  Simon Josefsson  <jas@extundo.com>
29749
29750         * modules/readline: New file.
29751
29752 2005-08-02  Simon Josefsson  <jas@extundo.com>
29753
29754         * modules/getdelim: New file.
29755
29756         * modules/getline: Rewrite, don't use getndelim2.
29757
29758 2005-08-02  Simon Josefsson  <jas@extundo.com>
29759
29760         * m4/getline.m4: Separate out getdelim stuff into separate module.
29761
29762         * m4/getdelim.m4: New file.
29763
29764 2005-08-02  Simon Josefsson  <jas@extundo.com>
29765
29766         * lib/getline.h, getline.c: Rewrite.
29767
29768         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29769
29770 2005-07-31  Bruno Haible  <bruno@clisp.org>
29771
29772         * lib/lock.h (gl_lock_initializer): New macro.
29773         (gl_lock_define_initialized): Use it.
29774         (gl_rwlock_initializer): New macro.
29775         (gl_rwlock_define_initialized): Use it.
29776         (gl_recursive_lock_initializer): New macro.
29777         (gl_recursive_lock_define_initialized): Use it.
29778
29779 2005-07-30  Karl Berry  <karl@gnu.org>
29780
29781         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29782         Report from Ben Pfaff, regarding getopt.
29783
29784 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29785
29786         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29787         normal way.
29788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29789         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29790         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29791         (gl_GETOPT): Use the new macros.  Most of the implementation
29792         is moved to the new macros.  This is for programs like Emacs
29793         that don't want all the functionality of gl_GETOPT.
29794
29795 2005-07-26  Bruno Haible  <bruno@clisp.org>
29796
29797         * m4/lock.m4: Update from GNU gettext.
29798
29799 2005-07-26  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/lock.h: Update from GNU gettext.
29802         * lib/lock.c: Update from GNU gettext.
29803
29804 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29805
29806         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29807         obsolescent AC_TRY_RUN.  Include the default includes files, for
29808         'exit'.
29809
29810 2005-07-24  Bruno Haible  <bruno@clisp.org>
29811
29812         * modules/visibility: New file.
29813         * MODULES.html.sh (Misc): Add visibility.
29814
29815 2005-07-24  Bruno Haible  <bruno@clisp.org>
29816
29817         * m4/visibility.m4: New file.
29818
29819 2005-07-24  Bruno Haible  <bruno@clisp.org>
29820
29821         * doc/visibility.texi: New file.
29822
29823 2005-07-22  Bruno Haible  <bruno@clisp.org>
29824
29825         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29826         $(ALLOCA_H), redundant through BUILT_SOURCES.
29827         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29828         redundant through BUILT_SOURCES.
29829         * modules/byteswap (Makefile.am): Remove explicit dependency on
29830         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29831         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29832         $(FNMATCH_H), redundant through BUILT_SOURCES.
29833         * modules/getopt (Makefile.am): Remove explicit dependency on
29834         $(GETOPT_H), redundant through BUILT_SOURCES.
29835         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29836         redundant through BUILT_SOURCES.
29837         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29838         redundant through BUILT_SOURCES.
29839         * modules/stdbool (Makefile.am): Remove explicit dependency on
29840         $(STDBOOL_H), redundant through BUILT_SOURCES.
29841         * modules/stdint (Makefile.am): Remove explicit dependency on
29842         $(STDINT_H), redundant through BUILT_SOURCES.
29843         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29844         Remove explicit dependency on $(SYSEXITS_H).
29845         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29846
29847 2005-07-18  Simon Josefsson  <jas@extundo.com>
29848
29849         * lib/check-version.c (check_version): Accept identical versions too.
29850
29851 2005-07-18  Bruno Haible  <bruno@clisp.org>
29852
29853         * modules/lock: New file.
29854         * MODULES.html.sh (Multithreading): New section.
29855
29856 2005-07-18  Bruno Haible  <bruno@clisp.org>
29857
29858         * m4/lock.m4: New file, from GNU gettext.
29859
29860 2005-07-18  Bruno Haible  <bruno@clisp.org>
29861
29862         * lib/lock.h: New file, from GNU gettext.
29863         * lib/lock.c: New file, from GNU gettext.
29864
29865 2005-07-18  Bruno Haible  <bruno@clisp.org>
29866
29867         * lib/lock.h (gl_once_t): New type.
29868         (gl_once_define, gl_once): New macros.
29869         * lib/lock.c (fresh_once): New variable.
29870         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29871         functions.
29872
29873 2005-07-16  Simon Josefsson  <jas@extundo.com>
29874
29875         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29876         workaround, suggested by Bruno.
29877
29878 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29879
29880         * modules/xalloc (Depends-on): Add xalloc-die.
29881         * modules/xvasprintf (Depends-on): Add xalloc-die.
29882
29883 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29886         with a minor change.
29887
29888 2005-07-15  Bruno Haible  <bruno@clisp.org>
29889
29890         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29891         When using lib/poll.c, define poll as rpl_poll.
29892
29893 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29894
29895         * modules/argp (Depends-on): Remove unlocked-io.
29896
29897 2005-07-14  Derek Price  <derek@ximbiot.com>
29898
29899         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29900         for glob symlink bug.
29901
29902 2005-07-14  Bruno Haible  <bruno@clisp.org>
29903
29904         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29905         Instead, test for *_unlocked function declarations directly.
29906
29907 2005-07-11  Simon Josefsson  <jas@extundo.com>
29908
29909         * modules/size_max: New file.
29910
29911         * modules/xsize: Depend on size_max module for size_max.m4.
29912
29913 2005-07-11  Simon Josefsson  <jas@extundo.com>
29914
29915         * lib/size_max.h: New file.
29916
29917 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29918
29919         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29920         copyright symbol and the year.
29921         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29922         (version_etc_va): Use parameterized copyright notice.
29923         Reword to conform to the current GNU coding standards.
29924
29925 2005-07-11  Karl Berry  <karl@gnu.org>
29926
29927         * doc/gnulib.texi (Quoting): new node.
29928         (Initial import): more info, from Patrice.
29929
29930 2005-07-11  Bruno Haible  <bruno@clisp.org>
29931
29932         * gnulib-tool (func_usage): Document option --avoid.
29933         (Command line options): Handle --avoid.
29934         (func_acceptable): New function.
29935         (func_modules_transitive_closure): Use it.
29936
29937 2005-07-11  Bruno Haible  <bruno@clisp.org>
29938
29939         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29940         Reported by Jim Meyering.
29941
29942 2005-07-10  Bruno Haible  <bruno@clisp.org>
29943
29944         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29945         Needed when size_t is smaller than 'unsigned int'.
29946         Reported by Paul Eggert.
29947
29948 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29949
29950         * modules/argp (Depends-on): Add unlocked-io
29951
29952 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29953
29954         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29955         block of defines.
29956
29957 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29958
29959         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29960         fix now.
29961
29962 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29963         and Paul Eggert  <eggert@cs.ucla.edu>
29964
29965         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29966         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29967
29968 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29969
29970         * modules/regex (Files): Add lib/regex_internal.c,
29971         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29972         (Depends-on): Add extensions.
29973         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29974
29975 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29976
29977         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29978         pathconf.
29979         * m4/same.m4 (gl_SAME): Likewise.
29980         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29981
29982         * m4/regex.m4: Adjust to new libc regex implementation.
29983         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29984         all the .c and .h parts of (the new) regex.
29985         Quote the m4 stuff better.
29986         Check for RE_ICASE bug of old gnulib.
29987         Check for REG_STARTEND of recent libc.
29988         Rename local variables from jm_* to gl_*.
29989         Quote operand of "test -f".
29990         Say "recent enough" version of libc, not "version 2".
29991         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29992         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29993         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29994         Remove check for btowc, isascii.
29995         Require AM_LANGINFO_CODESET.
29996
29997 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29998
29999         * lib/regex.c, regex.h: Sync from libc.
30000         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30001         * lib/regexec.c:
30002         New files, synced from libc, except that regex_internal.h
30003         currently has a small porting fix.
30004
30005 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30006
30007         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30008         regex_internal.c, regexec.c.
30009         Add regex_internal.h too, but as a comment, since the libc version
30010         is currently broken in gnulib mode.
30011
30012 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30013
30014         Support programs like Emacs that use gnulib but not gettext.
30015         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30016         * modules/gettext-h: New file.
30017         * modules/gettext (Files): Remove lib/gettext.h.
30018         (Depends-on): Add gettext-h.
30019         (Makefile.am): Remove lib_SOURCES.
30020         * modules/argmatch, modules/c-stack, modules/closeout:
30021         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30022         * modules/execute, modules/file-type, modules/getaddrinfo:
30023         * modules/getopt, modules/human, modules/javacomp:
30024         * modules/javaexec, modules/mkdir-p, modules/obstack:
30025         * modules/openat, modules/pagealign_alloc, modules/pipe:
30026         * modules/quotearg, modules/regex, modules/rpmatch:
30027         * modules/unicodeio, modules/userspec, modules/version-etc:
30028         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30029         * modules/xsetenv:
30030         Depend on gettext-h, not gettext.
30031
30032 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         * gnulib-tool (func_import): Add support for 'public domain' license.
30035         * modules/alloca, modules/atexit, modules/memmove:
30036         Now public domain, not GPL.
30037         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
30038         * modules/realloc, modules/strerror, modules/strtod:
30039         Now LGPL, not GPL.
30040
30041 2005-07-05  Bruno Haible  <bruno@clisp.org>
30042
30043         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
30044         autoconf CVS. Needed for mingw.
30045
30046 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30047
30048         Remove the dependency of the strftime module on the tzset module.
30049         * modules/strftime (Depends-on): Remove dependency on tzset.
30050
30051 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30052
30053         Remove the dependency of the strftime module on the tzset module.
30054         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
30055         gl_FUNC_TZSET_CLOBBER.
30056
30057 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30058
30059         Remove the dependency of the strftime module on the tzset module.
30060         * lib/strftime.c (my_strftime)
30061         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30062         Copy the input structure, to work around some of the bug with
30063         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30064         Solaris releases, you should also use the tzset module, but we won't
30065         require it as a dependency any more since we don't want LGPLed code
30066         to depend on GPLed code.
30067
30068 2005-07-02  Jim Meyering  <jim@meyering.net>
30069
30070         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30071         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30072         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30073         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30074
30075 2005-07-02  Jim Meyering  <jim@meyering.net>
30076
30077         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30078
30079 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30080
30081         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30082         declares only 'struct timespec;' (!).
30083
30084 2005-07-01  Jim Meyering  <jim@meyering.net>
30085
30086         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30087         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30088         * lib/save-cwd.c, tempname.c:
30089         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30090         and don't include <sys/file.h>).
30091
30092 2005-06-29  Jim Meyering  <jim@meyering.net>
30093
30094         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30095         type name.  Use the variable name instead.
30096         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30097         Likewise.
30098
30099 2005-06-28  Simon Josefsson  <jas@extundo.com>
30100
30101         * modules/check-version (Files): Add check-version.m4.
30102
30103 2005-06-28  Simon Josefsson  <jas@extundo.com>
30104
30105         * m4/check-version.m4: New file, suggested by Jim Meyering
30106         <jim@meyering.net>.
30107
30108 2005-06-28  Simon Josefsson  <jas@extundo.com>
30109
30110         * lib/check-version.h, lib/check-version.c: New files.
30111
30112 2005-06-28  Simon Josefsson  <jas@extundo.com>
30113
30114         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30115         collision with global variable.  Better indentation.  Don't
30116         increment buffer pointer beyond buffer end.  Based on comments
30117         from Paul Eggert <eggert@cs.ucla.edu>.
30118
30119         * lib/base64.h: Indent.
30120
30121 2005-06-28  Simon Josefsson  <jas@extundo.com>
30122
30123         * doc/gnulib.texi (Library version handling): New section.
30124
30125 2005-06-28  Jim Meyering  <jim@meyering.net>
30126
30127         * check-module (find_included_lib_files): Hard-code another
30128         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30129         but modules/fts-lgpl (correctly) does not list those files.
30130
30131         * modules/canonicalize (Files): Add lib/pathmax.h.
30132
30133 2005-06-25  Simon Josefsson  <jas@extundo.com>
30134
30135         * modules/check-version: New file.
30136
30137 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30138
30139         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30140         initializer of struct addrinfo, as an indication that we don't
30141         care how many members the structure has.
30142
30143 2005-06-24  Derek Price  <derek@ximbiot.com>
30144         and Bruno Haible  <bruno@clisp.org>
30145
30146         Remove stat module & update lstat.
30147         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30148         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30149         * m4/stat.m4: Remove this file.
30150
30151 2005-06-24  Derek Price  <derek@ximbiot.com>
30152         and Bruno Haible  <bruno@clisp.org>
30153
30154         Remove stat module & update lstat.
30155         * lib/stat.c: Remove this file...
30156         (slash_aware_lstat): ...moving this content and its support...
30157         * lib/lstat.c (rpl_lstat): ...into here.
30158         * lib/lstat.h: New file.
30159
30160 2005-06-24  Derek Price  <derek@ximbiot.com>
30161         and Bruno Haible  <bruno@clisp.org>
30162
30163         Remove stat module & update lstat.
30164         * config/srclist.txt (libc sources): Remove stat.
30165
30166 2005-06-24  Derek Price  <derek@ximbiot.com>
30167         and Bruno Haible  <bruno@clisp.org>
30168
30169         Remove stat module & update lstat.
30170         * MODULES.html.sh (stat): Remove.
30171         * MODULES.html: Regenerated.
30172         * modules/lstat (Description): Correct function name.
30173         (Files): Add "lstat.h".
30174         (Depends-on): Remove stat, add xalloc, stat-macros.
30175         * modules/stat: Remove this file.
30176         (Include): Add "lstat.h", remove <sys/stat.h>.
30177
30178 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30179
30180         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30181         (ranged_convert): Don't save conversion in a temporary struct.
30182         This causes a warning with GCC 4.0.0, and anyway in the typical
30183         case it's not worth the extra 100 bytes or so of code.
30184         (ranged_convert, __mktime_internal): When calling a function via a
30185         pointer P, use P () rather than (*P) (), as we now assume C89 or
30186         better.
30187
30188 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30191         "who -r" failed to give output.  Problem reported by Tim Waugh.
30192
30193         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30194         (xcalloc): Use it to avoid needless tests.
30195         Problem reported by Jim Meyering.
30196
30197 2005-06-20  Derek Price  <derek@ximbiot.com>
30198
30199         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30200         unnecessary for Autoconfs > 2.59c.
30201
30202 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30203
30204         * lib/argp.h (__option_is_short): Check upper limit of
30205         __key. Isprint() requires its argument to have the value
30206         of an unsigned char or EOF.
30207
30208 2005-06-16  Jim Meyering  <jim@meyering.net>
30209
30210         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30211         when either N or S is zero.
30212
30213 2005-06-16  Derek Price  <derek@ximbiot.com>
30214
30215         * m4/bison.m4: Declare YACC & YFLAGS precious.
30216
30217 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30220         multibyte string or pattern, fall back on unibyte matching.
30221         Problem reported by James Youngman.
30222
30223 2005-06-08  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/csharpcomp: New file.
30226         * MODULES.html.sh (C#): Add csharpcomp.
30227
30228 2005-06-08  Bruno Haible  <bruno@clisp.org>
30229
30230         * m4/csharpcomp.m4: New file, from GNU gettext.
30231
30232 2005-06-08  Bruno Haible  <bruno@clisp.org>
30233
30234         * lib/csharpcomp.h: New file, from GNU gettext.
30235         * lib/csharpcomp.c: New file, from GNU gettext.
30236         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30237
30238 2005-06-08  Bruno Haible  <bruno@clisp.org>
30239
30240         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30241         warning on mingw.
30242
30243 2005-06-07  Derek Price  <derek@ximbiot.com>
30244
30245         Sync from CVS.
30246         * lib/glob_.h: Indent nested #ifdef.
30247
30248 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30249
30250         Sync from coreutils.
30251         Use "file name" when talking about file names, instead of "filename"
30252         or "path", as per the GNU coding standards.
30253         * lib/mkdir-p.c: Renamed from makepath.c.
30254         (make_dir_parents): Renamed from make_path.  All callers changed.
30255         * lib/mkdir-p.h: Likewise.  All includers changed.
30256         * lib/filenamecat.c: Renamed from path-concat.c.
30257         (file_name_concat): Renamed from path_concat.  All callers changed.
30258         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30259         * lib/filenamecat.h: Likewise.  All includers changed.
30260         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30261         in comments or local variable names.
30262         * lib/basename.c: Likewise.
30263         * lib/canonicalize.c, canonicalize.h: Likewise.
30264         * lib/dirname.c, dirname.h: Likewise.
30265         * lib/euidaccess.c: Likewise.
30266         * lib/exclude.c: Likewise
30267         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30268         * lib/fsusage.c, fsuage.h: Likewise.
30269         * lib/fts.c, fts_.h: Likewise.
30270         * lib/getcwd.c: Likewise.
30271         * lib/getloadavg.c: Likewise.
30272         * lib/mkstemp.c: Likewise.
30273         * lib/mountlist.c, mountlist.h: Likewise.
30274         * lib/openat.c, openat.h: Likewise.
30275         * lib/readlink-stub.c: Likewise.
30276         * lib/readutmp.c, readutmp.h: Likewise.
30277         * lib/rename.c: Likewise.
30278         * lib/rmdir.c: Likewise.
30279         * lib/same.c: Likewise.
30280         * lib/savedir.c: Likewise.
30281         * lib/stripslash.c: Likewise.
30282         * lib/tempname.c: Likewise.
30283         * lib/xreadlink.c: Likewise.
30284         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30285         All uses changed.
30286         * lib/exclude.h: Likewise.
30287
30288         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30289         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30290         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30292         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30293         files have been getting away with it for years (MORE/BSD 4.3
30294         is extinct now).
30295         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30296         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30297
30298         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30299         Define to 256, not 255, as per modern POSIX.
30300
30301 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30302
30303         Sync from coreutils.
30304         Use "file name" when talking about file names, instead of "filename"
30305         or "path", as per the GNU coding standards.
30306         * MODULES.html.sh: mkdir-p renamed from makepath.
30307         filenamecat renamed from path-concat.
30308         * modules/filenamecat: Renamed from modules/path-concat.
30309         (Files): filenamecat.h and filenamecat.c renamed from
30310         path-concat.h and path-concat.c.
30311         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30312         (Include): filenamecat.h, not path-concat.h.
30313         * modules/mkdir-p: Renamed from modules/makepath.
30314         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30315         makepath.c.
30316         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30317         (Include): mkdir-p.h, not makepath.h.
30318
30319 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30320
30321         Sync from coreutils.
30322         * m4/mkdir-p.m4: Renamed from makepath.m4.
30323         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30324         Rename files from makepath.c to mkdir-p.c, and from
30325         makepath.h to mkdir-p.h.
30326         * m4/filenamecat.m4: Renamed from path-concat.m4.
30327         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30328         Rename files from path-concat.c to filenamecat.c,
30329         and from path-concat.h to filenamecat.h.
30330         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30331         "file name" in local variables or comments.
30332         * m4/rename.m4: Likewise.
30333
30334 2005-06-01  Bruno Haible  <bruno@clisp.org>
30335
30336         * modules/csharpexec: New file.
30337         * MODULES.html.sh (C#): New section.
30338
30339 2005-06-01  Bruno Haible  <bruno@clisp.org>
30340
30341         * m4/csharp.m4: New file, from GNU gettext.
30342         * m4/csharpexec.m4: New file, from GNU gettext.
30343
30344 2005-06-01  Bruno Haible  <bruno@clisp.org>
30345
30346         * lib/csharpexec.h: New file, from GNU gettext.
30347         * lib/csharpexec.c: New file, from GNU gettext.
30348         * lib/csharpexec.sh.in: New file, from GNU gettext.
30349
30350 2005-05-31  Derek Price  <derek@ximbiot.com>
30351             Paul Eggert  <eggert@cs.ucla.edu>
30352
30353         Sync from cvs.
30354         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30355
30356 2005-05-31  Derek Price  <derek@ximbiot.com>
30357             Paul Eggert  <eggert@cs.ucla.edu>
30358
30359         Sync from cvs.
30360         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30361
30362 2005-05-29  Derek Price  <derek@ximbiot.com>
30363
30364         * config/srclist.txt (glob_.h, glob.c): Add these files.
30365
30366 2005-05-29  Derek Price  <derek@ximbiot.com>
30367
30368         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30369         * modules/glob: New file.
30370         * modules/getlogin_r: Add link to POSIX spec in description.
30371
30372 2005-05-29  Derek Price  <derek@ximbiot.com>
30373             Paul Eggert  <eggert@cs.ucla.edu>
30374
30375         * m4/glob.m4: New file.
30376
30377 2005-05-29  Derek Price  <derek@ximbiot.com>
30378             Paul Eggert  <eggert@cs.ucla.edu>
30379
30380         * lib/glob_.h, lib/glob.c: New files.
30381
30382 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30383
30384         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30385         * modules/fts-lgpl (Depends-on): Remove gettext.
30386
30387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30388
30389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30390         and don't require gt_INTTYPES_PRI.
30391
30392 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30393
30394         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30395
30396         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30397         the configuration hassle isn't worth it.
30398         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30399         (LONGEST_MODIFIER, PRIuMAX): Remove.
30400
30401 2005-05-27  Bruno Haible  <bruno@clisp.org>
30402
30403         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30404
30405 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30406
30407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30408         _POSIX_PTHREAD_SEMANTICS for Solaris.
30409
30410 2005-05-25  Derek Price  <derek@ximbiot.com>
30411
30412         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30413
30414 2005-05-25  Derek Price  <derek@ximbiot.com>
30415             Paul Eggert  <eggert@cs.ucla.edu>
30416
30417         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30418         * lib/getlogin_r.c, getlogin_r.h: New files.
30419
30420 2005-05-25  Bruno Haible  <bruno@clisp.org>
30421             Derek Price  <derek@ximbiot.com>
30422
30423         * lib/getlogin_r.h: Simplify API documentation.
30424
30425 2005-05-23  Derek Price  <derek@ximbiot.com>
30426
30427         * modules/minmax (Files): Add m4/minmax.m4.
30428         (configure.ac): Add gl_MINMAX.
30429
30430 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30431
30432         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30433         so that unistd-safer.h (GPL'ed code) need not be included.
30434
30435 2005-05-22  Bruno Haible  <bruno@clisp.org>
30436
30437         * m4/minmax.m4: New file.
30438         Based on a patch by Derek Price <derek@ximbiot.com>.
30439
30440 2005-05-22  Bruno Haible  <bruno@clisp.org>
30441
30442         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30443         (INT64_MIN): Fix definition.
30444         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30445
30446         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30447         NEED_SIGNED_INT_TYPES.
30448
30449         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30450         HAVE_SYSTEM_INTTYPES.
30451
30452 2005-05-22  Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30455         Also include <sys/param.h> if it defines MIN, MAX.
30456         Based on a patch by Derek Price <derek@ximbiot.com>.
30457
30458 2005-05-21  Jim Meyering  <jim@meyering.net>
30459
30460         * modules/fts (Files): Add m4/inttypes-pri.m4.
30461         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30462
30463 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30464
30465         New fts module.
30466         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30467         (setup_dir, free_dir): New functions.
30468         (enter_dir, leave_dir): Define trivial
30469         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30470         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30471         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30472         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30473         Move to fts-cycle.c.
30474         (fts_open): Use setup_dir.
30475         (fts_close): Use free_dir.
30476         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30477         This adds a label and some gotos, but the alternatives were messier.
30478         Check for memory allocation failure when entering a dir.
30479         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30480         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30481         (FTS): New member fts_cycle, that is a union that contains the
30482         old active_dir_ht and cycle_state.  All uses changed to mention
30483         fts_cycle.ht and fts_cycle.state.
30484         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30485         fts.c, with the following changes:
30486         (setup_dir, free_dir): New functions.
30487         (enter_dir): Now returns bool.  Return true if successful, false
30488         if memory exhausted.  All callers changed.
30489         Do not bother partly cleaning up on
30490         memory allocation failure; that is free_dir's job.
30491         However, free ad if hash_insert fails, to avoid memory leak.
30492         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30493         fts->fts_options to see which union member to use.
30494
30495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30496
30497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30498         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30499
30500 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30501
30502         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30503
30504 2005-05-20  Jim Meyering  <jim@meyering.net>
30505
30506         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30507         Now a macro, to pacify GCC.
30508
30509 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30510
30511         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30512         of -1.
30513
30514 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30515
30516         * lib/chown.c (rpl_chown): Return -1 on failure.
30517
30518 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30519
30520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30521         Don't check for stddef.h.
30522         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30523         don't use its results.
30524         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30525         since we include them unconditionally.  Don't require
30526         AM_STDBOOL_H, since stdbool is a prerequisite.
30527         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30528         since we assume C89 or better.
30529         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30530         as we don't use their results.
30531         Don't check for fchdir, memmove, memset, strrchr, as we use
30532         them unconditionally.
30533         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30534         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30535
30536 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30537
30538         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30539         Include <stddef.h> unconditionally, since we assume C89 now.
30540         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30541         * lib/fts.c: Include fts_.h first, to check interface.
30542         Do not include intprops.h; no longer needed.
30543         Include cycle-check.h and hash.h, since fts_.h no longer does.
30544         Remove unnecessary casts of closedir to void.
30545         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30546         decide whether to decrement nlinks.
30547         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30548         (FTS): Use struct hash_table * instead of Hash_table, so that
30549         we no longer need to include hash.h here.
30550
30551 2005-05-18  Jim Meyering  <jim@meyering.net>
30552
30553         * modules/dirfd (License): Change to LGPL.  Most of the code
30554         is already in the public domain.
30555
30556 2005-05-18  Jim Meyering  <jim@meyering.net>
30557
30558         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30559         Reported by Yoann Vandoorselaere.
30560
30561 2005-05-17  Jim Meyering  <jim@meyering.net>
30562
30563         * m4/fts.m4: New file, from coreutils.
30564
30565 2005-05-17  Jim Meyering  <jim@meyering.net>
30566
30567         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30568
30569 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30570
30571         Sync from coreutils.
30572         * m4/unlinkdir.m4: New file.
30573
30574 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30575
30576         Sync from coreutils.
30577         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30578         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30579         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30580         White space changes only.
30581         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30582         special.
30583         * lib/yesno.c: Include getline.h, not ctype.h.
30584         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30585         Use getline to remove arbitrary restriction on response length.
30586
30587 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30588
30589         * config/srclist-update: Spell out "Street" in FSF postal
30590         mail address; this is the style the FSF seems to prefer.
30591
30592         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30593         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30594         this updates FSF postal mail address.
30595
30596         Sync from coreutils.
30597         * modules/unlinkdir: New file.
30598         * modules/yesno (Depends-on): Add getline.
30599         * MODULES.html.sh (File system functions): Add unlinkdir.
30600
30601 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30602
30603         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30604         lib/strsep.h:
30605         Change the initial comment to refer to GPL, not LGPL.
30606         gnulib-tool will change it to LGPL as needed.
30607
30608         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30609         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30610         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30611         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30612         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30613         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30614         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30615         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30616         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30617         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30618         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30619         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30620         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30621         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30622         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30623         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30624         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30625         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30626         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30627         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30628         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30629         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30630         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30631         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30632         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30633         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30634         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30635         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30636         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30637         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30638         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30639         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30640         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30641         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30642         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30643         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30644         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30645         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30646         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30647         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30648         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30649         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30650         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30651         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30652         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30653         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30654         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30655         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30656         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30657         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30658         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30659         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30660         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30661         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30662         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30663         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30664         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30665         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30666         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30667         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30668         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30669         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30670         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30671         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30672         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30673         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30674         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30675         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30676         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30677         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30678         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30679         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30680         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30681         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30682         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30683         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30684         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30685         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30686         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30687         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30688         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30689         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30690         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30691         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30692         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30693         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30694         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30695         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30696         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30697         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30698         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30699         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30700         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30701         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30702         lib/yesno.c, lib/yesno.h:
30703         Update FSF postal mail address.
30704
30705 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30706
30707         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30708         tests/test-memmem.c, tests/test-stpncpy.c:
30709         Update FSF postal mail address.
30710
30711 2005-05-13  Bruno Haible  <bruno@clisp.org>
30712
30713         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30714         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30715         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30716         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30717         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30718         Add support for 64-bit integers in the MSVC compiler.
30719
30720 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30721
30722         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30723
30724 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30725
30726         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30727
30728 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30729
30730         * doc/getdate.texi (General date syntax): Don't say that date
30731         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30732         Problem reported by Nic Ferrier.
30733
30734 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30735
30736         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30737         specified in ai_socktype. Fix invalid ai_protocol
30738         check. ai_protocol is usually set to 0 or depending on
30739         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30740         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30741         ai_socktype / ai_protocol in the returned addrinfo structure.
30742
30743 2005-05-10  Simon Josefsson  <jas@extundo.com>
30744
30745         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30746         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30747
30748 2005-05-10  Karl Berry  <karl@gnu.org>
30749
30750         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30751         (from http://www.gnu.org/licenses).
30752         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30753         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30754         fdl.texi suffices.
30755
30756 2005-05-10  Karl Berry  <karl@gnu.org>
30757
30758         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30759         (COPYING.DOC): remove.
30760
30761         * config/srclist-update: new FSF address.
30762
30763 2005-05-10  Derek Price  <derek@ximbiot.com>
30764
30765         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30766         possible.
30767
30768 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30769             Bruno Haible  <bruno@clisp.org>
30770
30771         * modules/inet_ntop: New file.
30772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30773         inet_ntop.
30774
30775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30776             Bruno Haible  <bruno@clisp.org>
30777
30778         * m4/inet_ntop.m4: New file.
30779
30780 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30781             Bruno Haible  <bruno@clisp.org>
30782
30783         * lib/inet_ntop.h: New file.
30784         * lib/inet_ntop.c: New file, from glibc with modifications.
30785
30786 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30787
30788         * modules/time_r (License): Change to LGPL.
30789         * modules/extensions (License): Change to LGPL.  Actually,
30790         the license is more permissive than that, but currently gnulib-tool
30791         doesn't know how to handle more-permissive licenses.
30792
30793         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30794         Problem reported by Dave Love.
30795
30796 2005-05-08  Jim Meyering  <jim@meyering.net>
30797
30798         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30799         blank.
30800
30801 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30802
30803         * modules/argmatch (Depends-on): Add stdbool.
30804         * modules/backupfile (Depends-on): Likewise.
30805         * modules/chdir-long (Depends-on): Likewise.
30806         * modules/closeout (Depends-on): Likewise.
30807         * modules/cycle-check (Depends-on): Likewise.
30808         * modules/dirname (Depends-on): Likewise.
30809         * modules/fnmatch (Depends-on): Likewise.
30810         * modules/fsusage (Depends-on): Likewise.
30811         * modules/fwriteerror (Depends-on): Likewise.
30812         * modules/getcwd (Depends-on): Likewise.
30813         * modules/getloadavg (Depends-on): Likewise.
30814         * modules/hard-locale (Depends-on): Likewise.
30815         * modules/makepath (Depends-on): Likewise.
30816         * modules/mountlist (Depends-on): Likewise.
30817         * modules/nanosleep (Depends-on): Likewise.
30818         * modules/posixtm (Depends-on): Likewise.
30819         * modules/quotearg (Depends-on): Likewise.
30820         * modules/readtokens (Depends-on): Likewise.
30821         * modules/readtokens0 (Depends-on): Likewise.
30822         * modules/readutmp (Depends-on): Likewise.
30823         * modules/save-cwd (Depends-on): Likewise.
30824         * modules/strftime (Depends-on): Likewise.
30825         * modules/userspec (Depends-on): Likewise.
30826         * modules/utimecmp (Depends-on): Likewise.
30827         * modules/xgetcwd (Depends-on): Likewise.
30828         * modules/xnanosleep (Depends-on): Likewise.
30829         * modules/xstrtod (Depends-on): Likewise.
30830         * modules/yesno (Depends-on): Likewise.
30831
30832 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30833
30834         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30835         needless checks.
30836
30837 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30838
30839         Merge from coreutils.  Among other things,
30840         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30841         * lib/fd-safer.c: New file.
30842         * lib/fcntl-safer.h, open-safer.c: Remove.
30843         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30844         * lib/dup-safer.c: Include unistd-safer.h first.
30845         Don't include errno.h.
30846         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30847         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30848         * lib/file-type.c: Rely on file-type.h change.
30849         * lib/getloadavg.c: Include unistd-safer.h.
30850         (getloadavg): Use safer open.
30851         * lib/getusershell.c: Include "stdio-safer.h".
30852         (getusershell): Use safer fopen.
30853         * lib/long-options.c (long_options): Use NULL rather than 0.
30854         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30855         'free'.
30856         * lib/modechange.c: Likewise.
30857         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30858         (MODE_DONE): New constant.
30859         (struct mode_change): Remove 'next' member.
30860         (make_node_op_equals): New function; like the old one of the
30861         same name, except it allocates an array.
30862         (mode_compile, mode_create_from_ref): Use it.
30863         (mode_compile): Allocate result as an array, not a linked list.
30864         Parse octal string ourself, so that we catch mistakes like "+0".
30865         (mode_adjust): Arg is an array, not a linked list.
30866         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30867         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30868         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30869         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30870         Remove.  This is now stat-macros.h's job.
30871         (talloc): Remove.  All callers replaced by xalloc, so that
30872         our invokers don't have to worry about reporting memory failures.
30873         (make_node_op_equals): Remove.
30874         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30875         New constants.
30876         (struct mode_change): Moved here from modechange.h.
30877         (mode_append_entry): Remove.
30878         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30879         apps to have incorrect behavior.  Use simpler algorithm for head
30880         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30881         Detect more invalid usages rather than having somewhat-random behavior.
30882         Don't insert an "a=" action, as that leads to incorrect behavior.
30883         (mode_compile, mode_create_from_ref): Return NULL on error instead
30884         of an enum, since now there's only one way to have an error.  All
30885         callers changed.
30886         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30887         at the correct time.  Simplify calculation of "+u" and its ilk.
30888         Don't mishandle "+X".
30889         (mode_free): Remove "register" and localize decls.
30890         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30891         (struct mode_change): Move to modechange.c; callers don't
30892         need to see this stuff.
30893         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30894         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30895         (mode_change, mode_adjust): Reflect the new signatures noted above.
30896         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30897         that might redefine system include files.
30898         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30899         (my_usleep): Use NULL rather than (void *) 0.
30900         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30901         Use siginterrupt to specify that system calls should be interrupted.
30902         (rpl_nanosleep): Move initialization of suspended closer to call of
30903         my_usleep.
30904         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30905         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30906         (desirable_utmp_entry): New function.
30907         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30908         using x2nrealloc, to simplify logic.
30909         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30910         size calculation.  Do not assume utmp file is a regular file.
30911         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30912         (READ_UTMP_CHECK_PIDS): New constant.
30913         * lib/save-cwd.c: Include unistd-safer.h.
30914         (save_cwd): Use fd_safer.
30915         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30916         [!_LIBC] Include "stat-macros.h" instead.
30917         * lib/unistd-safer.h (fd_safer): New decl.
30918
30919 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30920
30921         * modules/getloadavg (Depends-on): Add unistd-safer.
30922         * modules/getusershell (Depends-on): Add stdio-safer.
30923         * modules/lstat (Depends-on): Remove xalloc.
30924         * modules/mkstemp (Depends-on): Add stat-macros.
30925         * modules/modechange (Depends-on): Remove xstrtol.
30926         Add stat-macros, xalloc.
30927         * modules/save-cwd (Depends-on): Add unistd-safer.
30928         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30929         * modules/unistd-safer (Files): Add lib/fd-safer.c
30930         (Makefile.am): Remove lib_SOURCES.
30931
30932         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30933         Remove fcntl-safer; unistd-safer supersedes it.
30934
30935 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30936
30937         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30938         AC_HEADER_STAT.
30939         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30940         (gl_PREREQ_CHOWN): Remove.
30941         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30942         it.  Don't require AC_HEADER_STAT.
30943         (gl_PREREQ_LSTAT): Remove.
30944         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30945         Don't require AC_HEADER_STAT.
30946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30947         (gl_PREREQ_RMDIR): Remove.
30948         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30949         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30950         the stat-macros module a prerequisite.
30951         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30952         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30953         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30954         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30955         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30956         variable names.
30957         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30958         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30959         variable prefixes.
30960         * m4/fcntl-safer.m4: Remove.
30961         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30962         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30963         Invoke gl_PREREQ_FD_SAFER.
30964         (gl_PREREQ_FD_SAFER): New macro.
30965         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30966         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30967         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30968         Remove duplicate call to AC_LIBOBJ(readutmp).
30969         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30970
30971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30972         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30973
30974 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         * MODULES.html.sh (Misc): Add byteswap.
30977
30978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30979
30980         * modules/getcwd (Depends-on): Add extensions.
30981         * modules/openat (Depends-on): Likewise.
30982
30983 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30984
30985         * modules/byteswap: New file.
30986
30987 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30988
30989         * m4/byteswap.m4: New file.
30990
30991 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30992
30993         * lib/byteswap_.h: New file.
30994
30995 2005-04-25  Karl Berry  <karl@gnu.org>
30996
30997         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30998
30999 2005-04-25  Albert Chin  <china@thewrittenword.com>
31000
31001         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31002         Toolkit C bug.
31003
31004 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31005
31006         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31007         (func_ln_if_changed) Remove forcibly for no error message
31008         in case file does not exist.
31009
31010 2005-04-19  Simon Josefsson  <jas@extundo.com>
31011
31012         * gnulib-tool (Options): Make --symlink mean --symbolic.
31013
31014 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31015
31016         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31017
31018 2005-04-16  Simon Josefsson  <jas@extundo.com>
31019
31020         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31021
31022 2005-04-15  Simon Josefsson  <jas@extundo.com>
31023
31024         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31025
31026 2005-04-15  Simon Josefsson  <jas@extundo.com>
31027
31028         * gnulib-tool: Rename --symlink to --symbolic.
31029
31030 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31031
31032         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31033         symbolic links to files instead of copying/moving.  Add --aux-dir,
31034         specifying directory relative --dir where auxiliary build tools
31035         are placed.
31036
31037 2005-04-14  Bruno Haible  <bruno@clisp.org>
31038
31039         * modules/allocsa (License): Change to LGPL.
31040         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31041
31042 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31043
31044         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
31045         that "UTC +1 second" continues to work.  Problem reported
31046         by Dmitry V. Levin.
31047         (relunit_snumber): New rule.
31048         (relunit): Use it.
31049
31050 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         * lib/getdate.y (universal_time_zone_table): New constant.
31053         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
31054         universal_time_zone_table.
31055         (lookup_zone): Prefer universal_time_zone_table to
31056         local_time_zone_table, so that "GMT" time stamps are allowed in
31057         London during the summer.  Problem reported by Ian Abbott.
31058
31059 2005-04-12  Jim Meyering  <jim@meyering.net>
31060
31061         * lib/human.c (humblock): Set *options even when returning due to
31062         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31063         warning from gcc-4.
31064
31065 2005-04-09  Jim Meyering  <jim@meyering.net>
31066
31067         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31068         -Wuninitialized: initialize tm0.tm_year.
31069
31070 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31071
31072         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31073         count, since there's no maximum.  All uses changed.
31074         Add member dsts_seen.
31075         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31076         not being INT_MAX.
31077         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31078         Use pc_rels_seen to decide whther a date is absolute.
31079
31080         * lib/getdate.y (number): Don't overwrite year.
31081         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31082         check.
31083
31084 2005-04-02  Simon Josefsson  <jas@extundo.com>
31085
31086         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31087         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31088
31089 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31090
31091         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31092         where no absolute path name can be longer than PATH_MAX.
31093
31094 2005-03-27  Jim Meyering  <jim@meyering.net>
31095
31096         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31097
31098 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31099
31100         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31101         "one's complement" -> "ones' complement" in comment, as per Knuth.
31102         "value of type" -> "type or expression" in comment.
31103         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31104
31105 2005-03-26  Jim Meyering  <jim@meyering.net>
31106
31107         Comment nits.
31108         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31109         Correct typos: s/or/of/.
31110
31111 2005-03-26  Jim Meyering  <jim@meyering.net>
31112
31113         * modules/check-include-files: Move to ../ and rename to...
31114         * check-module: ...this.
31115
31116 2005-03-25  Jim Meyering  <jim@meyering.net>
31117
31118         * modules/xvasprintf (Files): Add xalloc.h.
31119
31120 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31121
31122         * modules/gettext (Files): config/config.rpath ->
31123         build-aux/config.rpath
31124         * modules/iconv (Files): Likewise.
31125         Problem reported by Oskar Liljeblad.
31126
31127 2005-03-23  Jim Meyering  <jim@meyering.net>
31128
31129         * modules/check-include-files: New script to check for
31130         missing dependencies, multiple includes, etc.
31131
31132         * modules/c-strtold (Depends-on): Add xalloc.
31133         * modules/c-strtod (Depends-on): Add xalloc.
31134         * modules/hash (Depends-on): Add xalloc.
31135         (Files): Remove lib/xalloc.h.
31136
31137         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31138         * modules/userspec (Files): Add lib/inttostr.h.
31139
31140 2005-03-23  Jim Meyering  <jim@meyering.net>
31141
31142         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31143
31144 2005-03-22  Jim Meyering  <jim@meyering.net>
31145
31146         * modules/stat-macros: New module.
31147         * modules/canonicalize, modules/euidaccess, modules/file-type,
31148         * modules/filemode, modules/lchown, modules/makepath,
31149         * modules/rmdir, modules/stat: Depend on new stat-macros module
31150         rather than listing lib/stat-macros.h manually.
31151         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31152
31153 2005-03-22  Jim Meyering  <jim@meyering.net>
31154
31155         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31156
31157 2005-03-22  Bruno Haible  <bruno@clisp.org>
31158
31159         * config/srclist.txt: Replace target directory 'config' with
31160         'build-aux'.
31161         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31162         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31163         ../build-aux/.
31164
31165 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31166
31167         * modules/chdir-long (Depends-on): Add mempcpy.
31168
31169         * modules/acl, modules/backupfile, modules/c-strtod,
31170         modules/c-strtold, modules/canon-host, modules/canonicalize,
31171         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31172         modules/exclude, modules/exitfail, modules/file-type,
31173         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31174         modules/getdate, modules/getline, modules/getpagesize,
31175         modules/getpass, modules/getugroups, modules/group-member,
31176         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31177         modules/inttostr, modules/long-options, modules/makepath,
31178         modules/md5, modules/memcasecmp, modules/memcoll,
31179         modules/modechange, modules/mountlist, modules/path-concat,
31180         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31181         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31182         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31183         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31184         modules/strftime, modules/strndup, modules/strverscmp,
31185         modules/timespec, modules/unlocked-io, modules/userspec,
31186         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31187         modules/yesno:
31188         Remove lib_SOURCES line from Makefile.am section, as this is now
31189         done automatically by the corresponding Autoconf macro.
31190
31191 2005-03-21  Jim Meyering  <jim@meyering.net>
31192
31193         Changes imported from coreutils.
31194
31195         * lib/cycle-check.c: Don't include xalloc.h.
31196
31197         * lib/path-concat.c: Don't include assert.h.
31198         (path_concat): Remove assertion that would have triggered
31199         for ABASE starting with more than one slash.
31200         Reported by Andreas Schwab.
31201
31202         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31203         properly when ABASE is an absolute file name.
31204         Correct the description of this function.
31205         Include <assert.h>.
31206         Add an assertion and a test driver.
31207         This fixes a bug introduced on 2004-07-02.
31208         Andreas Schwab reported the resulting failure of cp --parents:
31209         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31210
31211 2005-03-21  Jim Meyering  <jim@meyering.net>
31212
31213         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31214         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31215
31216 2005-03-21  Jim Meyering  <jim@meyering.net>
31217         and  Paul Eggert  <eggert@cs.ucla.edu>
31218
31219         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31220         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31221         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31222         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31223         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31224         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31225         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31226         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31227         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31228         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31229         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31230         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31231         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31232         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31233         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31234         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31235         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31236         for these modules.
31237
31238 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31239
31240         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31241         (which shouldn't happen), generate nothing instead of returning 0
31242         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31243
31244 2005-03-16  Bruno Haible  <bruno@clisp.org>
31245
31246         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31247         HAVE_LONGLONG_64BIT.
31248
31249 2005-03-16  Bruno Haible  <bruno@clisp.org>
31250
31251         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31252         HAVE_LONGLONG_64BIT.
31253
31254 2005-03-16  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31257         HAVE_LONGLONG_64BIT.
31258
31259 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31260
31261         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31262         reliably distinguish strftime failure from empty output on POSIX
31263         hosts.
31264
31265 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31266
31267         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31268         (iconv_string): Don't guess a size-zero buffer, as that might cause
31269         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31270         result would be 'too large', where 'too large' is (heuristically)
31271         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31272         overflow concerns.  This will prevent some unwanted malloc failures
31273         when the inputs are very large.
31274
31275 2005-03-15  Karl Berry  <karl@gnu.org>
31276
31277         * config/srclist.txt (config.rpath): from gettext.
31278         * config/config.rpath: update.
31279
31280 2005-03-15  Bruno Haible  <bruno@clisp.org>
31281
31282         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31283         to 'negate'.
31284
31285         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31286         variable.
31287
31288         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31289         results.
31290
31291 2005-03-14  Simon Josefsson  <jas@extundo.com>
31292
31293         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31294         <fx@gnu.org>.
31295
31296 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31297
31298         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31299         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31300         intprops.h.
31301         * lib/strtol.c: Likewise.
31302
31303 2005-03-14  Jim Meyering  <jim@meyering.net>
31304
31305         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31306         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31307         to be nonzero so that we (and caller) can detect the difference
31308         between a valid zero-length expansion and an error return, even
31309         when the underlying strftime fails before writing anything into
31310         that location.
31311
31312 2005-03-14  Bruno Haible  <bruno@clisp.org>
31313
31314         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31315         Update from GNU gettext 0.14.3.
31316
31317 2005-03-10  Jim Meyering  <jim@meyering.net>
31318
31319         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31320
31321 2005-03-10  Jim Meyering  <jim@meyering.net>
31322
31323         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31324         so that this module works on systems without fchdir.
31325
31326 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31327
31328         Factor int-properties macros into a single file, except for
31329         glibc-related files.
31330         * lib/intprops.h: New file.
31331         * lib/getloadavg.c: Include it instead of limits.h.
31332         (INT_STRLEN_BOUND): Remove.
31333         * lib/human.c: Include intprops.h.
31334         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31335         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31336         302/1000.
31337         * lib/inttostr.h: Include intprops.h instead of limits.h.
31338         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31339         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31340         for consistency with intprops.h.
31341         (time_t_is_integer, twos_complement_arithmetic): Use them.
31342         * lib/sig2str.h: Include <signal.h>, intprops.h.
31343         (INT_STRLEN_BOUND): Remove.
31344         * lib/strftime.c (TYPE_SIGNED): Remove.
31345         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31346         * lib/strtol.c: Adjust comments to match intprops.h.
31347         * lib/userspec.c: Include intprops.h.
31348         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31349         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31350         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31351         instead of rolling our own expressions.
31352         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31353
31354         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31355         instead of int.
31356         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31357         the right thing even if adding 1900 would overflow.  Similarly
31358         for tm_mon + 1 and tm_yday + 1.
31359         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31360         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31361         (DO_SIGNED_NUMBER): New macro.
31362         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31363
31364 2005-03-07  Bruno Haible  <bruno@clisp.org>
31365
31366         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31367
31368 2005-03-07  Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31371
31372 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31373
31374         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31375         (func_import): Only replace files via --import when they have actually
31376         changed.
31377
31378 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31379
31380         * m4/mmap-anon.m4: New file.
31381         * m4/pagealign_alloc.m4: New file.
31382
31383 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31384             Bruno Haible  <bruno@clisp.org>
31385
31386         * modules/pagealign_alloc: New file.
31387         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31388
31389 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31390             Bruno Haible  <bruno@clisp.org>
31391
31392         * lib/pagealign_alloc.h: New file.
31393         * lib/pagealign_alloc.c: New file.
31394
31395 2005-03-03  Bruno Haible  <bruno@clisp.org>
31396
31397         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31398         Use an all-permissive copyright notice, recommended by RMS.
31399
31400 2005-03-02  Bruno Haible  <bruno@clisp.org>
31401
31402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31403         of AIX, the replacement has to be done only after <string.h> is
31404         included, therefore not in config.h. stpncpy.h does the replacement,
31405         and stpncpy.c uses it.
31406
31407 2005-03-02  Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31410         stpncpy.c uses it.
31411
31412 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31413
31414         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31415         The workaround isn't strictly needed for POSIX conformance, and
31416         it's too much of a pain to configure and maintain.  We'll ask
31417         people to fix their kernels instead.
31418         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31419         (NANOSLEEP_BUG_WORKAROUND): Remove.
31420         (xnanosleep): Remove the workaround.
31421
31422 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31423
31424         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31425         Reported by Derek Price.
31426         (Include): Add "timespec.h".
31427
31428         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31429
31430 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31431
31432         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31433         to detect nanosleep bug.
31434
31435 2005-03-01  Bruno Haible  <bruno@clisp.org>
31436
31437         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31438
31439 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         * modules/gethrxtime: New file.
31442         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31443         (Depends-on): Add gethrxtime.
31444         (configure.ac): Add gl_XNANOSLEEP.
31445         (Makefile.am): Remove lib_SOURCES line.
31446
31447 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31448
31449         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31450         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31451
31452 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31453
31454         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31455         * lib/timespec.h (gettime): Return void, since it always
31456         succeeds now.  All uses changed.
31457         * lib/gettime.c (gettime) Likewise.
31458         [HAVE_NANOTIME]: Prefer nanotime.
31459         Assume gettimeofday succeeds, as POSIX requires.
31460         Assime time () succeeds, since other code already does.
31461         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31462         (timespec_subtract): Remove.
31463         (NANOSLEEP_BUG_WORKAROUND): New constant.
31464         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31465         things considerably.  Use it only on GNU/Linux hosts, since the
31466         workaround shouldn't be needed elsewhere.
31467
31468 2005-02-24  Bruno Haible  <bruno@clisp.org>
31469
31470         * modules/gettext (Files): Add m4/glibc2.m4.
31471
31472 2005-02-24  Bruno Haible  <bruno@clisp.org>
31473
31474         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31475         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31476         * m4/progtest.m4:
31477         Update from GNU gettext 0.14.2.
31478         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31479
31480 2005-02-24  Bruno Haible  <bruno@clisp.org>
31481
31482         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31483         * lib/config.charset: Update from GNU gettext 0.14.2.
31484
31485 2005-02-24  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/gettext.h: Update from GNU gettext 0.14.2.
31488
31489 2005-02-23  Simon Josefsson  <jas@extundo.com>
31490
31491         * m4/iconvme.m4: New file.
31492
31493 2005-02-23  Jim Meyering  <jim@meyering.net>
31494
31495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31496         change.
31497         Thanks to Bruno Haible for catching it.
31498
31499 2005-02-22  Simon Josefsson  <jas@extundo.com>
31500
31501         * modules/iconvme: New file.
31502
31503         * MODULES.html.sh: Add iconvme.
31504
31505 2005-02-22  Simon Josefsson  <jas@extundo.com>
31506
31507         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31508
31509 2005-02-22  Simon Josefsson  <jas@extundo.com>
31510
31511         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31512
31513 2005-02-22  Jim Meyering  <jim@meyering.net>
31514
31515         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31516         s/ifndef/ifdef/.
31517
31518 2005-02-20  Neil Conway  <neilc@samurai.com>
31519
31520         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31521         returned by OSX/Darwin if the specified buffer is not large
31522         enough for the hostname.
31523
31524 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31525
31526         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31527         pass it to _help, otherwise the latter coredumps trying to
31528         dereference state.root_argp.
31529
31530 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31531
31532         * modules/chdir-long (Depends-on): Add memrchr.
31533         * modules/memrchr (Files): Add lib/memrchr.h.
31534         (Include): "memrchr.h".
31535
31536 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31537
31538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31539
31540 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31541
31542         * lib/memrchr.h: New file.
31543         * lib/chdir-long.c: Include it.
31544         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31545         Don't bother including stddef.h.
31546
31547 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31548
31549         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31550         inclusion.
31551         Include <sys/types.h>, for dev_t.
31552         (ME_DUMMY, ME_REMOTE): Move from here....
31553         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31554         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31555         Dmitry V. Levin.
31556         Include mountlist.h first, to test the interface.
31557
31558 2005-01-29  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/progname.c (program_name): Initialize.
31561         Needed when linking statically on MacOS X.
31562
31563 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31564
31565         Sync from coreutils.
31566         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31567         (Depends-on): Add c-strtod.
31568         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31569
31570 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31571
31572         Sync from coreutils.
31573         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31574
31575         Remove files that are specific to coreutils.
31576         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31577
31578 2005-01-28  Bruno Haible  <bruno@clisp.org>
31579
31580         * modules/javacomp: New file.
31581         * MODULES.html.sh (Java): Add javacomp.
31582
31583 2005-01-28  Bruno Haible  <bruno@clisp.org>
31584
31585         * m4/javacomp.m4: New file, from GNU gettext.
31586
31587 2005-01-28  Bruno Haible  <bruno@clisp.org>
31588
31589         * lib/javacomp.sh.in: New file, from GNU gettext.
31590         * lib/javacomp.h: New file, from GNU gettext.
31591         * lib/javacomp.c: New file, from GNU gettext.
31592
31593 2005-01-26  Simon Josefsson  <jas@extundo.com>
31594
31595         * lib/gai_strerror.c: Use GPL in header.
31596
31597 2005-01-26  Bruno Haible  <bruno@clisp.org>
31598
31599         * modules/javaexec: New file.
31600         * MODULES.html.sh (Java): Add javaexec.
31601
31602 2005-01-26  Bruno Haible  <bruno@clisp.org>
31603
31604         * m4/javaexec.m4: New file, from GNU gettext.
31605
31606 2005-01-26  Bruno Haible  <bruno@clisp.org>
31607
31608         * lib/javaexec.sh.in: New file, from GNU gettext.
31609         * lib/javaexec.h: New file, from GNU gettext.
31610         * lib/javaexec.c: New file, from GNU gettext.
31611
31612 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31613
31614         * modules/lchown (Depends-on): Remove lchown.h
31615
31616 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31617
31618         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31619         must be defined if the header file was not found, in order
31620         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31621
31622 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31623
31624         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31625         initializers for struct pentry_state.
31626         (__argp_error): Check return value of __asprintf
31627         (__argp_failure): Translate error message
31628
31629         * lib/argp-parse.c: Removed braces around the expansion of N_()
31630
31631 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31632
31633         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31634         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31635         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31636         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31637         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31638         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31639         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31640         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31641         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31642         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31643         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31644         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31645         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31646         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31647         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31648         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31649         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31650         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31651         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31652         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31653         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31654         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31655         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31656         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31657         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31658         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31659         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31660         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31661         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31662         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31663         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31664         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31665         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31666         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31667         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31668         Use an all-permissive copyright notice, recommended by RMS.
31669
31670 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31671
31672         * modules/chdir-long (Depends-on): Remove mempcpy.
31673
31674 2005-01-21  Jim Meyering  <jim@meyering.net>
31675
31676         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31677         same value as for Solaris 9.
31678
31679         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31680         component length.  This included changing the parameter to be
31681         of type `char *' rather than `char const *'.
31682         * lib/chdir-long.h (chdir_long): Update prototype.
31683
31684         * lib/openat.c (fdopendir, fstatat): New functions.
31685         * lib/openat.h: Include headers required for use of DIR and struct
31686         stat.
31687         [AT_SYMLINK_NOFOLLOW]: Define.
31688         (fdopendir, fstatat): Add prototypes.
31689
31690 2005-01-21  Bruno Haible  <bruno@clisp.org>
31691
31692         * modules/classpath: New file.
31693         * MODULES.html.sh (Java): Add classpath.
31694
31695 2005-01-21  Bruno Haible  <bruno@clisp.org>
31696
31697         * lib/classpath.h: New file, from GNU gettext.
31698         * lib/classpath.c: New file, from GNU gettext.
31699
31700 2005-01-20  Simon Josefsson  <jas@extundo.com>
31701
31702         * modules/version-etc-fsf: New file.
31703
31704 2005-01-20  Simon Josefsson  <jas@extundo.com>
31705
31706         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31707         * lib/version-etc.c: Remove version_etc_copyright.
31708         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31709         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31710
31711 2005-01-20  Simon Josefsson  <jas@extundo.com>
31712
31713         * lib/base64.h (isbase64): Add.
31714
31715         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31716         using a unsigned prototype, don't inline.
31717         (base64_decode): Use it.
31718
31719 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31720
31721         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31722         it.
31723
31724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31725
31726         * lib/save-cwd.c (save_cwd): Remove code to support the case
31727         where fchdir is missing or flaky.
31728
31729 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31730
31731         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31732
31733 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31734
31735         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31736         AC_LIBSOURCES now does this.
31737         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31738         with new ullong_max module.
31739
31740 2005-01-19  Bruno Haible  <bruno@clisp.org>
31741
31742         * modules/sh-quote: New file.
31743         * MODULES.html.sh (Executing programs): Add sh-quote.
31744
31745 2005-01-19  Bruno Haible  <bruno@clisp.org>
31746
31747         * lib/sh-quote.h: New file, from GNU gettext.
31748         * lib/sh-quote.c: New file, from GNU gettext.
31749
31750 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31751
31752         Merge from coreutils.
31753         * m4/ullong_max.m4: New file.
31754         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31755         (gl_MACROS): Assume localeconv exists.
31756
31757 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31758
31759         Merge changes from coreutils, as described below in several
31760         changelogs dated today.
31761
31762         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31763         (O_DIRECTORY): Remove; not needed here, since "." must be
31764         a directory.  All uses removed.
31765         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31766         universal on Suns, and we also need to test for IRIX.
31767         Revamp code to use 'if' rather than '#if'.
31768         Avoid unnecessary comparison of cwd->desc to 0.
31769
31770         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31771         for known valid error numbers rather than observed invalid ones.
31772
31773 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31774
31775         * modules/ullong_max: New file.
31776
31777         * modules/chdir-long, modules/openat: New files.
31778         * modules/save-cwd (Depends-on): Depend on chdir-long.
31779         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31780
31781 2005-01-18  Jim Meyering  <jim@meyering.net>
31782
31783         Merge from coreutils.
31784         * m4/chdir-long.m4, m4/openat.m4: New files.
31785         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31786         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31787         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31788         is sane and DOES follow symlinks.  Besides, testing 20 different
31789         systems found no broken chown implementations.
31790         Prompted by a change in rsync's copy of this macro.
31791         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31792
31793         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31794
31795         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31796         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31797         NULL-means-set-to-current-time semantics.
31798         Remove temporary file immediately, rather than waiting
31799         for configure's at-exit trap code to do it.
31800
31801 2005-01-18  Jim Meyering  <jim@meyering.net>
31802
31803         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31804
31805         * lib/utimens.c (futimens): Account for the fact that futimes
31806         can also fail with errno == ENOSYS or errno == ENOENT.
31807         Patch from Dmitry V. Levin.
31808
31809         Change the name of the robust chdir function from chdir to chdir_long.
31810         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31811         (restore_cwd): Use chdir_long, not chdir.
31812         * lib/chdir-long.c: Renamed from chdir.c.
31813         * lib/chdir-long.h: Renamed from chdir.h.
31814         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31815         Hurd.
31816
31817 2005-01-18  Bruno Haible  <bruno@clisp.org>
31818
31819         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31820         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31821         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31822         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31823         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31824         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31825         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31826         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31827         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31828         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31829         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31830         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31831         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31832         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31833         Use an all-permissive copyright notice, recommended by RMS.
31834
31835 2005-01-18  Bob Proulx  <bob@proulx.com>
31836
31837         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31838         simplify offsetof() macro construct to avoid compile failure with
31839         native HP-UX 11.0 ANSI C compiler.
31840
31841 2005-01-17  Bruno Haible  <bruno@clisp.org>
31842
31843         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31844         redundant because stpncpy.m4 takes care of it.
31845
31846 2005-01-17  Bruno Haible  <bruno@clisp.org>
31847
31848         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31849
31850 2005-01-17  Bruno Haible  <bruno@clisp.org>
31851
31852         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31853         used.
31854
31855 2005-01-17  Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/fwriteerror.h (fwriteerror): Change specification to include
31858         fclose.
31859         * lib/fwriteerror.c: Include <stdbool.h>.
31860         (fwriteerror): At the end, close the file stream. Record whether
31861         stdout was already closed.
31862
31863 2005-01-17  Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/execute.c (environ): Declare if needed.
31866         * lib/pipe.c (environ): Likewise.
31867         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31868
31869 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31870
31871         * modules/argp: Depend on vsnprintf
31872
31873 2005-01-10  Jim Meyering  <jim@meyering.net>
31874
31875         * modules/closeout (Depends-on): Add atexit.
31876
31877 2005-01-06  Bruno Haible  <bruno@clisp.org>
31878
31879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31880
31881 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31882
31883         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31884         definitions to be after all include files, to avoid collisions.
31885         Problem reported by Bob Proulx.
31886
31887 2005-01-04  Jim Meyering  <jim@meyering.net>
31888
31889         Changes imported from coreutils.
31890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31891         as the mkstemp template, use a temporary directory and an
31892         8.3-friendly template to avoid trouble on systems like DJGPP.
31893         Reported by Juan M. Guerrero via Stepan Kasal.
31894         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31895         close. Remove the temporary directory right away, rather than waiting
31896         for configure's at-exit trap code to do it.
31897         Suggestion from Stepan Kasal.
31898
31899 2005-01-01  Simon Josefsson  <jas@extundo.com>
31900
31901         * gnulib-tool: Print #include directives when --import'ing.
31902
31903 2004-12-28  Simon Josefsson  <jas@extundo.com>
31904
31905         * tests/test-base64.c: Include required header files.  Remove
31906         unused variables.
31907
31908 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31909
31910         * modules/error (Depends-on): Remove gettext.
31911
31912 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31913
31914         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31915         not needed.  This removes a dependency on the gettext module.
31916         [defined _LIBC]: Do not include <libintl.h>; not needed.
31917
31918 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31919
31920         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31921         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31922
31923 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31924
31925         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31926         HAVE_DECL_STRTOLD.
31927
31928 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31929
31930         * modules/getdate (Depends-on): Remove alloca-opt.
31931
31932 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31933
31934         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31935
31936 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31937
31938         * lib/argp-parse.c: Include <stddef.h>.
31939         (alignof, alignto): New macros.
31940         (parser_init): Don't assume that void * is aligned sufficiently
31941         for struct option.
31942
31943         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31944         need to extend the stack.
31945         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31946         large.
31947
31948 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31949
31950         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31951
31952 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31953
31954         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31955         (2004-10-24) change.  Apparently this was a false alarm.
31956
31957         * modules/getdate: Depend on alloca-opt, not alloca.
31958
31959 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31960
31961         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31962         Remove now-obsolete comment about AIX.
31963         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31964         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31965         (YYMAXDEPTH): New macro.
31966
31967 2004-12-18  Simon Josefsson  <jas@extundo.com>
31968
31969         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31970
31971 2004-12-18  Bruno Haible  <bruno@clisp.org>
31972
31973         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31974
31975 2004-12-18  Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/fatal-signal.c (fatal_signals): Make non-const.
31978         (init_fatal_signals): New function.
31979         (uninstall_handlers, install_handlers): Ignore signals that were set to
31980         SIG_IGN.
31981         (at_fatal_signal): Call init_fatal_signals.
31982         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31983         SIG_IGN.
31984         Reported by Paul Eggert.
31985
31986 2004-12-18  Bruno Haible  <bruno@clisp.org>
31987
31988         * doc/alloca.texi: New file.
31989         * doc/alloca-opt.texi: New file.
31990
31991 2004-12-17  Jim Meyering  <jim@meyering.net>
31992
31993         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31994         Otherwise, install-sh could exit with improper exit status when
31995         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31996
31997 2004-12-16  Simon Josefsson  <jas@extundo.com>
31998
31999         * tests/test-base64.c: Add license.
32000
32001 2004-12-15  Stepan Kasal  <address@hidden>
32002
32003         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32004
32005 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32006
32007         * modules/getcwd (Files): Add m4/d-ino.m4.
32008         Suggested by Mark D. Baushke.
32009
32010 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32011
32012         * lib/getdate.y (textint): New member "negative".
32013         (time_zone_hhmm): New function.
32014         Expect 14 shift-reduce conflicts, not 13.
32015         (o_colon_minutes): New rule.
32016         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32017         (yylex): Set the "negative" member of signed numbers.
32018
32019 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * doc/getdate.texi (Time of day items, Time zone items):
32022         Describe new formats +00:00, UTC+00:00.
32023
32024 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32025
32026         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32027         spurious "-l"s.  Problem reported by Stepan Kasal.
32028
32029 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32030
32031         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32032         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32033
32034 2004-12-04  Simon Josefsson  <jas@extundo.com>
32035
32036         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
32037         Vandoorselaere <yoann@prelude-ids.org>.
32038
32039 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32040
32041         Changes imported from coreutils.
32042         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
32043         exist.
32044         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
32045
32046 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32047
32048         Changes imported from coreutils.
32049         * lib/hard-locale.c: Assume <locale.h> exists.
32050         Include "strdup.h".
32051         (GLIBC_VERSION): New macro.
32052         (hard_locale): Assume setlocale exists.
32053         Rewrite to avoid #ifdef.
32054         Use strdup rather than malloc + strcpy.
32055         * lib/human.c: Assume <locale.h> exists.
32056         (human_readable): Assume localeconv exists.
32057
32058 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32059
32060         * modules/hard-locale (Depends-on): Add strdup.
32061
32062 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32063
32064         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32065         convert T2, not T.  (Imported from libc.)
32066
32067 2004-11-30  Simon Josefsson  <jas@extundo.com>
32068
32069         * modules/restrict (License): Change to LGPL.
32070
32071 2004-11-30  Simon Josefsson  <jas@extundo.com>
32072
32073         * m4/restrict.m4: Add copyright and copying conditions.
32074
32075 2004-11-30  Simon Josefsson  <jas@extundo.com>
32076
32077         * m4/base64.m4: New file.
32078
32079 2004-11-30  Simon Josefsson  <jas@extundo.com>
32080
32081         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32082         base64.
32083
32084         * tests/test-base64.c: New file.
32085
32086         * modules/base64: New file.
32087
32088 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32089
32090         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32091         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32092
32093         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32094
32095 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32098         (__getcwd.c): Don't restore errno; glibc doesn't.
32099         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32100         first, falling back to our code only if its results look suspicious.
32101         Ensure that the resulting buffer is only as large as necessary.
32102
32103         * lib/readutmp.c: Include readutmp.h first.
32104         Include <errno.h>, since readutmp.h no longer does that.
32105         * lib/readutmp.h: Don't include <errno.h>,
32106         <sys/param.h>, <time.h>; not needed to establish interface.
32107         (errno): Remove decl.
32108         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32109         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32110         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32111
32112 2004-11-28  Simon Josefsson  <jas@extundo.com>
32113
32114         * lib/base64.h, base64.c: New file.
32115
32116 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32117
32118         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32119
32120 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32121
32122         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32123         (Depends-on): Remove pathmax, same.  Add mempcpy.
32124         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32125         (Makefile.am): Append getcwd.h to lib_SOURCES.
32126         (Include): Add getcwd.h.
32127         (Maintainer): Change from Jim Meyering to "all, glibc",
32128         since getdate now uses intended-for-glibc code.
32129         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32130         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32131
32132 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32135         HP's ANSI C compiler.
32136         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32137         Declaring int functions causes warnings on some modern systems and
32138         shouldn't be needed to compile on ancient ones.
32139         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32140         defined.
32141
32142         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32143         with the following changes.
32144         (__set_errno): Parenthesize properly.
32145         Include <stdbool.h>.
32146         (MIN, MAX, MATCHING_INO): New macros.
32147         (__getcwd): Define with prototype, not K&R form.
32148         Use heuristics to allocate default buffer on stack if possible.
32149         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32150         behavior, and to avoid the PATH_MAX limit when computing
32151         ../../../../...
32152         Use MATCHING_INO to compare inode number to file.
32153         Check for arithmetic overflow in size calculations.
32154         Fix bug in reallocation of dot array that caused getcwd to fail
32155         on directories nested deeper than 75.
32156         Be more careful about saving errno on error.
32157         Do not use realloc; use only free+malloc, as this is a bit
32158         more flexible and avoids a needless copy operation.
32159         Do not inspect st_dev and st_ino for symbolic links; POSIX
32160         doesn't specify the latter.
32161         Check for closedir errors.
32162         Avoid needless casts.
32163         Use "#ifdef weak_alias" around weak_alias, to be like other
32164         glibc code.
32165         The following changes to getcwd.c have effect only when used in
32166         gnulib; they have no effect inside glibc proper.
32167         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32168         as alloca isn't used.
32169         (alloca, __alloca): Likewise.
32170         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32171         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32172         unconditionally, as gnulib assumes C89 or better.
32173         Do not include <sys/param.h>.
32174         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32175         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32176         better.
32177         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32178         Include <dirent.h> in a way that is compatible with modern Autoconf.
32179         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32180         New macros, if not already defined.
32181         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32182         Use "_LIBC", not "defined _LIBC", for consistency.
32183         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32184         a mempcpy module.
32185         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32186         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32187         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32188         credit only to Jim Meyering and adjust the copyright dates.
32189         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32190         <stdlib.h>, <unistd.h>, "pathmax.h".
32191         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32192         (INITIAL_BUFFER_SIZE): Remove.
32193         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32194
32195 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32196
32197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32198         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32199         Use the _ONCE methods, for efficiency.
32200         Check for fcntl.h.  In test program, include <errno.h>
32201         and <fcntl.h> if available.  Remove old K&R cruft from
32202         test program.  Check for common errors in GNU/Linux,
32203         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32204         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32205         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32206         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32207         name accordingly.
32208         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32209         accommodate new getcwd.c.
32210         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32211         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32212         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32213         that's all we need now.
32214
32215 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32216
32217         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32218         argp-parse.c depends on getopt internals, that means we should
32219         always use our getopt, to be on the safe side.
32220         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32221         order not to spoil the result of an eventual previous invocation
32222         of gl_GETOPT_SUBSTITUTE.
32223
32224 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32225
32226         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32227         redefinition warnings. To avoid them, include the defines
32228         in `#if !defined __need_getopt ... #endif'. The only place
32229         where __getopt_argv_const is used is in definitions
32230         of getopt_long and getopt_long_only below, which are as well
32231         protected by `#ifndef __need_getopt'.
32232         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32233         __need_getopt after including <stdio.h> and <unistd.h> These
32234         headers might have defined it.
32235
32236 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32237
32238         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32239
32240 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32241
32242         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32243         (futimens): New function, which uses futimes if available.
32244         (futimens, utimens): Support timespec==NULL, with same semantics
32245         as utime and utimens.
32246         * lib/utimens.h (futimens): New decl.
32247
32248 2004-11-23  Jim Meyering  <jim@meyering.net>
32249
32250         * lib/getopt_.h: Remove trailing blanks.
32251
32252 2004-11-23  Jim Meyering  <jim@meyering.net>
32253
32254         * lib/__fpending.c: Add comment.
32255
32256 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32257
32258         * modules/canonicalize (Depends-on): Add xreadlink.
32259         Problem reported by James Youngman.
32260
32261 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32262
32263         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32264         New macros.
32265         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32266         optopt): Use them instead of invoking ## directly; otherwise, the
32267         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32268
32269 2004-11-19  Bruno Haible  <bruno@clisp.org>
32270
32271         * lib/strtok_r.c: Move comments from here...
32272         * lib/strtok_r.h: ... to here.
32273
32274 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32275
32276         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32277         implementations that mishandle size_t overflow.
32278
32279 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32280
32281         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32282         might fail.  Problem reported by Yoann Vandoorselaere.
32283         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32284         implementations that mishandle size_t overflow.
32285
32286 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32287
32288         * modules/canon-host (Depends-on): Add strdup.
32289
32290 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32291
32292         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32293
32294 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32295
32296         * lib/canon-host.c: Include "strdup.h".
32297         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32298         Use strdup instead of malloc/strcpy to duplicate strings.
32299
32300         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32301         (human_space_before_unit): New constant.
32302         * lib/human.c (human_readable): Support it.
32303
32304         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32305         (xgetcwd): Set errno correctly when failing.
32306         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32307         the failure is actually due to a PATH_MAX problem.
32308
32309         Further getopt changes to make it more likely that glibc will
32310         buy the changes back.
32311         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32312         (getopt): Use it, so to preserve glibc semantic
32313         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32314         when compiling for libc.
32315         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32316         (getopt_long, getopt_long_only): Use it.
32317
32318         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32319         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32320         (getopt): Argv is now char * const *, as per standard.
32321         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32322         not char *__getopt_argv_const *.
32323         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32324         _getopt_long_only_r): Likewise.
32325         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32326         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32327         _getopt_long_r, _getopt_long_only_r): Likewise.
32328         * lib/getopt_.h (__getopt_argv_const): Remove.
32329         (getopt): Argv is now char * const *, as per standard.
32330
32331         * lib/getdate.y (tORDINAL): New token.
32332         (day, relunit): Allow it for relative times.
32333         (relative_time_table): Use tORDINAL for ordinals.
32334
32335 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32336
32337         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32338         Document that "second" isn't allowed as an ordinal number.
32339
32340 2004-11-16  Jim Meyering  <jim@meyering.net>
32341
32342         * modules/closeout (Depends-on): Add fpending.
32343
32344 2004-11-15  Jim Meyering  <jim@meyering.net>
32345
32346         * lib/closeout.c: Include "__fpending.h" once again.
32347         Include <stdbool.h>.
32348         (close_stdout): Don't fail just because stdout was closed initially,
32349         since some programs don't write to stdout in the normal course of
32350         operation (other than --version and --help), and we don't want this
32351         function to make e.g. `touch file >&-' fail.
32352         But do fail if it was closed and someone has tried to write to it.
32353         E.g., `printf foo >&-' must fail.
32354
32355 2004-11-13  Jim Meyering  <jim@meyering.net>
32356
32357         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32358
32359 2004-11-12  Simon Josefsson  <jas@extundo.com>
32360
32361         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32362         small doc fix is still pending.
32363
32364 2004-11-11  Simon Josefsson  <jas@extundo.com>
32365
32366         * modules/strtok_r: New file.
32367
32368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32369         strtok_r.
32370
32371 2004-11-11  Simon Josefsson  <jas@extundo.com>
32372
32373         * m4/strtok_r.m4: New file.
32374
32375         * m4/getopt.m4: Replace opterr.
32376
32377 2004-11-11  Simon Josefsson  <jas@extundo.com>
32378
32379         * lib/strtok_r.h, strtok_r.c: New file.
32380
32381 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32384         of replacing opterr, getopt, etc.  This should handle the
32385         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32386
32387 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32388
32389         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32390         we can stop lying to compilers about the constness of argv when we
32391         are compiled outside glibc.
32392         (getopt, getopt_long, getopt_long_only): Use it.
32393         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32394         _getopt_internal, getopt): Likewise.
32395         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32396         _getopt_long_only_r): Likewise.
32397         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32398         _getopt_long_r, _getopt_long_only_r): Likewise.
32399
32400         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32401         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32402         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32403         the other external symbols.
32404         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32405         declaration, since the above renaming now works around collisions.
32406
32407 2004-11-11  Jim Meyering  <jim@meyering.net>
32408
32409         * lib/linebreak.c: Remove trailing blanks.
32410         * lib/alloca_.h: Likewise.
32411         * lib/acosl.c: Likewise.
32412         * lib/euidaccess.c: Likewise.
32413         * lib/allocsa.h: Likewise.
32414
32415 2004-11-10  Simon Josefsson  <jas@extundo.com>
32416
32417         * m4/getaddrinfo.m4: New file.
32418
32419 2004-11-10  Simon Josefsson  <jas@extundo.com>
32420
32421         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32422
32423 2004-11-10  Simon Josefsson  <jas@extundo.com>
32424
32425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32426         getaddrinfo.
32427
32428         * modules/getaddrinfo: New file.
32429
32430 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32433
32434 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32435
32436         * lib/mktime.c (SHR): New macro, which is a portable
32437         substitute for >> that should work even on Crays.
32438         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32439         Problem reported by Mark D. Baushke in
32440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32441         * lib/getdate.y (SHR): Likewise.
32442         (tm_diff): Use it.
32443         * lib/strftime.c (SHR): Likewise.
32444         (tm_diff): Use it.
32445         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32446         quote_these_too, so that right shifts are well defined.  All uses
32447         changed.
32448
32449 2004-11-10  Jim Meyering  <jim@meyering.net>
32450
32451         Ensure that no close failure goes unreported.
32452         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32453         return early when it seems there's nothing to flush.
32454         Don't include __fpending.h.
32455
32456 2004-11-10  Jim Meyering  <jim@meyering.net>
32457
32458         * modules/closeout (Depends-on): Remove fpending.
32459
32460 2004-11-10  Jim Meyering  <jim@meyering.net>
32461
32462         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32463
32464 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32465
32466         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32467         gl_FUNC_STRFTIME.
32468         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32469         and AC_REQUIRE when possible, to avoid duplicate checks.
32470         Check for <wchar.h>.
32471
32472 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32473
32474         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32475
32476 2004-11-09  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/sockpfaf.m4: New file.
32479
32480 2004-11-05  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32483         Reported by Mark D. Baushke <mdb@cvshome.org>.
32484
32485 2004-11-04  Bruno Haible  <bruno@clisp.org>
32486
32487         2004-09-11  Bruno Haible  <bruno@clisp.org>
32488                 * allocsa.valgrind: New file.
32489         2004-02-06  Bruno Haible  <bruno@clisp.org>
32490                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32491                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32492                 Reported by Christopher Seip <chris.seip@hp.com>.
32493
32494 2004-11-04  Bruno Haible  <bruno@clisp.org>
32495
32496         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32497         (Makefile.am): Distribute it.
32498
32499 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32500
32501         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32502         with errno == ERANGE if the buffer is too small.
32503         Problem reported by Mark D. Baushke.
32504
32505 2004-11-03  Albert Chin  <china@thewrittenword.com>
32506             Paul Eggert  <eggert@cs.ucla.edu>
32507
32508         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32509         equivalent, substitute $ac_type for equivalent type rather than
32510         blindly using uint32_t *always* which won't work if uint32_t is not
32511         available.  Define _UINT32_T to work around typedef of uint32_t if
32512         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32513         2.5.1.
32514
32515 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32516
32517         * m4/jm-macros.m4: Sync from coreutils.
32518         (gl_MACROS): Check for mbrlen, for pathchk.
32519         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32520
32521 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32522
32523         * lib/xreadlink.c (MAXSIZE): New macro.
32524         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32525         size does not exceed MAXSIZE.  Avoid cast.
32526         As suggested by Mark D. Baushke in
32527         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32528         if readlink fails with buffer size just under MAXSIZE, try again
32529         with MAXSIZE.
32530
32531 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32534
32535 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32536         and  Paul Eggert  <eggert@cs.ucla.edu>
32537
32538         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32539         (get_date): Overparenthesize to avoid GCC warning.
32540
32541 2004-11-02  Bruno Haible  <bruno@clisp.org>
32542
32543         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32544         returns void.
32545
32546 2004-11-02  Bruno Haible  <bruno@clisp.org>
32547
32548         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32549         function returns void.
32550
32551 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32552
32553         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32554         fflush_unlocked, flockfile, funlockfile, funlockfile,
32555         fputs_unlocked, putc_unlocked.
32556
32557 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32558
32559         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32560         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32561         already declared.
32562
32563 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32564
32565         * modules/getdate (Files): Add doc/getdate.texi.
32566         (Depends-on): Add setenv, xalloc.
32567
32568 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * lib/getdate.y: Add support for TZ="foo" within a date string.
32571         Fix some bugs near time_t boundaries.  Reject dates with
32572         out-of-range components, e.g., "Sept 31".
32573         Include <stdlib.h>, "setenv.h", "xalloc.h".
32574         (ISDIGIT_LOCALE): Remove; unused.
32575         Note that the TZ and time functions used here are not reentrant.
32576         (mktime_ok, get_tz): New functions.
32577         (TZBUFSIZE): New constant.
32578         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32579         This requires that we sometimes generate our own TZ="XXX..." setting.
32580
32581 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32582
32583         * doc/getdate.texi: New file, from coreutils with modifications for
32584         the new TZ parsing.
32585
32586 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32587
32588         * lib/mktime.c (not_equal_tm): Remove redundant check.
32589
32590 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32591
32592         * modules/regex (lib_SOURCES): Add regex.c.
32593         Reported by James Youngman in
32594         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32595
32596 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32597
32598         * lib/getdate.y: Use Bison 1.875 features, and some minor
32599         code cleanups.  This change does not affect semantics.
32600         Don't include <stdlib.h>; no longer needed.
32601         Don't include unlocked-io.h; only the "#if TEST" code uses
32602         stdio, and performance isn't crucial there.
32603         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32604         Bison 1.875 features as described below.
32605         All uses of "PC." replaced by "pc->".
32606         (YYSTYPE): Add a forward declaration.
32607         (yylex, yyerror): Use full prototypes in forward decls.
32608         Use "%pure-parser" rather than obsolescent "%pure_parser".
32609         Use %parse-param and %lex-param instead of obsolescent
32610         YYPARSE_PARAM and YYLEX_PARAM.
32611         (meridian_table, month_and_day_table, time_units_table,
32612         relative_time_table, time_zone_table, military_table,
32613         lookup_zone, lookup_word, get_date):
32614         Use NULL instead of 0 where appropriate.
32615         (to_hour): Avoid abort (), to avoid a dependency on
32616         stdlib.h.
32617         (yyerror, yylex): Now accepts parser_control * arg.
32618         (main) [TEST]: Use '\0' rather than 0 for char.
32619
32620 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32621
32622         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32623
32624 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32625
32626         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32627         It's now the caller's responsibility to handle the case where
32628         !HAVE_GETPAGESIZE && !defined getpagesize.
32629
32630         * lib/mktime.c (leapyear): Arg is long int, not int.
32631
32632 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32633
32634         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32635
32636 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32637
32638         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32639         missing.  Problem reported by James Youngman.
32640
32641 2004-10-16  Simon Josefsson  <jas@extundo.com>
32642
32643         * gnulib-tool: Fix comments.  Fix parse problem.
32644         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32645
32646 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32647
32648         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32649         implementation of getopt_long.  Problem reported by Alexander Taler in:
32650         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32651
32652 2004-10-15  Bruno Haible  <bruno@clisp.org>
32653
32654         * gnulib-tool: Untabify. Initialize supplied_libname.
32655         (func_usage): More homogenous output.
32656         (func_modules_transitive_closure, func_modules_to_filelist,
32657         func_emit_lib_Makefile_am): New functions.
32658         (func_import): New function, extracted from big case statement. Use
32659         func_get_license, func_modules_transitive_closure,
32660         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32661         opt_lgpl. Don't use test -a, as it's not portable.
32662         (func_create_testdir): Use func_modules_transitive_closure,
32663         func_modules_to_filelist, func_emit_lib_Makefile_am.
32664
32665 2004-10-15  Bruno Haible  <bruno@clisp.org>
32666
32667         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32668
32669 2004-10-15  Bruno Haible  <bruno@clisp.org>
32670
32671         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32672         the portions belonging to each module.
32673         Suggested by Derek Robert Price <derek@ximbiot.com>.
32674
32675 2004-10-12  Simon Josefsson  <jas@extundo.com>
32676
32677         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32678         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32679         to real functions.
32680
32681 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32682
32683         * modules/vsnprintf: New file.
32684
32685 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32686
32687         * m4/vsnprintf.m4: New file.
32688
32689 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32690
32691         * lib/vsnprintf.h: New file.
32692         * lib/vsnprintf.c: New file.
32693
32694 2004-10-11  Bruno Haible  <bruno@clisp.org>
32695
32696         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32697         vsnprintf.
32698
32699 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32700
32701         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32702
32703 2004-10-07  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32706         fits into the provided buffer.
32707
32708 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32709
32710         * lib/diacrit.c, diacrit.h: Add GPL notice.
32711
32712         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32713         notice.
32714         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32715         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32716         This avoids a potential constant-folding bug.
32717
32718 2004-10-05  Bruno Haible  <bruno@clisp.org>
32719
32720         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32721         for the declaration of strsep.
32722
32723 2004-10-05  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32726
32727 2004-10-04  Simon Josefsson  <jas@extundo.com>
32728
32729         * modules/memmem: New file.
32730         * tests/test-memmem.c: New file.
32731         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32732
32733 2004-10-04  Simon Josefsson  <jas@extundo.com>
32734
32735         * m4/memmem.m4: New file.
32736
32737 2004-10-04  Simon Josefsson  <jas@extundo.com>
32738
32739         * lib/memmem.h: New file.
32740         * lib/memmem.c: New file, taken from glibc.
32741
32742 2004-10-04  Simon Josefsson  <jas@extundo.com>
32743
32744         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32745         '#ifdef USE_UNLOCKED_IO'.
32746
32747 2004-10-04  Simon Josefsson  <jas@extundo.com>
32748
32749         * config/srclist.txt: Add memmem from glibc.
32750
32751 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32752
32753         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32754
32755         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32756         modules/exclude, modules/getdate, modules/getline,
32757         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32758         modules/getusershell, modules/linebuffer, modules/md5,
32759         modules/mountlist, modules/posixtm, modules/readtokens,
32760         modules/readutmp, modules/regex, modules/sha1,
32761         modules/version-etc, modules/yesno:
32762         Remove dependency on unlocked-io.
32763
32764 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32765
32766         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32767
32768         * m4/unlocked-io.m4: Add copyright notice.
32769         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32770
32771 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32772
32773         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32774         * lib/xmalloc.c (xmemdup): Likewise.
32775         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32776         XFREE): Remove these long-obsolescent macros.
32777         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32778         * lib/xstrdup.c: Remove.
32779
32780         * lib/regex.c (re_comp): Cast gettext return value to char *,
32781         Problem reported by Martin Neitzel via Mark D. Baushke.
32782
32783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32784
32785         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32786         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32787         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32788         regex.c, sha1.c, version-etc.c, yesno.c:
32789         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32790         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32791         the includer's responsibility.
32792
32793         Sync from coreutils.
32794
32795         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32796         points to the start of a string, as the C Standard says the
32797         resulting behavior is undefined.
32798
32799         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32800         simple -> simple_backups, numbered_existing ->
32801         numbered_existing_backups, numbered -> numbered_backups
32802         to avoid shadowing problems.  All uses changed.
32803         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32804         * lib/backupfile.c (check_extension, numbered_backup):
32805         Rename locals to avoid shadowing 'basename'.
32806         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32807         once.
32808
32809         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32810         * lib/.cvsignore: Add getopt.h.
32811
32812 2004-10-04  Bruno Haible  <bruno@clisp.org>
32813
32814         * modules/README: New file.
32815         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32816         not a module.
32817
32818 2004-10-02  Jim Meyering  <jim@meyering.net>
32819
32820         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32821
32822 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32823
32824         * modules/strsep: New file.
32825
32826 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32827
32828         * m4/strsep.m4: New file.
32829
32830 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32831
32832         * lib/strsep.h: New file.
32833         * lib/strsep.c: New file.
32834
32835 2004-10-01  Simon Josefsson  <jas@extundo.com>
32836
32837         * lib/snprintf.c (snprintf): Handle size==0.
32838
32839 2004-10-01  Simon Josefsson  <jas@extundo.com>
32840             Bruno Haible  <bruno@clisp.org>
32841
32842         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32843         (snprintf): Declare 'args'.
32844
32845 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32846
32847         * lib/snprintf.c: Remove comments as to why each header is needed.
32848
32849 2004-10-01  Bruno Haible  <bruno@clisp.org>
32850
32851         * MODULES.html.sh: Add strsep.
32852
32853 2004-09-30  Simon Josefsson  <jas@extundo.com>
32854
32855         * modules/snprintf: New file.
32856
32857 2004-09-30  Simon Josefsson  <jas@extundo.com>
32858
32859         * m4/snprintf.m4: New file.
32860
32861 2004-09-30  Simon Josefsson  <jas@extundo.com>
32862
32863         * lib/snprintf.h, lib/snprintf.c: New files.
32864
32865 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32866
32867         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32868         (hol_entry_help): Never translate an empty string.
32869         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32870         * lib/argp.h (OPTION_NO_TRANS): New option.
32871
32872 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32873
32874         * modules/argp (Maintainer): Replace Simon Josefsson
32875         by Sergey Poznyakoff.
32876
32877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32878
32879         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32880         changes merged back into glibc.
32881
32882 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32883
32884         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32885
32886 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32887
32888         * lib/xvasprintf.c: Include xalloc.h.
32889         (xvasprintf): Use xalloc_die, not xmalloc_die.
32890
32891 2004-09-29  Bruno Haible  <bruno@clisp.org>
32892
32893         * modules/alloca-opt: New file, derived from modules/alloca.
32894         * modules/allocsa: Depend on alloca-opt instead of alloca.
32895         * modules/setenv: Likewise.
32896         * modules/vasnprintf: Likewise.
32897         * MODULES.html.sh: Add alloca-opt.
32898
32899 2004-09-28  Simon Josefsson  <jas@extundo.com>
32900
32901         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32902         LGPL, and to replace license template from GPL to LGPL.
32903
32904 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * modules/dummy: Change license to LGPL.
32907
32908 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32909
32910         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32911
32912 2004-09-24  Simon Josefsson  <jas@extundo.com>
32913
32914         * modules/minmax (License): Change from GPL to LGPL.
32915
32916 2004-09-23  Simon Josefsson  <jas@extundo.com>
32917
32918         * gnulib-tool (--import): Typo.
32919
32920 2004-09-23  Simon Josefsson  <jas@extundo.com>
32921
32922         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32923
32924 2004-09-22  Bruno Haible  <bruno@clisp.org>
32925
32926         * modules/*: Add 'License' field.
32927         * gnulib-tool: Accept --extract-license option.
32928         (func_get_license): New function.
32929
32930 2004-09-21  Bruno Haible  <bruno@clisp.org>
32931
32932         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32933         Reported by Simon Josefsson.
32934
32935 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32936
32937         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32938         gl_AC_TYPE_LONG_LONG.
32939
32940 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32941
32942         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32943
32944 2004-09-18  Simon Josefsson  <jas@extundo.com>
32945         and  Paul Eggert  <eggert@cs.ucla.edu>
32946
32947         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32948         calls with autoreconf.  Define GL_LIB.
32949
32950 2004-09-14  Karl Berry  <karl@gnu.org>
32951
32952         * config/srclist.txt: unsync setenv.c, sigh.
32953
32954 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32955
32956         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32957         Problem reported by Bruno Haible in:
32958         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32959
32960 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         * config/srclist.txt: Comment out argp-pvh.c.
32963
32964 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32965
32966         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32967         in case some system header has #define'd it.  Problem reported by
32968         Soeren D. Schulze in
32969         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32970
32971 2004-09-09  Karl Berry  <karl@gnu.org>
32972
32973         * regex.[ch]: delete from the root.  These were supposed to be
32974                 synced with emacs cvs, but this has not happened for about
32975                 a year, and anyway nothing else uses emacs regex.[ch].
32976                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32977                 lib/regex[.ch] is untouched.
32978
32979 2004-09-09  Bruno Haible  <bruno@clisp.org>
32980
32981         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32982
32983 2004-09-09  Bruno Haible  <bruno@clisp.org>
32984
32985         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32986         modifications.
32987         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32988
32989 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32990
32991         * modules/xvasprintf: New file.
32992         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32993
32994 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32995
32996         * lib/xvasprintf.h: New file.
32997         * lib/xvasprintf.c: New file.
32998         * lib/xasprintf.c: New file.
32999
33000 2004-09-08  Bruno Haible  <bruno@clisp.org>
33001
33002         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33003
33004 2004-09-08  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33007         length is > INT_MAX.
33008         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33009         more.
33010
33011 2004-09-08  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/stdint_.h: New file, taken from GNU clisp.
33014
33015 2004-09-08  Bruno Haible  <bruno@clisp.org>
33016             Oskar Liljeblad  <oskar@osk.mine.nu>
33017
33018         * modules/stdint: New file.
33019         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33020
33021 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33022
33023         Import from coreutils.
33024         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33025         strings on unbounded length.  alloca's performance benefits aren't
33026         that important here.
33027         (V_STRDUP): Remove.
33028         (parse_with_separator): New function, with most of the internals
33029         of the old parse_user_spec.  Allow user to omit both user and group,
33030         for compatibility with FreeBSD.
33031         Clone only the user name, not the entire spec.
33032         Do not set *uid, *gid unless entirely successful.
33033         Avoid memory leak in some failing cases.
33034         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33035         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
33036         (parse_user_spec): Rewrite to use parse_with_separator.
33037
33038 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33039
33040         * modules/userspec: Don't depend on alloca.
33041
33042 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33043
33044         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
33045
33046 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33047
33048         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
33049         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
33050         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
33051
33052 2004-08-16  Simon Josefsson  <jas@extundo.com>
33053
33054         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
33055         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
33056         Add --dry-run for --import.
33057         Let user provided command line parameters override configure.ac
33058         settings.
33059
33060 2004-08-12  Simon Josefsson  <jas@extundo.com>
33061
33062         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33063         as discussed with Paul Eggert in threads rooted at
33064         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33065         and
33066         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33067         Before, the test was empty, and relied on ELIDE_CODE in source
33068         code.)
33069         (gl_PREREQ_GETOPT): New macro.
33070         (gl_GETOPT): Use them.
33071
33072 2004-08-12  Simon Josefsson  <jas@extundo.com>
33073
33074         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33075         * lib/getopt_.h: Renamed from getopt.h.
33076
33077 2004-08-12  Simon Josefsson  <jas@extundo.com>
33078
33079         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33080         Change default library name from libfoo to libgnu.
33081         Now, if you have a configure.ac that says:
33082                 gl_SOURCE_BASE(gl)
33083                 gl_M4_BASE(gl/m4)
33084                 gl_MODULES(error getopt etcetera)
33085                 gl_INIT
33086         you can import all you need by running:
33087                 ../gnulib/gnulib-tool --import
33088
33089         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33090         (Makefile.am): Rewrite, use logic from argz.
33091         (Include): Use <getopt.h> instead of "getopt.h".
33092
33093 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33094
33095         * modules/argp (Files): Add m4/unlocked-io.m4.
33096         (Depends-on): Add extensions.
33097
33098 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33099
33100         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33101         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33102         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33103         Check for program_invocation_name, program_invocation_short_name,
33104         flockfile, funlockfile, features.h, _getopt_long_only_r.
33105
33106 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33107
33108         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33109         its complicated substitute.
33110         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33111         and program_invocation_name.
33112         (__argp_basename) [!_LIBC]: Remove; the only use was
33113         replaced by its body.
33114         (__argp_short_program_name): Change condition from
33115         !defined __argp_short_program_name to
33116         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33117         to match argp-namefrob.h.
33118         (__argp_failure): Don't assume strerror_r returns char *.
33119         * lib/argp-parse.c (N_): Define unconditionally.
33120         (argp_default_options): Fill out initializers with 0 to avoid
33121         gcc warnings.
33122
33123 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33124
33125         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33126         getopt1.c.
33127
33128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33129
33130         Merge from coreutils.
33131
33132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33133
33134         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33135         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33136
33137 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         Merge from coreutils.
33140
33141         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33142         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33143         for Reliant Unix 5.43.
33144
33145         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33146         (union fooround): Use uintmax_t, not long int.
33147         The rest is a merge from libc:
33148         [defined _LIBC]: Include <shlib-compat.h>.
33149         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33150
33151         * lib/settime.c (settime): Recode to avoid warning with
33152         Sun Forte C 6U2.
33153
33154         * lib/strverscmp.c: Convert to UTF-8.
33155
33156 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33157
33158         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33159         m4/uintmax_t.m4.
33160
33161 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33162
33163         * modules/xalloc-die: New file.
33164         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33165
33166         * modules/md5 (Files): Add m4/uint32_t.m4.
33167         * modules/sha1: Renamed from modules/sha.
33168         (Files):
33169         Rename lib/sha.h to lib/sha1.h.
33170         Rename lib/sha.c to lib/sha1.c.
33171         Rename m4/sha.m4 to m4/sha1.m4.
33172         (lib_SOURCES): Likewise.
33173         (configure.ac): Rename gl_SHA to gl_SHA1.
33174         (Include): sha.h -> sha1.h.
33175
33176 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33177
33178         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33179         * m4/sha1.m4: Renamed from sha.m4.
33180         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33181
33182 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33183
33184         * lib/obstack.h (obstack_empty_p):
33185         Don't assume that chunk->contents is suitably aligned.
33186         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33187         Likewise. Problem reported by Benno in
33188         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33189
33190         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33191         readable.  This could be improved further but it'd take some work.
33192
33193 2004-08-08  Simon Josefsson  <jas@extundo.com>
33194
33195         * modules/xgethostname (Depends-on): Remove exit and error (not
33196         used).
33197
33198         * modules/getpass-gnu: Add getpass.h.
33199         (Depends-on): Add stdbool.
33200         * modules/getpass: Add getpass.h.
33201
33202 2004-08-08  Simon Josefsson  <jas@extundo.com>
33203
33204         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33205         Check getpass declaration.
33206
33207 2004-08-08  Simon Josefsson  <jas@extundo.com>
33208
33209         * lib/xgethostname.c: Don't include error.h (not used).
33210
33211         * lib/getpass.h: Add.
33212         * lib/getpass.c: Include getpass.h first.
33213
33214 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33215
33216         * lib/xalloc-die.c: New file.
33217         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33218         All uses removed.
33219         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33220         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33221         xalloc-die.c.
33222         (_, N_, xalloc_die): Move to xalloc-die.c.
33223         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33224         so that we needn't mess with xalloc_msg_memory_exhausted.
33225
33226         * lib/sha1.h: Renamed from sha.h.
33227         (SHA1_H): Renamed from _SHA_H.
33228         (sha1_ctx): Renamed from sha_ctx.
33229         (sha1_init_ctx): Renamed from sha_init_ctx.
33230         (sha1_process_block): Renamed from sha_process_block.
33231         (sha1_process_bytes): Renamed from sha_process_bytes.
33232         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33233         (sha1_read_ctx): Renamed from sha_read_ctx.
33234         (sha1_stream): Renamed from sha_stream.
33235         (sha1_buffer): Renamed from sha_buffer.
33236         * lib/sha1.c: Likewise; renamed from sha.c.
33237         Do not include <sys/types.h>.
33238         Include <stddef.h> rather than <stdlib.h>.
33239
33240 2004-08-08  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33243         FILESYSTEM_PREFIX_LEN.
33244         * lib/progreloc.c: Likewise.
33245         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33246
33247 2004-08-06  Simon Josefsson  <jas@extundo.com>
33248
33249         * modules/progname (Depends-on): Don't depend on stdbool.
33250
33251 2004-08-06  Simon Josefsson  <jas@extundo.com>
33252
33253         * modules/getsubopt: New file.
33254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33255         getsubopt.
33256
33257 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33258
33259         More merge from coreutils.
33260
33261         * m4/utimens.m4, m4/utimecmp.m4: New files.
33262         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33263         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33264         prereq.m4, sha.m4: Import changes from coreutils.
33265
33266 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33267
33268         More merge from coreutils.
33269         * modules/raise, modules/readtokens0, modules/utimens:
33270         * modules/utimecmp, module/xnanosleep: New files.
33271         * modules/strftime: Add lib/strftime.h.
33272         Change include from <time.h> to "strftime.h".
33273         * modules/yesno: Add lib/yesno.h.
33274         * modules/backupfile: Remove lib/addext.c.
33275         * modules/euidaccess: Add stat-macros.h.
33276         * modules/canonicalize, modules/euidaccess,
33277         modules/filemode, modules/lchown, modules/makepath,
33278         modules/rmdir, modules/stat: Likewise.
33279
33280 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33281
33282         Merge from tar.
33283         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33284         SIZE_MAX is a valid preprocessor constant.
33285         (__argp_basename): Change from "#ifndef _LIBC"
33286         to "#ifndef __argp_short_program_name", so that
33287         we don't compile these functions for tar.
33288
33289         More merges from coreutils.
33290         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33291         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33292         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33293         * lib/addext.c: Remove; no longer needed.
33294         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33295         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33296         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33297         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33298         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33299         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33300         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33301         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33302         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33303         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33304         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33305         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33306         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33307         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33308         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33309         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33310         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33311         Import changes from coreutils.
33312
33313 2004-08-05  Simon Josefsson  <jas@extundo.com>
33314
33315         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33316
33317 2004-08-05  Simon Josefsson  <jas@extundo.com>
33318
33319         * m4/getsubopt.m4: New file.
33320
33321 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33322
33323         Merge from coreutils.
33324
33325         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33326         * m4/getcwd-path-max.m4: New files.
33327
33328         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33329         FILESYSTEM_PREFIX_LEN ->
33330         FILE_SYSTEM_PREFIX_LEN.
33331         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33332         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33333         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33334         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33335
33336         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33337         prerequisite modules now handle the DOS stuff.
33338         Don't check for unistd.h.
33339
33340 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33341
33342         Merge from coreutils.
33343
33344         * lib/.gdb-history: Remove; this doesn't belong here.
33345
33346         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33347         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33348         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33349         * lib/getcwd.c: New files.
33350
33351         * lib/dirname.h: Include <stdbool.h>.
33352         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33353         for consistency with POSIX terminology.  All uses changed.
33354         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33355         (strip_trailing_slashes): Use bool for booleans.
33356         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33357
33358         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33359         sometimes returns a positive errno value even when it succeeds.
33360         (print_errno_message) [!LIBC]: Fall back on strerror if
33361         __strerror_r fails.
33362
33363         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33364         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33365         (longest_relative_suffix): New function.
33366         (path_concat): Use it.  Assume first argument is not NULL.
33367         Port to DOS.  Omit redundant separators.
33368         Report an error instead of returning NULL.
33369         Use mempcpy instead of memcpy.
33370         (xpath_concat): Remove: not declared or used.
33371
33372         * lib/same.h: Include <stdbool.h>
33373         (same_name): Return bool, not int.
33374         * lib/same.c (same_name): Likewise.
33375         (errno): Don't declare; we assume C89 or better now.
33376
33377         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33378         if not already defined.
33379
33380         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33381         * lib/dup-safer.c (errno): Likewise.
33382
33383 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33384
33385         Merge from coreutils.
33386         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33387         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33388         * modules/path-concat: Don't depend on strdup.
33389
33390 2004-08-03  Simon Josefsson  <jas@extundo.com>
33391
33392         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33393         * lib/progname.h: Don't include stdbool.h.
33394
33395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33396
33397         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33398         * MODULES.html.sh (func_all_modules): Remove fatal.
33399
33400 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33401
33402         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33403
33404 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33405
33406         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33407         working.
33408
33409 2004-08-02  Simon Josefsson  <jas@extundo.com>
33410
33411         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33412         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33413         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33414
33415 2004-08-01  Simon Josefsson  <jas@extundo.com>
33416
33417         * lib/xgetdomainname.c: Include stdlib.h, for free().
33418
33419 2004-07-19  Bruno Haible  <bruno@clisp.org>
33420
33421         * MODULES.html.sh (func_all_modules): Add dummy.
33422
33423 2004-07-16  Simon Josefsson  <jas@extundo.com>
33424
33425         * modules/dummy: New file.
33426
33427 2004-07-16  Simon Josefsson  <jas@extundo.com>
33428
33429         * lib/dummy.c: New file.
33430
33431 2004-07-16  Bruno Haible  <bruno@clisp.org>
33432
33433         * lib/backupfile.h: Add extern "C" for C++.
33434         * lib/closeout.h: Likewise.
33435         * lib/copy-file.h: Likewise.
33436         * lib/findprog.h: Likewise.
33437         * lib/full-write.h: Likewise.
33438         * lib/pathname.h: Likewise.
33439         * lib/progname.h: Likewise.
33440         * lib/stpcpy.h: Likewise.
33441         * lib/stpncpy.h: Likewise.
33442         * lib/strcase.h: Likewise.
33443         * lib/strstr.h: Likewise.
33444         * lib/xalloc.h: Likewise.
33445
33446         * lib/mbswidth.h: Add extern "C" for C++.
33447         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33448
33449 2004-07-13  Robert Millan  <robertmh@gnu.org>
33450
33451         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33452
33453 2004-07-09  Simon Josefsson  <jas@extundo.com>
33454
33455         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33456         failed without this.)
33457
33458 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33459
33460         * modules/chown (Files): Add lib/fchown-stub.c, since
33461         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33462
33463 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33464
33465         * lib/fchown-stub.c: New file.
33466
33467 2004-06-24  Jim Meyering  <jim@meyering.net>
33468
33469         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33470
33471 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33472
33473         * modules/argz: Omit "#include".
33474
33475         * MODULES.html.sh (func_all_modules): Add calloc, to match
33476         2004-06-01 addition of calloc module.
33477
33478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33479
33480         * m4/argz.m4: New file, which is autoupdated from libtool.
33481
33482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33483
33484         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33485         libtool.
33486
33487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33488
33489         * config/srclist-update: Don't insist on "USA." before the
33490         close-comment, as libtool omits the period and puts the */ on a
33491         separate line.
33492         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33493         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33494
33495 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33496
33497         * modules/argz: New file.
33498         * MODULES.html.sh (func_all_modules): Add argz.
33499
33500 2004-06-12  Jim Meyering  <jim@meyering.net>
33501         and  Paul Eggert  <eggert@cs.ucla.edu>
33502
33503         * modules/hash (Files): Add lib/xalloc.h.
33504         * modules/pipe (Depends-on): Add wait-process.
33505         * modules/stat (Depends-on): Add xalloc.
33506         * modules/userspec (Files): Add lib/userspec.h.
33507         * modules/xstrto
33508
33509         Upgrade from gettext-0.13.
33510         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33511         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33512         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33513
33514 2004-06-10  Jim Meyering  <jim@meyering.net>
33515
33516         * lib/calloc.c: New file.
33517
33518 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33519
33520         * lib/getdate.y (yylex): Allow space between sign and number.
33521         Problem reported by Dan Jacobson.
33522
33523 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         Merge from coreutils CVS.
33526
33527         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33528         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33529         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33530         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33531         xstrtol.m4: Fix copyright date and/or serial number.
33532
33533         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33534         See if we need an fchown replacement.
33535         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33536         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33537         and use the replacement function if we detect either defect.
33538
33539         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33540         gl_UTIMECMP.
33541
33542 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33543         and  Jim Meyering  <jim@meyering.net>
33544
33545         Merge from coreutils CVS.
33546
33547         * lib/stat-macros.h: New file, with contents from file-type.h
33548         and coreutils' system.h.
33549         * lib/file-type.c: Include "stat-macros.h".
33550         * lib/file-type.h (file_type): Move all macro definitions to new file,
33551         stat-macros.h.
33552
33553         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33554         Wrap old code with this conditional.
33555         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33556         function that does not dereference symlinks.
33557         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33558
33559         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33560         dependency problems.
33561         (xreadlink): Accept new arg SIZE, for efficiency.
33562         All decls and uses changed.
33563         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33564
33565         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33566         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33567
33568         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33569         sysexits.h.
33570
33571 2004-06-01  Jim Meyering  <jim@meyering.net>
33572
33573         * m4/calloc.m4: New file.
33574
33575 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33576
33577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33578         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33579         Also, fix a typo in a diagnostic.
33580
33581 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33582
33583         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33584         or AC_FUNC_REALLOC.
33585
33586 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33587
33588         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33589         macros to be defined.
33590         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33591         the allocator returns NULL because the requested size is zero.
33592
33593 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33594
33595         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33596         var.  Add comment explaining why libc still defines it.  This
33597         merges the following patch from glibc:
33598         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33599
33600 2004-05-20  Andreas Schwab  <schwab@suse.de>
33601
33602         * m4/free.m4: Replace free if it not known to work, not the other
33603         way round.
33604
33605 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33606
33607         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33608         present in glibc since revision 1.1 of this file.
33609         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33610         obstack_alignment_mask, obstack_alloc, obstack_base,
33611         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33612         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33613         obstack_grow0, obstack_init, obstack_int_grow,
33614         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33615         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33616         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33617         nonexistent functions.
33618
33619 2004-05-18  Karl Berry  <karl@gnu.org>
33620
33621         * config/srclist.txt: break link for vasnprintf.c.
33622
33623 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33624
33625         Port obstack to the AS/400, where pointers are 16 bytes wide and
33626         you cannot cast an integer to a valid pointer.  This patch is
33627         currently waiting to be integrated into glibc; see
33628         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33629
33630         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33631         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33632         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33633         (struct obstack): temp member is now a union of a pointer and
33634         an integer, instead of an integer.  All integer uses changed.
33635         This does not affect the physical layout of struct obstack,
33636         except on hosts (like the AS/400) where the size or alignment of
33637         void * is greater than that of ptrdiff_t.
33638         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33639         __STDC__)]: Store temporary in pointer member of union, not
33640         integer member.
33641         * lib/obstack.c: Include <stddef.h>, for offsetof.
33642         (struct fooalign): Remove; it doesn't need a name.
33643         (union fooround): Change double to long double, and add void *.
33644         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33645         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33646         not a macro.  Hence the values are always int; so remove all
33647         casts-to-int in uses.
33648
33649 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33650
33651         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33652         we can get this patch merged into glibc.
33653
33654 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33655             Paul Eggert  <eggert@cs.ucla.edu>
33656
33657         * m4/argp: Depend on alloca.
33658
33659 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33660             Paul Eggert  <eggert@cs.ucla.edu>
33661
33662         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33663         freecoding.
33664
33665 2004-05-17  Bruno Haible  <bruno@clisp.org>
33666
33667         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33668         precision that consists of a '.' followed by an empty digit string.
33669         Patch by Tor Lillqvist <tml@iki.fi>.
33670
33671 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33672
33673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33674         for backward compatibility with older code.  We need our own
33675         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33676         it under some other name, and our alloca.h will define it.
33677
33678 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33679             Derek Price  <derek@ximbiot.com>
33680
33681         * lib/alloca.c: Include <alloca.h>, to get our interface.
33682         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33683         include <alloca.h> first.  Use C89 prototype for alloca; this
33684         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33685         Use #elif for simplicity, since we can assume C89 now.
33686         Don't try to source the system alloca.h since it will not be found
33687         and to prevent recursively including its replacement.
33688         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33689         * lib/regex.c: Likewise.
33690
33691 2004-05-16  Derek Price  <derek@ximbiot.com>
33692             Paul Eggert  <eggert@cs.ucla.edu>
33693
33694         getline cleanup.  This changes the getndelim2 API: both order of
33695         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33696         no delimiter).
33697
33698         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33699         interface does that.
33700         (getline): Always use getdelim, so that we don't have two
33701         copies of this code.
33702         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33703         if available.
33704         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33705         (GETNDELIM2_MAXIMUM): New macro.
33706         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33707         instead of the old practice of delim2==0.  All callers changed.
33708         Return -1 on overflow, instead of returning junk.
33709         Do not set *linesize unless allocation succeeds.
33710         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33711         that we include sys/types.h.
33712         * lib/getnline.h: Likewise.
33713         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33714         (getndelim2): Reorder arguments.
33715         * lib/getnline.c (getnline, getndelim):
33716         Don't discard the NMAX argument.
33717         (getnline): Invoke getndelim, to avoid code duplication.
33718         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33719         of (size_t) -1 by callers of the getnline family.
33720
33721 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33722
33723         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33724         Check for gettimeofday.
33725         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33726         Check for settimeofday, stime.
33727
33728 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         * lib/nanosleep.c (suspended): Change its type from int to
33731         sig_atomic_t volatile.
33732         (first_call): Make it private to rpl_nanosleep, and have it
33733         be zero initially as that's a bit faster.
33734         (my_usleep): Round up fractional times instead of truncating them,
33735         as this is the usual meaning for 'sleep'.
33736
33737         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33738         doesn't work.
33739         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33740         (ENOSYS): Define if not defined.
33741         (settime): Fall back on stime if it exists and settimeofday fails.
33742         But don't bother with fallbacks if a method fails with errno == EPERM.
33743
33744 2004-05-11  Jim Meyering  <jim@meyering.net>
33745
33746         Prior to this change, the save_cwd caller required read access to the
33747         current directory on most systems (ones with the fchdir function).
33748
33749         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33750         fails, try write-only, and finally, resort to using xgetcwd.
33751
33752 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33753
33754         * lib/obstack.c, obstack.h: Import changes from libc.
33755
33756 2004-04-28  Bruno Haible  <bruno@clisp.org>
33757
33758         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33759         also implicitly appends .exe to executables.
33760         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33761         accepts Windows pathnames.
33762         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33763         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33764         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33765         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33766         Reported by Derek Robert Price <derek@ximbiot.com>.
33767
33768 2004-04-21  Karl Berry  <karl@gnu.org>
33769
33770         * config/srclist.txt (localcharset.c): break sync.
33771
33772 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33773
33774         * m4/host-os.m4: Add a copyright notice.
33775
33776 2004-04-20  Jim Meyering  <jim@meyering.net>
33777
33778         Change UTILS_ to gl_ in AC_DEFINE'd names.
33779         Change utils_- and jm_-prefixed variables, too.
33780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33781         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33782         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33783
33784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33785         Don't emit trailing blanks.
33786         Also rename jm_-prefixed variables to have gl_ prefix.
33787
33788         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33789         Also rename jm_-prefixed variables to have gl_ prefix.
33790
33791         * m4/jm-macros.m4: Reflect the renamings.
33792         * m4/prereq.m4: Likewise.
33793
33794 2004-04-20  Jim Meyering  <jim@meyering.net>
33795
33796         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33797         memory.
33798
33799 2004-04-20  Jim Meyering  <jim@meyering.net>
33800             Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33803         memory when realloc fails.
33804
33805 2004-04-19  Jim Meyering  <jim@meyering.net>
33806
33807         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33808         now that readutmp.c may call `free (0)'.
33809
33810 2004-04-19  Bruno Haible  <bruno@clisp.org>
33811
33812         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33813         * m4/inttypes_h.m4: Likewise.
33814         * m4/stdint_h.m4: Likewise.
33815         * m4/intmax_t.m4: Likewise.
33816         * m4/uintmax_t.m4: Likewise.
33817
33818 2004-04-18  Jim Meyering  <jim@meyering.net>
33819
33820         * m4/prereq.m4: Don't forbid jm_ prefix.
33821
33822         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33823         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33824         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33825         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33826         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33827         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33828         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33829         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33830         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33831         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33832         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33833         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33834         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33835         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33836         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33837         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33838         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33839         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33840         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33841
33842 2004-04-18  Jim Meyering  <jim@meyering.net>
33843
33844         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33845         failure, don't leak memory and do call END_UTMP_ENT.
33846
33847 2004-04-16  Jim Meyering  <jim@meyering.net>
33848
33849         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33850         coreutils' stat program.
33851         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33852
33853 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33854
33855         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33856         C89.
33857         (CHAR_BIT): Remove, since we assume C89.
33858         Include <stdint.h> if available, as per current Autoconf CVS advice.
33859
33860 2004-03-31  Jim Meyering  <jim@meyering.net>
33861
33862         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33863         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33864         * m4/xalloc.m4: Likewise.
33865
33866 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33867
33868         Merge from coreutils.
33869
33870         * m4/inttostr.m4: New file.
33871         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33872         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33873         Require gl_CLOCK_TIME.
33874         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33875
33876 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33877
33878         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33879         not bool, to be more consistent with Unix conventions.
33880         Suggested by Bruno Haible.
33881
33882         Merge from coreutils.
33883
33884         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33885         * lib/umaxtostr.c: New files.
33886
33887         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33888         the usual <time.h> dance.
33889         (get_date): Change signature to support fractional time stamps.
33890         All callers changed.
33891         * lib/getdate.y: Include "getdate.h" first, as we can now
33892         assume C89 and don't need to worry about 'const'.
33893         Similarly, include "unlocked-io.h" near start, not in middle.
33894         Include <limits.h>.
33895         (textint.value): Use long int rather than int.
33896         (textint.digits): Use size_t rather than int.
33897         (BILLION, LOG10_BILLION): New constants.
33898         (parser_control): New member rel_ns.  Members day_ordinal,
33899         time_zone, month, day, hour, minutes, rel_year, rel_month,
33900         rel_day, rel_hour, rel_minutes, rel_seconds
33901         are now long int, not int.  Member seconds is now struct timespec,
33902         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33903         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33904         not int.
33905         (%union.intval): Now long int, not int.
33906         New member timespec.
33907         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33908         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33909         (spec): Now is a timespec or an item list.
33910         (timespec, items): New nonterminals.
33911         (time, rel, relunit, number, get_date):
33912         Add support for fractional seconds.
33913         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33914         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33915         (to_hour): First arg is now long int, not int.
33916         (to_year): Returns long int, not int.
33917         Don't treat year -70 like 70.
33918         (tm_diff): Returns long int, not int.
33919         (lookup_word): Use bool instead of int when appropriate.
33920         (yylex): Use size_t for count, not int.
33921         Detect overflow when parsing large integer constants.
33922         Add support for fractions.
33923         (get_date): Make pointers 'const' if possible.
33924         Use more-portable code to detect integer overflow.
33925         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33926         Don't use ctime; it's not reliable if the year has >4 digits.
33927
33928         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33929         This is for compatibility with BSD.
33930
33931         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33932         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33933         From coreutils' system.h.
33934
33935         * lib/userspec.c: Don't include "posixver.h".
33936         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33937         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33938         compatible extension.  Simplify code by removing a boolean int
33939         that was always nonzero if a string was nonnull.
33940
33941 2004-03-30  Jim Meyering  <jim@meyering.net>
33942
33943         Merge from coreutils.
33944
33945         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33946         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33947         on some systems one must include <grp.h> before it.
33948         Reported by Christian Krackowizer.
33949
33950 2004-03-30  Jim Meyering  <jim@meyering.net>
33951
33952         Merge from coreutils.
33953
33954         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33955
33956         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33957         an empty input stream.
33958
33959         * lib/readtokens.c: Include <stdbool.h>.
33960         (readtoken): Use `size_t' rather than int/long.
33961         All callers adjusted.
33962         Use `bool' rather than `int' where appropriate.
33963         Use memset rather than an explicit loop.
33964         Use x2nrealloc rather than xrealloc.
33965         Allow the use of `\0' as a delimiter.
33966         (readtokens): Likewise.
33967         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33968
33969 2004-03-30  Jim Meyering  <jim@meyering.net>
33970
33971         * m4/realloc.m4: Remove file, since now it does no more than
33972         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33973         the `configure.ac' section of module/realloc.
33974         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33975
33976 2004-03-30  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33979         nonnull.
33980
33981 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33982
33983         Merge changes to getloadavg.c from coreutils and Emacs.
33984
33985         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33986         Define to an expression, not to the empty string.
33987         Include cloexec.h and xalloc.h.
33988         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33989         Use set_cloexec_flag rather than rolling our own.
33990         * lib/cloexec.c, lib/cloexec.h: New files.
33991
33992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33993
33994         * m4/cloexec.m4: New file.
33995
33996 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33997
33998         * lib/getopt.h: Sync with libc CVS.
33999
34000 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34001             Bruno Haible  <bruno@clisp.org>
34002
34003         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34004         mbswidth.
34005
34006 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34007             Bruno Haible  <bruno@clisp.org>
34008
34009         * lib/mbswidth.h: Include <wchar.h> only if
34010         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34011         <wchar.h>.
34012         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34013
34014 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34015
34016         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34017         Sync with libc CVS.
34018         * lib/getopt_int.h: New file, also synced from libc.
34019
34020 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34021
34022         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34023         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34024         Bring back getopt.c, getopt.h, getopt1.c.
34025
34026 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34027
34028         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34029         All uses changed.  Check for sa_sigaction member; this fixes
34030         a bug first reported by Jason Andrade in
34031         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34032
34033 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34034
34035         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
34036         '#if' expressions.  Unlike the code it replaces, it does not
34037         depend on (defined _SC_PAGESIZE).  However, it does depend on
34038         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
34039         first reported by Jason Andrade in
34040         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34041
34042 2004-02-25  Simon Josefsson  <jas@extundo.com>
34043
34044         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
34045
34046 2004-02-25  Simon Josefsson  <jas@extundo.com>
34047
34048         * lib/strdup.h: New file.
34049         * lib/strdup.c: Include it.
34050         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
34051         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
34052
34053 2004-02-23  Karl Berry  <karl@gnu.org>
34054
34055         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
34056         (from fencepost.gnu.org:/gd/gnuorg).
34057
34058 2004-02-23  Karl Berry  <karl@gnu.org>
34059
34060         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34061         * config/srclist.txt: add maintain/standards documents.
34062
34063 2004-02-18  Bruno Haible  <bruno@clisp.org>
34064
34065         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34066         Reported by Derek Robert Price <derek@ximbiot.com>.
34067
34068 2004-02-16  Karl Berry  <karl@gnu.org>
34069
34070         * config/mkinstalldirs, install-sh: update from automake.
34071
34072 2004-02-06  Karl Berry  <karl@gnu.org>
34073
34074         * m4/po.m4: update from gettext 0.14.1.
34075
34076 2004-02-06  Karl Berry  <karl@gnu.org>
34077
34078         * lib/config.charset: update from gettext 0.14.1.
34079
34080 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34081
34082         Add comments and code, prompted by suggestions from Bruno Haible
34083         for sh-quote.
34084         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34085         describing the enum quoting_style values.
34086         * lib/quotearg.c (quotearg_alloc): New function.
34087         (quotearg_buffer_restyled): Treat lone { and } as special.
34088         Treat = as special.  Work around bug with older shells
34089         that "see" a '\' that is really the 2nd byte of a multibyte char.
34090         Quote empty string with shell_quoting_style.
34091
34092 2004-02-03  Bruno Haible  <bruno@clisp.org>
34093
34094         * m4/pipe.m4: New file, from GNU gettext.
34095
34096 2004-02-03  Bruno Haible  <bruno@clisp.org>
34097
34098         * lib/pipe.h: New file, from GNU gettext.
34099         * lib/pipe.c: New file, from GNU gettext.
34100
34101 2004-01-27  Bruno Haible  <bruno@clisp.org>
34102
34103         * m4/execute.m4: New file, from GNU gettext.
34104
34105 2004-01-27  Bruno Haible  <bruno@clisp.org>
34106
34107         * lib/execute.h: New file, from GNU gettext.
34108         * lib/execute.c: New file, from GNU gettext.
34109         * lib/w32spawn.h: New file, from GNU gettext.
34110
34111 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34112
34113         Merge from diffutils.
34114
34115         * lib/file-type.c (file_type): Add typed memory objects.
34116         * lib/file-type.h (S_TYPEISTMO): New macro.
34117
34118         * lib/c-stack.h (c_stack_action): Remove argv argument.
34119         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34120         (die): Don't calculate message unless segv_action returns.
34121         (get_stack_location, min_address_from_argv, max_address_from_argv,
34122         volatile stack_base, volatile_stack_size): Remove.
34123         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34124         that every segmentation violation is a stack overflow.  (Ouch!)
34125         See Debian bug 136249 (still outstanding) for more info about why
34126         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34127
34128 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34129
34130         Exit-status fix from coreutils.
34131
34132         Use exit_failure consistently in place of EXIT_FAILURE,
34133         so that program exit statuses are consistent on failure.
34134
34135         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34136         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34137         * lib/argmatch.h: Comment fix to match the above.
34138         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34139         Now a macro referring to exit_failure, instead of a separate
34140         variable.  Include "exitfail.h" to get it.
34141         * lib/xstrtol.h: Include "exitfail.h".
34142         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34143
34144         * lib/long-options.c (parse_long_options): Use prototype
34145         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34146         for clarity.
34147
34148 2004-01-21  Jim Meyering  <jim@meyering.net>
34149
34150         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34151         so as not to conflict with a different-sized __mktime_internal
34152         function in GNU libc.
34153         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34154         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34155
34156 2004-01-20  Karl Berry  <karl@gnu.org>
34157
34158         * config/config.guess: update from config.
34159
34160         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34161
34162 2004-01-20  Bruno Haible  <bruno@clisp.org>
34163
34164         Safer stack allocation.
34165         * lib/setenv.c: Include allocsa.h.
34166         (alloca): Remove fallback definition.
34167         (freea): Remove macro.
34168         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34169         instead of freea.
34170
34171 2004-01-20  Bruno Haible  <bruno@clisp.org>
34172
34173         * m4/eealloc.m4: New file, from GNU gettext.
34174
34175 2004-01-20  Bruno Haible  <bruno@clisp.org>
34176
34177         * m4/allocsa.m4: New file, from GNU gettext.
34178
34179 2004-01-20  Bruno Haible  <bruno@clisp.org>
34180
34181         * lib/xallocsa.h: New file, from GNU gettext.
34182         * lib/xallocsa.c: New file, from GNU gettext.
34183
34184 2004-01-20  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34187
34188 2004-01-20  Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34191         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34192         specially.
34193
34194 2004-01-20  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34197         patch.
34198
34199 2004-01-20  Bruno Haible  <bruno@clisp.org>
34200
34201         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34202
34203 2004-01-20  Bruno Haible  <bruno@clisp.org>
34204
34205         * lib/eealloc.h: New file.
34206
34207 2004-01-20  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/binary-io.h: Avoid warnings on Cygwin.
34210
34211 2004-01-20  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/allocsa.h: New file, from GNU gettext.
34214         * lib/allocsa.c: New file, from GNU gettext.
34215
34216 2004-01-18  Karl Berry  <karl@gnu.org>
34217
34218         * doc/gpl.texi, doc/lgpl.texi: new files.
34219
34220 2004-01-18  Karl Berry  <karl@gnu.org>
34221
34222         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34223         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34224
34225 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34226
34227         Merge from coreutils.
34228
34229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34230         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34231         (gl_DEFAULT_POSIX2_VERSION): Move
34232         the documentation from 'configure' into 'config.hin',
34233         so that 'configure --help' isn't burdened by it and
34234         we don't have to worry about its formatting there.
34235         Reword the documentation so that it's more succinct
34236         and can be run together into a single paragraph.
34237         * m4/same.m4 (gl_SAME): Check for pathconf.
34238
34239 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34240
34241         Merge from coreutils.
34242
34243         * lib/posixver.c: Include posixver.h.
34244
34245         * lib/same.c: Include <stdbool.h>, <limits.h>.
34246         (_POSIX_NAME_MAX): Define if not defined.
34247         (MIN): New macro.
34248         (same_name): If file names are silently truncated, report
34249         that the file names are the same if they are the same after
34250         the silent truncation.
34251
34252         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34253         conversion function.
34254         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34255         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34256         longer needed.
34257
34258 2004-01-15  Jim Meyering  <jim@meyering.net>
34259
34260         Merge from coreutils.
34261
34262         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34263         if no library is required.
34264         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34265         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34266         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34267         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34268         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34269         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34270         value, $ac_cv_search_crypt, if it's "none required".
34271         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34272         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34273         not gl_FUNC_GETLOADAVG.
34274         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34275         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34276
34277 2004-01-15  Jim Meyering  <jim@meyering.net>
34278
34279         Merge from coreutils.
34280
34281         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34282         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34283         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34284
34285         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34286         optional configure-time default.
34287
34288         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34289
34290         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34291
34292 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34293
34294         Merge from coreutils.
34295
34296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34297         value, $ac_cv_search_nanosleep, if it's "none required".
34298
34299 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34300
34301         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34302         with like-named macro in fnmatch.c.
34303         (EXT): Use an internal constant instead.
34304
34305         Merge fnmatch patches from glibc.
34306         * lib/fnmatch.c (mbsinit): Remove define.
34307         Add libc_hidden_ver (__fnmatch, fnmatch).
34308         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34309         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34310
34311 2004-01-14  Karl Berry  <karl@gnu.org>
34312
34313         * config/install-sh: update from automake.
34314
34315 2004-01-13  Karl Berry  <karl@gnu.org>
34316
34317         * config/install-sh: update from automake.
34318
34319 2004-01-09  Karl Berry  <karl@gnu.org>
34320
34321         * config/install-sh: update from automake.
34322
34323 2004-01-05  Karl Berry  <karl@gnu.org>
34324
34325         * config/config.{sub,guess}: update from config.
34326
34327 2003-12-31  Karl Berry  <karl@gnu.org>
34328
34329         * config/depcomp: update from automake.
34330
34331 2003-12-14  Karl Berry  <karl@gnu.org>
34332
34333         * lib/config.charset: update from gettext-runtime.
34334
34335 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34336
34337         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34338         Bug reported by Alfred M. Szmidt.
34339
34340 2003-12-03  Bruno Haible  <bruno@clisp.org>
34341
34342         * m4/gettext.m4: Upgrade from gettext-0.13.
34343         * m4/po.m4: Upgrade from gettext-0.13.
34344         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34345         * m4/intmax.m4: New file, from gettext-0.13.
34346         * m4/printf-posix.m4: New file, from gettext-0.13.
34347
34348 2003-11-29  Karl Berry  <karl@gnu.org>
34349
34350         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34351
34352 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34353             Bruno Haible  <bruno@clisp.org>
34354
34355         * lib/printf-parse.h: Don't include sys/types.h.
34356         (ARG_NONE): New macro.
34357         (char_directive): Change type of *arg_index fields to size_t.
34358         * lib/printf-parse.c: Don't include sys/types.h.
34359         (SSIZE_MAX): Remove macro.
34360         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34361         Remove unnecessary overflow check.
34362         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34363         fields.
34364
34365 2003-11-25  Bruno Haible  <bruno@clisp.org>
34366
34367         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34368
34369 2003-11-25  Bruno Haible  <bruno@clisp.org>
34370
34371         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34372         gt_TYPE_SSIZE_T.
34373
34374 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34375
34376         * modules/alloca: Remove dependency on xalloc.
34377
34378 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34379
34380         * lib/alloca.c: Remove dependency on xalloc module.
34381         (xalloc_die): Remove.
34382         (memory_full) [!defined emacs]: New macro.
34383         [!defined emacs]: Don't include xalloc.h.
34384         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34385         address arithmetic overflows.  Change datatypes a bit to avoid
34386         unnecessary casts.
34387
34388 2003-11-22  Jim Meyering  <jim@meyering.net>
34389
34390         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34391         s/size/size_t/.
34392
34393 2003-11-21  Karl Berry  <karl@gnu.org>
34394
34395         * config/config.{sub,guess}: update from config.
34396
34397 2003-11-18  Karl Berry  <karl@gnu.org>
34398
34399         * config/config.{sub,guess}: update from config.
34400
34401         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34402
34403 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34404
34405         * README: Mention that S+T cannot overflow if S is the size of
34406         an existing object and T is sufficiently small.
34407
34408 2003-11-17  Jim Meyering  <jim@meyering.net>
34409
34410         On systems without utime and without a utimes function capable of
34411         dealing with a NULL struct utimbuf* argument, this utime replacement
34412         could -- in unusual circumstances -- leak a file descriptor.
34413         * lib/utime.c: Include <unistd.h> and <errno.h>.
34414         (utime_null): Be sure to close `fd' and to preserve errno.
34415         Reported by Geoff Collyer via Arnold Robbins.
34416
34417 2003-11-17  Bruno Haible  <bruno@clisp.org>
34418
34419         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34420         (Depends-on): Add xsize.
34421
34422 2003-11-17  Bruno Haible  <bruno@clisp.org>
34423
34424         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34425
34426 2003-11-17  Bruno Haible  <bruno@clisp.org>
34427
34428         * lib/vasnprintf.c (alloca): Remove fallback definition.
34429         (freea): Remove definition.
34430         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34431         Reported by Paul Eggert.
34432
34433 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34434             Bruno Haible  <bruno@clisp.org>
34435
34436         Protect against address arithmetic overflow.
34437         * lib/printf-args.h: Include stddef.h.
34438         (arguments): Change type of field 'count' to size_t.
34439         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34440         'unsigned int' where appropriate.
34441         * lib/printf-parse.h: Include sys/types.h.
34442         (char_directive): Change type of *arg_index fields to ssize_t.
34443         (char_directives): Change type of fields 'count', max_*_length to
34444         size_t.
34445         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34446         (SSIZE_MAX): Define fallback value.
34447         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34448         instead of 'int' where appropriate. Check a_allocated, d_allocated
34449         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34450         * lib/vasnprintf.c: Include xsize.h.
34451         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34452         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34453         overflow. Avoid wraparound when converting a width or precision from
34454         decimal to binary.
34455
34456 2003-11-16  Bruno Haible  <bruno@clisp.org>
34457
34458         Update from GNU gettext.
34459         * lib/printf-parse.c: Generalize to it can be compiled for wide
34460         strings.
34461         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34462         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34463         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34464         SNPRINTF): New macros.
34465         Don't include <alloca.h> if the file is used inside libintl.
34466         (local_wcslen): New function, for Solaris 2.5.1.
34467         (VASNPRINTF): Use it instead of wcslen.
34468
34469 2003-11-16  Bruno Haible  <bruno@clisp.org>
34470
34471         * lib/xsize.h (xmax): New function.
34472         (xsum, xsum3, xsum4): Declare as "pure" functions.
34473
34474 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34475
34476         * modules/xalloc (Files): Undo latest change, since xalloc.h
34477         no longer needs SIZE_MAX or PTRDIFF_MAX.
34478
34479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34480
34481         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34482         gl_PTRDIFF_MAX.
34483
34484 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34485
34486         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34487         "return", to pacify some unknown compiler.  Problem reported
34488         by Joerg Schilling.
34489
34490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34491
34492         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34493         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34494         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34495         heuristic is just as accurate as far as we know, and it removes a
34496         dependency on size_max.m4 and ptrdiff_max.m4.
34497
34498 2003-11-11  Bruno Haible  <bruno@clisp.org>
34499
34500         * modules/xsize (Files): Add m4/size_max.m4.
34501         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34502
34503 2003-11-11  Bruno Haible  <bruno@clisp.org>
34504
34505         * m4/size_max.m4: New file.
34506         * m4/ptrdiff_max.m4: New file.
34507         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34508         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34509         (gl_XALLOC): Invoke it.
34510
34511 2003-11-11  Bruno Haible  <bruno@clisp.org>
34512
34513         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34514         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34515         defined.
34516
34517 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34518
34519         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34520         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34521         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34522         From Bruno Haible.
34523         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34524         not (size_t) -1, since it's defined here.
34525
34526 2003-11-09  Karl Berry  <karl@gnu.org>
34527
34528         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34529
34530 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34531
34532         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34533         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34534         Reject sizes of exactly SIZE_MAX bytes.
34535         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34536         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34537
34538 2003-11-05  Bruno Haible  <bruno@clisp.org>
34539
34540         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34541         SIZE_MAX defined in <limits.h> on Solaris.
34542
34543 2003-11-04  Jim Meyering  <jim@meyering.net>
34544
34545         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34546         variable names, rather than @VAR@.
34547         * modules/poll: Likewise.
34548
34549 2003-11-04  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/xsize: New file.
34552         * modules/linebreak: Depend on xsize.
34553         * MODULES.html.sh (func_all_modules): Add xsize.
34554
34555 2003-11-04  Bruno Haible  <bruno@clisp.org>
34556
34557         * m4/xsize.m4: New file.
34558
34559 2003-11-04  Bruno Haible  <bruno@clisp.org>
34560
34561         * lib/xsize.h: New file.
34562         * lib/linebreak.c: Include xsize.h.
34563         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34564         argument for overflow.
34565         Suggested by Paul Eggert.
34566
34567 2003-11-03  Karl Berry  <karl@gnu.org>
34568
34569         * config/config.{guess,sub}: update from config.
34570
34571 2003-11-03  Jim Meyering  <jim@meyering.net>
34572
34573         * modules/userspec (lib_SOURCES): Add userspec.h.
34574         (Include): Add "userspec.h".
34575         Improve description.
34576
34577 2003-11-03  Jim Meyering  <jim@meyering.net>
34578
34579         * lib/userspec.c: Include "userspec.h".
34580         * lib/userspec.h: New file.
34581
34582 2003-11-03  Bruno Haible  <bruno@clisp.org>
34583
34584         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34585
34586 2003-11-03  Bruno Haible  <bruno@clisp.org>
34587
34588         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34589         available, to avoid (extremely rare) race condition.
34590         Suggested by Paul Eggert.
34591
34592 2003-11-02  Karl Berry  <karl@gnu.org>
34593
34594         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34595
34596 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34597
34598         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34599         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34600         (read_filesystem_list): Set and use me_type_malloced.
34601         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34602         whatever the type happens to be), for brevity and consistency.
34603         Check for size calculation overflow on Alphas running OSF/1.
34604
34605 2003-10-31  Jim Meyering  <jim@meyering.net>
34606
34607         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34608
34609         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34610
34611 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34612             Bruno Haible  <bruno@clisp.org>
34613
34614         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34615         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34616
34617 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34618
34619         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34620         netbsd*-gnu*.  Suggested by Robert Millan.
34621
34622 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34623
34624         * modules/group-member: Depend on stdbool.
34625
34626 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34627
34628         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34629
34630 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34631
34632         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34633         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34634         after the 'gnu' in these cases.  This fixes some bugs in the
34635         previous change, and is based on suggestions by Robert Millan.
34636
34637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34638
34639         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34640         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34641         no longer needed.
34642         * lib/quotearg.c (quotearg_n_options): Use it.
34643         * lib/group-member.c: Include <stdbool.h>.
34644         (free_group_info): Arg is now const *; don't free arg.
34645         (get_group_info): Now returns bool and accepts struct group_info *,
34646         rather than returning a malloc'ed struct group_info *.
34647         All uses changed.  Check for overflow in internal size calculation.
34648
34649         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34650         rather than xmalloc/xrealloc.
34651         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34652         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34653         conformance bug: the old code used a pointer after freeing the
34654         storage that it addressed.
34655         * lib/hash.c (hash_initialize): Simplify the code by using
34656         xalloc_oversized rather than doing it by hand.
34657         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34658         the buffer preserved.  Use free and xmalloc instead.
34659         * lib/quotearg.c (quotearg_n_options): Likewise.
34660         Use a simpler test for size overflow.  Don't use xalloc_oversized
34661         because unsigned int might be wider than size_t (!); this suggests
34662         that we should switch from unsigned int to size_t for slot numbers.
34663
34664 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34665
34666         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34667         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34668         NetBSD kernels.  Requested by Richard Stallman.
34669
34670 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34671
34672         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34673         to allocate the returned structure.  Do not allocate a subarray,
34674         as x2nrealloc will do that.
34675         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34676         instead of xnrealloc.
34677         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34678
34679 2003-10-27  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/stdbool_.h: Better support for BeOS.
34682
34683 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34684
34685         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34686         now uses inline.
34687
34688 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34689
34690         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34691         callers that want to do their own size-overflow checking.  Include
34692         <stdbool.h>, since xalloc_oversized returns bool.
34693         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34694         to use xalloc_oversized.
34695
34696         Add two functions x2realloc, x2nrealloc, for programs that grow
34697         arrays dynamically by doubling their sizes.
34698         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34699         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34700         New functions.
34701
34702         Port to C99 semantics for 'inline' of external functions.
34703         Bug reported by Bruno Haible.
34704         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34705         with the old contents of xnmalloc.
34706         (xnmalloc, xmalloc): Use it.
34707         (xnrealloc_inline): New static inline function,
34708         with the old contents of xnrealloc.
34709         (xnrealloc, xrealloc): Use it.
34710
34711         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34712         that.
34713
34714 2003-10-26  Karl Berry  <karl@gnu.org>
34715
34716         * config/srclist.txt (COPYING.DOC): no longer available from
34717         /gd/gnuorg; don't know where the ultimate source is.
34718
34719 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34720
34721         Fix several address-calculation bugs in the hash modules,
34722         plus some minor code cleanup.
34723
34724         * lib/hash.h: Include <stdbool.h>, for bool.
34725         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34726         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34727         hash_get_n_entries, hash_get_max_bucket_length,
34728         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34729         hash_rehash): Use size_t rather than unsigned.
34730         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34731         hash_get_n_buckets_used, hash_get_n_entries,
34732         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34733         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34734         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34735         Likewise.
34736         (SIZE_MAX): Define if not defined.
34737         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34738         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34739         hash_print):
34740         Use const * when possible.
34741         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34742         (check_tuning): Fix bug: if tuning parameters were very close to
34743         0 or 1, rounding errors could have caused subscript violations.
34744         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34745         (hash_initialize): Add 'fail:' label
34746         to free table and return NULL, and use it to simplify code.
34747         Use calloc rather than clearing the storage ourself.
34748         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34749         buffer size calculations.
34750         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34751         Include <stddef.h>, for size_t.
34752         * lib/hash-pjw.c (hash_pjw): Likewise.
34753         Switch to method described by Bruno Haible.
34754         Include <limits.h>, for CHAR_BIT.
34755         (SIZE_BITS): New macro.
34756
34757 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34758
34759         * m4/getline.m4 (AM_FUNC_GETLINE):
34760         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34761         hosts.  Problem reported by Derek Robert Price in
34762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34763         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34764         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34765
34766 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34767
34768         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34769         ceiling the allocation at NMAX bytes rather than silently
34770         discarding input bytes before NMAX is reached.  This makes
34771         a difference only if NMAX exceeds SIZE_MAX / 2.
34772
34773         * lib/obstack.c: Merge from glibc.
34774         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34775         Add libc_hidden_def (_obstack_newchunk).
34776         (_obstack_free) [! defined _LIBC]: Remove.
34777         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34778         a clone of the function body.
34779         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34780         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34781
34782         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34783         glibc.
34784         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34785         arg to memcpy.
34786
34787         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34788         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34789         Don't use lvalue casts, as GCC plans to remove support for them
34790         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34791         was also present in the non-GCC version, indicating that this
34792         code had always been buggy and had never been widely used.
34793         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34794         Use the fast variant of each macro, rather than copying the
34795         definiens of the fast variant; that way, we'll be more likely to
34796         catch future bugs in the fast variants.
34797
34798 2003-10-20  Bruno Haible  <bruno@clisp.org>
34799
34800         * modules/wait-process: New file.
34801         * MODULES.html.sh (func_all_modules): Add wait-process.
34802
34803 2003-10-20  Bruno Haible  <bruno@clisp.org>
34804
34805         * m4/wait-process.m4: New file.
34806
34807 2003-10-20  Bruno Haible  <bruno@clisp.org>
34808
34809         * lib/wait-process.h: New file, from GNU gettext.
34810         * lib/wait-process.c: New file, from GNU gettext.
34811
34812 2003-10-19  Jim Meyering  <jim@meyering.net>
34813
34814         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34815         HPUX 10.20.
34816
34817 2003-10-18  Karl Berry  <karl@gnu.org>
34818
34819         * config/config.guess: update from config.
34820
34821 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34822
34823         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34824         (getgroups): First arg is int, not size_t.
34825         Don't let 'free' mangle errno.
34826
34827 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34828
34829         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34830
34831 2003-10-16  Karl Berry  <karl@gnu.org>
34832
34833         * config/config.{guess,sub}: update from config.
34834
34835 2003-10-16  Jim Meyering  <jim@meyering.net>
34836
34837         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34838         memcpy.
34839
34840 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34841
34842         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34843         (SIZE_MAX): Remove.
34844         (new_exclude, add_exclude_file): Initial size no longer needs to
34845         be a power of 2.
34846         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34847         our own address arithmetic overflow checking.
34848
34849         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34850         (fnmatch): Do not alloca more than 2000 wide characters;
34851         instead, use malloc for large buffers.
34852         Check for address arithmetic overflow, and return -1
34853         with errno set to ENOMEM in that case.
34854         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34855         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34856         instead, return -1.  Check for address arithmetic overflow.
34857
34858 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34859
34860         Handle invalid suffixes and overflow independently, so that
34861         callers can treat them independently as needed.  Fix some bugs in
34862         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34863         suffix for a human-readable blocksize.  The major caller-visible
34864         change is the addition of a new
34865         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34866         that both overflow and suffix chars were found.
34867
34868         * lib/human.c (humblock): Don't check separately for invalid suffix
34869         char; that is xstrtoumax's job (now that its bug is fixed).
34870         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34871         INTMAX_MAX]: New macros.
34872         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34873         TYPE_MAXIMUM): New macros.
34874         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34875         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34876         if overflow occurs, as it's what __strtol does and it's more useful
34877         in practice.
34878         (__xstrtol): If __strtol reports some error other than ERANGE,
34879         reflect it to the caller as LONGINT_INVALID.  If it reports
34880         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34881         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34882         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34883         value.
34884         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34885         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34886         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34887         [defined UINTMAX_MAX]: New macros.
34888
34889 2003-10-14  Bruno Haible  <bruno@clisp.org>
34890
34891         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34892
34893 2003-10-14  Bruno Haible  <bruno@clisp.org>
34894
34895         * m4/sig_atomic_t: New file, from GNU gettext.
34896         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34897
34898 2003-10-14  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34901         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34902         Also use volatile where needed.
34903
34904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34905
34906         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34907         Change maintainer from Bruno Haible to 'all'.
34908
34909 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34910
34911         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34912
34913 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34914
34915         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34916         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34917         and define in terms of the other primitives.
34918         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34919         (SIZE_MAX): Define if not already defined.
34920         (array_size_overflow): New function.
34921         (xalloc_die): Abort instead of exiting if 'error' returns.
34922         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34923         (xmalloc, xrealloc): Use them.
34924         (xcalloc): Check for address arithmetic overflow.
34925         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34926         a bit faster than strcpy.
34927
34928 2003-10-10  Simon Josefsson  <jas@extundo.com>
34929
34930         * modules/argp (Depends-on): Add restrict and strcase.
34931
34932 2003-10-10  Simon Josefsson  <jas@extundo.com>
34933
34934         * m4/argp.m4: Add AC_C_INLINE.
34935
34936 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34937
34938         Merge getpass from libc, plus a few fixes.
34939
34940         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34941         Include <stdbool.h>.
34942         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34943         __fsetlocking to empty.
34944         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34945         do include <bits/libc-lock.h>.
34946         Do not include <fcntl.h>; not needed.
34947         [_LIBC]: Include <wchar.h>.
34948         (NOTCANCEL_MODE): New macro.
34949         (flockfile, funlockfile) [_LIBC]: New macros.
34950         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34951         [!_LIBC]: New macros.
34952         (call_fclose): New function.
34953         (getpass): Use it.  Save tty stream separately; this simplifies the
34954         code and makes it more reliable if stdin happens to equal stdout.
34955         Invoke __fsetlocking on tty.
34956         Handle thread cancellation if needed.
34957         Namespace cleanup (use __tcgetattr, __getline).
34958         Use bool for Booleans.
34959         [USE_IN_LIBIO]: Handle wide streams.
34960         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34961         stream might go where.
34962
34963         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34964         doesn't have to include <stdio.h> before us.
34965         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34966         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34967         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34968         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34969         if not declared, so that we can use getpass.c code from libc without
34970         rewriting it.
34971         (flockfile, ftrylockfile, funlockfile): New macros.
34972
34973 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34974
34975         * modules/getpass: Depend on stdbool.
34976
34977 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34978
34979         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34980
34981 2003-10-07  Karl Berry  <karl@gnu.org>
34982
34983         * config/config.{guess,sub}: update from config.
34984
34985 2003-10-06  Jim Meyering  <jim@meyering.net>
34986             Bruno Haible  <bruno@clisp.org>
34987
34988         This lets translators provide better translations for the
34989         "Written by ..." part of --version output.
34990         * lib/version-etc.h: Include stdarg.h.
34991         (version_etc_copyright): Declare as readonly.
34992         (version_etc): Make this function variadic with a NULL-terminated list
34993         of author name strings.
34994         (version_etc_va): New declaration.
34995         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34996         (version_etc_copyright): Declare as readonly.
34997         (version_etc_va): New function. Provide a different translatable string
34998         for each possible number of authors < 10. Abbreviate when there are 10
34999         authors or more.
35000         (version_etc): Make this function variadic. Call version_etc_va.
35001         Suggestion from Gary V. Vaughan.
35002
35003         * lib/long-options.h (parse_long_options): Change prototype: the
35004         authors string is moved to the end and becomes variadic.
35005         * lib/long-options.c: Include stdarg.h.
35006         (parse_long_options): Make this function variadic, too.
35007         Call version_etc_va, not version_etc.
35008
35009 2003-10-06  Bruno Haible  <bruno@clisp.org>
35010
35011         * modules/version-etc-2: Remove file.
35012         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35013
35014 2003-10-06  Bruno Haible  <bruno@clisp.org>
35015
35016         * modules/fatal-signal: New file.
35017         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35018
35019 2003-10-06  Bruno Haible  <bruno@clisp.org>
35020
35021         * m4/fatal-signal.m4: New file.
35022         * m4/signalblocking.m4: New file, from GNU gettext.
35023
35024 2003-10-06  Bruno Haible  <bruno@clisp.org>
35025
35026         * lib/version-etc-2.h: Remove file.
35027         * lib/version-etc-2.c: Remove file.
35028
35029 2003-10-06  Bruno Haible  <bruno@clisp.org>
35030
35031         * lib/fatal-signal.h: New file, from GNU gettext.
35032         * lib/fatal-signal.c: New file, from GNU gettext.
35033
35034 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35035
35036         * README: Rework advice for preventing empty .o files.
35037         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
35038         not <sys/types.h>.
35039
35040 2003-10-04  Karl Berry  <karl@gnu.org>
35041
35042         * lib/argp*: update from libc.
35043
35044 2003-10-04  Karl Berry  <karl@gnu.org>
35045
35046         * config/config.{guess,sub}: update from config.
35047
35048 2003-10-02  Bruno Haible  <bruno@clisp.org>
35049
35050         * modules/lchown (Include): Add lchown.h.
35051         * modules/time_r (Include): Use "..." syntax.
35052         * modules/xgetdomainname (Include): Add xgetdomainname.h.
35053
35054 2003-10-01  Simon Josefsson  <jas@extundo.com>
35055
35056         * MODULES.html.sh (func_all_modules): Move gethostname from section
35057         'based on' to section 'lacking' POSIX:2001.
35058
35059 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35060
35061         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35062         to output mode on the same stream.
35063
35064 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35065
35066         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35067         Fix arg typo in previous patch.
35068
35069 2003-09-28  Jim Meyering  <jim@meyering.net>
35070
35071         * lib/error.c: Correct cpp indentation.
35072
35073 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35074
35075         * modules/free: New file.
35076
35077 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35078
35079         * m4/free.m4: New file.
35080
35081 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35082
35083         * lib/minmax.h (MIN, MAX)
35084         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35085         Omit the special code that used __typeof__, since we worry that
35086         it could be more trouble than it's worth.  See:
35087         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35088         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35089
35090         * lib/free.c: New file.
35091
35092 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35093
35094         Trivial fixes to Makefile.am parts of module listings.
35095         * modules/strstr: Append strstr.h to lib_SOURCES.
35096         * modules/strcase: Likewise, for strcase.h.
35097
35098 2003-09-27  Karl Berry  <karl@gnu.org>
35099
35100         * config/mkinstalldirs: update from automake.
35101
35102 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35103
35104         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35105         (error_tail): Do not loop, reallocating temporary buffer, since
35106         the output cannot contain more wide characters than the input
35107         contains bytes, the size must be big enough already.  This avoids
35108         one potential size overflow calculation.  Check for size overflow
35109         when calculating temporary buffer size.  Free temporary buffer
35110         when done, if it was allocated with malloc; this plugs a memory
35111         leak.  Remove casts from void * to pointers, that are no longer
35112         needed now that we're assuming C89 or better.
35113
35114         Merge error changes from glibc.
35115
35116         * lib/error.c, error.h: Update copyright notice header to match glibc.
35117         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35118         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35119         Disable cancellation while printing error.
35120         * lib/error.h: Prepend __ to parameter names.
35121
35122 2003-09-26  Jim Meyering  <jim@meyering.net>
35123
35124         * lib/error.c (error_tail): Move some declarations
35125         into inner scope where the local variables are used.
35126
35127 2003-09-26  Bruno Haible  <bruno@clisp.org>
35128
35129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35130         stpncpy().
35131         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35132
35133 2003-09-26  Bruno Haible  <bruno@clisp.org>
35134
35135         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35136         (stpncpy): Define as alias for gnu_stpncpy.
35137         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35138
35139 2003-09-25  Simon Josefsson  <jas@extundo.com>
35140
35141         * lib/xgetdomainname.h: New file.
35142         * lib/xgetdomainname.c: New file.
35143
35144 2003-09-25  Simon Josefsson  <jas@extundo.com>
35145             Bruno Haible  <bruno@clisp.org>
35146
35147         * modules/getdomainname: New file.
35148         * modules/xgetdomainname: New file.
35149         * MODULES.html.sh (func_all_modules): Add getdomainname,
35150         xgetdomainname.
35151
35152 2003-09-25  Simon Josefsson  <jas@extundo.com>
35153             Bruno Haible  <bruno@clisp.org>
35154
35155         * m4/getdomainname.m4: New file.
35156
35157 2003-09-25  Simon Josefsson  <jas@extundo.com>
35158             Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/getdomainname.h: New file.
35161         * lib/getdomainname.c: New file.
35162
35163 2003-09-25  Karl Berry  <karl@gnu.org>
35164
35165         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35166
35167 2003-09-25  Karl Berry  <karl@gnu.org>
35168
35169         * config/install-sh: update from automake.
35170
35171 2003-09-25  Bruno Haible  <bruno@clisp.org>
35172
35173         * modules/version-etc-2: New file, from modules/version-etc with
35174         modifications.
35175         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35176
35177 2003-09-25  Bruno Haible  <bruno@clisp.org>
35178
35179         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35180         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35181
35182 2003-09-24  Simon Josefsson  <jas@extundo.com>
35183
35184         * modules/xgethostname: Add xgethostname.h.
35185
35186 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35187
35188         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35189         the buffer associated with the argument.  Bug reported by
35190         Simon Josefsson.
35191
35192 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35193
35194         * README: Document assumptions that 'int' is at least 32 bits
35195         wide, that integer arithmetic is 2's complement without overflow,
35196         that there are no holes in integer values, that adding sizes of
35197         two nonoverlapping objects can't overflow, and that all-bits-zero
35198         yields scalar zero.  Fix spelling and capitalization typos.
35199
35200 2003-09-19  Karl Berry  <karl@gnu.org>
35201
35202         * lib/argp.h: update from libc.
35203
35204 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35205
35206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35207         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35208         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35209
35210 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35211
35212         * gnulib-tool: Use "test -h", not "test -L", for portability
35213         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35214         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35215         (sed_extract_prog): Issue s commands one-by-one, rather than
35216         using \| in one s command.
35217
35218 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35219
35220         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35221         input error, instead of returning NULL the next time we are called
35222         (and therefore losing track of errno).
35223
35224 2003-09-16  Bruno Haible  <bruno@clisp.org>
35225
35226         * gnulib-tool (func_create_testdir): Warn about duplicated
35227         dependencies.
35228
35229 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35230
35231         * modules/argmatch, modules/fatal, modules/obstack,
35232         modules/xalloc, modules/xgethostname: Sort dependencies by
35233         importance, not alphabetically.
35234
35235 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35236
35237         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35238         fails, so that the caller gets the proper errno.
35239
35240         * lib/readutmp.c (read_utmp): Likewise.
35241         Check for fstat error.  Close stream and free storage
35242         when failing.
35243
35244 2003-09-14  Karl Berry  <karl@gnu.org>
35245
35246         * config/srclist.txt (strdup.c): disable for c89 changes.
35247
35248 2003-09-14  Jim Meyering  <jim@meyering.net>
35249
35250         * lib/getloadavg.c: Correct cpp indentation.
35251         * lib/strdup.c: Likewise.
35252         * lib/vasnprintf.c: Likewise.
35253
35254 2003-09-14  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/fwriteerror: New file.
35257         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35258
35259 2003-09-14  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/fwriteerror.h: New file.
35262         * lib/fwriteerror.c: New file.
35263
35264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35265
35266         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35267         modules/xgethostname, modules/xalloc: Depend on exit.
35268
35269 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35270
35271         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35272
35273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35274         and AC_MINIX, too, so that their extensions are available.
35275
35276         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35277         This macro has been superseded by gl_BACKUPFILE.
35278
35279         More patches to assume C89 or better.
35280
35281         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35282
35283         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35284         unconditionally.
35285         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35286         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35287         Include <string.h>, <stdlib.h> unconditionally.
35288         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35289         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35290         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35291         headers or for string.h.
35292         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35293         or strtoul.
35294
35295         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35296         headers.
35297         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35298         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35299         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35300         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35301         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35302         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35303         memcpy, memset.
35304         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35305         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35307         strtol.
35308         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35309         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35311         strtoul.
35312
35313 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35314
35315         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35316         * lib/obstack.c [!defined _LIBC]: Likewise.
35317         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35318         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35319         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35320
35321         More changes to assume C89 or better.
35322
35323         * lib/error.c (error_tail): Assume vprintf.
35324
35325         * lib/argmatch.c (getenv): Remove decl.
35326         * lib/progreloc.c (get_full_program_name): Define via prototype.
35327         * lib/setenv.c (clearenv): Likewise.
35328         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35329         needed.
35330         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35331         (malloc, memcpy): Remove decls.
35332         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35333         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35334         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35335         (memcpy): Remove macro.
35336         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35337         (__P): Remove.  All uses removed.
35338         (PTR): Remove.  All uses changed to void *.
35339         (CHAR_BIT, NULL): Remove.
35340         (spaces, zeros, memset_space, memset_zero)
35341         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35342         Remove.
35343         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35344         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35345         Define with prototype.
35346         Remove now-unnecessary prototype decl.
35347         (extra_args_spec): Assume ANSI C.  All uses changed.
35348         (extra_args_spec_iso): Remove.
35349         (my_strftime, emacs_strftimeu): Define via prototype.
35350         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35351         unconditionally.
35352         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35353         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35354         (strtoul, strtol): Remove decls.
35355         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35356         LONG_MAX): Remove.
35357         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35358         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35359         (LOCALE_PARAM_PROTO): New macro.
35360         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35361         (INTERNAL (strtol), strtol): Define with a prototype.
35362         (PARAMS): Remove.  All uses removed.
35363         * lib/tempname.c: Include <string.h> unconditionally.
35364         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35365         * lib/xgethostname.c (main): Define with a prototype.
35366         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35367         Include <stdlib.h> unconditionally.
35368         (calloc, malloc, realloc, free): Remove decls.
35369         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35370         Include <stdlib.h> unconditionally.  Sort include file names.
35371         (strtod): Remove.
35372         (xstrtod): Define with a prototype.
35373         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35374         (strtol, strtoul): Remove decls.
35375
35376 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35377
35378         More patches to assume C89 or better.
35379         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35380         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35381         string.h, memchr, STDC_HEADERS.
35382
35383 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35384
35385         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35386         Include <stdlib.h>, <string.h> unconditionally.
35387         Remove now-unnecessary cast to char *.
35388         * lib/strnlen.c: Include <string.h> unconditionally.
35389         * lib/yesno.c (yesno): Define with a prototype.
35390
35391 2003-09-11  Bruno Haible  <bruno@clisp.org>
35392
35393         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35394
35395 2003-09-10  Jim Meyering  <jim@meyering.net>
35396
35397         * lib/error.c: Correct indentation of cpp directives.
35398
35399 2003-09-10  Bruno Haible  <bruno@clisp.org>
35400
35401         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35402         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35403         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35404         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35405         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35406         <stdlib.h> and <string.h> checks.
35407         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35408         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35409
35410 2003-09-10  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/strcspn.c: Include <string.h> unconditionally.
35413         * lib/strpbrk.c: Include <string.h> unconditionally.
35414         * lib/strstr.c: Include <string.h> unconditionally.
35415         * lib/unicodeio.c: Include <string.h> unconditionally.
35416         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35417         * lib/unsetenv.c: Likewise.
35418         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35419         * lib/yesno.c: Include <stdlib.h> unconditionally.
35420         (rpmatch): Add prototype.
35421
35422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35423
35424         More patches to assume C89 or better.
35425         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35426         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35427         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35428         or for string.h.
35429         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35430         stdlib.h.
35431         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35432         C headers.
35433         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35434         string.h.
35435         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35436         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35437         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35438         or for string.h.
35439         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35440         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35441         C headers.
35442         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35443         memcpy.
35444         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35445         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35446         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35447         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35448         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35449         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35450         string.h, free.
35451         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35452         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35453         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35454         C headers, or for string.h.
35455         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35456         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35457         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35458         headers, memory.h, stdlib.h, string.h, strings.h.
35459         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35460         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35461         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35462         strchr.
35463         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35464         headers, memory.h, string.h.
35465         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35466         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35467         free.
35468         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35469         headers.
35470         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35471         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35472         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35473         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35474         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35475
35476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35477
35478         More K&R removal.
35479
35480         * lib/acosl.c (main): Use a prototype.
35481         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35482         tanl.c: Likewise.
35483
35484         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35485
35486         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35487         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35488         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35489         with a prototype.
35490         * lib/getopt.c (const): Remove macro.
35491         Include <string.h> unconditionally.
35492         (my_index): Remove; all uses changed to strchr.
35493         (strlen): Remove decl.
35494         (exchange): Remove forward decl; no longer needed.
35495         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35496         Define with prototype.
35497         * lib/getopt1.c (const): Remove macro.
35498         (getopt_long, getopt_long_only, main): Define with prototype.
35499
35500         * lib/getugroups.c: Include <string.h> unconditionally.
35501
35502         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35503         (getusershell, setusershell, endusershell, readname, main):
35504         Define with prototypes.
35505
35506         * lib/group-member.c: Include group-member.h first.
35507         Include <stdlib.h> unconditionally.
35508
35509         * lib/hard-locale.c: Include hard-locale.h first.
35510         Include <stdlib.h>, <string.h> unconditionally.
35511
35512         * lib/hash.c (free, malloc): Remove decls.
35513         Include <stdlib.h> unconditionally.
35514
35515         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35516         (getenv): Do not declare.
35517
35518         * lib/idcache.c: Include <string.h> unconditionally.
35519
35520         * lib/long-options.c: Include long-options.h first, to test interface.
35521         Include <stdlib.h> unconditionally.
35522
35523         * lib/makepath.c: Include makepath.h first, to test interface.
35524         Include <stdlib.h> and <string.h> unconditionally.
35525
35526         * lib/linebuffer.c: Include <stdlib.h>.
35527         (free): Remove decl.
35528
35529         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35530         stddef.h. rpl_malloc returns void *, not char *.
35531         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35532         prototype.
35533
35534         * lib/md5.h: Include <limits.h> unconditionally.
35535         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35536         (__P): Remove; all uses removed.
35537         * lib/md5.c: Include "md5.h" first.
35538         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35539         md5_buffer, md5_process_bytes, md5_process_block):
35540         Define with prototypes.
35541         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35542         * lib/sha.c: Include "sha.h" first.
35543         Include <stdlib.h>, <string.h> unconditionally.
35544
35545         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35546         * lib/memcmp.c (__ptr_t): Likewise.
35547         * lib/memrchr.c (__ptr_t): Likewise.
35548         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35549         Include <string.h> unconditionally.
35550         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35551         * lib/memchr.c: Include <stdlib.h> unconditionally.
35552         * lib/memchr.c (LONG_MAX): Remove.
35553         * lib/memrchr.c (LONG_MAX): Likewise.
35554         * lib/memchr.c (__memchr): Define via a prototype.
35555         * lib/memrchr.c (__memrchr): Likewise.
35556         * lib/memcmp.c (__P): Remove, and remove all uses.
35557         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35558         Remove forward decls; no longer needed.
35559         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35560         Use types required by C89 in prototype.
35561
35562         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35563         * lib/savedir.c: Likewise.
35564         * lib/mkdir.c (free): Remove decl.
35565         * lib/rmdir.c (rmdir): Define with a prototype.
35566         * lib/savedir.c: Include savedir.h first, to test interface.
35567
35568         * lib/mktime.c (STDC_HEADERS): Remove.
35569         Include <stdlib.h>, <string.h> unconditionally.
35570
35571         * lib/modechange.c: Include <stdlib.h> unconditionally.
35572         (malloc): Remove decl.
35573
35574         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35575         (free): Remove decl.
35576
35577         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35578         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35579         (This type really should be intptr_t, but that's a C99ism.)
35580         (_obstack_memcpy): Remove: all uses changed to memcpy.
35581         Include <string.h> unconditionally.
35582         (struct obstack): Assume __STDC__ for types of members
35583         chunkfun, freefun, extra_arg.
35584         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35585         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35586         obstack_begin, obstack_specify_allocation,
35587         obstack_specify_allocation_with_arg, obstack_chunkfun,
35588         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35589         Remove unprototyped decls and the macros that use them.
35590         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35591         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35592         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35593         (defined __STDC__ && __STDC__)]:
35594         Remove nonprototyped code.
35595         Include <stdlib.h> unconditionally.
35596         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35597         _obstack_allocated_p, _obstack_free, obstack_free,
35598         _obstack_memory_used, print_and_abort):
35599         Define using prototypes.
35600         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35601         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35602         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35603         obstack_next_free, obstack_object_size, obstack_room) [0]:
35604         Remove unused, unprototyped code.
35605
35606         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35607
35608         * lib/physmem.c (physmem_total, physmem_available, main): Define
35609         with prototypes.
35610
35611         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35612         (main): Define with a prototype.
35613
35614         * lib/posixver.c (getenv): Remove decl.
35615
35616         * lib/putenv.c (malloc): Returns void *, not char *.
35617         Include <string.h> unconditionally.
35618         (strchr, memcpy, NULL): Do not define.
35619
35620         * lib/readtokens.c: Include readtokens.h first, to test interface.
35621         Include <stdlib.h>, <string.h> unconditionally.
35622         (init_tokenbuffer): Define with a prototype.
35623
35624         * lib/regex.c (PARAMS): Remove.  All uses removed.
35625         All uses of _RE_ARGS removed, too.
35626         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35627         unconditionally.
35628         (bzero): Assume memset exists.
35629         (memcmp, memcpy, NULL): Remove.
35630         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35631         char, or assignments to local vars of type signed char.
35632         (init_syntax_once, PREFIX(extract_number_and_incr),
35633         PREFIX(print_partial_compiled_pattern),
35634         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35635         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35636         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35637         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35638         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35639         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35640         wcs_compile_range, byte_compile_range, truncate_wchar,
35641         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35642         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35643         count_mbs_length, wcs_re_match_2_internal,
35644         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35645         PREFIX(alt_match_null_string_p),
35646         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35647         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35648         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35649         now-unnecessary declaration, if any.
35650         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35651         regcomp, regexec):
35652         Remove now-unnecessary casts among pointer types.
35653         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35654
35655         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35656         (free): Remove decl.
35657
35658         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35659
35660         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35661         (free): Remove decl.
35662
35663         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35664         * lib/xgetcwd.c: Likewise.
35665
35666         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35667         (free): Remove decl.
35668
35669         * lib/strchrnul.c (strchrnul): Define with a prototype.
35670         Fix bug: c_in was not converted to char before searching.
35671
35672         The following changes are not K&R related:
35673
35674         * lib/group-member.h: Include <sys/types.h>, so that this file is
35675         self-contained.
35676         * lib/makepath.h: Likewise.
35677
35678         * lib/getusershell.c (readname, default_index, line_size, readname):
35679         Use size_t, not int, for sizes.
35680         (readname): If the size overflows, report an error instead of
35681         looping forever.
35682
35683 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35684
35685         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35686         libc.
35687
35688 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35689
35690         * README: New section: portability guidelines.
35691
35692 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35693
35694         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35695         C89 spec.
35696
35697 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35698
35699         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35700
35701 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35702
35703         Assume C89 or better; remove K&R cruft.
35704         A few of these changes were first proposed by Derek Robert Price
35705         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35706
35707         * lib/addext.c: Include <string.h> unconditionally.
35708         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35709         Don't declare getenv or malloc.
35710
35711         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35712         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35713         (NULL): Remove.
35714         (find_stack_direction, alloca): Use prototypes.
35715
35716         * lib/atexit.c (atexit): Define using a prototype.
35717
35718         * lib/basename.c, dirname.c, stripslash.c:
35719         Include <string.h> unconditionally.
35720
35721         * lib/bcopy.c: Include <stddef.h>.
35722         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35723
35724         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35725
35726         * lib/error.h (error, error_at_line, error_print_progname)
35727         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35728         * lib/error.c: Include error.h first, to check interface.
35729         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35730         (VA_START): Remove; all uses changeed to va_start.
35731         (exit, strerror): Remove decls.
35732         (error_print_progname): Prototype uncondionally.
35733         Don't include <errno.h>; no longer needed.
35734         (private_strerror): Remove.
35735         (error_tail): Always define.
35736         (error, error_at_line): Assume C89 or better; always use prototypes.
35737         * lib/fatal.c: Include "fatal.h" first, to test interface.
35738         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35739         (VA_START): Remove; all uses changed to va_start.
35740         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35741         this case.
35742         (exit): Remove decl.
35743         (fatal): Prototype unconditionally.  Assume va_start works.
35744         Abort at end, to pacify gcc.
35745
35746         * lib/euidaccess.c (main): Define with a prototype.
35747
35748         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35749
35750         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35751
35752         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35753         prototypes.
35754         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35755         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35756         (getenv): Remove decl.
35757         (fnmatch): Define using a prototype.
35758         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35759         (FCT): Define using a prototype.
35760
35761         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35762
35763         * lib/gethostname.c: Include <stddef.h>.
35764         (gethostname): Define with prototype.  Length is size_t, not int.
35765
35766 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35767
35768         Assume C89 or better; remove K&R cruft.
35769         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35770         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35771         string.h, getenv, malloc.
35772         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35773         headers.
35774         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35775         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35776         do not check for strerror.
35777         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35778         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35779         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35780         do not check for doprnt or vprintf.
35781         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35782         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35783
35784 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35785
35786         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35787         getversion.c should have been removed then, but was accidentally
35788         preserved.
35789
35790         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35791         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35792
35793 2003-09-08  Karl Berry  <karl@gnu.org>
35794
35795         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35796                 config, forget about prep.
35797
35798         * config/depcomp, missing: update from automake.
35799
35800 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35801
35802         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35804
35805 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35806
35807         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35808         copy_tm_result.  Bug reported by Simon Josefsson in
35809         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35810
35811 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35812
35813         * m4/time_r.m4: New file.
35814         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35815         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35816         is. Check for timegm declaration.
35817         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35818         Do not check for gmtime_r.
35819         Replace mktime if __mktime_internal does not exist and if mktime
35820         hasn't been replaced already.
35821
35822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35823
35824         * lib/time_r.c, lib/time_r.h: New files.
35825
35826         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35827         __localtime_r.
35828         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35829         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35830
35831         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35832         __gmtime_r.
35833         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35834         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35835         Include <time_r.h>.
35836
35837         * lib/timegm.c: Switch to glibc implementation, with the following
35838         changes:
35839         [defined HAVE_CONFIG_H]: Include <config.h>.
35840         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35841         (__mktime_internal) [!defined _LIBC]: New decl.
35842         (__gmtime_r) [!defined _LIBC]: New macro and function.
35843         (timegm): Use a prototype, since gnulib assumes C89.
35844         Do not bother declaring tmp to be const, as it's not really usefu.
35845         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35846         (timegm): Declare only if HAVE_DECL_TIMEGM.
35847
35848 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35849
35850         * MODULES.html.sh (func_all_modules): Add time_r.
35851         * modules/time_r: New file.
35852         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35853         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35854
35855 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35856
35857         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35858         Bug reported by Lute Kamstra in
35859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35860
35861         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35862         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35863         course with correspondingly smaller numbers for tomorrow and
35864         yesterday.  From Tadayoshi Funaba.  Originally installed into
35865         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35866         coreutils merge?).
35867
35868 2003-08-31  Simon Josefsson  <jas@extundo.com>
35869
35870         * modules/timegm: New file.
35871         * MODULES.html.sh (func_all_modules): Add timegm.
35872
35873 2003-08-31  Simon Josefsson  <jas@extundo.com>
35874
35875         * m4/timegm.m4: New file.
35876
35877 2003-08-31  Simon Josefsson  <jas@extundo.com>
35878
35879         * lib/timegm.h: New file.
35880         * lib/timegm.c: New file.  Based on
35881         wget-1.8.2/src/http.c:mktime_from_utc.
35882
35883 2003-08-31  Karl Berry  <karl@gnu.org>
35884
35885         * lib/argp.h: update from libc.
35886
35887 2003-08-28  Bruno Haible  <bruno@clisp.org>
35888
35889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35890         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35891         followed by '#define fnmatch fnmatch_posix' gives an error.
35892
35893 2003-08-28  Bruno Haible  <bruno@clisp.org>
35894
35895         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35896         warning on QNX, which defines O_BINARY to 000000.
35897
35898 2003-08-27  Jim Meyering  <jim@meyering.net>
35899
35900         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35901         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35902         would fail after 32.  Reported by Danny Levinson.  Details here:
35903         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35904
35905 2003-08-24  Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35908         MSVC7 <stdio.h> is included later.
35909
35910 2003-08-22  Simon Josefsson  <jas@extundo.com>
35911
35912         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35913
35914 2003-08-20  Karl Berry  <karl@gnu.org>
35915
35916         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35917
35918 2003-08-20  Bruno Haible  <bruno@clisp.org>
35919
35920         * modules/progname: New file.
35921         * MODULES.html.sh (func_all_modules): Add progname.
35922
35923 2003-08-20  Bruno Haible  <bruno@clisp.org>
35924
35925         * lib/progname.h: New file, from GNU gettext.
35926         * lib/progname.c: New file, from GNU gettext.
35927         * lib/progreloc.c: New file, from GNU gettext.
35928
35929 2003-08-19  Jim Meyering  <jim@meyering.net>
35930
35931         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35932         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35933
35934 2003-08-19  Bruno Haible  <bruno@clisp.org>
35935
35936         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35937         more.
35938
35939 2003-08-19  Bruno Haible  <bruno@clisp.org>
35940
35941         * lib/xstrdup.c: Assume <string.h> exists.
35942
35943 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35944
35945         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35946         in makefile rules.
35947
35948 2003-08-18  Jim Meyering  <jim@meyering.net>
35949
35950         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35951         * m4/lib-ld.m4: Likewise.
35952
35953 2003-08-18  Jim Meyering  <jim@meyering.net>
35954
35955         * lib/setenv.h: Indent nested cpp directive.
35956         * lib/vasnprintf.c: Remove trailing blanks.
35957
35958 2003-08-17  Simon Josefsson  <jas@extundo.com>
35959
35960         * modules/xstrndup: New file.
35961         * MODULES.html.sh (func_all_modules): Add xstrndup.
35962
35963 2003-08-17  Simon Josefsson  <jas@extundo.com>
35964
35965         * modules/argp: Fix autoconf macro name. Add more dependencies.
35966
35967 2003-08-17  Simon Josefsson  <jas@extundo.com>
35968
35969         * m4/xstrndup.m4: New file.
35970
35971 2003-08-17  Simon Josefsson  <jas@extundo.com>
35972
35973         * m4/argp.m4: New file.
35974
35975 2003-08-17  Simon Josefsson  <jas@extundo.com>
35976             Bruno Haible  <bruno@clisp.org>
35977
35978         * lib/xstrndup.h: New file.
35979         * lib/xstrndup.c: New file.
35980
35981 2003-08-17  Bruno Haible  <bruno@clisp.org>
35982
35983         * modules/strndup (Files, Include): Add lib/strndup.h.
35984
35985 2003-08-17  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/euidaccess (Files): Add lib/euidaccess.h.
35988
35989 2003-08-17  Bruno Haible  <bruno@clisp.org>
35990
35991         * lib/strndup.h: New file.
35992
35993 2003-08-17  Bruno Haible  <bruno@clisp.org>
35994
35995         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35996         like AC_GNU_SOURCE.
35997         * modules/extensions (configure.ac): Comment out the invocation of
35998         gl_USE_SYSTEM_EXTENSIONS.
35999
36000 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36001
36002         Merges from coreutils, etc.
36003         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36004         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36005         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36006         fixing a typo.
36007         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36008         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36009
36010 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36011
36012         Document merge from coreutils.
36013         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36014         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36015         * modules/utime: Add m4/utimes-null.m4.
36016
36017 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36018
36019         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36020         space, undoing this 2003-08-12 change:
36021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36022
36023 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36024
36025         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36026         strtoul.c from libc, undoing this 2003-08-12 change:
36027         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36028
36029 2003-08-16  Jim Meyering  <jim@meyering.net>
36030
36031         Merges from coreutils.
36032         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36033         prefix.  Adjust cache variables similarly.  Create 500 rather than
36034         just 300 files, to exercise bug on Darwin6.5, too.
36035         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
36036         $missing_dir.
36037         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
36038         AM_SYS_POSIX_TERMIOS.
36039         Reported by mkc@mathdogs.com.
36040         Also change use of $am_cv_sys_posix_termios
36041         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
36042         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
36043         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
36044         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
36045         in /proc/mounts until it finds one with matching device number.  This
36046         is unnecessary when the FILE argument *is* a mount point.  No stat call
36047         is necessary in that case.  So, disable the statvfs-testing code on
36048         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
36049         as RedHat bug# 84846.
36050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36051         to 1MB, so as not to render systems with no stack size limit (e.g.,
36052         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36053         Include <unistd.h>.  On some systems,
36054         it is required for the definition of _SC_PAGESIZE.
36055
36056 2003-08-16  Jim Meyering  <jim@meyering.net>
36057
36058         Merge from coreutils.
36059         * lib/xstrtoimax.c: #else #if -> #elif.
36060         * lib/xstrtoumax.c: Likewise.
36061
36062 2003-08-16  Jim Meyering  <jim@meyering.net>
36063
36064         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36065         * m4/utimes.m4: Removed.
36066         * m4/utimes-null.m4: Renamed from utimes.m4.
36067
36068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36069         to 1MB, so as not to render systems with no stack size limit (e.g.,
36070         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36071         Include <unistd.h>.  On some systems,
36072         it is required for the definition of _SC_PAGESIZE.
36073
36074 2003-08-16  Jim Meyering  <jim@meyering.net>
36075         and Paul Eggert  <eggert@cs.ucla.edu>
36076
36077         Merges from coreutils, etc.
36078
36079         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36080         using the latest version from cvs.  This avoids problems with #line
36081         directives using a vendor (Sun) compiler.
36082         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36083         Don't set GETGROUPS_LIB here; now it's
36084         done via getgroups.m4's wrapper function.
36085         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36086         rather than just in sh-util/configure.in, so that the
36087         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36088         same.
36089         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36090         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36091         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36092         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36093         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36094         Remove code that is now done by the newly-required macros.
36095         Append $(EXEEXT) to DF_PROG.
36096         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36097         Do not invoke or require the following here,
36098         since prereq.m4 or some gnulib .m4 now does this for us:
36099         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36100         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36101         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36102         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36103         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36104         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36105         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36106         AC_FUNC_OBSTACK.
36107         Do not replace the following functions, as this is now the job
36108         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36109         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36110         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36111         atexit getpass, strdup, getpagesize.
36112         Replace 'raise'.
36113         Do not check for the following functions, as this is now the job
36114         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36115         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36116         setregid.
36117         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36118         Check for sys/sysctl.h.
36119         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36120         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36121         of checking for ssize_t ourselves.
36122
36123         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36124         Require every macro that gnulib/modules/* suggests for us.
36125         (jm_PREREQ_ADDEXT): New macro.
36126         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36127         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36128
36129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36130         (gl_PHYSMEM): Use it.
36131         Also check for `table' function.
36132         Check for new headers and functions.
36133         Add check for sys/sysmp.h.
36134         With suggestions from Kaveh Ghazi.
36135         Ignore headers that are present but cannot be compiled.  This
36136         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36137         C 5.4.
36138
36139 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36140
36141         Document merge from coreutils.
36142         * modules/userspec: Depend on posixver.
36143         * modules/strftime: Depend on tzset.
36144
36145 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36146
36147         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36148         rather than tab, after '#' in shell-script copyright notices.
36149         Suggested by Bruno Haible.
36150
36151 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36152
36153         * config/srclist-update: Use three spaces, rather than tab, after '#'
36154         in shell-script copyright notices.  Suggested by Bruno Haible.
36155         Remove unnecessary parenthesization in regular expression.
36156
36157 2003-08-15  Jim Meyering  <jim@meyering.net>
36158
36159         Merge from coreutils.
36160         * lib/xgethostname.c: Include <stdlib.h>.
36161         (xghostname): Don't exit for anything other than memory-related
36162         failure; just return NULL.
36163         * lib/userspec.c: Include "posixver.h".
36164         (parse_user_spec): Accept `.' as a separator only
36165         in pre-POSIX-200112 mode.
36166         * lib/strtoimax.c: Use #elif rather than #else #if.
36167         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36168         Remove function, now that we can rely on a working tzset function.
36169         [!_LIBC]: Ensure that the required autoconf test has been run.
36170         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36171         Use underlying_strftime for %r.
36172         * lib/sha.c: Merge in some clean-up and optimization changes from
36173         glibc.
36174         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36175         Ensure that it is a multiple of 64.
36176         Rearrange loop exit tests so as to avoid performing an
36177         additional fread after encountering an error or EOF.
36178         * lib/realloc.c: Update copyright date.
36179
36180 2003-08-15  Jim Meyering  <jim@meyering.net>
36181         and Paul Eggert  <eggert@twinsun.com>
36182
36183         Merge from coreutils.
36184         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36185         member but strut utmpx does not.  Needed for AIX 4.3.3.
36186         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36187
36188 2003-08-15  Jim Meyering  <jim@meyering.net>
36189         and Paul Eggert  <eggert@cs.ucla.edu>
36190
36191         Merges from coreutils, etc.
36192         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36193         Require gl_FUNC_TZSET_CLOBBER.
36194         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36195         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36196         members.
36197
36198 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36199
36200         Help the merge from coreutils.
36201         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36202         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36203         * m4/tzset.m4: Use it too.
36204
36205 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36206
36207         * modules/tzset: New file.
36208
36209 2003-08-14  Jim Meyering  <jim@meyering.net>
36210
36211         Merges from coreutils.
36212         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36213         variable names, rather than @FNMATCH_H@.
36214         * modules/alloca: Likewise for $(ALLOCA_H).
36215
36216         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36217         the three copies of the literal target, `fnmatch.h'.
36218         * modules/alloca (alloca.h): Likewise.
36219
36220 2003-08-14  Jim Meyering  <jim@meyering.net>
36221
36222         Merge from coreutils.
36223         * m4/tzset.m4: New file.
36224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36225         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36226         otherwise, AIX 5.1 systems would end up using the latter.
36227         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36228         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36229         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36230         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36231
36232 2003-08-14  Jim Meyering  <jim@meyering.net>
36233
36234         Merge from coreutils.
36235         * lib/obstack.h: Whitespace changes.
36236         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36237         and xcalloc return values.
36238         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36239         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36240         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36241         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36242         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36243         error from mntctl.
36244         Use mntctl's return value to drive the entry-processing loop, since
36245         we can't rely on the value of the vmt_length member in the last
36246         entry.  On some systems doing so could result in exhausting
36247         virtual memory.  Based in part on a patch from Mike Jetzer.
36248
36249 2003-08-14  Jim Meyering  <jim@meyering.net>
36250         and Paul Eggert  <eggert@twinsun.com>
36251
36252         Merges from coreutils, plus other fixes.
36253         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36254         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36255         for credits and details.  Thanks to Kaveh Ghazi for helping
36256         to keep these files in sync.
36257         (ARRAY_SIZE): Define it.
36258         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36259         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36260         (memcasecmp): Don't assume size_t fits in unsigned int.
36261         Remove casts and duplicate code.
36262         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36263         (memcpy): Remove definition.
36264         Merge in some clean-up and optimization changes from glibc.
36265         [BLOCKSIZE]: Move definition to top of file.
36266         Ensure that it is a multiple of 64.
36267         Rearrange loop exit tests so as to avoid performing an
36268         additional fread after encountering an error or EOF.
36269         * lib/md5.h (md5_uintptr): Define.
36270         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36271         return to the initial working directory.  Preserve errno
36272         for caller.
36273         * lib/idcache.c: Include "xalloc.h".
36274         (xmalloc, xrealloc): Remove decls.
36275         (getuser): Remove casts no longer required in C89.
36276         * lib/human.c: Include stdio.h, for sprintf.
36277         * lib/group-member.c: Include "xalloc.h".
36278         (xmalloc, xrealloc): Remove decls.
36279         (get_group_info): Remove casts no longer required in C89.
36280         * lib/getusershell.c (readname): Remove casts no longer required in
36281         C89.
36282         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36283         * lib/getline.c: Whitespace fix, from coreutils.
36284
36285 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36286
36287         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36288         Check for isascii.
36289
36290         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36291         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36292         Undo previous (whitespace-only) change.
36293
36294 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36295
36296         * lib/exclude.c: Include <ctype.h>
36297         (IN_CTYPE_DOMAIN): New macro.
36298         (is_space): New fn.
36299         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36300         and empty lines.
36301
36302         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36303         Undo previous (whitespace-only) change.
36304
36305 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36306
36307         * config/srclist-update: Change update back to the old behavior,
36308         leaving whitespace alone.  Use one 'sed' command rather than a
36309         pipeline.
36310         (fixlicense): Now a variable, not a function.
36311         (remove_trailing_blanks): Remove.
36312         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36313         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36314         Undo previous (whitespace-only) change.
36315
36316 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36317
36318         Merge from coreutils.
36319         * modules/euidaccess: Add lib_SOURCES, include for new
36320         file euidaccess.h
36321
36322 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36323
36324         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36325         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36326         Normalize leading white space and remove trailing white space.
36327
36328         Merge from coreutils
36329         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36330
36331         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36332         0.12.1.  These files are now being upgraded automatically by
36333         ../config/srclist-update.
36334
36335 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36336
36337         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36338         Normalize leading white space and remove trailing white space.
36339         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36340         notice, as per ../config/srclist-update.
36341
36342         Merge from coreutils.
36343         * lib/euidaccess.h: New file.
36344         * lib/euidaccess.c: Include it.
36345         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36346         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36347         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36348
36349 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36350
36351         * config/srclist-update: Add copyright notice.
36352         (remove_id_lines, remove_trailing_blanks): New constants.
36353         (fixfile): Use them to normalize spacing a bit in copied files.
36354         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36355         Normalize leading white space and remove trailing white space.
36356
36357         * config/texinfo.tex: Sync with texinfo.
36358
36359         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36360         strtoul.c from libc, to merge coreutils whitespace changes.
36361
36362         * config/srclist.txt: Get the following m4 files from gettext:
36363         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36364         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36365         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36366         wint_t.m4.
36367
36368 2003-08-12  Karl Berry  <karl@gnu.org>
36369
36370         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36371         been made.
36372
36373 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36374
36375         * modules/gnu-source, m4/gnu-source.m4:
36376         Remove; we're assuming Autoconf 2.54 or later now.
36377         Suggested by Bruno Haible.
36378         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36379
36380 2003-08-11  Bruno Haible  <bruno@clisp.org>
36381
36382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36383
36384 2003-08-11  Bruno Haible  <bruno@clisp.org>
36385
36386         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36387         (vasnprintf): Use it instead of wcslen.
36388
36389 2003-08-11  Bruno Haible  <bruno@clisp.org>
36390
36391         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36392         value to ensure that _Bool promotes to int. Use #define for _Bool when
36393         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36394
36395 2003-08-10  Karl Berry  <karl@gnu.org>
36396
36397         * lib/regex.h: update from libc (whitespace fix).
36398
36399 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36400
36401         Merge some files from coreutils.  These changes were
36402         originally made by Jim Meyering.
36403         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36404         many older Unixes require this.
36405         * lib/alloca.c (alloca): Remove cast to argument of free;
36406         no longer needed in C89.
36407         * lib/alloca_.h, regex.h: Fix white space to match
36408         what GNU indent does.
36409
36410 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36411
36412         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36413         apparently Emacs's Unicode mode got confused before my 2003-08-05
36414         checkin.
36415
36416 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36417
36418         * m4/extensions.m4: New file.
36419         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36420         Require gl_USE_SYSTEM_EXTENSIONS.
36421         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36422         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36423
36424 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36425
36426         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36427         * modules/extensions, modules/gnu-source: New files.
36428         * modules/timespec, modules/unlocked-io: Depend on extensions.
36429
36430 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36431
36432         * modules/restrict: New file.
36433         * MODULES.html.sh (func_all_modules): Add restrict.
36434         * modules/regex: Depend on restrict.
36435
36436 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36437
36438         * m4/restrict.m4: New file.
36439         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36440
36441 2003-08-07  Bruno Haible  <bruno@clisp.org>
36442
36443         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36444         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36445
36446 2003-08-07  Bruno Haible  <bruno@clisp.org>
36447
36448         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36449         makes the module 'getndelim2' compatible with the module 'getline'.
36450
36451 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36452
36453         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36454         byte with "\201" to avoid glitches when editing that source file
36455         with multi-gnome-terminal.
36456
36457 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36458
36459         * lib/bumpalloc.h: Remove.
36460
36461 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36462
36463         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36464         * modules/bumpalloc: Remove.
36465
36466 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36467
36468         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36469         GNU coding style.
36470
36471         Merge from coreutils.
36472         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36473         1. From glibc.
36474         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36475         from Karl Berry, implemented by Jim Meyering.
36476         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36477         from Dmitry V. Levin.
36478         Remove anachronistic cast of xrealloc.
36479         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36480         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36481         type. Otherwise, it wouldn't compile with at least /bin/cc on
36482         ymp-cray-unicos9.0.2.X.
36483         Combine two mostly-identical uses of alloca into one.
36484         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36485
36486 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36487
36488         [From Emacs.]
36489
36490         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36491         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36492         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36493         obsolete NLIST_NAME_UNION.
36494         [__GNU__]: Undef BSD and FSCALE.
36495         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36496
36497 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36498
36499         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36500         an enum type, so that it's guaranteed to promote to int.  See:
36501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36502
36503 2003-08-03  Karl Berry  <karl@gnu.org>
36504
36505         * config/depcomp: update from automake.
36506
36507 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36508
36509         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36510         (strerror): Don't assume that a printable int fits in 14 bytes.
36511
36512 2003-07-31  Bruno Haible  <bruno@clisp.org>
36513
36514         * modules/getpass-gnu: New file.
36515         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36516
36517 2003-07-31  Bruno Haible  <bruno@clisp.org>
36518
36519         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36520
36521 2003-07-24  Karl Berry  <karl@gnu.org>
36522
36523         * config/missing: update from automake.
36524
36525 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36526             Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36529         * lib/getline.c (getline, getdelim): Likewise.
36530         Remove _GNU_SOURCE define; now it's defined in config.h through
36531         m4/getline.m4.
36532
36533 2003-07-23  Karl Berry  <karl@gnu.org>
36534
36535         * config/config.sub: update from prep.
36536
36537 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36538
36539         * modules/xalloc (Depends-on): Add exitfail.
36540         * modules/xmemcoll: Likewise.
36541
36542 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36543
36544         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36545         over-parenthesization in macros.
36546
36547         Sync with coreutils.
36548
36549         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36550         required by C99.
36551
36552         Use `exit_failure' for xalloc and xmemcoll instead of their own
36553         private exit-failure variables.
36554         * lib/xalloc.h (xalloc_exit_failure): Remove.
36555         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36556         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36557         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36558         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36559         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36560
36561 2003-07-20  Jim Meyering  <jim@meyering.net>
36562
36563         * modules/closeout (Depends-on): Add exitfail.
36564         Suggestion from Bruno Haible.
36565
36566 2003-07-19  Karl Berry  <karl@gnu.org>
36567
36568         * config/config.sub: update from prep.
36569
36570 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36571
36572         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36573         Remove.
36574         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36575         to test that it can stand by itself.  Include "exitfail.h".
36576         Clients should set exit_failure instead.
36577         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36578
36579 2003-07-18  Bruno Haible  <bruno@clisp.org>
36580
36581         * modules/getndelim2: New file.
36582         * modules/getline: Share files with module getndelim2.
36583         * modules/getnline: Depend on getndelim2 instead of sharing files with
36584         it. Add getnline.c to lib_SOURCES.
36585         * MODULES.html.sh (func_all_modules): Add getndelim2.
36586
36587 2003-07-18  Bruno Haible  <bruno@clisp.org>
36588
36589         * m4/getndelim2.m4: New file.
36590         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36591         invoke gl_PREREQ_GETNDELIM2.
36592         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36593         gl_PREREQ_GETNDELIM2.
36594         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36595         gl_GETNDELIM2.
36596
36597 2003-07-18  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/getndelim2.h: New file.
36600         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36601         getndelim2.h.
36602         (getndelim2): Make non-static. Change return type to ssize_t.
36603         * lib/getline.h: Change argument names.
36604         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36605         * lib/getnline.c: Include getndelim2.h.
36606
36607 2003-07-18  Andreas Schwab  <schwab@suse.de>
36608
36609         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36610
36611 2003-07-17  Karl Berry  <karl@gnu.org>
36612
36613         * config/config.sub: update from prep.
36614
36615 2003-07-17  Bruno Haible  <bruno@clisp.org>
36616
36617         * modules/getnline: New file.
36618         * modules/getline: Add lib/getndelim2.c to source file list.
36619         * MODULES.html.sh (func_all_modules): Add getnline.
36620
36621 2003-07-17  Bruno Haible  <bruno@clisp.org>
36622
36623         * m4/getnline.m4: New file.
36624
36625 2003-07-17  Bruno Haible  <bruno@clisp.org>
36626
36627         * m4/Makefile.am.in: Remove file.
36628         * m4/Makefile.am: Remove file.
36629         * m4/Makefile.in: Remove file.
36630
36631 2003-07-17  Bruno Haible  <bruno@clisp.org>
36632
36633         * lib/getnline.h: New file.
36634         * lib/getnline.c: New file.
36635         * lib/getndelim2.c: New file, extracted from getline.c.
36636         (getndelim2): Renamed from getdelim2, with added nmax argument.
36637         * lib/getline.c: Include getndelim2.c.
36638         (getdelim2): Moved out to getndelim2.c.
36639         (getline, getdelim): Update.
36640
36641 2003-07-17  Bruno Haible  <bruno@clisp.org>
36642
36643         * lib/Makefile.am: Remove file.
36644         * lib/Makefile.in: Remove file.
36645
36646 2003-07-17  Bruno Haible  <bruno@clisp.org>
36647
36648         * configure.in: Remove file.
36649         * Makefile.in: Remove file.
36650
36651 2003-07-17  Bruno Haible  <bruno@clisp.org>
36652
36653         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36654
36655 2003-07-16  Karl Berry  <karl@gnu.org>
36656
36657         * config/srclist-update: was running fixlicense twice, which caused
36658                 texinfo.tex to be nullified for some reason.  Simplify,
36659                 $gplsrc is no longer needed as far as I can see?
36660
36661 2003-07-16  Jim Meyering  <jim@meyering.net>
36662
36663         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36664
36665 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36666
36667         * config/srclist.txt: Get the following files from gettext-runtime/intl
36668         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36669         ref-del.sin.  From Bruno Haible.
36670         * config/srclist-update (fixfile): Change grep pattern again, since the
36671         previous fix didn't work (there was another trailing $).  Use
36672         '[$]' to escape the $s.
36673
36674 2003-07-15  Karl Berry  <karl@gnu.org>
36675
36676         * lib/vasnprintf.c: update from gettext.
36677
36678 2003-07-15  Karl Berry  <karl@gnu.org>
36679
36680         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36681         gets expanded when surrounded by '$'.
36682
36683 2003-07-15  Jim Meyering  <jim@meyering.net>
36684
36685         * modules/save-cwd: Don't depend on error.  From Derek Price.
36686
36687 2003-07-15  Jim Meyering  <jim@meyering.net>
36688
36689         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36690
36691 2003-07-14  Simon Josefsson  <jas@extundo.com>
36692
36693         * modules/mempcpy: New file.
36694         * MODULES.html.sh (func_all_modules): Add mempcpy.
36695
36696 2003-07-14  Simon Josefsson  <jas@extundo.com>
36697
36698         * m4/mempcpy.m4: New file.
36699
36700 2003-07-14  Simon Josefsson  <jas@extundo.com>
36701
36702         * lib/mempcpy.h: New file.
36703         * lib/mempcpy.c: New file.
36704
36705 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36706
36707         * modules/getdate, modules/posixtm: Depend on mktime.
36708
36709 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36710
36711         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36712         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36713         unicodeio.c, unicodeio.h, unlocked-io.h:
36714         Switch from LGPL to GPL.
36715
36716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36717
36718         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36719         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36720         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36721         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36722         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36723         updated automatically by ../config/srclist-update.  This changes
36724         their license from LPGL to GPL.
36725
36726 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36727
36728         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36729         assumed to refer to the root of the most recent stable gettext version.
36730         * config/srclistvars.sh: Add defaults for eggert.
36731         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36732         Match "This program" as well as "The program".  This is needed
36733         for gettext.
36734
36735 2003-07-14  Jim Meyering  <jim@meyering.net>
36736
36737         Don't emit diagnostics.  Let callers do that.
36738         * lib/save-cwd.c: Don't include "error.h".
36739         (save_cwd): Don't call error.  Ensure that errno is valid
36740         when returning nonzero.
36741
36742         * lib/save-cwd.h (restore_cwd): Update prototype.
36743         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36744         Simplify.  Don't call error upon failure.  Let callers do that.
36745         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36746         when auditing is enabled.  But don't bother updating the #if.
36747
36748 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36749
36750         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36751         it breaks C++ compilation.
36752         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36753
36754 2003-07-10  Simon Josefsson  <jas@extundo.com>
36755
36756         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36757
36758 2003-07-10  Jim Meyering  <jim@meyering.net>
36759
36760         * m4/clock_time.m4: Remove trailing blank.
36761         * m4/intmax_t.m4: Likewise.
36762
36763 2003-07-10  Jim Meyering  <jim@meyering.net>
36764
36765         * lib/vasnprintf.c: Remove trailing blanks.
36766         Make cpp indentation consistent.
36767
36768 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36769
36770         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36771         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36772         Switch from LGPL to GPL.
36773
36774 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36775
36776         * config/srclist.txt: Sort sublists.  Add
36777         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36778         that differ from gnulib for one reason or another; we'd like this list
36779         to be smaller but for now let's document what we have.
36780
36781 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36782
36783         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36784         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36785         and sweeter "eval x=$x".
36786         * config/srclist.txt: Get lib/argp* from glibc.
36787
36788 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36789
36790         * lib/mktime.c: Fix some boundary cases and remove need for floating
36791         point.
36792
36793         Issue a compile-time diagnostic if time_t is floating point, or if
36794         two's complement arithmetic is not in effect, or if arithmetic
36795         right shift does not propagate the sign.  These assumptions were
36796         all in the original code but they weren't checked.
36797
36798         (TIME_T_MIDPOINT, verify): New macros.
36799         (__isleap): Remove; it has integer overflow problems.
36800         (leapyear): New function, without those problems.
36801         (ydhms_tm_diff): Remove; splitting into two parts.
36802         (ydhms_diff): New function, containing the arithmetic part of
36803         the old ydhms_tm_diff function.  Issue a compile-time
36804         diagnostic if we are not using C99 integer division.
36805         Avoid casts when possible.
36806         (guess_time_tm): New function, containing the checking part of
36807         the old ydhms_tm_diff function.  Return the new value, rather than
36808         the difference between it and the old.  Accept a new argument T
36809         so that *T specifies the old value.  Check for overflow in the result.
36810
36811         (__mktime_internal): Use a time_t offset, not a long int offset.
36812         This undoes the 2003-06-04 change, which is no longer needed now
36813         that we have better overflow checking.
36814         (localtime_offset): Likewise.
36815
36816         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36817         and long are 64-bit but int is only 32-bit.
36818         (ydhms_diff): Use long int to store year1 and yday1.
36819         Issue a compile-time diagnostic if long int is not wide enough.
36820
36821         (__mktime_internal): Use long int to store adjusted year and yday.
36822         Use plain C rather than preprocessor commands, if that doesn't
36823         affect efficiency.
36824         Check for overflow (and try to repair) after each probe
36825         rather than checking only at the very end.  This avoids some bugs
36826         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36827         does not equal GMT offset at maximum time).
36828         Use integer to check for overflow rather than floating point; this
36829         is more portable to non-IEEE hosts, and is a tad faster.
36830         When we detect that we are oscillating between two values,
36831         don't check whether tm_isdst has the requested value, since
36832         we already know the answer.  When tm_isdst has the wrong value,
36833         use a different heuristic to find the right one, based on the
36834         extreme values actually observed in practice in tz2003a,
36835         rather than the (overly optimistic) "previous 3 calendar quarters".
36836
36837         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36838         "T const" to accommodate glibc style.
36839         (check_result): Use less-confusing report format.  "long" -> "long int.
36840         (main): Likewise.
36841         Don't loop if the iteration overflows time_t.
36842         Allow a negative step in the iteration.
36843
36844 2003-07-06  Karl Berry  <karl@gnu.org>
36845
36846         * config/depcomp: update from automake.
36847         * config/config.sub: update from prep.
36848
36849 2003-07-03  Karl Berry  <karl@gnu.org>
36850
36851         * config/config.guess: update from prep.
36852
36853 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36854
36855         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36856         xreadlink.c now includes it unconditionally.
36857
36858 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36859
36860         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36861         having it depend on HAVE_SYS_TYPES_H.
36862
36863 2003-07-01  Bruno Haible  <bruno@clisp.org>
36864
36865         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36866         <sys/types.h> should be sufficient.
36867         Reported by Paul Eggert.
36868
36869 2003-06-26  Karl Berry  <karl@gnu.org>
36870
36871         * config/depcomp: update from automake.
36872
36873 2003-06-26  Bruno Haible  <bruno@clisp.org>
36874
36875         * modules/human: Depend on module stdbool.
36876
36877 2003-06-25  Bruno Haible  <bruno@clisp.org>
36878
36879         * modules/readlink: New file.
36880         * modules/xreadlink: Depend on it.
36881         * MODULES.html.sh (func_all_modules): Add readlink.
36882
36883 2003-06-25  Bruno Haible  <bruno@clisp.org>
36884
36885         * m4/readlink.m4: New file.
36886
36887 2003-06-25  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/readlink.c: New file.
36890
36891 2003-06-22  Karl Berry  <karl@gnu.org>
36892
36893         * config/srclist.txt: update mkinstalldirs from automake.
36894         * config/mkinstalldirs: update.
36895
36896 2003-06-22  Bruno Haible  <bruno@clisp.org>
36897
36898         Portability to mingw32.
36899         * m4/ssize_t.m4: New file, from GNU gettext.
36900         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36901         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36902
36903 2003-06-22  Bruno Haible  <bruno@clisp.org>
36904
36905         * modules/safe-read: Add m4/ssize_t.m4.
36906         * modules/xreadlink: Add m4/ssize_t.m4.
36907
36908 2003-06-20  Bruno Haible  <bruno@clisp.org>
36909
36910         Assume C89, so PARAMS isn't needed.
36911         * lib/unicodeio.h (PARAMS): Remove.
36912         * lib/unicodeio.c: Don't use PARAMS.
36913
36914 2003-06-18  Karl Berry  <karl@gnu.org>
36915
36916         * config/config.{guess,sub}: update from prep.
36917
36918 2003-06-18  Jim Meyering  <jim@meyering.net>
36919
36920         Merge changes from coreutils.
36921         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36922         Remove explicit declarations of xmalloc and realloc.
36923         Include xalloc.h.
36924         (read_utmp): Remove anachronistic cast of xmalloc.
36925
36926 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36927
36928         Assume C89, so PARAMS isn't needed.
36929         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36930         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36931         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36932         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36933         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36934         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36935         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36936         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36937         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36938         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36939         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36940         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36941         no longer needed. Anyway, config.h should always be included before any
36942         other file.
36943
36944 2003-06-11  Simon Josefsson  <jas@extundo.com>
36945
36946         * modules/sysexits: New file.
36947         * MODULES.html.sh (func_all_modules): Add sysexits.
36948
36949 2003-06-11  Simon Josefsson  <jas@extundo.com>
36950
36951         * lib/sysexit_.h: New file.
36952
36953 2003-06-11  Derek Price  <derek@ximbiot.com>
36954
36955         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36956         necessary.
36957
36958 2003-06-11  Bruno Haible  <bruno@clisp.org>
36959
36960         * m4/sysexits.m4: New file.
36961
36962 2003-06-10  Simon Josefsson  <jas@extundo.com>
36963
36964         * lib/argp.h: New file, from glibc.
36965         * lib/argp-ba.c: New file, from glibc.
36966         * lib/argp-eexst.c: New file, from glibc.
36967         * lib/argp-fmtstream.c: New file, from glibc.
36968         * lib/argp-fmtstream.h: New file, from glibc.
36969         * lib/argp-fs-xinl.c: New file, from glibc.
36970         * lib/argp-help.c: New file, from glibc.
36971         * lib/argp-namefrob.h: New file, from glibc.
36972         * lib/argp-parse.c: New file, from glibc.
36973         * lib/argp-pv.c: New file, from glibc.
36974         * lib/argp-pvh.c: New file, from glibc.
36975         * lib/argp-xinl.c: New file, from glibc.
36976
36977 2003-06-10  Simon Josefsson  <jas@extundo.com>
36978
36979         * modules/strchrnul: New file.
36980
36981 2003-06-10  Simon Josefsson  <jas@extundo.com>
36982
36983         * modules/argp: New file.
36984
36985 2003-06-10  Simon Josefsson  <jas@extundo.com>
36986
36987         * m4/strchrnul.m4: New file.
36988
36989 2003-06-10  Simon Josefsson  <jas@extundo.com>
36990
36991         * lib/strchrnul.h: New file.
36992         * lib/strchrnul.c: New file.
36993
36994 2003-06-10  Bruno Haible  <bruno@clisp.org>
36995
36996         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36997
36998 2003-06-07  Karl Berry  <karl@gnu.org>
36999
37000         * config/config.{guess,sub}: update from prep.
37001
37002 2003-06-07  Jim Meyering  <jim@meyering.net>
37003
37004         * modules/strtod: Use $(...) notation, not @...@ for
37005         AC_REPLACE'd variables.
37006         * modules/localcharset: Likewise.
37007
37008 2003-06-07  Jim Meyering  <jim@meyering.net>
37009
37010         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37011         in place of my name in the copyright comment.
37012         Remove definition and uses of __P.
37013
37014         From coreutils.
37015         * lib/stat.c: Don't declare xmalloc explicitly.
37016         Instead, include "xalloc.h".
37017         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37018         xrealloc, and xcalloc return values.
37019         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37020         Improve comment.
37021         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37022
37023 2003-06-07  Bruno Haible  <bruno@clisp.org>
37024
37025         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37026         avoid AC_CONFIG_LINKS.
37027         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37028         fnmatch.h, to avoid AC_CONFIG_LINKS.
37029         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37030
37031 2003-06-07  Bruno Haible  <bruno@clisp.org>
37032
37033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37034         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37035         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37036         directory.
37037         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
37038         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37039         directory.
37040
37041 2003-06-06  Jim Meyering  <jim@meyering.net>
37042
37043         Merge from coreutils.
37044         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
37045         Consolidate declarations and initializations of *_base* locals.
37046
37047         Merge from coreutils.
37048         This avoids a core dump on systems without GNU putenv,
37049         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
37050         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
37051         (unsetenv): New static function, from GNU libc.
37052         (rpl_putenv): Use it.
37053
37054         * lib/modechange.c: Remove trailing blanks.
37055
37056         Merge from coreutils.
37057         * lib/fsusage.c: Remove declaration of statfs.
37058         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37059
37060         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37061
37062 2003-06-06  Jim Meyering  <jim@meyering.net>
37063
37064         * lib/stdbool_.h: Renamed from stdbool.h.in.
37065
37066 2003-06-06  Jim Meyering  <jim@meyering.net>
37067             Bruno Haible  <bruno@clisp.org>
37068
37069         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37070         Adjust Makefile.am snippet not to redirect directly to target.
37071         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37072
37073 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37074
37075         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37076         mismatch, look in future quarters as well as past.  This fixes a
37077         bug when processing fall-backwards gaps immediately after a long
37078         period of daylight-saving time.
37079
37080         * lib/mktime.c: Assume freestanding C89 or better.
37081         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37082         (__P): Remove; not used.
37083         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37084         (mktime, not_equal_tm, print_tm, check_result,
37085         main): Use prototypes.  Use const * where appropriate.
37086         (main): Fix typo in testing code that uncovered by above changes.
37087         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37088
37089 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37090
37091         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37092         locale.h, localeconv.  This merges changes from coreutils.
37093
37094         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37095         It can be removed after the next Autoconf is released.
37096         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37097         needed.
37098
37099 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37100
37101         * lib/mktime.c: Fix Debian bug 177940
37102         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37103         (localtime_offset): Now long int, not time_t, because we want it
37104         to be guaranteed to be signed.  All uses changed.
37105         (__mktime_internal): If overflow would occur when adding offset,
37106         don't add it.
37107
37108         Merge 'human' changes from coreutils.  Rewrite to support
37109         locale-specific notations like thousands separators.
37110         * lib/human.c: Simplify authorship notice.
37111         Include human.h immediately after config.h.
37112         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37113         <limits.h>: Do not include, since human.h does.
37114         (SIZE_MAX, UINTMAX_MAX): New macros.
37115         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37116         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37117         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37118         (power_letter): Renamed from suffixes.
37119         (generate_suffix_backwards): Remove.
37120         (adjust_value): Now takes int style (because of human.h changes)
37121         and long double value (for greater precision on some platforms).
37122         (group_number): New function.
37123         (human_readable): Use it.  Use integer options, not enum.
37124         Put the options before the sizes in the arg list.
37125         Support all the new options.
37126         The old human_readable function has been removed;
37127         use inttostr.h instead.
37128         (human_readable, default_block_size, humblock):
37129         Use uintmax_t, not int, for block sizes.
37130         (human_readable_inexact, block_size_types): Remove.
37131         (block_size_opts): New constant.
37132         (human_options): Renamed from human_block_size, with new signature
37133         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37134         * lib/human.h: Add copyright and authorship notice.
37135         Include <limits.h> and <stdbool.h> unconditionally.
37136         (PARAMS): Remove.  All uses removed.
37137         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37138         (enum human_inexact_style): Remove tag; now a nameless enum.
37139         (human_floor, human_ceiling, human_round_to_even): Now have
37140         values 2, 0, 1 rather than -1, 1, 0.
37141         (human_group_digits, human_suppress_point_zero, human_autoscale,
37142         human_base_1024, human_SI, human_B): New constants.
37143         (human_readable_inexact, human_block_size): Remove.
37144         (human_readable): Size args are now uintmax_t, not int.
37145         (human_options): New decl.
37146
37147         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37148         unnecessary now that we assume C89 or better.  This change
37149         imported from coreutils.
37150
37151         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37152         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37153         in the 2003-05-30 sync from glibc.
37154
37155         .h files should stand alone, but we shouldn't include <sys/types.h>
37156         if we can get away with just <stddef.h>.
37157
37158         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37159         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37160         rather than <sys/types.h>, as we merely need size_t.
37161         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37162         to get size_t.
37163         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37164         Include <stdio.h>, to get FILE.
37165         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37166         memcasecmp.h has included <stddef.h> and all we need is size_t.
37167         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37168         our interface, instead of including <sys/types.h>
37169
37170 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37171
37172         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37173         now, as glibc mktime is buggy on non-glibc systems.
37174
37175 2003-06-03  Karl Berry  <karl@gnu.org>
37176
37177         * config/config.sub: update from prep.
37178
37179 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37180
37181         [from coreutils]
37182         Fix some minor time-related bugs with POSIX time arguments.
37183         Some valid time stamps were being rejected (notably -1, and
37184         time stamps before 1900 on 64-bit hosts).  And some invalid
37185         time stamps were being accepted, e.g. September 31.
37186
37187         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37188         that we can return (time_t) -1 successfully.
37189         * lib/posixtm.c: Likewise.
37190         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37191         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37192         (t): Remove static var.
37193         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37194         of static var.  All uses changed.
37195         (year): Do not reject years before 1900; they can occur with
37196         64-bit time_t.
37197         (posix_time_parse): Do not check for out-of-range components;
37198         that is now the caller's responsibility, since our checks were
37199         only approximations.
37200         (posixtime): Use mktime to check for out-of-range components,
37201         since it knows them exactly.
37202         If mktime returns (time_t) -1, check whether an error actually occurred
37203         by invoking localtime on -1.
37204         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37205         posixtime failures better.
37206         Improve the test data (in comments only).
37207
37208 2003-06-02  Karl Berry  <karl@gnu.org>
37209
37210         * config/mkinstalldirs (version): new variable.
37211         (--version): new option.
37212         (usage): improve message.
37213
37214 2003-05-30  Karl Berry  <karl@gnu.org>
37215
37216         * lib/mktime.c: update from libc.
37217
37218 2003-05-30  Bruno Haible  <bruno@clisp.org>
37219
37220         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37221         * config/config.rpath: Upgrade to gettext-0.12.1.
37222
37223 2003-05-30  Bruno Haible  <bruno@clisp.org>
37224
37225         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37226         * m4/nls.m4: New file, from gettext-0.12.1.
37227         * m4/po.m4: New file, from gettext-0.12.1.
37228         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37229
37230 2003-05-30  Bruno Haible  <bruno@clisp.org>
37231
37232         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37233         * lib/localcharset.h: Likewise.
37234         * lib/localcharset.c: Likewise.
37235
37236 2003-05-29  Karl Berry  <karl@gnu.org>
37237
37238         * config/config.rpath: update from gettext.
37239
37240 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37241
37242         Assume the headers required for C89 freestanding compilers.
37243         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37244         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37245         * m4/human.m4 (gl_HUMAN): Likewise.
37246         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37247         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37248         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37249         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37250         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37251         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37252
37253 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37254
37255         Assume the headers required for C89 freestanding compilers.
37256         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37257         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37258         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37259         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37260         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37261         define, since <limits.h> is guaranteed to do that.
37262         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37263         * lib/exclude.c: Include <stdbool.h> unconditionally.
37264         * lib/tempname.c: Include <stddef.h> unconditionally.
37265         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37266         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37267         <stddef.h> does that.
37268         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37269         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37270         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37271         needed.
37272         * lib/xstrtol.c: Likewise.
37273         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37274         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37275
37276         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37277         warnings on some platforms.
37278
37279         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37280         arbitrarily.
37281
37282 2003-05-26  Jim Meyering  <jim@meyering.net>
37283
37284         Merge in a change from coreutils:
37285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37286         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37287         that condition, rather than `-1' which is slightly misleading.
37288         Change the name of the cache variable to have the gl_ prefix.
37289         Prompted by a patch from Richard Dawe for DJGPP.
37290
37291 2003-05-24  Karl Berry  <karl@gnu.org>
37292
37293         * config/config.guess: update from prep.
37294
37295 2003-05-22  Karl Berry  <karl@gnu.org>
37296
37297         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37298
37299 2003-05-20  Karl Berry  <karl@gnu.org>
37300
37301         * config/config.guess: update from prep.
37302
37303 2003-05-18  Karl Berry  <karl@gnu.org>
37304
37305         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37306         might actually be set by the user.
37307
37308         * config/depcomp, install-sh, mdate-sh: update from automake.
37309
37310 2003-05-17  Bruno Haible  <bruno@clisp.org>
37311
37312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37313         invalid expansion for AC_EGREP_CPP.
37314         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37315         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37316         Suggested by Akim Demaille <akim@epita.fr> in
37317         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37318
37319 2003-05-12  Jim Meyering  <jim@meyering.net>
37320
37321         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37322         the space-padded-by-default conversion specifiers, %e, %k, %l.
37323
37324 2003-05-12  Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37327         the string is longer than 4 KB.
37328
37329 2003-05-11  Karl Berry  <karl@gnu.org>
37330
37331         * config/config.{guess,sub}: update from prep.
37332
37333 2003-05-09  Bruno Haible  <bruno@clisp.org>
37334
37335         * modules/error: Add m4/strerror_r.m4 to file list.
37336
37337 2003-05-03  Bruno Haible  <bruno@clisp.org>
37338
37339         Upgrade to Unicode-4.0.
37340         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37341         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37342         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37343         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37344         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37345         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37346         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37347         Change width of U+E0100..U+E01EF from 1 to 0.
37348
37349 2003-04-25  Jim Meyering  <jim@meyering.net>
37350
37351         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37352         of type size_t, not int.
37353
37354 2003-04-25  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/copy-file.c: Include <stddef.h>, for size_t.
37357
37358 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37359
37360         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37361         code which expansion is under static control.  Patch imported from
37362         Akim Demaille's patch to Bison; see
37363         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37364
37365 2003-04-14  Bruno Haible  <bruno@clisp.org>
37366
37367         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37368
37369 2003-04-11  Jim Meyering  <jim@meyering.net>
37370
37371         Merge changes from Coreutils.
37372
37373         2003-03-22  Jim Meyering  <jim@meyering.net>
37374
37375         * lib/strftime.c (widen): Cast alloca return value to proper type.
37376
37377         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37378
37379         From GNU libc.
37380         * lib/strftime.c (my_strftime): Handle very large width
37381         specifications for numeric values correctly.  Improve checks for
37382         overflow.
37383
37384         2003-01-19  Jim Meyering  <jim@meyering.net>
37385
37386         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37387         definitions.
37388         (nl_get_alt_digit) [! defined my_strftime]: Define.
37389         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37390         _nl_get_alt_digit and _nl_get_walt_digit.
37391
37392         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37393         libc. These changes have no effect outside of _LIBC.
37394
37395 2003-04-10  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/findprog: New file.
37398         * MODULES.html.sh (func_all_modules): Add it.
37399
37400 2003-04-10  Bruno Haible  <bruno@clisp.org>
37401
37402         * m4/findprog.m4: New file.
37403         * m4/eaccess.m4: New file.
37404
37405 2003-04-10  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/findprog.h: New file, from GNU gettext.
37408         * lib/findprog.c: New file, from GNU gettext.
37409
37410 2003-04-05  Jim Meyering  <jim@meyering.net>
37411
37412         Merge changes from Coreutils.
37413
37414         * lib/exclude.h (PARAMS): Remove definition and uses.
37415         * lib/exclude.c: Remove uses of `PARAMS'.
37416
37417         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37418         Add test-cases for DOS filenames. Declare program_name.
37419         (main): Set up program_name.  Patch by Rich Dawe.
37420
37421         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37422         error from mntctl.
37423         Use mntctl's return value to drive the entry-processing loop, since
37424         we can't rely on the value of the vmt_length member in the last
37425         entry.  On some systems doing so could result in exhausting
37426         virtual memory.  Based in part on a patch from Mike Jetzer.
37427
37428 2003-04-04  Bruno Haible  <bruno@clisp.org>
37429
37430         * modules/linebreak: New file.
37431         * MODULES.html.sh (func_all_modules): Add it.
37432
37433 2003-04-04  Bruno Haible  <bruno@clisp.org>
37434
37435         * m4/linebreak.m4: New file.
37436
37437 2003-04-04  Bruno Haible  <bruno@clisp.org>
37438
37439         * lib/linebreak.h: New file, from GNU gettext.
37440         * lib/linebreak.c: New file, from GNU gettext with slight
37441         modifications.
37442         * lib/lbrkprop.h: New file, from GNU gettext.
37443
37444 2003-04-03  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/utf8-ucs4: New file.
37447         * modules/utf16-ucs4: New file.
37448         * modules/ucs4-utf8: New file.
37449         * modules/ucs4-utf16: New file.
37450         * MODULES.html.sh (func_all_modules): Add them.
37451
37452 2003-04-03  Bruno Haible  <bruno@clisp.org>
37453
37454         * m4/utf-ucs4.m4: New file.
37455         * m4/ucs4-utf.m4: New file.
37456
37457 2003-04-03  Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/utf8-ucs4.h: New file, from GNU gettext.
37460         * lib/utf16-ucs4.h: New file, from GNU gettext.
37461         * lib/ucs4-utf8.h: New file, from GNU gettext.
37462         * lib/ucs4-utf16.h: New file, from GNU gettext.
37463
37464 2003-04-02  Bruno Haible  <bruno@clisp.org>
37465
37466         * modules/binary-io: New file.
37467         * MODULES.html.sh (func_all_modules): Add it.
37468
37469 2003-04-02  Bruno Haible  <bruno@clisp.org>
37470
37471         * lib/binary-io.h: New file, from GNU gettext.
37472
37473 2003-04-01  Bruno Haible  <bruno@clisp.org>
37474
37475         * modules/pathname: New file.
37476         * MODULES.html.sh (func_all_modules): Add it.
37477
37478 2003-04-01  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/pathname.h: New file, from GNU gettext.
37481         * lib/concatpath.c: New file, from GNU gettext.
37482
37483 2003-03-30  Bruno Haible  <bruno@clisp.org>
37484
37485         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37486
37487 2003-03-30  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37490         function chown() doesn't exist.
37491
37492 2003-03-28  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/copy-file: New file.
37495         * MODULES.html.sh (func_all_modules): Add it.
37496
37497 2003-03-28  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/copy-file.m4: New file.
37500
37501 2003-03-28  Bruno Haible  <bruno@clisp.org>
37502
37503         * lib/copy-file.h: New file, from GNU gettext.
37504         * lib/copy-file.c: New file, from GNU gettext.
37505
37506 2003-03-18  Jim Meyering  <jim@meyering.net>
37507
37508         * lib/quote.c (quote_n): Fix typo in comment.
37509
37510 2003-03-18  Bruno Haible  <bruno@clisp.org>
37511
37512         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37513         checking.
37514         * m4/onceonly_2_57.m4: Likewise.
37515
37516 2003-03-17  Bruno Haible  <bruno@clisp.org>
37517
37518         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37519         (m4_quote): Remove macro.
37520         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37521
37522 2003-03-14  Jim Meyering  <jim@meyering.net>
37523
37524         Merge changes from Coreutils.
37525         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37526         to be const, in order to avoid warnings.
37527         (obstack_room): Likewise.
37528         (obstack_empty_p): Likewise.
37529
37530 2003-03-14  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37533         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37534
37535 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37536
37537         Merge changes from Bison.
37538         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37539         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37540         when compiling Bison 1.875's `bitset bset = obstack_alloc
37541         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37542         * lib/hash.c: Include <stdbool.h> unconditionally.
37543
37544 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37545
37546         * m4/onceonly.m4 (m4_quote): New macro.
37547         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37548         Quote AC_FOREACH variable-expansions properly.
37549
37550 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37551
37552         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37553
37554 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37555
37556         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37557         Reported by Bruce Becker; see:
37558         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37559
37560 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37561             Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37564         Reported by John Hughes, see
37565         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37566
37567 2003-02-20  Bruno Haible  <bruno@clisp.org>
37568
37569         * MODULES.html.sh (func_all_modules): Add poll.
37570
37571 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37572
37573         * modules/poll: New file.
37574
37575 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37576
37577         * lib/poll_.h: New file.
37578         * lib/poll.c: New file.
37579
37580 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37581
37582         * m4/poll.m4: New file.
37583
37584 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37585
37586         * modules/mathl: New file.
37587
37588 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37589
37590         * lib/mathl.h: New file.
37591         * lib/acosl.c: New file.
37592         * lib/asinl.c: New file.
37593         * lib/atanl.c: New file.
37594         * lib/ceill.c: New file.
37595         * lib/cosl.c: New file.
37596         * lib/expl.c: New file.
37597         * lib/floorl.c: New file.
37598         * lib/frexpl.c: New file.
37599         * lib/ldexpl.c: New file.
37600         * lib/logl.c: New file.
37601         * lib/sincosl.c: New file.
37602         * lib/sinl.c: New file.
37603         * lib/sqrtl.c: New file.
37604         * lib/tanl.c: New file.
37605         * lib/trigl.c: New file.
37606         * lib/trigl.h: New file.
37607
37608 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37609
37610         * m4/mathl.m4: New file.
37611
37612 2003-02-18  Bruno Haible  <bruno@clisp.org>
37613
37614         * MODULES.html.sh (func_all_modules): Add mathl.
37615
37616 2003-02-17  Bruno Haible  <bruno@clisp.org>
37617
37618         * modules/mkdtemp: New module.
37619         * MODULES.html.sh (func_all_modules): Add it.
37620
37621 2003-02-17  Bruno Haible  <bruno@clisp.org>
37622
37623         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37624
37625 2003-02-17  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/mkdtemp.h: New file, from GNU gettext.
37628         * lib/mkdtemp.c: New file, from GNU gettext.
37629
37630 2003-02-02  Jim Meyering  <jim@meyering.net>
37631
37632         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37633         e.g. glibc-2.2.93.
37634
37635 2003-01-31  Bruno Haible  <bruno@clisp.org>
37636
37637         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37638         'rpl_rename'.
37639         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37640         'rpl_strnlen'.
37641         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37642         'rpl_strtod'.
37643         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37644         'rpl_utime'.
37645
37646 2003-01-31  Bruno Haible  <bruno@clisp.org>
37647
37648         * lib/rename.c: #undef rename before defining rpl_rename.
37649         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37650
37651 2003-01-30  Bruno Haible  <bruno@clisp.org>
37652
37653         * modules/vasnprintf, modules/vasprintf: New modules.
37654         * MODULES.html.sh (func_all_modules): Add them.
37655
37656 2003-01-30  Bruno Haible  <bruno@clisp.org>
37657
37658         * m4/signed.m4: New file, from GNU gettext.
37659         * m4/longdouble.m4: New file, from GNU gettext.
37660         * m4/wchar_t.m4: New file, from GNU gettext.
37661         * m4/wint_t.m4: New file, from GNU gettext.
37662         * m4/vasnprintf.m4: New file.
37663         * m4/vasprintf.m4: New file.
37664
37665 2003-01-30  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/printf-args.h: New file, from GNU gettext.
37668         * lib/printf-args.c: New file, from GNU gettext.
37669         * lib/printf-parse.h: New file, from GNU gettext.
37670         * lib/printf-parse.c: New file, from GNU gettext.
37671         * lib/vasnprintf.h: New file, from GNU gettext.
37672         * lib/vasnprintf.c: New file, from GNU gettext.
37673         * lib/asnprintf.c: New file, from GNU gettext.
37674         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37675         * lib/vasprintf.c: New file, from GNU gettext.
37676         * lib/asprintf.c: New file, from GNU gettext.
37677
37678 2003-01-29  Bruno Haible  <bruno@clisp.org>
37679
37680         * modules/stpncpy: New module.
37681         * MODULES.html.sh (func_all_modules): Add it.
37682
37683 2003-01-29  Bruno Haible  <bruno@clisp.org>
37684
37685         * m4/stpncpy.m4: New file.
37686
37687 2003-01-29  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37690         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37691
37692 2003-01-28  Bruno Haible  <bruno@clisp.org>
37693
37694         * modules/c-ctype: New module.
37695         * MODULES.html.sh (func_all_modules): Add it.
37696
37697 2003-01-28  Bruno Haible  <bruno@clisp.org>
37698
37699         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37700         Paul Eggert.
37701         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37702         Paul Eggert.
37703
37704 2003-01-27  Bruno Haible  <bruno@clisp.org>
37705
37706         * modules/xsetenv: New module.
37707         * MODULES.html.sh (func_all_modules): Add it.
37708
37709 2003-01-27  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/xsetenv.h: New file, from GNU gettext.
37712         * lib/xsetenv.c: New file, from GNU gettext.
37713
37714 2003-01-23  Jim Meyering  <jim@meyering.net>
37715
37716         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37717         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37718
37719 2003-01-23  Bruno Haible  <bruno@clisp.org>
37720
37721         * modules/minmax: New module.
37722         * MODULES.html.sh (func_all_modules): Add it.
37723
37724 2003-01-23  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37727         Eggert.
37728
37729 2003-01-22  Bruno Haible  <bruno@clisp.org>
37730
37731         * modules/exit: New module.
37732         * MODULES.html.sh (func_all_modules): Add it.
37733
37734 2003-01-22  Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/exit.h: New file, from GNU gettext.
37737
37738 2003-01-19  Bruno Haible  <bruno@clisp.org>
37739
37740         * gnulib-tool: Recognize option --extract-maintainer.
37741         (func_get_maintainer): New function.
37742         * modules/*: Add Maintainer entry.
37743
37744 2003-01-16  Jim Meyering  <jim@meyering.net>
37745
37746         * m4/regex.m4: The `regex' struct is both input and output.
37747         Initialize it before each use.  Patch by Tim Waugh.
37748
37749 2003-01-16  Bruno Haible  <bruno@clisp.org>
37750
37751         * MODULES.html.sh: Add a table of contents. Add the module name as
37752         leftmost column. Add hyperlinks.
37753
37754 2003-01-15  Bruno Haible  <bruno@clisp.org>
37755
37756         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37757
37758 2003-01-15  Bruno Haible  <bruno@clisp.org>
37759
37760         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37761         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37762         suffix.
37763
37764 2003-01-15  Bruno Haible  <bruno@clisp.org>
37765
37766         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37767
37768 2003-01-15  Bruno Haible  <bruno@clisp.org>
37769
37770         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37771         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37772
37773 2003-01-14  Jim Meyering  <jim@meyering.net>
37774
37775         * lib/same.c (same_name): Tweak a comment.
37776
37777 2003-01-14  Bruno Haible  <bruno@clisp.org>
37778
37779         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37780         when a string comparison is sufficient.
37781
37782 2003-01-14  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37785         'unsigned int'.
37786
37787 2003-01-14  Bruno Haible  <bruno@clisp.org>
37788
37789         * lib/hash-pjw.c: Add comment about low quality of this function.
37790
37791 2003-01-13  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/stpcpy: Distribute lib/stpcpy.h.
37794         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37795
37796 2003-01-13  Bruno Haible  <bruno@clisp.org>
37797
37798         * modules/*: Add a description.
37799         * modules/strpbrk: Fix Makefile.am snippet.
37800         * modules/strtoimax: Fix dependencies.
37801         * modules/strtoumax: Likewise.
37802
37803 2003-01-13  Bruno Haible  <bruno@clisp.org>
37804
37805         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37806         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37807         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37808
37809 2003-01-13  Bruno Haible  <bruno@clisp.org>
37810
37811         * gnulib-tool (func_create_testdir): Store config/* files in the main
37812         directory.
37813         * config.rpath: Move to ...
37814         * config/config.rpath: ... here.
37815         * modules/gettext: Contains config/config.rpath, not config.rpath.
37816         * modules/iconv: Likewise.
37817
37818 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37819
37820         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37821         to avoid collisions with libcurses and libreadline.
37822
37823         * m4/getstr.m4: Remove.
37824         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37825
37826 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37827
37828         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37829         to avoid collisions with libcurses and libreadline.
37830
37831         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37832         * lib/getstr.h, getstr.c: Remove.
37833         * lib/getline.c: Include "getline.h", to check interface.
37834         Move body of old getstr.c here: this defines MIN_CHUNK and
37835         declares getdelim2, which is renamed from getstr.
37836         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37837
37838         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37839         All uses changed.
37840         * lib/linebuffer.h: Likewise.
37841         (readline): Remove backward-compatibility macro.
37842
37843 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37844
37845         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37846         to avoid collisions with libcurses and libreadline.
37847         * getstr: Remove.
37848         * MODULES.html.sh: Remove getstr.
37849         * modules/getline: Depend on unlocked-io, not getstr.
37850
37851 2003-01-12  Jim Meyering  <jim@meyering.net>
37852
37853         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37854
37855 2003-01-10  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/alloca: Change Makefile.am requirements. Simplify Include
37858         requirements. Add lib/alloca_.h to file list.
37859
37860 2003-01-10  Bruno Haible  <bruno@clisp.org>
37861
37862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37863
37864 2003-01-10  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/alloca_.h: New file.
37867         * lib/getdate.y: Unconditionally include alloca.h.
37868         * lib/makepath.c: Likewise.
37869         * lib/setenv.c: Likewise.
37870         * lib/userspec.c: Likewise.
37871
37872 2003-01-09  Karl Berry  <karl@gnu.org>
37873
37874         * MODULES.html.sh: include `dirname $0` in PATH, to find
37875         gnulib-tool.
37876
37877 2003-01-09  Bruno Haible  <bruno@clisp.org>
37878
37879         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37880         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37881
37882 2003-01-09  Bruno Haible  <bruno@clisp.org>
37883
37884         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37885
37886 2003-01-09  Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/stdbool.h.in: New file.
37889
37890 2003-01-09  Bruno Haible  <bruno@clisp.org>
37891
37892         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37893         * MODULES.html.sh: Likewise.
37894
37895 2003-01-08  Jim Meyering  <jim@meyering.net>
37896
37897         * lib/full-write.c: Undefine and define-away `const' after inclusion
37898         of errno.h, not before.  Suggestion from Bruno Haible.
37899
37900 2003-01-08  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/full-read: Depend on full-write.
37903
37904 2003-01-08  Bruno Haible  <bruno@clisp.org>
37905
37906         * lib/safe-read.c: Include specification header first, to ensure its
37907         selfcontainedness.
37908         * lib/full-write.c: Likewise.
37909
37910 2003-01-07  Jim Meyering  <jim@meyering.net>
37911
37912         * lib/full-write.c: Rework so that it may serve to define full_read,
37913         too.
37914         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37915
37916 2003-01-07  Bruno Haible  <bruno@clisp.org>
37917
37918         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37919         <inttypes.h>.
37920         * lib/xstrtol.h: Likewise.
37921         * lib/xstrtoimax.c: Likewise.
37922         * lib/xstrtoumax.c: Likewise.
37923         * lib/human.h: Likewise.
37924
37925         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37926         on systems that have <inttypes.h> but not <stdint.h>.
37927
37928 2003-01-07  Bruno Haible  <bruno@clisp.org>
37929
37930         * MODULES.html.sh: Add copyright notice.
37931         (missed_files): Omit CVS directory entries.
37932         (func_module): Make it work with sed-3.02.
37933         * MODULES.txt: Remove file.
37934
37935 2003-01-06  Jim Meyering  <jim@meyering.net>
37936
37937         * lib/version-etc.c: Update year in translatable copyright string.
37938
37939 2003-01-03  Karl Berry  <karl@gnu.org>
37940
37941         * config/config.{guess,sub}: update from prep.
37942
37943 2003-01-02  Karl Berry  <karl@gnu.org>
37944
37945         * doc/COPYING.DOC: belatedly updated to 1.2.
37946
37947 2003-01-01  Karl Berry  <karl@gnu.org>
37948
37949         * gnulib-tool (func_verify_module): report module name $module in
37950         error message, not $1.
37951         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37952         be created, only if it doesn't exist.
37953         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37954
37955 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37956
37957         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37958
37959 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37960
37961         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37962         memcmp if strcoll doesn't work.
37963
37964 2002-12-31  Bruno Haible  <bruno@clisp.org>
37965
37966         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37967         nonempty.
37968
37969 2002-12-31  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/memcoll.c (STRCOLL): New macro.
37972         (memcoll): Use it.
37973
37974 2002-12-31  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/localcharset.h: New file.
37977         * lib/localcharset.c: Include it.
37978         * lib/unicodeio.c: Likewise.
37979
37980 2002-12-31  Bruno Haible  <bruno@clisp.org>
37981
37982         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37983         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37984
37985 2002-12-31  Bruno Haible  <bruno@clisp.org>
37986
37987         * lib/getline.h: Include <stddef.h>, for size_t.
37988
37989         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37990         * lib/unicodeio.c: Don't include <stddef.h>.
37991
37992 2002-12-31  Bruno Haible  <bruno@clisp.org>
37993
37994         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37995         HAVE_TM_ZONE.
37996
37997 2002-12-24  Karl Berry  <karl@gnu.org>
37998
37999         * config/config.guess: update from prep.
38000
38001 2002-12-24  Bruno Haible  <bruno@clisp.org>
38002
38003         General infrasructure.
38004         * m4/README: Rewritten.
38005         * m4/onceonly.m4: New file.
38006         * m4/onceonly_2_57.m4: New file.
38007
38008         Module atexit.
38009         * m4/atexit.m4: New file.
38010
38011         Module strtod.
38012         * m4/strtod.m4: New file.
38013
38014         Module strtol.
38015         * m4/strtol.m4: New file.
38016
38017         Module strtoul.
38018         * m4/strtoul.m4: New file.
38019
38020         Module memchr.
38021         * m4/memchr.m4: New file.
38022
38023         Module memcmp.
38024         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38025         (jm_FUNC_MEMCMP): Invoke it.
38026
38027         Module memcpy.
38028         * m4/memcpy.m4: New file.
38029
38030         Module memmove.
38031         * m4/memmove.m4: New file.
38032
38033         Module memset.
38034         * m4/memset.m4: New file.
38035
38036         Module strcspn.
38037         * m4/strcspn.m4: New file.
38038
38039         Module strpbrk.
38040         * m4/strpbrk.m4: New file.
38041
38042         Module strstr.
38043         * m4/strstr.m4: New file.
38044
38045         Module strerror.
38046         * m4/strerror.m4: New file.
38047
38048         Module mktime.
38049         * m4/mktime.m4: Renamed from jm-mktime.m4.
38050         (gl_PREREQ_MKTIME): New macro.
38051         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
38052
38053         Module malloc.
38054         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
38055         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
38056         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
38057
38058         Module realloc.
38059         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38060         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38061         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38062
38063         Module strftime.
38064         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38065         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38066         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38067         gl_TM_GMTOFF.
38068         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38069
38070         Module xalloc.
38071         * m4/xalloc.m4: New file.
38072
38073         Module alloca.
38074         * m4/alloca.m4: New file.
38075
38076         Module putenv.
38077         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38078         (jm_FUNC_PUTENV): Invoke it.
38079
38080         Module setenv.
38081         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38082         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38083         when invoked twice.
38084         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38085         gt_FUNC_SETENV.
38086
38087         Module memrchr.
38088         * m4/memrchr.m4: New file.
38089
38090         Module stpcpy.
38091         * m4/stpcpy.m4: New file.
38092
38093         Module strcase.
38094         * m4/strcase.m4: New file.
38095
38096         Module strdup.
38097         * m4/strdup.m4: New file.
38098
38099         Module strnlen.
38100         * m4/strnlen.m4: New file.
38101
38102         Module strndup.
38103         * m4/strndup.m4: New file.
38104
38105         Module xstrtod.
38106         * m4/xstrtod.m4: New file.
38107
38108         Module xstrtol.
38109         * m4/xstrtol.m4: New file.
38110
38111         Module getdate.
38112         * m4/getdate.m4: New file.
38113
38114         Module unlocked-io.
38115         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38116         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38117         * m4/jm-glibc-io.m4n: Remove file.
38118
38119         Module long-options.
38120         * m4/long-options.m4: New file.
38121
38122         Module md5.
38123         * m4/md5.m4: New file.
38124
38125         Module sha.
38126         * m4/sha.m4: New file.
38127
38128         Module getstr.
38129         * m4/getstr.m4: New file.
38130
38131         Module getline.
38132         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38133         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38134         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38135         simply getline. Infoke gl_PREREQ_GETLINE.
38136
38137         Module obstack.
38138         * m4/obstack.m4: New file.
38139
38140         Module hash.
38141         * m4/hash.m4: New file.
38142
38143         Module readtokens.
38144         * m4/readtokens.m4: New file.
38145
38146         Module strverscmp.
38147         * m4/strverscmp.m4: New file.
38148
38149         Module stdbool.
38150         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38151         OSF/1.
38152
38153         Module strtoll.
38154         * m4/strtoll.m4: New file.
38155
38156         Module strtoull.
38157         * m4/strtoull.m4: New file.
38158
38159         Module strtoimax.
38160         * m4/strtoimax.m4: New file.
38161
38162         Module strtoumax.
38163         * m4/strtoumax.m4: New file.
38164
38165         Module xstrtoimax.
38166         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38167         jm_AC_PREREQ_XSTRTOIMAX.
38168         Moved the strtol prerequisites to strtol.m4.
38169         Moved the strtoll prerequisites to strtoll.m4.
38170         Moved the strtoimax prerequisites to strtoimax.m4.
38171
38172         Module xstrtoumax.
38173         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38174         jm_AC_PREREQ_XSTRTOUMAX.
38175         Moved the strtoul prerequisites to strtoul.m4.
38176         Moved the strtoull prerequisites to strtoull.m4.
38177         Moved the strtoumax prerequisites to strtoumax.m4.
38178
38179         Module chown.
38180         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38181         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38182
38183         Module dup2.
38184         * m4/dup2.m4: New file.
38185
38186         Module ftruncate.
38187         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38188         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38189
38190         Module getgroups.
38191         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38192         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38193
38194         Module gettimeofday.
38195         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38196         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38197         gl_PREREQ_GETTIMEOFDAY.
38198
38199         Module mkdir.
38200         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38201         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38202
38203         Module mkstemp.
38204         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38205         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38206         jm_AC_TYPE_UINTMAX_T.
38207         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38208
38209         Module stat.
38210         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38211         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38212
38213         Module lstat.
38214         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38215         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38216
38217         Module timespec.
38218         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38219         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38220         * m4/st_mtim.m4: Indentation.
38221
38222         Module nanosleep.
38223         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38224         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38225         gl_PREREQ_NANOSLEEP.
38226
38227         Module regex.
38228         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38229         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38230         (gl_REGEX): New macro.
38231
38232         Module rename.
38233         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38234         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38235
38236         Module rmdir.
38237         * m4/rmdir.m4: New file.
38238
38239         Module utime.
38240         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38241         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38242         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38243
38244         Module dirname.
38245         * m4/dirname.m4: New file.
38246
38247         Module getopt.
38248         * m4/getopt.m4: New file.
38249
38250         Module unistd-safer.
38251         * m4/unistd-safer.m4: New file.
38252
38253         Module fnmatch.
38254         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38255         declaration.
38256         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38257         (gl_FUNC_FNMATCH_POSIX): New macro.
38258         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38259         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38260         simply fnmatch.
38261
38262         Module exclude.
38263         * m4/exclude.m4: New file.
38264
38265         Module human.
38266         * m4/human.m4: New file.
38267
38268         Module acl.
38269         * m4/acl.m4: Nop.
38270
38271         Module backupfile.
38272         * m4/backupfile.m4: New file.
38273         * m4/d-ino.m4: Indentation.
38274
38275         Module fsusage.
38276         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38277         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38278         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38279
38280         Module dirfd.
38281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38282         requirements.
38283
38284         Module euidaccess.
38285         * m4/euidaccess.m4: New file.
38286
38287         Module file-type.
38288         * m4/file-type.m4: New file.
38289
38290         Module fileblocks.
38291         * m4/fileblocks.m4: New file.
38292
38293         Module filemode.
38294         * m4/filemode.m4: New file.
38295
38296         Module isdir.
38297         * m4/isdir.m4: New file.
38298
38299         Module lchown.
38300         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38301         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38302
38303         Module makepath.
38304         * m4/makepath.m4: New file.
38305
38306         Module modechange.
38307         * m4/modechange.m4: New file.
38308
38309         Module mountlist.
38310         * m4/mountlist.m4: New file.
38311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38312         Indentation.
38313
38314         Module path-concat.
38315         * m4/path-concat.m4: New file.
38316
38317         Module pathmax.
38318         * m4/pathmax.m4: New file.
38319
38320         Module same.
38321         * m4/same.m4: New file.
38322
38323         Module save-cwd.
38324         * m4/save-cwd.m4: New file.
38325
38326         Module savedir.
38327         * m4/savedir.m4: New file.
38328
38329         Module xgetcwd.
38330         * m4/xgetcwd.m4: New file.
38331         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38332
38333         Module xreadlink.
38334         * m4/xreadlink.m4: New file.
38335
38336         Module safe-read.
38337         * m4/safe-read.m4: New file.
38338
38339         Module safe-write.
38340         * m4/safe-write.m4: New file.
38341
38342         Module closeout.
38343         * m4/closeout.m4: New file.
38344
38345         Module stdio-safer.
38346         * m4/stdio-safer.m4: New file.
38347
38348         Module getpass.
38349         * m4/getpass.m4: New file.
38350
38351         Module getugroups.
38352         * m4/getugroups.m4: New file.
38353
38354         Module group-member.
38355         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38356         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38357
38358         Module idcache.
38359         * m4/idcache.m4: New file.
38360
38361         Module userspec.
38362         * m4/userspec.m4: New file.
38363
38364         Module gettime.
38365         * m4/clock_time.m4: New file.
38366         * m4/gettime.m4: New file.
38367
38368         Module settime.
38369         * m4/settime.m4: New file.
38370
38371         Module posixtm.
38372         * m4/posixtm.m4: New file.
38373
38374         Module gethostname.
38375         * m4/gethostname.m4: New file.
38376
38377         Module canon-host.
38378         * m4/canon-host.m4: New file.
38379
38380         Module gettext.
38381         * m4/codeset.m4: New file, from gettext-0.11.5.
38382         * m4/gettext.m4: New file, from gettext-0.11.5.
38383         * m4/glibc21.m4: New file, from gettext-0.11.5.
38384         * m4/iconv.m4: New file, from gettext-0.11.5.
38385         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38386         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38387         * m4/inttypes.m4: New file, from gettext-0.11.5.
38388         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38389         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38390         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38391         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38392         * m4/lib-link.m4: New file, from gettext-0.11.5.
38393         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38394         * m4/progtest.m4: New file, from gettext-0.11.5.
38395         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38396         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38397         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38398
38399         Module localcharset.
38400         * m4/localcharset.m4: New file.
38401
38402         Module hard-locale.
38403         * m4/hard-locale.m4: New file.
38404
38405         Module mbswidth.
38406         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38407         onceonly macros.
38408         * m4/mbrtowc.m4: Add comment.
38409
38410         Module memcasecmp.
38411         * m4/memcasecmp.m4: New file.
38412
38413         Module memcoll.
38414         * m4/memcoll.m4: New file.
38415
38416         Module unicodeio.
38417         * m4/unicodeio.m4: New file.
38418
38419         Module rpmatch.
38420         * m4/rpmatch.m4: New file.
38421
38422         Module yesno.
38423         * m4/yesno.m4: New file.
38424
38425         Module exitfail.
38426         * m4/exitfail.m4: New file.
38427
38428         Module c-stack.
38429         * m4/c-stack.m4 (gl_C_STACK): New macro.
38430         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38431
38432         Module error.
38433         * m4/error.m4 (gl_ERROR): New macro.
38434         (jm_PREREQ_ERROR): Use onceonly macros.
38435
38436         Module fatal.
38437         * m4/fatal.m4: New file.
38438
38439         Module getloadavg.
38440         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38441         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38442
38443         Module getpagesize.
38444         * m4/getpagesize.m4: New file.
38445
38446         Module getusershell.
38447         * m4/getusershell.m4: New file.
38448
38449         Module physmem.
38450         * m4/physmem.m4: New file.
38451
38452         Module posixver.
38453         * m4/posixver.m4: New file.
38454
38455         Module quotearg.
38456         * m4/quotearg.m4: New file.
38457
38458         Module quote.
38459         * m4/quote.m4: New file.
38460
38461         Module readutmp.
38462         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38463
38464         Module sig2str.
38465         * m4/sig2str.m4: New file.
38466
38467         Other.
38468         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38469         ulonglong.m4.
38470         * m4/intmax_t.m4: New file.
38471         * m4/d-type.m4: Indentation.
38472         * m4/jm-macros.m4: Update.
38473         * m4/prereq.m4 (jm_PREREQ): Update.
38474         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38475         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38476         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38477         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38478         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38479         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38480         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38481         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38482         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38483         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38484         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38485         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38486         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38487         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38488         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38489         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38490         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38491         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38492         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38493
38494 2002-12-24  Bruno Haible  <bruno@clisp.org>
38495
38496         * MODULES.txt: Update according to m4/ changes.
38497
38498         Module gettext.
38499         * config.rpath: New file, from gettext-0.11.5.
38500
38501         * modules/*: New module descriptions.
38502         * gnulib-tool: New file.
38503         * MODULES.html.sh: New file.
38504
38505 2002-12-21  Karl Berry  <karl@gnu.org>
38506
38507         * doc/fdl.texi: update to version 1.2.
38508
38509 2002-12-19  Karl Berry  <karl@gnu.org>
38510
38511         * config/config.guess: update from prep.
38512
38513 2002-12-18  Bruno Haible  <bruno@clisp.org>
38514
38515         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38516         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38517
38518 2002-12-17  Bruno Haible  <bruno@clisp.org>
38519
38520         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38521         stdlib.h, string.h.
38522
38523 2002-12-17  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/canon-host.c (strdup): Remove unused declaration.
38526
38527         * lib/fsusage.c: Include full_read.h.
38528         (get_fs_usage): Use full_read instead of safe_read.
38529
38530         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38531
38532 2002-12-12  Karl Berry  <karl@gnu.org>
38533
38534         * config/config.guess: update from prep.
38535
38536 2002-12-11  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/setenv.m4: New file, from gettext-0.11.5.
38539
38540 2002-12-11  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38543         not unsetenv().
38544         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38545         modifications:
38546
38547         2002-12-11  Bruno Haible  <bruno@clisp.org>
38548
38549                 * setenv.c (alloca): Fall back to malloc.
38550                 (freea): New macro.
38551                 (setenv): Use freea() to free memory allocated with alloca().
38552
38553         2002-11-13  Bruno Haible  <bruno@clisp.org>
38554
38555                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38556                 function declarations.
38557                 * unsetenv.c (unsetenv): Likewise.
38558
38559         2002-03-04  Bruno Haible  <bruno@clisp.org>
38560
38561                 Portability to AIX 4.3.3.
38562                 * unsetenv.c: New file, extracted from setenv.c.
38563                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38564
38565         2001-12-20  Bruno Haible  <bruno@clisp.org>
38566
38567                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38568                 use malloc instead. For SunOS 4.
38569
38570         2001-12-11  Bruno Haible  <bruno@clisp.org>
38571
38572                 * setenv.c: Declare alloca.
38573                 (compar_fn_t): New typedef.
38574                 (KNOWN_VALUE, STORE_VALUE): Use it.
38575
38576         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38577         setenv.h.
38578
38579 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38580
38581         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38582         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38583         Choose values that are less likely to collide with system fnmatch
38584         options.
38585         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38586         defined (e.g., a pure POSIX system).
38587         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38588         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38589
38590 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38591
38592         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38593         a pain in practice to deal with generated m4 files.  This change
38594         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38595
38596         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38597         and jm-glibc-io.m4, as they are no longer a special case.
38598         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38599         kludge and the auto-generation stuff.  Check only whether the
38600         functions are declared, not whether they exist, since older hosts
38601         that don't declare the functions can't use the optimization anyway.
38602
38603 2002-12-06  Jim Meyering  <jim@meyering.net>
38604
38605         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38606
38607         Merge in changes from libc's misc/error.c, in preparation
38608         for the merge of gnulib's changes back into libc.
38609
38610         * lib/error.c (_): Define only if not already defined.
38611         Move definition to follow all #include directives.
38612         Include unlocked-io.h only if !_LIBC.
38613         [_LIBC]: Include <libio/libioP.h>.
38614         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38615         (fflush): Tweak definition to use INTUSE.
38616         (putc): Define.
38617
38618 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38619
38620         * lib/alloca.c [defined emacs]: Include "lisp.h".
38621         (xalloc_die) [defined emacs]: New macro.
38622         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38623         [! defined emacs]: Include <xalloc.h>.
38624         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38625         (pointer): Typedef to POINTER_TYPE *.
38626         (malloc): Remove decl; we now always use xmalloc.
38627         (alloca): Use old-style definition, since Emacs needs this.
38628         Check for arithmetic overflow when computing combined size.
38629
38630 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38631
38632         Do not generate unlocked-io.h automatically, since it's easier to
38633         maintain it by hand.
38634
38635         * lib/unlocked-io.h: New file, from GNU diffutils,
38636         but with proper copyright notice and attribution.
38637         * lib/gen-uio: Remove.
38638         * lib/Makefile.am: Add copyright notice.
38639         (libfetish_a_SOURCES): Add unlocked-io.h.
38640         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38641         (DISTCLEANFILES, io_functions): Remove macros.
38642         (EXTRA_DIST): Remove gen_uio.
38643         (unlocked-io.h): Remove rule.
38644
38645 2002-12-04  Jim Meyering  <jim@meyering.net>
38646
38647         Reflect the fact that stat.c and lstat.c are no longer generated.
38648         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38649         (DISTCLEANFILES): Likewise.
38650         (EXTRA_DIST): Likewise.
38651         (all_local): Don't depend on stat.c or lstat.c.
38652         (stat.c, lstat.c): Remove rules.
38653         (EXTRA_DIST): Remove xstat.in.
38654
38655         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38656         * lib/stat.c: New file.  Contents mostly from xstat.in.
38657         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38658         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38659
38660         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38661         too.
38662         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38663
38664 2002-12-03  Jim Meyering  <jim@meyering.net>
38665
38666         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38667         but not semantics, to minimize the differences between these two files.
38668         (safe_read): Change comment to mention SAFE_READ_ERROR.
38669
38670         * lib/safe-read.c (IS_EINTR): Define.
38671         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38672
38673 2002-12-02  Jim Meyering  <jim@meyering.net>
38674
38675         * lib/safe-read.c (EINTR): Define.
38676         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38677         (INT_MAX): Provide fallback.
38678         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38679
38680         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38681
38682 2002-12-02  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38685         Define, taken from safe-read.c.
38686         (INT_MAX): Provide fallback.
38687         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38688         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38689
38690         * lib/safe-read.c (EINTR): Remove definition.
38691         (safe_read): Don't use EINTR if it is absent.
38692
38693 2002-12-01  Jim Meyering  <jim@meyering.net>
38694
38695         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38696         zero.
38697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38698
38699 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38700
38701         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38702         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38703         with `if (! (value < limit)) abort ();', for readability.
38704
38705 2002-11-26  Karl Berry  <karl@gnu.org>
38706
38707         * lib/strdup.c: copy from libc again, with jim's ok.
38708         * lib/.cppi-disable: re-add strdup.c
38709
38710 2002-11-25  Karl Berry  <karl@gnu.org>
38711
38712         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38713         instead of "strtol.c".
38714
38715 2002-11-25  Karl Berry  <karl@gnu.org>
38716
38717         * config/install-sh: update from automake for variable quoting, $0 in
38718         error msgs, etc.
38719
38720         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38721         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38722         entry.
38723
38724 2002-11-25  Jim Meyering  <jim@meyering.net>
38725
38726         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38727
38728 2002-11-24  Karl Berry  <karl@gnu.org>
38729
38730         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38731         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38732
38733 2002-11-24  Jim Meyering  <jim@meyering.net>
38734
38735         Update from coreutils:
38736
38737         * lib/mktime.c: Merge in changes from libc.
38738
38739         Avoid a link-time failure on some Linux systems.
38740         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38741         (otherwise).
38742         (__mon_yday): Declare with the STATIC attribute.
38743         (__mktime_internal): Likewise.
38744         Based on a report from Greg Schafer.
38745
38746 2002-11-23  Jim Meyering  <jim@meyering.net>
38747
38748         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38749         Use `unsigned', not `int', as type of index.
38750
38751         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38752
38753         * lib/fsusage.c: Remove unneeded parentheses around operands of
38754         `defined'.
38755
38756 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38757
38758         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38759         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38760         so that we can be included first.
38761         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38762         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38763         No need to include stddef.h or sys/types.h any more.
38764         Surround local include files with "", not "<>".
38765         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38766         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38767         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38768         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38769         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38770         (ISPRINT): Remove; no longer needed now that we assume C89.
38771
38772         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38773         Preserve errno.
38774
38775         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38776         quotearg_char): Use SIZE_MAX rather than
38777         (size_t) -1 when we are talking about "infinity".
38778
38779         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38780
38781 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38782
38783         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38784         hint that one should use `if (! x) abort ();' rather than `assert
38785         (x);', and anyway it's one less thing to worry about configuring.
38786         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38787         hash_rehash, hash_insert): Use abort rather than assert.
38788
38789 2002-11-22  Bruno Haible  <bruno@clisp.org>
38790
38791         * lib/safe-read.h: Assume C89. Add comments.
38792         (safe_read): Change return type to size_t.
38793         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38794         byte counts > SSIZE_MAX correctly.
38795         * lib/safe-write.h: New file.
38796         * lib/safe-write.c: New file.
38797         * lib/full-read.h: New file.
38798         * lib/full-read.c: New file.
38799         * lib/full-write.h: Assume C89. Add comments.
38800         * lib/full-write.c: Include safe-write.h.
38801         (full_write): Rewritten to use safe_write.
38802         Suggested by Jim Meyering and Paul Eggert.
38803
38804 2002-11-21  Jim Meyering  <jim@meyering.net>
38805
38806         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38807
38808         Merge in changes from the coreutils.
38809
38810         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38811         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38812         <stdint.h>.
38813         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38814         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38815         int.  Work more efficiently if X is the same width as uintmax_t.
38816         Do not compare X to -1, to avoid bogus compiler warning.
38817         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38818         Don't assume that f_frsize and f_bsize are the same type.
38819
38820         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38821         warning on FreeBSD.
38822
38823         * lib/makepath.c (make_path): Restore umask *before* creating the final
38824         component.
38825         (make_path): Minor reformatting.
38826
38827         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38828         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38829         HAVE_MALLOC/HAVE_REALLOC.
38830
38831         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38832         dummy ones.  At least on GNU/Linux systems, `auto' means something
38833         else.
38834         From Michael Stone.
38835
38836 2002-11-21  Bruno Haible  <bruno@clisp.org>
38837
38838         Remove case insensitive option matching.
38839         * lib/argmatch.h (argcasematch): Remove declaration.
38840         (ARGCASEMATCH): Remove macro.
38841         (__xargmatch_internal): Remove case_sensitive argument.
38842         (XARGMATCH): Update.
38843         (XARGCASEMATCH): Remove macro.
38844         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38845         case_sensitive argument.
38846         (argcasematch): Remove function.
38847         (__xargmatch_internal): Remove case_sensitive argument.
38848         (main): Use XARGMATCH instead of XARGCASEMATCH.
38849
38850         * lib/xmalloc.c: Change compile-time error message. Add comment about
38851         required autoconf version.
38852
38853 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38854
38855         Merge argmatch cleanups from Bison.  Assume C89.
38856
38857         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38858         Include stdlib.h, for EXIT_FAILURE.
38859         Always include <string.h>, since we assume C89.
38860         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38861         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38862         Include <stddef.h> instead, since it's all we need for size_t.
38863         (PARAMS): Remove.  All uses removed.
38864         (ARRAY_CARDINALITY): Do not bother to #undef.
38865         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38866         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38867         Remove unnecessary parentheses.
38868         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38869         Insert necessary parentheses.
38870         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38871         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38872
38873 2002-11-19  Bruno Haible  <bruno@clisp.org>
38874
38875         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38876         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38877
38878         * lib/mbswidth.h (PARAMS): Remove macro.
38879         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38880         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38881
38882         * lib/gcd.h (PARAMS): Remove macro.
38883         (gcd): Use ANSI C function declarations.
38884         * lib/gcd.c (gcd): Likewise.
38885
38886 2002-11-15  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/strcspn.c: Include <stddef.h>.
38889         (strcspn): Use ANSI C function declaration. Change return type to
38890         size_t. Use NULL.
38891         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38892         (strpbrk): Use NULL.
38893         * lib/strpbrk.h (PARAMS): Remove macro.
38894         (strpbrk): Use ANSI C function declaration.
38895         * lib/strstr.c: Don't include <sys/types.h>.
38896         * lib/strstr.h (PARAMS): Remove macro.
38897         (strstr): Use ANSI C function declarations.
38898
38899 2002-11-14  Karl Berry  <karl@gnu.org>
38900
38901         * config/mkinstalldirs: `do' on separate line, instead of
38902         `for var; do'.
38903
38904 2002-11-06  Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38907         * lib/gcd.c (gcd): Likewise.
38908
38909 2002-11-05  Bruno Haible  <bruno@clisp.org>
38910
38911         * lib/gcd.h: New file, from gettext-0.11.5.
38912         * lib/gcd.c: New file, from gettext-0.11.5.
38913
38914 2002-11-05  Bruno Haible  <bruno@clisp.org>
38915
38916         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38917         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38918         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38919         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38920
38921         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38922         <libintl.h>.
38923         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38924         <libintl.h>.
38925
38926         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38927         * lib/human.c: Include gettext.h instead of <libintl.h>.
38928         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38929         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38930         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38931         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38932         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38933         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38934         (textdomain): Remove definition.
38935         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38936
38937         * lib/long-options.c: Remove include of <libintl.h> and definition of
38938         _.
38939         * lib/same.c: Remove include of <libintl.h> and definition of _.
38940
38941 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38942
38943         * lib/config.charset: A few additions for Solaris.
38944
38945 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38946
38947         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38948         * lib/localcharset.c (locale_charset): Declare as extern "C".
38949
38950 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38951
38952         * lib/config.charset: msdos in uk_UA uses CP1125.
38953
38954 2002-11-04  Bruno Haible  <bruno@clisp.org>
38955
38956         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38957         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38958         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38959         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38960         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38961
38962 2002-11-04  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/localcharset.c (locale_charset): Don't return an empty string.
38965
38966 2002-11-04  Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38969         aliases.
38970
38971 2002-11-04  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/config.charset: Update for newest glibc. Add canonical names
38974         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38975
38976 2002-11-04  Bruno Haible  <bruno@clisp.org>
38977
38978         * lib/config.charset: Add support for NetBSD.
38979
38980 2002-11-04  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38983
38984 2002-11-01  Bruno Haible  <bruno@clisp.org>
38985
38986         * configure.in: Add AC_CONFIG_AUX_DIR call.
38987         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38988         test/Makefile.
38989         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38990
38991 2002-09-28  Karl Berry  <karl@gnu.org>
38992
38993         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38994         installed automake until the next release, since changes have been
38995         made.
38996
38997 2002-09-25  Karl Berry  <karl@gnu.org>
38998
38999         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39000         * lib/getopt*: copy from libc/posix.
39001         * lib/gettext.h: copy from gettext.
39002         * lib/.cppi-disable: add strdup.c, gettext.h.
39003
39004 2002-09-25  Karl Berry  <karl@gnu.org>
39005
39006         * config/srclist.txt: enable gettext.h check.
39007         * config/config.{guess,sub}: update from prep.
39008         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39009                 from automake 1.6.3.
39010         See srclist*.
39011
39012 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39013
39014         * regex.c (PATFETCH): Remove the translating fetch.
39015         (PATFETCH_RAW): Rename to PATFETCH.
39016         (set_image_of_range): New fun.
39017         (SET_RANGE_TABLE_WORK_AREA): Use it.
39018         (regex_compile): Don't translate the pattern chars so eagerly.
39019         Only do it when inserting an `exactn' bytecode or when handling
39020         a char-range.
39021         (mutually_exclusive_p): Avoid empty statement.
39022
39023 2002-07-06  Jim Meyering  <meyering@lucent.com>
39024
39025         * m4/README: Don't mention Makefile.am.in.
39026         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39027
39028 2002-07-01  Jim Meyering  <meyering@lucent.com>
39029
39030         * lib/c-stack.c: Include sys/time.h.
39031         From Volker Borchert.
39032
39033 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39034
39035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
39036
39037 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39038
39039         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
39040         New macro.  Use it uniformly instead of
39041         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
39042         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
39043         reported by Vin Shelton.
39044
39045 2002-06-22  Paul Eggert  <eggert@twinsun.com>
39046
39047         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
39048         Do not assume SA_SIGINFO behavior.
39049         Bug reported by Jim Meyering on NetBSD 1.5.2.
39050
39051 2002-06-22  Jim Meyering  <meyering@lucent.com>
39052
39053         * m4/c-stack.m4: New file, from diffutils-2.8.2.
39054         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
39055
39056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
39057         now that configure.ac uses AC_GNU_SOURCE.
39058         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39059         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39060
39061         Update to latest tools.  Suggestions from Paul Eggert.
39062         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39063         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39064         * m4/fnmatch.m4: Likewise.
39065         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39066         to AC_HEADER_STDBOOL
39067
39068 2002-06-22  Jim Meyering  <meyering@lucent.com>
39069
39070         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39071         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39072
39073 2002-06-22  Jim Meyering  <meyering@lucent.com>
39074
39075         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39076
39077         * lib/exitfail.c, exitfail.h: Likewise.
39078         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39079
39080         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39081         of fnmatch.h.
39082         (EXTRA_DIST): Add fnmatch_loop.c.
39083         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39084
39085         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39086         * lib/fnmatch.c: Update from diffutils-2.8.2.
39087         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39088         * lib/fnmatch.h: Remove file.
39089
39090 2002-06-21  Jim Meyering  <meyering@lucent.com>
39091
39092         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39093         * m4/mbrtowc.m4: Likewise.
39094
39095         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39096         * m4/mbswidth.m4: Reflect name change:
39097         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39099
39100         * m4/lib-link.m4: Update from gettext-0.11.2.
39101         * m4/gettext.m4: Likewise.
39102
39103         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39104         From Alfred M. Szmidt.
39105
39106 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39107
39108         * lib/file-type.h: Report an error if neither S_ISREG nor
39109         S_IFREG is defined, instead of using a test specific to glibc
39110         2.2.  This should be safe, since POSIX requires S_ISREG and
39111         Unix Version 7 had S_IFREG.  We don't need to check for
39112         <sys/types.h> since we don't use any symbols that it defines.
39113
39114 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39115
39116         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39117         $@-t, so that each temporary file name is unique and valid in the first
39118         8 characters, for operation under DOS.
39119
39120 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39121
39122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39123
39124 2002-06-15  Jim Meyering  <meyering@lucent.com>
39125
39126         Work even with DJGPP 2.03, which lacks support for symlinks.
39127         From Richard Dawe.
39128         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39129         is defined.
39130         * lib/lchown.c (S_ISLNK): Likewise.
39131
39132 2002-06-15  Jim Meyering  <meyering@lucent.com>
39133
39134         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39135         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39136         have been included before this file.
39137
39138 2002-06-14  Jim Meyering  <meyering@lucent.com>
39139
39140         * lib/file-type.h: Use the version from diffutils-2.8.2.
39141         * lib/file-type.c: Likewise.
39142
39143 2002-06-07  Jim Meyering  <meyering@lucent.com>
39144
39145         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39146         They're needed at least for NetBSD 1.5.2.
39147         ($statxfs_includes): Include those same headers.
39148         ($statxfs_includes): Include sys/vfs.h if available.
39149         ($statxfs_includes): Likewise for sys/statvfs.h.
39150         Check for the following members in both structs statfs and statvfs:
39151         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39152
39153 2002-06-01  Jim Meyering  <meyering@lucent.com>
39154
39155         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39156         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39157
39158 2002-05-28  Jim Meyering  <meyering@lucent.com>
39159
39160         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39161         Reported by Volker Borchert.
39162
39163 2002-05-27  Jim Meyering  <meyering@lucent.com>
39164
39165         Fix a problem seen only on nonconforming systems whereby ls.c's
39166         use of localtime, and then of gettimeofday would cause trouble:
39167         the localtime call used to initialize rpl_gettimeofday's save
39168         mechanism would clobber ls's current local time information so
39169         that in any long listing the first file would always be listed
39170         with date 1970-01-01.  Analysis by Volker Borchert.
39171
39172         * lib/gettimeofday.c (localtime): Undefine.
39173         (rpl_localtime): New function.
39174
39175 2002-05-27  Jim Meyering  <meyering@lucent.com>
39176
39177         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39178         localtime.
39179
39180         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39181         use the replacement function; it wouldn't resolve at link time.
39182         Reported by Volker Borchert.
39183
39184 2002-05-22  Jim Meyering  <meyering@lucent.com>
39185
39186         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39187         file-type.h.
39188         * lib/file-type.h: New file.
39189         * lib/file-type.c (file_type): New file/function.  Extracted from
39190         diffutils.
39191
39192 2002-04-30  Jim Meyering  <meyering@lucent.com>
39193
39194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39195
39196 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39197
39198         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39199
39200 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39201
39202         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39203         Do not check for alloca.h (no longer used) or stdbool.h (was never
39204         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39205
39206 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39207
39208         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39209
39210 2002-04-29  Jim Meyering  <meyering@lucent.com>
39211
39212         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39213         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39214         Use AC_FUNC_STRNLEN here instead.
39215
39216         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39217         With autoconf-2.53a, it's part of AC_PROG_CC.
39218
39219 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39220
39221         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39222         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39223
39224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39225
39226         * lib/sig2str.h, lib/sig2str.c: New files.
39227         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39228
39229 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39230
39231         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39232         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39233         of 127, since 64 is the largest conceivable number for ancient
39234         nonstandard hosts.
39235         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39236
39237 2002-04-28  Jim Meyering  <meyering@lucent.com>
39238
39239         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39240
39241 2002-04-24  Jim Meyering  <meyering@lucent.com>
39242
39243         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39244         (jm_PREREQ): Use it.
39245
39246         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39247         mach/mach.h fcntl.h.
39248         Check for this function: setlocale.
39249
39250 2002-04-24  Jim Meyering  <meyering@lucent.com>
39251
39252         * lib/gettext.h: New file, from Gettext.
39253         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39254         (libfetish_a_SOURCES): Add gettext.h.
39255
39256 2002-04-16  Jim Meyering  <meyering@lucent.com>
39257
39258         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39259         ut_pid, ut_id, ut_exit.
39260
39261 2002-04-16  Jim Meyering  <meyering@lucent.com>
39262
39263         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39264         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39265         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39266
39267 2002-04-12  Jim Meyering  <meyering@lucent.com>
39268
39269         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39270         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39271         existence of the getmntinfo function.  Needed for Darwin 5.3.
39272
39273         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39274         This is necessary at least on Darwin 5.3.
39275
39276         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39277         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39278         strnlen.o in the library, and that makes some versions of ranlib
39279         object.
39280
39281 2002-04-12  Jim Meyering  <meyering@lucent.com>
39282
39283         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39284
39285 2002-04-09  Jim Meyering  <meyering@lucent.com>
39286
39287         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39288         to be more precise.  Rather than saying we're checking whether the
39289         function `works', say what we're testing.
39290         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39291         Reported by Bruno Haible.
39292
39293 2002-03-10  Jim Meyering  <meyering@lucent.com>
39294
39295         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39296         Suggestion from Santiago Vila.
39297
39298 2002-03-08  Jim Meyering  <meyering@lucent.com>
39299
39300         * lib/rename.c: Mention that this wrapper is needed also on
39301         mips-dec-ultrix4.4 systems.
39302
39303 2002-03-02  Jim Meyering  <meyering@lucent.com>
39304
39305         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39306         not HAVE_CLOCK_SETTIME.
39307
39308 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39309
39310         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39311         Check for clock_settime.
39312
39313 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39314
39315         * lib/nanosleep.h: Rename to....
39316         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39317
39318         * lib/gettime.c: New file.
39319         * lib/settime.c: New file.
39320         * lib/stime.c: Remove.
39321
39322         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39323         timespec.h.  Remove nanosleep.h.
39324
39325 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39326
39327         * m4/acl.m4: New file.
39328         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39329         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39330
39331 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39332
39333         * lib/acl.c, lib/acl.h: New files.
39334         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39335
39336 2002-02-24  Jim Meyering  <meyering@lucent.com>
39337
39338         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39339         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39340         cause trouble.  Reported by Nelson Beebe.
39341
39342 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39343
39344         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39345         compilers that don't know that xalloc_die never returns.
39346
39347 2002-02-20  Jim Meyering  <meyering@lucent.com>
39348
39349         * lib/getdate.c: Regenerate using bison-1.33.
39350
39351 2002-02-17  Jim Meyering  <meyering@lucent.com>
39352
39353         * config/config.guess (main): Don't use `head -1'; it's no longer
39354         portable. Use `sed 1q' instead.
39355
39356 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39357
39358         * m4/codeset.m4: Upgrade to gettext-0.11.
39359         * m4/gettext.m4: Upgrade to gettext-0.11.
39360         * m4/glibc21.m4: Upgrade to gettext-0.11.
39361         * m4/iconv.m4: Upgrade to gettext-0.11.
39362         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39363         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39364         * m4/lib-ld.m4: New file, from gettext-0.11.
39365         * m4/lib-link.m4: New file, from gettext-0.11.
39366         * m4/lib-prefix.m4: New file, from gettext-0.11.
39367         * m4/progtest.m4: Upgrade to gettext-0.11.
39368
39369 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39370
39371         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39372         (jm_PREREQ): Use it.
39373
39374 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39375
39376         * lib/posixver.c, lib/posixver.h: New files.
39377         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39378
39379 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39380             Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39383         (fwrite_success_callback): New declaration.
39384         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39385         print_unicode_char. Call failure callback instead of error.
39386         (fwrite_success_callback): New function.
39387         (exit_failure_callback): New function.
39388         (fallback_failure_callback): New function.
39389         (print_unicode_char): Call unicode_to_mb.
39390
39391 2002-01-26  Jim Meyering  <meyering@lucent.com>
39392
39393         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39394         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39395
39396 2002-01-26  Jim Meyering  <meyering@lucent.com>
39397
39398         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39399
39400 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39401
39402         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39403
39404 2002-01-22  Jim Meyering  <meyering@lucent.com>
39405
39406         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39407         Otherwise, some versions of automake would omit the rule that makes
39408         Makefile from Makefile.in.
39409
39410 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39411
39412         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39413         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39414         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39415         (memcoll): Set errno to zero if there is no error.
39416
39417         * lib/quotearg.c (quotearg_buffer_restyled):
39418         Fix bug with quoting buffers containing NUL when backslashing escapes.
39419         This bug was exposed by the other changes in this patch.
39420         (quotearg_n_options): New arg ARGSIZE.
39421         All callers changed.
39422         (quoting_options_from_style): New function.
39423         (quotearg_n_style): Use it.
39424         (quotearg_n_style_mem): New function.
39425
39426         * lib/quotearg.h (quotearg_n_style_mem): New function.
39427
39428 2002-01-19  Jim Meyering  <meyering@lucent.com>
39429
39430         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39431         Remove useless quotes: DF_PROG="df".
39432         * m4/strnlen.m4: New file.
39433
39434 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39435
39436         * lib/backupfile.c (ISDIGIT): Comment fix.
39437         * lib/getdate.y (ISDIGIT): Likewise.
39438         * lib/posixtm.c (ISDIGIT, year): Likewise.
39439         * lib/strverscmp.c (ISDIGIT): Likewise.
39440         * lib/userspec.c (ISDIGIT): Likewise.
39441
39442 2002-01-16  Jim Meyering  <meyering@lucent.com>
39443
39444         * lib/getdate.y: Add three semicolons, each just before a closing
39445         brace. Bison (as of version 1.31) no longer papers over that mistake.
39446
39447 2002-01-05  Jim Meyering  <meyering@lucent.com>
39448
39449         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39450
39451 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39452
39453         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39454         not silently exit merely because the output buffer happens to
39455         have nothing pending.
39456
39457 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39458
39459         See the big note in ../ChangeLog.
39460         * lib/human.c (suffixes): Prefer K to k for 1024.
39461         (generate_suffix_backwards): New function.
39462         (human_readable_inexact): Use it.
39463         * lib/xstrtol.c (__xstrtol): If there is no number but there
39464         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39465         Accept 'K' as well as 'k'.
39466
39467 2001-12-15  Jim Meyering  <meyering@lucent.com>
39468
39469         * lib/regex.h (__restrict_arr): Update from libc.
39470
39471         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39472         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39473         (STREQ): Define.
39474
39475 2001-12-14  Jim Meyering  <meyering@lucent.com>
39476
39477         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39478         Suggestion from Bruno Haible.
39479
39480 2001-12-10  Jim Meyering  <meyering@lucent.com>
39481
39482         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39483         xrealloc, Instead, include "xalloc.h".
39484         (initbuffer): Don't cast xmalloc return value to char*.
39485         (readline): Reword comment.
39486         Don't cast xrealloc return value to char*
39487         Return NULL, not 0.
39488
39489 2001-12-09  Jim Meyering  <meyering@lucent.com>
39490
39491         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39492         about `signed and unsigned type in conditional expression'.
39493         * lib/posixtm.c (posix_time_parse): Likewise.
39494
39495         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39496
39497         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39498         to avoid a pedantic warning.
39499
39500         * lib/getstr.c: Don't include assert.h.
39501         (getstr): Remove warning-evoking assertions.
39502         Return -1 if offset parameter is out of bounds.
39503         Change the type of a local from int to size_t.
39504
39505         * lib/strftime.c (my_strftime_localtime_r): Include this function
39506         definition in the `#if ! HAVE_TM_GMTOFF' block.
39507
39508         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39509         Include xalloc.h instead.
39510
39511 2001-12-02  Jim Meyering  <meyering@lucent.com>
39512
39513         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39514         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39515         included.
39516
39517         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39518         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39519
39520 2001-11-30  Akim Demaille  <akim@epita.fr>
39521
39522         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39523         before being defined.
39524
39525 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39526
39527         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39528         First arg is int, not unsigned.
39529         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39530         (SIZE_MAX, UINT_MAX): New macros.
39531         (quotearg_n_options): Abort if N is negative.
39532         Avoid overflow check on hosts where size_t is 64 bits and int
39533         is 32 bits, as overflow is impossible there.
39534         Fix off-by-one typo that caused unnecessary reallocation.
39535
39536 2001-11-27  Jim Meyering  <meyering@lucent.com>
39537
39538         * lib/tempname.c: Merge with version from libc.
39539         * lib/regex.c: Likewise.
39540
39541         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39542         systems for which STDC_HEADERS is 0, it was not included, resulting in
39543         a warning about an integer-to-pointer conversion problem with getenv.
39544         Reported by Volker Borchert.
39545
39546 2001-11-26  Jim Meyering  <meyering@lucent.com>
39547
39548         * lib/gtod.h: Remove file.
39549         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39550         * lib/gettimeofday.c: Don't include gtod.h.
39551         (GTOD_init): Remove function.
39552         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39553         Suggestion from Volker Borchert.
39554
39555 2001-11-23  Jim Meyering  <meyering@lucent.com>
39556
39557         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39558         it.
39559         * lib/hash.c (struct hash_table): Define it here instead.
39560
39561 2001-11-22  Jim Meyering  <meyering@lucent.com>
39562
39563         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39564
39565 2001-11-20  Jim Meyering  <meyering@lucent.com>
39566
39567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39568         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39569
39570 2001-11-19  Jim Meyering  <meyering@lucent.com>
39571
39572         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39573         directory.  Use "conftestXXXXXX" as the template.
39574         Suggestion from Paul Eggert.
39575
39576         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39577         immediately, so the test doesn't mistakenly hit the max-open-files
39578         limit.
39579
39580 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39581
39582         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39583         (TEMPORARIES): New macro.
39584         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39585         removes an artificial limitation (e.g. HP-UX 10.20, where
39586         TMP_MAX is 17576).
39587
39588 2001-11-18  Jim Meyering  <meyering@lucent.com>
39589
39590         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39591
39592 2001-11-18  Jim Meyering  <meyering@lucent.com>
39593
39594         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39595         on SunOS 4.
39596
39597         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39598         files will be created before anything else.
39599
39600 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39601
39602         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39603         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39604
39605 2001-11-17  Jim Meyering  <meyering@lucent.com>
39606
39607         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39608         Prompted by a report from Bob Proulx.
39609
39610         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39611         Instead, require UTILS_FUNC_MKSTEMP.
39612
39613 2001-11-17  Jim Meyering  <meyering@lucent.com>
39614
39615         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39616         Now, that's done as part of AC_FUNC_STRTOD.
39617
39618 2001-11-17  Jim Meyering  <meyering@lucent.com>
39619
39620         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39621         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39622         rather than group writable.  Patch by Juan F. Codagnone.
39623
39624         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39625         xrealloc, Instead, include "xalloc.h".
39626
39627         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39628         Remove explicit declarations of xmalloc, xrealloc,
39629         and xstrdup.  Instead, include "xalloc.h".
39630
39631         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39632         unlocked-io.h.
39633         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39634         Likewise.
39635         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39636
39637         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39638         Reported by Padraig Brady.
39639
39640         * lib/mkstemp.c: #undef mkstemp.
39641         Include config.h.
39642         (rpl_mkstemp): Rename from mkstemp.
39643         Protoize.
39644
39645 2001-11-16  Jim Meyering  <meyering@lucent.com>
39646
39647         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39648         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39649         determine the amount of total physical memory, use pstat_getstatic.
39650         HPUX-11 doesn't define _SC_PHYS_PAGES.
39651         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39652         If sysconf couldn't be used to determine the amount of available
39653         physical memory, use both pstat_getstatic and pstat_getdynamic.
39654         Based on a patch from Bob Proulx.
39655
39656 2001-11-10  Jim Meyering  <meyering@lucent.com>
39657
39658         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39659         (jm_PREREQ): Use it.
39660
39661 2001-11-09  Jim Meyering  <meyering@lucent.com>
39662
39663         * m4/jm-macros.m4: Require autoconf-2.52f.
39664         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39665         Use these AC_-prefixed names, not the AM_-prefixed ones.
39666
39667         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39668
39669 2001-11-05  Jim Meyering  <meyering@lucent.com>
39670
39671         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39672
39673 2001-11-04  Jim Meyering  <meyering@lucent.com>
39674
39675         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39676         $DEFS.
39677
39678 2001-11-03  Jim Meyering  <meyering@lucent.com>
39679
39680         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39681         of AC_DEFUN.
39682
39683         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39684         know the name of the variable in the macro definition.
39685
39686 2001-11-03  Jim Meyering  <meyering@lucent.com>
39687
39688         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39689         in argmatch_to_argument call.
39690
39691         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39692         argument.
39693
39694         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39695         e.g., a fault due to an attempt to free a NULL pointer.
39696
39697 2001-11-01  Jim Meyering  <meyering@lucent.com>
39698
39699         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39700         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39701
39702 2001-11-01  Jim Meyering  <meyering@lucent.com>
39703
39704         * lib/dirfd.c, lib/dirfd.h: New files.
39705         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39706
39707         * lib/hash.c (hash_print) [TESTING]: Clean up.
39708
39709 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39710
39711         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39712         to avoid a warning if -Wall.
39713
39714 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39715
39716         * README: New file
39717         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39718         (per RMS's instructions, this is now the canonical source)
39719         * lgpl/, gpl/: New directories.
39720
39721 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39722
39723         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39724
39725 2001-10-21  Jim Meyering  <meyering@lucent.com>
39726
39727         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39728         this code would end up calling gettext even in packages built
39729         with --disable-nls.
39730         * lib/getopt.c (_): Likewise.
39731         * lib/regex.c (_): Likewise.
39732
39733 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39734
39735         * m4/error.m4 (jm_PREREQ_ERROR):
39736         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39737         AC_FUNC_STRERROR_R does that.
39738         Check for strerror declaration.
39739
39740         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39741         are supposed to have them these days.
39742         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39743         Merge changes from latest Autoconf CVS.
39744         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39745         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39746         POSIX decided to standardize on the int flavor of strerror_r.
39747
39748 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39749
39750         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39751         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39752         Use strerror_r that is only a macro, even if it is not a function.
39753         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39754         (private_strerror): Use prototypes, not old-style function definition.
39755         (print_errno_message): New function.
39756         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39757         char*-flavored one.
39758         (error_tail, error, error_at_line): Use it.
39759
39760 2001-10-11  Jim Meyering  <meyering@lucent.com>
39761
39762         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39763         and quote_n (1, ... to avoid clobbering a buffer.
39764
39765 2001-10-05  Jim Meyering  <meyering@lucent.com>
39766
39767         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39768         hash-pjw.h.
39769         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39770         * lib/hash-pjw.h: New file.
39771
39772 2001-09-30  Jim Meyering  <meyering@lucent.com>
39773
39774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39775         `struct fsstat' has the `f_fstypename' member.
39776         Use that to define FS_TYPE, which is now used to make
39777         the getfsstat link test tighter.
39778
39779 2001-09-30  Jim Meyering  <meyering@lucent.com>
39780
39781         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39782         Include <sys/ucred.h>, for Apple Darwin.
39783         Include sys/mount.h and sys/fs_types.h only if available.
39784         (FS_TYPE): Define.
39785         (read_filesystem_list): Use FS_TYPE.
39786
39787 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39788
39789         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39790         a boolean context.
39791
39792 2001-09-29  Jim Meyering  <meyering@lucent.com>
39793
39794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39795         [one-argument getmntent function]): Include stdio.h before mntent.h.
39796         SunOS 4.1.x needs it for the declaration of `FILE'.
39797         Patch by Volker Borchert.
39798
39799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39800         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39801         sys/fs_types.h, and make the link-test for getfsstat guard #include
39802         directives with appropriate #if HAVE_*_H tests so that we can
39803         detect getfsstat on Apple Darwin1.3.7 systems.
39804         Reported by Nelson Beebe.
39805         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39806
39807 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39808
39809         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39810         #defines strtoimax.  Also treat the other strto* functions
39811         like strtoimax.
39812
39813         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39814         Check for strtoul and strtoumax,
39815         as those declarations are made even in the signed case.
39816         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39817         Likewise, for strtol and strtoimax.
39818
39819 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39820
39821         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39822         #defines strtoimax.  Also treat the other strto* functions
39823         like strtoimax.
39824
39825         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39826         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39827         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39828
39829 2001-09-26  Jim Meyering  <meyering@lucent.com>
39830
39831         Most macros in unlocked-io.h had the wrong number of arguments.
39832         * lib/gen-uio: New script.
39833         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39834         * lib/unlocked-io.hin: Remove file.
39835         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39836         rather than trying to embed it here.
39837         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39838         Reported by Padraig Brady.
39839
39840 2001-09-25  Volker Borchert  <bt@teknon.de>
39841
39842         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39843         `result'.
39844
39845 2001-09-24  Jim Meyering  <meyering@lucent.com>
39846
39847         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39848
39849 2001-09-23  Jim Meyering  <meyering@lucent.com>
39850
39851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39852         instead of the mere test for existence of mntent.h.  The latter
39853         would get a false-positive on AIX 3.4 systems.
39854         In the outer getmntent if-block, don't die if neither of the getmntent
39855         tests succeeds.  Instead, just fall through and continue with the
39856         remaining tests.
39857
39858 2001-09-23  Jim Meyering  <meyering@lucent.com>
39859
39860         * lib/mountlist.c: Remove useless parentheses in #if directives.
39861         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39862         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39863
39864 2001-09-22  Jim Meyering  <meyering@lucent.com>
39865
39866         * m4/gettext.m4: New file.  From gettext.
39867         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39868         * m4/progtest.m4: Likewise
39869         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39870         * m4/glibc21.m4: Likewise.
39871
39872         * m4/libintl.m4: Remove.  No longer used.
39873
39874 2001-09-22  Jim Meyering  <meyering@lucent.com>
39875
39876         * lib/localcharset.c: Update from latest gettext.
39877         * lib/config.charset: Likewise.
39878
39879 2001-09-20  Jim Meyering  <meyering@lucent.com>
39880
39881         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39882         strtoimax.
39883         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39884         strtoumax.
39885
39886 2001-09-20  Jim Meyering  <meyering@lucent.com>
39887
39888         * lib/xstrtol.c (strtoimax): Guard declaration with
39889         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39890         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39891         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39892         (strtoumax): Likewise, for completeness (it wasn't necessary).
39893
39894 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39895
39896         * lib/strtoimax.c (HAVE_LONG_LONG):
39897         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39898         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39899         to work around bug in IBM C compiler.
39900
39901 2001-09-17  Jim Meyering  <meyering@lucent.com>
39902
39903         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39904         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39905         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39906         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39907         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39908         whenever the right hand side need not be expanded by the shell.
39909
39910 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39911
39912         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39913         library.  It's not correct, as some older glibcs are buggy.
39914         fnmatch wasn't fixed until glibc 2.2.
39915
39916         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39917         special shell magic here.
39918
39919 2001-09-16  Jim Meyering  <meyering@lucent.com>
39920
39921         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39922         * m4/jm-macros.m4: Require it.
39923
39924 2001-09-16  Jim Meyering  <meyering@lucent.com>
39925
39926         * lib/mkdir.c: New file.
39927
39928 2001-09-15  Jim Meyering  <meyering@lucent.com>
39929
39930         * m4/jm-macros.m4: Check for help2man.
39931
39932 2001-09-11  Jim Meyering  <meyering@lucent.com>
39933
39934         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39935         The body, by Paul Eggert, was moved here from configure.in.
39936         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39937
39938 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39939
39940         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39941         (jm_PREREQ): Use it.
39942
39943 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39944
39945         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39946         Use ssize_t, not int, to store result of readlink.
39947         Check for ssize_t overflow as well as size_t overflow,
39948         as POSIX says the result of readlink is implementation-defined
39949         when ssize_t overflows.
39950         Remove unnecessary cast to char*.
39951         Use free+malloc instead of realloc, as the storage doesn't need
39952         to be preserved and it's clearer and can be more efficient that way.
39953         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39954         * lib/xreadlink.h (xreadlink): Update prototype.
39955
39956 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39957
39958         * lib/xgetcwd.c: Revert some of the previous change; intead,
39959         fix the HAVE_GETCWD_NULL code to behave more like the
39960         !HAVE_GETCWD_NULL code used to.
39961
39962         Include "xalloc.h".
39963         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39964         invoke xalloc_die.
39965
39966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39967
39968         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39969         sys/param.h, as pathmax.h includes them.
39970
39971 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39972
39973         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39974         (jm_PREREQ_XGETCWD): New macro.
39975
39976         * m4/getcwd.m4: New file.
39977
39978 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39979
39980         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39981         like the HAVE_GETCWD_NULL code.
39982         Include pathmax.h if not HAVE_GETCWD.
39983         Do not include xalloc.h.
39984         (INITIAL_BUFFER_SIZE): New symbol.
39985         Do not use xmalloc / xrealloc, since the caller is responsible for
39986         handling errors.  Preserve errno around `free' during failure.
39987         Do not overrun buffer when using getwd.
39988
39989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39990
39991         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39992         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39993         getcwd (NULL, 0).
39994
39995 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39996
39997         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39998         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39999         spotted by Jim Meyering.
40000
40001 2001-09-03  Jim Meyering  <meyering@lucent.com>
40002
40003         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40004         failure.
40005
40006 2001-09-02  Jim Meyering  <meyering@lucent.com>
40007
40008         * lib/error.c: Update from GNU libc.
40009
40010 2001-09-01  Jim Meyering  <meyering@lucent.com>
40011
40012         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40013         Used by df.
40014
40015 2001-09-01  Jim Meyering  <meyering@lucent.com>
40016
40017         * lib/xreadlink.c: New file.
40018         * lib/xreadlink.h: New file.
40019         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40020         xreadlink.h.
40021
40022         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40023         doesn't conflict with sparc Solaris 7's definition in
40024         /usr/include/sys/int_types.h.
40025
40026         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40027         files.
40028         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40029         and strncasecmp as r-values.  Unixware didn't have declarations.
40030
40031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40032
40033         * lib/xstrtol.h: Add copyright notice.
40034         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40035         LONGINT_INVALID_SUFFIX_CHAR.
40036
40037 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40038
40039         * lib/xstrtol.c (strtoimax): New decl.
40040
40041 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40042
40043         * lib/xgetcwd.c: Don't include pathmax.h.
40044         Include stdlib.h and unistd.h if available.
40045         Include xalloc.h.
40046         (xmalloc, xstrdup, free): Remove decls.
40047         (xgetcwd): Don't assume sizes fit in unsigned.
40048         Check for overflow when computing sizes.
40049         Simplify reallocation code.
40050
40051 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40052
40053         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
40054         a directory's st_size can have an arbitrary value, so the old
40055         usage could waste an arbitrary amount of memory.  All uses
40056         changed.
40057         * lib/savedir.h: Update prototype.
40058
40059 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40060
40061         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40062
40063         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40064         old strtoimax.c.
40065
40066         Also, make the following further changes to make this file's
40067         configuration more similar to that of strtol.c:
40068         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40069         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40070         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40071         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40072         changed to signed values.
40073
40074         And make the following changes as well:
40075         Fix copyright notice, as 1999 was missing.
40076         (verify): New macro.
40077         (strtoimax): Check sizes at compile-time, not run-time.
40078         Prefer strtol to strtoll if both work.
40079         (main): Remove; it was not that useful and was a pain to maintain.
40080
40081         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40082
40083 2001-08-31  Jim Meyering  <meyering@lucent.com>
40084
40085         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40086         Use an initial, malloc'd, buffer of length 128 rather than
40087         a statically allocated one of length 1024.
40088
40089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40090
40091         Simplify code, partly by assuming autoconf 2.52 semantics.
40092
40093         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40094
40095         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40096         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40097         All uses removed.
40098         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40099         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40100         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40101         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40102         jm_AC_HEADER_INTTYPES_H.
40103         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40104
40105         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40106
40107         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40108         Quote first arg of AC_DEFUN.
40109         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40110         since they are needed to parse the include file even if we need
40111         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40112         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40113         but with opposite signedness.
40114
40115 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40116
40117         Merge 'exclude' changes from tar 1.13.22.
40118         This fixes one or two unlikely storage allocation overflow bugs,
40119         but doesn't change user-visible behavior otherwise.
40120
40121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40122
40123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40124         (jm_PREREQ_EXCLUDE): New macro.
40125
40126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40127
40128         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40129         tm to be declared.
40130
40131 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40132
40133         * lib/hash.c: Remove '2001' from copyright notice.
40134
40135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40136
40137         * lib/full-write.h: New file.
40138         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40139         * lib/full-write.c: Correct credits, as cccp.c no longer
40140         exists and anyway it was so heavily changed from the old cccp
40141         code as to be unrecognizable.  Include full-write.h.
40142         (full_write) Return size_t, with short writes meaning failure.
40143         All callers changed.  This fixes a bug with large buffers
40144         on 64-bit hosts.
40145         * lib/utime.c: Include full-write.h.
40146
40147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40148
40149         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40150         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40151         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40152         Include if available.
40153         (<xalloc.h>): Include
40154         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40155         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40156         collide with FNM macros.
40157         (struct patopts): New struct.
40158         (struct exclude): Use it, as exclude patterns now come with options.
40159         (new_exclude): Support above changes.
40160         (new_exclude, add_exclude_file):
40161         Initial size must now be a power of two to simplify overflow checking.
40162         (free_exclude, fnmatch_no_wildcards): New function.
40163         (excluded_filename): No longer requires options arg, as the options
40164         are determined by add_exclude.  Now returns bool, not int.
40165         (excluded_filename, add_exclude):
40166         Add support for the fancy new exclusion options.
40167         (add_exclude, add_exclude_file): Now takes int options arg.
40168         Check for arithmetic overflow when computing sizes.
40169         (add_exclude_file): xrealloc might modify errno, so don't
40170         realloc until after errno might be used.
40171
40172         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40173         New macros.
40174         (free_exclude): New decl.
40175         (add_exclude, add_exclude_file): Now takes int options arg.
40176         (excluded_filename): No longer requires options arg, as the options
40177         are determined by add_exclude.  Now returns bool, not int.
40178
40179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40180
40181         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40182
40183 2001-08-27  Jim Meyering  <meyering@lucent.com>
40184
40185         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40186
40187         * lib/version-etc.c (N_): Remove definition.
40188         Revert most of last change.
40189         Instead, simply don't mark the `Copyright...' string for translation.
40190         Based on advice from Paul Eggert.
40191
40192         * lib/strtoxmax.c: Tweak comment.
40193
40194 2001-08-26  Jim Meyering  <meyering@lucent.com>
40195
40196         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40197
40198         * m4/xstrtoimax.m4: New file.
40199         * m4/xstrtoumax.m4: Add comments explaining why we
40200         AC_REPLACE_FUNCS(strtol).
40201
40202 2001-08-26  Jim Meyering  <meyering@lucent.com>
40203
40204         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40205         of copyright with `%s' so translators don't get an untranslated
40206         message in 2002.
40207         (COPYRIGHT_YEAR): Define.
40208         (version_etc): Use fprintf rather than fputs.
40209         Suggestion from Ulrich Drepper.
40210
40211         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40212
40213         * lib/strtoll.c: New file, from GNU libc.
40214         * lib/xstrtoimax.c: New file.
40215
40216         * lib/xstrtol.h: Add xstrtoimax.
40217         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40218         * lib/strtoimax.c: New file.  Likewise, but first define
40219         STRTOUXMAX_SIGNED.
40220
40221         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40222         ...
40223         * lib/strtoxmax.c: ... then renamed to this.
40224
40225 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40226
40227         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40228         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40229         (jm_AC_TYPE_INTMAX_T): New macro.
40230         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40231
40232         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40233
40234         * m4/longlong.m4: Renamed from ulonglong.m4.
40235         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40236         * m4/uintmax_t.m4: Removed.
40237
40238 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40239
40240         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40241         Port to Solaris 8, where 'sed' requires a space after the 'r'
40242         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40243         Redirect output to $tmp just once.
40244
40245 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40246
40247         * lib/addext.c (<errno.h>): Include.
40248         (errno): Declare if not defined.
40249         (addext): Work correctly when pathconf returns -1 and leaves
40250         errno alone because there is no limit.  Also, work even if
40251         pathconf returns a value greater than SIZE_MAX.
40252
40253 2001-08-12  Jim Meyering  <meyering@lucent.com>
40254
40255         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40256         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40257         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40258         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40259         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40260         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40261         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40262         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40263         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40264         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40265         utime.m4, utimes.m4, xstrtoumax.m4:
40266         Quote the first argument in each use of AC_DEFUN.
40267
40268 2001-08-12  Jim Meyering  <meyering@lucent.com>
40269
40270         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40271         Simply `return getcwd (NULL, 0);'.
40272         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40273         Use 1300 as initial value for length, not PATH_MAX.
40274
40275         * lib/pathmax.h: Clean up cpp syntax.
40276
40277 2001-08-12  Jim Meyering  <meyering@lucent.com>
40278
40279         * lib/gettimeofday.c: New file.
40280         * lib/gtod.h: New file.
40281         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40282
40283 2001-08-05  Jim Meyering  <meyering@lucent.com>
40284
40285         * m4/jm-macros.m4: Require autoconf-2.52.
40286
40287 2001-08-04  Jim Meyering  <meyering@lucent.com>
40288
40289         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40290         stmt, to get in sync with glibc.
40291
40292 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40293
40294         The following changes are from gettext 0.10.39 as maintained by
40295         Bruno Haible.
40296
40297         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40298         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40299         with inverted sense.  All uses changed.
40300
40301         * lib/mbswidth.c: Don't include <limits.h>.
40302         Include <stdlib.h> and <string.h> unconditionally.
40303         (iswcntrl, mbsinit, ISCNTRL): New macros.
40304         (mbsnwidth): Use K&R style function declarations.
40305         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40306         can optimize it when MB_CUR_MAX == 1.
40307         The width of control characters is zero, not 1.
40308
40309 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40310
40311         The following changes are from gettext 0.10.39 as maintained by
40312         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40313
40314         * m4/codeset.m4: Upgrade to serial AM1.
40315         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40316         all uses changed.  Quote first arg of AC_DEFUN.
40317         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40318
40319         * m4/iconv.m4: Upgrade to serial AM2.
40320         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40321         Add --with-libconv-prefix.
40322         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40323         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40324         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40325         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40326         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40327
40328         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40329         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40330         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40331         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40332         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40333         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40334         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40335         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40336         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40337
40338         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40339         string.h any more.
40340
40341         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40342         not the default value.
40343
40344         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40345         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40346         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40347         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40348         Also check for iswcntrl, used for wcwidth fallback.
40349         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40350         to Autoconf 2.13.
40351
40352 2001-08-03  Jim Meyering  <meyering@lucent.com>
40353
40354         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40355         as it was in the original.  Reported by Paul Eggert.
40356
40357 2001-07-16  Jim Meyering  <meyering@lucent.com>
40358
40359         * m4/gettimeofday.m4: New file.
40360         Prompted by a report from Bernhard Baehr.
40361
40362 2001-07-15  Jim Meyering  <meyering@lucent.com>
40363
40364         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40365         stuff. Now it's in ../Makefile.cfg.
40366
40367 2001-07-15  Jim Meyering  <meyering@lucent.com>
40368
40369         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40370         (BUILT_SOURCES): Add unlocked-io.h.
40371         (io_functions): Define.
40372         (unlocked-io.h): New rule.
40373         (DISTCLEANFILES): Add unlocked-io.h.
40374         (all-local): Depend on unlocked-io.h, to ensure it is created.
40375
40376         * lib/unlocked-io.hin: New file
40377
40378         * lib/regex.c: Update from glibc.
40379
40380 2001-07-05  Jim Meyering  <meyering@lucent.com>
40381
40382         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40383         recommendation.
40384         (libfetish_a_SOURCES): Put all .h files here instead.
40385         Remove a thus-exposed (better checks in automake) duplicate and
40386         two unnecessary .h files.
40387
40388 2001-07-04  Jim Meyering  <meyering@lucent.com>
40389
40390         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40391         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40392         distcheck failure.
40393
40394 2001-07-02  Jim Meyering  <meyering@lucent.com>
40395
40396         The following changes were prompted by suggestions from Bruno Haible.
40397
40398         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40399         is now generated.
40400         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40401         definition of EXTRA_DIST.
40402         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40403         ensure that the generated file is created/updated whenever the list
40404         of $(unlocked_functions) is changed.
40405         (jm-glibc-io.m4): New rule.
40406         (unlocked-io.h): New rule -- currently unused.
40407
40408 2001-06-24  Jim Meyering  <meyering@lucent.com>
40409
40410         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40411         unmatched right bracket, rather than kludging it with an extra,
40412         falsely-matching quote in a comment.  Patch by Akim Demaille.
40413
40414 2001-06-11  Jim Meyering  <meyering@lucent.com>
40415
40416         * lib/regex.c: Update from GNU libc.
40417
40418 2001-05-27  Jim Meyering  <meyering@lucent.com>
40419
40420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40421         Check for ut_type in struct utmp.
40422
40423 2001-05-27  Jim Meyering  <meyering@lucent.com>
40424
40425         * lib/readutmp.h (UT_TYPE): Define.
40426
40427 2001-05-24  Jim Meyering  <meyering@lucent.com>
40428
40429         * lib/argmatch.c: Include "quote.h".
40430         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40431         quote function.  Reported by Göran Uddeborg.
40432
40433 2001-05-22  Jim Meyering  <meyering@lucent.com>
40434
40435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40436         now that we use the package-supplied version unconditionally.
40437         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40438
40439 2001-05-21  Jim Meyering  <meyering@lucent.com>
40440
40441         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40442         shell syntax errors.
40443
40444 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40445
40446         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40447
40448 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40449
40450         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40451         Don't bother to check library strftime, since
40452         we'll be using our own my_strftime function anyway.
40453         Define my_strftime instead of strftime.
40454
40455 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40456
40457         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40458         which is not yet declared.
40459
40460 2001-05-15  Jim Meyering  <meyering@lucent.com>
40461
40462         * m4/regex.m4: Use proper quoting so brackets appear in the test
40463         program.
40464         Reported by, and with help from, Bruno Haible.
40465
40466 2001-05-13  Jim Meyering  <meyering@lucent.com>
40467
40468         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40469         undefined.
40470
40471 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40472
40473         dirname code cleanup.  base_name now behaves more compatibly
40474         with POSIX basename when given file names that have trailing
40475         slashes, and similarly for dir_name.  Add new primitives
40476         base_len and dir_len.  Put the directory-name-related decls
40477         into dirname.h.
40478
40479         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40480         * lib/backupfile.c (base_name): Likewise.
40481         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40482         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40483         * lib/makepath.c (strip_trailing_slashes): Likewise.
40484         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40485         ISSLASH): Likewise.
40486         * lib/rename.c (strip_trailing_slashes): Likewise.
40487         * lib/same.c (base_name): Likewise.
40488         * lib/stripslash.c (ISSLASH): Likewise.
40489
40490         * lib/addext.c: Include <dirname.h> after size_t is defined.
40491         * lib/backupfile.c: Likewise.
40492
40493         * lib/addext.c (addext): Use base_len to trim redundant
40494         trailing slashes instead of doing it ourselves.
40495         But do not trim the last slash if it is not redundant.
40496
40497         * lib/backupfile.c (find_backup_file_name,
40498         max_backup_version): Use base_len instead of rolling it ourselves.
40499         Handle the case of "" and (on DOS) "C:" correctly.
40500
40501         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40502         needed. Include <string.h>, <dirname.h>.
40503         (base_name): Allow file names ending in slashes, other than names
40504         that are all slashes.  In this case, return the basename followed
40505         by the slashes.  This is more general, and can be used in places
40506         where the original base_name purposely had an assertion failure.
40507         (base_len): New function.
40508
40509         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40510         Do not include <assert.h>; no longer needed.
40511         Include xalloc.h.
40512         (memrchr): Remove decl.
40513         (dir_name_r): Remove.
40514         (dir_len): Renamed from dirlen.  All callers changed.
40515         Rewrite in terms of base_name, for simplicity and consistency.
40516         (dir_name): Never return NULL.  All callers changed.
40517         Do not include <stdlib.h> in test program; no longer needed.
40518         return 0; is fine for test program.
40519
40520         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40521         New macros.
40522         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40523
40524         * lib/path-concat.c (path_concat): Use base_len to compute
40525         base length, not strlen; this means we cannot rely on memcpy
40526         to null-terminate.
40527
40528         * lib/same.c (STREQ): Remove.
40529         (same_name): Handle the case where the basename ends in trailing '/'.
40530
40531         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40532         a slash was stripped.  Do not strip the last slash after a
40533         file system prefix.
40534
40535 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40536
40537         * lib/Makefile.am (libfetish_a_SOURCES):
40538         Add strftime.c, since we now compile it on all hosts.
40539
40540         * lib/strftime.c (my_strftime):
40541         Define to nstrftime if emacs, but only if my_strftime is not defined.
40542         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40543         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40544         Add one more extra argument: a nanoseconds value.
40545         All uses changed.
40546         (ns): New macro.
40547         (my_strftime function): Add %N format.
40548         (emacs_strftimeu): Renamed from emacs_strftime,
40549         with extra ut argument.
40550
40551 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40552
40553         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40554
40555 2001-04-21  Jim Meyering  <meyering@lucent.com>
40556
40557         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40558         doesn't interfere.
40559
40560 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40561
40562         * m4/ftruncate.m4: Check for chsize.
40563         Link with ftruncate.o unconditionally if ftruncate is missing.
40564         This was required when cross-compiling to i586-mingw32msvc.
40565
40566 2001-04-08  Jim Meyering  <meyering@lucent.com>
40567
40568         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40569         recomputed; that's necessary when the offset spans a DST transition.
40570         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40571
40572 2001-04-02  Jim Meyering  <meyering@lucent.com>
40573
40574         * lib/regex.h, regex.c: Update from GNU libc.
40575
40576 2001-03-24  Jim Meyering  <meyering@lucent.com>
40577
40578         * m4/jm-macros.m4: Require autoconf-2.49d.
40579
40580 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40581
40582         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40583
40584 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40585
40586         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40587
40588 2001-03-17  Jim Meyering  <meyering@lucent.com>
40589
40590         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40591         now that the version in autoconf is equivalent.
40592         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40593
40594         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40595         Suggestion from Akim Demaille.
40596
40597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40598         (jm_PREREQ_TEMPNAME): New function.
40599
40600 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40601
40602         * lib/tempname.c (uint64_t): Define to uintmax_t if
40603         not defined, and if UINT64_MAX is not defined.
40604         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40605         Reported by John David Anglin.
40606
40607 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40608
40609         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40610         resolve alias if codeset is empty.
40611         * lib/config.charset (BeOS): Use wildcard syntax.
40612
40613 2001-03-13  Jim Meyering  <meyering@lucent.com>
40614
40615         * lib/path-concat.c (path_concat)
40616         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40617         concatenating e.g., `C:' and `foo'.
40618         From Bruno Haible.
40619
40620 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40621
40622         * lib/localcharset.c (locale_charset): Don't use
40623         setlocale(LC_CTYPE,NULL). Don't return NULL.
40624         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40625
40626 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40627
40628         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40629         support for DOS/DJGPP.
40630
40631 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40632
40633         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40634         lacks mkstemp.  Compile our own tempname.c if we compile our own
40635         mkstemp.c, as mkstemp relies on tempname.
40636
40637 2001-03-01  Jim Meyering  <meyering@lucent.com>
40638
40639         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40640         AH_VERBATIM really does output its argument verbatim.
40641
40642 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40643
40644         * lib/Makefile.am (libfetish_a_SOURCES):
40645         Add dup-safer.c, fopen-safer.c.
40646         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40647
40648         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40649         * lib/unistd-safer.h: New files.
40650
40651 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40652
40653         The mkstemp replacement is taken from glibc 2.2.2, with some
40654         portability fixes for use outside glibc, as follows:
40655
40656         * lib/tempname.c (struct_stat64): New macro.
40657         (direxists, __gen_tempname): Use it.
40658         This avoids a portability problem with Solaris 8.
40659
40660         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40661         (<stddef.h>, <stdint.h>, <string.h>):
40662         Include only if STDC_HEADERS || _LIBC.
40663         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40664         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40665         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40666         (__set_errno): Define this macro if <errno.h> doesn't.
40667         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40668         Define these macros if <stdio.h> doesn't.
40669         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40670         Define these macros if <sys/stat.h>
40671         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40672         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40673         __xstat64): Define if not _LIBC.
40674         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40675         (__gen_tempname): Invoke gettimeofday only if
40676         HAVE_GETTIMEOFDAY || _LIBC;
40677         otherwise, fall back on plain "time".
40678         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40679
40680         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40681
40682         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40683
40684 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40685
40686         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40687
40688 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40689
40690         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40691         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40692         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40694
40695 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40696
40697         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40698         Remove workaround macros for hosts that have mbrtowc but not
40699         mbstate_t, as we now insist on proper declarations for both
40700         before using mbrtowc.
40701
40702 2001-02-17  Jim Meyering  <meyering@lucent.com>
40703
40704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40705         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40706         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40707         UnixWare 7.1.1.
40708
40709         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40710         rather than AC_CACHE_VAL.
40711
40712 2001-02-17  Jim Meyering  <meyering@lucent.com>
40713
40714         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40715         around included file name.
40716
40717         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40718
40719         * lib/strftime.c: Update from GNU libc (the only changes were to
40720         comments).
40721
40722 2001-02-17  Jim Meyering  <meyering@lucent.com>
40723
40724         * lib/regex.c: Update from libc.
40725
40726 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40727
40728         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40729         clash.
40730
40731 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40732
40733         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40734         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40735         Reported by Mark Hounschell via Paul Eggert.
40736
40737 2001-02-07  Jim Meyering  <meyering@lucent.com>
40738
40739         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40740
40741 2001-02-05  Jim Meyering  <meyering@lucent.com>
40742
40743         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40744         it includes the patch required for `large file' support with at least
40745         HP-UX's 10.20 /bin/cc.
40746
40747 2001-02-03  Jim Meyering  <meyering@lucent.com>
40748
40749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40750         AS_IF, now that it works once again (mysteriously).
40751         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40752
40753 2001-01-30  Jim Meyering  <meyering@lucent.com>
40754
40755         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40756         * m4/chown.m4: Rename conftestchown to conftest.chown.
40757         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40758         s/conftestdir2/conftest.d2/.
40759         * m4/utimes.m4: s/conftestdata/conftest.data/
40760         Inspired by Pavel Roskin's change in autoconf.
40761
40762 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40763
40764         * lib/config.charset: Update for FreeBSD 4.2.
40765
40766 2001-01-27  Jim Meyering  <meyering@lucent.com>
40767
40768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40769         a use of AS_IF.
40770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40771
40772 2001-01-26  Jim Meyering  <meyering@lucent.com>
40773
40774         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40775         quotearg.c includes it.
40776
40777 2001-01-26  Jim Meyering  <meyering@lucent.com>
40778
40779         * lib/quotearg.c: Include stddef.h.
40780         * lib/quote.c: Include stddef.h.
40781         Reported by Axel Kittenberger.
40782
40783         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40784         line in double quotes so that it evokes a better diagnostic.
40785         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40786         Reported by Axel Kittenberger.
40787
40788 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40789
40790         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40791         as if it was a `charset'.
40792
40793 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40794
40795         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40796         has const.
40797
40798 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40799
40800         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40801         to avoid a warning.  Add back 'const' to inptr.
40802
40803 2001-01-20  Jim Meyering  <meyering@lucent.com>
40804
40805         Be sure that headers are checked before used in code compiled
40806         for the type checks.
40807         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40808         In place of that, invoke jm_CHECK_ALL_TYPES.
40809         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40810         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40811         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40812         The check for ssize_t was mistakenly run before the test for unistd.h.
40813
40814         The configure-time check for stdbool.h was missing.
40815         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40816         (jm_PREREQ_HASH): New function.
40817
40818 2001-01-17  Jim Meyering  <meyering@lucent.com>
40819
40820         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40821         for autoconf-2.49c.
40822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40823
40824 2001-01-16  Jim Meyering  <meyering@lucent.com>
40825
40826         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40827         From Bruno Haible.
40828
40829 2001-01-14  Jim Meyering  <meyering@lucent.com>
40830
40831         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40832         foo and bar.  Create conftestdir/ in the script, not in the C code.
40833         Remove directories in the script, not in the C code.
40834         Remove conftestdir{,2} before trying to create the directory.
40835         Make the entire configure script fail if the mkdir fails.
40836
40837 2001-01-14  Jim Meyering  <meyering@lucent.com>
40838
40839         * lib/rename.c: New file.  From Volker Borchert.
40840         Include stdlib.h, string.h or strings.h, and xalloc.h.
40841         Use strip_trailing_slashes rather than open-coding it.
40842
40843 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40844
40845         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40846
40847 2001-01-03  Jim Meyering  <meyering@lucent.com>
40848
40849         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40850         of local `inptr' to avoid warning with some system declarations of
40851         iconv.
40852
40853 2001-01-02  Volker Borchert  <bt@teknon.de>
40854
40855         * m4/rename.m4: New file.
40856         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40857
40858 2001-01-01  Jim Meyering  <meyering@lucent.com>
40859
40860         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40861         even on systems with utmpx.h.  It's necessary for the declaration of
40862         utmp's ut_user member.  Reported by Andreas Jaeger.
40863
40864         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40865         available. They are required for the declarations of getgrgid and
40866         getpwuid resp.
40867         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40868         Reported by Andreas Jaeger.
40869
40870 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40871
40872         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40873         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40874         so `make install' also works in VPATH builds.
40875
40876 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40877
40878         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40879         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40880         can be used in subdirectories.
40881
40882 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40883
40884         * lib/modechange.c: Do not assume that mode_t uses the
40885         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40886         the other-execute bit of FOO even if S_IXOTH != 1.
40887
40888         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40889         WOTH, XOTH, ALLM): New macros.
40890         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40891          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40892         Use them.
40893         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40894         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40895         (mode_compile):
40896         No need to use uintmax_t; unsigned long is long enough.
40897         Don't bother to get suffix since we don't use it.
40898
40899 2000-12-26  Jim Meyering  <meyering@lucent.com>
40900
40901         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40902         better with autoheader.
40903
40904 2000-12-24  Jim Meyering  <meyering@lucent.com>
40905
40906         * lib/hash.c (is_prime): Return explicit boolean values.
40907         (hash_get_first): Return NULL to appease Irix5.6's 89.
40908         Reported by Nelson Beebe.
40909
40910 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40911
40912         * lib/localcharset.c (locale_charset): Add support for Win32.
40913
40914 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40915
40916         * lib/physmem.h, lib/physmem.c: New files.
40917
40918         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40919         (noinst_HEADERS): Add physmem.h.
40920
40921         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40922         't' for compatibility with Solaris 8 sort.
40923
40924 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40925
40926         * lib/config.charset: Add support for BeOS.
40927
40928 2000-12-17  Jim Meyering  <meyering@lucent.com>
40929
40930         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40931         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40932
40933 2000-12-16  Jim Meyering  <meyering@lucent.com>
40934
40935         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40936         N and M) would have treated it like `chown N:N FILE'.
40937
40938         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40939
40940 2000-12-16  Jim Meyering  <meyering@lucent.com>
40941
40942         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40943         SHELLS_FILE to a file name that's useful on djgpp systems.
40944         Include stdlib.h.
40945         (ADDITIONAL_DEFAULT_SHELLS): Define.
40946         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40947         Based mostly on a patch from Prashant TR.
40948
40949 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40950
40951         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40952         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40953         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40954
40955 2000-12-08  Andreas Schwab  <schwab@suse.de>
40956
40957         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40958         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40959
40960 2000-12-07  Jim Meyering  <meyering@lucent.com>
40961
40962         * lib/stripslash.c (ISSLASH): Define.
40963         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40964         `/'.
40965         From Prashant TR.
40966
40967         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40968         (dir_name_r): Declare this function as static.
40969         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40970         manifest itself on a name containing a mix of slashes and
40971         backslashes.
40972         Make this function work with names starting with a DOS-style
40973         drive letter and colon prefix.
40974         (dir_name): Append `.' if necessary.
40975         Based mostly on patches from Prashant TR and Eli Zaretskii.
40976
40977         * lib/dirname.h (dir_name_r): Remove prototype.
40978
40979 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40980
40981         * m4/off_t-format.m4: Remove this file.
40982         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40983
40984 2000-12-06  Jim Meyering  <meyering@lucent.com>
40985
40986         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40987         replacement strtoull, we may well need the replacement strtoul, too.
40988         Check for declarations of strtoul and strtoull.
40989         Check for strtol.  Mainly as a cue to cause automake to include
40990         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40991         Check for limits.h -- strtol.c needs it.
40992
40993 2000-12-05  Jim Meyering  <meyering@lucent.com>
40994
40995         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40996
40997 2000-12-04  Jim Meyering  <meyering@lucent.com>
40998
40999         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41000         Also include memory.h, stdlib.h, unistd.h if appropriate.
41001         Reported by Andreas Jaeger (conflicting declaration of malloc).
41002
41003 2000-12-02  Jim Meyering  <meyering@lucent.com>
41004
41005         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41006         * m4/jm-macros.m4 (jm_MACROS): require it.
41007
41008 2000-12-02  Jim Meyering  <meyering@lucent.com>
41009
41010         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41011
41012 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41013
41014         * lib/memrchr.c: Include <config.h> before any system include file.
41015
41016 2000-11-30  Jim Meyering  <meyering@lucent.com>
41017
41018         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41019
41020 2000-11-30  Jim Meyering  <meyering@lucent.com>
41021
41022         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41023
41024 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41025
41026         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41027
41028 2000-11-26  Jim Meyering  <meyering@lucent.com>
41029
41030         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41031
41032 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41033
41034         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41035         size of (size_t) -1; it's not portable.
41036
41037 2000-11-17  Jim Meyering  <meyering@lucent.com>
41038
41039         * lib/strstr.c: Update from GNU libc.
41040
41041 2000-11-17  Akim Demaille  <akim@epita.fr>
41042
41043         * lib/obstack.h: Formatting changes.
41044         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
41045         prevent type checking.
41046         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
41047         cast the value to (void *): assigning a `foo *' to a `void *'
41048         variable is valid.
41049         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
41050
41051 2000-11-16  Jim Meyering  <meyering@lucent.com>
41052
41053         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
41054
41055 2000-11-11  Jim Meyering  <meyering@lucent.com>
41056
41057         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41058
41059 2000-11-10  Jim Meyering  <meyering@lucent.com>
41060
41061         * lib/obstack.h: Update from GNU libc.
41062         * lib/obstack.c: Likewise.
41063
41064 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41065
41066         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41067
41068 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41069
41070         * lib/getusershell.c (setusershell): Use rewind rather than
41071         fseek/fseeko, to avoid configuration hassles with fseeko.
41072         Don't bother opening SHELLS_FILE if shellstream is NULL;
41073         it's not necessary.
41074
41075 2000-11-05  Jim Meyering  <meyering@lucent.com>
41076
41077         * lib/makepath.h (make_dir): Declare.
41078         * lib/makepath.c (make_dir): Remove `static' attribute.
41079         Tweak a comment.
41080
41081 2000-11-04  Jim Meyering  <meyering@lucent.com>
41082
41083         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41084
41085 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41086
41087         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41088         last one in a bucket, advance to the next bucket.
41089
41090 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41091
41092         * lib/fnmatch.c: Do not comment out all the code if we are using
41093         the GNU C library, because in some cases we are replacing buggy
41094         code in the GNU C library itself.
41095
41096 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41097
41098         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41099         (regex_compile): Catch bogus \(\1\).
41100
41101 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41102
41103         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41104         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41105         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41106
41107 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41108
41109         * lib/error.h, getline.h, modechange.h:
41110         Remove "2000" from Copyright line, as the file hasn't been
41111         changed this year other than in the copyright notice.
41112
41113         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41114         was changed this year.
41115
41116 2000-10-29  Jim Meyering  <meyering@lucent.com>
41117
41118         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41119         renaming.
41120         * m4/ls-mntd-fs.m4: Likewise
41121
41122 2000-10-29  Jim Meyering  <meyering@lucent.com>
41123
41124         * lib/xstat.in: Fix grammar in comment.
41125
41126 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41127
41128         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41129         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41130         doesn't define __restrict_arr.
41131
41132 2000-10-28  Jim Meyering  <meyering@lucent.com>
41133
41134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41135         (jm_PREREQ_MEMCHR): New function.
41136
41137 2000-10-28  Jim Meyering  <meyering@lucent.com>
41138
41139         * lib/memchr.c: Update from libc.
41140         Adjust for portability:
41141         [HAVE_STDLIB_H]: Include stdlib.h.
41142         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41143         Undef __memchr, too.
41144         [!weak_alias]: Define __memchr to memchr.
41145
41146         * lib/regex.c: Update from libc.
41147         * lib/regex.h: Likewise.
41148         * lib/getopt1.c: Likewise.
41149         * lib/memcmp.c: Likewise.
41150
41151         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41152         Avoid using fseek, when possible -- it's broken by design.
41153         Patch by Ulrich Drepper.
41154
41155 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41156
41157         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41158         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41159         Giving in to popular pressure to shut up the compiler with casts.
41160
41161 2000-10-26  Jim Meyering  <meyering@lucent.com>
41162
41163         * lib/strftime.c: Update from libc.
41164
41165 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41166
41167         * regex.c: More `unsigned char' -> `re_char' changes.
41168         Also change several `int' into `re_wchar_t'.
41169         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41170         (PUSH_FAILURE_POINTER): Don't cast any more.
41171         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41172         We want GCC to complain, since this piece of code makes
41173         re_match non-reentrant, which *should* be fixed.
41174         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41175         (EXTEND_BUFFER): Use RETALLOC.
41176         (SET_LIST_BIT): Don't cast.
41177         (re_wchar_t): New type.
41178         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41179         that those two functions will always properly return.
41180         (IMMEDIATE_QUIT_CHECK): Cast to void.
41181         (analyse_first): Use recursion rather than an explicit stack.
41182         (re_compile_fastmap): Can't fail anymore.
41183         (re_search_2): Don't check re_compile_fastmap for failure.
41184         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41185         Now also sets the new value (passed in a new argument).
41186         (re_match_2_internal): Use it.
41187         Also, use a new var `reg' of type size_t when looping through regs
41188         rather than reuse the inappropriate `mcnt'.
41189
41190 2000-10-25  Jim Meyering  <meyering@lucent.com>
41191
41192         * lib/obstack.c: Update from libc.
41193
41194 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41195
41196         * regex.c (regex_compile): Change the way of handling a range from
41197         a char less than 256 to a char not less than 256.
41198
41199 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41200
41201         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41202         NT-Emacs only.
41203         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41204         so that re_search functions only quit when callers expect them to.
41205
41206 2000-10-23  Jim Meyering  <meyering@lucent.com>
41207
41208         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41209         wrong.  That set_locale call must not have any side effects.
41210         From Paul Eggert.
41211
41212 2000-10-22  Jim Meyering  <meyering@lucent.com>
41213
41214         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41215         [CYCLIC]: Remove now-unused definition.
41216
41217         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41218         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41219         Suggestion from Ulrich Drepper.
41220
41221 2000-10-21  Jim Meyering  <meyering@lucent.com>
41222
41223         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41224         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41226
41227 2000-10-21  Jim Meyering  <meyering@lucent.com>
41228
41229         * lib/dirname.c (memrchr): Declare if necessary.
41230         (dir_name): Remove the restriction that there be no
41231         trailing slashes.  Now, this code skips past them, effectively
41232         ignoring them.
41233         [TEST_DIRNAME] (main): New unit tests.
41234
41235         * lib/memrchr.c: New file from GNU libc.
41236         Undef __memrchr, too.
41237         [!weak_alias]: Define __memrchr to memrchr.
41238         Guard weak_alias use with `#ifdef weak_alias'.
41239
41240 2000-10-21  Jim Meyering  <meyering@lucent.com>
41241
41242         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41243         (dir_name): Use dir_name_r.
41244         * lib/dirname.h (dir_name_r): Declare it.
41245
41246 2000-10-17  Jim Meyering  <meyering@lucent.com>
41247
41248         * lib/quote.h (PARAMS): Define and use.
41249         Reported by Akim Demaille.
41250
41251         * lib/getopt.c: Update from libc.
41252
41253 2000-10-16  Jim Meyering  <meyering@lucent.com>
41254
41255         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41256         setlocale.
41257         From Jan Fedak.
41258
41259 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41260
41261         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41262
41263 2000-09-25  Jim Meyering  <meyering@lucent.com>
41264
41265         * lib/md5.h (rol): Define (from GnuPG).
41266
41267         * lib/sha.c: Give credit (GnuPG) where due.
41268         (M): Use rol rather than open-coding it.
41269         Add a FIXME comment.
41270
41271 2000-09-21  Jim Meyering  <meyering@lucent.com>
41272
41273         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41274         Reported by Michael Stone.
41275
41276 2000-09-20  Jim Meyering  <meyering@lucent.com>
41277
41278         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41279         (noinst_HEADERS): Add sha.h.
41280         Based on code from Scott G. Miller and from GnuPG.
41281
41282 2000-09-18  Jim Meyering  <meyering@lucent.com>
41283
41284         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41285         LIBS. Otherwise, everyone ends up linking with -lelf for some
41286         configurations.
41287         Reported by Mike Stone.
41288
41289 2000-09-15  Jim Meyering  <meyering@lucent.com>
41290
41291         * lib/regex.c: Update from libc.
41292
41293 2000-09-10  Jim Meyering  <meyering@lucent.com>
41294
41295         * lib/getopt.c (_getopt_internal): Update from glibc.
41296
41297 2000-09-09  Jim Meyering  <meyering@lucent.com>
41298
41299         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41300         think it should be used as a general replacement for isascii.
41301         * lib/fnmatch.c: Likewise.
41302         * lib/mbswidth.c: Likewise
41303         * lib/regex.c: Likewise.
41304
41305         Don't use atoi.
41306         * lib/userspec.c: Include sys/param.h and limits.h.
41307         Include xstrtol.h.
41308         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41309         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41310         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41311         UID, GID.  Check range.
41312
41313 2000-09-06  Jim Meyering  <meyering@lucent.com>
41314
41315         * lib/getopt.c (_getopt_internal): Update from glibc.
41316
41317 2000-08-30  Jim Meyering  <meyering@lucent.com>
41318
41319         * lib/strftime.c: Merge in changes from GNU libc.
41320
41321 2000-08-26  Jim Meyering  <meyering@lucent.com>
41322
41323         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41324         * m4/fpending.m4: New file.
41325
41326 2000-08-26  Jim Meyering  <meyering@lucent.com>
41327
41328         * lib/closeout.c: Include "__fpending.h".
41329         (close_stdout_status): Return right away if there's nothing to flush.
41330
41331         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41332         * lib/__fpending.c: New file.
41333         * lib/__fpending.h: New file.
41334
41335 2000-08-20  Jim Meyering  <meyering@lucent.com>
41336
41337         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41338         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41339         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41340
41341 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41342
41343         Improve fileutils installation on systems where running
41344         programs (like install) can't be unlinked.
41345         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41346         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41347
41348 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41349
41350         Standardize on "memory exhausted" instead of "Memory exhausted"
41351         or "virtual memory exhausted".
41352         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41353         "virtual memory exhausted".
41354         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41355         our own message.
41356         * lib/userspec.c (parse_user_spec): Likewise.
41357         * lib/bumpalloc.h: comment fix
41358         * lib/same.c, userspec.c: Include xalloc.h.
41359
41360         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41361         not char *const and pointing to a constant array.
41362         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41363         (xrealloc): Comment fix.
41364
41365         * lib/userspec.c (parse_user_spec):
41366         Don't translate a message until just before returning,
41367         to avoid unnecessary translation.
41368
41369 2000-08-07  Jim Meyering  <meyering@lucent.com>
41370
41371         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41372         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41373         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41374         getgroups.c, gethostname.c, getopt.h, group-member.c,
41375         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41376         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41377         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41378         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41379         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41380         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41381         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41382         yesno.c: Back out Copyright date changes for each file with no change
41383         this year.  This eases coordination with other programs using the same
41384         source code modules.  From Paul Eggert.
41385
41386 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41387
41388         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41389         not char, for compatibility with glibc 2.1.3 strftime.c.
41390
41391 2000-08-03  Greg McGary  <greg@mcgary.org>
41392
41393         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41394         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41395         (EXTEND_BUFFER): Use them.
41396
41397 2000-08-01  Jim Meyering  <meyering@lucent.com>
41398
41399         * lib/dirname.c (ISSLASH): Define.
41400         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41401         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41402         both `\' and `/' may be use as path separators.
41403         Based on a patch from Prashant TR.
41404
41405 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41406
41407         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41408         slot vector a constant, since it might get modified.
41409
41410 2000-07-31  Jim Meyering  <meyering@lucent.com>
41411
41412         * lib/xmalloc.c: Use `virtual memory exhausted', not
41413         `Memory exhausted'.
41414         * lib/obstack.c (print_and_abort): Likewise.
41415
41416 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41417
41418         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41419         buffer, so that the caller can always quote one small
41420         component of a "memory exhausted" message in slot 0.
41421         From a suggestion by Jim Meyering.
41422
41423 2000-07-30  Jim Meyering  <meyering@lucent.com>
41424
41425         * lib/makepath.c (make_path): Quote the other instance, too.
41426
41427         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41428         (STATIC_BUF_SIZE): Define.
41429         (quotearg_n_options): Use only statically allocated storage when
41430         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41431         than STATIC_BUF_SIZE.
41432
41433 2000-07-29  Jim Meyering  <meyering@lucent.com>
41434
41435         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41436         * lib/dirname.c (dir_name): Likewise.
41437
41438         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41439         `/'.
41440
41441         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41442         (dir_name): Assert that there are no trailing slashes.
41443
41444 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41445
41446         * lib/mbswidth.h (mbswidth): Add a flags argument.
41447         (mbswidth): New declaration.
41448         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41449         * lib/mbswidth.c (mbswidth): Add a flags argument.
41450         (mbsnwidth): New function.
41451
41452 2000-07-24  Jim Meyering  <meyering@lucent.com>
41453
41454         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41455
41456 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41457
41458         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41459
41460 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41461
41462         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41463         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41464         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41465         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41466         invoke multibyte primitives.
41467
41468 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41469
41470         * lib/quotearg.c:
41471         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41472         so that mbstate_t is always defined.
41473
41474         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41475         be 1 in at least one GCC installation, and this configuration
41476         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41477         performance on hosts that have mbrtowc but have only unibyte
41478         locales, but I assume these hosts are rare.
41479
41480 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41481
41482         * lib/mbswidth.c (_XOPEN_SOURCE):
41483         Don't define; this causes problems on Solaris 7.
41484         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41485
41486 2000-07-23  Jim Meyering  <meyering@lucent.com>
41487
41488         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41489         too: getgrgid, getpwuid, getuid.
41490
41491 2000-07-23  Jim Meyering  <meyering@lucent.com>
41492
41493         * lib/basename.c (base_name): Add an assertion.
41494
41495 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41496
41497         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41498         shadow its mbsinit function.
41499
41500 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41501
41502         * lib/mbswidth.h: New file.
41503         * lib/mbswidth.c: New file.
41504         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41505         (noinst_HEADERS): Add mbswidth.h.
41506
41507 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41508
41509         * lib/config.charset: Add support for FreeBSD. Improve support for
41510         HP-UX and IRIX 6.
41511
41512 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41513
41514         * m4/mbswidth.m4: New file.
41515         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41516
41517 2000-07-15  Jim Meyering  <meyering@lucent.com>
41518
41519         * lib/makepath.c: Include quote.h.
41520         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41521         corresponding argument in a `quote (...)' call.
41522         Give better diagnostics.
41523
41524         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41525         (noinst_HEADERS): Add quote.h.
41526
41527         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41528         from tar's src/misc.c.
41529         * lib/quote.h: New file.  Prototypes for same.
41530
41531 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41532
41533         From a suggestion by Bruno Haible.
41534         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41535         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41536         to decide whether to define the BeOS workaround macro;
41537         this adjusts to the change to AC_MBSTATE_T.
41538
41539 2000-07-14  Jim Meyering  <meyering@lucent.com>
41540
41541         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41542         jm_AC_TYPE_UINTMAX_T.
41543
41544 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41545
41546         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41547
41548         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41549         quotearg_buffer_restyled): Add support for
41550         clocale_quoting_style.  Undo previous change to
41551         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41552         and "{RIGHT QUOTATION MARK}" msgids.
41553
41554 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41555
41556         From a suggestion by Bruno Haible.
41557         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41558         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41559         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41560         and mbstate_t, to a single-part test that simply defines mbstate_t.
41561         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41562         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41563
41564 2000-07-10  Jim Meyering  <meyering@lucent.com>
41565
41566         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41567
41568         * m4/gnu-source.m4: Output to confdefs.h directly.
41569         Suggestion from Akim Demaille.
41570
41571 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41572
41573         The old behavior of quoting `like this' doesn't look good with
41574         newer, ISO-style fonts.  See:
41575         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41576
41577         Instead, quote "like this" by default.  Let the translator
41578         tailor the locale-specific quoting behavior by providing
41579         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41580
41581         * lib/quotearg.c (N_): New macro.
41582         (gettext_default): New function.
41583         (quotearg_buffer_restyled): Use
41584         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41585         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41586
41587 2000-07-09  Jim Meyering  <meyering@lucent.com>
41588
41589         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41590         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41591
41592         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41594
41595 2000-07-09  Jim Meyering  <meyering@lucent.com>
41596
41597         * lib/Most files: Update copyright dates to include 2000.
41598
41599 2000-07-08  Jim Meyering  <meyering@lucent.com>
41600
41601         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41602         if not defined.
41603         (xgethostname): Remove now-unnecessary #ifdef.
41604         Move declaration of `err' into loop where it's used.
41605
41606 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41607         and Bruno Haible  <haible@clisp.cons.org>
41608
41609         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41610         only if the test for an object-type mbstate_t fails.  This
41611         prevents us from mistakenly reporting that mbstate_t is a
41612         system object type after we "#define mbstate_t int" to work
41613         around its lack.
41614
41615 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41616         and Bruno Haible  <haible@clisp.cons.org>
41617
41618         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41619
41620 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41621
41622         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41623         to strerror_r.
41624         Include <ctype.h> for use of isalpha.
41625
41626 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41627
41628         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41629         by allocating a larger buffer. Test the gethostname return value for
41630         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41631         returns an error and ENAMETOOLONG isn't defined.
41632
41633 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41634
41635         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41636         dimension.
41637
41638 2000-07-04  Jim Meyering  <meyering@lucent.com>
41639
41640         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41641         of the deprecated AC_CHECKING.
41642
41643 2000-07-04  Jim Meyering  <meyering@lucent.com>
41644
41645         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41646         Reported by Bruno Haible.
41647
41648 2000-07-04  Jim Meyering  <meyering@lucent.com>
41649
41650         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41651         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41652         lacks mbrtowc.
41653
41654 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41655
41656         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41657         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41658
41659 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41660         and Bruno Haible  <haible@clisp.cons.org>
41661
41662         * lib/quotearg.c (mbrtowc):
41663         Assign to *pwc, and return 1 only if result is nonzero.
41664         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41665
41666 2000-07-03  Jim Meyering  <meyering@lucent.com>
41667
41668         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41669
41670 2000-07-03  Jim Meyering  <meyering@lucent.com>
41671
41672         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41673         This is necessary to get a definition of e.g., UTMP_FILE on
41674         HP-UX 10.20.
41675         From Bob Proulx.
41676
41677 2000-07-02  Jim Meyering  <meyering@lucent.com>
41678
41679         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41680
41681         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41682         AC_LIBOBJ(function_name).
41683         * m4/chown.m4: Likewise.
41684         * m4/fnmatch.m4: Likewise.
41685         * m4/ftruncate.m4: Likewise.
41686         * m4/getgroups.m4: Likewise.
41687         * m4/getline.m4: Likewise.
41688         * m4/group-member.m4: Likewise.
41689         * m4/jm-macros.m4: Likewise.
41690         * m4/lstat.m4: Likewise.
41691         * m4/malloc.m4: Likewise.
41692         * m4/memcmp.m4: Likewise.
41693         * m4/nanosleep.m4: Likewise.
41694         * m4/putenv.m4: Likewise.
41695         * m4/realloc.m4: Likewise.
41696         * m4/regex.m4: Likewise.
41697         * m4/stat.m4: Likewise.
41698         * m4/strftime.m4: Likewise.
41699
41700 2000-07-02  Jim Meyering  <meyering@lucent.com>
41701
41702         * lib/quotearg.c (mbstate_t): Don't define here.
41703
41704 2000-07-02  Jim Meyering  <meyering@lucent.com>
41705
41706         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41707
41708 2000-07-01  Jim Meyering  <meyering@lucent.com>
41709
41710         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41711
41712 2000-07-01  Jim Meyering  <meyering@lucent.com>
41713
41714         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41715         problem.
41716
41717 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41718
41719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41720         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41721
41722 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41723
41724         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41725         per change in ../m4/ls-mntd-fs.m4.
41726         (read_filesystem_list): Ignore symbolic links.
41727
41728 2000-06-29  Jim Meyering  <meyering@lucent.com>
41729
41730         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41731         for declaration of strcmp.
41732
41733         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41734
41735         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41736         Avoid warning by casting result to `char *' to remove `const'.
41737
41738 2000-06-28  Jim Meyering  <meyering@lucent.com>
41739
41740         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41741         included by quotearg.c, for which we perform this test.  From
41742         Bruno Haible.
41743
41744 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41745
41746         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41748         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41749
41750 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41751
41752         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41753
41754 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41755
41756         savedir now sets errno on failure and invokes xmalloc to get memory.
41757         Fix a couple of other minor bugs while we're at it.
41758
41759         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41760         (NAMLEN): Remove macro.
41761         (malloc, realloc): Remove decls.
41762         (stpcpy): Likewise.
41763         ("xalloc.h"): Include.
41764         (NAME_SIZE_DEFAULT): New macro.
41765         (savedir): Use xmalloc / xrealloc to allocate memory.
41766         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41767         Skip "" directory entries.
41768         Use strlen to calculate directory entry length, since the old method
41769         is rarely used these days and isn't worth supporting.
41770         Don't use a pointer after freeing it.
41771         Check for integer overflow when calculating allocation size.
41772         Use memcpy to copy entries, instead of stpcpy.
41773         Set errno properly when returning NULL.
41774         Check for readdir error.
41775
41776 2000-06-26  Jim Meyering  <meyering@lucent.com>
41777
41778         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41779
41780 2000-06-25  Jim Meyering  <meyering@lucent.com>
41781
41782         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41783         Linux header bug when _XOPEN_SOURCE is defined to 500.
41784
41785 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41786
41787         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41788         deficiency.
41789
41790 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41791
41792         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41793         Include xalloc.h.
41794         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41795
41796 2000-06-24  Jim Meyering  <meyering@lucent.com>
41797
41798         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41799         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41800         for which strerror does return char*, but which lacks a conveniently
41801         accessible declaration of the function.  If the compile-test says
41802         strerror_r doesn't work, then resort to a `run'-test that works on
41803         BeOS and segfaults on DEC Unix.
41804
41805 2000-06-24  Jim Meyering  <meyering@lucent.com>
41806
41807         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41808
41809 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41810
41811         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41812         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41813
41814 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41815
41816         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41817         (mbrtowc, mbstate_t): Define substitutes if
41818         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41819         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41820         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41821
41822 2000-06-23  Jim Meyering  <meyering@lucent.com>
41823
41824         * m4/afs.m4: Add missing AC_MSG_RESULT.
41825         Reported by Bruno Haible.
41826
41827         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41828         Suggestion from Bruno Haible.
41829
41830 2000-06-23  Jim Meyering  <meyering@lucent.com>
41831
41832         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41833
41834 2000-06-21  Jim Meyering  <meyering@lucent.com>
41835
41836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41837
41838 2000-06-21  Jim Meyering  <meyering@lucent.com>
41839
41840         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41841         (noinst_HEADERS): Add getstr.h.
41842
41843         * lib/getline.c (getstr): Move into a separate file.
41844         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41845         the following changes: new parameter, delim2; both delim[12]
41846         parameters have type `int', not `char'.  The latter would lose
41847         with 8-bit delimiters.
41848         * lib/getstr.h: New file.
41849
41850 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41851
41852         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41853         than 1024, return a memory chunk of least possible size, instead
41854         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41855         Use free/xmalloc instead of xrealloc to avoid copying for very long
41856         paths.
41857
41858 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41859
41860         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41861         the empty string.
41862
41863 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41864
41865         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41866         address, not strdup.  Include <stdlib.h> and don't declare free().
41867
41868 2000-06-19  Jim Meyering  <meyering@lucent.com>
41869
41870         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41871
41872 2000-06-18  Jim Meyering  <meyering@lucent.com>
41873
41874         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41875
41876         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41877         `checking whether...' message to be consistent with that of the
41878         lstat test.
41879
41880 2000-06-18  Jim Meyering  <meyering@lucent.com>
41881
41882         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41883         Besides, these days every porting target provides a mkdir function.
41884
41885         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41886         needed. (this snippet comes from src/system.h).
41887
41888 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41889
41890         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41891
41892 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41893
41894         * lib/human.c (adjust_value): New function.
41895         (human_readable_inexact): Apply rounding style even when
41896         printing approximate values.
41897
41898 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41899
41900         * lib/human.c (human_readable_inexact): Allow an input block
41901         size that is not a multiple of the output block size, and vice versa.
41902         Reported by Piergiorgio Sartor.
41903
41904 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41905
41906         * lib/getdate.y (get_date): Apply relative times after time
41907         zone indicator, not before.  Reported by Todd A. Jacobs.
41908
41909 2000-06-13  Jim Meyering  <meyering@lucent.com>
41910
41911         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41912
41913         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41914
41915 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41916
41917         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41918
41919 2000-06-12  Jim Meyering  <meyering@lucent.com>
41920
41921         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41922         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41923         optional argument.
41924         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41925         the optional argument, `lib'.
41926
41927 2000-06-08  Jim Meyering  <meyering@lucent.com>
41928
41929         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41930
41931 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41932
41933         Rewrite largefile configuration so that we don't need to run
41934         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41935         AC_CANONICAL_HOST in configure.in -- jmm]
41936
41937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41938         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41939         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41940         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41941         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41942         All uses changed.
41943         Instead of inspecting the output of getconf, try to compile the
41944         test program without and with the macro definition.
41945         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41946         for getconf.  Instead, check for the needed flags by compiling
41947         test programs.
41948
41949 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41950
41951         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41952
41953 2000-06-04  Jim Meyering  <meyering@lucent.com>
41954
41955         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41956         SunOS 4.1.4 for which gid_t is an unsigned type.
41957
41958 2000-06-03  Jim Meyering  <meyering@lucent.com>
41959
41960         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41961         now that autoconf requires that.
41962
41963         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41964         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41965         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41966
41967 2000-06-03  Jim Meyering  <meyering@lucent.com>
41968
41969         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41970
41971 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41972
41973         * m4/glibc21.m4: New file.
41974         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41975
41976 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41977
41978         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41979         newer, don't install charset.alias.
41980         * lib/config.charset: Change the Linux/glibc rules so they become empty
41981         on glibc-2.1 or newer.
41982
41983 2000-06-02  Jim Meyering  <meyering@lucent.com>
41984
41985         * lib/mountlist.c: Back out last change.  Instead, do this...
41986         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41987         me_dummy member using the same `ignore'-testing code.
41988         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41989         fs_type strings.
41990         From Mark D. Roth.
41991
41992 2000-05-29  Jim Meyering  <meyering@lucent.com>
41993
41994         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41995         mounts with the `ignore' attribute.  Based on a patch from
41996         Mark D. Roth.
41997
41998 2000-05-28  Jim Meyering  <meyering@lucent.com>
41999
42000         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42001         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42002         * m4/stat.m4: Likewise.
42003         * m4/lstat.m4: Likewise.
42004         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42005
42006         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42007         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42008
42009 2000-05-26  Jim Meyering  <meyering@lucent.com>
42010
42011         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42012
42013 2000-05-24  Jim Meyering  <meyering@lucent.com>
42014
42015         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42016         autoconf requires that.
42017         * m4/lib-check.m4: Likewise.
42018         * m4/jm-macros.m4: Likewise.
42019         * m4/strftime.m4: Likewise.
42020
42021         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42022         AC_CHECK_DECLS, now that autoconf requires that.
42023
42024 2000-05-22  Jim Meyering  <meyering@lucent.com>
42025
42026         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42027         * m4/lstat.m4: Likewise.
42028
42029 2000-05-22  Jim Meyering  <meyering@lucent.com>
42030
42031         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42032
42033 2000-05-20  Jim Meyering  <meyering@lucent.com>
42034
42035         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
42036         (jm_PREREQ): Use it.
42037
42038 2000-05-18  Jim Meyering  <meyering@lucent.com>
42039
42040         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
42041         back, too, since it may have been modified by allocate_entry.
42042         (hash_delete): Rewrite to use neither the assignment operator
42043         nor the comma operator in an if-expression.
42044
42045 2000-05-15  Paul Eggert  <eggert@twinsun.com>
42046
42047         * lib/closeout.c:
42048         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
42049         Remove; no longer needed.
42050         "quotearg.h": Add include.
42051         (file_name): Do not bother to explicitly initialize to NULL; it's less
42052         efficient on some hosts.
42053         (close_stdout_status): Remove test as to whether stdout was already
42054         closed; it breaks for the case "echo x | sort >&-".
42055         Quote file name colons.
42056         Do not assume that _("write error") lacks format strings.
42057
42058 2000-05-15  Jim Meyering  <meyering@lucent.com>
42059
42060         * lib/version-etc.c (version_etc_copyright): Update the copyright
42061         string used in all --version output.
42062
42063 2000-05-14  Jim Meyering  <meyering@lucent.com>
42064
42065         * lib/closeout.c (close_stdout_set_file_name): New function.
42066         (close_stdout_status): Use new file-scoped global.
42067         Return right away if fstat says the stdout file descriptor is invalid.
42068         * lib/closeout.h (close_stdout_set_file_name): Declare.
42069
42070 2000-05-10  Jim Meyering  <meyering@lucent.com>
42071
42072         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42073         (close_stdout_set_status): New function.
42074         * lib/closeout.h (close_stdout_set_status): Declare.
42075
42076 2000-05-09  Jim Meyering  <meyering@lucent.com>
42077
42078         * m4/gettext.m4: Rename this...
42079         * m4/libintl.m4: ...to this.
42080
42081 2000-05-08  Jim Meyering  <meyering@lucent.com>
42082
42083         * lib/long-options.c: Don't include closeout.h.
42084         (parse_long_options): Don't call close_stdout for --version.
42085
42086 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42087
42088         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42089         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42090         2.1.3 bug.  This avoids a clash when files like regex.c define
42091         _GNU_SOURCE.
42092
42093 2000-05-06  Jim Meyering  <meyering@lucent.com>
42094
42095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42096         (AC_REPLACE_FUNCS): Add strnlen.
42097
42098         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42099         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42100
42101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42102         AC_SEARCH_LIBS call for nanosleep.
42103         (LIB_NANOSLEEP): Set and AC_SUBST.
42104
42105 2000-05-06  Jim Meyering  <meyering@lucent.com>
42106
42107         * lib/strnlen.c: Undefine __strnlen and strnlen.
42108         [!weak_alias]: Define __strnlen to strnlen.
42109
42110         * lib/atexit.c: New file, from libiberty.
42111
42112 2000-05-06  Jim Meyering  <meyering@lucent.com>
42113
42114         * lib/closeout.c (close_stdout_status): Also check for errors on the
42115         stderr stream.
42116
42117 2000-05-05  Jim Meyering  <meyering@lucent.com>
42118
42119         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42120         AC_SEARCH_LIBS call for clock_gettime.
42121         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42122
42123         * m4/search-libs.m4: Update from autoconf.
42124
42125         su doesn't work on Solaris 2.6.
42126         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42127         <shadow.h>.  Reported by Dragos Harabor.
42128
42129 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42130
42131         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42132         memcpy instead of xmalloc, xrealloc, path_concat.
42133         (locale_charset): Treat empty environment variables as absent.
42134         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42135
42136 2000-05-04  Jim Meyering  <meyering@lucent.com>
42137
42138         * lib/getopt.c: Update from glibc.
42139         * lib/obstack.c: Likewise.
42140         * lib/obstack.h: Likewise.
42141         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42142         file
42143
42144         * lib/regex.h: Likewise.
42145         * lib/strndup.c: Likewise.
42146         * lib/strnlen.c: New file, from glibc.
42147
42148 2000-05-03  Jim Meyering  <meyering@lucent.com>
42149
42150         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42151
42152 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42153
42154         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42155         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42156         compile-time test, rather than inspecting host and OS, to
42157         decide whether to define _LARGEFILE_SOURCE.
42158
42159 2000-05-01  Jim Meyering  <meyering@lucent.com>
42160
42161         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42162
42163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42164         Based on a patch from Bruno Haible.
42165
42166 2000-05-01  Jim Meyering  <meyering@lucent.com>
42167
42168         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42169
42170 2000-04-29  Jim Meyering  <meyering@lucent.com>
42171
42172         * lib/path-concat.c: Declare strdup only if it's not defined.
42173         * lib/canon-host.c: Likewise.
42174
42175 2000-04-28  Jim Meyering  <meyering@lucent.com>
42176
42177         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42178         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42179         is included first, then limits.h is included by locale.h by libintl.h.
42180         From John David Anglin.
42181
42182 2000-04-25  Jim Meyering  <meyering@lucent.com>
42183
42184         * lib/makepath.c (S_IRWXUGO): Define.
42185         (make_path): Always perform explicit chmod if MODE specifies any
42186         of the `special' permission bits.  Prompted by a bug report against
42187         install from Mate Wierdl and Joost van Baal.
42188
42189 2000-04-18  Jim Meyering  <meyering@lucent.com>
42190
42191         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42192         (jm_PREREQ): Use it.
42193
42194 2000-04-18  Jim Meyering  <meyering@lucent.com>
42195
42196         * lib/README: New file.
42197
42198         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42199         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42200
42201 2000-04-17  Jim Meyering  <meyering@lucent.com>
42202
42203         Get it right :-)
42204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42205         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42206         Suggestion from Akim Demaille.
42207
42208 2000-04-17  Jim Meyering  <meyering@lucent.com>
42209
42210         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42211         the definition of it to rpl_strftime also defined-away the system's
42212         declaration.
42213
42214 2000-04-15  Jim Meyering  <meyering@lucent.com>
42215
42216         Use `C' to denote so-called `contiguous' files, the same way
42217         that tar does.
42218         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42219         (ftypelet): Use S_ISCTG.
42220         From Michael Deutschmann.
42221
42222 2000-04-14  Jim Meyering  <meyering@lucent.com>
42223
42224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42225         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42226         clobbered.
42227
42228 2000-04-14  Jim Meyering  <meyering@lucent.com>
42229
42230         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42231
42232 2000-04-13  Jim Meyering  <meyering@lucent.com>
42233
42234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42235         AH_VERBATIM to insert required #ifndef into config.h.in.
42236         Suggestion from Akim Demaille.
42237
42238 2000-04-12  Jim Meyering  <meyering@lucent.com>
42239
42240         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42241         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42242         Christian Krackowizer.
42243
42244         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42245         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42246         (AC_SYS_LARGEFILE): Require.
42247         (AM_C_PROTOTYPES): Require.
42248
42249 2000-04-08  Jim Meyering  <meyering@lucent.com>
42250
42251         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42252         names don't conflict.  Reported by Eli Zaretskii.
42253
42254 2000-04-07  Jim Meyering  <meyering@lucent.com>
42255
42256         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42257         sys/types.h, to work around system header problems on AIX 3.2.5.
42258         From Bruno Haible.
42259
42260 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42261
42262         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42263         bug.  Deal with the different error behavior of Irix iconv.
42264
42265 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42266
42267         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42268         IRIX if the installer said otherwise.
42269
42270 2000-04-05  Jim Meyering  <meyering@lucent.com>
42271
42272         Portability tweaks required for ultrix4.3.
42273         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42274         (jm_CHECK_DECLS): Add getutent to the list of functions.
42275         (_jm_DECL_HEADERS): Add utmpx.h.
42276         From John David Anglin.
42277
42278         * m4/strftime.m4: Back out the 2000-04-02 change.
42279         Instead of that change, simply undefine putenv in the test program.
42280
42281 2000-04-05  Jim Meyering  <meyering@lucent.com>
42282
42283         Portability tweaks required for ultrix4.3.
42284         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42285         getutent.
42286         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42287         * lib/canon-host.c: Declare strdup.
42288         * lib/path-concat.c: Likewise.
42289         From John David Anglin.
42290
42291 2000-04-04  Jim Meyering  <meyering@lucent.com>
42292
42293         Be more DOS 8.3-friendly.
42294         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42295         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42296         * lib/Makefile.am: Reflect renaming.
42297         Reported by Eli Zaretskii.
42298
42299         Use a temporary file name that won't clash with `charset.alias'
42300         in the DOS 8.3 name space.
42301         * lib/Makefile.am (charset_tmp): Define.
42302         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42303         (uninstall-local): Likewise.
42304         Reported by Eli Zaretskii.
42305
42306 2000-04-03  Jim Meyering  <meyering@lucent.com>
42307
42308         * m4/gettext.m4: Fix typo in comment.
42309
42310         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42311         textutils/configure.in).  Suggestion from Paul Eggert.
42312         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42313
42314 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42315
42316         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42317         variable in the shell rather than using putenv, which isn't
42318         portable.  This avoids the configure-time inter-test dependency
42319         on the potentially-renamed putenv function.
42320
42321 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42322
42323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42324         before checking struct stat.st_blksize, so that
42325         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42326
42327 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42328
42329         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42330         since strftime.c uses HAVE_STRFTIME to decide whether to use
42331         the underlying strftime.
42332
42333 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42334
42335         * lib/time/strftime.c (my_strftime): Make sure we call the system
42336         strftime, not ourselves, when invoking the underlying strftime.
42337
42338 2000-03-24  Jim Meyering  <meyering@lucent.com>
42339
42340         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42341         (charset_alias): Define.
42342         (install-exec-local): Factor out common code.
42343         (uninstall-local): Split lines longer than 80.
42344         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42345         (SUFFIXES): Define.
42346         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42347         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42348
42349 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42350
42351         * lib/config.charset: Output a line containing "Packages using this
42352         file".
42353         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42354         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42355         ref-del.sed): New rules.
42356
42357 2000-03-17  Jim Meyering  <meyering@lucent.com>
42358
42359         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42360         Otherwise, include <strings.h>
42361
42362 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42363
42364         * lib/unicodeio.c (utf8_wctomb): New function.
42365         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42366         format instead of in UCS-4 with platform dependent endianness.
42367
42368 2000-03-10  Jim Meyering  <meyering@lucent.com>
42369
42370         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42371         From Marco Franzen.
42372
42373 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42374
42375         * lib/savedir.c (savedir): Work even if directory size is
42376         negative; this can happen with some screwy NFS configurations.
42377
42378 2000-03-06  Jim Meyering  <meyering@lucent.com>
42379
42380         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42381         if it's NULL (because we ran out of memory).  From Bruno Haible.
42382
42383 2000-03-05  Jim Meyering  <meyering@lucent.com>
42384
42385         * lib/localcharset.c ("path-concat.h"): Include.
42386         (get_charset_aliases): Use path_concat instead of ANSI string
42387         concatenation.
42388
42389         * lib/unicodeio.h (PARAMS): Define.
42390         Use it to guard prototype.
42391
42392 2000-03-04  Jim Meyering  <meyering@lucent.com>
42393
42394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42395         for lib/localcharset.c.
42396
42397 2000-03-04  Jim Meyering  <meyering@lucent.com>
42398
42399         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42400         installing into it.
42401         (uninstall-local): Uncomment this rule so `make distcheck' works
42402         once again.
42403
42404         * lib/unicodeio.c (<errno.h>): Include it.
42405         (errno): Declare if not defined.
42406
42407         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42408
42409         * lib/config.charset: New version, incorporating remarks from a linux
42410         i18n mailing list.  From Bruno Haible.
42411
42412 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42413
42414         * m4/codeset.m4: New file.
42415         * m4/iconv.m4: New file.
42416         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42417
42418 2000-03-03  Jim Meyering  <meyering@lucent.com>
42419
42420         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42421
42422 2000-03-02  Jim Meyering  <meyering@lucent.com>
42423
42424         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42425         the messages come out on separate lines.
42426
42427         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42428         rather than jm_CHECK_DECLARATIONS.
42429         * m4/decl.m4: Remove now-unused file.
42430
42431         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42432         geteuid.
42433
42434 2000-03-02  Jim Meyering  <meyering@lucent.com>
42435
42436         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42437
42438 2000-03-01  Jim Meyering  <meyering@lucent.com>
42439
42440         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42441         * lib/unicodeio.c: Likewise.
42442
42443 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42444
42445         * lib/config.charset: New file.
42446         * lib/localcharset.c: New file.
42447         * lib/unicodeio.h, lib/unicodeio.c: New files.
42448         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42449         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42450         (noinst_HEADERS): Add unicodeio.h.
42451         (all-local, install-exec-local, charset.alias): New targets.
42452
42453 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42454
42455         * lib/quotearg.c (ALERT_CHAR): New macro.
42456         (quotearg_buffer_restyled): Use it.
42457
42458 2000-02-27  Jim Meyering  <meyering@lucent.com>
42459
42460         * m4/check-decl.m4: Add getenv to the list.
42461
42462 2000-02-27  Jim Meyering  <meyering@lucent.com>
42463
42464         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42465         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42466
42467         * lib/backupfile.c: Guard inclusion of stdlib.h with
42468         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42469         Declare malloc if needed.
42470
42471         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42472         `#ifndef HAVE_DECL..'
42473         now that autoconf always defines the HAVE_DECL_ symbols.
42474         * lib/human.c: Likewise.
42475         * lib/same.c: Likewise.
42476         * lib/strtoumax.c: Likewise.
42477
42478         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42479         declaration check was not run.
42480         * lib/hash.c: Likewise.
42481         * lib/human.c: Likewise.
42482         * lib/same.c: Likewise.
42483         * lib/strtoumax.c: Likewise.
42484
42485         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42486         `.', then first look up the entire `.'-containing string as a login
42487         name.
42488
42489 2000-02-23  Jim Meyering  <meyering@lucent.com>
42490
42491         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42492         in place of my hack.
42493
42494 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42495
42496         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42497         (textint): New typedef.
42498         (parser_control): Member year changed from int to textint.
42499         All uses changed.
42500         (YYSTYPE): Removed; replaced by %union with int and textint members.
42501         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42502         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42503         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42504         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42505         (date, number, to_year): Use width of number in digits, not its value,
42506         to determine whether it's a 2-digit year, or a 2-digit time.
42507         (yylex): Store number of digits of numeric tokens.
42508         Reported by John Kendall.
42509
42510         (parser_control): Changed from struct parser_control to typedef (for
42511         consistency).  All uses changed.
42512
42513         (tID): Removed; not used.
42514         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42515
42516 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42517
42518         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42519         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42520
42521 2000-02-12  Jim Meyering  <meyering@lucent.com>
42522
42523         * lib/userspec.c (ISDIGIT): Define it.
42524         (isdigit): Remove definition.
42525         (is_number): Use ISDIGIT, not isdigit.
42526         <libintl.h>: Include.
42527         (_ and N_): Define.
42528         (parse_user_spec): Mark translatable strings.
42529
42530 2000-02-10  Jim Meyering  <meyering@lucent.com>
42531
42532         With these changes, nanosleep.[ch] are finally enough like the other
42533         lib/* replacement files to compile on a few more losing systems.
42534
42535         * lib/nanosleep.h: Don't include config.h.
42536         Remove prototype from declaration of nanosleep.
42537         (PARAMS): Remove now-unneeded definition.
42538         * lib/nanosleep.c: #undef nanosleep.
42539         (rpl_nanosleep): Rename from nanosleep.
42540
42541 2000-02-10  Jim Meyering  <meyering@lucent.com>
42542
42543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42544         gnu_nanosleep to rpl_nanosleep.
42545
42546 2000-02-09  Jim Meyering  <meyering@lucent.com>
42547
42548         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42549         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42550
42551 2000-02-08  Akim Demaille  <akim@epita.fr>
42552
42553         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42554         `[' and `]' and remove uses of `changequote'.
42555         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42556         (AC_SYS_LARGEFILE): Likewise.
42557         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42558         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42559         of changequote.
42560         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42561         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42562         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42563         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42564
42565 2000-02-05  Jim Meyering  <meyering@lucent.com>
42566
42567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42568         Remove explicit use of AC_HEADER_TIME.  It is required by
42569         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42570         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42571         in autoconf whereby the expansion of the latter ended up preceding
42572         the expansion of its prerequisite, AC_HEADER_TIME.
42573         Reported by Volker Borchert.
42574
42575 2000-02-03  Jim Meyering  <meyering@lucent.com>
42576
42577         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42578
42579 2000-02-03  Jim Meyering  <meyering@lucent.com>
42580
42581         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42582         rather than with `#if HAVE_UTMPNAME'.
42583
42584 2000-02-02  Jim Meyering  <meyering@lucent.com>
42585
42586         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42587         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42588         Reported by Eli Zaretskii.
42589
42590 2000-02-01  Jim Meyering  <meyering@lucent.com>
42591
42592         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42593
42594 2000-01-31  Jim Meyering  <meyering@lucent.com>
42595
42596         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42597         functions.  Add the time.h and sys/time.h headers along with the
42598         AC_REQUIRE'ment of AC_HEADER_TIME.
42599
42600 2000-01-31  Jim Meyering  <meyering@lucent.com>
42601
42602         * lib/nanosleep.h (nanosleep): Guard declaration with
42603         `#if ! HAVE_DECL_NANOSLEEP'.
42604         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42605         the declaration in that vendor's sys/timers.h.
42606         Reported by Christian Krackowizer.
42607
42608         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42609         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42610         (ISPRINT): Likewise.
42611         Reported by Tom Tromey.
42612
42613 2000-01-30  Jim Meyering  <meyering@lucent.com>
42614
42615         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42616
42617         * m4/prereq.m4 (utmp_includes): Define.
42618         Check for ut_user and ut_name members in both struct utmpx
42619         and struct utmp.
42620
42621 2000-01-30  Jim Meyering  <meyering@lucent.com>
42622
42623         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42624         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42625         header files where only utmpx.ut_user is declared.
42626
42627         * lib/readutmp.h (UT_USER): Define.
42628
42629 2000-01-29  Jim Meyering  <meyering@lucent.com>
42630
42631         * m4/lib-check.m4: New file containing library-related checks from
42632         fileutils and sh-utils (textutils had none).
42633
42634 2000-01-28  Jim Meyering  <meyering@lucent.com>
42635
42636         * m4/perl.m4: Change format of warning message to look more like that
42637         from the missing script.  Suggestion from François Pinard.
42638
42639 2000-01-25  Jim Meyering  <meyering@lucent.com>
42640
42641         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42642         well as time.h in the compile check.
42643         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42644         Fix typo in cross-compiling case: s/yes/no/.
42645
42646 2000-01-23  Jim Meyering  <meyering@lucent.com>
42647
42648         * m4/jm-macros.m4: Move df-related tests here from
42649         fileutils/configure.in
42650
42651         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42652         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42653
42654         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42655         s/space/ac_fsusage_space/.
42656         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42657
42658         * m4/ftruncate.m4: New file (derived from part of
42659         fileutils/configure.in).
42660         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42661         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42662
42663         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42664         AC_SUBST these here, rather than just in sh-util/configure.in, so
42665         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42666         all the same.
42667         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42668         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42669         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42670         (AC_SUBST(POW_LIBM)): Likewise.
42671         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42672
42673 2000-01-23  Jim Meyering  <meyering@lucent.com>
42674
42675         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42676         obstack.c.
42677
42678 2000-01-22  Jim Meyering  <meyering@lucent.com>
42679
42680         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42681
42682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42683
42684         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42685         configure.in
42686         (AC_CHECK_HEADERS): Likewise for sh-utils.
42687         (AC_CHECK_HEADERS): Likewise for textutils.
42688         Merge the three lists of headers.
42689
42690         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42691         from fileutils' configure.in.
42692
42693         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42694         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42695         check-decl.m4.
42696
42697         * m4/check-decl.m4: Use #if rather than #ifdef.
42698         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42699         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42700         (_jm_DECL_HEADERS): Define new function.
42701         (jm_CHECK_DECLARATIONS): Require it.
42702
42703 2000-01-22  Jim Meyering  <meyering@lucent.com>
42704
42705         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42706         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42707         Required for some AIX systems.  Reported by Christian Krackowizer.
42708         [TESTING] (main): New function.
42709
42710         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42711         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42712         letters.
42713
42714         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42715         iswprint.
42716
42717         * lib/strverscmp.c (ISDIGIT): Define.
42718         (strverscmp): Use ISDIGIT, not isdigit.
42719
42720 2000-01-19  Jim Meyering  <meyering@lucent.com>
42721
42722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42723         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42724         defines `struct timespec' in <sys/time.h>
42725
42726         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42727         Thanks to Akim for explaining.
42728
42729 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42730
42731         * lib/nanosleep.c (nanosleep):
42732         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42733         POSIX.1 doesn't require SA_INTERRUPT and some systems
42734         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42735         it's been part of POSIX.1 since day 1 (in 1988).
42736
42737 2000-01-17  Jim Meyering  <meyering@lucent.com>
42738
42739         * lib/interlock: Remove unused file.  Reported by François Pinard.
42740
42741 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42742
42743         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42744         alert, backslash, formfeed, and vertical tab unnecessarily in
42745         shell quoting style.
42746
42747 2000-01-16  Jim Meyering  <meyering@lucent.com>
42748
42749         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42750         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42751         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42752         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42753
42754 2000-01-16  Jim Meyering  <meyering@lucent.com>
42755
42756         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42757         because the latter didn't work.
42758
42759 2000-01-15  Jim Meyering  <meyering@lucent.com>
42760
42761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42762         (AC_REPLACE_FUNCS): Add memcpy and memset.
42763         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42764         Add strpbrk.
42765         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42766
42767 2000-01-12  Jim Meyering  <meyering@lucent.com>
42768
42769         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42770         (jm_PREREQ): Use it.
42771         (jm_PREREQ_READUTMP): New macro.
42772         (jm_PREREQ): Use it.
42773
42774 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42775
42776         Quote multibyte characters correctly.
42777         * m4/c-bs-a.m4: New file.
42778         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42779         (jm_PREREQ): Use it.
42780
42781 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42782
42783         * m4/uintmax_t.m4: Port to autoconf 2.13.
42784
42785 2000-01-08  Jim Meyering  <meyering@ascend.com>
42786
42787         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42788         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42789
42790 2000-01-04  Jim Meyering  <meyering@ascend.com>
42791
42792         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42793         jm_STRUCT_DIRENT_D_TYPE.
42794         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42795         jm_STRUCT_DIRENT_D_INO.
42796         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42797         jm_STRUCT_UTIMBUF.
42798         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42799         renamings.
42800         * m4/utime.m4: Likewise.
42801
42802         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42803         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42804
42805 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42806
42807         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42808         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42809
42810 2000-01-02  Jim Meyering  <meyering@ascend.com>
42811
42812         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42813         remember if this is necessary.
42814
42815 1999-12-26  Jim Meyering  <meyering@ascend.com>
42816
42817         * m4/jm-macros.m4: Use it here.
42818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42819
42820 1999-12-23  Jim Meyering  <meyering@ascend.com>
42821
42822         * m4/jm-macros.m4: Check for clock_gettime (moved from
42823         fileutils/configure.in)
42824         Check for gettimeofday.
42825
42826 1999-12-20  Jim Meyering  <meyering@ascend.com>
42827
42828         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42829         autoconf-2.14a-1999-12-20.
42830
42831 1999-12-19  Jim Meyering  <meyering@ascend.com>
42832
42833         * m4/lstat-slash.m4: New file.
42834         * m4/jm-macros.m4: Use the new macro:
42835         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42836
42837 1999-12-07  Jim Meyering  <meyering@ascend.com>
42838
42839         * m4/perl.m4: Require that File::Compare be available, too.
42840         Too many systems seem to lack it.
42841
42842         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42843         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42844
42845 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42846
42847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42848         problem with the QNX 4.25 shell, which doesn't propagate exit
42849         status of failed commands inside shell assignments.
42850
42851 1999-11-17  Jim Meyering  <meyering@ascend.com>
42852
42853         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42854
42855 1999-11-07  Jim Meyering  <meyering@ascend.com>
42856
42857         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42858
42859 1999-11-06  Jim Meyering  <meyering@ascend.com>
42860
42861         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42862         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42863
42864 1999-11-05  Jim Meyering  <meyering@ascend.com>
42865
42866         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42867         configure.in of textutils, fileutils, and sh-utils into this one
42868         (shared between those packages) file.
42869         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42870         AC_STRUCT_ST_BLKSIZE.
42871
42872 1999-11-03  Jim Meyering  <meyering@ascend.com>
42873
42874         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42875         of AC_CHECK_TYPE checks includes unistd.h.
42876         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42877         Suggestion from Akim Demaille.
42878
42879 1999-10-30  Jim Meyering  <meyering@ascend.com>
42880
42881         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42882         m4-quoted string.
42883         * m4/ls-mntd-fs.m4: Likewise.
42884         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42885         * m4/jm-winsz1.m4: Likewise.
42886
42887         * m4/const.m4: Remove file, since the fix made it into the experimental
42888         version of autoconf.
42889         * m4/mktime.m4: Likewise.
42890
42891         * m4/check-type.m4: Remove file, now that the latest version of
42892         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42893
42894         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42895         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42896         AC_CHECK_TYPE.
42897
42898 1999-10-04  Jim Meyering  <meyering@ascend.com>
42899
42900         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42901
42902 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42903
42904         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42905         2.95.1 bug with HP-UX 10.20.
42906
42907 1999-09-17  Jim Meyering  <meyering@ascend.com>
42908
42909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42910         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42911         due to missing strdup (against sh-utils-2.0).
42912
42913 1999-08-29  Jim Meyering  <meyering@ascend.com>
42914
42915         * m4/jm-macros.m4: Require jm_BISON.
42916         * m4/bison.m4: New file.
42917
42918 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42919
42920         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42921         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42922
42923 1999-08-05  Jim Meyering  <meyering@ascend.com>
42924
42925         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42926         to avoid conflicts with `conftest' on 8+3 filesystems.
42927         Suggestion from Eli Zaretskii.
42928
42929 1999-08-04  Jim Meyering  <meyering@ascend.com>
42930
42931         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42932         fileutils and sh-utils (textutils's getline test was inadequate).
42933         (AM_FUNC_GETLINE): Run this test.
42934         (AC_CHECK_FUNCS): Check for getdelim.
42935         Reported by Bob Proulx.
42936
42937 1999-08-02  Jim Meyering  <meyering@ascend.com>
42938
42939         * m4/jm-macros.m4: Add a comment.
42940
42941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42942
42943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42944         <inttypes.h> defines strtoumax as a macro (and not as a
42945         function).
42946
42947 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42948
42949         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42950         that we can shift, multiply and divide unsigned long long
42951         values; Ultrix cc can't do it.
42952
42953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42954
42955         * m4/mktime.m4: New file, which is a preview of what should appear
42956         in the next public autoconf release.
42957
42958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42959
42960         * m4/lfs.m4: Remove this file.
42961         * m4/largefile.m4: New file.  It contains the old contents of
42962         lfs.m4, except that all names with prefix AC_LFS have been
42963         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42964         compatible with future autoconf versions.  Also, some minor m4
42965         quoting problems have been fixed.
42966
42967 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42968
42969         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42970         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42971         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42972         and simplify the shell code.
42973
42974 1999-08-01  Jim Meyering  <meyering@ascend.com>
42975
42976         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42977         m4.
42978
42979 1999-07-20  Jim Meyering  <meyering@ascend.com>
42980
42981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42982
42983 1999-07-15  Jim Meyering  <meyering@ascend.com>
42984
42985         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42986
42987 1999-05-22  Jim Meyering  <meyering@ascend.com>
42988
42989         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42990
42991 1999-05-20  Jim Meyering  <meyering@ascend.com>
42992
42993         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42994         Add a colon after each `then' in case $4 is empty.
42995
42996 1999-05-16  Jim Meyering  <meyering@ascend.com>
42997
42998         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42999
43000 1999-05-10  Jim Meyering  <meyering@ascend.com>
43001
43002         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43003
43004         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43005         AC_FUNC_MKTIME.
43006
43007 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43008
43009         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43010
43011 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43012
43013         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43014         not CPPFLAGS, so that linking works correctly in IRIX.
43015
43016 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43017
43018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43019
43020 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43021
43022         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43023         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43024         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43025         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43026         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43027
43028         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43029
43030 1999-04-20  Jim Meyering  <meyering@ascend.com>
43031
43032         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43033         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43034         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43035
43036 1999-04-18  Jim Meyering  <meyering@ascend.com>
43037
43038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
43039         * m4/jm-macros.m4: Use it.
43040
43041 1999-04-06  Jim Meyering  <meyering@ascend.com>
43042
43043         * m4/strftime.m4: Remove test for %f.
43044
43045 1999-03-29  Jim Meyering  <meyering@ascend.com>
43046
43047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
43048         superset of the AC_TYPE_* checks in the textutils, fileutils,
43049         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
43050         AC_TYPE_PID_T.
43051
43052 1999-03-28  Jim Meyering  <meyering@ascend.com>
43053
43054         * m4/jm-macros.m4: Define GNU_PACKAGE here.
43055         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
43056         replaced e.g., in the *.sh files of the sh-utils.
43057
43058 1999-03-20  Jim Meyering  <meyering@ascend.com>
43059
43060         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43061         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43062         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43063
43064 1999-03-19  Jim Meyering  <meyering@ascend.com>
43065
43066         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43067
43068 1999-03-12  Jim Meyering  <meyering@ascend.com>
43069
43070         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43071
43072 1999-03-07  Jim Meyering  <meyering@ascend.com>
43073
43074         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43075         declared.
43076
43077 1999-02-17  Jim Meyering  <meyering@ascend.com>
43078
43079         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43080         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43081
43082 1999-02-07  Jim Meyering  <meyering@ascend.com>
43083
43084         * m4/group-member.m4: New file -- extracted from sh-utils'
43085         configure.in.
43086
43087         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43088         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43089
43090 1999-02-06  Jim Meyering  <meyering@ascend.com>
43091
43092         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43093         * m4/fnmatch.m4: Likewise.
43094         * m4/getgroups.m4: Likewise.
43095         * m4/lstat.m4: Likewise.
43096         * m4/malloc.m4: Likewise.
43097         * m4/putenv.m4: Likewise.
43098         * m4/realloc.m4: Likewise.
43099         * m4/regex.m4: Likewise.
43100         * m4/stat.m4: Likewise.
43101         * m4/strftime.m4: Likewise.
43102         Suggestion from Alain Magloire.
43103
43104         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43105         * m4/fnmatch.m4: Likewise.
43106         * m4/getgroups.m4: Likewise.
43107         * m4/getline.m4: Likewise.
43108         * m4/lstat.m4: Likewise.
43109         * m4/malloc.m4: Likewise.
43110         * m4/memcmp.m4: Likewise.
43111         * m4/putenv.m4: Likewise.
43112         * m4/realloc.m4: Likewise.
43113         * m4/regex.m4: Likewise.
43114         * m4/stat.m4: Likewise.
43115         * m4/strftime.m4: Likewise.
43116         Suggestion from Alain Magloire.
43117
43118         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43119         an argument.
43120
43121         * m4/regex.m4: Add a run-time Test for proper operation of
43122         re_compile_pattern.
43123
43124 1999-01-31  Jim Meyering  <meyering@ascend.com>
43125
43126         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43127
43128 1999-01-30  Jim Meyering  <meyering@ascend.com>
43129
43130         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43131
43132         * m4/jm-mktime.m4: Make this a wrapper around the official
43133         AM_FUNC_MKTIME rather than my private copy, now that the official one
43134         is up to date.
43135         * m4/mktime.m4: Remove file.
43136
43137         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43138         * m4/uptime.m4: Likewise.
43139         * m4/uintmax_t.m4: Likewise.
43140
43141 1999-01-28  Jim Meyering  <meyering@ascend.com>
43142
43143         * m4/jm-macros.m4: Use jm_AFS.
43144         * m4/afs.m4: New file (from fileutils' configure.in).
43145
43146         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43147         * m4/chown.m4: Likewise.
43148         * m4/d-ino.m4: Likewise.
43149         * m4/d-type.m4: Likewise.
43150         * m4/fnmatch.m4: Likewise.
43151         * m4/getgroups.m4: Likewise.
43152         * m4/gettext.m4: Likewise.
43153         * m4/jm-mktime.m4: Likewise.
43154         * m4/jm-winsz2.m4: Likewise.
43155         * m4/lcmessage.m4: Likewise.
43156         * m4/ls-mntd-fs.m4: Likewise.
43157         * m4/malloc.m4: Likewise.
43158         * m4/memcmp.m4: Likewise.
43159         * m4/putenv.m4: Likewise.
43160         * m4/realloc.m4: Likewise.
43161         * m4/st_mtim.m4: Likewise.
43162         * m4/strftime.m4: Likewise.
43163
43164 1999-01-16  Jim Meyering  <meyering@ascend.com>
43165
43166         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43167         (ARGMATCH_DIE_DECL): Define.
43168
43169 1999-01-12  Jim Meyering  <meyering@ascend.com>
43170
43171         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43172         Reported by Lars Hecking.
43173
43174 1999-01-10  Jim Meyering  <meyering@ascend.com>
43175
43176         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43177         gross kludge.
43178         * m4/inttypes_h.m4: Likewise.
43179         * m4/lstat.m4: Likewise.
43180         * m4/malloc.m4: Likewise.
43181         * m4/readdir.m4: Likewise.
43182         * m4/realloc.m4: Likewise.
43183         * m4/st_dm_mode.m4: Likewise.
43184         * m4/stat.m4: Likewise.
43185         * m4/utimbuf.m4: Likewise.
43186         * m4/utimes.m4: Likewise.
43187
43188         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43189         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43190         comments in config.h.in are meaningful.
43191
43192         * m4/jm-macros.m4: Require autoconf-2.13 here.
43193
43194         * m4/regex.m4: By default, don't use the included regex.c on systems
43195         with glibc 2.  Suggestion from Uli Drepper.
43196
43197 1999-01-02  Jim Meyering  <meyering@ascend.com>
43198
43199         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43200
43201 1998-12-18  Jim Meyering  <meyering@ascend.com>
43202
43203         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43204         Based on a suggestion from Lars Hecking.
43205
43206 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43207
43208         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43209
43210 1998-11-16  Jim Meyering  <meyering@ascend.com>
43211
43212         * m4/lfs.m4: Double-quote the `uname...` expression.
43213
43214 1998-11-14  Jim Meyering  <meyering@ascend.com>
43215
43216         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43217         * m4/stat.m4: Likewise.
43218
43219 1998-11-03  Jim Meyering  <meyering@ascend.com>
43220
43221         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43222         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43223
43224 1998-10-18  Jim Meyering  <meyering@ascend.com>
43225
43226         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43227
43228 1998-10-17  Jim Meyering  <meyering@ascend.com>
43229
43230         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43231         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43232         calls for those previously hard-coded headers.  Instead, take a new
43233         parameter.
43234         (jm_CHECK_DECLARATIONS): Reflect interface change.
43235         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43236         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43237
43238         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43239
43240 1998-10-14  Jim Meyering  <meyering@ascend.com>
43241
43242         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43243         instead of "TZ=America/Vancouver".  From Paul Eggert.
43244
43245 1998-10-11  Jim Meyering  <meyering@ascend.com>
43246
43247         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43248         This adds a test for a recently added compatibility fix for mktime.c.
43249         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43250
43251 1998-09-27  Jim Meyering  <meyering@ascend.com>
43252
43253         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43254
43255         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43256         ../configure.in, including a change from Gordon Matzigkeit to allow
43257         cross-compiling for the Hurd.
43258
43259         * m4/glibc.m4: New file/macro to test for the GNU C Library
43260         versions 1 and 2.  From Gordon Matzigkeit.
43261         Indent.
43262
43263 1998-09-21  Jim Meyering  <meyering@ascend.com>
43264
43265         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43266
43267 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43268
43269         Port nanosecond-resolution times to UnixWare 2.1.2 and
43270         pedantic Solaris 2.6.
43271
43272         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43273         AC_STRUCT_ST_MTIM.
43274         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43275         Generate name of ns member, instead of just 1 or undef.
43276         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43277
43278 1998-08-15  Jim Meyering  <meyering@ascend.com>
43279
43280         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43281         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43282         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43283         instead of jm_TYPE_SSIZE_T.
43284
43285 1998-08-12  Jim Meyering  <meyering@ascend.com>
43286
43287         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43288
43289 1998-08-02  Jim Meyering  <meyering@ascend.com>
43290
43291         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43292         in acconfig.h manually.
43293
43294 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43295
43296         * m4/st_mtim.m4: New file.
43297
43298 1998-07-28  Jim Meyering  <meyering@ascend.com>
43299
43300         * m4/utimes.m4: Undef stat.
43301
43302 1998-07-25  Jim Meyering  <meyering@ascend.com>
43303
43304         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43305         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43306
43307 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43308
43309         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43310         uid and gid actually remain unchanged.
43311
43312 1998-07-07  Jim Meyering  <meyering@ascend.com>
43313
43314         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43315
43316 1998-07-04  Jim Meyering  <meyering@ascend.com>
43317
43318         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43319         to prove that this macro can be used in packages without regex.c.
43320
43321 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43322
43323         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43324         is to be used.
43325
43326 1998-07-03  Jim Meyering  <meyering@ascend.com>
43327
43328         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43329
43330         * m4/gettext.m4: New file -- from gettext-0.10.35.
43331         * m4/lcmessage.m4: Likewise.
43332         * m4/progtest.m4: Likewise.
43333
43334         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43335         * m4/jm-macros.m4: Require the new macro.
43336
43337 1998-06-29  Jim Meyering  <meyering@ascend.com>
43338
43339         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43340         for the definition of NGROUPS (used in a system header included
43341         by sys/mount.h).
43342
43343 1998-06-28  Jim Meyering  <meyering@ascend.com>
43344
43345         * m4/ls-mntd-fs.m4: New file.
43346         * m4/fstypename.m4: New file.
43347
43348         * m4/jm-macros.m4: Require the new macro.
43349         * m4/jm-glibc-io.m4: New file.
43350
43351 1998-05-19  Jim Meyering  <meyering@ascend.com>
43352
43353         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43354         * m4/lchown.m4: New file.
43355
43356         * m4/Makefile.am.in: New file.
43357         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43358
43359 1998-05-14  Jim Meyering  <meyering@ascend.com>
43360
43361         * m4/Makefile.am (EXTRA_DIST): Add them.
43362         * m4/jm-macros.m4: New file.
43363         * m4/utimbuf.m4: New file.
43364
43365 1998-05-12  Jim Meyering  <meyering@ascend.com>
43366
43367         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43368
43369 1998-05-11  Jim Meyering  <meyering@ascend.com>
43370
43371         * m4/isc-posix.m4: New file.
43372
43373 1998-05-10  Jim Meyering  <meyering@ascend.com>
43374
43375         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43376
43377 1998-05-09  Jim Meyering  <meyering@ascend.com>
43378
43379         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43380         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43381         with automake.
43382
43383         * m4/ssize_t.m4: New file.
43384         * m4/mktime.m4: Remove file -- the new automake has this now.
43385
43386 1998-04-26  Jim Meyering  <meyering@ascend.com>
43387
43388         * m4/assert.m4: New file.
43389         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43390
43391 1998-04-05  Jim Meyering  <meyering@ascend.com>
43392
43393         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43394         (jm_PREREQ): Use it here.
43395
43396 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43397
43398         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43399         in acconfig.h.
43400
43401 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43402
43403         * m4/prereq.m4: New file.
43404         * m4/error.m4: New file.
43405         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43406
43407 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43408
43409         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43410         cache-check for the same variable -- that defeated the purpose of
43411         the test; the test program was never run.  This was a problem only
43412         on systems with losing getline functions -- HP-UX 10.20 is one.
43413         Reported by Bjorn Helgaas.
43414
43415 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43416
43417         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43418
43419 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43420
43421         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43422
43423         * m4/const.m4: New file.  Use an initializer in this declaration
43424         typedef int charset[2]; const charset x;
43425         Reported by Bob Glickstein.
43426
43427 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43428
43429         * m4/chown.m4: Fix reversed types on -1 args to chown.
43430         From Kaveh Ghazi.
43431
43432 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43433
43434         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43435         Add lseek and memchr.
43436
43437         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43438         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43439         have a 20-character limit on names.
43440
43441 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43442
43443         * m4/inttypes_h.m4: New file.
43444         * m4/uintmax_t.m4: New file.
43445         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43446
43447
43448         -----
43449
43450         Local Variables:
43451         coding: utf-8
43452         End:
43453
43454         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43455
43456         Copying and distribution of this file, with or without
43457         modification, are permitted provided the copyright notice
43458         and this notice are preserved.