New module 'posix_spawn-internal'.
[gnulib.git] / ChangeLog
1 2008-09-28  Bruno Haible  <bruno@clisp.org>
2
3         New module 'posix_spawn-internal'.
4         * modules/posix_spawn-internal: New file.
5         * lib/spawn_int.h: New file, from GNU libc with modifications.
6         * lib/spawni.c: New file, from GNU libc with modifications.
7         * m4/posix_spawn.m4: New file.
8
9         New module 'spawn'.
10         * modules/spawn: New file.
11         * lib/spawn.in.h: New file, from GNU libc with modifications.
12         * m4/spawn_h.m4: New file.
13         * doc/posix-headers/spawn.texi: Mention the new module.
14
15 2008-09-28  Bruno Haible  <bruno@clisp.org>
16
17         * modules/sched-tests: New file.
18         * tests/test-sched.c: New file.
19
20         New module 'sched'.
21         * modules/sched: New file.
22         * lib/sched.in.h: New file.
23         * m4/sched_h.m4: New file.
24         * doc/posix-headers/sched.texi: Mention the new module.
25
26 2008-09-27  Eric Blake  <ebb9@byu.net>
27
28         Fix previous patch, and tweak references to $0.
29         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
30         (func_version, func_gnulib_dir): Don't call this program
31         gnulib-tool.
32         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33         with using $0 in function.
34         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35         (func_fatal_error): Reuse the name the user invoked us with.
36
37 2008-09-27  Bruno Haible  <bruno@clisp.org>
38
39         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41         (gl_ICONV_H): Not here.
42         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43         instead of assigning ICONV_H directly.
44
45         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47         WCHAR_H directly.
48
49 2008-09-27  Bruno Haible  <bruno@clisp.org>
50
51         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52         * modules/arpa_inet (Depends-on): Add link-warning.
53         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54         * modules/unistd (Makefile.am): Likewise.
55
56 2008-09-26  Bruno Haible  <bruno@clisp.org>
57
58         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
59         variables.
60         (func_version): Essentially copied from gnulib-tool.
61         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
62         func_readlink): Copied from gnulib-tool.
63
64 2008-09-26  Bruno Haible  <bruno@clisp.org>
65
66         * gnulib-tool (func_version): Change directory to $gnulib_dir before
67         invoking git-version-gen.
68
69 2008-09-26  Bruno Haible  <bruno@clisp.org>
70
71         * posix-modules: Update to directory names changed on 2008-01-19.
72         Remove commas in output before splitting into words. No more need to
73         avoid 'ftruncate' since 2007-02-19.
74
75 2008-09-26  Bruno Haible  <bruno@clisp.org>
76
77         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
78
79 2008-09-26  Bruno Haible  <bruno@clisp.org>
80
81         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
82         * modules/fwriteerror (Depends-on): Add errno.
83
84 2008-09-26  Bruno Haible  <bruno@clisp.org>
85
86         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87         * tests/test-vc-list-files-cvs.sh: Likewise.
88
89 2008-09-26  Bruno Haible  <bruno@clisp.org>
90
91         * doc/posix-headers/sys_resource.texi: Reorder items.
92
93 2008-09-26  Jim Meyering  <meyering@redhat.com>
94
95         fts: tweak inode comparison function
96         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
97         inode numbers, as documented.
98
99         fts: sort dirent entries on inode number before traversing
100         This avoids a quadratic, seek-related performance penalty when
101         operating on a directory containing many entries (measurable at 10k;
102         3.5 hours at 2 million entries with a cold cache) on certain types
103         of file systems, including ext3 and ext4, but not tmpfs.
104         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
105         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
106         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
107         (fs_handles_readdir_ordered_dirents_efficiently): New function.
108         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
109         (fts_build): Set the stat.st_ino member from D_INO.
110         If it is likely to be useful, sort dirent entries on inode number.
111
112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
113         and the struct statfs.f_type member.
114         * modules/fts (Depends-on): Add d-ino.
115
116 2008-09-26  Bruno Haible  <bruno@clisp.org>
117
118         * modules/sigpipe-die (Depends-on): Add sigpipe.
119
120         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
121         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
122         and GNULIB_STDIO_H_SIGPIPE are set.
123         * lib/stdio-write.c: New file.
124         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
125         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
126         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
127         REPLACE_STDIO_WRITE_FUNCS.
128         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
129         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
130         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
131         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
132         * modules/stdio (Files): Add lib/stdio-write.c.
133         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
134         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
135         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
136         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
137         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
138         REPLACE_FPRINTF_POSIX.
139         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
140         REPLACE_PRINTF_POSIX.
141         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
142         REPLACE_VFPRINTF_POSIX.
143         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
144         REPLACE_VPRINTF_POSIX.
145         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
146         SIGPIPE issue.
147         * doc/posix-functions/fputc.texi: Likewise.
148         * doc/posix-functions/fputs.texi: Likewise.
149         * doc/posix-functions/fwrite.texi: Likewise.
150         * doc/posix-functions/printf.texi: Likewise.
151         * doc/posix-functions/putc.texi: Likewise.
152         * doc/posix-functions/putchar.texi: Likewise.
153         * doc/posix-functions/puts.texi: Likewise.
154         * doc/posix-functions/vfprintf.texi: Likewise.
155         * doc/posix-functions/vprintf.texi: Likewise.
156
157         * modules/safe-write (Depends-on): Add write.
158
159         * modules/sigpipe-tests: New file.
160         * tests/test-sigpipe.c: New file.
161         * tests/test-sigpipe.sh: New file.
162
163         * modules/write: New file.
164         * lib/unistd.in.h: Include <sys/types.h>.
165         (write): New declaration.
166         * lib/write.c: New file.
167         * m4/write.m4: New file.
168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
169         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
170         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
171         GNULIB_WRITE, REPLACE_WRITE.
172         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
173         and the SIGPIPE issue.
174
175         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
176         (raise): New declaration.
177         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
178         (ext_signal): New function.
179         (rpl_raise): New function.
180         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
181         GNULIB_SIGNAL_H_SIGPIPE.
182         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
183         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
184
185         * modules/sigpipe: New file.
186         * m4/sigpipe.m4: New file.
187
188 2008-09-25  Derek Price  <derek@ximbiot.com>
189             Bruno Haible  <bruno@clisp.org>
190
191         * gnulib-tool (func_import): Report all license incompatibilities, not
192         just the first one.
193
194 2008-09-25  Bruno Haible  <bruno@clisp.org>
195
196         * gnulib-tool (func_import): When computing the edits, consider not
197         only the Makefile.ams that exist but also those that will be generated.
198
199 2008-09-25  Simon Josefsson  <simon@josefsson.org>
200
201         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
202         fixes gnulib-tool --test warning about duplicate dependency.
203
204 2008-09-25  Bruno Haible  <bruno@clisp.org>
205
206         * gnulib-tool: Don't ask the user to perform edits in the generated
207         Makefile.ams.
208         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
209         apply to the Makefile.am being generated.
210         (func_emit_tests_Makefile_am): Execute edits that apply to the
211         Makefile.am being generated.
212         (func_import): Setup list of Makefile.am edits before emitting the
213         Makefile.ams, not at the end.
214         (func_create_testdir): Update.
215         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
216
217 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
218
219         * gnulib-tool (func_import): Store the --tests-base option in the
220         comment in gnulib-cache.m4.
221
222 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
223
224         * NEWS: Document increased portability that sys_select now provides.
225
226         * lib/sys_select.in.h: Install select wrapper.
227         * lib/sys_socket.in.h: Use more descriptive name when there is no
228         select wrapper.
229         * lib/winsock-select.c: New.
230         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
231         Require gl_HEADER_SYS_SOCKET.
232         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
233         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
234         * tests/test-sys_select.c: Add functional tests.
235
236 2008-09-24  Eric Blake  <ebb9@byu.net>
237
238         open, fopen: close fd leak in last patch
239         * lib/open.c (rpl_open): Close fd before returning error.
240         * lib/fopen.c (rpl_fopen): Close fd before returning error.
241         * doc/posix-functions/open.texi (open): Document that Irix also
242         has the bug.
243         * doc/posix-functions/fopen.texi (fopen): Likewise.
244         Reported by Paolo Bonzini.
245
246 2008-09-24  Bruno Haible  <bruno@clisp.org>
247
248         Ensure that a filename ending in a slash cannot be used to access a
249         non-directory.
250         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
251         to check whether it's really a directory.
252         * lib/fopen.c: Include fcntl.h, unistd.h.
253         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
254         and fdopen().
255         * modules/fopen (Depends-on): Add unistd.
256         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
257         * tests/test-fopen.c (main): Likewise.
258         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
259         * doc/posix-functions/fopen.texi: Likewise.
260         Reported by Eric Blake.
261
262 2008-09-23  Eric Blake  <ebb9@byu.net>
263
264         c-stack: avoid compiler optimizations when provoking overflow
265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
266         recursion harder to optimize, to ensure a stack overflow occurs.
267         * tests/test-c-stack.c (recurse): Likewise.
268         Borrowed from libsigsegv.
269
270         c-stack: work around Irix sigaltstack bug
271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
272         whether sigaltstack uses wrong end of stack_t (copied in part from
273         libsigsegv).
274         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
275         Irix bug, without requiring an over-allocation.
276         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
277         bug.
278
279         fopen: document mingw bug on directories
280         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
281         not allowing a stream visiting a directory, even though reading
282         from such a stream is not portable.
283
284 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
285
286         * lib/poll.c: Rewrite.
287         * modules/poll: Depend on alloca.
288
289 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
290
291         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
292         instead define prototypes for a full set of wrappers.  Ensure
293         that Cygwin does not use the compatibility code, which is only
294         for MinGW.
295         * lib/winsock.c: New.
296         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
297         * modules/sys_socket: Add lib/winsock.c.
298
299         * modules/poll-tests: Add errno and perror.
300         * tests/test-poll.c: Use ioctl, not ioctlsocket.
301
302 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
303
304         * tests/test-poll.c: Downgrade minimum needed Winsock version.
305
306 2008-09-23  Bruno Haible  <bruno@clisp.org>
307
308         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
309         * doc/glibc-functions/*: Likewise.
310
311 2008-09-23  Simon Josefsson  <simon@josefsson.org>
312
313         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
314         success.
315
316 2008-09-22  Eric Blake  <ebb9@byu.net>
317             Bruno Haible  <bruno@clisp.org>
318
319         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
320         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
321         supply %A but mishandle pseudo-NaN.
322         Reported by Simon Josefsson.
323
324 2008-09-21  Bruno Haible  <bruno@clisp.org>
325
326         * tests/test-lock.c (main): Tweak skip message.
327         * tests/test-tls.c (main): Likewise.
328
329 2008-09-21  Bruno Haible  <bruno@clisp.org>
330
331         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
332         whether 'struct sigaction' has sa_sigaction here...
333         (gl_PREREQ_SIG_HANDLER_H): ... not here.
334         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
335
336 2008-09-21  Bruno Haible  <bruno@clisp.org>
337
338         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
339         section.
340         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
341         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
342         the new section.
343         (Support for obsolete systems lacking POSIX:2001): New section.
344         (String handling <string.h>): Move strdup to the new section.
345         Suggested by Simon Josefsson and Paolo Bonzini.
346
347 2008-09-21  Bruno Haible  <bruno@clisp.org>
348
349         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
350         exponents in %e and %g results on 'long double'. Needed for mingw's
351         improved *printf functions.
352         * tests/test-vasprintf-posix.c (test_function): Likewise.
353         * tests/test-snprintf-posix.h (test_function): Likewise.
354         * tests/test-sprintf-posix.h (test_function): Likewise.
355         Reported by Eric Blake.
356
357 2008-09-21  Bruno Haible  <bruno@clisp.org>
358
359         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
360         * tests/test-sprintf-posix.h (test_function): Likewise.
361
362 2008-09-21  Bruno Haible  <bruno@clisp.org>
363
364         * modules/getpass (Depends-on): Add strdup-posix.
365
366         New module 'strdup-posix'.
367         * modules/strdup-posix: New file.
368         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
369         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
371         REPLACE_STRDUP.
372         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
373         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
375         strdup-posix.
376
377         * modules/strdup (Depends-on): Remove malloc-posix.
378
379 2008-09-20  Bruno Haible  <bruno@clisp.org>
380
381         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
382         Wildenhues.
383
384 2008-09-20  Bruno Haible  <bruno@clisp.org>
385
386         Ensure that wint_t gets defined on IRIX 5.3.
387         * lib/wchar.in.h (wint_t): Define if not defined by the system.
388         * lib/wctype.in.h (wint_t): Likewise.
389         (__wctype_wint_t): Remove type.
390         (isw*): Use wint_t instead of __wctype_wint_t.
391         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
392         * modules/wchar (Files): Add m4/wint_t.m4.
393         (Makefile.am): Substitute HAVE_WINT_T.
394         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
395         * tests/test-wctype.c: Check that wint_t is defined.
396         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
397         * doc/posix-headers/wctype.texi: Likewise.
398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
399
400 2008-09-18  Bruno Haible  <bruno@clisp.org>
401
402         * gnulib-tool (func_exit): Update comment.
403
404 2008-09-18  Simon Josefsson  <simon@josefsson.org>
405
406         * modules/getaddrinfo (Depends-on): Remove strdup, this module
407         assumes strdup exists and does not depend on strdup to return
408         ENOMEM on out of memory conditions.
409
410 2008-09-18  Bruno Haible  <bruno@clisp.org>
411
412         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
413         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
414         digits for the exponent.
415
416 2008-09-18  Jim Meyering  <meyering@redhat.com>
417             Bruno Haible  <bruno@clisp.org>
418
419         * lib/vasnprintf.c (decimal_point_char): Define also if
420         NEED_PRINTF_INFINITE_LONG_DOUBLE.
421
422 2008-09-16  Bruno Haible  <bruno@clisp.org>
423         and Eric Blake  <ebb9@byu.net>
424
425         vasnprintf: support Irix 5.3
426         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
427         that mishandle long double infinity.
428         Reported by Tom G. Christensen.
429
430 2008-09-16  Bruno Haible  <bruno@clisp.org>
431
432         * doc/glibc-functions/scandir.texi: Mention the function is missing on
433         Solaris 9.
434         * doc/glibc-functions/alphasort.texi: Likewise.
435         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
436
437 2008-09-16  Jim Meyering  <meyering@redhat.com>
438
439         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
440         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
441         a umask modification leak out of a subshell.  Otherwise, the
442         opensolaris /bin/sh would be accepted and thus cause unwarranted
443         failures in the coreutils test suite.
444
445 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
446
447         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
448         to succeed.
449
450 2008-09-16  Jim Meyering  <meyering@redhat.com>
451
452         avoid spurious test failure when library is built without ACL support
453         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
454         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
455         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
456         * tests/test-copy-acl.sh: Likewise.
457
458 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
459
460         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
461         based on character occurrence counts.
462
463 2008-09-15  Eric Blake  <ebb9@byu.net>
464
465         tests: avoid some compiler warnings
466         * tests/test-memchr.c (main): Pass NULL indirectly.
467         * tests/test-closein.c (main): Avoid unused variable.
468
469 2008-09-15  Bruno Haible  <bruno@clisp.org>
470
471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
472         are missing on OpenBSD 4.0 individually.
473         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
474
475 2008-09-15  Bruno Haible  <bruno@clisp.org>
476
477         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
478         * doc/posix-functions/strerror.texi: Mention also Cygwin.
479         * doc/posix-functions/perror.texi: Likewise.
480         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
481         is missing.
482         Reported by Eric Blake.
483
484         * lib/errno.in.h: Use replacement values >= 2000.
485         Reported by Eric Blake.
486
487 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
488
489         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
490         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
491         limit.
492         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
493         compareseq was aborted.
494
495 2008-09-14  Bruno Haible  <bruno@clisp.org>
496
497         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
498         yvec_edit_count.
499         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
500         (fstrcmp_bounded): Simplify result computation accordingly.
501
502 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
503
504         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
505         (fstrcmp): Define in terms of fstrcmp_bounded.
506         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
507         lower_bound argument.
508         Return quickly if the result is certainly < lower_bound.
509         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
510
511 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
512
513         * lib/diffseq.h (EARLY_ABORT): New macro.
514         (compareseq): Change return type to bool. Return true when EARLY_ABORT
515         evaluates to true.
516
517 2008-09-14  Bruno Haible  <bruno@clisp.org>
518
519         * modules/perror-tests: New file.
520         * tests/test-perror.sh: New file.
521         * tests/test-perror.c: New file.
522
523         New module 'perror'.
524         * lib/stdio.in.h (perror): New declaration.
525         * lib/perror.c: New file.
526         * m4/perror.m4: New file.
527         * modules/perror: New file.
528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
529         * doc/posix-functions/perror.texi: Mention the perror module.
530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
531         REPLACE_PERROR.
532         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
533         REPLACE_PERROR.
534
535 2008-09-14  Bruno Haible  <bruno@clisp.org>
536
537         * modules/stdio (Makefile.am): Reorder to match the order in
538         lib/stdio.in.h.
539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
540
541 2008-09-13  Bruno Haible  <bruno@clisp.org>
542
543         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
544
545 2008-09-13  Bruno Haible  <bruno@clisp.org>
546
547         Extend strerror to cover the added errno values.
548         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
549         (rpl_strerror): Provide error messages for the added errno values and
550         for the WSA* values.
551         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
552         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
553         strerror.
554         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
555         * modules/strerror (Depends-on): Add errno.
556         * doc/posix-functions/strerror.texi: Document the change.
557         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
558         and EOVERFLOW.
559
560 2008-09-13  Bruno Haible  <bruno@clisp.org>
561
562         * modules/EOVERFLOW: Remove file.
563         * m4/eoverflow.m4: Remove file.
564         * modules/EOVERFLOW-tests: Remove file.
565         * tests/test-EOVERFLOW.c: Remove file.
566         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
567         * modules/ftell (Depends-on): Likewise.
568         * modules/getdelim (Depends-on): Likewise.
569         * modules/getugroups (Depends-on): Likewise.
570         * modules/poll (Depends-on): Likewise.
571         * modules/snprintf (Depends-on): Likewise.
572         * modules/sprintf-posix (Depends-on): Likewise.
573         * modules/vasnprintf (Depends-on): Likewise.
574         * modules/vasprintf (Depends-on): Likewise.
575         * modules/vfprintf-posix (Depends-on): Likewise.
576         * modules/vsnprintf (Depends-on): Likewise.
577         * modules/vsprintf-posix (Depends-on): Likewise.
578         * modules/xvasprintf (Depends-on): Likewise.
579         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
580         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
581         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
582         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
584         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
585         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
586         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
587         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
588         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
589         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
590         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
592         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
593         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
594         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
595         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
596         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
597         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
598         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
599         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
600         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
601         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
602         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
603         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
605         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
606         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
607         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
608         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
609         * MODULES.html.sh: Remove EOVERFLOW.
610         * NEWS: Mention the change.
611
612 2008-09-13  Bruno Haible  <bruno@clisp.org>
613
614         * modules/errno-tests: New file.
615         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
616
617         * lib/errno.in.h: New file.
618         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
619         * modules/errno: New file.
620         * doc/posix-headers/errno.texi: Update documentation.
621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
622
623 2008-09-13  Bruno Haible  <bruno@clisp.org>
624
625         * tests/test-poll.c: Use #if for native Windows, rather than testing
626         __MSVCRT__.
627
628 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
629             Bruno Haible  <bruno@clisp.org>
630
631         * lib/glob.c: Don't include <pwd.h> on native Windows.
632         (WINDOWS32): New macro.
633         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
634
635 2008-09-13  Bruno Haible  <bruno@clisp.org>
636
637         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
638         (ETIMEDOUT): Remove macro.
639         (glthread_cond_timedwait_multithreaded): New declaration.
640         (glthread_cond_timedwait): Use it.
641         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
642         (glthread_cond_timedwait_multithreaded): New function.
643
644 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
645
646         * modules/poll-tests: Do not check for io.h.
647         * tests/test-poll.c: Check for __MSVCRT__ instead.
648
649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
650
651         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
652         * modules/poll-tests: Add inet_pton, stdbool, sockets.
653         * tests/test-poll.c: Use them.  Use _pipe on Windows.
654
655 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
656
657         * modules/poll-tests: New.
658         * tests/test-poll.c: New.
659
660 2008-09-12  Eric Blake  <ebb9@byu.net>
661
662         frexp: test for NetBSD failure on -0.0
663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
664         not all, bugs from NetBSD 3.0 have been fixed.
665         * doc/posix-functions/frexp.texi (frexp): Document bug.
666         Reported by Thomas Klausner.
667
668         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
669         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
670         literal -0.0.
671         Reported by Jonathan C. Patschke <jp@centtech.com>.
672
673 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
674
675         * lib/glthread/cond.h: Use dummy implementation also if
676         USE_WIN32_THREADS.
677
678 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
679
680         * modules/fnmatch-posix (License): Change to LGPLv2+.
681         * modules/fnmatch-gnu (License): Likewise.
682
683 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
684
685         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
686
687 2008-09-11  Jim Meyering  <meyering@redhat.com>
688
689         * users.txt: Add gtk-vnc.
690
691 2008-09-08  Simon Josefsson  <simon@josefsson.org>
692
693         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
694         rotate amounts.
695
696         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
697         required for 16-bit and 8-bit rotates.
698         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
699         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
700         UINT8_MAX instead of hard-coded constants.
701         Suggested by Paul Eggert.
702
703 2008-09-07  Bruno Haible  <bruno@clisp.org>
704
705         * tests/test-striconveh.c (main): Check behaviour when converting from
706         UTF-7.
707
708         Make striconveh work better with stateful encodings.
709         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
710         that iconv does not increment the inptr when returning -1/EINVAL.
711
712 2008-09-07  Bruno Haible  <bruno@clisp.org>
713
714         * build-aux/config.rpath: Update according to libtool-2.2.6.
715         * build-aux/config.libpath: Likewise.
716
717 2008-09-06  Bruno Haible  <bruno@clisp.org>
718
719         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
720         * lib/freadptr.c (freadptr): Likewise.
721         * lib/freadseek.c (freadptrinc): Likewise.
722         Reported by Simon Josefsson.
723
724 2008-09-06  Bruno Haible  <bruno@clisp.org>
725
726         * modules/freadptr (License): Change to LGPLv2+.
727         * modules/freadseek (License): Likewise.
728         Suggested by Eric Blake.
729
730         * modules/memchr2 (License): Change to LGPLv2+.
731         Approved by Eric Blake.
732
733 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
734             Bruno Haible  <bruno@clisp.org>
735
736         Make gnulib-tool work with native 'sed' on AIX.
737         * gnulib-tool (sed_noop): New variable.
738         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
739         func_add_or_update, func_create_testdir): Use it to initialize sed
740         script variables.
741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
742
743 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
744             Bruno Haible  <bruno@clisp.org>
745
746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
747         also works after #include directives.
748
749 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
750
751         getdate.y: reject an out-of-range timezone value
752         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
753         the range [-24...+24].  When specified with only one or two digits,
754         * tests/test-getdate.c: Tests for the fix.
755         * doc/getdate.texi: Document this change.
756
757 2008-09-03  Bruno Haible  <bruno@clisp.org>
758
759         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
760
761 2008-09-02  Simon Josefsson  <simon@josefsson.org>
762
763         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
764         <bruce.korb@gmail.com> with ideas from Ben Pfaff
765         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
766         Blake <ebb9@byu.net>.
767
768         * tests/test-bitrotate.c: Add more test vectors.
769
770 2008-09-02  Eric Blake  <ebb9@byu.net>
771
772         vasnprintf-posix: handle large precision via %.*d
773         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
774         when handling it ourselves.
775         * tests/test-vasnprintf-posix.c (test_function): Add test.
776         * tests/test-snprintf-posix.h (test_function): Likewise.
777         * tests/test-sprintf-posix.h (test_function): Likewise.
778         * tests/test-vasprintf-posix.c (test_function): Likewise.
779         Reported by Alain Guibert.
780
781 2008-09-01  Eric Blake  <ebb9@byu.net>
782
783         c-stack: make configure-time check more robust
784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
785         successful sigaction call.
786         Reported by Tom G. Christensen.
787
788 2008-09-01  Bruno Haible  <bruno@clisp.org>
789
790         New module 'findprog-lgpl'.
791         * modules/findprog-lgpl: New file.
792         * lib/findprog-lgpl.c: New file.
793         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
794         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
795         to decide whether to use strdup or xstrdup, concatenated_filename or
796         xconcatenated_filename.
797
798 2008-09-01  Bruno Haible  <bruno@clisp.org>
799
800         Split module 'concat-filename' into 'concat-filename' (LGPL) and
801         'xconcat-filename' (GPL).
802         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
803         (License): Change to LGPLv2+.
804         * modules/xconcat-filename: New file.
805         * lib/concat-filename.h (concatenated_filename): Change specification.
806         (xconcatenated_filename): New declaration.
807         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
808         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
809         memory situations.
810         * lib/xconcat-filename.c: New file.
811         * NEWS: Mention the change.
812         * lib/findprog.c: Include concat-filename.h, not filename.h.
813         (find_in_path): Use xconcatenated_filename instead of
814         concatenated_filename.
815         * lib/javacomp.c: Include concat-filename.h, not filename.h.
816         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
817         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
818         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
819         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
820         instead of concatenated_filename.
821         * lib/javaexec.c: Include concat-filename.h, not filename.h.
822         (execute_java_class): Use xconcatenated_filename instead of
823         concatenated_filename.
824         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
825         * modules/javacomp (Depends-on): Likewise.
826         * modules/javaexec (Depends-on): Likewise.
827
828 2008-09-01  Bruno Haible  <bruno@clisp.org>
829
830         Split module 'filename' into 'filename' and 'concat-filename'.
831         * modules/filename: Keep only lib/filename.h.
832         (License): Change to LGPLv2+.
833         * modules/concat-filename: New file, extracted from modules/filename.
834         * lib/filename.h (concatenated_filename): Remove declaration.
835         * lib/concat-filename.h: New file, extracted from lib/filename.h.
836         * lib/concat-filename.c: Include concat-filename.h.
837         * NEWS: Mention the change.
838
839 2008-09-01  Simon Josefsson  <simon@josefsson.org>
840
841         * lib/bitrotate.h (rotl8, rotr8): Add.
842
843         * modules/bitrotate (configure.ac): Need
844         AC_REQUIRE([AC_C_INLINE]).
845         (Description): Mention stdint.h.  Reported by Bruno Haible
846         <bruno@clisp.org>.
847
848         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
849         Paolo Bonzini <bonzini@gnu.org>.
850
851 2008-08-31  Bruno Haible  <bruno@clisp.org>
852
853         Assume Solaris specific bi-arch conventions on Solaris systems.
854         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
855         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
857         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
858         like acl_libdirstem.
859         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
860         acl_libdirstem.
861         * NEWS: Mention the change.
862         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
863
864 2008-08-31  Jim Meyering  <meyering@redhat.com>
865
866         * lib/strftime.h: Add comments describing the two added arguments.
867
868         remove duplicate #include directives
869         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
870         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
871
872 2008-08-31  Bruno Haible  <bruno@clisp.org>
873
874         New module 'sigpipe-die'.
875         * modules/sigpipe-die: New file.
876         * lib/sigpipe-die.h: New file.
877         * lib/sigpipe-die.c: New file.
878         * MODULES.html.sh (Signal handling): Add sigpipe-die.
879
880 2008-08-31  Bruno Haible  <bruno@clisp.org>
881
882         Don't override previously installed signal handlers.
883         * lib/fatal-signal.c (saved_sigactions): New variable.
884         (uninstall_handlers): Reset the signal to the saved handler, not
885         to SIG_DFL (except when ignored).
886         (install_handlers): Save the previous handlers.
887
888 2008-08-30  Bruno Haible  <bruno@clisp.org>
889
890         * gnulib-tool (func_reset_sigpipe): New function.
891         (func_get_automake_snippet, func_modules_transitive_closure,
892         func_import): Invoke it before a join command that reads from stdin,
893         to avoid "echo: write error: Broken pipe" error messages on stderr.
894         Reported by Sam Steingold <sds@gnu.org>.
895
896 2008-08-30  Bruno Haible  <bruno@clisp.org>
897
898         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
899         Code copied from m4/open.m4.
900         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
901         access and the filename ends in a slash. Code copied from lib/open.c.
902         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
903         * tests/test-fopen.c (main): Check against bug with trailing slash.
904
905 2008-08-29  Bruno Haible  <bruno@clisp.org>
906
907         Avoid some "gcc -pedantic" warnings.
908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
909         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
910         * lib/dirent.in.h: Likewise.
911         * lib/fcntl.in.h: Likewise.
912         * lib/float.in.h: Likewise.
913         * lib/iconv.in.h: Likewise.
914         * lib/inttypes.in.h: Likewise.
915         * lib/locale.in.h: Likewise.
916         * lib/math.in.h: Likewise.
917         * lib/netinet_in.in.h: Likewise.
918         * lib/search.in.h: Likewise.
919         * lib/signal.in.h: Likewise.
920         * lib/stdarg.in.h: Likewise.
921         * lib/stdint.in.h: Likewise.
922         * lib/stdio.in.h: Likewise.
923         * lib/stdlib.in.h: Likewise.
924         * lib/string.in.h: Likewise.
925         * lib/strings.in.h: Likewise.
926         * lib/sys_select.in.h: Likewise.
927         * lib/sys_socket.in.h: Likewise.
928         * lib/sys_stat.in.h: Likewise.
929         * lib/sys_time.in.h: Likewise.
930         * lib/sysexits.in.h: Likewise.
931         * lib/time.in.h: Likewise.
932         * lib/unistd.in.h: Likewise.
933         * lib/wchar.in.h: Likewise.
934         * lib/wctype.in.h: Likewise.
935         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
936         * modules/fchdir (Makefile.am): Likewise.
937         * modules/fcntl (Makefile.am): Likewise.
938         * modules/float (Makefile.am): Likewise.
939         * modules/iconv_open (Makefile.am): Likewise.
940         * modules/inttypes (Makefile.am): Likewise.
941         * modules/locale (Makefile.am): Likewise.
942         * modules/math (Makefile.am): Likewise.
943         * modules/netinet_in (Makefile.am): Likewise.
944         * modules/search (Makefile.am): Likewise.
945         * modules/signal (Makefile.am): Likewise.
946         * modules/stdarg (Makefile.am): Likewise.
947         * modules/stdint (Makefile.am): Likewise.
948         * modules/stdio (Makefile.am): Likewise.
949         * modules/stdlib (Makefile.am): Likewise.
950         * modules/string (Makefile.am): Likewise.
951         * modules/strings (Makefile.am): Likewise.
952         * modules/sys_select (Makefile.am): Likewise.
953         * modules/sys_socket (Makefile.am): Likewise.
954         * modules/sys_stat (Makefile.am): Likewise.
955         * modules/sys_time (Makefile.am): Likewise.
956         * modules/sysexits (Makefile.am): Likewise.
957         * modules/time (Makefile.am): Likewise.
958         * modules/unistd (Makefile.am): Likewise.
959         * modules/wchar (Makefile.am): Likewise.
960         * modules/wctype (Makefile.am): Likewise.
961         Reported by Reuben Thomas <rrt@sc3d.org>.
962
963 2008-08-29  Bruno Haible  <bruno@clisp.org>
964
965         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
966         any more.
967
968 2008-08-29  Simon Josefsson  <simon@josefsson.org>
969
970         * MODULES.html.sh (Misc): Add bitrotate.
971
972         * modules/bitrotate: New file.
973
974         * lib/bitrotate.h: New file.
975
976         * modules/bitrotate-tests: New file.
977
978         * tests/test-bitrotate.c: New file.
979
980         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
981         on the bitrotate module.
982
983         * lib/arctwo.c: Use new bitrotate module.
984
985 2008-08-29  Jim Meyering  <meyering@redhat.com>
986
987         bootstrap: merge changes from coreutils
988         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
989         of copied files.  Remove a kludge, now that this is fixed.
990         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
991         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
992         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
993
994 2008-08-29  Bruno Haible  <bruno@clisp.org>
995
996         * MODULES.html.sh: Remove --cvs-urls option.
997
998 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
999
1000         maint.mk: adjust to file name change
1001         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1002
1003 2008-08-28  Jim Meyering  <meyering@redhat.com>
1004
1005         * modules/getndelim2 (License): Relicense to LGPLv2+.
1006         Approved by Richard Stallman for the version of 1995, and by
1007         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1008
1009 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
1010
1011         * lib/getdelim.c (flockfile, funlockfile): Make all of them
1012         dummy if one is not available.  Do not touch them if
1013         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1014         (getc_maybe_unlocked): New.
1015         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1016
1017 2008-08-26  Eric Blake  <ebb9@byu.net>
1018
1019         doc/INSTALL: resync from autoconf
1020         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1021         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1022         moving...
1023         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1024         * INSTALL: Regenerate.
1025         * INSTALL.ISO: New file.
1026         * INSTALL.UTF-8: Likewise.
1027
1028 2008-08-26  Jim Meyering  <meyering@redhat.com>
1029
1030         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1031         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1032         these definitions conditional, so that they may be overridden, too.
1033
1034 2008-08-26  Bruno Haible  <bruno@clisp.org>
1035
1036         Generate INSTALL file variants with prettier quotes.
1037         * doc/Makefile (INSTALL_PRELUDE): New macro.
1038         (INSTALL): Use it.
1039         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1040
1041 2008-08-26  Bruno Haible  <bruno@clisp.org>
1042
1043         Run makeinfo in an English locale.
1044         * doc/Makefile (MAKEINFO): New variable.
1045
1046 2008-08-26  Bruno Haible  <bruno@clisp.org>
1047
1048         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1049         Suggested by Eric Blake.
1050
1051 2008-08-25  Bruno Haible  <bruno@clisp.org>
1052
1053         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
1054
1055 2008-08-25  Eric Blake  <ebb9@byu.net>
1056
1057         c-stack: test that stack overflow can be caught
1058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
1059         that platform allows handling stack overflow; at least OS/2 EMX
1060         has sigaltstack, but crashes before transferring control to
1061         handler on stack overflow.
1062         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
1063         check for HAVE_STACK_OVERFLOW_HANDLING.
1064         Reported by Elbert Pol.
1065
1066 2008-08-25  Bruno Haible  <bruno@clisp.org>
1067
1068         * doc/posix-functions/strftime.texi: Fix description of strftime
1069         module.
1070
1071 2008-08-24  Bruno Haible  <bruno@clisp.org>
1072
1073         * tests/uniwidth/test-uc_width2.c: New file.
1074         * tests/uniwidth/test-uc_width2.sh: New file.
1075         * modules/uniwidth/width-tests (Files): Add the new files.
1076         (TESTS): Add uniwidth/test-uc_width2.sh.
1077         (TESTS_ENVIRONMENT): New variable.
1078         (check_PROGRAMS): Add test-uc_width2.
1079         (test_uc_width2_SOURCES): New variable.
1080
1081         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1082         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1083         not 0x00AB.
1084         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1085
1086 2008-08-22  Eric Blake  <ebb9@byu.net>
1087
1088         test-lock, test-tls: mention why a test is skipped
1089         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1090         skipped.
1091         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1092
1093         count-one-bits: relax license
1094         * modules/count-one-bits (License): Relicense to LGPLv2+.
1095         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1096
1097 2008-08-22  Andreas Schwab  <schwab@suse.de>
1098
1099         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1100         Remove spurious space in assignment.
1101
1102 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1103
1104         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1105         Paul Eggert <eggert@CS.UCLA.EDU>.
1106
1107 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1108
1109         * modules/gettext: Add m4/threadlib.m4.
1110
1111 2008-08-19  Eric Blake  <ebb9@byu.net>
1112
1113         test-c-stack: fix compilation failure on FreeBSD 5.0
1114         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1115         headers before <sys/resource.h>.
1116         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1117         the bug.
1118         Reported by Nelson H. F. Beebe.
1119
1120         strverscmp: migrate from "strverscmp.h" to <string.h>
1121         * modules/string (Makefile.am): Add new hooks.
1122         * modules/strverscmp (Files): Remove strverscmp.h.
1123         (Depends-on): Add string.
1124         (configure.ac): Add indicator.
1125         (Include): Mention new header.
1126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1127         defaults.
1128         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1129         results.
1130         * lib/strverscmp.h: Delete.
1131         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1132         * tests/test-strverscmp.c (includes): Adjust client.
1133         * lib/check-version.c (includes): Likewise.
1134         * NEWS: Document the change.
1135
1136         strverscmp: add unit test
1137         * modules/strverscmp-tests: New file.
1138         * tests/test-strverscmp.c: Likewise.
1139
1140 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1141
1142         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1143         regarding Windows crypto stuff, from Mono.
1144
1145 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1146
1147         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1148         if present, for intel RND.  Return error on failures.
1149
1150 2008-08-18  Ben Pfaff  <blp@gnu.org>
1151
1152         gitlog-to-changelog: give better diagnostic for failed pipe-open
1153         * build-aux/gitlog-to-changelog: Improve error message: suggest
1154         that the version of Git may be too old.
1155
1156 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1157
1158         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1159         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1160
1161 2008-08-18  Bruno Haible  <bruno@clisp.org>
1162
1163         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1164         pthread_in_use().
1165
1166 2008-08-18  Bruno Haible  <bruno@clisp.org>
1167
1168         * lib/glthread/threadlib.c: Include <pthread.h>.
1169
1170 2008-08-18  Bruno Haible  <bruno@clisp.org>
1171
1172         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1173         glthread_recursive_lock_* macros.
1174         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1175         Fix syntax error.
1176
1177 2008-08-18  Bruno Haible  <bruno@clisp.org>
1178
1179         * lib/glthread/thread.c: Avoid forcing a context switch right after
1180         thread creation.
1181
1182 2008-08-17  Bruno Haible  <bruno@clisp.org>
1183
1184         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1185         * lib/glthread/thread.h: Provide Win32 specific implementation.
1186         * modules/thread (Files): Add lib/glthread/thread.c.
1187         (Depends-on): Add lock.
1188         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1189
1190 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1191
1192         New module 'yield'.
1193         * modules/yield: New file.
1194         * lib/glthread/yield.h: New file.
1195         * m4/yield.m4: New file.
1196         * MODULES.html.sh (Multithreading): Add yield.
1197
1198 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1199
1200         New module 'thread'.
1201         * modules/thread: New file.
1202         * lib/glthread/thread.h: New file.
1203         * m4/thread.m4: New file.
1204         * MODULES.html.sh (Multithreading): Add thread.
1205
1206 2008-08-17  Bruno Haible  <bruno@clisp.org>
1207
1208         * lib/glthread/lock.h: Include <stdlib.h> always.
1209         * lib/glthread/tls.h: Likewise.
1210         * lib/glthread/cond.h: Likewise.
1211
1212 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1213
1214         New module 'cond'.
1215         * modules/cond: New file.
1216         * lib/glthread/cond.h: New file.
1217         * lib/glthread/cond.c: New file.
1218         * m4/cond.m4: New file.
1219         * MODULES.html.sh (Multithreading): Add cond.
1220
1221 2008-08-16  Eric Blake  <ebb9@byu.net>
1222
1223         c-stack: fix regression on Irix 5.3 from 2008-06-21
1224         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1225         sa_sigaction...
1226         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1227         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1228         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1229         * modules/signal (Makefile.am): Use the value.
1230         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1231         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1232         * doc/posix-headers/signal.texi (signal.h): Document this
1233         portability issue.
1234         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1235         Reported by Tom G. Christensen.
1236
1237 2008-08-17  Bruno Haible  <bruno@clisp.org>
1238
1239         New module 'threadlib'.
1240         * modules/threadlib: New file.
1241         * lib/glthread/threadlib.c: New file, extracted from
1242         lib/glthread/lock.c.
1243         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1244         functions.
1245         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1246         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1247         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1248         macros.
1249         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1250         (gl_DISABLE_THREADS): Remove macro.
1251         * modules/lock (Files): Remove build-aux/config.rpath.
1252         (Depends-on): Remove havelib. Add threadlib.
1253         (configure.ac-early): Remove section.
1254         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1255         * modules/tls (Depends-on): Remove lock. Add threadlib.
1256         (Link): New section, copied from threadlib.
1257         * MODULES.html.sh (Multithreading): Add threadlib.
1258
1259 2008-08-14  Bruno Haible  <bruno@clisp.org>
1260
1261         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1262         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1263         glthread_rwlock_unlock, glthread_rwlock_destroy,
1264         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1265         glthread_recursive_lock_destroy): Define as macros always.
1266         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1267         glthread_lock_lock.
1268         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1269         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1270         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1271         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1272         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1273         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1274         (glthread_recursive_lock_lock_func): Renamed from
1275         glthread_recursive_lock_lock.
1276         (glthread_recursive_lock_unlock_func): Renamed from
1277         glthread_recursive_lock_unlock.
1278         (glthread_recursive_lock_destroy_func): Renamed from
1279         glthread_recursive_lock_destroy.
1280
1281 2008-08-14  Bruno Haible  <bruno@clisp.org>
1282
1283         * lib/glthread/lock.h: Renamed from lib/lock.h.
1284         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1285         * lib/glthread/tls.h: Renamed from lib/tls.h.
1286         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1287         * lib/fstrcmp.c: Update includes.
1288         * lib/strsignal.c: Update includes.
1289         * modules/lock (Files, Makefile.am): Update.
1290         (Include): Change to "glthread/lock.h".
1291         * modules/tls (Files, Makefile.am): Update.
1292         (Include): Change to "glthread/tls.h".
1293         * tests/test-lock.c: Update includes.
1294         * tests/test-tls.c: Update includes.
1295         * NEWS: Mention the renamed header files.
1296
1297 2008-08-11  Jim Meyering  <meyering@redhat.com>
1298
1299         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1300
1301 2008-08-11  Eric Blake  <ebb9@byu.net>
1302
1303         test-c-stack: avoid C99-ism
1304         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1305         before statement.
1306         Reported by Alain Guibert.
1307
1308 2008-08-10  Jim Meyering  <meyering@redhat.com>
1309
1310         ensure that return value of uinttostr et al are not ignored
1311         * lib/inttostr.h (__GNUC_PREREQ): Define.
1312         (__attribute_warn_unused_result__): Define.
1313         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1314
1315 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1316
1317         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1318         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1319
1320 2008-08-07  Jim Meyering  <meyering@redhat.com>
1321
1322         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1323
1324         * modules/mkstemp (License): Relicense under LGPLv2+.
1325         * modules/tempname (License): Likewise.
1326
1327 2008-08-06  Bruno Haible  <bruno@clisp.org>
1328
1329         * lib/poll.c (poll): Further micro-optimization.
1330
1331 2008-08-06  Jim Meyering  <meyering@redhat.com>
1332
1333         inet_pton.c: use locale-independent tolower
1334         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1335         (inet_pton6): Use c_tolower rather than tolower.
1336         * modules/inet_pton (Depends-on): Add c-ctype.
1337
1338 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1339
1340         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1341         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1342
1343 2008-08-06  Jim Meyering  <meyering@redhat.com>
1344
1345         * modules/inet_pton (License): Relicense under LGPLv2+.
1346
1347 2008-08-03  Bruno Haible  <bruno@clisp.org>
1348
1349         Additional non-aborting API for lock and tls.
1350         * lib/lock.h: Include <errno.h>.
1351         (glthread_lock_init): New macro/function.
1352         (gl_lock_init): Define as wrapper around glthread_lock_init.
1353         (glthread_lock_lock): New macro/function.
1354         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1355         (glthread_lock_unlock): New macro/function.
1356         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1357         (glthread_lock_destroy): New macro/function.
1358         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1359         (glthread_rwlock_init): New macro/function.
1360         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1361         (glthread_rwlock_rdlock): New macro/function.
1362         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1363         (glthread_rwlock_wrlock): New macro/function.
1364         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1365         (glthread_rwlock_unlock): New macro/function.
1366         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1367         (glthread_rwlock_destroy): New macro/function.
1368         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1369         (glthread_recursive_lock_init): New macro/function.
1370         (gl_recursive_lock_init): Define as wrapper around
1371         glthread_recursive_lock_init.
1372         (glthread_recursive_lock_lock): New macro/function.
1373         (gl_recursive_lock_lock): Define as wrapper around
1374         glthread_recursive_lock_lock.
1375         (glthread_recursive_lock_unlock): New macro/function.
1376         (gl_recursive_lock_unlock): Define as wrapper around
1377         glthread_recursive_lock_unlock.
1378         (glthread_recursive_lock_destroy): New macro/function.
1379         (gl_recursive_lock_destroy): Define as wrapper around
1380         glthread_recursive_lock_destroy.
1381         (glthread_once): New macro/function.
1382         (gl_once): Define as wrapper around glthread_once.
1383         Update function declarations.
1384         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1385         glthread_rwlock_init. Return error code.
1386         (glthread_rwlock_rdlock_multithreaded): Renamed from
1387         glthread_rwlock_rdlock. Return error code.
1388         (glthread_rwlock_wrlock_multithreaded): Renamed from
1389         glthread_rwlock_wrlock. Return error code.
1390         (glthread_rwlock_unlock_multithreaded): Renamed from
1391         glthread_rwlock_unlock. Return error code.
1392         (glthread_rwlock_destroy_multithreaded): Renamed from
1393         glthread_rwlock_destroy. Return error code.
1394         (glthread_recursive_lock_init_multithreaded): Renamed from
1395         glthread_recursive_lock_init. Return error code.
1396         (glthread_recursive_lock_lock_multithreaded): Renamed from
1397         glthread_recursive_lock_lock. Return error code.
1398         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1399         glthread_recursive_lock_unlock. Return error code.
1400         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1401         glthread_recursive_lock_destroy. Return error code.
1402         (glthread_once_call): Make static.
1403         (glthread_once_multithreaded): Renamed from glthread_once.
1404         * lib/tls.h: Include <errno.h>.
1405         (glthread_tls_key_init): New macro/function.
1406         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1407         (glthread_tls_set): New macro/function.
1408         (gl_tls_set): Define as wrapper around glthread_tls_set.
1409         (glthread_tls_key_destroy): New macro/function.
1410         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1411         Update function declarations.
1412         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1413         glthread_tls_get.
1414         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1415
1416 2008-08-04  Eric Blake  <ebb9@byu.net>
1417
1418         gnumakefile: use space, not TAB, outside of targets
1419         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1420
1421 2008-08-02  Jim Meyering  <meyering@redhat.com>
1422
1423         getdate.y: avoid locale-dependent date parsing failure
1424         In Turkish locales, getdate would fail to recognize keywords
1425         containing a lowercase "i".  The solution is not to rely on
1426         locale-sensitive case-conversion.
1427         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1428         (lookup_word): Use c_toupper in place of toupper.
1429         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1430         Reported by Vefa Bicakci <bicave@superonline.com> in
1431         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1432         * modules/getdate (Depends-on): Add c-ctype.
1433
1434 2008-08-02  Bruno Haible  <bruno@clisp.org>
1435
1436         * gnulib-tool (func_import): When updating or creating a .gitignore
1437         file, prepend each added line with a slash, and ignore leading slashes
1438         from the existing lines.
1439         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1440
1441 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1442
1443         Portability fix for GNU make 3.79.1.
1444         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1445         versions do not understand.
1446
1447 2008-08-01  Bruno Haible  <bruno@clisp.org>
1448
1449         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1450         * tests/test-isnanf.h (zero): New variable.
1451         (main): Avoid literal -0.0f.
1452         * tests/test-isnand.h (zero): New variable.
1453         (main): Avoid literal -0.0.
1454         * tests/test-isnanl.h (zero): New variable.
1455         (main): Avoid literal -0.0L.
1456         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1457         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1458         -0.0, -0.0L.
1459         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1460         (test_signbitd): Avoid literal -0.0.
1461         (test_signbitl): Avoid literal -0.0L.
1462         * tests/test-ceilf1.c (zero): New variable.
1463         (main): Avoid literal -0.0f.
1464         * tests/test-ceill.c (zero): New variable.
1465         (main): Avoid literal -0.0L.
1466         * tests/test-floorf1.c (zero): New variable.
1467         (main): Avoid literal -0.0f.
1468         * tests/test-floorl.c (zero): New variable.
1469         (main): Avoid literal -0.0L.
1470         * tests/test-roundf1.c (zero): New variable.
1471         (main): Avoid literal -0.0f.
1472         * tests/test-round1.c (zero): New variable.
1473         (main): Avoid literal -0.0.
1474         * tests/test-roundl.c (zero): New variable.
1475         (main): Avoid literal -0.0L.
1476         * tests/test-truncf1.c (zero): New variable.
1477         (main): Avoid literal -0.0f.
1478         * tests/test-trunc1.c (zero): New variable.
1479         (main): Avoid literal -0.0.
1480         * tests/test-truncl.c (zero): New variable.
1481         (main): Avoid literal -0.0L.
1482         * tests/test-frexp.c (zero): New variable.
1483         (main): Avoid literal -0.0.
1484         * tests/test-frexpl.c (zero): New variable.
1485         (main): Avoid literal -0.0L.
1486         * tests/test-ldexpl.c (zero): New variable.
1487         (main): Avoid literal -0.0L.
1488         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1489         (zerod, zerol): New variables.
1490         (test_function): Avoid literals -0.0, -0.0L.
1491         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1492         (zerod, zerol): New variables.
1493         (test_function): Avoid literals -0.0, -0.0L.
1494         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1495         (zerod, zerol): New variables.
1496         (test_function): Avoid literals -0.0, -0.0L.
1497         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1498         (zerod, zerol): New variables.
1499         (test_function): Avoid literals -0.0, -0.0L.
1500         * tests/test-strtod.c (zero): New variable.
1501         (main): Avoid literal -0.0.
1502         Reported by Jonathan C. Patschke <jp@centtech.com>.
1503
1504 2008-07-31  Jim Meyering  <meyering@redhat.com>
1505
1506         sha256.h: correct definition of SHA224_DIGEST_SIZE
1507         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1508         Reported by Paulie Pena IV <paulie4@gmail.com>.
1509         Define as 224 / 8, rather than as a literal.
1510         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1511         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1512         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1513
1514 2008-07-31  Bruno Haible  <bruno@clisp.org>
1515
1516         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1517         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1518         Reported by Jonathan Patschke <jp@centtech.com>.
1519
1520 2008-07-31  Bruno Haible  <bruno@clisp.org>
1521
1522         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1523         Reported by Paolo Bonzini <bonzini@gnu.org>.
1524
1525 2008-07-30  Eric Blake  <ebb9@byu.net>
1526
1527         test-strtod: allow compilation without -lm
1528         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1529         Reported by Dennis Clarke <blastwave@gmail.com>.
1530
1531 2008-07-28  Jim Meyering  <meyering@redhat.com>
1532
1533         bootstrap: work also when there are no .po files in po/
1534         * build-aux/bootstrap (update_po_files): Complete the change
1535         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1536
1537 2008-07-27  Jim Meyering  <meyering@redhat.com>
1538
1539         * users.txt: Add zile.
1540
1541 2008-07-26  Ben Pfaff  <blp@gnu.org>
1542
1543         Add missing dependencies on new m4/exponent[fdl].m4 files.
1544         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1545         * modules/isnand-nolibm: Add m4/exponentd.m4.
1546         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1547         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1548         m4/isnan[fdl].m4, because the macros actually used moved.
1549         Reported by Jim Meyering.
1550
1551 2008-07-14  Ben Pfaff  <blp@gnu.org>
1552
1553         Add isinf module.
1554         * lib/isinf.c: New file.
1555         * lib/math.in.h: Define isinf macro if we have decided to replace
1556         it.
1557         * m4/isinf.m4: New file.
1558         * m4/math_h.m4: Initialize and substitute variables for isinf
1559         module.
1560         * modules/isinf: New file.
1561         * modules/isinf-tests: New file.
1562         * modules/math: Add substitutions for new module.
1563         * tests/test-isinf.c: New file.
1564         * doc/posix-functions/isinf.texi: Mention new module.
1565         * MODULES.html.sh: Mention new module.
1566
1567 2008-07-14  Ben Pfaff  <blp@gnu.org>
1568
1569         Factor out some macros for use by additional modules.
1570         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1571         exponentf.m4.
1572         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1573         exponentd.m4.
1574         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1575         file exponentl.m4.
1576         * m4/exponentf.m4: New file.
1577         * m4/exponentd.m4: New file.
1578         * m4/exponentl.m4: New file.
1579         * modules/isnanf: Use new file m4/exponentf.m4.
1580         * modules/isnand: Use new file m4/exponentd.m4.
1581         * modules/isnanl: Use new file m4/exponentl.m4.
1582
1583 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1584
1585         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1586         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1587         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1588         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1589
1590         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1591         readlink on platforms without PATH_MAX.
1592
1593 2008-07-21  Eric Blake  <ebb9@byu.net>
1594
1595         Warn, not fail, on stale version.
1596         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1597
1598         Don't allow installation with stale devel version number.
1599         * top/GNUmakefile (_is-install-target): New macro.
1600         (_curr-ver): Forbid installation with stale version number.
1601
1602 2008-07-20  Bruno Haible  <bruno@clisp.org>
1603
1604         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1605         TESTS_ENVIRONMENT.
1606         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1607
1608 2008-07-20  Bruno Haible  <bruno@clisp.org>
1609
1610         * lib/c-stack.h (c_stack_action): Add documentation.
1611         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1612
1613 2008-07-20  Bruno Haible  <bruno@clisp.org>
1614
1615         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1616         * modules/readlink (License): Likewise.
1617
1618 2008-07-17  Eric Blake  <ebb9@byu.net>
1619
1620         * modules/c-stack (Link): Fix typo.
1621
1622         Make c-stack use libsigsegv, when available.
1623         * modules/c-stack (Depends-on): Add libsigsegv.
1624         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1625         needed.
1626         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1627         (segv_handler, overflow_handler, c_stack_action)
1628         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1629         implementation when libsigsegv is available, but only when using
1630         the library is necessary.
1631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1632         comment, explaining why XSI check fails on Linux.
1633         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1634         * tests/test-c-stack2.sh: Tweak skip message.
1635         * NEWS: Document new link-time requirements.
1636
1637 2008-07-16  Eric Blake  <ebb9@byu.net>
1638
1639         c-stack: Expose false positives when not using libsigsegv.
1640         * modules/c-stack-tests (Files): Expand test.
1641         * tests/test-c-stack.c (main): Add means to conditionally trigger
1642         non-overflow SIGSEGV.
1643         * tests/test-c-stack2.sh: New file.
1644
1645 2008-07-14  Bruno Haible  <bruno@clisp.org>
1646
1647         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1648         Reported by Eric Blake.
1649
1650 2008-07-14  Sam Steingold  <sds@gnu.org>
1651             Bruno Haible  <bruno@clisp.org>
1652
1653         New module libsigsegv.
1654         * modules/libsigsegv: New file.
1655         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1656         modifications.
1657         * MODULES.html.sh (Signal handling): New section.
1658
1659 2008-07-14  Bruno Haible  <bruno@clisp.org>
1660
1661         * modules/unictype/ctype-* (Description): Add the word "function".
1662         Improves the resulting doc in MODULES.html.
1663
1664 2008-07-12  Ben Pfaff  <blp@gnu.org>
1665
1666         Add longlong module.
1667         * modules/longlong: New file.
1668
1669 2008-07-12  Bruno Haible  <bruno@clisp.org>
1670
1671         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1672         to empty.
1673
1674 2008-07-10  Ben Pfaff  <blp@gnu.org>
1675
1676         Add isnan module.
1677         * doc/posix-functions/isnan.texi: Mention new module.
1678         * lib/math.in.h: Define isnan macro if we have decided to replace
1679         it.
1680         * m4/isnan.m4: New file.
1681         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1682         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1683         also.
1684         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1685         redundancy.
1686         * m4/math_h.m4: Initialize and substitute variables for isnan
1687         module.
1688         * modules/isnan: New file.
1689         * modules/isnan-tests: New file.
1690         * modules/math: Add substitutions for new module.
1691         * tests/test-isnan.c: New file.
1692         * MODULES.html.sh: Mention new module.
1693
1694 2008-07-10  Ben Pfaff  <blp@gnu.org>
1695
1696         Add isnanf module.
1697         * lib/isnanf.m4: New file.
1698         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1699         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1700         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1701         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1702         * modules/isnanf: New file.
1703         * modules/isnanf-tests: New file.
1704         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1705         files.
1706         * tests/test-isnanf-nolibm.c: factored most of its contents into
1707         new file tests/test-isnanf.h.
1708         * tests/test-isnanf.h: New file.
1709         * tests/test-isnanf.c: New file.
1710         * MODULES.html.sh: Mention new module.
1711         * doc/glibc-functions/isnanf.texi: Mention new module.
1712
1713 2008-07-10  Ben Pfaff  <blp@gnu.org>
1714
1715         Add isnand module.
1716         * lib/isnand.h: New file.
1717         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1718         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1719         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1720         functionality also.
1721         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1722         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1723         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1724         * modules/isnand: New file.
1725         * modules/isnand-tests: New file.
1726         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1727         files.
1728         * tests/test-isnand-nolibm.c: factored most of its contents into
1729         new file tests/test-isnand.h.
1730         * tests/test-isnand.h: New file.
1731         * tests/test-isnand.c: New file.
1732         * MODULES.html.sh: Mention new module.
1733
1734 2008-07-10  Ben Pfaff  <blp@gnu.org>
1735
1736         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1737         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1738         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1739         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1740         * modules/isnanf-nolibm: Update references to renamed files.
1741         * modules/isnand-nolibm: Likewise.
1742         * modules/isnanf-nolibm-tests: Likewise.
1743         * modules/isnand-nolibm-tests: Likewise.
1744         * lib/frexp.c: Likewise.
1745         * lib/isfinite.c: Likewise.
1746         * lib/signbitd.c: Likewise.
1747         * lib/signbitf.c: Likewise.
1748         * lib/vasnprintf.c: Likewise.
1749         * tests/test-ceilf1.c: Likewise.
1750         * tests/test-ceilf2.c: Likewise.
1751         * tests/test-floorf1.c: Likewise.
1752         * tests/test-floorf2.c: Likewise.
1753         * tests/test-frexp.c: Likewise.
1754         * tests/test-round1.c: Likewise.
1755         * tests/test-round2.c: Likewise.
1756         * tests/test-roundf1.c: Likewise.
1757         * tests/test-strtod.c: Likewise.
1758         * tests/test-trunc1.c: Likewise.
1759         * tests/test-trunc2.c: Likewise.
1760         * tests/test-truncf1.c: Likewise.
1761         * tests/test-truncf2.c: Likewise.
1762         * NEWS: Mention the renamed header files.
1763
1764 2008-07-11  Jim Meyering  <meyering@redhat.com>
1765
1766         vc-list-files: make the last-resort awk code more portable
1767         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1768         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1769         does not support it.
1770
1771 2008-07-10  Eric Blake  <ebb9@byu.net>
1772
1773         Work with tar's bootstrap.
1774         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1775         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1776         an m4 comment.
1777
1778 2008-07-09  Jim Meyering  <meyering@redhat.com>
1779
1780         posix-shell.m4: fix typo that made this test malfunction
1781         * m4/posix-shell.m4: Remove capitalization in variable name.
1782
1783 2008-07-08  Bruno Haible  <bruno@clisp.org>
1784
1785         * m4/onceonly.m4: Update comments.
1786         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1787
1788 2008-07-04  Jim Meyering  <meyering@redhat.com>
1789
1790         * users.txt: Add vc-dwim.
1791         (bison, coreutils): Use the gitweb URL.
1792
1793 2008-07-03  Jim Meyering  <meyering@redhat.com>
1794
1795         * users.txt: Add libffcall.  From Sam Steingold.
1796
1797 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
1798
1799         getdate.y: do not ignore TZ with relative day, month or year offset
1800         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1801         relative-date-handling, since otherwise, the latter would clobber the
1802         sole output (an updated Start value) of the tz-handling block.
1803         * tests/test-getdate.c: Tests for the fix
1804
1805 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1806
1807         Recognize 'foo_LIBRARIES += libgnu.a'.
1808         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1809         makefile snippet has already specified an installation location,
1810         also using '+='.
1811
1812 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
1813
1814         getdate.y: factor out common actions
1815         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1816         Use them in place of open-coded actions.
1817
1818 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1819
1820         Add self-test for getdate module.
1821         * modules/getdate-tests: New file.
1822         * tests/test-getdate.c: New file.
1823
1824 2008-06-29  Bruno Haible  <bruno@clisp.org>
1825
1826         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1827         .gitignore.
1828         Reported by Sylvain Beucler <beuc@beuc.net>.
1829
1830 2008-06-29  Bruno Haible  <bruno@clisp.org>
1831
1832         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1833         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1834
1835 2008-06-29  Bruno Haible  <bruno@clisp.org>
1836
1837         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1838         EXTRA_DIST.
1839         Reported by Sylvain Beucler <beuc@beuc.net>.
1840
1841 2008-06-26  Jim Meyering  <meyering@redhat.com>
1842
1843         make several modules depend on the "open" module
1844         This provides slightly increased consistency when opening-for-write
1845         the name of a non-directory spelled with a trailing slash.
1846         * modules/chdir-safer: Likewise.
1847         * modules/chown: Likewise.
1848         * modules/clean-temp: Likewise.
1849         * modules/copy-file: Likewise.
1850         * modules/fchdir: Likewise.
1851         * modules/fcntl-safer: Likewise.
1852         * modules/pipe: Likewise.
1853         * modules/utime: Likewise.
1854         Prompted by Eric Blake and Bruno Haible.
1855
1856 2008-06-24  Andreas Schwab  <schwab@suse.de>
1857
1858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1859         literals can be used as initializers for global variables.
1860
1861 2008-06-23  Eric Blake  <ebb9@byu.net>
1862
1863         Make gnulib-cache.m4 easier to diff.
1864         * gnulib-tool (func_import): Allow newlines when reading cached
1865         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1866
1867 2008-06-23  Bruno Haible  <bruno@clisp.org>
1868
1869         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1870         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1871         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1872         m4/signalblocking.m4.
1873         (gl_PREREQ_SIGACTION): Don't invoke it.
1874         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1875         gl_PREREQ_SIG_HANDLER_H.
1876         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1877         Don't check for sigaction here.
1878
1879 2008-06-23  Bruno Haible  <bruno@clisp.org>
1880
1881         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1882         (install_handlers): Don't set the SA_RESETHAND flag.
1883
1884 2008-06-23  Bruno Haible  <bruno@clisp.org>
1885
1886         * m4/sigaction.m4: Comment fixes.
1887         * lib/signal.in.h: Likewise.
1888
1889 2008-06-23  Eric Blake  <ebb9@byu.net>
1890
1891         Fix typo.
1892         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1893
1894         Avoid SA_ namespace.
1895         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1896         Reported by Ralf Wildenhues.
1897
1898         Avoid test failure due to SA_RESTORER.
1899         * tests/test-sigaction.c (SA_MASK): New macro.
1900         (main): Avoid failing due to extension flags being set.
1901         Reported by Jim Meyering.
1902
1903         Revert use of sig-handler.h in sigprocmask.c.
1904         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1905         it requires the existence of struct sigaction.
1906         * lib/sigprocmask.c (handler_t): Restore typedef.
1907         (rpl_signal, old_handlers): Use local type.
1908
1909 2008-06-22  Bruno Haible  <bruno@clisp.org>
1910
1911         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1912         conditionally.
1913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1914
1915 2008-06-22  Bruno Haible  <bruno@clisp.org>
1916
1917         * doc/posix-functions/siginterrupt.texi: Move note.
1918
1919         * lib/signal.in.h (SA_RESTART): New macro.
1920         * lib/sigaction.c: Update comment.
1921
1922         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1923
1924         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1925         (gl_PREREQ_SIGPROCMASK): Invoke it.
1926         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1927
1928         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1929
1930         * lib/sigprocmask.c: Update a comment.
1931
1932 2008-06-21  Eric Blake  <ebb9@byu.net>
1933
1934         Use sigaction module rather than signal().
1935         * modules/c-stack (Depends-on): Add sigaction.
1936         * modules/fatal-signal (Depends-on): Likewise.
1937         * modules/nanosleep (Depends-on): Likewise.
1938         * modules/sigprocmask (Files): Add sig-handler.h.
1939         * modules/sigaction (Files): Likewise.
1940         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1941         Eggert.
1942         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1943         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1944         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1945         (init_fatal_signals): Likewise.
1946         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1947         (siginterrupt): Delete fallback.
1948         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1949         instead.
1950         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1951         siginterrupt.
1952
1953         New module sigaction, for mingw.
1954         * modules/sigaction: New module...
1955         * modules/sigaction-tests: ...and its test.
1956         * m4/sigaction.m4: New file.
1957         * lib/sigaction.c: Likewise.
1958         * tests/test-sigaction.c: Likewise.
1959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1960         * modules/signal (Makefile.am): Likewise.
1961         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1962         needed.
1963         * doc/posix-headers/signal.texi (signal.h): Mention provided
1964         types.
1965         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1966         that sigaction is preferable.
1967         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1968         module.
1969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1970         sigaction.
1971
1972         Improve robustness of sigprocmask by overriding signal.
1973         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1974         is in use.
1975         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1976         (SIGKILL, SIGSTOP): Provide fallbacks.
1977         (rpl_signal): Implement.
1978         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1979         signal can be called inside handlers.
1980
1981         Fix nanosleep module on mingw.
1982         * modules/nanosleep (Depends-on): Add sys_select.
1983         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1984
1985         Fix licensing of sigprocmask.
1986         * modules/raise (License): Relicense as LGPL.
1987
1988 2008-06-21  Bruno Haible  <bruno@clisp.org>
1989
1990         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1991         result if it contains question marks.
1992         Reported by Michael Geng <linux@michaelgeng.de>.
1993
1994 2008-06-19  Bruno Haible  <bruno@clisp.org>
1995
1996         Fix CVS-ism.
1997         * doc/gnulib.texi: Include updated-stamp.texi.
1998         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1999         (updated-stamp.texi): New rule.
2000         (gnulib.info): Depend on it.
2001         * doc/.gitignore: Add updated-stamp.texi.
2002         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2003
2004 2008-06-19  Bruno Haible  <bruno@clisp.org>
2005
2006         * doc/Makefile (gnulib.info): Update and simplify dependencies.
2007         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2008
2009 2008-06-19  Eric Blake  <ebb9@byu.net>
2010
2011         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2012         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2013         Reported by Stepan Kasal.
2014
2015 2008-06-18  Bruno Haible  <bruno@clisp.org>
2016
2017         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2018         Reported by Eric Blake.
2019
2020 2008-06-18  Eric Blake  <ebb9@byu.net>
2021
2022         Work around cygwin 1.5.25 strsignal bug.
2023         * tests/test-strsignal.c: Allow for const char *.
2024         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2025
2026 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2027
2028         * users.txt: Update URL to article and add author/date
2029         information.
2030
2031 2008-06-17  Bruno Haible  <bruno@clisp.org>
2032
2033         New macro gl_DISABLE_THREADS.
2034         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2035         if the user did not pass --enable-threads or --disable-threads option.
2036         (gl_DISABLE_THREADS): New macro.
2037         Reported by Eric Blake <ebb9@byu.net>.
2038
2039 2008-06-17  Bruno Haible  <bruno@clisp.org>
2040
2041         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2042         when the macro ignores it.
2043         Based on a patch by Eric Blake <ebb9@byu.net>.
2044
2045 2008-06-17  Bruno Haible  <bruno@clisp.org>
2046
2047         * modules/tls (License): Change to LGPLv2+.
2048         Reported by Eric Blake.
2049
2050 2008-06-17  Eric Blake  <ebb9@byu.net>
2051
2052         Simplify c-stack prerequisites.
2053         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
2054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
2055         no longer requires <ucontext.h> to exist.  Optimize setrlimit
2056         check.
2057         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
2058         <sys/resource.h>.
2059
2060         Move c-stack test into testsuite.
2061         * modules/c-stack-tests: New file.
2062         * lib/c-stack.c [DEBUG]: Move test program...
2063         * tests/test-c-stack.c: ...into this new file.  Skip rather than
2064         fail test if sigaltstack is lacking.
2065         * tests/test-c-stack.sh: New driver file.
2066
2067 2008-06-16  Eric Blake  <ebb9@byu.net>
2068
2069         Use raise module consistently.
2070         * modules/fatal-signal (Depends-on): Add raise.
2071         * modules/sigprocmask (Depends-on): Likewise.
2072         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
2073         * lib/sigprocmask.c (sigprocmask): Likewise.
2074         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2075         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2076
2077         Fix compliance bug in sigpending.
2078         * lib/sigprocmask.c (sigpending): Return pending array via
2079         parameter, not return value.
2080
2081 2008-06-14  Eric Blake  <ebb9@byu.net>
2082
2083         Improve obstack-printf test code.
2084         * tests/test-obstack-printf.c (test_function): Fix comment, and
2085         simplify usage of obstack_* in macros.  Add a test for coverage.
2086         Reported by Bruno Haible.
2087
2088 2008-06-14  Bruno Haible  <bruno@clisp.org>
2089
2090         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2091         array size as a constant, not as a const variable.
2092         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2093         AC_USE_SYSTEM_EXTENSIONS.
2094         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2095         Test whether the obstack_printf function actually exists.
2096         * modules/obstack-printf (Depends-on): Add extensions.
2097         (Include): Remove obstack.h.
2098         * modules/obstack-printf-posix (Depends-on): Add extensions.
2099         (Include): Remove obstack.h.
2100
2101 2008-06-13  Eric Blake  <ebb9@byu.net>
2102
2103         Add obstack-printf and obstack-printf-posix modules.
2104         * modules/obstack-printf: New file.
2105         * modules/obstack-printf-posix: Likewise.
2106         * MODULES.html.sh (Misc): Mention them.
2107         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2108         Likewise.
2109         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2110         Likewise.
2111         * modules/stdio (Makefile.am): Accomodate new modules.
2112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2113         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2114         Declare.
2115         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2116         functions.
2117         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2118         (gl_REPLACE_OBSTACK_PRINTF): New macros
2119         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2120         * tests/test-obstack-printf.c: New file.
2121         * modules/obstack-printf-tests: Likewise.
2122         * modules/obstack-printf-posix-tests: Likewise.
2123
2124 2008-06-11  Bruno Haible  <bruno@clisp.org>
2125
2126         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2127         * lib/open.c: Include errno.h.
2128         (open): Fail when attempting to write to a file that has a trailing
2129         slash.
2130         * tests/test-open.c (main): Test against trailing slash bug.
2131         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2132
2133 2008-06-10  Bruno Haible  <bruno@clisp.org>
2134
2135         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2136         for $? to work inside the trap command, with various /bin/sh-s.
2137         * tests/test-vc-list-files-cvs.sh: Likewise.
2138
2139 2008-06-10  Bruno Haible  <bruno@clisp.org>
2140
2141         * lib/acl-internal.h: Don't include gettext.h here.
2142         * lib/set-mode-acl.c: Include gettext.h here.
2143         * lib/copy-acl.c: Likewise.
2144
2145 2008-06-10  Bruno Haible  <bruno@clisp.org>
2146
2147         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2148         * lib/wait-process.c (wait_subprocess): Likewise.
2149         * lib/execute.h (execute): Add termsigp argument.
2150         * lib/execute.c (execute): Likewise.
2151         * lib/csharpcomp.c (compile_csharp_using_pnet,
2152         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2153         * lib/csharpexec.c (execute_csharp_using_pnet,
2154         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2155         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2156         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2157         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2158         is_jikes_present): Update.
2159         * lib/javaexec.c (execute_java_class): Update.
2160         * lib/javaversion.c (execute_and_read_line): Update.
2161         * NEWS: Document the changes.
2162         Reported by Eric Blake.
2163
2164 2008-06-10  Eric Blake  <ebb9@byu.net>
2165
2166         Add missing include.
2167         * tests/test-strstr.c (includes): Add <signal.h>.
2168         * tests/test-strcasestr.c (includes): Likewise.
2169         * tests/test-memmem.c (includes): Likewise.
2170
2171 2008-06-10  Bruno Haible  <bruno@clisp.org>
2172
2173         * lib/wait-process.c (wait_subprocess): Add an assertion.
2174
2175 2008-06-10  Bruno Haible  <bruno@clisp.org>
2176
2177         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2178
2179 2008-06-10  Bruno Haible  <bruno@clisp.org>
2180
2181         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2182         using alarm().
2183         * tests/test-strcasestr.c (main): Likewise.
2184         * tests/test-strstr.c (main): Likewise.
2185
2186 2008-06-09  Bruno Haible  <bruno@clisp.org>
2187
2188         Work around the Solaris 10 ACE ACLs ABI change.
2189         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2190         declare if ACL_NO_TRIVIAL is present.
2191         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2192         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2193         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2194         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2195         define if ACL_NO_TRIVIAL is present.
2196         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2197         and use the current ABI.
2198         (file_has_acl): Use same #if condition as elsewhere.
2199         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2200         in use, and use the current ABI.
2201         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2202         Reported by Jim Meyering.
2203
2204 2008-06-09  Eric Blake  <ebb9@byu.net>
2205
2206         Work around environments that (stupidly) ignore SIGALRM.
2207         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2208         before using alarm().
2209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2211         Reported by Ian Beckwith <ianb@erislabs.net>.
2212
2213         Produce autobuild blurb earlier in log.
2214         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2215
2216 2008-06-09  Jim Meyering  <meyering@redhat.com>
2217         and OndÅ™ej Vašík  <ovasik@redhat.com>
2218
2219         utimens.c: correct kernel bug work-around
2220         OndÅ™ej Vašík found that the invalid return value of 280 indicates
2221         failure, not success, and the kernel bug we're trying to work
2222         around affects not just the utimensat call, but also the fallback
2223         futimens call.
2224         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2225         not success.
2226         [HAVE_FUTIMENS]: Use the same work-around, here.
2227
2228 2008-06-09  Jim Meyering  <meyering@redhat.com>
2229
2230         add more guards around definition of ACE_-related code
2231         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2232         ALLOW and ACE_OWNER are also defined.
2233
2234 2008-06-08  Bruno Haible  <bruno@clisp.org>
2235
2236         * lib/acl-internal.h: Add me as co-author.
2237         * lib/file-has-acl.c: Likewise.
2238         * lib/set-mode-acl.c: Likewise.
2239         * lib/copy-acl.c: Likewise.
2240
2241 2008-06-08  Bruno Haible  <bruno@clisp.org>
2242
2243         Add support for AIX ACLs.
2244         * lib/acl-internal.h (acl_nontrivial): New declaration.
2245         * lib/file-has-acl.c (acl_nontrivial): New function.
2246         (file_has_acl): Add implementation using AIX 4 ACL API.
2247         * lib/set-mode-acl.c (qset_acl): Likewise.
2248         * lib/copy-acl.c (qcopy_acl): Likewise.
2249
2250 2008-06-08  Bruno Haible  <bruno@clisp.org>
2251
2252         Add support for HP-UX ACLs.
2253         * lib/acl-internal.h (acl_nontrivial): New declaration.
2254         * lib/file-has-acl.c (acl_nontrivial): New function.
2255         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2256         * lib/set-mode-acl.c (qset_acl): Likewise.
2257         * lib/copy-acl.c (qcopy_acl): Likewise.
2258
2259 2008-06-08  Bruno Haible  <bruno@clisp.org>
2260
2261         Add support for Cygwin ACLs.
2262         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2263         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2264         the chmod_or_fchmod call.
2265         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2266
2267 2008-06-08  Bruno Haible  <bruno@clisp.org>
2268
2269         Fix bug with setuid modes in Solaris 10+ code.
2270         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2271         succeeded, when the mode contains some special bits.
2272
2273 2008-06-08  Bruno Haible  <bruno@clisp.org>
2274
2275         Add support for Solaris 7..10 ACLs.
2276         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2277         declarations.
2278         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2279         functions.
2280         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2281         * lib/set-mode-acl.c (qset_acl): Likewise.
2282         * lib/copy-acl.c (qcopy_acl): Likewise.
2283
2284 2008-06-08  Bruno Haible  <bruno@clisp.org>
2285
2286         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2287         declaration.
2288         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2289         (acl_access_nontrivial): Remove MacOS X case.
2290         (file_has_acl): Use acl_extended_nontrivial.
2291         * lib/copy-acl.c (qcopy_acl): Likewise.
2292
2293 2008-06-08  Bruno Haible  <bruno@clisp.org>
2294
2295         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2296
2297 2008-06-08  Jim Meyering  <meyering@redhat.com>
2298
2299         * modules/acl (Maintainer): Add Bruno Haible.
2300
2301 2008-06-07  Bruno Haible  <bruno@clisp.org>
2302
2303         Improve support for Tru64 ACLs.
2304         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2305         ACL on OSF/1.
2306
2307 2008-06-07  Bruno Haible  <bruno@clisp.org>
2308
2309         Add support for MacOS X ACLs.
2310         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2311         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2312         * lib/set-mode-acl.c (qset_acl): Likewise.
2313         * lib/copy-acl.c (qcopy_acl): Likewise.
2314
2315 2008-06-07  Bruno Haible  <bruno@clisp.org>
2316
2317         Fix memory leak introduced on 2008-05-22.
2318         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2319         use.
2320
2321 2008-06-07  Bruno Haible  <bruno@clisp.org>
2322
2323         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2324         to construct an empty ACL.
2325
2326 2008-06-07  Bruno Haible  <bruno@clisp.org>
2327
2328         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2329         precisely.
2330         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2331
2332 2008-06-07  Bruno Haible  <bruno@clisp.org>
2333
2334         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2335         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2336
2337 2008-06-07  Bruno Haible  <bruno@clisp.org>
2338
2339         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2340         regardless of POSIX.
2341         * doc/posix-functions/_longjmp.texi: Likewise.
2342         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2343         SystemV platform in this case.
2344
2345 2008-06-06  Eric Blake  <ebb9@byu.net>
2346
2347         Document abort() bugs.
2348         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2349
2350         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2351         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2352         sigsetjmp.
2353         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2354         siglongjmp, but only as a macro.
2355         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2356         is obsolete.
2357         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2358
2359         Tweak documentation to cover cygwin argz bugs.
2360         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2361         argz bug fix; no code change needed since no cygwin releases
2362         occurred between the last fix and the bug being tested.
2363         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2364         module and recently fixed cygwin bugs.
2365         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2366         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2367         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2368         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2369         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2370         Likewise.
2371         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2372         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2373         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2374         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2375         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2376         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2377         Likewise.
2378
2379         Avoid gcc warning on cygwin.
2380         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2381         !ACL_NO_TRIVIAL]: Avoid unused variable.
2382
2383 2008-06-05  Eric Blake  <ebb9@byu.net>
2384
2385         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2386         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2387         git-version-gen fails to come up with a version.
2388         Reported by Simon Josefsson.
2389
2390 2008-06-05  Jim Meyering  <meyering@redhat.com>
2391             Paul Eggert  <eggert@cs.ucla.edu>
2392
2393         utimens.c: work around a probable Linux kernel bug
2394         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2395         appears to be a kernel bug that causes utimensat to return 280
2396         instead of 0, indicating success.
2397
2398 2008-06-04  Bruno Haible  <bruno@clisp.org>
2399
2400         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2401         2008-06-01 commit.
2402
2403 2008-06-04  Bruno Haible  <bruno@clisp.org>
2404
2405         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2406         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2407         (file_has_acl): Use it. Save errno afterwards.
2408         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2409
2410 2008-06-03  Bruno Haible  <bruno@clisp.org>
2411
2412         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2413         draft code. Simplify #ifs.
2414         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2415         Put Solaris code after POSIX-draft code. Fix comments regarding
2416         Solaris 10, HP-UX. Mention Cygwin.
2417         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2418
2419 2008-06-03  Eric Blake  <ebb9@byu.net>
2420
2421         Provide fallback for older kernels.
2422         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2423         Provide runtime fallback if kernel lacks support.
2424         Reported by Mike Frysinger.
2425
2426 2008-06-02  Bruno Haible  <bruno@clisp.org>
2427
2428         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2429         it exists.
2430
2431 2008-06-02  Bruno Haible  <bruno@clisp.org>
2432
2433         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2434         * lib/copy-acl.c (qcopy_acl): Update comment.
2435
2436 2008-06-02  Bruno Haible  <bruno@clisp.org>
2437
2438         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2439         like ACL APIs.
2440
2441 2008-06-02  Bruno Haible  <bruno@clisp.org>
2442
2443         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2444         * tests/test-set-mode-acl.sh: Likewise.
2445         * tests/test-copy-acl.sh: Likewise.
2446         * tests/test-copy-file.sh: Likewise.
2447
2448 2008-06-02  Bruno Haible  <bruno@clisp.org>
2449
2450         * tests/test-file-has-acl.sh: Remove unused code.
2451
2452 2008-06-01  Bruno Haible  <bruno@clisp.org>
2453
2454         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2455         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2456         messages.
2457         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2458
2459 2008-06-01  Bruno Haible  <bruno@clisp.org>
2460
2461         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2462         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2463         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2464         APIs.
2465         * modules/acl-tests (configure.ac): Remove tests now contained in
2466         m4/acl.m4.
2467
2468 2008-06-02  Jim Meyering  <meyering@redhat.com>
2469
2470         announce-gen: use a better key-server host name
2471         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2472         it may be more consistently reliable.  Suggested by Werner Koch
2473         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2474
2475 2008-06-01  Bruno Haible  <bruno@clisp.org>
2476
2477         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2478         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2479
2480 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2481
2482         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2483
2484 2008-06-01  Bruno Haible  <bruno@clisp.org>
2485
2486         New ACL tests.
2487         * tests/test-file-has-acl.sh: New file.
2488         * tests/test-file-has-acl.c: New file.
2489         * tests/test-set-mode-acl.sh: New file.
2490         * tests/test-set-mode-acl.c: New file.
2491         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2492         * tests/test-copy-acl.c: New file.
2493         * modules/acl-tests: New file, based on modules/copy-file-tests.
2494         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2495         (Depends-on): Add acl-tests.
2496         (configure.ac): Remove checks.
2497         (Makefile.am): Don't create test-sameacls program here any more.
2498
2499 2008-06-01  Bruno Haible  <bruno@clisp.org>
2500
2501         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2502         * tests/test-sameacls.c: Include progname.h.
2503         (main): Invoke set_program_name. Portability fixes for MacOS X,
2504         Solaris, HP-UX.
2505
2506 2008-06-01  Bruno Haible  <bruno@clisp.org>
2507
2508         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2509         function.
2510         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2511
2512 2008-06-01  Bruno Haible  <bruno@clisp.org>
2513
2514         * modules/rpmatch (Depends-on): Add strdup.
2515
2516 2008-06-01  Bruno Haible  <bruno@clisp.org>
2517
2518         * lib/pipe.c: Include unistd-safer.h.
2519         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2520         * modules/pipe (Depends-on): Add unistd-safer.
2521
2522 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2523
2524         * modules/autobuild (configure.ac): Call AB_INIT.
2525
2526 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2527
2528         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2529         Suggested by Bruno Haible <bruno@clisp.org>.
2530
2531 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2532
2533         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2534         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2535         <bruno@clisp.org>.
2536
2537 2008-05-29  Eric Blake  <ebb9@byu.net>
2538
2539         Prefer new POSIX 200x interfaces over futimesat.
2540         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2541         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2542         when available.
2543         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2544
2545 2008-05-28  Bruno Haible  <bruno@clisp.org>
2546
2547         * modules/stpcpy (License): Change to LGPLv2+.
2548         Requested by David Lutterkort <dlutter@redhat.com>.
2549
2550 2008-05-27  Bruno Haible  <bruno@clisp.org>
2551
2552         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2553         current mingw.
2554         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2555
2556 2008-05-27  Bruno Haible  <bruno@clisp.org>
2557
2558         * modules/iconv_open (Link): New section, from module 'iconv'.
2559         * modules/striconv (Link): Likewise.
2560         * modules/striconveh (Link): Likewise.
2561         * modules/xstriconv (Link): Likewise.
2562         * modules/unicodeio (Link): Likewise.
2563         * modules/propername (Link): Likewise.
2564         Reported by Jim Meyering.
2565
2566 2008-05-26  Jim Meyering  <meyering@redhat.com>
2567
2568         sha256: do not artificially restrict buffer length to be < 2^32
2569         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2570         uint32_t to size_t.
2571         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2572         to match.
2573
2574         avoid unaligned access errors, e.g., on sparc
2575         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2576         direct access through a possibly-unaligned uint64* pointer.
2577         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2578         direct access through a possibly-unaligned uint32* pointer.
2579         Prompted by this patch from Tom "spot" Callaway:
2580         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2581
2582         sha512.c: fix typo in comment
2583         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2584
2585 2008-05-25  Bruno Haible  <bruno@clisp.org>
2586
2587         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2588         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2589         (Makefile.am): Update lib_SOURCES.
2590
2591 2008-05-25  Bruno Haible  <bruno@clisp.org>
2592
2593         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2594
2595 2008-05-25  Jim Meyering  <meyering@redhat.com>
2596
2597         useless-if-before-free: freed expr may have white-space differences
2598         * build-aux/useless-if-before-free: Recognize cases in which the
2599         freed expression differs from the tested one in embedded white
2600         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2601         $1 was used, so we can't make any regexp shy.  Improved tests now
2602         detect this.
2603
2604         useless-if-before-free: accept white space in the expression.
2605         * build-aux/useless-if-before-free: For now, any white space
2606         in the expression must be identical in the free argument.
2607
2608         useless-if-before-free: efficiency tweak
2609         * build-aux/useless-if-before-free: Make the expression-matching
2610         regexp "shy".
2611         Make the *outer* regexp shy, not the expr-matching one.
2612
2613         update code-in-comment to accept cast of free arg
2614         * build-aux/useless-if-before-free: Update regexp.
2615
2616 2008-05-25  Bruno Haible  <bruno@clisp.org>
2617
2618         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2619         * modules/copy-file-tests (Files, Makefile.am): Update.
2620         * tests/test-copy-file.c (func_test_copy): Update.
2621
2622 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2623
2624         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2625
2626 2008-05-23  Bruno Haible  <bruno@clisp.org>
2627
2628         Improve support for ACLs on OSF/1.
2629         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2630         Remove fallback for unknown flavors of ACLs.
2631
2632 2008-05-22  Bruno Haible  <bruno@clisp.org>
2633
2634         Add support for ACLs on OSF/1.
2635         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2636         replacements.
2637         (acl_free_text): New macro fallback.
2638         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2639         acl_free.
2640         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2641         acl_free_text function. Require AC_C_INLINE.
2642
2643 2008-05-22  Bruno Haible  <bruno@clisp.org>
2644
2645         Make copy_acl work on MacOS X 10.5.
2646         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2647         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2648         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2649         If MODE_INSIDE_ACL, don't assume that every system has the same text
2650         representation for ACLs as FreeBSD.
2651         * lib/copy-acl.c (copy_acl): Add support for platforms with
2652         !MODE_INSIDE_ACL.
2653         * lib/file-has-acl.c (file_has_acl): Likewise.
2654         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2655         FreeBSD, MacOS X, or IRIX, respectively.
2656
2657 2008-05-22  Bruno Haible  <bruno@clisp.org>
2658
2659         * lib/acl.h: Don't include <sys/acl.h>.
2660         (GETACLCNT): Move fallback to lib/acl-internal.h.
2661         * lib/acl-internal.h: Include <sys/acl.h> here.
2662         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2663
2664 2008-05-22  Bruno Haible  <bruno@clisp.org>
2665
2666         Split off copy_acl function to separate file.
2667         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2668         * lib/acl.c (copy_acl): Moved function to separate file.
2669         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2670         * modules/acl (Files): Add lib/copy-acl.c.
2671         (Makefiles.am): Augment lib_SOURCES.
2672
2673 2008-05-22  Bruno Haible  <bruno@clisp.org>
2674
2675         * modules/copy-file-tests: New file.
2676         * tests/test-copy-file.sh: New file.
2677         * tests/test-copy-file.c: New file.
2678         * tests/test-copy-file-sameacls.c: New file.
2679
2680 2008-05-22  Eric Blake  <ebb9@byu.net>
2681
2682         Avoid gcc warning.
2683         * tests/test-memcmp.c (main): Pass NULL indirectly.
2684
2685 2008-05-21  Bruno Haible  <bruno@clisp.org>
2686
2687         Add reference doc about ACLs.
2688         * doc/acl-resources.txt: New file.
2689         * doc/acl-cygwin.txt: New file.
2690
2691 2008-05-21  Bruno Haible  <bruno@clisp.org>
2692
2693         Avoid one more warning from gcc.
2694         * lib/vasnprintf.c (IF_LINT): Update comments.
2695         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2696
2697 2008-05-21  Jim Meyering  <meyering@redhat.com>
2698
2699         avoid a warning from gcc
2700         * lib/vasnprintf.c (IF_LINT): Define.
2701         (scale10_round_decimal_long_double):
2702         Use it to avoid a "may be used uninitialized" warning.
2703         (scale10_round_decimal_double): Likewise.
2704
2705 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2706
2707         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2708         declared.
2709
2710 2008-05-20  Bruno Haible  <bruno@clisp.org>
2711
2712         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2713         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2714
2715 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2716
2717         * modules/memcmp-tests: New file.
2718         * tests/test-memcmp.c: New file.
2719
2720 2008-05-19  Bruno Haible  <bruno@clisp.org>
2721
2722         * modules/propername (Notice, configure.ac): Put quoted "..." into
2723         --keyword option.
2724         * lib/propername.h: Update comments accordingly.
2725         Reported by Eric Blake.
2726
2727 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2728
2729         * modules/getpass-gnu (Depends-on): Add fseeko.
2730
2731 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2732
2733         * modules/base64-tests: New file.
2734
2735 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2736
2737         * lib/base64.c (base64_decode_ctx): If a decode context structure
2738         was passed in use it to ignore newlines.  If a context structure
2739         was _not_ passed in, continue to treat newlines as garbage (this
2740         is the historical behavior).  Formerly base64_decode.
2741         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2742         takes a decode context structure.
2743         * lib/base64.h (base64_decode): Macro for four-argument calls.
2744         (base64_decode_alloc): Likewise.
2745         * lib/base64.c (base64_decode_ctx): If a decode context structure
2746         was passed in use it to ignore newlines.  If a context structure
2747         was _not_ passed in, continue to treat newlines as garbage (this
2748         is the historical behavior).  Formerly base64_decode.
2749         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2750         takes a decode context structure.
2751         * lib/base64.h (base64_decode): Macro for four-argument calls.
2752         (base64_decode_alloc): Likewise.
2753
2754 2008-05-19  Jim Meyering  <meyering@redhat.com>
2755
2756         avoid a warning from gcc
2757         * lib/trim.c (IF_LINT): Define.
2758         (trim2): Use it to avoid a "may be used uninitialized" warning.
2759
2760         Fix doc typo.
2761         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2762
2763 2008-05-19  Bruno Haible  <bruno@clisp.org>
2764
2765         * doc/glibc-functions/getpass.texi: Document limits of other
2766         implementations.
2767
2768 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2769             Bruno Haible <bruno@clisp.org>
2770
2771         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2772
2773 2008-05-18  Bruno Haible  <bruno@clisp.org>
2774
2775         * modules/propername: New file, from GNU gettext.
2776         * lib/propername.h: New file, from GNU gettext.
2777         * lib/propername.c: New file, from GNU gettext.
2778         * MODULES.html.sh (Internationalization functions): Add propername.
2779
2780 2008-05-16  Jim Meyering  <meyering@redhat.com>
2781             Bruno Haible  <bruno@clisp.org>
2782
2783         Avoid some warnings from "gcc -Wshadow".
2784         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2785
2786 2008-05-15  Eric Blake  <ebb9@byu.net>
2787
2788         Extend previous patch to cygwin 1.7.0.
2789         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2790         fast implementation in cygwin >= 1.7.0.
2791         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2793
2794 2008-05-15  Bruno Haible  <bruno@clisp.org>
2795
2796         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2797         implementation in glibc >= 2.9.
2798         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2800
2801 2008-05-15  Bruno Haible  <bruno@clisp.org>
2802
2803         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2804         (Unicode string functions): Add unilbrk/*.
2805         Reported by Karl Berry.
2806
2807 2008-05-15  Eric Blake  <ebb9@byu.net>
2808
2809         Fix violation of <stdbool.h> replacement in regex.
2810         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2811         * lib/regexec.c (re_search_internal): Likewise.
2812         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2813
2814 2008-05-15  Jim Meyering  <meyering@redhat.com>
2815
2816         avoid distracting test output when git or cvs is not found
2817         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2818         * tests/test-vc-list-files-git.sh: Likewise.
2819
2820 2008-05-15  Eric Blake  <ebb9@byu.net>
2821
2822         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2823         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2824         glibc version.
2825         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2826         * doc/posix-functions/strstr.texi (strstr): Likewise.
2827         * lib/str-two-way.h (MAX): Sychronize with glibc.
2828
2829 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2830
2831         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2832         opr.ctx_type.
2833         (calc_first): Initialize constraint field.
2834         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2835         Fix grammar.
2836         (duplicate_node): Merge constraint field for all node types.
2837         (calc_eclosure_iter): Look at constraint field for all node types.
2838         * lib/regex_internal.c (create_cd_newstate): Don't look at
2839         opr.ctx_type.
2840
2841 2008-05-14  Bruno Haible  <bruno@clisp.org>
2842
2843         Help GCC to do better code generation.
2844         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2845         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2846         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2847         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2848         Declare with attribute 'malloc' if supported.
2849
2850 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2851
2852         use "echo STR|wc -c" rather than unportable "expr length STR"
2853         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2854         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2855
2856 2008-05-14  Jim Meyering  <meyering@redhat.com>
2857
2858         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2859         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2860         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2861         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2862         via Collin Lasse.
2863
2864 2008-05-14  Eric Blake  <ebb9@byu.net>
2865
2866         Avoid quadratic growth in gl_LIBSOURCES.
2867         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2868         Suggested by Bruno Haible.
2869
2870         Test xmemdup0.
2871         * modules/xmemdup0-tests: New file.
2872         * tests/test-xmemdup0.c: Likewise.
2873
2874 2008-05-13  Eric Blake  <ebb9@byu.net>
2875
2876         Split xmemdup0 into its own module.
2877         * modules/xmemdup0: New file.
2878         * lib/xmemdup0.h: Likewise.
2879         * lib/xmemdup0.c: Likewise.
2880         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2881         * lib/xalloc.h (xmemdup0): Remove.
2882         * lib/xmalloc.c (xmemdup0): Likewise.
2883
2884 2008-05-13  Eric Blake  <ebb9@byu.net>
2885             Bruno Haible  <bruno@clisp.org>
2886
2887         Reduce number of forks required during autoconf.
2888         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2889         and gl_LIBSOURCES_DIR.
2890         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2891         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2892         m4_syscmd per file.
2893         <m4_foreach_w>: Move...
2894         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2895
2896 2008-05-13  Eric Blake  <ebb9@byu.net>
2897
2898         * gnulib-tool: Fix various comment typos.
2899
2900 2008-05-12  Bruno Haible  <bruno@clisp.org>
2901
2902         Tailor the linebreaking algorithm.
2903         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2904
2905 2008-05-12  Bruno Haible  <bruno@clisp.org>
2906
2907         Update to Unicode 5.0.0.
2908         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2909         LBP_JV, LBP_JT. Redistribute values.
2910         (unilbrk_table): Change size.
2911         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2912         Unicode TR#14 rev. 22.
2913         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2914         LBP_JV, LBP_JT. Redistribute values.
2915         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2916         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2917         Update.
2918         * lib/unilbrk/lbrkprop1.h: Regenerated.
2919         * lib/unilbrk/lbrkprop2.h: Regenerated.
2920         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2921         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2922         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2923         Likewise.
2924         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2925         Likewise.
2926         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2927         result.
2928         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2929         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2930         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2931         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2932         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2933         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2934
2935 2008-05-11  Bruno Haible  <bruno@clisp.org>
2936
2937         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2938
2939 2008-05-11  Bruno Haible  <bruno@clisp.org>
2940
2941         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2942         * modules/unilbrk/gen-lbrk: New file.
2943
2944 2008-05-11  Bruno Haible  <bruno@clisp.org>
2945
2946         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2947         * m4/sha512.m4 (gl_SHA512): Likewise.
2948
2949 2008-05-11  Jim Meyering  <meyering@redhat.com>
2950
2951         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2952         * modules/crypto/sha256: New file.
2953         * modules/crypto/sha512: Likewise.
2954         * lib/sha256.c: Likewise.
2955         * lib/sha256.h: Likewise.
2956         * lib/sha512.c: Likewise.
2957         * lib/sha512.h: Likewise.
2958         * lib/u64.h: Likewise.
2959         * m4/sha256.m4: Likewise.
2960         * m4/sha512.m4: Likewise.
2961         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2962
2963 2008-05-10  Bruno Haible  <bruno@clisp.org>
2964
2965         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2966         (Input/Output <stdio.h>): Add xprintf.
2967         (Signal handling <signal.h>): Add strsignal.
2968         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2969         (Core language properties): Add func.
2970         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2971         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2972         strings.
2973         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2974         (Input/output): New section.
2975         (File system functions): Add openat-die, stat-macros.
2976         (Networking functions): Add sockets.
2977         (Unicode string functions): Add unictype/*.
2978         (Support for building libraries and executables): Add gperf.
2979         (Support for building documentation): Add agpl-3.0.
2980         (Misc): Add nocrash.
2981
2982 2008-05-10  Bruno Haible  <bruno@clisp.org>
2983
2984         * modules/unictype/gen-ctype: New file.
2985
2986 2008-05-10  Jim Meyering  <meyering@redhat.com>
2987
2988         Make chdir-safer.c more efficient on a system with no symlinks.
2989         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2990         also if ELOOP is zero.  Suggested by Bruno Haible.
2991
2992         Make chdir-safer.c slightly safer.
2993         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2994         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2995
2996         Avoid compile failure on systems without ELOOP (like mingw).
2997         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2998         Reported by Bruno Haible.
2999
3000 2008-05-10  Bruno Haible  <bruno@clisp.org>
3001
3002         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3003         (is_utf8_encoding): Use a case-insensitive comparison.
3004         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3005         streq.
3006
3007 2008-05-10  Bruno Haible  <bruno@clisp.org>
3008
3009         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3010         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3011         * lib/unilbrk/ulc-common.h (iconv_string_length,
3012         iconv_string_keeping_offsets): Remove declarations.
3013         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3014         Don't include <iconv.h>, streq.h, xsize.h.
3015         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3016         conversion.
3017         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3018         <iconv.h>, streq.h, xsize.h.
3019         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3020         conversion.
3021         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3022         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3023         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3024         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3025
3026 2008-05-10  Bruno Haible  <bruno@clisp.org>
3027
3028         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3029         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3030
3031         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3032         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3033
3034         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3035         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3036
3037         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3038         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3039
3040         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3041         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3042
3043         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3044         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3045
3046         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3047         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3048
3049         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3050         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3051
3052 2008-05-10  Bruno Haible  <bruno@clisp.org>
3053
3054         Split up 'linebreak' module.
3055         * lib/unilbrk.h: New file, based on lib/linebreak.h.
3056         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
3057         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
3058         modifications.
3059         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
3060         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
3061         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
3062         lib/linebreak.c.
3063         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
3064         lib/linebreak.c.
3065         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
3066         lib/linebreak.c.
3067         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
3068         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
3069         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
3070         lib/linebreak.c.
3071         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
3072         lib/linebreak.c.
3073         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
3074         lib/linebreak.c.
3075         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3076         lib/linebreak.c.
3077         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3078         lib/linebreak.c.
3079         * modules/unilbrk/base: New file.
3080         * modules/unilbrk/tables: New file.
3081         * modules/unilbrk/u8-possible-linebreaks: New file.
3082         * modules/unilbrk/u16-possible-linebreaks: New file.
3083         * modules/unilbrk/u32-possible-linebreaks: New file.
3084         * modules/unilbrk/ulc-common: New file.
3085         * modules/unilbrk/ulc-possible-linebreaks: New file.
3086         * modules/unilbrk/u8-width-linebreaks: New file.
3087         * modules/unilbrk/u16-width-linebreaks: New file.
3088         * modules/unilbrk/u32-width-linebreaks: New file.
3089         * modules/unilbrk/ulc-width-linebreaks: New file.
3090         * lib/linebreak.h: Remove file.
3091         * lib/linebreak.c: Remove file.
3092         * m4/linebreak.m4: Remove file.
3093         * modules/linebreak: Remove file.
3094         * NEWS: Mention the changes.
3095
3096 2008-05-09  Eric Blake  <ebb9@byu.net>
3097
3098         Add xmemdup0.
3099         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3100         implementation.
3101         * lib/xmalloc.c (xmemdup0): New C implementation.
3102
3103 2008-05-08  Bruno Haible  <bruno@clisp.org>
3104
3105         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3106
3107 2008-05-07  Eric Blake  <ebb9@byu.net>
3108
3109         Support cross-compilation of <wctype.h>.
3110         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3111         AC_CACHE_CHECK.
3112
3113 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3114
3115         * build-aux/vc-list-files: Add support for bzr.
3116
3117 2008-05-03  Jim Meyering  <meyering@redhat.com>
3118
3119         avoid failed assertion with tight malloc
3120         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3121
3122 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3123
3124         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3125         are needed from arpa/inet.h.
3126         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3127         Reported by Bruno Haible.
3128
3129 2008-05-02  Jim Meyering  <meyering@redhat.com>
3130
3131         avoid compilation error on FreeBSD 6
3132         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3133
3134 2008-05-01  Jim Meyering  <meyering@redhat.com>
3135
3136         useless-if-before-free: correct --help's exit status description
3137         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3138         for one or more matches, etc.  Reported by Bruno Haible.
3139
3140         vc-list-files: make the stand-alone gnulib test work
3141         * modules/vc-list-files-tests (configure.ac):
3142         Define and AC_SUBST abs_aux_dir.
3143         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3144         $(abs_top_srcdir) to each script and having each of them
3145         duplicate the work of setting PATH, set PATH here, using
3146         the new variable, abs_aux_dir instead.
3147         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3148         * tests/test-vc-list-files-git.sh: Likewise.
3149         Reported by Bruno Haible.
3150
3151 2008-05-01  Bruno Haible  <bruno@clisp.org>
3152
3153         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3154         reallocation. Rename 'done' to 'found_delimiter'.
3155
3156 2008-05-01  Jim Meyering  <meyering@redhat.com>
3157
3158         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3159         * build-aux/vc-list-files: Use `...`, not $(...).
3160
3161 2008-04-30  Jim Meyering  <meyering@redhat.com>
3162
3163         add tests for vc-list-files
3164         * modules/vc-list-files-tests: New module.
3165         * tests/test-vc-list-files-cvs.sh: New file.
3166         * tests/test-vc-list-files-git.sh: New file.
3167
3168         avoid a warning from gcc
3169         * lib/getndelim2.c (IF_LINT): Define.
3170         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3171
3172         vc-list-files: work properly with build-aux/cvsu, too
3173         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3174         to all cvs-based clauses.
3175
3176         vc-list-files: work properly in the CVS+awk case, too
3177         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3178
3179         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3180         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3181         take more than one file argument, so .  Add quotes, just in case $dir
3182         ever contains a shell meta-character.  Prompted by Soren Hansen in
3183         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3184
3185 2008-04-29  Eric Blake  <ebb9@byu.net>
3186
3187         Optimize getndelim2 to use block operations when possible.
3188         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3189         freadseek, and memchr2.
3190         * lib/getndelim2.c (getndelim2): Use them for block reads.
3191
3192 2008-04-29  Bruno Haible  <bruno@clisp.org>
3193
3194         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3195         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3196         * modules/inet_ntop (Depends-on): Add extensions.
3197         * modules/inet_pton (Depends-on): Likewise.
3198         Reported by Simon Josefsson.
3199
3200 2008-04-29  Jim Meyering  <meyering@redhat.com>
3201
3202         When the is more than one match in a block, match all of them.
3203         * build-aux/useless-if-before-free: Iterate through each block
3204         until there are no more matches.
3205
3206         Fix broken useless-if-before-free script.
3207         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3208         the expression to match cast of argument to free-like function.
3209
3210 2008-04-29  Eric Blake  <ebb9@byu.net>
3211
3212         Use new header.
3213         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3214
3215 2008-04-29  Jim Meyering  <meyering@redhat.com>
3216
3217         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3218         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3219         by gnulib to exist and to declare e.g., inet_ntop.
3220         Don't include "inet_ntop.h", now removed.
3221
3222         * m4/arpa_inet_h.m4: Remove trailing blanks.
3223
3224 2008-04-29  Eric Blake  <ebb9@byu.net>
3225
3226         Silence valgrind on safe reads beyond potential array bounds.
3227         * lib/rawmemchr.valgrind: New file.
3228         * lib/strchrnul.valgrind: Likewise.
3229         * modules/rawmemchr (Files): Distribute new file.
3230         * modules/strchrnul (Files): Likewise.
3231         Suggested by Bruno Haible.
3232
3233 2008-04-29  Bruno Haible  <bruno@clisp.org>
3234
3235         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3236         (inet_ntop, inet_pton): Change portability warning's wording.
3237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3238         Invoke gl_CHECK_NEXT_HEADERS.
3239         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3240         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3241         set ARPA_INET_H.
3242         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3243         * modules/arpa_inet (Description): No longer only for systems that
3244         lack it.
3245         (Depends-on): Add include_next.
3246         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3247         HAVE_ARPA_INET_H.
3248
3249 2008-04-29  Jim Meyering  <meyering@redhat.com>
3250
3251         * modules/mkdir (License): Re-license as LGPLv2+.
3252
3253 2008-04-29  Bruno Haible  <bruno@clisp.org>
3254
3255         * modules/rawmemchr (Maintainer): Set to Eric.
3256         * modules/strchrnul (Maintainer): Likewise.
3257
3258 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3259
3260         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3261         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3262
3263         * modules/arpa_inet (arpa/inet.h): Use them.
3264
3265 2008-04-28  Eric Blake  <ebb9@byu.net>
3266
3267         Test getndelim2.
3268         * modules/getndelim2-tests: New file.
3269         * tests/test-getndelim2.c: Likewise.
3270         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3271         stream.
3272         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3273
3274         * MODULES.html.sh: Document new module.
3275
3276 2008-04-20  Bruno Haible  <bruno@clisp.org>
3277
3278         * lib/c-stack.c (die): Use raise.
3279         * modules/c-stack (Depends-on): Add raise.
3280
3281 2008-04-28  Bruno Haible  <bruno@clisp.org>
3282
3283         Expect rpmatch to be declared.
3284         * lib/yesno.c (rpmatch): Remove declaration.
3285
3286         Declare rpmatch.
3287         * lib/stdlib.in.h (rpmatch): New declaration.
3288         * lib/rpmatch.c: Include <stdlib.h> first.
3289         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3290         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3292         HAVE_RPMATCH.
3293         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3295         (Include): Set to <stdlib.h>.
3296         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3297         HAVE_RPMATCH.
3298         * NEWS: Document the change.
3299
3300 2008-04-28  Bruno Haible  <bruno@clisp.org>
3301
3302         Change rpmatch to use nl_langinfo when appropriate.
3303         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3304         (N_): New macro.
3305         (localized_pattern): New function/macro.
3306         (try): Remove match, nomatch arguments. Copy the pattern into safe
3307         memory before caching it.
3308         (rpmatch): Use localized_pattern. Add translator comments.
3309         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3310         Suggested by Eric Blake.
3311         * modules/rpmatch (Depends-on): Add stdbool.
3312
3313 2008-04-28  Eric Blake  <ebb9@byu.net>
3314
3315         Add rawmemchr module, matching glibc.
3316         * modules/string (Makefile.am): New indicator.
3317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3318         * lib/string.in.h (rawmemchr): Declare when appropriate.
3319         * modules/rawmemchr: New file.
3320         * m4/rawmemchr.m4: Likewise.
3321         * lib/rawmemchr.c: Likewise.
3322         * modules/rawmemchr-tests: Likewise.
3323         * tests/test-rawmemchr.c: Likewise.
3324         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3325         module.
3326         * modules/strchrnul (Depends-on): Add rawmemchr.
3327         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3328
3329         Whitespace cleanup.
3330         * tests/test-strchrnul.c: Reindent.
3331         * lib/strchrnul.c: Likewise.
3332
3333         Optimize and test strchrnul.
3334         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3335         * modules/strchrnul-tests: New file.
3336         * tests/test-strchrnul.c: Likewise.
3337
3338         Remove intprops dependency.
3339         * modules/memchr (Depends-on): Remove intprops.
3340         * modules/memrchr (Depends-on): Likewise.
3341         * modules/memchr2 (Depends-on): Likewise.
3342         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3343         * lib/memrchr.c (__memrchr): Likewise.
3344         * lib/memrchr2.c (memchr2): Likewise.
3345         Reported by Simon Josefsson.
3346
3347 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3348
3349         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3350         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3351
3352 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3353
3354         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3355
3356         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3357
3358         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3359
3360         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3361         declarations.
3362         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3363
3364         * m4/inet_pton.m4: Don't check for header files.
3365
3366         * m4/inet_ntop.m4: Don't check for header files.
3367
3368 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3369
3370         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3371         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3372         trigger for cygwin).
3373         Reported by Bruno Haible  <bruno@clisp.org>.
3374
3375 2008-04-28  Bruno Haible  <bruno@clisp.org>
3376
3377         * doc/posix-functions/strdup.texi: Mention mingw problem.
3378
3379 2008-04-27  Bruno Haible  <bruno@clisp.org>
3380
3381         * modules/stat-time-tests (Depends-on): Add sleep.
3382         * tests/test-stat-time.c (force_unlink): New function.
3383         (cleanup): Use it.
3384         (test_mtime): Remove the ctime related tests.
3385         (test_ctime): New function, containing the ctime related tests.
3386         (main): Call test_ctime, except on native Windows platforms.
3387
3388 2008-04-27  Bruno Haible  <bruno@clisp.org>
3389
3390         * lib/rpmatch.c (rpmatch): Add some comments.
3391         Reported by James Youngman <jay@gnu.org>.
3392
3393 2008-04-27  Bruno Haible  <bruno@clisp.org>
3394
3395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3396         quiet NaNs.
3397
3398 2008-04-27  Bruno Haible  <bruno@clisp.org>
3399
3400         Make test-yesno.sh work on mingw.
3401         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3402         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3403         (main): Set stdin to binary mode.
3404         * modules/yesno-tests (Depends-on): Add binary-io.
3405
3406 2008-04-27  Bruno Haible  <bruno@clisp.org>
3407
3408         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3409         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3410         argument that lie outside the IEEE 854 domain.
3411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3412         (gl_ISFINITE): Use it.
3413         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3414
3415 2008-04-27  Bruno Haible  <bruno@clisp.org>
3416
3417         Allow local renaming in config.h.
3418         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3419
3420 2008-04-27  Bruno Haible  <bruno@clisp.org>
3421
3422         * lib/memchr.c (__memchr): Change type of 'i'.
3423         * lib/memchr2.c (memchr2): Likewise.
3424
3425 2008-04-26  Eric Blake  <ebb9@byu.net>
3426         and Bruno Haible  <bruno@clisp.org>
3427
3428         Optimize and test memrchr.
3429         * modules/memrchr (Depends-on): Add intprops.
3430         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3431         * modules/memrchr-tests: New file.
3432         * tests/test-memrchr.c: New file.
3433
3434 2008-04-26  Bruno Haible  <bruno@clisp.org>
3435
3436         Add tentative support for DragonFly BSD.
3437         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3438         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3439         fp.
3440         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3441         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3442         * lib/fpurge.c (fpurge): Likewise.
3443         * lib/freadable.c (freaadable): Likewise.
3444         * lib/freadahead.c (freadahead): Likewise.
3445         * lib/freading.c (freading): Likewise.
3446         * lib/freadptr.c (freadptr): Likewise.
3447         * lib/freadseek.c (freadptrinc): Likewise.
3448         * lib/fseeko.c (fseeko): Likewise.
3449         * lib/fseterr.c (fseterr): Likewise.
3450         * lib/fwritable.c (fwritable): Likewise.
3451         * lib/fwriting.c (fwriting): Likewise.
3452
3453 2008-04-26  Bruno Haible  <bruno@clisp.org>
3454
3455         * lib/stdio-impl.h: New file.
3456         * lib/fbufmode.c: Include stdio-impl.h.
3457         (fbufmode): Use fp_, remove redundant #defines.
3458         * lib/fflush.c: Include stdio-impl.h.
3459         (clear_ungetc_buffer): Remove redundant #defines.
3460         * lib/fpurge.c: Include stdio-impl.h.
3461         (fpurge): Remove redundant #defines.
3462         * lib/freadable.c: Include stdio-impl.h.
3463         (freadable): Remove redundant #defines.
3464         * lib/freadahead.c: Include stdio-impl.h.
3465         (freadahead): Remove redundant #defines.
3466         * lib/freading.c: Include stdio-impl.h.
3467         (freading): Remove redundant #defines.
3468         * lib/freadptr.c: Include stdio-impl.h.
3469         (freadptr): Remove redundant #defines.
3470         * lib/freadseek.c: Include stdio-impl.h.
3471         (freadptrinc): Remove redundant #defines.
3472         * lib/fseeko.c: Include stdio-impl.h.
3473         (rpl_fseeko): Remove redundant #defines.
3474         * lib/fseterr.c: Include stdio-impl.h.
3475         (fseterr): Remove redundant #defines.
3476         * lib/fwritable.c: Include stdio-impl.h.
3477         (fwritable: Remove redundant #defines.
3478         * lib/fwriting.c: Include stdio-impl.h.
3479         (fwriting): Remove redundant #defines.
3480         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3481         * modules/fflush (Files): Likewise.
3482         * modules/fpurge (Files): Likewise.
3483         * modules/freadable (Files): Likewise.
3484         * modules/freadahead (Files): Likewise.
3485         * modules/freading (Files): Likewise.
3486         * modules/freadptr (Files): Likewise.
3487         * modules/freadseek (Files): Likewise.
3488         * modules/fseeko (Files): Likewise.
3489         * modules/fseterr (Files): Likewise.
3490         * modules/fwritable (Files): Likewise.
3491         * modules/fwriting (Files): Likewise.
3492
3493 2008-04-26  Bruno Haible  <bruno@clisp.org>
3494
3495         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3496         restore_seek_optimization, update_fpos_cache): New functions, extracted
3497         from rpl_fflush.
3498         (rpl_fflush): Use them.
3499         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3500         (gl_REPLACE_FFLUSH): Use it.
3501
3502 2008-04-26  Bruno Haible  <bruno@clisp.org>
3503
3504         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3505         on Solaris.
3506         * tests/test-xstrtoimax.sh: Likewise.
3507         * tests/test-xstrtoumax.sh: Likewise.
3508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3509
3510 2008-04-26  Bruno Haible  <bruno@clisp.org>
3511
3512         * modules/memchr-tests: New file.
3513         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3514
3515 2008-04-26  Eric Blake  <ebb9@byu.net>
3516             Bruno Haible  <bruno@clisp.org>
3517
3518         * lib/memchr.c: Include intprops.h.
3519         (__memchr): Optimize parallel detection of matching bytes. Rename local
3520         variables. Add explanatory comments.
3521
3522 2008-04-26  Bruno Haible  <bruno@clisp.org>
3523
3524         Fix module 'memchr', broken since 2000-10-28.
3525         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3526
3527 2008-04-26  Bruno Haible  <bruno@clisp.org>
3528
3529         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3530         comments.
3531
3532 2008-04-25  Eric Blake  <ebb9@byu.net>
3533
3534         Use native fstatat on cygwin 1.7.0.
3535         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3536         first.
3537
3538 2008-04-23  Eric Blake  <ebb9@byu.net>
3539
3540         Improve memchr2 performance.
3541         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3542         NUL bytes.
3543         * modules/memchr2 (Depends-on): Use intprops.h.
3544
3545 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3546
3547         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3548         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3549         <blp@cs.stanford.edu>.
3550
3551 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3552
3553         * lib/arpa_inet.in.h: New file.
3554
3555         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3556         (Makefile.am): Sed in substitute header file.
3557
3558         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3559         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3560
3561         * modules/inet_ntop (configure.ac): Use
3562         gl_ARPA_INET_MODULE_INDICATOR.
3563
3564         * modules/inet_pton (configure.ac): Use
3565         gl_ARPA_INET_MODULE_INDICATOR.
3566
3567 2008-04-22  Jim Meyering  <meyering@redhat.com>
3568
3569         * modules/verify (License): Re-license as LGPLv2+.
3570
3571 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3572
3573         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3574         parameter to void* as per POSIX standard (MinGW uses char*).
3575
3576 2008-04-21  Bruno Haible  <bruno@clisp.org>
3577
3578         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3579         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3580         Define to replacements if REPLACE_ISWCNTRL is 1.
3581         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3582         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3583         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3584         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3585         what it fixes.
3586         * doc/posix-functions/iswalpha.texi: Likewise.
3587         * doc/posix-functions/iswblank.texi: Likewise.
3588         * doc/posix-functions/iswcntrl.texi: Likewise.
3589         * doc/posix-functions/iswdigit.texi: Likewise.
3590         * doc/posix-functions/iswgraph.texi: Likewise.
3591         * doc/posix-functions/iswlower.texi: Likewise.
3592         * doc/posix-functions/iswprint.texi: Likewise.
3593         * doc/posix-functions/iswpunct.texi: Likewise.
3594         * doc/posix-functions/iswspace.texi: Likewise.
3595         * doc/posix-functions/iswupper.texi: Likewise.
3596         * doc/posix-functions/iswxdigit.texi: Likewise.
3597         Reported by Alain Guibert.
3598
3599 2008-04-21  Bruno Haible  <bruno@clisp.org>
3600
3601         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3602         Patch by Alain Guibert.
3603
3604 2008-04-21  Bruno Haible  <bruno@clisp.org>
3605
3606         Fix test failures on mingw.
3607         * tests/test-xstrtol.c (print_no_progname): New function.
3608         (main): Install it in error_print_progname hook.
3609         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3610         * tests/test-xstrtoimax.sh: Likewise.
3611         * tests/test-xstrtoumax.sh: Likewise.
3612
3613 2008-04-21  Bruno Haible  <bruno@clisp.org>
3614
3615         Fix test failure on mingw.
3616         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3617
3618 2008-04-21  Bruno Haible  <bruno@clisp.org>
3619
3620         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3621         Actually assign a value.
3622
3623 2008-04-20  Bruno Haible  <bruno@clisp.org>
3624
3625         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3626         take 2.
3627         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3628         'canonicalize-lgpl' module is also used.
3629         * lib/canonicalize-lgpl.c: Undo last change.
3630         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3631
3632 2008-04-20  Bruno Haible  <bruno@clisp.org>
3633
3634         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3635         config.h. Provide _mkdir based fallback for mingw.
3636         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3637         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3639         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3640         rather than defining mkdir in config.h.
3641         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3642         (gl_SYS_STAT_H_DEFAULTS): New macro.
3643         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3644         HAVE_IO_H any more.
3645         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3646         HAVE_DECL_MKDIR and HAVE_IO_H.
3647
3648 2008-04-20  Bruno Haible  <bruno@clisp.org>
3649
3650         * lib/isapipe.c: Port to native Windows platforms.
3651
3652 2008-04-20  Bruno Haible  <bruno@clisp.org>
3653
3654         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3655
3656 2008-04-21  Eric Blake  <ebb9@byu.net>
3657
3658         Work around preprocessors that don't handle UINTMAX_MAX.
3659         * lib/memchr2.c (memchr2): Avoid embedded #if.
3660         Reported by Alain Guibert, fix suggested by Bruno Haible.
3661
3662 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3663
3664         * doc/posix-functions/strftime.texi (strftime): Explain better
3665         Windows incompatibility.  Suggested by Micah Cowan
3666         <micah@cowan.name>.
3667
3668 2008-04-20  Bruno Haible  <bruno@clisp.org>
3669
3670         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3671         unistr/u8-mblen.
3672
3673 2008-04-20  Bruno Haible  <bruno@clisp.org>
3674
3675         Fix test failure on platforms with non-GNU iconv.
3676         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3677         (U_TO_U8): Use it, rather than u16_to_u8.
3678         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3679         units at the end of the input string.
3680         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3681
3682 2008-04-20  Bruno Haible  <bruno@clisp.org>
3683
3684         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3685         when the resulting length is 0.
3686         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3687
3688 2008-04-20  Bruno Haible  <bruno@clisp.org>
3689
3690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3691         works.
3692         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3693
3694 2008-04-20  Bruno Haible  <bruno@clisp.org>
3695
3696         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3697         * modules/tsearch-tests (configure.ac): Test for initstate function.
3698
3699 2008-04-20  Bruno Haible  <bruno@clisp.org>
3700
3701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3702         for nlink_t if missing.
3703         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3704
3705 2008-04-19  Bruno Haible  <bruno@clisp.org>
3706
3707         Work around snprintf bug on Linux libc5.
3708         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3710         gl_SNPRINTF_SIZE1.
3711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3712         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3713         that test failed.
3714         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3715         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3716         * modules/snprintf (Files): Add m4/printf.m4.
3717         * modules/vsnprintf (Files): Likewise.
3718         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3719         * doc/posix-functions/vsnprintf.texi: Likewise.
3720
3721 2008-04-19  Bruno Haible  <bruno@clisp.org>
3722
3723         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3724         from 0.0058 to less than 10^-7.
3725
3726 2008-04-19  Bruno Haible  <bruno@clisp.org>
3727
3728         Fix rounding when a precision is given.
3729         * lib/vasnprintf.c (is_borderline): New function.
3730         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3731         9...9x.
3732         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3733         %e, %g.
3734         * tests/test-vasprintf-posix.c (test_function): Likewise.
3735         * tests/test-snprintf-posix.h (test_function): Likewise.
3736         * tests/test-sprintf-posix.h (test_function): Likewise.
3737         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3738         * tests/test-printf-posix.h (test_function): Likewise.
3739         * tests/test-printf-posix.output: Update.
3740         Reported by John Darrington <john@darrington.wattle.id.au> via
3741         Ben Pfaff <blp@cs.stanford.edu>.
3742
3743 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3744
3745         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3746         Suggested by Bruno Haible <bruno@clisp.org>.
3747
3748 2008-04-17  Bruno Haible  <bruno@clisp.org>
3749
3750         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3751         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3752         implementation.
3753         Patch by Bruce Merry <bmerry@gmail.com>.
3754
3755 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3756
3757         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3758         doesn't work under Windows.
3759
3760 2008-04-16  Bruno Haible  <bruno@clisp.org>
3761
3762         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3763         New macros.
3764         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3765         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3766         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3767         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3768         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3769         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3770         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3771         macros.
3772         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3773         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3774         Northern Sotho, Uighur.
3775
3776 2008-04-16  Bruno Haible  <bruno@clisp.org>
3777
3778         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3779         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3780         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3781         Reported by Daniel Bergström <daniel@octocode.com>.
3782
3783 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3784             Bruno Haible  <bruno@clisp.org>
3785
3786         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3787         function.
3788         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3789         New functions, mostly extracted from gl_locale_name_default.
3790         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3791
3792 2008-04-16  Eric Blake  <ebb9@byu.net>
3793
3794         Adjust strtod detection to catch glibc 2.7 bug.
3795         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3796         Reported by John Gatewood Ham.
3797
3798 2008-04-16  Bruno Haible  <bruno@clisp.org>
3799
3800         Add tentative support for Linux libc5.
3801         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3802         * lib/fpurge.c (fpurge): Likewise.
3803         * lib/freadable.c (freadable): Likewise.
3804         * lib/freadahead.c (freadahead): Likewise.
3805         * lib/freading.c (freading): Likewise.
3806         * lib/freadptr.c (freadptr): Likewise.
3807         * lib/freadseek.c (freadptrinc): Likewise.
3808         * lib/fseeko.c (rpl_fseeko): Likewise.
3809         * lib/fseterr.c (fseterr): Likewise.
3810         * lib/fwritable.c (fwritable): Likewise.
3811         * lib/fwriting.c (fwriting): Likewise.
3812         Reported by Alain Guibert <alguibert+bts@free.fr>.
3813
3814 2008-04-15  Bruno Haible  <bruno@clisp.org>
3815
3816         * modules/mathl (configure.ac): Define module indicator.
3817
3818 2008-04-15  Bruno Haible  <bruno@clisp.org>
3819
3820         * lib/logl.c (logl): Remove unused variables.
3821
3822 2008-04-15  Bruno Haible  <bruno@clisp.org>
3823
3824         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3825         fails.
3826
3827 2008-04-15  Bruno Haible  <bruno@clisp.org>
3828
3829         * lib/trim.c (trim2): Fix argument of isspace() macro.
3830
3831 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3832
3833         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3834         to 0.
3835         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3836
3837 2008-04-14  Bruno Haible  <bruno@clisp.org>
3838
3839         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3840         AC_LANG_PROGRAM argument.
3841         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3842         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3845         * m4/math_h.m4 (gl_MATH_H): Likewise.
3846         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3848         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3849         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3850         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3851         * m4/regex.m4 (gl_REGEX): Likewise.
3852         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3853         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3856         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3857         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3860
3861 2008-04-14  Jim Meyering  <meyering@redhat.com>
3862
3863         test-strtod: fix typos: s/abs/fabs/
3864         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3865
3866 2008-04-13  Bruno Haible  <bruno@clisp.org>
3867
3868         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3869         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3870         module is also used and while not building the reloc-wrapper.
3871
3872 2008-04-13  Bruno Haible  <bruno@clisp.org>
3873
3874         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3875
3876 2008-04-13  Bruno Haible  <bruno@clisp.org>
3877
3878         Fix AIX compilation failure introduced on 2008-04-02.
3879         * tests/test-frexp.c (exp): Undefine before redefining.
3880         * tests/test-frexpl.c (exp): Likewise.
3881
3882 2008-04-13  Bruno Haible  <bruno@clisp.org>
3883
3884         Work around a HP-UX stdio bug.
3885         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3886         * tests/test-ftello.c (main): Likewise.
3887         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3888         * doc/posix-functions/ftello.texi: Likewise.
3889
3890 2008-04-13  Bruno Haible  <bruno@clisp.org>
3891
3892         Make test-signbit pass on HP-UX/hppa.
3893         * tests/test-signbit.c (minus_zerol): New variable.
3894         (test_signbitl): Use it.
3895
3896 2008-04-13  Bruno Haible  <bruno@clisp.org>
3897
3898         Make truncl work on OSF/1 4.0.
3899         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3900         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3901         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3903         HAVE_DECL_TRUNCL.
3904         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3905         HAVE_DECL_TRUNCL.
3906         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3907
3908 2008-04-13  Bruno Haible  <bruno@clisp.org>
3909
3910         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3911
3912 2008-04-13  Bruno Haible  <bruno@clisp.org>
3913
3914         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3915         expression, so as to avoid HP-UX 11 cc compiler bug.
3916
3917 2008-04-13  Bruno Haible  <bruno@clisp.org>
3918
3919         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3920
3921 2008-04-13  Bruno Haible  <bruno@clisp.org>
3922
3923         * lib/git-merge-changelog.c: Remove empty declaration outside of
3924         functions.
3925
3926 2008-04-13  Bruno Haible  <bruno@clisp.org>
3927
3928         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3929
3930 2008-04-13  Bruno Haible  <bruno@clisp.org>
3931
3932         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3933         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3935         also if it exists but lacks definitions of the SHUT_* macros.
3936         * modules/sys_socket (Description): Update.
3937         Reported by Elbert Pol <e.pol@chello.nl>.
3938
3939 2008-04-13  Bruno Haible  <bruno@clisp.org>
3940
3941         * lib/localcharset.c (OS2): Don't redefine if already defined.
3942         Reported by Elbert Pol <e.pol@chello.nl>.
3943
3944 2008-04-13  Bruno Haible  <bruno@clisp.org>
3945
3946         * lib/binary-io.h [__EMX__]: Include <io.h>.
3947         Reported by Elbert Pol <e.pol@chello.nl>.
3948
3949 2008-04-12  Bruno Haible  <bruno@clisp.org>
3950
3951         * lib/fpucw.h: Enable the definitions also for x86_64.
3952         Needed for NetBSD/x86_64.
3953         Reported by Thomas Klausner <tk@giga.or.at>.
3954
3955 2008-04-12  Bruno Haible  <bruno@clisp.org>
3956
3957         * tests/test-strtod.c: Include isnand.h.
3958         (main): Use isnand instead of isnan.
3959         Reported by Jim Meyering.
3960
3961 2008-04-12  Bruno Haible  <bruno@clisp.org>
3962
3963         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3965
3966 2008-04-12  Jim Meyering  <meyering@redhat.com>
3967
3968         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3969
3970 2008-04-12  Bruno Haible  <bruno@clisp.org>
3971
3972         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3973         Reported by Elbert Pol <e.pol@chello.nl>.
3974
3975 2008-04-12  Eric Blake  <ebb9@byu.net>
3976
3977         Work around Solaris 10 math.h bug.
3978         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3979         (gl_MATH_H_DEFAULTS): Set up default.
3980         * modules/math (Makefile.am): Replace new indicators.
3981         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3982         * tests/test-math.c (main): Test this.
3983         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3984         * doc/posix-headers/math.texi (math.h): Mention bug.
3985         Reported by Nelson H. F. Beebe and Jim Meyering.
3986
3987 2008-04-11  Bruno Haible  <bruno@clisp.org>
3988
3989         Adapt to future versions of Apple GCC.
3990         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3991         Reported by Peter O'Gorman <peter@pogma.com>.
3992
3993 2008-04-11  Bruno Haible  <bruno@clisp.org>
3994
3995         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3996
3997 2008-04-11  Bruno Haible  <bruno@clisp.org>
3998
3999         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4000
4001         * modules/getaddrinfo-tests (Makefile.am): Define
4002         test_getaddrinfo_LDADD.
4003
4004 2008-04-11  Bruno Haible  <bruno@clisp.org>
4005
4006         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4007         (init): Fix syntax error.
4008         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4009         is declared.
4010
4011 2008-04-11  Bruno Haible  <bruno@clisp.org>
4012
4013         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4014         * modules/glob (Depends-on): Add stdbool.
4015
4016 2008-04-11  Bruno Haible  <bruno@clisp.org>
4017
4018         * lib/trim.c: Include <string.h>.
4019
4020 2008-04-11  Eric Blake  <ebb9@byu.net>
4021
4022         Avoid compile failure on OS/2.
4023         * lib/regex_internal.h (internal_function): Disable optimization
4024         on OS/2 (__EMX__), where it caused compiler error.
4025         Reported by Elbert Pol.
4026
4027 2008-04-11  Bruno Haible  <bruno@clisp.org>
4028
4029         Flush the standard error stream before aborting. Needed on mingw.
4030         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4031         * tests/test-array_list.c (ASSERT): Likewise.
4032         * tests/test-array_oset.c (ASSERT): Likewise.
4033         * tests/test-avltree_list.c (ASSERT): Likewise.
4034         * tests/test-avltree_oset.c (ASSERT): Likewise.
4035         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4036         * tests/test-binary-io.c (ASSERT): Likewise.
4037         * tests/test-byteswap.c (ASSERT): Likewise.
4038         * tests/test-c-ctype.c (ASSERT): Likewise.
4039         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4040         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4041         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4042         * tests/test-c-strstr.c (ASSERT): Likewise.
4043         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4044         * tests/test-canonicalize.c (ASSERT): Likewise.
4045         * tests/test-carray_list.c (ASSERT): Likewise.
4046         * tests/test-ceilf1.c (ASSERT): Likewise.
4047         * tests/test-ceilf2.c (ASSERT): Likewise.
4048         * tests/test-ceill.c (ASSERT): Likewise.
4049         * tests/test-count-one-bits.c (ASSERT): Likewise.
4050         * tests/test-fbufmode.c (ASSERT): Likewise.
4051         * tests/test-fflush2.c (ASSERT): Likewise.
4052         * tests/test-floorf1.c (ASSERT): Likewise.
4053         * tests/test-floorf2.c (ASSERT): Likewise.
4054         * tests/test-floorl.c (ASSERT): Likewise.
4055         * tests/test-fopen.c (ASSERT): Likewise.
4056         * tests/test-fpending.c (ASSERT): Likewise.
4057         * tests/test-fprintf-posix.c (ASSERT): Likewise.
4058         * tests/test-fpurge.c (ASSERT): Likewise.
4059         * tests/test-freadable.c (ASSERT): Likewise.
4060         * tests/test-freadahead.c (ASSERT): Likewise.
4061         * tests/test-freading.c (ASSERT): Likewise.
4062         * tests/test-freadptr.c (ASSERT): Likewise.
4063         * tests/test-freadptr2.c (ASSERT): Likewise.
4064         * tests/test-freadseek.c (ASSERT): Likewise.
4065         * tests/test-freopen.c (ASSERT): Likewise.
4066         * tests/test-frexp.c (ASSERT): Likewise.
4067         * tests/test-frexpl.c (ASSERT): Likewise.
4068         * tests/test-fseek.c (ASSERT): Likewise.
4069         * tests/test-fseeko.c (ASSERT): Likewise.
4070         * tests/test-fstrcmp.c (ASSERT): Likewise.
4071         * tests/test-ftell.c (ASSERT): Likewise.
4072         * tests/test-ftello.c (ASSERT): Likewise.
4073         * tests/test-func.c (ASSERT): Likewise.
4074         * tests/test-fwritable.c (ASSERT): Likewise.
4075         * tests/test-fwriting.c (ASSERT): Likewise.
4076         * tests/test-getdelim.c (ASSERT): Likewise.
4077         * tests/test-getline.c (ASSERT): Likewise.
4078         * tests/test-i-ring.c (ASSERT): Likewise.
4079         * tests/test-iconv-utf.c (ASSERT): Likewise.
4080         * tests/test-iconv.c (ASSERT): Likewise.
4081         * tests/test-isfinite.c (ASSERT): Likewise.
4082         * tests/test-isnand.c (ASSERT): Likewise.
4083         * tests/test-isnanf.c (ASSERT): Likewise.
4084         * tests/test-isnanl.h (ASSERT): Likewise.
4085         * tests/test-ldexpl.c (ASSERT): Likewise.
4086         * tests/test-linked_list.c (ASSERT): Likewise.
4087         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4088         * tests/test-localename.c (ASSERT): Likewise.
4089         * tests/test-lseek.c (ASSERT): Likewise.
4090         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4091         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4092         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4093         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4094         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4095         * tests/test-mbschr.c (ASSERT): Likewise.
4096         * tests/test-mbscspn.c (ASSERT): Likewise.
4097         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4098         * tests/test-mbspbrk.c (ASSERT): Likewise.
4099         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4100         * tests/test-mbsrchr.c (ASSERT): Likewise.
4101         * tests/test-mbsspn.c (ASSERT): Likewise.
4102         * tests/test-mbsstr1.c (ASSERT): Likewise.
4103         * tests/test-mbsstr2.c (ASSERT): Likewise.
4104         * tests/test-mbsstr3.c (ASSERT): Likewise.
4105         * tests/test-memchr2.c (ASSERT): Likewise.
4106         * tests/test-memmem.c (ASSERT): Likewise.
4107         * tests/test-open.c (ASSERT): Likewise.
4108         * tests/test-printf-frexp.c (ASSERT): Likewise.
4109         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4110         * tests/test-printf-posix.c (ASSERT): Likewise.
4111         * tests/test-quotearg.c (ASSERT): Likewise.
4112         * tests/test-rbtree_list.c (ASSERT): Likewise.
4113         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4114         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4115         * tests/test-round1.c (ASSERT): Likewise.
4116         * tests/test-roundf1.c (ASSERT): Likewise.
4117         * tests/test-roundl.c (ASSERT): Likewise.
4118         * tests/test-signbit.c (ASSERT): Likewise.
4119         * tests/test-sleep.c (ASSERT): Likewise.
4120         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4121         * tests/test-snprintf.c (ASSERT): Likewise.
4122         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4123         * tests/test-stat-time.c (ASSERT): Likewise.
4124         * tests/test-strcasestr.c (ASSERT): Likewise.
4125         * tests/test-strerror.c (ASSERT): Likewise.
4126         * tests/test-striconv.c (ASSERT): Likewise.
4127         * tests/test-striconveh.c (ASSERT): Likewise.
4128         * tests/test-striconveha.c (ASSERT): Likewise.
4129         * tests/test-strsignal.c (ASSERT): Likewise.
4130         * tests/test-strstr.c (ASSERT): Likewise.
4131         * tests/test-strtod.c (ASSERT): Likewise.
4132         * tests/test-trunc1.c (ASSERT): Likewise.
4133         * tests/test-trunc2.c (ASSERT): Likewise.
4134         * tests/test-truncf1.c (ASSERT): Likewise.
4135         * tests/test-truncf2.c (ASSERT): Likewise.
4136         * tests/test-truncl.c (ASSERT): Likewise.
4137         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4138         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4139         * tests/test-vasnprintf.c (ASSERT): Likewise.
4140         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4141         * tests/test-vasprintf.c (ASSERT): Likewise.
4142         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4143         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4144         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4145         * tests/test-vsnprintf.c (ASSERT): Likewise.
4146         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4147         * tests/test-wcwidth.c (ASSERT): Likewise.
4148         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4149         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4150         * tests/test-xvasprintf.c (ASSERT): Likewise.
4151         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4152         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4153         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4154         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4155         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4156         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4157         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4158         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4159         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4160         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4161         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4162         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4163         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4164         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4165         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4166         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4167         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4168         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4169         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4170         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4171         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4172         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4173         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4174         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4175         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4176         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4177         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4178         * tests/unictype/test-combining.c (ASSERT): Likewise.
4179         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4180         * tests/unictype/test-digit.c (ASSERT): Likewise.
4181         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4182         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4183         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4184         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4185         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4186         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4187         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4188         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4189         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4190         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4191         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4192         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4193         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4194         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4195         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4196         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4197         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4198         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4199         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4200         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4201         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4202         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4203         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4204         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4205         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4206         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4207         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4208         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4209         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4210         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4211         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4212         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4213         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4214         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4215         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4216         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4217         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4218         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4219         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4220         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4221         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4222         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4223         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4224         Reported by Eric Blake.
4225
4226 2008-04-11  Bruno Haible  <bruno@clisp.org>
4227
4228         * lib/wchar.in.h: Tweak comment.
4229
4230 2008-04-11  Bruno Haible  <bruno@clisp.org>
4231
4232         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4233         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4234         gl_COMMON.
4235         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4236
4237 2008-04-11  Bruno Haible  <bruno@clisp.org>
4238
4239         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4240
4241 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4242
4243         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4244         of attempting to use non-existing /dev/*random.  Based on patch
4245         from Adam Strzelecki <ono@java.pl> in
4246         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4247
4248 2008-04-08  Bruno Haible  <bruno@clisp.org>
4249
4250         Add tentative support for emx+gcc.
4251         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4252         * lib/fpurge.c (fpurge): Likewise.
4253         * lib/freadable.c (freadable): Likewise.
4254         * lib/freadahead.c (freadahead): Likewise.
4255         * lib/freading.c (freading): Likewise.
4256         * lib/freadptr.c (freadptr): Likewise.
4257         * lib/freadseek.c (freadptrinc): Likewise.
4258         * lib/fseeko.c (rpl_fseeko): Likewise.
4259         * lib/fseterr.c (fseterr): Likewise.
4260         * lib/fwritable.c (fwritable): Likewise.
4261         * lib/fwriting.c (fwriting): Likewise.
4262         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4263
4264 2008-04-09  Eric Blake  <ebb9@byu.net>
4265
4266         Avoid some autoconf warnings.
4267         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4268         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4269         * m4/afs.m4 (gl_AFS): Likewise.
4270         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4271         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4273         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4274         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4275         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4276         (AC_CHECK_DECLS_ONCE): Likewise.
4277         Rename file...
4278         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4279         gnulib-tool requires autoconf 2.59 or better.
4280         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4281
4282 2008-04-08  Eric Blake  <ebb9@byu.net>
4283
4284         Use 'git describe --match' if present (added in git 1.5.5).
4285         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4286         if possible.
4287
4288 2008-04-08  Bruno Haible  <bruno@clisp.org>
4289
4290         Add tentative support for OpenServer.
4291         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4292         _ptr, _cnt.
4293         * lib/fpurge.c (fpurge): Likewise.
4294         * lib/freadable.c (freadable): Likewise.
4295         * lib/freadahead.c (freadahead): Likewise.
4296         * lib/freading.c (freading): Likewise.
4297         * lib/freadptr.c (freadptr): Likewise.
4298         * lib/freadseek.c (freadptrinc): Likewise.
4299         * lib/fseeko.c (rpl_fseeko): Likewise.
4300         * lib/fseterr.c (fseterr): Likewise.
4301         * lib/fwritable.c (fwritable): Likewise.
4302         * lib/fwriting.c (fwriting): Likewise.
4303         Reported by Roger Cornelius <rac@tenzing.org> and
4304         Brian K. White <brian@aljex.com>.
4305
4306 2008-04-06  Jim Meyering  <meyering@redhat.com>
4307
4308         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4309
4310 2008-04-06  Bruno Haible  <bruno@clisp.org>
4311
4312         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4313         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4314         * tests/test-printf-posix.sh: Likewise.
4315         * tests/test-vfprintf-posix.sh: Likewise.
4316         * tests/test-vprintf-posix.sh: Likewise.
4317         * tests/test-xprintf-posix.sh: Likewise.
4318
4319 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4320
4321         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4322         hide error from 'ls', needed on OS/2.
4323         Report by Elbert Pol <elbert.pol@gmail.com>.
4324
4325 2008-04-04  Eric Blake  <ebb9@byu.net>
4326
4327         Make test-fseeko.c failures meaningful.
4328         * tests/test-fseeko.c: Print line number on failure.
4329         * tests/test-fseek.c: Likewise.
4330         Reported by Nelson H. F. Beebe.
4331
4332         Improve strtod bug detection check.
4333         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4334         required for Solaris 10.
4335         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4336
4337 2008-04-04  Bruno Haible  <bruno@clisp.org>
4338
4339         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4340         by m4/setenv.m4.
4341
4342 2008-04-03  Eric Blake  <ebb9@byu.net>
4343
4344         Ensure sane .version contents.
4345         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4346         version string.
4347         * build-aux/git-version-gen: Improve documentation.
4348
4349         Make GNU make output nicer.
4350         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4351         MAKECMDGOALS to enforce message for all command line targets.  Set
4352         srcdir for use in maint.mk.
4353
4354         Another maintainer tweak.
4355         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4356         a target that regenerates version.
4357
4358 2008-04-03  Jim Meyering  <meyering@redhat.com>
4359
4360         vc-list-files: don't cause coreutils "make po-check" failure
4361         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4362
4363 2008-04-03  Eric Blake  <ebb9@byu.net>
4364
4365         Allow VPATH usage of vc-list-files.
4366         * build-aux/vc-list-files (scriptversion): Add timestamp.
4367         (options): Add --help, --version, -C.
4368         (CVS): Support installed cvsu.
4369
4370 2008-04-02  Bruno Haible  <bruno@clisp.org>
4371
4372         Avoid some "statement with no effect" warnings from gcc.
4373         * tests/test-wctype.c (main): Explicitly ignore unused values.
4374         Reported by Jim Meyering.
4375
4376 2008-04-02  Jim Meyering  <meyering@redhat.com>
4377
4378         Avoid some warnings from "gcc -Wshadow".
4379         * tests/test-frexp.c (exp): Define to a different identifier.
4380         * tests/test-frexpl.c (exp): Likewise.
4381
4382 2008-04-03  Jim Meyering  <meyering@redhat.com>
4383
4384         bootstrap: remove dangling *.[ch] symlinks from lib
4385         * build-aux/bootstrap [dangling symlink removal]: Move find's
4386         -depth option to precede all others, to avoid a warning.
4387         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4388
4389 2008-04-02  Bruno Haible  <bruno@clisp.org>
4390
4391         Avoid some warnings from "gcc -Wshadow".
4392         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4393         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4394         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4395         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4396         Reported by Jim Meyering.
4397
4398 2008-04-01  Bruno Haible  <bruno@clisp.org>
4399
4400         Fix test to work on IRIX 6.5 with cc.
4401         * tests/test-math.c (numeric_equal): New function.
4402         (main): Use it.
4403
4404 2008-04-01  Bruno Haible  <bruno@clisp.org>
4405
4406         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4407
4408 2008-04-01  Bruno Haible  <bruno@clisp.org>
4409
4410         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4411         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4412         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4413         (Depends-on): Remove math.
4414
4415         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4416         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4417         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4418         (Depends-on): Remove math.
4419
4420         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4421         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4422         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4423         (Depends-on): Remove math.
4424         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4425         (Depends-on): Remove math.
4426
4427         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4428         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4429         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4430         (Depends-on): Remove math.
4431         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4432         (Depends-on): Remove math.
4433
4434         * tests/test-round1.c: Include nan.h.
4435         (main): Use NaNd instead of NAN.
4436         * modules/round-tests (Files): Add tests/nan.h.
4437
4438         * tests/test-trunc1.c: Include nan.h.
4439         (main): Use NaNd instead of NAN.
4440         * modules/trunc-tests (Files): Add tests/nan.h.
4441
4442         * tests/test-roundf1.c: Include nan.h.
4443         (main): Use NaNf instead of NAN.
4444         * modules/roundf-tests (Files): Add tests/nan.h.
4445
4446         * tests/test-truncf1.c: Include nan.h.
4447         (main): Use NaNf instead of NAN.
4448         * modules/truncf-tests (Files): Add tests/nan.h.
4449
4450         * tests/test-ceilf1.c: Include nan.h.
4451         (main): Use NaNf instead of NAN.
4452         * modules/ceilf-tests (Files): Add tests/nan.h.
4453
4454         * tests/test-floorf1.c: Include nan.h.
4455         (main): Use NaNf instead of NAN.
4456         * modules/floorf-tests (Files): Add tests/nan.h.
4457
4458         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4459         (main): Use NaNf instead of NAN.
4460         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4461
4462         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4463         (main): Use NaNd instead of NAN.
4464         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4465
4466         * tests/test-frexp.c: Include nan.h.
4467         (main): Use NaNd instead of NAN.
4468         * modules/frexp-tests (Files): Add tests/nan.h.
4469
4470         * lib/isnan.c: Don't include <math.h>.
4471         (FUNC): Don't use NAN macro.
4472         * modules/isnand-nolibm (Depends-on): Remove math.
4473         * modules/isnanf-nolibm (Depends-on): Remove math.
4474         * modules/isnanl (Depends-on): Remove math.
4475         * modules/isnanl-nolibm (Depends-on): Remove math.
4476
4477         * tests/nan.h: New file.
4478
4479 2008-04-01  Eric Blake  <ebb9@byu.net>
4480
4481         Fix typos.
4482         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4483         values to be the right type.
4484
4485         For now, cater to gnulib strtod inaccuracies.
4486         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4487         fractional results.  While not as nice from a QoI perspective, it
4488         is a quicker patch than correctly implementing decimal to binary
4489         rounding.
4490
4491 2008-03-31  Eric Blake  <ebb9@byu.net>
4492
4493         Guarantee a definition of NAN.
4494         * lib/math.in.h (NAN): Define if missing.
4495         * tests/test-math.c (main): Test it.
4496         * doc/posix-headers/math.texi (math.h): Document this.
4497         * lib/isnan.c (rpl_isnand): Use it.
4498         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4499         * tests/test-floorf1.c (NaN): Likewise.
4500         * tests/test-frexp.c (NaN): Likewise.
4501         * tests/test-isnand.c (NaN): Likewise.
4502         * tests/test-isnanf.c (NaN): Likewise.
4503         * tests/test-round1.c (NaN): Likewise.
4504         * tests/test-roundf1.c (NaN): Likewise.
4505         * tests/test-snprintf-posix.h (NaN): Likewise.
4506         * tests/test-sprintf-posix.h (NaN): Likewise.
4507         * tests/test-trunc1.c (NaN): Likewise.
4508         * tests/test-truncf1.c (NaN): Likewise.
4509         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4510         * tests/test-vasprintf-posix.c (NaN): Likewise.
4511         * modules/isnand-nolibm (Depends-on): Add math.
4512         * modules/isnanf-nolibm (Depends-on): Likewise.
4513         * modules/isnanl (Depends-on): Likewise.
4514         * modules/isnanl-nolibm (Depends-on): Likewise.
4515         * modules/snprintf-posix-tests (Depends-on): Likewise.
4516         * modules/sprintf-posix-tests (Depends-on): Likewise.
4517         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4518         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4519         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4520         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4521
4522 2008-03-31  Bruno Haible  <bruno@clisp.org>
4523
4524         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4525         * doc/posix-functions/strtod.texi: Likewise.
4526
4527 2008-03-31  Bruno Haible  <bruno@clisp.org>
4528
4529         * tests/test-strtod.c (main): Don't use C99 syntax.
4530
4531 2008-03-31  Bruno Haible  <bruno@clisp.org>
4532
4533         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4534         Reported by Eric Blake.
4535
4536 2008-03-31  Jim Meyering  <meyering@redhat.com>
4537
4538         Don't compare actual signbit return values.
4539         * tests/test-strtod.c (main): Rather, compare only their
4540         zero/non-zero nature.
4541
4542 2008-03-31  Eric Blake  <ebb9@byu.net>
4543
4544         More strtod documentation.
4545         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4546         failures as distinct bugs.
4547
4548 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4549
4550         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4551         Problem reported by Erik Benada in
4552         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4553
4554 2008-03-30  Bruno Haible  <bruno@clisp.org>
4555
4556         * tests/test-strtod.c: Add comments about which assertion fails on which
4557         platform.
4558         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4559
4560 2008-03-30  Eric Blake  <ebb9@byu.net>
4561
4562         Test signbit behavior on zeros.
4563         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4564         (test_signbitd, test_signbitl): Likewise.
4565
4566         More strtod touchups.
4567         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4568         sign of negative underflow, for now.  Use .5, not .1.
4569         * doc/posix-functions/strtod.texi (strtod): Mention these
4570         limitations.
4571         Reported by Jim Meyering.
4572
4573 2008-03-30  Bruno Haible  <bruno@clisp.org>
4574
4575         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4576         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4577
4578 2008-03-30  Bruno Haible  <bruno@clisp.org>
4579
4580         Avoid failure when attempting to return empty iconv results on some
4581         platforms.
4582         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4583         allocation, don't report ENOMEM when the resulting string is empty.
4584
4585 2008-03-30  Bruno Haible  <bruno@clisp.org>
4586
4587         Fix buffer overrun.
4588         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4589         Don't consider the width for tmp_length. Check count against tmp_length
4590         before doing the padding. Ensure enough allocation during padding.
4591
4592 2008-03-30  Eric Blake  <ebb9@byu.net>
4593
4594         strtod touchups.
4595         * lib/strtod.c (strtod): Avoid compiler warnings.
4596         Reported by Jim Meyering.
4597
4598 2008-03-30  Bruno Haible  <bruno@clisp.org>
4599
4600         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4601         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4602         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4603         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4604         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4605         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4606         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4607         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4608
4609         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4610         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4611         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4612         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4613         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4614         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4615         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4616         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4617
4618         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4619         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4620         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4621         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4622         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4623         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4624         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4625         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4626
4627         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4628         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4629
4630         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4631         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4632
4633         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4634         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4635
4636         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4638         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4639
4640         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4642         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4643
4644         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4646         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4647
4648         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4650         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4651
4652         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4653         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4655         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4656         (Depends-on): Add EOVERFLOW.
4657         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4658         (Depends-on): Add EOVERFLOW.
4659         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4660         (Depends-on): Add EOVERFLOW.
4661         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4662         (Depends-on): Add EOVERFLOW.
4663         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4664         (Depends-on): Add EOVERFLOW.
4665         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4666         (Depends-on): Add EOVERFLOW.
4667         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4668         (Depends-on): Add EOVERFLOW.
4669         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4670         (Depends-on): Add EOVERFLOW.
4671
4672         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4674         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4675
4676         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4678         * modules/snprintf (Depends-on): Add EOVERFLOW.
4679
4680         * lib/poll.c (EOVERFLOW): Remove fallback.
4681         * modules/poll (Depends-on): Add EOVERFLOW.
4682
4683         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4684         * modules/getugroups (Depends-on): Add EOVERFLOW.
4685
4686         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4687         * modules/getdelim (Depends-on): Add EOVERFLOW.
4688
4689         * lib/ftell.c (EOVERFLOW): Remove fallback.
4690         * modules/ftell (Depends-on): Add EOVERFLOW.
4691
4692         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4694         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4695
4696         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4697
4698         * modules/EOVERFLOW-tests: New file.
4699         * tests/test-EOVERFLOW.c: New file.
4700
4701         * modules/EOVERFLOW: New file.
4702         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4703
4704 2008-03-30  Bruno Haible  <bruno@clisp.org>
4705
4706         Fix bug introduced on 2007-06-10.
4707         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4708         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4709
4710 2008-03-30  Bruno Haible  <bruno@clisp.org>
4711
4712         Improve freadseek's efficiency after ungetc.
4713         * lib/freadseek.c: Include freadahead.h.
4714         (freadptrinc): New function, extracted from freadseek.
4715         (freadseek): Use it in a loop. Use freadahead to determine the number
4716         of loop iterations.
4717         * modules/freadseek (Depends-on): Add freadahead.
4718         (configure.ac): Require AC_C_INLINE.
4719
4720 2008-03-30  Bruno Haible  <bruno@clisp.org>
4721
4722         * lib/freadseek.c (freadseek): Don't ignore the return value of
4723         freadptr.
4724
4725 2008-03-29  Eric Blake  <ebb9@byu.net>
4726
4727         Add hex float support.
4728         * modules/strtod (Depends-on): Add c-ctype.
4729         (Link): Mention POW_LIB.
4730         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4731         whitespace between 'e' and exponent.
4732         * tests/test-strtod.c (main): Enable hex float tests.
4733         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4734         now provides.
4735
4736         Document various strtod bugs, with some fixes.
4737         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4738         "-0x", "inf", "nan", and hex constants.
4739         * doc/posix-functions/atof.texi (atof): Likewise.
4740         * modules/stdlib (Makefile.am): Support strtod.
4741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4742         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4743         detect additional strtod bugs.
4744         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4745         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4746         bool where appropriate.  Parse 'inf' and 'nan'.
4747         * tests/test-strtod.c: New file.
4748         * modules/strtod (Depends-on): Add stdbool, stdlib.
4749         (configure.ac): Turn on module indicator.
4750         * modules/strtod-tests: New module.
4751
4752 2008-03-29  Eric Blake  <ebb9@byu.net>
4753
4754         Fix ftell on mingw.
4755         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4756         * modules/ftell-tests (Depends-on): Add binary-io.
4757         * modules/ftello-tests (Depends-on): Likewise.
4758         * tests/test-ftell.c (main): Enhance test to cover behavior after
4759         ungetc.  Enforce binary mode.
4760         * tests/test-ftello.c (main): Likewise.
4761
4762         Pass test-freadseek on cygwin.
4763         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4764         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4765         ungetc buffer.
4766
4767         * tests/test-fflush2.c (main): Fix typo.
4768
4769 2008-03-29  Bruno Haible  <bruno@clisp.org>
4770
4771         * tests/test-fflush2.c (main): Temporarily disable the contents of
4772         this test.
4773         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4774         Reported by Eric Blake.
4775
4776 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4777
4778         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4779         (GC_SHA224_DIGEST_SIZE): Add.
4780
4781         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4782         (gc_hash_digest_length): Likewise.
4783         (gc_hash_buffer): Likewise.
4784
4785 2008-03-25  Bruno Haible  <bruno@clisp.org>
4786
4787         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4788         detail which gettext release to use.
4789         Reported by Simon Josefsson.
4790
4791 2008-03-26  Jim Meyering  <meyering@redhat.com>
4792
4793         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4794         * modules/gnumakefile (clean-GNUmakefile): Also, use
4795         test ... && ... || : syntax rather than if-then ... fi.
4796
4797         gnumakefile: Don't double-quote-expand $(VPATH) value.
4798         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4799
4800 2008-03-24  Eric Blake  <ebb9@byu.net>
4801
4802         Alter GNUmakefile to install into top directory.
4803         * modules/maintainer-makefile: Split, and add dependency...
4804         * modules/gnumakefile: to this new module.
4805         * build-aux/GNUmakefile: Move...
4806         * top/GNUmakefile: ...here.
4807         * build-aux/maint.mk: Move...
4808         * top/maint.mk: ...here.
4809         * MODULES.html.sh (Support for maintaining...): Document new
4810         module.
4811
4812 2008-03-23  Bruno Haible  <bruno@clisp.org>
4813
4814         * gnulib-tool: New options --vc-files, --no-vc-files.
4815         (func_usage): Document them.
4816         (vc_files): New variable.
4817         (func_import): Consider vc_files.
4818         (func_create_testdir): Set vc_files to empty.
4819         Suggested by Jim Meyering and Karl Berry.
4820
4821 2008-03-23  Bruno Haible  <bruno@clisp.org>
4822
4823         Fix regex compilation error on HP-UX 11.
4824         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4825         * modules/regex (Files): Add m4/mbstate_t.m4.
4826         Reported by Ton Voon <ton.voon@altinity.com>.
4827
4828 2008-03-23  Bruno Haible  <bruno@clisp.org>
4829
4830         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4831
4832 2008-03-23  Eric Blake  <ebb9@byu.net>
4833             Bruno Haible  <bruno@clisp.org>
4834
4835         Install files from top/ in the destination directory.
4836         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4837         augmentation also for the files from top/.
4838         (func_import, func_create_testdir): Rewrite file names:
4839         top/filename -> filename.
4840
4841 2008-03-23  Bruno Haible  <bruno@clisp.org>
4842
4843         Tweak "gnulib --version" output.
4844         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4845
4846 2008-03-23  Bruno Haible  <bruno@clisp.org>
4847
4848         Tweak "gnulib --version" output.
4849         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4850         rather than contents of ChangeLog, when possible.
4851
4852 2008-03-21  Eric Blake  <ebb9@byu.net>
4853
4854         More --version tweaks.
4855         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4856         date of last ChangeLog entry.
4857
4858 2008-03-21  Jim Meyering  <meyering@redhat.com>
4859
4860         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4861
4862 2008-03-20  Eric Blake  <ebb9@byu.net>
4863
4864         VPATH fix.
4865         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4866
4867 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4868
4869         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4870         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4871
4872 2008-03-20  Eric Blake  <ebb9@byu.net>
4873
4874         Sync GNUmakefile with coreutils.
4875         * build-aux/GNUmakefile (have-Makefile): Rename...
4876         (_have-Makefile): ...to this, for namespace consideration.
4877         (GNUmakefile.cfg): Include, if present.
4878         (_autoreconf): Define a default.
4879         (_is-dist-target): New rule for rebuilds to pick up intra-release
4880         version.
4881         (maint-cfg.mk): Rename...
4882         (cfg.mk): ...to this.
4883
4884 2008-03-18  Jim Meyering  <meyering@redhat.com>
4885
4886         New script and module: mktempd
4887         * MODULES.html.sh (maint+release support): Add mktempd.
4888         * build-aux/mktempd: New file.
4889         * modules/mktempd: New file.
4890
4891 2008-03-15  Jim Meyering  <meyering@redhat.com>
4892
4893         Undo last change.
4894         * lib/sha1.c, lib/md5.c: 63 != ~63.
4895         Reported by Andreas Schwab.
4896
4897         sha1.c, md5.c: Hoist a redundant expression.
4898         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4899         "ctx->buflen" only once, before calling *_process_block.
4900         * lib/md5.c (md5_process_bytes): Likewise.
4901
4902 2008-03-14  Eric Blake  <ebb9@byu.net>
4903
4904         Bump copyright year in files generated by gnulib-tool.
4905         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4906         gnulib-tool, rather than hard-coding it.
4907
4908         Fix 'gnulib-tool --version' output to work with git.
4909         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4910         (startup): ...here.
4911         (func_version): Use it to invoke git-version-gen, rather than
4912         relying on CVS keyword expansion.  Modernize wording.
4913         (cvsdatestamp, last_checkin_date, version): Kill unused
4914         variables.
4915
4916 2008-03-12  Jim Meyering  <meyering@redhat.com>
4917
4918         Recognize optional cast of the argument to free.
4919         * build-aux/useless-if-before-free: Update regexps.
4920
4921         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4922
4923 2008-03-11  Bruno Haible  <bruno@clisp.org>
4924
4925         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4926         by a single package.
4927         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4928         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4929         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4930         Reported by Sam Steingold <sds@gnu.org>.
4931
4932 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4933
4934         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4935         repositories.
4936
4937 2008-03-11  Bruno Haible  <bruno@clisp.org>
4938
4939         Avoid conflicts between local macro definitions.
4940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4941         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4942
4943 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4944             Bruno Haible  <bruno@clisp.org>
4945
4946         Make va_copy work with some version of xlc on AIX 5.1.
4947         * lib/stdarg.in.h: New file.
4948         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4949         On AIX, use a <stdarg.h> file substitute.
4950         * modules/stdarg (Files): Add lib/stdarg.in.h.
4951         (Depends-on): Add include_next.
4952         (Makefile.am): Build a stdarg.h substitute if requested.
4953         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4954
4955 2008-03-10  Bruno Haible  <bruno@clisp.org>
4956
4957         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4959         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4960
4961 2008-03-10  Bruno Haible  <bruno@clisp.org>
4962
4963         * modules/stdlib (Depends-on): Add include_next, remove
4964         absolute-header.
4965
4966 2008-03-09  Bruno Haible  <bruno@clisp.org>
4967
4968         * lib/freadahead.h (freadahead): Document more precisely.
4969         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4970         the sum of both buffer sizes.
4971         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4972         * NEWS: Document the change.
4973
4974 2008-03-09  Bruno Haible  <bruno@clisp.org>
4975
4976         Extend freadptr to return also the buffer size.
4977         * lib/freadptr.h (freadptr): Add sizep argument.
4978         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4979         (freadptr): Add sizep argument. Determine buffer size like freadahead
4980         does.
4981         * tests/test-freadptr.c: Don't include freadahead.h.
4982         (main): Adapt for new calling convention of freadptr.
4983         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4984         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4985         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4986         tests/test-freadptr2.sh.
4987         (Depends): Remove freadahead.
4988         (TESTS): Add test-freadptr2.sh.
4989         (check_PROGRAMS): Add test-freadptr2.
4990
4991 2008-03-09  Bruno Haible  <bruno@clisp.org>
4992
4993         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4994         Report and solution by Simon Josefsson.
4995
4996 2008-03-06  Bruno Haible  <bruno@clisp.org>
4997
4998         Make fflush after ungetc work on BSD platforms.
4999         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5000         * tests/test-fflush2.c: New file.
5001         * tests/test-fflush2.sh: New file.
5002         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5003         tests/test-fflush2.c.
5004         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5005         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5006
5007 2008-03-06  Eric Blake  <ebb9@byu.net>
5008
5009         Likewise for ftello.
5010         * modules/ftello (Dependencies): Add extensions.
5011         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5012
5013 2008-03-06  Bruno Haible  <bruno@clisp.org>
5014
5015         * modules/fseeko (Dependencies): Add extensions.
5016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5017         Needed on glibc systems.
5018
5019 2008-03-06  Bruno Haible  <bruno@clisp.org>
5020
5021         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5022         email address.
5023         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5024
5025 2008-03-06  Bruno Haible  <bruno@clisp.org>
5026
5027         * users.txt: Add libgnupdf.
5028
5029 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5030
5031         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5032         (Header File Substitutes, Function Substitutes,
5033         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5034         (Build robot for gnulib): Fix typo.
5035
5036 2008-03-06  Bruno Haible  <bruno@clisp.org>
5037
5038         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5039         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5040
5041 2008-03-06  Bruno Haible  <bruno@clisp.org>
5042
5043         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5044         * doc/gnulib.texi: Include it.
5045
5046 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5047
5048         * modules/func (License): Change license to unlimited; there was
5049         no LGPL parts in the module anyway.
5050
5051 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5052
5053         * modules/__func__: Renamed to modules/func.
5054         * modules/__func__-tests: Renamed to modules/func-tests.
5055         * tests/test-__func__.c: Renamed to tests/test-func.c.
5056         * m4/__func__.m4: Renamed to m4/func.m4.
5057         * doc/gnulib.texi (__func__): Section renamed to func.
5058         Suggested by Eric Blake <ebb9@byu.net>.
5059
5060 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5061
5062         * doc/gnulib.texi (__func__): Use C99 terminology when talking
5063         about __func__.  Make example self-contained.  Suggested by Eric
5064         Blake <ebb9@byu.net>.
5065
5066         * tests/test-__func__.c (main): Avoid extraneous () around __func.
5067         Suggested by Eric Blake <ebb9@byu.net>.
5068
5069 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5070
5071         * modules/__func__: New file.
5072         * modules/__func__-tests: New file.
5073         * tests/test-__func__.c: New file.
5074         * m4/__func__.m4: New file.
5075         * doc/gnulib.texi (__func__): Document __func__ module.
5076
5077 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5078
5079         * modules/byteswap (License): Re-license as LGPLv2+.
5080
5081 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5082
5083         * doc/Makefile: Add pdf target.
5084
5085 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5086
5087         * modules/inline (License): Use 'unlimited', since there are only
5088         *.m4 files in this module.
5089
5090 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5091             Bruno Haible  <bruno@clisp.org>
5092
5093         Add support for HP C 7.1 on OpenVMS 8.3.
5094         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5095
5096 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5097
5098         Update VMS specifics.
5099         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5100
5101 2008-03-02  Jim Meyering  <meyering@redhat.com>
5102
5103         Remove the last dependency on the "free" module.
5104         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5105         Reported by Bob Proulx.
5106
5107         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5108
5109         Remove useless "if" tests before free.  Deprecate "free" module.
5110         * doc/posix-functions/free.texi: Mention that this
5111         module is no longer useful.
5112         * modules/free (Notice): Say this module is obsolete.
5113         * modules/readutmp (Depends-on): Remove free.
5114         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5115         * lib/putenv.c (putenv): Likewise.
5116         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5117         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5118         * tests/test-c-strcasestr.c (main): Likewise.
5119         * tests/test-c-strstr.c (main): Likewise.
5120         * tests/test-mbscasestr1.c (main): Likewise.
5121         * tests/test-mbscasestr2.c (main): Likewise.
5122         * tests/test-mbsstr1.c (main): Likewise.
5123         * tests/test-mbsstr2.c (main): Likewise.
5124         * tests/test-memmem.c (main): Likewise.
5125         * tests/test-strcasestr.c (main): Likewise.
5126         * tests/test-striconv.c (main): Likewise.
5127         * tests/test-striconveh.c (main): Likewise.
5128         * tests/test-striconveha.c (main): Likewise.
5129         * tests/test-strstr.c (main): Likewise.
5130
5131         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5132
5133         bootstrap: sync from coreutils again
5134         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5135
5136 2008-03-01  Jim Meyering  <meyering@redhat.com>
5137
5138         bootstrap: sync from coreutils
5139         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5140         also when the target doesn't exist.
5141
5142 2008-03-01  Eric Blake  <ebb9@byu.net>
5143
5144         Fix bugs in last patch.
5145         * lib/memchr2.c (memchr2): Fix typo.
5146         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5147         extension.
5148         Reported by Bruce Korb.
5149
5150         New module 'memchr2'.
5151         * modules/memchr2: New file.
5152         * modules/memchr2-tests: Likewise.
5153         * lib/memchr2.h: Likewise.
5154         * lib/memchr2.c: Likewise, based on memchr.c.
5155         * tests/test-memchr2.c: New test.
5156         * MODULES.html.sh (String handling): Add memchr2.
5157
5158 2008-02-29  Bruno Haible  <bruno@clisp.org>
5159
5160         * modules/freadseek-tests: New file.
5161         * tests/test-freadseek.sh: New file.
5162         * tests/test-freadseek.c: New file.
5163
5164         New module 'freadseek'.
5165         * modules/freadseek: New file.
5166         * lib/freadseek.h: New file.
5167         * lib/freadseek.c: New file.
5168         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5169
5170 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5171
5172         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5173         wydawca.
5174
5175         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5176         program_invocation_name and program_invocation_short_name are
5177         present.
5178
5179 2008-02-28  Bruno Haible  <bruno@clisp.org>
5180
5181         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5182         * tests/test-freadptr.sh: Also test non-seekable stdin.
5183
5184 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5185
5186         * build-aux/bootstrap (source_base, m4_base)
5187         (doc_base, tests_base): New variables.
5188         (gnulib_tool_options): Do not hardcode base directories, use
5189         the above variables instead.
5190
5191 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5192
5193         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5194
5195 2008-02-28  Bruno Haible  <bruno@clisp.org>
5196
5197         * modules/freadptr-tests: New file.
5198         * tests/test-freadptr.sh: New file.
5199         * tests/test-freadptr.c: New file.
5200
5201         New module 'freadptr'.
5202         * modules/freadptr: New file.
5203         * lib/freadptr.h: New file.
5204         * lib/freadptr.c: New file.
5205         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5206
5207 2008-02-26  Karl Berry  <karl@freefriends.org>
5208
5209         Sync from Libtool:
5210         * libltdl/argz.c (argz_add, argz_count): New functions.
5211         * libltdl/argz.in.h: Declare them.
5212         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5213
5214 2008-02-22  Bruno Haible  <bruno@clisp.org>
5215
5216         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5217         is a pointer type.  Needed for HP-UX 10.
5218         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5219         * doc/posix-functions/gmtime_r.texi: Likewise.
5220         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5221
5222 2008-02-24  Bruno Haible  <bruno@clisp.org>
5223
5224         * modules/environ-tests: New file.
5225         * tests/test-environ.c: New file.
5226
5227         New module 'environ'.
5228         * modules/environ: New file.
5229         * lib/unistd.in.h (environ): New declaration.
5230         * m4/environ.m4: New file.
5231         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5232         after use.
5233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5234         HAVE_DECL_ENVIRON.
5235         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5236         HAVE_DECL_ENVIRON.
5237         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5238         wrong claim that 'environ' is missing on some systems.
5239         * modules/execute (Depends-on): Add environ.
5240         * lib/execute.c (environ): Remove fallback declaration.
5241         * modules/pipe (Depends-on): Add environ.
5242         * lib/pipe.c (environ): Remove fallback declaration.
5243         * modules/setenv (Depends-on): Add environ.
5244         * lib/setenv.c (environ): Remove fallback declaration.
5245         * modules/unsetenv (Depends-on): Add environ.
5246         * lib/unsetenv.c (environ): Remove fallback declaration.
5247         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5248         m4/environ.m4.
5249         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5250         (gl_PREREQ_UNSETENV): Likewise.
5251
5252 2008-02-24  Bruno Haible  <bruno@clisp.org>
5253
5254         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5255
5256 2008-02-20  Bob Proulx  <bob@proulx.com>
5257
5258         Enable use of older two part flavor 'git describe'.
5259         * build-aux/git-version-gen: If using the older two part flavor of
5260         git version then recreate the third part now present in the
5261         newer three part flavor of git describe.
5262
5263 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5264
5265         * lib/fts.c (fts_build): Typo correction to comment.
5266
5267 2008-02-17  Bruno Haible  <bruno@clisp.org>
5268
5269         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5270         generating no-op conflicts.
5271
5272 2008-02-17  Bruno Haible  <bruno@clisp.org>
5273
5274         Speed up by 10%.
5275         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5276         result_entries, rather than an index-based loop.
5277
5278 2008-02-17  Bruno Haible  <bruno@clisp.org>
5279
5280         Speed up by 25%.
5281         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5282         'hashcode_cached'.
5283         (entry_create): New function.
5284         (entry_hashcode): Use the cached hashcode if possible.
5285         (read_changelog_file, try_split_merged_entry): Use entry_create.
5286
5287 2008-02-17  Bruno Haible  <bruno@clisp.org>
5288
5289         Speed up from O(n^2) to O(n) for long ChangeLog files.
5290         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5291         (read_changelog_file): Change implementation of entries_reversed list
5292         to rbtreehash.
5293         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5294
5295 2008-02-17  Bruno Haible  <bruno@clisp.org>
5296
5297         New option --split-merged-entry.
5298         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5299         (find_paragraph_end, try_split_merged_entry): New functions.
5300         (long_options): Add option --split-merged-entry.
5301         (usage): Document option --split-merged-entry.
5302         (main): Implement option --split-merged-entry.
5303         Reported by Eric Blake.
5304
5305 2008-02-17  Bruno Haible  <bruno@clisp.org>
5306
5307         * lib/git-merge-changelog.c: Include c-strstr.h.
5308         (main): Support the "git pull --rebase" situation.
5309         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5310         Reported by Eric Blake.
5311
5312 2008-02-16  Eric Blake  <ebb9@byu.net>
5313
5314         Avoid doubling \ in common case of "c-maybe" quoting style.
5315         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5316         eliding outer quotes.
5317         * lib/quotearg.h: Document this.
5318         * tests/test-quotearg.c (result_strings, inputs, results_g)
5319         (flag_results, locale_results): Test it by adding a new string to
5320         each test group.
5321         (compare_strings): Test new string.
5322
5323 2008-02-13  Eric Blake  <ebb9@byu.net>
5324
5325         Avoid trigraph quoting in default output.
5326         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5327         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5328         unless explicitly requested.
5329         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5330
5331 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5332
5333         Don't rely on signed integer overflowing to negative value.
5334         * lib/getugroups.c (getugroups): Include <limits.h>.
5335         Instead, compare against INT_MAX, and increment only if the test passes.
5336
5337 2008-02-13  Jim Meyering  <meyering@redhat.com>
5338         and Eric Blake  <ebb9@byu.net>
5339
5340         Avoid shadowing warning and compile errors on Linux.
5341         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5342         forwarding macros on Linux.
5343         (dcgettext): Define a stub, for Linux.
5344         (results_g, main): Avoid warnings.
5345
5346 2008-02-12  Eric Blake  <ebb9@byu.net>
5347
5348         Silence warning in last patch.
5349         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5350
5351         Quotearg part 4: add tests, fix c-maybe colon quoting.
5352         * lib/quotearg.h: Improve documentation.
5353         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5354         escapes when adding outer quotes.  When quoting trigraphs, use
5355         valid C notation.  When quoting NUL, omit extra characters if next
5356         character is not digit.  Alter prototype.
5357         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5358         callers.
5359         * modules/quotearg-tests: New module.
5360         * tests/test-quotearg.c: New test.
5361
5362 2008-02-07  Eric Blake  <ebb9@byu.net>
5363
5364         Quotearg part 3: add flag to control outer quote elision.
5365         * lib/quotearg.h (c_maybe_quoting_style): New style.
5366         (enum quoting_flags): Better documentation of flags.
5367         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5368         c-maybe style.
5369         (quotearg_buffer_restyled): Handle new flag to elide outer
5370         quotes.
5371
5372         Quotearg part 2: add flag that can control NUL elision.
5373         * lib/quotearg.h (set_quoting_flags): New prototype.
5374         * lib/quotearg.c (struct quoting_options): Add flag field.
5375         (set_quoting_flags): New function.
5376         (quotearg_buffer_restyled): Add flags parameter.
5377         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5378         (quotearg_n_options): Set the flag, since length cannot be
5379         returned.
5380         (quoting_options_from_style): Default flags correctly.
5381
5382         Quotearg part 1: more wrappers, restore quotearg_char state.
5383         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5384         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5385         (quotearg_colon_mem): New wrappers.
5386         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5387         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5388         functions.
5389         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5390         (quotearg_colon_mem): New functions.
5391
5392 2008-02-11  Bruno Haible  <bruno@clisp.org>
5393
5394         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5395         library in the current directory: it does not work with parallel make.
5396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5397
5398 2008-02-11  Bruno Haible  <bruno@clisp.org>
5399
5400         * .gitattributes: New file.
5401
5402 2008-02-11  Jim Meyering  <meyering@redhat.com>
5403
5404         useless-if-before-free: Fix reversed exit values.
5405         * build-aux/useless-if-before-free: Use correct values
5406         for EXIT_MATCH and EXIT_NO_MATCH.
5407
5408         * build-aux/useless-if-before-free: Close stdout carefully.
5409
5410 2008-02-10  Bruno Haible  <bruno@clisp.org>
5411
5412         New module 'git-merge-changelog'.
5413         * modules/git-merge-changelog: New file.
5414         * lib/git-merge-changelog.c: New file.
5415
5416 2008-02-10  Jim Meyering  <meyering@redhat.com>
5417
5418         useless-if-before-free: New option: --list (-l).
5419
5420         useless-if-before-free: Don't exit immediately upon open failure.
5421         * build-aux/useless-if-before-free: Exit 2 for errors.
5422         Upon failure to open a file, don't exit immediately.
5423         Rather, just warn and continue with any remaining files.
5424
5425 2008-02-10  Bruno Haible  <bruno@clisp.org>
5426
5427         New abstract list operation 'node_set_value'.
5428         * lib/gl_list.h (gl_list_node_set_value): New function.
5429         (struct gl_list_implementation): New field node_set_value.
5430         * lib/gl_list.c (gl_list_node_set_value): New function.
5431         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5432         (gl_array_list_implementation): Update.
5433         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5434         (gl_carray_list_implementation): Update.
5435         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5436         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5437         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5438         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5439         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5440         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5441         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5442         Update.
5443         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5444         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5445         (gl_sublist_list_implementation): Update.
5446
5447 2008-02-10  Bruno Haible  <bruno@clisp.org>
5448
5449         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5450         Needed when ELEMENT is #defined to 'some_type *'.
5451
5452 2008-02-10  Jim Meyering  <meyering@redhat.com>
5453
5454         New script and module: useless-if-before-free
5455         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5456         * build-aux/useless-if-before-free: New file.
5457         * modules/useless-if-before-free: New file.
5458
5459         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5460
5461         xstrtol_error: Fix typo.
5462         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5463         s/exit_failure/exit_status/.
5464
5465 2008-02-09  Jim Meyering  <meyering@redhat.com>
5466
5467         New script and module: gitlog-to-changelog
5468         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5469         * modules/gitlog-to-changelog: New file.
5470         * build-aux/gitlog-to-changelog: New file.
5471
5472 2008-02-08  Jim Meyering  <meyering@redhat.com>
5473
5474         Avoid two "parameter unused" warnings.
5475         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5476         Mark "st" as used.
5477
5478         Use "git COMMAND", not "git-COMMAND".
5479         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5480         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5481         * build-aux/git-version-gen: Use "git status", not "git-status".
5482
5483 2008-02-07  Bruno Haible  <bruno@clisp.org>
5484
5485         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5486         Avoids a crash on Windows Vista.
5487         Reported by Adam Strzelecki <ono@java.pl> via
5488         Simon Josefsson <simon@josefsson.org>.
5489
5490 2008-02-06  Bruno Haible  <bruno@clisp.org>
5491
5492         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5493         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5494         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5496         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5498         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5499         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5505         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5507         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5508         left-adjust flag.
5509         * tests/test-snprintf-posix.h (test_function): Likewise.
5510         * tests/test-sprintf-posix.h (test_function): Likewise.
5511         * tests/test-vasprintf-posix.c (test_function): Likewise.
5512         * doc/posix-functions/fprintf.texi: Update.
5513         * doc/posix-functions/printf.texi: Update.
5514         * doc/posix-functions/snprintf.texi: Update.
5515         * doc/posix-functions/sprintf.texi: Update.
5516         * doc/posix-functions/vfprintf.texi: Update.
5517         * doc/posix-functions/vprintf.texi: Update.
5518         * doc/posix-functions/vsnprintf.texi: Update.
5519         * doc/posix-functions/vsprintf.texi: Update.
5520         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5521
5522 2008-02-06  Bruno Haible  <bruno@clisp.org>
5523
5524         Fix bug introduced on 2008-01-26.
5525         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5526
5527 2008-02-06  Bruno Haible  <bruno@clisp.org>
5528
5529         Fix bug introduced on 2007-06-10.
5530         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5531         !NEED_PRINTF_FLAG_ZERO.
5532
5533 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5534
5535         getloadavg: use libperfstat on AIX5
5536         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5537
5538 2008-02-03  Bruno Haible  <bruno@clisp.org>
5539
5540         * lib/diffseq.h: Add comments about required #includes.
5541         Reported by Michael Biggs <gnulib@doubleplum.net>.
5542
5543 2008-02-01  Bruno Haible  <bruno@clisp.org>
5544
5545         * users.txt: Add gnuit.
5546
5547 2008-01-31  Bruno Haible  <bruno@clisp.org>
5548
5549         * lib/md4.c (set_uint32): Mark as inline.
5550         * lib/md5.c (set_uint32): Likewise.
5551         * lib/sha1.c (set_uint32): Likewise.
5552         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5553         * m4/md5.m4 (gl_MD5): Likewise.
5554         * m4/sha1.m4 (gl_SHA1): Likewise.
5555
5556 2008-01-31  Jim Meyering  <meyering@redhat.com>
5557
5558         Use "sizeof VAR", rather than a literal "4".
5559         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5560         * lib/md4.c (md4_read_ctx): Likewise.
5561         * lib/sha1.c (sha1_read_ctx): Likewise.
5562
5563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5564
5565         * tests/test-sha1.c: New file, based on test-md5.c.
5566
5567         * modules/crypto/sha1-tests: New file.
5568
5569 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5570
5571         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5572
5573 2008-01-31  Jim Meyering  <meyering@redhat.com>
5574
5575         Prefer "sizeof v" over the equivalent "4".
5576         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5577         * lib/md5.c (set_uint32): Likewise.
5578         * lib/sha1.c (set_uint32): Likewise.
5579
5580 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5581
5582         * lib/sha1.c (set_uint32): Mark function as static.
5583
5584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5585
5586         md2: clarify comments to say that alignment is not required.
5587         * lib/md2.h: Remove warning about alignment in comment.
5588         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5589         never been required.
5590
5591 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5592
5593         md4: adapt alignment constraint fix from sha1.
5594         * lib/md4.c (set_uint32): New function, from sha1.c
5595         (md4_read_ctx): Use it.
5596         (md4_finish_ctx): Doc fix.
5597         * lib/md4.h: Doc fix.
5598
5599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5600
5601         md5: adapt alignment constraint fix from sha1.
5602         * lib/md5.c (set_uint32): New function, from sha1.c
5603         (md5_read_ctx): Use it.
5604         (md5_finish_ctx): Doc fix.
5605         * lib/md5.h: Doc fix.
5606
5607 2008-01-30  Peter Palfrader  <weasel@debian.org>
5608
5609         sha1: remove the result buffer alignment constraint
5610         * lib/sha1.c (set_uint32): New function.
5611         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5612         constraint.
5613         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5614         * lib/sha1.h: Likewise.
5615
5616 2008-01-30  Andreas Schwab  <schwab@suse.de>
5617             Bruno Haible  <bruno@clisp.org>
5618
5619         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5620         correct definition of LDBL_MIN_EXP.
5621
5622 2008-01-30  Karl Berry  <karl@gnu.org>
5623
5624         * config/srclist-update: try to preserve x bit on updates.
5625         * config/srclistvars.sh: update for karl.
5626
5627 2008-01-29  Jim Meyering  <meyering@redhat.com>
5628
5629         vasnprintf.c: Avoid warning about unused label
5630         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5631         "overflow" label definition and associated code with the
5632         same cpp condition that guards the sole use of that label.
5633
5634 2008-01-26  Bruno Haible  <bruno@clisp.org>
5635
5636         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5637         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5638         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5639         * lib/isnanl-nolibm.h (isnanl): Likewise.
5640         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5641
5642 2008-01-26  Bruno Haible  <bruno@clisp.org>
5643
5644         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5645         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5646
5647 2008-01-26  Bruno Haible  <bruno@clisp.org>
5648
5649         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5650         GCC >= 4.0 built-in.
5651         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5652
5653 2008-01-26  Bruno Haible  <bruno@clisp.org>
5654
5655         Rename isnan, applicable to 'double' only, to isnand.
5656         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5657         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5658         (configure.ac): Update.
5659         (Include): Replace "isnan.h" with "isnand.h".
5660         * m4/isnand.m4: Renamed from m4/isnan.m4.
5661         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5662         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5663         instead of isnan.c.
5664         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5665         instead of HAVE_ISNAN_IN_LIBC.
5666         (isnand): Renamed from isnan.
5667         * lib/isnand.c: New file.
5668         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5669         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5670         (Makefile.am): Update.
5671         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5672         Include isnand.h instead of isnan.h.
5673         (main): Test isnand instead of isnan.
5674         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5675         isnan-nolibm.
5676         * modules/frexp (Depends-on): Likewise.
5677         * modules/frexp-tests (Depends-on): Likewise.
5678         * modules/frexp-nolibm (Depends-on): Likewise.
5679         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5680         * modules/isfinite (Depends-on): Likewise.
5681         * modules/round-tests (Depends-on): Likewise.
5682         * modules/signbit (Depends-on): Likewise.
5683         * modules/signbit-tests (Depends-on): Likewise.
5684         * modules/snprintf-posix (Depends-on): Likewise.
5685         * modules/sprintf-posix (Depends-on): Likewise.
5686         * modules/trunc-tests (Depends-on): Likewise.
5687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5694         * modules/vasnprintf-posix (Depends-on): Likewise.
5695         * modules/vasprintf-posix (Depends-on): Likewise.
5696         * modules/vfprintf-posix (Depends-on): Likewise.
5697         * modules/vsnprintf-posix (Depends-on): Likewise.
5698         * modules/vsprintf-posix (Depends-on): Likewise.
5699         * lib/frexp.c: Include isnand.h instead of isnan.h.
5700         (ISNAN): Set to isnand instead of isnan.
5701         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5702         (gl_isfinited): Use isnand instead of isnan.
5703         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5704         (gl_signbitd): Use isnand instead of isnan.
5705         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5706         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5707         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5708         (main): Use isnand instead of isnan.
5709         * tests/test-round1.c: Include isnand.h.
5710         (main): Use isnand instead of isnan.
5711         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5712         (ISNAN): Set to isnand instead of isnan.
5713         * tests/test-trunc1.c: Include isnand.h.
5714         (main): Use isnand instead of isnan.
5715         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5716         (equal): Use isnand instead of isnan.
5717         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5718         isnand-nolibm.
5719         * NEWS: Mention the change.
5720
5721 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5722             Bruno Haible  <bruno@clisp.org>
5723
5724         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5725         the GCC builtins for signbits are present and set
5726         REPLACE_SIGNBIT_USING_GCC if so.
5727         * lib/math.in.h (signbit): Define using GCC builtins if
5728         REPLACE_SIGNBIT_USING_GCC is set.
5729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5730         REPLACE_SIGNBIT_USING_GCC.
5731         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5732
5733 2008-01-25  Jim Meyering  <meyering@redhat.com>
5734
5735         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5736         * lib/poll.c: Include <config.h>, not "config.h".
5737         * tests/test-getaddrinfo.c: Likewise.
5738
5739 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5740
5741         * modules/sockets-tests: New file.
5742
5743 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5744
5745         * modules/sockets: New module, can be used to call WSA_Startup and
5746         WSA_Cleanup when needed.
5747
5748         * lib/sockets.h, lib/sockets.c: New files.
5749
5750         * m4/sockets.m4: New file.
5751
5752         * tests/test-sockets.c: New file.
5753
5754 2008-01-19  Bruno Haible  <bruno@clisp.org>
5755
5756         * doc/posix-headers: Renamed from doc/headers.
5757         * doc/posix-functions: Renamed from doc/functions.
5758         * doc/gnulib.texi: Update.
5759
5760 2008-01-19  Bruno Haible  <bruno@clisp.org>
5761
5762         * doc/glibc-functions/strcasestr.texi: Include contents of
5763         doc/functions/strcasestr.texi, fixing the list of platforms.
5764         * doc/functions/strcasestr.texi: Remove file.
5765
5766 2008-01-19  Bruno Haible  <bruno@clisp.org>
5767
5768         * doc/glibc-functions/memmem.texi: Include contents of
5769         doc/functions/memmem.texi.
5770         * doc/functions/memmem.texi: Remove file.
5771
5772 2008-01-18  Bruno Haible  <bruno@clisp.org>
5773
5774         * doc/glibc-functions/*.texi: New files.
5775         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5776         to use the new files.
5777
5778 2008-01-17  Bruno Haible  <bruno@clisp.org>
5779
5780         * tests/test-gethostname.c (main): Fix printf statement.
5781
5782 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5783
5784         * modules/gethostname-tests: New file.
5785
5786         * tests/test-gethostname.c: New file.
5787
5788 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5789
5790         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5791         used by the UNAME case.  Reported by Bruno Haible
5792         <bruno@clisp.org>.
5793
5794 2008-01-17  Eric Blake  <ebb9@byu.net>
5795
5796         Convert c-strcasestr to be more efficient.
5797         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5798         (Depends-on): Add c-strcase, remove malloca, strnlen.
5799         * tests/test-c-strcasestr.c (main): Enhance test.
5800         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5801
5802 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5803
5804         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5805         Use it in creating po/Makevars.
5806
5807 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5808
5809         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5810         Applications that requires it should initialize libgcrypt
5811         manually.
5812
5813 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5814
5815         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5816
5817 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5818
5819         Fix problem with getdate on mingw32 reported by Simon Josefsson
5820         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5821         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5822         tzname", when deciding whether to declare tzname.
5823         * lib/strftime.c (tzname): Likewise.
5824
5825 2008-01-15  Bruno Haible  <bruno@clisp.org>
5826
5827         Work around a MacOS X 10.5 bug in frexpl().
5828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5829         * doc/functions/frexpl.texi: Document the bug.
5830         Reported by Elias Pipping <pipping@gentoo.org>.
5831
5832 2008-01-14  Eric Blake  <ebb9@byu.net>
5833
5834         Touch up previous patch.
5835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5836         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5837
5838         Convert strcasestr module to use Two-Way algorithm.
5839         * modules/strcasestr-simple: New module, based on the old
5840         strcasestr, but with Two-Way rather than KMP.
5841         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5842         * lib/string.in.h (rpl_strcasestr): Declare.
5843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5844         performance.
5845         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5846         * modules/string (Makefile.am): Support strcasestr.
5847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5848         * modules/strcasestr-tests (Depends-on): Check for alarm.
5849         * tests/test-strcasestr.c: Augment test.
5850         * lib/str-two-way.h: Clean up stray macro.
5851         * NEWS: Document new module.
5852         * MODULES.html.sh (string handling): Likewise.
5853         * doc/functions/strcasestr.texi: New file.
5854         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5855         here, since it is not a POSIX function.
5856
5857 2008-01-14  Colin Watson  <cjwatson@debian.org>
5858             Bruno Haible  <bruno@clisp.org>
5859
5860         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5861         works fine; if not, set REPLACE_STRSIGNAL.
5862         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5864         REPLACE_STRSIGNAL.
5865         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5866         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5867         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5868
5869 2008-01-14  Bruno Haible  <bruno@clisp.org>
5870
5871         * modules/strsignal (Include): Change to <string.h>.
5872
5873 2008-01-14  Colin Watson  <cjwatson@debian.org>
5874
5875         * modules/argp (Notice): Add a notice recommending to change
5876         XGETTEXT_OPTIONS.
5877         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5878
5879 2008-01-13  Colin Watson  <cjwatson@debian.org>
5880
5881         * modules/strsignal-tests: New file.
5882         * tests/test-strsignal.c: New file.
5883
5884         * lib/strsignal.c: New file, from glibc with modifications.
5885         * lib/siglist.h: New file, from glibc with modifications.
5886         * lib/string.in.h (strsignal): New declaration.
5887         * m4/strsignal.m4: New file.
5888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5889         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5890         * modules/strsignal: New file.
5891         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5892         HAVE_DECL_STRSIGNAL.
5893
5894 2008-01-13  Bruno Haible  <bruno@clisp.org>
5895
5896         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5897         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5898         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5900
5901 2008-01-13  Bruno Haible  <bruno@clisp.org>
5902
5903         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5904         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5905         * lib/argp.h (__attribute__): Likewise.
5906         * lib/c-stack.c (__attribute__): Likewise.
5907         * lib/error.h (__attribute__): Likewise.
5908         * lib/fts.c (__attribute__): Likewise.
5909         * lib/openat.h (__attribute__): Likewise.
5910         * lib/stdio.in.h (__attribute__): Likewise.
5911         * lib/string.in.h (__attribute__): Likewise.
5912         * lib/utimens.c (__attribute__): Likewise.
5913         * lib/vasnprintf.h (__attribute__): Likewise.
5914         * lib/xalloc.h (__attribute__): Likewise.
5915         * lib/xprintf.h (__attribute__): Likewise.
5916         * lib/xstrtol.h (__attribute__): Likewise.
5917         * lib/xvasprintf.h (__attribute__): Likewise.
5918
5919 2008-01-12  Bruno Haible  <bruno@clisp.org>
5920
5921         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5922         * doc/glibc-headers/a.out.texi: New file.
5923         * doc/glibc-headers/aliases.texi: New file.
5924         * doc/glibc-headers/alloca.texi: New file.
5925         * doc/glibc-headers/ar.texi: New file.
5926         * doc/glibc-headers/argp.texi: New file.
5927         * doc/glibc-headers/argz.texi: New file.
5928         * doc/glibc-headers/byteswap.texi: New file.
5929         * doc/glibc-headers/crypt.texi: New file.
5930         * doc/glibc-headers/endian.texi: New file.
5931         * doc/glibc-headers/envz.texi: New file.
5932         * doc/glibc-headers/err.texi: New file.
5933         * doc/glibc-headers/error.texi: New file.
5934         * doc/glibc-headers/execinfo.texi: New file.
5935         * doc/glibc-headers/fpu_control.texi: New file.
5936         * doc/glibc-headers/fstab.texi: New file.
5937         * doc/glibc-headers/fts.texi: New file.
5938         * doc/glibc-headers/getopt.texi: New file.
5939         * doc/glibc-headers/ieee754.texi: New file.
5940         * doc/glibc-headers/ifaddrs.texi: New file.
5941         * doc/glibc-headers/libintl.texi: New file.
5942         * doc/glibc-headers/mcheck.texi: New file.
5943         * doc/glibc-headers/mntent.texi: New file.
5944         * doc/glibc-headers/obstack.texi: New file.
5945         * doc/glibc-headers/paths.texi: New file.
5946         * doc/glibc-headers/printf.texi: New file.
5947         * doc/glibc-headers/pty.texi: New file.
5948         * doc/glibc-headers/resolv.texi: New file.
5949         * doc/glibc-headers/shadow.texi: New file.
5950         * doc/glibc-headers/sysexits.texi: New file.
5951         * doc/glibc-headers/ttyent.texi: New file.
5952
5953 2008-01-12  Jim Meyering  <meyering@redhat.com>
5954
5955         announce-gen: emit Gnulib's git-based version string.
5956         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5957         New option --gnulib-version=V, where V is expected to be
5958         the output of running git describe in the gnulib directory.
5959         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5960         not useful, and plan to stop publishing an xdelta file with each
5961         coreutils release.
5962
5963         * build-aux/announce-gen: Also check for lzma-compressed files.
5964
5965 2008-01-11  Bruno Haible  <bruno@clisp.org>
5966
5967         * tests/test-memmem.c (main): Increase maximum allowed time.
5968         * tests/test-strstr.c (main): Likewise.
5969
5970 2008-01-11  Bruno Haible  <bruno@clisp.org>
5971
5972         * doc/functions/memmem.texi: Add more precisions about platforms.
5973         * doc/functions/strstr.texi: Likewise.
5974
5975 2008-01-10  Eric Blake  <ebb9@byu.net>
5976
5977         * m4/strstr.m4: Delete cruft from copy-n-paste.
5978         Reported by Bruno Haible.
5979
5980 2008-01-10  Bruno Haible  <bruno@clisp.org>
5981
5982         Make c-strstr rely on strstr.
5983         * lib/c-strstr.c: Don't include str-kmp.h.
5984         (c_strstr): Define in terms of strstr.
5985         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5986         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5987
5988 2008-01-10  Bruno Haible  <bruno@clisp.org>
5989
5990         * doc/gnulib.texi (String Functions in C Locale): New section.
5991         * doc/c-ctype.texi: New file.
5992         * doc/c-strcase.texi: New file.
5993         * doc/c-strcaseeq.texi: New file.
5994         * doc/c-strcasestr.texi: New file.
5995         * doc/c-strstr.texi: New file.
5996         * doc/c-strtod.texi: New file.
5997         * doc/c-strtold.texi: New file.
5998
5999 2008-01-10  Eric Blake  <ebb9@byu.net>
6000
6001         * lib/relocatable.h: Fix a comment.
6002
6003 2008-01-10  Eric Blake  <ebb9@byu.net>
6004
6005         Share two-way algorithm.
6006         * lib/str-two-way.h: New file, merged from...
6007         * lib/memmem.c: ...here...
6008         * lib/strstr.c: ...and here.
6009         * modules/memmem (Files): Use it.
6010         * modules/strstr (Files): Likewise.
6011
6012         Avoid quadratic strstr implementations.
6013         * lib/strstr.c: New file.
6014         * m4/strstr.m4: Likewise.
6015         * modules/strstr: Likewise.
6016         * modules/strstr-tests: Likewise.
6017         * tests/test-strstr.c: Likewise.
6018         * lib/string.in.h (rpl_strstr): Declare.
6019         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6021         * modules/string (Makefile.am): Likewise.
6022         * MODULES.html.sh (string handling): Mention new module.
6023         * doc/functions/strstr.texi (strstr): Document the bug.
6024
6025 2008-01-10  Bruno Haible  <bruno@clisp.org>
6026
6027         * lib/relocatable.h (relocate): State whether result is freshly
6028         allocated or not.
6029         * lib/relocatable.c (relocate): Return a freshly allocated string
6030         instead of a pointer to a privately held string.
6031         Reported by Sylvain Beucler <beuc@gnu.org>.
6032
6033 2008-01-10  Colin Watson  <cjwatson@debian.org>
6034
6035         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6036         s/S_ISNLK/S_ISLNK/.
6037
6038 2008-01-09  Bruno Haible  <bruno@clisp.org>
6039
6040         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6041         and other files.
6042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6043         if it's only a guess.
6044         * modules/memmem: Simplify by depending on memmem-simple.
6045
6046 2008-01-09  Bruno Haible  <bruno@clisp.org>
6047
6048         Work around OpenBSD 4.0 tdelete() bug.
6049         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6050         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6051         macros and don't redefine the enum values.
6052         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
6053         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
6054         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
6055
6056 2008-01-09  Bruno Haible  <bruno@clisp.org>
6057
6058         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
6059         (main): Don't perform the tests if setlocale did not install a UTF-8
6060         locale. Needed on OpenBSD 4.0.
6061         * modules/wcwidth-tests (Depends-on): Add localcharset.
6062
6063 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6064
6065         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
6066         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
6067         * NEWS: announce this.
6068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
6069
6070 2008-01-09  Simon Josefsson  <simon@josefsson.org>
6071         and Eric Blake  <ebb9@byu.net>
6072
6073         Add memmem-simple module.
6074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6075         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6076         * modules/memmem-simple: New file.
6077         * modules/memmem (Description): Tweak.
6078         * MODULES.html.sh (string handling): Mention new module.
6079         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6080         addressed by memmem-simple.
6081         * NEWS: Document the difference.
6082
6083 2008-01-09  Eric Blake  <ebb9@byu.net>
6084
6085         Give gcc some memmem optimization hints.
6086         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6087         (strcasestr): Declare as pure.
6088         * modules/memmem (Maintainer): Claim my implementation.
6089
6090 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6091
6092         Support AIX 6.1 and higher.
6093         * build-aux/config.libpath: Likewise.
6094         * build-aux/config.rpath: Likewise.
6095
6096 2008-01-08  Jim Meyering  <meyering@redhat.com>
6097             Bruno Haible  <bruno@clisp.org>
6098
6099         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6100         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6101         Reported by Peter Fales in
6102         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6103
6104 2008-01-08  Bruno Haible  <bruno@clisp.org>
6105
6106         * modules/unictype/category-of (Depends-on): Add
6107         unictype/category-none.
6108         * modules/unictype/category-and-tests (Depends-on): Add
6109         unictype/category-{L,N,Lu,Nd}.
6110         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6111         * modules/unictype/category-or-tests (Depends-on): Add
6112         unictype/category-{L,N}.
6113         * modules/unictype/category-name-tests (Depends-on): Add
6114         unictype/category-{Z,Nl}.
6115         Reported by Simon Josefsson.
6116
6117 2008-01-08  Bruno Haible  <bruno@clisp.org>
6118
6119         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6120         convention better.
6121         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6122         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6123         Reported by Peter Miller <millerp@canb.auug.org.au>.
6124
6125 2008-01-08  Eric Blake  <ebb9@byu.net>
6126
6127         Rewrite memmem to guarantee linear complexity without malloc.
6128         * lib/memmem.c (memmem): Use Two-Way rather than
6129         Knuth-Morris-Pratt, to allow O(1) space usage.
6130         (critical_factorization, two_way_short_needle)
6131         (two_way_long_needle): New functions.
6132         (knuth_morris_pratt): Delete.
6133         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6134         Add stdint.
6135         * tests/test-memmem.c (main): Add tests for periodic needle and
6136         sublinear performance.
6137         * doc/functions/memmem.texi (memmem): Document other deficiencies
6138         in cygwin and older glibc.
6139
6140 2008-01-08  Bruno Haible  <bruno@clisp.org>
6141
6142         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6143         augmentation.
6144
6145 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6146
6147         Add a configure time option: --disable-acl.
6148         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6149         AC_ARG_ENABLE(acl).
6150
6151 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6152
6153         * tests/test-localename.c: Don't include obsolete "setenv.h".
6154
6155         * modules/localename-tests (Depends-on): Need unsetenv.
6156
6157 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6158
6159         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6160
6161 2008-01-06  Colin Watson  <cjwatson@debian.org>
6162
6163         * users.txt: Add man-db.
6164
6165 2008-01-07  Bruno Haible  <bruno@clisp.org>
6166
6167         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6168         previous section name.
6169
6170 2008-01-07  Bruno Haible  <bruno@clisp.org>
6171
6172         * lib/progname.c (set_program_name): Don't strip off a leading
6173         "lt-" prefix outside a .libs directory.
6174         Suggested by Paul Eggert.
6175
6176 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6177             Bruno Haible  <bruno@clisp.org>
6178
6179         Improve memory cleanup in 'relocatable' module.
6180         * lib/relocatable.h (compute_curr_prefix): Change return type to
6181         'char *'.
6182         * lib/relocatable.c (compute_curr_prefix): Change return type to
6183         'char *'. Free curr_installdir after use.
6184         (relocate): Free curr_prefix_better after use.
6185         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6186
6187 2008-01-01  Bruno Haible  <bruno@clisp.org>
6188
6189         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6190         failure on older glibc systems.
6191         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6192
6193 2008-01-05  Eric Blake  <ebb9@byu.net>
6194
6195         Avoid quadratic system memmem.
6196         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6197         Reported by Ralf Wildenhues.
6198
6199         Fix memmem test for mingw.
6200         * modules/memmem-tests (configure.ac): Check for alarm.
6201         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6202         it.
6203         * doc/functions/memmem.texi: New file.
6204         * doc/gnulib.texi (Function Substitutes): Add memmem.
6205         Reported by Bruno Haible.
6206
6207 2008-01-04  Bruno Haible  <bruno@clisp.org>
6208
6209         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6210         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6211         gl_HEADER_STRING_H_DEFAULTS.
6212
6213 2008-01-04  Eric Blake  <ebb9@byu.net>
6214
6215         Shorten duration of memmem test.
6216         * tests/test-memmem.c (main): Use alarm to declare failure if test
6217         is taking too long.
6218         Reported by Ralf Wildenhues.
6219
6220 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6221
6222         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6223         string, needed by strerror.
6224
6225 2008-01-03  Colin Watson  <cjwatson@debian.org>
6226             Bruno Haible  <bruno@clisp.org>
6227
6228         * doc/gnulib-tool.texi (Localization): New section.
6229
6230 2008-01-02  Bruno Haible  <bruno@clisp.org>
6231
6232         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6233         variables to 'unsigned char *' type.
6234         Reported by Paul Eggert.
6235
6236 2008-01-02  Jim Meyering  <jim@meyering.net>
6237
6238         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6239
6240 2007-12-31  Jim Meyering  <jim@meyering.net>
6241
6242         Avoid use of private FTS type name.
6243         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6244
6245 2007-12-30  Karl Berry  <karl@gnu.org>
6246
6247         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6248         work around defect in Texinfo and/or the standalone Info browser.
6249
6250 2007-12-30  Bruno Haible  <bruno@clisp.org>
6251
6252         Unify 5 copies of the KMP code.
6253         * lib/str-kmp.h: New file.
6254         * lib/c-strcasestr.c: Include str-kmp.h.
6255         (knuth_morris_pratt): Remove function.
6256         (c_strcasestr): Update.
6257         * lib/c-strstr.c: Include str-kmp.h.
6258         (knuth_morris_pratt): Remove function.
6259         (c_strcasestr): Update.
6260         * lib/mbscasestr.c: Include str-kmp.h.
6261         (knuth_morris_pratt_unibyte): Remove function.
6262         * lib/mbsstr.c: Include str-kmp.h.
6263         (knuth_morris_pratt_unibyte): Remove function.
6264         * lib/strcasestr.c: Include str-kmp.h.
6265         (knuth_morris_pratt): Remove function.
6266         (strcasestr): Update.
6267         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6268         * modules/c-strstr (Files): Likewise.
6269         * modules/mbscasestr (Files): Likewise.
6270         * modules/mbsstr (Files): Likewise.
6271         * modules/strcasestr (Files): Likewise.
6272         Suggested by Paul Eggert.
6273
6274 2007-12-30  Bruno Haible  <bruno@clisp.org>
6275
6276         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6277         defined.
6278
6279 2007-12-30  Bruno Haible  <bruno@clisp.org>
6280
6281         * lib/xmalloca.h: Include xalloc.h.
6282         (xnmalloca): New macro.
6283
6284 2007-12-30  Bruno Haible  <bruno@clisp.org>
6285
6286         * lib/malloca.h (nmalloca): New macro.
6287         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6288         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6289         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6290         knuth_morris_pratt_multibyte): Likewise.
6291         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6292         knuth_morris_pratt_multibyte): Likewise.
6293         * lib/memmem.c (knuth_morris_pratt): Likewise.
6294         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6295
6296 2007-12-25  Bruno Haible  <bruno@clisp.org>
6297
6298         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6299         * lib/glob.c: Don't include openat.h.
6300         (link_exists2_p): Add back the code that deals with the
6301         !GLOB_ALTDIRFUNC case.
6302         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6303         let it do the filename concatenation.
6304         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6305         * modules/glob (Depends-on): Remove openat.
6306
6307 2007-12-31  Bruno Haible  <bruno@clisp.org>
6308
6309         * modules/dirfd (License): Change to LGPLv2+.
6310         Approved by Jim Meyering.
6311
6312 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6313
6314         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6315         when multiplying M by sizeof (size_t).
6316
6317 2007-12-10  Martin Lambers  <marlam@marlam.de>
6318
6319         Override getpagesize on mingw.
6320         * lib/getpagesize.c: New file.
6321         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6322         * modules/getpagesize (Files): Add lib/getpagesize.c.
6323         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6325         REPLACE_GETPAGESIZE.
6326         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6327
6328 2007-12-25  Bruno Haible  <bruno@clisp.org>
6329
6330         * modules/localcharset (Notice): New field.
6331         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6332         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6333
6334 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6335             Bruno Haible  <bruno@clisp.org>
6336
6337         Avoid using the syntax symbol() in formatted documentation.
6338         * MODULES.html.sh (func_module): When replacing symbol() with a
6339         hyperlink, remove the parentheses. Show an error if some remain.
6340         Recognize and render the '...' syntax.
6341         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6342         Rework. Add paragraph about GCC's inlining.
6343         * doc/alloca.texi: Likewise.
6344         * doc/error.texi: Remove parentheses from symbol reference.
6345         * doc/gnulib-intro.texi: Likewise.
6346         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6347         * modules/fnmatch (Description): Reword to say "the ... function".
6348         * modules/full-read (Description): Likewise.
6349         * modules/full-write (Description): Likewise.
6350         * modules/safe-read (Description): Likewise.
6351         * modules/safe-write (Description): Likewise.
6352         * modules/strchrnul (Description): Likewise.
6353         * modules/trim (Description): Likewise.
6354         * modules/error (Description): Remove parentheses from symbol
6355         references.
6356         * modules/verror (Description): Likewise.
6357         Reported by Karl Berry.
6358
6359 2007-12-25  Bruno Haible  <bruno@clisp.org>
6360
6361         Fixup after 2007-10-16 commit.
6362         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6363
6364 2007-12-24  Bruno Haible  <bruno@clisp.org>
6365
6366         Make --enable-relocatable work with DESTDIR.
6367         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6368         to compute installdir from destprog.
6369         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6370         also set the RELOC_DESTDIR variable.
6371         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6372
6373 2007-12-24  Bruno Haible  <bruno@clisp.org>
6374
6375         Fix link error due to xalloc_die().
6376         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6377         of xreadlink.
6378         * lib/relocwrapper.c: Update comments.
6379         * build-aux/install-reloc: Remove xreadlink.c from file list.
6380         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6381         xreadlink.c.
6382         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6383
6384 2007-12-24  Bruno Haible  <bruno@clisp.org>
6385
6386         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6387         * lib/setenv.h: Remove file.
6388         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6389         lib/setenv.h.
6390         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6391         (Depends-on): Add stdlib.
6392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6393         gl_FUNC_UNSETENV.
6394         (Include): Replace setenv.h with <stdlib.h>.
6395         * modules/unsetenv: New file.
6396         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6397         * lib/unsetenv.c: Include <stdlib.h> first.
6398         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6399         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6400         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6401         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6402         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6403         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6405         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6406         * doc/functions/unsetenv.texi: Update.
6407         * modules/xsetenv (Depends-on): Add unsetenv.
6408         * modules/getdate (Depends-on): Likewise.
6409         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6410         * lib/xsetenv.c: Don't include setenv.h.
6411         * lib/getdate.y: Likewise.
6412         * lib/relocwrapper.c: Likewise.
6413         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6414         (Depends-on): Add stdlib.
6415         * NEWS: Mention the changes.
6416         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6417
6418 2007-12-23  Bruno Haible  <bruno@clisp.org>
6419
6420         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6421         indentation.
6422
6423 2007-12-23  Bruno Haible  <bruno@clisp.org>
6424
6425         * lib/c-strcasestr.c: Add more comments.
6426         * lib/c-strstr.c: Likewise.
6427         * lib/mbscasestr.c: Likewise.
6428         * lib/mbsstr.c: Likewise.
6429         * lib/strcasestr.c: Likewise.
6430         * lib/memmem.c: Likewise.
6431
6432 2007-12-23  Bruno Haible  <bruno@clisp.org>
6433
6434         * tests/test-memmem.c: Include <string.h> first.
6435
6436 2007-12-22  Bruno Haible  <bruno@clisp.org>
6437
6438         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6439         the contents of $testsbase.
6440         Reported by Ralf Wildenhues.
6441
6442 2007-12-22  Bruno Haible  <bruno@clisp.org>
6443
6444         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6445         two variables local_ldadd_before, local_ldadd_last.
6446
6447 2007-12-20  Eric Blake  <ebb9@byu.net>
6448
6449         Work around circular library issue when cross-compiling.
6450         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6451         that progname.o does not need to pull in rpl_memcmp.
6452
6453 2007-12-19  Eric Blake  <ebb9@byu.net>
6454
6455         Fix memmem to avoid O(n^2) worst-case complexity.
6456         * lib/memmem.c (knuth_morris_pratt): New function.
6457         (memmem): Use it if first few naive iterations fail.
6458         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6459         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6460         * modules/memchr (License): Likewise.
6461         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6462         malloca.
6463         * tests/test-memmem.c: Rewrite, borrowing ideas from
6464         test-mbsstr1.c; the old version wouldn't even compile!
6465         * modules/memmem-tests: New file.
6466         * lib/string.in.h (rpl_memmem): Add declaration.
6467         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6469         REPLACE_MEMMEM.
6470
6471 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6472
6473         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6474         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6475         before any system include files, and undef after them all.  This
6476         should fix a problem on VMS reported by John E. Malmberg in
6477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6478
6479 2007-12-17  Eric Blake  <ebb9@byu.net>
6480
6481         Revert addition of verify, for BSD/OS.
6482         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6483         can't handle large files, for the sake of obsolete platforms.
6484         * modules/fseeko (Depends-on): Remove verify.
6485         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6486         * doc/functions/ftello.texi (ftello): Likewise.
6487         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6488         Reported by Larry Jones.
6489
6490 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6491
6492         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6493         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6494
6495 2007-12-17  Jim Meyering  <meyering@redhat.com>
6496
6497         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6498         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6499         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6500         * modules/getcwd (Depends-on): Add openat.
6501         Reported by Petr Salinger.
6502
6503 2007-12-17  Bruno Haible  <bruno@clisp.org>
6504
6505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6506         avoid a segmentation fault of the configure test on x86_64 systems.
6507
6508 2007-12-15  Jim Meyering  <meyering@redhat.com>
6509
6510         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6511
6512 2007-12-13  Eric Blake  <ebb9@byu.net>
6513
6514         Another fseek test.
6515         * tests/test-fseek.c (main): Also test ungetc handling.
6516         * tests/test-fseeko.c (main): Likewise.
6517         * modules/fseeko (Depends-on): Add verify.
6518         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6519         large.
6520         Reported by Larry Jones.
6521
6522         Fix fseeko on mingw.
6523         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6524         seek.
6525
6526         Beef up fseek tests.
6527         * tests/test-fseek.c (main): Also test eof handling.
6528         * tests/test-fseeko.c (main): Likewise.
6529         Reported by Larry Jones.
6530
6531 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6532
6533         Fix fseeko on BSD-based platforms.
6534         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6535         successful seek.
6536
6537 2007-12-12  Eric Blake  <ebb9@byu.net>
6538
6539         Allow circular dependency of separate libtests.a
6540         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6541         when use_libtests.
6542
6543 2007-12-11  Eric Blake  <ebb9@byu.net>
6544
6545         Fix bug with -0.0L in previous patch.
6546         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6547         * tests/test-isnan.c (main): Also test on zeroes.
6548         * tests/test-isnanf.c (main): Likewise.
6549         * tests/test-isnanl.h (main): Likewise.
6550
6551         Detect pseudo-denormals on x86 even when cross-compiling.
6552         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6553         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6554         invalid bit patterns that happen to satisfy ==.
6555
6556         Avoid link failures with separate libtests.a.
6557         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6558         last, to satisfy circular dependencies.
6559
6560 2007-12-11  Eric Blake  <ebb9@byu.net>
6561         and Bruno Haible  <bruno@clisp.org>
6562
6563         Fix OpenBSD 4.0 <float.h> handling of long double.
6564         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6565         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6566         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6567
6568 2007-12-11  Jim Meyering  <meyering@redhat.com>
6569
6570         * users.txt: Add libvirt.
6571
6572         Support versions of autoconf prior to 2.59c.
6573         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6574         if it is not already defined.
6575
6576 2007-12-09  Bruno Haible  <bruno@clisp.org>
6577
6578         Let 'gnulib-tool --import' collect sources needed for the tests in
6579         tests/ rather than in lib/.
6580         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6581         argument. If true, add rules to generate libtests.a, and put libtests.a
6582         into $(LDADD). Consider source files in subdirectories and set
6583         uses_subdirs.
6584         (func_emit_initmacro_start, func_emit_initmacro_end,
6585         func_emit_initmacro_done): Pass all arguments explicitly.
6586         (func_import): Determine two module lists main_modules,
6587         testsrelated_modules. Determine use_libtests. Determine two variables
6588         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6589         instead of just sed_transform_lib_file. Determine two variables
6590         main_files and testsrelated_files. Compute 'files' as the union of
6591         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6592         func_add_or_update. In the generated gnulib-comp.m4, collect the
6593         object files for tests/ in different variables than those for lib/.
6594         Substitute LIBTESTS_LIBDEPS.
6595         (func_create_testdir): Combine the uses_subdirs results from
6596         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6597
6598 2007-12-09  Bruno Haible  <bruno@clisp.org>
6599
6600         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6601         the build-aux directory.
6602
6603 2007-12-09  Bruno Haible  <bruno@clisp.org>
6604
6605         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6606         introduced on 2006-09-09.
6607
6608 2007-12-07  Jim Meyering  <meyering@redhat.com>
6609
6610         Let these macros work also with autoconf-2.59.
6611         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6612         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6613         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6614
6615 2007-12-06  Jim Meyering  <meyering@redhat.com>
6616
6617         Avoid a configure-time syntax error in gl_FUNC_ACL.
6618         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6619         function in each branch, before testing the cache variable.
6620
6621 2007-12-04  Eric Blake  <ebb9@byu.net>
6622
6623         Make scripts executable.
6624         * build-aux/config.guess: Add execute permissions.
6625         * build-aux/config.sub: Likewise.
6626         * build-aux/gendocs.sh: Likewise.
6627
6628         Fix frexp on mingw.
6629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6630         cross-compiling.
6631         * doc/functions/frexp.texi (frexp): Document the bug.
6632
6633         Make cygwin fseeko check more reliable.
6634         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6635         version numbers, rather than unrelated feature check.
6636         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6637         * doc/functions/ftello.texi (ftello): Likewise.
6638         Reported by Bruno Haible.
6639
6640         * m4/strerror.m4: Bump version number.
6641
6642 2007-12-03  Bruno Haible  <bruno@clisp.org>
6643
6644         * doc/functions/mprotect.texi: Mention the mingw problem.
6645
6646 2007-12-03  Eric Blake  <ebb9@byu.net>
6647
6648         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6649         REPLACE_STRERROR is initialized before this macro.
6650
6651 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6652
6653         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6654         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6655         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6656         put -lsec in even for programs other than 'ls'.  This fixes a problem
6657         for gettext reported by Bruno Haible in
6658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6659         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6660         Add support for Solaris 10.  This isn't efficient, but should get the
6661         job done for now.
6662
6663 2007-12-03  James Youngman  <jay@gnu.org>
6664
6665         * doc/regexprops-generic.texi: change "an close-group" to "a
6666         close-group" and "illegal" to "not allowed".
6667
6668 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6669
6670         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6671         pr_byname.h. Needed for the rare case when the maintainer has done
6672         "make maintainer-clean" in the source directory and then attempts a
6673         build outside the source directory.
6674         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6675         scripts_byname.h.
6676
6677 2007-12-02  Martin Lambers <marlam@marlam.de>
6678             Bruno Haible  <bruno@clisp.org>
6679
6680         * lib/getpagesize.h: Remove file.
6681         * lib/unistd.in.h: Include declaration of getpagesize here.
6682         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6683         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6684         HAVE_SYS_PARAM_H.
6685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6686         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6687         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6688         (Depends-on): Add unistd.
6689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6690         (Include): Use <unistd.h> instead of getpagesize.h.
6691         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6692         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6693         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6694         gl_GETPAGESIZE invocation, already handled by module dependency.
6695         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6696
6697 2007-12-02  Bruno Haible  <bruno@clisp.org>
6698
6699         * modules/strings-tests: New file.
6700         * tests/test-strings.c: New file.
6701
6702         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6703         * lib/strings.in.h: New file.
6704         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6705         * m4/strings_h.m4: New file.
6706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6707         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6708         * modules/strings: New file.
6709         * modules/string (Makefile.am): Update.
6710         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6711         Reported by Karl Berry.
6712
6713 2007-12-01  Eric Blake  <ebb9@byu.net>
6714
6715         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6716         accomodate fix in cygwin 1.5.25.
6717
6718 2007-12-01  Jim Meyering  <meyering@redhat.com>
6719
6720         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6721         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6722         that would inhibit utf8-optimization of a regexp containing line-
6723         or buffer-anchors, e.g., `^', `$'.
6724
6725 2007-11-30  Bruno Haible  <bruno@clisp.org>
6726
6727         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6728         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6729         glthread_recursive_lock_init.
6730         * lib/lock.c (glthread_recursive_lock_init)
6731         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6732         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6733
6734 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6735
6736         New function qset_acl, like set_acl but with syscall semantics.
6737         * lib/acl.h (qset_acl): New decl.
6738         * lib/acl.c (qset_acl): New function.
6739         (set_acl): Use new function.  Use more-consistent diagnostics.
6740
6741 2007-11-28  Jim Meyering  <meyering@redhat.com>
6742
6743         * modules/physmem (License): Change from GPL to LGPLv2+.
6744
6745 2007-11-26  Bruno Haible  <bruno@clisp.org>
6746
6747         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6748         'long double' type has excess precision.
6749         Reported by Jim Meyering in
6750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6751
6752 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6753
6754         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6755         Sync from <http://gnu.org/licenses>.
6756         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6757         with license text from same location.
6758         * doc/maintain.texi, doc/standards.texi:  Sync from
6759         <http://savannah.gnu.org/projects/gnustandards>.
6760
6761 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
6762         and Jim Meyering  <meyering@redhat.com>
6763
6764         Adjust getdate' grammar to accept a slightly more regular language.
6765         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6766         Before, the former was rejected.
6767         * lib/getdate.y (digits_to_date_time): New function, factored
6768         out of ...
6769         (number): ...here.  Just call digits_to_date_time.
6770         (hybrid): New non-terminal to handle an <unsigned number,
6771         signed relative offset> sequence consistently.
6772
6773 2007-11-18  Jim Meyering  <meyering@redhat.com>
6774
6775         Pull my changes from coreutils:
6776         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6777         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6778         use of $gnulib_tool_option_extras, so that it's separated from the
6779         preceding argument.
6780
6781         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6782         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6783         parent destination directories before copying a file into place.
6784
6785 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6786
6787         bootstrap: work also with 4-argument variant of AC_INIT
6788         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6789
6790 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6791
6792         Port test-getaddrinfo to Solaris.
6793         Problem reported by Bruno Haible in
6794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6795         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6796         explanation of setting 'hints'.
6797         Don't reject an implementation merely because it returns EAI_SERVICE.
6798         (EAI_SERVICE): Define to 0 if not defined.
6799
6800 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6801
6802         The license of gnu-make and posix-shell is now "GPLed build tool".
6803         * modules/gnu-make (License): Likewise.
6804         * modules/posix-shell (License): Likewise.
6805
6806         New module posix-shell, for determining a POSIX shell
6807         or perhaps something that is close enough to a POSIX shell.
6808         * m4/posix-shell.m4: New file.
6809         * modules/posix-shell: New file.
6810
6811         * MODULES.html.sh: Mention new module.
6812
6813         New module gnu-make, for determining whether we're using GNU Make.
6814         * m4/gnu-make.m4: New file.
6815         * modules/gnu-make: New file.
6816         * MODULES.html.sh: Mention new module.
6817
6818 2007-11-14  Jim Meyering  <meyering@redhat.com>
6819
6820         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6821         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6822         use this macro to create a function _definition_.
6823         Remove useless "#undef ARGMATCH_DIE".
6824
6825 2007-11-14  Bruno Haible  <bruno@clisp.org>
6826
6827         * lib/config.charset: Update for OpenBSD 4.1.
6828         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6829
6830 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6831
6832         Document 64-bit #if problems in stdint.texi.
6833         * doc/headers/stdint.texi (stdint.h): Mention problems with
6834         64-bit-#if, and how to work around them.
6835
6836         Don't insist on 'long long int' support in the preprocessor.  It
6837         breaks too many things.  For example, PRIdMAX still uses a 'long
6838         long int' format with the latest Sun compiler, even though
6839         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6840         preprocessor problem.  This causes the latest coreutils to dump
6841         core on Solaris 10 sparc with the Sun C compiler.
6842         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6843         the troublesome expressions at configure-time, not at #if-time.
6844         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6845         preprocessor.
6846         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6847         compile-time C checks, done at 'configure'-time.
6848         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6849         * modules/inttypes (Makefile): Substitute the new symbols that
6850         gl_INTTYPES_H now generates.
6851         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6852
6853 2007-11-12  Bruno Haible  <bruno@clisp.org>
6854
6855         Tests for Unicode character classification functions.
6856
6857         * modules/unictype/bidicategory-byname-tests: New file.
6858         * modules/unictype/bidicategory-name-tests: New file.
6859         * modules/unictype/bidicategory-of-tests: New file.
6860         * modules/unictype/bidicategory-test-tests: New file.
6861         * modules/unictype/block-list-tests: New file.
6862         * modules/unictype/block-of-tests: New file.
6863         * modules/unictype/block-test-tests: New file.
6864         * modules/unictype/category-C-tests: New file.
6865         * modules/unictype/category-Cc-tests: New file.
6866         * modules/unictype/category-Cf-tests: New file.
6867         * modules/unictype/category-Cn-tests: New file.
6868         * modules/unictype/category-Co-tests: New file.
6869         * modules/unictype/category-Cs-tests: New file.
6870         * modules/unictype/category-L-tests: New file.
6871         * modules/unictype/category-Ll-tests: New file.
6872         * modules/unictype/category-Lm-tests: New file.
6873         * modules/unictype/category-Lo-tests: New file.
6874         * modules/unictype/category-Lt-tests: New file.
6875         * modules/unictype/category-Lu-tests: New file.
6876         * modules/unictype/category-M-tests: New file.
6877         * modules/unictype/category-Mc-tests: New file.
6878         * modules/unictype/category-Me-tests: New file.
6879         * modules/unictype/category-Mn-tests: New file.
6880         * modules/unictype/category-N-tests: New file.
6881         * modules/unictype/category-Nd-tests: New file.
6882         * modules/unictype/category-Nl-tests: New file.
6883         * modules/unictype/category-No-tests: New file.
6884         * modules/unictype/category-P-tests: New file.
6885         * modules/unictype/category-Pc-tests: New file.
6886         * modules/unictype/category-Pd-tests: New file.
6887         * modules/unictype/category-Pe-tests: New file.
6888         * modules/unictype/category-Pf-tests: New file.
6889         * modules/unictype/category-Pi-tests: New file.
6890         * modules/unictype/category-Po-tests: New file.
6891         * modules/unictype/category-Ps-tests: New file.
6892         * modules/unictype/category-S-tests: New file.
6893         * modules/unictype/category-Sc-tests: New file.
6894         * modules/unictype/category-Sk-tests: New file.
6895         * modules/unictype/category-Sm-tests: New file.
6896         * modules/unictype/category-So-tests: New file.
6897         * modules/unictype/category-Z-tests: New file.
6898         * modules/unictype/category-Zl-tests: New file.
6899         * modules/unictype/category-Zp-tests: New file.
6900         * modules/unictype/category-Zs-tests: New file.
6901         * modules/unictype/category-and-not-tests: New file.
6902         * modules/unictype/category-and-tests: New file.
6903         * modules/unictype/category-byname-tests: New file.
6904         * modules/unictype/category-name-tests: New file.
6905         * modules/unictype/category-none-tests: New file.
6906         * modules/unictype/category-of-tests: New file.
6907         * modules/unictype/category-or-tests: New file.
6908         * modules/unictype/category-test-withtable-tests: New file.
6909         * modules/unictype/combining-class-tests: New file.
6910         * modules/unictype/ctype-alnum-tests: New file.
6911         * modules/unictype/ctype-alpha-tests: New file.
6912         * modules/unictype/ctype-blank-tests: New file.
6913         * modules/unictype/ctype-cntrl-tests: New file.
6914         * modules/unictype/ctype-digit-tests: New file.
6915         * modules/unictype/ctype-graph-tests: New file.
6916         * modules/unictype/ctype-lower-tests: New file.
6917         * modules/unictype/ctype-print-tests: New file.
6918         * modules/unictype/ctype-punct-tests: New file.
6919         * modules/unictype/ctype-space-tests: New file.
6920         * modules/unictype/ctype-upper-tests: New file.
6921         * modules/unictype/ctype-xdigit-tests: New file.
6922         * modules/unictype/decimal-digit-tests: New file.
6923         * modules/unictype/digit-tests: New file.
6924         * modules/unictype/mirror-tests: New file.
6925         * modules/unictype/numeric-tests: New file.
6926         * modules/unictype/property-alphabetic-tests: New file.
6927         * modules/unictype/property-ascii-hex-digit-tests: New file.
6928         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6929         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6930         * modules/unictype/property-bidi-block-separator-tests: New file.
6931         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6932         * modules/unictype/property-bidi-common-separator-tests: New file.
6933         * modules/unictype/property-bidi-control-tests: New file.
6934         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6935         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6936         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6937         * modules/unictype/property-bidi-european-digit-tests: New file.
6938         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6939         * modules/unictype/property-bidi-left-to-right-tests: New file.
6940         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6941         * modules/unictype/property-bidi-other-neutral-tests: New file.
6942         * modules/unictype/property-bidi-pdf-tests: New file.
6943         * modules/unictype/property-bidi-segment-separator-tests: New file.
6944         * modules/unictype/property-bidi-whitespace-tests: New file.
6945         * modules/unictype/property-byname-tests: New file.
6946         * modules/unictype/property-combining-tests: New file.
6947         * modules/unictype/property-composite-tests: New file.
6948         * modules/unictype/property-currency-symbol-tests: New file.
6949         * modules/unictype/property-dash-tests: New file.
6950         * modules/unictype/property-decimal-digit-tests: New file.
6951         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6952         * modules/unictype/property-deprecated-tests: New file.
6953         * modules/unictype/property-diacritic-tests: New file.
6954         * modules/unictype/property-extender-tests: New file.
6955         * modules/unictype/property-format-control-tests: New file.
6956         * modules/unictype/property-grapheme-base-tests: New file.
6957         * modules/unictype/property-grapheme-extend-tests: New file.
6958         * modules/unictype/property-grapheme-link-tests: New file.
6959         * modules/unictype/property-hex-digit-tests: New file.
6960         * modules/unictype/property-hyphen-tests: New file.
6961         * modules/unictype/property-id-continue-tests: New file.
6962         * modules/unictype/property-id-start-tests: New file.
6963         * modules/unictype/property-ideographic-tests: New file.
6964         * modules/unictype/property-ids-binary-operator-tests: New file.
6965         * modules/unictype/property-ids-trinary-operator-tests: New file.
6966         * modules/unictype/property-ignorable-control-tests: New file.
6967         * modules/unictype/property-iso-control-tests: New file.
6968         * modules/unictype/property-join-control-tests: New file.
6969         * modules/unictype/property-left-of-pair-tests: New file.
6970         * modules/unictype/property-line-separator-tests: New file.
6971         * modules/unictype/property-logical-order-exception-tests: New file.
6972         * modules/unictype/property-lowercase-tests: New file.
6973         * modules/unictype/property-math-tests: New file.
6974         * modules/unictype/property-non-break-tests: New file.
6975         * modules/unictype/property-not-a-character-tests: New file.
6976         * modules/unictype/property-numeric-tests: New file.
6977         * modules/unictype/property-other-alphabetic-tests: New file.
6978         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6979         * modules/unictype/property-other-grapheme-extend-tests: New file.
6980         * modules/unictype/property-other-id-continue-tests: New file.
6981         * modules/unictype/property-other-id-start-tests: New file.
6982         * modules/unictype/property-other-lowercase-tests: New file.
6983         * modules/unictype/property-other-math-tests: New file.
6984         * modules/unictype/property-other-uppercase-tests: New file.
6985         * modules/unictype/property-paired-punctuation-tests: New file.
6986         * modules/unictype/property-paragraph-separator-tests: New file.
6987         * modules/unictype/property-pattern-syntax-tests: New file.
6988         * modules/unictype/property-pattern-white-space-tests: New file.
6989         * modules/unictype/property-private-use-tests: New file.
6990         * modules/unictype/property-punctuation-tests: New file.
6991         * modules/unictype/property-quotation-mark-tests: New file.
6992         * modules/unictype/property-radical-tests: New file.
6993         * modules/unictype/property-sentence-terminal-tests: New file.
6994         * modules/unictype/property-soft-dotted-tests: New file.
6995         * modules/unictype/property-space-tests: New file.
6996         * modules/unictype/property-terminal-punctuation-tests: New file.
6997         * modules/unictype/property-test-tests: New file.
6998         * modules/unictype/property-titlecase-tests: New file.
6999         * modules/unictype/property-unassigned-code-value-tests: New file.
7000         * modules/unictype/property-unified-ideograph-tests: New file.
7001         * modules/unictype/property-uppercase-tests: New file.
7002         * modules/unictype/property-variation-selector-tests: New file.
7003         * modules/unictype/property-white-space-tests: New file.
7004         * modules/unictype/property-xid-continue-tests: New file.
7005         * modules/unictype/property-xid-start-tests: New file.
7006         * modules/unictype/property-zero-width-tests: New file.
7007         * modules/unictype/scripts-tests: New file.
7008         * modules/unictype/syntax-c-ident-tests: New file.
7009         * modules/unictype/syntax-c-whitespace-tests: New file.
7010         * modules/unictype/syntax-java-ident-tests: New file.
7011         * modules/unictype/syntax-java-whitespace-tests: New file.
7012         * tests/unictype/test-bidi_byname.c: New file.
7013         * tests/unictype/test-bidi_name.c: New file.
7014         * tests/unictype/test-bidi_of.c: New file.
7015         * tests/unictype/test-bidi_test.c: New file.
7016         * tests/unictype/test-block_list.c: New file.
7017         * tests/unictype/test-block_of.c: New file.
7018         * tests/unictype/test-block_test.c: New file.
7019         * tests/unictype/test-categ_and.c: New file.
7020         * tests/unictype/test-categ_and_not.c: New file.
7021         * tests/unictype/test-categ_byname.c: New file.
7022         * tests/unictype/test-categ_name.c: New file.
7023         * tests/unictype/test-categ_none.c: New file.
7024         * tests/unictype/test-categ_of.c: New file.
7025         * tests/unictype/test-categ_or.c: New file.
7026         * tests/unictype/test-categ_test_withtable.c: New file.
7027         * tests/unictype/test-combining.c: New file.
7028         * tests/unictype/test-decdigit.c: New file.
7029         * tests/unictype/test-digit.c: New file.
7030         * tests/unictype/test-mirror.c: New file.
7031         * tests/unictype/test-numeric.c: New file.
7032         * tests/unictype/test-pr_byname.c: New file.
7033         * tests/unictype/test-pr_test.c: New file.
7034         * tests/unictype/test-predicate-part1.h: New file.
7035         * tests/unictype/test-predicate-part2.h: New file.
7036         * tests/unictype/test-scripts.c: New file.
7037         * tests/unictype/test-sy_c_ident.c: New file.
7038         * tests/unictype/test-sy_java_ident.c: New file.
7039
7040         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7041         for Unicode 5.0.0.
7042         * tests/unictype/test-categ_Cc.c: Likewise.
7043         * tests/unictype/test-categ_Cf.c: Likewise.
7044         * tests/unictype/test-categ_Cn.c: Likewise.
7045         * tests/unictype/test-categ_Co.c: Likewise.
7046         * tests/unictype/test-categ_Cs.c: Likewise.
7047         * tests/unictype/test-categ_L.c: Likewise.
7048         * tests/unictype/test-categ_Ll.c: Likewise.
7049         * tests/unictype/test-categ_Lm.c: Likewise.
7050         * tests/unictype/test-categ_Lo.c: Likewise.
7051         * tests/unictype/test-categ_Lt.c: Likewise.
7052         * tests/unictype/test-categ_Lu.c: Likewise.
7053         * tests/unictype/test-categ_M.c: Likewise.
7054         * tests/unictype/test-categ_Mc.c: Likewise.
7055         * tests/unictype/test-categ_Me.c: Likewise.
7056         * tests/unictype/test-categ_Mn.c: Likewise.
7057         * tests/unictype/test-categ_N.c: Likewise.
7058         * tests/unictype/test-categ_Nd.c: Likewise.
7059         * tests/unictype/test-categ_Nl.c: Likewise.
7060         * tests/unictype/test-categ_No.c: Likewise.
7061         * tests/unictype/test-categ_P.c: Likewise.
7062         * tests/unictype/test-categ_Pc.c: Likewise.
7063         * tests/unictype/test-categ_Pd.c: Likewise.
7064         * tests/unictype/test-categ_Pe.c: Likewise.
7065         * tests/unictype/test-categ_Pf.c: Likewise.
7066         * tests/unictype/test-categ_Pi.c: Likewise.
7067         * tests/unictype/test-categ_Po.c: Likewise.
7068         * tests/unictype/test-categ_Ps.c: Likewise.
7069         * tests/unictype/test-categ_S.c: Likewise.
7070         * tests/unictype/test-categ_Sc.c: Likewise.
7071         * tests/unictype/test-categ_Sk.c: Likewise.
7072         * tests/unictype/test-categ_Sm.c: Likewise.
7073         * tests/unictype/test-categ_So.c: Likewise.
7074         * tests/unictype/test-categ_Z.c: Likewise.
7075         * tests/unictype/test-categ_Zl.c: Likewise.
7076         * tests/unictype/test-categ_Zp.c: Likewise.
7077         * tests/unictype/test-categ_Zs.c: Likewise.
7078         * tests/unictype/test-ctype_alnum.c: Likewise.
7079         * tests/unictype/test-ctype_alpha.c: Likewise.
7080         * tests/unictype/test-ctype_blank.c: Likewise.
7081         * tests/unictype/test-ctype_cntrl.c: Likewise.
7082         * tests/unictype/test-ctype_digit.c: Likewise.
7083         * tests/unictype/test-ctype_graph.c: Likewise.
7084         * tests/unictype/test-ctype_lower.c: Likewise.
7085         * tests/unictype/test-ctype_print.c: Likewise.
7086         * tests/unictype/test-ctype_punct.c: Likewise.
7087         * tests/unictype/test-ctype_space.c: Likewise.
7088         * tests/unictype/test-ctype_upper.c: Likewise.
7089         * tests/unictype/test-ctype_xdigit.c: Likewise.
7090         * tests/unictype/test-decdigit.h: Likewise.
7091         * tests/unictype/test-digit.h: Likewise.
7092         * tests/unictype/test-numeric.h: Likewise.
7093         * tests/unictype/test-pr_alphabetic.c: Likewise.
7094         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7095         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7096         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7097         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7098         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7099         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7100         * tests/unictype/test-pr_bidi_control.c: Likewise.
7101         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7102         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7103         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7104         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7105         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7106         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7107         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7108         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7109         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7110         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7111         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7112         * tests/unictype/test-pr_combining.c: Likewise.
7113         * tests/unictype/test-pr_composite.c: Likewise.
7114         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7115         * tests/unictype/test-pr_dash.c: Likewise.
7116         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7117         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7118         * tests/unictype/test-pr_deprecated.c: Likewise.
7119         * tests/unictype/test-pr_diacritic.c: Likewise.
7120         * tests/unictype/test-pr_extender.c: Likewise.
7121         * tests/unictype/test-pr_format_control.c: Likewise.
7122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7125         * tests/unictype/test-pr_hex_digit.c: Likewise.
7126         * tests/unictype/test-pr_hyphen.c: Likewise.
7127         * tests/unictype/test-pr_id_continue.c: Likewise.
7128         * tests/unictype/test-pr_id_start.c: Likewise.
7129         * tests/unictype/test-pr_ideographic.c: Likewise.
7130         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7131         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7132         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7133         * tests/unictype/test-pr_iso_control.c: Likewise.
7134         * tests/unictype/test-pr_join_control.c: Likewise.
7135         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7136         * tests/unictype/test-pr_line_separator.c: Likewise.
7137         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7138         * tests/unictype/test-pr_lowercase.c: Likewise.
7139         * tests/unictype/test-pr_math.c: Likewise.
7140         * tests/unictype/test-pr_non_break.c: Likewise.
7141         * tests/unictype/test-pr_not_a_character.c: Likewise.
7142         * tests/unictype/test-pr_numeric.c: Likewise.
7143         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7144         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7145         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7146         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7147         * tests/unictype/test-pr_other_id_start.c: Likewise.
7148         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7149         * tests/unictype/test-pr_other_math.c: Likewise.
7150         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7151         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7152         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7153         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7154         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7155         * tests/unictype/test-pr_private_use.c: Likewise.
7156         * tests/unictype/test-pr_punctuation.c: Likewise.
7157         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7158         * tests/unictype/test-pr_radical.c: Likewise.
7159         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7160         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7161         * tests/unictype/test-pr_space.c: Likewise.
7162         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7163         * tests/unictype/test-pr_titlecase.c: Likewise.
7164         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7165         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7166         * tests/unictype/test-pr_uppercase.c: Likewise.
7167         * tests/unictype/test-pr_variation_selector.c: Likewise.
7168         * tests/unictype/test-pr_white_space.c: Likewise.
7169         * tests/unictype/test-pr_xid_continue.c: Likewise.
7170         * tests/unictype/test-pr_xid_start.c: Likewise.
7171         * tests/unictype/test-pr_zero_width.c: Likewise.
7172         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7173         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7174
7175 2007-11-12  Bruno Haible  <bruno@clisp.org>
7176
7177         Unicode character classification functions.
7178         * lib/unictype.h: New file.
7179         * modules/unictype/base: New file.
7180         * modules/unictype/category-L: New file.
7181         * modules/unictype/category-Lu: New file.
7182         * modules/unictype/category-Ll: New file.
7183         * modules/unictype/category-Lt: New file.
7184         * modules/unictype/category-Lm: New file.
7185         * modules/unictype/category-Lo: New file.
7186         * modules/unictype/category-M: New file.
7187         * modules/unictype/category-Mn: New file.
7188         * modules/unictype/category-Mc: New file.
7189         * modules/unictype/category-Me: New file.
7190         * modules/unictype/category-N: New file.
7191         * modules/unictype/category-Nd: New file.
7192         * modules/unictype/category-Nl: New file.
7193         * modules/unictype/category-No: New file.
7194         * modules/unictype/category-P: New file.
7195         * modules/unictype/category-Pc: New file.
7196         * modules/unictype/category-Pd: New file.
7197         * modules/unictype/category-Ps: New file.
7198         * modules/unictype/category-Pe: New file.
7199         * modules/unictype/category-Pi: New file.
7200         * modules/unictype/category-Pf: New file.
7201         * modules/unictype/category-Po: New file.
7202         * modules/unictype/category-S: New file.
7203         * modules/unictype/category-Sm: New file.
7204         * modules/unictype/category-Sc: New file.
7205         * modules/unictype/category-Sk: New file.
7206         * modules/unictype/category-So: New file.
7207         * modules/unictype/category-Z: New file.
7208         * modules/unictype/category-Zs: New file.
7209         * modules/unictype/category-Zl: New file.
7210         * modules/unictype/category-Zp: New file.
7211         * modules/unictype/category-C: New file.
7212         * modules/unictype/category-Cc: New file.
7213         * modules/unictype/category-Cf: New file.
7214         * modules/unictype/category-Cs: New file.
7215         * modules/unictype/category-Co: New file.
7216         * modules/unictype/category-Cn: New file.
7217         * modules/unictype/category-or: New file.
7218         * modules/unictype/category-of: New file.
7219         * modules/unictype/category-test: New file.
7220         * modules/unictype/category-test-withtable: New file.
7221         * modules/unictype/category-byname: New file.
7222         * modules/unictype/category-none: New file.
7223         * modules/unictype/category-and: New file.
7224         * modules/unictype/category-and-not: New file.
7225         * modules/unictype/category-name: New file.
7226         * modules/unictype/combining-class: New file.
7227         * modules/unictype/category-all: New file.
7228         * modules/unictype/bidicategory-all: New file.
7229         * modules/unictype/bidicategory-byname: New file.
7230         * modules/unictype/bidicategory-name: New file.
7231         * modules/unictype/bidicategory-of: New file.
7232         * modules/unictype/bidicategory-test: New file.
7233         * modules/unictype/decimal-digit: New file.
7234         * modules/unictype/digit: New file.
7235         * modules/unictype/numeric: New file.
7236         * modules/unictype/mirror: New file.
7237         * modules/unictype/property-white-space: New file.
7238         * modules/unictype/property-alphabetic: New file.
7239         * modules/unictype/property-other-alphabetic: New file.
7240         * modules/unictype/property-not-a-character: New file.
7241         * modules/unictype/property-default-ignorable-code-point: New file.
7242         * modules/unictype/property-other-default-ignorable-code-point: New
7243         file.
7244         * modules/unictype/property-deprecated: New file.
7245         * modules/unictype/property-logical-order-exception: New file.
7246         * modules/unictype/property-variation-selector: New file.
7247         * modules/unictype/property-private-use: New file.
7248         * modules/unictype/property-unassigned-code-value: New file.
7249         * modules/unictype/property-uppercase: New file.
7250         * modules/unictype/property-other-uppercase: New file.
7251         * modules/unictype/property-lowercase: New file.
7252         * modules/unictype/property-other-lowercase: New file.
7253         * modules/unictype/property-titlecase: New file.
7254         * modules/unictype/property-soft-dotted: New file.
7255         * modules/unictype/property-id-start: New file.
7256         * modules/unictype/property-other-id-start: New file.
7257         * modules/unictype/property-id-continue: New file.
7258         * modules/unictype/property-other-id-continue: New file.
7259         * modules/unictype/property-xid-start: New file.
7260         * modules/unictype/property-xid-continue: New file.
7261         * modules/unictype/property-pattern-white-space: New file.
7262         * modules/unictype/property-pattern-syntax: New file.
7263         * modules/unictype/property-join-control: New file.
7264         * modules/unictype/property-grapheme-base: New file.
7265         * modules/unictype/property-grapheme-extend: New file.
7266         * modules/unictype/property-other-grapheme-extend: New file.
7267         * modules/unictype/property-grapheme-link: New file.
7268         * modules/unictype/property-bidi-control: New file.
7269         * modules/unictype/property-bidi-left-to-right: New file.
7270         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7271         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7272         * modules/unictype/property-bidi-european-digit: New file.
7273         * modules/unictype/property-bidi-eur-num-separator: New file.
7274         * modules/unictype/property-bidi-eur-num-terminator: New file.
7275         * modules/unictype/property-bidi-arabic-digit: New file.
7276         * modules/unictype/property-bidi-common-separator: New file.
7277         * modules/unictype/property-bidi-block-separator: New file.
7278         * modules/unictype/property-bidi-segment-separator: New file.
7279         * modules/unictype/property-bidi-whitespace: New file.
7280         * modules/unictype/property-bidi-non-spacing-mark: New file.
7281         * modules/unictype/property-bidi-boundary-neutral: New file.
7282         * modules/unictype/property-bidi-pdf: New file.
7283         * modules/unictype/property-bidi-embedding-or-override: New file.
7284         * modules/unictype/property-bidi-other-neutral: New file.
7285         * modules/unictype/property-hex-digit: New file.
7286         * modules/unictype/property-ascii-hex-digit: New file.
7287         * modules/unictype/property-ideographic: New file.
7288         * modules/unictype/property-unified-ideograph: New file.
7289         * modules/unictype/property-radical: New file.
7290         * modules/unictype/property-ids-binary-operator: New file.
7291         * modules/unictype/property-ids-trinary-operator: New file.
7292         * modules/unictype/property-zero-width: New file.
7293         * modules/unictype/property-space: New file.
7294         * modules/unictype/property-non-break: New file.
7295         * modules/unictype/property-iso-control: New file.
7296         * modules/unictype/property-format-control: New file.
7297         * modules/unictype/property-dash: New file.
7298         * modules/unictype/property-hyphen: New file.
7299         * modules/unictype/property-punctuation: New file.
7300         * modules/unictype/property-line-separator: New file.
7301         * modules/unictype/property-paragraph-separator: New file.
7302         * modules/unictype/property-quotation-mark: New file.
7303         * modules/unictype/property-sentence-terminal: New file.
7304         * modules/unictype/property-terminal-punctuation: New file.
7305         * modules/unictype/property-currency-symbol: New file.
7306         * modules/unictype/property-math: New file.
7307         * modules/unictype/property-other-math: New file.
7308         * modules/unictype/property-paired-punctuation: New file.
7309         * modules/unictype/property-left-of-pair: New file.
7310         * modules/unictype/property-combining: New file.
7311         * modules/unictype/property-composite: New file.
7312         * modules/unictype/property-decimal-digit: New file.
7313         * modules/unictype/property-numeric: New file.
7314         * modules/unictype/property-diacritic: New file.
7315         * modules/unictype/property-extender: New file.
7316         * modules/unictype/property-ignorable-control: New file.
7317         * modules/unictype/property-test: New file.
7318         * modules/unictype/property-byname: New file.
7319         * modules/unictype/property-all: New file.
7320         * modules/unictype/scripts: New file.
7321         * modules/unictype/scripts-all: New file.
7322         * modules/unictype/block-of: New file.
7323         * modules/unictype/block-test: New file.
7324         * modules/unictype/block-list: New file.
7325         * modules/unictype/block-all: New file.
7326         * modules/unictype/syntax-c-whitespace: New file.
7327         * modules/unictype/syntax-java-whitespace: New file.
7328         * modules/unictype/syntax-c-ident: New file.
7329         * modules/unictype/syntax-java-ident: New file.
7330         * modules/unictype/ctype-alnum: New file.
7331         * modules/unictype/ctype-alpha: New file.
7332         * modules/unictype/ctype-cntrl: New file.
7333         * modules/unictype/ctype-digit: New file.
7334         * modules/unictype/ctype-graph: New file.
7335         * modules/unictype/ctype-lower: New file.
7336         * modules/unictype/ctype-print: New file.
7337         * modules/unictype/ctype-punct: New file.
7338         * modules/unictype/ctype-space: New file.
7339         * modules/unictype/ctype-upper: New file.
7340         * modules/unictype/ctype-xdigit: New file.
7341         * modules/unictype/ctype-blank: New file.
7342         * lib/unictype/bidi_byname.c: New file.
7343         * lib/unictype/bidi_name.c: New file.
7344         * lib/unictype/bidi_of.c: New file.
7345         * lib/unictype/bidi_test.c: New file.
7346         * lib/unictype/bitmap.h: New file.
7347         * lib/unictype/block_test.c: New file.
7348         * lib/unictype/blocks.c: New file.
7349         * lib/unictype/categ_C.c: New file.
7350         * lib/unictype/categ_Cc.c: New file.
7351         * lib/unictype/categ_Cf.c: New file.
7352         * lib/unictype/categ_Cn.c: New file.
7353         * lib/unictype/categ_Co.c: New file.
7354         * lib/unictype/categ_Cs.c: New file.
7355         * lib/unictype/categ_L.c: New file.
7356         * lib/unictype/categ_Ll.c: New file.
7357         * lib/unictype/categ_Lm.c: New file.
7358         * lib/unictype/categ_Lo.c: New file.
7359         * lib/unictype/categ_Lt.c: New file.
7360         * lib/unictype/categ_Lu.c: New file.
7361         * lib/unictype/categ_M.c: New file.
7362         * lib/unictype/categ_Mc.c: New file.
7363         * lib/unictype/categ_Me.c: New file.
7364         * lib/unictype/categ_Mn.c: New file.
7365         * lib/unictype/categ_N.c: New file.
7366         * lib/unictype/categ_Nd.c: New file.
7367         * lib/unictype/categ_Nl.c: New file.
7368         * lib/unictype/categ_No.c: New file.
7369         * lib/unictype/categ_P.c: New file.
7370         * lib/unictype/categ_Pc.c: New file.
7371         * lib/unictype/categ_Pd.c: New file.
7372         * lib/unictype/categ_Pe.c: New file.
7373         * lib/unictype/categ_Pf.c: New file.
7374         * lib/unictype/categ_Pi.c: New file.
7375         * lib/unictype/categ_Po.c: New file.
7376         * lib/unictype/categ_Ps.c: New file.
7377         * lib/unictype/categ_S.c: New file.
7378         * lib/unictype/categ_Sc.c: New file.
7379         * lib/unictype/categ_Sk.c: New file.
7380         * lib/unictype/categ_Sm.c: New file.
7381         * lib/unictype/categ_So.c: New file.
7382         * lib/unictype/categ_Z.c: New file.
7383         * lib/unictype/categ_Zl.c: New file.
7384         * lib/unictype/categ_Zp.c: New file.
7385         * lib/unictype/categ_Zs.c: New file.
7386         * lib/unictype/categ_and.c: New file.
7387         * lib/unictype/categ_and_not.c: New file.
7388         * lib/unictype/categ_byname.c: New file.
7389         * lib/unictype/categ_name.c: New file.
7390         * lib/unictype/categ_none.c: New file.
7391         * lib/unictype/categ_of.c: New file.
7392         * lib/unictype/categ_or.c: New file.
7393         * lib/unictype/categ_test.c: New file.
7394         * lib/unictype/combining.c: New file.
7395         * lib/unictype/ctype_alnum.c: New file.
7396         * lib/unictype/ctype_alpha.c: New file.
7397         * lib/unictype/ctype_blank.c: New file.
7398         * lib/unictype/ctype_cntrl.c: New file.
7399         * lib/unictype/ctype_digit.c: New file.
7400         * lib/unictype/ctype_graph.c: New file.
7401         * lib/unictype/ctype_lower.c: New file.
7402         * lib/unictype/ctype_print.c: New file.
7403         * lib/unictype/ctype_punct.c: New file.
7404         * lib/unictype/ctype_space.c: New file.
7405         * lib/unictype/ctype_upper.c: New file.
7406         * lib/unictype/ctype_xdigit.c: New file.
7407         * lib/unictype/decdigit.c: New file.
7408         * lib/unictype/digit.c: New file.
7409         * lib/unictype/identsyntaxmap.h: New file.
7410         * lib/unictype/mirror.c: New file.
7411         * lib/unictype/numeric.c: New file.
7412         * lib/unictype/pr_alphabetic.c: New file.
7413         * lib/unictype/pr_ascii_hex_digit.c: New file.
7414         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7415         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7416         * lib/unictype/pr_bidi_block_separator.c: New file.
7417         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7418         * lib/unictype/pr_bidi_common_separator.c: New file.
7419         * lib/unictype/pr_bidi_control.c: New file.
7420         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7421         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7422         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7423         * lib/unictype/pr_bidi_european_digit.c: New file.
7424         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7425         * lib/unictype/pr_bidi_left_to_right.c: New file.
7426         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7427         * lib/unictype/pr_bidi_other_neutral.c: New file.
7428         * lib/unictype/pr_bidi_pdf.c: New file.
7429         * lib/unictype/pr_bidi_segment_separator.c: New file.
7430         * lib/unictype/pr_bidi_whitespace.c: New file.
7431         * lib/unictype/pr_byname.c: New file.
7432         * lib/unictype/pr_byname.gperf: New file.
7433         * lib/unictype/pr_combining.c: New file.
7434         * lib/unictype/pr_composite.c: New file.
7435         * lib/unictype/pr_currency_symbol.c: New file.
7436         * lib/unictype/pr_dash.c: New file.
7437         * lib/unictype/pr_decimal_digit.c: New file.
7438         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7439         * lib/unictype/pr_deprecated.c: New file.
7440         * lib/unictype/pr_diacritic.c: New file.
7441         * lib/unictype/pr_extender.c: New file.
7442         * lib/unictype/pr_format_control.c: New file.
7443         * lib/unictype/pr_grapheme_base.c: New file.
7444         * lib/unictype/pr_grapheme_extend.c: New file.
7445         * lib/unictype/pr_grapheme_link.c: New file.
7446         * lib/unictype/pr_hex_digit.c: New file.
7447         * lib/unictype/pr_hyphen.c: New file.
7448         * lib/unictype/pr_id_continue.c: New file.
7449         * lib/unictype/pr_id_start.c: New file.
7450         * lib/unictype/pr_ideographic.c: New file.
7451         * lib/unictype/pr_ids_binary_operator.c: New file.
7452         * lib/unictype/pr_ids_trinary_operator.c: New file.
7453         * lib/unictype/pr_ignorable_control.c: New file.
7454         * lib/unictype/pr_iso_control.c: New file.
7455         * lib/unictype/pr_join_control.c: New file.
7456         * lib/unictype/pr_left_of_pair.c: New file.
7457         * lib/unictype/pr_line_separator.c: New file.
7458         * lib/unictype/pr_logical_order_exception.c: New file.
7459         * lib/unictype/pr_lowercase.c: New file.
7460         * lib/unictype/pr_math.c: New file.
7461         * lib/unictype/pr_non_break.c: New file.
7462         * lib/unictype/pr_not_a_character.c: New file.
7463         * lib/unictype/pr_numeric.c: New file.
7464         * lib/unictype/pr_other_alphabetic.c: New file.
7465         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7466         * lib/unictype/pr_other_grapheme_extend.c: New file.
7467         * lib/unictype/pr_other_id_continue.c: New file.
7468         * lib/unictype/pr_other_id_start.c: New file.
7469         * lib/unictype/pr_other_lowercase.c: New file.
7470         * lib/unictype/pr_other_math.c: New file.
7471         * lib/unictype/pr_other_uppercase.c: New file.
7472         * lib/unictype/pr_paired_punctuation.c: New file.
7473         * lib/unictype/pr_paragraph_separator.c: New file.
7474         * lib/unictype/pr_pattern_syntax.c: New file.
7475         * lib/unictype/pr_pattern_white_space.c: New file.
7476         * lib/unictype/pr_private_use.c: New file.
7477         * lib/unictype/pr_punctuation.c: New file.
7478         * lib/unictype/pr_quotation_mark.c: New file.
7479         * lib/unictype/pr_radical.c: New file.
7480         * lib/unictype/pr_sentence_terminal.c: New file.
7481         * lib/unictype/pr_soft_dotted.c: New file.
7482         * lib/unictype/pr_space.c: New file.
7483         * lib/unictype/pr_terminal_punctuation.c: New file.
7484         * lib/unictype/pr_test.c: New file.
7485         * lib/unictype/pr_titlecase.c: New file.
7486         * lib/unictype/pr_unassigned_code_value.c: New file.
7487         * lib/unictype/pr_unified_ideograph.c: New file.
7488         * lib/unictype/pr_uppercase.c: New file.
7489         * lib/unictype/pr_variation_selector.c: New file.
7490         * lib/unictype/pr_white_space.c: New file.
7491         * lib/unictype/pr_xid_continue.c: New file.
7492         * lib/unictype/pr_xid_start.c: New file.
7493         * lib/unictype/pr_zero_width.c: New file.
7494         * lib/unictype/scripts.c: New file.
7495         * lib/unictype/sy_c_ident.c: New file.
7496         * lib/unictype/sy_c_whitespace.c: New file.
7497         * lib/unictype/sy_java_ident.c: New file.
7498         * lib/unictype/sy_java_whitespace.c: New file.
7499
7500         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7501         Unicode 5.0.0.
7502         * lib/unictype/blocks.h: Likewise.
7503         * lib/unictype/categ_C.h: Likewise.
7504         * lib/unictype/categ_Cc.h: Likewise.
7505         * lib/unictype/categ_Cf.h: Likewise.
7506         * lib/unictype/categ_Cn.h: Likewise.
7507         * lib/unictype/categ_Co.h: Likewise.
7508         * lib/unictype/categ_Cs.h: Likewise.
7509         * lib/unictype/categ_L.h: Likewise.
7510         * lib/unictype/categ_Ll.h: Likewise.
7511         * lib/unictype/categ_Lm.h: Likewise.
7512         * lib/unictype/categ_Lo.h: Likewise.
7513         * lib/unictype/categ_Lt.h: Likewise.
7514         * lib/unictype/categ_Lu.h: Likewise.
7515         * lib/unictype/categ_M.h: Likewise.
7516         * lib/unictype/categ_Mc.h: Likewise.
7517         * lib/unictype/categ_Me.h: Likewise.
7518         * lib/unictype/categ_Mn.h: Likewise.
7519         * lib/unictype/categ_N.h: Likewise.
7520         * lib/unictype/categ_Nd.h: Likewise.
7521         * lib/unictype/categ_Nl.h: Likewise.
7522         * lib/unictype/categ_No.h: Likewise.
7523         * lib/unictype/categ_P.h: Likewise.
7524         * lib/unictype/categ_Pc.h: Likewise.
7525         * lib/unictype/categ_Pd.h: Likewise.
7526         * lib/unictype/categ_Pe.h: Likewise.
7527         * lib/unictype/categ_Pf.h: Likewise.
7528         * lib/unictype/categ_Pi.h: Likewise.
7529         * lib/unictype/categ_Po.h: Likewise.
7530         * lib/unictype/categ_Ps.h: Likewise.
7531         * lib/unictype/categ_S.h: Likewise.
7532         * lib/unictype/categ_Sc.h: Likewise.
7533         * lib/unictype/categ_Sk.h: Likewise.
7534         * lib/unictype/categ_Sm.h: Likewise.
7535         * lib/unictype/categ_So.h: Likewise.
7536         * lib/unictype/categ_Z.h: Likewise.
7537         * lib/unictype/categ_Zl.h: Likewise.
7538         * lib/unictype/categ_Zp.h: Likewise.
7539         * lib/unictype/categ_Zs.h: Likewise.
7540         * lib/unictype/categ_of.h: Likewise.
7541         * lib/unictype/combining.h: Likewise.
7542         * lib/unictype/ctype_alnum.h: Likewise.
7543         * lib/unictype/ctype_alpha.h: Likewise.
7544         * lib/unictype/ctype_blank.h: Likewise.
7545         * lib/unictype/ctype_cntrl.h: Likewise.
7546         * lib/unictype/ctype_digit.h: Likewise.
7547         * lib/unictype/ctype_graph.h: Likewise.
7548         * lib/unictype/ctype_lower.h: Likewise.
7549         * lib/unictype/ctype_print.h: Likewise.
7550         * lib/unictype/ctype_punct.h: Likewise.
7551         * lib/unictype/ctype_space.h: Likewise.
7552         * lib/unictype/ctype_upper.h: Likewise.
7553         * lib/unictype/ctype_xdigit.h: Likewise.
7554         * lib/unictype/decdigit.h: Likewise.
7555         * lib/unictype/digit.h: Likewise.
7556         * lib/unictype/mirror.h: Likewise.
7557         * lib/unictype/numeric.h: Likewise.
7558         * lib/unictype/pr_alphabetic.h: Likewise.
7559         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7560         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7561         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7562         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7563         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7564         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7565         * lib/unictype/pr_bidi_control.h: Likewise.
7566         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7567         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7568         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7569         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7570         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7571         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7572         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7573         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7574         * lib/unictype/pr_bidi_pdf.h: Likewise.
7575         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7576         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7577         * lib/unictype/pr_combining.h: Likewise.
7578         * lib/unictype/pr_composite.h: Likewise.
7579         * lib/unictype/pr_currency_symbol.h: Likewise.
7580         * lib/unictype/pr_dash.h: Likewise.
7581         * lib/unictype/pr_decimal_digit.h: Likewise.
7582         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7583         * lib/unictype/pr_deprecated.h: Likewise.
7584         * lib/unictype/pr_diacritic.h: Likewise.
7585         * lib/unictype/pr_extender.h: Likewise.
7586         * lib/unictype/pr_format_control.h: Likewise.
7587         * lib/unictype/pr_grapheme_base.h: Likewise.
7588         * lib/unictype/pr_grapheme_extend.h: Likewise.
7589         * lib/unictype/pr_grapheme_link.h: Likewise.
7590         * lib/unictype/pr_hex_digit.h: Likewise.
7591         * lib/unictype/pr_hyphen.h: Likewise.
7592         * lib/unictype/pr_id_continue.h: Likewise.
7593         * lib/unictype/pr_id_start.h: Likewise.
7594         * lib/unictype/pr_ideographic.h: Likewise.
7595         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7596         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7597         * lib/unictype/pr_ignorable_control.h: Likewise.
7598         * lib/unictype/pr_iso_control.h: Likewise.
7599         * lib/unictype/pr_join_control.h: Likewise.
7600         * lib/unictype/pr_left_of_pair.h: Likewise.
7601         * lib/unictype/pr_line_separator.h: Likewise.
7602         * lib/unictype/pr_logical_order_exception.h: Likewise.
7603         * lib/unictype/pr_lowercase.h: Likewise.
7604         * lib/unictype/pr_math.h: Likewise.
7605         * lib/unictype/pr_non_break.h: Likewise.
7606         * lib/unictype/pr_not_a_character.h: Likewise.
7607         * lib/unictype/pr_numeric.h: Likewise.
7608         * lib/unictype/pr_other_alphabetic.h: Likewise.
7609         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7610         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7611         * lib/unictype/pr_other_id_continue.h: Likewise.
7612         * lib/unictype/pr_other_id_start.h: Likewise.
7613         * lib/unictype/pr_other_lowercase.h: Likewise.
7614         * lib/unictype/pr_other_math.h: Likewise.
7615         * lib/unictype/pr_other_uppercase.h: Likewise.
7616         * lib/unictype/pr_paired_punctuation.h: Likewise.
7617         * lib/unictype/pr_paragraph_separator.h: Likewise.
7618         * lib/unictype/pr_pattern_syntax.h: Likewise.
7619         * lib/unictype/pr_pattern_white_space.h: Likewise.
7620         * lib/unictype/pr_private_use.h: Likewise.
7621         * lib/unictype/pr_punctuation.h: Likewise.
7622         * lib/unictype/pr_quotation_mark.h: Likewise.
7623         * lib/unictype/pr_radical.h: Likewise.
7624         * lib/unictype/pr_sentence_terminal.h: Likewise.
7625         * lib/unictype/pr_soft_dotted.h: Likewise.
7626         * lib/unictype/pr_space.h: Likewise.
7627         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7628         * lib/unictype/pr_titlecase.h: Likewise.
7629         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7630         * lib/unictype/pr_unified_ideograph.h: Likewise.
7631         * lib/unictype/pr_uppercase.h: Likewise.
7632         * lib/unictype/pr_variation_selector.h: Likewise.
7633         * lib/unictype/pr_white_space.h: Likewise.
7634         * lib/unictype/pr_xid_continue.h: Likewise.
7635         * lib/unictype/pr_xid_start.h: Likewise.
7636         * lib/unictype/pr_zero_width.h: Likewise.
7637         * lib/unictype/scripts.h: Likewise.
7638         * lib/unictype/scripts_byname.gperf: Likewise.
7639         * lib/unictype/sy_c_ident.h: Likewise.
7640         * lib/unictype/sy_c_whitespace.h: Likewise.
7641         * lib/unictype/sy_java_ident.h: Likewise.
7642         * lib/unictype/sy_java_whitespace.h: Likewise.
7643
7644         * lib/unictype/Makefile: New file.
7645         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7646         glibc.
7647         * lib/unictype/3level.h: New file, copied from glibc.
7648         * lib/unictype/3levelbit.h: New file.
7649
7650 2007-11-11  Bruno Haible  <bruno@clisp.org>
7651
7652         * modules/gperf: New file.
7653         * modules/iconv_open (Depends-on): Add it.
7654         (Makefile.am): Remove the GPERF definition.
7655
7656 2007-11-11  Bruno Haible  <bruno@clisp.org>
7657
7658         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7659         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7660
7661 2007-11-11  Bruno Haible  <bruno@clisp.org>
7662
7663         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7664         (usage): Remove function.
7665
7666 2007-11-11  Bruno Haible  <bruno@clisp.org>
7667
7668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7669         gl_FUNC_CEILF_LIBS.
7670         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7671         gl_FUNC_CEIL_LIBS.
7672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7673         gl_FUNC_CEILL_LIBS.
7674         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7675         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7676         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7677
7678 2007-11-11  Bruno Haible  <bruno@clisp.org>
7679
7680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7681         roundf were declared but do not exist on functions.
7682         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7683         roundl were declared but do not exist on functions.
7684         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7685         HAVE_FLOORL_AND_CEILL, respectively.
7686         Needed for Sun C on Solaris 10.
7687
7688 2007-11-11  Bruno Haible  <bruno@clisp.org>
7689
7690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7691         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7692         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7693         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7694         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7695         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7696         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7697         HAVE_DECL_ROUNDF.
7698         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7699         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7701         of HAVE_DECL_ROUND*.
7702         * modules/math (Makefile.am): Update.
7703
7704 2007-11-10  Bruno Haible  <bruno@clisp.org>
7705
7706         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7707         ptrdiff_t as m4/intl.m4.
7708
7709 2007-11-10  Jim Meyering  <meyering@redhat.com>
7710
7711         Avoid link failure for the argmatch test.
7712         * tests/test-argmatch.c (usage): Define function to avoid a link
7713         failure: argmatch_die requires a usage function.
7714
7715 2007-11-09  Bruno Haible  <bruno@clisp.org>
7716
7717         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7718         * doc/functions/vsnprintf.texi: Likewise.
7719         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7720         with a size argument < 2.
7721
7722 2007-11-09  Bruno Haible  <bruno@clisp.org>
7723
7724         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7725         buffer. Fixes an inefficiency introduced on 2007-11-03.
7726
7727 2007-11-09  Bruno Haible  <bruno@clisp.org>
7728
7729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7730         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7731
7732 2007-11-08  Jim Meyering  <meyering@redhat.com>
7733
7734         Change cache variable name prefix "jm_" to "gl_" everywhere.
7735         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7736         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7737         * m4/uptime.m4: s/gl_/jm_/
7738
7739 2007-11-07  Bruno Haible  <bruno@clisp.org>
7740
7741         Update to GNU gettext 0.17.
7742         * m4/intl.m4: Update to GNU gettext 0.17.
7743         * m4/po.m4: Likewise.
7744         * modules/gettext (Files): Remove m4/ulonglong.m4.
7745         (configure.ac): Require gettext infrastructure from version 0.17.
7746
7747 2007-11-06  Bruno Haible  <bruno@clisp.org>
7748
7749         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7750         symbolic values are not defined in a public header.
7751         * lib/freadable.c (freadable) [QNX]: Likewise.
7752         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7753         * lib/freading.c (freading) [QNX]: Likewise.
7754         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7755         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7756         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7757         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7758         Reported by Alain Magloire.
7759
7760         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7761
7762 2007-11-05  Bruno Haible  <bruno@clisp.org>
7763
7764         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7765         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7766         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7767         Reported by Eric Blake.
7768
7769 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7770             Bruno Haible  <bruno@clisp.org>
7771
7772         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7773         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7774         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7775         (malloc): Undefine also before including <stdlib.h>.
7776         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7777         Needed on OSF/1 4.0.
7778
7779 2007-11-05  Jim Meyering  <meyering@redhat.com>
7780
7781         git-version-gen: sync from coreutils.
7782         * build-aux/git-version-gen: Add comments.
7783         Change the first '-' to '.' in the snapshot version string,
7784         e.g., 6.9-377-08144 -> 6.9.377-08144
7785         Remove first parameter.
7786         Don't declare a version "-dirty" merely because a time
7787         stamp has changed.
7788
7789 2007-11-04  Bruno Haible  <bruno@clisp.org>
7790
7791         * lib/lock.h: Protect all macro definitions containing an 'if'
7792         statement through a "do { ... } while (0)".
7793         * lib/tls.h: Likewise.
7794
7795 2007-11-04  Bruno Haible  <bruno@clisp.org>
7796
7797         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7798
7799 2007-11-04  Bruno Haible  <bruno@clisp.org>
7800
7801         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7802         * modules/fprintf-posix (Depends-on): Add nocrash.
7803         * modules/snprintf-posix (Depends-on): Likewise.
7804         * modules/sprintf-posix (Depends-on): Likewise.
7805         * modules/vasnprintf-posix (Depends-on): Likewise.
7806         * modules/vasprintf-posix (Depends-on): Likewise.
7807         * modules/vfprintf-posix (Depends-on): Likewise.
7808         * modules/vsnprintf-posix (Depends-on): Likewise.
7809         * modules/vsprintf-posix (Depends-on): Likewise.
7810         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7811         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7812         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7813         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7814         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7815         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7816         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7817
7818 2007-11-04  Bruno Haible  <bruno@clisp.org>
7819
7820         * modules/nocrash: New file.
7821         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7822         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7823
7824 2007-11-04  Bruno Haible  <bruno@clisp.org>
7825
7826         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7827         precision handling.
7828         * tests/test-vasprintf-posix.c (test_function): Likewise.
7829         * tests/test-snprintf-posix.h (test_function): Likewise.
7830         * tests/test-sprintf-posix.h (test_function): Likewise.
7831
7832         Fix *printf behaviour for large precisions on mingw and BeOS.
7833         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7834         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7836         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7838         gl_PRINTF_PRECISION and test its result. Invoke
7839         gl_PREREQ_VASNPRINTF_PRECISION.
7840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7847         * doc/functions/fprintf.texi: Update.
7848         * doc/functions/printf.texi: Update.
7849         * doc/functions/snprintf.texi: Update.
7850         * doc/functions/sprintf.texi: Update.
7851         * doc/functions/vfprintf.texi: Update.
7852         * doc/functions/vprintf.texi: Update.
7853         * doc/functions/vsnprintf.texi: Update.
7854         * doc/functions/vsprintf.texi: Update.
7855
7856 2007-11-04  Bruno Haible  <bruno@clisp.org>
7857
7858         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7859
7860 2007-11-04  Bruno Haible  <bruno@clisp.org>
7861
7862         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7863         Reported by Sylvain Beucler <beuc@gnu.org>.
7864
7865 2007-11-03  Bruno Haible  <bruno@clisp.org>
7866
7867         * tests/test-fprintf-posix2.sh: New file.
7868         * tests/test-fprintf-posix2.c: New file.
7869         * modules/fprintf-posix-tests (Files): Add them.
7870         (TESTS): Add test-fprintf-posix2.sh.
7871         (configure.ac): Check for getrlimit and setrlimit.
7872         (check_PROGRAMS): Add test-fprintf-posix2.
7873
7874         * tests/test-printf-posix2.sh: New file.
7875         * tests/test-printf-posix2.c: New file.
7876         * modules/printf-posix-tests (Files): Add them.
7877         (TESTS): Add test-printf-posix2.sh.
7878         (configure.ac): Check for getrlimit and setrlimit.
7879         (check_PROGRAMS): Add test-printf-posix2.
7880
7881         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7882         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7883         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7884         (decode_double): New function, copied from decode_long_double.
7885         (scale10_round_decimal_decoded): New function, extracted from
7886         scale10_round_decimal_long_double.
7887         (scale10_round_decimal_long_double): Use it.
7888         (scale10_round_decimal_double): New function.
7889         (floorlog10): New function.
7890         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7892         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7894         gl_PRINTF_ENOMEM and test its result. Invoke
7895         gl_PREREQ_VASNPRINTF_ENOMEM.
7896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7903         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7904         * modules/snprintf-posix (Depends-on): Likewise.
7905         * modules/sprintf-posix (Depends-on): Likewise.
7906         * modules/vasnprintf-posix (Depends-on): Likewise.
7907         * modules/vasprintf-posix (Depends-on): Likewise.
7908         * modules/vfprintf-posix (Depends-on): Likewise.
7909         * modules/vsnprintf-posix (Depends-on): Likewise.
7910         * modules/vsprintf-posix (Depends-on): Likewise.
7911         * doc/functions/fprintf.texi: Update.
7912         * doc/functions/printf.texi: Update.
7913         * doc/functions/snprintf.texi: Update.
7914         * doc/functions/sprintf.texi: Update.
7915         * doc/functions/vfprintf.texi: Update.
7916         * doc/functions/vprintf.texi: Update.
7917         * doc/functions/vsnprintf.texi: Update.
7918         * doc/functions/vsprintf.texi: Update.
7919
7920 2007-11-03  Bruno Haible  <bruno@clisp.org>
7921
7922         * modules/frexp-nolibm-tests: New file.
7923
7924         * modules/frexp-nolibm: New file.
7925         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7926
7927 2007-11-03  Bruno Haible  <bruno@clisp.org>
7928
7929         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7930         value is C99 compliant.
7931         Needed for OSF/1 5.1.
7932
7933 2007-11-03  Bruno Haible  <bruno@clisp.org>
7934
7935         Fix out-of-memory handling of vasnprintf.
7936         * lib/printf-parse.c: Include <errno.h>.
7937         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7938         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7939         is already set.
7940
7941 2007-11-02  Eric Blake  <ebb9@byu.net>
7942
7943         Fix tests on cygwin.
7944         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7945
7946 2007-11-01  Bruno Haible  <bruno@clisp.org>
7947
7948         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7949         warning.
7950         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7951         needed for POSIX compatibility.
7952
7953 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7954
7955         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7956         for compatibility with GNU.
7957
7958 2007-11-01  Bruno Haible  <bruno@clisp.org>
7959
7960         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7961         (putenv): Renamed from rpl_putenv. Change argument type from
7962         'const char *' to 'char *'.
7963         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7964         of defining putenv in config.h, just set REPLACE_PUTENV.
7965         * modules/putenv (Depends-on): Add stdlib.
7966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7967         (Include): Use <stdlib.h>.
7968         * lib/stdlib.in.h (putenv): New declaration.
7969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7970         REPLACE_PUTENV.
7971         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7972         REPLACE_PUTENV.
7973         Needed for MacOS X 10.5.0.
7974         Reported by Peter O'Gorman <peter@pogma.com>.
7975
7976 2007-11-01  Jim Meyering  <meyering@redhat.com>
7977
7978         Treat an empty date string exactly like "0".
7979         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7980         if the remaining date string (to be parsed) is empty, use "0".
7981         Reported by Mischa Molhoek and discussed in this thread:
7982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7983
7984 2007-10-31  Bruno Haible  <bruno@clisp.org>
7985
7986         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7987         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7988         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7989         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7990         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7991         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7992
7993 2007-10-31  Bruno Haible  <bruno@clisp.org>
7994
7995         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7996         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7997         (AC_TYPE_LONG_LONG_INT): Use it.
7998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7999         it as well.
8000         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8001         to m4/longlong.m4.
8002         * modules/stdint (Files): Remove m4/ulonglong.m4.
8003         * modules/strtoull (Files): Use m4/longlong.m4 instead of
8004         m4/ulonglong.m4.
8005         * modules/strtoumax (Files): Likewise.
8006
8007 2007-10-30  Bruno Haible  <bruno@clisp.org>
8008
8009         * modules/xvasprintf-posix: New file.
8010         Suggested by Eric Blake.
8011
8012 2007-10-30  Bruno Haible  <bruno@clisp.org>
8013
8014         * modules/xprintf-posix-tests: New file.
8015         * tests/test-xprintf-posix.sh: New file.
8016         * tests/test-xprintf-posix.c: New file.
8017         * tests/test-xfprintf-posix.c: New file.
8018
8019         * modules/xprintf-posix: New file.
8020
8021 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8022
8023         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8024         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8025         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8026
8027 2007-10-29  Bruno Haible  <bruno@clisp.org>
8028
8029         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8030         contain the special marker '_cv_'.
8031         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8032         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8034         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8035         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8036         Reported by Ralf Wildenhues.
8037
8038 2007-10-29  Bruno Haible  <bruno@clisp.org>
8039
8040         * gnulib-tool (func_import): When --lgpl is not specified, set
8041         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8042         GPLv3.
8043         Reported by Simon Josefsson.
8044
8045 2007-10-28  Bruno Haible  <bruno@clisp.org>
8046
8047         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8048         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8049         HAVE_DECL_ISFINITE.
8050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8051         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8052         HAVE_DECL_ISFINITE.
8053
8054 2007-10-28  Bruno Haible  <bruno@clisp.org>
8055
8056         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
8057         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
8058
8059 2007-10-28  Bruno Haible  <bruno@clisp.org>
8060
8061         Fix link errors with Sun C 5.0 on Solaris 10.
8062         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
8063         function is declared but not present in the compiler's libm.
8064         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8065         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8066         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
8067         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
8068         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
8069         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
8070         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
8071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8072         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
8073         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
8074         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8075         HAVE_DECL_FLOORL.
8076
8077 2007-10-28  Bruno Haible  <bruno@clisp.org>
8078
8079         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8080         gl_FUNC_FLOORL. Cache the result.
8081         (gl_FUNC_FLOORL): Use it.
8082         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8083         gl_FUNC_CEILL. Cache the result.
8084         (gl_FUNC_CEILL): Use it.
8085
8086         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8087         gl_FUNC_FLOOR. Cache the result.
8088         (gl_FUNC_FLOOR): Use it.
8089         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8090         gl_FUNC_CEIL. Cache the result.
8091         (gl_FUNC_CEIL): Use it.
8092
8093         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8094         gl_FUNC_FLOORF. Cache the result.
8095         (gl_FUNC_FLOORF): Use it.
8096         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8097         gl_FUNC_CEILF. Cache the result.
8098         (gl_FUNC_CEILF): Use it.
8099
8100 2007-10-28  Bruno Haible  <bruno@clisp.org>
8101
8102         * gnulib-tool: Allow specifying the LGPL version number through
8103         --lgpl=2 or --lgpl=3.
8104         (func_usage): Document --lgpl with argument.
8105         Handle --lgpl=... arguments.
8106         (func_import): Recognize also gl_LGPL calls with an argument. When
8107         --lgpl=2 is used and the module's license is just LGPL, report an
8108         error. Set sed_transform_lib_file according to the lgpl variable. In
8109         the generated files, use --lgpl or gl_LGPL invocations with argument,
8110         if necessary.
8111         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8112         an LGPv2+ license.
8113         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8114         gl_LGPL macro.
8115
8116 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8117             Bruno Haible  <bruno@clisp.org>
8118
8119         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8120         (u16_uctomb_aux): Likewise.
8121         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8122         !HAVE_INLINE.
8123         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8124
8125 2007-10-28  Bruno Haible  <bruno@clisp.org>
8126
8127         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8128         Invoke AM_GETTEXT_OPTION if it exists.
8129         * modules/vasprintf: Likewise.
8130         * modules/verror: Likewise.
8131         * modules/xprintf: Likewise.
8132         * modules/xvasprintf: Likewise.
8133
8134 2007-10-27  Ben Pfaff  <blp@gnu.org>
8135
8136         * lib/math.in.h: Define isfinite macro and prototypes for
8137         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8138         implementations.
8139         * m4/math_h.m4: New substitutions for isfinite module.
8140         * lib/isfinite.c: New file.
8141         * m4/isfinite.m4: New file.
8142         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8143         * modules/isfinite: New file.
8144         * modules/isfinite-tests: New file.
8145         * tests/tests-isfinite.c: New file.
8146         * doc/functions/isfinite.texi: Mention isfinite module.
8147         * MODULES.html.sh: Mention new module.
8148
8149 2007-10-27  Ben Pfaff  <blp@gnu.org>
8150
8151         Ralf Wildenhues reported that Tru64 4.0D declares the round
8152         functions but does not have definitions.
8153         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8154         cannot be found in any library, set the output variable to
8155         "missing" instead of "".
8156         * m4/round.m4: Also use our substitute if we cannot find round in
8157         any library, even if it is declared.
8158         * m4/roundf.m4: Likewise for roundf.
8159         * m4/roundl.m4: Likewise for roundl.
8160         * lib/math.in.h: Undefine roundf, round, roundl before defining
8161         their replacements, to allow for hypothetical systems where these
8162         may be defined as macros but not available in libraries.
8163
8164 2007-10-27  Bruno Haible  <bruno@clisp.org>
8165
8166         * doc/gnulib.texi: Invoke @firstparagraphindent.
8167         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8168         changes in gnulib.
8169         (Source changes): New section.
8170
8171 2007-10-26  Bruno Haible  <bruno@clisp.org>
8172
8173         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8174         borrowed from autoconf.
8175
8176 2007-10-26  Bruno Haible  <bruno@clisp.org>
8177
8178         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8179         strerror returned the empty string. Needed on HP-UX 11.00.
8180
8181 2007-10-24  Micah Cowan  <micah@cowan.name>
8182
8183         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8184         * build-aux/bootstrap: Remove support for now-unnecessary option,
8185         --cvs-user, and envvars CVS_USER, CVS_RSH.
8186
8187 2007-10-24  Jim Meyering  <meyering@redhat.com>
8188
8189         Avoid diagnostics from sha1sum when there is no cached checksum.
8190         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8191         if the po.s1 file hasn't been created yet.
8192
8193         * build-aux/bootstrap: Sync from coreutils:
8194         2007-10-24  Jim Meyering  <meyering@redhat.com>
8195         Get gnulib from the git repository, not from an obsolete cvs one.
8196         * build-aux/bootstrap: Suggestion from Micah Cowan.
8197         2007-10-04  Jim Meyering  <jim@meyering.net>
8198         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8199         (update_po_files): Work also when there are no .po files in po/.
8200
8201 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8202
8203         * README: Append ".git" to git and cg examples.
8204         Problem reported by Benoit Sigoure.
8205
8206 2007-10-23  Micah Cowan  <micah@cowan.name>
8207
8208         * users.txt: Add wget.
8209
8210 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8211
8212         Fix linking of some unistdio tests on FreeBSD.
8213         * modules/unistdio/u16-vsnprintf-tests
8214         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8215         * modules/unistdio/u16-vsprintf-tests
8216         (test_u16_vsnprintf1_LDADD): Likewise.
8217         * modules/unistdio/u32-vsnprintf-tests
8218         (test_u32_vsnprintf1_LDADD): Likewise.
8219         * modules/unistdio/u32-vsprintf-tests
8220         (test_u32_vsprintf1_LDADD): Likewise.
8221         * modules/unistdio/u8-vsnprintf-tests
8222         (test_u8_vsnprintf1_LDADD): Likewise.
8223         * modules/unistdio/u8-vsprintf-tests
8224         (test_u8_vsprintf1_LDADD): Likewise.
8225         * modules/unistdio/ulc-vsnprintf-tests
8226         (test_ulc_vsnprintf1_LDADD): Likewise.
8227         * modules/unistdio/ulc-vsprintf-tests
8228         (test_ulc_vsprintf1_LDADD): Likewise.
8229
8230         Fix linking of some uniconv tests on FreeBSD.
8231         * modules/uniconv/u16-conv-from-enc-tests
8232         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8233         * modules/uniconv/u16-conv-to-enc-tests
8234         (test_u16_conv_to_enc_LDADD): Likewise.
8235         * modules/uniconv/u16-strconv-from-enc-tests
8236         (test_u16_strconv_from_enc_LDADD): Likewise.
8237         * modules/uniconv/u16-strconv-to-enc-tests
8238         (test_u16_strconv_to_enc_LDADD): Likewise.
8239         * modules/uniconv/u32-conv-from-enc-tests
8240         (test_u32_conv_from_enc_LDADD): Likewise.
8241         * modules/uniconv/u32-conv-to-enc-tests
8242         (test_u32_conv_to_enc_LDADD): Likewise.
8243         * modules/uniconv/u32-strconv-from-enc-tests
8244         (test_u32_strconv_from_enc_LDADD): Likewise.
8245         * modules/uniconv/u32-strconv-to-enc-tests
8246         (test_u32_strconv_to_enc_LDADD): Likewise.
8247         * modules/uniconv/u8-conv-from-enc-tests
8248         (test_u8_conv_from_enc_LDADD): Likewise.
8249         * modules/uniconv/u8-conv-to-enc-tests
8250         (test_u8_conv_to_enc_LDADD): Likewise.
8251         * modules/uniconv/u8-strconv-from-enc-tests
8252         (test_u8_strconv_from_enc_LDADD): Likewise.
8253         * modules/uniconv/u8-strconv-to-enc-tests
8254         (test_u8_strconv_to_enc_LDADD): Likewise.
8255
8256 2007-10-22  Bruno Haible  <bruno@clisp.org>
8257
8258         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8259         size.
8260
8261 2007-10-22  Eric Blake  <ebb9@byu.net>
8262
8263         Tweak x*printf documentation.
8264         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8265         variable name and comments.
8266         Suggested by Bruno Haible.
8267
8268 2007-10-22  Bruno Haible  <bruno@clisp.org>
8269
8270         * lib/acl.c (copy_acl): Fix file name in comment.
8271
8272 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8273
8274         Fix Tru64 problem with stdbool.h.
8275         * lib/stdbool.in.h (false, true):
8276         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8277         Don't declare as an enum in this situation; it runs afoul of Tru64.
8278         Problem reported by Steven M. Schweda in
8279         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8280
8281 2007-10-22  Eric Blake  <ebb9@byu.net>
8282
8283         Also wrap vf?printf.
8284         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8285         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8286         (xvprintf, xvfprintf): New functions.
8287
8288 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8289
8290         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8291         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8292
8293         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8294         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8295
8296 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8297
8298         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8299         by Bruno Haible.
8300
8301 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8302
8303         * lib/getloadavg.c
8304         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8305         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8306
8307         * tests/test-i-ring.c: Work for C89.
8308
8309 2007-10-22  Bruno Haible  <bruno@clisp.org>
8310
8311         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8312         -1u, in preprocessor expression, so that we don't test for the bug
8313         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8315
8316 2007-10-22  Eric Blake  <ebb9@byu.net>
8317
8318         * tests/test-yesno.sh: Silence stderr during test.
8319
8320 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8321
8322         * modules/crypto/gc-camellia: New file.
8323
8324         * m4/gc-camellia.m4: New file.
8325
8326         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8327
8328         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8329
8330 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8331
8332         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8333         --help to stdout.  Reported by sms@antinode.org (Steven
8334         M. Schweda).
8335
8336 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8337
8338         * users.txt: Fix link to libksba.
8339
8340 2007-10-21  Ben Pfaff  <blp@gnu.org>
8341
8342         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8343         round.c roundf implementation that depends on floorf and ceilf to
8344         be tested unconditionally.
8345
8346 2007-10-21  Ben Pfaff  <blp@gnu.org>
8347
8348         * m4/check-libm-func.m4: Removed.
8349         * m4/check-math-lib.m4: New file.
8350         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8351         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8352         definition and lack of AC_LIBOBJ([roundf]).
8353         * m4/roundl.m4: Ditto, and similarly for roundl.
8354         * modules/round: Reference new m4 file.
8355         * modules/roundf: Ditto.
8356         * modules/roundl: Ditto.
8357         * tests/test-round2.c (main): Use ROUND instead of round.
8358         Bug report from Bruno Haible.
8359
8360 2007-10-21  Bruno Haible  <bruno@clisp.org>
8361
8362         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8363         context.
8364
8365 2007-10-21  Bruno Haible  <bruno@clisp.org>
8366
8367         * tests/test-wcwidth.c (main): Allow negative result for some control
8368         characters.
8369
8370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8371         Needed on OSF/1 5.1.
8372
8373 2007-10-21  Bruno Haible  <bruno@clisp.org>
8374
8375         * tests/test-floorf1.c: Include isnanf.h.
8376         (main): Use isnanf() instead of isnan().
8377         * tests/test-ceilf1.c: Include isnanf.h.
8378         (main): Use isnanf() instead of isnan().
8379         * tests/test-truncf1.c: Include isnanf.h.
8380         (main): Use isnanf() instead of isnan().
8381         * tests/test-roundf1.c: Include isnanf.h.
8382         (main): Use isnanf() instead of isnan().
8383
8384 2007-10-21  Eric Blake  <ebb9@byu.net>
8385
8386         * users.txt: Update URL for m4.
8387
8388 2007-10-21  Bruno Haible  <bruno@clisp.org>
8389
8390         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8391
8392 2007-10-21  Bruno Haible  <bruno@clisp.org>
8393
8394         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8395         Git's management files if the CVS files are not present.
8396
8397 2007-10-20  Bruno Haible  <bruno@clisp.org>
8398
8399         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8400         gcc-3.4.x.
8401
8402 2007-10-20  Ben Pfaff  <blp@gnu.org>
8403
8404         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8405         implementations.
8406         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8407         * lib/round.c: New file.
8408         * lib/roundf.c: New file.
8409         * lib/roundl.c: New file.
8410         * m4/round.m4: New file.
8411         * m4/roundf.m4: New file.
8412         * m4/roundl.m4: New file.
8413         * m4/check-libm-func-m4: New file.
8414         * modules/math: Replace round, roundf, roundl related @VARS@ in
8415         math.in.h.
8416         * modules/round: New file.
8417         * modules/round-tests: New file.
8418         * modules/roundf: New file.
8419         * modules/roundf-tests: New file.
8420         * modules/roundl: New file.
8421         * modules/roundl-tests: New file.
8422         * tests/test-round1.c: New file.
8423         * tests/test-round2.c: New file.
8424         * tests/test-roundf1.c: New file.
8425         * tests/test-roundf2.c: New file.
8426         * tests/test-roundl.c: New file.
8427         * doc/functions/round.texi: Mention round module.
8428         * doc/functions/roundf.texi: Mention roundf module.
8429         * doc/functions/roundl.texi: Mention roundl module.
8430         * MODULES.html.sh: Mention new modules.
8431         Thanks to Bruno Haible for suggestions.
8432
8433 2007-10-20  Jim Meyering  <meyering@redhat.com>
8434
8435         * lib/xprintf.c: Include <config.h> unconditionally.
8436
8437         Change xprintf's license to GPL.
8438         * modules/xprintf (License): s/LGPL/GPL/, since this module
8439         depends on modules (exit and exitfail) which are GPL.
8440         Suggestion from Bruno Haible.
8441
8442         xprintf fixes.
8443         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8444         Use a clearer diagnostic.
8445         Patch from Bruno Haible.
8446
8447 2007-10-20  Bruno Haible  <bruno@clisp.org>
8448
8449         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8450         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8452
8453 2007-10-20  Bruno Haible  <bruno@clisp.org>
8454
8455         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8456         precision in the comparison result > x - 1 or similar.
8457         * tests/test-ceilf2.c (correct_result_p): Likewise.
8458         * tests/test-truncf2.c (correct_result_p): Likewise.
8459         * tests/test-trunc2.c (correct_result_p): Likewise.
8460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8461
8462 2007-10-20  Bruno Haible  <bruno@clisp.org>
8463
8464         * modules/ceil: New file.
8465         * m4/ceil.m4: New file.
8466         * doc/functions/ceil.texi: Mention the 'ceil' module.
8467
8468 2007-10-20  Bruno Haible  <bruno@clisp.org>
8469
8470         * modules/floor: New file.
8471         * m4/floor.m4: New file.
8472         * doc/functions/floor.texi: Mention the 'floor' module.
8473
8474 2007-10-20  Bruno Haible  <bruno@clisp.org>
8475
8476         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8477         of %a.
8478         * modules/floorf-tests (Depends-on): Likewise.
8479         * modules/truncf-tests (Depends-on): Likewise.
8480         * modules/trunc-tests (Depends-on): Likewise.
8481         Reported by Ben Pfaff.
8482
8483 2007-10-19  Jim Meyering  <meyering@redhat.com>
8484
8485         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8486         Don't bother testing specific errno values.  Just test ferror.
8487
8488         New module: xprintf
8489         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8490
8491 2007-10-19  Bruno Haible  <bruno@clisp.org>
8492
8493         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8494         syntax.
8495         * modules/javaexec (Makefile.am): Likewise.
8496         * modules/relocatable-prog (Makefile.am): Likewise.
8497         Suggested by Jim Meyering.
8498
8499 2007-10-18  Bruno Haible  <bruno@clisp.org>
8500
8501         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8502         Reported by Jim Meyering.
8503
8504 2007-10-18  Eric Blake  <ebb9@byu.net>
8505
8506         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8507
8508 2007-10-18  Bruno Haible  <bruno@clisp.org>
8509
8510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8511         the format string into writable memory. Needed in Fortify conditions.
8512
8513 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8514             Bruno Haible  <bruno@clisp.org>
8515
8516         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8517         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8518         * modules/trim (Depends-on): Add mbchar.
8519         (configure.ac): Add gl_FUNC_MBRTOWC.
8520         (Makefile.am): Augment lib_SOURCES.
8521
8522 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8523
8524         Modify glob.c to use fstatat and dirfd, to simplify it.
8525         Suggested by Eric Blake.
8526         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8527         Don't include <stdbool.h>; not used.
8528         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8529         (link_exists_p): Simplify implementation, since we can now assume
8530         dirfd and fstatat.
8531         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8532
8533 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8534
8535         * gnulib-tool (func_get_dependencies): Fix sed script to
8536         match only tests.
8537
8538 2007-10-17  Bruno Haible  <bruno@clisp.org>
8539
8540         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8541         allow locale names without encoding suffix.
8542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8543         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8544
8545 2007-10-16  Bruno Haible  <bruno@clisp.org>
8546
8547         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8548         * lib/getgroups.c (getgroups): Likewise.
8549         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8550
8551 2007-10-16  Bruno Haible  <bruno@clisp.org>
8552
8553         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8554         * modules/malloc-posix (License): Likewise.
8555         * modules/realloc-posix (License): Likewise.
8556         * modules/calloc-posix (License): Likewise.
8557         * modules/intprops (License): Change from GPL to LGPL, with
8558         Paul Eggert's approval.
8559
8560 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8561
8562         Merge glibc changes into lib/glob.c.
8563
8564         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8565         2007-10-15 04:59:03 UTC.  Here are the changes:
8566
8567         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8568
8569         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8570
8571         * lib/glob.c: Add some branch prediction throughout.
8572
8573         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8574
8575         [BZ #5103]
8576         * lib/glob.c (glob): Recognize patterns starting \/.
8577
8578         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8579
8580         [BZ #3996]
8581         * lib/glob.c (attribute_hidden): Define if not defined.
8582         (glob): Unescape dirname, filename or username when needed and not
8583         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8584         is NULL.  Handle unescaped [ in pattern without closing ].
8585         Don't pass GLOB_CHECK down to recursive glob for directories.
8586         (__glob_pattern_type): New function.
8587         (__glob_pattern_p): Implement using __glob_pattern_type.
8588         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8589         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8590         Remove unreachable code.
8591
8592         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8593
8594         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8595         explain why there are no leaks.
8596
8597         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8598
8599         [BZ #3253]
8600         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8601         time, rather allocate increasingly bigger arrays of pointers, if
8602         possible with alloca, if too large with malloc.
8603
8604 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8605
8606         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8607         Problem reported by H.Merijn Brand in
8608         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8609         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8611
8612 2007-10-15  Bruno Haible  <bruno@clisp.org>
8613
8614         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8615         with explicit rpl_ prefix.
8616         * lib/fopen.c (fopen): Likewise.
8617         * lib/freopen.c (freopen): Likewise.
8618         * lib/iconv.c (iconv): Likewise.
8619         * lib/iconv_close.c (iconv_close): Likewise.
8620
8621 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8622
8623         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8624
8625 2007-10-15  Bruno Haible  <bruno@clisp.org>
8626
8627         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8628         <stddef.h> instead of <stdlib.h> since we only need NULL.
8629         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8630
8631 2007-10-15  Bruno Haible  <bruno@clisp.org>
8632
8633         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8634         Replace paragraph talking about LIBOBJS.
8635         Reported by Colin Watson <cjwatson@debian.org>.
8636
8637 2007-10-15  Bruno Haible  <bruno@clisp.org>
8638
8639         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8640         <stdlib.h> before using NULL.
8641
8642 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8643
8644         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8645         Reported by Albert Chin <china@thewrittenword.com>.
8646
8647 2007-10-14  Bruno Haible  <bruno@clisp.org>
8648
8649         * modules/iconv_open-utf-tests: New file.
8650         * tests/test-iconv-utf.c: New file.
8651
8652         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8653         * modules/iconv_open-utf: New file.
8654         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8655         (iconv, iconv_close): New declarations.
8656         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8657         be defined.
8658         (iconv_open): Add special handling of conversion between UTF-8 and
8659         UTF-{16,32}{BE,LE}.
8660         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8661         * lib/iconv_close.c: New file.
8662         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8663         gl_FUNC_ICONV_OPEN.
8664         (gl_FUNC_ICONV_OPEN): Use it.
8665         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8666         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8667         and REPLACE_ICONV_UTF.
8668         * modules/iconv_open (Depends-on): Add c-strcase.
8669         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8670         ICONV_CONST.
8671         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8672
8673 2007-10-13  Albert Chin  <china@thewrittenword.com>
8674             Bruno Haible  <bruno@clisp.org>
8675
8676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8677         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8678
8679 2007-10-13  Bruno Haible  <bruno@clisp.org>
8680
8681         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8682         defined, use the ISO C99 inline semantics.
8683         * lib/argp.h (ARGP_EI): Likewise.
8684
8685 2007-10-13  Bruno Haible  <bruno@clisp.org>
8686
8687         Handle 'inline' change in gcc 4.3.0.
8688         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8689         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8690         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8691         argp_fmtstream_point): Disable 'extern' declaration if the function
8692         definition is going to be provided inline.
8693         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8694         semantics, not the ISO C99 inline semantics.
8695         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8696         'extern' declaration if the function definition is going to be provided
8697         inline.
8698         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8699         the GNU C inline semantics, not the ISO C99 inline semantics. With
8700         GCC 4.2, avoid a warning.
8701
8702 2007-10-13  Bruno Haible  <bruno@clisp.org>
8703
8704         * lib/freading.h (freading): Enable the use of __freading for
8705         glibc >= 2.7.
8706         * lib/freading.c (freading): Likewise.
8707
8708 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8709
8710         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8711         "warning: C99 inline functions are not supported; using GNU89".
8712
8713 2007-10-12  Bruno Haible  <bruno@clisp.org>
8714
8715         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8716         of 2.
8717         * tests/test-ceilf2.c: New file.
8718         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8719
8720         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8721         * modules/ceilf-tests: Update.
8722
8723 2007-10-12  Bruno Haible  <bruno@clisp.org>
8724
8725         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8726         of 2.
8727         * tests/test-floorf2.c: New file.
8728         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8729
8730         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8731         * modules/floorf-tests: Update.
8732
8733 2007-10-12  Bruno Haible  <bruno@clisp.org>
8734
8735         * tests/test-trunc2.c: New file.
8736         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8737
8738         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8739         * modules/trunc-tests: Update.
8740
8741 2007-10-12  Bruno Haible  <bruno@clisp.org>
8742
8743         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8744         of 2.
8745         * tests/test-truncf2.c: New file.
8746         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8747
8748         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8749         * modules/truncf-tests: Update.
8750
8751 2007-10-11  Eric Blake  <ebb9@byu.net>
8752
8753         Don't claim strerror is broken on Interix.
8754         * doc/functions/strerror.texi (strerror): Known broken systems are
8755         now Solaris 8, and not Interix.
8756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8757         Interix on cross-compile.
8758         Reported by Martin Koeppe in
8759         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8760
8761 2007-10-11  Bruno Haible  <bruno@clisp.org>
8762
8763         * modules/i-ring-tests: New file.
8764         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8765         instead of assert.
8766
8767 2007-10-11  Bruno Haible  <bruno@clisp.org>
8768
8769         * modules/filenamecat-tests: New file.
8770         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8771         * lib/filenamecat.c: Remove test code.
8772
8773 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8774
8775         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8776
8777         * lib/strerror.c: Include <string.h> always, to test interface,
8778         and to remove the need for the dummy.
8779         Include intprops.h to compute width instead of doing it ourselves
8780         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8781         (strerror): Define it to return NULL if there's no system strerror.
8782         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8783         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8784         ancient pre-strerror Unix systems well any more.  Saying "unknown
8785         system error" is enough.
8786         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8787         simpler strerror.c implementation.
8788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8789         Simplify the tests to reflect the simpler strerror implementation.
8790         * modules/strerror (Depends-on): Add intprops.
8791
8792 2007-10-09  Eric Blake  <ebb9@byu.net>
8793
8794         Silence test-fpending.
8795         * modules/fpending-tests (Files): Add wrapper script.
8796         * tests/test-fpending.sh: New file.
8797
8798 2007-10-09  Bruno Haible  <bruno@clisp.org>
8799
8800         * MODULES.html.sh (func_module): Don't create a hyperlink for
8801         function names like 'printf_frexp'.
8802         (Misc): Add crc, memxor.
8803         (Characteristics of floating types): New section.
8804         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8805         isnanf-nolibm, signbit, trunc, truncf, truncl.
8806         (Enhancements for ISO C 99 functions): New subsection Input/output.
8807         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8808         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8809         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8810         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8811         (Enhancements for POSIX:2001 functions): Add chdir-long.
8812         (File system functions): Add areadlink, chdir-safer, read-file.
8813         Remove cycle-check.
8814         (File system as inode set): New section.
8815         (Date and time): Add gethrxtime.
8816         (Multithreading): Add openmp.
8817         (Internationalization functions): Add localename.
8818         (Unicode string functions): Add unistr/u*-mbsnlen.
8819         (Support for maintaining and releasing projects): Add git-version-gen.
8820         (Lone files): Remove directories.
8821
8822 2007-10-08  Ben Pfaff  <blp@gnu.org>
8823
8824         * lib/xmalloca.h: Fix typo in comment.
8825
8826 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8827
8828         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8829         when avoiding problems with integer overflow.  Use a portable test
8830         instead.
8831
8832 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8833
8834         * modules/dummy (License): Change to LGPLv2+.
8835         * modules/float (License): Likewise
8836         * modules/realloc (License): Likewise
8837         * modules/stdlib (License): Likewise
8838
8839 2007-10-07  Bruno Haible  <bruno@clisp.org>
8840
8841         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8842         * floor.c (TWO_MANT_DIG): Likewise.
8843         * ceil.c (TWO_MANT_DIG): Likewise.
8844         Reported by Ben Pfaff.
8845
8846 2007-10-07  Bruno Haible  <bruno@clisp.org>
8847
8848         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8849         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8850         * lib/frexp.c (FUNC): Likewise.
8851         * lib/printf-frexp.h (printf_frexp): Likewise.
8852         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8853         * lib/printf-frexp.c (FUNC): Likewise.
8854         Suggested by Jim Meyering.
8855
8856 2007-10-07  Jim Meyering  <meyering@redhat.com>
8857
8858         Make xnanosleep's integer overflow test more robust.
8859         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8860         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8861
8862 2007-10-07  Bruno Haible  <bruno@clisp.org>
8863
8864         * NEWS: Mention the license change.
8865
8866         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8867         abbreviations in the modules files.
8868
8869         Change copyright notice from GPLv2+ to GPLv3+.
8870         * README: Change copyright notice.
8871         * MODULES.html.sh: Likewise.
8872         * build-aux/bootstrap.conf: Likewise.
8873         * build-aux/config.libpath: Likewise.
8874         * build-aux/csharpcomp.sh.in: Likewise.
8875         * build-aux/csharpexec.sh.in: Likewise.
8876         * build-aux/install-reloc: Likewise.
8877         * build-aux/javacomp.sh.in: Likewise.
8878         * build-aux/javaexec.sh.in: Likewise.
8879         * build-aux/ldd.sh.in: Likewise.
8880         * build-aux/reloc-ldflags: Likewise.
8881         * build-aux/relocatable.sh.in: Likewise.
8882         * build-aux/x-to-1.in: Likewise.
8883         * check-module: Likewise.
8884         * config/srclistvars.sh: Likewise.
8885         * gnulib-tool: Likewise.
8886         * lib/acl-internal.h: Likewise.
8887         * lib/acl.c: Likewise.
8888         * lib/acl.h: Likewise.
8889         * lib/acl_entries.c: Likewise.
8890         * lib/areadlink-with-size.c: Likewise.
8891         * lib/areadlink.c: Likewise.
8892         * lib/areadlink.h: Likewise.
8893         * lib/argmatch.c: Likewise.
8894         * lib/argmatch.h: Likewise.
8895         * lib/argp-ba.c: Likewise.
8896         * lib/argp-eexst.c: Likewise.
8897         * lib/argp-fmtstream.c: Likewise.
8898         * lib/argp-fmtstream.h: Likewise.
8899         * lib/argp-fs-xinl.c: Likewise.
8900         * lib/argp-help.c: Likewise.
8901         * lib/argp-namefrob.h: Likewise.
8902         * lib/argp-parse.c: Likewise.
8903         * lib/argp-pin.c: Likewise.
8904         * lib/argp-pv.c: Likewise.
8905         * lib/argp-pvh.c: Likewise.
8906         * lib/argp-xinl.c: Likewise.
8907         * lib/argp.h: Likewise.
8908         * lib/at-func.c: Likewise.
8909         * lib/atanl.c: Likewise.
8910         * lib/backupfile.c: Likewise.
8911         * lib/backupfile.h: Likewise.
8912         * lib/basename.c: Likewise.
8913         * lib/binary-io.h: Likewise.
8914         * lib/byteswap.in.h: Likewise.
8915         * lib/c-stack.c: Likewise.
8916         * lib/c-stack.h: Likewise.
8917         * lib/c-strcasestr.c: Likewise.
8918         * lib/c-strcasestr.h: Likewise.
8919         * lib/c-strstr.c: Likewise.
8920         * lib/c-strstr.h: Likewise.
8921         * lib/c-strtod.c: Likewise.
8922         * lib/calloc.c: Likewise.
8923         * lib/canon-host.c: Likewise.
8924         * lib/canon-host.h: Likewise.
8925         * lib/canonicalize-lgpl.c: Likewise.
8926         * lib/canonicalize.c: Likewise.
8927         * lib/canonicalize.h: Likewise.
8928         * lib/ceil.c: Likewise.
8929         * lib/ceilf.c: Likewise.
8930         * lib/ceill.c: Likewise.
8931         * lib/chdir-long.c: Likewise.
8932         * lib/chdir-long.h: Likewise.
8933         * lib/chdir-safer.c: Likewise.
8934         * lib/chdir-safer.h: Likewise.
8935         * lib/chown.c: Likewise.
8936         * lib/classpath.c: Likewise.
8937         * lib/classpath.h: Likewise.
8938         * lib/clean-temp.c: Likewise.
8939         * lib/clean-temp.h: Likewise.
8940         * lib/cloexec.c: Likewise.
8941         * lib/close-stream.c: Likewise.
8942         * lib/closein.c: Likewise.
8943         * lib/closein.h: Likewise.
8944         * lib/closeout.c: Likewise.
8945         * lib/closeout.h: Likewise.
8946         * lib/concat-filename.c: Likewise.
8947         * lib/copy-file.c: Likewise.
8948         * lib/copy-file.h: Likewise.
8949         * lib/count-one-bits.h: Likewise.
8950         * lib/crc.c: Likewise.
8951         * lib/crc.h: Likewise.
8952         * lib/creat-safer.c: Likewise.
8953         * lib/csharpcomp.c: Likewise.
8954         * lib/csharpcomp.h: Likewise.
8955         * lib/csharpexec.c: Likewise.
8956         * lib/csharpexec.h: Likewise.
8957         * lib/cycle-check.c: Likewise.
8958         * lib/cycle-check.h: Likewise.
8959         * lib/diacrit.c: Likewise.
8960         * lib/diacrit.h: Likewise.
8961         * lib/diffseq.h: Likewise.
8962         * lib/dirchownmod.c: Likewise.
8963         * lib/dirent.in.h: Likewise.
8964         * lib/dirfd.c: Likewise.
8965         * lib/dirfd.h: Likewise.
8966         * lib/dirname.c: Likewise.
8967         * lib/dirname.h: Likewise.
8968         * lib/dummy.c: Likewise.
8969         * lib/dup-safer.c: Likewise.
8970         * lib/dup2.c: Likewise.
8971         * lib/eealloc.h: Likewise.
8972         * lib/error.c: Likewise.
8973         * lib/error.h: Likewise.
8974         * lib/euidaccess.c: Likewise.
8975         * lib/exclude.c: Likewise.
8976         * lib/exclude.h: Likewise.
8977         * lib/execute.c: Likewise.
8978         * lib/execute.h: Likewise.
8979         * lib/exitfail.c: Likewise.
8980         * lib/exitfail.h: Likewise.
8981         * lib/expl.c: Likewise.
8982         * lib/fatal-signal.c: Likewise.
8983         * lib/fatal-signal.h: Likewise.
8984         * lib/fbufmode.c: Likewise.
8985         * lib/fbufmode.h: Likewise.
8986         * lib/fchdir.c: Likewise.
8987         * lib/fchmodat.c: Likewise.
8988         * lib/fchownat.c: Likewise.
8989         * lib/fcntl--.h: Likewise.
8990         * lib/fcntl-safer.h: Likewise.
8991         * lib/fcntl.in.h: Likewise.
8992         * lib/fd-safer.c: Likewise.
8993         * lib/fflush.c: Likewise.
8994         * lib/file-has-acl.c: Likewise.
8995         * lib/file-set.c: Likewise.
8996         * lib/file-type.c: Likewise.
8997         * lib/file-type.h: Likewise.
8998         * lib/fileblocks.c: Likewise.
8999         * lib/filemode.c: Likewise.
9000         * lib/filemode.h: Likewise.
9001         * lib/filename.h: Likewise.
9002         * lib/filenamecat.c: Likewise.
9003         * lib/filenamecat.h: Likewise.
9004         * lib/findprog.c: Likewise.
9005         * lib/findprog.h: Likewise.
9006         * lib/float.in.h: Likewise.
9007         * lib/floor.c: Likewise.
9008         * lib/floorf.c: Likewise.
9009         * lib/floorl.c: Likewise.
9010         * lib/fopen-safer.c: Likewise.
9011         * lib/fopen.c: Likewise.
9012         * lib/fpending.c: Likewise.
9013         * lib/fpending.h: Likewise.
9014         * lib/fprintf.c: Likewise.
9015         * lib/fprintftime.h: Likewise.
9016         * lib/fpucw.h: Likewise.
9017         * lib/fpurge.c: Likewise.
9018         * lib/fpurge.h: Likewise.
9019         * lib/freadable.c: Likewise.
9020         * lib/freadable.h: Likewise.
9021         * lib/freadahead.c: Likewise.
9022         * lib/freadahead.h: Likewise.
9023         * lib/freading.c: Likewise.
9024         * lib/freading.h: Likewise.
9025         * lib/free.c: Likewise.
9026         * lib/freopen.c: Likewise.
9027         * lib/frexp.c: Likewise.
9028         * lib/frexpl.c: Likewise.
9029         * lib/fseek.c: Likewise.
9030         * lib/fseterr.c: Likewise.
9031         * lib/fseterr.h: Likewise.
9032         * lib/fstatat.c: Likewise.
9033         * lib/fstrcmp.c: Likewise.
9034         * lib/fstrcmp.h: Likewise.
9035         * lib/fsusage.c: Likewise.
9036         * lib/fsusage.h: Likewise.
9037         * lib/ftell.c: Likewise.
9038         * lib/ftello.c: Likewise.
9039         * lib/fts-cycle.c: Likewise.
9040         * lib/fts.c: Likewise.
9041         * lib/fts_.h: Likewise.
9042         * lib/full-read.c: Likewise.
9043         * lib/full-read.h: Likewise.
9044         * lib/full-write.c: Likewise.
9045         * lib/full-write.h: Likewise.
9046         * lib/fwritable.c: Likewise.
9047         * lib/fwritable.h: Likewise.
9048         * lib/fwriteerror.c: Likewise.
9049         * lib/fwriteerror.h: Likewise.
9050         * lib/fwriting.c: Likewise.
9051         * lib/fwriting.h: Likewise.
9052         * lib/gcd.c: Likewise.
9053         * lib/gcd.h: Likewise.
9054         * lib/getcwd.c: Likewise.
9055         * lib/getdate.h: Likewise.
9056         * lib/getdate.y: Likewise.
9057         * lib/getdomainname.c: Likewise.
9058         * lib/getdomainname.h: Likewise.
9059         * lib/getgroups.c: Likewise.
9060         * lib/gethostname.c: Likewise.
9061         * lib/gethrxtime.c: Likewise.
9062         * lib/gethrxtime.h: Likewise.
9063         * lib/getloadavg.c: Likewise.
9064         * lib/getndelim2.c: Likewise.
9065         * lib/getndelim2.h: Likewise.
9066         * lib/getnline.c: Likewise.
9067         * lib/getnline.h: Likewise.
9068         * lib/getopt.c: Likewise.
9069         * lib/getopt.in.h: Likewise.
9070         * lib/getopt1.c: Likewise.
9071         * lib/getopt_int.h: Likewise.
9072         * lib/getpagesize.h: Likewise.
9073         * lib/getsubopt.c: Likewise.
9074         * lib/gettime.c: Likewise.
9075         * lib/getugroups.c: Likewise.
9076         * lib/getugroups.h: Likewise.
9077         * lib/getusershell.c: Likewise.
9078         * lib/gl_anyavltree_list1.h: Likewise.
9079         * lib/gl_anyavltree_list2.h: Likewise.
9080         * lib/gl_anyhash_list1.h: Likewise.
9081         * lib/gl_anyhash_list2.h: Likewise.
9082         * lib/gl_anylinked_list1.h: Likewise.
9083         * lib/gl_anylinked_list2.h: Likewise.
9084         * lib/gl_anyrbtree_list1.h: Likewise.
9085         * lib/gl_anyrbtree_list2.h: Likewise.
9086         * lib/gl_anytree_list1.h: Likewise.
9087         * lib/gl_anytree_list2.h: Likewise.
9088         * lib/gl_anytree_oset.h: Likewise.
9089         * lib/gl_anytreehash_list1.h: Likewise.
9090         * lib/gl_anytreehash_list2.h: Likewise.
9091         * lib/gl_array_list.c: Likewise.
9092         * lib/gl_array_list.h: Likewise.
9093         * lib/gl_array_oset.c: Likewise.
9094         * lib/gl_array_oset.h: Likewise.
9095         * lib/gl_avltree_list.c: Likewise.
9096         * lib/gl_avltree_list.h: Likewise.
9097         * lib/gl_avltree_oset.c: Likewise.
9098         * lib/gl_avltree_oset.h: Likewise.
9099         * lib/gl_avltreehash_list.c: Likewise.
9100         * lib/gl_avltreehash_list.h: Likewise.
9101         * lib/gl_carray_list.c: Likewise.
9102         * lib/gl_carray_list.h: Likewise.
9103         * lib/gl_linked_list.c: Likewise.
9104         * lib/gl_linked_list.h: Likewise.
9105         * lib/gl_linkedhash_list.c: Likewise.
9106         * lib/gl_linkedhash_list.h: Likewise.
9107         * lib/gl_list.c: Likewise.
9108         * lib/gl_list.h: Likewise.
9109         * lib/gl_oset.c: Likewise.
9110         * lib/gl_oset.h: Likewise.
9111         * lib/gl_rbtree_list.c: Likewise.
9112         * lib/gl_rbtree_list.h: Likewise.
9113         * lib/gl_rbtree_oset.c: Likewise.
9114         * lib/gl_rbtree_oset.h: Likewise.
9115         * lib/gl_rbtreehash_list.c: Likewise.
9116         * lib/gl_rbtreehash_list.h: Likewise.
9117         * lib/gl_sublist.c: Likewise.
9118         * lib/gl_sublist.h: Likewise.
9119         * lib/group-member.c: Likewise.
9120         * lib/group-member.h: Likewise.
9121         * lib/hard-locale.c: Likewise.
9122         * lib/hard-locale.h: Likewise.
9123         * lib/hash-pjw.c: Likewise.
9124         * lib/hash-pjw.h: Likewise.
9125         * lib/hash-triple.c: Likewise.
9126         * lib/hash.c: Likewise.
9127         * lib/hash.h: Likewise.
9128         * lib/human.c: Likewise.
9129         * lib/human.h: Likewise.
9130         * lib/i-ring.c: Likewise.
9131         * lib/i-ring.h: Likewise.
9132         * lib/idcache.c: Likewise.
9133         * lib/imaxabs.c: Likewise.
9134         * lib/imaxdiv.c: Likewise.
9135         * lib/inet_pton.c: Likewise.
9136         * lib/inet_pton.h: Likewise.
9137         * lib/intprops.h: Likewise.
9138         * lib/inttostr.c: Likewise.
9139         * lib/inttostr.h: Likewise.
9140         * lib/inttypes.in.h: Likewise.
9141         * lib/isapipe.c: Likewise.
9142         * lib/isdir.c: Likewise.
9143         * lib/isnan.c: Likewise.
9144         * lib/isnan.h: Likewise.
9145         * lib/isnanf.c: Likewise.
9146         * lib/isnanf.h: Likewise.
9147         * lib/isnanl-nolibm.h: Likewise.
9148         * lib/isnanl.c: Likewise.
9149         * lib/isnanl.h: Likewise.
9150         * lib/javacomp.c: Likewise.
9151         * lib/javacomp.h: Likewise.
9152         * lib/javaexec.c: Likewise.
9153         * lib/javaexec.h: Likewise.
9154         * lib/javaversion.c: Likewise.
9155         * lib/javaversion.h: Likewise.
9156         * lib/javaversion.java: Likewise.
9157         * lib/lbrkprop.h: Likewise.
9158         * lib/lchmod.h: Likewise.
9159         * lib/lchown.c: Likewise.
9160         * lib/ldexpl.c: Likewise.
9161         * lib/linebreak.c: Likewise.
9162         * lib/linebreak.h: Likewise.
9163         * lib/linebuffer.c: Likewise.
9164         * lib/linebuffer.h: Likewise.
9165         * lib/locale.in.h: Likewise.
9166         * lib/logl.c: Likewise.
9167         * lib/long-options.c: Likewise.
9168         * lib/long-options.h: Likewise.
9169         * lib/lstat.c: Likewise.
9170         * lib/lstat.h: Likewise.
9171         * lib/math.in.h: Likewise.
9172         * lib/mbchar.c: Likewise.
9173         * lib/mbchar.h: Likewise.
9174         * lib/mbfile.h: Likewise.
9175         * lib/mbiter.h: Likewise.
9176         * lib/mbscasecmp.c: Likewise.
9177         * lib/mbscasestr.c: Likewise.
9178         * lib/mbschr.c: Likewise.
9179         * lib/mbscspn.c: Likewise.
9180         * lib/mbslen.c: Likewise.
9181         * lib/mbsncasecmp.c: Likewise.
9182         * lib/mbsnlen.c: Likewise.
9183         * lib/mbspbrk.c: Likewise.
9184         * lib/mbspcasecmp.c: Likewise.
9185         * lib/mbsrchr.c: Likewise.
9186         * lib/mbssep.c: Likewise.
9187         * lib/mbsspn.c: Likewise.
9188         * lib/mbsstr.c: Likewise.
9189         * lib/mbstok_r.c: Likewise.
9190         * lib/mbswidth.c: Likewise.
9191         * lib/mbswidth.h: Likewise.
9192         * lib/mbuiter.h: Likewise.
9193         * lib/memcasecmp.c: Likewise.
9194         * lib/memcasecmp.h: Likewise.
9195         * lib/memchr.c: Likewise.
9196         * lib/memcmp.c: Likewise.
9197         * lib/memcoll.c: Likewise.
9198         * lib/memcoll.h: Likewise.
9199         * lib/memcpy.c: Likewise.
9200         * lib/memrchr.c: Likewise.
9201         * lib/mkancesdirs.c: Likewise.
9202         * lib/mkdir-p.c: Likewise.
9203         * lib/mkdir-p.h: Likewise.
9204         * lib/mkdir.c: Likewise.
9205         * lib/mkdirat.c: Likewise.
9206         * lib/mkdtemp.c: Likewise.
9207         * lib/mkstemp-safer.c: Likewise.
9208         * lib/mkstemp.c: Likewise.
9209         * lib/modechange.c: Likewise.
9210         * lib/modechange.h: Likewise.
9211         * lib/mountlist.c: Likewise.
9212         * lib/mountlist.h: Likewise.
9213         * lib/mpsort.c: Likewise.
9214         * lib/nanosleep.c: Likewise.
9215         * lib/obstack.c: Likewise.
9216         * lib/obstack.h: Likewise.
9217         * lib/open-safer.c: Likewise.
9218         * lib/open.c: Likewise.
9219         * lib/openat-die.c: Likewise.
9220         * lib/openat-priv.h: Likewise.
9221         * lib/openat-proc.c: Likewise.
9222         * lib/openat.c: Likewise.
9223         * lib/openat.h: Likewise.
9224         * lib/pagealign_alloc.c: Likewise.
9225         * lib/pagealign_alloc.h: Likewise.
9226         * lib/physmem.c: Likewise.
9227         * lib/physmem.h: Likewise.
9228         * lib/pipe-safer.c: Likewise.
9229         * lib/pipe.c: Likewise.
9230         * lib/pipe.h: Likewise.
9231         * lib/posixtm.c: Likewise.
9232         * lib/posixtm.h: Likewise.
9233         * lib/posixver.c: Likewise.
9234         * lib/printf-frexp.c: Likewise.
9235         * lib/printf-frexp.h: Likewise.
9236         * lib/printf-frexpl.c: Likewise.
9237         * lib/printf-frexpl.h: Likewise.
9238         * lib/printf.c: Likewise.
9239         * lib/progname.c: Likewise.
9240         * lib/progname.h: Likewise.
9241         * lib/progreloc.c: Likewise.
9242         * lib/putenv.c: Likewise.
9243         * lib/quote.c: Likewise.
9244         * lib/quote.h: Likewise.
9245         * lib/quotearg.c: Likewise.
9246         * lib/quotearg.h: Likewise.
9247         * lib/raise.c: Likewise.
9248         * lib/readline.c: Likewise.
9249         * lib/readline.h: Likewise.
9250         * lib/readlink.c: Likewise.
9251         * lib/readtokens.c: Likewise.
9252         * lib/readtokens.h: Likewise.
9253         * lib/readtokens0.c: Likewise.
9254         * lib/readtokens0.h: Likewise.
9255         * lib/readutmp.c: Likewise.
9256         * lib/readutmp.h: Likewise.
9257         * lib/realloc.c: Likewise.
9258         * lib/relocwrapper.c: Likewise.
9259         * lib/rename-dest-slash.c: Likewise.
9260         * lib/rename.c: Likewise.
9261         * lib/rmdir.c: Likewise.
9262         * lib/rpmatch.c: Likewise.
9263         * lib/safe-read.c: Likewise.
9264         * lib/safe-read.h: Likewise.
9265         * lib/safe-write.c: Likewise.
9266         * lib/safe-write.h: Likewise.
9267         * lib/same-inode.h: Likewise.
9268         * lib/same.c: Likewise.
9269         * lib/same.h: Likewise.
9270         * lib/save-cwd.c: Likewise.
9271         * lib/save-cwd.h: Likewise.
9272         * lib/savedir.c: Likewise.
9273         * lib/savedir.h: Likewise.
9274         * lib/savewd.c: Likewise.
9275         * lib/savewd.h: Likewise.
9276         * lib/search.in.h: Likewise.
9277         * lib/setenv.c: Likewise.
9278         * lib/setenv.h: Likewise.
9279         * lib/settime.c: Likewise.
9280         * lib/sh-quote.c: Likewise.
9281         * lib/sh-quote.h: Likewise.
9282         * lib/sig2str.c: Likewise.
9283         * lib/sig2str.h: Likewise.
9284         * lib/signal.in.h: Likewise.
9285         * lib/signbitd.c: Likewise.
9286         * lib/signbitf.c: Likewise.
9287         * lib/signbitl.c: Likewise.
9288         * lib/sigprocmask.c: Likewise.
9289         * lib/sincosl.c: Likewise.
9290         * lib/sleep.c: Likewise.
9291         * lib/sprintf.c: Likewise.
9292         * lib/sqrtl.c: Likewise.
9293         * lib/stat-time.h: Likewise.
9294         * lib/stdio--.h: Likewise.
9295         * lib/stdio-safer.h: Likewise.
9296         * lib/stdlib--.h: Likewise.
9297         * lib/stdlib-safer.h: Likewise.
9298         * lib/stdlib.in.h: Likewise.
9299         * lib/stpcpy.c: Likewise.
9300         * lib/stpncpy.c: Likewise.
9301         * lib/strchrnul.c: Likewise.
9302         * lib/strcspn.c: Likewise.
9303         * lib/strerror.c: Likewise.
9304         * lib/strftime.c: Likewise.
9305         * lib/strftime.h: Likewise.
9306         * lib/striconveh.c: Likewise.
9307         * lib/striconveh.h: Likewise.
9308         * lib/striconveha.c: Likewise.
9309         * lib/striconveha.h: Likewise.
9310         * lib/stripslash.c: Likewise.
9311         * lib/strnlen1.c: Likewise.
9312         * lib/strnlen1.h: Likewise.
9313         * lib/strtod.c: Likewise.
9314         * lib/strtoimax.c: Likewise.
9315         * lib/strtok_r.c: Likewise.
9316         * lib/strtol.c: Likewise.
9317         * lib/strtoll.c: Likewise.
9318         * lib/strtoul.c: Likewise.
9319         * lib/strtoull.c: Likewise.
9320         * lib/sysexits.in.h: Likewise.
9321         * lib/tempname.c: Likewise.
9322         * lib/tempname.h: Likewise.
9323         * lib/timespec.h: Likewise.
9324         * lib/tls.c: Likewise.
9325         * lib/tls.h: Likewise.
9326         * lib/tmpdir.c: Likewise.
9327         * lib/tmpdir.h: Likewise.
9328         * lib/tmpfile-safer.c: Likewise.
9329         * lib/tmpfile.c: Likewise.
9330         * lib/trigl.c: Likewise.
9331         * lib/trigl.h: Likewise.
9332         * lib/trim.c: Likewise.
9333         * lib/trim.h: Likewise.
9334         * lib/trunc.c: Likewise.
9335         * lib/truncf.c: Likewise.
9336         * lib/truncl.c: Likewise.
9337         * lib/tsearch.c: Likewise.
9338         * lib/unicodeio.c: Likewise.
9339         * lib/unicodeio.h: Likewise.
9340         * lib/unistd--.h: Likewise.
9341         * lib/unistd-safer.h: Likewise.
9342         * lib/unistdio/ulc-fprintf.c: Likewise.
9343         * lib/unistdio/ulc-vfprintf.c: Likewise.
9344         * lib/unlinkdir.c: Likewise.
9345         * lib/unlinkdir.h: Likewise.
9346         * lib/unlocked-io.h: Likewise.
9347         * lib/unsetenv.c: Likewise.
9348         * lib/userspec.c: Likewise.
9349         * lib/utime.c: Likewise.
9350         * lib/utimecmp.c: Likewise.
9351         * lib/utimecmp.h: Likewise.
9352         * lib/utimens.c: Likewise.
9353         * lib/verify.h: Likewise.
9354         * lib/verror.c: Likewise.
9355         * lib/verror.h: Likewise.
9356         * lib/version-etc-fsf.c: Likewise.
9357         * lib/version-etc.c: Likewise.
9358         * lib/version-etc.h: Likewise.
9359         * lib/vfprintf.c: Likewise.
9360         * lib/vprintf.c: Likewise.
9361         * lib/vsprintf.c: Likewise.
9362         * lib/w32spawn.h: Likewise.
9363         * lib/wait-process.c: Likewise.
9364         * lib/wait-process.h: Likewise.
9365         * lib/wcwidth.c: Likewise.
9366         * lib/write-any-file.c: Likewise.
9367         * lib/xalloc-die.c: Likewise.
9368         * lib/xalloc.h: Likewise.
9369         * lib/xasprintf.c: Likewise.
9370         * lib/xgetcwd.c: Likewise.
9371         * lib/xgetcwd.h: Likewise.
9372         * lib/xgetdomainname.c: Likewise.
9373         * lib/xgetdomainname.h: Likewise.
9374         * lib/xgethostname.c: Likewise.
9375         * lib/xmalloc.c: Likewise.
9376         * lib/xmalloca.c: Likewise.
9377         * lib/xmalloca.h: Likewise.
9378         * lib/xmemcoll.c: Likewise.
9379         * lib/xnanosleep.c: Likewise.
9380         * lib/xreadlink.c: Likewise.
9381         * lib/xreadlink.h: Likewise.
9382         * lib/xsetenv.c: Likewise.
9383         * lib/xsetenv.h: Likewise.
9384         * lib/xstriconv.c: Likewise.
9385         * lib/xstriconv.h: Likewise.
9386         * lib/xstrndup.c: Likewise.
9387         * lib/xstrndup.h: Likewise.
9388         * lib/xstrtod.c: Likewise.
9389         * lib/xstrtod.h: Likewise.
9390         * lib/xstrtol-error.c: Likewise.
9391         * lib/xstrtol.c: Likewise.
9392         * lib/xstrtol.h: Likewise.
9393         * lib/xtime.h: Likewise.
9394         * lib/xvasprintf.c: Likewise.
9395         * lib/xvasprintf.h: Likewise.
9396         * lib/yesno.c: Likewise.
9397         * lib/yesno.h: Likewise.
9398         * posix-modules: Likewise.
9399         * tests/test-alloca-opt.c: Likewise.
9400         * tests/test-arcfour.c: Likewise.
9401         * tests/test-arctwo.c: Likewise.
9402         * tests/test-argmatch.c: Likewise.
9403         * tests/test-argp-2.sh: Likewise.
9404         * tests/test-argp.c: Likewise.
9405         * tests/test-arpa_inet.c: Likewise.
9406         * tests/test-array_list.c: Likewise.
9407         * tests/test-array_oset.c: Likewise.
9408         * tests/test-atexit.c: Likewise.
9409         * tests/test-avltree_list.c: Likewise.
9410         * tests/test-avltree_oset.c: Likewise.
9411         * tests/test-avltreehash_list.c: Likewise.
9412         * tests/test-base64.c: Likewise.
9413         * tests/test-binary-io.c: Likewise.
9414         * tests/test-byteswap.c: Likewise.
9415         * tests/test-c-ctype.c: Likewise.
9416         * tests/test-c-strcasecmp.c: Likewise.
9417         * tests/test-c-strcasestr.c: Likewise.
9418         * tests/test-c-strncasecmp.c: Likewise.
9419         * tests/test-c-strstr.c: Likewise.
9420         * tests/test-canonicalize-lgpl.c: Likewise.
9421         * tests/test-canonicalize.c: Likewise.
9422         * tests/test-carray_list.c: Likewise.
9423         * tests/test-ceilf.c: Likewise.
9424         * tests/test-ceill.c: Likewise.
9425         * tests/test-count-one-bits.c: Likewise.
9426         * tests/test-crc.c: Likewise.
9427         * tests/test-dirname.c: Likewise.
9428         * tests/test-fbufmode.c: Likewise.
9429         * tests/test-fcntl.c: Likewise.
9430         * tests/test-fflush.c: Likewise.
9431         * tests/test-floorf.c: Likewise.
9432         * tests/test-floorl.c: Likewise.
9433         * tests/test-fopen.c: Likewise.
9434         * tests/test-fprintf-posix.c: Likewise.
9435         * tests/test-fprintf-posix.h: Likewise.
9436         * tests/test-fpurge.c: Likewise.
9437         * tests/test-freadable.c: Likewise.
9438         * tests/test-freadahead.c: Likewise.
9439         * tests/test-freading.c: Likewise.
9440         * tests/test-freopen.c: Likewise.
9441         * tests/test-frexp.c: Likewise.
9442         * tests/test-frexpl.c: Likewise.
9443         * tests/test-fseek.c: Likewise.
9444         * tests/test-fseeko.c: Likewise.
9445         * tests/test-fseterr.c: Likewise.
9446         * tests/test-fstrcmp.c: Likewise.
9447         * tests/test-ftell.c: Likewise.
9448         * tests/test-ftello.c: Likewise.
9449         * tests/test-fwritable.c: Likewise.
9450         * tests/test-fwriting.c: Likewise.
9451         * tests/test-getaddrinfo.c: Likewise.
9452         * tests/test-getpass.c: Likewise.
9453         * tests/test-gettimeofday.c: Likewise.
9454         * tests/test-hmac-md5.c: Likewise.
9455         * tests/test-hmac-sha1.c: Likewise.
9456         * tests/test-iconv.c: Likewise.
9457         * tests/test-iconvme.c: Likewise.
9458         * tests/test-inttypes.c: Likewise.
9459         * tests/test-isnan.c: Likewise.
9460         * tests/test-isnanf.c: Likewise.
9461         * tests/test-isnanl-nolibm.c: Likewise.
9462         * tests/test-isnanl.c: Likewise.
9463         * tests/test-isnanl.h: Likewise.
9464         * tests/test-ldexpl.c: Likewise.
9465         * tests/test-linked_list.c: Likewise.
9466         * tests/test-linkedhash_list.c: Likewise.
9467         * tests/test-locale.c: Likewise.
9468         * tests/test-localename.c: Likewise.
9469         * tests/test-lock.c: Likewise.
9470         * tests/test-lseek.c: Likewise.
9471         * tests/test-malloca.c: Likewise.
9472         * tests/test-math.c: Likewise.
9473         * tests/test-mbscasecmp.c: Likewise.
9474         * tests/test-mbscasestr1.c: Likewise.
9475         * tests/test-mbscasestr2.c: Likewise.
9476         * tests/test-mbscasestr3.c: Likewise.
9477         * tests/test-mbscasestr4.c: Likewise.
9478         * tests/test-mbschr.c: Likewise.
9479         * tests/test-mbscspn.c: Likewise.
9480         * tests/test-mbsncasecmp.c: Likewise.
9481         * tests/test-mbspbrk.c: Likewise.
9482         * tests/test-mbspcasecmp.c: Likewise.
9483         * tests/test-mbsrchr.c: Likewise.
9484         * tests/test-mbsspn.c: Likewise.
9485         * tests/test-mbsstr1.c: Likewise.
9486         * tests/test-mbsstr2.c: Likewise.
9487         * tests/test-mbsstr3.c: Likewise.
9488         * tests/test-md5.c: Likewise.
9489         * tests/test-memmem.c: Likewise.
9490         * tests/test-netinet_in.c: Likewise.
9491         * tests/test-open.c: Likewise.
9492         * tests/test-printf-frexp.c: Likewise.
9493         * tests/test-printf-frexpl.c: Likewise.
9494         * tests/test-printf-posix.c: Likewise.
9495         * tests/test-printf-posix.h: Likewise.
9496         * tests/test-rbtree_list.c: Likewise.
9497         * tests/test-rbtree_oset.c: Likewise.
9498         * tests/test-rbtreehash_list.c: Likewise.
9499         * tests/test-read-file.c: Likewise.
9500         * tests/test-rijndael.c: Likewise.
9501         * tests/test-search.c: Likewise.
9502         * tests/test-signbit.c: Likewise.
9503         * tests/test-sleep.c: Likewise.
9504         * tests/test-snprintf-posix.c: Likewise.
9505         * tests/test-snprintf-posix.h: Likewise.
9506         * tests/test-snprintf.c: Likewise.
9507         * tests/test-sprintf-posix.c: Likewise.
9508         * tests/test-sprintf-posix.h: Likewise.
9509         * tests/test-stat-time.c: Likewise.
9510         * tests/test-stdbool.c: Likewise.
9511         * tests/test-stdint.c: Likewise.
9512         * tests/test-stdio.c: Likewise.
9513         * tests/test-stdlib.c: Likewise.
9514         * tests/test-stpncpy.c: Likewise.
9515         * tests/test-strcasestr.c: Likewise.
9516         * tests/test-striconv.c: Likewise.
9517         * tests/test-striconveh.c: Likewise.
9518         * tests/test-striconveha.c: Likewise.
9519         * tests/test-string.c: Likewise.
9520         * tests/test-sys_select.c: Likewise.
9521         * tests/test-sys_socket.c: Likewise.
9522         * tests/test-sys_stat.c: Likewise.
9523         * tests/test-sys_time.c: Likewise.
9524         * tests/test-sysexits.c: Likewise.
9525         * tests/test-time.c: Likewise.
9526         * tests/test-tls.c: Likewise.
9527         * tests/test-trunc.c: Likewise.
9528         * tests/test-truncf.c: Likewise.
9529         * tests/test-truncl.c: Likewise.
9530         * tests/test-unistd.c: Likewise.
9531         * tests/test-vasnprintf-posix.c: Likewise.
9532         * tests/test-vasnprintf-posix2.c: Likewise.
9533         * tests/test-vasnprintf.c: Likewise.
9534         * tests/test-vasprintf-posix.c: Likewise.
9535         * tests/test-vasprintf.c: Likewise.
9536         * tests/test-verify.c: Likewise.
9537         * tests/test-vfprintf-posix.c: Likewise.
9538         * tests/test-vprintf-posix.c: Likewise.
9539         * tests/test-vsnprintf-posix.c: Likewise.
9540         * tests/test-vsnprintf.c: Likewise.
9541         * tests/test-vsprintf-posix.c: Likewise.
9542         * tests/test-wchar.c: Likewise.
9543         * tests/test-wctype.c: Likewise.
9544         * tests/test-wcwidth.c: Likewise.
9545         * tests/test-xstrtol.c: Likewise.
9546         * tests/test-xvasprintf.c: Likewise.
9547         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9548         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9549         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9550         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9551         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9552         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9553         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9554         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9555         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9556         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9557         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9558         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9559         * tests/uniname/test-uninames.c: Likewise.
9560         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9561         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9562         * tests/unistdio/test-u16-printf1.h: Likewise.
9563         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9564         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9565         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9566         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9567         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9568         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9569         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9570         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9571         * tests/unistdio/test-u32-printf1.h: Likewise.
9572         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9573         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9574         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9575         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9576         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9577         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9578         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9579         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9580         * tests/unistdio/test-u8-printf1.h: Likewise.
9581         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9582         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9583         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9584         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9585         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9586         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9587         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9588         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9589         * tests/unistdio/test-ulc-printf1.h: Likewise.
9590         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9591         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9592         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9593         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9594         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9595         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9596         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9597         * tests/uniwidth/test-u16-width.c: Likewise.
9598         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9599         * tests/uniwidth/test-u32-width.c: Likewise.
9600         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9601         * tests/uniwidth/test-u8-width.c: Likewise.
9602         * tests/uniwidth/test-uc_width.c: Likewise.
9603         * config/srclist-update: Likewise.
9604         (fixlicense): Update to GPLv3+.
9605
9606         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9607         * tests/test-tsearch.c: Change copyright notice.
9608
9609         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9610         * lib/c-strcaseeq.h: Change copyright notice.
9611         * lib/streq.h: Likewise.
9612         * lib/uniconv.h: Likewise.
9613         * lib/uniconv/u-conv-from-enc.h: Likewise.
9614         * lib/uniconv/u-conv-to-enc.h: Likewise.
9615         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9616         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9617         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9618         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9619         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9620         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9621         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9622         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9623         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9624         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9625         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9626         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9627         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9628         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9629         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9630         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9631         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9632         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9633         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9634         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9635         * lib/uniname.h: Likewise.
9636         * lib/uniname/uniname.c: Likewise.
9637         * lib/unistdio.h: Likewise.
9638         * lib/unistdio/u-asnprintf.h: Likewise.
9639         * lib/unistdio/u-asprintf.h: Likewise.
9640         * lib/unistdio/u-printf-args.c: Likewise.
9641         * lib/unistdio/u-printf-args.h: Likewise.
9642         * lib/unistdio/u-printf-parse.h: Likewise.
9643         * lib/unistdio/u-snprintf.h: Likewise.
9644         * lib/unistdio/u-sprintf.h: Likewise.
9645         * lib/unistdio/u-vasprintf.h: Likewise.
9646         * lib/unistdio/u-vsnprintf.h: Likewise.
9647         * lib/unistdio/u-vsprintf.h: Likewise.
9648         * lib/unistdio/u16-asnprintf.c: Likewise.
9649         * lib/unistdio/u16-asprintf.c: Likewise.
9650         * lib/unistdio/u16-printf-parse.c: Likewise.
9651         * lib/unistdio/u16-snprintf.c: Likewise.
9652         * lib/unistdio/u16-sprintf.c: Likewise.
9653         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9654         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9655         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9656         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9657         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9658         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9659         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9660         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9661         * lib/unistdio/u16-vasnprintf.c: Likewise.
9662         * lib/unistdio/u16-vasprintf.c: Likewise.
9663         * lib/unistdio/u16-vsnprintf.c: Likewise.
9664         * lib/unistdio/u16-vsprintf.c: Likewise.
9665         * lib/unistdio/u32-asnprintf.c: Likewise.
9666         * lib/unistdio/u32-asprintf.c: Likewise.
9667         * lib/unistdio/u32-printf-parse.c: Likewise.
9668         * lib/unistdio/u32-snprintf.c: Likewise.
9669         * lib/unistdio/u32-sprintf.c: Likewise.
9670         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9671         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9672         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9673         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9674         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9675         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9676         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9677         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9678         * lib/unistdio/u32-vasnprintf.c: Likewise.
9679         * lib/unistdio/u32-vasprintf.c: Likewise.
9680         * lib/unistdio/u32-vsnprintf.c: Likewise.
9681         * lib/unistdio/u32-vsprintf.c: Likewise.
9682         * lib/unistdio/u8-asnprintf.c: Likewise.
9683         * lib/unistdio/u8-asprintf.c: Likewise.
9684         * lib/unistdio/u8-printf-parse.c: Likewise.
9685         * lib/unistdio/u8-snprintf.c: Likewise.
9686         * lib/unistdio/u8-sprintf.c: Likewise.
9687         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9688         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9689         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9690         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9691         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9692         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9693         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9694         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9695         * lib/unistdio/u8-vasnprintf.c: Likewise.
9696         * lib/unistdio/u8-vasprintf.c: Likewise.
9697         * lib/unistdio/u8-vsnprintf.c: Likewise.
9698         * lib/unistdio/u8-vsprintf.c: Likewise.
9699         * lib/unistdio/ulc-asnprintf.c: Likewise.
9700         * lib/unistdio/ulc-asprintf.c: Likewise.
9701         * lib/unistdio/ulc-printf-parse.c: Likewise.
9702         * lib/unistdio/ulc-snprintf.c: Likewise.
9703         * lib/unistdio/ulc-sprintf.c: Likewise.
9704         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9705         * lib/unistdio/ulc-vasprintf.c: Likewise.
9706         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9707         * lib/unistdio/ulc-vsprintf.c: Likewise.
9708         * lib/unistr.h: Likewise.
9709         * lib/unistr/u-cpy-alloc.h: Likewise.
9710         * lib/unistr/u-cpy.h: Likewise.
9711         * lib/unistr/u-endswith.h: Likewise.
9712         * lib/unistr/u-move.h: Likewise.
9713         * lib/unistr/u-set.h: Likewise.
9714         * lib/unistr/u-startswith.h: Likewise.
9715         * lib/unistr/u-stpcpy.h: Likewise.
9716         * lib/unistr/u-stpncpy.h: Likewise.
9717         * lib/unistr/u-strcat.h: Likewise.
9718         * lib/unistr/u-strcpy.h: Likewise.
9719         * lib/unistr/u-strcspn.h: Likewise.
9720         * lib/unistr/u-strdup.h: Likewise.
9721         * lib/unistr/u-strlen.h: Likewise.
9722         * lib/unistr/u-strncat.h: Likewise.
9723         * lib/unistr/u-strncpy.h: Likewise.
9724         * lib/unistr/u-strnlen.h: Likewise.
9725         * lib/unistr/u-strpbrk.h: Likewise.
9726         * lib/unistr/u-strspn.h: Likewise.
9727         * lib/unistr/u-strstr.h: Likewise.
9728         * lib/unistr/u-strtok.h: Likewise.
9729         * lib/unistr/u16-check.c: Likewise.
9730         * lib/unistr/u16-chr.c: Likewise.
9731         * lib/unistr/u16-cmp.c: Likewise.
9732         * lib/unistr/u16-cpy-alloc.c: Likewise.
9733         * lib/unistr/u16-cpy.c: Likewise.
9734         * lib/unistr/u16-endswith.c: Likewise.
9735         * lib/unistr/u16-mblen.c: Likewise.
9736         * lib/unistr/u16-mbsnlen.c: Likewise.
9737         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9738         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9739         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9740         * lib/unistr/u16-mbtouc.c: Likewise.
9741         * lib/unistr/u16-mbtoucr.c: Likewise.
9742         * lib/unistr/u16-move.c: Likewise.
9743         * lib/unistr/u16-next.c: Likewise.
9744         * lib/unistr/u16-prev.c: Likewise.
9745         * lib/unistr/u16-set.c: Likewise.
9746         * lib/unistr/u16-startswith.c: Likewise.
9747         * lib/unistr/u16-stpcpy.c: Likewise.
9748         * lib/unistr/u16-stpncpy.c: Likewise.
9749         * lib/unistr/u16-strcat.c: Likewise.
9750         * lib/unistr/u16-strchr.c: Likewise.
9751         * lib/unistr/u16-strcmp.c: Likewise.
9752         * lib/unistr/u16-strcpy.c: Likewise.
9753         * lib/unistr/u16-strcspn.c: Likewise.
9754         * lib/unistr/u16-strdup.c: Likewise.
9755         * lib/unistr/u16-strlen.c: Likewise.
9756         * lib/unistr/u16-strmblen.c: Likewise.
9757         * lib/unistr/u16-strmbtouc.c: Likewise.
9758         * lib/unistr/u16-strncat.c: Likewise.
9759         * lib/unistr/u16-strncmp.c: Likewise.
9760         * lib/unistr/u16-strncpy.c: Likewise.
9761         * lib/unistr/u16-strnlen.c: Likewise.
9762         * lib/unistr/u16-strpbrk.c: Likewise.
9763         * lib/unistr/u16-strrchr.c: Likewise.
9764         * lib/unistr/u16-strspn.c: Likewise.
9765         * lib/unistr/u16-strstr.c: Likewise.
9766         * lib/unistr/u16-strtok.c: Likewise.
9767         * lib/unistr/u16-to-u32.c: Likewise.
9768         * lib/unistr/u16-to-u8.c: Likewise.
9769         * lib/unistr/u16-uctomb-aux.c: Likewise.
9770         * lib/unistr/u16-uctomb.c: Likewise.
9771         * lib/unistr/u32-check.c: Likewise.
9772         * lib/unistr/u32-chr.c: Likewise.
9773         * lib/unistr/u32-cmp.c: Likewise.
9774         * lib/unistr/u32-cpy-alloc.c: Likewise.
9775         * lib/unistr/u32-cpy.c: Likewise.
9776         * lib/unistr/u32-endswith.c: Likewise.
9777         * lib/unistr/u32-mblen.c: Likewise.
9778         * lib/unistr/u32-mbsnlen.c: Likewise.
9779         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9780         * lib/unistr/u32-mbtouc.c: Likewise.
9781         * lib/unistr/u32-mbtoucr.c: Likewise.
9782         * lib/unistr/u32-move.c: Likewise.
9783         * lib/unistr/u32-next.c: Likewise.
9784         * lib/unistr/u32-prev.c: Likewise.
9785         * lib/unistr/u32-set.c: Likewise.
9786         * lib/unistr/u32-startswith.c: Likewise.
9787         * lib/unistr/u32-stpcpy.c: Likewise.
9788         * lib/unistr/u32-stpncpy.c: Likewise.
9789         * lib/unistr/u32-strcat.c: Likewise.
9790         * lib/unistr/u32-strchr.c: Likewise.
9791         * lib/unistr/u32-strcmp.c: Likewise.
9792         * lib/unistr/u32-strcpy.c: Likewise.
9793         * lib/unistr/u32-strcspn.c: Likewise.
9794         * lib/unistr/u32-strdup.c: Likewise.
9795         * lib/unistr/u32-strlen.c: Likewise.
9796         * lib/unistr/u32-strmblen.c: Likewise.
9797         * lib/unistr/u32-strmbtouc.c: Likewise.
9798         * lib/unistr/u32-strncat.c: Likewise.
9799         * lib/unistr/u32-strncmp.c: Likewise.
9800         * lib/unistr/u32-strncpy.c: Likewise.
9801         * lib/unistr/u32-strnlen.c: Likewise.
9802         * lib/unistr/u32-strpbrk.c: Likewise.
9803         * lib/unistr/u32-strrchr.c: Likewise.
9804         * lib/unistr/u32-strspn.c: Likewise.
9805         * lib/unistr/u32-strstr.c: Likewise.
9806         * lib/unistr/u32-strtok.c: Likewise.
9807         * lib/unistr/u32-to-u16.c: Likewise.
9808         * lib/unistr/u32-to-u8.c: Likewise.
9809         * lib/unistr/u32-uctomb.c: Likewise.
9810         * lib/unistr/u8-check.c: Likewise.
9811         * lib/unistr/u8-chr.c: Likewise.
9812         * lib/unistr/u8-cmp.c: Likewise.
9813         * lib/unistr/u8-cpy-alloc.c: Likewise.
9814         * lib/unistr/u8-cpy.c: Likewise.
9815         * lib/unistr/u8-endswith.c: Likewise.
9816         * lib/unistr/u8-mblen.c: Likewise.
9817         * lib/unistr/u8-mbsnlen.c: Likewise.
9818         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9819         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9820         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9821         * lib/unistr/u8-mbtouc.c: Likewise.
9822         * lib/unistr/u8-mbtoucr.c: Likewise.
9823         * lib/unistr/u8-move.c: Likewise.
9824         * lib/unistr/u8-next.c: Likewise.
9825         * lib/unistr/u8-prev.c: Likewise.
9826         * lib/unistr/u8-set.c: Likewise.
9827         * lib/unistr/u8-startswith.c: Likewise.
9828         * lib/unistr/u8-stpcpy.c: Likewise.
9829         * lib/unistr/u8-stpncpy.c: Likewise.
9830         * lib/unistr/u8-strcat.c: Likewise.
9831         * lib/unistr/u8-strchr.c: Likewise.
9832         * lib/unistr/u8-strcmp.c: Likewise.
9833         * lib/unistr/u8-strcpy.c: Likewise.
9834         * lib/unistr/u8-strcspn.c: Likewise.
9835         * lib/unistr/u8-strdup.c: Likewise.
9836         * lib/unistr/u8-strlen.c: Likewise.
9837         * lib/unistr/u8-strmblen.c: Likewise.
9838         * lib/unistr/u8-strmbtouc.c: Likewise.
9839         * lib/unistr/u8-strncat.c: Likewise.
9840         * lib/unistr/u8-strncmp.c: Likewise.
9841         * lib/unistr/u8-strncpy.c: Likewise.
9842         * lib/unistr/u8-strnlen.c: Likewise.
9843         * lib/unistr/u8-strpbrk.c: Likewise.
9844         * lib/unistr/u8-strrchr.c: Likewise.
9845         * lib/unistr/u8-strspn.c: Likewise.
9846         * lib/unistr/u8-strstr.c: Likewise.
9847         * lib/unistr/u8-strtok.c: Likewise.
9848         * lib/unistr/u8-to-u16.c: Likewise.
9849         * lib/unistr/u8-to-u32.c: Likewise.
9850         * lib/unistr/u8-uctomb-aux.c: Likewise.
9851         * lib/unistr/u8-uctomb.c: Likewise.
9852         * lib/unitypes.h: Likewise.
9853         * lib/uniwidth.h: Likewise.
9854         * lib/uniwidth/cjk.h: Likewise.
9855         * lib/uniwidth/u16-strwidth.c: Likewise.
9856         * lib/uniwidth/u16-width.c: Likewise.
9857         * lib/uniwidth/u32-strwidth.c: Likewise.
9858         * lib/uniwidth/u32-width.c: Likewise.
9859         * lib/uniwidth/u8-strwidth.c: Likewise.
9860         * lib/uniwidth/u8-width.c: Likewise.
9861         * lib/uniwidth/width.c: Likewise.
9862
9863 2007-10-07  Bruno Haible  <bruno@clisp.org>
9864
9865         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9866         The file is still under LGPL (see modules/inttypes).
9867
9868 2007-10-06  Bruno Haible  <bruno@clisp.org>
9869
9870         * modules/trunc (Dependencies): Add 'extensions'.
9871         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9872         Reported by Ben Pfaff <blp@gnu.org>.
9873
9874 2007-10-06  Bruno Haible  <bruno@clisp.org>
9875
9876         * modules/freopen-tests: New file.
9877         * tests/test-freopen.c: New file.
9878
9879         * modules/fopen-tests: New file.
9880         * tests/test-fopen.c: New file.
9881
9882         * modules/fopen: New file.
9883         * lib/fopen.c: New file.
9884         * m4/fopen.m4: New file.
9885         * modules/freopen: New file.
9886         * lib/freopen.c: New file.
9887         * m4/freopen.m4: New file.
9888         * lib/stdio.in.h (fopen, freopen): New declarations.
9889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9890         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9891         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9892         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9893         * doc/functions/fopen.texi: Mention the 'fopen' module.
9894         * doc/functions/freopen.texi: Mention the 'freopen' module.
9895
9896 2007-10-06  Bruno Haible  <bruno@clisp.org>
9897
9898         * modules/open-tests: New file.
9899         * tests/test-open.c: New file.
9900
9901         * modules/open: New file.
9902         * lib/open.c: New file.
9903         * m4/open.m4: New file.
9904         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9905         lib/open.c does.
9906         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9907         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9908         macros.
9909         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9910         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9911         REPLACE_OPEN.
9912         * doc/functions/open.texi: Mention the 'open' module.
9913
9914 2007-10-04  Bruno Haible  <bruno@clisp.org>
9915
9916         * modules/ceill-tests: New file.
9917         * tests/test-ceill.c: New file.
9918
9919         * modules/ceill: New file.
9920         * lib/ceill.c: Replace entire file.
9921         * m4/ceill.m4: New file.
9922         * lib/math.in.h (ceill): Replace declaration.
9923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9924         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9925         * doc/functions/ceill.texi: Mention the 'ceill' module.
9926         * modules/mathl (Files): Remove lib/ceill.c.
9927         (Depends-on): Add ceill.
9928
9929 2007-10-04  Bruno Haible  <bruno@clisp.org>
9930
9931         * modules/ceilf-tests: New file.
9932         * tests/test-ceilf.c: New file.
9933
9934         * modules/ceilf: New file.
9935         * lib/ceil.c: New file.
9936         * lib/ceilf.c: New file.
9937         * m4/ceilf.m4: New file.
9938         * lib/math.in.h (ceilf): New declaration.
9939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9940         HAVE_DECL_CEILF.
9941         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9942         HAVE_DECL_CEILF.
9943         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9944
9945 2007-10-04  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/floorl-tests: New file.
9948         * tests/test-floorl.c: New file.
9949
9950         * modules/floorl: New file.
9951         * lib/floorl.c: Replace entire file.
9952         * m4/floorl.m4: New file.
9953         * lib/math.in.h (floorl): Replace declaration.
9954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9955         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9956         * doc/functions/floorl.texi: Mention the 'floorl' module.
9957         * modules/mathl (Files): Remove lib/floorl.c.
9958         (Depends-on): Add floorl.
9959
9960 2007-10-04  Bruno Haible  <bruno@clisp.org>
9961
9962         * modules/floorf-tests: New file.
9963         * tests/test-floorf.c: New file.
9964
9965         * modules/floorf: New file.
9966         * lib/floor.c: New file.
9967         * lib/floorf.c: New file.
9968         * m4/floorf.m4: New file.
9969         * lib/math.in.h (floorf): New declaration.
9970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9971         HAVE_DECL_FLOORF.
9972         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9973         HAVE_DECL_FLOORF.
9974         * doc/functions/floorf.texi: Mention the 'floorf' module.
9975
9976 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9977             Bruno Haible  <bruno@clisp.org>
9978
9979         Advertise for the Git server instead of the CVS server.
9980         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9981         repository instead of the CVS one.
9982         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9983         about all VCS systems generically.
9984         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9985
9986 2007-10-04  Bruno Haible  <bruno@clisp.org>
9987
9988         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9989         means.
9990         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9991
9992 2007-10-04  Bruno Haible  <bruno@clisp.org>
9993
9994         * modules/truncl-tests: New file.
9995         * tests/test-truncl.c: New file.
9996
9997         * modules/truncl: New file.
9998         * lib/truncl.c: New file.
9999         * m4/truncl.m4: New file.
10000         * lib/math.in.h (truncl): New declaration.
10001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10002         HAVE_DECL_TRUNCL.
10003         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10004         HAVE_DECL_TRUNCL.
10005         * doc/functions/truncl.texi: Mention the 'truncl' module.
10006
10007 2007-10-04  Bruno Haible  <bruno@clisp.org>
10008
10009         * modules/truncf-tests: New file.
10010         * tests/test-truncf.c: New file.
10011
10012         * modules/truncf: New file.
10013         * lib/trunc.c: Make paramerizable through USE_* macros.
10014         * lib/truncf.c: New file.
10015         * m4/truncf.m4: New file.
10016         * lib/math.in.h (truncf): New declaration.
10017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10018         HAVE_DECL_TRUNCF.
10019         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10020         HAVE_DECL_TRUNCF.
10021         * doc/functions/truncf.texi: Mention the 'truncf' module.
10022
10023 2007-10-03  Bruno Haible  <bruno@clisp.org>
10024
10025         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10026         augmentation also for tests modules.
10027         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10028         * modules/atexit-tests (Makefile.am): Likewise.
10029         * modules/binary-io-tests (Makefile.am): Likewise.
10030         * modules/c-strcase-tests (Makefile.am): Likewise.
10031         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10032         * modules/canonicalize-tests (Makefile.am): Likewise.
10033         * modules/closein-tests (Makefile.am): Likewise.
10034         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10035         * modules/freadahead-tests (Makefile.am): Likewise.
10036         * modules/fseek-tests (Makefile.am): Likewise.
10037         * modules/fseeko-tests (Makefile.am): Likewise.
10038         * modules/ftell-tests (Makefile.am): Likewise.
10039         * modules/ftello-tests (Makefile.am): Likewise.
10040         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10041         * modules/isnanl-tests (Makefile.am): Likewise.
10042         * modules/lseek-tests (Makefile.am): Likewise.
10043         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10044         * modules/mbscasestr-tests (Makefile.am): Likewise.
10045         * modules/mbschr-tests (Makefile.am): Likewise.
10046         * modules/mbscspn-tests (Makefile.am): Likewise.
10047         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10048         * modules/mbspbrk-tests (Makefile.am): Likewise.
10049         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10050         * modules/mbsrchr-tests (Makefile.am): Likewise.
10051         * modules/mbsspn-tests (Makefile.am): Likewise.
10052         * modules/mbsstr-tests (Makefile.am): Likewise.
10053         * modules/printf-posix-tests (Makefile.am): Likewise.
10054         * modules/snprintf-posix-tests (Makefile.am): Likewise.
10055         * modules/sprintf-posix-tests (Makefile.am): Likewise.
10056         * modules/tsearch-tests (Makefile.am): Likewise.
10057         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10058         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10059         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10060         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10061         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10062         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10063         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10064         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10065         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
10066         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
10067         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10068         * modules/xstrtol-tests (Makefile.am): Likewise.
10069         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10070         * modules/yesno-tests (Makefile.am): Likewise.
10071
10072 2007-10-03  Bruno Haible  <bruno@clisp.org>
10073
10074         * modules/trunc-tests: New file.
10075         * tests/test-trunc.c: New file.
10076
10077         * modules/trunc: New file.
10078         * lib/trunc.c: New file.
10079         * m4/trunc.m4: New file.
10080         * lib/math.in.h (trunc): New declaration.
10081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10082         HAVE_DECL_TRUNC.
10083         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10084         HAVE_DECL_TRUNC.
10085         * doc/functions/trunc.texi: Mention the 'trunc' module.
10086
10087 2007-10-03  Bruno Haible  <bruno@clisp.org>
10088
10089         * tests/test-fpending.c: New file, mostly copied
10090         from coreutils/lib/t-fpending.c.
10091         * modules/fpending-tests: New file.
10092
10093 2007-10-03  Bruno Haible  <bruno@clisp.org>
10094
10095         Port the stdio extensions to QNX (untested).
10096         * lib/fseterr.c (fseterr): Add support for QNX.
10097         * lib/fbufmode.c (fbufmode): Likewise.
10098         * lib/freadable.c (freadable): Likewise.
10099         * lib/fwritable.c (fwritable): Likewise.
10100         * lib/freading.c (freading): Likewise.
10101         * lib/fwriting.c (fwriting): Likewise.
10102         * lib/freadahead.c (freadahed): Likewise.
10103         * lib/fpurge.c (fpurge): Likewise.
10104         * lib/fseeko.c (rpl_fseeko): Likewise.
10105
10106 2007-10-03  Bruno Haible  <bruno@clisp.org>
10107             Jim Meyering  <jim@meyering.net>
10108             Eric Blake  <ebb9@byu.net>
10109
10110         * doc/relocatable.texi: Use @command instead of @program.
10111
10112 2007-10-02  Jim Meyering  <jim@meyering.net>
10113
10114         Perform one more "_.h" -> ".in.h" substitution.
10115         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10116         instead of unistd_.h here, too.
10117
10118 2007-10-01  Bruno Haible  <bruno@clisp.org>
10119
10120         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10121         Needed for the alloca-opt module.
10122
10123 2007-09-30  Bruno Haible  <bruno@clisp.org>
10124
10125         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10126         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10127         alloca_.h.
10128         * lib/argz.in.h: Renamed from lib/argz_.h.
10129         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10130         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10131         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10132         byteswap_.h.
10133         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10134         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10135         dirent_.h.
10136         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10137         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10138         fcntl_.h.
10139         * lib/float.in.h: Renamed from lib/float_.h.
10140         * modules/float (Files, Makefile.am): Use float.in.h instead of
10141         float_.h.
10142         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10143         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10144         fnmatch_.h.
10145         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10146         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10147         getopt_.h.
10148         * lib/glob.in.h: Renamed from lib/glob_.h.
10149         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10150         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10151         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10152         iconv_.h.
10153         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10154         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10155         inttypes_.h.
10156         * lib/locale.in.h: Renamed from lib/locale_.h.
10157         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10158         locale_.h.
10159         * lib/math.in.h: Renamed from lib/math_.h.
10160         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10161         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10162         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10163         of netinet_in_.h. Add dependency.
10164         * lib/poll.in.h: Renamed from lib/poll_.h.
10165         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10166         * lib/search.in.h: Renamed from lib/search_.h.
10167         * modules/search (Files, Makefile.am): Use search.in.h instead of
10168         search_.h.
10169         * lib/signal.in.h: Renamed from lib/signal_.h.
10170         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10171         _signal.h.
10172         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10173         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10174         stdbool_.h.
10175         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10176         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10177         stdint_.h.
10178         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10179         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10180         stdio_.h.
10181         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10182         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10183         stdlib_.h.
10184         * lib/string.in.h: Renamed from lib/string_.h.
10185         * modules/string (Files, Makefile.am): Use string.in.h instead of
10186         string_.h.
10187         * doc/gnulib-tool.texi (Initial import): Update.
10188         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10189         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10190         of sys_select_.h. Add dependency.
10191         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10192         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10193         of sys_socket_.h.
10194         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10195         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10196         sys_stat_.h.
10197         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10198         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10199         sys_time_.h.
10200         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10201         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10202         sysexits_.h.
10203         * lib/time.in.h: Renamed from lib/time_.h.
10204         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10205         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10206         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10207         unistd_.h.
10208         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10209         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10210         wchar_.h.
10211         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10212         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10213         wctype_.h.
10214         * build-aux/bootstrap (slurp): Update.
10215         * lib/.cppi-disable: Update.
10216
10217 2007-09-30  Bruno Haible  <bruno@clisp.org>
10218
10219         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10220         Needed on BeOS.
10221
10222 2007-09-30  Bruno Haible  <bruno@clisp.org>
10223
10224         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10225
10226 2007-09-29  Bruno Haible  <bruno@clisp.org>
10227
10228         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10229
10230 2007-09-29  Bruno Haible  <bruno@clisp.org>
10231
10232         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10233         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10234         * build-aux/install-reloc: Compile also areadlink.c.
10235         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10236
10237 2007-09-29  Bruno Haible  <bruno@clisp.org>
10238
10239         * gnulib-tool (func_emit_initmacro_done): Indentation.
10240
10241 2007-09-29  Bruno Haible  <bruno@clisp.org>
10242
10243         * README: Add CVS checkout update instructions.
10244         Info from Bob Proulx <bob@proulx.com>.
10245
10246 2007-09-28  Eric Blake  <ebb9@byu.net>
10247
10248         Provide move-if-change.
10249         * build-aux/move-if-change: New file, based on best practice
10250         rather than any canonical upstream location.
10251
10252 2007-09-28  Jim Meyering  <jim@meyering.net>
10253
10254         Fix canonicalize loop-detection corner case.
10255         Do not attempt to stat the symlink values stored via seen_triple.
10256         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10257         on linux-2.6.18, (but not 2.6.22).
10258         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10259         triple_compare.  The former compares dev,ino,filename, while the latter
10260         would actually stat dirname(filename) when dev and ino were equal.
10261         * lib/hash-triple.c: Install <string.h>.
10262         (STREQ): Define.
10263         (triple_compare_ino_str): New function.
10264         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10265
10266 2007-09-28  Eric Blake  <ebb9@byu.net>
10267
10268         Enforce that AC_REPLACE_FUNCS files exist.
10269         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10270         override check for typos.
10271
10272         Fix test-closein on Solaris 10.
10273         * tests/test-closein.c (main): Don't assume stdin can be inherited
10274         closed on all systems.
10275         * tests/test-closein.sh: Likewise.
10276         Reported by Piotr Tarnowski.
10277
10278 2007-09-28  Jim Meyering  <jim@meyering.net>
10279
10280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10281
10282 2007-09-27  Jim Meyering  <jim@meyering.net>
10283
10284         canonicalize: Avoid a false-positive cycle failure.
10285         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10286         Sort.  Remove cycle-check.
10287         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10288         not cycle-check.h.
10289         (seen_triple): New function.
10290         (canonicalize_filename_mode): Use it instead of cycle-check.
10291         * tests/test-canonicalize.c: Add a test for this bug.
10292         * tests/test-canonicalize.sh: Set up and run the test.
10293
10294         New module, file-set, from coreutils.
10295         * modules/file-set: Define it.
10296         * lib/file-set.c, lib/file-set.h: Implement.
10297
10298         New module, hash-triple, from coreutils.
10299         * modules/hash-triple: Define it.
10300         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10301
10302 2007-09-25  Eric Blake  <ebb9@byu.net>
10303
10304         Fix strerror on Interix.
10305         * lib/string_.h (strerror): Declare replacement.
10306         * doc/functions/strerror.texi (strerror): Document the Interix
10307         shortcoming.
10308         * modules/string (Makefile.am): Support new hooks.
10309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10310         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10311         gl_FUNC_STRERROR_SEPARATE.
10312         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10313         * lib/strerror.c (rpl_strerror): Provide replacement.
10314         * modules/strerror (Depends-on): Add string.
10315         (configure.ac): Detect use of module.
10316         * tests/test-strerror.c: New file.
10317         * modules/strerror-tests: New test module.
10318         * modules/argp (Depends-on): Add strerror.
10319         * modules/error (Depends-on): Likewise.
10320         Reported by Martin Koeppe.
10321
10322 2007-09-24  Bruno Haible  <bruno@clisp.org>
10323
10324         * README: Update git instructions.
10325
10326 2007-09-24  Eric Blake  <ebb9@byu.net>
10327
10328         Revert fpending breakage from 2007-09-08.
10329         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10330         __fpending.c.
10331
10332 2007-09-24  Jim Meyering  <jim@meyering.net>
10333
10334         filenamecat.c: Add a test.
10335         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10336         showing how the function works when DIR is the empty string.
10337
10338 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10339
10340         * tests/test-canonicalize.sh: Turn on executable bit.
10341
10342 2007-09-19  Eric Blake  <ebb9@byu.net>
10343
10344         * README: Update CVS instructions.
10345
10346 2007-09-18  Bruno Haible  <bruno@clisp.org>
10347
10348         * modules/areadlink: New file.
10349         * lib/areadlink.h (areadlink): New declaration.
10350         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10351
10352 2007-09-17  Jim Meyering  <jim@meyering.net>
10353
10354         * lib/savewd.c (ESTALE) [!defined]: Define.
10355         Reported to be required on Interix by Martin Koeppe.
10356
10357 2007-09-17  Bruno Haible  <bruno@clisp.org>
10358
10359         * gnulib-tool (func_version): Use $version.
10360
10361 2007-09-16  Bruno Haible  <bruno@clisp.org>
10362
10363         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10364         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10365         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10366         Reported by Greg Schafer <gschafer@zip.com.au>.
10367
10368 2007-09-15  Bruno Haible  <bruno@clisp.org>
10369
10370         * gnulib-tool (sed): Try a little harder to make bash understand the
10371         alias.
10372         Reported by Bruce Korb <bruce.korb@gmail.com>.
10373
10374 2007-09-13  Eric Blake  <ebb9@byu.net>
10375
10376         * ChangeLog: Remove conflict markers.
10377
10378 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10379
10380         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10381         Reported by Bruno Haible <bruno@clisp.org>.
10382
10383 2007-09-12  Bruno Haible  <bruno@clisp.org>
10384
10385         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10386         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10387         is not defined.
10388
10389 2007-09-12  Eric Blake  <ebb9@byu.net>
10390
10391         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10393         Autoconf definition.
10394         * modules/euidaccess (Depends-on): Add extensions, for
10395         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10396         * modules/fnmatch (Depends-on): Likewise.
10397         * modules/getaddrinfo (Depends-on): Likewise.
10398         * modules/getdelim (Depends-on): Likewise.
10399         * modules/getline (Depends-on): Likewise.
10400         * modules/getsubopt (Depends-on): Likewise.
10401         * modules/gettext (Depends-on): Likewise.
10402         * modules/group-member (Depends-on): Likewise.
10403         * modules/mbchar (Depends-on): Likewise.
10404         * modules/memmem (Depends-on): Likewise.
10405         * modules/mempcpy (Depends-on): Likewise.
10406         * modules/memrchr (Depends-on): Likewise.
10407         * modules/pagealign_alloc (Depends-on): Likewise.
10408         * modules/readutmp (Depends-on): Likewise.
10409         * modules/stpcpy (Depends-on): Likewise.
10410         * modules/stpncpy (Depends-on): Likewise.
10411         * modules/strchrnul (Depends-on): Likewise.
10412         * modules/strndup (Depends-on): Likewise.
10413         * modules/strsep (Depends-on): Likewise.
10414         * modules/strverscmp (Depends-on): Likewise.
10415         * modules/vasprintf (Depends-on): Likewise.
10416         * modules/wcwidth (Depends-on): Likewise.
10417         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10418         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10419         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10422         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10423         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10424         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10425         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10426         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10427         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10428         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10430         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10431         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10432         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10433         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10434         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10436         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10437         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10438         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10439         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10440         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10441         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10443         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10444         so that lock.m4 can be used in gettext without extensions module.
10445
10446 2007-09-11  Bruno Haible  <bruno@clisp.org>
10447
10448         * m4/isc-posix.m4: Remove file.
10449         Suggested by Eric Blake.
10450
10451 2007-09-11  Eric Blake  <ebb9@byu.net>
10452
10453         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10454
10455 2007-09-10  Bruno Haible  <bruno@clisp.org>
10456
10457         * posix-modules: Fix typo in error message.
10458         Reported by Matt <mkraai@beckman.com>.
10459
10460 2007-09-09  Bruno Haible  <bruno@clisp.org>
10461
10462         * doc/functions/getdelim.texi: Update list of platforms lacking the
10463         function.
10464         * doc/functions/getline.texi: Likewise.
10465
10466 2007-09-09  Jim Meyering  <jim@meyering.net>
10467
10468         * lib/hash.c (hash_initialize): Detect calloc failure.
10469         Reported by Bruno Haible.
10470
10471 2007-09-09  Bruno Haible  <bruno@clisp.org>
10472
10473         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10474         malloc or realloc fails.
10475
10476 2007-09-09  Bruno Haible  <bruno@clisp.org>
10477
10478         * modules/getcwd (Depends-on): Add malloc-posix.
10479         * modules/glob (Depends-on): Likewise.
10480         * modules/putenv (Depends-on): Likewise.
10481         * modules/strdup (Depends-on): Likewise.
10482         * modules/getdelim (Depends-on): Add realloc-posix.
10483         * modules/read-file (Depends-on): Likewise.
10484
10485 2007-09-09  Bruno Haible  <bruno@clisp.org>
10486
10487         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10488         (gl_FUNC_MALLOC_POSIX): Require it.
10489         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10490         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10491         * modules/realloc (Files): Add m4/malloc.m4.
10492         * modules/calloc (Files): Likewise.
10493
10494 2007-09-09  Bruno Haible  <bruno@clisp.org>
10495
10496         * modules/malloc-posix: New file.
10497         * modules/malloc (Depends-on): Add malloc-posix.
10498         * lib/malloc.c: Include errno.h.
10499         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10500         and a POSIX-compatible malloc into a single function. Set ENOMEM
10501         when returning NULL.
10502         * m4/malloc.m4: New file.
10503         * doc/functions/malloc.texi: Mention the malloc-posix module.
10504         * lib/stdlib_.h (malloc): New declaration.
10505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10506         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10507         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10508         and HAVE_MALLOC_POSIX.
10509
10510 2007-09-09  Bruno Haible  <bruno@clisp.org>
10511
10512         * modules/realloc-posix: New file.
10513         * modules/realloc (Depends-on): Add realloc-posix.
10514         * lib/realloc.c: Include errno.h.
10515         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10516         and a POSIX-compatible realloc into a single function. Set ENOMEM
10517         when returning NULL.
10518         * m4/realloc.m4: New file.
10519         * doc/functions/realloc.texi: Mention the realloc-posix module.
10520         * lib/stdlib_.h (realloc): New declaration.
10521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10522         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10523         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10524         and HAVE_REALLOC_POSIX.
10525
10526 2007-09-09  Bruno Haible  <bruno@clisp.org>
10527
10528         * modules/calloc-posix: New file.
10529         * modules/calloc (Depends-on): Add calloc-posix.
10530         * lib/calloc.c: Include errno.h.
10531         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10532         and a POSIX-compatible calloc into a single function. Set ENOMEM
10533         when returning NULL.
10534         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10535         * doc/functions/calloc.texi: Mention the calloc-posix module.
10536         * lib/stdlib_.h (calloc): New declaration.
10537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10538         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10539         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10540         and HAVE_CALLOC_POSIX.
10541
10542 2007-09-09  Bruno Haible  <bruno@clisp.org>
10543
10544         Allow for modules to show an arbitrary notice.
10545         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10546         * gnulib-tool: New option --extract-notice.
10547         (func_usage): Document it.
10548         (sed_extract_prog): Update.
10549         (func_get_notice): New function.
10550         (func_modules_notice): New function.
10551         (func_import, func_create_testdir): Invoke it.
10552         Suggested by Jim Meyering.
10553
10554 2007-09-09  Bruno Haible  <bruno@clisp.org>
10555
10556         * gnulib-tool: New options --verbose, --quiet.
10557         (func_usage): Document them.
10558         (verbose): New variable.
10559         (func_execute_command): New function.
10560         (func_import): Don't show the module list and the file list if
10561         $verbose < 0.
10562         (func_create_testdir): Likewise. Use func_execute_command.
10563         (func_create_megatestdir): Use func_execute_command.
10564
10565 2007-09-08  Bruno Haible  <bruno@clisp.org>
10566
10567         * gnulib-tool (func_import): Prefer rsync over wget when available,
10568         for fetching the PO files.
10569
10570 2007-09-08  Bruno Haible  <bruno@clisp.org>
10571
10572         * posix-modules: New file. Portions copied from gnulib-tool.
10573         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10574
10575 2007-09-08  Jim Meyering  <jim@meyering.net>
10576
10577         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10578         * lib/fpending.h: Rename from __fpending.h.
10579         * lib/fpending.c: Rename from __fpending.c.
10580         Include "fpending.h", not "__fpending.h".
10581         * lib/__fpending.h, lib/__fpending.c: Remove files.
10582         * modules/fpending (Files): Reflect new file names.
10583         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10584
10585 2007-09-08  Bruno Haible  <bruno@clisp.org>
10586
10587         * m4/inttypes-h.m4: Remove stub file.
10588
10589 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10590
10591         * doc/headers/stdint.texi: Discuss #include_next issue.
10592
10593 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10596
10597 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10598
10599         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10600         in variable name.
10601
10602 2007-09-03  Jim Meyering  <jim@meyering.net>
10603
10604         New module: git-version-gen.
10605         * modules/git-version-gen: New file.
10606
10607         Import changes from coreutils for bootstrap script.
10608
10609         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10610
10611         bootstrap: uses rsync to download the .po files
10612         * build-aux/bootstrap (po_download_command_format): New global.
10613         (download_po_files): Use rsync.
10614         (update_po_files): Don't remove .po files after download,
10615         so future rsync runs can take advantage of the copies.
10616
10617         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10618
10619         Solve the unnecessary-.po-file-regeneration problem once and for all.
10620         * build-aux/bootstrap (download_po_files): New function, renamed from
10621         get_translations.  Now, downloads, but doesn't update LINGUAS.
10622         (update_po_files): New function.
10623
10624         bootstrap: Ignore more.
10625         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10626         uniwidth to e.g., lib/.gitignore.
10627         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10628
10629         * build-aux/bootstrap: New setting: vc_ignore.
10630         (insert_sorted_if_absent): Create $file if absent.
10631         Adapt to new, possibly empty, list: $vc_ignore.
10632
10633         bootstrap: generate more ignorable names
10634         * build-aux/bootstrap (slurp): When generating ignorable names,
10635         also map .sin to .sed, .gperf to .c, and .y to .c.
10636
10637 2007-09-03  Jim Meyering  <jim@meyering.net>
10638
10639         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10640         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10641
10642 2007-09-02  Bruno Haible  <bruno@clisp.org>
10643
10644         Fix mis-recognition of 'mcs' on QNX 6.
10645         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10646         output contains the string "Mono".
10647         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10648         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10649
10650 2007-09-01  Bruno Haible  <bruno@clisp.org>
10651
10652         Fix collision between uniwidth/* and linebreak modules.
10653         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10654         u32_width): Remove declarations.
10655         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10656         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10657         streq3, streq2, streq1, streq0): Remove functions.
10658         (STREQ): Remove macro.
10659         (is_cjk_encoding): Remove function.
10660         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10661         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10662         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10663         * NEWS: Document the change.
10664
10665 2007-09-01  Bruno Haible  <bruno@clisp.org>
10666
10667         * lib/streq.h: Add double-inclusion guard.
10668
10669 2007-09-01  Karl Berry  <karl@gnu.org>
10670
10671         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10672
10673 2007-08-28  Jim Meyering  <jim@meyering.net>
10674
10675         Rename mreadlink_with_size to areadlink_with_size.
10676         * NEWS: Document the change.
10677         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10678         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10679         * lib/mreadlink.h: Rename this to...
10680         * lib/areadlink.h: ...this.
10681         * modules/mreadlink-with-size: Rename this to...
10682         * modules/areadlink-with-size: ...this.
10683         * lib/canonicalize.c: Reflect the renaming.
10684         * modules/canonicalize: Likewise.
10685
10686 2007-08-26  Bruno Haible  <bruno@clisp.org>
10687
10688         * gnulib-tool (func_import): When deciding which files to remove,
10689         consider also dangling symbolic links.
10690         Reported by Eric Blake.
10691
10692 2007-08-26  Bruno Haible  <bruno@clisp.org>
10693
10694         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10695
10696 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10697
10698         * lib/readline.c: Don't include getline.h, the prototype is now
10699         found in stdio.h.
10700
10701 2007-08-23  Jim Meyering  <jim@meyering.net>
10702
10703         Getdelim touchup.
10704         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10705         around the funlockfile call, since funlockfile never sets errno.
10706         Don't set errno upon failed realloc.
10707
10708 2007-08-22  Eric Blake  <ebb9@byu.net>
10709
10710         Getline touchups.
10711         * lib/getdelim.c (getdelim): Revert regression that required *n to
10712         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10713         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10714         getdelim, rather than whether implementation is missing.
10715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10716         * lib/stdio_.h (getline): Also declare if replacement is
10717         required.
10718         * doc/functions/getdelim.texi: New file.
10719         * doc/functions/getline.texi: Likewise.
10720         * doc/gnulib.texi (Function Substitutes): Add new files.
10721         Reported by Bruno Haible.
10722
10723 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10724
10725         * users.txt: Add Guile.
10726
10727 2007-08-22  Eric Blake  <ebb9@byu.net>
10728
10729         * tests/test-getdelim.c (main): Use remove, not unlink.
10730         * tests/test-getline.c (main): Likewise.
10731
10732         Move getline and getdelim into stdio.h, per POSIX 200x.
10733         * modules/getline (Files): Remove getline.h.
10734         (Depends-on): Add stdio.
10735         (configure.ac): Add module indicator.
10736         * modules/getdelim (Files): Remove getdelim.h.
10737         (Depends-on): Add stdio.
10738         (configure.ac): Add module indicator.
10739         * modules/stdio (Makefile.am): Work with new indicators.
10740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10741         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10742         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10743         * lib/getdelim.h: Delete.
10744         * lib/getline.h: Delete.
10745         * lib/stdio_.h (getdelim, getline): Declare.
10746         * modules/getdelim-tests: New module.
10747         * modules/getline-tests: Likewise.
10748         * tests/test-getdelim.c: New file.
10749         * tests/test-getline.c: Likewise.
10750         * NEWS: Document the change.
10751         * lib/getline.c: Update choice of header.
10752         * lib/csharpcomp.c: Likewise.
10753         * lib/getpass.c: Likewise.
10754         * lib/javacomp.c: Likewise.
10755         * lib/javaversion.c: Likewise.
10756         * lib/yesno.c: Likewise.
10757         * lib/getdelim.c: Likewise.
10758         (getdelim): Set errno on failure, and avoid memory leak.
10759
10760 2007-08-19  Bruno Haible  <bruno@clisp.org>
10761
10762         * modules/closein (Depends-on): Add freadahead.
10763         * lib/closein.c: Include freadahead.h.
10764         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10765         is zero.
10766
10767 2007-08-19  Bruno Haible  <bruno@clisp.org>
10768
10769         * modules/freadahead-tests: New file.
10770         * tests/test-freadahead.sh: New file.
10771         * tests/test-freadahead.c: New file.
10772
10773         * modules/freadahead: New file.
10774         * lib/freadahead.h: New file.
10775         * lib/freadahead.c: New file.
10776         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10777         fbufmode, fpurge, freadable, fwritable.
10778
10779 2007-08-19  Eric Blake  <ebb9@byu.net>
10780
10781         Test yesno in combination with closein.
10782         * lib/yesno.c (yesno): Document use of stdin.
10783         * modules/yesno-tests (Files): New module.
10784         * tests/test-yesno.c (main): New file.
10785         * tests/test-yesno.sh: Likewise.
10786
10787 2007-08-19  Bruno Haible  <bruno@clisp.org>
10788
10789         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10790         * lib/fseeko.c (rpl_fseeko): Likewise.
10791         * lib/fseterr.c (fseterr): Likewise.
10792
10793 2007-08-19  Bruno Haible  <bruno@clisp.org>
10794
10795         * tests/test-lseek.c (main): Disable a test for BeOS.
10796         * doc/functions/lseek.texi: Document the BeOS bug.
10797
10798 2007-08-19  Bruno Haible  <bruno@clisp.org>
10799             Eric Blake  <ebb9@byu.net>
10800
10801         * lib/lseek.c: Include <sys/stat.h>.
10802         (rpl_lseek): Add workaround code also for Unix platforms.
10803         Needed for BeOS.
10804         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10805         * doc/functions/lseek.texi: Document BeOS definiency.
10806
10807 2007-08-18  Bruno Haible  <bruno@clisp.org>
10808
10809         * modules/fstrcmp-tests: New file.
10810         * tests/test-fstrcmp.c: New file.
10811
10812 2007-08-18  Bruno Haible  <bruno@clisp.org>
10813
10814         * modules/fstrcmp: New file, from GNU gettext with modifications.
10815         * lib/fstrcmp.h: New file, from GNU gettext.
10816         * lib/fstrcmp.c: New file, from GNU gettext.
10817         * MODULES.html.sh (String handling): Add fstrcmp.
10818
10819 2007-08-18  Bruno Haible  <bruno@clisp.org>
10820
10821         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10822         'bool'.
10823         (diag, compareseq): Remove const from the ctxt argument.
10824         (USE_HEURISTIC): Undefine at the end.
10825
10826 2007-08-18  Jim Meyering  <jim@meyering.net>
10827
10828         New file: lib/idcache.h
10829         * NEWS: Mention the addition.
10830         * modules/idcache (Files): Add lib/idcache.h
10831         * lib/idcache.c: Include "idcache.h".
10832         Don't include <sys/types.h>.
10833         Add a FIXME comment.
10834         Move file-scoped "static" declarations to the top.
10835         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10836
10837 2007-08-17  Bruno Haible  <bruno@clisp.org>
10838         and Paul Eggert  <eggert@cs.ucla.edu>
10839
10840         * MODULES.html.sh: Add diffseq.
10841         * modules/diffseq: New file.
10842         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10843         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10844
10845 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10846
10847         Import changes from coreutils for bootstrap script.
10848
10849         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10850
10851         * build-aux/bootstrap (slurp): Work even in environments where
10852         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10853         current code does not slurp files whose names start with ".", and
10854         this looks like it might be a troublesome area.
10855
10856         2007-07-11  Jim Meyering  <jim@meyering.net>
10857
10858         If there's a GPL vN copyright comment, require that N == 3.
10859
10860         2007-07-08  Jim Meyering  <jim@meyering.net>
10861
10862         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10863         * build-aux/bootstrap (mam_template): Move definition out of loop.
10864
10865         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10866
10867         * build-aux/bootstrap (symlink_to_dir): Rename function from
10868         symlink_to_gnulib.  Add a directory parameter.  Update all
10869         callers.
10870         (cp_mark_as_generated): Also check for -- and link to -- files in
10871         gl/.
10872
10873         2007-07-08  Jim Meyering  <jim@meyering.net>
10874
10875         Adapt to deeper hierarchy in gnulib.
10876         * build-aux/bootstrap (symlink_to_dir): If the destination
10877         directory doesn't exist, create it. This is required at least for
10878         "lib/uniwidth/cjk.h".
10879
10880         2007-05-15  Jim Meyering  <jim@meyering.net>
10881
10882         * build-aux/bootstrap: Now that generated Makefile.am files
10883         are no longer under version control, they must be created at
10884         bootstrap time.
10885
10886 2007-08-14  Ben Pfaff  <blp@gnu.org>
10887
10888         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10889
10890 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10891
10892         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10893         given the changes below.
10894         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10895         even on hosts that have padding bits beyond the supported 64.
10896
10897 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10900         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10901         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10902         depends on it.
10903         (xstrtol_error): Remove.
10904         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10905         but with a different signature.
10906         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10907         * lib/xstrtol-error.c: Include exitfail.h.
10908         (xstrtol_fatal): New function, with a different signature from the
10909         old xstrtol_error, so that the caller need not worry about passing
10910         in an exit status, or about storage management of the option argument.
10911         (xstrtol_error): Now a static function.  Redo signature to
10912         implement xstrtol_fatal.  Output the correct number of hyphens in
10913         front of the option so that the caller need not worry about
10914         storage management.
10915         (N_): New macro.
10916         (_): Remove; not used now.
10917         * modules/xstrtol: Depend on getopt.
10918         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10919         of old STRTOL_FATAL_ERROR macro.
10920         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10921         of test program.
10922         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10923         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10924
10925 2007-08-08  Eric Blake  <ebb9@byu.net>
10926
10927         * lib/xstrtol-error.c: Add missing include.
10928
10929         Move xstrtol messages into gnulib domain, when --pobase is used.
10930         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10931         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10932         * modules/xstrtol (Files): Distribute new file.
10933         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10934         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10935         * tests/test-xstrtol.c: ...into new file.
10936         * tests/test-xstrtoul.c: Also test xstrtoul.
10937         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10938         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10939         * tests/test-xstrtol.sh: Drive the tests.
10940         * tests/test-xstrtoimax.sh: Likewise.
10941         * tests/test-xstrtoumax.sh: Likewise.
10942         * modules/xstrtol-tests: New module.
10943         * modules/xstrtoimax-tests: Likewise.
10944         * modules/xstrtoumax-tests: Likewise.
10945
10946 2007-08-08  Jim Meyering  <jim@meyering.net>
10947
10948         New function: mfile_name_concat.
10949         * lib/filenamecat.c (mfile_name_concat): New function, just like
10950         file_name_concat, but return NULL upon failure rather than exiting
10951         with a diagnostic.
10952         * lib/filenamecat.h: Declare it.
10953
10954 2007-08-07  Bruno Haible  <bruno@clisp.org>
10955
10956         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10957         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10958         warning from gcc.
10959         Reported by Eric Blake.
10960
10961 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10962
10963         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10964         * modules/crypto/arcfour (License): Likewise.
10965         * modules/crypto/des-tests (License): Likewise.
10966         * modules/crypto/gc-arctwo-tests (License): Likewise.
10967         * modules/crypto/gc-des-tests (License): Likewise.
10968         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10969         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10970         * modules/crypto/gc-md2-tests (License): Likewise.
10971         * modules/crypto/gc-md4-tests (License): Likewise.
10972         * modules/crypto/gc-md5-tests (License): Likewise.
10973         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10974         * modules/crypto/gc-rijndael-tests (License): Likewise.
10975         * modules/crypto/gc-sha1-tests (License): Likewise.
10976         * modules/crypto/gc-tests (License): Likewise.
10977         * modules/crypto/hmac-md5 (License): Likewise.
10978         * modules/crypto/hmac-sha1 (License): Likewise.
10979         * modules/crypto/md2-tests (License): Likewise.
10980         * modules/crypto/md4-tests (License): Likewise.
10981         * modules/crypto/md5 (License): Likewise.
10982         * modules/crypto/rijndael (License): Likewise.
10983         * modules/crypto/sha1 (License): Likewise.
10984         * modules/memxor (License): Likewise.
10985
10986 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10987         and Bruno Haible  <bruno@clisp.org>
10988
10989         * NEWS: Describe interface changes to human, xstrtol.
10990         * lib/human.h: Include <xstrtol.h>.
10991         (human_options): Return enum strtol_error, not int.  Remove
10992         bool arg; take int * instead.
10993         * lib/human.c: Don't include "gettext.h".
10994         (_): Remove; no longer used.
10995         Don't include <xstrtol.h>, since human.h does it.
10996         (human_options): Adjust to abovementioned interface changes.
10997         Do not report error to stderr; that's now the caller's
10998         responsibility.
10999         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11000         interface change.
11001         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11002         Str, Argument_type_string.  All uses changed.  Put " argument"
11003         in diagnostics to make them clearer.  Change wording of suffix
11004         message for clarity.
11005         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11006         Argument_type_string.
11007         (STRTOL_FATAL_WARN): Remove; no longer used.
11008         * modules/human (Depends-on): Remove gettext-h.
11009
11010 2007-08-06  Simon Josefsson  <simon@josefsson.org>
11011
11012         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11013
11014 2007-07-31  Bruno Haible  <bruno@clisp.org>
11015
11016         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11017         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11018         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11019
11020 2007-07-31  Bruno Haible  <bruno@clisp.org>
11021
11022         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11023         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11024
11025 2007-07-30  Bruno Haible  <bruno@clisp.org>
11026
11027         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11028         * modules/c-ctype (License): Likewise.
11029         * modules/c-strcase (License): Likewise.
11030         * modules/check-version (License): Likewise.
11031         * modules/iconv (License): Likewise.
11032         * modules/iconv_open (License): Likewise.
11033         * modules/read-file (License): Likewise.
11034         * modules/striconv (License): Likewise.
11035         * modules/strverscmp (License): Likewise.
11036         * modules/vasprintf (License): Likewise.
11037         * modules/crypto/des (License): Likewise.
11038         * modules/crypto/gc (License): Likewise.
11039         * modules/crypto/gc-arcfour (License): Likewise.
11040         * modules/crypto/gc-arctwo (License): Likewise.
11041         * modules/crypto/gc-des (License): Likewise.
11042         * modules/crypto/gc-hmac-md5 (License): Likewise.
11043         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11044         * modules/crypto/gc-md2 (License): Likewise.
11045         * modules/crypto/gc-md4 (License): Likewise.
11046         * modules/crypto/gc-md5 (License): Likewise.
11047         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11048         * modules/crypto/gc-random (License): Likewise.
11049         * modules/crypto/gc-rijndael (License): Likewise.
11050         * modules/crypto/gc-sha1 (License): Likewise.
11051         * modules/crypto/md2 (License): Likewise.
11052         * modules/crypto/md4 (License): Likewise.
11053
11054 2007-07-30  Jim Meyering  <jim@meyering.net>
11055
11056         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
11057         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
11058         it has valid stat data.  This bug would cause du not to count the
11059         sizes of inaccessible directories.
11060         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
11061         in <http://bugzilla.redhat.com/250077>.
11062
11063 2007-07-25  Peter O'Gorman  <peter@pogma.com>
11064             Bruno Haible  <bruno@clisp.org>
11065
11066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
11067         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
11068         #include_next, gives a diagnostic about it, but reports no error in
11069         the exit code.
11070         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
11071
11072 2007-07-24  Ben Pfaff  <blp@gnu.org>
11073
11074         Improve name: "count-one-bits" is better than "popcount".
11075         * MODULES.html.sh: Update name.
11076         * lib/popcount.h: Renamed lib/count-one-bits.h.
11077         (popcount): Renamed count_one_bits.
11078         (popcountl): Renamed count_one_bits_l.
11079         (popcountll): Renamed count_one_bits_ll.
11080         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11081         * modules/popcount: Renamed module/count-one-bits.
11082         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11083         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11084
11085 2007-07-23  Ben Pfaff  <blp@gnu.org>
11086
11087         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11088         better code generation, and add U to large constants to avoid
11089         warnings, in non-GCC case.
11090         Suggested by Bruno Haible.
11091
11092 2007-07-23  Ben Pfaff  <blp@gnu.org>
11093
11094         * lib/popcount.h: Use verify_true instead of if...abort.
11095         * modules/popcount: Depend on verify module.
11096         Suggested by Jim Meyering.
11097
11098 2007-07-23  Bruno Haible  <bruno@clisp.org>
11099
11100         * gnulib-tool (func_import): Create a .cvsignore file also when the
11101         directory is not yet in CVS but the toplevel directory is. When
11102         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11103         Reported by Karl Berry.
11104
11105 2007-07-22  Ben Pfaff  <blp@gnu.org>
11106
11107         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11108         case.
11109         Suggested by Eric Blake.
11110
11111 2007-07-22  Ben Pfaff  <blp@gnu.org>
11112
11113         New module: popcount.
11114         * MODULES.html.sh: Add popcount.
11115         * modules/popcount: New file.
11116         * modules/popcount-tests: New file.
11117         * tests/test-popcount.c: New file.
11118         * lib/popcount.h: New file.
11119         * m4/popcount.m4: New file.
11120
11121 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11122
11123         * build-aux/announce-gen: Update to GPLv3.
11124
11125         * build-aux/config.guess: Update from config.
11126
11127 2007-07-21  Bruno Haible  <bruno@clisp.org>
11128
11129         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11130         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11131
11132 2007-07-20  Jim Meyering  <jim@meyering.net>
11133
11134         * check-module: Diagnose a self-dependency.
11135
11136 2007-07-19  Bruno Haible  <bruno@clisp.org>
11137
11138         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11139         empty.
11140         Reported by Eric Blake.
11141
11142 2007-07-18  Bruno Haible  <bruno@clisp.org>
11143
11144         * gnulib-tool: New options --po-base, --po-domain.
11145         (func_usage): Document them.
11146         (pobase, po_domain): New variables.
11147         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11148         DEFAULT_TEXT_DOMAIN.
11149         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11150         (func_import): Consider pobase and po_domain. Create a po/ directory.
11151         (func_create_testdir): Set pobase and po_domain to empty.
11152         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11153         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11154
11155 2007-07-18  Bruno Haible  <bruno@clisp.org>
11156
11157         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11158         EXTRA_DIST augmentation for files in build-aux/.
11159
11160 2007-07-16  Bruno Haible  <bruno@clisp.org>
11161
11162         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11163         * modules/getdelim (License): Likewise.
11164
11165 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11166
11167         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11168         * modules/d-type (License): Likewise.
11169         * modules/extensions (License): Likewise.
11170         * modules/fnmatch (License): Likewise.
11171         * modules/fseeko (License): Likewise.
11172         * modules/getaddrinfo (License): Likewise.
11173         * modules/getline (License): Likewise.
11174         * modules/getlogin_r (License): Likewise.
11175         * modules/getpass (License): Likewise.
11176         * modules/gettimeofday (License): Likewise.
11177         * modules/glob (License): Likewise.
11178         * modules/inet_ntop (License): Likewise.
11179         * modules/malloc (License): Likewise.
11180         * modules/malloca (License): Likewise.
11181         * modules/memmem (License): Likewise.
11182         * modules/mempcpy (License): Likewise.
11183         * modules/memset (License): Likewise.
11184         * modules/minmax (License): Likewise.
11185         * modules/mktime (License): Likewise.
11186         * modules/netinet_in (License): Likewise.
11187         * modules/pathmax (License): Likewise.
11188         * modules/poll (License): Likewise.
11189         * modules/regex (License): Likewise.
11190         * modules/snprintf (License): Likewise.
11191         * modules/stdbool (License): Likewise.
11192         * modules/stdint (License): Likewise.
11193         * modules/stdio (License): Likewise.
11194         * modules/strcase (License): Likewise.
11195         * modules/strcasestr (License): Likewise.
11196         * modules/strdup (License): Likewise.
11197         * modules/string (License): Likewise.
11198         * modules/strndup (License): Likewise.
11199         * modules/strnlen (License): Likewise.
11200         * modules/strpbrk (License): Likewise.
11201         * modules/strptime (License): Likewise.
11202         * modules/strsep (License): Likewise.
11203         * modules/sys_select (License): Likewise.
11204         * modules/sys_socket (License): Likewise.
11205         * modules/sys_stat (License): Likewise.
11206         * modules/sys_time (License): Likewise.
11207         * modules/time (License): Likewise.
11208         * modules/time_r (License): Likewise.
11209         * modules/timegm (License): Likewise.
11210         * modules/unistd (License): Likewise.
11211         * modules/vsnprintf (License): Likewise.
11212         * modules/wctype (License): Likewise.
11213
11214 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11215
11216         * modules/argz (License): LGPLv2+.
11217
11218 2007-07-15  Karl Berry  <karl@gnu.org>
11219
11220         * doc/gnulib.texi: revise node structure per new fdl.texi.
11221
11222 2007-07-14  Bruno Haible  <bruno@clisp.org>
11223
11224         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11225         the output file.
11226         * lib/uniname/uninames.h: Regenerated.
11227
11228 2007-07-14  Karl Berry  <karl@gnu.org>
11229
11230         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11231         omitting sectioning and index commands.
11232
11233 2007-07-13  Bruno Haible  <bruno@clisp.org>
11234
11235         New gnulib-tool option --more-symlinks.
11236         * gnulib-tool (func_usage): Document --more-symlinks.
11237         (do_copyrights): New variable.
11238         Recognize option --more-symlinks.
11239         (func_import): Don't add a copyright notice transform to
11240         sed_transform_lib_file if do_copyrights is empty.
11241
11242 2007-07-13  Bruno Haible  <bruno@clisp.org>
11243
11244         * lib/vasnprintf.c (decimal_point_char): Define also if
11245         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11246         && !NEED_PRINTF_DIRECTIVE_A.
11247         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11248         Gary V. Vaughan <gary@gnu.org>.
11249
11250 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11251
11252         * lib/inttypes_.h: Undo previous change, since it was fixed
11253         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11254
11255 2007-07-13  Bruno Haible  <bruno@clisp.org>
11256
11257         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11258         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11259
11260 2007-07-13  Jim Meyering  <jim@meyering.net>
11261
11262         df: Don't fail for Tru64's "file-on-file mount".
11263         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11264         so we fall through and use statfs instead.  Details here:
11265         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11266         Reported by Albert Chin.
11267
11268 2007-07-13  Bruno Haible  <bruno@clisp.org>
11269
11270         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11271         * modules/configmake (License): Likewise.
11272         * modules/gettext (License): Likewise.
11273         * modules/gettext-h (License): Likewise.
11274         * modules/include_next (License): Likewise.
11275         * modules/link-warning (License): Likewise.
11276         * modules/localcharset (License): Likewise.
11277         * modules/localename (License): Likewise.
11278         * modules/lock (License): Likewise.
11279         * modules/relocatable-lib-lgpl (License): Likewise.
11280         * modules/size_max (License): Likewise.
11281         * modules/vasnprintf (License): Likewise.
11282         * modules/wchar (License): Likewise.
11283         * modules/xsize (License): Likewise.
11284
11285 2007-07-13  Bruno Haible  <bruno@clisp.org>
11286
11287         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11288         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11289
11290 2007-07-12  Bruno Haible  <bruno@clisp.org>
11291
11292         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11293         in the modules files.
11294
11295 2007-07-11  Karl Berry  <karl@gnu.org>
11296
11297         * MODULES.html.sh (func_module): use
11298          sed -e '\|^'"${includefile}"'$|d'
11299          instead of /.../d, to avoid errors on $includefile's containing /.
11300
11301 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11302
11303         * gnulib-tool (func_import): Avoid duplication of --avoid
11304         statements
11305         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11306         names to `_' in variable names.
11307
11308 2007-07-10  Eric Blake  <ebb9@byu.net>
11309
11310         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11311         * NEWS: Document this change.
11312
11313 2007-07-08  Bruno Haible  <bruno@clisp.org>
11314
11315         Update to Unicode 5.0.
11316         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11317         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11318         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11319         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11320         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11321         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11322         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11323         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11324         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11325         U+10A3F, U+1D242..U+1D244.
11326         (nonspacing_table_ind): Update.
11327         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11328         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11329
11330 2007-07-08  Bruno Haible  <bruno@clisp.org>
11331
11332         Update to Unicode 5.0.
11333         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11334         code transform. Extend the name index field of unicode_name_to_code and
11335         unicode_code_to_name from 16 to 24 bits.
11336         * lib/uniname/uniname.c (unicode_character_name,
11337         unicode_name_character): Add the range 0x12xxx to the code transform.
11338         * lib/uniname/uninames.h: Regenerated.
11339         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11340
11341 2007-07-07  Bruno Haible  <bruno@clisp.org>
11342
11343         * modules/wcwidth-tests: New file.
11344         * tests/test-wcwidth.c: New file.
11345
11346         Work around MacOS X wcwidth() bug.
11347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11348         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11349         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11350         original wcwidth in non-UTF-8 locales.
11351         * modules/wcwidth (Depends-on): Add localcharset, streq,
11352         uniwidth/width.
11353         * doc/functions/wcwidth.texi: Update.
11354
11355 2007-07-07  Bruno Haible  <bruno@clisp.org>
11356
11357         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11358         (wcwidth): New declaration.
11359         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11360         macros.
11361         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11362         here. Prepare for creating <wchar.h> unconditionally.
11363         * modules/wchar (Depends-on): Add link-warning.
11364         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11365         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11366         * lib/wcwidth.h: Remove file.
11367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11368         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11369         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11370         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11371         (Include): Replace wcwidth.h with <wchar.h>.
11372         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11373         * lib/mbchar.h: Don't include wcwidth.h.
11374         * lib/mbswidth.c: Likewise.
11375         * NEWS: Mention the change.
11376
11377 2007-07-07  Bruno Haible  <bruno@clisp.org>
11378
11379         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11380         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11381         definition with an external declaration.
11382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11383         defined as a function. Remove AC_C_INLINE requirement.
11384         * modules/wcwidth (Files): Add lib/wcwidth.c.
11385         (Makefile.am): Remove redundant statement.
11386
11387 2007-07-07  Bruno Haible  <bruno@clisp.org>
11388
11389         * MODULES.html.sh (Unicode string functions): Add the new modules.
11390
11391         * tests/uniwidth/test-u32-strwidth.c: New file.
11392         * modules/uniwidth/u32-strwidth-tests: New file.
11393
11394         * lib/uniwidth/u32-strwidth.c: New file.
11395         * modules/uniwidth/u32-strwidth: New file.
11396
11397         * tests/uniwidth/test-u16-strwidth.c: New file.
11398         * modules/uniwidth/u16-strwidth-tests: New file.
11399
11400         * lib/uniwidth/u16-strwidth.c: New file.
11401         * modules/uniwidth/u16-strwidth: New file.
11402
11403         * tests/uniwidth/test-u8-strwidth.c: New file.
11404         * modules/uniwidth/u8-strwidth-tests: New file.
11405
11406         * lib/uniwidth/u8-strwidth.c: New file.
11407         * modules/uniwidth/u8-strwidth: New file.
11408
11409         * tests/uniwidth/test-u32-width.c: New file.
11410         * modules/uniwidth/u32-width-tests: New file.
11411
11412         * lib/uniwidth/u32-width.c: New file.
11413         * modules/uniwidth/u32-width: New file.
11414
11415         * tests/uniwidth/test-u16-width.c: New file.
11416         * modules/uniwidth/u16-width-tests: New file.
11417
11418         * lib/uniwidth/u16-width.c: New file.
11419         * modules/uniwidth/u16-width: New file.
11420
11421         * tests/uniwidth/test-u8-width.c: New file.
11422         * modules/uniwidth/u8-width-tests: New file.
11423
11424         * lib/uniwidth/u8-width.c: New file.
11425         * modules/uniwidth/u8-width: New file.
11426
11427         * tests/uniwidth/test-uc_width.c: New file.
11428         * modules/uniwidth/width-tests: New file.
11429
11430         * lib/uniwidth/width.c: New file, from GNU libiconv.
11431         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11432         * modules/uniwidth/width: New file.
11433
11434         * lib/uniwidth.h: New file, from GNU libiconv.
11435         * modules/uniwidth/base: New file.
11436
11437 2007-07-07  Bruno Haible  <bruno@clisp.org>
11438
11439         * lib/uniname.h: New file, from GNU gettext.
11440         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11441         * lib/uniname/uninames.h: New file, from GNU gettext.
11442         * lib/uniname/uniname.c: New file, from GNU gettext.
11443         * tests/uniname/test-uninames.sh: New file.
11444         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11445         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11446         * modules/uniname/base: New file.
11447         * modules/uniname/uniname: New file.
11448         * modules/uniname/uniname-tests: New file.
11449         * MODULES.html.sh (Unicode string functions): Add the new modules.
11450
11451 2007-07-06  Bruno Haible  <bruno@clisp.org>
11452
11453         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11454
11455 2007-07-06  Bruno Haible  <bruno@clisp.org>
11456
11457         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11458         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11459         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11460         include <sys/time.h>.
11461         Reported by Eric Blake.
11462
11463 2007-07-06  Eric Blake  <ebb9@byu.net>
11464
11465         Fix testing canonicalize on cygwin.
11466         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11467         Revert patch from 2007-06-19.
11468         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11469         canonicalize module is also in use.
11470         * tests/test-canonicalize.c: New file.
11471         * tests/test-canonicalize.sh: Likewise.
11472         * modules/canonicalize-tests: Likewise.
11473
11474 2007-07-06  Jim Meyering  <jim@meyering.net>
11475
11476         * lib/getugroups.c (getugroups): Detect getgrent failure.
11477         Adjust comment to reflect reality: this function may return -1.
11478
11479 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11480
11481         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11482         the new TP address.
11483         (usage): Fix typo
11484         (gnulib_mk): New variable.
11485
11486 2007-07-05  Jim Meyering  <jim@meyering.net>
11487
11488         Don't let endgrent clobber errno, no matter how improbable.
11489         * lib/getugroups.c (getugroups): Save and restore errno around
11490         endgrent call.
11491
11492         Close the group DB even when failing with 2^31 or more members.
11493         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11494
11495 2007-07-04  Jim Meyering  <jim@meyering.net>
11496
11497         * lib/getugroups.h: New file.
11498         * lib/getugroups.c: Include "getugroups.h".
11499         Remove uses of "register" keyword.
11500         Move local variable, "cp", down into scope where used.
11501         Give "username" parameter the "const" attribute.
11502         * modules/getugroups (Files): Add lib/getugroups.h
11503
11504 2007-07-04  Karl Berry  <karl@gnu.org>
11505
11506         * MODULES.html.sh (func_all_modules): Complete rename of
11507         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11508
11509 2007-07-02  Bruno Haible  <bruno@clisp.org>
11510
11511         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11512         mode, when inttypes.h comes from gnulib.
11513         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11514
11515 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11516
11517         * NEWS: Mention lgpl module name change.
11518
11519         * modules/lgpl-2.1: Renamed from lgpl.
11520
11521         * NEWS: Mention gpl module name change.
11522
11523         * modules/gpl-3.0: New file, based on gpl-2.0.
11524
11525         * modules/gpl-2.0: Renamed from gpl.
11526
11527         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11528         doc/gpl-2.0.texi.
11529
11530 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11531
11532         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11533         #define __STDC_LIMIT_MACROS temporarily while including
11534         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11535         Problem reported by Joel E. Denny in
11536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11537
11538 2007-07-01  Bruno Haible  <bruno@clisp.org>
11539
11540         * lib/unistdio.h: New file.
11541         * lib/unistdio/u-asnprintf.h: New file.
11542         * lib/unistdio/u-asprintf.h: New file.
11543         * lib/unistdio/u-printf-args.c: New file.
11544         * lib/unistdio/u-printf-args.h: New file.
11545         * lib/unistdio/u-printf-parse.h: New file.
11546         * lib/unistdio/u-snprintf.h: New file.
11547         * lib/unistdio/u-sprintf.h: New file.
11548         * lib/unistdio/u-vasprintf.h: New file.
11549         * lib/unistdio/u-vsnprintf.h: New file.
11550         * lib/unistdio/u-vsprintf.h: New file.
11551         * lib/unistdio/ulc-asnprintf.c: New file.
11552         * lib/unistdio/ulc-asprintf.c: New file.
11553         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11554         * lib/unistdio/ulc-printf-parse.c: New file.
11555         * lib/unistdio/ulc-snprintf.c: New file.
11556         * lib/unistdio/ulc-sprintf.c: New file.
11557         * lib/unistdio/ulc-vasnprintf.c: New file.
11558         * lib/unistdio/ulc-vasprintf.c: New file.
11559         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11560         * lib/unistdio/ulc-vsnprintf.c: New file.
11561         * lib/unistdio/ulc-vsprintf.c: New file.
11562         * lib/unistdio/u8-asnprintf.c: New file.
11563         * lib/unistdio/u8-asprintf.c: New file.
11564         * lib/unistdio/u8-printf-parse.c: New file.
11565         * lib/unistdio/u8-snprintf.c: New file.
11566         * lib/unistdio/u8-sprintf.c: New file.
11567         * lib/unistdio/u8-vasnprintf.c: New file.
11568         * lib/unistdio/u8-vasprintf.c: New file.
11569         * lib/unistdio/u8-vsnprintf.c: New file.
11570         * lib/unistdio/u8-vsprintf.c: New file.
11571         * lib/unistdio/u8-u8-asnprintf.c: New file.
11572         * lib/unistdio/u8-u8-asprintf.c: New file.
11573         * lib/unistdio/u8-u8-snprintf.c: New file.
11574         * lib/unistdio/u8-u8-sprintf.c: New file.
11575         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11576         * lib/unistdio/u8-u8-vasprintf.c: New file.
11577         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11578         * lib/unistdio/u8-u8-vsprintf.c: New file.
11579         * lib/unistdio/u16-asnprintf.c: New file.
11580         * lib/unistdio/u16-asprintf.c: New file.
11581         * lib/unistdio/u16-printf-parse.c: New file.
11582         * lib/unistdio/u16-snprintf.c: New file.
11583         * lib/unistdio/u16-sprintf.c: New file.
11584         * lib/unistdio/u16-vasnprintf.c: New file.
11585         * lib/unistdio/u16-vasprintf.c: New file.
11586         * lib/unistdio/u16-vsnprintf.c: New file.
11587         * lib/unistdio/u16-vsprintf.c: New file.
11588         * lib/unistdio/u16-u16-asnprintf.c: New file.
11589         * lib/unistdio/u16-u16-asprintf.c: New file.
11590         * lib/unistdio/u16-u16-snprintf.c: New file.
11591         * lib/unistdio/u16-u16-sprintf.c: New file.
11592         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11593         * lib/unistdio/u16-u16-vasprintf.c: New file.
11594         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11595         * lib/unistdio/u16-u16-vsprintf.c: New file.
11596         * lib/unistdio/u32-asnprintf.c: New file.
11597         * lib/unistdio/u32-asprintf.c: New file.
11598         * lib/unistdio/u32-printf-parse.c: New file.
11599         * lib/unistdio/u32-snprintf.c: New file.
11600         * lib/unistdio/u32-sprintf.c: New file.
11601         * lib/unistdio/u32-vasnprintf.c: New file.
11602         * lib/unistdio/u32-vasprintf.c: New file.
11603         * lib/unistdio/u32-vsnprintf.c: New file.
11604         * lib/unistdio/u32-vsprintf.c: New file.
11605         * lib/unistdio/u32-u32-asnprintf.c: New file.
11606         * lib/unistdio/u32-u32-asprintf.c: New file.
11607         * lib/unistdio/u32-u32-snprintf.c: New file.
11608         * lib/unistdio/u32-u32-sprintf.c: New file.
11609         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11610         * lib/unistdio/u32-u32-vasprintf.c: New file.
11611         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11612         * lib/unistdio/u32-u32-vsprintf.c: New file.
11613         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11614         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11615         * tests/unistdio/test-ulc-printf1.h: New file.
11616         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11617         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11618         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11619         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11620         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11621         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11622         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11623         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11624         * tests/unistdio/test-u8-asnprintf1.c: New file.
11625         * tests/unistdio/test-u8-asnprintf1.h: New file.
11626         * tests/unistdio/test-u8-printf1.h: New file.
11627         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11628         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11629         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11630         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11631         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11632         * tests/unistdio/test-u8-vasprintf1.c: New file.
11633         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11634         * tests/unistdio/test-u8-vsprintf1.c: New file.
11635         * tests/unistdio/test-u16-asnprintf1.c: New file.
11636         * tests/unistdio/test-u16-asnprintf1.h: New file.
11637         * tests/unistdio/test-u16-printf1.h: New file.
11638         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11639         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11640         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11641         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11642         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11643         * tests/unistdio/test-u16-vasprintf1.c: New file.
11644         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11645         * tests/unistdio/test-u16-vsprintf1.c: New file.
11646         * tests/unistdio/test-u32-asnprintf1.c: New file.
11647         * tests/unistdio/test-u32-asnprintf1.h: New file.
11648         * tests/unistdio/test-u32-printf1.h: New file.
11649         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11650         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11651         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11652         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11653         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11654         * tests/unistdio/test-u32-vasprintf1.c: New file.
11655         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11656         * tests/unistdio/test-u32-vsprintf1.c: New file.
11657         * modules/unistdio/base: New file.
11658         * modules/unistdio/u-printf-args: New file.
11659         * modules/unistdio/ulc-asnprintf: New file.
11660         * modules/unistdio/ulc-asprintf: New file.
11661         * modules/unistdio/ulc-fprintf: New file.
11662         * modules/unistdio/ulc-printf-parse: New file.
11663         * modules/unistdio/ulc-snprintf: New file.
11664         * modules/unistdio/ulc-sprintf: New file.
11665         * modules/unistdio/ulc-vasnprintf: New file.
11666         * modules/unistdio/ulc-vasprintf: New file.
11667         * modules/unistdio/ulc-vfprintf: New file.
11668         * modules/unistdio/ulc-vsnprintf: New file.
11669         * modules/unistdio/ulc-vsprintf: New file.
11670         * modules/unistdio/u8-asnprintf: New file.
11671         * modules/unistdio/u8-asprintf: New file.
11672         * modules/unistdio/u8-printf-parse: New file.
11673         * modules/unistdio/u8-snprintf: New file.
11674         * modules/unistdio/u8-sprintf: New file.
11675         * modules/unistdio/u8-vasnprintf: New file.
11676         * modules/unistdio/u8-vasprintf: New file.
11677         * modules/unistdio/u8-vsnprintf: New file.
11678         * modules/unistdio/u8-vsprintf: New file.
11679         * modules/unistdio/u8-u8-asnprintf: New file.
11680         * modules/unistdio/u8-u8-asprintf: New file.
11681         * modules/unistdio/u8-u8-snprintf: New file.
11682         * modules/unistdio/u8-u8-sprintf: New file.
11683         * modules/unistdio/u8-u8-vasnprintf: New file.
11684         * modules/unistdio/u8-u8-vasprintf: New file.
11685         * modules/unistdio/u8-u8-vsnprintf: New file.
11686         * modules/unistdio/u8-u8-vsprintf: New file.
11687         * modules/unistdio/u16-asnprintf: New file.
11688         * modules/unistdio/u16-asprintf: New file.
11689         * modules/unistdio/u16-printf-parse: New file.
11690         * modules/unistdio/u16-snprintf: New file.
11691         * modules/unistdio/u16-sprintf: New file.
11692         * modules/unistdio/u16-vasnprintf: New file.
11693         * modules/unistdio/u16-vasprintf: New file.
11694         * modules/unistdio/u16-vsnprintf: New file.
11695         * modules/unistdio/u16-vsprintf: New file.
11696         * modules/unistdio/u16-u16-asnprintf: New file.
11697         * modules/unistdio/u16-u16-asprintf: New file.
11698         * modules/unistdio/u16-u16-snprintf: New file.
11699         * modules/unistdio/u16-u16-sprintf: New file.
11700         * modules/unistdio/u16-u16-vasnprintf: New file.
11701         * modules/unistdio/u16-u16-vasprintf: New file.
11702         * modules/unistdio/u16-u16-vsnprintf: New file.
11703         * modules/unistdio/u16-u16-vsprintf: New file.
11704         * modules/unistdio/u32-asnprintf: New file.
11705         * modules/unistdio/u32-asprintf: New file.
11706         * modules/unistdio/u32-printf-parse: New file.
11707         * modules/unistdio/u32-snprintf: New file.
11708         * modules/unistdio/u32-sprintf: New file.
11709         * modules/unistdio/u32-vasnprintf: New file.
11710         * modules/unistdio/u32-vasprintf: New file.
11711         * modules/unistdio/u32-vsnprintf: New file.
11712         * modules/unistdio/u32-vsprintf: New file.
11713         * modules/unistdio/u32-u32-asnprintf: New file.
11714         * modules/unistdio/u32-u32-asprintf: New file.
11715         * modules/unistdio/u32-u32-snprintf: New file.
11716         * modules/unistdio/u32-u32-sprintf: New file.
11717         * modules/unistdio/u32-u32-vasnprintf: New file.
11718         * modules/unistdio/u32-u32-vasprintf: New file.
11719         * modules/unistdio/u32-u32-vsnprintf: New file.
11720         * modules/unistdio/u32-u32-vsprintf: New file.
11721         * modules/unistdio/ulc-asnprintf-tests: New file.
11722         * modules/unistdio/ulc-vasnprintf-tests: New file.
11723         * modules/unistdio/ulc-vasprintf-tests: New file.
11724         * modules/unistdio/ulc-vsnprintf-tests: New file.
11725         * modules/unistdio/ulc-vsprintf-tests: New file.
11726         * modules/unistdio/u8-asnprintf-tests: New file.
11727         * modules/unistdio/u8-vasnprintf-tests: New file.
11728         * modules/unistdio/u8-vasprintf-tests: New file.
11729         * modules/unistdio/u8-vsnprintf-tests: New file.
11730         * modules/unistdio/u8-vsprintf-tests: New file.
11731         * modules/unistdio/u16-asnprintf-tests: New file.
11732         * modules/unistdio/u16-vasnprintf-tests: New file.
11733         * modules/unistdio/u16-vasprintf-tests: New file.
11734         * modules/unistdio/u16-vsnprintf-tests: New file.
11735         * modules/unistdio/u16-vsprintf-tests: New file.
11736         * modules/unistdio/u32-asnprintf-tests: New file.
11737         * modules/unistdio/u32-vasnprintf-tests: New file.
11738         * modules/unistdio/u32-vasprintf-tests: New file.
11739         * modules/unistdio/u32-vsnprintf-tests: New file.
11740         * modules/unistdio/u32-vsprintf-tests: New file.
11741         * MODULES.html.sh (Unicode string functions): Add the new modules.
11742
11743 2007-07-01  Bruno Haible  <bruno@clisp.org>
11744
11745         * lib/sprintf.c (sprintf): Limit the available length estimation,
11746         to avoid address wraparound.
11747         * lib/vsprintf.c (vsprintf): Likewise.
11748         * modules/sprintf-posix (Dependencies): Add stdint.
11749         * modules/vsprintf-posix (Dependencies): Likewise.
11750
11751 2007-07-01  Bruno Haible  <bruno@clisp.org>
11752
11753         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11754         Windows PATH as well. Conservative double-quoting. Comments.
11755
11756 2007-07-01  Bruno Haible  <bruno@clisp.org>
11757             Eric Blake  <ebb9@byu.net>
11758             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11759
11760         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11761         empty components in $PATH, denoting '.'.
11762
11763 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11764
11765         * gnulib-tool: Fix indentation.
11766         (func_create_megatestdir): Likewise.
11767         Report by Bruno Haible.
11768
11769 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11770
11771         Sync from Automake.
11772         * build-aux/gnupload: Fix shell portability issues with for loops.
11773         Report by Karl Berry.
11774
11775 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11776
11777         * build-aux/maint.mk (POURL): Use translationproject.org.
11778
11779 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11780             Bruno Haible  <bruno@clisp.org>
11781
11782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11783         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11784         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11785         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11786         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11787
11788 2007-06-27  Bruno Haible  <bruno@clisp.org>
11789
11790         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11791         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11792
11793 2007-06-26  Karl Berry  <karl@gnu.org>
11794
11795         * MODULES.html.sh: remove xreadlink-with-size.
11796
11797 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11798
11799         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11800         method that I hope also handles the double-include problem noted
11801         by Bruno Haible in
11802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11803
11804 2007-06-23  Bruno Haible  <bruno@clisp.org>
11805
11806         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11807         Don't let the 'mostlyclean' target fail if the last subdirectory could
11808         not be removed.
11809         Reported by Karl Berry.
11810
11811 2007-06-23  Bruno Haible  <bruno@clisp.org>
11812
11813         * gnulib-tool (echo): Add a speedier workaround for ksh.
11814         * tests/test-echo.sh: Likewise.
11815
11816 2007-06-23  Bruno Haible  <bruno@clisp.org>
11817
11818         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11819         * tests/test-echo.sh: Likewise.
11820
11821 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11822
11823         * gnulib-tool (IFS): Initialize early, so we don't set it to
11824         empty later.
11825         (self_abspathname): Rewrite algorithm to set it, reindent.
11826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11827         (func_create_megatestdir): Merge some sed scripts.
11828
11829 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11830
11831         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11832         exposed by Sun Studio 11 cc on Solaris 8.
11833
11834 2007-06-22  Bruno Haible  <bruno@clisp.org>
11835
11836         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11837         backslashes.
11838         * tests/test-echo.sh: New file.
11839
11840 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11841
11842         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11843         simplify `sed_replace_build_aux' scripts, they are portable but
11844         echoing them with `echo' is not.
11845         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11846
11847 2007-06-21  Karl Berry  <karl@gnu.org>
11848
11849         * config/srclist.txt: guess we can't handle the licenses via
11850         srclist at the moment.
11851
11852 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11853
11854         * MODULES.html.sh: Add include_next.
11855         * modules/include_next: New file.
11856
11857 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11860         INCLUDE_NEXT.
11861         (gl_CHECK_NEXT_HEADERS): New macro.
11862         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11863         the obsolescent gl_ABSOLUTE_HEADER.
11864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11865         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11866         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11867         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11868         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11869         * m4/math_h.m4 (gl_MATH_H): Likewise.
11870         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11872         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11873         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11874         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11875         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11876         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11881         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11882         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11883         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11884         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11885         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11886         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11887         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11888         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11889         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11890         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11891         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11892         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11893         * lib/float_.h: Likewise.
11894         * lib/inttypes_.h: Likewise.
11895         * lib/math_.h: Likewise.
11896         * lib/search_.h: Likewise.
11897         * lib/signal_.h: Likewise.
11898         * lib/stdint_.h: Likewise.
11899         * lib/stdio_.h: Likewise.
11900         * lib/stdlib_.h: Likewise.
11901         * lib/string_.h: Likewise.
11902         * lib/sys_stat_.h: Likewise.
11903         * lib/sys_time_.h: Likewise.
11904         * lib/time_.h: Likewise.
11905         * lib/unistd_.h: Likewise.
11906         * lib/wchar_.h: Likewise.
11907         * lib/wctype_.h: Likewise.
11908         * lib/dirent_.h: Likewise.
11909         * lib/iconv_.h: Likewise.
11910         * lib/locale_.h: Likewise.
11911         * lib/netinet_in_.h: Likewise.
11912         * lib/sys_select_.h: Likewise.
11913         * lib/sys_socket_.h: Likewise.
11914         * lib/sysexits_.h: Likewise.
11915         * modules/fcntl (Depends-on): Depend on include_next, not
11916         absolute_header.
11917         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11918         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11919         * modules/fchdir: Likewise.
11920         * modules/float: Likewise.
11921         * modules/iconv_open: Likewise.
11922         * modules/inttypes: Likewise.
11923         * modules/locale: Likewise.
11924         * modules/math: Likewise.
11925         * modules/netinet_in: Likewise.
11926         * modules/search: Likewise.
11927         * modules/signal: Likewise.
11928         * modules/stdint: Likewise.
11929         * modules/stdio: Likewise.
11930         * modules/stdlib: Likewise.
11931         * modules/string: Likewise.
11932         * modules/sys_select: Likewise.
11933         * modules/sys_socket: Likewise.
11934         * modules/sys_stat: Likewise.
11935         * modules/sys_time: Likewise.
11936         * modules/sysexits: Likewise.
11937         * modules/time: Likewise.
11938         * modules/unistd: Likewise.
11939         * modules/wchar: Likewise.
11940         * modules/wctype: Likewise.
11941         * modules/sys_stat: Change maintainer to "all".
11942         * modules/unistd: Likewise.
11943
11944 2007-06-20  Karl Berry  <karl@gnu.org>
11945
11946         * config/srclist.txt: track www changes in license files.
11947
11948 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11949
11950         * build-aux/bootstrap: Remove stray dot.
11951         Make sure build_aux settings are honored when linking
11952         gnulib_extra_files.
11953
11954 2007-06-19  Eric Blake  <ebb9@byu.net>
11955
11956         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11957         Allow compilation on cygwin.
11958
11959 2007-06-19  Jim Meyering  <jim@meyering.net>
11960
11961         xreadlink-with-size: Remove module.  No longer used.
11962         Ex-callers now use xreadlink or mreadlink-with-size.
11963         * modules/xreadlink-with-size: Remove module.
11964         * lib/xreadlink-with-size.c: Remove file.
11965         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11966         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11967         just before the function definition *is* accurate.
11968
11969         Eliminate one way canonicalize_filename_mode could exit.
11970         * lib/canonicalize.c (canonicalize_filename_mode):
11971         Use mreadlink_with_size, not xreadlink_with_size.
11972
11973 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11974
11975         Detect porting problems to FreeBSD/arm, which has time_t wider than
11976         long int.  Original problem reported for GNU diff by Xin Li in
11977         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11978         * modules/getdate (Depends-on): Add intprops, verify.
11979         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11980         is an integer type no wider than long int.
11981
11982 2007-06-18  Jim Meyering  <jim@meyering.net>
11983
11984         New module: mreadlink-with-size.
11985         * MODULES.html.sh: Add mreadlink-with-size.
11986         * modules/mreadlink-with-size: New module
11987         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11988         not xreadlink-with-size.
11989         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11990
11991 2007-06-16  Bruno Haible  <bruno@clisp.org>
11992
11993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11994         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11995         Reported by Gary V. Vaughan <gary@gnu.org>.
11996
11997 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11998
11999         Revamp lchown so that it lives in unistd.h where it belongs.
12000         * lib/lchown.h: Remove.
12001         * lib/dirchownmod.c: Don't include lib/lchown.h.
12002         * lib/fchownat.c: Likewise.
12003         * lib/openat.c: Likewise.
12004         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12005         does not follow symlinks.
12006         (EOPNOTSUPP): Define if not defined.
12007         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12008         is defined to 0.
12009         (lchown): New decl.
12010         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12011         Do not check for lchown decl.
12012         Set REPLACE_LCHOWN.
12013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12014         REPLACE_LCHOWN.
12015         * modules/chown: Make it clear it follows symlinks.
12016         * modules/lchown: Make it clear it doesn't follow symlinks.
12017         (Files): Remove lib/lchown.h
12018         (Depends-on): Add unistd.
12019         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12020         (Include): Include <unistd.h>, not "lchown.h".
12021         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12022         REPLACE_LCHOWN.
12023
12024 2007-06-15  Jim Meyering  <jim@meyering.net>
12025
12026         Change license (GPL to LGPL) of fsusage and dependents.
12027         * modules/fsusage (License): Change to LGPL.
12028         * modules/full-read (License): Likewise.
12029         * modules/full-write (License): Likewise.
12030         * modules/safe-read (License): Likewise.
12031         * modules/safe-write (License): Likewise.
12032
12033 2007-06-14  Ben Pfaff  <blp@gnu.org>
12034
12035         Missing part of allocsa -> malloca transition.
12036         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12037         gl_MALLOCA.
12038
12039 2007-06-12  Bruno Haible  <bruno@clisp.org>
12040
12041         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12042         to ia64, x86_64, i386.
12043         Reported by Eric Blake.
12044
12045 2007-06-12  Bruno Haible  <bruno@clisp.org>
12046
12047         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12048         cross-compiling to x86_64.
12049
12050 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12051
12052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
12053         glitch reported by Ralf Wildenhues in
12054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
12055
12056         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
12057         Vin Shelton.
12058
12059 2007-06-11  Bruno Haible  <bruno@clisp.org>
12060
12061         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
12062         replacement string.
12063         Reported by Eric Blake.
12064
12065 2007-06-10  Bruno Haible  <bruno@clisp.org>
12066
12067         Prepare vasnprintf code for use with Unicode strings.
12068         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
12069         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
12070         TYPE_U32_STRING.
12071         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
12072         a_u32_string variants.
12073         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12074         * lib/printf-args.c: Don't include config.h and the specification
12075         header if PRINTF_FETCHARGS is already defined.
12076         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12077         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12078         TYPE_U16_STRING, TYPE_U32_STRING.
12079         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12080         u16_directive, u16_directives, u32_directive, u32_directives): New
12081         types.
12082         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12083         New declarations.
12084         * lib/printf-parse.c: Don't include config.h and the specification
12085         header if PRINTF_PARSE is already defined. Eliminate the set of
12086         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12087         them now. Include c-ctype.h.
12088         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12089         directive and CHAR_T_ONLY_ASCII.
12090         * lib/vasnprintf.c: Don't include config.h and the specification header
12091         if VASNPRINTF is already defined.
12092         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12093         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12094         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12095         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12096         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12097         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12098         code accordingly.
12099         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12100         pad_ourselves also in this case, with the 'c' and 's' directives, and
12101         with a different notion of "width".
12102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12103
12104 2007-06-10  Bruno Haible  <bruno@clisp.org>
12105
12106         * modules/unistr/u32-mbsnlen: New file.
12107         * lib/unistr/u32-mbsnlen.c: New file.
12108
12109         * modules/unistr/u16-mbsnlen: New file.
12110         * lib/unistr/u16-mbsnlen.c: New file.
12111
12112         * modules/unistr/u8-mbsnlen: New file.
12113         * lib/unistr/u8-mbsnlen.c: New file.
12114
12115         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12116         declarations.
12117
12118 2007-06-10  Bruno Haible  <bruno@clisp.org>
12119
12120         * lib/string_.h (mbsnlen): New declaration.
12121         * lib/mbsnlen.c: New file.
12122         * m4/mbsnlen.m4: New file.
12123         * modules/mbsnlen: New file.
12124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12125         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12126         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12127
12128 2007-06-10  Bruno Haible  <bruno@clisp.org>
12129
12130         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12131
12132 2007-06-10  Bruno Haible  <bruno@clisp.org>
12133
12134         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12135         * lib/mbuiter.h: Likewise.
12136
12137 2007-06-10  Bruno Haible  <bruno@clisp.org>
12138
12139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12140         declaration.
12141
12142 2007-06-10  Karl Berry  <karl@gnu.org>
12143
12144         * config/srclist.txt: remove gettext entries, Bruno prefers
12145         to update individually.
12146
12147 2007-06-10  Bruno Haible  <bruno@clisp.org>
12148
12149         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12150         'maxlen'. Ensure only length + width bytes are allocated, not
12151         length + 1 + width.
12152
12153 2007-06-09  Bruno Haible  <bruno@clisp.org>
12154
12155         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12156         (CHAR_T): Remove macro.
12157         (VASNPRINTF): Update.
12158
12159 2007-06-09  Bruno Haible  <bruno@clisp.org>
12160
12161         * MODULES.html.sh (Unicode string functions): Add the new modules.
12162
12163         * modules/uniconv/u32-conv-to-enc: New file.
12164         * lib/uniconv/u32-conv-to-enc.c: New file.
12165         * modules/uniconv/u32-conv-to-enc-tests: New file.
12166         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12167
12168         * modules/uniconv/u16-conv-to-enc: New file.
12169         * lib/uniconv/u16-conv-to-enc.c: New file.
12170         * lib/uniconv/u-conv-to-enc.h: New file.
12171         * modules/uniconv/u16-conv-to-enc-tests: New file.
12172         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12173
12174         * modules/uniconv/u8-conv-to-enc: New file.
12175         * lib/uniconv/u8-conv-to-enc.c: New file.
12176         * modules/uniconv/u8-conv-to-enc-tests: New file.
12177         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12178
12179         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12180         u32_conv_to_encoding): New declarations.
12181
12182 2007-06-09  Bruno Haible  <bruno@clisp.org>
12183
12184         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12185
12186 2007-06-09  Bruno Haible  <bruno@clisp.org>
12187
12188         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12189         * modules/malloca: Renamed from modules/allocsa, updated.
12190         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12191         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12192         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12193         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12194         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12195         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12196         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12197         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12198         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12199         * modules/c-strcasestr (Depends-on): Update.
12200         * lib/c-strcasestr.c: Update.
12201         * modules/c-strstr (Depends-on): Update.
12202         * lib/c-strstr.c: Update.
12203         * modules/canonicalize-lgpl (Depends-on): Update.
12204         * lib/canonicalize-lgpl.c: Update.
12205         * modules/clean-temp (Depends-on): Update.
12206         * lib/clean-temp.c: Update.
12207         * modules/csharpcomp (Depends-on): Update.
12208         * lib/csharpcomp.c: Update.
12209         * modules/csharpexec (Depends-on): Update.
12210         * lib/csharpexec.c: Update.
12211         * modules/javacomp (Depends-on): Update.
12212         * lib/javacomp.c: Update.
12213         * modules/javaexec (Depends-on): Update.
12214         * lib/javaexec.c: Update.
12215         * modules/mbscasestr (Depends-on): Update.
12216         * lib/mbscasestr.c: Update.
12217         * modules/mbsstr (Depends-on): Update.
12218         * lib/mbsstr.c: Update.
12219         * modules/setenv (Depends-on): Update.
12220         * lib/setenv.c: Update.
12221         * modules/strcasestr (Depends-on): Update.
12222         * lib/strcasestr.c: Update.
12223         * modules/striconveha (Depends-on): Update.
12224         * lib/striconveha.c: Update.
12225         * modules/relocatable-prog-wrapper (Files): Update.
12226         * lib/relocwrapper.c: Update.
12227         * build-aux/install-reloc: Update.
12228         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12229
12230 2007-06-08  Bruno Haible  <bruno@clisp.org>
12231
12232         Port to uClibc.
12233         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12234         * lib/fpurge.c (fpurge): Likewise.
12235         * lib/freading.c (freading): Likewise.
12236         * lib/fseeko.c (rpl_fseeko): Likewise.
12237         * lib/fseterr.c (fseterr): Likewise.
12238         * lib/fwriting.c (fwriting): Likewise.
12239         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12240
12241 2007-06-08  Bruno Haible  <bruno@clisp.org>
12242
12243         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12244         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12245         * modules/gettext (Files): Add m4/intlmacosx.m4.
12246
12247 2007-06-07  Bruno Haible  <bruno@clisp.org>
12248
12249         * modules/localename-tests: New file.
12250         * tests/test-localename.c: New file.
12251
12252         New module 'localename'.
12253         * lib/localename.h: New file.
12254         * lib/localename.c: New file, from GNU gettext.
12255         * m4/localename.m4: New file.
12256         * modules/localename: New file.
12257
12258 2007-06-07  Bruno Haible  <bruno@clisp.org>
12259
12260         Work around the lack of <wchar.h> on some builds of uClibc.
12261         * doc/headers/wchar.texi: Update.
12262         * lib/wchar_.h: Include <wchar.h> only if it exists.
12263         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12264         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12265         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12266         doesn't exist.
12267         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12268         * modules/mbfile (Depends-on): Add wchar.
12269         * modules/mbiter (Depends-on): Likewise.
12270         * modules/mbuiter (Depends-on): Likewise.
12271         Reported by Simon Josefsson.
12272
12273 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12274
12275         Work around problem reported by Steven M. Schweda in
12276         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12277         Tru64 5.1B with the Compaq compiler environment installed declares
12278         an 'isblank' function but does not define it in the C library.
12279         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12280         * lib/regex_internal.h (isblank): Likewise.
12281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12282         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12283
12284 2007-06-05  Bruno Haible  <bruno@clisp.org>
12285
12286         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12287         ia64.
12288         * modules/printf-safe: New file.
12289         * modules/fprintf-posix (Depends-on): Add printf-safe.
12290         * modules/printf-posix (Depends-on): Likewise.
12291         * modules/snprintf-posix (Depends-on): Likewise.
12292         * modules/sprintf-posix (Depends-on): Likewise.
12293         * modules/vasnprintf-posix (Depends-on): Likewise.
12294         * modules/vasprintf-posix (Depends-on): Likewise.
12295         * modules/vfprintf-posix (Depends-on): Likewise.
12296         * modules/vprintf-posix (Depends-on): Likewise.
12297         * modules/vsnprintf-posix (Depends-on): Likewise.
12298         * modules/vsprintf-posix (Depends-on): Likewise.
12299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12300         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12301         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12302         "no" on i386, x86_64, ia64.
12303         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12304         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12305         on i386, x86_64, ia64.
12306         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12307         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12308         on i386, x86_64, ia64.
12309         * tests/test-vasnprintf-posix.c: Include float.h.
12310         (LDBL80_WORDS): New macro.
12311         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12312         on i386, x86_64, ia64.
12313         * tests/test-vasprintf-posix.c: Include float.h.
12314         (LDBL80_WORDS): New macro.
12315         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12316         on i386, x86_64, ia64.
12317         * tests/test-snprintf-posix.c: Include float.h.
12318         * tests/test-sprintf-posix.c: Likewise.
12319         * tests/test-vsnprintf-posix.c: Likewise.
12320         * tests/test-vsprintf-posix.c: Likewise.
12321
12322 2007-06-05  Bruno Haible  <bruno@clisp.org>
12323
12324         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12325         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12326         non-IEEE numbers on i386, x86_64, ia64.
12327         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12328         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12329         * tests/test-isnanl.h: Include float.h.
12330         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12331
12332 2007-06-05  Bruno Haible  <bruno@clisp.org>
12333
12334         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12335         also the %a / %A. Handle the %a / %A code before this extra handling.
12336
12337 2007-06-05  Bruno Haible  <bruno@clisp.org>
12338
12339         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12340         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12341
12342 2007-06-05  Bruno Haible  <bruno@clisp.org>
12343
12344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12345         typo in variable name.
12346
12347 2007-06-05  Eric Blake  <ebb9@byu.net>
12348
12349         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12350         Reported by Simon Josefsson.
12351
12352 2007-06-04  Bruno Haible  <bruno@clisp.org>
12353
12354         Avoid test failures on some PowerPC platforms.
12355         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12356         Define differently for PowerPC.
12357         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12358         Reported by Gary V. Vaughan <gary@gnu.org>.
12359
12360 2007-06-02  Bruno Haible  <bruno@clisp.org>
12361
12362         Fix test-stdint failure on FreeBSD/ia64.
12363         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12364         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12365         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12366         * doc/headers/stdint.texi: Update.
12367
12368 2007-06-01  Bruno Haible  <bruno@clisp.org>
12369
12370         * tests/test-binary-io.c (main): Pass a third argument to open().
12371         Reported by Gary V. Vaughan <gary@gnu.org>.
12372
12373 2007-06-01  Bruno Haible  <bruno@clisp.org>
12374
12375         * doc/functions/frexpl.texi: Update for mingw.
12376
12377 2007-06-01  Bruno Haible  <bruno@clisp.org>
12378
12379         * tests/test-lseek.c (main): Disable test of errno for invalid third
12380         argument.
12381         * doc/functions/lseek.texi: Update.
12382         Reported by Gary V. Vaughan <gary@gnu.org>.
12383
12384 2007-05-28  Bruno Haible  <bruno@clisp.org>
12385
12386         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12387
12388 2007-05-31  Eric Blake  <ebb9@byu.net>
12389
12390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12391         cross compiling.
12392
12393 2007-05-30  Eric Blake  <ebb9@byu.net>
12394         and Bruno Haible  <bruno@clisp.org>
12395
12396         Work around mingw test failures exposed by m4-1.4.9b.
12397         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12398         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12399         moment.
12400
12401 2007-05-30  Bruno Haible  <bruno@clisp.org>
12402
12403         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12404         assuming that they are closed. Needed on HP-UX 11.
12405
12406 2007-05-29  Bruno Haible  <bruno@clisp.org>
12407
12408         Fix a problem with #include_next.
12409         * lib/dirent_.h: Split the double-inclusion guard.
12410         * lib/fcntl_.h: Likewise.
12411         * lib/float_.h: Likewise.
12412         * lib/iconv_.h: Likewise.
12413         * lib/inttypes_.h: Likewise.
12414         * lib/locale_.h: Likewise.
12415         * lib/math_.h: Likewise.
12416         * lib/netinet_in_.h: Likewise.
12417         * lib/search_.h: Likewise.
12418         * lib/signal_.h: Likewise.
12419         * lib/stdint_.h: Likewise.
12420         * lib/stdio_.h: Likewise.
12421         * lib/stdlib_.h: Likewise.
12422         * lib/string_.h: Likewise.
12423         * lib/sys_select_.h: Likewise.
12424         * lib/sys_socket_.h: Likewise.
12425         * lib/sys_stat_.h: Likewise.
12426         * lib/sys_time_.h: Likewise.
12427         * lib/sysexits_.h: Likewise.
12428         * lib/time_.h: Likewise.
12429         * lib/unistd_.h: Likewise.
12430         * lib/wchar_.h: Likewise.
12431         * lib/wctype_.h: Likewise.
12432
12433 2007-05-29  Bruno Haible  <bruno@clisp.org>
12434
12435         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12436         for the moment.
12437
12438 2007-05-29  Bruno Haible  <bruno@clisp.org>
12439
12440         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12441         invocation.
12442         Reported by Eric Blake.
12443
12444 2007-05-29  Bruno Haible  <bruno@clisp.org>
12445
12446         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12447         compiling case.
12448
12449 2007-05-29  Eric Blake  <ebb9@byu.net>
12450             Bruno Haible  <bruno@clisp.org>
12451
12452         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12453         cross compiles.
12454
12455 2007-05-28  Eric Blake  <ebb9@byu.net>
12456
12457         * modules/closein-tests (test_closein_LDADD): Support test on
12458         cygwin with libtool.
12459
12460 2007-05-28  Bruno Haible  <bruno@clisp.org>
12461
12462         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12463         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12464         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12465         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12466         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12467         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12468         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12469         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12470         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12471
12472 2007-05-28  Eric Blake  <ebb9@byu.net>
12473
12474         Unconditionally include <config.h> in unit tests.
12475         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12476         * tests/test-allocsa.c, tests/test-arcfour.c,
12477         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12478         tests/test-array_list.c, tests/test-array_oset.c,
12479         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12480         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12481         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12482         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12483         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12484         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12485         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12486         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12487         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12488         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12489         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12490         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12491         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12492         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12493         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12494         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12495         test-md5.c, test-memmem.c, test-printf-posix.c,
12496         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12497         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12498         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12499         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12500         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12501         test-vasnprintf-posix2.c, test-vasnprintf.c,
12502         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12503         test-vfprintf-posix.c, test-vprintf-posix.c,
12504         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12505         test-xvasprintf.c: Likewise.
12506
12507 2007-05-28  Bruno Haible  <bruno@clisp.org>
12508
12509         * gnulib-tool (func_import): Remember the --with-tests command-line
12510         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12511         Reported by Eric Blake.
12512
12513 2007-05-28  Bruno Haible  <bruno@clisp.org>
12514
12515         * modules/ftell-tests: New file.
12516         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12517         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12518
12519         * lib/ftell.c: New file.
12520         * modules/ftell: New file.
12521         * m4/ftell.m4: New file.
12522         * doc/functions/ftell.texi: Update.
12523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12524         REPLACE_FTELL.
12525         * lib/stdio_.h (rpl_ftell): New declaration.
12526         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12527         REPLACE_FTELL.
12528
12529 2007-05-28  Eric Blake  <ebb9@byu.net>
12530
12531         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12532
12533 2007-05-28  Bruno Haible  <bruno@clisp.org>
12534
12535         * modules/fseek-tests: New file.
12536         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12537         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12538
12539         * lib/fseek.c: New file.
12540         * modules/fseek: New file.
12541         * m4/fseek.m4: New file.
12542         * doc/functions/fseek.texi: Update.
12543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12544         REPLACE_FSEEK.
12545         * lib/stdio_.h (rpl_fseek): New declaration.
12546         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12547         REPLACE_FSEEK.
12548
12549 2007-05-28  Bruno Haible  <bruno@clisp.org>
12550
12551         * lib/stdio_.h (fflush): More comments.
12552
12553 2007-05-28  Bruno Haible  <bruno@clisp.org>
12554
12555         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12556         runtime test.
12557
12558 2007-05-28  Eric Blake  <ebb9@byu.net>
12559
12560         Improve lseek module.
12561         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12562         * lib/unistd_.h (lseek): Scale back link warning message.
12563         * tests/test-lseek.c: Beef up test.
12564         * tests/test-lseek.sh: Exercise more facets of lseek.
12565         Reported by Bruno Haible.
12566
12567 2007-05-28  Bruno Haible  <bruno@clisp.org>
12568
12569         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12570         to define.
12571
12572 2007-05-27  Bruno Haible  <bruno@clisp.org>
12573
12574         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12575
12576 2007-05-27  Bruno Haible  <bruno@clisp.org>
12577
12578         * modules/openmp: New file.
12579         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12580         Noah Misch.
12581
12582 2007-05-26  Bruno Haible  <bruno@clisp.org>
12583
12584         * modules/chdir-long (Depends-on): Add fchdir.
12585         * modules/chdir-safer (Depends-on): Likewise.
12586         * modules/fts (Depends-on): Likewise.
12587         * modules/fts-lgpl (Depends-on): Likewise.
12588         * modules/openat (Depends-on): Likewise.
12589         * modules/savewd (Depends-on): Likewise.
12590
12591 2007-05-24  Eric Blake  <ebb9@byu.net>
12592
12593         Fix lseek on mingw.
12594         * modules/lseek: New module.
12595         * m4/lseek.m4: New file.
12596         * lib/lseek.c: New file.
12597         * modules/lseek-tests: New file.
12598         * tests/test-lseek.c: New file.
12599         * tests/test-lseek.sh: New file.
12600         * MODULES.html.sh: Document lseek module.
12601         * modules/fflush (Depends-on): Add lseek, fseeko.
12602         * modules/fseeko (Depends-on): Likewise.
12603         * modules/ftello (Depends-on): Likewise.
12604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12605         broken.
12606         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12607         broken.
12608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12609         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12610         * lib/ftello.c (rpl_ftello): Likewise.
12611         * tests/test-fseeko.c (main): Test this.
12612         * tests/test-fseeko.sh: Likewise.
12613         * tests/test-ftello.c (main): Likewise.
12614         * tests/test-ftello.sh: Likewise.
12615         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12616         implies replacing fseek.
12617         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12618         HAVE_FTELLO.
12619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12620         * modules/unistd (Makefile.am): Likewise.
12621         * lib/unistd_.h (lseek): Declare a replacement.
12622         * doc/functions/lseek.texi (lseek): Document this fix.
12623         * doc/functions/fseek.texi (fseek): Likewise.
12624         * doc/functions/ftell.texi (ftell): Likewise.
12625
12626 2007-05-24  Bruno Haible  <bruno@clisp.org>
12627
12628         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12629         in the printed representation of a NaN.
12630         * tests/test-vasprintf-posix.c (test_function): Likewise.
12631         * tests/test-snprintf-posix.h (test_function): Likewise.
12632         * tests/test-sprintf-posix.h (test_function): Likewise.
12633         Reported by Eric Blake.
12634
12635 2007-05-23  Eric Blake  <ebb9@byu.net>
12636
12637         Fix fseeko/ftello on cygwin 1.5.24.
12638         * doc/functions/fseeko.texi (fseeko): Document the fix.
12639         * doc/functions/ftello.texi (ftello): Document the fix.
12640         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12641         * doc/functions/stdout.text (stdout): New file.
12642         * doc/functions/stderr.text (stderr): New file.
12643         * doc/gnulib.texi (Function Substitutes): Use new files.
12644         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12645         prior to 1.7.0.
12646         * tests/test-ftello.c (main): Likewise for ftello.
12647         * tests/test-fseeko.sh: New file.
12648         * tests/test-ftello.sh: New file.
12649         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12650         with seekable stdin.
12651         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12653         (gl_REPLACE_FSEEKO): New macro.
12654         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12655         * modules/fseeko (Files): Distribute fseeko.c.
12656         * modules/ftello (Files): Distribute ftello.c.
12657         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12658         mode.
12659         * lib/ftello.c (rpl_ftello): New file.
12660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12661         fseeko, ftello.
12662         (gl_STDIN_LARGE_OFFSET): New macro.
12663         * modules/stdio (Makefile.am): Perform the replacement.
12664         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12665
12666 2007-05-23  Bruno Haible  <bruno@clisp.org>
12667
12668         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12669         GNULIB_POSIXCHECK is defined.
12670
12671 2007-05-21  Bruno Haible  <bruno@clisp.org>
12672
12673         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12674         Check also the output for NaN arguments. When cross-compiling, guess
12675         no on IRIX.
12676         * lib/vasnprintf.c: Update comments.
12677         * tests/test-vasnprintf-posix.c (strisnan): New function.
12678         (test_function): Use it.
12679         * tests/test-vasprintf-posix.c (strisnan): New function.
12680         (test_function): Use it.
12681         * tests/test-snprintf-posix.h (strisnan): New function.
12682         (test_function): Use it.
12683         * tests/test-sprintf-posix.h (strisnan): New function.
12684         (test_function): Use it.
12685         Reported by Eric Blake.
12686
12687 2007-05-20  Bruno Haible  <bruno@clisp.org>
12688
12689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12690         numbers that fails on BeOS.
12691         * doc/functions/frexpl.texi: Update.
12692
12693 2007-05-20  Jim Meyering  <jim@meyering.net>
12694
12695         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12696         forced upon us by glibc-2.6.
12697
12698 2007-05-20  Bruno Haible  <bruno@clisp.org>
12699
12700         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12701         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12702         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12703         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12704         NEED_PRINTF_INFINITE.
12705         (is_infinitel): New function.
12706         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12708         gl_PREREQ_VASNPRINTF_INFINITE.
12709         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12711         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12712         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12713         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12714         gl_PREREQ_VASNPRINTF_INFINITE.
12715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12716         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12722         * doc/functions/fprintf.texi: Update.
12723         * doc/functions/printf.texi: Update.
12724         * doc/functions/snprintf.texi: Update.
12725         * doc/functions/sprintf.texi: Update.
12726         * doc/functions/vfprintf.texi: Update.
12727         * doc/functions/vprintf.texi: Update.
12728         * doc/functions/vsnprintf.texi: Update.
12729         * doc/functions/vsprintf.texi: Update.
12730
12731 2007-05-20  Bruno Haible  <bruno@clisp.org>
12732
12733         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12734         was not found in libc.
12735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12736
12737 2007-05-20  Bruno Haible  <bruno@clisp.org>
12738
12739         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12740         printed as "-nan" instead of "nan".
12741         * tests/test-vasprintf-posix.c (test_function): Likewise.
12742         * tests/test-snprintf-posix.h (test_function): Likewise.
12743         * tests/test-sprintf-posix.h (test_function): Likewise.
12744         Needed for HP-UX 11.
12745
12746 2007-05-20  Jim Meyering  <jim@meyering.net>
12747
12748         Fix buggy test for the fchownat-deref bug.
12749         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12750         symlink required for the run-test.  Without it, this test would
12751         always declare that fchownat doesn't work, and client code would
12752         unnecessarily use the replacement function with fixed libc.
12753         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12754         Reported by Greg Schafer.
12755
12756 2007-05-19  Bruno Haible  <bruno@clisp.org>
12757
12758         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12759         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12760         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12761         Needed for IRIX 6.5 and Solaris 2.5.1.
12762
12763 2007-05-19  Bruno Haible  <bruno@clisp.org>
12764
12765         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12766         (test_function): Skip tests involving -0.0 on platforms where
12767         -0.0 = 0.0.
12768         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12769         (test_function): Skip tests involving -0.0 on platforms where
12770         -0.0 = 0.0.
12771         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12772         (test_function): Skip tests involving -0.0 on platforms where
12773         -0.0 = 0.0.
12774         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12775         (test_function): Skip tests involving -0.0 on platforms where
12776         -0.0 = 0.0.
12777         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12778         tests.
12779         * tests/test-printf-posix.h (test_function): Likewise.
12780         * tests/test-printf-posix.output: Remove all -0.0 related results.
12781         Needed for IRIX 6.5.
12782
12783 2007-05-19  Bruno Haible  <bruno@clisp.org>
12784
12785         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12786         printed as "nan0x7fffffff" instead of "nan".
12787         * tests/test-vasprintf-posix.c (test_function): Likewise.
12788         * tests/test-snprintf-posix.h (test_function): Likewise.
12789         * tests/test-sprintf-posix.h (test_function): Likewise.
12790         * tests/test-fprintf-posix.h (NaN): Remove macro.
12791         (test_function): Remove all NaN related tests.
12792         * tests/test-printf-posix.h (NaN): Remove macro.
12793         (test_function): Remove all NaN related tests.
12794         * tests/test-printf-posix.output: Remove all NaN related results.
12795         Needed for IRIX 6.5.
12796
12797 2007-05-19  Bruno Haible  <bruno@clisp.org>
12798
12799         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12801
12802 2007-05-19  Bruno Haible  <bruno@clisp.org>
12803
12804         * lib/float_.h: New file.
12805         * m4/float_h.m4: New file.
12806         * modules/float: New file.
12807         * modules/isnanl (Dependencies): Add float.
12808         * modules/isnanl-nolibm (Dependencies): Likewise.
12809         * modules/mathl (Dependencies): Likewise.
12810         * modules/printf-frexpl (Dependencies): Likewise.
12811         * modules/signbit (Dependencies): Likewise.
12812         * modules/vasnprintf (Dependencies): Likewise.
12813         * doc/headers/float.texi: Update.
12814
12815 2007-05-19  Jim Meyering  <jim@meyering.net>
12816
12817         * lib/utimens.c (gl_futimens): Rename from futimens,
12818         now that glibc-2.6 declares futimens.
12819         * lib/utimens.h: Likewise.
12820
12821 2007-05-19  Bruno Haible  <bruno@clisp.org>
12822
12823         Avoid test failures on mingw.
12824         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12825         * tests/test-printf-posix.sh: Likewise.
12826         * tests/test-vfprintf-posix.sh: Likewise.
12827         * tests/test-vprintf-posix.sh: Likewise.
12828
12829 2007-05-19  Bruno Haible  <bruno@clisp.org>
12830
12831         Fix *printf result for NaN, Inf, -0.0 on mingw.
12832         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12833         * lib/vasnprintf.c: Include math.h and isnan.h.
12834         (is_infinite_or_zero): New function.
12835         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12836         values in the %f, %F, %e, %E, %g, %G directives.
12837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12839         gl_PRINTF_INFINITE and test its result. Invoke
12840         gl_PREREQ_VASNPRINTF_INFINITE.
12841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12848         * doc/functions/fprintf.texi: Update.
12849         * doc/functions/printf.texi: Update.
12850         * doc/functions/snprintf.texi: Update.
12851         * doc/functions/sprintf.texi: Update.
12852         * doc/functions/vfprintf.texi: Update.
12853         * doc/functions/vprintf.texi: Update.
12854         * doc/functions/vsnprintf.texi: Update.
12855         * doc/functions/vsprintf.texi: Update.
12856
12857 2007-05-19  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12860         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12861         Instead of multiplying with 10^k, set extra_zeroes to k.
12862         (scale10_round_long_double): Remove function.
12863
12864 2007-05-18  Bruno Haible  <bruno@clisp.org>
12865
12866         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12867         introduced on 2007-05-06.
12868
12869 2007-05-18  Bruno Haible  <bruno@clisp.org>
12870
12871         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12872         %g directives.
12873         * tests/test-vasprintf-posix.c (test_function): Likewise.
12874         * tests/test-snprintf-posix.h (test_function): Likewise.
12875         * tests/test-sprintf-posix.h (test_function): Likewise.
12876
12877 2007-05-18  Bruno Haible  <bruno@clisp.org>
12878
12879         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12880         (strmatch): New function.
12881         (test_function): Test the %f directive on numbers of various exponents.
12882         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12883         (strmatch): New function.
12884         (test_function): Test the %f directive on numbers of various exponents.
12885         * tests/test-snprintf-posix.h (strmatch): New function.
12886         (test_function): Test the %f directive on numbers of various exponents.
12887         * tests/test-sprintf-posix.h (strmatch): New function.
12888         (test_function): Test the %f directive on numbers of various exponents.
12889         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12890         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12891         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12892         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12893
12894 2007-05-18  Bruno Haible  <bruno@clisp.org>
12895
12896         Add support for 'long double' number output.
12897         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12898         * lib/vasnprintf.c: Include math.h and float+.h.
12899         (mp_limb_t): New type.
12900         (GMP_LIMB_BITS): New macro.
12901         (mp_twolimb_t): New type.
12902         (GMP_TWOLIMB_BITS): New macro.
12903         (mpn_t): New type.
12904         (multiply, divide, convert_to_decimal, decode_long_double,
12905         scale10_round_long_double, scale10_round_decimal_long_double,
12906         floorlog10l): New functions.
12907         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12908         for the %f, %F, %e, %E, %g, %G directives.
12909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12911         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12912         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12920         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12921         * modules/snprintf-posix (Depends-on): Likewise.
12922         * modules/sprintf-posix (Depends-on): Likewise.
12923         * modules/vasnprintf-posix (Depends-on): Likewise.
12924         * modules/vasprintf-posix (Depends-on): Likewise.
12925         * modules/vfprintf-posix (Depends-on): Likewise.
12926         * modules/vsnprintf-posix (Depends-on): Likewise.
12927         * modules/vsprintf-posix (Depends-on): Likewise.
12928         * modules/vasnprintf (Files): Add lib/float+.h.
12929         * doc/functions/fprintf.texi: Update.
12930         * doc/functions/printf.texi: Update.
12931         * doc/functions/snprintf.texi: Update.
12932         * doc/functions/sprintf.texi: Update.
12933         * doc/functions/vfprintf.texi: Update.
12934         * doc/functions/vprintf.texi: Update.
12935         * doc/functions/vsnprintf.texi: Update.
12936         * doc/functions/vsprintf.texi: Update.
12937
12938 2007-05-18  Bruno Haible  <bruno@clisp.org>
12939
12940         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12941
12942 2007-05-18  Bruno Haible  <bruno@clisp.org>
12943
12944         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12945         for printing 64-bit integers. Needed for mingw.
12946
12947 2007-05-18  Bruno Haible  <bruno@clisp.org>
12948
12949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12950         gl_FUNC_FREXPL_WORKS.
12951         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12952
12953 2007-05-18  Bruno Haible  <bruno@clisp.org>
12954
12955         * modules/frexpl-nolibm-tests: New file.
12956
12957         * modules/frexpl-nolibm: New file.
12958         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12959
12960 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12961
12962         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12963         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12964         GCC 4.2, which otherwise issues a lot of warnings.
12965         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12966         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12967         Likewise.
12968         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12969         * modules/iconv_open (iconv.h): Likewise.
12970         * modules/locale (locale.h): Likewise.
12971         * modules/netinet_in (netinet/in.h): Likewise.
12972         * modules/sys_select (sys_select.h): Likewise.
12973         * modules/sys_socket (sys/socket.h): Likewise.
12974         * modules/sys_stat (sys/stat.h): Likewise.
12975         * modules/sysexits (sysexits.h): Likewise.
12976         * modules/unistd (unistd.h): Likewise.
12977
12978 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12979
12980         * modules/closein-tests (Makefile.am): Distribute
12981         `test-closein.sh'.
12982
12983 2007-05-17  Bruno Haible  <bruno@clisp.org>
12984
12985         * tests/test-printf-posix.output: Renamed from
12986         tests/test-fprintf-posix.out.
12987         * modules/fprintf-posix-tests: Update.
12988         * modules/printf-posix-tests: Update.
12989         * modules/vfprintf-posix-tests: Update.
12990         * modules/vprintf-posix-tests: Update.
12991         * tests/test-fprintf-posix.sh: Update.
12992         * tests/test-printf-posix.sh: Update.
12993         * tests/test-vfprintf-posix.sh: Update.
12994         * tests/test-vprintf-posix.sh: Update.
12995         Reported by Ralf Wildenhues.
12996
12997 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12998
12999         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13000         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13001         GCC 4.2, which otherwise issues a lot of warnings.
13002         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13003         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13004         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13005         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13006         it should no longer be needed.
13007         * lib/string_.h: Likewise.
13008         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13009         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13010         * modules/inttypes (inttypes.h): Likewise.
13011         * modules/math (math.h): Likewise.
13012         * modules/search (search.h): Likewise.
13013         * modules/signal (signal.h): Likewise.
13014         * modules/stdint (stdint.h): Likewise.
13015         * modules/stdio (stdio.h): Likewise.
13016         * modules/stdlib (stdlib.h): Likewise.
13017         * modules/string (string.h): Likewise.
13018         * modules/sys_time (sys/time.h): Likewise.
13019         * modules/time (time.h): Likewise.
13020         * modules/wchar (wchar.h): Likewise.
13021         * modules/wctype (wtype.h): Likewise.
13022
13023 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13024
13025         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13026
13027 2007-05-13  Bruno Haible  <bruno@clisp.org>
13028
13029         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13030         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13031         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13032         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13033         (gl_PREREQ_STRTOK_R): Don't require it here.
13034
13035 2007-05-13  Bruno Haible  <bruno@clisp.org>
13036
13037         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13038         when used in C++ mode.
13039
13040 2007-05-12  Bruno Haible  <bruno@clisp.org>
13041
13042         * lib/linebuffer.h: Tweak doc.
13043         * lib/linebuffer.c: Likewise.
13044
13045 2007-05-12  James Youngman  <jay@gnu.org>
13046
13047         * lib/linebuffer.c (readlinebuffer_delim): New function,
13048         like readlinebuffer, but use a caller-specified delimiter.
13049         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13050         as the delimiter.
13051         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13052
13053 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13054
13055         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
13056         * modules/openat (Files): Remove openat-die.c.
13057         (Depends-on): Add openat-die.
13058         * modules/openat-die: New module.
13059
13060 2007-05-06  Bruno Haible  <bruno@clisp.org>
13061
13062         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
13063         Update with info about Cygwin.
13064         * doc/functions/fprintf.texi: Update.
13065         * doc/functions/printf.texi: Update.
13066         * doc/functions/snprintf.texi: Update.
13067         * doc/functions/sprintf.texi: Update.
13068         * doc/functions/vfprintf.texi: Update.
13069         * doc/functions/vprintf.texi: Update.
13070         * doc/functions/vsnprintf.texi: Update.
13071         * doc/functions/vsprintf.texi: Update.
13072         Reported by Eric Blake.
13073
13074 2007-05-06  Bruno Haible  <bruno@clisp.org>
13075
13076         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13077         padding ourselves for the floating-point directives.
13078         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13081         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13082         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13085         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13087         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13089         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13090         * tests/test-snprintf-posix.h (test_function): Also check the width
13091         and some flags in the %f directive.
13092         * tests/test-sprintf-posix.h (test_function): Likewise.
13093         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13094         * tests/test-vasprintf-posix.c (test_function): Likewise.
13095         * doc/functions/fprintf.texi: Update.
13096         * doc/functions/printf.texi: Update.
13097         * doc/functions/snprintf.texi: Update.
13098         * doc/functions/sprintf.texi: Update.
13099         * doc/functions/vfprintf.texi: Update.
13100         * doc/functions/vprintf.texi: Update.
13101         * doc/functions/vsnprintf.texi: Update.
13102         * doc/functions/vsprintf.texi: Update.
13103
13104 2007-05-06  Bruno Haible  <bruno@clisp.org>
13105
13106         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13107         pass the ' flag character to sprintf or snprintf.
13108         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13111         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13112         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13120         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13121         flag.
13122         * tests/test-sprintf-posix.h (test_function): Likewise.
13123         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13124         * tests/test-vasprintf-posix.c (test_function): Likewise.
13125         * doc/functions/fprintf.texi: Update.
13126         * doc/functions/printf.texi: Update.
13127         * doc/functions/snprintf.texi: Update.
13128         * doc/functions/sprintf.texi: Update.
13129         * doc/functions/vfprintf.texi: Update.
13130         * doc/functions/vprintf.texi: Update.
13131         * doc/functions/vsnprintf.texi: Update.
13132         * doc/functions/vsprintf.texi: Update.
13133
13134 2007-05-01  Bruno Haible  <bruno@clisp.org>
13135
13136         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13137
13138 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13141         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13142
13143 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13144
13145         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13146         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13148
13149 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13150
13151         * lib/argp-help.c (struct hol_entry): New member `ord'.
13152         (HOL_ENTRY_PTRCMP): Use ord for comparison
13153         (hol_sort): Initialize ord.
13154
13155 2007-05-01  Bruno Haible  <bruno@clisp.org>
13156
13157         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13158         Reported by Eric Blake.
13159         * doc/gnulib.texi (Function Substitutes): Update.
13160
13161 2007-05-01  Bruno Haible  <bruno@clisp.org>
13162
13163         * doc/functions.texi: Remove file, now redundant through
13164         doc/functions/*.texi.
13165
13166 2007-05-01  Bruno Haible  <bruno@clisp.org>
13167
13168         * modules/argp (Depends-on): Add sleep.
13169
13170 2007-05-01  Bruno Haible  <bruno@clisp.org>
13171
13172         * modules/sleep-tests: New file.
13173         * tests/test-sleep.c: New file.
13174
13175         * modules/sleep: New file.
13176         * lib/sleep.c: New file.
13177         * m4/sleep.m4: New file.
13178         * lib/unistd_.h (sleep): New declaration.
13179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13180         HAVE_SLEEP.
13181         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13182         * doc/functions/sleep.texi: Document the sleep module.
13183
13184 2007-05-01  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/sigprocmask.h: Remove file.
13187         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13188         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13190         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13191         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13192         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13193         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13194         HAVE_SIGSET_T as a shell variable.
13195         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13196         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13197         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13198         (Depends-on): Add signal. Remove verify.
13199         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13200         (Include): Mention <signal.h> instead of sigprocmask.h.
13201         * NEWS: Mention the change.
13202         * lib/fatal-signal.c: Don't include sigprocmask.h.
13203
13204 2007-05-01  Bruno Haible  <bruno@clisp.org>
13205
13206         * modules/signal: New file.
13207         * lib/signal_.h: New file.
13208         * m4/signal_h.m4: New file.
13209
13210 2007-05-01  Bruno Haible  <bruno@clisp.org>
13211
13212         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13213         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13214         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13215         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13216
13217 2007-05-01  Bruno Haible  <bruno@clisp.org>
13218
13219         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13220         configure time.
13221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13222         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13223         * modules/sys_stat (Makefile.am): Substitute their values into
13224         sys/stat.h.
13225
13226 2007-05-01  Bruno Haible  <bruno@clisp.org>
13227
13228         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13229         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13230         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13231
13232 2007-05-01  Bruno Haible  <bruno@clisp.org>
13233
13234         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13235         'assert' module here.
13236
13237 2007-05-01  Bruno Haible  <bruno@clisp.org>
13238
13239         * doc/functions/*.texi: New files.
13240         * doc/functions/google-ranking.txt: New file.
13241         * doc/gnulib.texi (Function Substitutes): New chapter.
13242         (ctime, inet_ntoa): Remove sections.
13243         * doc/ctime.texi: Remove file.
13244         * doc/inet_ntoa.texi: Remove file.
13245         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13246         dependencies.
13247         (%.info): New rule, specifying a --reference-limit.
13248
13249 2007-05-01  Bruno Haible  <bruno@clisp.org>
13250
13251         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13252
13253 2007-05-01  Bruno Haible  <bruno@clisp.org>
13254
13255         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13256         the portability of 'mkdir' to mingw systems.
13257
13258 2007-05-01  Bruno Haible  <bruno@clisp.org>
13259
13260         * doc/headers/google-ranking.txt: New file.
13261
13262 2007-04-30  Eric Blake  <ebb9@byu.net>
13263
13264         Prefer fseeko to fseek.
13265         * modules/getpass (Depends-on): Add fseeko.
13266         * lib/getpass.c (getpass): Use fseeko, not fseek.
13267
13268 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13269
13270         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13271         assumes the sorting is stable, while most qsort implementations
13272         are not.  Use argument addresses to ensure they never compare as
13273         equal.
13274
13275         * tests/test-argp-2.sh (usage-indent test): Fix output
13276         (func_compare): Restore diff options
13277         * tests/test-argp.c: Restore #include "progname.h"
13278
13279 2007-04-29  Bruno Haible  <bruno@clisp.org>
13280
13281         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13283         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13285         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13286         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13287         (TESTS, check_PROGRAMS): Add test-snprintf.
13288         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13289         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13290         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13291         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13292         assertions that fail on HP-UX, OSF/1, or IRIX.
13293         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13294
13295 2007-04-29  Bruno Haible  <bruno@clisp.org>
13296
13297         * MODULES.html.sh (posix_functions): Remove 'contents'.
13298
13299 2007-04-29  Karl Berry  <karl@gnu.org>
13300
13301         * config/srclist.txt (gendocs_template_min): new entry.
13302
13303 2007-04-29  Bruno Haible  <bruno@clisp.org>
13304
13305         Work around fpurge bug on BSD systems.
13306         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13307         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13308         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13309         fpurge to rpl_fpurge if the system already has this function.
13310         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13311         the case where the system already has this function. Correct invariants
13312         on BSD systems.
13313         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13314         BSD systems.
13315
13316 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13317
13318         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13319         proposed by Sven Verdoolaege.
13320
13321         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13322         options.
13323         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13324         (usage and help tests): Update
13325
13326 2007-04-29  Bruno Haible  <bruno@clisp.org>
13327
13328         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13329         Print more information in case of failure. Disable a test on BeOS.
13330
13331 2007-04-29  Bruno Haible  <bruno@clisp.org>
13332
13333         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13334         This helps debugging on systems on which no gdb is available.
13335
13336 2007-04-29  Bruno Haible  <bruno@clisp.org>
13337
13338         * lib/freading.h: Improve comments.
13339         * lib/fwriting.h: Likewise.
13340         * tests/test-freading.c (main): Don't check freading immediately after
13341         repositioning. Needed for glibc.
13342
13343 2007-04-29  Bruno Haible  <bruno@clisp.org>
13344
13345         * lib/freading.c (freading): Trivial simplification.
13346
13347 2007-04-28  Bruno Haible  <bruno@clisp.org>
13348
13349         * tests/test-fwriting.c (main): Also test the interaction between
13350         fflush and fwriting.
13351         * modules/fwriting-tests (Depends-on): Add fflush.
13352
13353         * tests/test-freading.c (main): Also test the interaction between
13354         fflush and freading.
13355         * modules/freading-tests (Depends-on): Add fflush.
13356
13357 2007-04-28  Bruno Haible  <bruno@clisp.org>
13358
13359         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13360         fseeko and ftello.
13361         Suggested by Eric Blake.
13362
13363 2007-04-28  Jim Meyering  <jim@meyering.net>
13364
13365         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13366         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13367         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13368
13369 2007-04-27  Eric Blake  <ebb9@byu.net>
13370
13371         * doc/headers/assert.texi (assert.h): Document assert module use.
13372
13373 2007-04-27  Bruno Haible  <bruno@clisp.org>
13374
13375         * doc/headers/*.texi: New files.
13376         * doc/gnulib.texi (Header File Substitutes): New chapter.
13377         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13378         dependencies.
13379         (standards.info ,standards.html, standards.dvi): Update dependencies.
13380         (mostlyclean, clean): New targets.
13381
13382 2007-04-27  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13385         * modules/sysexits (Files, Makefile.am): Update.
13386
13387         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13388         * modules/sys_socket (Files, Makefile.am): Update.
13389
13390         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13391         * modules/sys_stat (Files, Makefile.am): Update.
13392
13393 2007-04-27  Eric Blake  <ebb9@byu.net>
13394
13395         * lib/freading.h: Improve comments.
13396         * lib/fwriting.h: Likewise.
13397         * lib/fflush.c: Likewise.
13398
13399         Fix closein for mingw.
13400         * modules/closein-tests: Add tests for closein.
13401         * tests/test-closein.c: New file.
13402         * tests/test-closein.sh: Likewise.
13403         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13404         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13405
13406 2007-04-27  Bruno Haible  <bruno@clisp.org>
13407
13408         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13409         version is < 6.
13410         * lib/math_.h [__DECC]: Likewise.
13411         * lib/stdio_.h [__DECC]: Likewise.
13412         * lib/stdlib_.h [__DECC]: Likewise.
13413         * lib/string_.h [__DECC]: Likewise.
13414         * lib/time_.h [__DECC]: Likewise.
13415         * lib/wchar_.h [__DECC]: Likewise.
13416         * lib/wctype_.h [__DECC]: Likewise.
13417
13418 2007-04-27  Bruno Haible  <bruno@clisp.org>
13419
13420         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13421
13422 2007-04-27  Bruno Haible  <bruno@clisp.org>
13423
13424         * lib/fflush.c: Add comments.
13425         * modules/fpurge-tests (Depends-on): Add fflush.
13426         * modules/freadable-tests (Depends-on): Likewise.
13427         * modules/fwritable-tests (Depends-on): Likewise.
13428
13429 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13430
13431         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13432         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13433         Report by Bruno Haible <bruno@clisp.org>.
13434
13435 2007-04-26  Eric Blake  <ebb9@byu.net>
13436
13437         Fix fflush on mingw.
13438         * modules/fflush (Depends-on): Add freading.
13439         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13440         but unread data.
13441
13442 2007-04-26  Eric Blake  <ebb9@byu.net>
13443         and Bruno Haible  <bruno@clisp.org>
13444
13445         Implement freading and fwriting.
13446         * lib/freading.c: New file.
13447         * lib/freading.h: Likewise.
13448         * m4/freading.m4: Likewise.
13449         * modules/freading: Likewise.
13450         * modules/freading-tests: Likewise.
13451         * tests/test-freading.c: Likewise.
13452         * lib/fwriting.c: New file.
13453         * lib/fwriting.h: Likewise.
13454         * m4/fwriting.m4: Likewise.
13455         * modules/fwriting: Likewise.
13456         * modules/fwriting-tests: Likewise.
13457         * tests/test-fwriting.c: Likewise.
13458         * MODULES.html.sh (File stream based Input/Output): Mention them.
13459
13460 2007-04-26  Bruno Haible  <bruno@clisp.org>
13461
13462         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13463         'long' when we assume it.
13464         Suggested by Eric Blake.
13465
13466 2007-04-26  Bruno Haible  <bruno@clisp.org>
13467
13468         Ensure fseeko, ftello are declared on glibc systems.
13469         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13470         * modules/fseeko (configure.ac-early): Likewise.
13471         * modules/ftello (configure.ac-early): Likewise.
13472         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13473         AC_FUNC_FSEEKO for this.
13474         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13475         (gl_CHECK_FSEEKO): Remove macro.
13476
13477 2007-04-26  Bruno Haible  <bruno@clisp.org>
13478
13479         * tests/test-fflush.c (main): Also check the ftell result after
13480         fflush and fseek/fseeko.
13481         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13482         file descriptor position cache in the stream.
13483         * lib/fseeko.c (rpl_fseeko): Likewise.
13484
13485 2007-04-26  Bruno Haible  <bruno@clisp.org>
13486
13487         * modules/fflush-tests (Depends-on): Add fseeko.
13488
13489 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13490             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13491
13492         * lib/argz_.h: ensure error_t definition is obtained in same
13493         mechanism system argz.h would have.
13494         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13495         argz facilities are known bad.  Err on the side of caution if
13496         cross-compiling.
13497
13498 2007-04-25  Eric Blake  <ebb9@byu.net>
13499
13500         * lib/fpurge.c (includes): Use stdlib.h for free.
13501         * tests/test-fflush.c (main): Also test fflush-fseeko.
13502
13503 2007-04-25  Bruno Haible  <bruno@clisp.org>
13504
13505         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13506         * lib/fseeko.c: New file.
13507         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13508         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13509         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13510         gl_FUNC_FSEEKO.
13511         (gl_FUNC_FSEEKO): Invoke it.
13512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13513         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13514         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13515
13516 2007-04-25  Bruno Haible  <bruno@clisp.org>
13517
13518         * modules/fflush (Depends-on): Add ftello.
13519
13520 2007-04-25  Bruno Haible  <bruno@clisp.org>
13521
13522         * modules/ftello-tests: New file.
13523         * tests/test-ftello.c: New file.
13524
13525         * modules/ftello: New file.
13526         * m4/ftello.m4: New file.
13527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13528         HAVE_FTELLO.
13529         * lib/stdio_.h (ftello): New declaration.
13530         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13531         HAVE_FTELLO.
13532
13533 2007-04-25  Bruno Haible  <bruno@clisp.org>
13534
13535         * modules/fseeko-tests: New file.
13536         * tests/test-fseeko.c: New file.
13537
13538         * modules/fseeko: New file.
13539         * m4/fseeko.m4: New file.
13540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13541         HAVE_FSEEKO.
13542         * lib/stdio_.h (fseeko): New declaration.
13543         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13544         HAVE_FSEEKO.
13545
13546 2007-04-25  Bruno Haible  <bruno@clisp.org>
13547
13548         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13549
13550 2007-04-25  Bruno Haible  <bruno@clisp.org>
13551
13552         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13553         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13554         * tests/test-unistd.c: Likewise.
13555         * tests/test-fcntl.c: Likewise.
13556
13557 2007-04-23  Eric Blake  <ebb9@byu.net>
13558
13559         * lib/fflush.c: Fix missing include.
13560         Reported by Bruno Haible.
13561
13562 2007-04-23  Bruno Haible  <bruno@clisp.org>
13563
13564         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13565         Reported by Eric Blake.
13566
13567 2007-04-23  Bruno Haible  <bruno@clisp.org>
13568
13569         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13570
13571 2007-04-23  Bruno Haible  <bruno@clisp.org>
13572
13573         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13574
13575 2007-04-23  Bruno Haible  <bruno@clisp.org>
13576
13577         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13578         Needed on HP-UX 11.
13579
13580 2007-04-16  Eric Blake  <ebb9@byu.net>
13581
13582         Make fflush rely on fpurge.
13583         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13584         open coding all variants.
13585         * modules/fflush (Depends-on): Add fpurge and unistd.
13586         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13587         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13588
13589         Fix --with-tests compilation on cygwin.
13590         * modules/argmatch-tests (Makefile.am): List gnulib library first
13591         in LDADD.
13592         * modules/argp-tests (Makefile.am): Likewise.
13593         * modules/array-list-tests (Makefile.am): Likewise.
13594         * modules/array-oset-tests (Makefile.am): Likewise.
13595         * modules/avltree-list-tests (Makefile.am): Likewise.
13596         * modules/avltree-oset-tests (Makefile.am): Likewise.
13597         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13598         * modules/carray-list-tests (Makefile.am): Likewise.
13599         * modules/dirname-tests (Makefile.am): Likewise.
13600         * modules/frexp-tests (Makefile.am): Likewise.
13601         * modules/isnanl-tests (Makefile.am): Likewise.
13602         * modules/linked-list-tests (Makefile.am): Likewise.
13603         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13604         * modules/lock-tests (Makefile.am): Likewise.
13605         * modules/rbtree-list-tests (Makefile.am): Likewise.
13606         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13607         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13608         * modules/tls-tests (Makefile.am): Likewise.
13609         * modules/tsearch-tests (Makefile.am): Likewise.
13610         * modules/xvasprintf-tests (Makefile.am): Likewise.
13611
13612         Fix fpurge for cygwin.
13613         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13614         value.
13615         * modules/fpurge-tests (Depends-on): Clean up trash.
13616
13617 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13618
13619         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13620
13621         * m4/autobuild.m4: Re-indent.
13622
13623 2007-04-13  Bruno Haible  <bruno@clisp.org>
13624
13625         * modules/fpurge-tests: New file.
13626         * tests/test-fpurge.c: New file.
13627
13628         * modules/fpurge: New file.
13629         * lib/fpurge.h: New file.
13630         * lib/fpurge.c: New file.
13631         * m4/fpurge.m4: New file.
13632
13633 2007-04-13  Bruno Haible  <bruno@clisp.org>
13634
13635         * modules/fbufmode-tests: New file.
13636         * tests/test-fbufmode.c: New file.
13637
13638         * modules/fbufmode: New file.
13639         * lib/fbufmode.h: New file.
13640         * lib/fbufmode.c: New file.
13641         * m4/fbufmode.m4: New file.
13642
13643 2007-04-13  Bruno Haible  <bruno@clisp.org>
13644
13645         * modules/fwritable-tests: New file.
13646         * tests/test-fwritable.c: New file.
13647
13648         * modules/fwritable: New file.
13649         * lib/fwritable.h: New file.
13650         * lib/fwritable.c: New file.
13651         * m4/fwritable.m4: New file.
13652
13653 2007-04-13  Bruno Haible  <bruno@clisp.org>
13654
13655         * modules/freadable-tests: New file.
13656         * tests/test-freadable.c: New file.
13657
13658         * modules/freadable: New file.
13659         * lib/freadable.h: New file.
13660         * lib/freadable.c: New file.
13661         * m4/freadable.m4: New file.
13662
13663 2007-04-13  Bruno Haible  <bruno@clisp.org>
13664
13665         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13666         MOSTLYCLEANFILES.
13667
13668 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13669
13670         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13671         gzip bootstrap.conf to avoid dragging in i18n machinery.
13672         (gnulib_tool_option): Use it.
13673
13674 2007-04-13  Bruno Haible  <bruno@clisp.org>
13675
13676         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13677         %F directives.
13678         * tests/test-vasprintf-posix.c (test_function): Likewise.
13679         * tests/test-snprintf-posix.h (test_function): Likewise.
13680         * tests/test-sprintf-posix.h (test_function): Likewise.
13681         * tests/test-fprintf-posix.h (test_function): Likewise.
13682         * tests/test-printf-posix.h (test_function): Likewise.
13683         * tests/test-fprintf-posix.out: Likewise.
13684
13685 2007-04-13  Bruno Haible  <bruno@clisp.org>
13686
13687         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13688         * modules/tls-tests (configure.ac): Likewise.
13689         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13690
13691 2007-04-13  Bruno Haible  <bruno@clisp.org>
13692
13693         * lib/tls.c (glthread_tls_get): Fix return type.
13694         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13695
13696 2007-04-12  Eric Blake  <ebb9@byu.net>
13697
13698         * modules/gettime (Depends-on): Remove gettime.
13699         Reported by Dmitry V. Levin.
13700
13701 2007-04-12  Bruno Haible  <bruno@clisp.org>
13702
13703         * modules/fflush (Include): Mention <stdio.h>.
13704         * modules/strtoimax (Include): Mention <inttypes.h>.
13705         * modules/strtoumax (Include): Likewise.
13706
13707 2007-04-12  Eric Blake  <ebb9@byu.net>
13708
13709         * .cvsignore: New file.
13710         * .gitignore: Likewise.
13711
13712 2007-04-12  Bruno Haible  <bruno@clisp.org>
13713
13714         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13715         not before, since $(LDADD) often contains libgnu.a.
13716         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13717         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13718         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13719         Needed on Cygwin.
13720
13721 2007-04-12  Eric Blake  <ebb9@byu.net>
13722
13723         Work around glibc's failure to flush stdin on fclose.
13724         * lib/closein.c (close_stdin): Flush stdin before closing.
13725
13726         Work around glibc's failure to reset seekable stdin on exit.
13727         * modules/closein: New module.
13728         * lib/closein.c: New file.
13729         * lib/closein.h: Likewise.
13730         * m4/closein.m4: Likewise.
13731         * MODULES.html.sh (File stream based Input/Output): Document it.
13732
13733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13734
13735         * gnulib-tool: Rename generated 'autobuild' script to
13736         'do-autobuild' in --create-megatestdir output.
13737
13738         * doc/gnulib.texi (Build robot for gnulib): Fix.
13739
13740 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13741
13742         * modules/sysexits (Depends-on): Add absolute-header.
13743
13744 2007-04-12  Eric Blake  <ebb9@byu.net>
13745
13746         No need to preserve errno on success.
13747         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13748         Reported by Bruno Haible.
13749
13750 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13751
13752         * MODULES.html.sh (Support for maintaining and releasing
13753         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13754
13755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13756
13757         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13758
13759 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13760
13761         * modules/autobuild: New module.
13762
13763         * m4/autobuild.m4: New file.
13764
13765 2007-04-11  Bruno Haible  <bruno@clisp.org>
13766
13767         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13768         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13790         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13791         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13795         Reported by Eric Blake.
13796
13797 2007-04-11  Bruno Haible  <bruno@clisp.org>
13798
13799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13800
13801 2007-04-10  Bruno Haible  <bruno@clisp.org>
13802
13803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13804         for NaN and Infinity. Needed on FreeBSD 6.1.
13805         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13806         regarding results for "%010a" of Infinity and NaN.
13807         * tests/test-vasprintf-posix.c (test_function): Likewise.
13808         * tests/test-snprintf-posix.h (test_function): Likewise.
13809         * tests/test-sprintf-posix.h (test_function): Likewise.
13810         * tests/test-fprintf-posix.h (test_function): Likewise.
13811         * tests/test-printf-posix.h (test_function): Likewise.
13812         * tests/test-fprintf-posix.out: Likewise.
13813
13814 2007-04-10  Bruno Haible  <bruno@clisp.org>
13815
13816         * modules/locale-tests: New file.
13817         * tests/test-locale.c: New file.
13818
13819         * modules/locale: New file.
13820         * lib/locale_.h: New file.
13821         * m4/locale_h.m4: New file.
13822
13823 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13824             Bruno Haible  <bruno@clisp.org>
13825
13826         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13827         be determined, test for availability of the copysignf, copysign,
13828         copysignl functions.
13829         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13830         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13831         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13832
13833 2007-04-09  Eric Blake  <ebb9@byu.net>
13834
13835         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13836         * modules/stdio (Makefile.am): Support fflush.
13837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13838         * modules/fflush: New file.
13839         * lib/fflush.c: Likewise.
13840         * m4/fflush.m4: Likewise.
13841         * modules/fflush-tests: New test.
13842         * tests/test-fflush.c: Likewise.
13843         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13844
13845 2007-04-06  Bruno Haible  <bruno@clisp.org>
13846
13847         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13848         (VASNPRINTF): Use signbit for faster determination whether to print a
13849         minus sign.
13850         * modules/vasnprintf (Files): Remove lib/float+.h.
13851         * modules/fprintf-posix (Depends-on): Add signbit.
13852         * modules/snprintf-posix (Depends-on): Likewise.
13853         * modules/sprintf-posix (Depends-on): Likewise.
13854         * modules/vasnprintf-posix (Depends-on): Likewise.
13855         * modules/vasprintf-posix (Depends-on): Likewise.
13856         * modules/vfprintf-posix (Depends-on): Likewise.
13857         * modules/vsnprintf-posix (Depends-on): Likewise.
13858         * modules/vsprintf-posix (Depends-on): Likewise.
13859
13860 2007-04-06  Bruno Haible  <bruno@clisp.org>
13861
13862         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13863         * tests/test-frexpl.c (main): Likewise.
13864         * tests/test-ldexpl.c (main): Likewise.
13865         * modules/frexp-tests (Depends-on): Add signbit.
13866         * modules/frexpl-tests (Depdends-on): Likewise.
13867         * modules/ldexpl-tests (Depdends-on): Likewise.
13868
13869 2007-04-06  Bruno Haible  <bruno@clisp.org>
13870
13871         * modules/signbit-tests: New file.
13872         * tests/test-signbit.c: New file.
13873
13874         * modules/signbit: New file.
13875         * lib/signbitf.c: New file.
13876         * lib/signbitd.c: New file.
13877         * lib/signbitl.c: New file.
13878         * m4/signbit.m4: New file.
13879         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13880         (signbit): New macro.
13881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13882         REPLACE_SIGNBIT.
13883         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13884         REPLACE_FREXPL into math.h.
13885
13886 2007-04-06  Bruno Haible  <bruno@clisp.org>
13887
13888         * modules/isnanf-nolibm-tests: New file.
13889         * tests/test-isnanf.c: New file.
13890
13891         * modules/isnanf-nolibm: New file.
13892         * lib/isnanf.h: New file.
13893         * lib/isnanf.c: New file.
13894         * lib/isnan.c: Consider the USE_FLOAT macro.
13895         * m4/isnanf.m4: New file.
13896
13897 2007-04-06  Bruno Haible  <bruno@clisp.org>
13898
13899         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13900         (Link): New section.
13901
13902         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13903
13904 2007-04-06  Bruno Haible  <bruno@clisp.org>
13905
13906         Assume the 'long double' type.
13907         * m4/longdouble.m4: Remove file.
13908         * config/srclist.txt: Don't mention longdouble.m4.
13909         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13910         * lib/float+.h: Likewise.
13911         * lib/frexp.c: Likewise.
13912         * lib/printf-args.h: Likewise.
13913         * lib/printf-args.c: Likewise.
13914         * lib/printf-frexp.c: Likewise.
13915         * lib/printf-parse.c: Likewise.
13916         * lib/vasnprintf.c: Likewise.
13917         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13918         * m4/intl.m4: Likewise.
13919         * m4/isnanl.m4: Likewise.
13920         * m4/printf.m4: Likewise.
13921         * m4/printf-frexpl.m4: Likewise.
13922         * m4/vasnprintf.m4: Likewise.
13923         * modules/allocsa (Files): Remove m4/longdouble.m4.
13924         * modules/gettext (Files): Likewise.
13925         * modules/relocatable-prog-wrapper (Files): Likewise.
13926         * modules/vasnprintf (Files): Likewise.
13927         * modules/isnanl (Files): Likewise.
13928         (Include): Simplify.
13929         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13930         (Include): Simplify.
13931         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13932         (Include): Simplify.
13933         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13935         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13937         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13939         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13940         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13941         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13942         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13943         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13944         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13945         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13946         * tests/test-isnanl.c: Likewise.
13947         * tests/test-snprintf-posix.h: Likewise.
13948         * tests/test-sprintf-posix.h: Likewise.
13949         * tests/test-vasnprintf-posix.c: Likewise.
13950         * tests/test-vasnprintf-posix2.c: Likewise.
13951         * tests/test-vasprintf-posix.c: Likewise.
13952
13953 2007-04-06  Bruno Haible  <bruno@clisp.org>
13954
13955         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13956         * lib/math_.h [__DECC]: Include the overridden include file through
13957         #include_next, outside the double-inclusion guard.
13958         * lib/stdio_.h [__DECC]: Likewise.
13959         * lib/stdlib_.h [__DECC]: Likewise.
13960         * lib/string_.h [__DECC]: Likewise.
13961         * lib/time_.h [__DECC]: Likewise.
13962         * lib/wchar_.h [__DECC]: Likewise.
13963         * lib/wctype_.h [__DECC]: Likewise.
13964         * lib/inttypes_.h [__DECC]: Likewise.
13965         Reported by Albert Chin <china@thewrittenword.com> in
13966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13967
13968 2007-04-04  Eric Blake  <ebb9@byu.net>
13969
13970         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13971         1.5.x.
13972
13973 2007-04-04  Bruno Haible  <bruno@clisp.org>
13974
13975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13976         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13977
13978 2007-04-04  Bruno Haible  <bruno@clisp.org>
13979
13980         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13981         results for "%010a" of Infinity and NaN.
13982         * tests/test-vasprintf-posix.c (test_function): Likewise.
13983         * tests/test-snprintf-posix.h (test_function): Likewise.
13984         * tests/test-sprintf-posix.h (test_function): Likewise.
13985         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13986         * tests/test-printf-posix.h (test_function): Likewise.
13987         * tests/test-fprintf-posix.out: Update.
13988         Needed for FreeBSD 6.1.
13989
13990 2007-04-04  Bruno Haible  <bruno@clisp.org>
13991
13992         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13993         directly used by the gnulib modules nor by gnulib-tool.
13994
13995 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         * DEPENDENCIES: Give overall description of version dependency
13998         desirability.  Use more-typical names for apps.
13999         Add shell, coreutils, diffutils, grep, tar, gzip.
14000
14001 2007-04-04  Simon Josefsson  <simon@josefsson.org>
14002
14003         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
14004
14005 2007-04-04  Karl Berry  <karl@gnu.org>
14006
14007         * MODULES.html.sh (func_module): missing '.
14008
14009 2007-04-03  Bruno Haible  <bruno@clisp.org>
14010
14011         * modules/argmatch-tests (Makefile.am): New variable
14012         test_argmatch_LDADD.
14013         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14014         * modules/array-list-tests (Makefile.am): New variable
14015         test_array_list_LDADD.
14016         * modules/array-oset-tests (Makefile.am): New variable
14017         test_array_oset_LDADD.
14018         * modules/avltree-list-tests (Makefile.am): New variable
14019         test_avltree_list_LDADD.
14020         * modules/avltree-oset-tests (Makefile.am): New variable
14021         test_avltree_oset_LDADD.
14022         * modules/avltreehash-list-tests (Makefile.am): New variable
14023         test_avltreehash_list_LDADD.
14024         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14025         test_canonicalize_lgpl_LDADD.
14026         * modules/carray-list-tests (Makefile.am): New variable
14027         test_carray_list_LDADD.
14028         * modules/dirname-tests (Makefile.am): New variable
14029         test_dirname_LDADD.
14030         * modules/linked-list-tests (Makefile.am): New variable
14031         test_linked_list_LDADD.
14032         * modules/linkedhash-list-tests (Makefile.am): New variable
14033         test_linkedhash_list_LDADD.
14034         * modules/rbtree-list-tests (Makefile.am): New variable
14035         test_rbtree_list_LDADD.
14036         * modules/rbtree-oset-tests (Makefile.am): New variable
14037         test_rbtree_oset_LDADD.
14038         * modules/rbtreehash-list-tests (Makefile.am): New variable
14039         test_rbtreehash_list_LDADD.
14040         * modules/xvasprintf-tests (Makefile.am): New variable
14041         test_xvasprintf_LDADD.
14042         Reported by Eric Blake.
14043
14044 2007-04-03  Eric Blake  <ebb9@byu.net>
14045
14046         * DEPENDENCIES: Weaken m4 requirements.
14047
14048 2007-04-03  Bruno Haible  <bruno@clisp.org>
14049
14050         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14051         * modules/isnanl-tests (configure.ac): Likewise.
14052
14053 2007-04-03  Ben Pfaff  <blp@gnu.org>
14054
14055         * modules/iconv_open: Add $(srcdir)/ to source directory
14056         references in Makefile fragments that call gperf, to fix VPATH
14057         builds.
14058
14059 2007-04-03  Bruno Haible  <bruno@clisp.org>
14060
14061         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
14062         * lib/ldexpl.c: Undo last change.
14063
14064 2007-04-03  Bruno Haible  <bruno@clisp.org>
14065
14066         * modules/printf-frexpl (Depends-on): Undo last change.
14067         (Files): Add m4/ldexpl.m4.
14068
14069 2007-04-03  Bruno Haible  <bruno@clisp.org>
14070
14071         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
14072         * modules/isnanl (Link): New section.
14073
14074         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14075         * modules/frexp (Link): New section.
14076
14077         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14078         * modules/frexpl (Link): New section.
14079
14080         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14081         * modules/ldexpl (Link): New section.
14082
14083 2007-04-03  Bruno Haible  <bruno@clisp.org>
14084
14085         * modules/TEMPLATE-EXTENDED: New file.
14086         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14087
14088 2007-04-03  Bruno Haible  <bruno@clisp.org>
14089
14090         * DEPENDENCIES: New file.
14091         Suggested by Simon Josefsson.
14092
14093 2007-04-03  Bruno Haible  <bruno@clisp.org>
14094
14095         * doc/gnulib.texi: Escape @.
14096
14097 2007-04-03  James Youngman  <jay@gnu.org>
14098         and Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14101         birthtime on all systems that have birthtime, not just those which
14102         use st_birthtimensec rather than st_birthtim.  Putting zero in
14103         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14104         that the birth time is not available for files on an NFS mount.
14105
14106 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14107
14108         * modules/memxor: Move back from crypto/, suggested by Bruno.
14109         * modules/crypto/hmac-sha1: Fix memxor dependency.
14110
14111         * modules/crypto/gc: Moved from ../.
14112
14113 2007-04-02  Eric Blake  <ebb9@byu.net>
14114
14115         * lib/ldexpl.c (includes): Avoid libm.
14116
14117         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14118
14119 2007-04-02  Bruno Haible  <bruno@clisp.org>
14120
14121         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14122         on IRIX.
14123
14124 2007-04-02  Bruno Haible  <bruno@clisp.org>
14125
14126         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14127         x86 or x86_64 platforms running MacOS X.
14128         Reported by Ryan Schmidt <@ryandesign.com>.
14129
14130 2007-04-02  Bruno Haible  <bruno@clisp.org>
14131
14132         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14133         i386.
14134
14135 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14136
14137         * modules/crypto/arcfour: Moved from ../.
14138         * modules/crypto/arcfour-tests: Moved from ../.
14139         * modules/crypto/arctwo: Moved from ../.
14140         * modules/crypto/arctwo-tests: Moved from ../.
14141         * modules/crypto/des: Moved from ../.
14142         * modules/crypto/des-tests: Moved from ../.
14143         * modules/crypto/gc-arcfour: Moved from ../.
14144         * modules/crypto/gc-arcfour-tests: Moved from ../.
14145         * modules/crypto/gc-arctwo: Moved from ../.
14146         * modules/crypto/gc-arctwo-tests: Moved from ../.
14147         * modules/crypto/gc-des: Moved from ../.
14148         * modules/crypto/gc-des-tests: Moved from ../.
14149         * modules/crypto/gc-hmac-md5: Moved from ../.
14150         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14151         * modules/crypto/gc-hmac-sha1: Moved from ../.
14152         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14153         * modules/crypto/gc-md2: Moved from ../.
14154         * modules/crypto/gc-md2-tests: Moved from ../.
14155         * modules/crypto/gc-md4: Moved from ../.
14156         * modules/crypto/gc-md4-tests: Moved from ../.
14157         * modules/crypto/gc-md5: Moved from ../.
14158         * modules/crypto/gc-md5-tests: Moved from ../.
14159         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14160         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14161         * modules/crypto/gc-random: Moved from ../.
14162         * modules/crypto/gc-rijndael: Moved from ../.
14163         * modules/crypto/gc-rijndael-tests: Moved from ../.
14164         * modules/crypto/gc-sha1: Moved from ../.
14165         * modules/crypto/gc-sha1-tests: Moved from ../.
14166         * modules/crypto/gc-tests: Moved from ../.
14167         * modules/crypto/hmac-md5: Moved from ../.
14168         * modules/crypto/hmac-md5-tests: Moved from ../.
14169         * modules/crypto/hmac-sha1: Moved from ../.
14170         * modules/crypto/hmac-sha1-tests: Moved from ../.
14171         * modules/crypto/md2: Moved from ../.
14172         * modules/crypto/md2-tests: Moved from ../.
14173         * modules/crypto/md4: Moved from ../.
14174         * modules/crypto/md4-tests: Moved from ../.
14175         * modules/crypto/md5: Moved from ../.
14176         * modules/crypto/md5-tests: Moved from ../.
14177         * modules/crypto/memxor: Moved from ../.
14178         * modules/crypto/rijndael: Moved from ../.
14179         * modules/crypto/rijndael-tests: Moved from ../.
14180         * modules/crypto/sha1: Moved from ../.
14181
14182 2007-03-30  James Youngman  <jay@gnu.org>
14183
14184         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14185         rename() to change the ctime of a file (because ctime is unaffected
14186         by rename on jfs2 on AIX 5.1).
14187         (main): Start by doing cleanup, in case a previous run failed leaving
14188         test files behind.
14189
14190 2007-03-31  Bruno Haible  <bruno@clisp.org>
14191
14192         Support old proprietary implementations of iconv.
14193         * modules/iconv_open: New file.
14194         * lib/iconv_.h: New file.
14195         * m4/iconv_h.m4: New file.
14196         * lib/iconv_open.c: New file.
14197         * lib/iconv_open-aix.gperf: New file.
14198         * lib/iconv_open-hpux.gperf: New file.
14199         * lib/iconv_open-irix.gperf: New file.
14200         * lib/iconv_open-osf.gperf: New file.
14201         * m4/iconv_open.m4: New file.
14202         * modules/linebreak (Depends-on): Add iconv_open.
14203         * modules/striconv (Depends-on): Likewise.
14204         * modules/striconveh (Depends-on): Likewise.
14205         * modules/unicodeio (Depends-on): Likewise.
14206         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14207         (iconv_t)(-1).
14208         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14209         conversion if cd is (iconv_t)(-1).
14210         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14211         is not possible.
14212
14213 2007-03-31  Bruno Haible  <bruno@clisp.org>
14214
14215         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14216         work on Solaris either. Protect also second use of "autodetect_jp".
14217
14218 2007-03-31  Bruno Haible  <bruno@clisp.org>
14219
14220         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14221         the function is not present.
14222
14223 2007-03-31  Bruno Haible  <bruno@clisp.org>
14224
14225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14226         the function is not present.
14227
14228 2007-03-31  Bruno Haible  <bruno@clisp.org>
14229
14230         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14231         a bug in HP-UX iconv_open().
14232
14233 2007-03-31  Bruno Haible  <bruno@clisp.org>
14234
14235         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14236         (Mathematics <math.h>): New section, add fpieee.
14237         (Input/output <stdio.h>): Add fseterr.
14238         (Mathematics <math.h>): New section, add printf-frexp.
14239         (Container data structures): Add sublist.
14240         (Core language properties): Add fpucw, inline.
14241         (Functions for greatest-width integer types <inttypes.h>): Add
14242         imaxabs, imaxdiv, inttypes.
14243         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14244         isnanl-nolibm, ldexp.
14245         (Mathematics <math.h>): New section, add printf-frexpl.
14246         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14247         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14248         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14249         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14250         (Unicode string functions): Add unistr/u*-mbtoucr.
14251         (Java): Add javacomp-script, javaexec-script.
14252         (C#): Add csharpcomp-script, csharpexec-script.
14253         (Support for building libraries and executables): Add havelib,
14254         relocatable-*.
14255         (Support for maintaining and releasing projects): Renamed from
14256         'Support for maintaining and release projects'. Add announce-gen.
14257
14258 2007-03-31  Bruno Haible  <bruno@clisp.org>
14259
14260         * README: Talk primarily about git.
14261         (git and CVS): Renamed from CVS.
14262         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14263         gnulib is available through git.
14264         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14265
14266 2007-03-30  Bruno Haible  <bruno@clisp.org>
14267
14268         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14269         * lib/poll_.h: Likewise.
14270         * lib/stat_.h: Likewise.
14271         * lib/sys_time_.h: Likewise.
14272         * lib/sysexit_.h: Likewise.
14273         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14274         * lib/stdbool_.h: Likewise.
14275         * lib/byteswap_.h: Add double-inclusion guard.
14276
14277 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14278
14279         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14280
14281 2007-03-30  Karl Berry  <karl@gnu.org>
14282
14283         * config/srclist-update: double space after USA in the license
14284         substitution, since that's how it's usually (?) written.
14285
14286 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14289         reported by Bruno Haible.
14290
14291 2007-03-29  Bruno Haible  <bruno@clisp.org>
14292
14293         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14294         a bug in AIX iconv().
14295
14296 2007-03-29  Bruno Haible  <bruno@clisp.org>
14297
14298         * modules/ldexpl-tests: New file.
14299         * tests/test-ldexpl.c: New file.
14300
14301 2007-03-29  Bruno Haible  <bruno@clisp.org>
14302
14303         * lib/ldexpl.c: Include fpucw.h.
14304         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14305         multiplication.
14306         * modules/ldexpl (Depends-on): Add fpucw.
14307
14308 2007-03-29  Bruno Haible  <bruno@clisp.org>
14309
14310         * modules/ldexpl: New file.
14311         * m4/ldexpl.m4: New file.
14312         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14313         set.
14314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14315         REPLACE_LDEXPL.
14316         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14317         REPLACE_LDEXPL.
14318         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14319         gl_FUNC_LDEXPL_WORKS.
14320         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14321         * modules/mathl (Files): Remove lib/ldexpl.c.
14322         (Depends-on): Add ldexpl.
14323
14324 2007-03-29  Bruno Haible  <bruno@clisp.org>
14325
14326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14327
14328 2007-03-29  Bruno Haible  <bruno@clisp.org>
14329
14330         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14331         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14332         and possibly also HP-UX.
14333         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14334         work on AIX, IRIX, HP-UX, OSF/1.
14335         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14336         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14337         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14338         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14339         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14340         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14341
14342 2007-03-29  Bruno Haible  <bruno@clisp.org>
14343
14344         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14345
14346 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14347
14348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14349         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14350
14351 2007-03-29  Eric Blake  <ebb9@byu.net>
14352
14353         * lib/acl-internal.h: Remove redundant include.
14354         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14355         Cygwin when a file is locked.
14356
14357 2007-03-29  Bruno Haible  <bruno@clisp.org>
14358
14359         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14360         file.
14361         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14362
14363 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14364
14365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14366         try to remove a parent directory if the child couldn't be removed
14367         (except for the first rmdir, which could fail because the child
14368         doesn't exist).  Problem reported by Jeff Blaine in
14369         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14370
14371 2007-03-28  Bruno Haible  <bruno@clisp.org>
14372
14373         * lib/striconveh.c (utf8conv_carefully): New function.
14374         (mem_cd_iconveh_internal): Invoke it.
14375
14376 2007-03-28  Bruno Haible  <bruno@clisp.org>
14377
14378         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14379         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14380         input.
14381         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14382         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14383         unistr/u8-uctomb.
14384
14385 2007-03-28  Bruno Haible  <bruno@clisp.org>
14386
14387         * modules/unistr/u8-mbtoucr: New file.
14388         * lib/unistr/u8-mbtoucr.c: New file.
14389         * modules/unistr/u16-mbtoucr: New file.
14390         * lib/unistr/u16-mbtoucr.c: New file.
14391         * modules/unistr/u16-mbtoucr: New file.
14392         * lib/unistr/u16-mbtoucr.c: New file.
14393         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14394
14395 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14396             Bruno Haible  <bruno@clisp.org>
14397
14398         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14399         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14400         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14401
14402         * m4/stdio_h.m4: Add stubs for vasprintf too.
14403
14404         * modules/stdio: Support vasprintf in sed command.
14405
14406         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14407         vasprintf.h.  Add stdio module indicator.
14408
14409         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14410         vasprintf.h.
14411
14412         * lib/vasprintf.h: File removed.
14413
14414         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14415         * lib/vasprintf.c: Ditto.
14416         * lib/xvasprintf.c: Ditto.
14417         * tests/test-vasprintf-posix.c: Ditto.
14418         * tests/test-vasprintf.c: Ditto.
14419
14420 2007-03-27  Bruno Haible  <bruno@clisp.org>
14421
14422         Make vasnprintf multithread-safe.
14423         * lib/vasnprintf.c (decimal_point_char): New function.
14424         (VASNPRINTF): Use it.
14425         Suggested by Simon Josefsson.
14426
14427 2007-03-27  Eric Blake  <ebb9@byu.net>
14428
14429         Support sub-second birthtime on cygwin.
14430         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14431         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14432         (get_stat_birthtime): Also work with st_birthtim.
14433
14434 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14437         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14438         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14439         (get_stat_birthtime_ns): Simplify compile-time tests.
14440         (get_stat_birthtime): Change the API to look like
14441         get_stat_mtime etc., except return a negative tv_nsec on error.
14442         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14443         Don't check for "spare" fields.
14444         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14445         or for struct stat.st_birthtime, as these tests aren't used.
14446         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14447
14448 2007-03-27  Bruno Haible  <bruno@clisp.org>
14449
14450         * lib/stat-time.h: Include <sys/stat.h>.
14451
14452 2007-03-27  James Youngman  <jay@gnu.org>
14453
14454         * lib/stat-time.h (get_stat_birthtime): New function for
14455           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14456         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14457           and its variants.
14458         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14459         * modules/stat-time-test: New file.
14460         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14461
14462 2007-03-26  Bruno Haible  <bruno@clisp.org>
14463
14464         Better support of signalling NaNs.
14465         * lib/atanl.c: Include isnanl.h.
14466         (atanl): Perform test for NaN at the beginning of the function and
14467         through a call to isnanl.
14468         * lib/cosl.c: Include isnanl.h.
14469         (cosl): Perform test for NaN at the beginning of the function and
14470         through a call to isnanl.
14471         * lib/ldexpl.c: Include isnanl.h.
14472         (ldexpl): Perform test for NaN through a call to isnanl.
14473         * lib/logl.c: Include isnanl.h.
14474         (logl): Perform test for NaN at the beginning of the function and
14475         through a call to isnanl.
14476         * lib/sinl.c: Include isnanl.h.
14477         (sinl): Perform test for NaN at the beginning of the function and
14478         through a call to isnanl.
14479         * lib/sqrtl.c: Include isnanl.h.
14480         (sqrtl): Perform test for NaN at the beginning of the function and
14481         through a call to isnanl.
14482         * lib/tanl.c: Include isnanl.h.
14483         (tanl): Perform test for NaN at the beginning of the function and
14484         through a call to isnanl.
14485         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14486         * modules/mathl (Depends-on): Add isnanl.
14487
14488 2007-03-26  Eric Blake  <ebb9@byu.net>
14489
14490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14491         regression in logic sense of previous patch.
14492
14493 2007-03-26  Bruno Haible  <bruno@clisp.org>
14494
14495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14496         unportable shell command "if ! ...".
14497         Reported by Ralf Wildenhues.
14498
14499 2007-03-25  Bruno Haible  <bruno@clisp.org>
14500
14501         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14502         <sysexits.h> file, and only add EX_CONFIG.
14503         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14504         absolute file name and whether it is sufficient. Substitute also
14505         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14506         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14507         ABSOLUTE_SYSEXITS_H into sysexits.h.
14508
14509 2007-03-25  Bruno Haible  <bruno@clisp.org>
14510
14511         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14512         hints is NULL.
14513
14514 2007-03-25  Bruno Haible  <bruno@clisp.org>
14515
14516         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14517         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14518
14519 2007-03-25  Bruno Haible  <bruno@clisp.org>
14520
14521         * lib/vasnprintf.c: Include langinfo.h.
14522         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14523         multithread-safe.
14524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14526         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14530         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14533         Reported by Simon Josefsson.
14534
14535 2007-03-25  Bruno Haible  <bruno@clisp.org>
14536
14537         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14538         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14539         * modules/vasnprintf (Depends-on): Add stdint.
14540
14541 2007-03-25  Bruno Haible  <bruno@clisp.org>
14542
14543         * modules/fpieee: New file.
14544         * m4/fpieee.m4: New file.
14545         * modules/isnan-nolibm (Depends-on): Add fpieee.
14546         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14547         * modules/isnanl (Depends-on): Add fpieee.
14548
14549 2007-03-25  Bruno Haible  <bruno@clisp.org>
14550
14551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14552
14553 2007-03-25  Bruno Haible  <bruno@clisp.org>
14554
14555         Avoid test failures on IRIX 6.5.
14556         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14557         (main): Use it.
14558         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14559         macros.
14560         (main): Use them.
14561
14562 2007-03-25  Bruno Haible  <bruno@clisp.org>
14563
14564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14565         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14566         exists but doesn't work.
14567         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14568         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14570         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14571
14572 2007-03-25  Bruno Haible  <bruno@clisp.org>
14573
14574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14575         returns inf. Needed on IRIX 6.5.
14576
14577 2007-03-25  Bruno Haible  <bruno@clisp.org>
14578
14579         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14580         (main): Use isnanl instead of x != x idiom.
14581         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14582
14583         * tests/test-frexp.c: Include isnan.h.
14584         (main): Use isnan instead of x != x idiom.
14585         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14586
14587 2007-03-25  Bruno Haible  <bruno@clisp.org>
14588
14589         * tests/test-frexp.c (NaN): New function/macro.
14590         (main): Use it instead of 0.0 / 0.0.
14591         * tests/test-isnan.c (NaN): New function/macro.
14592         (main): Use it instead of 0.0 / 0.0.
14593         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14594         (test_function): Use it instead of 0.0 / 0.0.
14595         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14596         (test_function): Use it instead of 0.0 / 0.0.
14597         * tests/test-snprintf-posix.h (NaN): New function/macro.
14598         (test_function): Use it instead of 0.0 / 0.0.
14599         * tests/test-sprintf-posix.h (NaN): New function/macro.
14600         (test_function): Use it instead of 0.0 / 0.0.
14601         * tests/test-fprintf-posix.h (NaN): New function/macro.
14602         (test_function): Use it instead of 0.0 / 0.0.
14603         * tests/test-printf-posix.h (NaN): New function/macro.
14604         (test_function): Use it instead of 0.0 / 0.0.
14605
14606         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14607
14608 2007-03-25  Bruno Haible  <bruno@clisp.org>
14609
14610         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14611
14612 2007-03-25  Bruno Haible  <bruno@clisp.org>
14613
14614         * lib/regexec.c (merge_state_with_log): Make static.
14615
14616 2007-03-25  Bruno Haible  <bruno@clisp.org>
14617
14618         * lib/trigl.c (kernel_rem_pio2): Make static.
14619
14620 2007-03-25  Bruno Haible  <bruno@clisp.org>
14621
14622         * lib/sincosl.c (sincosl_table): Make static.
14623
14624 2007-03-25  Bruno Haible  <bruno@clisp.org>
14625
14626         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14627         if the compiler does not support C99.
14628
14629 2007-03-25  Bruno Haible  <bruno@clisp.org>
14630
14631         * modules/time (Makefile.am): Ensure all rule action lines start with a
14632         tab.
14633
14634 2007-03-24  Bruno Haible  <bruno@clisp.org>
14635
14636         * modules/tsearch-tests: New file.
14637         * tests/test-tsearch.sh: New file.
14638         * tests/test-tsearch.c: New file, mostly copied from glibc.
14639
14640         * modules/search-tests: New file.
14641         * tests/test-search.c: New file.
14642
14643         * modules/search: New file.
14644         * lib/search_.h: New file, incorporating lib/tsearch.h.
14645         * m4/search_h.m4: New file.
14646         * lib/tsearch.h: Remove file.
14647         * lib/tsearch.c: Include search.h instead of tsearch.h.
14648         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14649         HAVE_TSEARCH.
14650         * modules/tsearch (Files): Remove lib/tsearch.h.
14651         (Depends-on): Add search.
14652         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14653         (Include): Change tsearch.h into search.h.
14654
14655 2007-03-24  Bruno Haible  <bruno@clisp.org>
14656
14657         * modules/fpucw: New file.
14658         * lib/fpucw.h: New file.
14659         * lib/frexp.c: Include fpucw.h.
14660         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14661         (FUNC): Use them.
14662         * lib/printf-frexp.c: Include fpucw.h.
14663         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14664         (FUNC): Use them.
14665         * lib/vasnprintf.c: Include fpucw.h.
14666         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14667         'long double' calculations.
14668         * tests/test-frexpl.c: Include fpucw.h.
14669         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14670         * tests/test-printf-frexpl.c: Include fpucw.h.
14671         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14672         * modules/frexpl (Depends-on): Add fpucw.
14673         * modules/printf-frexpl (Depends-on): Likewise.
14674         * modules/fprintf-posix (Depends-on): Likewise.
14675         * modules/snprintf-posix (Depends-on): Likewise.
14676         * modules/sprintf-posix (Depends-on): Likewise.
14677         * modules/vasnprintf-posix (Depends-on): Likewise.
14678         * modules/vasprintf-posix (Depends-on): Likewise.
14679         * modules/vfprintf-posix (Depends-on): Likewise.
14680         * modules/vsnprintf-posix (Depends-on): Likewise.
14681         * modules/vsprintf-posix (Depends-on): Likewise.
14682         * modules/frexpl-tests (Depends-on): Likewise.
14683         * modules/printf-frexpl-tests (Depends-on): Likewise.
14684
14685 2007-03-24  Bruno Haible  <bruno@clisp.org>
14686
14687         * lib/float+.h: New file.
14688         * lib/isnan.c: Include float+.h.
14689         (SIZE): New macro.
14690         (FUNC): Compare only SIZE bytes of the value.
14691         * lib/vasnprintf.c: Include float+.h.
14692         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14693         SIZEOF_LDBL or SIZEOF_DBL bytes.
14694         * modules/isnan-nolibm (Files): Add lib/float+.h.
14695         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14696         * modules/isnanl (Files): Add lib/float+.h.
14697         * modules/vasnprintf (Files): Add lib/float+.h.
14698
14699 2007-03-24  Bruno Haible  <bruno@clisp.org>
14700
14701         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14702         include isnanl-nolibm.h.
14703
14704 2007-03-24  Bruno Haible  <bruno@clisp.org>
14705
14706         * tests/test-read-file.c (main): Don't produce spurious output for
14707         expected situations. Make the test fail if it encountered unexpected
14708         results.
14709
14710 2007-03-24  Bruno Haible  <bruno@clisp.org>
14711
14712         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14713         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14714
14715 2007-03-24  Bruno Haible  <bruno@clisp.org>
14716
14717         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14718
14719 2007-03-24  Bruno Haible  <bruno@clisp.org>
14720
14721         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14722         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14723
14724         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14725         * modules/utf8-ucs4: Turn into a symbolic link to module
14726         unistr/u8-mbtouc.
14727
14728         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14729         utf8-ucs4-unsafe.
14730         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14731         unistr/u8-mbtouc-unsafe.
14732
14733         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14734         * modules/utf16-ucs4: Turn into a symbolic link to module
14735         unistr/u16-mbtouc.
14736
14737         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14738         utf16-ucs4-unsafe.
14739         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14740         unistr/u16-mbtouc-unsafe.
14741
14742         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14743         * modules/ucs4-utf8: Turn into a symbolic link to module
14744         unistr/u8-ubtomb.
14745
14746         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14747         * modules/ucs4-utf16: Turn into a symbolic link to module
14748         unistr/u16-ubtomb.
14749
14750 2007-03-24  Bruno Haible  <bruno@clisp.org>
14751
14752         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14753         Enable the function only if HAVE_INLINE.
14754         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14755         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14756         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14757         Enable the function only if HAVE_INLINE.
14758         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14759         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14760         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14761         Enable the function only if HAVE_INLINE.
14762         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14763         Enable the function only if HAVE_INLINE.
14764         * modules/utf8-ucs4: Update.
14765         * modules/utf8-ucs4-unsafe: Update.
14766         * modules/utf16-ucs4: Update.
14767         * modules/utf16-ucs4-unsafe: Update.
14768         * modules/ucs4-utf8: Update.
14769         * modules/ucs4-utf16: Update.
14770
14771 2007-03-24  Bruno Haible  <bruno@clisp.org>
14772
14773         * lib/utf8-ucs4.h: Remove file.
14774         * lib/utf8-ucs4-unsafe.h: Remove file.
14775         * lib/utf16-ucs4.h: Remove file.
14776         * lib/utf16-ucs4-unsafe.h: Remove file.
14777         * lib/ucs4-utf8.h: Remove file.
14778         * lib/ucs4-utf16.h: Remove file.
14779         * lib/unistr.h: Include their previous contents.
14780         * m4/utf-ucs4.m4: Remove file.
14781         * m4/ucs4-utf.m4: Remove file.
14782         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14783         (Depends-on): Add unistr/base.
14784         (configure.ac): Remove gl_UTF_UCS4.
14785         (Makefile.am): Update.
14786         (Include): Change to unistr.h.
14787         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14788         (Depends-on): Add unistr/base.
14789         (configure.ac): Remove gl_UTF_UCS4.
14790         (Makefile.am): Update.
14791         (Include): Change to unistr.h.
14792         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14793         (Depends-on): Add unistr/base.
14794         (configure.ac): Remove gl_UTF_UCS4.
14795         (Makefile.am): Update.
14796         (Include): Change to unistr.h.
14797         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14798         (Depends-on): Add unistr/base.
14799         (configure.ac): Remove gl_UTF_UCS4.
14800         (Makefile.am): Update.
14801         (Include): Change to unistr.h.
14802         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14803         (Depends-on): Add unistr/base.
14804         (configure.ac): Remove gl_UCS4_UTF.
14805         (Makefile.am): Update.
14806         (Include): Change to unistr.h.
14807         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14808         (Depends-on): Add unistr/base.
14809         (configure.ac): Remove gl_UCS4_UTF.
14810         (Makefile.am): Update.
14811         (Include): Change to unistr.h.
14812         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14813         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14814         utf8-ucs4-unsafe.h.
14815         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14816         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14817         utf16-ucs4-unsafe.h.
14818         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14819         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14820         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14821         * lib/unistr/u8-strchr.c: Likewise.
14822         * lib/unistr/u8-strrchr.c: Likewise.
14823         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14824         * lib/unistr/u16-strchr.c: Likewise.
14825         * lib/unistr/u16-strrchr.c: Likewise.
14826         * lib/striconveh.c: Update.
14827         * lib/linebreak.c: Update.
14828
14829 2007-03-24  Bruno Haible  <bruno@clisp.org>
14830
14831         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14832         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14833
14834 2007-03-22  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14837
14838 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14839
14840         * MODULES.html.sh (File system functions): New module write-any-file.
14841         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14842         * m4/write-any-file.m4: New files.
14843
14844 2007-03-23  Eric Blake  <ebb9@byu.net>
14845
14846         * gnulib-tool: Rearrange space-tab sequences, since some editors
14847         like to eat them.
14848
14849 2007-03-23  Eric Blake  <ebb9@byu.net>
14850
14851         * lib/version-etc.c (version_etc_va): Update license wording to
14852         be more concise.  Recommended by Richard Stallman.
14853
14854 2007-03-22  Bruno Haible  <bruno@clisp.org>
14855
14856         * lib/poll.c (MSG_PEEK): New fallback definition.
14857
14858 2007-03-22  Bruno Haible  <bruno@clisp.org>
14859
14860         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14861         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14862         (main): Update.
14863         Fixes a compilation error on BeOS.
14864
14865 2007-03-22  Bruno Haible  <bruno@clisp.org>
14866
14867         * modules/frexpl-tests: New file.
14868         * tests/test-frexpl.c: New file.
14869
14870         * modules/frexpl: New file.
14871         * m4/frexpl.m4: New file.
14872         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14873         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14875         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14876         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14877         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14878
14879 2007-03-22  Bruno Haible  <bruno@clisp.org>
14880
14881         * lib/frexpl.c: Share code with lib/frexp.c.
14882         * modules/mathl (Files): Add lib/frexp.c.
14883         (Depends-on): Add isnanl-nolibm.
14884
14885 2007-03-22  Bruno Haible  <bruno@clisp.org>
14886
14887         * modules/printf-frexp (Files): Add m4/frexp.m4.
14888         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14889         only if the found frexp function actually works.
14890
14891 2007-03-22  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/frexp.c: Remove older implementation that uses divisions.
14894
14895 2007-03-21  Bruno Haible  <bruno@clisp.org>
14896
14897         * modules/frexp-tests: New file.
14898         * tests/test-frexp.c: New file.
14899
14900         * modules/frexp: New file.
14901         * lib/frexp.c: New file.
14902         * m4/frexp.m4: New file.
14903         * lib/math_.h (frexp): New declaration.
14904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14905         REPLACE_FREXP.
14906         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14907
14908 2007-03-21  Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/isnanl-tests: New file.
14911         * tests/test-isnanl.c: New file.
14912
14913         * modules/isnanl: New file.
14914         * lib/isnanl.h: New file.
14915         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14916         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14917         gl_FUNC_ISNANL_WORKS.
14918         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14919         New macros.
14920
14921 2007-03-21  Bruno Haible  <bruno@clisp.org>
14922
14923         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14924         lib/isnanl.h.
14925         (Include): Update.
14926         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14927         * lib/vasnprintf.c: Update.
14928         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14929         tests/test-isnanl.h, remove tests/test-isnanl.c.
14930         (Makefile.am): Update.
14931         * tests/test-isnanl-nolibm.c: New file.
14932         * tests/test-isnanl.h: New file.
14933         * tests/test-isnanl.c: Remove file.
14934
14935 2007-03-21  Jim Meyering  <jim@meyering.net>
14936
14937         When trying to open ".", treat ESTALE like EACCES.
14938         * lib/savewd.c (savewd_save): Resort to forking not just upon
14939         failure with EACCES, but also when errno is ESTALE.
14940
14941 2007-03-20  Bruno Haible  <bruno@clisp.org>
14942
14943         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14944         Needed on AIX 5.1. Reported by Matthew Woehlke.
14945
14946 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         Suggestions by Bruno Haible:
14949         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14950         our own.
14951         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14952         * modules/acl (Depends-on): Add gettext.
14953
14954 2007-03-19  Bruno Haible  <bruno@clisp.org>
14955
14956         * modules/iconvme: Remove file.
14957         * lib/iconvme.h: Remove file.
14958         * lib/iconvme.c: Remove file.
14959         * m4/iconvme.m4: Remove file.
14960
14961 2007-03-19  Bruno Haible  <bruno@clisp.org>
14962
14963         * doc/relocatable-maint.texi: Break long shell script line.
14964         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14965
14966 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14967
14968         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14969         handle file_has_acl.
14970         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14971         * lib/acl.c: Move header inclusions and related macro defns into
14972         lib/acl-internal.h.
14973         (S_ISLNK): Remove defn, since that's now done for us.
14974         (file_has_acl): Move to lib/file-has-acl.c.
14975         Call acl_trivial if available.  This is the crucial part of the fix.
14976         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14977         shared within the library.  Rewrite a bit, partly to make it compatible
14978         with the GNU coding style.
14979         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14980         Remove unnecessary double-quotes.
14981         Don't test for acl_to_text; the build will catch that.
14982         Replace acl_entries if it doesn't exist and it is needed.
14983         Check for -lsec and acl_trivial (as used on Solaris 10).
14984         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14985         lib/file-has-acl.c.
14986         (Depends-on): Add sys_stat, for S_ISLNK.
14987
14988 2007-03-19  Ben Pfaff  <blp@gnu.org>
14989
14990         * doc/gnulib.texi: Fix typos.
14991         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14992
14993 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14994
14995         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14996         If size is zero here, buf must be zero.
14997
14998 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14999
15000         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
15001         <bruno@clisp.org>.
15002
15003 2007-03-18  Bruno Haible  <bruno@clisp.org>
15004
15005         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15006         Suggested by Eric Blake.
15007
15008 2007-03-18  Ben Pfaff  <blp@gnu.org>
15009
15010         * doc/relocatable.texi: Recommend using as prefix a directory
15011         that does not exist and will never be created.  Based on
15012         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15013         and others.
15014
15015 2007-03-17  Bruno Haible  <bruno@clisp.org>
15016
15017         * lib/fchownat.c: Include lchown.h.
15018
15019 2007-03-17  Bruno Haible  <bruno@clisp.org>
15020
15021         Fix endless loop when the given allocated size was > INT_MAX.
15022         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15023         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15024         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15025         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15026         * lib/sprintf.c (sprintf): Likewise.
15027
15028 2007-03-17  Bruno Haible  <bruno@clisp.org>
15029
15030         * tests/test-argp-2.sh (func_compare): Output a context diff.
15031
15032 2007-03-17  Bruno Haible  <bruno@clisp.org>
15033
15034         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15035         locale's decimal-point character.
15036
15037 2007-03-17  Bruno Haible  <bruno@clisp.org>
15038
15039         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15040         before comparing it. Needed because on some platforms (e.g. x86) a
15041         'long double' occupies less bytes than sizeof (long double).
15042
15043 2007-03-17  Bruno Haible  <bruno@clisp.org>
15044
15045         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15046         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15047         * tests/test-getaddrinfo.c (simple): Likewise.
15048         * tests/test-read-file.c (main): Likewise.
15049
15050 2007-03-17  Bruno Haible  <bruno@clisp.org>
15051
15052         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
15053
15054 2007-03-17  Bruno Haible  <bruno@clisp.org>
15055
15056         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
15057         unused variable.
15058
15059 2007-03-17  Bruno Haible  <bruno@clisp.org>
15060
15061         * tests/test-c-strcasecmp.c: Include c-strcase.h.
15062         * tests/test-c-strncasecmp.c: Likewise.
15063
15064 2007-03-17  Bruno Haible  <bruno@clisp.org>
15065
15066         * modules/stdlib (Depends-on): Add unistd.
15067         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
15068         Needed for MacOS X 10.3.
15069
15070 2007-03-17  Bruno Haible  <bruno@clisp.org>
15071
15072         * lib/unistr/u-strdup.h: Include <stdlib.h>.
15073
15074 2007-03-17  Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15077
15078 2007-03-17  Bruno Haible  <bruno@clisp.org>
15079
15080         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15081         to reflect files copied from gnulib (with or without modifications).
15082         Suggested by Jim Meyering.
15083
15084 2007-03-17  Eric Blake  <ebb9@byu.net>
15085
15086         * NEWS: Document stdlib change from 2007-02-18.
15087
15088 2007-03-17  Jim Meyering  <jim@meyering.net>
15089
15090         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15091         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15092         someone uses a name containing shell meta-characters.
15093         Reported by Alfred M. Szmidt.
15094
15095         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15096
15097 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15098
15099         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15100         and copy gettext configuration files only if configure.ac contains
15101         a use of AM_GNU_GETTEXT_VERSION.
15102
15103 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15104
15105         * build-aux/bootstrap (gnulib_name): New variable.
15106         (gnulib_tool_options): Use it.
15107
15108 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15109
15110         * tests/test-des.c: Use new namespace.
15111
15112 2007-03-15  Bruno Haible  <bruno@clisp.org>
15113
15114         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15115         Reported by James Youngman <jay@gnu.org>.
15116
15117 2007-03-15  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15120         declared prototype. Needed with cc on OSF/1 5.1.
15121
15122 2007-03-15  Bruno Haible  <bruno@clisp.org>
15123
15124         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15125         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15126         (struct gl_list_implementation): Add dispose_fn argument to the
15127         'create_empty', 'create' methods.
15128         (struct gl_list_impl_base): Add field 'dispose_fn'.
15129         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15130         argument.
15131         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15132         dispose_fn argument.
15133         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15134         dispose_fn on the dropped values.
15135         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15136         dispose_fn argument.
15137         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15138         dropped values.
15139         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15140         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15141         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15142         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15143         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15144         argument.
15145         (gl_tree_list_free): Call dispose_fn on the dropped values.
15146         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15147         the dropped values.
15148         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15149         Add dispose_fn argument.
15150         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15151         Call dispose_fn on the dropped values.
15152         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15153         Add dispose_fn argument.
15154         (gl_sublist_create): Initialize the 'dispose_fn' field.
15155         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15156         * tests/test-array_list.c (main): Update.
15157         * tests/test-carray_list.c (main): Update.
15158         * tests/test-avltree_list.c (main): Update.
15159         * tests/test-rbtree_list.c (main): Update.
15160         * tests/test-avltreehash_list.c (main): Update.
15161         * tests/test-rbtreehash_list.c (main): Update.
15162         * tests/test-linked_list.c (main): Update.
15163         * tests/test-linkedhash_list.c (main): Update.
15164         * tests/test-array_oset.c (main): Update.
15165
15166 2007-03-15  Bruno Haible  <bruno@clisp.org>
15167
15168         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15169         (gl_oset_create_empty): Add dispose_fn argument.
15170         (struct gl_oset_implementation): Add dispose_fn argument to
15171         'create_empty' method.
15172         (struct gl_oset_impl_base): Add dispose_fn field.
15173         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15174         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15175         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15176         values.
15177         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15178         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15179         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15180         dropped value.
15181         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15182         dropped value.
15183         * tests/test-array_oset.c (main): Update.
15184         * tests/test-avltree_oset.c (main): Update.
15185         * tests/test-rbtree_oset.c (main): Update.
15186         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15187
15188 2007-03-13  Bruno Haible  <bruno@clisp.org>
15189
15190         * tests/test-stdbool.c (i): Update after last patch.
15191
15192 2007-03-12  Bruno Haible  <bruno@clisp.org>
15193
15194         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15195         the iswprint macro. Needed on Solaris 2.5.1.
15196
15197 2007-03-12  Bruno Haible  <bruno@clisp.org>
15198
15199         * tests/test-printf-frexp.c (main): Declare x as volatile.
15200
15201 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15202
15203         * doc/gnulib.texi (Build robot for gnulib): New section.
15204
15205 2007-03-12  Jim Meyering  <jim@meyering.net>
15206
15207         * build-aux/bootstrap: New file.
15208         * build-aux/bootstrap.conf: New file, from coreutils.
15209
15210 2007-03-11  Bruno Haible  <bruno@clisp.org>
15211
15212         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15213
15214 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15215
15216         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15217         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15218         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15219
15220 2007-03-11  Bruno Haible  <bruno@clisp.org>
15221
15222         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15223         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15224
15225 2007-03-11  Bruno Haible  <bruno@clisp.org>
15226
15227         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15228         formula. Needed for SunPRO C 5.0.
15229
15230 2007-03-11  Bruno Haible  <bruno@clisp.org>
15231
15232         * modules/long-options (Depends-on): Add getopt.
15233
15234 2007-03-11  Bruno Haible  <bruno@clisp.org>
15235
15236         * modules/modechange (Depends-on): Add stdbool.
15237
15238 2007-03-11  Bruno Haible  <bruno@clisp.org>
15239
15240         * modules/i-ring (Depends-on): Add stdbool.
15241
15242 2007-03-11  Bruno Haible  <bruno@clisp.org>
15243
15244         * modules/gc-des (Depends-on): Add stdbool.
15245
15246 2007-03-11  Bruno Haible  <bruno@clisp.org>
15247
15248         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15249
15250 2007-03-11  Bruno Haible  <bruno@clisp.org>
15251
15252         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15253
15254 2007-03-11  Bruno Haible  <bruno@clisp.org>
15255
15256         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15257
15258 2007-03-11  Bruno Haible  <bruno@clisp.org>
15259
15260         * lib/vasnprintf.c (sprintf): Undefine.
15261
15262 2007-03-11  Bruno Haible  <bruno@clisp.org>
15263
15264         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15265         initializers in SunPRO C and Compaq C compilers.
15266
15267 2007-03-11  Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15270         decrementing code ANSI C compliant.
15271
15272 2007-03-11  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15275         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15276
15277 2007-03-11  Bruno Haible  <bruno@clisp.org>
15278
15279         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15280         <stdbool.h> substitute doesn't pass.
15281
15282 2007-03-11  Bruno Haible  <bruno@clisp.org>
15283
15284         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15285
15286 2007-03-11  Bruno Haible  <bruno@clisp.org>
15287
15288         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15289         script, for submission to autobuild.josefsson.org.
15290
15291 2007-03-10  Bruno Haible  <bruno@clisp.org>
15292
15293         * modules/canonicalize-lgpl-tests: New file.
15294         * tests/test-canonicalize-lgpl.sh: New file.
15295         * tests/test-canonicalize-lgpl.c: New file.
15296
15297         * modules/c-strcase-tests: New file.
15298         * tests/test-c-strcase.sh: New file.
15299         * tests/test-c-strcasecmp.c: New file.
15300         * tests/test-c-strncasecmp.c: New file.
15301
15302         * modules/atexit-tests: New file.
15303         * tests/test-atexit.sh: New file.
15304         * tests/test-atexit.c: New file.
15305
15306 2007-03-10  Bruno Haible  <bruno@clisp.org>
15307
15308         * tests/test-binary-io.sh: Use temporary filenames that are not so
15309         likely to clash with those of other tests (in a parallel make).
15310         * tests/test-binary-io.c: Likewise.
15311
15312 2007-03-10  Bruno Haible  <bruno@clisp.org>
15313
15314         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15315         fallback; use #error instead.
15316         Suggested by Simon Josefsson.
15317
15318 2007-03-10  Bruno Haible  <bruno@clisp.org>
15319
15320         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15321         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15322         first and the last.
15323
15324 2007-03-10  Bruno Haible  <bruno@clisp.org>
15325
15326         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15327
15328 2007-03-10  Bruno Haible  <bruno@clisp.org>
15329
15330         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15331         "make distcheck".
15332         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15333         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15334         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15335
15336 2007-03-10  Bruno Haible  <bruno@clisp.org>
15337
15338         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15339         variable.
15340         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15341         variable.
15342
15343 2007-03-09  Eric Blake  <ebb9@byu.net>
15344         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15345
15346         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15347         types are not being provided by gnulib.
15348         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15349         types are supported.
15350
15351 2007-03-10  Bruno Haible  <bruno@clisp.org>
15352
15353         * lib/stdio_.h (__attribute__): New macro.
15354         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15355         vsprintf): Specify __attribute__ __format__ for GCC.
15356         Suggested by Eric Blake.
15357
15358 2007-03-09  Bruno Haible  <bruno@clisp.org>
15359
15360         * modules/printf-posix-tests: New file.
15361         * tests/test-printf-posix.sh: New file.
15362         * tests/test-printf-posix.c: New file.
15363
15364         * modules/printf-posix: New file.
15365         * lib/printf.c: New file.
15366         * m4/printf-posix-rpl.m4: New file.
15367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15368         REPLACE_PRINTF.
15369         * lib/stdio_.h (printf): New declaration.
15370         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15371         ____strfmon____): New macros.
15372         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15373         REPLACE_PRINTF.
15374
15375 2007-03-09  Bruno Haible  <bruno@clisp.org>
15376
15377         * tests/test-vasnprintf-posix2.sh: New file.
15378         * tests/test-vasnprintf-posix2.c: New file.
15379         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15380         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15381         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15382
15383         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15384         a locale dependent decimal point, rather than always '.'.
15385
15386 2007-03-09  Eric Blake  <ebb9@byu.net>
15387
15388         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15389         spite of platforms like Tandem/NSK that define it to -1.
15390
15391 2007-03-08  Bruno Haible  <bruno@clisp.org>
15392
15393         * modules/vprintf-posix-tests: New file.
15394         * tests/test-vprintf-posix.sh: New file.
15395         * tests/test-vprintf-posix.c: New file.
15396         * tests/test-printf-posix.h: New file.
15397
15398         * modules/vprintf-posix: New file.
15399         * lib/vprintf.c: New file.
15400         * m4/vprintf-posix.m4: New file.
15401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15402         REPLACE_VPRINTF.
15403         * lib/stdio_.h (vprintf): New declaration.
15404         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15405         REPLACE_VPRINTF.
15406
15407 2007-03-08  Bruno Haible  <bruno@clisp.org>
15408
15409         * modules/fprintf-posix-tests: New file.
15410         * tests/test-fprintf-posix.sh: New file.
15411         * tests/test-fprintf-posix.c: New file.
15412
15413         * modules/fprintf-posix: New file.
15414         * lib/fprintf.c: New file.
15415         * m4/fprintf-posix.m4: New file.
15416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15417         REPLACE_FPRINTF.
15418         * lib/stdio_.h (fprintf): New declaration.
15419         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15420         REPLACE_FPRINTF.
15421
15422 2007-03-08  Bruno Haible  <bruno@clisp.org>
15423
15424         * modules/vfprintf-posix-tests: New file.
15425         * tests/test-vfprintf-posix.sh: New file.
15426         * tests/test-vfprintf-posix.c: New file.
15427         * tests/test-fprintf-posix.h: New file.
15428         * tests/test-fprintf-posix.out: New file.
15429
15430         * modules/vfprintf-posix: New file.
15431         * lib/vfprintf.c: New file.
15432         * m4/vfprintf-posix.m4: New file.
15433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15434         REPLACE_VFPRINTF.
15435         * lib/stdio_.h (vfprintf): New declaration.
15436         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15437         REPLACE_VFPRINTF.
15438
15439 2007-03-08  Bruno Haible  <bruno@clisp.org>
15440
15441         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15442
15443 2007-03-08  Bruno Haible  <bruno@clisp.org>
15444
15445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15446         instead of 'expr' invocations.
15447         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15452         Suggested by Paul Eggert.
15453
15454 2007-03-08  Bruno Haible  <bruno@clisp.org>
15455
15456         * modules/fseterr-tests: New file.
15457         * tests/test-fseterr.c: New file.
15458
15459         * modules/fseterr: New file.
15460         * lib/fseterr.h: New file.
15461         * lib/fseterr.c: New file.
15462
15463 2007-03-08  Bruno Haible  <bruno@clisp.org>
15464
15465         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15466         * lib/getopt_.h: Likewise.
15467         * lib/mbswidth.h: Likewise.
15468         * lib/setenv.h: Likewise.
15469         * lib/vasnprintf.h: Likewise.
15470         * lib/vasprintf.h: Likewise.
15471         * lib/verror.h: Likewise.
15472         * lib/xsetenv.h: Likewise.
15473         * lib/xvasprintf.h: Likewise.
15474
15475 2007-03-08  Jim Meyering  <jim@meyering.net>
15476
15477         * users.txt: Add parted.
15478
15479         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15480
15481 2007-03-07  Bruno Haible  <bruno@clisp.org>
15482
15483         * m4/printf.m4: Make the shell script snippets copy&pastable.
15484
15485 2007-03-02  Bruno Haible  <bruno@clisp.org>
15486
15487         * lib/netinet_in_.h: New file.
15488         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15489         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15490         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15491         (Depends-on): Add absolute-header.
15492         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15493         into netinet/in.h.
15494
15495 2007-03-03  Bruno Haible  <bruno@clisp.org>
15496
15497         * lib/sys_select_.h: New file.
15498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15499         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15500         * modules/sys_select (Files): Add lib/sys_select_.h.
15501         (Depends-on): Add absolute-header.
15502         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15503         into sys/select.h.
15504
15505 2007-03-02  Bruno Haible  <bruno@clisp.org>
15506
15507         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15508         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15509         values.
15510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15511         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15512         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15513         * modules/sys_socket (Depends-on): Add absolute-header.
15514         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15515         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15516         (Include): Remove requirement of inclusion of <sys/types.h>.
15517
15518 2007-03-02  Bruno Haible  <bruno@clisp.org>
15519
15520         * lib/byteswap_.h (bswap_32): Fix formula.
15521
15522 2007-03-06  Bruno Haible  <bruno@clisp.org>
15523
15524         * modules/sprintf-posix-tests: New file.
15525         * tests/test-sprintf-posix.c: New file.
15526
15527         * modules/sprintf-posix: New file.
15528         * lib/sprintf.c: New file.
15529         * m4/sprintf-posix.m4: New file.
15530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15531         REPLACE_SPRINTF.
15532         * lib/stdio_.h (sprintf): New declaration.
15533         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15534         REPLACE_SPRINTF.
15535
15536 2007-03-06  Bruno Haible  <bruno@clisp.org>
15537
15538         * modules/vsprintf-posix-tests: New file.
15539         * tests/test-vsprintf-posix.c: New file.
15540         * tests/test-sprintf-posix.h: New file.
15541
15542         * modules/vsprintf-posix: New file.
15543         * lib/vsprintf.c: New file.
15544         * m4/vsprintf-posix.m4: New file.
15545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15546         REPLACE_VSPRINTF.
15547         * lib/stdio_.h (vsprintf): New declaration.
15548         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15549         REPLACE_VSPRINTF.
15550
15551 2007-03-06  Bruno Haible  <bruno@clisp.org>
15552
15553         * modules/vsnprintf (Depend-on): Remove minmax.
15554
15555 2007-03-06  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/snprintf-posix-tests: New file.
15558         * tests/test-snprintf-posix.c: New file.
15559
15560         * modules/snprintf-posix: New file.
15561         * m4/snprintf-posix.m4: New file.
15562         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15563         gl_FUNC_SNPRINTF.
15564         (gl_FUNC_SNPRINTF): Invoke it.
15565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15566         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15567         is set.
15568         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15569
15570 2007-03-06  Bruno Haible  <bruno@clisp.org>
15571
15572         * modules/vsnprintf-posix-tests: New file.
15573         * tests/test-vsnprintf-posix.c: New file.
15574         * tests/test-snprintf-posix.h: New file.
15575
15576         * modules/vsnprintf-posix: New file.
15577         * m4/vsnprintf-posix.m4: New file.
15578         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15579         gl_FUNC_VSNPRINTF.
15580         (gl_FUNC_VSNPRINTF): Invoke it.
15581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15582         * lib/stdio_.h (vsnprintf): Define as a replacement if
15583         REPLACE_VSNPRINTF is set.
15584         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15585
15586 2007-03-06  Bruno Haible  <bruno@clisp.org>
15587
15588         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15590
15591 2007-03-06  Bruno Haible  <bruno@clisp.org>
15592
15593         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15594         (asinl): Declare also if HAVE_DECL_ASINL is set.
15595         (atanl): Declare also if HAVE_DECL_ATANL is set.
15596         (ceill): Declare also if HAVE_DECL_CEILL is set.
15597         (cosl): Declare also if HAVE_DECL_COSL is set.
15598         (expl): Declare also if HAVE_DECL_EXPL is set.
15599         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15600         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15601         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15602         (logl): Declare also if HAVE_DECL_LOGL is set.
15603         (sinl): Declare also if HAVE_DECL_SINL is set.
15604         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15605         (tanl): Declare also if HAVE_DECL_TANL is set.
15606         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15608         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15609         declaration of frexpl, ldexpl.
15610         * modules/printf-frexpl (Depends-on): Add math.
15611         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15612
15613 2007-03-05  Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15616         frexpl and ldexpl are declared.
15617         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15618
15619 2007-03-05  Bruno Haible  <bruno@clisp.org>
15620
15621         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15622         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15623
15624 2007-03-05  Bruno Haible  <bruno@clisp.org>
15625
15626         * lib/stdio_.h: Include <stddef.h>.
15627
15628 2007-03-05  Bruno Haible  <bruno@clisp.org>
15629
15630         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15631
15632 2007-03-05  Bruno Haible  <bruno@clisp.org>
15633
15634         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15635         NetBSD 4, from Ralf Wildenhues.
15636
15637 2007-03-04  Bruno Haible  <bruno@clisp.org>
15638
15639         * lib/vasprintf.h: Update #if logic for the case when the functions
15640         exist but are overridden.
15641
15642 2007-03-04  Bruno Haible  <bruno@clisp.org>
15643
15644         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15645         implementations: glibc-2.4 and MacOS X 10.3.
15646         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15647         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15648         * tests/test-vasprintf-posix.c (test_function): Likewise.
15649
15650 2007-03-04  Bruno Haible  <bruno@clisp.org>
15651
15652         * modules/vasprintf-posix-tests: New file.
15653         * tests/test-vasprintf-posix.c: New file.
15654
15655         * modules/vasprintf-posix: New file.
15656         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15657         defined.
15658         * m4/vasprintf-posix.m4: New file.
15659         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15660         gl_FUNC_VASPRINTF.
15661         (gl_FUNC_VASPRINTF): Invoke it.
15662         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15663         here.
15664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15665
15666 2007-03-04  Bruno Haible  <bruno@clisp.org>
15667
15668         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15669         REPLACE_GETTIMEOFDAY.
15670         * modules/sys_time (Makefile.am): Likewise.
15671         * m4/sys_time_h.m4: Likewise.
15672         * m4/gettimeofday.m4: Likewise.
15673
15674 2007-03-04  Bruno Haible  <bruno@clisp.org>
15675
15676         * modules/vasnprintf-posix-tests: New file.
15677         * tests/test-vasnprintf-posix.c: New file.
15678
15679         * modules/vasnprintf-posix: New file.
15680         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15681         printf-frexpl.h.
15682         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15683         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15684         REPLACE_VASNPRINTF is defined.
15685         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15686         gl_FUNC_VASNPRINTF.
15687         (gl_FUNC_VASNPRINTF): Invoke it.
15688         * m4/vasnprintf-posix.m4: New file.
15689         * m4/printf.m4: New file.
15690
15691 2007-03-04  Bruno Haible  <bruno@clisp.org>
15692
15693         Compile progreloc.c only if --enable-relocatable is specified.
15694         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15695         if --enable-relocatable was specified.
15696         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15697         lib_SOURCES.
15698
15699 2007-03-04  Jim Meyering  <jim@meyering.net>
15700
15701         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15702         Use it consistently, rather than enumerating errno constants.
15703
15704 2007-03-04  Bruno Haible  <bruno@clisp.org>
15705
15706         * modules/xvasprintf-tests: New file.
15707         * tests/test-xvasprintf.c: New file.
15708
15709         * modules/vasprintf-tests: New file.
15710         * tests/test-vasprintf.c: New file.
15711
15712         * modules/vasnprintf-tests: New file.
15713         * tests/test-vasnprintf.c: New file.
15714
15715         * modules/vsnprintf-tests: New file.
15716         * tests/test-vsnprintf.c: New file.
15717
15718         * modules/snprintf-tests: New file.
15719         * tests/test-snprintf.c: New file.
15720
15721 2007-03-04  Bruno Haible  <bruno@clisp.org>
15722
15723         Compile relocatable.c only if --enable-relocatable is specified.
15724         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15725         gl_RELOCATABLE_LIBRARY.
15726         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15727         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15728         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15729         gl_RELOCATABLE_LIBRARY.
15730         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15731         (Makefile.am): Remove lib_SOURCES.
15732         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15733         gl_RELOCATABLE_LIBRARY.
15734         (Makefile.am): Remove lib_SOURCES.
15735         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15736         always.
15737         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15738         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15739
15740 2007-03-04  Bruno Haible  <bruno@clisp.org>
15741
15742         * modules/argmatch-tests: New file.
15743         * tests/test-argmatch.c: New file.
15744
15745         * tests/test-allocsa.c (main): Halve the number of loop runs.
15746
15747         * modules/alloca-opt-tests: New file.
15748         * tests/test-alloca-opt.c: New file.
15749
15750 2007-03-04  Jim Meyering  <jim@meyering.net>
15751
15752         Work around difference between Linux ACLs and Solaris 10 ZFS.
15753         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15754         for EINVAL.
15755
15756 2007-03-03  Bruno Haible  <bruno@clisp.org>
15757
15758         * modules/relocatable-prog (Depends-on): Add back progreloc's
15759         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15760
15761 2007-03-03  Bruno Haible  <bruno@clisp.org>
15762
15763         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15764         * modules/relocatable-lib: New file.
15765
15766 2007-03-03  Bruno Haible  <bruno@clisp.org>
15767
15768         * modules/relocatable-prog: Renamed from modules/relocatable.
15769         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15770
15771 2007-03-03  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15774         m4/relocatable-lib.m4.
15775         (Depends-on): Remove 'relocatable'.
15776         (configure.ac): Add gl_RELOCATABLE_NOP.
15777
15778 2007-03-03  Bruno Haible  <bruno@clisp.org>
15779
15780         * modules/relocatable-prog-wrapper: New file.
15781         * modules/relocatable (Depends-on): Add it. Remove all other
15782         dependencies except progname.
15783         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15784
15785         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15786         (gl_FUNC_STRERROR): Nop.
15787         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15788
15789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15790         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15791
15792         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15793         (gl_FUNC_READLINK): Update.
15794
15795         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15796
15797 2007-03-03  Bruno Haible  <bruno@clisp.org>
15798
15799         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15800         * modules/xreadlink (Depends-on): Add unistd.
15801         * modules/xreadlink-with-size (Depends-on): Likewise.
15802
15803 2007-03-03  Bruno Haible  <bruno@clisp.org>
15804
15805         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15806         extracted from gt_FUNC_SETENV.
15807         (gt_FUNC_SETENV): Remove macro.
15808         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15809         remove gt_FUNC_SETENV.
15810
15811 2007-03-03  Bruno Haible  <bruno@clisp.org>
15812
15813         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15814         ENABLE_RELOCATABLE here.
15815         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15816
15817 2007-03-03  Bruno Haible  <bruno@clisp.org>
15818
15819         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15820         * tests/test-rbtreehash_list.c: Include progname.h.
15821         (main): Call set_program_name.
15822
15823         * modules/rbtree-oset-tests (Depends-on): Add progname.
15824         * tests/test-rbtree_oset.c: Include progname.h.
15825         (main): Call set_program_name.
15826
15827         * modules/rbtree-list-tests (Depends-on): Add progname.
15828         * tests/test-rbtree_list.c: Include progname.h.
15829         (main): Call set_program_name.
15830
15831         * modules/linked-list-tests (Depends-on): Add progname.
15832         * tests/test-linked_list.c: Include progname.h.
15833         (main): Call set_program_name.
15834
15835 2007-03-03  Bruno Haible  <bruno@clisp.org>
15836
15837         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15838         All uses of __restrict changed to _Restrict_.
15839         * lib/glob_.h (__restrict): Remove macro.
15840
15841 2007-03-02  Bruno Haible  <bruno@clisp.org>
15842
15843         * modules/gettext (configure.ac): Require gettext infrastructure
15844         from version 0.16.1.
15845
15846 2007-03-02  Bruno Haible  <bruno@clisp.org>
15847
15848         * modules/linkedhash-list-tests (Depends-on): Add progname.
15849         * tests/test-linkedhash_list.c: Include progname.h.
15850         (main): Call set_program_name.
15851
15852         * modules/carray-list-tests (Depends-on): Add progname.
15853         * tests/test-carray_list.c: Include progname.h.
15854         (main): Call set_program_name.
15855
15856         * modules/avltreehash-list-tests (Depends-on): Add progname.
15857         * tests/test-avltreehash_list.c: Include progname.h.
15858         (main): Call set_program_name.
15859
15860         * modules/avltree-oset-tests (Depends-on): Add progname.
15861         * tests/test-avltree_oset.c: Include progname.h.
15862         (main): Call set_program_name.
15863
15864         * modules/avltree-list-tests (Depends-on): Add progname.
15865         * tests/test-avltree_list.c: Include progname.h.
15866         (main): Call set_program_name.
15867
15868         * modules/array-oset-tests (Depends-on): Add progname.
15869         * tests/test-array_oset.c: Include progname.h.
15870         (main): Call set_program_name.
15871
15872         * modules/array-list-tests (Depends-on): Add progname.
15873         * tests/test-array_list.c: Include progname.h.
15874         (main): Call set_program_name.
15875
15876         * modules/argp-tests (Depends-on): Add progname.
15877         * tests/test-argp.c: Include argp.h first. Include progname.h.
15878         (main): Call set_program_name.
15879
15880 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         * doc/gnulib-tool.texi (Initial import): Reword description of
15883         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15884         limited effect even if defined after the first system include.
15885
15886 2007-03-01  Bruno Haible  <bruno@clisp.org>
15887
15888         * build-aux/config.libpath: Update to libtool-1.5.22.
15889         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15890
15891 2007-03-01  Bruno Haible  <bruno@clisp.org>
15892
15893         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15894         foo_CFLAGS.
15895         Reported by Ralf Wildenhues.
15896
15897 2007-03-01  Bruno Haible  <bruno@clisp.org>
15898
15899         * build-aux/install-reloc: Remove object files left over by some
15900         compilers.
15901         Reported by Ralf Wildenhues.
15902
15903 2007-03-01  Bruno Haible  <bruno@clisp.org>
15904
15905         * build-aux/install-reloc: Break long lines.
15906
15907 2007-03-01  Bruno Haible  <bruno@clisp.org>
15908
15909         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15910         Reported by Ralf Wildenhues.
15911
15912 2007-03-01  Bruno Haible  <bruno@clisp.org>
15913
15914         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15915         include ordering constraints.
15916
15917 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15918
15919         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15921         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15922         as another example.
15923         * lib/time_.h: Fix misspelling.
15924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15925         Require gl_HEADER_TIME_H_DEFAULTS.
15926         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15927         * m4/time_r.m4 (gl_TIME_R): Likewise.
15928         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15929
15930 2007-03-01  Bruno Haible  <bruno@clisp.org>
15931
15932         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15933         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15934
15935 2007-03-01  Jim Meyering  <jim@meyering.net>
15936
15937         * modules/xreadlink (Maintainer): Add my name.
15938         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15939
15940 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15941             Bruno Haible  <bruno@clisp.org>
15942
15943         * build-aux/install-reloc: Compile also c-ctype.c.
15944         * build-aux/relocatable.sh.in: New file.
15945         * doc/relocatable.texi: New file.
15946         * doc/relocatable-maint.texi: New file.
15947         * doc/gnulib.texi: Include relocatable-maint.texi.
15948         * lib/progreloc.c: Include unistd.h unconditionally.
15949         * lib/relocwrapper.c: Include unistd.h unconditionally.
15950         Include c-ctype.h.
15951         (add_dotbin): Use c_tolower.
15952         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15953         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15954         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15955         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15956         to m4/relocatable-lib.m4.
15957         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15958         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15959         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15960         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15961         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15962         * modules/relocatable: New file.
15963         * modules/relocatable-lib: New file.
15964         * modules/relocatable-script: New file.
15965
15966 2007-02-28  Bruno Haible  <bruno@clisp.org>
15967
15968         Import --enable-relocatable infrastructure.
15969         * build-aux/config.libpath: New file, from GNU gettext.
15970         * build-aux/install-reloc: New file, from GNU gettext.
15971         * build-aux/reloc-ldflags: New file, from GNU gettext.
15972         * lib/relocatable.h: New file, from GNU gettext.
15973         * lib/relocatable.c: New file, from GNU gettext.
15974         * lib/relocwrapper.c: New file, from GNU gettext.
15975         * m4/relocatable.m4: New file, from GNU gettext.
15976
15977 2007-02-28  Bruno Haible  <bruno@clisp.org>
15978
15979         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15980
15981         * modules/xreadlink: New file, from GNU gettext with modifications.
15982         * lib/xreadlink.c: New file, from GNU gettext.
15983         * lib/xreadlink.h: Add comments.
15984         (xreadlink): New declaration.
15985
15986         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15987         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15988         lib/xreadlink-with-size.c.
15989         (configure.ac): Remove gl_XREADLINK invocation.
15990         (Makefile.am): Augment lib_SOURCES.
15991         * m4/xreadlink.m4: Remove file.
15992         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15993         (xreadlink_with_size): Renamed from xreadink.
15994         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15995         * modules/canonicalize (Depends-on): Replace xreadlink with
15996         xreadlink-with-size.
15997         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15998
15999 2007-02-25  Jim Meyering  <jim@meyering.net>
16000
16001         * build-aux/announce-gen: When complaining about excess arguments,
16002         list them.
16003
16004 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16005
16006         * README: Document signed integer overflow situation more
16007         accurately.
16008
16009 2007-02-25  Bruno Haible  <bruno@clisp.org>
16010
16011         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16012         'a' or 'A' conversion.
16013
16014 2007-02-25  Bruno Haible  <bruno@clisp.org>
16015
16016         * modules/filename: Renamed from modules/pathname.
16017         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16018         lib/concatpath.c with lib/concat-filename.c.
16019         (Makefile.am): Update.
16020         (Include): Replace pathname.h with filename.h.
16021         * lib/filename.h: Renamed from lib/pathname.h.
16022         (concatenated_filename): Renamed from concatenated_pathname.
16023         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16024         (concatenated_filename): Renamed from concatenated_pathname.
16025         * lib/findprog.c: Include filename.h instead of pathname.h.
16026         (find_in_path): Update.
16027         * lib/javacomp.c: Include filename.h instead of pathname.h.
16028         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16029         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16030         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16031         is_oldgcj_14_13_usable, is_javac_usable): Update.
16032         * lib/javaexec.c: Include filename.h instead of pathname.h.
16033         (execute_java_class): Update.
16034         * modules/findprog: Update.
16035         * modules/javacomp: Update.
16036         * modules/javaexec: Update.
16037         * MODULES.html.sh (File system functions): Add 'filename', remove
16038         'pathname'.
16039
16040 2007-02-25  Bruno Haible  <bruno@clisp.org>
16041
16042         * modules/printf-frexpl-tests: New file.
16043         * tests/test-printf-frexpl.c: New file.
16044
16045         * modules/printf-frexpl: New file.
16046         * lib/printf-frexpl.h: New file.
16047         * lib/printf-frexpl.c: New file.
16048         * m4/printf-frexpl.m4: New file.
16049
16050 2007-02-25  Bruno Haible  <bruno@clisp.org>
16051
16052         * modules/printf-frexp-tests: New file.
16053         * tests/test-printf-frexp.c: New file.
16054
16055         * modules/printf-frexp: New file.
16056         * lib/printf-frexp.h: New file.
16057         * lib/printf-frexp.c: New file.
16058         * m4/printf-frexp.m4: New file.
16059
16060 2007-02-25  Bruno Haible  <bruno@clisp.org>
16061
16062         Assume automake >= 1.10 for the tests.
16063         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
16064         * modules/arctwo-tests: Likewise.
16065         * modules/argp-tests: Likewise.
16066         * modules/avltree-list-tests: Likewise.
16067         * modules/avltree-oset-tests: Likewise.
16068         * modules/avltreehash-list-tests: Likewise.
16069         * modules/carray-list-tests: Likewise.
16070         * modules/crc-tests: Likewise.
16071         * modules/des-tests: Likewise.
16072         * modules/gc-arcfour-tests: Likewise.
16073         * modules/gc-arctwo-tests: Likewise.
16074         * modules/gc-des-tests: Likewise.
16075         * modules/gc-hmac-md5-tests: Likewise.
16076         * modules/gc-hmac-sha1-tests: Likewise.
16077         * modules/gc-md2-tests: Likewise.
16078         * modules/gc-md4-tests: Likewise.
16079         * modules/gc-md5-tests: Likewise.
16080         * modules/gc-pbkdf2-sha1-tests: Likewise.
16081         * modules/gc-rijndael-tests: Likewise.
16082         * modules/gc-sha1-tests: Likewise.
16083         * modules/gc-tests: Likewise.
16084         * modules/getaddrinfo-tests: Likewise.
16085         * modules/hmac-md5-tests: Likewise.
16086         * modules/hmac-sha1-tests: Likewise.
16087         * modules/linked-list-tests: Likewise.
16088         * modules/linkedhash-list-tests: Likewise.
16089         * modules/lock-tests: Likewise.
16090         * modules/md2-tests: Likewise.
16091         * modules/md4-tests: Likewise.
16092         * modules/md5-tests: Likewise.
16093         * modules/rbtree-list-tests: Likewise.
16094         * modules/rbtree-oset-tests: Likewise.
16095         * modules/rbtreehash-list-tests: Likewise.
16096         * modules/read-file-tests: Likewise.
16097         * modules/rijndael-tests: Likewise.
16098         * modules/stdint-tests: Likewise.
16099         * modules/tls-tests: Likewise.
16100
16101 2007-02-24  Bruno Haible  <bruno@clisp.org>
16102
16103         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16104         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16105         function; instead check whether isnan with a double argument links.
16106         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16107         function; instead check whether isnan with a 'long double' argument
16108         links.
16109         Reported by Eric Blake <ebb9@byu.net>.
16110
16111 2007-02-24  Bruno Haible  <bruno@clisp.org>
16112
16113         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16114         defined.
16115         * lib/isnanl.c: Remove all code. Just include isnan.c.
16116         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16117
16118 2007-02-25  Jim Meyering  <jim@meyering.net>
16119
16120         Avoid conflicting types for 'unsetenv' on FreeBSD.
16121         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16122         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16123         in stdlib.h.
16124
16125 2007-02-24  Bruno Haible  <bruno@clisp.org>
16126
16127         * modules/isnanl-nolibm-tests: New file.
16128         * tests/test-isnanl.c: New file.
16129
16130         * modules/isnanl-nolibm: New file.
16131         * lib/isnanl.h: New file.
16132         * lib/isnanl.c: New file.
16133         * m4/isnanl.m4: New file.
16134
16135 2007-02-24  Bruno Haible  <bruno@clisp.org>
16136
16137         * modules/isnan-nolibm-tests: New file.
16138         * tests/test-isnan.c: New file.
16139
16140         * modules/isnan-nolibm: New file.
16141         * lib/isnan.h: New file.
16142         * lib/isnan.c: New file.
16143         * m4/isnan.m4: New file.
16144
16145 2007-02-24  Bruno Haible  <bruno@clisp.org>
16146
16147         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16148         assume that an exponent fits in 20 bits.
16149
16150 2007-02-24  Jim Meyering  <jim@meyering.net>
16151
16152         * m4/regex.m4: Update the description of the configure-time option,
16153         --without-included-regex, to state accurately what the defaults are,
16154         and perhaps to give people an idea why using this option is risky.
16155
16156 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16159         loops on small arguments.  This attempts to avoid the problem
16160         Bruno Haible reported for AIX 4.3.2 in
16161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16162
16163 2007-02-23  Bruno Haible  <bruno@clisp.org>
16164
16165         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16166         Needed for help2man.
16167
16168 2007-02-23  Karl Berry  <karl@gnu.org>
16169
16170         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16171         exists, foo.h should be cvs-ignored, not committed.
16172
16173 2007-02-23  Eric Blake  <ebb9@byu.net>
16174
16175         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16176         * lib/stat-time.h (includes): Likewise.
16177         * lib/utimecmp.c (includes): Likewise.
16178         * lib/utimens.h (includes): Likewise.
16179         * lib/getdate.y (includes): Also include "timespec.h" for use
16180         internal to the module.
16181         * modules/utimens (Depends-on): Revert yesterday's patch.
16182         * modules/nanosleep (Depends-on): Add missing dependency.
16183
16184 2007-02-22  Bruno Haible  <bruno@clisp.org>
16185
16186         * lib/glob.c: Don't include getlogin_r.h.
16187
16188 2007-02-22  Jim Meyering  <jim@meyering.net>
16189
16190         * modules/utimens (Depends-on): Add timespec, required for
16191         utimens.h's inclusion of timespec.h.
16192
16193 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16196         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16197         Schwab in
16198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16199         I'll try to think of a better way to fix the Solaris problem.
16200
16201         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16202         like glibc; on Solaris 10, it fails with errno == EINVAL.
16203         POSIX says the behavior is unspecified if the first argument is NULL,
16204         so play it safe and never pass NULL to the system getcwd.
16205
16206 2007-02-21  Jim Meyering  <jim@meyering.net>
16207
16208         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16209         of gettimeofday.  It would conflict with the one now always
16210         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16211         an IRIX 6.5 build failure.
16212
16213 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16214
16215         Minor fixups to port to Solaris 10 with Sun C 5.8.
16216         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16217         * modules/getcwd (Depends-on): Add dirfd.
16218         * lib/putenv.c (putenv): #undef it.
16219         (rpl_putenv): New decl.
16220         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16221
16222 2007-02-20  Bruno Haible  <bruno@clisp.org>
16223
16224         * modules/stdio-tests: New file.
16225         * tests/test-stdio.c: New file.
16226
16227         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16228         (Depends-on): Add stdio.
16229         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16230         (Include): Use <stdio.h> instead of vsnprintf.h.
16231         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16232         HAVE_DECL_VSNPRINTF.
16233         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16234
16235         * modules/snprintf (Files): Remove lib/snprintf.h.
16236         (Depends-on): Add stdio.
16237         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16238         (Include): Use <stdio.h> instead of snprintf.h.
16239         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16240         HAVE_DECL_SNPRINTF.
16241         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16242         * lib/getaddrinfo.c: Likewise.
16243
16244         * modules/stdio: New file.
16245         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16246         * lib/snprintf.h: Remove file.
16247         * lib/vsnprintf.h: Remove file.
16248         * lib/.cppi-disable: Remove snprintf.h.
16249         * m4/stdio_h.m4: New file.
16250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16251
16252 2007-02-20  Jim Meyering  <jim@meyering.net>
16253
16254         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16255         used by e.g., mingw.  From Bruno Haible.
16256
16257 2007-02-19  Bruno Haible  <bruno@clisp.org>
16258
16259         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16260         warnings.
16261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16262
16263 2007-02-19  Bruno Haible  <bruno@clisp.org>
16264
16265         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16266         from mingw users.
16267
16268 2007-02-19  Bruno Haible  <bruno@clisp.org>
16269
16270         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16271         warnings.
16272         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16273
16274 2007-02-19  Jim Meyering  <jim@meyering.net>
16275
16276         Don't use FD after a successful "fdopendir (fd)".
16277         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16278         Reset it by calling dirfd on the just-obtained DIR*.
16279
16280         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16281         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16282
16283 2007-02-18  Bruno Haible  <bruno@clisp.org>
16284
16285         * lib/readlink.c: Include <unistd.h>.
16286         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16287         HAVE_READLINK.
16288         * modules/readlink (Depends-on): Add unistd.
16289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16290         (Include): Add <unistd.h>.
16291
16292         * lib/getlogin_r.h: Remove file.
16293         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16294         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16295         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16296         HAVE_DECL_GETLOGIN_R.
16297         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16299         (Include): Use <unistd.h> instead of getlogin_r.h.
16300
16301         * lib/getcwd.h: Remove file.
16302         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16303         * lib/xgetcwd.c: Likewise.
16304         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16305         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16306         * modules/getcwd (Files): Remove lib/getcwd.h.
16307         (Depends-on): Add unistd.
16308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16309         (Include): Use <unistd.h> instad of getcwd.h.
16310
16311         * lib/ftruncate.c: Include <unistd.h> first.
16312         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16313         Set HAVE_FTRUNCATE.
16314         * modules/ftruncate (Depends-on): Add unistd.
16315         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16316
16317         * lib/fchdir.c: Include <unistd.h> first.
16318         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16320         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16321         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16322         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16323
16324         * lib/dup2.c: Include <unistd.h> first.
16325         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16326         HAVE_DUP2.
16327         * modules/dup2 (Depends-on): Add unistd.
16328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16329
16330         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16331         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16332         REPLACE_CHOWN. Don't define chown as a macro here.
16333         * modules/chown (Depends-on): Add unistd.
16334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16335
16336         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16337         Add definition for GL_LINK_WARNING.
16338         (chown, dup2): New declarations.
16339         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16340         link warning.
16341         (ftruncate): New declaration.
16342         (getcwd): New declaration, taken from old getcwd.h.
16343         (getlogin_r): New declaration, taken from old getlogin_r.h.
16344         (readlink): New declaration.
16345         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16346         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16347         (gl_PREREQ_UNISTD): Remove macro.
16348         (gl_UNISTD_MODULE_INDICATOR): New macro.
16349         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16350         many new variables. Don't set UNISTD_H.
16351         * modules/unistd (Description): Change.
16352         (Depends-on): Add link-warning.
16353         (configure.ac): Update.
16354         (Makefile.am): Create unistd.h always. Substitute many new variables
16355         into it.
16356
16357 2007-02-18  Bruno Haible  <bruno@clisp.org>
16358
16359         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16360         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16361         HAVE_GETSUBOPT.
16362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16363         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16364         * lib/getsubopt.h: Remove file.
16365         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16366         (Depends-on): Add stdlib.
16367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16368         (Includes): Use <stdlib.h> instead of getsubopt.h.
16369         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16370         Set HAVE_GETSUBOPT.
16371         * lib/getsubopt.c: Don't include getsubopt.h.
16372
16373 2007-02-18  Bruno Haible  <bruno@clisp.org>
16374
16375         * modules/fchdir (Depends-on): Add dup2.
16376
16377 2007-02-18  Bruno Haible  <bruno@clisp.org>
16378
16379         * lib/stdlib_.h: Handle glibc's special invocation convention
16380         specially.
16381
16382 2007-02-18  Bruno Haible  <bruno@clisp.org>
16383
16384         * modules/stdlib-tests: New file.
16385         * tests/test-stdlib.c: New file.
16386
16387         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16388         (Depends-on): Add stdlib.
16389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16390         (Includes): Use <stdlib.h> instead of mkstemp.h.
16391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16392         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16393         * lib/mkstemp.c: Don't include mkstemp.h.
16394         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16395         * lib/stdlib--.h: Don't include mkstemp.h.
16396
16397         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16398         (Depends-on): Add stdlib.
16399         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16400         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16401         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16402         HAVE_MKDTEMP.
16403         * lib/mkdtemp.c: Don't include mkdtemp.h.
16404         * lib/clean-temp.c: Don't include mkdtemp.h.
16405
16406         * modules/exit (Files): Remove lib/exit.h.
16407         (Depends-on): Add stdlib.
16408         (Makefile.am): Remove lib_SOURCES.
16409         (Include): Use <stdlib.h> instead of exit.h.
16410         * lib/argmatch.c: Don't include exit.h.
16411         * lib/execute.c: Likewise.
16412         * lib/pagealign_alloc.c: Likewise.
16413         * lib/pipe.c: Likewise.
16414         * lib/wait-process.c: Likewise.
16415         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16416         * lib/exitfail.c: Likewise.
16417         * lib/savewd.c: Likewise.
16418         * lib/xsetenv.c: Likewise.
16419
16420         * modules/stdlib: New file.
16421         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16422         and extra comments about mkstemp().
16423         * lib/exit.h: Remove file.
16424         * lib/mkdtemp.h: Remove file.
16425         * lib/mkstemp.h: Remove file.
16426         * m4/stdlib_h.m4: New file.
16427         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16428
16429 2007-02-18  Bruno Haible  <bruno@clisp.org>
16430
16431         * modules/math-tests: New file.
16432         * tests/test-math.c: New file.
16433
16434         * modules/math: New file.
16435         * modules/mathl (Files): Remove lib/mathl.h.
16436         (Depends-on): Add math.
16437         (Makefile.am): Don't mention mathl.h.
16438         (Include): Use <math.h> instead of mathl.h.
16439         * lib/math_.h: New file.
16440         * lib/mathl.h: Remove file.
16441         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16442         mathl.h.
16443         * lib/asinl.c: Likewise.
16444         * lib/atanl.c: Likewise.
16445         * lib/ceill.c: Likewise.
16446         * lib/cosl.c: Likewise.
16447         * lib/expl.c: Likewise.
16448         * lib/floorl.c: Likewise.
16449         * lib/frexpl.c: Likewise.
16450         * lib/ldexpl.c: Likewise.
16451         * lib/logl.c: Likewise.
16452         * lib/sincosl.c: Likewise.
16453         * lib/sinl.c: Likewise.
16454         * lib/sqrtl.c: Likewise.
16455         * lib/tanl.c: Likewise.
16456         * lib/trigl.c: Likewise.
16457         * m4/math_h.m4: New file.
16458         * MODULES.html.sh (Mathematics): Add math.
16459
16460 2007-02-17  Bruno Haible  <bruno@clisp.org>
16461
16462         * modules/wctype-tests: New file.
16463         * tests/test-wctype.c: New file.
16464
16465         * modules/wchar-tests: New file.
16466         * tests/test-wchar.c: New file.
16467
16468         * modules/unistd-tests: New file.
16469         * tests/test-unistd.c: New file.
16470
16471         * modules/time-tests: New file.
16472         * tests/test-time.c: New file.
16473
16474         * modules/sysexits-tests: New file.
16475         * tests/test-sysexits.c: New file.
16476
16477         * modules/sys_time-tests: New file.
16478         * tests/test-sys_time.c: New file.
16479
16480         * modules/sys_stat-tests: New file.
16481         * tests/test-sys_stat.c: New file.
16482
16483         * modules/sys_socket-tests: New file.
16484         * tests/test-sys_socket.c: New file.
16485
16486         * modules/sys_select-tests: New file.
16487         * tests/test-sys_select.c: New file.
16488
16489         * modules/string-tests: New file.
16490         * tests/test-string.c: New file.
16491
16492         * modules/stdbool-tests: New file.
16493         * tests/test-stdbool.c: New file.
16494
16495         * modules/netinet_in-tests: New file.
16496         * tests/test-netinet_in.c: New file.
16497
16498         * modules/inttypes-tests: New file.
16499         * tests/test-inttypes.c: New file.
16500
16501         * modules/fcntl-tests: New file.
16502         * tests/test-fcntl.c: New file.
16503
16504         * modules/byteswap-tests: New file.
16505         * tests/test-byteswap.c: New file.
16506
16507         * modules/arpa_inet-tests: New file.
16508         * tests/test-arpa_inet.c: New file.
16509
16510 2007-02-17  Bruno Haible  <bruno@clisp.org>
16511
16512         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16513         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16514         if the corresponding module is not enabled. Emit link warnings if
16515         the function is used nevertheless.
16516         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16517         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16518         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16519         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16520         * modules/inttypes (Depends-on): Add link-warning.
16521         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16522         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16523         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16524         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16525         * modules/imaxdiv (configure.ac): Likewise.
16526         * modules/strtoimax (configure.ac): Likewise.
16527         * modules/strtoumax (configure.ac): Likewise.
16528
16529 2007-02-17  Bruno Haible  <bruno@clisp.org>
16530
16531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16532         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16533         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16534         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16535
16536 2007-02-17  Bruno Haible  <bruno@clisp.org>
16537
16538         * modules/link-warning: New file.
16539         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16540         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16541         * modules/string (Depends-on): Add link-warning.
16542         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16543         string.h.
16544         * MODULES.html.sh (Support for building libraries and executables): Add
16545         link-warning.
16546
16547 2007-02-17  Bruno Haible  <bruno@clisp.org>
16548
16549         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16550         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16551         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16552         long lines.
16553
16554 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16555             Bruno Haible  <bruno@clisp.org>
16556
16557         * modules/tmpfile: New file.
16558         * lib/tmpfile.c: New file.
16559         * m4/tmpfile.m4: New file.
16560         * MODULES.html.sh (func_all_modules): New section "Input/output".
16561
16562 2007-02-15  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16565         (supports_delete_on_close): New function.
16566         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16567
16568 2007-02-14  Bruno Haible  <bruno@clisp.org>
16569
16570         * modules/mbspcasecmp-tests: New file.
16571         * tests/test-mbspcasecmp.sh: New file.
16572         * tests/test-mbspcasecmp.c: New file.
16573
16574         New module mbspcasecmp.
16575         * modules/mbspcasecmp: New file.
16576         * lib/mbspcasecmp.c: New file.
16577         * lib/string_.h (strncasecmp): Change warning message.
16578         (mbspcasecmp): New declaration.
16579         * m4/mbspcasecmp.m4: New file.
16580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16581         GNULIB_MBSPCASECMP.
16582         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16583         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16584
16585 2007-02-14  Bruno Haible  <bruno@clisp.org>
16586
16587         * modules/mbsncasecmp-tests: New file.
16588         * tests/test-mbsncasecmp.sh: New file.
16589         * tests/test-mbsncasecmp.c: New file.
16590
16591         New module mbsncasecmp.
16592         * modules/mbsncasecmp: New file.
16593         * lib/mbsncasecmp.c: New file.
16594         * lib/string_.h (mbsncasecmp): New declaration.
16595         * m4/mbsncasecmp.m4: New file.
16596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16597         GNULIB_MBSNCASECMP.
16598         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16599         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16600
16601 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16604         Verify that it doesn't overlap with our flags.
16605         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16606         do not have the desired effect in multibyte locales; instead, use
16607         mbscasecmp.
16608         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16609         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16610         we don't require GNU fnmatch ourselves (if our users require it, they
16611         should do so explicitly).
16612
16613         Fix regex code so it doesn't rely on strcasecmp.
16614         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16615         Otherwise, include gnulib's langinfo.h.
16616         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16617         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16618         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16619         * modules/regex (FILES): Remove m4/codeset.m4.
16620         (Depends-on): Add localcharset.  Remove strcase.
16621
16622 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16623
16624         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16625         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16626
16627 2007-02-13  Bruno Haible  <bruno@clisp.org>
16628
16629         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16630         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16631
16632 2007-02-12  Bruno Haible  <bruno@clisp.org>
16633
16634         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16635         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16636         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16637         time warning rather than a link error.
16638
16639 2007-02-12  Bruno Haible  <bruno@clisp.org>
16640
16641         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16642         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16644
16645 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16646
16647         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16648         args, not 2.
16649
16650 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16651
16652         New module 'time', so that apps can include <time.h> as per
16653         POSIX and GNU instead of separate include files like time_r.h
16654         and timegm.h.  This implementation tries out a simpler approach
16655         for replacing decls in standard include files (as compared to
16656         the string module), somewhat as an experiment.
16657
16658         * config/srclist.txt: Comment out mktime.c for now.
16659         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16660         since it doesn't apply any more.  Use generic wording instead.
16661         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16662         'time'.
16663         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16664         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16665         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16666         Don't include <sys/types.h>; no longer needed since we assume C89.
16667         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16668         * lib/strftime.c: Likewise.
16669         * lib/time_r.c: Likewise.
16670         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16671         * lib/nanosleep.c: Include <time.h> first, to check interface.
16672         * lib/strptime.c: Likewise.
16673         * lib/time_r.c: Likewise.
16674         * lib/timegm.c: Likewise.
16675         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16676         needed.
16677         * lib/timegm.c: Don't include timegm.h; no longer needed.
16678         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16679         time.h now handles any problems in that area.
16680         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16681         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16682         that time.h defines struct timespec.
16683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16684         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16685         handles that.
16686         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16687         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16688         needed.  Set REPLACE_LOCALTIME.
16689         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16690         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16691         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16692         nanosleep; time_h.m4 now does that.  Don't require
16693         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16694         module handles this now.
16695         * modules/getdate (Depends-on): Remove timespec.  Add time.
16696         * modules/nanosleep (Depends-on): Likewise.
16697         * modules/stat-time (Depends-on): Likewise.
16698         * modules/nanosleep (Include): Include time.h, not timespec.h.
16699         * modules/strptime (Files): Remove lib/strptime.h.
16700         (Depends-on): Add extensions, time.
16701         (Include): Include time.h, not strptime.h.
16702         * modules/time_r (Files): Remove lib/time_r.h.
16703         (Depends-on): Add time.
16704         (Include): Include time.h, not time_r.h.
16705         * modules/timegm: Likewise.
16706         * modules/timespec (Description): Now does timespec-related decls
16707         of our own, instead of struct timespec itself.
16708         (Depends-on): Add time; remove extensions.
16709         (Maintainer): Add self.
16710         * modules/utimecmp (Depends-on): Add time; remove timespec.
16711         * modules/utimens (Depends-on): Likewise.
16712         * modules/xnanosleep (Depends-on): Likewise.
16713
16714 2007-02-11  Bruno Haible  <bruno@clisp.org>
16715
16716         * lib/c-strstr.c: Include allocsa.h.
16717         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16718         * lib/c-strcasestr.c: Include allocsa.h.
16719         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16720         * lib/strcasestr.c: Include allocsa.h.
16721         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16722         * lib/mbsstr.c: Include allocsa.h.
16723         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16724         allocsa/freesa instead of malloc/free.
16725         * lib/mbscasestr.c: Include allocsa.h.
16726         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16727         allocsa/freesa instead of malloc/free.
16728         * modules/c-strstr (Depends-on): Add allocsa.
16729         * modules/c-strcasestr (Depends-on): Likewise.
16730         * modules/strcasestr (Depends-on): Likewise.
16731         * modules/mbsstr (Depends-on): Likewise.
16732         * modules/mbscasestr (Depends-on): Likewise.
16733
16734 2007-02-11  Bruno Haible  <bruno@clisp.org>
16735
16736         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16737
16738         * modules/mbsspn-tests: New file.
16739         * tests/test-mbsspn.sh: New file.
16740         * tests/test-mbsspn.c: New file.
16741
16742 2007-02-11  Bruno Haible  <bruno@clisp.org>
16743
16744         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16745
16746         * modules/mbspbrk-tests: New file.
16747         * tests/test-mbspbrk.sh: New file.
16748         * tests/test-mbspbrk.c: New file.
16749
16750 2007-02-11  Bruno Haible  <bruno@clisp.org>
16751
16752         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16753         unneeded cast.
16754
16755         * modules/mbscspn-tests: New file.
16756         * tests/test-mbscspn.sh: New file.
16757         * tests/test-mbscspn.c: New file.
16758
16759 2007-02-11  Bruno Haible  <bruno@clisp.org>
16760
16761         * modules/mbscasecmp-tests: New file.
16762         * tests/test-mbscasecmp.sh: New file.
16763         * tests/test-mbscasecmp.c: New file.
16764
16765 2007-02-11  Bruno Haible  <bruno@clisp.org>
16766
16767         Ensure O(n) worst-case complexity of mbscasestr.
16768         * lib/mbscasestr.c: Include stdbool.h.
16769         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16770         functions.
16771         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16772         the bookkeeping indicates that it's worth it.
16773         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16774
16775         * modules/mbscasestr-tests: New file.
16776         * tests/test-mbscasestr1.c: New file.
16777         * tests/test-mbscasestr2.sh: New file.
16778         * tests/test-mbscasestr2.c: New file.
16779         * tests/test-mbscasestr3.sh: New file.
16780         * tests/test-mbscasestr3.c: New file.
16781         * tests/test-mbscasestr4.sh: New file.
16782         * tests/test-mbscasestr4.c: New file.
16783         * m4/locale-tr.m4: New file.
16784
16785 2007-02-11  Bruno Haible  <bruno@clisp.org>
16786
16787         Ensure O(n) worst-case complexity of mbsstr.
16788         * lib/mbsstr.c: Include stdbool.h.
16789         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16790         functions.
16791         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16792         bookkeeping indicates that it's worth it.
16793         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16794
16795         * modules/mbsstr-tests: New file.
16796         * tests/test-mbsstr1.c: New file.
16797         * tests/test-mbsstr2.sh: New file.
16798         * tests/test-mbsstr2.c: New file.
16799         * tests/test-mbsstr3.sh: New file.
16800         * tests/test-mbsstr3.c: New file.
16801         * m4/locale-fr.m4: New file.
16802
16803 2007-02-11  Bruno Haible  <bruno@clisp.org>
16804
16805         * lib/mbsrchr.c (mbsrchr): Fix bug.
16806
16807         * modules/mbsrchr-tests: New file.
16808         * tests/test-mbsrchr.sh: New file.
16809         * tests/test-mbsrchr.c: New file.
16810
16811 2007-02-11  Bruno Haible  <bruno@clisp.org>
16812
16813         * lib/mbschr.c (mbschr): Fix bug.
16814
16815         * modules/mbschr-tests: New file.
16816         * tests/test-mbschr.sh: New file.
16817         * tests/test-mbschr.c: New file.
16818         * m4/locale-zh.m4: New file.
16819
16820 2007-02-11  Bruno Haible  <bruno@clisp.org>
16821
16822         Support for copying multibyte string iterators.
16823         * lib/mbiter.h: Include <string.h>.
16824         (mbiter_multi_copy): New function.
16825         (mbi_copy): New macro.
16826         * lib/mbuiter.h: Include <string.h>.
16827         (mbuiter_multi_copy): New function.
16828         (mbui_copy): New macro.
16829
16830 2007-02-11  Bruno Haible  <bruno@clisp.org>
16831
16832         New module mbslen.
16833         * modules/mbslen: New file.
16834         * lib/mbslen.c: New file.
16835         * lib/string_.h (mbslen): New declaration.
16836         * m4/mbslen.m4: New file.
16837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16838         GNULIB_MBSLEN.
16839         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16840         * MODULES.html.sh (Internationalization functions): Add mbslen.
16841
16842 2007-02-11  Bruno Haible  <bruno@clisp.org>
16843
16844         Ensure O(n) worst-case complexity of strcasestr substitute.
16845         * lib/strcasestr.c: Include stdbool.h.
16846         (knuth_morris_pratt): New function.
16847         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16848         bookkeeping indicates that it's worth it.
16849         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16850
16851         * modules/strcasestr-tests: New file.
16852         * tests/test-strcasestr.c: New file.
16853
16854 2007-02-11  Bruno Haible  <bruno@clisp.org>
16855
16856         Ensure O(n) worst-case complexity of c_strcasestr.
16857         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16858         (knuth_morris_pratt): New function.
16859         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16860         the bookkeeping indicates that it's worth it.
16861         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16862
16863         * modules/c-strcasestr-tests: New file.
16864         * tests/test-c-strcasestr.c: New file.
16865
16866 2007-02-11  Bruno Haible  <bruno@clisp.org>
16867
16868         Ensure O(n) worst-case complexity of c_strstr.
16869         * lib/c-strstr.c: Include stdbool.h, string.h.
16870         (knuth_morris_pratt): New function.
16871         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16872         bookkeeping indicates that it's worth it.
16873         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16874
16875         * lib/c-strstr.c: Complete rewrite for maintainability.
16876
16877         * modules/c-strstr-tests: New file.
16878         * tests/test-c-strstr.c: New file.
16879
16880 2007-02-11  Bruno Haible  <bruno@clisp.org>
16881
16882         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16883         5.2.1 and earlier, whereby \055 was treated just like the range
16884         delimiter '-'.
16885         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16886
16887 2007-02-08  Bruno Haible  <bruno@clisp.org>
16888
16889         * modules/regex (Depends-on): Add stdbool.
16890         Reported by Dalibor Topic <robilad@kaffe.org>.
16891
16892 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16893
16894         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16895         Prefer returning from main to exiting from it.
16896         Remove unnecessary parens after sizeof.
16897
16898 2007-02-05  Bruno Haible  <bruno@clisp.org>
16899
16900         New module mbssep.
16901         * modules/mbssep: New file.
16902         * lib/mbssep.c: New file.
16903         * lib/string_.h (strsep): Add a conditional link warning.
16904         (mbssep): New declaration.
16905         * m4/mbssep.m4: New file.
16906         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16907         GNULIB_MBSSEP.
16908         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16909         * MODULES.html.sh (Internationalization functions): Add mbssep.
16910
16911 2007-02-05  Bruno Haible  <bruno@clisp.org>
16912
16913         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16914         Optimize search in case of 1 delimiter.
16915
16916 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16917
16918         * lib/acl.h: Include sys/types.h before sys/acl.h.
16919
16920 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16921
16922         Merge upstream fix for glibc bugzilla #3957:
16923
16924         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16925
16926         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16927         bit for RE_HAT_LISTS_NOT_NEWLINE.
16928         (build_charclass_op): Remove bogus comment.
16929
16930 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16931
16932         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16933
16934 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16935
16936         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16937         * lib/memmem.c [!defined _LIBC]: Include config.h.
16938
16939 2007-02-04  Bruno Haible  <bruno@clisp.org>
16940
16941         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16942         warning message.
16943
16944 2007-02-04  Bruno Haible  <bruno@clisp.org>
16945
16946         New module mbstok_r.
16947         * modules/mbstok_r: New file.
16948         * lib/mbstok_r.c: New file.
16949         * lib/string_.h (strtok_r): Change argument names to match the
16950         comments. Add a conditional link warning.
16951         (mbstok_r): New declaration.
16952         * m4/mbstok_r.m4: New file.
16953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16954         GNULIB_MBSTOK_R.
16955         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16956         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16957
16958 2007-02-04  Bruno Haible  <bruno@clisp.org>
16959
16960         New module mbsspn.
16961         * modules/mbsspn: New file.
16962         * lib/mbsspn.c: New file.
16963         * lib/string_.h (strspn): Add a conditional link warning.
16964         (mbsspn): New declaration.
16965         * m4/mbsspn.m4: New file.
16966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16967         GNULIB_MBSSPN.
16968         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16969         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16970
16971 2007-02-04  Bruno Haible  <bruno@clisp.org>
16972
16973         New module mbspbrk.
16974         * modules/mbspbrk: New file.
16975         * lib/mbspbrk.c: New file.
16976         * lib/string_.h (strpbrk): Add a conditional link warning.
16977         (mbspbrk): New declaration.
16978         * m4/mbspbrk.m4: New file.
16979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16980         GNULIB_MBSPBRK.
16981         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16982         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16983
16984 2007-02-04  Bruno Haible  <bruno@clisp.org>
16985
16986         New module mbscspn.
16987         * modules/mbscspn: New file.
16988         * lib/mbscspn.c: New file.
16989         * lib/string_.h (strcspn): Add a conditional link warning.
16990         (mbscspn): New declaration.
16991         * m4/mbscspn.m4: New file.
16992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16993         GNULIB_MBSCSPN.
16994         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16995         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16996
16997 2007-02-04  Bruno Haible  <bruno@clisp.org>
16998
16999         New module mbscasestr, reduced goal of strcasestr.
17000         * modules/mbscasestr: New file.
17001         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17002         (mbscasestr): Renamed from strcasestr.
17003         * lib/strcasestr.c: Don't include mbuiter.h.
17004         (strcasestr): Remove support for multibyte locales.
17005         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17006         Change the conditional link warning.
17007         (mbscasestr): New declaration.
17008         * m4/mbscasestr.m4: New file.
17009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17010         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17011         REPLACE_STRCASESTR.
17012         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17014         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17015         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17016         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17017         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17018         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17019         (Depends-on): Remove mbuiter.
17020         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17021
17022 2007-02-04  Bruno Haible  <bruno@clisp.org>
17023
17024         Simplify handling of strncasecmp.
17025         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17026         the conditional link warning.
17027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17028         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17029         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17030         * modules/strcase (configure.ac): Don't invoke
17031         gl_STRING_MODULE_INDICATOR.
17032         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17033
17034 2007-02-04  Bruno Haible  <bruno@clisp.org>
17035
17036         New module mbscasecmp, reduced goal of strcasecmp.
17037         * modules/mbscasecmp: New file.
17038         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17039         (mbscasecmp): Renamed from strcasecmp.
17040         * lib/strcasecmp.c: Don't include mbuiter.h.
17041         (strcasecmp): Remove support for multibyte locales.
17042         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17043         Change the conditional link warning.
17044         (mbscasecmp): New declaration.
17045         * m4/mbscasecmp.m4: New file.
17046         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17047         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17048         REPLACE_STRCASECMP.
17049         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17051         GNULIB_MBSCASECMP.
17052         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
17053         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
17054         * modules/strcase (Files): Remove m4/mbrtowc.m4.
17055         (Depends-on): Remove mbuiter.
17056         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
17057
17058 2007-02-04  Bruno Haible  <bruno@clisp.org>
17059
17060         New module mbsstr. Remove module strstr.
17061         * modules/mbsstr: New file.
17062         * modules/strstr: Remove file.
17063         * lib/mbsstr.c: Renamed from lib/strstr.c.
17064         (mbsstr): Renamed from strstr.
17065         * lib/string_.h (strstr): Remove declaration. Change the conditional
17066         link warning.
17067         (mbsstr): New declaration.
17068         * m4/mbsstr.m4: New file.
17069         * m4/strstr.m4: Remove file.
17070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17071         REPLACE_STRSTR.
17072         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
17073         Don't initialize GNULIB_STRSTR.
17074         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17075         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17076         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17077         (Support for systems lacking ANSI C 89): Remove strstr.
17078
17079 2007-02-04  Bruno Haible  <bruno@clisp.org>
17080
17081         New module mbsrchr.
17082         * modules/mbsrchr: New file.
17083         * lib/mbsrchr.c: New file.
17084         * lib/string_.h (strrchr): Add a conditional link warning.
17085         (mbsrchr): New declaration.
17086         * m4/mbsrchr.m4: New file.
17087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17088         GNULIB_MBSRCHR.
17089         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17090         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17091
17092 2007-02-04  Bruno Haible  <bruno@clisp.org>
17093
17094         New module mbschr.
17095         * modules/mbschr: New file.
17096         * lib/mbschr.c: New file.
17097         * lib/string_.h (strchr): Add a conditional link warning.
17098         (mbschr): New declaration.
17099         * m4/mbschr.m4: New file.
17100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17101         GNULIB_MBSCHR.
17102         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17103         * MODULES.html.sh (Internationalization functions): Add mbschr.
17104
17105 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17106
17107         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17108
17109         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17110
17111 2007-02-04  Bruno Haible  <bruno@clisp.org>
17112
17113         New module description section 'configure.ac-early'.
17114         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17115         (func_get_autoconf_early_snippet): New function.
17116         (func_import, func_create_testdir): Use it. Remove special cases for
17117         modules 'extensions' and 'lock'.
17118         * modules/extensions (configure.ac-early): Require
17119         gl_USE_SYSTEM_EXTENSIONS.
17120         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17121
17122 2007-02-04  Bruno Haible  <bruno@clisp.org>
17123
17124         Make use of gcj-4.3's -fsource and -ftarget option.
17125         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17126         and if so try the options -fsource and -ftarget.
17127         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17128         source_version, ftarget_option, target_version arguments.
17129         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17130         (is_envjavac_oldgcj_14_14_usable): Renamed from
17131         is_envjavac_gcj_14_14_usable.
17132         (is_envjavac_oldgcj_14_13_usable): Renamed from
17133         is_envjavac_gcj_14_13_usable.
17134         (is_gcj_present): Update.
17135         (is_gcj_43, is_gcj43_usable): New functions.
17136         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17137         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17138         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17139         try the options -fsource and -ftarget.
17140
17141 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17142
17143         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17144         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17145         larger value.
17146
17147 2007-02-03  Jim Meyering  <jim@meyering.net>
17148
17149         Give tools a better chance to allocate space for very large buffers.
17150         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17151
17152         Make pwd and readlink work also when run with an unreadable parent dir
17153         on systems with openat support.
17154         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17155         provided getcwd function, even when we have openat support.
17156         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17157
17158 2007-02-02  Bruno Haible  <bruno@clisp.org>
17159
17160         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17161         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17162         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17163         portability problems if one of these functions is only used on specific
17164         platforms.
17165         Reported by Paul Eggert.
17166
17167 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17168
17169         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17170         is causing more trouble than it's curing.
17171         * lib/regex_internal.h (__mempcpy): Remove.
17172         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17173         (and make the code a tad smaller to boot).
17174         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17175
17176 2007-02-02  Jim Meyering  <jim@meyering.net>
17177
17178         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17179         section, not in the Makefile.am: one.
17180
17181 2007-02-02  Eric Blake  <ebb9@byu.net>
17182
17183         * lib/strchrnul.c: Always include config.h first.
17184
17185         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17186         gnulib strstr is not necessary here.
17187
17188 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17189
17190         * m4/socklen.m4: Fix typo.
17191
17192 2007-02-02  Eric Blake  <ebb9@byu.net>
17193
17194         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17195         * modules/netinet_in (Makefile.am): Likewise.
17196
17197 2007-02-01  Bruno Haible  <bruno@clisp.org>
17198
17199         * lib/string_.h (GL_LINK_WARNING): New macro.
17200         (strcasecmp, strstr, strcasestr): If provided by the system,
17201         conditionally define as a macro that leads to a warning instead of to
17202         an error.
17203         (strncasecmp): Conditionally define as a macro that leads to a warning.
17204
17205 2007-02-01  Karl Berry  <karl@gnu.org>
17206
17207         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17208
17209 2007-02-01  Bruno Haible  <bruno@clisp.org>
17210
17211         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17212         renamings.
17213
17214 2007-02-01  Eric Blake  <ebb9@byu.net>
17215
17216         * modules/regex (Depends-on): Revert dependence on mempcpy.
17217         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17218         module's definition of mempcpy.
17219         Reported by Paul Eggert.
17220
17221 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17222
17223         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17224         the symbol XYZ before redefining it.  This fixes a problem with
17225         programs that don't use XYZ, when compiled on systems that define
17226         XYZ to something else.
17227
17228 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17229
17230         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17231         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17232         writeable to group or other and (2) is intended to have a special
17233         mode bit that is set or cleared.  In such a case, the directory
17234         should be neither group- nor other-writeable until the special
17235         mode bits are right.
17236
17237 2007-01-31  Eric Blake  <ebb9@byu.net>
17238
17239         * modules/mountlist (Depends-on): Add strstr.
17240
17241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17242         bug.
17243         * modules/string (Makefile.am): Remove redundant replacement.
17244         * modules/regex (Depends-on): Add mempcpy.
17245
17246 2007-01-31  Bruno Haible  <bruno@clisp.org>
17247
17248         New module description field 'Link'.
17249         * gnulib-tool (func_usage): Document --extract-link-directive.
17250         (sed_extract_prog): Recognize 'Link' directive.
17251         (func_get_link_directive): New function.
17252         (func_import): Show summary of link directives.
17253         Handle --extract-link-directive option.
17254         * modules/acl (Link): New section.
17255         * modules/clock-time (Link): New section.
17256         * modules/euidaccess (Link): New section.
17257         * modules/gettext (Link): New section.
17258         * modules/iconv (Link): New section.
17259         * modules/lock (Link): New section.
17260         * modules/nanosleep (Link): New section.
17261         * modules/readline (Link): New section.
17262
17263 2007-01-27  Bruno Haible  <bruno@clisp.org>
17264
17265         Enforce the use of gnulib modules for unportable <string.h> functions.
17266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17267         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17268         (gl_HEADER_STRING_H_BODY): Require it.
17269         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17270         the symbol XYZ to one that gives a link error.
17271         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17272         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17273         * modules/mempcpy (configure.ac): Likewise.
17274         * modules/memrchr (configure.ac): Likewise.
17275         * modules/stpcpy (configure.ac): Likewise.
17276         * modules/stpncpy (configure.ac): Likewise.
17277         * modules/strcase (configure.ac): Likewise.
17278         * modules/strcasestr (configure.ac): Likewise.
17279         * modules/strchrnul (configure.ac): Likewise.
17280         * modules/strdup (configure.ac): Likewise.
17281         * modules/strndup (configure.ac): Likewise.
17282         * modules/strnlen (configure.ac): Likewise.
17283         * modules/strpbrk (configure.ac): Likewise.
17284         * modules/strsep (configure.ac): Likewise.
17285         * modules/strstr (configure.ac): Likewise.
17286         * modules/strtok_r (configure.ac): Likewise.
17287
17288 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17289
17290         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17291
17292 2007-01-30  Jim Meyering  <jim@meyering.net>
17293
17294         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17295
17296 2007-01-29  Bruno Haible  <bruno@clisp.org>
17297
17298         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17299         * lib/execute.c: Likewise.
17300         * lib/pipe.c: Likewise.
17301         * lib/printf-args.h: Likewise.
17302         * lib/printf-args.c: Likewise.
17303         * lib/printf-parse.c: Likewise.
17304         * lib/vasnprintf.c: Likewise.
17305
17306 2007-01-29  Eric Blake  <ebb9@byu.net>
17307
17308         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17309         declaration.
17310
17311 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17312
17313         * lib/strptime.h (strptime): Use 'restrict' for args where
17314         POSIX requires this.
17315         * lib/strptime.c (strptime): Likewise.
17316         Change license notice from LGPL to GPL, since gnulib-tool will
17317         change this as needed.
17318         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17319         defined.
17320         Include "strptime.h" first, to check interface.
17321         Do not #undef _LIBC and _NL_CURRENT.
17322         Do not include <stdlib.h>; no longer needed.
17323         Include "time_r.h" and declare ptime_locale_status
17324         only if _LIBC is not defined.
17325         (__P): Remove unused macro.
17326         (match_string): Bring back glibc version, but use it only if _LIBC
17327         is defined.
17328         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17329         Remove unnecessary assertion and abort() call.
17330         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17331         * m4/strptime.m4: Fix serial number comment.
17332         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17333         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17334         (Depends-on): Add time_r.
17335
17336 2007-01-29  Bruno Haible  <bruno@clisp.org>
17337
17338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17339         strptime.
17340         * modules/strptime (Depends-on): Add stdbool.
17341         * lib/strptime.h: Include <time.h> always. Add comments.
17342
17343 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17344
17345         * modules/strptime: New file.
17346         * lib/strptime.h: New file.
17347         * lib/strptime.c: New file.
17348         * m4/strptime.m4: New file.
17349
17350 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17351
17352         * MODULES.html.sh: New module mpsort.
17353         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17354
17355         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17356         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17358         All uses changed.
17359         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17360         All uses changed.
17361         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17362         to _Restrict_.
17363         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17364         the parameter matches the prototype.
17365
17366 2007-01-28  Jim Meyering  <jim@meyering.net>
17367
17368         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17369         sys/time.h here, reverting that part of the previous patch:
17370         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17371
17372 2007-01-28  Bruno Haible  <bruno@clisp.org>
17373
17374         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17375         value of $(SYS_TIME_H).
17376         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17377         remove it conditionally, too. [added by Jim Meyering]
17378         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17380         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17381         GETTIMEOFDAY_REPLACEMENT to 1.
17382
17383 2007-01-28  Bruno Haible  <bruno@clisp.org>
17384
17385         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17386         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17388         Set UNISTD_H instead of UNISTD_H2.
17389         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17390
17391 2007-01-28  Bruno Haible  <bruno@clisp.org>
17392
17393         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17394         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17395
17396 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17397
17398         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17399         (func_create_testdir): Ensure C locale for `grep' and `tr'
17400         character ranges.
17401         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17402         ACLOCAL_AMFLAGS parsing state machine.
17403
17404 2007-01-27  Bruno Haible  <bruno@clisp.org>
17405
17406         * modules/unistr/base: Update.
17407
17408 2007-01-27  Bruno Haible  <bruno@clisp.org>
17409
17410         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17411         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17412         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17413         modules/unistr/u32-mbtouc.
17414         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17415         * lib/unistr.h: Update.
17416         * lib/linebreak.c: Update.
17417         * modules/unistr/u32-mbtouc: Renamed from
17418         modules/unistr/u32-mbtouc-safe.
17419         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17420         * lib/unistr.h: Update.
17421         * lib/unistr/u32-to-u8.c: Update.
17422         * lib/unistr/u32-to-u16.c: Update.
17423
17424 2007-01-27  Bruno Haible  <bruno@clisp.org>
17425
17426         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17427         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17428         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17429         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17430         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17431         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17432         modules/unistr/u16-mbtouc.
17433         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17434         * lib/unistr.h: Update.
17435         * lib/linebreak.c: Update.
17436         * modules/linebreak: Update.
17437         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17438         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17439         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17440         * modules/unistr/u16-mbtouc: Renamed from
17441         modules/unistr/u16-mbtouc-safe.
17442         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17443         * lib/unistr.h: Update.
17444         * lib/unistr/u16-to-u8.c: Update.
17445         * modules/unistr/u16-to-u8: Update.
17446         * lib/unistr/u16-to-u32.c: Update.
17447         * modules/unistr/u16-to-u32: Update.
17448
17449 2007-01-27  Bruno Haible  <bruno@clisp.org>
17450
17451         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17452         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17453         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17454         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17455         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17456         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17457         modules/unistr/u8-mbtouc.
17458         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17459         * lib/unistr.h: Update.
17460         * lib/striconveh.c: Update.
17461         * modules/striconveh: Update.
17462         * lib/linebreak.c: Update.
17463         * modules/linebreak: Update.
17464         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17465         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17466         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17467         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17468         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17469         * lib/unistr.h: Update.
17470         * lib/striconveh.c: Update.
17471         * modules/striconveh: Update.
17472         * lib/unistr/u8-to-u16.c: Update.
17473         * modules/unistr/u8-to-u16: Update.
17474         * lib/unistr/u8-to-u32.c: Update.
17475         * modules/unistr/u8-to-u32: Update.
17476
17477 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17478
17479         Sync from Libtool.
17480         * lib/argz.c: Do not include strings.h nor memory.h, include
17481         string.h unconditionally.  Patch by Simon Josefsson.
17482
17483 2007-01-27  Bruno Haible  <bruno@clisp.org>
17484
17485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17486         from gl_HEADER_STRING_H_BODY.
17487         (gl_HEADER_STRING_H_BODY): Require it.
17488         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17489         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17490         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17491         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17493         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17495         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17496         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17499         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17500         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17501         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17502         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17503
17504 2007-01-27  Bruno Haible  <bruno@clisp.org>
17505
17506         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17507         check_PROGRAMS into noinst_PROGRAMS.
17508         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17509         check_PROGRAMS in this case.
17510         (func_import): Set for_test to false.
17511         (func_create_testdir): Set for_test to true.
17512
17513 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17514             Bruno Haible  <bruno@clisp.org>
17515
17516         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17517         (Depends-on): Add string.
17518         (Includes): Use <string.h> instead of strcasestr.h.
17519         * modules/string (Makefile.am): Also substitute the value of
17520         REPLACE_STRCASESTR.
17521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17522         assume strcasestr is declared in <string.h> not <strings.h>. Also
17523         set REPLACE_STRCASESTR.
17524         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17525         REPLACE_STRCASESTR.
17526         * lib/strcasestr.h: Remove file.
17527         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17528         * lib/string_.h (strcasestr): New declaration.
17529
17530 2007-01-27  Bruno Haible  <bruno@clisp.org>
17531
17532         * lib/string_.h: Use 'extern'.
17533
17534 2007-01-27  Jim Meyering  <jim@meyering.net>
17535
17536         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17537         of set-but-not-used local, "q".
17538
17539         * lib/mempcpy.c: Include <config.h> before <string.h>.
17540         This fixes a compilation error on HP-UX, due to the system's
17541         "restrict"-using mempcpy prototype.
17542
17543 2007-01-26  Bruno Haible  <bruno@clisp.org>
17544
17545         Small optimization.
17546         * lib/javacomp.c: Include c-strstr.h.
17547          (is_envjavac_gcj): Use c_strstr instead of strstr.
17548         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17549
17550 2007-01-26  Bruno Haible  <bruno@clisp.org>
17551
17552         * MODULES.html.sh (Unicode string functions): Add the new modules.
17553
17554         * modules/uniconv/u32-strconv-to-locale: New file.
17555         * lib/uniconv/u32-strconv-to-locale.c: New file.
17556
17557         * modules/uniconv/u16-strconv-to-locale: New file.
17558         * lib/uniconv/u16-strconv-to-locale.c: New file.
17559
17560         * modules/uniconv/u8-strconv-to-locale: New file.
17561         * lib/uniconv/u8-strconv-to-locale.c: New file.
17562
17563         * modules/uniconv/u32-strconv-from-locale: New file.
17564         * lib/uniconv/u32-strconv-from-locale.c: New file.
17565
17566         * modules/uniconv/u16-strconv-from-locale: New file.
17567         * lib/uniconv/u16-strconv-from-locale.c: New file.
17568
17569         * modules/uniconv/u8-strconv-from-locale: New file.
17570         * lib/uniconv/u8-strconv-from-locale.c: New file.
17571
17572         * modules/uniconv/u32-strconv-to-enc: New file.
17573         * lib/uniconv/u32-strconv-to-enc.c: New file.
17574         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17575         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17576
17577         * modules/uniconv/u16-strconv-to-enc: New file.
17578         * lib/uniconv/u16-strconv-to-enc.c: New file.
17579         * lib/uniconv/u-strconv-to-enc.h: New file.
17580         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17581         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17582
17583         * modules/uniconv/u8-strconv-to-enc: New file.
17584         * lib/uniconv/u8-strconv-to-enc.c: New file.
17585         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17586         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17587
17588         * modules/uniconv/u32-strconv-from-enc: New file.
17589         * lib/uniconv/u32-strconv-from-enc.c: New file.
17590         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17591         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17592
17593         * modules/uniconv/u16-strconv-from-enc: New file.
17594         * lib/uniconv/u16-strconv-from-enc.c: New file.
17595         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17596         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17597
17598         * modules/uniconv/u8-strconv-from-enc: New file.
17599         * lib/uniconv/u8-strconv-from-enc.c: New file.
17600         * lib/uniconv/u-strconv-from-enc.h: New file.
17601         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17602         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17603
17604         * modules/uniconv/u32-conv-from-enc: New file.
17605         * lib/uniconv/u32-conv-from-enc.c: New file.
17606         * modules/uniconv/u32-conv-from-enc-tests: New file.
17607         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17608
17609         * modules/uniconv/u16-conv-from-enc: New file.
17610         * lib/uniconv/u16-conv-from-enc.c: New file.
17611         * lib/uniconv/u-conv-from-enc.h: New file.
17612         * modules/uniconv/u16-conv-from-enc-tests: New file.
17613         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17614
17615         * modules/uniconv/u8-conv-from-enc: New file.
17616         * lib/uniconv/u8-conv-from-enc.c: New file.
17617         * modules/uniconv/u8-conv-from-enc-tests: New file.
17618         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17619
17620         * modules/uniconv/base: New file.
17621         * lib/uniconv.h: New file.
17622
17623 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17624
17625         * doc/gnulib-tool.texi (Initial import): Update to match current
17626         behavior with strdup module.
17627         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17628         * lib/memmem.h: Remove; all uses removed.  This is now done
17629         by <string.h>.
17630         * lib/mempcpy.h: Likewise.
17631         * lib/memrchr.h: Likewise.
17632         * lib/stpcpy.h: Likewise.
17633         * lib/stpncpy.h: Likewise.
17634         * lib/strcase.h: Likewise.
17635         * lib/strchrnul.h: Likewise.
17636         * lib/strdup.h: Likewise.
17637         * lib/strndup.h: Likewise.
17638         * lib/strnlen.h: Likewise.
17639         * lib/strpbrk.h: Likewise.
17640         * lib/strsep.h: Likewise.
17641         * lib/strstr.h: Likewise.
17642         * lib/strtok_r.h: Likewise.
17643         * lib/string_.h: New file.
17644         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17645         Rely on <string.h> instead.
17646         * lib/canon-host.c: Likewise.
17647         * lib/chdir-long.c: Likewise.
17648         * lib/concatpath.c: Likewise.
17649         * lib/exclude.c: Likewise.
17650         * lib/fchdir.c: Likewise.
17651         * lib/getaddrinfo.c: Likewise.
17652         * lib/getcwd.c: Likewise.
17653         * lib/getsubopt.c: Likewise.
17654         * lib/glob.c: Likewise.
17655         * lib/hard-locale.c: Likewise.
17656         * lib/iconvme.c: Likewise.
17657         * lib/javacomp.c: Likewise.
17658         * lib/mempcpy.c: Likewise.
17659         * lib/memrchr.c: Likewise.
17660         * lib/regex_internal.h: Likewise.
17661         * lib/stpncpy.c: Likewise.
17662         * lib/strcasecmp.c: Likewise.
17663         * lib/strchrnul.c: Likewise.
17664         * lib/strdup.c: Likewise.
17665         * lib/striconv.c: Likewise.
17666         * lib/striconveh.c: Likewise.
17667         * lib/striconveha.c: Likewise.
17668         * lib/strncasecmp.c: Likewise.
17669         * lib/strndup.c: Likewise.
17670         * lib/strnlen.c: Likewise.
17671         * lib/strsep.c: Likewise.
17672         * lib/strstr.c: Likewise.
17673         * lib/strtok_r.c: Likewise.
17674         * lib/userspec.c: Likewise.
17675         * lib/w32spawn.h: Likewise.
17676         * lib/xstrndup.c: Likewise.
17677         * lib/mountlist.c (strstr): Remove decl.
17678         * m4/string_h.m4: New file.
17679         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17680         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17681         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17683         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17684         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17685         Set REPLACE_STRCASECMP if necessary.
17686         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17687         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17688         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17690         HAVE_DECL_STRDUP if necessary.
17691         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17692         since gl_FUNC_STRNDUP does that now.
17693         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17694         Check for decl here...
17695         (gl_PREREQ_STRNLEN): ... not here.
17696         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17697         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17698         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17700         necessary.
17701         * modules/string: New file.
17702         * modules/memmem (Files): Remove special-purpose include file.
17703         (Depends-on): Add string.
17704         (Include): Include <string.h>, not the removed file.
17705         * modules/mempcpy: Likewise.
17706         * modules/memrchr: Likewise.
17707         * modules/stpcpy: Likewise.
17708         * modules/stpncpy: Likewise.
17709         * modules/strcase: Likewise.
17710         * modules/strchrnul: Likewise.
17711         * modules/strdup: Likewise.
17712         * modules/strndup: Likewise.
17713         * modules/strnlen: Likewise.
17714         * modules/strpbrk: Likewise.
17715         * modules/strsep: Likewise.
17716         * modules/strstr: Likewise.
17717         * modules/strtok_r: Likewise.
17718         * tests/test-dirname.c: Don't include "strdup.h", since
17719         <string.h> now suffices.
17720         * tests/test-memmem.c: Don't include "memmem.h", since
17721         <string.h> now suffices.
17722
17723 2007-01-25  Bruno Haible  <bruno@clisp.org>
17724
17725         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17726         *resultp is 0.
17727
17728         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17729         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17730         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17731         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17732
17733         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17734         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17735         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17736         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17737         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17738         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17739
17740 2007-01-24  Bruno Haible  <bruno@clisp.org>
17741
17742         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17744         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17745         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17746         gl_FUNC_FTS_CORE.
17747         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17748         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17749         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17750         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17751         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17752         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17753         gl_FUNC_FCHOWNAT.
17754         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17755         gl_FUNC_STRFTIME.
17756         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17757         Reported by Ralf Wildenhues.
17758
17759 2007-01-24  Bruno Haible  <bruno@clisp.org>
17760
17761         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17762         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17763         gl_GETADDRINFO.
17764         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17765         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17766         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17767
17768 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17769
17770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17771         Don't use 'exit'; just return from 'main'.
17772         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17773
17774         * lib/fnmatch_.h: Readjust white space and comments to match
17775         glibc, to avoid spurious diffs.
17776
17777 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17778
17779         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17780         2004-12-01 change by Jakub Jelinek, since this code won't compile
17781         if !LIBC.  Problem reported by Bob Proulx.
17782
17783 2007-01-23  Bruno Haible  <bruno@clisp.org>
17784
17785         * lib/striconveh.c: Include c-strcaseeq.h.
17786         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17787         * modules/striconveh (Depends-on): Add c-strcaseeq.
17788
17789 2007-01-23  Bruno Haible  <bruno@clisp.org>
17790
17791         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17792
17793         * modules/c-strcaseeq: New file.
17794         * lib/c-strcaseeq.h: New file.
17795
17796         * modules/streq: New file.
17797         * lib/streq.h: New file.
17798
17799 2007-01-23  Bruno Haible  <bruno@clisp.org>
17800
17801         * modules/striconveha-tests: New file.
17802         * tests/test-striconveha.c: New file.
17803
17804         * lib/striconveha.h: Include <stdbool.h>.
17805         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17806         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17807         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17808         (mem_iconveha): New function.
17809         (str_iconveha_notranslit): Renamed from str_iconveha.
17810         (str_iconveha): New function.
17811         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17812         c-strcase.
17813
17814 2007-01-23  Bruno Haible  <bruno@clisp.org>
17815
17816         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17817         encodings without forgiving before trying any encoding with handler.
17818         (str_iconveha): Try all encodings without forgiving before trying any
17819         encoding with handler.
17820
17821 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17822
17823         Import the following changes from libc.
17824
17825         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17826
17827         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17828
17829         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17830
17831         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17832         normal_bracket label.
17833
17834         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17835
17836         [BZ #361]
17837         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17838         to normal_bracket after fetching the next character.
17839
17840 2007-01-22  Bruno Haible  <bruno@clisp.org>
17841
17842         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17843         argument.
17844         * lib/striconveh.c (iconv_carefully_1): New function.
17845         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17846         argument.
17847         (str_cd_iconveh): Update.
17848         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17849         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17850         * tests/test-striconveh.c (MAGIC): New macro.
17851         (new_offsets): New function.
17852         (main): Test call with and without offsets.
17853
17854 2007-01-22  Bruno Haible  <bruno@clisp.org>
17855
17856         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17857         * modules/sys_select (Makefile.am): Likewise.
17858         * modules/sys_socket (Makefile.am): Likewise.
17859         * modules/sys_time (Makefile.am): Likewise.
17860
17861 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17862
17863         * modules/gettimeofday (License): Change from GPL to LGPL, since
17864         gettimeofday is a library function.
17865
17866 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17867
17868         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17869
17870 2007-01-21  Bruno Haible  <bruno@clisp.org>
17871
17872         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17873
17874 2007-01-21  Bruno Haible  <bruno@clisp.org>
17875
17876         * modules/striconveha: New file.
17877         * lib/striconveha.h: New file.
17878         * lib/striconveha.c: New file.
17879         * MODULES.html.sh (Internationalization functions): Add striconveha.
17880         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17881         string.
17882         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17883
17884 2007-01-21  Bruno Haible  <bruno@clisp.org>
17885
17886         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17887         * lib/striconveh.c (str_iconveh): Likewise.
17888
17889 2007-01-21  Bruno Haible  <bruno@clisp.org>
17890
17891         * lib/striconveh.h (mem_iconveh): New declaration.
17892         * lib/striconveh.c (mem_iconveh): New function.
17893         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17894
17895 2007-01-21  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17898
17899         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17900         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17901         original result buffer.
17902         (str_cd_iconveh): Update.
17903         * tests/test-striconveh.c (main): Update.
17904
17905         * lib/striconv.h (mem_cd_iconv): Change specification.
17906         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17907         result buffer.
17908         (str_cd_iconv): Update.
17909         * tests/test-striconv.c (main): Update.
17910
17911 2007-01-21  Bruno Haible  <bruno@clisp.org>
17912
17913         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17914
17915 2007-01-20  Jim Meyering  <jim@meyering.net>
17916
17917         * lib/userspec.c (parse_with_separator): If a user or group string
17918         starts with "+", skip the corresponding name-to-ID look-up, since
17919         such a look-up must fail: user and group names may not include "+".
17920
17921 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17922
17923         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17924         since we now assume the sys_time module.
17925         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17926         check for sys/time.h; no longer needed.
17927         * modules/poll (Depends-on): Depend on sys_time.
17928
17929 2007-01-18  Bruno Haible  <bruno@clisp.org>
17930
17931         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17932         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17933
17934         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17935         gettimeofday.
17936
17937         * tests/test-gettimeofday.c: Include <time.h>.
17938         (dummy): Remove variable.
17939
17940         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17941         gl_HEADER_SYS_TIME_H.
17942         (gl_HEADER_SYS_TIME_H): New macro.
17943
17944         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17945         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17947         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17948         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17949         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17950         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17951         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17952         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17953         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17954         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17955
17956         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17957         last change; it caused a compilation error when cross-compiling to
17958         Cygwin.
17959
17960 2007-01-18  Jim Meyering  <jim@meyering.net>
17961
17962         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17963         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17964         than the race-prone "test -d sys || mkdir sys".
17965         (configure.ac): Use AC_PROG_MKDIR_P.
17966         * modules/sys_select: Likewise.
17967         * modules/sys_socket: Likewise.
17968         * modules/sys_time: Likewise.
17969
17970 2007-01-18  Eric Blake  <ebb9@byu.net>
17971
17972         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17973         replace gettimeofday.
17974         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17975         name, to avoid infinite recursion.
17976
17977 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17980         module sys_time.
17981         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17982         assume timespec.h defines struct timeval.
17983         * lib/settime.c: Likewise.
17984         * lib/utimens.c: Likewise.
17985         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17986         since we now assume the gettimeofday module.
17987         * lib/tempname.c (__gen_tempname): Likewise.
17988         * lib/gettimeofday.h: Remove.
17989         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17990         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17991         Include <time.h>, for 'time()'.
17992         (localtime_buffer_addr): Also use this workaround if
17993         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17994         to simplify the uses.  All uses changed.
17995         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17996         that #undef is inside {}, and 'const' follows type name consistently.
17997         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17998         (gettimeofday): Do not use the maximum possible value for
17999         tv->tv_usec, since that might break usages other than ls.c.
18000         Instead, we'll leave ls.c alone.  This undoes today's patch
18001         by Bruno.  Add a compile-time warning for 1s-clock resolution;
18002         we've never observed the problem but might as well keep the
18003         canary.
18004         * lib/nanosleep.c: Include timespec.h first, for interface check.
18005         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18006         now assume the sys_time module.
18007         * lib/tempname.c: Likewise.
18008         * lib/timespec.h: Likewise.
18009         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18010         needed.
18011         * lib/strftime.c: Likewise.
18012         * lib/timespec.h: Likewise.
18013         * lib/posixtm.c: Include posixtm.h first, for interface check.
18014         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18015         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18016         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18017         * lib/sys_time_.h: New file.
18018         * lib/timespec.h (struct timespec): Use long int, not long.
18019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18020         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18021         Remove obsolescent call to AC_HEADER_TIME.
18022         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18024         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18025         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18026         Likewise.
18027         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18028         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18030         into the sys_time module.  Check for gettimeofday just once.
18031         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18032         for gettimeofday signature to just check the signature.  Merely
18033         compile it, since linking doesn't test signature.  Improve test for
18034         whether gettimeofday.o is actually needed.
18035         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18036         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18037         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18038         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18039         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18040         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18041         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18042         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18043         than worrying about sys/time.h.
18044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18045         Don't bother worrying about TIME_WITH_SYS_TIME.
18046         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18047         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18048         * m4/sys_time_h.m4: New file.
18049         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18050         Don't include sys/time.h.  Return from main rather than exiting.
18051         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18052         all uses changed.
18053         * modules/gethrxtime (Depends-on): Add sys_time.
18054         * modules/gettime (Depends-on): Likewise.
18055         * modules/gettimeofday (Depends-on): Likewise.
18056         * modules/nanosleep (Depends-on): Likewise.
18057         * modules/settime (Depends-on): Likewise.
18058         * modules/tempname (Depends-on): Likewise.
18059         * modules/utimens (Depends-on): Likewise.
18060         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
18061         (Include:) Change back to <sys/time.h>.
18062         (Maintainer:) Add self.
18063         * modules/sys_time: New file.
18064         * modules/tempname (Depends-on): Add gettimeofday.
18065         * tests/test-gettimeofday.c: Include <sys/time.h>
18066         rather than gettimeofday.h.
18067
18068 2007-01-17  Bruno Haible  <bruno@clisp.org>
18069
18070         * gnulib-tool (func_get_license): Revert last patch. Instead, let
18071         the license default to GPL.
18072         (func_create_testdir): Don't complain if a module is LGPL and its
18073         tests module depends on GPLed modules.
18074
18075 2007-01-17  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/gettimeofday.c (gettimeofday): Add code for the case
18078         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18079         maximum possible value for tv->tv_usec, rather than the minimum one.
18080
18081 2005-10-08  Martin Lambers  <marlam@marlam.de>
18082 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18083 2007-01-16  Bruno Haible  <bruno@clisp.org>
18084
18085         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18086         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18087         gl_FUNC_GETTIMEOFDAY.
18088         (Include): Add gettimeofday.h.
18089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18090         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18091         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18092         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18093         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18094         * lib/gettimeofday.h: New file.
18095         * lib/gettimeofday.c: Include <sys/timeb.h>.
18096         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18097         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18098         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18099         fall back on time().
18100
18101         * tests/test-gettimeofday.c: New file.
18102         * modules/gettimeofday-tests: New file.
18103
18104 2007-01-16  Eric Blake  <ebb9@byu.net>
18105
18106         * modules/fnmatch (Depends-on): Depend on wchar.
18107         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18108         * m4/fnmatch.m4: Likewise.
18109         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18110         * m4/mbchar.m4: Likewise.
18111         * modules/mbswidth (Depends-on): Depend on wchar.
18112         * lib/mbswidth.c: Assume <wchar.h>.
18113         * m4/mbswidth.m4: Likewise.
18114         * modules/quotearg (Depends-on): Depend on wchar.
18115         * lib/quotearg.c: Assume <wchar.h>.
18116         * m4/quotearg.m4: Likewise.
18117         * modules/regex (Depends-on): Depend on wchar.
18118         * lib/regex_internal.h: Assume <wchar.h>.
18119         * m4/regex.m4: Likewise.
18120         * modules/stdint (Depends-on): Depend on wchar.
18121         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18122         * m4/stdint.m4: Likewise.
18123         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18124         * modules/strftime (Depends-on): Depend on wchar.
18125         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18126         * modules/strtol (Depends-on): Depend on wchar.
18127         * lib/strtol.c: Assume <wchar.h>.
18128         * modules/wcwidth (Depends-on): Depend on wchar.
18129         * lib/wcwidth.h: Assume <wchar.h>.
18130         * m4/wcwidth.m4: Likewise.
18131
18132 2007-01-16  Bruno Haible  <bruno@clisp.org>
18133
18134         * modules/csharpexec-script: New, created from...
18135         * modules/csharpexec: ... this.
18136
18137 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18138
18139         * modules/javaexec-script: New, created from...
18140         * modules/javaexec: ... this.
18141
18142 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18143
18144         * modules/poll (Dependencies): Add sys_select.
18145
18146 2007-01-15  Jim Meyering  <jim@meyering.net>
18147
18148         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18149         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18150         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18151         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18152
18153 2007-01-15  Bruno Haible  <bruno@clisp.org>
18154
18155         * modules/striconveh: New file.
18156         * lib/striconveh.h: New file.
18157         * lib/striconveh.c: New file.
18158         * MODULES.html.sh (Internationalization functions): Add striconveh.
18159
18160         * modules/striconveh-tests: New file.
18161         * tests/test-striconveh.c: New file.
18162
18163 2007-01-15  Bruno Haible  <bruno@clisp.org>
18164
18165         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18166         not from GNU libiconv or GNU libc.
18167
18168 2007-01-15  Bruno Haible  <bruno@clisp.org>
18169
18170         * doc/gnulib-intro.texi (Copyright): Explain the different license
18171         terms for module descriptions, autoconf macros, tests, documentation.
18172
18173 2007-01-14  Bruno Haible  <bruno@clisp.org>
18174
18175         * modules/striconv-tests: New file.
18176         * tests/test-striconv.c: New file.
18177
18178 2007-01-14  Bruno Haible  <bruno@clisp.org>
18179
18180         * modules/iconv-tests: New file.
18181         * tests/test-iconv.c: New file.
18182
18183 2007-01-14  Bruno Haible  <bruno@clisp.org>
18184
18185         * gnulib-tool (func_get_license): For test modules, use the license of
18186         the main module.
18187
18188 2007-01-14  Bruno Haible  <bruno@clisp.org>
18189
18190         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18191         if iconv is found to exist.
18192
18193 2007-01-14  Bruno Haible  <bruno@clisp.org>
18194
18195         * modules/c-ctype-tests: New file.
18196         * tests/test-c-ctype.c: New file.
18197
18198 2007-01-14  Bruno Haible  <bruno@clisp.org>
18199
18200         * modules/binary-io-tests: New file.
18201         * tests/test-binary-io.sh: New file.
18202         * tests/test-binary-io.c: New file.
18203
18204 2007-01-14  Bruno Haible  <bruno@clisp.org>
18205
18206         * modules/array-oset-tests: New file.
18207         * tests/test-array_oset.c: New file.
18208
18209 2007-01-14  Bruno Haible  <bruno@clisp.org>
18210
18211         * modules/array-list-tests: New file.
18212         * tests/test-array_list.c: New file.
18213
18214 2007-01-14  Bruno Haible  <bruno@clisp.org>
18215
18216         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18217         and make.
18218         Reported by Simon Josefsson in
18219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18220
18221 2007-01-14  Bruno Haible  <bruno@clisp.org>
18222
18223         * modules/allocsa-tests: New file.
18224         * tests/test-allocsa.c: New file.
18225
18226 2007-01-14  Bruno Haible  <bruno@clisp.org>
18227
18228         * modules/fchdir (Depends-on): Add absolute-header.
18229         * modules/unistd (Depends-on): Likewise.
18230
18231 2006-12-30  Bruno Haible  <bruno@clisp.org>
18232
18233         * modules/fchdir: New file.
18234         * modules/unistd (Files): Add lib/unistd_.h.
18235         (Makefile.am): Generate unistd.h from unistd_.h.
18236         * lib/fchdir.c: New file.
18237         * lib/dirent_.h: New file.
18238         * lib/unistd_.h: New file.
18239         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18240         * m4/fchdir.m4: New file.
18241         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18242         (gl_HEADER_UNISTD): Invoke it.
18243         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18244         function.
18245         * lib/backupfile.c (opendir, closedir): Undefine.
18246         * lib/chown.c (open, close): Undefine.
18247         * lib/clean-temp.c (open, close): Undefine.
18248         * lib/copy-file.c (open, close): Undefine.
18249         * lib/execute.c (open, close): Undefine.
18250         * lib/fsusage.c (open, close): Undefine.
18251         * lib/gc-gnulib.c (open, close): Undefine.
18252         * lib/getcwd.c (opendir, closedir): Undefine.
18253         * lib/glob.c (opendir, closedir): Undefine.
18254         * lib/javacomp.c (open, close): Undefine.
18255         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18256         * lib/openat-proc.c (open, close): Undefine.
18257         * lib/pagealign_alloc.c (open, close): Undefine.
18258         * lib/pipe.c (open, close): Undefine.
18259         * lib/progreloc.c (open, close): Undefine.
18260         * lib/savedir.c (opendir, closedir): Undefine.
18261         * lib/utime.c (open, close): Undefine.
18262         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18263
18264 2007-01-10  Bruno Haible  <bruno@clisp.org>
18265
18266         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18267
18268 2007-01-12  Eric Blake  <ebb9@byu.net>
18269
18270         Provide a robust <wchar.h>.  Further simplifications are now
18271         possible in other modules, but not included here.
18272         * modules/wchar: New module.
18273         * m4/wchar.m4: New file.
18274         * lib/wchar_.h: Likewise.
18275         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18276         of the new module.
18277         * MODULES.html.sh (Extended multibyte and wide character utilities):
18278         New section.
18279
18280 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18281
18282         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18283         to a reasonable default for memory allocation.
18284         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18285         file system that reports garbage st_size values for symlinks.
18286         Problem reported by Liyang Hu.
18287
18288 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18289
18290         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18291         Emacs .#* auto-save files).
18292
18293 2007-01-11  Bruno Haible  <bruno@clisp.org>
18294
18295         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18296         directory.
18297
18298 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18299
18300         Use @...@ consistently in lib/wctype_.h.
18301         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18302         on it being set to 1 or 0.
18303         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18304         go back to AC_SUBSTing it.
18305         * modules/wctype (Makefile.am): Undo previous change.
18306
18307 2007-01-10  Eric Blake  <ebb9@byu.net>
18308
18309         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18310         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18311         * modules/wctype (Makefile.am): Likewise.
18312         Reported by Chris McGuire.
18313
18314 2007-01-10  Jim Meyering  <jim@meyering.net>
18315
18316         fts.c: a small readability/maintainability improvement
18317         * lib/fts.c (fts_read): Make this code slightly more readable and
18318         maintainable by hoisting the "sp->fts_cur = p" assignments to
18319         immediately follow the statements that set P.  Derived from
18320         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18321
18322 2007-01-10  Eric Blake  <ebb9@byu.net>
18323
18324         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18325         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18327         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18328         Reported by Chris McGuire.
18329
18330 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18331
18332         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18333         in sed script.
18334
18335 2007-01-09  Bruno Haible  <bruno@clisp.org>
18336
18337         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18338         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18339         variables.
18340         (func_module): Use them.
18341
18342 2007-01-09  Bruno Haible  <bruno@clisp.org>
18343
18344         * modules/unistr/base: New file.
18345         * lib/unistr.h: New file.
18346
18347         * modules/unistr/u8-to-u16: New file.
18348         * lib/unistr/u8-to-u16.c: New file.
18349
18350         * modules/unistr/u8-to-u32: New file.
18351         * lib/unistr/u8-to-u32.c: New file.
18352
18353         * modules/unistr/u16-to-u8: New file.
18354         * lib/unistr/u16-to-u8.c: New file.
18355
18356         * modules/unistr/u16-to-u32: New file.
18357         * lib/unistr/u16-to-u32.c: New file.
18358
18359         * modules/unistr/u32-to-u8: New file.
18360         * lib/unistr/u32-to-u8.c: New file.
18361
18362         * modules/unistr/u32-to-u16: New file.
18363         * lib/unistr/u32-to-u16.c: New file.
18364
18365         * modules/unistr/u8-check: New file.
18366         * modules/unistr/u16-check: New file.
18367         * modules/unistr/u32-check: New file.
18368         * lib/unistr/u8-check.c: New file.
18369         * lib/unistr/u16-check.c: New file.
18370         * lib/unistr/u32-check.c: New file.
18371
18372         * modules/unistr/u8-chr: New file.
18373         * modules/unistr/u16-chr: New file.
18374         * modules/unistr/u32-chr: New file.
18375         * lib/unistr/u8-chr.c: New file.
18376         * lib/unistr/u16-chr.c: New file.
18377         * lib/unistr/u32-chr.c: New file.
18378
18379         * modules/unistr/u8-cmp: New file.
18380         * modules/unistr/u16-cmp: New file.
18381         * modules/unistr/u32-cmp: New file.
18382         * lib/unistr/u8-cmp.c: New file.
18383         * lib/unistr/u16-cmp.c: New file.
18384         * lib/unistr/u32-cmp.c: New file.
18385
18386         * modules/unistr/u8-cpy: New file.
18387         * modules/unistr/u16-cpy: New file.
18388         * modules/unistr/u32-cpy: New file.
18389         * lib/unistr/u8-cpy.c: New file.
18390         * lib/unistr/u16-cpy.c: New file.
18391         * lib/unistr/u32-cpy.c: New file.
18392         * lib/unistr/u-cpy.h: New file.
18393
18394         * modules/unistr/u8-cpy-alloc: New file.
18395         * modules/unistr/u16-cpy-alloc: New file.
18396         * modules/unistr/u32-cpy-alloc: New file.
18397         * lib/unistr/u8-cpy-alloc.c: New file.
18398         * lib/unistr/u16-cpy-alloc.c: New file.
18399         * lib/unistr/u32-cpy-alloc.c: New file.
18400         * lib/unistr/u-cpy-alloc.h: New file.
18401
18402         * modules/unistr/u8-endswith: New file.
18403         * modules/unistr/u16-endswith: New file.
18404         * modules/unistr/u32-endswith: New file.
18405         * lib/unistr/u8-endswith.c: New file.
18406         * lib/unistr/u16-endswith.c: New file.
18407         * lib/unistr/u32-endswith.c: New file.
18408         * lib/unistr/u-endswith.h: New file.
18409
18410         * modules/unistr/u8-mblen: New file.
18411         * modules/unistr/u16-mblen: New file.
18412         * modules/unistr/u32-mblen: New file.
18413         * lib/unistr/u8-mblen.c: New file.
18414         * lib/unistr/u16-mblen.c: New file.
18415         * lib/unistr/u32-mblen.c: New file.
18416
18417         * modules/unistr/u8-mbtouc: New file.
18418         * modules/unistr/u16-mbtouc: New file.
18419         * modules/unistr/u32-mbtouc: New file.
18420         * lib/unistr/u8-mbtouc.c: New file.
18421         * lib/unistr/u16-mbtouc.c: New file.
18422         * lib/unistr/u32-mbtouc.c: New file.
18423
18424         * modules/unistr/u8-mbtouc-safe: New file.
18425         * modules/unistr/u16-mbtouc-safe: New file.
18426         * modules/unistr/u32-mbtouc-safe: New file.
18427         * lib/unistr/u8-mbtouc-safe.c: New file.
18428         * lib/unistr/u16-mbtouc-safe.c: New file.
18429         * lib/unistr/u32-mbtouc-safe.c: New file.
18430
18431         * modules/unistr/u8-move: New file.
18432         * modules/unistr/u16-move: New file.
18433         * modules/unistr/u32-move: New file.
18434         * lib/unistr/u8-move.c: New file.
18435         * lib/unistr/u16-move.c: New file.
18436         * lib/unistr/u32-move.c: New file.
18437         * lib/unistr/u-move.h: New file.
18438
18439         * modules/unistr/u8-next: New file.
18440         * modules/unistr/u16-next: New file.
18441         * modules/unistr/u32-next: New file.
18442         * lib/unistr/u8-next.c: New file.
18443         * lib/unistr/u16-next.c: New file.
18444         * lib/unistr/u32-next.c: New file.
18445
18446         * modules/unistr/u8-prev: New file.
18447         * modules/unistr/u16-prev: New file.
18448         * modules/unistr/u32-prev: New file.
18449         * lib/unistr/u8-prev.c: New file.
18450         * lib/unistr/u16-prev.c: New file.
18451         * lib/unistr/u32-prev.c: New file.
18452
18453         * modules/unistr/u8-set: New file.
18454         * modules/unistr/u16-set: New file.
18455         * modules/unistr/u32-set: New file.
18456         * lib/unistr/u8-set.c: New file.
18457         * lib/unistr/u16-set.c: New file.
18458         * lib/unistr/u32-set.c: New file.
18459         * lib/unistr/u-set.h: New file.
18460
18461         * modules/unistr/u8-startswith: New file.
18462         * modules/unistr/u16-startswith: New file.
18463         * modules/unistr/u32-startswith: New file.
18464         * lib/unistr/u8-startswith.c: New file.
18465         * lib/unistr/u16-startswith.c: New file.
18466         * lib/unistr/u32-startswith.c: New file.
18467         * lib/unistr/u-startswith.h: New file.
18468
18469         * modules/unistr/u8-stpcpy: New file.
18470         * modules/unistr/u16-stpcpy: New file.
18471         * modules/unistr/u32-stpcpy: New file.
18472         * lib/unistr/u8-stpcpy.c: New file.
18473         * lib/unistr/u16-stpcpy.c: New file.
18474         * lib/unistr/u32-stpcpy.c: New file.
18475         * lib/unistr/u-stpcpy.h: New file.
18476
18477         * modules/unistr/u8-stpncpy: New file.
18478         * modules/unistr/u16-stpncpy: New file.
18479         * modules/unistr/u32-stpncpy: New file.
18480         * lib/unistr/u8-stpncpy.c: New file.
18481         * lib/unistr/u16-stpncpy.c: New file.
18482         * lib/unistr/u32-stpncpy.c: New file.
18483         * lib/unistr/u-stpncpy.h: New file.
18484
18485         * modules/unistr/u8-strcat: New file.
18486         * modules/unistr/u16-strcat: New file.
18487         * modules/unistr/u32-strcat: New file.
18488         * lib/unistr/u8-strcat.c: New file.
18489         * lib/unistr/u16-strcat.c: New file.
18490         * lib/unistr/u32-strcat.c: New file.
18491         * lib/unistr/u-strcat.h: New file.
18492
18493         * modules/unistr/u8-strchr: New file.
18494         * modules/unistr/u16-strchr: New file.
18495         * modules/unistr/u32-strchr: New file.
18496         * lib/unistr/u8-strchr.c: New file.
18497         * lib/unistr/u16-strchr.c: New file.
18498         * lib/unistr/u32-strchr.c: New file.
18499
18500         * modules/unistr/u8-strcmp: New file.
18501         * modules/unistr/u16-strcmp: New file.
18502         * modules/unistr/u32-strcmp: New file.
18503         * lib/unistr/u8-strcmp.c: New file.
18504         * lib/unistr/u16-strcmp.c: New file.
18505         * lib/unistr/u32-strcmp.c: New file.
18506
18507         * modules/unistr/u8-strcpy: New file.
18508         * modules/unistr/u16-strcpy: New file.
18509         * modules/unistr/u32-strcpy: New file.
18510         * lib/unistr/u8-strcpy.c: New file.
18511         * lib/unistr/u16-strcpy.c: New file.
18512         * lib/unistr/u32-strcpy.c: New file.
18513         * lib/unistr/u-strcpy.h: New file.
18514
18515         * modules/unistr/u8-strcspn: New file.
18516         * modules/unistr/u16-strcspn: New file.
18517         * modules/unistr/u32-strcspn: New file.
18518         * lib/unistr/u8-strcspn.c: New file.
18519         * lib/unistr/u16-strcspn.c: New file.
18520         * lib/unistr/u32-strcspn.c: New file.
18521         * lib/unistr/u-strcspn.h: New file.
18522
18523         * modules/unistr/u8-strdup: New file.
18524         * modules/unistr/u16-strdup: New file.
18525         * modules/unistr/u32-strdup: New file.
18526         * lib/unistr/u8-strdup.c: New file.
18527         * lib/unistr/u16-strdup.c: New file.
18528         * lib/unistr/u32-strdup.c: New file.
18529         * lib/unistr/u-strdup.h: New file.
18530
18531         * modules/unistr/u8-strlen: New file.
18532         * modules/unistr/u16-strlen: New file.
18533         * modules/unistr/u32-strlen: New file.
18534         * lib/unistr/u8-strlen.c: New file.
18535         * lib/unistr/u16-strlen.c: New file.
18536         * lib/unistr/u32-strlen.c: New file.
18537         * lib/unistr/u-strlen.h: New file.
18538
18539         * modules/unistr/u8-strmblen: New file.
18540         * modules/unistr/u16-strmblen: New file.
18541         * modules/unistr/u32-strmblen: New file.
18542         * lib/unistr/u8-strmblen.c: New file.
18543         * lib/unistr/u16-strmblen.c: New file.
18544         * lib/unistr/u32-strmblen.c: New file.
18545
18546         * modules/unistr/u8-strmbtouc: New file.
18547         * modules/unistr/u16-strmbtouc: New file.
18548         * modules/unistr/u32-strmbtouc: New file.
18549         * lib/unistr/u8-strmbtouc.c: New file.
18550         * lib/unistr/u16-strmbtouc.c: New file.
18551         * lib/unistr/u32-strmbtouc.c: New file.
18552
18553         * modules/unistr/u8-strncat: New file.
18554         * modules/unistr/u16-strncat: New file.
18555         * modules/unistr/u32-strncat: New file.
18556         * lib/unistr/u8-strncat.c: New file.
18557         * lib/unistr/u16-strncat.c: New file.
18558         * lib/unistr/u32-strncat.c: New file.
18559         * lib/unistr/u-strncat.h: New file.
18560
18561         * modules/unistr/u8-strncmp: New file.
18562         * modules/unistr/u16-strncmp: New file.
18563         * modules/unistr/u32-strncmp: New file.
18564         * lib/unistr/u8-strncmp.c: New file.
18565         * lib/unistr/u16-strncmp.c: New file.
18566         * lib/unistr/u32-strncmp.c: New file.
18567
18568         * modules/unistr/u8-strncpy: New file.
18569         * modules/unistr/u16-strncpy: New file.
18570         * modules/unistr/u32-strncpy: New file.
18571         * lib/unistr/u8-strncpy.c: New file.
18572         * lib/unistr/u16-strncpy.c: New file.
18573         * lib/unistr/u32-strncpy.c: New file.
18574         * lib/unistr/u-strncpy.h: New file.
18575
18576         * modules/unistr/u8-strnlen: New file.
18577         * modules/unistr/u16-strnlen: New file.
18578         * modules/unistr/u32-strnlen: New file.
18579         * lib/unistr/u8-strnlen.c: New file.
18580         * lib/unistr/u16-strnlen.c: New file.
18581         * lib/unistr/u32-strnlen.c: New file.
18582         * lib/unistr/u-strnlen.h: New file.
18583
18584         * modules/unistr/u8-strpbrk: New file.
18585         * modules/unistr/u16-strpbrk: New file.
18586         * modules/unistr/u32-strpbrk: New file.
18587         * lib/unistr/u8-strpbrk.c: New file.
18588         * lib/unistr/u16-strpbrk.c: New file.
18589         * lib/unistr/u32-strpbrk.c: New file.
18590         * lib/unistr/u-strpbrk.h: New file.
18591
18592         * modules/unistr/u8-strrchr: New file.
18593         * modules/unistr/u16-strrchr: New file.
18594         * modules/unistr/u32-strrchr: New file.
18595         * lib/unistr/u8-strrchr.c: New file.
18596         * lib/unistr/u16-strrchr.c: New file.
18597         * lib/unistr/u32-strrchr.c: New file.
18598
18599         * modules/unistr/u8-strspn: New file.
18600         * modules/unistr/u16-strspn: New file.
18601         * modules/unistr/u32-strspn: New file.
18602         * lib/unistr/u8-strspn.c: New file.
18603         * lib/unistr/u16-strspn.c: New file.
18604         * lib/unistr/u32-strspn.c: New file.
18605         * lib/unistr/u-strspn.h: New file.
18606
18607         * modules/unistr/u8-strstr: New file.
18608         * modules/unistr/u16-strstr: New file.
18609         * modules/unistr/u32-strstr: New file.
18610         * lib/unistr/u8-strstr.c: New file.
18611         * lib/unistr/u16-strstr.c: New file.
18612         * lib/unistr/u32-strstr.c: New file.
18613         * lib/unistr/u-strstr.h: New file.
18614
18615         * modules/unistr/u8-strtok: New file.
18616         * modules/unistr/u16-strtok: New file.
18617         * modules/unistr/u32-strtok: New file.
18618         * lib/unistr/u8-strtok.c: New file.
18619         * lib/unistr/u16-strtok.c: New file.
18620         * lib/unistr/u32-strtok.c: New file.
18621         * lib/unistr/u-strtok.h: New file.
18622
18623         * modules/unistr/u8-uctomb: New file.
18624         * modules/unistr/u16-uctomb: New file.
18625         * modules/unistr/u32-uctomb: New file.
18626         * lib/unistr/u8-uctomb.c: New file.
18627         * lib/unistr/u16-uctomb.c: New file.
18628         * lib/unistr/u32-uctomb.c: New file.
18629
18630         * MODULES.html.sh (Unicode string functions): Add the new modules.
18631
18632 2007-01-08  Bruno Haible  <bruno@clisp.org>
18633
18634         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18635         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18636         subdirectories.
18637
18638 2007-01-08  Karl Berry  <karl@gnu.org>
18639
18640         * doc/error.texi: mention that main() fns must set program_name
18641         when progname is used.
18642
18643 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18644
18645         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18646         WCTYPE_H is empty, for the benefit of builds from non-distclean
18647         directories.  Problem reported by Eric Blake in
18648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18649
18650 2007-01-08  Bruno Haible  <bruno@clisp.org>
18651
18652         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18653         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18654         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18655         PROVIDE_CANONICALIZE_FILENAME_MODE.
18656         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18657
18658 2007-01-08  Bruno Haible  <bruno@clisp.org>
18659
18660         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18661         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18662         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18663         * lib/fts.c: Likewise.
18664         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18665
18666 2006-12-25  Bruno Haible  <bruno@clisp.org>
18667
18668         * modules/utf8-ucs4-safe: New file.
18669         * lib/utf8-ucs4-safe.h: New file.
18670         * lib/unistr/utf8-ucs4-safe.c: New file.
18671
18672         * modules/utf16-ucs4-safe: New file.
18673         * lib/utf16-ucs4-safe.h: New file.
18674         * lib/unistr/utf16-ucs4-safe.c: New file.
18675
18676         * MODULES.html.sh (Unicode string functions): Add the new modules.
18677
18678 2007-01-08  Bruno Haible  <bruno@clisp.org>
18679
18680         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18681         (Depends-on): Add unitypes.
18682         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18683         (u8_mbtouc_aux): Move out to separate file.
18684         (u8_mbtouc): Use ucs4_t, uint8_t types.
18685         * lib/unistr/utf8-ucs4.c: New file.
18686
18687         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18688         (Depends-on): Add unitypes.
18689         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18690         (u16_mbtouc_aux): Move out to separate file.
18691         (u16_mbtouc): Use ucs4_t, uint16_t types.
18692         * lib/unistr/utf16-ucs4.c: New file.
18693
18694         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18695         (Depends-on): Add unitypes.
18696         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18697         (u8_uctomb_aux): Move out to separate file.
18698         (u8_uctomb): Use ucs4_t, uint8_t types.
18699         * lib/unistr/ucs4-utf8.c: New file.
18700
18701         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18702         (Depends-on): Add unitypes.
18703         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18704         (u16_uctomb_aux): Move out to separate file.
18705         (u16_uctomb): Use ucs4_t, uint16_t types.
18706         * lib/unistr/ucs4-utf16.c: New file.
18707
18708 2006-12-25  Bruno Haible  <bruno@clisp.org>
18709
18710         * modules/unitypes: New file.
18711         * lib/unitypes.h: New file.
18712         * MODULES.html.sh (func_all_modules): New section "Unicode string
18713         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18714         this section. Add unitypes.
18715
18716 2007-01-08  Bruno Haible  <bruno@clisp.org>
18717
18718         Avoid variable names that conflict with those from libtool.
18719         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18720         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18721         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18722         library_names_spec to acl_library_names_spec, hardcode_* to
18723         acl_hardcode_*.
18724         Reported by Ralf Wildenhues.
18725
18726 2007-01-08  Bruno Haible  <bruno@clisp.org>
18727
18728         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18729         definition.
18730         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18731         definition.
18732         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18733         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18734         definition.
18735         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18736         definition.
18737         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18738         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18739         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18740         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18741         definition.
18742         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18743         definition.
18744         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18745         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18746         GC_USE_<algorithm>.
18747         * lib/gc-libgcrypt.c: Likewise.
18748         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18749         * modules/gc-arctwo (configure.ac): Likewise.
18750         * modules/gc-des (configure.ac): Likewise.
18751         * modules/gc-hmac-md5 (configure.ac): Likewise.
18752         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18753         * modules/gc-md2 (configure.ac): Likewise.
18754         * modules/gc-md4 (configure.ac): Likewise.
18755         * modules/gc-md5 (configure.ac): Likewise.
18756         * modules/gc-random (configure.ac): Likewise.
18757         * modules/gc-rijndael (configure.ac): Likewise.
18758         * modules/gc-sha1 (configure.ac): Likewise.
18759
18760 2007-01-08  Bruno Haible  <bruno@clisp.org>
18761
18762         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18763         macro definition.
18764         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18765         definition.
18766         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18767         definition.
18768         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18769         * modules/fcntl-safer (configure.ac): Likewise.
18770         * modules/fopen-safer (configure.ac): Likewise.
18771         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18772         GNULIB_FWRITEERROR macro definition.
18773
18774 2007-01-08  Bruno Haible  <bruno@clisp.org>
18775
18776         * m4/gnulib-common.m4: New file.
18777         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18778         (func_get_filelist): Add m4/gnulib-common.m4.
18779
18780 2007-01-08  Bruno Haible  <bruno@clisp.org>
18781
18782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18783         command.
18784
18785 2007-01-08  Jim Meyering  <jim@meyering.net>
18786
18787         Use a more robust test for a "can't happen" condition.
18788         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18789         narrowed the st_size value.  Presuming the "can't happen" condition
18790         is true, that narrowing could conceivably convert an invalid st_size
18791         value into a valid one.  Instead, use a change based on Matthew
18792         Woehlke's original patch.
18793
18794         Slight readability improvement: use an assert-like macro
18795         in place of literal "abort ()" uses.
18796         * lib/fts.c (fts_assert): Define.
18797         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18798         Use this macro instead of a bare 'abort'.
18799
18800 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18801
18802         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18803         simply work around them.
18804         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18805         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18806         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18807         declaring.
18808         Don't bother to define as macros, since the standard doesn't require it.
18809         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18810         longer worry about IRIX 5.3.
18811         (HAVE_WCTYPE_CTMP_BUG): Remove.
18812
18813 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18814
18815         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18816         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18817         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18818         Problems reported by Georg Schwarz for IRIX 5.3.
18819
18820         * gnulib-tool (autoconf_minversion): Take the maximum version number
18821         found, not the minimum.  Problem reported by James Youngman.
18822
18823 2007-01-03  Karl Berry  <karl@gnu.org>
18824
18825         * doc/error.texi: new file, explaining interaction with progname.
18826         * doc/gnulib.texi: include it.  Update copyright.
18827
18828 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18829
18830         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18831         AC_CANONICAL_HOST, to improve autobuild outputs.
18832
18833 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18834             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18835
18836         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18837         sockets, server sockets, and other file descriptors.  Count errors
18838         to compute the return value.  Reorder the code a bit to be easier
18839         to follow.  Don't set event bits that were not requested (except
18840         POLLERR and POLLHUP).
18841
18842 2007-01-01  Bruno Haible  <bruno@clisp.org>
18843
18844         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18845
18846 2007-01-03  Jim Meyering  <jim@meyering.net>
18847
18848         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18849
18850 2007-01-02  Bruno Haible  <bruno@clisp.org>
18851
18852         * modules/settime (Include): Require timespec.h.
18853         * modules/nanosleep (Include): Likewise.
18854
18855 2007-01-01  Bruno Haible  <bruno@clisp.org>
18856
18857         * gnulib-tool (func_emit_copyright_notice): Bump year.
18858         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18859
18860 2007-01-01  Bruno Haible  <bruno@clisp.org>
18861
18862         Improve support for OpenBSD.
18863         * build-aux/config.rpath (libname_spec): Export.
18864         (library_names_spec): New variable. Export.
18865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18866         library_names_spec from the config.rpath output. Locate shared library
18867         through the name pattern in library_names_spec.
18868
18869 2007-01-01  Eric Blake  <ebb9@byu.net>
18870
18871         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18872
18873 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18874
18875         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18876         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18877         assume the C locale, and avoid an "eval" that could cause trouble.
18878         Problem with SORT reported by Bob Proulx.
18879
18880         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18881         Define.  Trivial patch from Henning Nielsen Lund, originally
18882         sent to bug-grep@gnu.org today.
18883
18884 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18885
18886         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18887         struct stat.  Problem reported by Henning Nielsen Lund.
18888         * lib/acl.c: Include acl.h first, to check interface.  Don't
18889         bother to include sys/types.h and sys/stat.h again.
18890
18891 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         Import the following change from libc; problem reported by
18894         Sven Verdoolaege.
18895
18896         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18897
18898         [BZ #1373]
18899         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18900
18901 2006-12-28  Jim Meyering  <jim@meyering.net>
18902
18903         * build-aux/announce-gen: Do not assume that the package
18904         builds any of tar.gz, tar.bz2, and .xdelta files.
18905         Suggestion from Simon Josefsson.
18906
18907 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18908
18909         * modules/announce-gen: New file.
18910
18911 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18912
18913         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18914         handles its gotchas now.
18915         * lib/mbswidth.c: Likewise.
18916         * lib/wcwidth.h: Likewise.
18917         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18918         and iswcntrl; the wctype module does this stuff now.
18919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18921         * modules/mbchar (Depends-on): Add wctype.
18922         * modules/mbswidth (Depends-on): Likewise.
18923         * modules/wcwidth (Depends-on): Likewise.
18924
18925 2006-12-27  Eric Blake  <ebb9@byu.net>
18926
18927         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18928         module uses more than what <wctype.h> is required to provide.
18929
18930 2006-12-26  Eric Blake  <ebb9@byu.net>
18931
18932         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18933
18934 2006-12-26  Eric Blake  <ebb9@byu.net>
18935
18936         * modules/absolute-header: New module.
18937         * modules/fcntl (Depends-on): Depend on it.
18938         * modules/inttypes (Depends-on): Likewise.
18939         * modules/stdint (Depends-on): Likewise.
18940         * modules/sys_stat (Depends-on): Likewise.
18941         * modules/wctype (Depends-on): Likewise.
18942         * MODULES.html.sh (Support for building libraries and
18943         executables): Document it.
18944
18945 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18946
18947         * gnulib-tool (SED): Remove, undoing previous change.
18948         The problem was that it broke coreutils on Solaris, because
18949         "sed --posix" leaked into a makefile.
18950         (sed): New alias, if 'alias' and GNU sed.
18951
18952 2006-12-24  Jim Meyering  <jim@meyering.net>
18953
18954         Work around an fchownat bug in glibc-2.4:
18955         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18956         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18957         in spite of the -P option.
18958         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18959         New macros.
18960         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18961         * modules/openat (Files): Add lib/fchownat.c.
18962         * lib/openat.c (fchownat): Don't define here.  Move to...
18963         * lib/fchownat.c: ...this new file.
18964
18965 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18966
18967         Fix bug reported by Bruno Haible in
18968         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18969         where quotearg.c didn't compile on Mac OS X 10.2 because it
18970         lacks <wchar.h> and wint_t.
18971         * lib/wctype_.h (__wctype_wint_t): New type.
18972         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18973         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18974         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18975         Arg is now of type __wctype_wint_t, not wint_t.
18976         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18977         substitute HAVE_WINT_T.
18978         * modules/wctype (Files): Add m4/wint_t.m4.
18979         (wctype.h): Substitute HAVE_WINT_T.
18980
18981 2006-12-23  Bruno Haible  <bruno@clisp.org>
18982
18983         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18984
18985 2006-12-23  Bruno Haible  <bruno@clisp.org>
18986
18987         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18988         S_ISLNK.
18989         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18990         mingw.
18991
18992 2006-12-22  Bruno Haible  <bruno@clisp.org>
18993
18994         * lib/copy-file.c: Include acl.h.
18995         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18996         Close the file descriptors only after being done with copy_acl.
18997         * modules/copy-file (Depends-on): Add acl.
18998
18999 2006-12-22  Bruno Haible  <bruno@clisp.org>
19000
19001         * gnulib-tool (SED): New variable.
19002         Use $SED instead of sed everywhere.
19003
19004 2006-12-22  Bruno Haible  <bruno@clisp.org>
19005
19006         * modules/no-c++: New file.
19007         * m4/no-c++.m4: New file.
19008         * MODULES.html.sh (Support for building libraries and executables):
19009         Add no-c++.
19010
19011 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19012
19013         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19014         Include <limits.h>, and use its INT_MAX to rewrite the
19015         j loop so that it does not overflow 'int'.  Problem reported by
19016         Ralf Wildenhues in
19017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19018         Play it safe by shifting left by 1 rather than multiplying by 2,
19019         as GCC is less likely to optimize this away when the value
19020         is signed (when it assumes overflow leads to undefined behavior).
19021         Also, don't assume time_t uses two's complement.
19022
19023 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19024
19025         * MODULES.html.sh: New module wctype.
19026         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19027         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19028         <wctype.h>, since the new wctype module should fix this.
19029         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19030         the wctype module should arrange for it.
19031         * lib/regex_internal.h: Likewise.
19032         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19033         since the wctype module should handle this now.
19034         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19035         * modules/fnmatch (Depends-on): Add wctype.
19036         * modules/quotearg (Depends-on): Likewise.
19037         * modules/regex (Depends-on): Likewise.
19038
19039 2006-12-19  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19042         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19043
19044 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19045
19046         * modules/savewd (Depends-on): Fix dependency on fcntl.
19047
19048 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19049
19050         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19051         conforms to C99, rather than relying on the user's environment
19052         setting of STDINT_H.
19053
19054 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19055         and Eric Blake  <ebb9@byu.net>
19056
19057         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
19058         This is more consistent with the other defines here.
19059         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
19060         Port to z/OS.  Problem reported by Paul Gilmartin.
19061         Change local vars to use gl_ prefix rather than ac_.
19062         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
19063         with other defines.
19064         * modules/double-slash-root: New module.
19065         * modules/dirname (Files): Remove m4/double-slash-root.m4.
19066         (Depends-on): Add double-slash-root.
19067         * MODULES.html.sh (File system functions): Mention new module.
19068
19069 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
19072         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
19073         This is for the benefit of gzip, which doesn't do i18n.
19074
19075 2006-12-12  Jim Meyering  <jim@meyering.net>
19076
19077         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19078         Reported by Andreas Schwab <schwab@suse.de>.
19079
19080 2006-12-12  Bruno Haible  <bruno@clisp.org>
19081
19082         Merge these changes.
19083         2006-09-05  Bruno Haible  <bruno@clisp.org>
19084         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19085         iconv_alloc succeeded.
19086         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19087         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19088         test for " && dest " at the end - dest is always != NULL there. Call
19089         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19090         with 2xNULL arguments, also to flush the state storage. Handle the
19091         IRIX iconv behaviour. Realloc the final result, to throw away unused
19092         memory.
19093
19094 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19097         and fchmodat unconditionally, since glibc 2.4 has them.
19098         Problem reported by Arkadiusz Miskiewicz.
19099
19100 2006-12-10  Bruno Haible  <bruno@clisp.org>
19101
19102         * gnulib-tool (func_import): Show the include files only for those
19103         modules that are copied and specified.
19104         Reported by Karl Berry.
19105
19106 2006-12-08  Jim Meyering  <jim@meyering.net>
19107
19108         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19109         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19110
19111         * build-aux/announce-gen: Add two new options, both optional:
19112         --bootstrap-tools=TOOL_LIST
19113               a comma-separated list of tools, e.g.,
19114               autoconf,automake,bison,gnulib
19115         --gnulib-snapshot-date=DATE
19116               if gnulib is in the bootstrap tool list,
19117               then report this as the snapshot date.
19118               If not specified, use the current date/time.
19119               If you specify a date here, be sure it's UTC.
19120
19121 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19122
19123         * tests/test-argp-2.sh: Fix test to match actual output.
19124         (func_compare): Fix sed script to be portable.
19125
19126 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19127
19128         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19129         workaround for this case.  It is not autoconfigured now; offhand
19130         it's hard to see how to autoconfigure it.
19131
19132 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19133
19134         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19135         a directory that is about to be chowned.  Such a directory's
19136         initial file permissions should permit the owner only and this
19137         should not be changed until after the chown, since the group and
19138         other bits would be incorrect if they granted permission before
19139         the chown.
19140
19141         Fix porting problem for iswctype reported by Georg Schwarz in:
19142         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19143         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19144         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19145         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19147
19148 2006-12-03  Jim Meyering  <jim@meyering.net>
19149
19150         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19151         p->fts_statp may not yet be defined.
19152         (fts_read): Instead, set it in the caller, once p->fts_statp is
19153         sure to be defined, and corresponds to a top-level directory.
19154         This bug made du -x fail.  Here's the coreutils test case:
19155         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19156         Reported by Mike Frysinger.
19157
19158 2006-12-01  Jim Meyering  <jim@meyering.net>
19159
19160         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19161         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19162         Reported by Simon Josefsson.
19163
19164 2006-11-30  Jim Meyering  <jim@meyering.net>
19165
19166         * m4/warning.m4: Use the all-permissive copyright notice
19167         recommended by RMS (rather than LGPL).
19168         * m4/vararrays.m4: Likewise.
19169         * m4/flexmember.m4: Likewise.
19170
19171 2006-11-29  Bruno Haible  <bruno@clisp.org>
19172
19173         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19174         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19175         using +=.
19176         Reported by Simon Josefsson <simon@josefsson.org>.
19177
19178 2006-11-28  James Youngman <jay@gnu.org>
19179
19180         * README: Advise users that they might find the bug-gnulib@gnu.org
19181         and autotools-announce@gnu.org mailing lists useful.
19182
19183 2006-11-28  Bruno Haible  <bruno@clisp.org>
19184
19185         * m4/ptrdiff_max.m4: Remove file.
19186
19187 2006-11-21  Bruno Haible  <bruno@clisp.org>
19188
19189         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19190         _AC_COMPUTE_INT.
19191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19192         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19193         _AC_COMPUTE_INT.
19194         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19195         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19196         _AC_COMPUTE_INT.
19197         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19198
19199 2006-11-28  Jim Meyering  <jim@meyering.net>
19200
19201         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19202         warning from "gcc -Wshadow" about shadowing the builtin.
19203
19204 2006-11-27  Bruno Haible  <bruno@clisp.org>
19205
19206         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19207         _AC_COMPUTE_INT.
19208         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19209
19210 2006-11-27  Bruno Haible  <bruno@clisp.org>
19211             Paul Eggert  <eggert@cs.ucla.edu>
19212
19213         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19214
19215 2006-11-26  Bruno Haible  <bruno@clisp.org>
19216
19217         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19218         noinst_LTLIBRARIES.
19219
19220 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19221             Bruno Haible  <bruno@clisp.org>
19222
19223         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19224         if compiling with "gcc -ansi".
19225
19226 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19227
19228         Fix some incompatibilities with gcc -ansi -pedantic.
19229         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19230         if compiling pedantically with GCC, unless it's C99 or later.
19231         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19232         it mishandles gcc -ansi -pedantic as well.
19233         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19234         if gcc -pedantic.
19235         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19236         initializers for struct if -pedantic, unless it's C99 or later.
19237
19238 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19239
19240         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19241         Don't close an fd more than once. Identical atimes indicate
19242         success, not failure.
19243
19244 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19245
19246         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19247
19248 2006-11-23  Jim Meyering  <jim@meyering.net>
19249
19250         * build-aux/announce-gen: New file.  From coreutils.
19251
19252 2006-11-22  Jim Meyering  <jim@meyering.net>
19253
19254         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19255         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19256         (fts_read): Use a temporary to narrow the overused st_size member
19257         before using it in a switch statement.  Reported by Matthew Woehlke.
19258
19259         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19261
19262 2006-11-20  Bruno Haible  <bruno@clisp.org>
19263
19264         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19265         changequote instead of pairs of brackets.
19266         Reported by Andreas Schwab <schwab@suse.de>.
19267
19268 2006-11-21  Jim Meyering  <jim@meyering.net>
19269
19270         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19271         so as to remain compatible with older compilers.
19272         Patch from Michael Deutschmann.
19273
19274 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19275
19276         * MODULES.html.sh (File system functions): Add openat.
19277
19278         * lib/openat.h (rpl_fstatat): New macro, if
19279         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19280         (fstatat): Define to rpl_fstatat under the same conditions,
19281         unless COMPILING_FSTATAT.
19282         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19283         seems to have the bug.
19284         * lib/fstatat.c: New file.
19285         * modules/openat (Files): Add it.
19286
19287 2006-11-20  Bruno Haible  <bruno@clisp.org>
19288
19289         * Makefile: New file.
19290
19291 2006-11-20  Jim Meyering  <jim@meyering.net>
19292
19293         The beginnings of syntax-related checks for gnulib.
19294         * lib/Makefile: New file.
19295         * lib/t-idcache: New script.  Ensure that the two halves of
19296         idcache.c stay in sync.
19297
19298         * lib/idcache.c: Adjust comments in user- and group- portions to
19299         be more accurate, and to be consistent with one another.
19300
19301 2006-11-20  Jim Meyering  <jim@meyering.net>
19302
19303         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19304         continue using the flexible array member (thus, this module performs
19305         half as many malloc calls), with the addition that...
19306         (getgroup, getuser): Consistently record a non-match via an empty
19307         "name" string, and map an empty string match to a NULL return value.
19308         * modules/idcache (Depends-on): Re-add flexmember.
19309
19310         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19311         (getuidbyname, getgroup, getgidbyname): Likewise.
19312
19313         Use cleaner syntax: NULL rather than 0.
19314         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19315
19316 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19317
19318         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19319         It mishandled the case where the group was missing.
19320         Problem reported by Greg Schafer.
19321         * modules/idcache: Likewise.
19322
19323 2006-11-18  Jim Meyering  <jim@meyering.net>
19324
19325         * check-module (%exempt_header): Add exception for some
19326         conditionally-included headers.
19327
19328         * modules/i-ring (Depends-on): Add verify.
19329         (License): Change to LGPL.
19330
19331 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19332
19333         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19334         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19335         and inttostr.h.  Use snprintf rather than uinttostr, so that
19336         LGPLed code doesn't depend on GPLed.
19337
19338 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19339
19340         * modules/inline (License): Change from GPL to LGPL.
19341
19342 2006-11-17  Jim Meyering  <jim@meyering.net>
19343
19344         * modules/d-type (License): Switch to LGPL.
19345
19346 2006-11-15  Bruno Haible  <bruno@clisp.org>
19347
19348         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19349
19350 2006-11-15  Eric Blake  <ebb9@byu.net>
19351
19352         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19353         the module dependency.
19354
19355 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19356             Bruno Haible  <bruno@clisp.org>
19357
19358         * gnulib-tool (func_create_testdir): Add license consistency check.
19359
19360 2006-11-15  Eric Blake  <ebb9@byu.net>
19361
19362         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19363         random "(cached)" in configure output.
19364
19365 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19366
19367         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19368         test for conforming inttypes.h is both announced and cached.
19369
19370         * MODULES.html.sh (seen_modules, seen_files): New variables.
19371         (func_module): Rewrite to use a few less gnulib-tool and sed
19372         invocations.  Avoid a couple of quadratic algorithms for ...
19373         (missed_modules, missed_files): ... these, with ...
19374         (func_append, func_tmpdir): ... these new functions, from
19375         gnulib-tool.  Analogously, install traps for cleanup.
19376
19377         * tests/test-gc.c (main): Remove unused variables.
19378         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19379
19380 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19381
19382         * modules/inttostr (License): Change to LGPL.
19383
19384 2006-11-14  Eric Blake  <ebb9@byu.net>
19385
19386         * modules/tempname (License): Change to LGPL.
19387
19388 2006-11-14  Eric Blake  <ebb9@byu.net>
19389
19390         * doc/functions.texi (Function Portability): *printf functions on
19391         Cygwin now understand all POSIX size specifiers.
19392
19393 2006-11-14  Bruno Haible  <bruno@clisp.org>
19394
19395         * modules/c-ctype (License): Change to LGPL.
19396
19397 2006-11-12  Bruno Haible  <bruno@clisp.org>
19398
19399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19400         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19401         for GNOME libraries, for which the include files are installed in
19402         subdirectories of $prefix/include.
19403
19404 2006-11-12  Bruno Haible  <bruno@clisp.org>
19405
19406         * m4/lib-link.m4: Require at least autoconf-2.54.
19407         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19408         name to underscores for the --with option.
19409
19410 2006-11-13  Bruno Haible  <bruno@clisp.org>
19411
19412         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19413         the tests directory.
19414         Reported by Ralf Wildenhues.
19415
19416 2006-11-13  Bruno Haible  <bruno@clisp.org>
19417
19418         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19419         (func_emit_initmacro_end): Undo the override here.
19420         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19421         Works around the famous automake error in coreutils.
19422
19423 2006-11-13  Eric Blake  <ebb9@byu.net>
19424
19425         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19426         element, not its node.
19427
19428 2006-11-12  Bruno Haible  <bruno@clisp.org>
19429
19430         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19431         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19432
19433 2006-11-12  Bruno Haible  <bruno@clisp.org>
19434
19435         * gnulib-tool: New option --local-symlink.
19436         (func_usage): Document it.
19437         (lsymbolic): New variable.
19438         (func_import, func_create_testdir): If --symlink was not specified,
19439         test whether --local-symlink was specified and the file comes from
19440         the local_gnulib_dir.
19441
19442 2006-11-12  Bruno Haible  <bruno@clisp.org>
19443
19444         * gnulib-tool (func_ln): New function.
19445         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19446
19447 2006-11-12  Bruno Haible  <bruno@clisp.org>
19448
19449         Finish support for source files in subdirectories.
19450         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19451         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19452         AUTOMAKE_OPTIONS.
19453         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19454
19455 2006-11-12  Bruno Haible  <bruno@clisp.org>
19456
19457         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19458         EXTRA_lib_SOURCES augmentation.
19459         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19460
19461 2006-11-12  Jim Meyering  <jim@meyering.net>
19462
19463         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19464         file descriptors.  This also averts a failure on systems with
19465         native openat support when a traversed directory lacks "x" access.
19466         * lib/fts_.h: Include "i-ring.h"
19467         (struct FTS) [fts_fd_ring]: New member.
19468         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19469         (FCHDIR): Add parentheses.
19470         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19471         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19472         When descending, rather than simply closing the previous
19473         fts_cwd_fd value, push that file descriptor onto the ring.
19474         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19475         (fts_open): Initialize the new fd_ring member.
19476         (fts_close): Clear the ring.
19477         (fts_safe_changedir): When possible, use our new fd_ring to skip
19478         the diropen and fstat and dev/ino comparison that would normally
19479         accompany a virtual `chdir ("..")'.
19480
19481         * modules/fts (Depends-on): Add i-ring.
19482         * modules/i-ring: New module.
19483         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19484         * m4/i-ring.m4: New file.
19485
19486 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19487
19488         * gnulib-tool (func_create_testdir): Fix replacement of
19489         `build-aux' in configure.ac.  Run autotools in gltests
19490         subdirectory.
19491         (func_create_testdir, func_create_megatestdir, test): There is
19492         no need for '--force' in most autotool invocations in a new
19493         tree.  Actually fail the whole test if any of the tools, or the
19494         configure or make stages fail.
19495
19496         Sync from Automake.
19497         * build-aux/gnupload: Revert last change.  Add pointer to upload
19498         instructions of the GNU Maintenance Instructions.
19499         Suggestion by Karl Berry.
19500
19501 2006-11-10  Jim Meyering  <jim@meyering.net>
19502
19503         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19504
19505 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19508         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19509         (bind_textdomain_codeset) [! ENABLE_NLS]:
19510         Evaluate all the arguments.  That way, callers get compatible behavior
19511         if the arguments have side effects.  Also, it avoids some GCC
19512         diagnostics in some cases; Joel E. Denny reported problems when Bison
19513         was configured with --enable-gcc-warnigs.
19514
19515 2006-11-10  Jim Meyering  <jim@meyering.net>
19516
19517         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19518         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19519         account.
19520
19521 2006-11-10  Jim Meyering  <jim@meyering.net>
19522
19523         * modules/inline: New file/module.
19524         * modules/xalloc (Files): Remove m4/inline.m4.
19525         (Depends-on): Add inline, instead.
19526         * modules/oset: Likewise.
19527         * modules/list: Likewise.
19528
19529 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19530
19531         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19532         Problem reported by Matthew Woehlke.
19533
19534 2006-11-09  Bruno Haible  <bruno@clisp.org>
19535
19536         * lib/tempname.c (gen_tempname): Remove variant that invokes
19537         __gen_tempname.
19538         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19539         __gen_tempname.
19540
19541 2006-11-08  Bruno Haible  <bruno@clisp.org>
19542
19543         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19544         to 'yes' instead of 'cross-compiling'.
19545
19546 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19547
19548         * lib/quotearg.h (quotearg_free): New decl.
19549         * lib/quotearg.c (quotearg_free): New function.
19550         (slot0, nslots, slotvec0, slotvec):
19551         Now file-scope so that quotearg_free can get at them.
19552
19553 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19554
19555         Sync from Automake.
19556         * build-aux/gnupload: Add missing 'gnu' to example URL.
19557         Report by Karl Berry.
19558
19559 2006-11-08  Bruno Haible  <bruno@clisp.org>
19560
19561         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19562         Suggested by Paul Eggert.
19563
19564 2006-11-08  Jim Meyering  <jim@meyering.net>
19565
19566         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19567         It's already included if !_LIBC.
19568         (fts_safe_changedir): Add a comment.
19569
19570 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19571
19572         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19573         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19574         Matthew Woehlke.
19575
19576         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19577         definitions up, to avoid colliding with change below.
19578         (static_inline) [HAVE_INLINE]: New macro.
19579         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19580         Provide extern decls when !HAVE_INLINE.  Do not define unless
19581         static_inline is defined, either by us or by xmalloc.c.  Use
19582         static_inline rather than static inline.
19583         (XCALLOC): Optimize sizeof(T) = 1 case.
19584         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19585
19586 2006-11-07  Bruno Haible  <bruno@clisp.org>
19587
19588         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19589         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19590         AC_C_INLINE.
19591         * modules/xalloc (Files): Add m4/inline.m4.
19592
19593 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19594
19595         * README: Fix typo.
19596         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19597         (Miscellanous Notes): ...from this.
19598
19599 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19600
19601         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19602         Mention that offsetof should be used instead of sizeof.
19603         From Bruno Haible.
19604
19605 2006-11-07  Bruno Haible  <bruno@clisp.org>
19606
19607         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19608
19609 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19610
19611         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19612         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19613         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19614         (gl_tree_add_before, gl_tree_add_after):
19615         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19616         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19617         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19618         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19619         (gl_linked_add_after, gl_linked_add_at): Likewise.
19620         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19621         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19622         (gl_tree_add_before, gl_tree_add_after): Likewise.
19623         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19624         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19625         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19626
19627 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19628
19629         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19630
19631 2006-11-06  Bruno Haible  <bruno@clisp.org>
19632
19633         * m4/inline.m4: New file.
19634         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19635         * modules/list (Files): Add m4/inline.m4.
19636         * modules/oset (Files): Likewise.
19637
19638 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19639
19640         * lib/idcache.c: Include <stddef.h>, for offsetof.
19641         (struct userid.name): Change from char * to a flexible array member.
19642         All uses changed.
19643         * modules/idcache (Depends-on): Add flexmember.
19644
19645         * MODULES.html.sh (Core language properties): New module flexmember.
19646         * modules/flexmember, m4/flexmember.m4: New files.
19647
19648         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19649         inline functions that are identical with the old xnmalloc_inline,
19650         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19651         that we can avoid some unnecessary integer multiplications and
19652         divisions in the common case where the element size is known at
19653         compile time.
19654         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19655         needed.
19656         (xnboundedmalloc): Remove.
19657         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19658         arguments, for consistency with rest of this header.
19659         (xcharalloc): Rewrite using XNMALLOC.
19660         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19661         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19662         versions have been moved to lib/xalloc.h and renamed to be the
19663         non-*_inline versions.
19664         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19665         and xnrealloc functions, since those functions are now inline and
19666         now call us.
19667         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19668         renaming described above.
19669         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19670         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19671         captures the dependency in AC_C_INLINE.
19672
19673         New module canonicalize-lgpl, proposed by Charles Wilson in
19674         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19675         with a few small changes afterwards.
19676         * MODULES.html.sh (File system functions): New module
19677         canonicalize-lgpl.
19678         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19679         and canonicalize_file_name.
19680         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19681         * modules/canonicalize-lgpl: New files.
19682
19683 2006-11-05  Bruno Haible  <bruno@clisp.org>
19684
19685         * gnulib-tool (func_import, func_create_testdir): Create directories
19686         also for files in subdirectories of lib/.
19687
19688 2006-11-05  Bruno Haible  <bruno@clisp.org>
19689
19690         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19691         ANSI C compliant.
19692
19693 2006-11-03  Bruno Haible  <bruno@clisp.org>
19694
19695         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19696         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19697         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19698         (xnboundedmalloc): New inline function.
19699         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19700         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19701         xmalloc.
19702         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19703         xmalloc.
19704         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19705         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19706         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19707         xmalloc.
19708         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19709         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19710         xmalloc.
19711         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19712         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19713         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19714         xmalloc.
19715         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19716         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19717         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19718         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19719         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19720         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19721         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19722
19723 2006-11-03  Bruno Haible  <bruno@clisp.org>
19724
19725         * lib/c-ctype.h [C++]: Define functions without name mangling.
19726         * lib/fwriteerror.h [C++]: Likewise.
19727         * lib/gcd.h [C++]: Likewise.
19728         * lib/linebreak.h [C++]: Likewise.
19729
19730 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19731
19732         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19733         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19734         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19735         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19736         Check for functions and headers just once.
19737         Check for declaration of canonicalize_file_name.
19738         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19739
19740 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19741
19742         * gnulib-tool (func_import): Fix typo in actioncmd.
19743
19744 2006-11-02  Bruno Haible  <bruno@clisp.org>
19745
19746         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19747         newline sequence in the Makefile.am snippet as a space, like "make"
19748         does.
19749         Reported by Roger Persson <perrog@gmail.com>.
19750
19751 2006-11-01  Bruno Haible  <bruno@clisp.org>
19752
19753         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19754         already declared in <string.h>.
19755         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19756
19757 2006-11-01  Bruno Haible  <bruno@clisp.org>
19758
19759         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19760         * lib/strcase.h: Include <string.h>.
19761         (strcasecmp): Define to rpl_strcasecmp here.
19762
19763 2006-11-01  Bruno Haible  <bruno@clisp.org>
19764
19765         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19766
19767 2006-11-01  Eric Blake  <ebb9@byu.net>
19768
19769         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19770
19771         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19772
19773 2006-10-29  Bruno Haible  <bruno@clisp.org>
19774
19775         Make it compile in C++ mode.
19776         * lib/full-write.c (full_rw): Add a cast.
19777
19778 2006-11-01  Bruno Haible  <bruno@clisp.org>
19779
19780         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19781         be POSIX compliant.
19782         Reported by Roger Persson <perrog@gmail.com>.
19783
19784 2006-11-01  Eric Blake  <ebb9@byu.net>
19785
19786         * lib/getopt_.h: Fix comments.
19787
19788 2006-10-31  Eric Blake  <ebb9@byu.net>
19789
19790         * modules/tmpdir (Depends-on): Add sys_stat.
19791         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19792         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19793         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19794         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19795         tempname.
19796
19797 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19798
19799         Avoid some C++ diagnostics reported by Bruno Haible.
19800         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19801         xmalloc.
19802         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19803         (struct slotvec): Move to top level.
19804         (quotearg_n_options): Rewrite to avoid xmalloc.
19805         * lib/xalloc.h (xcharalloc): New function.
19806         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19807         [defined __cplusplus]: Add function template that provides result
19808         type propagation.  This part of the change is from Bruno Haible.
19809
19810 2006-10-29  Bruno Haible  <bruno@clisp.org>
19811
19812         Make it compile in C++ mode.
19813         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19814         * lib/strnlen1.c (strnlen1): Cast memchr result.
19815         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19816         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19817         (create_temp_dir): Rename local variable 'template'.
19818         (compile_csharp_using_sscli): Add cast.
19819         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19820         * lib/findprog.c (find_in_path): Likewise.
19821         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19822         * lib/wait-process.c (register_slave_subprocess): Likewise.
19823
19824 2006-10-22  Bruno Haible  <bruno@clisp.org>
19825
19826         * modules/tsearch: New file.
19827         * lib/tsearch.h: New file.
19828         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19829         * m4/tsearch.m4: New file.
19830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19831
19832 2006-10-29  Eric Blake  <ebb9@byu.net>
19833
19834         * lib/arcfour.c: Assume config.h.
19835         * lib/arctwo.c: Likewise.
19836         * lib/base64.c: Likewise.
19837         * lib/check-version.c: Likewise.
19838         * lib/crc.c: Likewise.
19839         * lib/des.c: Likewise.
19840         * lib/gc-gnulib.c: Likewise.
19841         * lib/gc-libgcrypt.c: Likewise.
19842         * lib/gc-pbkdf2-sha1.c: Likewise.
19843         * lib/getaddrinfo.c: Likewise.
19844         * lib/getdelim.c: Likewise.
19845         * lib/getline.c: Likewise.
19846         * lib/hmac-md5.c: Likewise.
19847         * lib/hmac-sha1.c: Likewise.
19848         * lib/iconvme.c: Likewise.
19849         * lib/md2.c: Likewise.
19850         * lib/md4.c: Likewise.
19851         * lib/memxor.c: Likewise.
19852         * lib/read-file.c: Likewise.
19853         * lib/readline.c: Likewise.
19854         * lib/rijndael-alg-fst.c: Likewise.
19855         * lib/rijndael-api-fst.c: Likewise.
19856         * lib/xgetdomainname.c: Likewise.
19857
19858 2006-10-28  Eric Blake  <ebb9@byu.net>
19859
19860         * lib/xstrndup.c: Assume config.h.
19861
19862 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19863
19864         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19865         stat-macros.h is now for our own macros, whereas stat_h is for
19866         macros in the <sys/stat.h> name space.
19867         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19868         (STAT_MACROS_H): Remove.
19869         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19870         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19871         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19872         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19873         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19874         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19875         Move these macros to ...
19876         * lib/stat_.h: here.  Don't include stat-macros.h.
19877         * lib/canonicalize.c: Don't include stat-macros.h.
19878         * lib/chown.c: Likewise.
19879         * lib/euidaccess.c: Likewise.
19880         * lib/file-type.c: Likewise.
19881         * lib/filemode.c: Likewise.
19882         * lib/glob.c: Likewise.
19883         * lib/isapipe.c: Likewise.
19884         * lib/lchown.c: Likewise.
19885         * lib/lstat.c: Likewise.
19886         * lib/mkdir-p.c: Likewise.
19887         * lib/rmdir.c: Likewise.
19888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19890         unless mkdir isn't declared, to speed up 'configure'.
19891         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19892         would define all the S_* symbols.
19893         * modules/canonicalize (Depends-on):
19894         Depend on sys_stat, not stat-macros.
19895         * modules/chown: Likewise.
19896         * modules/euidaccess: Likewise.
19897         * modules/filemode: Likewise.
19898         * modules/file-type: Likewise.
19899         * modules/glob: Likewise.
19900         * modules/isapipe: Likewise.
19901         * modules/lchown: Likewise.
19902         * modules/lstat: Likewise.
19903         * modules/mkancesdirs: Likewise.
19904         * modules/rmdir: Likewise.
19905         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19906         * modules/modechange: Likewise.
19907         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19908         (configure.ac): Remove gl_STAT_MACROS.
19909         * modules/sys_stat (Depends-on): Remove stat-macros.
19910
19911 2006-10-27  Bruno Haible  <bruno@clisp.org>
19912
19913         * m4/signed.m4: Remove file.
19914         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19915         invocation.
19916         * modules/vasnprintf (Files): Remove m4/signed.m4.
19917
19918 2006-10-27  Bruno Haible  <bruno@clisp.org>
19919
19920         Update to GNU gettext 0.16.
19921         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19922         m4/inttypes-h.m4, m4/signed.m4.
19923         * m4/gettext.m4: Update to GNU gettext 0.16.
19924         * m4/intl.m4: New file, from GNU gettext.
19925         * m4/intldir.m4: New file, from GNU gettext.
19926         * config/srclist.txt: Update
19927
19928 2006-10-27  Eric Blake  <ebb9@byu.net>
19929
19930         * MODULES.html.sh: Document tempname.
19931         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19932         dependencies.
19933         (Files): Move lib/tempname.c...
19934         * modules/tempname: ...to this new module.
19935         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19936         (gl_PREREQ_TEMPNAME): Move...
19937         * m4/tempname.m4: ...to this new file.
19938         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19939         * modules/sys_stat (Depends-on): Add stat-macros.
19940         * lib/stat_.h (includes): Pick up stat macros.
19941         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19942         if stat macros are broken.
19943         * lib/tempname.c (includes): No need to include "stat-macros.h".
19944         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19945         (direxists, __path_search) [!_LIBC]: Don't compile these in
19946         gnulib; the tmpdir module covers that.
19947         * lib/tempname.h: New file.
19948
19949 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         * COPYING: Explain how gnulib-tool converts licence headers.
19952         Almost all wording by Eric Blake.
19953
19954 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19955
19956         * lib/mbchar.h (is_basic_table): Make read-only.
19957         * lib/mbchar.c (is_basic_table): Likewise.
19958         Reported by John Darrington.
19959
19960 2006-10-25  Bruno Haible  <bruno@clisp.org>
19961
19962         * lib/progname.h (set_program_name): Undefine before defining.
19963
19964 2006-10-25  Bruno Haible  <bruno@clisp.org>
19965
19966         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19967         false for non-gcc C++ compilers.
19968         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19969
19970 2006-10-24  Bruno Haible  <bruno@clisp.org>
19971
19972         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19973         iconv implementations like Irix iconv.
19974
19975 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         * modules/vararrays: New file.
19978         * m4/vararrays.m4: New file, taken from diffutils.
19979         * MODULES.html.sh: New module vararrays.
19980
19981 2006-10-24  Karl Berry  <karl@gnu.org>
19982
19983         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19984         Don't call GNU Unix.
19985
19986 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19987
19988         * users.txt: Add Libtool.
19989
19990         Sync from Libtool:
19991
19992         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19995         to gnulib's policy of including config.h unconditionally.
19996
19997 2006-10-24  Bruno Haible  <bruno@clisp.org>
19998
19999         * modules/wcwidth (Files): Add m4/wint_t.m4.
20000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20001         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20002
20003 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20004
20005         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20006         to pacify GCC with some -W flags enabled.  Problem reported by
20007         Bruno Haible.
20008
20009 2006-10-24  Jim Meyering  <jim@meyering.net>
20010
20011         * MODULES.html.sh: Remove uinttostr.  It's not a module.
20012         Reported by Karl Berry.
20013
20014 2006-10-23  Bruno Haible  <bruno@clisp.org>
20015
20016         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20017
20018 2006-10-24  Bruno Haible  <bruno@clisp.org>
20019
20020         * lib/gl_list.h: Use C comment style, not C++ comment style.
20021
20022 2006-10-23  Eric Blake  <ebb9@byu.net>
20023
20024         * lib/getaddrinfo.c (includes): Add missing include.
20025
20026 2006-10-23  Bruno Haible  <bruno@clisp.org>
20027             Paul Eggert  <eggert@cs.ucla.edu>
20028
20029         Ability to rename obstack_free.
20030         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20031         obstack_free.
20032         (obstack_free): Invoke the __obstack_free macro.
20033         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20034
20035 2006-10-23  Bruno Haible  <bruno@clisp.org>
20036             Paul Eggert  <eggert@cs.ucla.edu>
20037
20038         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20039         __argc, __argv from the declaration. (They are defined as macros on
20040         mingw.)
20041
20042 2006-10-22  Bruno Haible  <bruno@clisp.org>
20043
20044         * doc/gnulib-intro.texi: New file.
20045         * doc/gnulib.texi: Include it.
20046
20047 2006-10-21  Bruno Haible  <bruno@clisp.org>
20048
20049         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20050         "Introduction", "Miscellanous Notes", "Particular Modules".
20051
20052 2006-10-21  Bruno Haible  <bruno@clisp.org>
20053
20054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20055         Change mostlyclean-local rule to avoid sh syntax error from bash
20056         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
20057
20058 2006-10-23  Jim Meyering  <jim@meyering.net>
20059
20060         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
20061         in place of snprintf.
20062
20063         * modules/inttostr (Files): Add lib/uinttostr.c.
20064         * lib/uinttostr.c (inttostr): New file/function.
20065         * lib/inttostr.h (uinttostr): Declare.
20066         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
20067         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20068         Add uinttostr.
20069         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
20070
20071 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20072
20073         * lib/canonicalize.c (ELOOP): Define if not already defined.
20074         Problem reported by Bruno Haible in
20075         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20076
20077 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20078
20079         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20080         Problem reported by Perry Smith and Ville Laurikari.
20081
20082         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20083         uses.
20084
20085 2006-10-19  Bruno Haible  <bruno@clisp.org>
20086
20087         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20088         for mingw.
20089
20090 2006-10-19  Bruno Haible  <bruno@clisp.org>
20091
20092         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20093         Needed for mingw.
20094
20095 2006-10-19  Bruno Haible  <bruno@clisp.org>
20096
20097         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20098
20099 2006-10-19  Bruno Haible  <bruno@clisp.org>
20100
20101         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20102         it.
20103
20104 2006-10-19  Bruno Haible  <bruno@clisp.org>
20105
20106         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20107         invocation.
20108
20109 2006-10-19  Bruno Haible  <bruno@clisp.org>
20110
20111         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20112         mountlist by default.
20113
20114 2006-10-16  Bruno Haible  <bruno@clisp.org>
20115
20116         * lib/c-strstr.c: Include c-strstr.h.
20117
20118 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20119
20120         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20121         in a slash.
20122
20123 2006-10-18  Bruno Haible  <bruno@clisp.org>
20124
20125         * lib/lock.h [C++]: Wrap definitions in extern "C".
20126
20127 2006-10-18  Bruno Haible  <bruno@clisp.org>
20128
20129         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20130         gl_LIBOBJS list.
20131
20132 2006-10-18  Bruno Haible  <bruno@clisp.org>
20133
20134         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20135
20136 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20137
20138         * lib/xstrtol.h: Include gettext.h.
20139         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20140         Problem reported by Eric Blake.
20141         * modules/xstrtol (Depends-on): Add gettext-h.
20142
20143 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20144
20145         * lib/strftime.c (advance): New macro.
20146         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20147         incomplete type, so you can't add 0 to it.  Problem and patch
20148         reported by Eelco Dolstra for dietlibc.
20149
20150 2006-10-18  Jim Meyering  <jim@meyering.net>
20151
20152         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20153         type for a local, and rename it: s/up/user_proc/.
20154
20155 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20156
20157         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20158         READ_UTMP_USER_PROCESS.
20159         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20160
20161 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20162
20163         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20164         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20165
20166 2006-10-17  Eric Blake  <ebb9@byu.net>
20167
20168         * lib/sigprocmask.c (sigprocmask): Fix typo.
20169
20170         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20171
20172         * modules/clean-temp (Makefile.am): Don't add to make output...
20173         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20174         config.h.
20175
20176 2006-10-17  Bruno Haible  <bruno@clisp.org>
20177
20178         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20179         differently if DEFAULT_TEXT_DOMAIN is set.
20180
20181 2006-10-16  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/clean-temp.c: Include fwriteerror.h.
20184
20185 2006-10-16  Bruno Haible  <bruno@clisp.org>
20186
20187         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20188
20189 2006-10-16  Bruno Haible  <bruno@clisp.org>
20190
20191         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20192         * lib/sigprocmask.h: Include <sys/types.h>.
20193         (sigset_t): Use the system's definition if present.
20194
20195 2006-10-17  Eric Blake  <ebb9@byu.net>
20196
20197         * lib/xvasprintf.c (includes): Assume config.h.
20198         * lib/xasprintf.c (includes): Likewise.
20199
20200 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20203         at least as wide as intmax_t.
20204
20205 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20206
20207         (Imported from Automake.)
20208         * build-aux/gnupload: Update to version 1.1 of directive file.
20209
20210 2006-10-16  Eric Blake  <ebb9@byu.net>
20211
20212         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20213         match Automake 1.10a.
20214
20215 2006-10-14  Bruno Haible  <bruno@clisp.org>
20216
20217         * modules/sigprocmask: New file.
20218         * lib/sigprocmask.h: New file.
20219         * lib/sigprocmask.c: New file.
20220         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20221         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20222         request sigprocmask.o.
20223         (gl_PREREQ_SIGPROCMASK): New macro.
20224         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20225         (Depends-on): Add sigprocmask.
20226         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20227         gt_SIGNALBLOCKING. Test for 'raise' only once.
20228         * lib/fatal-signal.c: Include sigprocmask.h.
20229         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20230         unblock_fatal_signals): Define always.
20231         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20232         sigprocmask.
20233
20234 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20235
20236         Sync from Automake.
20237         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20238         which incorrectly sets the mode of an existing destination
20239         directory.  In some cases the unpatched install-sh could do the
20240         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20241         system.  We hope this is rare in practice, but it's clearly worth
20242         fixing.  Problem reported by Alex Unleashed in
20243         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20244         Also, don't bother to check for -m bugs unless we're using -m;
20245         suggested by Stepan Kasal.
20246
20247 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20248
20249         Sync from Automake.
20250         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20251         `-c' flag, so they appear at the same position as in %FASTDEP%
20252         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20253         which ignores unknown options only after the first non-option.
20254         Bug report against M4 by Nelson H. F. Beebe.
20255
20256 2006-10-13  Jim Meyering  <jim@meyering.net>
20257
20258         Fix a bug in yesterday's change.
20259         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20260         p->fts_statp->st_dev would be used uninitialized.
20261         Ensures that we always call fts_stat on the very first entry.
20262         Miklos Szeredi reported that find -xdev stopped working.
20263
20264 2006-10-12  Bruno Haible  <bruno@clisp.org>
20265
20266         * gnulib-tool (func_get_automake_snippet): Append an automatically
20267         computed EXTRA_DIST augmentation.
20268         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20269         * modules/alloca-opt (Makefile.am): Likewise.
20270         * modules/allocsa (Makefile.am): Likewise.
20271         * modules/arcfour (Makefile.am): Likewise.
20272         * modules/arctwo (Makefile.am): Likewise.
20273         * modules/argmatch (Makefile.am): Likewise.
20274         * modules/argz (Makefile.am): Likewise.
20275         * modules/atexit (Makefile.am): Likewise.
20276         * modules/backupfile (Makefile.am): Likewise.
20277         * modules/byteswap (Makefile.am): Likewise.
20278         * modules/c-strtod (Makefile.am): Likewise.
20279         * modules/c-strtold (Makefile.am): Likewise.
20280         * modules/calloc (Makefile.am): Likewise.
20281         * modules/canon-host (Makefile.am): Likewise.
20282         * modules/canonicalize (Makefile.am): Likewise.
20283         * modules/chdir-long (Makefile.am): Likewise.
20284         * modules/chdir-safer (Makefile.am): Likewise.
20285         * modules/check-version (Makefile.am): Likewise.
20286         * modules/chown (Makefile.am): Likewise.
20287         * modules/cloexec (Makefile.am): Likewise.
20288         * modules/close-stream (Makefile.am): Likewise.
20289         * modules/closeout (Makefile.am): Likewise.
20290         * modules/crc (Makefile.am): Likewise.
20291         * modules/csharpexec (Makefile.am): Likewise.
20292         * modules/cycle-check (Makefile.am): Likewise.
20293         * modules/des (Makefile.am): Likewise.
20294         * modules/dev-ino (Makefile.am): Likewise.
20295         * modules/dirfd (Makefile.am): Likewise.
20296         * modules/dirname (Makefile.am): Likewise.
20297         * modules/dup2 (Makefile.am): Likewise.
20298         * modules/eealloc (Makefile.am): Likewise.
20299         * modules/error (Makefile.am): Likewise.
20300         * modules/euidaccess (Makefile.am): Likewise.
20301         * modules/exclude (Makefile.am): Likewise.
20302         * modules/exitfail (Makefile.am): Likewise.
20303         * modules/fcntl-safer (Makefile.am): Likewise.
20304         * modules/fcntl (Makefile.am): Likewise.
20305         * modules/file-type (Makefile.am): Likewise.
20306         * modules/fileblocks (Makefile.am): Likewise.
20307         * modules/filemode (Makefile.am): Likewise.
20308         * modules/filenamecat (Makefile.am): Likewise.
20309         * modules/fnmatch (Makefile.am): Likewise.
20310         * modules/fopen-safer (Makefile.am): Likewise.
20311         * modules/fpending (Makefile.am): Likewise.
20312         * modules/fprintftime (Makefile.am): Likewise.
20313         * modules/free (Makefile.am): Likewise.
20314         * modules/fsusage (Makefile.am): Likewise.
20315         * modules/ftruncate (Makefile.am): Likewise.
20316         * modules/fts (Makefile.am): Likewise.
20317         * modules/gc-arcfour (Makefile.am): Likewise.
20318         * modules/gc-des (Makefile.am): Likewise.
20319         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20320         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20321         * modules/gc-md4 (Makefile.am): Likewise.
20322         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20323         * modules/gc-sha1 (Makefile.am): Likewise.
20324         * modules/gc (Makefile.am): Likewise.
20325         * modules/getaddrinfo (Makefile.am): Likewise.
20326         * modules/getcwd (Makefile.am): Likewise.
20327         * modules/getdelim (Makefile.am): Likewise.
20328         * modules/getdomainname (Makefile.am): Likewise.
20329         * modules/getgroups (Makefile.am): Likewise.
20330         * modules/gethostname (Makefile.am): Likewise.
20331         * modules/gethrxtime (Makefile.am): Likewise.
20332         * modules/getline (Makefile.am): Likewise.
20333         * modules/getloadavg (Makefile.am): Likewise.
20334         * modules/getlogin_r (Makefile.am): Likewise.
20335         * modules/getndelim2 (Makefile.am): Likewise.
20336         * modules/getopt (Makefile.am): Likewise.
20337         * modules/getpagesize (Makefile.am): Likewise.
20338         * modules/getpass-gnu (Makefile.am): Likewise.
20339         * modules/getpass (Makefile.am): Likewise.
20340         * modules/getsubopt (Makefile.am): Likewise.
20341         * modules/gettime (Makefile.am): Likewise.
20342         * modules/gettimeofday (Makefile.am): Likewise.
20343         * modules/getugroups (Makefile.am): Likewise.
20344         * modules/getusershell (Makefile.am): Likewise.
20345         * modules/glob (Makefile.am): Likewise.
20346         * modules/group-member (Makefile.am): Likewise.
20347         * modules/hard-locale (Makefile.am): Likewise.
20348         * modules/hash (Makefile.am): Likewise.
20349         * modules/hmac-md5 (Makefile.am): Likewise.
20350         * modules/hmac-sha1 (Makefile.am): Likewise.
20351         * modules/human (Makefile.am): Likewise.
20352         * modules/idcache (Makefile.am): Likewise.
20353         * modules/imaxabs (Makefile.am): Likewise.
20354         * modules/imaxdiv (Makefile.am): Likewise.
20355         * modules/inet_ntop (Makefile.am): Likewise.
20356         * modules/inet_pton (Makefile.am): Likewise.
20357         * modules/intprops (Makefile.am): Likewise.
20358         * modules/inttostr (Makefile.am): Likewise.
20359         * modules/inttypes (Makefile.am): Likewise.
20360         * modules/isapipe (Makefile.am): Likewise.
20361         * modules/javaversion (Makefile.am): Likewise.
20362         * modules/lchmod (Makefile.am): Likewise.
20363         * modules/lchown (Makefile.am): Likewise.
20364         * modules/localcharset (Makefile.am): Likewise.
20365         * modules/long-options (Makefile.am): Likewise.
20366         * modules/lstat (Makefile.am): Likewise.
20367         * modules/malloc (Makefile.am): Likewise.
20368         * modules/mathl (Makefile.am): Likewise.
20369         * modules/mbchar (Makefile.am): Likewise.
20370         * modules/md2 (Makefile.am): Likewise.
20371         * modules/md4 (Makefile.am): Likewise.
20372         * modules/md5 (Makefile.am): Likewise.
20373         * modules/memcasecmp (Makefile.am): Likewise.
20374         * modules/memchr (Makefile.am): Likewise.
20375         * modules/memcmp (Makefile.am): Likewise.
20376         * modules/memcoll (Makefile.am): Likewise.
20377         * modules/memcpy (Makefile.am): Likewise.
20378         * modules/memmem (Makefile.am): Likewise.
20379         * modules/memmove (Makefile.am): Likewise.
20380         * modules/mempcpy (Makefile.am): Likewise.
20381         * modules/memrchr (Makefile.am): Likewise.
20382         * modules/memset (Makefile.am): Likewise.
20383         * modules/memxor (Makefile.am): Likewise.
20384         * modules/mkancesdirs (Makefile.am): Likewise.
20385         * modules/mkdir-p (Makefile.am): Likewise.
20386         * modules/mkdir (Makefile.am): Likewise.
20387         * modules/mkdtemp (Makefile.am): Likewise.
20388         * modules/mkstemp (Makefile.am): Likewise.
20389         * modules/mktime (Makefile.am): Likewise.
20390         * modules/modechange (Makefile.am): Likewise.
20391         * modules/mountlist (Makefile.am): Likewise.
20392         * modules/nanosleep (Makefile.am): Likewise.
20393         * modules/obstack (Makefile.am): Likewise.
20394         * modules/openat (Makefile.am): Likewise.
20395         * modules/pagealign_alloc (Makefile.am): Likewise.
20396         * modules/pathmax (Makefile.am): Likewise.
20397         * modules/physmem (Makefile.am): Likewise.
20398         * modules/poll (Makefile.am): Likewise.
20399         * modules/posixtm (Makefile.am): Likewise.
20400         * modules/posixver (Makefile.am): Likewise.
20401         * modules/putenv (Makefile.am): Likewise.
20402         * modules/quote (Makefile.am): Likewise.
20403         * modules/quotearg (Makefile.am): Likewise.
20404         * modules/raise (Makefile.am): Likewise.
20405         * modules/read-file (Makefile.am): Likewise.
20406         * modules/readline (Makefile.am): Likewise.
20407         * modules/readlink (Makefile.am): Likewise.
20408         * modules/readtokens (Makefile.am): Likewise.
20409         * modules/readutmp (Makefile.am): Likewise.
20410         * modules/realloc (Makefile.am): Likewise.
20411         * modules/regex (Makefile.am): Likewise.
20412         * modules/rename-dest-slash (Makefile.am): Likewise.
20413         * modules/rename (Makefile.am): Likewise.
20414         * modules/rijndael (Makefile.am): Likewise.
20415         * modules/rmdir (Makefile.am): Likewise.
20416         * modules/rpmatch (Makefile.am): Likewise.
20417         * modules/safe-read (Makefile.am): Likewise.
20418         * modules/safe-write (Makefile.am): Likewise.
20419         * modules/same-inode (Makefile.am): Likewise.
20420         * modules/same (Makefile.am): Likewise.
20421         * modules/save-cwd (Makefile.am): Likewise.
20422         * modules/savedir (Makefile.am): Likewise.
20423         * modules/setenv (Makefile.am): Likewise.
20424         * modules/settime (Makefile.am): Likewise.
20425         * modules/sha1 (Makefile.am): Likewise.
20426         * modules/sig2str (Makefile.am): Likewise.
20427         * modules/snprintf (Makefile.am): Likewise.
20428         * modules/stat-macros (Makefile.am): Likewise.
20429         * modules/stat-time (Makefile.am): Likewise.
20430         * modules/stdbool (Makefile.am): Likewise.
20431         * modules/stdint (Makefile.am): Likewise.
20432         * modules/stdlib-safer (Makefile.am): Likewise.
20433         * modules/stpcpy (Makefile.am): Likewise.
20434         * modules/stpncpy (Makefile.am): Likewise.
20435         * modules/strcase (Makefile.am): Likewise.
20436         * modules/strcasestr (Makefile.am): Likewise.
20437         * modules/strchrnul (Makefile.am): Likewise.
20438         * modules/strcspn (Makefile.am): Likewise.
20439         * modules/strdup (Makefile.am): Likewise.
20440         * modules/strerror (Makefile.am): Likewise.
20441         * modules/strftime (Makefile.am): Likewise.
20442         * modules/strndup (Makefile.am): Likewise.
20443         * modules/strnlen (Makefile.am): Likewise.
20444         * modules/strpbrk (Makefile.am): Likewise.
20445         * modules/strsep (Makefile.am): Likewise.
20446         * modules/strstr (Makefile.am): Likewise.
20447         * modules/strtod (Makefile.am): Likewise.
20448         * modules/strtoimax (Makefile.am): Likewise.
20449         * modules/strtok_r (Makefile.am): Likewise.
20450         * modules/strtol (Makefile.am): Likewise.
20451         * modules/strtoll (Makefile.am): Likewise.
20452         * modules/strtoul (Makefile.am): Likewise.
20453         * modules/strtoull (Makefile.am): Likewise.
20454         * modules/strtoumax (Makefile.am): Likewise.
20455         * modules/strverscmp (Makefile.am): Likewise.
20456         * modules/sys_socket (Makefile.am): Likewise.
20457         * modules/sys_stat (Makefile.am): Likewise.
20458         * modules/sysexits (Makefile.am): Likewise.
20459         * modules/time_r (Makefile.am): Likewise.
20460         * modules/timegm (Makefile.am): Likewise.
20461         * modules/timespec (Makefile.am): Likewise.
20462         * modules/tmpfile-safer (Makefile.am): Likewise.
20463         * modules/trim (Makefile.am): Likewise.
20464         * modules/unistd-safer (Makefile.am): Likewise.
20465         * modules/unlinkdir (Makefile.am): Likewise.
20466         * modules/unlocked-io (Makefile.am): Likewise.
20467         * modules/userspec (Makefile.am): Likewise.
20468         * modules/utime (Makefile.am): Likewise.
20469         * modules/utimecmp (Makefile.am): Likewise.
20470         * modules/utimens (Makefile.am): Likewise.
20471         * modules/vasnprintf (Makefile.am): Likewise.
20472         * modules/vasprintf (Makefile.am): Likewise.
20473         * modules/vsnprintf (Makefile.am): Likewise.
20474         * modules/xalloc (Makefile.am): Likewise.
20475         * modules/xgetcwd (Makefile.am): Likewise.
20476         * modules/xnanosleep (Makefile.am): Likewise.
20477         * modules/xreadlink (Makefile.am): Likewise.
20478         * modules/xstrtod (Makefile.am): Likewise.
20479         * modules/xstrtol (Makefile.am): Likewise.
20480         * modules/xstrtold (Makefile.am): Likewise.
20481         * modules/yesno (Makefile.am): Likewise.
20482         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20483
20484 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20485
20486         * modules/error (Makefile.am): Distribute files through
20487         EXTRA_DIST, not lib_SOURCES.
20488
20489 2006-10-12  Eric Blake  <ebb9@byu.net>
20490
20491         * modules/error (Makefile.am): Distribute files in /lib.
20492         * modules/obstack (Makefile.am): Likewise.
20493
20494 2006-10-12  Bruno Haible  <bruno@clisp.org>
20495
20496         * modules/acl (Makefile.am): Distribute all files in lib/ through
20497         EXTRA_DIST.
20498         * modules/arcfour (Makefile.am): Likewise.
20499         * modules/arctwo (Makefile.am): Likewise.
20500         * modules/argmatch (Makefile.am): Likewise.
20501         * modules/argz (Makefile.am): Likewise.
20502         * modules/atexit (Makefile.am): Likewise.
20503         * modules/backupfile (Makefile.am): Likewise.
20504         * modules/c-strtod (Makefile.am): Likewise.
20505         * modules/c-strtold (Makefile.am): Likewise.
20506         * modules/calloc (Makefile.am): Likewise.
20507         * modules/canon-host (Makefile.am): Likewise.
20508         * modules/canonicalize (Makefile.am): Likewise.
20509         * modules/chdir-long (Makefile.am): Likewise.
20510         * modules/chdir-safer (Makefile.am): Likewise.
20511         * modules/check-version (Makefile.am): Likewise.
20512         * modules/chown (Makefile.am): Likewise.
20513         * modules/cloexec (Makefile.am): Likewise.
20514         * modules/close-stream (Makefile.am): Likewise.
20515         * modules/closeout (Makefile.am): Likewise.
20516         * modules/crc (Makefile.am): Likewise.
20517         * modules/cycle-check (Makefile.am): Likewise.
20518         * modules/des (Makefile.am): Likewise.
20519         * modules/dirfd (Makefile.am): Likewise.
20520         * modules/dirname (Makefile.am): Likewise.
20521         * modules/dup2 (Makefile.am): Likewise.
20522         * modules/euidaccess (Makefile.am): Likewise.
20523         * modules/exclude (Makefile.am): Likewise.
20524         * modules/exitfail (Makefile.am): Likewise.
20525         * modules/fcntl-safer (Makefile.am): Likewise.
20526         * modules/file-type (Makefile.am): Likewise.
20527         * modules/fileblocks (Makefile.am): Likewise.
20528         * modules/filemode (Makefile.am): Likewise.
20529         * modules/filenamecat (Makefile.am): Likewise.
20530         * modules/fnmatch (Makefile.am): Likewise.
20531         * modules/fopen-safer (Makefile.am): Likewise.
20532         * modules/fpending (Makefile.am): Likewise.
20533         * modules/fprintftime (Makefile.am): Likewise.
20534         * modules/free (Makefile.am): Likewise.
20535         * modules/fsusage (Makefile.am): Likewise.
20536         * modules/ftruncate (Makefile.am): Likewise.
20537         * modules/fts (Makefile.am): Likewise.
20538         * modules/gc (Makefile.am): Likewise.
20539         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20540         * modules/getaddrinfo (Makefile.am): Likewise.
20541         * modules/getcwd (Makefile.am): Likewise.
20542         * modules/getdelim (Makefile.am): Likewise.
20543         * modules/getdomainname (Makefile.am): Likewise.
20544         * modules/getgroups (Makefile.am): Likewise.
20545         * modules/gethostname (Makefile.am): Likewise.
20546         * modules/gethrxtime (Makefile.am): Likewise.
20547         * modules/getline (Makefile.am): Likewise.
20548         * modules/getloadavg (Makefile.am): Likewise.
20549         * modules/getlogin_r (Makefile.am): Likewise.
20550         * modules/getopt (Makefile.am): Likewise.
20551         * modules/getpass (Makefile.am): Likewise.
20552         * modules/getpass-gnu (Makefile.am): Likewise.
20553         * modules/getsubopt (Makefile.am): Likewise.
20554         * modules/gettime (Makefile.am): Likewise.
20555         * modules/gettimeofday (Makefile.am): Likewise.
20556         * modules/getugroups (Makefile.am): Likewise.
20557         * modules/getusershell (Makefile.am): Likewise.
20558         * modules/glob (Makefile.am): Likewise.
20559         * modules/group-member (Makefile.am): Likewise.
20560         * modules/hard-locale (Makefile.am): Likewise.
20561         * modules/hash (Makefile.am): Likewise.
20562         * modules/hmac-md5 (Makefile.am): Likewise.
20563         * modules/hmac-sha1 (Makefile.am): Likewise.
20564         * modules/human (Makefile.am): Likewise.
20565         * modules/idcache (Makefile.am): Likewise.
20566         * modules/imaxabs (Makefile.am): Likewise.
20567         * modules/imaxdiv (Makefile.am): Likewise.
20568         * modules/inet_ntop (Makefile.am): Likewise.
20569         * modules/inet_pton (Makefile.am): Likewise.
20570         * modules/inttostr (Makefile.am): Likewise.
20571         * modules/isapipe (Makefile.am): Likewise.
20572         * modules/lchown (Makefile.am): Likewise.
20573         * modules/long-options (Makefile.am): Likewise.
20574         * modules/lstat (Makefile.am): Likewise.
20575         * modules/malloc (Makefile.am): Likewise.
20576         * modules/mathl (Makefile.am): Likewise.
20577         * modules/mbchar (Makefile.am): Likewise.
20578         * modules/md2 (Makefile.am): Likewise.
20579         * modules/md4 (Makefile.am): Likewise.
20580         * modules/md5 (Makefile.am): Likewise.
20581         * modules/memcasecmp (Makefile.am): Likewise.
20582         * modules/memchr (Makefile.am): Likewise.
20583         * modules/memcmp (Makefile.am): Likewise.
20584         * modules/memcoll (Makefile.am): Likewise.
20585         * modules/memcpy (Makefile.am): Likewise.
20586         * modules/memmem (Makefile.am): Likewise.
20587         * modules/memmove (Makefile.am): Likewise.
20588         * modules/mempcpy (Makefile.am): Likewise.
20589         * modules/memrchr (Makefile.am): Likewise.
20590         * modules/memset (Makefile.am): Likewise.
20591         * modules/memxor (Makefile.am): Likewise.
20592         * modules/mkancesdirs (Makefile.am): Likewise.
20593         * modules/mkdir (Makefile.am): Likewise.
20594         * modules/mkdir-p (Makefile.am): Likewise.
20595         * modules/mkdtemp (Makefile.am): Likewise.
20596         * modules/mkstemp (Makefile.am): Likewise.
20597         * modules/mktime (Makefile.am): Likewise.
20598         * modules/modechange (Makefile.am): Likewise.
20599         * modules/mountlist (Makefile.am): Likewise.
20600         * modules/nanosleep (Makefile.am): Likewise.
20601         * modules/openat (Makefile.am): Likewise.
20602         * modules/pagealign_alloc (Makefile.am): Likewise.
20603         * modules/physmem (Makefile.am): Likewise.
20604         * modules/poll (Makefile.am): Likewise.
20605         * modules/posixtm (Makefile.am): Likewise.
20606         * modules/posixver (Makefile.am): Likewise.
20607         * modules/putenv (Makefile.am): Likewise.
20608         * modules/quote (Makefile.am): Likewise.
20609         * modules/quotearg (Makefile.am): Likewise.
20610         * modules/raise (Makefile.am): Likewise.
20611         * modules/read-file (Makefile.am): Likewise.
20612         * modules/readline (Makefile.am): Likewise.
20613         * modules/readlink (Makefile.am): Likewise.
20614         * modules/readtokens (Makefile.am): Likewise.
20615         * modules/readutmp (Makefile.am): Likewise.
20616         * modules/realloc (Makefile.am): Likewise.
20617         * modules/regex (Makefile.am): Likewise.
20618         * modules/rename (Makefile.am): Likewise.
20619         * modules/rename-dest-slash (Makefile.am): Likewise.
20620         * modules/rijndael (Makefile.am): Likewise.
20621         * modules/rmdir (Makefile.am): Likewise.
20622         * modules/rpmatch (Makefile.am): Likewise.
20623         * modules/safe-read (Makefile.am): Likewise.
20624         * modules/safe-write (Makefile.am): Likewise.
20625         * modules/same (Makefile.am): Likewise.
20626         * modules/save-cwd (Makefile.am): Likewise.
20627         * modules/savedir (Makefile.am): Likewise.
20628         * modules/setenv (Makefile.am): Likewise.
20629         * modules/settime (Makefile.am): Likewise.
20630         * modules/sha1 (Makefile.am): Likewise.
20631         * modules/sig2str (Makefile.am): Likewise.
20632         * modules/snprintf (Makefile.am): Likewise.
20633         * modules/stdlib-safer (Makefile.am): Likewise.
20634         * modules/stpcpy (Makefile.am): Likewise.
20635         * modules/stpncpy (Makefile.am): Likewise.
20636         * modules/strcase (Makefile.am): Likewise.
20637         * modules/strcasestr (Makefile.am): Likewise.
20638         * modules/strchrnul (Makefile.am): Likewise.
20639         * modules/strcspn (Makefile.am): Likewise.
20640         * modules/strdup (Makefile.am): Likewise.
20641         * modules/strerror (Makefile.am): Likewise.
20642         * modules/strftime (Makefile.am): Likewise.
20643         * modules/strndup (Makefile.am): Likewise.
20644         * modules/strnlen (Makefile.am): Likewise.
20645         * modules/strpbrk (Makefile.am): Likewise.
20646         * modules/strsep (Makefile.am): Likewise.
20647         * modules/strstr (Makefile.am): Likewise.
20648         * modules/strtod (Makefile.am): Likewise.
20649         * modules/strtoimax (Makefile.am): Likewise.
20650         * modules/strtok_r (Makefile.am): Likewise.
20651         * modules/strtol (Makefile.am): Likewise.
20652         * modules/strtoll (Makefile.am): Likewise.
20653         * modules/strtoul (Makefile.am): Likewise.
20654         * modules/strtoull (Makefile.am): Likewise.
20655         * modules/strtoumax (Makefile.am): Likewise.
20656         * modules/strverscmp (Makefile.am): Likewise.
20657         * modules/time_r (Makefile.am): Likewise.
20658         * modules/timegm (Makefile.am): Likewise.
20659         * modules/tmpfile-safer (Makefile.am): Likewise.
20660         * modules/unistd-safer (Makefile.am): Likewise.
20661         * modules/unlinkdir (Makefile.am): Likewise.
20662         * modules/userspec (Makefile.am): Likewise.
20663         * modules/utime (Makefile.am): Likewise.
20664         * modules/utimecmp (Makefile.am): Likewise.
20665         * modules/utimens (Makefile.am): Likewise.
20666         * modules/vasnprintf (Makefile.am): Likewise.
20667         * modules/vasprintf (Makefile.am): Likewise.
20668         * modules/vsnprintf (Makefile.am): Likewise.
20669         * modules/xalloc (Makefile.am): Likewise.
20670         * modules/xgetcwd (Makefile.am): Likewise.
20671         * modules/xnanosleep (Makefile.am): Likewise.
20672         * modules/xreadlink (Makefile.am): Likewise.
20673         * modules/xstrtod (Makefile.am): Likewise.
20674         * modules/xstrtol (Makefile.am): Likewise.
20675         * modules/xstrtold (Makefile.am): Likewise.
20676         * modules/yesno (Makefile.am): Likewise.
20677
20678 2006-10-12  Jim Meyering  <jim@meyering.net>
20679
20680         * m4/getloadavg.m4: Revert the change below.
20681
20682         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20683         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20684         fail with a symlink, which is what coreutils' ./bootstrap now
20685         creates by default.
20686
20687 2006-10-12  Bruno Haible  <bruno@clisp.org>
20688
20689         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20690         mingw.
20691         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20692         MSVC and mingw explicitly.
20693
20694 2006-10-11  Simon Josefsson  <jas@extundo.com>
20695             Bruno Haible  <bruno@clisp.org>
20696
20697         Add support for multiple gnulib-tool invocations in the scope of a
20698         single configure.ac file.
20699         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20700         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20701         with the same contents as the _LIBADD variable.
20702         (func_emit_initmacro_start, func_emit_initmacro_end,
20703         func_emit_initmacro_done): New functions.
20704         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20705         gl_LIBOBJS and gl_LTLIBOBJS.
20706
20707 2006-10-11  Bruno Haible  <bruno@clisp.org>
20708
20709         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20710         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20711         autoreconf. Instead, invoke autopoint explicitly but move back the
20712         *.m4 files from gnulib.
20713
20714 2006-10-11  Bruno Haible  <bruno@clisp.org>
20715
20716         * gnulib-tool (func_usage): Make module names after --create-testdir
20717         optional.
20718         (func_create_testdir): If no module was specified, use nearly all
20719         modules.
20720
20721 2006-10-12  Jim Meyering  <jim@meyering.net>
20722
20723         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20724         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20725         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20726         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20727         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20728         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20729         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20730         (fts_set_stat_required): New function.
20731         (fts_open): Defer the calls to fts_stat, if possible or requested.
20732         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20733         into fts_stat itself.
20734         (fts_read): Perform any required (deferred) fts_stat call.
20735         (fts_build): Likewise, for the directory we're about to open and read.
20736         In the readdir loop, carefully decide whether each entry will require
20737         an eventual call to fts_stat, using dirent.d_type info if available.
20738         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20739         a command line argument into this function.  Update all callers.
20740         Map a return value of FTS_DOT to FTS_D for a command line argument.
20741         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20742         Thanks to Miklos Szeredi for his tenacity and for the initial
20743         bug report about "find" failing on a FUSE-based file system.
20744
20745         * lib/fts.c (fts_open): Use consistent indentation.
20746
20747 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20750         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20751         reported by Jim Meyering.  All uses of cache variables renamed
20752         to match Autoconf's.
20753         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20754         the other one.
20755
20756         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20757         Fix misspelling in diagnostic.
20758
20759 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20760
20761         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20762         defined.  Problem reported by Matthew Woehlke.
20763
20764         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20765         Add support for Tandem NonStop R series.
20766         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20767         Use new macro.
20768
20769         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20770         (has_trailing_slash): Omit size arg; all callers changed.
20771         Omit 'inline', since it doesn't help performance and we'd
20772         need to configure it.
20773         Don't count //, ///, etc. as having a trailing slash.
20774         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20775         (rpl_rename_dest_slash): On failure, use rename's errno rather
20776         than (in some cases) an incorrect or junk errno.
20777         Simplify code by removing need to compute length; this does
20778         cause it to make two passes instead of one over the file name,
20779         but it's worth it.
20780
20781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20782         change, since Autoconf's version may no longer be appropriate now
20783         that we are using CVS Autoconf's version.  Add support for Tandem.
20784
20785 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20786             Bruno Haible  <bruno@clisp.org>
20787
20788         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20789         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20790         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20791         gl_AC_TYPE_LONG_LONG.
20792
20793         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20794         instead of HAVE_LONG_LONG.
20795         * lib/printf-args.c (printf_fetchargs): Likewise.
20796         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20797         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20798         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20799         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20800         gl_AC_TYPE_LONG_LONG.
20801
20802 2006-10-11  Bruno Haible  <bruno@clisp.org>
20803
20804         * m4/longlong.m4: Add comments.
20805         * m4/ulonglong.m4: Likewise.
20806
20807 2006-10-10  Bruno Haible  <bruno@clisp.org>
20808
20809         Make it possible to #define stpcpy, strdup to aliases.
20810         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20811         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20812
20813 2006-10-10  Bruno Haible  <bruno@clisp.org>
20814
20815         Make it possible to #define gcd to an alias.
20816         * lib/gcd.c: Include config.h.
20817
20818 2006-10-10  Bruno Haible  <bruno@clisp.org>
20819
20820         Make it possible to #define c_isascii to an alias.
20821         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20822         defined. Undefine the macros before defining them, to avoid gcc
20823         warnings.
20824         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20825         define NO_C_CTYPE_MACROS early.
20826
20827 2006-10-10  Bruno Haible  <bruno@clisp.org>
20828
20829         Make it possible to #define set_program_name to an alias.
20830         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20831         ENABLE_RELOCATABLE early.
20832
20833 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20834
20835         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20836         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20837         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20838         More generally, don't assume that 64-bit signed int is available
20839         if unsigned int is, and vice versa.
20840         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20841         unsigned symbols, not on their signed counterparts.
20842         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20843         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20844         (UINT64_C, UINTMAX_C):
20845         Likewise.
20846         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20847         unsigned counterparts.
20848         (Have_long_long, Unsigned): New macros.
20849         (Int): Renamed from INT.
20850         (strtoimax): Use the new macros.
20851         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20852         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20853         * modules/inttypes (inttypes.h): Substitute
20854         HAVE_UNSIGNED_LONG_LONG_INT.
20855         * modules/stdint (stdint.h): Likewise.
20856         (Files): Add m4/ulonglong.m4.
20857
20858 2006-10-10  Bruno Haible  <bruno@clisp.org>
20859
20860         Fix a gcc -Wshadow warning.
20861         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20862         to 'bucket'.
20863         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20864         gl_linked_indexof_from_to): Likewise.
20865         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20866         Likewise.
20867         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20868         Likewise.
20869         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20870         Reported by Eric Blake.
20871
20872 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20873
20874         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20875         for NetBSD.  Problem reported by Bruno Haible.
20876
20877 2006-10-09  Jim Meyering  <jim@meyering.net>
20878
20879         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20880         Patch from Bruno Haible.
20881
20882 2006-10-09  Jim Meyering  <jim@meyering.net>
20883
20884         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20885         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20886         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20887
20888 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20889
20890         Don't include <config.h> twice; this doesn't work in some cases,
20891         e.g., when config.h has "#define intmax_t long long int" and
20892         we include <config.h>, <inttypes.h>, <config.h> in that order.
20893         Problem reported by Matthew Woehlke in:
20894         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20895         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20896         * lib/fts-cycle.c: Don't include config.h.
20897         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20898         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20899         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20900         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20901         inttypes.h.
20902         * lib/xstrtoumax.c: Likewise.
20903         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20904         __strtol and the like, so that this module is more like its siblings.
20905         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20906         Remove; no longer needed now that we assume gnulib inttypes.h.
20907
20908 2006-10-08  Bruno Haible  <bruno@clisp.org>
20909
20910         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20911         option.
20912
20913 2006-10-07  Jim Meyering  <jim@meyering.net>
20914
20915         * modules/inttypes (inttypes.h): Revert what seems to have been
20916         an inadvertent part of today's change: use "|", not "/" in the
20917         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20918
20919 2006-10-07  Bruno Haible  <bruno@clisp.org>
20920
20921         * modules/sublist: New file.
20922
20923 2006-10-07  Bruno Haible  <bruno@clisp.org>
20924
20925         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20926         * modules/argz (argz.h): Likewise.
20927         * modules/arpa_inet (arpa/inet.h): Likewise.
20928         * modules/byteswap (byteswap.h): Likewise.
20929         * modules/configmake (configmake.h): Likewise.
20930         * modules/fcntl (fcntl.h): Likewise.
20931         * modules/fnmatch (fnmatch.h): Likewise.
20932         * modules/getopt (getopt.h): Likewise.
20933         * modules/glob (glob.h): Likewise.
20934         * modules/inttypes (inttypes.h): Likewise.
20935         * modules/netinet_in (netinet/in.h): Likewise.
20936         * modules/poll (poll.h): Likewise.
20937         * modules/stdbool (stdbool.h): Likewise.
20938         * modules/stdint (stdint.h): Likewise.
20939         * modules/sys_select (sys/select.h): Likewise.
20940         * modules/sys_socket (sys/socket.h): Likewise.
20941         * modules/sys_stat (sys/stat.h): Likewise.
20942         * modules/sysexits (sysexits.h): Likewise.
20943         * modules/unistd (unistd.h): Likewise.
20944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20945         Add a "DO NOT EDIT" comment to the generated file.
20946         (func_import): Likewise for gnulib-comp.m4.
20947
20948 2006-10-07  Bruno Haible  <bruno@clisp.org>
20949
20950         * lib/gl_sublist.h: New file.
20951         * lib/gl_sublist.c: New file.
20952
20953 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20954
20955         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20956         name (relative to the original working directory) and the file
20957         name component (relative to the temporary working directory).  All
20958         callers changed.
20959         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20960         * lib/mkdir-p.c (make_dir_parents): Likewise.
20961         * lib/mkdir-p.h (make_dir_parents): Likewise.
20962
20963 2006-10-06  Eric Blake  <ebb9@byu.net>
20964
20965         Define several macros for use by the clean-temp module.
20966         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20967         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20968         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20969
20970         * lib/clean-temp.h (close_stream_temp): New declaration.
20971         * lib/clean-temp.c (includes): Pull in headers according to what
20972         other modules are in use.
20973         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20974
20975 2006-10-06  Bruno Haible  <bruno@clisp.org>
20976
20977         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20978         instead of fopen, fwriteerror.
20979
20980 2006-10-06  Bruno Haible  <bruno@clisp.org>
20981
20982         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20983         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20984         int.
20985         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20986         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20987         Return an error indicator.
20988         Suggested by Eric Blake.
20989
20990 2006-10-06  Bruno Haible  <bruno@clisp.org>
20991
20992         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20993         Reported by Eric Blake.
20994
20995 2006-10-06  Bruno Haible  <bruno@clisp.org>
20996
20997         * modules/closeout (Description): Mention stderr too.
20998
20999 2006-10-06  Bruno Haible  <bruno@clisp.org>
21000         and Paul Eggert  <eggert@cs.ucla.edu>
21001
21002         * lib/closeout.c (close_stdout): Also close stderr.
21003         * lib/closeout.h: Update comment.
21004
21005 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21006
21007         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21008         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21009         * lib/dirchownmod.c: Include lchown.h.
21010         * lib/lchown.c: Don't include files that lchown.h now includes.
21011         Don't declare chown, since lchown.h now does that.
21012         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21013         (lchown): Define to rpl_chown if lchown is declared but
21014         does not exist.  Declare using a prototype if lchown is not
21015         declared.  Add a copyright notice.
21016         * lib/mkstemp.h: Include <unistd.h>.
21017         * lib/openat.c: Include lchown.h.
21018
21019         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21020         we now test for that separately.
21021         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21022         rather than O_NOFOLLOW, when testing whether it's possible to
21023         avoid a race condition reliably.
21024         * lib/savewd.c (savewd_chdir): Likewise.
21025
21026         Remove macros that are no longer needed now that stdint.h is
21027         reliable.
21028         * lib/fsusage.c (UINTMAX_MAX): Remove.
21029         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21030         * lib/utimecmp.c (SIZE_MAX): Remove.
21031
21032         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21033
21034         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21035         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21036         O_NOATIME works.
21037
21038 2006-10-05  Bruno Haible  <bruno@clisp.org>
21039
21040         * lib/gl_list.h (gl_sortedlist_search_from_to,
21041         gl_sortedlist_indexof_from_to): New declarations.
21042         (gl_list_implementation): New fields sortedlist_search_from_to,
21043         sortedlist_indexof_from_to.
21044         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21045         inline functions.
21046         * lib/gl_list.c (gl_sortedlist_search_from_to,
21047         gl_sortedlist_indexof_from_to): New functions.
21048         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21049         function.
21050         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21051         (gl_array_sortedlist_search_from_to): New function.
21052         (gl_array_list_implementation): Update.
21053         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
21054         function.
21055         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
21056         (gl_carray_sortedlist_search_from_to): New function.
21057         (gl_carray_list_implementation): Update.
21058         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
21059         gl_linked_sortedlist_indexof_from_to): New functions.
21060         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21061         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21062         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
21063         gl_tree_sortedlist_indexof_from_to): New functions.
21064         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21065         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21066         Update.
21067         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21068         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
21069         Update.
21070
21071 2006-10-05  Bruno Haible  <bruno@clisp.org>
21072
21073         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
21074         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21075         (struct gl_list_implementation): Add fields search_from_to,
21076         indexof_from_to. Remove fields search, indexof.
21077         (gl_list_search): Use the search_from_to method.
21078         (gl_list_search_from, gl_list_search_from_to): New functions.
21079         (gl_list_indexof): Use the indexof_from_to method.
21080         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21081         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21082         (gl_list_search_from, gl_list_search_from_to): New functions.
21083         (gl_list_indexof): Use the indexof_from_to method.
21084         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21085         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21086         gl_array_indexof. Add start_index, end_index arguments.
21087         (gl_array_search_from_to): Renamed from gl_array_search. Add
21088         start_index, end_index arguments.
21089         (gl_array_remove, gl_array_list_implementation): Update.
21090         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21091         gl_carray_indexof. Add start_index, end_index arguments.
21092         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21093         start_index, end_index arguments.
21094         (gl_carray_remove, gl_carray_list_implementation): Update.
21095         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21096         gl_linked_search. Add start_index, end_index arguments.
21097         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21098         start_index, end_index arguments.
21099         (gl_linked_remove): Update.
21100         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21101         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21102         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21103         field to 'size_t'.
21104         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21105         gl_tree_search. Add start_index, end_index arguments.
21106         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21107         start_index, end_index arguments.
21108         (gl_tree_remove): Update.
21109         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21110         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21111         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21112         function.
21113         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21114         gl_tree_search. Add start_index, end_index arguments.
21115         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21116         start_index, end_index arguments.
21117         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21118         Update.
21119         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21120
21121 2006-10-05  Bruno Haible  <bruno@clisp.org>
21122
21123         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21124
21125         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21126         fwriteerror_temp): New declarations.
21127         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21128         (descriptors): New variable.
21129         (cleanup): First, close the descriptors.
21130         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21131         fclose_temp, fwriteerror_temp): New functions.
21132
21133 2006-10-04  Jim Meyering  <jim@meyering.net>
21134
21135         * lib/fts.c (fts_open): Tiny comment change.
21136
21137 2006-10-04  Bruno Haible  <bruno@clisp.org>
21138
21139         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21140         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21141         gl_LOCK_BODY.
21142         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21143         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21144         gl_LOCK_EARLY_BODY.
21145         (gl_LOCK): Require gl_LOCK_BODY.
21146
21147 2006-10-04  Bruno Haible  <bruno@clisp.org>
21148
21149         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21150         (gl_oset_search_atleast): New declaration.
21151         (struct gl_oset_implementation): Add field 'search_atleast'.
21152         (gl_oset_search_atleast): New inline function.
21153         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21154         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21155         (gl_array_oset_implementation): Update.
21156         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21157         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21158         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21159
21160 2006-10-04  Bruno Haible  <bruno@clisp.org>
21161
21162         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21163
21164 2006-10-03  Bruno Haible  <bruno@clisp.org>
21165
21166         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21167         from gl_avltreehash_list_implementation.
21168
21169 2006-10-03  Bruno Haible  <bruno@clisp.org>
21170
21171         * lib/gl_oset.c (gl_oset_add): Fix return type.
21172
21173 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21174
21175         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21176
21177 2006-10-02  Eric Blake  <ebb9@byu.net>
21178
21179         * modules/strnlen (Depends-on): Add extensions.
21180
21181 2006-10-02  Eric Blake  <ebb9@byu.net>
21182
21183         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21184         definition in 2.60+.
21185
21186 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21187
21188         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21189         checks.
21190
21191 2006-10-02  Bruno Haible  <bruno@clisp.org>
21192
21193         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21194         to the AUTOMAKE_OPTIONS.
21195         Reported by Jim Meyering.
21196
21197 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         Work around bug in Solaris 10 /proc file system:
21200         /proc/self/fd/NNN/.. isn't the parent directory of
21201         the directory whose file descriptor is NNN.  This needs to
21202         be worked around at run time, not compile time, since a
21203         program might be built on Solaris 8, where things work, and
21204         run on Solaris 10.
21205         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21206         to use the following interface instead:
21207         (OPENAT_BUFFER_SIZE): New macro.
21208         (openat_proc_name): New function.
21209         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21210         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21211         Likewise.
21212         * lib/openat-proc.c: New file.
21213         * modules/openat (Files): Add lib/openat-proc.c.
21214         (Depends-on): Add same-inode, stdbool.
21215         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21216
21217 2006-09-29  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21220         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21221         argument. Set stdout_closed before testing for ferror, not after.
21222         (fwriteerror, fwriteerror_no_ebadf): New functions.
21223
21224 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21225
21226         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21227
21228 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21229
21230         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21231         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21232
21233 2006-09-28  Jim Meyering  <jim@meyering.net>
21234
21235         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21236         Include <unistd.h>.
21237
21238 2006-09-28  Bruno Haible  <bruno@clisp.org>
21239
21240         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21241         * modules/linkedhash-list (Depends-on): Likewise.
21242         * modules/rbtreehash-list (Depends-on): Likewise.
21243
21244 2006-09-28  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/strndup.h: Simplify the redefinition of strndup.
21247         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21248         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21249
21250 2006-09-28  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21253         * lib/gl_linkedhash_list.c: Likewise.
21254         * lib/gl_rbtreehash_list.c: Likewise.
21255
21256 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21257
21258         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21259         getaddrinfo.
21260
21261         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21262         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21263         it causes <stdio_ext.h> to cause a compile-time error.
21264         Problem reported by Nelson H. F. Beebe.
21265         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21266         of HAVE_DECL___PENDING.
21267
21268         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21269         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21270         declaration.
21271
21272 2006-09-27  Jim Meyering  <jim@meyering.net>
21273
21274         This file could end up with a definition for a function
21275         named __strndup, rather than rpl_strndup on a system with
21276         incomplete weak_alias support.
21277         * lib/strndup.c (strndup): Rename from __strndup.
21278         Remove #defines that used to map __strndup to strndup.
21279         Don't use K&R prototypes.
21280         Remove LIBC-related code, since this file is not sync'd with glibc.
21281         * lib/strndup.h: Revamp, accordingly.
21282         * m4/strndup.m4: Modernize.
21283
21284 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         * modules/savewd (Depends-on): Add 'raise'.
21287         * lib/savewd.c: Include <signal.h>, for 'raise'.
21288
21289 2006-09-26  Jim Meyering  <jim@meyering.net>
21290
21291         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21292         when we detect Darwin 8.7.0's acl_get_file bug.
21293         Rearrange to perform the new (below) run-test while $LIBS
21294         contains any acl-related library.  Set USE_ACL at the end.
21295         (gl_ACL_GET_FILE): New function.
21296
21297 2006-09-26  Eric Blake  <ebb9@byu.net>
21298
21299         * lib/verror.c: Include <config.h> unconditionally.
21300
21301 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21302
21303         * modules/clock-time (Maintainer): Add self.
21304         * modules/getlogin_r (Depends-on): Add extensions.
21305
21306 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21307
21308         * modules/clock-time: New module.
21309         * modules/nanosleep (Depends-on): Add clock-time.
21310         * modules/gethrxtime (Depends-on): Likewise.
21311         * modules/gettime (Depends-on): Likewise.
21312         * modules/settime (Depends-on): Likewise.
21313
21314         * modules/fts-lgpl: Depend on openat.
21315         * modules/mkancesdirs: Depend on savewd.
21316         * modules/mkdir-p: Likewise.
21317
21318 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21319
21320         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21321
21322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21323         `gl_have_arbitrary_file_name_length_limit' to
21324         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21325         actually works between configure runs.
21326
21327 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21328             Bruno Haible  <bruno@clisp.org>
21329
21330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21331
21332 2006-09-25  Jim Meyering  <jim@meyering.net>
21333
21334         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21335         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21336
21337 2006-09-25  Eric Blake  <ebb9@byu.net>
21338
21339         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21340         exec's in 2006-09-18 patch when shuffling fds.
21341
21342 2006-09-25  Bruno Haible  <bruno@clisp.org>
21343
21344         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21345         Reported by Jim Meyering.
21346
21347 2006-09-24  Jim Meyering  <jim@meyering.net>
21348
21349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21350         compare a pointer against a literal "0".  That caused failures with
21351         at least HP-UX's hpcc.
21352
21353 2006-09-22  Simon Josefsson  <jas@extundo.com>
21354
21355         * modules/gc-sha1:
21356         * modules/gc-md4:
21357         * modules/gc-hmac-sha1:
21358         * modules/gc-hmac-md5:
21359         * modules/gc-des:
21360         * modules/gc-arcfour: Distribute more files.
21361
21362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21363
21364         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21365         (gl_linked_iterator_from_to): Initialize struct completely.
21366         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21367         (gl_tree_iterator_from_to): Likewise
21368         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21369         * lib/gl_array_list.c [lint] (gl_array_iterator)
21370         (gl_array_iterator_from_to): Likewise.
21371         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21372         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21373         (gl_carray_iterator_from_to): Likewise.
21374
21375         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21376         * lib/md4.c (md4_process_block): Remove unused variable.
21377         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21378         parentheses for clarity.
21379
21380 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21381
21382         * modules/bison-i18n (Depends-on): Add gettext.
21383
21384 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21385
21386         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21387         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21388         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21389         also add missing comma that caused broken test.
21390         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21391         stdlib.h, for `abort'.
21392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21393         variables.
21394         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21395         include unistd.h if present, for `rmdir'.
21396         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21397         variables.
21398         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21399         in the process include standard headers for prototypes.
21400         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21401         gets declared on GNU/Linux.
21402         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21403         unistd.h, for `rmdir'.
21404         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21405
21406         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21407         always true.
21408         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21409
21410         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21411
21412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21413
21414         * gnulib-tool (func_version): Create output all at once.  This
21415         may help avoid triggering unnecessary SIGPIPEs, and at any
21416         rate it doesn't hurt.
21417
21418 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21419             Bruno Haible  <bruno@clisp.org>
21420
21421         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21422         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21423         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21424
21425         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21426         (gl_FUNC_VASPRINTF): Invoke it.
21427
21428 2006-09-22  Bruno Haible  <bruno@clisp.org>
21429
21430         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21431         getloadavg.c as first argument.
21432
21433 2006-09-22  Bruno Haible  <bruno@clisp.org>
21434
21435         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21436         at the beginning of the gl_INIT macro.
21437         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21438         gl_GETLOADAVG.
21439
21440 2006-09-22  Bruno Haible  <bruno@clisp.org>
21441
21442         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21443         module.
21444         Suggested by Ralf Wildenhues.
21445
21446 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         Import this patch from libc:
21449
21450         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21451
21452         * lib/regex_internal.c (re_string_reconstruct): Handle
21453         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21454         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21455         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21456         re_string_context_at.
21457
21458         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21459         now requires it.
21460         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21461         gl_REGEX now does it for us.
21462         (gl_REGEX): Add test taken from
21463         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21464
21465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21466         Check that large offsets work.  Modernize Autoconf usages.
21467         Prefer "yes" to mean a good thing rather than a bad.
21468         Don't put "#define mkstemp" in config.h, as this might interfere
21469         with standard system headers that "#define mkstemp mkstemp64".
21470
21471         * modules/mkstemp (Depends-on): Add extensions, so that
21472         mkstemp is visible on some platforms.
21473         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21474         (Include): Change to "mkstemp.h" from <stdlib.h>.
21475         (Files): Add mkstemp.h.
21476
21477         * lib/mkstemp.h: New file, since some standard headers
21478         #define mkstemp.
21479         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21480         Include "mkstemp.h".
21481         Make the _LIBC code resemble glibc original more,
21482         e.g., use K&R style.
21483         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21484         (mkstemp): Remove, since mkstemp.h does this for us.
21485         * lib/stdlib--.h: Include mkstemp.h.
21486
21487         Import this patch from libc:
21488
21489         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21490
21491         * lib/tempname.c (__gen_tempname): Change attempts_min
21492         into a macro.  Use preprocessor to decide how to initialize
21493         attempts [Coverity CID 67].
21494
21495 2006-09-20  Bruno Haible  <bruno@clisp.org>
21496
21497         * lib/mkdtemp.c: Import from libc.
21498         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21499                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21500                 attempts_min into a macro.  Use preprocessor to decide how to
21501                 initialize attempts [Coverity CID 67].
21502         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21503                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21504                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21505
21506 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21507
21508         * gnulib-tool (func_exit): New function, to allow to pass the
21509         exit status portably through the trap.  Use everywhere.
21510         (--help, --version): Signal a write error.
21511         (trap): catch SIGPIPE, for write errors.
21512         Exit at the end of the trap, with the correct exit status.
21513
21514 2006-09-19  Karl Berry  <karl@gnu.org>
21515
21516         * doc/gnulib.texi: note about the license texinfo files.
21517
21518 2006-09-19  Eric Blake  <ebb9@byu.net>
21519
21520         * gnulib-tool: Avoid space-tab.
21521
21522 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21523
21524         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21525         that prevented coreutils 6.1 from building.  Problem reported
21526         by Petter Reinholdtsen.
21527
21528 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         * gnulib-tool (avoidlist): Fix typo that broke options like
21531         --avoid=lock that are used by coreutils bootstrap.
21532
21533 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21534
21535         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21536         more systematically.
21537
21538 2006-09-18  Jim Meyering  <jim@meyering.net>
21539
21540         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21541
21542 2006-09-18  Bruno Haible  <bruno@clisp.org>
21543
21544         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21545
21546 2006-09-18  Bruno Haible  <bruno@clisp.org>
21547
21548         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21549         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21550         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21551         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21552         * m4/gettext.m4: Require autoconf >= 2.52.
21553         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21554         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21555         of gl_cv_header_inttypes_h.
21556
21557 2006-09-18  Bruno Haible  <bruno@clisp.org>
21558
21559         * lib/javaversion.c: Include configmake.h.
21560
21561 2006-09-18  Bruno Haible  <bruno@clisp.org>
21562
21563         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21564         avoid that the while loops be executed in a subshell.
21565
21566 2006-09-18  Bruno Haible  <bruno@clisp.org>
21567
21568         * MODULES.html.sh (func_module): Break long lines.
21569         Suggested by Bruce Korb <bkorb@gnu.org>.
21570
21571 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21572
21573         Speed up by a factor of 1.12.
21574         * gnulib-tool (nl): New variable.
21575         (func_import): Rewrite include directive extraction to only read each
21576         directive once.
21577
21578 2006-09-17  Bruno Haible  <bruno@clisp.org>
21579
21580         * modules/javaversion (Makefile.am): Remove DEFS setting.
21581         (Depends-on): Add configmake, for PKGDATADIR definition.
21582
21583 2006-09-17  Bruno Haible  <bruno@clisp.org>
21584
21585         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21586
21587 2006-09-17  Bruno Haible  <bruno@clisp.org>
21588
21589         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21590         (func_modules_transitive_closure, func_modules_add_dummy,
21591         func_modules_to_filelist, func_import, func_create_testdir,
21592         func_create_megatestdir, ...): Use it wherever possible.
21593         Suggested by Ralf Wildenhues.
21594
21595 2006-09-16  Karl Berry  <karl@gnu.org>
21596
21597         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21598         to avoid sectioning errors.
21599         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21600         [ifinfo]: blank line after @center-ed titles.
21601         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21602         Spell FSF address consistently with others.
21603         (These changes approved by rms.)
21604
21605 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21606
21607         Speed up by a factor of 1.61.
21608         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21609         already checked module names again.
21610
21611 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21612
21613         Speed up by a factor of 1.13.
21614         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21615         for new_files, and the input to func_add_or_update.
21616
21617 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21618
21619         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21620         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21621
21622 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21623
21624         * modules/mkancesdirs (Depends-on): Add fcntl.
21625         * modules/savewd: New file.
21626         * MODULES.html.sh (File system functions): Add savewd.
21627
21628         * modules/configmake (Makefile.am): Add support for the
21629         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21630
21631 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21632
21633         * m4/savewd.m4: New file.
21634
21635 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21636
21637         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21638         (dirchownmod): New arg FD.  All callers changed.
21639         Use FD rather than opening the directory ourself, as opening is
21640         now the caller's responsibility.
21641         * lib/dirchownmod.h: Likewise.
21642         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21643         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21644         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21645         (test_dir): Remove.
21646         (mkancesdirs): Return length of prefix of FILE that has already
21647         been made, or -2 if there is a child doing the work.  Redo
21648         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21649         ".", and treat ".." specially since it might stray back into
21650         already-created areas.  Use a subprocess if necessary.  New arg
21651         WD; all users changed.  MAKE_DIR function should now return 1
21652         if it creates a directory that is not readable.  Return -2 if
21653         a child process is spun off.
21654         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21655         Adjust signature to match code.
21656         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21657         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21658         all users changed.
21659         * lib/savewd.c, lib/savewd.h: New files.
21660
21661 2006-09-15  Jim Meyering  <jim@meyering.net>
21662
21663         * modules/rename-dest-slash: New module.
21664         * MODULES.html.sh (posix_compat): Add it here.
21665
21666         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21667
21668 2006-09-15  Jim Meyering  <jim@meyering.net>
21669
21670         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21671         file.
21672
21673         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21674
21675 2006-09-15  Jim Meyering  <jim@meyering.net>
21676
21677         * lib/rename-dest-slash.c (has_trailing_slash): Use
21678         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21679         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21680         test before testing whether SRC is a directory.
21681         Suggestions from Bruno Haible.
21682
21683         Avoid a warning about an unused variable.
21684         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21685         into the #ifdef block where it's used.
21686
21687         * lib/rename-dest-slash.c: New file.
21688
21689 2006-09-14  Bruno Haible  <bruno@clisp.org>
21690
21691         * lib/allocsa.c: Include <config.h> unconditionally.
21692         * lib/asnprintf.c: Likewise.
21693         * lib/asprintf.c: Likewise.
21694         * lib/c-strcasecmp.c: Likewise.
21695         * lib/c-strcasestr.c: Likewise.
21696         * lib/c-strncasecmp.c: Likewise.
21697         * lib/c-strstr.c: Likewise.
21698         * lib/classpath.c: Likewise.
21699         * lib/clean-temp.c: Likewise.
21700         * lib/concatpath.c: Likewise.
21701         * lib/copy-file.c: Likewise.
21702         * lib/csharpcomp.c: Likewise.
21703         * lib/csharpexec.c: Likewise.
21704         * lib/execute.c: Likewise.
21705         * lib/fatal-signal.c: Likewise.
21706         * lib/findprog.c: Likewise.
21707         * lib/fwriteerror.c: Likewise.
21708         * lib/gl_array_list.c: Likewise.
21709         * lib/gl_array_oset.c: Likewise.
21710         * lib/gl_avltree_list.c: Likewise.
21711         * lib/gl_avltree_oset.c: Likewise.
21712         * lib/gl_avltreehash_list.c: Likewise.
21713         * lib/gl_carray_list.c: Likewise.
21714         * lib/gl_linked_list.c: Likewise.
21715         * lib/gl_linkedhash_list.c: Likewise.
21716         * lib/gl_list.c: Likewise.
21717         * lib/gl_oset.c: Likewise.
21718         * lib/gl_rbtree_list.c: Likewise.
21719         * lib/gl_rbtree_oset.c: Likewise.
21720         * lib/gl_rbtreehash_list.c: Likewise.
21721         * lib/imaxabs.c: Likewise.
21722         * lib/imaxdiv.c: Likewise.
21723         * lib/javacomp.c: Likewise.
21724         * lib/javaexec.c: Likewise.
21725         * lib/javaversion.c: Likewise.
21726         * lib/linebreak.c: Likewise.
21727         * lib/localcharset.c: Likewise.
21728         * lib/lock.c: Likewise.
21729         * lib/mbchar.c: Likewise.
21730         * lib/mbswidth.c: Likewise.
21731         * lib/mkdtemp.c: Likewise.
21732         * lib/pipe.c: Likewise.
21733         * lib/printf-args.c: Likewise.
21734         * lib/printf-parse.c: Likewise.
21735         * lib/progname.c: Likewise.
21736         * lib/progreloc.c: Likewise.
21737         * lib/readlink.c: Likewise.
21738         * lib/sh-quote.c: Likewise.
21739         * lib/stpcpy.c: Likewise.
21740         * lib/stpncpy.c: Likewise.
21741         * lib/strcasecmp.c: Likewise.
21742         * lib/strcasestr.c: Likewise.
21743         * lib/strcspn.c: Likewise.
21744         * lib/striconv.c: Likewise.
21745         * lib/strncasecmp.c: Likewise.
21746         * lib/strnlen1.c: Likewise.
21747         * lib/strstr.c: Likewise.
21748         * lib/strtok_r.c: Likewise.
21749         * lib/tls.c: Likewise.
21750         * lib/tmpdir.c: Likewise.
21751         * lib/unicodeio.c: Likewise.
21752         * lib/unsetenv.c: Likewise.
21753         * lib/vasnprintf.c: Likewise.
21754         * lib/vasprintf.c: Likewise.
21755         * lib/wait-process.c: Likewise.
21756         * lib/xallocsa.c: Likewise.
21757         * lib/xsetenv.c: Likewise.
21758         * lib/xstriconv.c: Likewise.
21759
21760 2006-09-13  Simon Josefsson  <jas@extundo.com>
21761
21762         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21763         that internally, suggested by Ralf Wildenhues
21764         <Ralf.Wildenhues@gmx.de>.
21765
21766 2006-09-13  Simon Josefsson  <jas@extundo.com>
21767
21768         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21769         @LIBOBJS@.
21770         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21771
21772 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21773
21774         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21775         longer worry about uses that don't define HAVE_CONFIG_H.
21776         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21777         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21778         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21779         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21780         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21781         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21782         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21783         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21784         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21785         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21786         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21787         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21788         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21789         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21790         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21791         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21792         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21793         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21794         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21795         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21796         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21797         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21798         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21799         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21800         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21801         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21802         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21803         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21804         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21805         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21806         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21807         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21808         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21809         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21810         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21811         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21812         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21813         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21814         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21815         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21816         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21817         Likewise.
21818
21819 2006-09-13  Eric Blake  <ebb9@byu.net>
21820
21821         * lib/getopt.c: Fix typo in last commit.
21822
21823 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21824
21825         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21826         dgettext.
21827
21828 2006-09-12  Jim Meyering  <jim@meyering.net>
21829
21830         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21831         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21832         Reported by Nelson H. F. Beebe.
21833
21834 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21835
21836         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21837         program_invocation_name and program_invocation_short_name are
21838         initialized.
21839         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21840         and program_invocation_short_name to argp.h, so they are visible
21841         to user programs.
21842         * lib/argp.h: Likewise
21843
21844 2006-09-10  Bruno Haible  <bruno@clisp.org>
21845
21846         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21847         m4/inttypes_h.m4, m4/uintmax_t.m4.
21848
21849 2006-09-10  Bruno Haible  <bruno@clisp.org>
21850
21851         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21852         gl_AC_TYPE_UINTMAX_T.
21853
21854 2006-09-10  Bruno Haible  <bruno@clisp.org>
21855
21856         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21857
21858 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21859
21860         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21861         convention.  Text proposed by Bruno Haible.
21862         (struct argp_option): Document the use of N_() wrappers.
21863
21864         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21865         '\v', and translate the two parts separately, instead of feeding
21866         the whole string to gettext.  This allows to exclude
21867         '\v' from the strings visible to the translator by writing doc
21868         strings as N_("..") "\v" N_("..").
21869
21870 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21871
21872         * config/srclist.txt: Undo latest change; the bug was fixed.
21873
21874 2006-09-09  Bruno Haible  <bruno@clisp.org>
21875
21876         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21877         assignments if building a library without libtool.
21878         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21879         in func_emit_lib_Makefile_am.
21880         (func_import): When building a static library libfoo.a, arrange to
21881         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21882         (func_create_testdir): Likewise.
21883         * modules/gc (configure.ac, Makefile.am): If building statically,
21884         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21885         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21886         * modules/striconv (configure.ac, Makefile.am): Likewise.
21887         Based on a suggestion by Ralf Wildenhues.
21888
21889 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21890
21891         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21892         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21893         Also:
21894
21895         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21896         Add year_2050_test to catch glibc bug 2821
21897         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21898
21899         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21900         Prefer #ifdef to #if.
21901
21902         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21903         Return from 'main' instead of calling 'exit'.
21904
21905 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21906
21907         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21908         returned the maximum time_t value rather than (time_t) -1.
21909         Problem originally reported by William Bardwell
21910         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21911
21912         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21913         Moved to here ...
21914         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21915         ... from here.
21916
21917 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21918
21919         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21920         2821 is fixed.
21921
21922 2006-09-08  Jim Meyering  <jim@meyering.net>
21923
21924         Don't make generated files read-only.  That would bother too many
21925         people.  However, do retain the ability to work when targets are
21926         read-only: remove the destination and temporary files before writing
21927         them (when generated via sed or echo), or by using the -f option for
21928         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21929         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21930         * modules/byteswap, modules/configmake, modules/fcntl:
21931         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21932         * modules/localcharset, modules/netinet_in, modules/poll:
21933         * modules/stdbool, modules/stdint, modules/sys_select:
21934         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21935
21936 2006-09-08  Jim Meyering  <jim@meyering.net>
21937
21938         Avoid new build failure on FreeBSD 6.0.
21939         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21940         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21941         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21942
21943 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21944
21945         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21946
21947 2006-09-07  Jim Meyering  <jim@meyering.net>
21948
21949         Fix global typo in last change: use chmod u-w, not chmod u-x.
21950         Spotted by Paul Eggert and Bruce Korb.
21951         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21952         * modules/byteswap, modules/configmake, modules/fcntl:
21953         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21954         * modules/localcharset, modules/netinet_in, modules/poll:
21955         * modules/stdbool, modules/stdint, modules/sys_select:
21956         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21957
21958 2006-09-06  Jim Meyering  <jim@meyering.net>
21959
21960         Make generated files be read-only.
21961         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21962         Ensure that each generated file is now read-only.
21963         * modules/argz: Likewise.
21964         * modules/arpa_inet: Likewise.
21965         * modules/byteswap: Likewise.
21966         * modules/configmake: Likewise.
21967         * modules/fcntl: Likewise.
21968         * modules/fnmatch: Likewise.
21969         * modules/getopt: Likewise.
21970         * modules/glob: Likewise.
21971         * modules/inttypes: Likewise.
21972         * modules/netinet_in: Likewise.
21973         * modules/poll: Likewise.
21974         * modules/stdbool: Likewise.
21975         * modules/stdint: Likewise.
21976         * modules/sys_select: Likewise.
21977         * modules/sys_socket: Likewise.
21978         * modules/sys_stat: Likewise.
21979         * modules/sysexits: Likewise.
21980         * modules/localcharset: Same as above, but continue using temporary
21981         file named "t-$@" (why different?) rather than the "$@-t" used
21982         everywhere else.
21983
21984         * modules/sysexits (Makefile.am): Replace literal occurrences
21985         of "sysexit.h" more readable, and more consistent, "$@".
21986
21987 2006-09-06  Bruno Haible  <bruno@clisp.org>
21988
21989         * modules/striconv: New file.
21990         * modules/xstriconv: New file.
21991         * MODULES.html.sh (Internationalization functions): Add striconv,
21992         xstriconv.
21993
21994 2006-09-06  Bruno Haible  <bruno@clisp.org>
21995
21996         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21997         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21998         not using libtool correctly.
21999
22000 2006-09-06  Bruno Haible  <bruno@clisp.org>
22001
22002         * lib/striconv.h: New file.
22003         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22004         iconvstring.c.
22005         * lib/xstriconv.h: New file.
22006         * lib/xstriconv.c: New file.
22007
22008 2006-09-06  Bruno Haible  <bruno@clisp.org>
22009
22010         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22011         lib_..._LDFLAGS.
22012
22013 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22014
22015         * lib/argz_.h: Sync from Libtool.
22016
22017         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22018                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22019
22020         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22021
22022 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22023
22024         * modules/trim: New file.
22025
22026 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22027
22028         * lib/trim.h: New file.
22029         * lib/trim.c: New file.
22030
22031 2006-09-05  Bruno Haible  <bruno@clisp.org>
22032
22033         * MODULES.html.sh (String handling): Add trim.
22034
22035 2006-09-04  Karl Berry  <karl@gnu.org>
22036
22037         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22038         until next release.
22039
22040 2006-09-03  Bruno Haible  <bruno@clisp.org>
22041
22042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22043         correctly.
22044
22045 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22046
22047         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22048         not gl_GETLOADAVG.  Omit unneeded semicolons.
22049         Problems reported by Ralf Wildenhues in
22050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22051         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22052         at the end, which is the usual gnulib style.
22053
22054         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
22055         of doing all the work ourselves.
22056         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
22057         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
22058
22059 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
22062         Problem reported by Ralf Wildenhues in
22063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22064
22065         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
22066         HAVE_STRUCT_STATFS_F_FSTYPENAME.
22067
22068 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22069
22070         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
22071         yesterday's patch by changing test -n to test -z.
22072
22073 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22074
22075         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22076         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22077         the former is now obsolescent.
22078
22079         * modules/chdir-long (Depends-on): Add fcntl.
22080
22081 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22082
22083         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22084         obsolescent, and programs should use gnulib instead.
22085         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22086         but with prefixes changed.
22087
22088 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22091         or stdbool.h, because they might not exist while configuring.
22092
22093         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22094         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22095         does that for us.
22096         (O_DIRECTORY): Remove.
22097
22098 2006-08-31  Eric Blake  <ebb9@byu.net>
22099
22100         * gnulib-tool: Don't let emacs change spaces to TAB.
22101
22102 2006-08-31  Bruno Haible  <bruno@clisp.org>
22103
22104         * gnulib-tool: When calling func_import more than once, do it in a
22105         subshell.
22106         Reported by Eric Blake <ebb9@byu.net>.
22107
22108 2006-08-31  Bruno Haible  <bruno@clisp.org>
22109
22110         * gnulib-tool (nl): Remove variable.
22111         (sed_transform_lib_file): Use more robust test for config-h module.
22112         (func_import): Fix typo in 2006-08-25 patch.
22113
22114 2006-08-31  Bruno Haible  <bruno@clisp.org>
22115
22116         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22117         specified, augment Makefile.am variables instead of assigning them.
22118
22119 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         Work around a bug in both the Linux and SunOS 64-bit kernels:
22122         nanosleep mishandles sleeps for longer than 2**31 seconds.
22123         Problem reported by Frank v Waveren in
22124         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22126         Check for nanosleep bug.
22127         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22128
22129 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22130
22131         Work around a bug in both the Linux and SunOS 64-bit kernels:
22132         nanosleep mishandles sleeps for longer than 2**31 seconds.
22133         Problem reported by Frank v Waveren in
22134         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22135         * lib/nanosleep.c (BILLION): New constant.
22136         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22137         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22138         implementation.
22139
22140 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22141
22142         * modules/nanosleep (Depends-on): Add gettime.
22143
22144 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22145         and Simon Josefsson  <jas@extundo.com>
22146         and Oskar Liljeblad  <oskar@osk.mine.nu>
22147
22148         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22149         * gnulib-tool (func_import): New license type 'unmodifiable license
22150         text'.
22151         * modules/fdl: Use it.  Longer description.
22152         * module/gpl, module/lgpl: New files.
22153
22154 2006-08-30  Jim Meyering  <jim@meyering.net>
22155
22156         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22157         shadowing the parameter.
22158
22159 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22160
22161         Sync from Libtool:
22162
22163         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22164
22165         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22166         sharing with gnulib.  Report by Eric Blake.
22167
22168 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         * modules/isapipe: New file.
22171         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22172
22173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22174
22175         * modules/configmake (Makefile.am): Add a comment, and omit
22176         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22177         by Bruno Haible.
22178
22179 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22180
22181         * m4/isapipe.m4: New file.
22182
22183 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22184
22185         * lib/isapipe.c, lib/isapipe.h: New files.
22186
22187 2006-08-29  Jim Meyering  <jim@meyering.net>
22188
22189         * modules/configmake (Makefile.am): Make configmake.h depend on
22190         Makefile.  Otherwise, a stale configmake.h could hang around.
22191
22192 2006-08-29  Eric Blake  <ebb9@byu.net>
22193
22194         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22195         resolution of upstream bug 3044.
22196
22197 2006-08-29  Bruno Haible  <bruno@clisp.org>
22198
22199         * modules/localcharset (Depends-on): Add configmake.
22200         (Makefile.am): Remove setting of LIBDIR through DEFS.
22201
22202 2006-08-29  Bruno Haible  <bruno@clisp.org>
22203
22204         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22205         defined.
22206
22207 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         * modules/fcntl: New file.
22210         * modules/chdir-safer (Depends-on): Add fcntl.
22211         * modules/fts: Likewise.
22212         * modules/mkdir-p: Likewise.
22213
22214         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22215         This undoes the most recent change, since we're now addressing the
22216         problem in a different way.
22217
22218         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22219         into output, since the output might be called Makefile.am even
22220         if $makefile_name is something different.
22221         (func_import): Use $makefile_am rather than
22222         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22223         empty.
22224
22225         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22226
22227 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22228
22229         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22230         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22231         recent change to stdint.m4, since we're now addressing the problem in a
22232         different way.
22233
22234 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22235
22236         * m4/fcntl_h.m4: New file.
22237
22238 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22239
22240         * lib/fcntl_.h: New file.
22241         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22242         the fcntl module.
22243         * lib/dirchownmod.c: Likewise.
22244         * lib/fts.c: Likewise.
22245
22246         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22247         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22248         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22249         just before including <inttypes.h>, to avoid circular inclusion.
22250
22251 2006-08-28  Jim Meyering  <jim@meyering.net>
22252
22253         * doc/visibility.texi: Actually read and correct the grammar of the
22254         sentence affected by yesterday's change.
22255
22256 2006-08-28  Eric Blake  <ebb9@byu.net>
22257
22258         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22259         needs wrapper.
22260
22261 2006-08-28  Eric Blake  <ebb9@byu.net>
22262
22263         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22264
22265 2006-08-28  Eric Blake  <ebb9@byu.net>
22266
22267         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22268
22269 2006-08-28  Bruno Haible  <bruno@clisp.org>
22270
22271         * modules/c-strstr: New file, from GNU gettext.
22272         * MODULES.html.sh (String handling): Add c-strstr.
22273
22274 2006-08-28  Bruno Haible  <bruno@clisp.org>
22275
22276         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22277         macros.
22278         Reported by Eric Blake.
22279
22280 2006-08-28  Bruno Haible  <bruno@clisp.org>
22281
22282         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22283         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22284         * lib/vasprintf.c: Include errno.h, limits.h.
22285         (EOVERFLOW): New fallback definition.
22286         (vasprintf): Test here whether the string length is > INT_MAX.
22287         * lib/vsnprintf.c: Include errno.h, limits.h.
22288         (EOVERFLOW): New fallback definition.
22289         (vsnprintf): Fix bug when generated string was too long for the buffer.
22290         Test here whether the string length is > INT_MAX.
22291
22292 2006-08-28  Bruno Haible  <bruno@clisp.org>
22293
22294         * lib/inttypes_.h (SCNX*): Remove definitions.
22295         Reported by Eric Blake.
22296
22297 2006-08-28  Bruno Haible  <bruno@clisp.org>
22298
22299         * lib/c-strstr.h: New file, from GNU gettext.
22300         * lib/c-strstr.c: New file, from GNU gettext.
22301
22302 2006-08-28  Bruno Haible  <bruno@clisp.org>
22303
22304         * gnulib-tool: Reorder some statements.
22305
22306 2006-08-28  Bruno Haible  <bruno@clisp.org>
22307
22308         * gnulib-tool: New option --makefile-name.
22309         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22310         $makefile_name.
22311         (func_import): Write $makefile_name to the cache file, and read it from
22312         there unless explicitly specified. Use $makefile_name as file name
22313         instead of Makefile.am. Adjust the recommendations accordingly.
22314
22315 2006-08-28  Bruno Haible  <bruno@clisp.org>
22316
22317         * gnulib-tool (func_verify_module): Check against misapplying patch.
22318
22319 2006-08-28  Bruno Haible  <bruno@clisp.org>
22320
22321         * gnulib-tool (func_relativize, func_relconcat): New functions.
22322         Give an error if --local-dir is given with --update.
22323         Remove trailing slashes from $local_gnulib_dir.
22324         (func_import): Store the relativized $local_gnulib_dir in
22325         gnulib-cache.m4, and read it from there if not specified explicitly.
22326
22327 2006-08-28  Bruno Haible  <bruno@clisp.org>
22328
22329         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22330         is the current directory. Respect also $local_gnulib_dir.
22331
22332 2006-08-28  Bruno Haible  <bruno@clisp.org>
22333             Simon Josefsson  <jas@extundo.com>
22334
22335         BeOS portability.
22336         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22337
22338 2006-08-27  Jim Meyering  <jim@meyering.net>
22339
22340         * doc/visibility.texi: Remove duplicate word: "pointer".
22341
22342 2006-08-26  Bruno Haible  <bruno@clisp.org>
22343
22344         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22345         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22346         (Makefile.am): Create inttypes.h from inttypes_.h.
22347         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22348
22349         * modules/imaxabs: New file.
22350
22351         * modules/imaxdiv: New file.
22352
22353 2006-08-26  Bruno Haible  <bruno@clisp.org>
22354
22355         * m4/inttypes.m4: New file.
22356         * m4/_inttypes_h.m4: Remove file.
22357         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22358         PRI_MACROS_BROKEN.
22359         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22360
22361         * m4/imaxabs.m4: New file.
22362
22363         * m4/imaxdiv.m4: New file.
22364
22365 2006-08-26  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/inttypes_.h: New file.
22368         * lib/inttypes.h: Remove file.
22369         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22370
22371         * lib/imaxabs.c: New file.
22372
22373         * lib/imaxdiv.c: New file.
22374
22375 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22376
22377         New config-h module, so that "make" output needn't be cluttered
22378         by -DHAVE_CONFIG_H.
22379         * MODULES.html.sh (Support for building libraries and executables):
22380         Add config-h.
22381         * modules/config-h: New file.
22382         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22383         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22384         the config-h module is used.
22385
22386         New configmake module, so that "make" output needn't be cluttered
22387         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22388         * MODULES.html.sh (Support for building libraries and executables):
22389         Add configmake.
22390         * modules/configmake: New file.
22391
22392 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22393
22394         * m4/config-h.m4: New file.
22395
22396 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         * config/srclist.txt: Add elisp-comp.
22399
22400 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         * MODULES.html.sh (Support for building libraries and executables):
22403         Add elisp-comp.
22404         * build-aux/elisp-comp: New file.
22405         * modules/elisp-comp: New file.
22406
22407 2006-08-24  Bruno Haible  <bruno@clisp.org>
22408
22409         * gnulib-tool (func_create_testdir): Use non-default values of
22410         sourcebase and m4base.
22411
22412 2006-08-24  Bruno Haible  <bruno@clisp.org>
22413
22414         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22415         HTML structure.
22416
22417 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22418
22419         * modules/openat (Depends-on): Add lchown.
22420
22421 2006-08-23  Bruno Haible  <bruno@clisp.org>
22422
22423         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22424         of gl_LOCK_EARLY instead of gl_LOCK.
22425
22426 2006-08-23  Bruno Haible  <bruno@clisp.org>
22427
22428         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22429         on OSF/1 to no.
22430         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22431
22432 2006-08-23  Bruno Haible  <bruno@clisp.org>
22433
22434         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22435         as unusable.
22436
22437         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22438         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22439         (gl_LOCK): New macro.
22440
22441 2006-08-22  Simon Josefsson  <jas@extundo.com>
22442
22443         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22444         to md5 module.
22445
22446 2006-08-22  Simon Josefsson  <jas@extundo.com>
22447
22448         * MODULES.html.sh: Add "Support for maintaining and release
22449         projects".
22450
22451         * build-aux/gnupload: New file, from coreutils.
22452
22453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22454
22455         Avoid the need for AC_LIBSOURCES in m4 macros.
22456         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22457         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22458         * modules/check-version (EXTRA_DIST): Add check-version.h.
22459         * modules/crc (EXTRA_DIST): Add crc.h.
22460         * modules/des (EXTRA_DIST): Add des.h.
22461         * modules/gc (EXTRA_DIST): Add gc.h.
22462         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22463         * modules/getline (EXTRA_DIST): Add getline.h.
22464         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22465         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22466         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22467         * modules/md2 (EXTRA_DIST): Add md2.h.
22468         * modules/md4 (EXTRA_DIST): Add md4.h.
22469         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22470         * modules/read-file (EXTRA_DIST): Add read-file.h.
22471         * modules/readline (EXTRA_DIST): Add readline.h.
22472         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22473         rijndael-api-fst.h.
22474
22475 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22476
22477         * m4/rijndael.m4 (gl_ARCFOUR):
22478         * m4/arctwo.m4 (gl_ARCTWO):
22479         * m4/check-version.m4 (gl_CHECK_VERSION):
22480         * m4/crc.m4 (gl_CRC):
22481         * m4/des.m4 (gl_DES):
22482         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22483         * m4/gc.m4 (gl_GC):
22484         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22485         * m4/getline.m4 (gl_FUNC_GETLINE):
22486         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22487         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22488         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22489         * m4/md2.m4 (gl_MD2):
22490         * m4/md4.m4 (gl_MD4):
22491         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22492         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22493         * m4/readline.m4 (gl_FUNC_READLINE):
22494         * m4/rijndael.m4 (gl_RIJNDAEL):
22495         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22496         to get the necessary .h files and whatnot.
22497
22498 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22501         gnulib rather than the other way around.
22502         * config/srclistvars.sh (COREUTILS): Remove.
22503
22504 2006-08-22  Jim Meyering  <jim@meyering.net>
22505
22506         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22507
22508         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22509
22510 2006-08-22  Eric Blake  <ebb9@byu.net>
22511
22512         * modules/regexprops-generic: New file.
22513         * MODULES.html.sh (Support for building documentation): List it.
22514
22515 2006-08-22  Eric Blake  <ebb9@byu.net>
22516
22517         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22518         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22519         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22520         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22521
22522 2006-08-22  Bruno Haible  <bruno@clisp.org>
22523
22524         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22525         and lib_LTLIBRARIES like the other lib_* variables.
22526
22527 2006-08-22  Bruno Haible  <bruno@clisp.org>
22528
22529         * build-aux/x-to-1.in: New file, from GNU gettext.
22530
22531 2006-08-22  Bruno Haible  <bruno@clisp.org>
22532
22533         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22534         <utmpx.h> exists.
22535
22536 2006-08-22  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22539         <utmpx.h> exists.
22540
22541 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22542
22543         BeOS portability.
22544         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22545         exist.
22546         Problem reported by Bruno Haible.
22547
22548 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22549
22550         Avoid the need for AC_LIBSOURCES in m4 macros.
22551         * modules/acl (EXTRA_DIST): Add acl.h.
22552         * modules/argmatch (Files): Add m4/argmatch.m4.
22553         (configure.ac): Add gl_ARGMATCH.
22554         (EXTRA_DIST): Renamed from lib_SOURCES, for
22555         consistency with the other modules.  Remove argmatch.c.
22556         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22557         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22558         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22559         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22560         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22561         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22562         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22563         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22564         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22565         * modules/closeout (EXTRA_DIST): Add closeout.h.
22566         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22567         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22568         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22569         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22570         dirname.h; remove basename.c and stripslash.c.
22571         * modules/exclude (EXTRA_DIST): Add exclude.h.
22572         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22573         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22574         * modules/file-type (EXTRA_DIST): Add file-type.h.
22575         * modules/filemode (EXTRA_DIST): Add filemode.h.
22576         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22577         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22578         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22579         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22580         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22581         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22582         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22583         * modules/getdate (EXTRA_DIST): Add getdate.c.
22584         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22585         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22586         * modules/getpass (EXTRA_DIST): Add getpass.h.
22587         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22588         * modules/group-member (EXTRA_DIST): Add group-member.h.
22589         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22590         * modules/hash (EXTRA_DIST): Add hash.h.
22591         * modules/human (EXTRA_DIST): Add human.h.
22592         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22593         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22594         * modules/lchown (EXTRA_DIST): Add lchown.h.
22595         * modules/long-options (EXTRA_DIST): Add long-options.h.
22596         * modules/lstat (EXTRA_DIST): Add lstat.h.
22597         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22598         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22599         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22600         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22601         * modules/memxor (EXTRA_DIST): Add memxor.h.
22602         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22603         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22604         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22605         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22606         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22607         * modules/physmem (EXTRA_DIST): Add physmem.h.
22608         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22609         * modules/posixver (EXTRA_DIST): Add posixver.h.
22610         * modules/quote (EXTRA_DIST): Add quote.h.
22611         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22612         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22613         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22614         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22615         regex_internal.h regexec.c.
22616         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22617         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22618         * modules/same (EXTRA_DIST): Add same.h.
22619         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22620         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22621         * modules/savedir (EXTRA_DIST): Add savedir.h.
22622         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22623         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22624         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22625         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22626         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22627         * modules/strdup (EXTRA_DIST): Add strdup.h.
22628         * modules/strftime (EXTRA_DIST): Add strftime.h.
22629         * modules/strndup (EXTRA_DIST): Add strndup.h.
22630         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22631         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22632         * modules/time_r (EXTRA_DIST): Add time_r.h.
22633         * modules/timespec (EXTRA_DIST): Add timespec.h.
22634         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22635         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22636         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22637         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22638         * modules/userspec (EXTRA_DIST): Add userspec.h.
22639         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22640         * modules/utimens (EXTRA_DIST): Add utimens.h.
22641         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22642         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22643         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22644         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22645         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22646         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22647         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22648         * modules/yesno (EXTRA_DIST): Add yesno.h.
22649
22650 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22653
22654         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22655         * m4/dev-ino.m4, same-inode.m4: Remove.
22656
22657         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22658         * m4/acl.m4 (AC_FUNC_ACL):
22659         * m4/backupfile.m4 (gl_BACKUPFILE):
22660         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22661         * m4/canon-host.m4 (gl_CANON_HOST):
22662         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22663         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22664         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22665         * m4/cloexec.m4 (gl_CLOEXEC):
22666         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22667         * m4/closeout.m4 (gl_CLOSEOUT):
22668         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22669         * m4/dirname.m4 (gl_DIRNAME):
22670         * m4/exclude.m4 (gl_EXCLUDE):
22671         * m4/exitfail.m4 (gl_EXITFAIL):
22672         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22673         * m4/file-type.m4 (gl_FILE_TYPE):
22674         * m4/filemode.m4 (gl_FILEMODE):
22675         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22676         * m4/fpending.m4 (gl_FUNC_FPENDING):
22677         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22678         * m4/fts.m4 (gl_FUNC_FTS):
22679         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22680         * m4/getdate.m4 (gl_GETDATE):
22681         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22682         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22683         * m4/getpass.m4 (gl_FUNC_GETPASS):
22684         * m4/gettime.m4 (gl_GETTIME):
22685         * m4/getugroups.m4 (gl_GETUGROUPS):
22686         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22687         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22688         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22689         * m4/hash.m4 (gl_HASH):
22690         * m4/idcache.m4 (gl_IDCACHE):
22691         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22692         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22693         * m4/long-options.m4 (gl_LONG_OPTIONS):
22694         * m4/lstat.m4 (gl_FUNC_LSTAT):
22695         * m4/md5.m4 (gl_MD5):
22696         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22697         * m4/memcoll.m4 (gl_MEMCOLL):
22698         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22699         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22700         * m4/memxor.m4 (gl_MEMXOR):
22701         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22702         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22703         * m4/modechange.m4 (gl_MODECHANGE):
22704         * m4/mountlist.m4 (gl_MOUNTLIST):
22705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22706         * m4/openat.m4 (gl_FUNC_OPENAT):
22707         * m4/pathmax.m4 (gl_PATHMAX):
22708         * m4/physmem.m4 (gl_PHYSMEM):
22709         * m4/posixtm.m4 (gl_POSIXTM):
22710         * m4/posixver.m4 (gl_POSIXVER):
22711         * m4/quote.m4 (gl_QUOTE):
22712         * m4/quotearg.m4 (gl_QUOTEARG):
22713         * m4/readtokens.m4 (gl_READTOKENS):
22714         * m4/readutmp.m4 (gl_READUTMP):
22715         * m4/regex.m4 (gl_REGEX):
22716         * m4/safe-read.m4 (gl_SAFE_READ):
22717         * m4/safe-write.m4 (gl_SAFE_WRITE):
22718         * m4/same.m4 (gl_SAME):
22719         * m4/save-cwd.m4 (gl_SAVE_CWD):
22720         * m4/savedir.m4 (gl_SAVEDIR):
22721         * m4/settime.m4 (gl_SETTIME):
22722         * m4/sha1.m4 (gl_SHA1):
22723         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22724         * m4/stat-macros.m4 (gl_STAT_MACROS):
22725         * m4/stat-time.m4 (gl_STAT_TIME):
22726         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22727         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22728         * m4/strdup.m4 (gl_FUNC_STRDUP):
22729         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22730         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22731         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22732         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22733         * m4/time_r.m4 (gl_TIME_R):
22734         * m4/timespec.m4 (gl_TIMESPEC):
22735         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22736         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22737         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22738         * m4/userspec.m4 (gl_USERSPEC):
22739         * m4/utimecmp.m4 (gl_UTIMECMP):
22740         * m4/utimens.m4 (gl_UTIMENS):
22741         * m4/xalloc.m4 (gl_XALLOC):
22742         * m4/xgetcwd.m4 (gl_XGETCWD):
22743         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22744         * m4/xreadlink.m4 (gl_XREADLINK):
22745         * m4/xstrtod.m4 (gl_XSTRTOD):
22746         * m4/yesno.m4 (gl_YESNO):
22747         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22748         to get the necessary .h files and whatnot.
22749
22750 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22751             Bruno Haible  <bruno@clisp.org>
22752
22753         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22754         /bin/sh understanding of '!' conditional negation.
22755
22756 2006-08-21  Jim Meyering  <jim@meyering.net>
22757
22758         * modules/openat (Depends-on): Really alphabetize.
22759
22760         * modules/acl (Depends-on): Add error and quote.
22761
22762         * check-module (find_included_lib_files): Add at-func.c to the
22763         ok-to-include-more-than-once white list.
22764
22765         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22766
22767 2006-08-21  Bruno Haible  <bruno@clisp.org>
22768
22769         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22770         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22771         Reported by Martin Lambers <marlam@marlam.de>.
22772
22773 2006-08-21  Bruno Haible  <bruno@clisp.org>
22774
22775         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22776         specify an installation location, don't emit a noinst_LIBRARIES or
22777         noinst_LTLIBRARIES assignment.
22778
22779 2006-08-21  Bruno Haible  <bruno@clisp.org>
22780
22781         BeOS portability.
22782         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22783         BeOS has mbrtowc() but no <wctype.h>.
22784
22785 2006-08-21  Bruno Haible  <bruno@clisp.org>
22786
22787         BeOS portability.
22788         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22789         exist.
22790
22791 2006-08-21  Bruno Haible  <bruno@clisp.org>
22792
22793         BeOS portability.
22794         * lib/mbchar.h: Include <wctype.h> only if it exists.
22795
22796 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22797
22798         Remove files that are no longer needed by their respective modules.
22799         * m4/obstack.m4: Remove.
22800         * m4/strerror_r.m4: Remove.
22801         * m4/uint32_t.m4: Remove.
22802         * m4/uintptr_t.m4: Remove.
22803         * m4/ullong_max.m4: Remove.
22804         * m4/xstrtoimax.m4: Remove.
22805         * m4/xstrtoumax.m4: Remove.
22806
22807         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22808         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22809         dependencies now capture this.
22810
22811         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22812         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22813         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22814         * m4/human.m4 (gl_HUMAN): Likewise.
22815         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22816         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22817
22818         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22819
22820         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22821         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22822         stdint.
22823         * m4/human.m4 (gl_HUMAN): Likewise.
22824         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22825         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22826         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22827         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22828         * m4/xstrtol (gl_XSTRTOL): Likewise.
22829
22830         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22831         AC_TYPE_LONG_LONG_INT.
22832         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22833         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22834         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22835         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22836
22837         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22838         on stdbool.
22839
22840         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22841         (gl_PREREQ_XSTRTOUL): Remove.
22842
22843         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22844
22845         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22846         mode.
22847
22848 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22849
22850         Add and change modules to make it easier for coreutils to use
22851         gnulib-tool.
22852         * modules/backupfile (Files): Remove m4/d-ino.m4.
22853         (Depends-on): Add d-ino.
22854         * modules/cycle-check (Depends-on): Add stdint.
22855         (lib_SOURCES): Add cycle-check.h.
22856         * modules/d-ino: New module.
22857         * modules/d-type: New module.
22858         * modules/error (Files): Remove m4/strerror_r.m4.
22859         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22860         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22861         m4/inttypes_h.m4, m4/uintmax_t.m4.
22862         (Depends-on): Add stdint.
22863         (lib_SOURCES): Add fsusage.h.
22864         * modules/getcwd (Files): Remove d-ino.m4.
22865         (Depends-on): Add d-ino.
22866         * modules/getndelim2 (Depends-on): Add stdint.
22867         * modules/glob (Files): Remove m4/d-type.m4.
22868         (Depends-on): Add d-type.
22869         * modules/host-os: New module.
22870         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22871         m4/inttypes_h.m4, m4/uintmax_t.m4.
22872         * Depends-on: Add stdint.
22873         (lib_SOURCES): Add human.h.
22874         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22875         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22876         m4/uintmax_t.m4, m4/ulonglong.m4.
22877         (Depends-on): Add stdint.
22878         (EXTRA_DIST): Add inttostr.h.
22879         * modules/lchmod: New module.
22880         * modules/link-follow: New module.
22881         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22882         (Depends-on): Add lchmod.
22883         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22884         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22885         (Depends-on): Add stdint.
22886         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22887         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22888         (Depends-on): Add stdint.
22889         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22890         * modules/perl: New module.
22891         * modules/regex (Depends-on): Add stdint.
22892         * modules/rmdir-errno: New module.
22893         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22894         m4/intmax_t.m4.
22895         (Depends-on): Add stdint.
22896         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22897         m4/uintmax_t.m4.
22898         (Depends-on): Add stdint.
22899         * modules/unlink-busy: New module.
22900         * modules/utimecmp (Depends-on): Add stdint.
22901         * modules/uptime: New module.
22902         * modules/winsz-ioctl: New module.
22903         * modules/winsz-termios: New module.
22904         * modules/xnanosleep (Depends-on): Add nanosleep.
22905         * modules/ullong_max: Remove.
22906         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22907         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22908         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22909         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22910         (Depends-on): Add inttypes.
22911         (lib_SOURCES): Add xstrtol.h.
22912         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22913         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22914         * MODULES.html.sh: Move 'assert' into the assert section.
22915         Move 'dummy' into the linking section.
22916         Remove ullong_max.
22917         Add section for compatibility checks for POSIX:2001 functions,
22918         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22919         winsz-ioctl, and winsz-termios into it.
22920         Add lchmod.
22921         Add top-level Misc section and put host-os, perl, and uptime
22922         into it.
22923
22924 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22925
22926         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22927         now assume the stdint module.  Do not include inttypes.h.
22928         * lib/fsusage.h: Likewise.
22929         * lib/getndelim2.c: Likewise.
22930         * lib/human.h: Likewise.
22931         * lib/inttostr.h: Likewise.
22932         * lib/obstack.c: Likewise.
22933         * lib/regex_internal.h: Likewise.
22934         * lib/tempname.c: Likewise.
22935         * lib/utimecmp.c: Likewise.
22936         * lib/xstrtol.h: Likewise.
22937
22938         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22939
22940         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22941         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22942         * lib/xtime.h: Likewise.
22943
22944 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22945
22946         * modules/openat (Files): Add lib/fchmodat.c.
22947         Fixes problem reported by Jay Youngman.
22948
22949 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22950
22951         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22952         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22953
22954 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22955             Bruno Haible  <bruno@clisp.org>
22956
22957         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22958         and is a script that invokes bison. Tighten the code. Add comments.
22959
22960 2006-08-18  Jim Meyering  <jim@meyering.net>
22961
22962         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22963         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22964         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22965         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22966
22967 2006-08-18  Bruno Haible  <bruno@clisp.org>
22968
22969         * modules/bison-i18n: New file.
22970         * MODULES.html.sh (Internationalization functions): Add it.
22971
22972 2006-08-18  Bruno Haible  <bruno@clisp.org>
22973
22974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22975         sys/statvfs.h. When getmntinfo was found, check its declaration and
22976         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22977
22978 2006-08-18  Bruno Haible  <bruno@clisp.org>
22979
22980         * m4/bison-i18n.m4: New file, from bison.
22981
22982 2006-08-18  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22985         (ME_DUMMY): Treat "kernfs" as a dummy.
22986         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22987
22988 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22989
22990         Update from coreutils.
22991
22992         2006-08-15  Jim Meyering  <jim@meyering.net>
22993
22994         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22995
22996         2006-01-17  Jim Meyering  <jim@meyering.net>
22997
22998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22999
23000         2006-01-11  Jim Meyering  <jim@meyering.net>
23001
23002         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23003         Check for the lchmod function.
23004
23005 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23006
23007         Update from coreutils.
23008
23009         * lib/__fpending.h: Add copyright notice.
23010         * lib/fprintftime.h: Likewise.
23011         * lib/savedir.c: Use (C) in copyright notice.
23012         * lib/savedir.h: Likewise.
23013
23014         2006-08-15  Jim Meyering  <jim@meyering.net>
23015
23016         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23017         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23018         in support of the EXPECTED_ERRNO macro.
23019         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23020         definitions.  Instead, define the appropriate symbols and include
23021         "at-func.c".
23022         * lib/mkdirat.c (mkdirat): Likewise.
23023         * lib/fchmodat.c (fchmodat): Likewise.
23024         (ENOSYS): Remove definition.
23025         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23026         it.  Don't include "unistd--.h" -- it wasn't ever used.
23027
23028         2006-01-17  Jim Meyering  <jim@meyering.net>
23029
23030         Rewrite fts.c not to change the current working directory,
23031         by using openat, fstatat, fdopendir, etc..
23032
23033         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23034         (HAVE_OPENAT_SUPPORT): Define.
23035         [_LIBC] (fchdir): Don't undef or define; no longer used.
23036         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23037         Now, this `function' always succeeds, and consumes its file descriptor
23038         parameter -- so callers must not close such FDs.  Update callers.
23039         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23040         (diropen): Add parameter, SP.  Adjust all callers.
23041         Implement using diropen_fd, rather than open.
23042         (fts_open): Initialize new member, fts_cwd_fd.
23043         Remove fts_rft-setting code.
23044         (fts_close): Close fts_cwd_fd, if necessary.
23045         (__opendir2): Define in terms of opendir or opendirat,
23046         depending on whether the FST_NOCHDIR flag is set.
23047         (fts_build): Since fts_safe_changedir consumes its FD, and since
23048         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23049         and close the dup'd file descriptor upon failure.
23050         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23051         (fts_safe_changedir): Tweak semantics to reflect that this function
23052         now calls cwd_advance_fd and hence consumes its FD argument.
23053         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
23054         [struct FTS] (fts_rft): Remove now-unused member.
23055         [struct FTS] (fts_cycle.state): Improve comment.
23056
23057         * lib/openat.c (openat_needs_fchdir): New function.
23058         * lib/openat.h (openat_needs_fchdir): Declare it.
23059
23060 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23061
23062         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
23063         Problem and fix reported by Pádraig Brady in
23064         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
23065
23066 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23067
23068         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
23069
23070 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23071
23072         * lib/memcoll.c (memcoll): Optimize for the common case where the
23073         arguments are bytewise equal.
23074
23075 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         * doc/regexprops-generic.texi: Add a copyright notice.
23078
23079 2006-08-15  Bruno Haible  <bruno@clisp.org>
23080
23081         * modules/tmpdir (License): Change to LGPL.
23082
23083 2006-08-15  Bruno Haible  <bruno@clisp.org>
23084
23085         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23086         module.
23087
23088 2006-08-14  Simon Josefsson  <jas@extundo.com>
23089
23090         * config/srclist.txt: Add gnupload.
23091
23092 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23093
23094         Change copyright notice from LGPL 2 to GPL 2, since that's the
23095         standard form used in the gnulib repository.
23096         * tests/test-lock.c: Likewise.
23097         * tests/test-stdint.c: Likewise.
23098         * tests/test-tls.c: Likewise.
23099
23100         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23101         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23102         Add copyright notice.
23103
23104         * check-module: Add copyright notice.  Output a copyright
23105         notice if "--version" is specified.
23106         * modules/COPYING: New file.
23107         * tests/test-getaddrinfo.c: Add copyright notice.
23108         * tests/test-verify.c: Likewise.
23109
23110 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23111
23112         Change copyright notice from LGPL 2 to GPL 2, since that's the
23113         standard form used in the gnulib repository.
23114         * lib/lock.c: LGPL -> GPL.
23115         * lib/lock.h: Likewise.
23116         * lib/strnlen1.c: Likewise.
23117         * lib/strnlen1.h: Likewise.
23118         * lib/tls.c: Likewise.
23119         * lib/tls.h: Likewise.
23120         * lib/tmpdir.c: Likewise.
23121
23122         * lib/TODO: Remove; this belongs only in coreutils.
23123
23124 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23125
23126         Add copyright notices to long-enough files that lack them, since
23127         otherwise the files aren't clearly free.  Use the same notice that
23128         getdate.texi already uses.
23129         * doc/alloca-opt.texi: Add copyright notice.
23130         * doc/alloca.texi: Likewise.
23131         * doc/ctime.texi: Likewise.
23132         * doc/functions.texi: Likewise.
23133         * doc/gcd.texi: Likewise.
23134         * doc/gnulib-tool.texi: Likewise.
23135         * doc/inet_ntoa.texi: Likewise.
23136         * doc/visibility.texi: Likewise.
23137
23138         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23139         * doc/quote.texi: Add copyright notice.
23140
23141         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23142         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23143         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23144         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23145         is now obsolete, and give a pointer to the Sun list.
23146         Add copyright notice.
23147
23148 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23149
23150         * config/srclistvars.sh: Add copyright notice.
23151
23152 2006-08-14  Eric Blake  <ebb9@byu.net>
23153
23154         Import the following change from libc:
23155
23156         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23157
23158         Upstream bug 2997.
23159         * lib/misc/error.c: Add space between program name and message if file
23160         name is missing.
23161
23162 2006-08-12  Karl Berry  <karl@gnu.org>
23163
23164         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23165         remove, these originate in gnulib now.
23166
23167 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23168
23169         * doc/Makefile (standards.info standards.html standards.dvi):
23170         Also depend on make-stds.texi.
23171
23172 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23175         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23176
23177         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23178         in wchar_t.  Problem reported by Eric Blake.
23179
23180         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23181         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23182         Also, help the compiler to keep LEN in a register.
23183
23184 2006-08-11  Eric Blake  <ebb9@byu.net>
23185
23186         * users.txt: Sort.  Add tar.
23187
23188 2006-08-11  Bruno Haible  <bruno@clisp.org>
23189
23190         * users.txt: New file.
23191
23192 2006-08-11  Bruno Haible  <bruno@clisp.org>
23193
23194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23195         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23196
23197 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         * modules/snprintf (Depends-on): Remove minmax.
23200         (Maintainer): Add self and Bruno.
23201
23202 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23203
23204         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23205         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23206         (EOVERFLOW): Define if the system does not.
23207         Do not include "minmax.h"; it wasn't used.
23208         (snprintf): Don't assume size_t promotes to an unsigned type.
23209         Fix bug when generated string was too long for the buffer: the
23210         buffer's contents are supposed to be the initial prefix of the
23211         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23212         exceeds INT_MAX; do the check ourselves.
23213
23214         Import the following changes from libc:
23215
23216         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23217
23218         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23219         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23220         set wc to the byte which couldn't be converted.
23221         (re_string_reconstruct): Don't clear valid_raw_len before calling
23222         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23223         tip_context using re_string_context_at.
23224
23225         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23226
23227         * lib/posix/regex.h: g++ still cannot handled [restrict].
23228
23229         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23230
23231         * lib/posix/regex.h: Remove special handling for VMS.
23232
23233 2006-08-10  Jim Meyering  <jim@meyering.net>
23234
23235         * modules/same-inode: New module.
23236         * modules/dev-ino: New module.
23237         * modules/cycle-check: Depend on these modules, rather than simply
23238         including their .h files.
23239         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23240         required via m4/cycle-check.m4.
23241         * modules/same: Depend on new same-inode module, rather than
23242         including same-inode.h.
23243         * modules/chdir-safer: New file.
23244
23245         * modules/chown (Depends-on): Add stat-macros.
23246
23247 2006-08-10  Jim Meyering  <jim@meyering.net>
23248
23249         * m4/cycle-check.m4: New file.
23250         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23251         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23252
23253 2006-08-10  Eric Blake  <ebb9@byu.net>
23254
23255         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23256         in from original proposal.
23257
23258 2006-08-10  Eric Blake  <ebb9@byu.net>
23259         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23260
23261         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23262         namespace.
23263
23264 2006-08-10  Bruno Haible  <bruno@clisp.org>
23265
23266         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23267         as well.
23268
23269 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23270
23271         Sync from coreutils.
23272
23273         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23274
23275         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23276         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23277
23278 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23279
23280         * modules/restrict: Remove; no longer needed now that we assume
23281         Autoconf 2.59 or later.
23282         * MODULES.html.sh: Remove 'restrict'.
23283         * modules/argp (Depends-on): Remove 'restrict'.
23284         * modules/base64 (Depends-on): Likewise.
23285         * modules/gc (Depends-on): Likewise.
23286         * modules/getaddrinfo (Depends-on): Likewise.
23287         * modules/glob (Depends-on): Likewise.
23288         * modules/inet_ntop (Depends-on): Likewise.
23289         * modules/inet_pton (Depends-on): Likewise.
23290         * modules/memxor (Depends-on): Likewise.
23291         * modules/regex (Depends-on): Likewise.
23292         * modules/strtok_r (Depends-on): Likewise.
23293         * modules/time_r (Depends-on): Likewise.
23294
23295 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23296
23297         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23298         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23299         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23300         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23301         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23302         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23303         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23304         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23305
23306         Merge from coreutils.
23307         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23308         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23309         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23310         * m4/time_r.m4 (gl_TIME_R): Likewise.
23311
23312 2006-08-09  Karl Berry  <karl@gnu.org>
23313
23314         * config/srclist.txt: no more gettext-tools, per Bruno.
23315
23316 2006-08-08  Eric Blake  <ebb9@byu.net>
23317
23318         * modules/verror: New module.
23319         * MODULES.html.sh: Document it.
23320
23321 2006-08-08  Eric Blake  <ebb9@byu.net>
23322
23323         * lib/verror.h, lib/verror.c: New files.
23324
23325 2006-08-08  Eric Blake  <ebb9@byu.net>
23326
23327         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23328         verror_at_line output complies with GNU Coding Standards even when
23329         file is NULL.
23330
23331 2006-08-07  Bruno Haible  <bruno@clisp.org>
23332
23333         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23334         versions of AIX.
23335         Reported by Ralf Wildenhues.
23336
23337 2006-08-07  Bruno Haible  <bruno@clisp.org>
23338
23339         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23340         in an AC_DEFUN. Needed so that the autoconf snippets can use
23341         AC_REQUIRE.
23342
23343 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23344
23345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23346         Initialize pkgdata_DATA.
23347         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23348         overriding it.
23349
23350 2006-08-06  Eric Blake  <ebb9@byu.net>
23351
23352         * lib/error.h: Fold in some upstream changes from glibc.
23353         * lib/error.c: Likewise.
23354
23355 2006-08-04  Bruno Haible  <bruno@clisp.org>
23356
23357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23358         Make the mostlyclean-local rule depend on mostlyclean-generic.
23359         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23360
23361 2006-07-31  Bruno Haible  <bruno@clisp.org>
23362
23363         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23364         <stdlib.h>, <string.h>.
23365
23366 2006-07-30  Bruno Haible  <bruno@clisp.org>
23367
23368         * modules/readlink (License): Change to LGPL.
23369
23370 2006-07-30  Bruno Haible  <bruno@clisp.org>
23371
23372         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23373         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23374         set PKGDATADIR to point to it.
23375
23376 2006-07-30  Bruno Haible  <bruno@clisp.org>
23377
23378         * modules/csharpexec (configure.ac): Comment out macro invocation.
23379         * modules/javaexec (configure.ac): Likewise.
23380         * modules/javacomp-script (configure.ac): Likewise.
23381
23382         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23383
23384 2006-07-30  Bruno Haible  <bruno@clisp.org>
23385
23386         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23387         linked-list.
23388
23389 2006-07-30  Bruno Haible  <bruno@clisp.org>
23390
23391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23392
23393 2006-07-30  Bruno Haible  <bruno@clisp.org>
23394
23395         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23396         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23397         get removed.
23398
23399 2006-07-29  Bruno Haible  <bruno@clisp.org>
23400
23401         Make it possible for gnulib-tool to work with locally modified or
23402         augmented gnulib repositories.
23403         * gnulib-tool (func_usage): Document --local-dir option.
23404         (local_gnulib_dir): New variable.
23405         Handle --local-dir option.
23406         (func_lookup_file): New function.
23407         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23408         (func_get_description, func_get_filelist, func_get_description,
23409         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23410         func_get_automake_snippet, func_get_include_directive,
23411         func_get_license, func_get_maintainer): Use func_lookup_file.
23412         (func_import, func_create_testdir): Use func_lookup_file.
23413
23414 2006-07-29  Bruno Haible  <bruno@clisp.org>
23415
23416         * modules/setenv (Depends-on): Add unistd.
23417
23418 2006-07-29  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23421
23422 2006-07-29  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23425
23426 2006-07-29  Bruno Haible  <bruno@clisp.org>
23427
23428         * gnulib-tool (import, update): If there is no Makefile.am, look at
23429         aclocal.m4, instead of bailing out.
23430
23431 2006-07-29  Bruno Haible  <bruno@clisp.org>
23432
23433         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23434         Categorize the options by when they are useful.
23435
23436 2006-07-29  Bruno Haible  <bruno@clisp.org>
23437
23438         * gnulib-tool (func_usage): Document option --no-libtool.
23439         Handle option --no-libtool.
23440         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23441         for changed semantics of $libtool variable.
23442         (func_import): Likewise. If libtool is not used, show this through
23443         an option --no-libtool.
23444         (func_create_testdir): Update.
23445
23446 2006-07-29  Bruno Haible  <bruno@clisp.org>
23447
23448         * gnulib-tool (func_import): Extend error message about missing
23449         --doc-base.
23450
23451 2006-07-29  Bruno Haible  <bruno@clisp.org>
23452
23453         * gnulib-tool (func_import): Don't create the $docbase directory if
23454         there is no file to store there.
23455
23456 2006-07-29  Bruno Haible  <bruno@clisp.org>
23457
23458         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23459         relevant, look for configure.ac there, not in the current directory.
23460         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23461
23462 2006-07-29  Bruno Haible  <bruno@clisp.org>
23463
23464         * gnulib-tool (SORT): New variable.
23465         (func_usage): Undocument --assume-autoconf option.
23466         Remove --assume-autoconf option handling.
23467         (autoconf_minversion): Determine from the contents of configure.ac.
23468         (func_import): Remove autoconf_minversion handling.
23469         Suggested by Eric Blake.
23470
23471 2006-07-29  Bruno Haible  <bruno@clisp.org>
23472
23473         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23474
23475 2006-07-29  Bruno Haible  <bruno@clisp.org>
23476
23477         * config/srclist.txt (*setenv.[ch]): Remove rules.
23478
23479 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23480
23481         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23482
23483 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23484
23485         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23486         arpa/inet.h.
23487
23488 2006-07-28  Simon Josefsson  <jas@extundo.com>
23489
23490         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23491         * modules/inet_pton (Depends-on): Likewise.
23492
23493 2006-07-28  Simon Josefsson  <jas@extundo.com>
23494
23495         * m4/netinet_in_h.m4: New file.
23496
23497 2006-07-28  Simon Josefsson  <jas@extundo.com>
23498
23499         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23500         #include's.
23501
23502 2006-07-28  Simon Josefsson  <jas@extundo.com>
23503
23504         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23505         #include's.
23506
23507 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23508
23509         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23510         setgid on directories only if they set these bits.
23511         * lib/modechange.h: Remove obsolete comment about masks.
23512
23513 2006-07-28  Eric Blake  <ebb9@byu.net>
23514
23515         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23516         macro expansion.
23517
23518 2006-07-28  Bruno Haible  <bruno@clisp.org>
23519
23520         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23521
23522 2006-07-28  Bruno Haible  <bruno@clisp.org>
23523
23524         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23525
23526 2006-07-28  Bruno Haible  <bruno@clisp.org>
23527
23528         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23529         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23530         Define fallbacks.
23531         Avoids link error on FreeBSD 4.x.
23532         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23533
23534         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23535         encoding.
23536         * lib/mbswidth.c (iswcntrl): Likewise.
23537
23538 2006-07-27  Bruno Haible  <bruno@clisp.org>
23539
23540         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23541         test.
23542
23543 2006-07-27  Bruno Haible  <bruno@clisp.org>
23544
23545         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23546         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23547         defined.
23548
23549 2006-07-26  Eric Blake  <ebb9@byu.net>
23550
23551         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23552
23553 2006-07-26  Eric Blake  <ebb9@byu.net>
23554
23555         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23556         like mingw that lack mkstemp.
23557         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23558         avoid compilation warning on mingw.
23559
23560 2006-07-26  Bruno Haible  <bruno@clisp.org>
23561
23562         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23563         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23564         INT_FAST*_MIN, INTPTR_MIN.
23565
23566 2006-07-25  Bruno Haible  <bruno@clisp.org>
23567
23568         * modules/version-etc (Depends-on): Add stdarg.
23569
23570 2006-07-25  Bruno Haible  <bruno@clisp.org>
23571
23572         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23573         complex commands.
23574
23575 2006-07-25  Bruno Haible  <bruno@clisp.org>
23576
23577         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23578         defined in <stdarg.h> or config.h.
23579
23580 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23581
23582         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23583         (gl_STDIO_SAFER): Remove.
23584
23585 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23586
23587         * MODULES.html.sh (File stream based Input/Output):
23588         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23589         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23590         * modules/fopen-safer, modules/tmpfile-safer: New files.
23591         * modules/stdio-safer: Remove.
23592
23593 2006-07-24  Bruno Haible  <bruno@clisp.org>
23594
23595         * modules/tmpdir: New file.
23596         * MODULES.html.sh (File system functions): Add it.
23597
23598 2006-07-24  Bruno Haible  <bruno@clisp.org>
23599
23600         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23601         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23602
23603 2006-07-24  Bruno Haible  <bruno@clisp.org>
23604
23605         * modules/clean-temp: New file.
23606
23607 2006-07-24  Bruno Haible  <bruno@clisp.org>
23608
23609         * m4/tmpdir.m4: New file, from GNU gettext.
23610
23611 2006-07-24  Bruno Haible  <bruno@clisp.org>
23612
23613         * lib/tmpdir.h: New file, from GNU gettext.
23614         * lib/tmpdir.c: New file, from GNU gettext.
23615
23616 2006-07-24  Bruno Haible  <bruno@clisp.org>
23617
23618         * lib/clean-temp.h: New file, from GNU gettext.
23619         * lib/clean-temp.c: New file, from GNU gettext.
23620
23621 2006-07-23  Eric Blake  <ebb9@byu.net>
23622
23623         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23624         (Depends-on): Add binary-io.
23625
23626 2006-07-23  Eric Blake  <ebb9@byu.net>
23627
23628         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23629
23630 2006-07-23  Eric Blake  <ebb9@byu.net>
23631
23632         * lib/tmpfile-safer.c: New file.
23633         * lib/stdio-safer.h (fopen_safer): Add prototype.
23634         * lib/stdio--.h (tmpfile): Make safer.
23635
23636 2006-07-23  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23639         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23640         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23641         gl_linked_remove_at): Use it.
23642
23643 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23644         and Simon Josefsson <jas@extundo.com>
23645
23646         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23647
23648         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23649
23650 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23651
23652         * modules/close-stream: New file.
23653         * modules/closeout (Description): Make it clear that it exits
23654         with a diagnostic on error.
23655         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23656         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23657
23658 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23659
23660         * m4/close-stream.m4: New file.
23661
23662 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * lib/close-stream.c, lib/close-stream.h: New files.
23665
23666 2006-07-22  Bruno Haible  <bruno@clisp.org>
23667
23668         Merge from GNU gettext 0.15.
23669
23670         2006-05-01  Bruno Haible  <bruno@clisp.org>
23671
23672                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23673
23674         2006-07-22  Bruno Haible  <bruno@clisp.org>
23675
23676                 * modules/javaversion: New file.
23677                 * MODULES.html.sh (Java): Add javaversion.
23678
23679         2006-03-12  Bruno Haible  <bruno@clisp.org>
23680
23681                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23682
23683         2005-12-04  Bruno Haible  <bruno@clisp.org>
23684
23685                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23686                 (untested).
23687
23688         2006-06-21  Bruno Haible  <bruno@clisp.org>
23689
23690                 Avoid warnings from recent versions of mcs.
23691                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23692                 -o, -L, -r any more. Use options documented since mcs-1.0
23693                 instead. Similarly for -g.
23694
23695         2005-12-04  Bruno Haible  <bruno@clisp.org>
23696
23697                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23698                 .resources, not .resource.
23699
23700         2005-07-09  Bruno Haible  <bruno@clisp.org>
23701
23702                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23703                 add a .dll suffix.
23704                 Reported by Mark Junker <mjscod@gmx.de>.
23705
23706         2006-07-22  Bruno Haible  <bruno@clisp.org>
23707
23708                 * modules/gettext: Upgrade to gettext-0.15.
23709                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23710                 m4/visibility.m4.
23711                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23712
23713 2006-07-22  Bruno Haible  <bruno@clisp.org>
23714
23715         Merge from GNU gettext 0.15.
23716
23717         2006-03-25  Bruno Haible  <bruno@clisp.org>
23718
23719                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23720
23721         2006-07-21  Bruno Haible  <bruno@clisp.org>
23722
23723                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23724                 "1.1".
23725
23726         2006-05-09  Bruno Haible  <bruno@clisp.org>
23727
23728                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23729                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23730                 for the conftestver execution.
23731
23732         2006-05-01  Bruno Haible  <bruno@clisp.org>
23733
23734                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23735                 optional target-version argument. Verify that the compiler
23736                 groks source of the specified source-version, or add -source
23737                 option as necessary. Verify that the compiler produces
23738                 bytecode in the specified target-version, or add -target and
23739                 -source options as necessary. Make the result of the test
23740                 available as variable CONF_JAVAC. Also log error output in
23741                 config.log.
23742
23743         2006-03-11  Bruno Haible  <bruno@clisp.org>
23744
23745                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23746
23747         2006-05-09  Bruno Haible  <bruno@clisp.org>
23748
23749                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23750                 CLASSPATH_SEPARATOR to a semicolon.
23751
23752         2006-03-12  Bruno Haible  <bruno@clisp.org>
23753
23754                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23755                 available as variable CONF_JAVA, for subsequent autoconf
23756                 tests. Also log error output in config.log.
23757
23758         2006-07-19  Bruno Haible  <bruno@clisp.org>
23759
23760                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23761                 that getline works on glibc2 systems. Needed to avoid trouble
23762                 in relocatable.c.
23763                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23764
23765         2005-12-04  Bruno Haible  <bruno@clisp.org>
23766
23767                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23768                 launcher (untested).
23769
23770         2005-12-04  Bruno Haible  <bruno@clisp.org>
23771
23772                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23773
23774         2006-07-22  Bruno Haible  <bruno@clisp.org>
23775
23776                 * gettext.m4: Update from GNU gettext-0.15.
23777                 * nls.m4: Likewise.
23778                 * po.m4: Likewise.
23779                 * inttypes-pri.m4: Likewise.
23780                 * inttypes-h.m4: Renamed from inttypes.m4.
23781                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23782
23783 2006-07-22  Bruno Haible  <bruno@clisp.org>
23784
23785         Merge from GNU gettext 0.15.
23786
23787         2005-07-05  Bruno Haible  <bruno@clisp.org>
23788
23789                 * printf-args.c (printf_fetchargs): Work around broken
23790                 definition of wint_t on mingw.
23791
23792         2005-02-12  Bruno Haible  <bruno@clisp.org>
23793
23794                 * xallocsa.h: Add extern "C" for C++.
23795
23796         2006-05-17  Bruno Haible  <bruno@clisp.org>
23797
23798                 Cygwin portability.
23799                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23800
23801         2006-04-30  Bruno Haible  <bruno@clisp.org>
23802
23803                 * progreloc.c: Include <mach-o/dyld.h> if available.
23804                 (find_executable): Use _NSGetExecutablePath when possible.
23805
23806         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23807
23808                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23809                 function.
23810
23811         2005-12-29  Bruno Haible  <bruno@clisp.org>
23812
23813                 * progreloc.c (set_program_name_and_installdir): Fix
23814                 compilation error.
23815
23816         2005-12-04  Bruno Haible  <bruno@clisp.org>
23817
23818                 Cygwin portability.
23819                 * progreloc.c: Include <windows.h> also on Cygwin.
23820                 (find_executable): Add support for Cygwin.
23821                 (set_program_name_and_installdir): Handle also platforms with
23822                 nonempty EXEEXT.
23823
23824         2006-07-11  Bruno Haible  <bruno@clisp.org>
23825
23826                 * javacomp.c: Fix a comment.
23827                 Reported by Jim Meyering.
23828
23829         2006-04-30  Bruno Haible  <bruno@clisp.org>
23830
23831                 * javacomp.h (compile_java_class): Add source_version,
23832                 target_version arguments.
23833                 * javacomp.c: Rewritten to choose only a compiler that
23834                 respects the specified source_version and target_version.
23835
23836         2006-06-27  Bruno Haible  <bruno@clisp.org>
23837
23838                 Assume correct S_ISDIR macro.
23839                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23840
23841         2006-07-22  Bruno Haible  <bruno@clisp.org>
23842
23843                 * javaversion.h: New file, from GNU gettext.
23844                 * javaversion.c: New file, from GNU gettext.
23845                 * javaversion.java: New file, from GNU gettext.
23846                 * javaversion.class: New file, from GNU gettext.
23847
23848         2006-05-17  Bruno Haible  <bruno@clisp.org>
23849
23850                 Cygwin portability.
23851                 * javaexec.c (execute_java_class): Test for jview program
23852                 also on Cygwin.
23853
23854         2006-04-09  Bruno Haible  <bruno@clisp.org>
23855
23856                 * fatal-signal.c: Don't include string.h.
23857                 (at_fatal_signal): Use a copying loop instead of memcpy.
23858
23859         2005-12-04  Bruno Haible  <bruno@clisp.org>
23860
23861                 * csharpexec.c: Add support for 'clix' launcher (untested).
23862                 (execute_csharp_using_sscli): New function.
23863                 (execute_csharp_program): Call it.
23864
23865         2006-06-21  Bruno Haible  <bruno@clisp.org>
23866
23867                 Avoid warnings from recent versions of mcs.
23868                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23869                 -o, -L, -r any more. Use options documented since mcs-1.0
23870                 instead. Similarly for -g.
23871
23872         2005-07-09  Bruno Haible  <bruno@clisp.org>
23873
23874                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23875                 add a .dll suffix.
23876                 Reported by Mark Junker <mjscod@gmx.de>.
23877
23878         2006-06-17  Bruno Haible  <bruno@clisp.org>
23879
23880                 * config.charset: Update for NetBSD 3.0.
23881
23882         2006-05-17  Bruno Haible  <bruno@clisp.org>
23883
23884                 Cygwin portability.
23885                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23886
23887         2006-05-16  Bruno Haible  <bruno@clisp.org>
23888
23889                 * localcharset.c [CYGWIN]: Include <windows.h>.
23890                 (get_charset_aliases): For Cygwin, return the same CPxxx
23891                 aliases list as under WIN32.
23892                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23893                 the environment variables. Fall back to GetACP().
23894
23895         2006-04-05  Bruno Haible  <bruno@clisp.org>
23896
23897                 * config.charset: Update Juan Manuel Guerrero's address.
23898
23899         2005-02-12  Bruno Haible  <bruno@clisp.org>
23900
23901                 * allocsa.h: Add extern "C" for C++.
23902
23903         2005-02-10  Bruno Haible  <bruno@clisp.org>
23904
23905                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23906                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23907
23908         2006-07-22  Bruno Haible  <bruno@clisp.org>
23909
23910                 * gettext.h: Update to GNU gettext-0.15.
23911
23912 2006-07-22  Bruno Haible  <bruno@clisp.org>
23913
23914         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23915         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23916         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23917
23918 2006-07-21  Eric Blake  <ebb9@byu.net>
23919
23920         * modules/stdlib-safer: New file.
23921         * MODULES.html.sh (File stream based Input/Output): Add
23922         stdlib-safer.
23923
23924 2006-07-21  Eric Blake  <ebb9@byu.net>
23925
23926         * lib/stdlib-safer.h: New file from coreutils, required by
23927         stdlib--.h.
23928
23929 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23930
23931         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23932
23933 2006-07-20  Bruno Haible  <bruno@clisp.org>
23934
23935         * gnulib-tool: Recognize new option --assume-autoconf.
23936         (autoconf_minversion): New variable.
23937         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23938
23939 2006-07-20  Bruno Haible  <bruno@clisp.org>
23940
23941         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23942
23943 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23944
23945         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23946         Reindent and repaginate.
23947
23948 2006-07-19  Derek Price  <derek@ximbiot.com>
23949
23950         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23951         Correct grammar.
23952
23953 2006-07-17  Bruno Haible  <bruno@clisp.org>
23954
23955         * modules/list: New file.
23956         * modules/array-list: New file.
23957         * modules/carray-list, modules/carray-list-tests: New files.
23958         * modules/linked-list, modules/linked-list-tests: New files.
23959         * modules/avltree-list, modules/avltree-list-tests: New files.
23960         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23961         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23962         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23963         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23964         * modules/oset: New file.
23965         * modules/array-oset: New file.
23966         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23967         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23968         * tests/test-carray_list.c: New file.
23969         * tests/test-linked_list.c: New file.
23970         * tests/test-avltree_list.c: New file.
23971         * tests/test-rbtree_list.c: New file.
23972         * tests/test-linkedhash_list.c: New file.
23973         * tests/test-avltreehash_list.c: New file.
23974         * tests/test-rbtreehash_list.c: New file.
23975         * tests/test-avltree_oset.c: New file.
23976         * tests/test-rbtree_oset.c: New file.
23977         * MODULES.html.sh (Container data structures): New section.
23978
23979 2006-07-17  Bruno Haible  <bruno@clisp.org>
23980
23981         * m4/gl_list.m4: New file.
23982
23983 2006-07-17  Bruno Haible  <bruno@clisp.org>
23984
23985         * lib/gl_list.h: New file.
23986         * lib/gl_list.c: New file.
23987         * lib/gl_array_list.h: New file.
23988         * lib/gl_array_list.c: New file.
23989         * lib/gl_carray_list.h: New file.
23990         * lib/gl_carray_list.c: New file.
23991         * lib/gl_linked_list.h: New file.
23992         * lib/gl_linked_list.c: New file.
23993         * lib/gl_anylinked_list1.h: New file.
23994         * lib/gl_anylinked_list2.h: New file.
23995         * lib/gl_avltree_list.h: New file.
23996         * lib/gl_avltree_list.c: New file.
23997         * lib/gl_anyavltree_list1.h: New file.
23998         * lib/gl_anyavltree_list2.h: New file.
23999         * lib/gl_rbtree_list.h: New file.
24000         * lib/gl_rbtree_list.c: New file.
24001         * lib/gl_anyrbtree_list1.h: New file.
24002         * lib/gl_anyrbtree_list2.h: New file.
24003         * lib/gl_anytree_list1.h: New file.
24004         * lib/gl_anytree_list2.h: New file.
24005         * lib/gl_linkedhash_list.h: New file.
24006         * lib/gl_linkedhash_list.c: New file.
24007         * lib/gl_anyhash_list1.h: New file.
24008         * lib/gl_anyhash_list2.h: New file.
24009         * lib/gl_avltreehash_list.h: New file.
24010         * lib/gl_avltreehash_list.c: New file.
24011         * lib/gl_rbtreehash_list.h: New file.
24012         * lib/gl_rbtreehash_list.c: New file.
24013         * lib/gl_anytreehash_list1.h: New file.
24014         * lib/gl_anytreehash_list2.h: New file.
24015
24016         * lib/gl_oset.h: New file.
24017         * lib/gl_oset.c: New file.
24018         * lib/gl_array_oset.h: New file.
24019         * lib/gl_array_oset.c: New file.
24020         * lib/gl_avltree_oset.h: New file.
24021         * lib/gl_avltree_oset.c: New file.
24022         * lib/gl_rbtree_oset.h: New file.
24023         * lib/gl_rbtree_oset.c: New file.
24024         * lib/gl_anytree_oset.h: New file.
24025
24026 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24027
24028         * m4/mkancesdirs.m4: New file.
24029         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24030         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24031         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24032         it.
24033
24034 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24035
24036         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24037         * lib/mkancesdirs.h: New files.
24038         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24039         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24040         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24041         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24042         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24043         callers changed.  Revamp internals significantly, by not
24044         attempting to create directories that are temporarily more
24045         permissive than the final results.  Do not attempt to use
24046         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24047         This removes some race conditions, fixes some bugs, and simplifies
24048         things.  Use new dirchownmod function to do owner and mode changes.
24049         * lib/mkdir-p.h: Likewise.
24050         * lib/modechange.c (octal_to_mode): New function.
24051         (struct mode_change): New member mentioned.
24052         (make_node_op_equals): New arg mentioned.  All callers changed.
24053         (mode_compile): Keep track of which mode bits the user has explicitly
24054         mentioned.
24055         (mode_adjust): New arg DIR, so that we implement the X op correctly.
24056         New arg PMODE_BITS, to keep track of which mode bits the user
24057         mentioned; it treats S_ISUID and S_ISGID speciall.
24058         All callers changed.
24059         * lib/modechange.h: Likewise.
24060
24061 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24062
24063         * MODULES.html.sh: Add mkancestors.
24064         * modules/mkancesdirs: New module.
24065         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
24066         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
24067         The chdir-safer and afs files are now orphans; I'll remove them
24068         unless someone speaks up.
24069         Add lib/dirchownmod.c, lib/dirchownmod.h.
24070         (Depends-on): Remove alloca, chown, save-cwd, dirname.
24071         Add lchown, mkancesdirs.
24072         (Maintainer): Add self.
24073
24074 2006-07-15  Karl Berry  <karl@gnu.org>
24075
24076         * gnulib-tool: help message wording/arrangement.
24077
24078 2006-07-14  Simon Josefsson  <jas@extundo.com>
24079
24080         * doc/gnulib.texi (Libtool and Windows): New section.
24081
24082 2006-07-12  Simon Josefsson  <jas@extundo.com>
24083
24084         * modules/gendocs (License): Fix license, approved by Karl.
24085
24086 2006-07-12  Eric Blake  <ebb9@byu.net>
24087
24088         * MODULES.html.sh: Add gendocs.
24089
24090 2006-07-11  Eric Blake  <ebb9@byu.net>
24091
24092         * modules/fdl: New module, to install doc/fdl.texi.
24093         * MODULES.html.sh: Add new section for documentation modules.
24094         * gnulib-tool: Avoid space-tab.
24095         (--doc-base): New option, to manage files from doc.
24096
24097 2006-07-11  Eric Blake  <ebb9@byu.net>
24098
24099         * m4/absolute-header.m4: Fix comments to match recent change.
24100
24101 2006-07-11  Eric Blake  <ebb9@byu.net>
24102
24103         * gnulib-tool: List --doc-base before --tests-base.
24104
24105 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24106
24107         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24108
24109 2006-07-11  Bruno Haible  <bruno@clisp.org>
24110
24111         * README: Mention where to put documentation.
24112
24113 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24114
24115         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24116
24117 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24120         to stdint.m4.
24121
24122 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24123
24124         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24125         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24126         "no/such/file/stdint.h" when there is no such file, so that
24127         the resulting C code can be parsed by dodgy compilers.
24128         Problems reported by Bob Proulx.
24129
24130 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24131
24132         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24133         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24134         macros into the GNU _D_EXACT_NAMLEN.
24135         * lib/savedir.c:  Likewise.
24136         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24137
24138 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24139         and Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24142         * m4/savedir.m4:
24143         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24144         macros into the GNU _D_EXACT_NAMLEN.
24145
24146 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24147
24148         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24149         around the absolute name, to work around a problem with the HP-UX
24150         11.23 native C compiler, reported by Bob Proulx.
24151
24152 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24153
24154         * doc/maintain.texi, make-stds.texi: Sync from
24155         <http://savannah.gnu.org/projects/gnustandards>.
24156
24157 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24158
24159         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24160
24161 2006-07-09  Jim Meyering  <jim@meyering.net>
24162
24163         * m4/glob.m4: Remove a doubled word in a comment.
24164
24165 2006-07-09  Jim Meyering  <jim@meyering.net>
24166
24167         * lib/argp-pv.c: Remove a doubled word in a comment.
24168         * lib/check-version.c (check_version): Likewise.
24169         * lib/javacomp.c (compile_java_class): Likewise.
24170
24171 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24172
24173         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24174         for the benefit of people using Autoconf 2.60.  If you want to
24175         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24176         (or m4/onceonly.m4, if pre-2.57) manually.
24177
24178 2006-07-08  Jim Meyering  <jim@meyering.net>
24179
24180         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24181         comment.
24182         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24183         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24184         comment.
24185
24186 2006-07-08  Jim Meyering  <jim@meyering.net>
24187
24188         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24189
24190 2006-07-07  Simon Josefsson  <jas@extundo.com>
24191
24192         * tests/test-crc.c: Change expected crc value, the test vector
24193         were probably computed using the old broken crc.c?
24194
24195 2006-07-06  Simon Josefsson  <jas@extundo.com>
24196
24197         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24198         now the canonical place for the M4 file).
24199
24200         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24201         from the sys_socket dependency now.
24202
24203         * modules/inet_pton (Files): Ditto.
24204
24205         * modules/inet_ntop (Files): Ditto.
24206
24207 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24208
24209         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24210         not gl_PREREQ_GETUSERSHELL.
24211
24212 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24213
24214         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24215         with only one argument, for Autoconf 2.60.
24216         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24217         expand to nothing, so add a shell command to avoid syntax error.
24218         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24219
24220 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24221
24222         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24223
24224 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24225
24226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24227         no longer needed.  Check for isblank decl.
24228         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24229         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24230         of existence.
24231
24232 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         * lib/getloadavg.c: Use __VMS, not VMS.
24235         * lib/getopt.c: Likewise.
24236         * lib/getpagesize.h: Likewise.
24237         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24238         and probably does not work.
24239
24240 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24241
24242         * lib/.cppi-disable: Add wcwidth.
24243         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24244         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24245         (ISGRAPH): Remove.  All uses changed to isgraph.
24246         (FOLD) [!defined _LIBC]: Remove special case.
24247         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24248         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24249         HAVE_ISBLANK.
24250         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24251         case.
24252
24253 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24254
24255         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24256         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24257         brackets.  Other minor changes to suppress some compiler
24258         warnings.
24259
24260 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24261         and Paul Eggert  <eggert@cs.ucla.edu>
24262
24263         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24264         of invoking obsolescent AC_HEADER_DIRENT macro.
24265         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24266         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24267         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24268         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24269         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24270         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24271         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24272         * m4/readdir.m4: Remove; no longer needed.
24273
24274 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24275         and Paul Eggert  <eggert@cs.ucla.edu>
24276
24277         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24278         Don't worry about this obsolete case any more.
24279         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24280         directories.
24281         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24282         worry about this obsolete case any more.
24283         * lib/fts.c: Likewise.
24284         * lib/getcwd.c: Likewise.
24285         * lib/glob.h: Likewise.
24286         * lib/savedir.c: Likewise.
24287
24288 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24289
24290         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24291         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24292         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24293         needed.
24294         All uses removed.
24295         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24296         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24297         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24298         needed.
24299         * m4/getdate.m4 (gl_GETDATE): Likewise.
24300         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24301         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24302         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24303         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24304         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24306         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24307         needed.
24308
24309 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         * lib/memcasecmp.c: Include <limits.h>.
24312         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24313         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24314         Don't assume isdigit succeeds only on '0' through '9'.
24315
24316 2006-07-05  Eric Blake  <ebb9@byu.net>
24317
24318         * modules/getaddrinfo (Depends-on): Add snprintf.
24319
24320 2006-07-05  Eric Blake  <ebb9@byu.net>
24321
24322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24323         to avoid 'header present but could not be compiled' on cygwin.
24324
24325 2006-07-05  Eric Blake  <ebb9@byu.net>
24326
24327         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24328         missing from netdb.h.
24329         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24330
24331 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24332
24333         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24334         no longer needed.
24335         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24336         * m4/getdate.m4 (gl_GETDATE): Likewise.
24337         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24338         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24339         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24340         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24341         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24342
24343 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24344
24345         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24346         All uses of is_space replaced by isspace.
24347         * lib/exit.h: Don't talk about STDC_HEADERS.
24348         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24349         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24350         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24351         replaced by isprint etc.
24352         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24353         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24354         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24355         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24356         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24357         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24358
24359 2006-07-05  Bruno Haible  <bruno@clisp.org>
24360
24361         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24362         the function exists, before testing against AIX.
24363         Reported by Martin Lambers <marlam@marlam.de>.
24364
24365 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24366
24367         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24368         From Mark D. Baushke.
24369
24370 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24373         to the absolute name, not just one, to bypass Sun C 5.8's
24374         "warning: #include of /usr/include/... may be non-portable".
24375
24376 2006-07-04  Eric Blake  <ebb9@byu.net>
24377
24378         * modules/dirname-tests: New test module.
24379         * tests/test-dirname.c: New file, replacing dirname.c
24380         TEST_DIRNAME section that was recently deleted.
24381
24382 2006-07-04  Bruno Haible  <bruno@clisp.org>
24383
24384         Assume ANSI C header files and <ctype.h> functions.
24385         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24386         (mbsnwidth): Use isprint, iscntrl instead.
24387
24388 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         Merge from coreutils.
24391         * MODULES.html.sh: Add xstrtold.
24392         * modules/xstrtold: New file.
24393         * modules/cycle-check (Files): Add lib/same-inode.h.
24394         * modules/dirname (Files): Add m4/double-slash-root.m4.
24395         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24396         * modules/mkdir-p (Files): Add lib/same-inode.h.
24397         * modules/same (Files): Add lib/same-inode.h.
24398
24399 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24400
24401         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24402         This is to keep the terminology clean; POSIX talks about
24403         "absolute pathnames", not "full pathnames", but the GNU
24404         Coding Standards say to use "path" for something else;
24405         so use "absolute" to keep both sides happy.
24406         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24407         Set gl_absolute_header, not gl_full_header_path.
24408         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24409         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24410         All uses changed.
24411
24412         Merge from coreutils.
24413
24414         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24415
24416         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24417         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24418         want to require the building of c-strtod.o.
24419         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24420         needs -lm directly.
24421         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24422
24423         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24424
24425         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24426         --as-needed option if available.  Problem reported by Albert Chin in
24427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24428         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24429         cc merely issues a bunch of annoying warnings for --as-needed
24430         (this problem was reported by Bob Proulx).  Also, try linking with
24431         -lm to detect a bug in binutils 2.16 (this problem was reported
24432         by Ralf Wildenhues).
24433
24434         2006-06-18  Jim Meyering  <jim@meyering.net>
24435
24436         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24437         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24438         macro.
24439         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24440         also check for glibc-2.4's abort-inducing bug.
24441
24442         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24443         Low-probability clean-up should be to use rmdir to get rid of
24444         the just-created directory, not unlink.
24445
24446         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24447         configure fail, and request a bug report to inform us about it.
24448         Add a comment that, barring reports to the contrary, in 2007 we'll
24449         assume ftruncate is universally available.
24450
24451         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24452
24453         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24454
24455         2006-03-12  Jim Meyering  <jim@meyering.net>
24456
24457         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24458         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24459         * m4/same.m4 (gl_SAME): Likewise.
24460         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24461
24462         2006-03-11  Eric Blake  <ebb9@byu.net>
24463
24464         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24465         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24466         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24467         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24468
24469 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24472         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24473         reported by Mark D. Baushke, one in
24474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24475
24476         Merge from coreutils.
24477
24478         * lib/.cppi-disable: Add stdint_.h.
24479         * lib/.cvsignore: Add stdint.h.
24480
24481         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24482
24483         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24484         both double and long double versions.
24485         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24486         * lib/xstrtold.c: New file.
24487         * lib/xstrtod.h (xstrtold): New decl.
24488
24489         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24490
24491         * lib/filemode.c (setst): Remove.
24492         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24493         (arguably) clearer, and the generated code is a bit smaller on my
24494         Debian GNU/Linux stable x86 host.
24495
24496         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24497
24498         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24499         Assume that filemode.h includes sys/types.h and sys/stat.h.
24500         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24501         (ftypelet): Reorder to put common cases first, for efficiency.
24502         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24503         to do 'M'.
24504         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24505         of 10, for compatibility with FreeBSD.  All callers changed.
24506         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24507         types that can't be deduced solely from st_mode.  First arg is now a
24508         const pointer.
24509         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24510         (strmode): Renamed from mode_string.
24511         (filemodestring): New decl.
24512         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24513         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24514         needed.
24515         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24516
24517         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24518
24519         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24520         fsusage.h now does that.  Include fsusage.h first, to test interface.
24521         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24522         at most one method (the old code could have generated decls that
24523         didn't conform to C89, not that this was ever exercised).
24524         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24525
24526         2006-03-19  Jim Meyering  <jim@meyering.net>
24527
24528         Work even in a chroot where d_ino values for entries in "/"
24529         don't match the stat.st_ino values for the same names.
24530         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24531         number, iterate through all entries again, using lstat instead.
24532         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24533         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24534
24535         * lib/getcwd.c (__getcwd): Clarify a comment.
24536         Use memcpy in place of a call to strcpy.
24537
24538         2006-03-12  Jim Meyering  <jim@meyering.net>
24539
24540         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24541         matches that of the current directory (which we're about to chdir ".."
24542         out of), then save the dev-ino of the parent, instead.
24543
24544         * lib/same-inode.h (SAME_INODE): New file/macro.
24545         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24546         Include "same-inode.h", instead.
24547         * lib/same.c: Likewise.
24548         * lib/cycle-check.h: Include "same-inode.h".
24549         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24550         * lib/cycle-check.c (SAME_INODE): Remove definition.
24551         * lib/root-dev-ino.h: Include "same-inode.h".
24552
24553         2006-03-11  Eric Blake  <ebb9@byu.net>
24554
24555         * lib/same.c (same_name): s/base_name/last_component/
24556         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24557         * lib/filenamecat.c (file_name_concat): Likewise.
24558
24559         2006-03-11  Eric Blake  <ebb9@byu.net>,
24560                     Paul Eggert  <eggert@cs.ucla.edu>
24561
24562         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24563         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24564         drive prefix.
24565         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24566         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24567         (last_component): New method.
24568         * lib/dirname.c (dir_len): Determine when drive letters need a
24569         subsequent slash.  Preserve // when it is special.
24570         (dir_name): Don't append dot when drive letter is absolute.
24571         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24572         * lib/basename.c (base_name): New semantics - malloc the result.
24573         Preserve // when it is special.  Preserve relative files that look
24574         like drive letters.
24575         (base_len): Preserve // when it is special.
24576         (last_component): New method, similar to old base_name semantics.
24577         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24578         base_name.  Strip redundant slashes from ///.
24579
24580 2006-07-03  Jim Meyering  <jim@meyering.net>
24581
24582         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24583         macro is used before the first cycle_check call.
24584
24585 2006-07-03  Eric Blake  <ebb9@byu.net>
24586
24587         * modules/dirname (Depends-on): Add xstrndup.
24588
24589 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24590
24591         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24592         test cases, so that config.log is a bit easier to follow.
24593
24594 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24595
24596         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24597         both are 64 bits, since this seems to be the tradition, and this
24598         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24599         we ever run into a host that prefers long long to long in this
24600         case, we'll need another configure-time test.  Problem reported by
24601         Jim Meyering.
24602
24603 2006-07-02  Eric Blake  <ebb9@byu.net>
24604
24605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24606
24607 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24608
24609         * modules/inttypes (Depends-on): No longer depends on stdint.
24610         * modules/stdint (Description): Say more about assumptions.
24611         Say that the fast types might differ.  Say macros are used.
24612         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24613         (Makefile.am): Revise list of substituted symbols to match
24614         new stdint.m4.
24615         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24616         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24617         * tests/test-stdint.c (verify_same_types)
24618         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24619         the code conforms to C99/C89.
24620         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24621         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24622
24623 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24624
24625         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24626         but fix a bug, by requiring at least 64 bits.
24627         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24628         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24629         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24630         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24631
24632         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24633         changes.  Make 2.59 a prerequisite.  Check and substitute for
24634         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24635         inttypes.h.  Do not use special include files; just use the
24636         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24637         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24638         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24639         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24640         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24641         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24642         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24643         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24644         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24645         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24646         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24647         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24648         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24649         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24650         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24651         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24652         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24653         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24654         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24655         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24656         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24657         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24658         not check for things that C99 does not require, e.g., int8_t.  If
24659         a test isn't needed unless <stdint.h> isn't working, and is
24660         unlikely to be needed for any other reason, then don't do it
24661         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24662         size_t, since we assume C89 freestanding at least.  Do not check
24663         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24664         the right thing even if the types are not defined.  Instead use:
24665         (gl_STDINT_TYPE_PROPERTIES): New macro.
24666         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24667         testing whether <sys/types.h> clashes, as Autoconf does this for
24668         us now.  All uses removed.
24669         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24670         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24671         (gl_CHECK_TYPE_SAME):
24672         Remove; no longer needed.
24673         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24674         exists, since we'll return 0 anyway in that case.
24675         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24676
24677 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24678
24679         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24680         possible collision with system files.
24681         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24682         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24683         WCHAR_MIN and WCHAR_MAX in this case.
24684         (<stddef.h>): Do not include; no longer needed.
24685         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24686         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24687         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24688         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24689         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24690         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24691         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24692         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24693         !defined(__c99))]: Include in this case too, since it's harmless
24694         now.
24695         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24696         dangerous to do so.
24697         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24698         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24699         (_STDINT_MIN, _STDINT_MAX): New macros.
24700         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24701         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24702         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24703         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24704         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24705         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24706         macros, not typedefs; this simplifies things quite a bit.
24707         Use long int for all types narrower than int64_t.
24708         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24709         Define in terms of long long int or int64_t or long int,
24710         not int64_t or int32_t.  This saves some compile-time testing.
24711         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24712         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24713         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24714         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24715         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24716         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24717         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24718         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24719         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24720         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24721         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24722         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24723         undef any previous version and define our own version, for
24724         simplicity and consistency with the new macros for types.
24725         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24726         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24727         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24728         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24729         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24730         @WINT_T_SUFFIX@ to keep things simple here.
24731         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24732         Simplify by assuming typical 8/16/32/64 host, since we're
24733         already doing that elsewhere anyway.
24734         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24735         and assume long long int is 64 bits if available.  This
24736         speeds up 'configure'.
24737
24738 2006-07-01  Eric Blake  <ebb9@byu.net>
24739
24740         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24741         Reported by Andreas Buening.
24742
24743 2006-07-01  Eric Blake  <ebb9@byu.net>
24744
24745         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24746
24747 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24748
24749         * lib/getaddrinfo.c: fixed typo
24750
24751 2006-06-29  Jim Meyering  <jim@meyering.net>
24752
24753         * modules/strftime (Maintainer): Add my name, since with the
24754         FPRINTFTIME changes strftime.c has forked from glibc.
24755
24756 2006-06-29  Eric Blake  <ebb9@byu.net>
24757
24758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24759
24760 2006-06-29  Eric Blake  <ebb9@byu.net>
24761
24762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24763
24764 2006-06-29  Eric Blake  <ebb9@byu.net>
24765
24766         * lib/stat_.h: New file.
24767
24768 2006-06-29  Eric Blake  <ebb9@byu.net>
24769
24770         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24771         unused static function.
24772
24773 2006-06-29  Eric Blake  <ebb9@byu.net>
24774
24775         * doc/functions.texi (Function Portability): Document missing lstat
24776         on mingw.
24777
24778 2006-06-29  Eric Blake  <ebb9@byu.net>
24779
24780         * MODULES.html.sh: Add sys_stat.
24781         * modules/sys_stat: New module.
24782         * modules/mkstemp (Depends-on): Add sys_stat.
24783
24784 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24785
24786         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24787
24788 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24789
24790         * m4/c-bs-a.m4: Removed.
24791
24792 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24793
24794         * lib/strftime.c: Assume strftime() exists.
24795
24796 2006-06-29  Derek Price  <derek@ximbiot.com>
24797
24798         * modules/c-bs-a: Removed - \a is C89.
24799         * MODULES.html.sh: Remove c-bs-a.
24800
24801 2006-06-29  Bruno Haible  <bruno@clisp.org>
24802
24803         * modules/wcwidth (License): Change to LGPL.
24804
24805 2006-06-28  Simon Josefsson  <jas@extundo.com>
24806
24807         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24808         on _WIN32.
24809
24810         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24811         getnameinfo.
24812
24813 2006-06-28  Simon Josefsson  <jas@extundo.com>
24814
24815         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24816
24817 2006-06-28  Simon Josefsson  <jas@extundo.com>
24818
24819         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24820         functions there.  It will succeed on Windows XP, but on Windows
24821         2000 and (presumably) earlier, it will fail, and use the internal
24822         re-implementation.
24823         (use_win32_p): New function.
24824         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24825         Support AI_NUMERICSERV to disable getservbyname.
24826         (getnameinfo): New function, only supports
24827         NI_NUMERICHOST|NI_NUMERICSERV for now.
24828
24829         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24830         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24831         getnameinfo.
24832
24833 2006-06-28  Eric Blake  <ebb9@byu.net>
24834
24835         * modules/wcwidth: New file.
24836         * modules/mbchar (Depends-on): Add wcwidth.
24837         * modules/mbswidth (Depends-on): Add wcwidth.
24838         * MODULES.html.sh: Add wcwidth.
24839
24840 2006-06-28  Eric Blake  <ebb9@byu.net>
24841
24842         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24844
24845 2006-06-28  Eric Blake  <ebb9@byu.net>
24846
24847         * lib/xvasprintf.h: Fix comments.
24848
24849 2006-06-28  Eric Blake  <ebb9@byu.net>
24850
24851         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24852         * lib/mbswidth.c (wcwidth): Move from here...
24853         * lib/wcwidth.h: ...to this new file.
24854
24855 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24856
24857         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24858
24859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24860         it's obsolete.
24861         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24862
24863 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24864
24865         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24866         Autoconf 2.60 says this stuff was obsolete.
24867
24868 2006-06-28  Bruno Haible  <bruno@clisp.org>
24869
24870         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24871
24872 2006-06-28  Bruno Haible  <bruno@clisp.org>
24873
24874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24875         gt_TYPE_WCHAR_T.
24876
24877 2006-06-28  Bruno Haible  <bruno@clisp.org>
24878
24879         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24880         declaration for wcwidth.
24881         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24882
24883 2006-06-28  Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24886         (mkdir): Define using _mkdir.
24887
24888 2006-06-28  Bruno Haible  <bruno@clisp.org>
24889
24890         * lib/getaddrinfo.h: Fix POSIX URL.
24891         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24892         _WIN32.
24893         (use_win32_p): Make static.
24894         (getaddrinfo): Reject service name if it is empty or does not consist
24895         solely of decimal digits, or if its value is > 65535.
24896         (getnameinfo): Remove useless casts.
24897
24898 2006-06-27  Simon Josefsson  <jas@extundo.com>
24899
24900         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24901         Eggert and Martin Lambers.
24902
24903 2006-06-27  Simon Josefsson  <jas@extundo.com>
24904
24905         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24906         Eggert and Martin Lambers.
24907
24908 2006-06-27  Bruno Haible  <bruno@clisp.org>
24909
24910         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24911         result to 0, not to empty.
24912         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24913
24914 2006-06-27  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24917
24918 2006-06-26  Simon Josefsson  <jas@extundo.com>
24919
24920         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24921         present.
24922
24923 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24924
24925         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24926         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24928
24929 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24930
24931         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24932
24933 2006-06-26  Bruno Haible  <bruno@clisp.org>
24934
24935         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24936
24937 2006-06-26  Bruno Haible  <bruno@clisp.org>
24938
24939         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24940
24941 2006-06-26  Bruno Haible  <bruno@clisp.org>
24942
24943         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24944         SGI C compiler in pre-C99 mode.
24945         Suggested by Mark D. Baushke and Larry Jones.
24946
24947 2006-06-26  Bruno Haible  <bruno@clisp.org>
24948
24949         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24950         WCHAR_MAX.
24951         Reported by Mark D. Baushke and Larry Jones.
24952
24953 2006-06-26  Bruno Haible  <bruno@clisp.org>
24954
24955         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24956         in pre-C99 mode.
24957         Suggested by Mark D. Baushke and Larry Jones.
24958
24959 2006-06-23  Simon Josefsson  <jas@extundo.com>
24960             Bruno Haible  <bruno@clisp.org>
24961
24962         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24963         Emit mostlyclean-local rule.
24964         (func_emit_tests_Makefile_am): Likewise.
24965         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24966
24967 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24968
24969         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24970
24971 2006-06-23  Bruno Haible  <bruno@clisp.org>
24972
24973         * tests/test-stdint.c: Update to match ISO C 99 Technical
24974         Corrigendum 1.
24975
24976 2006-06-23  Bruno Haible  <bruno@clisp.org>
24977
24978         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24979
24980 2006-06-23  Bruno Haible  <bruno@clisp.org>
24981
24982         * lib/stdint_.h: Treat IRIX like OpenBSD.
24983
24984 2006-06-23  Bruno Haible  <bruno@clisp.org>
24985
24986         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24987         ISO C 99 Technical Corrigendum 1.
24988
24989 2006-06-22  Simon Josefsson  <jas@extundo.com>
24990
24991         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24992         MinGW.
24993
24994 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24995
24996         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24997         needed.  Some compiler complained about some of them.  Problem reported
24998         by Larry Jones in
24999         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25000
25001 2006-06-21  Simon Josefsson  <jas@extundo.com>
25002
25003         * tests/test-getaddrinfo.c: New file.
25004
25005         * modules/getaddrinfo-tests: New file.
25006
25007         * MODULES.html.sh: Add inet_pton.
25008
25009         * modules/inet_pton: New file.
25010
25011 2006-06-21  Simon Josefsson  <jas@extundo.com>
25012
25013         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
25014         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
25015         of using the (limited) gnulib implementation on Windows XP.
25016
25017         * m4/inet_pton.m4: New file.
25018
25019 2006-06-21  Simon Josefsson  <jas@extundo.com>
25020
25021         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25022         variable.
25023
25024         * lib/socket_.h: Don't define WINVER.
25025
25026         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25027         slightly modified to work in gnulib.
25028
25029 2006-06-21  Simon Josefsson  <jas@extundo.com>
25030
25031         * doc/gnulib.texi (Windows sockets): Add.
25032
25033 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25034
25035         * lib/read-file.c (fread_file): Start with buffer allocation of
25036         0 bytes rather than 1 byte; this simplifies the code.
25037         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25038         code to free buffer and save/restore errno.
25039         (internal_read_file): Remove unused local.
25040
25041 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25042
25043         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25044         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25045         Problem reported by Denis Excoffier in
25046         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25047
25048 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25049
25050         * modules/sys_socket, modules/socklen: Include sys/types since
25051         FreeBSD 4.x's sys/socket.h needs it.
25052
25053 2006-06-19  Simon Josefsson  <jas@extundo.com>
25054
25055         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
25056
25057 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25058
25059         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
25060
25061 2006-06-19  Bruno Haible  <bruno@clisp.org>
25062
25063         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
25064         and FULL_PATH_INTTYPES_H in angle brackets.
25065         Reported by Mark D. Baushke <mdb@gnu.org>.
25066
25067 2006-06-17  Eric Blake  <ebb9@byu.net>
25068
25069         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
25070         errno.
25071
25072 2006-06-17  Bruno Haible  <bruno@clisp.org>
25073
25074         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25075         <sys/inttypes.h>.
25076
25077 2006-06-17  Bruno Haible  <bruno@clisp.org>
25078
25079         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25080         whether errno is declared. Assume <errno.h> declares errno.
25081
25082 2006-06-17  Bruno Haible  <bruno@clisp.org>
25083
25084         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25085
25086 2006-06-17  Bruno Haible  <bruno@clisp.org>
25087
25088         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25089         problem on Solaris 2.5.1.
25090
25091 2006-06-16  Eric Blake  <ebb9@byu.net>
25092
25093         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25094         * lib/unicodeio.c [!defined errno]: Likewise.
25095         * lib/strtol.c [!defined errno]: Likewise.
25096         * lib/strtod.c [!defined errno]: Likewise.
25097
25098 2006-06-15  Eric Blake  <ebb9@byu.net>
25099
25100         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25101
25102 2006-06-15  Eric Blake  <ebb9@byu.net>
25103
25104         * config/srclist.txt (ssize_t.m4): Lose sync.
25105
25106 2006-06-15  Bruno Haible  <bruno@clisp.org>
25107
25108         * modules/stdint (Files): Include m4/full-header-path.m4,
25109         m4/size_max.m4, m4/wchar_t.m4.
25110         (Makefile.am): Many more substitutions.
25111         * modules/stdint-tests: New file.
25112         * tests/test-stdint.c: New file.
25113
25114 2006-06-15  Bruno Haible  <bruno@clisp.org>
25115
25116         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25117         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25118         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25119         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25120         gl_CHECK_TYPE_SAME): New macros.
25121
25122 2006-06-15  Bruno Haible  <bruno@clisp.org>
25123
25124         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25125
25126 2006-06-15  Bruno Haible  <bruno@clisp.org>
25127
25128         * lib/stdint_.h: Rewritten to be fully auto-configured.
25129         Fixes bug on HP-UX/IA64.
25130
25131 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25132
25133         * lib/getdate.y (__attribute__): Don't define if already defined.
25134         Problem reported by Larry Jones.
25135         * lib/utimens.c (__attribute__): Likewise.
25136
25137 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25138
25139         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25140         reported by Andreas Schwab.
25141
25142 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25143             Bruno Haible  <bruno@clisp.org>
25144
25145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25146         check for the declaration of strnlen and a run test that exposes the
25147         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25148         rpl_strndup.
25149
25150 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25151             Bruno Haible  <bruno@clisp.org>
25152
25153         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25154
25155 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25156
25157         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25158         compile test, for Tru64 4.0D.
25159
25160 2006-05-28  Karl Berry  <karl@gnu.org>
25161
25162         * config/srclist.txt (printf-args.c): lose sync.
25163
25164 2006-05-26  Martin Lambers  <marlam@marlam.de>
25165
25166         * lib/getpass.c: Updates the test for the native W32 API, and adds
25167         missing includes, thus fixing compilation warnings.
25168
25169 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25170
25171         * lib/exclude.c (exclude_fnmatch): New function.
25172         (excluded_file_name): Call exclude_fnmatch.
25173         * lib/exclude.h (excluded_file_name): New prototype
25174
25175 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25176
25177         * lib/tempname.c (small_open, large_open): New macros.
25178         (__open, __open64) [!_LIBC]: Remove.
25179         (__gen_tempname): Use small_open and large_open instead of __open
25180         and __open64.  This fixes a portability bug on HP-UX 11.11i
25181         reported by Simon Wing-Tang in
25182         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25183
25184 2006-05-24  Bruno Haible  <bruno@clisp.org>
25185
25186         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25187         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25188         Reported by Thorsten Maerz <torte@netztorte.de> via
25189         Aaron Stone <aaron@serendipity.cx>.
25190
25191 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25192
25193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25194         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25195         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25196         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25197         not really conditional on the cache.
25198         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25199
25200 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25201
25202         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25203         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25204         (my_usleep): Don't mishandle maximum value.
25205
25206 2006-05-19  Jim Meyering  <jim@meyering.net>
25207
25208         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25209
25210 2006-05-17  Bruno Haible  <bruno@clisp.org>
25211
25212         Cygwin portability.
25213         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25214
25215 2006-05-17  Bruno Haible  <bruno@clisp.org>
25216
25217         * lib/stdint_.h: Fix recognition of Cygwin.
25218
25219 2006-05-15  Bruno Haible  <bruno@clisp.org>
25220
25221         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25222         on libtool patch by Ralf Wildenhues.
25223
25224 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25225
25226         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25227         test for C99 conformance; (bool) 0.5 is an integer constant
25228         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25229         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25230
25231 2006-05-11  Simon Josefsson  <jas@extundo.com>
25232
25233         * m4/xvasprintf.m4: Fix obvious typo.
25234
25235 2006-05-11  Jim Meyering  <jim@meyering.net>
25236
25237         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25238         James Lemley.
25239
25240 2006-05-10  Simon Josefsson  <jas@extundo.com>
25241
25242         * lib/md4.c: Typo fix, update copyright years.
25243         (K1, K2): Don't use L because it turn computations into 64-bit on
25244         64-bit platforms.
25245
25246 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25249         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25250         unwanted sign propagation, e.g., on hosts with 64-bit int.
25251         There still are some problems with reeelly weird theoretical hosts
25252         (e.g., 33-bit int) but it's not worth worrying about now.
25253         * lib/sha1.c (rol): Likewise.
25254         (K1, K2, K3, K4): Remove unnecessary L suffix.
25255
25256 2006-05-10  Bruno Haible  <bruno@clisp.org>
25257
25258         * lib/des.c: Cast to avoid warnings.
25259
25260 2006-05-09  Bruno Haible  <bruno@clisp.org>
25261
25262         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25263         (Depends-on): Depend also on xsize, stdarg.
25264         (configure.ac): Add gl_XVASPRINTF.
25265
25266 2006-05-09  Bruno Haible  <bruno@clisp.org>
25267
25268         * m4/xvasprintf.m4: New file.
25269
25270 2006-05-09  Bruno Haible  <bruno@clisp.org>
25271
25272         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25273         (EOVERFLOW): Define fallback value.
25274         (xstrcat): New function.
25275         (xvasprintf): Recognize the special case of a string concatenation.
25276
25277 2006-05-08  Eric Blake  <ebb9@byu.net>
25278
25279         * gnulib-tool (func_version): Base copyright year on CVS date.
25280         (func_emit_copyright_notice): New function.
25281         (func_emit_lib_Makefile_am): Use it.
25282         (func_emit_tests_Makefile_am): Likewise.
25283         (func_import): Likewise.
25284
25285 2006-05-08  Bruno Haible  <bruno@clisp.org>
25286
25287         * modules/stdarg: New file.
25288         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25289
25290 2006-05-08  Bruno Haible  <bruno@clisp.org>
25291
25292         * m4/stdarg.m4: New file, from GNU gettext.
25293
25294 2006-05-08  Bruno Haible  <bruno@clisp.org>
25295
25296         * config/srclist.txt (build-aux/config.rpath): different from latest
25297         release.
25298
25299 2006-05-08  Bruno Haible  <bruno@clisp.org>
25300
25301         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25302
25303 2006-05-05  Jim Meyering  <jim@meyering.net>
25304
25305         * m4/warning.m4: New file, derived from bison's file by the same name.
25306
25307 2006-05-03  Bruno Haible  <bruno@clisp.org>
25308
25309         * lib/stdint_.h: Shorter URL.
25310         * lib/inttypes.h: Likewise.
25311
25312 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25313
25314         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25315
25316 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25317
25318         * lib/verify.h: Document the internals better.  Most of this change
25319         was written by Bruno Haible.
25320
25321 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25322
25323         * doc/verify.texi: New file, partly based on a proposal by
25324         Bruno Haible.
25325
25326 2006-05-02  Bruno Haible  <bruno@clisp.org>
25327
25328         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25329         test from here...
25330         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25331
25332 2006-04-29  Bruno Haible  <bruno@clisp.org>
25333
25334         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25335         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25336
25337 2006-04-29  Bruno Haible  <bruno@clisp.org>
25338
25339         * gnulib-tool: Make --update option actually work.
25340
25341 2006-04-29  Bruno Haible  <bruno@clisp.org>
25342
25343         * doc/gcd.texi: New file.
25344         * doc/gnulib.texi: Include it.
25345
25346 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         * lib/getdate.y (get_date): When adding relative date, start with the
25349         initial time, not with the result of the first mktime call.
25350
25351 2006-04-25  Bruno Haible  <bruno@clisp.org>
25352
25353         * gnulib-tool (func_import): Output the include directives in three
25354         blocks, sorted separately.
25355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25356
25357 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25358
25359         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25360         to define main with arguments, for C++.  Reported by Eric Blake.
25361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25362         Prefer 'int main ()' to 'int main (void)', for C++.
25363         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25365         for 'main', for C99 and C++.
25366
25367 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25368
25369         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25370         Don't assume that exit status -1 is valid.
25371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25372         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25373         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25374         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25375         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25376         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25377         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25378         functions can be used without declaring them, or that you can
25379         exit with status -1.
25380         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25381
25382 2006-04-24  Karl Berry  <karl@gnu.org>
25383
25384         * config/srclist.txt (longdouble.m4): sync lost.
25385
25386 2006-04-24  Eric Blake  <ebb9@byu.net>
25387
25388         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25389
25390 2006-04-24  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25393         poll() implementation in AIX.
25394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25395
25396 2006-04-24  Bruno Haible  <bruno@clisp.org>
25397
25398         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25399         assigned exactly once.
25400
25401 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25402             Bruno Haible  <bruno@clisp.org>
25403
25404         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25405         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25406         for AM_CPPFLAGS.
25407
25408 2006-04-23  Bruno Haible  <bruno@clisp.org>
25409
25410         * modules/copy-file: Depend on unistd.
25411         * modules/execute: Likewise.
25412         * modules/fatal-signal: Likewise.
25413         * modules/findprog: Likewise.
25414         * modules/mkdtemp : Likewise.
25415         * modules/pipe: Likewise.
25416         * modules/wait-process: Likewise.
25417
25418 2006-04-23  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25421         condition was already detected.
25422         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25423
25424 2006-04-23  Bruno Haible  <bruno@clisp.org>
25425
25426         * lib/copy-file.c: Include <unistd.h> unconditionally.
25427         * lib/execute.c: Likewise.
25428         * lib/fatal-signal.c: Likewise.
25429         * lib/findprog.c: Likewise.
25430         * lib/mkdtemp.c: Likewise.
25431         * lib/pipe.h: Likewise.
25432         * lib/pipe.c: Likewise.
25433         * lib/wait-process.h: Likewise.
25434
25435 2006-04-23  Bruno Haible  <bruno@clisp.org>
25436
25437         * gnulib-tool (func_usage): Fix --import description. Document
25438         --update.
25439         (func_import): Create temporary file in a temporary directory, if
25440         --dry-run is specified. Silence errors from 'grep' when there are no
25441         m4 files in $m4dir.
25442         (func_create_testdir): Silence errors from 'grep' when there are no
25443         m4 files in $m4dir.
25444         Reported by Karl Berry <karl@freefriends.org>.
25445
25446 2006-04-20  Bruno Haible  <bruno@clisp.org>
25447
25448         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25449         one argument, so that the code will be portable to Autoconf 2.60.
25450         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25451         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25452         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25453
25454 2006-04-19  Derek Price  <derek@ximbiot.com>
25455             Eric Blake  <ebb9@byu.net>
25456
25457         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25458         rather than "/full/path.h".  Update comment to match.  Shorten &
25459         generalize m4_translit call via AS_TR_CPP.
25460
25461 2006-04-19  Derek Price  <derek@ximbiot.com>
25462             Eric Blake  <ebb9@byu.net>
25463
25464         * lib/inttypes.h: Correct grammar in comment.
25465
25466 2006-04-18  Derek Price  <derek@ximbiot.com>
25467             Paul Eggert  <eggert@cs.ucla.edu>
25468
25469         * modules/inttypes: New file.
25470         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25471
25472 2006-04-18  Derek Price  <derek@ximbiot.com>
25473             Paul Eggert  <eggert@cs.ucla.edu>
25474
25475         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25476         New files.
25477
25478 2006-04-18  Derek Price  <derek@ximbiot.com>
25479             Paul Eggert  <eggert@cs.ucla.edu>
25480
25481         * lib/inttypes.h: New file.
25482         * lib/strtoimax.c: Assume <inttypes.h>.
25483
25484 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25485
25486         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25487         isn't mounted.  Problem reported by Kir Kolyshkin.
25488
25489 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25492         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25493         Derek R. Price.
25494         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25495         implementation.
25496
25497 2006-04-12  Eric Blake  <ebb9@byu.net>
25498
25499         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25500         is now done automatically by the corresponding Autoconf macro.
25501
25502 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25503
25504         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25505         time_r.h.
25506
25507 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25508
25509         Merge regex changes from libc, removing some of our
25510         POSIX-conformance changes that were rejected and redoing them in a
25511         less-intrusive way.
25512
25513         * lib/regcomp.c (re_compile_internal, init_dfa):
25514         Length arg is now size_t, not Idx.  All uses changed.
25515         (peek_token): Forward decl now says internal_function.
25516         (__re_error_msgid, __re_error_msgid_idx):
25517         Now static rather than extern with attribute_hidden.
25518         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25519         For some reason libc prefers K&R style defns for external functions.
25520         (regerror) [!defined _LIBC]: Likewise.
25521         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25522         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25523         (build_range_exp, build_collating_symbol):
25524         Use K&R-style defn.
25525         (re_compile_fastmap): Use '\0' to memset, not 0.
25526         (utf8_sb_map): Make the calculations more obvious.
25527         (init_dfa, parse_bracket_exp, build_charclass_op):
25528         Call calloc and cast result, as glibc does.
25529         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25530         (build_range_exp, build_collating_symbol):
25531         Now internal functions.
25532
25533         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25534
25535         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25536         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25537         Don't depend on VMS; depend on __VMS instead, for POSIX
25538         namespace cleanness.
25539         (regoff_t): Define to ssize_t, not long int.
25540
25541         Remove the REG_ macros named below.  Instead, make the old names
25542         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25543         __USE_GNU_REGEX.
25544         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25545         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25546         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25547         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25548         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25549         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25550         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25551         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25552         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25553         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25554         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25555         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25556         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25557         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25558         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25559         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25560         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25561         (REG_NREGS):
25562         Remove.  All uses replaced by the old RE_* names.
25563         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25564         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25565         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25566         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25567         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25568         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25569         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25570         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25571         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25572         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25573         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25574         Don't bother having these macros be independent of each others'
25575         values, since they no longer exist in the POSIX name space.
25576
25577         Rename the following member names back to their old names,
25578         unless !__USE_GNU_REGEX.  All uses changed back.
25579         (buffer): Renamed from re_buffer.
25580         (allocated): Renamed from re_allocated.
25581         (used): Renamed from re_used.
25582         (syntax): Renamed from re_syntax.
25583         (fastmap): Renamed from re_fastmap.
25584         (translate): Renamed from re_translate.
25585         (can_be_null): Renamed from re_can_be_null.
25586         (regs_allocated): Renamed from re_regs_allocated.
25587         (fastmap_accurate): Renamed from re_fastmap_accurate.
25588         (no_sub): Renamed from re_no_sub.
25589         (not_bol): Renamed from re_not_bol.
25590         (not_eol): Renamed from re_not_eol.
25591         (newline_anchor): Renamed from re_newline_anchor.
25592         (num_regs): Renamed from rm_num_regs.
25593         (start): Renamed from rm_start.
25594         (end): Renamed from rm_end.
25595
25596         (free_state): Move up a bit.
25597
25598         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25599         #define to be empty.
25600         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25601         when that is what is intended.
25602         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25603         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25604         (MAX): New macro.
25605         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25606         All uses changed back to re_malloc, etc.  It's now the caller's
25607         responsibility to check for overflow; all callers changed.
25608         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25609         (re_x2nrealloc): Remove.
25610         (free_state): Remove decl.
25611
25612         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25613         (re_set_registers, re_exec):
25614         Use K&R-style defn.
25615
25616         2006-01-31  Roland McGrath  <roland@redhat.com>
25617
25618         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25619         Reported by Mike Frysinger <vapier@gentoo.org>.
25620
25621         2006-01-15  Andreas Jaeger  <aj@suse.de>
25622
25623         [BZ #1950]
25624         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25625         build_wcs_upper_buffer change.
25626         (build_wcs_upper_buffer): Change return type.
25627
25628         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25629
25630         * lib/regex_internal.h: Include <stdint.h> if available.
25631
25632         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25633
25634         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25635
25636         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25637
25638         * lib/regcomp.c: Adjust for changed secondary hash function.
25639
25640         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25641
25642         * lib/regex.h: Pretty printing.
25643         Clean up namespace a bit.
25644
25645         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25646
25647         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25648         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25649
25650         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25651                     Ulrich Drepper  <drepper@redhat.com>
25652
25653         [BZ #1302]
25654         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25655         changed.
25656         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25657
25658         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25659
25660         [BZ #281]
25661         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25662         * lib/regcomp.c: Remove unnecessary uses of
25663         unsigned RE_TRANSLATE_TYPE.
25664         * lib/regex_internal.h: Likewise.
25665         * lib/regex_internal.c: Likewise.
25666         * lib/regexec.c: Likewise.
25667         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25668
25669         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25670
25671         * lib/regexec.c (find_recover_state): Remove unnecessary
25672         initialization.
25673         (transit_state_bkref): Make DFA a const pointer.
25674         (get_subexp): Likewise.
25675         (check_arrival): Likewise.
25676         (update_cur_sifted_state): Likewise.
25677         (re_search_internal): Likewise.
25678         (prune_impossible_nodes): Likewise.
25679         (acquire_init_state_context): Likewise.
25680         (proceed_next_node): Likewise.
25681         (set_regs): Likewise.
25682         (free_fail_stack_return): Likewise.
25683         (check_arrival_expand_ecl): Mark DFA parameter as const.
25684         (check_arrival_expand_ecl_sub): Likewise.
25685         (check_subexp_limits): Likewise.
25686         (sub_epsilon_src_nodes):  Likewise.
25687         (add_epsilon_src_nodes):  Likewise.
25688         (merge_state_array): Likewise.
25689         (update_regs): Likewise.
25690         (build_trtable): Likewise.
25691         (sift_states_backward): Mark MCTX parameter as const.
25692         (build_sifted_states): Likewise.
25693         (update_cur_sifted_state): Likewise.
25694         (sift_states_mkref): Likewise.
25695         (check_arrival_expand_ecl): Mark eclosure as const.
25696         (check_dst_limits_calc_pos_1): Likewise.
25697         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25698         pointer.
25699
25700         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25701
25702         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25703         (transit_state_sb): Likewise.
25704         (transit_state_mb): Likewise.
25705         (sift_states_iter_mb): Likewise.
25706         (check_arrival_add_next_nodes): Likewise.
25707         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25708         [_LIBC] (re_search_2_stub): Use mempcpy.
25709
25710         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25711         mbrtowc for very simple UTF-8 case.
25712
25713         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25714         a pointer-to-const.
25715         (re_acquire_state_context): Likewise.
25716         * lib/regex_internal.h: Adjust prototypes.
25717
25718         * lib/regex.c: Prevent using C++ compilers.
25719
25720         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25721         (re_acquire_state_context): Likewise.
25722
25723 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25724
25725         * modules/regex (Depends-on): Add ssize_t.
25726
25727 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25730         translation table.
25731
25732 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25733
25734         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25735
25736 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25737             Bruno Haible  <bruno@clisp.org>
25738
25739         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25740         <sys/types.h> and <inttypes.h>.
25741
25742 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25743
25744         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25745         `__error_t_defined', so argp.h will not typedef the former.
25746
25747 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25748
25749         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25750         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25751         glibc names.  Even if glibc is changed to conform to POSIX, the
25752         traditional names will be available anyway, since regex depends on
25753         the extensions module.  Also, fix a longstanding typo in the
25754         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25755         reported by Emanuele Giaquinta.  Also, change sense of cached
25756         variable, so that the message makes sense.
25757
25758 2006-03-24  Simon Josefsson  <jas@extundo.com>
25759
25760         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25761         including some doc fixes.
25762         (base64_encode_alloc): Fix +1 bug on allocation failures.
25763
25764 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25765
25766         * lib/base64.c (base64_encode): Do not read past end of array with
25767         unsanitized input on systems with CHAR_BIT > 8.
25768
25769 2006-03-24  Eric Blake  <ebb9@byu.net>
25770
25771         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25772
25773 2006-03-22  Karl Berry  <karl@gnu.org>
25774
25775         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25776         * config/srclistvars.sh (COREUTILS): new var.
25777
25778 2006-03-17  Jim Meyering  <jim@meyering.net>
25779
25780         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25781         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25782
25783 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25786         no longer needs it.  Instead, check that regoff_t is as least
25787         as wide as ptrdiff_t.
25788
25789         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25790         so that our regex.h stays compatible with the installed regex.
25791         This is helpful for installers who configure --without-included-regex.
25792         Problem reported by Emanuele Giaquinta.
25793
25794 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25795
25796         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25797         Typedef to long int, not to off_, as POSIX will likely change
25798         in that direction.
25799
25800 2006-03-15  Eric Blake  <ebb9@byu.net>
25801
25802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25803
25804 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25805
25806         * lib/argp-help.c (validate_uparams): Fix typo
25807         * lib/argp-parse.c (argp_default_options): Consistently begin help
25808         messages with a lowercase letter.
25809
25810 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25811
25812         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25813         overrun buffers and shouldn't be used (much as gets shouldn't be
25814         used).
25815         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25816
25817 2006-03-08  Simon Josefsson  <jas@extundo.com>
25818
25819         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25820         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25821
25822 2006-03-08  Simon Josefsson  <jas@extundo.com>
25823
25824         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25825         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25826
25827 2006-03-08  Simon Josefsson  <jas@extundo.com>
25828
25829         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25830         signal that configure disabled the device.
25831
25832 2006-03-08  Simon Josefsson  <jas@extundo.com>
25833
25834         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25835         languages.
25836
25837 2006-03-07  Simon Josefsson  <jas@extundo.com>
25838
25839         * modules/getopt (Depends-on): Add unistd.
25840
25841         * modules/unistd: New file.
25842
25843 2006-03-07  Simon Josefsson  <jas@extundo.com>
25844
25845         * modules/gc-random: New file.
25846
25847 2006-03-07  Simon Josefsson  <jas@extundo.com>
25848
25849         * m4/unistd_h.m4: New file.
25850
25851 2006-03-07  Simon Josefsson  <jas@extundo.com>
25852
25853         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25854         test to be side-effect free by storing the result in the cache
25855         variable gl_cv_lib_readline, and moving the assignment of
25856         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25857         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25858
25859 2006-03-07  Simon Josefsson  <jas@extundo.com>
25860
25861         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25862         error on missing devices (the functions will return an error).
25863
25864         * m4/gc.m4: Move random stuff to gc-random.m4
25865
25866 2006-03-07  Simon Josefsson  <jas@extundo.com>
25867
25868         * lib/unistd_.h: New file.
25869
25870 2006-03-07  Simon Josefsson  <jas@extundo.com>
25871
25872         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25873
25874 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25877         Problem reported by Juan Manuel Guerrero.
25878
25879 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25880
25881         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25882         the unistd module.
25883         * lib/getlogin_r.c: Likewise.
25884         * lib/getlogin_r.h: Likewise.
25885         * lib/glob.c: Likewise.
25886         * lib/pagealign_alloc.c: Likewise.
25887         * lib/unistd_.h: Remove; no longer needed.
25888
25889 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25890
25891         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25892         Add unistd.
25893         * modules/c-stack (Depends-on): Add unistd.
25894         * modules/getlogin_r: Likewise.
25895         * modules/glob: Likewise.
25896         * modules/pagealign_alloc: Likewise.
25897         * modules/unistd (Files): Remove lib/unistd_.h.
25898         (EXTRA_DIST): Remove.
25899         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25900         need unistd_.h.
25901         (MOSTLYCLEANFILES): Remove unistd.h-t.
25902
25903 2006-03-03  Simon Josefsson  <jas@extundo.com>
25904
25905         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25906
25907 2006-03-03  Simon Josefsson  <jas@extundo.com>
25908
25909         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25910         libidn and bison.
25911
25912 2006-03-03  Simon Josefsson  <jas@extundo.com>
25913
25914         * build-aux/maint.mk: Add indent target.
25915
25916 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25917
25918         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25919         our replacement poll.h in any case, to avoid a differing
25920         declaration from a system header.  Seen on AIX.
25921
25922 2006-03-01  Simon Josefsson  <jas@extundo.com>
25923
25924         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25925         <kasal@ucw.cz>.
25926
25927 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25928
25929         * modules/gettime (Depends-on): Add extensions module.
25930         * modules/nanosleep (Depends-on): Likewise.
25931         * modules/settime (Depends-on): Likewise.
25932
25933 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25934
25935         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25936         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25937         pedantically.
25938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25939         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25940
25941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25942         not "==".  Reported by Ralf Wildenhues.
25943
25944 2006-03-01  Karl Berry  <karl@gnu.org>
25945
25946         * doc/Copyright/request-*: new files, synced from gnuorg.
25947
25948 2006-03-01  Karl Berry  <karl@gnu.org>
25949
25950         * config/srclist.txt (Copyright/*): new entries.
25951
25952 2006-02-28  Simon Josefsson  <jas@extundo.com>
25953
25954         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25955
25956 2006-02-27  Simon Josefsson  <jas@extundo.com>
25957
25958         * lib/base64.h: Indent #define's.  From Jim Meyering
25959         <jim@meyering.net>.
25960
25961 2006-02-27  Jim Meyering  <jim@meyering.net>
25962
25963         Revert the change of 2006-02-24, so these files can continue
25964         to be sync'd from gettext.
25965         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25966         of `config.h'.
25967
25968 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25969
25970         * modules/intprops: New file.
25971         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25972         Add intprops.
25973         * modules/getloadavg (Files): Remove lib/intprops.h.
25974         (Depends-on): Add intprops.
25975         * modules/human: Likewise.
25976         * modules/inttostr: Likewise.
25977         * modules/openat: Likewise.
25978         * modules/sig2str: Likewise.
25979         * modules/userspec: Likewise.
25980         * modules/utimecmp: Likewise.
25981         * modules/xnanosleep: Likewise.
25982         * modules/xstrtol: Likewise.
25983
25984 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25985
25986         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25987         * modules/lock-tests (TESTS): Use $(EXEEXT).
25988         * modules/tls-tests: Likewise.
25989         * modules/argp-tests: Likewise.
25990         (check_PROGRAMS): New var, replacing...
25991         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25992
25993 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25994
25995         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25996         `config.h'.
25997
25998 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25999
26000         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26001
26002 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26003
26004         Sync from coreutils.
26005         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26006         gl_CHDIR_SAFER.
26007
26008 2006-02-22  Jim Meyering  <jim@meyering.net>
26009
26010         Sync from coreutils.
26011         * m4/chdir-safer.m4: New file.
26012
26013 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26014
26015         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26016         AT_FDCWD exceeds INT_MAX.
26017         * lib/openat.h (AT_FDCWD): Likewise.
26018
26019 2006-02-17  Eric Blake  <address@hidden>
26020
26021         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26022
26023 2006-02-16  Simon Josefsson  <jas@extundo.com>
26024
26025         * modules/getaddrinfo (Depends-on): Add sys_socket.
26026
26027 2006-02-15  Simon Josefsson  <jas@extundo.com>
26028
26029         * build-aux/maint.mk: Add dsyntax-check rule.
26030
26031 2006-02-15  Eric Blake  <ebb9@byu.net>
26032
26033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26034         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26035         'present but cannot compile' warnings on cygwin.
26036         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26037         use ws2tcpip.h if sys/socket.h works.
26038         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26039         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26040
26041 2006-02-14  Simon Josefsson  <jas@extundo.com>
26042
26043         * modules/maintainer-makefile (Files): Rename.
26044
26045         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26046         and (the local) Makefile.cfg to maint-cfg.mk.
26047
26048         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26049         to the latter.
26050
26051         * modules/maintainer-makefile: New module.
26052
26053         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
26054         severaly stripped to make it possible to build it up from scratch
26055         with reliable tests.
26056
26057         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
26058         fixes to permit overriding the default actions when configure and
26059         makefile are not available.
26060
26061 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26062
26063         Sync from coreutils.
26064         * modules/lstat (Depends-on): Don't depend on xalloc.
26065         (License): Change from GPL to LGPL, since this is now simply a
26066         replacement for a libc function.
26067
26068 2006-02-14  Jim Meyering  <jim@meyering.net>
26069
26070         Sync from coreutils.
26071
26072         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
26073         failure on deficient systems, and simplify gnulib lgpl dependencies.
26074         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26075         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26076
26077         * lib/xalloc-die.c: Remove unused definition of N_.
26078
26079 2006-02-14  Jim Meyering  <jim@meyering.net>
26080
26081         Sync from coreutils.
26082         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26083         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26084         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26085         double-quote uses of that variable, to accommodate the rare case in
26086         which getmntent is available in none of the libraries checked.  This
26087         happens at least on FreeBSD 5.0.
26088
26089 2006-02-13  Simon Josefsson  <jas@extundo.com>
26090
26091         * gnulib-tool (Usage): Fix --import, from
26092         karl@freefriends.org (Karl Berry).
26093
26094 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26095
26096         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26097
26098 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26099
26100         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26101         "autoupdate" on 2005-12-12.
26102
26103 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26104
26105         * modules/closeout (Depends-on): Remove atexit.
26106
26107 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26108
26109         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26110         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26111
26112 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26113
26114         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26115         __EXTENSIONS__ if this causes compilation to fail.  Problem
26116         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26117         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26118
26119 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26122         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26124         All uses changed.
26125
26126 2006-01-26  Simon Josefsson  <jas@extundo.com>
26127
26128         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26129         prototype is visible on mingw32.
26130
26131         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26132         for mingw32.
26133
26134         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26135         mingw32).
26136
26137 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26138
26139         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26140         attempt to open for write; this always fails, at least on POSIX
26141         hosts.  This reinstates the 2006-01-09 change, which was
26142         inadvertently removed.
26143
26144 2006-01-26  Bruno Haible  <bruno@clisp.org>
26145
26146         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26147         Reported by Paul Eggert.
26148
26149 2006-01-26  Bruno Haible  <bruno@clisp.org>
26150             Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         * lib/stdbool_.h (_Bool)
26153         [(! (defined __cplusplus || defined __BEOS__)
26154           && !defined __GNUC__
26155           && !(defined __HP_cc || defined __xlc__
26156                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26157                || defined __sgi))]:
26158         #define to signed char in these cases too; this simplifies
26159         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26160         etc., separately) and makes it more conservative.
26161
26162 2006-01-25  Simon Josefsson  <jas@extundo.com>
26163
26164         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26165         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26166         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26167
26168 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26169
26170         * lib/argp-namefrob.h: Bugfix. Remove stray #
26171
26172 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26173
26174         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26175         so that we test the test.
26176         Check for yet another HP-UX cc bug involving *bool |= bool.
26177
26178 2006-01-25  Karl Berry  <karl@gnu.org>
26179
26180         * config/srclist.txt (vasnprintf.c): sync lost.
26181
26182 2006-01-25  Jim Meyering  <jim@meyering.net>
26183
26184         Sync from the stable (b5) branch of coreutils:
26185
26186         * lib/fts.c (fts_children): Don't let close() clobber errno from
26187         failed fchdir().
26188
26189         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26190         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26191         a dangling symlink.  That can also happen at least for ELOOP.
26192         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26193         FYI, this bug predates the inclusion of fts.c in coreutils.
26194
26195         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26196         in their own block, so pre-c99 compilers don't object.
26197
26198         Avoid the double-free (first in fts_read, second in fts_close) that
26199         would occur when an `active' directory is made inaccessible (e.g.,
26200         via chmod a-x) during a traversal.
26201         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26202         before returning.  Reproduce this failure by
26203         mkdir -p a/b; cd a; chmod a-x . b
26204         Reported by Stavros Passas.
26205
26206 2006-01-25  Jim Meyering  <jim@meyering.net>
26207
26208         * lib/fileblocks.c: Remove more useless parentheses.
26209         * lib/readutmp.h: Likewise.
26210
26211 2006-01-25  Bruno Haible  <bruno@clisp.org>
26212
26213         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26214         warnings.
26215         Reported by Paul Eggert.
26216
26217 2006-01-25  Bruno Haible  <bruno@clisp.org>
26218
26219         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26220         rid of a trap command. For Solaris sh.
26221         Reported by Mark D. Baushke <mdb@gnu.org>.
26222
26223 2006-01-24  Simon Josefsson  <jas@extundo.com>
26224
26225         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26226         Bruno.
26227
26228 2006-01-24  Karl Berry  <karl@gnu.org>
26229
26230         * config/srclist.txt (argp-namefrob.h): sync lost.
26231
26232 2006-01-24  Jim Meyering  <jim@meyering.net>
26233
26234         * modules/openat (Files): Add lib/intprops.h.
26235         From Mark D. Baushke.
26236
26237 2006-01-24  Jim Meyering  <jim@meyering.net>
26238
26239         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26240         Reported by Mark D. Baushke.
26241
26242 2006-01-24  Jim Meyering  <jim@meyering.net>
26243
26244         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26245
26246 2006-01-24  Bruno Haible  <bruno@clisp.org>
26247
26248         * modules/strnlen (Maintainer): Change from glibc to all.
26249
26250 2006-01-24  Bruno Haible  <bruno@clisp.org>
26251
26252         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26253         Patch by Paul Eggert.
26254
26255 2006-01-24  Bruno Haible  <bruno@clisp.org>
26256
26257         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26258         already has it.
26259         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26260         2005-11-26.
26261
26262         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26263         'signed char' to avoid problems with the built-in _Bool type.
26264         Reported by Paul Eggert on 2005-11-26.
26265
26266 2006-01-24  Bruno Haible  <bruno@clisp.org>
26267
26268         * gnulib-tool (func_import): Avoid constructing complicated sed
26269         expressions inside backquote.
26270         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26271
26272 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26273
26274         These changes imported from libc.
26275         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26276         test and two separate function calls.
26277         * lib/strndup.c (__strndup): Add libc_hidden_def.
26278
26279 2006-01-23  Simon Josefsson  <jas@extundo.com>
26280
26281         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26282         Remove the test_*_SOURCES variable: automake infers it by default.
26283         * modules/tls-tests: Likewise.
26284
26285 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         Work around porting bugs reported by Dieter in
26288         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26289         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26290         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26291         Include "getopt.h" first, to check interface.
26292         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26293         !HAVE_DECL_GETENV.
26294         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26295         (__strndup): Revert to K&R-style function dfns, the glibc style.
26296         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26297         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26298         Include strnlen.h first, to get prototype properly.
26299         (strnlen): Renamed from __strnlen.
26300         Remove weak alias.
26301
26302 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26303
26304         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26305
26306 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26307
26308         * config/srclist.txt: Adjust to reflect glibc reorganization.
26309         This affects only comments.
26310
26311 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26312
26313          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26314          Reported by Bruce Korb <bkorb@gnu.org>.
26315
26316 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26317
26318         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26319         to pacify gcc -Wswitch-default.
26320
26321 2006-01-22  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26324         temporary buffer for sprintf, take into account the precision also
26325         for 'd', 'i', 'u', 'o', 'x', 'X'.
26326
26327 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26328
26329         * modules/argp-tests: New module
26330         * tests/test-argp.c: New file
26331         * tests/test-argp-2.sh: New file
26332
26333 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26334
26335         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26336         (__argp_base_name): Removed
26337         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26338         typo.
26339         (__argp_base_name): Provide macro definition or extern declaration
26340         depending on the configuration
26341
26342 2006-01-20  Simon Josefsson  <jas@extundo.com>
26343
26344         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26345
26346 2006-01-20  Simon Josefsson  <jas@extundo.com>
26347
26348         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26349
26350 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26351
26352         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26353         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26354         Suggested by Bruno Haible.
26355
26356 2006-01-20  Karl Berry  <karl@gnu.org>
26357
26358         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26359         until changes propagate, I guess.
26360
26361 2006-01-19  Simon Josefsson  <jas@extundo.com>
26362
26363         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26364
26365 2006-01-19  Simon Josefsson  <jas@extundo.com>
26366
26367         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26368
26369 2006-01-19  Simon Josefsson  <jas@extundo.com>
26370
26371         * gnulib-tool: Set check_PROGRAMS.
26372
26373         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26374         modules/des-tests, modules/gc-arcfour-tests,
26375         modules/gc-arctwo-tests, modules/gc-des-tests,
26376         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26377         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26378         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26379         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26380         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26381         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26382         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26383         test_*_SOURCES.
26384
26385 2006-01-18  Simon Josefsson  <jas@extundo.com>
26386
26387         * modules/socklen (Depends-on): Depend on sys_socket.
26388
26389 2006-01-18  Simon Josefsson  <jas@extundo.com>
26390
26391         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26392         modules/des-tests, modules/gc-arcfour-tests,
26393         modules/gc-arctwo-tests, modules/gc-des-tests,
26394         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26395         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26396         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26397         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26398         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26399         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26400         $(EXEEXT) to automake TESTS variable, for mingw32.
26401
26402 2006-01-17  Simon Josefsson  <jas@extundo.com>
26403
26404         * modules/socklen (Include): Need sys/socket.h.
26405
26406 2006-01-17  Bruno Haible  <bruno@clisp.org>
26407
26408         * modules/ssize_t (Include): Add <sys/types.h>.
26409
26410 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26411
26412         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26413         it's not portable and it doesn't work with cross-compiles.
26414         Problem reported by Bruno Haible.  Fix missing-$ typo in
26415         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26416         -zignore from being used with Sun's C compiler.
26417
26418 2006-01-12  Simon Josefsson  <jas@extundo.com>
26419
26420         * lib/base64.c: Fix warning, reported by Bruno Haible
26421         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26422
26423 2006-01-12  Bruno Haible  <bruno@clisp.org>
26424
26425         * modules/ldd: New file.
26426         * build-aux/ldd.sh.in: New file.
26427         * MODULES.html.sh (Support for building libraries and executables): Add
26428         ldd.
26429
26430 2006-01-12  Bruno Haible  <bruno@clisp.org>
26431
26432         * m4/ldd.m4: New file.
26433
26434 2006-01-12  Bruno Haible  <bruno@clisp.org>
26435
26436         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26437         endless loop while replacing $auxdir with build-aux.
26438
26439 2006-01-11  Simon Josefsson  <jas@extundo.com>
26440
26441         * lib/stdint_.h (SIZE_MAX): Add missing (.
26442
26443 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         Sync from coreutils.
26446         * lib/md5.c: Fix commentary typos.
26447         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26448         * lib/md5.h (__attribute__): Remove; unused.
26449         * lib/sha1.c: Fix commentary to match md5 better.
26450         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26451         so that we don't need to worry about alignment.  All uses changed.
26452         This merges the 2005-10-28 md5 change into sha1.
26453
26454 2006-01-11  Jim Meyering  <jim@meyering.net>
26455
26456         Sync from coreutils.
26457         * lib/md5.c (OP): Fix spacing.
26458
26459 2006-01-11  Bruno Haible  <bruno@clisp.org>
26460
26461         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26462         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26463         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26464
26465 2006-01-11  Bruno Haible  <bruno@clisp.org>
26466
26467         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26468         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26469         the "early" section as well.
26470
26471 2006-01-11  Bruno Haible  <bruno@clisp.org>
26472
26473         Avoid "ar: no archive members specified" error on MacOS X.
26474         * gnulib-tool (func_modules_add_dummy): New function.
26475         (func_import, func_create_testdir): Invoke it.
26476
26477 2006-01-11  Bruno Haible  <bruno@clisp.org>
26478
26479         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26480         with $auxdir in AC_CONFIG_FILES statements.
26481
26482 2006-01-11  Bruno Haible  <bruno@clisp.org>
26483
26484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26485         Initialize also noinst_HEADERS to empty.
26486
26487 2006-01-11  Bruno Haible  <bruno@clisp.org>
26488
26489         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26490         variables.
26491         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26492         autoreconf.
26493
26494 2006-01-11  Bruno Haible  <bruno@clisp.org>
26495
26496         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26497         overridable by the user.
26498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26499
26500 2006-01-10  Simon Josefsson  <jas@extundo.com>
26501
26502         * modules/sys_socket: New file.
26503
26504 2006-01-10  Simon Josefsson  <jas@extundo.com>
26505
26506         * m4/sys_socket_h.m4: New file.
26507
26508 2006-01-10  Simon Josefsson  <jas@extundo.com>
26509
26510         * lib/socket_.h: New file.
26511
26512 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26513
26514         * modules/readutmp (Maintainer): Add myself.
26515
26516 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26517
26518         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26519         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26520         People who are still concerned with buggy memcmp implementations
26521         can invoke gl_FUNC_MEMCMP themselves.
26522
26523 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26524
26525         * lib/regex_internal.h (BITSET_WORD_BITS):
26526         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26527         preprocessor mishandles large unsigned values as if they were signed.
26528         Problem reported by Claudio Fontana in
26529         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26530
26531 2006-01-10  Jim Meyering  <jim@meyering.net>
26532
26533         Avoid the double-free (first in fts_read, second in fts_close) that
26534         would occur when an `active' directory is made inaccessible (e.g.,
26535         via chmod a-x) during a traversal.
26536         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26537         before returning.  Reproduce this failure by
26538         mkdir -p a/b; cd a; chmod a-x . b
26539         Reported by Stavros Passas.
26540
26541         Sync from coreutils.
26542         * lib/sha1.c: Tweak grammar in a comment.
26543
26544 2006-01-10  Jim Meyering  <jim@meyering.net>
26545
26546         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26547         Patch by Joerg Sonnenberger.
26548
26549 2006-01-10  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/readutmp: Depend on module free.
26552         * modules/strtok_r: Depend on module restrict.
26553
26554 2006-01-10  Bruno Haible  <bruno@clisp.org>
26555
26556         * modules/gettext (configure.ac): Add an invocation of
26557         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26558
26559 2006-01-10  Bruno Haible  <bruno@clisp.org>
26560
26561         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26562         Reported by Werner Lemberg <wl@gnu.org>.
26563
26564 2006-01-10  Bruno Haible  <bruno@clisp.org>
26565
26566         * lib/localcharset.c: Update from GNU gettext.
26567
26568 2006-01-10  Bruno Haible  <bruno@clisp.org>
26569
26570         * lib/argp.h (__const): Remove macro. Use const instead.
26571         * lib/argp-fmtstream.h (__const): Likewise.
26572         * lib/glob_.h (__const): Remove macro.
26573         * lib/glob-libc.h: Use const instead of __const.
26574
26575 2006-01-10  Bruno Haible  <bruno@clisp.org>
26576
26577         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26578         variable.
26579         Needed to avoid an automake error regarding the 'gettext' module.
26580
26581 2006-01-09  Simon Josefsson  <jas@extundo.com>
26582
26583         * modules/inet_ntop (Depends-on): Add restrict.
26584
26585 2006-01-09  Simon Josefsson  <jas@extundo.com>
26586
26587         * modules/gc-rijndael-tests (License): Put under LGPL.
26588
26589         * modules/gc-des-tests (License): Likewise.
26590
26591         * modules/gc-arcfour-tests (License): Likewise.
26592
26593         * modules/gc-arctwo-tests (License): Likewise.
26594
26595         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26596
26597         * modules/gc-hmac-sha1-tests (Files): Likewise.
26598
26599         * modules/gc-hmac-md5-tests (License): Likewise.
26600
26601         * modules/gc-sha1-tests (License): Likewise.
26602
26603         * modules/gc-md5-tests (License): Likewise.
26604
26605         * modules/gc-md4-tests (License): Likewise.
26606
26607         * modules/gc-md2-tests (License): Likewise.
26608
26609         * modules/gc-tests (License): Likewise.
26610
26611         * modules/des-tests (License): Likewise.
26612
26613         * modules/md4-tests (License): Likewise.
26614
26615         * modules/md2-tests (License): Likewise.
26616
26617 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26618
26619         Sync from coreutils:
26620
26621         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26622         * modules/lib-ignore: New file.
26623         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26624         chdir-safer.m4, lchmod.m4.
26625         * modules/openat: Add mkdirat.c, openat-priv.h.
26626
26627 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26628
26629         Sync from coreutils.
26630         * m4/lib-ignore.m4: New file.
26631         * m4/lchmod.m4: New file.
26632
26633 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26634
26635         Sync from coreutils.
26636         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26637         for write access: POSIX says that must fail.
26638         * lib/fts.c (diropen): Likewise.
26639         * lib/save-cwd.c (save_cwd): Likewise.
26640         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26641         well, for minor improvements on hosts that lack O_DIRECTORY.
26642         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26643         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26644         Fall back on chown if open failed with EACCES.
26645
26646         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26647         Report an error at compile-time if only a 1-second nominal clock
26648         resolution is found.
26649
26650         * lib/lchmod.h: New file.
26651         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26652         (make_dir_parents): Use lchown rather than chown, and
26653         lchmod rather than chmod.
26654
26655         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26656         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26657         "proc" reported by n0dalus.
26658
26659         * lib/mountlist.c: Include <limits.h>.
26660         (dev_from_mount_options)
26661         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26662         New function.  It no longer assumes "dev=" has the System V meaning
26663         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26664         (read_file_system_list)
26665         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26666         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26667         dev= in that case.
26668
26669         * lib/posixtm.h (PDS_PRE_2000): New macro.
26670         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26671         allow_century.  All usages changed.  Reject dates outside the range
26672         1969-1999 if PDS_PRE_2000 is used.
26673
26674 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         Sync from coreutils.
26677         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26678         (Time of day items): Mention the possibility of leap seconds.
26679         Problem reported by Dr. David Alan Gilbert.
26680
26681 2006-01-09  Jim Meyering  <jim@meyering.net>
26682
26683         Sync from coreutils.
26684
26685         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26686
26687         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26688
26689         * lib/modechange.c (mode_compile): Reject an invalid mode string
26690         that starts with an octal digit.  From Andreas Gruenbacher.
26691
26692         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26693         and dup to open_safer and dup_safer, respectively.
26694         (openat_permissive): Fix typo in comment.
26695
26696         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26697         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26698         (_): Remove; no longer needed.
26699         (openat): Renamed from rpl_openat; no need for rpl_openat
26700         since openat.h renames openat for us.
26701         Replace most of the body with a call to openat_permissive,
26702         to avoid duplicate code.
26703         Port to (probably hypothetical) environments were mode_t is
26704         wider than int.
26705         (openat_permissive): Require mode arg, so that we can check
26706         types better.  Put it just after flags.  Change cwd failure
26707         indicator from pointer-to-bool to pointer-to-errno-value.
26708         All callers changed.
26709         Invoke openat_save_fail and/or openat_restore_fail if
26710         cwd_errno is null, so that openat can call us.
26711         (openat_permissive, fdopendir, fstatat, unlinkat):
26712         Simplify errno handling to avoid some duplicate code,
26713         as it's OK to set errno on success.
26714         * lib/openat.h: Revamp code so that function macros depend on
26715         __OPENAT_PREFIX only, not also on AT_FDCWD.
26716         (openat_ro): Remove.  Caller changed to use openat_permissive.
26717         (openat_permissive): Now a macro, if not a function.
26718         (openat_restore_fail, openat_save_fail): Now always functions,
26719         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26720
26721         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26722         and openat.c.
26723         * lib/mkdirat.c: Include openat-priv.h.
26724         Remove definitions of macros defined therein.
26725         * lib/openat.c: Likewise.
26726
26727         * lib/mkdirat.c (mkdirat): New file and function.
26728         * lib/openat.h (mkdirat): Declare.
26729
26730         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26731
26732         * lib/openat.h (openat_permissive): Declare.
26733         (openat_ro): Define.
26734
26735         * lib/openat.c (EXPECTED_ERRNO): New macro.
26736         (openat_permissive): New function -- used in remove.c rewrite.
26737         (all functions): Set errno just before returning, only if there
26738         was an actual failure.
26739         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26740
26741         Emulate openat-family functions using Linux's procfs, if possible.
26742         Idea and some code based on Ulrich Drepper's glibc changes.
26743
26744         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26745         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26746         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26747         before falling back on save_cwd and restore_cwd.
26748         (fdopendir, fstatat, unlinkat): Likewise.
26749
26750         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26751         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26752
26753         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26754         as second argument to va_arg.  Otherwise, some versions of gcc
26755         warn that `if this code is reached, the program will abort'.
26756
26757 2006-01-09  Jim Meyering  <jim@meyering.net>
26758
26759         Sync from coreutils.
26760         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26761         Require openat-priv.h.
26762
26763 2006-01-09  Bruno Haible  <bruno@clisp.org>
26764
26765         * modules/strnlen (Include): Use strnlen.h.
26766
26767 2006-01-09  Bruno Haible  <bruno@clisp.org>
26768
26769         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26770
26771 2006-01-09  Bruno Haible  <bruno@clisp.org>
26772
26773         * lib/sysexit_.h (EX_OK): New macro.
26774         Suggested by Martin Lambers <marlam@marlam.de>.
26775
26776 2006-01-09  Bruno Haible  <bruno@clisp.org>
26777
26778         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26779         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26780
26781 2006-01-09  Bruno Haible  <bruno@clisp.org>
26782
26783         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26784         numbers.
26785
26786 2006-01-09  Bruno Haible  <bruno@clisp.org>
26787
26788         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26789         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26790         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26791         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26792
26793 2006-01-09  Bruno Haible  <bruno@clisp.org>
26794
26795         * build-aux/javacomp.sh.in: New file, moved from lib/.
26796         * modules/javacomp-script (Files): Update.
26797         (configure.ac): Add AC_CONFIG_FILES invocation.
26798         (EXTRA_DIST): Remove variable.
26799
26800         * build-aux/javaexec.sh.in: New file, moved from lib/.
26801         * modules/javaexec (Files): Update.
26802         (configure.ac): Add AC_CONFIG_FILES invocation.
26803         (EXTRA_DIST): Remove javaexec.sh.in.
26804
26805         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26806         * modules/csharpcomp-script (Files): Update.
26807         (configure.ac): Add AC_CONFIG_FILES invocation.
26808         (EXTRA_DIST): Remove variable.
26809
26810         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26811         * modules/csharpexec (Files): Update.
26812         (configure.ac): Add AC_CONFIG_FILES invocation.
26813         (EXTRA_DIST): Remove csharpexec.sh.in.
26814
26815 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26816
26817         Sync from coreutils.
26818
26819         Add POSIX ACL support
26820         * lib/acl.h (copy_acl, set_acl): Add declarations.
26821         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26822         systems other than Linux.
26823         (chmod_or_fchmod): New function: use fchmod when possible,
26824         and chmod otherwise.
26825         (file_has_acl): Add a POSIX ACL implementation, with a
26826         Linux-specific subcase.
26827         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26828         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26829         acls are unsupported.
26830         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26831         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26832         are unsupported.
26833
26834 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26835
26836         Sync from coreutils.
26837         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26838
26839 2006-01-07  Bruno Haible  <bruno@clisp.org>
26840
26841         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26842         gl_EARLY.
26843
26844 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26845
26846         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26847         Problem reported for Mingw by Mark Junker.
26848
26849 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26850
26851         * README: Gnulib normally doesn't generate a tarball.
26852
26853 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26854
26855         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26856         long int, not int, for nanosecond counts, so that people who are
26857         used to POSIX struct timespec won't be surprised.  Reported by Jim
26858         Meyering.
26859
26860 2005-12-28  Bruno Haible  <bruno@clisp.org>
26861
26862         * build-aux/config.rpath: Update from GNU gettext.
26863
26864 2005-12-16  Jim Meyering  <jim@meyering.net>
26865
26866         * modules/fprintftime: New module.
26867         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26868
26869 2005-12-16  Jim Meyering  <jim@meyering.net>
26870
26871         * m4/fprintftime.m4: New file.
26872
26873 2005-12-16  Jim Meyering  <jim@meyering.net>
26874
26875         * lib/fprintftime.c, lib/fprintftime.h: New files.
26876
26877 2005-12-15  Simon Josefsson  <jas@extundo.com>
26878
26879         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26880         new m4/socklen.m4.
26881
26882 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26883
26884         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26885         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26886
26887 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26888
26889         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26890         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26891         struct uparams is valid. Fall back to the default values if it is
26892         not.
26893
26894 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26895
26896         * modules/argp (Files): Add argp-pin.c
26897         (Depends-on): dirname
26898         (lib_SOURCES): Add argp-pin.c
26899
26900 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26901
26902         * m4/argp.m4:  Check if program_invocation_name and
26903         program_invocation_short_name are declared and define appropriate
26904         macros if they are not.
26905
26906 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26907
26908         * lib/argp-help.c (__argp_base_name): New function
26909         (__argp_short_program_name): Rewrite using __argp_base_name
26910         * lib/argp-namefrob.h: Define program_invocation_name and
26911         program_invocation_short_name if requested
26912         (__argp_base_name): Add prototype
26913         * lib/argp-parse.c (argp_def): Use gettext wrappers
26914         (argp_default_parser): Use __argp_base_name
26915         * lib/argp-pin.c: New file. Defines program_invocation_name and
26916         program_invocation_short_name on systems that lack them.
26917
26918 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26921         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26922         porting problem reported by Georg Schwarz in
26923         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26924
26925 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26928         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26929         porting problem reported by Georg Schwarz in
26930         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26931
26932 2005-12-05  Bruno Haible  <bruno@clisp.org>
26933
26934         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26935         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26936         Reported by Mark Junker <mjscod@gmx.de>.
26937
26938 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26939
26940         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26941         Use implementation from Albert Chin, with some
26942         comments/corrections by Stepan Kasal and myself.
26943
26944 2005-12-02  Bruno Haible  <bruno@clisp.org>
26945
26946         * gnulib-tool (func_import): Accept GPLed build tool modules when
26947         --lgpl is given.
26948         * modules/csharpcomp-script: New file.
26949         * modules/csharpcomp: Depend on it.
26950         * modules/javacomp-script: New file.
26951         * modules/javacomp: Depend on it.
26952         Suggested by Simon Josefsson.
26953
26954 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26955
26956         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26957         statement, to work around an HP-UX 10.20 compiler bug reported by
26958         Peter O'Gorman.
26959
26960 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         * modules/savedir (Depends-on): Add openat.
26963
26964 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26965
26966         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26967         (uintmax_t) [defined uintmax_t]: Do not declare.
26968         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26969         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26970         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26971         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26972         sake of portability to weird hosts that C allows (though we don't
26973         know of any practical examples).
26974
26975         * lib/savedir.h (fdsavedir): New decl.
26976         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26977         contains most of the former guts of savedir.
26978         (savedir): Use savedirstream.
26979         Include "openat.h".
26980
26981 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26982
26983         * modules/obstack (Files): Add m4/ulonglong.m4.
26984         Problem reported by Davide Angelocola.
26985
26986 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26987
26988         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26989         coreutils no longer futzes with rounding modes.
26990
26991 2005-11-14  Jim Meyering  <jim@meyering.net>
26992
26993         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26994         replacement of mkstemp.
26995
26996 2005-11-10  Simon Josefsson  <jas@extundo.com>
26997
26998         * lib/readline.c: Remove EOL.
26999
27000 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27001
27002         * modules/gethrxtime (Depends-on): Add gettime.
27003
27004 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27005
27006         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27007         or gettimeofday; no longer needed.
27008
27009 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27010
27011         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27012         time business.
27013         (gethrxtime) [! (HAVE_NANOUPTIME
27014         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27015         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27016         our own approximation.
27017
27018 2005-11-08  Eric Blake  <ebb9@byu.net>
27019
27020         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27021
27022 2005-11-08  Eric Blake  <ebb9@byu.net>
27023
27024         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27025
27026 2005-11-04  Bruno Haible  <bruno@clisp.org>
27027
27028         * gnulib-tool: Implement --update mode.
27029
27030 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27031
27032         Fix porting problem reported by Theodoros V. Kalamatianos.
27033         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27034         Don't assume that futimes failing means we must fail.
27035
27036 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27037
27038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27039         variables to suggest the intended function of the PATH_MAX check.
27040
27041 2005-10-30  Kean Johnston  <jkj@sco.com>
27042
27043         Trivial changes to support SCO systems.
27044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27045         as PATH_MAX.
27046         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27047         where __ptr is null when no I/O is pending.
27048
27049 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27050
27051         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27052         leave errno alone.  Problem reported by Dmitry V. Levin.
27053
27054 2005-10-28  Simon Josefsson  <jas@extundo.com>
27055
27056         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
27057         Test more.
27058
27059         * tests/test-gc-md2.c, tests/test-md2.c: New files.
27060
27061         * modules/md2, modules/md2-tests: New files.
27062
27063 2005-10-28  Simon Josefsson  <jas@extundo.com>
27064
27065         * m4/inet_ntop.m4: More tests.
27066
27067         * m4/gc-md2.m4, md2.m4: New file.
27068
27069 2005-10-28  Simon Josefsson  <jas@extundo.com>
27070
27071         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
27072         "restrict" keywords, as per POSIX.  Protect the function
27073         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
27074         Don't use K&R prototypes.  Check the sprintf return values.
27075         Re-define EAFNOSUPPORT if not present.  Indent.
27076
27077         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27078         suggested by Bruno Haible <bruno@clisp.org>.
27079
27080         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27081
27082         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27083
27084         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27085         libgcrypt).
27086
27087         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27088
27089         * lib/md2.h, lib/md2.c: New files.
27090
27091 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27092
27093         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27094         errno alone.  Problem reported by Frederic Jolliton.
27095
27096 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         * modules/verify (License): Change from GPL to LGPL.  This is a
27099         tiny module and there are apparently near-equivalents that are
27100         under the BSD license.
27101
27102 2005-10-24  Simon Josefsson  <jas@extundo.com>
27103
27104         * modules/sha1: Relicense to LGPL.
27105
27106 2005-10-24  Simon Josefsson  <jas@extundo.com>
27107
27108         * lib/md4.h: Shrink buffer size, now that we changed the type.
27109
27110 2005-10-23  Simon Josefsson  <jas@extundo.com>
27111
27112         * gnulib-tool (func_import): Fix --tests-base.
27113
27114 2005-10-22  Simon Josefsson  <jas@extundo.com>
27115
27116         * modules/arcfour (Depends-on): Need stdint.
27117
27118 2005-10-22  Simon Josefsson  <jas@extundo.com>
27119
27120         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27121         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27122
27123 2005-10-22  Simon Josefsson  <jas@extundo.com>
27124
27125         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27126         suggested by Bruno Haible <bruno@clisp.org>.
27127
27128 2005-10-22  Simon Josefsson  <jas@extundo.com>
27129
27130         * lib/crc.h: Include stddef.h, for size_t.
27131
27132 2005-10-22  Simon Josefsson  <jas@extundo.com>
27133
27134         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27135         arcfour_context struct (simplify test vector testing in GNU
27136         Shishi).
27137
27138 2005-10-21  Simon Josefsson  <jas@extundo.com>
27139
27140         * modules/des, modules/des-tests: New files.
27141
27142         * modules/gc-des, modules/gc-des-tests: New files.
27143
27144         * tests/test-des.c, tests/test-gc-des.c: New file.
27145
27146 2005-10-21  Simon Josefsson  <jas@extundo.com>
27147
27148         * modules/arctwo, modules/arctwo-tests: New files.
27149
27150         * tests/test-arctwo.c: New file.
27151
27152         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27153
27154         * tests/test-gc-arctwo.c: New file.
27155
27156 2005-10-21  Simon Josefsson  <jas@extundo.com>
27157
27158         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27159         Bruno Haible <bruno@clisp.org>.
27160
27161         * m4/gc-des.m4: New file.
27162
27163 2005-10-21  Simon Josefsson  <jas@extundo.com>
27164
27165         * m4/arctwo.m4: New file.
27166
27167         * m4/gc-arctwo.m4: New file.
27168
27169 2005-10-21  Simon Josefsson  <jas@extundo.com>
27170
27171         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27172         block.
27173
27174 2005-10-21  Simon Josefsson  <jas@extundo.com>
27175
27176         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27177         <bruno@clisp.org>.
27178
27179         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27180
27181         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27182         Bruno Haible <bruno@clisp.org>.
27183
27184         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27185         <bruno@clisp.org>.
27186
27187 2005-10-21  Simon Josefsson  <jas@extundo.com>
27188
27189         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27190
27191 2005-10-21  Simon Josefsson  <jas@extundo.com>
27192
27193         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27194
27195 2005-10-21  Simon Josefsson  <jas@extundo.com>
27196
27197         * lib/des.h, lib/des.c: New files.
27198
27199         * lib/gc-gnulib.c: Support DES.c
27200
27201 2005-10-21  Simon Josefsson  <jas@extundo.com>
27202
27203         * lib/arctwo.h, lib/arctwo.c: New files.
27204
27205         * lib/gc-gnulib.c: Support ARCTWO.
27206
27207 2005-10-21  Simon Josefsson  <jas@extundo.com>
27208
27209         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27210         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27211
27212 2005-10-21  Simon Josefsson  <jas@extundo.com>
27213
27214         * gnulib-tool (func_import, func_create_testdir): Define automake
27215         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27216         Makefile.am snippet),
27217         suggested by Bruno Haible <bruno@clisp.org>.
27218
27219         * modules/gc (Makefile.am): Use it.
27220
27221 2005-10-21  Bruno Haible  <bruno@clisp.org>
27222
27223         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27224         patch.
27225
27226 2005-10-19  Simon Josefsson  <jas@extundo.com>
27227
27228         * tests/test-gc-rijndael.c: New file.
27229
27230         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27231
27232 2005-10-19  Simon Josefsson  <jas@extundo.com>
27233
27234         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27235         interface too.
27236
27237 2005-10-19  Simon Josefsson  <jas@extundo.com>
27238
27239         * tests/test-gc-arcfour.c: New file.
27240
27241         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27242
27243 2005-10-19  Simon Josefsson  <jas@extundo.com>
27244
27245         * modules/gc-md4, modules/gc-md4-tests: New file.
27246
27247         * tests/test-gc-md4.c: New file.
27248
27249 2005-10-19  Simon Josefsson  <jas@extundo.com>
27250
27251         * m4/gc-md4.m4: New file.
27252
27253 2005-10-19  Simon Josefsson  <jas@extundo.com>
27254
27255         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27256         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27257         <kasal@ucw.cz>.
27258
27259 2005-10-19  Simon Josefsson  <jas@extundo.com>
27260
27261         * m4/gc-arcfour.m4: New file.
27262
27263         * m4/gc-rijndael.m4: New file.
27264
27265 2005-10-19  Simon Josefsson  <jas@extundo.com>
27266
27267         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27268
27269 2005-10-19  Simon Josefsson  <jas@extundo.com>
27270
27271         * lib/gc-gnulib.c: Support ARCFOUR.
27272
27273 2005-10-19  Simon Josefsson  <jas@extundo.com>
27274
27275         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27276         support.
27277
27278         * lib/gc.h: Add ECB enum type.
27279
27280         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27281
27282 2005-10-18  Simon Josefsson  <jas@extundo.com>
27283
27284         * tests/test-md5.c: New file.
27285
27286         * modules/md5-tests: New file.
27287
27288 2005-10-18  Simon Josefsson  <jas@extundo.com>
27289
27290         * tests/test-md4.c: New file.
27291
27292         * modules/md4, modules/md4-tests: New files.
27293
27294 2005-10-18  Simon Josefsson  <jas@extundo.com>
27295
27296         * m4/md4.m4: New file.
27297
27298 2005-10-18  Simon Josefsson  <jas@extundo.com>
27299
27300         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27301
27302 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27303
27304         * gnulib-tool (func_create_testdir): Omit the second check whether
27305         BUILT_SOURCES in nonempty.
27306
27307 2005-10-17  Simon Josefsson  <jas@extundo.com>
27308
27309         * tests/test-rijndael.c: New file.
27310
27311 2005-10-17  Simon Josefsson  <jas@extundo.com>
27312
27313         * modules/sha1: Depend on stdint instead of md5.
27314
27315         * modules/md5: Depend on stdint, remove uint32_t.
27316
27317 2005-10-17  Simon Josefsson  <jas@extundo.com>
27318
27319         * modules/gc-sha1-tests: New file.
27320
27321         * tests/test-gc-sha1.c: New file.
27322
27323 2005-10-17  Simon Josefsson  <jas@extundo.com>
27324
27325         * m4/md5.m4: Remove call to uint32_t.m4.
27326
27327 2005-10-17  Simon Josefsson  <jas@extundo.com>
27328
27329         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27330
27331         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27332         md5.h.
27333
27334         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27335
27336         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27337
27338 2005-10-17  Simon Josefsson  <jas@extundo.com>
27339
27340         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27341
27342 2005-10-17  Simon Josefsson  <jas@extundo.com>
27343
27344         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27345
27346 2005-10-17  Simon Josefsson  <jas@extundo.com>
27347
27348         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27349
27350         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27351
27352 2005-10-17  Bruno Haible  <bruno@clisp.org>
27353
27354         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27355         that it can also be used in a test.
27356
27357 2005-10-16  Bruno Haible  <bruno@clisp.org>
27358
27359         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27360         TESTS_ENVIRONMENT, so that individual tests can augment it.
27361
27362         * gnulib-tool (func_create_testdir): Use an intermediate target for
27363         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27364         macros, like $(ALLOCA_H), which cannot be passed through the command
27365         line.
27366
27367 2005-10-15  Simon Josefsson  <jas@extundo.com>
27368
27369         * modules/rijndael-tests: New file.
27370
27371         * modules/rijndael: New file.
27372
27373 2005-10-15  Simon Josefsson  <jas@extundo.com>
27374
27375         * m4/rijndael.m4: New file.
27376
27377 2005-10-15  Simon Josefsson  <jas@extundo.com>
27378
27379         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27380
27381         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27382
27383 2005-10-14  Simon Josefsson  <jas@extundo.com>
27384
27385         * tests/test-arcfour.c: New file.
27386
27387         * modules/arcfour, modules/arcfour-tests: New files.
27388
27389 2005-10-14  Simon Josefsson  <jas@extundo.com>
27390
27391         * m4/arcfour.m4: New file.
27392
27393 2005-10-14  Simon Josefsson  <jas@extundo.com>
27394
27395         * lib/arcfour.h, lib/arcfour.c: New files.
27396
27397 2005-10-14  Roland McGrath  <roland@redhat.com>
27398
27399         Import from libc.  [BZ #1331]
27400         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27401         macro argument.
27402         Reported by Matej Vela <vela@debian.org>.
27403
27404 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27405
27406         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27407         include <wchar.h>; no longer needed.
27408
27409 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27410
27411         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27412
27413 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27414         and  Ulrich Drepper  <drepper@redhat.com>
27415
27416         Import from libc.
27417         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27418         instead of inline stream orientation test and two separate
27419         function calls.  Pay no attention to USE_IN_LIBIO.
27420
27421 2005-10-13  Simon Josefsson  <jas@extundo.com>
27422
27423         * modules/gc-hmac-md5-tests: New file.
27424
27425         * tests/test-gc-hmac-sha1.c: New file.
27426
27427         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27428
27429         * modules/gc-hmac-md5-tests: New file.
27430
27431         * tests/test-gc-md5.c: New file.
27432
27433         * modules/gc-md5-tests: New file.
27434
27435 2005-10-13  Simon Josefsson  <jas@extundo.com>
27436
27437         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27438         Move memory allocation outside of loop.
27439
27440 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27441
27442         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27443         intermediate directory is in a read-only file system.  Problem
27444         reported by Eric Blake.
27445
27446 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27447
27448         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27449
27450 2005-10-12  Simon Josefsson  <jas@extundo.com>
27451
27452         * tests/test-hmac-sha1.c: New file.
27453
27454         * modules/hmac-sha1-tests: New file.
27455
27456         * modules/hmac-sha1: New file.
27457
27458 2005-10-12  Simon Josefsson  <jas@extundo.com>
27459
27460         * modules/gc-sha1: New file.
27461
27462 2005-10-12  Simon Josefsson  <jas@extundo.com>
27463
27464         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27465
27466         * tests/test-gc-pbkdf2-sha1.c: New file.
27467
27468 2005-10-12  Simon Josefsson  <jas@extundo.com>
27469
27470         * modules/gc-md5, modules/gc-hmac-md5: New files.
27471
27472         * modules/gc (Files): Remove md5, memxor and hmac files.
27473
27474 2005-10-12  Simon Josefsson  <jas@extundo.com>
27475
27476         * m4/gc-pbkdf2-sha1.m4: New file.
27477
27478         * m4/gc-hmac-sha1.m4: New file.
27479
27480         * m4/gc-sha1: New file.
27481
27482         * m4/hmac-sha1.m4: New file.
27483
27484 2005-10-12  Simon Josefsson  <jas@extundo.com>
27485
27486         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27487
27488         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27489
27490 2005-10-12  Simon Josefsson  <jas@extundo.com>
27491
27492         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27493         suggested by Bruno Haible <bruno@clisp.org>.
27494
27495 2005-10-12  Simon Josefsson  <jas@extundo.com>
27496
27497         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27498
27499 2005-10-12  Simon Josefsson  <jas@extundo.com>
27500
27501         * lib/gc-pbkdf2-sha1.c: New file.
27502
27503         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27504
27505 2005-10-12  Simon Josefsson  <jas@extundo.com>
27506
27507         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27508
27509         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27510
27511 2005-10-12  Simon Josefsson  <jas@extundo.com>
27512
27513         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27514         GC_USE_HMAC_MD5, respectively.
27515
27516         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27517         (gc_md5): Fix typo.
27518
27519         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27520
27521         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27522
27523         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27524
27525 2005-10-12  Bruno Haible  <bruno@clisp.org>
27526
27527         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27528         Reported by Stepan Kasal <kasal@ucw.cz>.
27529
27530 2005-10-11  Simon Josefsson  <jas@extundo.com>
27531
27532         * tests/test-crc.c: New file.
27533
27534         * modules/crc, modules/crc-tests: New files.
27535
27536 2005-10-11  Simon Josefsson  <jas@extundo.com>
27537
27538         * m4/crc.m4: New file.
27539
27540 2005-10-11  Simon Josefsson  <jas@extundo.com>
27541
27542         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27543
27544         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27545
27546         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27547
27548 2005-10-11  Simon Josefsson  <jas@extundo.com>
27549
27550         * lib/crc.h, lib/crc.c: New files.
27551
27552         * lib/gc.h (gc_hash_buffer): Add doc.
27553
27554 2005-10-11  Bruno Haible  <bruno@clisp.org>
27555
27556         * modules/c-strcasestr: New file.
27557         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27558
27559 2005-10-11  Bruno Haible  <bruno@clisp.org>
27560
27561         * modules/c-strcase: New file.
27562         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27563
27564 2005-10-11  Bruno Haible  <bruno@clisp.org>
27565
27566         * lib/strcasecmp.c: Include limits.h.
27567         (strcasecmp): Avoid integer overflow on exotic platforms.
27568         * lib/strncasecmp.c: Include limits.h.
27569         (strncasecmp): Avoid integer overflow on exotic platforms.
27570         Reported by Paul Eggert.
27571
27572 2005-10-11  Bruno Haible  <bruno@clisp.org>
27573
27574         * lib/c-strcasestr.h: New file, from GNU gettext.
27575         * lib/c-strcasestr.c: New file, from GNU gettext.
27576
27577 2005-10-11  Bruno Haible  <bruno@clisp.org>
27578
27579         * lib/c-strcase.h: New file, from GNU gettext.
27580         * lib/c-strcasecmp.c: New file, from GNU gettext.
27581         * lib/c-strncasecmp.c: New file, from GNU gettext.
27582
27583 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27584
27585         * modules/mempcpy (License): GPL -> LGPL.
27586         * modules/strchrnul (License): Likewise.
27587         * modules/sysexits (License): Likewise.
27588
27589 2005-10-08  Simon Josefsson  <jas@extundo.com>
27590
27591         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27592
27593 2005-10-07  Simon Josefsson  <jas@extundo.com>
27594
27595         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27596
27597 2005-10-06  Simon Josefsson  <jas@extundo.com>
27598
27599         * tests/test-hmac-md5.c: New file.
27600
27601         * modules/hmac-md5-tests: New file.
27602
27603         * modules/hmac-md5: New file.
27604
27605 2005-10-06  Simon Josefsson  <jas@extundo.com>
27606
27607         * m4/hmac-md5.m4: New file.
27608
27609         * m4/memxor.m4: Require gl_C_RESTRICT.
27610
27611 2005-10-06  Simon Josefsson  <jas@extundo.com>
27612
27613         * lib/memxor.c (memxor): Avoid casts and warnings.
27614
27615 2005-10-06  Simon Josefsson  <jas@extundo.com>
27616
27617         * lib/hmac-md5.c: New file.
27618
27619         * lib/hmac.h: New file.
27620
27621 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27622
27623         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27624         promotes to int, not unsigned int, to catch the AIX 5.3
27625         compiler bug.
27626
27627 2005-10-05  Simon Josefsson  <jas@extundo.com>
27628
27629         * modules/memxor: New file.
27630
27631         * modules/iconv (Files): Move config.rpath to havelib, it is used
27632         there.
27633
27634         * modules/havelib (Files): Add config.rpath.
27635
27636 2005-10-05  Simon Josefsson  <jas@extundo.com>
27637
27638         * m4/memxor.m4: New file.
27639
27640 2005-10-05  Simon Josefsson  <jas@extundo.com>
27641
27642         * lib/memxor.c (memxor): Fix compiler error.
27643
27644         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27645         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27646
27647         * lib/memxor.h, lib/memxor.c: New files.
27648
27649         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27650         we assume all systems have it, suggested by Jim Meyering
27651         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27652         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27653         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27654         same reasons.
27655
27656 2005-10-05  Simon Josefsson  <jas@extundo.com>
27657
27658         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27659
27660 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27663         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27664         needed, since the source code now assumes these .h files.
27665
27666 2005-10-05  Derek Price  <derek@ximbiot.com>
27667
27668         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27669
27670 2005-10-05  Bruno Haible  <bruno@clisp.org>
27671
27672         * modules/stdint (License): Change to LGPL.
27673
27674 2005-10-04  Simon Josefsson  <jas@extundo.com>
27675
27676         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27677         D. Baushke" <mdb@gnu.org>.
27678
27679 2005-10-04  Bruno Haible  <bruno@clisp.org>
27680
27681         * lib/verify.h (verify_true): Provide alternative definition for C++.
27682
27683 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27684
27685         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27686         (SSIZE_MAX): New macro, if not already defined.
27687         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27688         than 2 GiB.
27689
27690 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27691
27692         Sync from coreutils.
27693         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27694         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27695         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27696         ULLONG_MAX doesn't work with 2.7.2.1.
27697
27698 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27699
27700         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27701         From Ben Pfaff.
27702
27703         * modules/exclude (Depends-on): Depend on verify.
27704         * modules/strtoimax (Depends-on): Likewise.
27705         * modules/utimecmp (Depends-on): Likewise.
27706
27707 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27708
27709         * lib/exclude.c: Include verify.h.
27710         (verify): Remove.  All callers changed to use verify.h's version.
27711         * lib/strtoimax.c: Likewise.
27712         * lib/utimecmp.c: Likewis.e
27713
27714         Sync from coreutils.
27715         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27716         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27717         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27718         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27719         bother returning ENOSYS if settimeofday or stime fails; just let
27720         them return whatever errno they want to return.
27721         * lib/utimens.c: Include unistd.h, for dup2.
27722         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27723         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27724
27725 2005-10-02  Jim Meyering  <jim@meyering.net>
27726
27727         Sync from coreutils.
27728         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27729         from glibc-2.2.5 that fails for read-only files.
27730
27731 2005-10-02  Jim Meyering  <jim@meyering.net>
27732
27733         Sync from coreutils.
27734         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27735         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27736         `#if HAVE_CONFIG_H'.
27737         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27738         Remove AT_FDCWD test.
27739         Do not consume the fd unless successful.
27740         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27741         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27742         block, so that we don't even try to compile it if settimeofday is
27743         available.  This works around a compilation failure on OSF1 V5.1,
27744         due to stime requiring a `long int*' while tv_sec is `int'.
27745
27746 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27747
27748         Sync from coreutils.
27749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27750         against `yes', rather than just testing for nonempty.
27751
27752 2005-10-01  Simon Josefsson  <jas@extundo.com>
27753
27754         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27755         and Darwin.
27756
27757         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27758         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27759         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27760         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27761         Check if struct addrinfo is declared.
27762
27763 2005-10-01  Simon Josefsson  <jas@extundo.com>
27764
27765         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27766         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27767         AI_* and EAI_* definitions.  Protect function declarations.
27768
27769 2005-10-01  Jim Meyering  <jim@meyering.net>
27770
27771         Sync from coreutils.
27772
27773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27774         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27775         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27777         in the inet and nsl libraries.  Required on Solaris 5.7.
27778
27779 2005-10-01  Jim Meyering  <jim@meyering.net>
27780
27781         Sync from coreutils.
27782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27783         in the inet and nsl libraries.  Required on Solaris 5.7.
27784
27785 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27786
27787         * lib/getdelim.c (getdelim): Remove unused variables.
27788
27789 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27790
27791         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27792         so that the code works even with ancient cpp.  Portability problem
27793         with GCC 2.7.2.1 reported by Thomas M.Ott.
27794
27795 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27796
27797         * modules/regex (Depends-on): Add strcase.
27798
27799         * modules/gethostname (Licence): Change from GPL to LGPL, since
27800         gethostname.c is a trivial implementation of a standard library
27801         function.
27802         * modules/poll (License): Change from GPL to LGPL, since it's
27803         derived from LGPL code.
27804
27805 2005-09-27  Jim Meyering  <jim@meyering.net>
27806
27807         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27808         HAVE_CONFIG_H.
27809
27810         * lib/intprops.h (signed_type_or_expr__): Define.
27811         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27812         for unsigned types.
27813
27814 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27815
27816         * lib/verify.h (verify_expr): Remove, replacing with:
27817         (verify_true): New macro that returns true instead of void.
27818         (verify_type__): Remove.
27819         (verify): Use verify_true rather than verify_type__.
27820
27821 2005-09-26  Bruno Haible  <bruno@clisp.org>
27822
27823         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27824         is necessary.
27825         (lib_SOURCES): Remove mbchar.c.
27826         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27827         (Files): Add m4/mbrtowc.m4.
27828         * modules/mbiter: Likewise.
27829         * modules/mbuiter: Likewise.
27830
27831 2005-09-26  Bruno Haible  <bruno@clisp.org>
27832
27833         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27834         compile mbchar.c if they are not both present.
27835         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27836         * m4/mbiter.m4 (gl_MBITER): Likewise.
27837         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27838         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27839         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27840
27841 2005-09-25  Jim Meyering  <jim@meyering.net>
27842
27843         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27844         also uses socklen_t.
27845
27846 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27847
27848         * lib/utimens.c (ENOSYS): Define if not already defined.
27849         (futimens): Support having a null PATH if the file descriptor
27850         is nonnegative.
27851
27852         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27853         Remove.
27854         (__attribute): Define to empty unless GCC 3.1 or later.
27855         This works around a core dump on OpenBSD 3.4, which has GCC
27856         2.95.3, which dumps core when given __attribute__(()).  It also
27857         simplifies other tests, since we really don't want to bother with
27858         worrying about which ancient version of GCC supported what.
27859         Original problem reported by Yoann Vandoorselaere, with part of
27860         the fix suggested by Derek Price.
27861
27862 2005-09-24  Jim Meyering  <jim@meyering.net>
27863
27864         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27865         so we can once again use a positive bitfield width of 1 -- now we
27866         don't have to explain why we were using a bitfield width of 2.
27867
27868 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27869
27870         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27871         and similarly for the other external symbols.  Problem reported
27872         by James Gallager.
27873
27874         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27875         bug reported by Jim Meyering.
27876
27877         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27878         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27879         not needed, since socklen is a prerequisite module.
27880
27881 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27882
27883         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27884         Problem reported by Eric Blake.
27885         (getaddrinfo): Initialize se so that it's not garbage.
27886         Redo internal storage allocation so that it doesn't make unportable
27887         assumptions about alignment.
27888         Fix a memory leak.
27889
27890         * lib/utimens.c (futimens): Use futimesat if available.
27891         Prefer it to futimes since it doesn't have the futimes bug.
27892
27893         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27894         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27895         Instead, declare a function that returns a pointer to an array,
27896         and use verify_type__ to declare the size of the array.
27897         Problem and germ of a solution reported by Bruno Haible.
27898         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27899         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27900
27901 2005-09-23  Jim Meyering  <jim@meyering.net>
27902
27903         Sync from coreutils.
27904         Correct build failure (socklen_t not defined) on at least
27905         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27906         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27907
27908 2005-09-23  Jim Meyering  <jim@meyering.net>
27909
27910         * modules/getaddrinfo (Depends-on): Add socklen.
27911
27912 2005-09-23  Bruno Haible  <bruno@clisp.org>
27913
27914         * tests/test-verify.c: New file.
27915
27916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27917
27918         Sync from coreutils.
27919
27920         * modules/argmatch (Depends-on): Add verify.
27921         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27922         unistd-safer.
27923         * modules/save-cwd (Depends-on): Likewise.
27924
27925         * modules/openat (Files): Add lib/openat-die.c.
27926         (Depends-on): Remove error, exitfail.
27927         Add dirname.
27928
27929         * modules/verify: New file.
27930         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27931         with "verify" module.
27932
27933 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         Sync from coreutils.
27936
27937         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27938         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27939         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27940         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27941         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27942         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27943         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27944         Don't bother checking for string.h, stdlib.h, unistd.h.
27945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27946         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27947         module's job.
27948         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27949         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27950
27951         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27952         (gl_GETDATE): Use it.
27953
27954         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27955
27956 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27957
27958         Sync from coreutils.
27959
27960         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27961         stat-time.h.
27962         * lib/argmatch.h: Include verify.h
27963         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27964         (ARGMATCH_ASSERT): Remove; unused.
27965         * lib/canonicalize.c: Assume STDC_HEADERS.
27966         * lib/exclude.c: Include "strcase.h".
27967         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27968         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27969         and stdio-safer.h.
27970         (getusershell): Call fopen, not fopen_safer.
27971         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27972         Do not include unistd-safer.h.
27973         (save_cwd): Don't call fd_safer; no longer needed
27974         now that we include fcntl--.h.
27975
27976         * lib/getdate.y (relative_time): New type.
27977         (RELATIVE_TIME_0): New constant.
27978         (parser_control): Use relative_time instead of doing it ourselves.
27979         (%union): Add new relative_time rel member.
27980         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27981         Now typeless.
27982         (relunit, relunit_snumber): Now of type rel.
27983         (zone, rel, relunit, get_date): Adjust to above changes.
27984
27985         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27986         Do not include unistd-safer.h.
27987         (getloadavg): Don't call fd_safer; no longer needed
27988         now that we include fcntl--.h.
27989
27990         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27991         (make_dir_parents): Treat ENOSYS like EEXIST.
27992
27993         Improve quality of diagnostics on restore_cwd failure.
27994         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27995         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27996         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27997         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27998         each time through the loop.  Do not diagnose restore_cwd failure;
27999         that is the caller's job (and perhaps the caller does not care).
28000
28001         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28002         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28003         If the file already exists but is not a directory, don't bother
28004         to try to make its parents.
28005         Close potential file descriptor leak if we can't chdir("/") (!).
28006         Don't always return true if chdir($PWD) fails; return true only
28007         if the requested action was done successfully (except for the
28008         chdir($PWD)).
28009         Don't log final directory unless we actually made it.
28010         Refactor to avoid duplicate code to fix up permissions.
28011         Don't attempt to fix up parent permissions if chdir($PWD) fails.
28012
28013         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28014         to make it a bit faster and (I hope) clearer.
28015         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28016         Fix bug in formats like %2N.
28017
28018         * lib/verify.h: New file.
28019
28020 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28021
28022         Sync from coreutils.
28023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28024
28025 2005-09-22  Jim Meyering  <jim@meyering.net>
28026
28027         Sync from coreutils.
28028
28029         * m4/lstat.m4 (gl_FUNC_LSTAT):
28030         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28031         Remove obsolete comment.
28032         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28033         * m4/xstrtod.m4: Likewise.
28034
28035         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28036
28037 2005-09-22  Jim Meyering  <jim@meyering.net>
28038
28039         Sync from coreutils.
28040
28041         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28042
28043         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28044         the .tm_year member, since otherwise gcc-4.0 would now warn about
28045         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28046
28047         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28048         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28049
28050         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28051         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28052         when run in a time zone for which daylight savings time is in effect
28053         for the starting date.
28054
28055         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
28056         stop us from restricting permissions of just-created absolute-named
28057         directories.
28058         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
28059         to restore initial working directory.
28060         * lib/mkdir-p.c (make_dir_parents): New parameter:
28061         different_working_dir, to tell caller if/when we change the working
28062         directory and are unable to return to the initial one.
28063         * lib/mkdir-p.h (make_dir_parents): Update prototype.
28064         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
28065         `return false'.  This fixes a bug introduced on 2004-07-30.
28066
28067         * lib/openat.c (fdopendir): Be sure to close the supplied
28068         file descriptor before returning.  This makes our replacement
28069         implementation a little closer to Solaris's, where fdopendir
28070         ties the file descriptor to the returned DIR* pointer.
28071         * lib/openat.c (unlinkat): New function.
28072         * lib/openat.h (unlinkat): Add prototype.
28073         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
28074         (openat_restore_fail): Rename from openat_restore_die.
28075         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28076
28077         Provide an alternative to exiting immediately upon save_cwd or
28078         restore_cwd failure.  Now, an application can arrange e.g.,
28079         to perform a longjump in that case.
28080         * lib/openat.c: Include dirname.h.
28081         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28082         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28083         and openat_restore_die rather than calling error directly.
28084         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28085
28086         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28087         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28088         define.
28089
28090         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28091         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28092                             int utc, int nanoseconds);
28093         Background:
28094         date should not have to allocate a megabyte of virtual memory to
28095         handle a format argument like +%1048575T.  When implemented with
28096         strftime, it must allocate such a buffer, use strftime to fill it
28097         in, print it, then free it.
28098         With fprintftime, it simply prints everything and exits.
28099         With no need for memory allocation, that's one fewer way to fail.
28100         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28101         optional field width, not before, so we accept %9:z, not %:9z.
28102         (my_strftime): Be sure to use L_('x') for literals.
28103
28104         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28105         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28106         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28107         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28108         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28109         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28110         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28111         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28112         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28113         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28114         * lib/xgethostname.c, lib/xreadlink.c:
28115         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28116
28117         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28118         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28119         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28120         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28121         and don't include <sys/file.h>).
28122
28123 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28124
28125         Sync from coreutils.
28126
28127         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28128         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28129         [!LDAV_DONE]: Avoid unused variable warning.
28130
28131 2005-09-21  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/unicodeio.h (unicode_to_mb): New declaration.
28134
28135 2005-09-20  Derek Price  <derek@ximbiot.com>
28136
28137         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28138         getaddrinfo.h.
28139
28140 2005-09-20  Bruno Haible  <bruno@clisp.org>
28141
28142         * gnulib-tool: Remove trailing slashes from the values specified for
28143         --source-base, --m4-base, --tests-base, --aux-dir.
28144         Suggested by Simon Josefsson <jas@extundo.com>.
28145
28146 2005-09-20  Bruno Haible  <bruno@clisp.org>
28147
28148         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28149         func_modules_to_filelist, func_import, func_create_testdir): Make all
28150         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28151         change when gnulib-tool is invoked in a different locale.
28152
28153 2005-09-19  Simon Josefsson  <jas@extundo.com>
28154
28155         * m4/socklen.m4: Fix typo.
28156
28157 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28158
28159         Use a consistent style for including <config.h>.
28160         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28161         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28162         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28163         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28164         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28165         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28166         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28167         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28168         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28169         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28170         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28171         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28172         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28173         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28174         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28175         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28176         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28177         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28178         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28179         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28180         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28181         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28182         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28183         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28184         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28185         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28186         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28187         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28188         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28189         lib/xstrtoumax.c, lib/yesno.c:
28190         Standardize inclusion of config.h.
28191         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28192         lib/inttostr.h:  Removed inclusion of config.h from header files.
28193         * lib/inttostr.c:  Adjusted in-tree users.
28194         * lib/timespec.h: Remove superfluous warning to include config.h.
28195         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28196         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28197         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28198         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28199         config.h with HAVE_CONFIG_H.
28200
28201 2005-09-19  Jim Meyering  <jim@meyering.net>
28202
28203         * modules/pathmax (License): Change to LGPL.
28204
28205 2005-09-19  Derek Price  <derek@ximbiot.com>
28206
28207         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28208
28209 2005-09-19  Bruno Haible  <bruno@clisp.org>
28210
28211         * gnulib-tool (import): Provide default for --tests-base.
28212
28213 2005-09-19  Bruno Haible  <bruno@clisp.org>
28214
28215         * doc/quote.texi: New file, extracted from gnulib.texi.
28216         * doc/ctime.texi: New file, extracted from gnulib.texi.
28217         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28218         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28219         * doc/gnulib.texi: Include them.
28220
28221 2005-09-18  Bruno Haible  <bruno@clisp.org>
28222
28223         Portability fix.
28224         * gnulib-tool (func_readlink): New function.
28225         (func_ln_if_changed): Use it.
28226
28227 2005-09-18  Bruno Haible  <bruno@clisp.org>
28228
28229         * gnulib-tool: Support --with-tests also with --import.
28230         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28231         (func_import): Use variables $testsbase and $inctests. Emit a
28232         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28233         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28234         SUBDIRS += $testsdir.
28235         (func_create_testdir): Update.
28236
28237 2005-09-18  Bruno Haible  <bruno@clisp.org>
28238
28239         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28240         instead of $dry_run.
28241         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28242         (func_ln_if_changed): Don't handle dry-run here.
28243         (func_import): In dry-run mode, detect more precisely which actions
28244         would be performed, and don't use "...ing" verbs.
28245
28246 2005-09-18  Bruno Haible  <bruno@clisp.org>
28247
28248         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28249         (func_import): Use join on two temporary files instead of three nested
28250         loops, in order to determine which files are new or old.
28251
28252 2005-09-18  Bruno Haible  <bruno@clisp.org>
28253
28254         * gnulib-tool (func_import): Comment out code that spits out the
28255         new files with --dry-run.
28256
28257 2005-09-18  Bruno Haible  <bruno@clisp.org>
28258
28259         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28260
28261 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28262
28263         * lib/stat-time.h: New file.
28264         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28265         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28266         in a different way.
28267         (timespec_cmp): New function.
28268         * lib/utimecmp.c: Include stat-time.h.
28269         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28270         members exist, not on the obsolescent ST_MTIM_NSEC.
28271         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28272
28273 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28276
28277 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28278
28279         * MODULES.html.sh (File system functions): Add stat-time.
28280         * modules/stat-time: New file.
28281         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28282         is now done in a different way, by the stat-time module.
28283         * modules/utimecmp (Depends-on): Add stat-time.
28284
28285 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28286
28287         * m4/st_mtim.m4: Remove.  Superseded by...
28288         * m4/stat-time.m4: New file.
28289         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28290         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28291
28292 2005-09-15  Derek Price  <derek@ximbiot.com>
28293
28294         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28295
28296 2005-09-15  Derek Price  <derek@ximbiot.com>
28297
28298         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28299         * lib/regex_internal.c: Ditto, using this...
28300         (__GNUC_PREREQ): ...new macro.
28301         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28302         using...
28303         (__GNUC_PREREQ): ...this new macro.
28304
28305         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28306
28307 2005-09-15  Derek Price  <derek@ximbiot.com>
28308             Paul Eggert  <eggert@cs.ucla.edu>
28309
28310         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28311         changes, consolidating in...
28312         * lib/regex_internal.h: ...this file.
28313
28314 2005-09-13  Jim Meyering  <jim@meyering.net>
28315
28316         * lib/canon-host.c: Filter through gnu indent and reword comments
28317         slightly.
28318         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28319
28320 2005-09-13  Derek Price  <derek@ximbiot.com>
28321
28322         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28323         failure.
28324         Reported by Jim Meyering  <jim@meyering.net>.
28325
28326 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28327
28328         * lib/base64.c: Typo.
28329         (base64_encode): Put b64str in initialized data section.
28330
28331 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28332
28333         Merge glibc and coreutils changes into gnulib, plus a few
28334         extra fixes.
28335         * lib/md5.c: Use #error rather than a string.
28336         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28337         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28338         (__attribute__): Define to empty for non recent-GCC.
28339         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28340         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28341         Renamed from their non-__ counterparts, with new macros replacing
28342         them if not _LIBC.  Add __THROW attribute.
28343         (rol): Remove.
28344         (struct md5_ctx): Align buffer if using GCC.
28345         * lib/sha1.h (struct sha1_ctx): Likewise.
28346         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28347         The old name was backwards.
28348         (NOTSWAP): Remove; not used.
28349         (rol): New macro, moved here from md5.h.
28350         (sha1_process_block): Remove a FIXME that doesn't make sense.
28351
28352 2005-09-12  Derek Price  <derek@ximbiot.com>
28353
28354         Return usable errors from canon-host.
28355         * lib/canon-host.h: New file.
28356         * lib/canon-host.c (canon_host): Wrap...
28357         (canon_host_r): ...this new function, which now relies exclusively on
28358         getaddrinfo.
28359         (ch_strerror): New function.
28360         (last_cherror): New global.
28361         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28362         interface.
28363         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28364         void *.
28365         (freeaddrinfo): Free ai->ai_canonname when set.
28366
28367 2005-09-12  Derek Price  <derek@ximbiot.com>
28368
28369         Make canon-host require getaddrinfo.
28370         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28371         AC_LIBSOURCE canon-host.h.  Call...
28372         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28373         gl_GETADDRINFO.
28374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28375
28376 2005-09-12  Derek Price  <derek@ximbiot.com>
28377
28378         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28379         LGPL.
28380         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28381
28382 2005-09-12  Derek Price  <derek@ximbiot.com>
28383
28384         * lib/gai_strerror.c: Include config.h when available.  Include
28385         getaddrinfo.h before other headers to test interface.
28386         Reported by Larry Jones <lawrence.jones@ugs.com>.
28387
28388 2005-09-12  Derek Price  <derek@ximbiot.com>
28389             Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         * modules/glob (Files): Add glob-libc.h.
28392
28393 2005-09-12  Derek Price  <derek@ximbiot.com>
28394             Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28397         glob_.h, glob-libc.h.
28398         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28399
28400 2005-09-12  Derek Price  <derek@ximbiot.com>
28401             Paul Eggert  <eggert@cs.ucla.edu>
28402
28403         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28404         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28405         protecting things that should be done only in gnulib contexts.
28406         * lib/glob_.h: New file, containing only the glob things needed for
28407         gnulib.
28408         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28409         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28410         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28411         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28412         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28413         and to respect the namespace rules better.
28414
28415 2005-09-08  Simon Josefsson  <jas@extundo.com>
28416
28417         * modules/socklen: New file.
28418
28419 2005-09-08  Simon Josefsson  <jas@extundo.com>
28420
28421         * m4/socklen.m4: New file.
28422
28423 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28424
28425         * modules/utimens (Files): Add m4/utimbuf.m4, since
28426         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28427         Reported by Sergey Poznyakoff.
28428
28429 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28430
28431         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28432         definitions, since that's the preferred style in glibc.
28433         Fix a minor spacing issue, and update copyright notice to match
28434         glibc's.
28435
28436 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28437
28438         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28439
28440 2005-09-06  Simon Josefsson  <jas@extundo.com>
28441
28442         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28443         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28444
28445 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28446
28447         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28448         warning.
28449
28450 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28451
28452         * config/srclist.txt: Add glibc bug 1302.
28453
28454 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28455
28456         Change bitset word type from unsigned int to unsigned long int,
28457         as this has better performance on typical 64-bit hosts.
28458         Port bitset code to hosts with unusual word sizes.
28459         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28460         (build_collating_symbol):
28461         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28462         argument is a bitset.  This is merely a style issue, but it makes
28463         it clearer that an entire array is expected.
28464         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28465         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28466         Port to the case where bitset_word is not the same as unsigned int.
28467         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28468         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28469         Likewise.
28470         * lib/regexec.c (check_dst_limits_calc_pos_1,
28471         check_subexp_matching_top):
28472         (build_trtable, group_nodes_into_DFAstates):
28473         Likewise.
28474         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28475         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28476         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28477         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28478         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28479         * lib/regcomp.c (optimize_subexps, lower_subexp):
28480         Work even if bitset_word has holes in its bitwise representation.
28481         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28482         * lib/regexec.c (check_dst_limits_calc_pos_1,
28483         check_subexp_matching_top):
28484         Likewise.
28485         * lib/regex_internal.c (re_string_reconstruct):
28486         Don't assume UCHAR_MAX == 255.
28487         * lib/regex_internal.h (bitset_set_all): Likewise.
28488         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28489         All uses changed.
28490         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28491         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28492         All uses changed.
28493         (BITSET_WORD_MAX): New macro.
28494         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28495         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28496         (bitset_empty, bitset_copy):
28497         Prefer sizeof (bitset) to multiplying it out ourselves.
28498         (bitset_not_merge): Remove; unused.
28499         (bitset_contain): Return bool, not unsigned int with one bit on.
28500         All callers changed.
28501         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28502         alignment than re_node_set; do this by defining a new internal
28503         type struct dests_alloc and using it to allocate memory.
28504
28505 2005-09-05  Bruno Haible  <bruno@clisp.org>
28506
28507         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28508         links.
28509
28510 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28511
28512         * modules/size_max (Makefile.am): Add size_max.h
28513
28514 2005-09-04  Derek Price  <derek@ximbiot.com>
28515
28516         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28517
28518 2005-09-03  Simon Josefsson  <jas@extundo.com>
28519
28520         * gnulib-tool: Fix typo.
28521
28522 2005-09-03  Simon Josefsson  <jas@extundo.com>
28523
28524         * config/srclist.txt: Add glibc bug 1293.
28525
28526 2005-09-03  Derek Price  <derek@ximbiot.com>
28527
28528         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28529         From Larry Jones <lawrence.jones@ugs.com>.
28530
28531 2005-09-02  Simon Josefsson  <jas@extundo.com>
28532
28533         * modules/socklen: New file.
28534
28535 2005-09-02  Simon Josefsson  <jas@extundo.com>
28536
28537         * modules/havelib: New module.
28538
28539         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28540         Use havelib.
28541
28542 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28543
28544         Check for arithmetic overflow when calculating sizes, to prevent
28545         some buffer-overflow issues.  These patches are conservative, in the
28546         sense that when I couldn't determine whether an overflow was possible,
28547         I inserted a run-time check.
28548         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28549         macros.
28550         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28551         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28552         (re_xnrealloc, re_x2nrealloc): New inline functions.
28553         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28554         parse_bracket_exp):
28555         (build_equiv_class, build_charclass): Check for arithmetic overflow
28556         in size expression calculations.
28557         * lib/regex_internal.c (re_string_realloc_buffers):
28558         (build_wcs_upper_buffer, re_node_set_add_intersect):
28559         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28560         (re_dfa_add_node, register_state): Likewise.
28561         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28562         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28563         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28564         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28565
28566 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28567
28568         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28569         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28570
28571 2005-09-02  Bruno Haible  <bruno@clisp.org>
28572
28573         Support for lib vs. lib64 distinction on biarch platforms.
28574         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28575         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28576         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28577
28578 2005-09-02  Bruno Haible  <bruno@clisp.org>
28579
28580         * gnulib-tool (import): In the other first-use case, provide defaults
28581         as well.
28582
28583 2005-09-02  Bruno Haible  <bruno@clisp.org>
28584
28585         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28586         patches not yet found in the latest gettext release.
28587
28588 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28589
28590         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28591         to avoid a collision with bits/local_lim.h in glibc.
28592         All uses changed.  Problem reported by Dmitry V. Levin in
28593         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28594
28595         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28596         bugs in int versus size_t comparisons.
28597         (re_string_context_at): Fix bug where the code assumed that
28598         Idx is signed.
28599
28600         Use bool where appropriate.
28601         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28602         All callers changed.
28603         (calc_eclosure_iter): Likewise, for ROOT arg.
28604         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28605         (build_charclass_op): Likewise, for NON_MATCH arg.
28606         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28607         (re_string_construct_common): Likewise, for ICASE arg.
28608         * lib/regexec.c (re_search_2_stub, re_search_stub):
28609         Likewise, for RET_LEN arg.
28610         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28611         (set_regs): Likewise, for FL_BACKTRACK arg.
28612         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28613         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28614         (calc_eclosure_iter, parse_bracket_exp):
28615         Use bool for internal variables that are booleans.
28616         * lib/regexec.c (re_search_internal, check_matching,
28617         proceed_next_node):
28618         (set_regs, build_sifted_states, sift_states_bkref):
28619         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28620         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28621         (find_collation_sequence_value):
28622         Likewise.
28623         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28624         (re_node_set_compare):
28625         Return bool, not int. All callers changed.
28626         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28627         (build_trtable, check_node_accept): Likewise.
28628         * lib/regex_internal.h: Include stdbool.h.
28629
28630         Fix bugs uncovered when converting to bool.
28631         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28632         failure instead of charging ahead blindly.
28633         * lib/regex_internal.c (register_state): Likewise.
28634         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28635         for freeing internal storage.
28636         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28637         bitset pieces used as boolean, to avoid undefined behavior
28638         on hosts that do int overflow checking.
28639
28640 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28641
28642         * config/srclist.txt: Add glibc bugs 1285-1287.
28643
28644 2005-09-01  Jim Meyering  <jim@meyering.net>
28645
28646         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28647         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28648         Require gl_STAT_MACROS, too.
28649
28650 2005-09-01  Bruno Haible  <bruno@clisp.org>
28651
28652         * gnulib-tool (import): In the first-use case, provide defaults.
28653
28654 2005-09-01  Bruno Haible  <bruno@clisp.org>
28655
28656         * gnulib-tool (func_import): Remove the .tmp files.
28657
28658 2005-09-01  Bruno Haible  <bruno@clisp.org>
28659
28660         * gnulib-tool (func_import): Fix handling of symbolic links.
28661
28662 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28663
28664         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28665         old glibc regex code mishandles strings longer than 2**31 bytes.
28666         This patch fixes this when the regex code is used in gnulib
28667         (i.e., outside glibc).
28668
28669         This patch should not affect the use of the regex code inside
28670         glibc.  No doubt this problem also needs to be handled for glibc
28671         as well, but the result will be an incompatible change to the
28672         glibc ABI, and the old ABI will have to be supported too.  That
28673         can be the the subject for another patch.
28674
28675         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28676         governing whether the rest of this patch is active.  By default,
28677         the macro is disabled and the patch has no effect.
28678         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28679         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28680         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28681         (re_match_2, re_set_registers): Use the new types.
28682         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28683         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28684         New macros.
28685         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28686         (re_string_context_at, bin_tree_t, re_dfastate_t):
28687         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28688         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28689         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28690         (re_string_char_size_at, re_string_wchar_at):
28691         (re_string_elem_size_at):
28692         Use the new types and macros to port to 64-bit hosts.
28693         Use unsigned types for internal values, so that the code
28694         mostly works even for arrays larger than SSIZE_MAX.
28695         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28696         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28697         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28698         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28699         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28700         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28701         (calc_inveclosure, parse_dup_op, build_range_exp):
28702         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28703         (fetch_number, create_token_tree, mark_opt_subexp):
28704         Likewise.
28705         * lib/regex_internal.c (re_string_construct_common,
28706         create_ci_newstate):
28707         (create_cd_newstate, re_string_allocate, re_string_construct):
28708         (re_string_realloc_buffers, build_wcs_upper_buffer):
28709         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28710         (re_string_reconstruct, re_string_peek_byte_case):
28711         (re_string_fetch_byte_case, re_string_context_at):
28712         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28713         (re_node_set_init_copy, re_node_set_add_intersect):
28714         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28715         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28716         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28717         (re_acquire_state, re_acquire_state_context, register_state):
28718         Likewise.
28719         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28720         search_cur_bkref_entry):
28721         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28722         (re_search_internal, re_search_2_stub, re_search_stub)
28723         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28724         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28725         (update_cur_sifted_state, check_dst_limits):
28726         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28727         (check_subexp_limits, sift_states_bkref, merge_state_array):
28728         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28729         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28730         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28731         (expand_bkref_cache, check_node_accept_bytes):
28732         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28733         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28734         (acquire_init_state_context, check_halt_node_context):
28735         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28736         (sift_states_backward, clean_state_log_if_needed):
28737         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28738         (find_recover_state, transit_state_sb, transit_state_mb):
28739         (transit_state_bkref, build_trtable, match_ctx_clean):
28740         Likewise.
28741         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28742         to work around an assumption that REG_MISSING is negative.
28743
28744         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28745         (seek_collating_symbol_entry) [defined _LIBC]:
28746         (lookup_collation_sequence_value) [defined _LIBC]:
28747         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28748         Use prototypes rather than old-style function definitions.
28749         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28750         (transit_state_sb) [0]:
28751         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28752
28753         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28754         rm_eo.
28755
28756         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28757         (optimize_subexps, lower_subexp):
28758         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28759         since the signed shift might overflow.  Use 1u<<31 instead.
28760         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28761         Likewise.
28762         * lib/regexec.c (check_dst_limits_calc_pos_1,
28763         check_subexp_matching_top): Likewise.
28764
28765         * lib/regcomp.c (optimize_subexps, lower_subexp):
28766         Use CHAR_BIT rather than 8, for clarity.
28767         * lib/regexec.c (check_dst_limits_calc_pos_1):
28768         (check_subexp_matching_top): Likewise.
28769         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28770         have to worry about portability issues when shifting it left.
28771         Remove no-longer-needed test for table_size > 0.
28772         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28773         in a word, as the resulting behavior is undefined.
28774         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28775         in one case, a <= should have been an <, and in another case the
28776         whole test was missing.
28777         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28778         the standard name CHAR_BIT.
28779         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28780         this is not true on one's complement and signed-magnitude hosts.
28781
28782         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28783         next_last_offset.
28784         (struct re_dfa_t): Remove unused member states_alloc.
28785         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28786
28787 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28788
28789         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28790         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28791         and large-file glibc and in 32-bit large-file Solaris.
28792
28793 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28794
28795         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28796         lengths fit in regoff_t; this isn't true if regoff_t is the same
28797         width as size_t.
28798         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28799         (= START + RANGE) instead of RANGE.  This avoids overflow
28800         problems when regoff_t is the same width as size_t.
28801         All callers changed.
28802         (re_search_2_stub): Check for overflow when adding the
28803         sizes of the two strings.
28804         (re_search_stub): Check for overflow when adding START
28805         to RANGE; if it occurs, substitute the extreme value.
28806
28807 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28808
28809         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28810
28811 2005-08-31  Jim Meyering  <jim@meyering.net>
28812
28813         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28814         a pointer-to-const.
28815         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28816         (register_state): Likewise.
28817         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28818         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28819         (group_nodes_into_DFAstates): Likewise.
28820
28821 2005-08-31  Jim Meyering  <jim@meyering.net>
28822
28823         * check-module: Add a FIXME comment.
28824
28825 2005-08-31  Eric Blake  <ebb9@byu.net>
28826
28827         * modules/unistd-safer (Files): Add unistd--.h.
28828         * modules/stdio-safer (Files): Add stdio--.h.
28829
28830 2005-08-31  Derek Price  <derek@ximbiot.com>
28831
28832         * lib/getdelim.c (getdelim): Return EOF on EOF.
28833         Reported by Larry Jones <lawrence.jones@ugs.com>.
28834
28835 2005-08-31  Bruno Haible  <bruno@clisp.org>
28836
28837         Avoid unnecessary diffs in the generated lib/Makefile.am.
28838         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28839         the generated files.
28840         (func_import): Don't set cmd.
28841
28842 2005-08-31  Bruno Haible  <bruno@clisp.org>
28843
28844         * lib/strstr.c: Include <stddef.h>, for NULL.
28845         * lib/strcasestr.c: Likewise.
28846         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28847
28848 2005-08-31  Bruno Haible  <bruno@clisp.org>
28849
28850         * gnulib-tool: New option --macro-prefix.
28851         (func_import): Use macro_prefix.
28852         (import): Handle option --macro-prefix.
28853
28854 2005-08-31  Bruno Haible  <bruno@clisp.org>
28855
28856         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28857         Also use new variables cached_lgpl, cached_libtool.
28858
28859 2005-08-31  Bruno Haible  <bruno@clisp.org>
28860
28861         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28862         always instantiating them.
28863
28864 2005-08-31  Bruno Haible  <bruno@clisp.org>
28865
28866         * gnulib-tool (func_import): Read the previous cached settings
28867         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28868         earlier added by gnulib but are now dropped. Warn when a gnulib file
28869         overwrites a non-gnulib file.
28870
28871 2005-08-31  Bruno Haible  <bruno@clisp.org>
28872
28873         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28874         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28875         projects that don't keep autogenerated files in CVS. Put into
28876         actioncmd only the specified modules, not the transitive closure.
28877
28878 2005-08-31  Bruno Haible  <bruno@clisp.org>
28879
28880         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28881         Create directories that shall be filled.
28882         (import): Don't look for gl_* macros in configure.ac. Recurse across
28883         all directories containing a gnulib-cache.m4 files, if meaningful.
28884
28885 2005-08-31  Bruno Haible  <bruno@clisp.org>
28886
28887         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28888         (import): Set seen_libtool when we see gl_LIBTOOL.
28889
28890 2005-08-31  Bruno Haible  <bruno@clisp.org>
28891
28892         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28893         declaration macro definitions from generated gnulib.m4.
28894
28895 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28896
28897         * lib/iconvme.h: Add prototype for iconv_alloc.
28898
28899 2005-08-29  Simon Josefsson  <jas@extundo.com>
28900
28901         * lib/iconvme.c: Fix errno.
28902
28903 2005-08-29  Bruno Haible  <bruno@clisp.org>
28904
28905         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28906         that it works when the directory contains spaces.
28907
28908 2005-08-29  Bruno Haible  <bruno@clisp.org>
28909
28910         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28911
28912 2005-08-29  Bruno Haible  <bruno@clisp.org>
28913
28914         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28915         Emit more advice.
28916
28917 2005-08-29  Bruno Haible  <bruno@clisp.org>
28918         and Stepan Kasal  <kasal@ucw.cz>
28919
28920         * check-module: If more parameters are given, check each of them
28921         separately; add more exceptions, as noted by Jim Meyering.
28922         (check_module): New procedure.
28923         (%exempt_header): Now contains all exceptions.
28924
28925 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28926
28927         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28928
28929 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28930
28931         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28932
28933 2005-08-28  Bruno Haible  <bruno@clisp.org>
28934
28935         * m4/gnulib-tool.m4: New file.
28936
28937 2005-08-27  Jim Meyering  <jim@meyering.net>
28938
28939         * modules/unistd-safer (Files): Add pipe-safer.c.
28940         * modules/fcntl-safer (Files): Add creat-safer.c.
28941
28942 2005-08-27  Jim Meyering  <jim@meyering.net>
28943
28944         * m4/stdlib-safer.m4: New file.  From coreutils.
28945         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28946         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28947         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28948         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28949         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28950
28951 2005-08-27  Jim Meyering  <jim@meyering.net>
28952
28953         * lib/fopen-safer.c: Merge minor changes from coreutils.
28954         * lib/dup-safer.c: Likewise.
28955         * lib/fd-safer.c: Likewise.
28956
28957         Merge from coreutils.
28958         * lib/stdio--.h: New file.
28959         * lib/stdlib--.h: New file.
28960         * lib/mkstemp-safer.c: New file.
28961
28962         GNU tar needs these.
28963         * lib/pipe-safer.c: New file.
28964         * lib/creat-safer.c: New file.
28965         * lib/fcntl--.h (creat): Define to creat_safer.
28966         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28967         * lib/unistd--.h (pipe): Define to pipe_safer.
28968         * lib/unistd-safer.h: Declare pipe_safer.
28969
28970 2005-08-26  Simon Josefsson  <jas@extundo.com>
28971
28972         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28973         Haible <bruno@clisp.org>.
28974
28975 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28976
28977         * lib/regex_internal.h: Remove all references to
28978         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28979         or better.
28980         (bitset_not, bitset_merge, bitset_not_merge):
28981         (bitset_mask, re_string_allocate, re_string_construct):
28982         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28983         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28984         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28985         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28986         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28987         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28988         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28989         (re_acquire_state_context):
28990         Remove unnecessary forward decls.
28991         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28992         Put __attribute at function definition,
28993         now that the function decl has been removed.
28994         * lib/regex_internal.c (re_string_peek_byte_case):
28995         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28996         Likewise.
28997
28998 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28999
29000         * m4/regex.m4: Add AC_PREREQ(2.50).
29001         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29002
29003 2005-08-25  Simon Josefsson  <jas@extundo.com>
29004
29005         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29006         __fsetlocking.
29007
29008 2005-08-25  Simon Josefsson  <jas@extundo.com>
29009
29010         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
29011         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
29012         GLIBC specific code.
29013
29014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         Make regex safe for g++.  This fixes one real bug (an "err"
29017         that should have been "*err").  g++ problem reported by
29018         Sam Steingold.
29019         * lib/regex_internal.h (re_calloc): New macro, consistent with
29020         re_malloc etc.  All callers of calloc changed to use re_calloc.
29021         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29022         not int.  All callers changed.
29023         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29024         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29025         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29026         (find_recover_state): Change "err" to "*err"; this fixes what
29027         appears to be a real bug.
29028         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29029         versus int.
29030
29031 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29032
29033         * modules/regex (Depends-on): Add malloc, since the code
29034         assumes that !malloc(0) means failure.
29035
29036 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29037
29038         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29039
29040         alloca modernization/simplification for regex.
29041         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29042         needs to be at the start of the file, and can be moved into
29043         regex_internal.h and simplified.
29044         * lib/regex_internal.h: Include <alloca.h>.
29045         (__libc_use_alloca) [!defined _LIBC]: New macro.
29046         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29047         now works outside glibc.
29048
29049 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29050
29051         * config/srclist.txt: Add glibc bugs 1241, 1245.
29052
29053 2005-08-25  Jim Meyering  <jim@meyering.net>
29054
29055         * lib/open-safer.c: Include <config.h>.
29056         Otherwise, we'd lose LARGEFILE support in any file using
29057         e.g. "fcntl--.h"
29058
29059 2005-08-25  Bruno Haible  <bruno@clisp.org>
29060
29061         * m4/minmax.m4: Require autoconf 2.52.
29062         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
29063         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
29064         alternatives of translit over the alphabet.
29065         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
29066
29067 2005-08-24  Simon Josefsson  <jas@extundo.com>
29068
29069         * tests/test-getpass.c: New file.
29070
29071 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29072
29073         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
29074         for GNU regex features.
29075
29076 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29077
29078         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29079         * lib/regex.h (regerror): Likewise.
29080
29081         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29082         requires this.  (The code never needed it.)
29083
29084         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29085         All uses of recently-renamed identifiers changed to use the new,
29086         POSIX-compliant names.  The code will build and run just fine
29087         without these changes, but it's better to eat our own dog food
29088         and use the standard-conforming names.
29089
29090         * lib/regex.h: Fix a multitude of POSIX name space violations.
29091         These changes have an effect only for programs that define
29092         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29093         do not change anything for programs compiled in the normal way.
29094         Also, there is no effect on the ABI.
29095
29096         (_REGEX_SOURCE): New macro.
29097         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29098         defined and _GNU_SOURCE is not; this fixes a name space violation.
29099
29100         Rename the following macros to obey POSIX requirements.
29101         The old names are still visible as macros if _REGEX_SOURCE is defined.
29102         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29103         RE_BACKSLASH_ESCAPE_IN_LISTS.
29104         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29105         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29106         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29107         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29108         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29109         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29110         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29111         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29112         (REG_INTERVALS): renamed from RE_INTERVALS.
29113         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29114         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29115         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29116         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29117         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29118         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29119         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29120         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29121         RE_UNMATCHED_RIGHT_PAREN_ORD.
29122         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29123         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29124         (REG_DEBUG): renamed from RE_DEBUG.
29125         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29126         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29127         unusual, since we can't clash with the POSIX REG_ICASE.
29128         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29129         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29130         (REG_NO_SUB): renamed from RE_NO_SUB.
29131         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29132         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29133         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29134         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29135         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29136         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29137         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29138         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29139         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29140         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29141         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29142         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29143         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29144         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29145         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29146         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29147         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29148         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29149         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29150         (REG_FIXED): Renamed from REGS_FIXED.
29151         (REG_NREGS): Renamed from RE_NREGS.
29152
29153         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29154         of other REG_* macros, since POSIX says the user is allowed to
29155         #undef these macros selectively.
29156
29157         (reg_errcode_t): Update comment stating what other tables need
29158         to be consistent.
29159
29160         Rename the following enum values to obey POSIX requirements.
29161         The old names are still visible as macros.
29162         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29163         is not defined, since GNU is supposed to be a superset of POSIX as
29164         much as possible, and since we want reg_errcode_t to be a signed
29165         type for implementation consistency.
29166         (_REG_NOERROR): Renamed from REG_NOERROR.
29167         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29168         (_REG_BADPAT): Renamed from REG_BADPAT.
29169         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29170         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29171         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29172         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29173         (_REG_EBRACK): Renamed from REG_EBRACK.
29174         (_REG_EPAREN): Renamed from REG_EPAREN.
29175         (_REG_EBRACE): Renamed from REG_EBRACE.
29176         (_REG_BADBR): Renamed from REG_BADBR.
29177         (_REG_ERANGE): Renamed from REG_ERANGE.
29178         (_REG_ESPACE): Renamed from REG_ESPACE.
29179         (_REG_BADRPT): Renamed from REG_BADRPT.
29180         (_REG_EEND): Renamed from REG_EEND.
29181         (_REG_ESIZE): Renamed from REG_ESIZE.
29182         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29183         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29184         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29185         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29186         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29187
29188         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29189         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29190         changed.  But support the old name if the new one is not defined
29191         and if _REGEX_SOURCE.
29192
29193         Change the following member names in struct re_pattern_buffer.
29194         The old names are still supported if !_REGEX_SOURCE.
29195         The new names are always supported, regardless of _REGEX_SOURCE.
29196         (re_buffer): Renamed from buffer.
29197         (re_allocated): Renamed from allocated.
29198         (re_used): Renamed from used.
29199         (re_syntax): Renamed from syntax.
29200         (re_fastmap): Renamed from fastmap.
29201         (re_translate): Renamed from translate.
29202         (re_can_be_null): Renamed from can_be_null.
29203         (re_regs_allocated): Renamed from regs_allocated.
29204         (re_fastmap_accurate): Renamed from fastmap_accurate.
29205         (re_no_sub): Renamed from no_sub.
29206         (re_not_bol): Renamed from not_bol.
29207         (re_not_eol): Renamed from not_eol.
29208         (re_newline_anchor): Renamed from newline_anchor.
29209
29210         Change the following member names in struct re_registers.
29211         The old names are still supported if !_REGEX_SOURCE.
29212         The new names are always supported, regardless of _REGEX_SOURCE.
29213         (rm_num_regs): Renamed from num_regs.
29214         (rm_start): Renamed from start.
29215         (rm_end): Renamed from end.
29216
29217         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29218         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29219         Prepend __ to parameter names.
29220
29221         Undo yesterday's changes.
29222
29223 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29224
29225         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29226         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29227         lib/regex.c.
29228
29229 2005-08-24  Jim Meyering  <jim@meyering.net>
29230
29231         Sync from coreutils.
29232         * m4/fcntl-safer.m4: New file.
29233
29234         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29235         and object files for this module.
29236
29237 2005-08-24  Jim Meyering  <jim@meyering.net>
29238
29239         Sync from coreutils.
29240         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29241
29242 2005-08-24  Jim Meyering  <jim@meyering.net>
29243
29244         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29245         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29246
29247 2005-08-24  Jim Meyering  <jim@meyering.net>
29248
29249         * modules/fcntl-safer: New module.
29250         * modules/fts (Depends-on): Add fcntl-safer.
29251         * MODULES.html.sh (File descriptor based Input/Output):
29252         Add fcntl-safer.
29253
29254 2005-08-24  Bruno Haible  <bruno@clisp.org>
29255
29256         Support for unit test modules.
29257         * modules/README: Mention tests modules.
29258         * modules/TEMPLATE-TESTS: New file.
29259         * gnulib-tool: New options --extract-tests-module, --with-tests and
29260         --tests-base (unused for the moment).
29261         (testsbase, inctests): New variables.
29262         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29263         (func_verify_module): Exclude TEMPLATE-TESTS.
29264         (func_verify_nontests_module, func_verify_tests_module): New functions.
29265         (func_get_dependencies): Add implicit dependency for tests modules.
29266         (func_get_tests_module): New function.
29267         (func_modules_transitive_closure): When --with-tests was specified,
29268         include the unit tests as well, unless explicitly avoided.
29269         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29270         (func_emit_tests_Makefile_am): New function.
29271         (func_create_testdir): When --with-tests was specified, emit a
29272         tests/ directory.
29273         * MODULES.html.sh (Future developments): Update.
29274
29275 2005-08-24  Bruno Haible  <bruno@clisp.org>
29276
29277         * modules/tls-tests: New file.
29278         * tests/test-tls.c: New file, from GNU gettext.
29279
29280 2005-08-24  Bruno Haible  <bruno@clisp.org>
29281
29282         * modules/lock-tests: New file.
29283         * tests/test-lock.c: New file, from GNU gettext.
29284
29285 2005-08-24  Bruno Haible  <bruno@clisp.org>
29286
29287         * lib/lock.h: Add multiple inclusion guard.
29288         * lib/tls.h: Add multiple inclusion guard.
29289
29290 2005-08-24  Bruno Haible  <bruno@clisp.org>
29291
29292         * gnulib-tool: Add support for the --aux-dir option to
29293         --create-testdir, --create-megatestdir, --test, --megatest.
29294         (func_create_testdir, func_create_megatestdir): Optionally emit a
29295         AC_CONFIG_AUX_DIR directive.
29296         (create-testdir, create-megatestdir, test, megatest): Provide a
29297         default value for $auxdir.
29298
29299 2005-08-24  Bruno Haible  <bruno@clisp.org>
29300
29301         * gnulib-tool (import): Use compound statement instead of subshell
29302         where possible.
29303
29304 2005-08-24  Bruno Haible  <bruno@clisp.org>
29305
29306         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29307
29308 2005-08-24  Bruno Haible  <bruno@clisp.org>
29309
29310         * gnulib-tool (func_version): Update.
29311
29312 2005-08-24  Bruno Haible  <bruno@clisp.org>
29313
29314         * gnulib-tool (func_import, func_create_testdir,
29315         func_create_megatestdir): Quote all autoconf macro arguments.
29316
29317 2005-08-24  Bruno Haible  <bruno@clisp.org>
29318
29319         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29320         option --force, because --force causes the aclocal.m4 of each
29321         subdirectory to be newer than the corresponding config.h.in.
29322
29323 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29324
29325         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29326         All contents moved to gl_REGEX.
29327         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29328         assume that it does.
29329
29330 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29331
29332         * lib/regex.h (REG_NOSYS)
29333         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29334         Define, since POSIX requires it as of 2001.
29335         (_REG_ENOSYS)
29336         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29337         New private symbol, used to keep the enum signed in all cases.
29338         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29339         Youngman in
29340         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29341
29342         * lib/regex_internal.c (re_string_skip_chars, register_state):
29343         (calc_state_hash):
29344         Remove forward decls; no longer needed now that we use prototypes.
29345         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29346         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29347         (clean_state_log_if_needed): Likewise.
29348
29349 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         * config/srclist.txt: Add glibc bugs 1231-1233.
29352
29353 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29354
29355         Fix problems reported by Sam Steingold in
29356         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29357         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29358         assumed that reg_errcode_t is a signed type, which is not
29359         necessarily true if _XOPEN_SOURCE is not defined.
29360         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29361         since some compilers warn about it otherwise.
29362
29363 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29364
29365         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29366         (init_word_char, create_initial_state, duplicate_node_closure):
29367         (fetch_token, peek_token_bracket, build_range_exp):
29368         (build_collating_symbol): Remove forward decls; no longer needed
29369         now that we use prototypes.
29370
29371         * lib/regcomp.c:
29372         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29373         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29374         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29375         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29376         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29377         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29378         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29379         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29380         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29381         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29382         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29383         (build_charclass, build_charclass_op, fetch_number, create_tree):
29384         (create_token_tree, mark_opt_subexp, duplicate_tree):
29385         Use prototypes rather than old-style definitions.
29386
29387         * lib/regex_internal.c:
29388         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29389         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29390         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29391         (re_string_reconstruct, re_string_peek_byte_case):
29392         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29393         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29394         (re_node_set_init_copy, re_node_set_add_intersect):
29395         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29396         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29397         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29398         (re_acquire_state, re_acquire_state_context, register_state):
29399         (create_ci_newstate, create_cd_newstate, free_state):
29400         Likewise.
29401         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29402         re_search_2):
29403         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29404         (re_search_internal, prune_impossible_nodes):
29405         (acquire_init_state_context, check_matching, static):
29406         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29407         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29408         (update_regs, sift_states_backward, build_sifted_states):
29409         (clean_state_log_if_needed, merge_state_array):
29410         (update_cur_sifted_state, add_epsilon_src_nodes):
29411         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29412         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29413         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29414         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29415         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29416         (check_arrival, check_arrival_add_next_nodes):
29417         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29418         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29419         (check_node_accept_bytes, check_node_accept, extend_buffers):
29420         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29421         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29422         (sift_ctx_init):
29423         Likewise.
29424
29425         * lib/regex_internal.h:
29426         (re_string_allocate, re_string_construct, re_string_reconstruct):
29427         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29428         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29429         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29430         (re_string_context_at, re_string_peek_byte_case):
29431         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29432         is defined, since we now use prototypes always.
29433
29434         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29435         C89 or better.  All uses removed.
29436
29437 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         * config/srclist.txt: Add glibc bugs 1220-1227.
29440
29441 2005-08-20  Jim Meyering  <jim@meyering.net>
29442
29443         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29444         of unused local, dfa.
29445
29446 2005-08-20  Bruno Haible  <bruno@clisp.org>
29447
29448         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29449
29450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29451
29452         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29453         (re_node_set_insert_last, re_dfa_add_node):
29454         Rename local variables to avoid GCC shadowing warnings.
29455
29456 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29457
29458         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29459         [defined lint]: Suppress bogus uninitialized-variable warnings.
29460
29461         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29462         and let the caller return REG_ESPACE if out of space.  This
29463         removes an uninitialied-variable warning with GCC 4.0.1, and also
29464         avoids taking the address of a local variable.  All callers
29465         changed.
29466
29467 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29468
29469         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29470         $LIBCSRC/posix/regexec.c.
29471         Add glibc bug 1217 for regcomp.c.
29472
29473 2005-08-19  Jim Meyering  <jim@meyering.net>
29474
29475         * lib/regexec.c (proceed_next_node): Redo local variables to
29476         avoid GCC shadowing warnings.
29477
29478 2005-08-18  Bruno Haible  <bruno@clisp.org>
29479
29480         * lib/strstr.c (strstr): Fix return value in multibyte case.
29481         * lib/strcasestr.c (strcasestr): Likewise.
29482
29483 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29484
29485         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29486
29487 2005-08-17  Jim Meyering  <jim@meyering.net>
29488
29489         Make the %s format (seconds since the epoch) work for a negative
29490         number and when used with a zero-padded field width, e.g. %015s.
29491
29492         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29493         label so that it precedes the code to set `digits'.  Otherwise,
29494         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29495         print `00-22'.  Now, it prints `-0022', as it should.
29496
29497 2005-08-17  Bruno Haible  <bruno@clisp.org>
29498
29499         * modules/strstr (Files): Add m4/mbrtowc.m4.
29500         (Depends-on): Add mbuiter.
29501
29502 2005-08-17  Bruno Haible  <bruno@clisp.org>
29503
29504         * modules/strcasestr: New file.
29505         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29506         strcasestr.
29507
29508 2005-08-17  Bruno Haible  <bruno@clisp.org>
29509
29510         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29511
29512 2005-08-17  Bruno Haible  <bruno@clisp.org>
29513
29514         * modules/mbuiter: New file.
29515         * MODULES.html.sh (Extended multibyte and wide character utilities):
29516         Add mbuiter.
29517
29518 2005-08-17  Bruno Haible  <bruno@clisp.org>
29519
29520         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29521         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29522
29523 2005-08-17  Bruno Haible  <bruno@clisp.org>
29524
29525         * m4/strcasestr.m4: New file.
29526
29527 2005-08-17  Bruno Haible  <bruno@clisp.org>
29528
29529         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29530         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29531
29532 2005-08-17  Bruno Haible  <bruno@clisp.org>
29533
29534         * lib/strcasestr.h: New file.
29535         * lib/strcasestr.c: New file.
29536
29537 2005-08-17  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/strcasecmp.c: Use mbuiter.h.
29540
29541 2005-08-17  Bruno Haible  <bruno@clisp.org>
29542
29543         * lib/mbuiter.h: New file.
29544
29545 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29546
29547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29548         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29549         and gl_GETOPT are both invoked via different paths (as happens
29550         with GNU tar CVS because it uses both argp and getopt), the former
29551         wins.
29552
29553 2005-08-16  Bruno Haible  <bruno@clisp.org>
29554
29555         * modules/tls: New file.
29556         * MODULES.html.sh (Multithreading): Add tls.
29557
29558 2005-08-16  Bruno Haible  <bruno@clisp.org>
29559
29560         * modules/strnlen1: New file.
29561         * MODULES.html.sh (String handling): Add strnlen1.
29562
29563 2005-08-16  Bruno Haible  <bruno@clisp.org>
29564
29565         * modules/strcase (Files): Add m4/mbrtowc.m4.
29566         (Depends-on): Add strnlen1, mbchar.
29567
29568 2005-08-16  Bruno Haible  <bruno@clisp.org>
29569
29570         * modules/mbiter: New file.
29571         * MODULES.html.sh (Extended multibyte and wide character utilities):
29572         Add mbiter.
29573
29574 2005-08-16  Bruno Haible  <bruno@clisp.org>
29575
29576         * modules/mbfile: New file.
29577         * MODULES.html.sh (Extended multibyte and wide character utilities):
29578         Add mbfile.
29579
29580 2005-08-16  Bruno Haible  <bruno@clisp.org>
29581
29582         * modules/mbchar: New file.
29583         * MODULES.html.sh (Extended multibyte and wide character utilities):
29584         New section.
29585
29586 2005-08-16  Bruno Haible  <bruno@clisp.org>
29587
29588         * m4/tls.m4: New file, from GNU gettext.
29589
29590 2005-08-16  Bruno Haible  <bruno@clisp.org>
29591
29592         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29593         always.
29594         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29595
29596 2005-08-16  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/mbiter.m4: New file.
29599
29600 2005-08-16  Bruno Haible  <bruno@clisp.org>
29601
29602         * m4/mbfile.m4: New file.
29603
29604 2005-08-16  Bruno Haible  <bruno@clisp.org>
29605
29606         * m4/mbchar.m4: New file.
29607
29608 2005-08-16  Bruno Haible  <bruno@clisp.org>
29609
29610         * lib/tls.h: New file, from GNU gettext.
29611         * lib/tls.c: New file, from GNU gettext.
29612
29613 2005-08-16  Bruno Haible  <bruno@clisp.org>
29614
29615         * lib/strnlen1.h: New file.
29616         * lib/strnlen1.c: New file.
29617
29618 2005-08-16  Bruno Haible  <bruno@clisp.org>
29619
29620         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29621         (mbi_init): Update.
29622         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29623         NUL byte, not after it.
29624
29625 2005-08-16  Bruno Haible  <bruno@clisp.org>
29626
29627         * lib/strcase.h (strcasecmp): Add note in comments.
29628         * lib/strncasecmp.c: Use code from strcasecmp.c.
29629         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29630         (strcasecmp): Work correctly in multibyte locales.
29631
29632 2005-08-16  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/mbiter.h: New file.
29635
29636 2005-08-16  Bruno Haible  <bruno@clisp.org>
29637
29638         * lib/mbfile.h: New file.
29639
29640 2005-08-16  Bruno Haible  <bruno@clisp.org>
29641
29642         * lib/mbchar.h: New file.
29643         * lib/mbchar.c: New file.
29644
29645 2005-08-16  Bruno Haible  <bruno@clisp.org>
29646
29647         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29648         the valid ones. Makes the comparison operations transitive:
29649         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29650         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29651
29652 2005-08-15  Simon Josefsson  <jas@extundo.com>
29653
29654         * modules/ssize_t (License): Change to 'unlimited'.
29655
29656         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29657
29658 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29659
29660         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29661         Add comments for each pending glibc patch.
29662
29663 2005-08-15  Bruno Haible  <bruno@clisp.org>
29664
29665         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29666         __cplusplus is defined.
29667
29668 2005-08-14  Jim Meyering  <jim@meyering.net>
29669
29670         Sync from coreutils.
29671
29672         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29673         Use the hash-table-based cycle-detection code not just when
29674         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29675         Reported by James Youngman in
29676         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29677         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29678         FTS_TIGHT_CYCLE_CHECK.
29679         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29680         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29681         once again.
29682         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29683         * lib/fts.c (fd_safer): Remove decl.
29684         Include fcntl--.h rather than unistd-safer.h
29685         (fts_safe_changedir): Don't call fd_safer; no longer needed
29686         now that we include fcntl--.h.
29687
29688 2005-08-12  Simon Josefsson  <jas@extundo.com>
29689
29690         * modules/getndelim2: Use ssize_t module.
29691         * modules/getnline: Likewise.
29692         * modules/safe-read: Likewise.
29693         * modules/xreadlink: Likewise.
29694
29695         * modules/ssize_t: New file.
29696
29697 2005-08-12  Simon Josefsson  <jas@extundo.com>
29698
29699         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29700
29701 2005-08-12  Simon Josefsson  <jas@extundo.com>
29702
29703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29704         ssize_t.
29705
29706 2005-08-12  Simon Josefsson  <jas@extundo.com>
29707
29708         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29709         readline, getdelim and check_version.
29710         (Support for systems lacking ISO C 99: Sizes of integer types):
29711         Add size_max.
29712
29713 2005-08-12  Bruno Haible  <bruno@clisp.org>
29714
29715         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29716
29717 2005-08-11  Simon Josefsson  <jas@extundo.com>
29718
29719         * modules/readline: New file.
29720
29721         * modules/strnlen (Files): Add strnlen.h.
29722
29723 2005-08-11  Simon Josefsson  <jas@extundo.com>
29724
29725         * m4/readline.m4: New file.
29726
29727 2005-08-11  Simon Josefsson  <jas@extundo.com>
29728
29729         * lib/readline.h, readline.c: New file.
29730
29731 2005-08-11  Simon Josefsson  <jas@extundo.com>
29732
29733         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29734         gl_AVOID.
29735
29736 2005-08-11  Bruno Haible  <bruno@clisp.org>
29737
29738         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29739
29740 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29741
29742         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29743
29744 2005-08-10  Simon Josefsson  <jas@extundo.com>
29745
29746         * tests/test-iconvme.c: New file.
29747
29748 2005-08-10  Simon Josefsson  <jas@extundo.com>
29749
29750         * m4/strnlen.m4: New file.
29751
29752         * m4/strndup.m4: Don't check for strnlen declaration, done in
29753         strnlen.m4.
29754
29755 2005-08-10  Simon Josefsson  <jas@extundo.com>
29756
29757         * lib/strndup.c: Use strnlen.h.
29758
29759         * lib/strnlen.h: New file.
29760
29761 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29762
29763         * README: Typos.
29764
29765 2005-08-02  Simon Josefsson  <jas@extundo.com>
29766
29767         * modules/readline: New file.
29768
29769 2005-08-02  Simon Josefsson  <jas@extundo.com>
29770
29771         * modules/getdelim: New file.
29772
29773         * modules/getline: Rewrite, don't use getndelim2.
29774
29775 2005-08-02  Simon Josefsson  <jas@extundo.com>
29776
29777         * m4/getline.m4: Separate out getdelim stuff into separate module.
29778
29779         * m4/getdelim.m4: New file.
29780
29781 2005-08-02  Simon Josefsson  <jas@extundo.com>
29782
29783         * lib/getline.h, getline.c: Rewrite.
29784
29785         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29786
29787 2005-07-31  Bruno Haible  <bruno@clisp.org>
29788
29789         * lib/lock.h (gl_lock_initializer): New macro.
29790         (gl_lock_define_initialized): Use it.
29791         (gl_rwlock_initializer): New macro.
29792         (gl_rwlock_define_initialized): Use it.
29793         (gl_recursive_lock_initializer): New macro.
29794         (gl_recursive_lock_define_initialized): Use it.
29795
29796 2005-07-30  Karl Berry  <karl@gnu.org>
29797
29798         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29799         Report from Ben Pfaff, regarding getopt.
29800
29801 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29802
29803         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29804         normal way.
29805         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29806         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29807         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29808         (gl_GETOPT): Use the new macros.  Most of the implementation
29809         is moved to the new macros.  This is for programs like Emacs
29810         that don't want all the functionality of gl_GETOPT.
29811
29812 2005-07-26  Bruno Haible  <bruno@clisp.org>
29813
29814         * m4/lock.m4: Update from GNU gettext.
29815
29816 2005-07-26  Bruno Haible  <bruno@clisp.org>
29817
29818         * lib/lock.h: Update from GNU gettext.
29819         * lib/lock.c: Update from GNU gettext.
29820
29821 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29822
29823         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29824         obsolescent AC_TRY_RUN.  Include the default includes files, for
29825         'exit'.
29826
29827 2005-07-24  Bruno Haible  <bruno@clisp.org>
29828
29829         * modules/visibility: New file.
29830         * MODULES.html.sh (Misc): Add visibility.
29831
29832 2005-07-24  Bruno Haible  <bruno@clisp.org>
29833
29834         * m4/visibility.m4: New file.
29835
29836 2005-07-24  Bruno Haible  <bruno@clisp.org>
29837
29838         * doc/visibility.texi: New file.
29839
29840 2005-07-22  Bruno Haible  <bruno@clisp.org>
29841
29842         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29843         $(ALLOCA_H), redundant through BUILT_SOURCES.
29844         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29845         redundant through BUILT_SOURCES.
29846         * modules/byteswap (Makefile.am): Remove explicit dependency on
29847         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29848         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29849         $(FNMATCH_H), redundant through BUILT_SOURCES.
29850         * modules/getopt (Makefile.am): Remove explicit dependency on
29851         $(GETOPT_H), redundant through BUILT_SOURCES.
29852         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29853         redundant through BUILT_SOURCES.
29854         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29855         redundant through BUILT_SOURCES.
29856         * modules/stdbool (Makefile.am): Remove explicit dependency on
29857         $(STDBOOL_H), redundant through BUILT_SOURCES.
29858         * modules/stdint (Makefile.am): Remove explicit dependency on
29859         $(STDINT_H), redundant through BUILT_SOURCES.
29860         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29861         Remove explicit dependency on $(SYSEXITS_H).
29862         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29863
29864 2005-07-18  Simon Josefsson  <jas@extundo.com>
29865
29866         * lib/check-version.c (check_version): Accept identical versions too.
29867
29868 2005-07-18  Bruno Haible  <bruno@clisp.org>
29869
29870         * modules/lock: New file.
29871         * MODULES.html.sh (Multithreading): New section.
29872
29873 2005-07-18  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/lock.m4: New file, from GNU gettext.
29876
29877 2005-07-18  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/lock.h: New file, from GNU gettext.
29880         * lib/lock.c: New file, from GNU gettext.
29881
29882 2005-07-18  Bruno Haible  <bruno@clisp.org>
29883
29884         * lib/lock.h (gl_once_t): New type.
29885         (gl_once_define, gl_once): New macros.
29886         * lib/lock.c (fresh_once): New variable.
29887         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29888         functions.
29889
29890 2005-07-16  Simon Josefsson  <jas@extundo.com>
29891
29892         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29893         workaround, suggested by Bruno.
29894
29895 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29896
29897         * modules/xalloc (Depends-on): Add xalloc-die.
29898         * modules/xvasprintf (Depends-on): Add xalloc-die.
29899
29900 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29901
29902         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29903         with a minor change.
29904
29905 2005-07-15  Bruno Haible  <bruno@clisp.org>
29906
29907         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29908         When using lib/poll.c, define poll as rpl_poll.
29909
29910 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29911
29912         * modules/argp (Depends-on): Remove unlocked-io.
29913
29914 2005-07-14  Derek Price  <derek@ximbiot.com>
29915
29916         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29917         for glob symlink bug.
29918
29919 2005-07-14  Bruno Haible  <bruno@clisp.org>
29920
29921         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29922         Instead, test for *_unlocked function declarations directly.
29923
29924 2005-07-11  Simon Josefsson  <jas@extundo.com>
29925
29926         * modules/size_max: New file.
29927
29928         * modules/xsize: Depend on size_max module for size_max.m4.
29929
29930 2005-07-11  Simon Josefsson  <jas@extundo.com>
29931
29932         * lib/size_max.h: New file.
29933
29934 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29935
29936         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29937         copyright symbol and the year.
29938         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29939         (version_etc_va): Use parameterized copyright notice.
29940         Reword to conform to the current GNU coding standards.
29941
29942 2005-07-11  Karl Berry  <karl@gnu.org>
29943
29944         * doc/gnulib.texi (Quoting): new node.
29945         (Initial import): more info, from Patrice.
29946
29947 2005-07-11  Bruno Haible  <bruno@clisp.org>
29948
29949         * gnulib-tool (func_usage): Document option --avoid.
29950         (Command line options): Handle --avoid.
29951         (func_acceptable): New function.
29952         (func_modules_transitive_closure): Use it.
29953
29954 2005-07-11  Bruno Haible  <bruno@clisp.org>
29955
29956         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29957         Reported by Jim Meyering.
29958
29959 2005-07-10  Bruno Haible  <bruno@clisp.org>
29960
29961         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29962         Needed when size_t is smaller than 'unsigned int'.
29963         Reported by Paul Eggert.
29964
29965 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29966
29967         * modules/argp (Depends-on): Add unlocked-io
29968
29969 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29970
29971         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29972         block of defines.
29973
29974 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29977         fix now.
29978
29979 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29980         and Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29983         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29984
29985 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29986
29987         * modules/regex (Files): Add lib/regex_internal.c,
29988         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29989         (Depends-on): Add extensions.
29990         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29991
29992 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29993
29994         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29995         pathconf.
29996         * m4/same.m4 (gl_SAME): Likewise.
29997         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29998
29999         * m4/regex.m4: Adjust to new libc regex implementation.
30000         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30001         all the .c and .h parts of (the new) regex.
30002         Quote the m4 stuff better.
30003         Check for RE_ICASE bug of old gnulib.
30004         Check for REG_STARTEND of recent libc.
30005         Rename local variables from jm_* to gl_*.
30006         Quote operand of "test -f".
30007         Say "recent enough" version of libc, not "version 2".
30008         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30009         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
30010         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30011         Remove check for btowc, isascii.
30012         Require AM_LANGINFO_CODESET.
30013
30014 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30015
30016         * lib/regex.c, regex.h: Sync from libc.
30017         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30018         * lib/regexec.c:
30019         New files, synced from libc, except that regex_internal.h
30020         currently has a small porting fix.
30021
30022 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30023
30024         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30025         regex_internal.c, regexec.c.
30026         Add regex_internal.h too, but as a comment, since the libc version
30027         is currently broken in gnulib mode.
30028
30029 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30030
30031         Support programs like Emacs that use gnulib but not gettext.
30032         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30033         * modules/gettext-h: New file.
30034         * modules/gettext (Files): Remove lib/gettext.h.
30035         (Depends-on): Add gettext-h.
30036         (Makefile.am): Remove lib_SOURCES.
30037         * modules/argmatch, modules/c-stack, modules/closeout:
30038         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30039         * modules/execute, modules/file-type, modules/getaddrinfo:
30040         * modules/getopt, modules/human, modules/javacomp:
30041         * modules/javaexec, modules/mkdir-p, modules/obstack:
30042         * modules/openat, modules/pagealign_alloc, modules/pipe:
30043         * modules/quotearg, modules/regex, modules/rpmatch:
30044         * modules/unicodeio, modules/userspec, modules/version-etc:
30045         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30046         * modules/xsetenv:
30047         Depend on gettext-h, not gettext.
30048
30049 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         * gnulib-tool (func_import): Add support for 'public domain' license.
30052         * modules/alloca, modules/atexit, modules/memmove:
30053         Now public domain, not GPL.
30054         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
30055         * modules/realloc, modules/strerror, modules/strtod:
30056         Now LGPL, not GPL.
30057
30058 2005-07-05  Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
30061         autoconf CVS. Needed for mingw.
30062
30063 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30064
30065         Remove the dependency of the strftime module on the tzset module.
30066         * modules/strftime (Depends-on): Remove dependency on tzset.
30067
30068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30069
30070         Remove the dependency of the strftime module on the tzset module.
30071         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
30072         gl_FUNC_TZSET_CLOBBER.
30073
30074 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30075
30076         Remove the dependency of the strftime module on the tzset module.
30077         * lib/strftime.c (my_strftime)
30078         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30079         Copy the input structure, to work around some of the bug with
30080         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30081         Solaris releases, you should also use the tzset module, but we won't
30082         require it as a dependency any more since we don't want LGPLed code
30083         to depend on GPLed code.
30084
30085 2005-07-02  Jim Meyering  <jim@meyering.net>
30086
30087         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30088         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30089         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30090         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30091
30092 2005-07-02  Jim Meyering  <jim@meyering.net>
30093
30094         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30095
30096 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30099         declares only 'struct timespec;' (!).
30100
30101 2005-07-01  Jim Meyering  <jim@meyering.net>
30102
30103         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30104         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30105         * lib/save-cwd.c, tempname.c:
30106         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30107         and don't include <sys/file.h>).
30108
30109 2005-06-29  Jim Meyering  <jim@meyering.net>
30110
30111         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30112         type name.  Use the variable name instead.
30113         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30114         Likewise.
30115
30116 2005-06-28  Simon Josefsson  <jas@extundo.com>
30117
30118         * modules/check-version (Files): Add check-version.m4.
30119
30120 2005-06-28  Simon Josefsson  <jas@extundo.com>
30121
30122         * m4/check-version.m4: New file, suggested by Jim Meyering
30123         <jim@meyering.net>.
30124
30125 2005-06-28  Simon Josefsson  <jas@extundo.com>
30126
30127         * lib/check-version.h, lib/check-version.c: New files.
30128
30129 2005-06-28  Simon Josefsson  <jas@extundo.com>
30130
30131         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30132         collision with global variable.  Better indentation.  Don't
30133         increment buffer pointer beyond buffer end.  Based on comments
30134         from Paul Eggert <eggert@cs.ucla.edu>.
30135
30136         * lib/base64.h: Indent.
30137
30138 2005-06-28  Simon Josefsson  <jas@extundo.com>
30139
30140         * doc/gnulib.texi (Library version handling): New section.
30141
30142 2005-06-28  Jim Meyering  <jim@meyering.net>
30143
30144         * check-module (find_included_lib_files): Hard-code another
30145         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30146         but modules/fts-lgpl (correctly) does not list those files.
30147
30148         * modules/canonicalize (Files): Add lib/pathmax.h.
30149
30150 2005-06-25  Simon Josefsson  <jas@extundo.com>
30151
30152         * modules/check-version: New file.
30153
30154 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30157         initializer of struct addrinfo, as an indication that we don't
30158         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30165         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30166         * m4/stat.m4: Remove this file.
30167
30168 2005-06-24  Derek Price  <derek@ximbiot.com>
30169         and Bruno Haible  <bruno@clisp.org>
30170
30171         Remove stat module & update lstat.
30172         * lib/stat.c: Remove this file...
30173         (slash_aware_lstat): ...moving this content and its support...
30174         * lib/lstat.c (rpl_lstat): ...into here.
30175         * lib/lstat.h: New file.
30176
30177 2005-06-24  Derek Price  <derek@ximbiot.com>
30178         and Bruno Haible  <bruno@clisp.org>
30179
30180         Remove stat module & update lstat.
30181         * config/srclist.txt (libc sources): Remove stat.
30182
30183 2005-06-24  Derek Price  <derek@ximbiot.com>
30184         and Bruno Haible  <bruno@clisp.org>
30185
30186         Remove stat module & update lstat.
30187         * MODULES.html.sh (stat): Remove.
30188         * MODULES.html: Regenerated.
30189         * modules/lstat (Description): Correct function name.
30190         (Files): Add "lstat.h".
30191         (Depends-on): Remove stat, add xalloc, stat-macros.
30192         * modules/stat: Remove this file.
30193         (Include): Add "lstat.h", remove <sys/stat.h>.
30194
30195 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30196
30197         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30198         (ranged_convert): Don't save conversion in a temporary struct.
30199         This causes a warning with GCC 4.0.0, and anyway in the typical
30200         case it's not worth the extra 100 bytes or so of code.
30201         (ranged_convert, __mktime_internal): When calling a function via a
30202         pointer P, use P () rather than (*P) (), as we now assume C89 or
30203         better.
30204
30205 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30206
30207         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30208         "who -r" failed to give output.  Problem reported by Tim Waugh.
30209
30210         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30211         (xcalloc): Use it to avoid needless tests.
30212         Problem reported by Jim Meyering.
30213
30214 2005-06-20  Derek Price  <derek@ximbiot.com>
30215
30216         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30217         unnecessary for Autoconfs > 2.59c.
30218
30219 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30220
30221         * lib/argp.h (__option_is_short): Check upper limit of
30222         __key. Isprint() requires its argument to have the value
30223         of an unsigned char or EOF.
30224
30225 2005-06-16  Jim Meyering  <jim@meyering.net>
30226
30227         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30228         when either N or S is zero.
30229
30230 2005-06-16  Derek Price  <derek@ximbiot.com>
30231
30232         * m4/bison.m4: Declare YACC & YFLAGS precious.
30233
30234 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30235
30236         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30237         multibyte string or pattern, fall back on unibyte matching.
30238         Problem reported by James Youngman.
30239
30240 2005-06-08  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/csharpcomp: New file.
30243         * MODULES.html.sh (C#): Add csharpcomp.
30244
30245 2005-06-08  Bruno Haible  <bruno@clisp.org>
30246
30247         * m4/csharpcomp.m4: New file, from GNU gettext.
30248
30249 2005-06-08  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/csharpcomp.h: New file, from GNU gettext.
30252         * lib/csharpcomp.c: New file, from GNU gettext.
30253         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30254
30255 2005-06-08  Bruno Haible  <bruno@clisp.org>
30256
30257         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30258         warning on mingw.
30259
30260 2005-06-07  Derek Price  <derek@ximbiot.com>
30261
30262         Sync from CVS.
30263         * lib/glob_.h: Indent nested #ifdef.
30264
30265 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30266
30267         Sync from coreutils.
30268         Use "file name" when talking about file names, instead of "filename"
30269         or "path", as per the GNU coding standards.
30270         * lib/mkdir-p.c: Renamed from makepath.c.
30271         (make_dir_parents): Renamed from make_path.  All callers changed.
30272         * lib/mkdir-p.h: Likewise.  All includers changed.
30273         * lib/filenamecat.c: Renamed from path-concat.c.
30274         (file_name_concat): Renamed from path_concat.  All callers changed.
30275         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30276         * lib/filenamecat.h: Likewise.  All includers changed.
30277         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30278         in comments or local variable names.
30279         * lib/basename.c: Likewise.
30280         * lib/canonicalize.c, canonicalize.h: Likewise.
30281         * lib/dirname.c, dirname.h: Likewise.
30282         * lib/euidaccess.c: Likewise.
30283         * lib/exclude.c: Likewise
30284         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30285         * lib/fsusage.c, fsuage.h: Likewise.
30286         * lib/fts.c, fts_.h: Likewise.
30287         * lib/getcwd.c: Likewise.
30288         * lib/getloadavg.c: Likewise.
30289         * lib/mkstemp.c: Likewise.
30290         * lib/mountlist.c, mountlist.h: Likewise.
30291         * lib/openat.c, openat.h: Likewise.
30292         * lib/readlink-stub.c: Likewise.
30293         * lib/readutmp.c, readutmp.h: Likewise.
30294         * lib/rename.c: Likewise.
30295         * lib/rmdir.c: Likewise.
30296         * lib/same.c: Likewise.
30297         * lib/savedir.c: Likewise.
30298         * lib/stripslash.c: Likewise.
30299         * lib/tempname.c: Likewise.
30300         * lib/xreadlink.c: Likewise.
30301         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30302         All uses changed.
30303         * lib/exclude.h: Likewise.
30304
30305         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30306         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30307         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30308         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30309         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30310         files have been getting away with it for years (MORE/BSD 4.3
30311         is extinct now).
30312         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30313         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30314
30315         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30316         Define to 256, not 255, as per modern POSIX.
30317
30318 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30319
30320         Sync from coreutils.
30321         Use "file name" when talking about file names, instead of "filename"
30322         or "path", as per the GNU coding standards.
30323         * MODULES.html.sh: mkdir-p renamed from makepath.
30324         filenamecat renamed from path-concat.
30325         * modules/filenamecat: Renamed from modules/path-concat.
30326         (Files): filenamecat.h and filenamecat.c renamed from
30327         path-concat.h and path-concat.c.
30328         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30329         (Include): filenamecat.h, not path-concat.h.
30330         * modules/mkdir-p: Renamed from modules/makepath.
30331         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30332         makepath.c.
30333         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30334         (Include): mkdir-p.h, not makepath.h.
30335
30336 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30337
30338         Sync from coreutils.
30339         * m4/mkdir-p.m4: Renamed from makepath.m4.
30340         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30341         Rename files from makepath.c to mkdir-p.c, and from
30342         makepath.h to mkdir-p.h.
30343         * m4/filenamecat.m4: Renamed from path-concat.m4.
30344         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30345         Rename files from path-concat.c to filenamecat.c,
30346         and from path-concat.h to filenamecat.h.
30347         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30348         "file name" in local variables or comments.
30349         * m4/rename.m4: Likewise.
30350
30351 2005-06-01  Bruno Haible  <bruno@clisp.org>
30352
30353         * modules/csharpexec: New file.
30354         * MODULES.html.sh (C#): New section.
30355
30356 2005-06-01  Bruno Haible  <bruno@clisp.org>
30357
30358         * m4/csharp.m4: New file, from GNU gettext.
30359         * m4/csharpexec.m4: New file, from GNU gettext.
30360
30361 2005-06-01  Bruno Haible  <bruno@clisp.org>
30362
30363         * lib/csharpexec.h: New file, from GNU gettext.
30364         * lib/csharpexec.c: New file, from GNU gettext.
30365         * lib/csharpexec.sh.in: New file, from GNU gettext.
30366
30367 2005-05-31  Derek Price  <derek@ximbiot.com>
30368             Paul Eggert  <eggert@cs.ucla.edu>
30369
30370         Sync from cvs.
30371         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30372
30373 2005-05-31  Derek Price  <derek@ximbiot.com>
30374             Paul Eggert  <eggert@cs.ucla.edu>
30375
30376         Sync from cvs.
30377         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30378
30379 2005-05-29  Derek Price  <derek@ximbiot.com>
30380
30381         * config/srclist.txt (glob_.h, glob.c): Add these files.
30382
30383 2005-05-29  Derek Price  <derek@ximbiot.com>
30384
30385         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30386         * modules/glob: New file.
30387         * modules/getlogin_r: Add link to POSIX spec in description.
30388
30389 2005-05-29  Derek Price  <derek@ximbiot.com>
30390             Paul Eggert  <eggert@cs.ucla.edu>
30391
30392         * m4/glob.m4: New file.
30393
30394 2005-05-29  Derek Price  <derek@ximbiot.com>
30395             Paul Eggert  <eggert@cs.ucla.edu>
30396
30397         * lib/glob_.h, lib/glob.c: New files.
30398
30399 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30400
30401         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30402         * modules/fts-lgpl (Depends-on): Remove gettext.
30403
30404 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30405
30406         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30407         and don't require gt_INTTYPES_PRI.
30408
30409 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30410
30411         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30412
30413         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30414         the configuration hassle isn't worth it.
30415         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30416         (LONGEST_MODIFIER, PRIuMAX): Remove.
30417
30418 2005-05-27  Bruno Haible  <bruno@clisp.org>
30419
30420         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30421
30422 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30423
30424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30425         _POSIX_PTHREAD_SEMANTICS for Solaris.
30426
30427 2005-05-25  Derek Price  <derek@ximbiot.com>
30428
30429         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30430
30431 2005-05-25  Derek Price  <derek@ximbiot.com>
30432             Paul Eggert  <eggert@cs.ucla.edu>
30433
30434         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30435         * lib/getlogin_r.c, getlogin_r.h: New files.
30436
30437 2005-05-25  Bruno Haible  <bruno@clisp.org>
30438             Derek Price  <derek@ximbiot.com>
30439
30440         * lib/getlogin_r.h: Simplify API documentation.
30441
30442 2005-05-23  Derek Price  <derek@ximbiot.com>
30443
30444         * modules/minmax (Files): Add m4/minmax.m4.
30445         (configure.ac): Add gl_MINMAX.
30446
30447 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30448
30449         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30450         so that unistd-safer.h (GPL'ed code) need not be included.
30451
30452 2005-05-22  Bruno Haible  <bruno@clisp.org>
30453
30454         * m4/minmax.m4: New file.
30455         Based on a patch by Derek Price <derek@ximbiot.com>.
30456
30457 2005-05-22  Bruno Haible  <bruno@clisp.org>
30458
30459         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30460         (INT64_MIN): Fix definition.
30461         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30462
30463         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30464         NEED_SIGNED_INT_TYPES.
30465
30466         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30467         HAVE_SYSTEM_INTTYPES.
30468
30469 2005-05-22  Bruno Haible  <bruno@clisp.org>
30470
30471         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30472         Also include <sys/param.h> if it defines MIN, MAX.
30473         Based on a patch by Derek Price <derek@ximbiot.com>.
30474
30475 2005-05-21  Jim Meyering  <jim@meyering.net>
30476
30477         * modules/fts (Files): Add m4/inttypes-pri.m4.
30478         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30479
30480 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30481
30482         New fts module.
30483         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30484         (setup_dir, free_dir): New functions.
30485         (enter_dir, leave_dir): Define trivial
30486         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30487         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30488         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30489         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30490         Move to fts-cycle.c.
30491         (fts_open): Use setup_dir.
30492         (fts_close): Use free_dir.
30493         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30494         This adds a label and some gotos, but the alternatives were messier.
30495         Check for memory allocation failure when entering a dir.
30496         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30497         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30498         (FTS): New member fts_cycle, that is a union that contains the
30499         old active_dir_ht and cycle_state.  All uses changed to mention
30500         fts_cycle.ht and fts_cycle.state.
30501         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30502         fts.c, with the following changes:
30503         (setup_dir, free_dir): New functions.
30504         (enter_dir): Now returns bool.  Return true if successful, false
30505         if memory exhausted.  All callers changed.
30506         Do not bother partly cleaning up on
30507         memory allocation failure; that is free_dir's job.
30508         However, free ad if hash_insert fails, to avoid memory leak.
30509         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30510         fts->fts_options to see which union member to use.
30511
30512 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30513
30514         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30515         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30516
30517 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30518
30519         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30520
30521 2005-05-20  Jim Meyering  <jim@meyering.net>
30522
30523         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30524         Now a macro, to pacify GCC.
30525
30526 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30527
30528         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30529         of -1.
30530
30531 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30532
30533         * lib/chown.c (rpl_chown): Return -1 on failure.
30534
30535 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30536
30537         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30538         Don't check for stddef.h.
30539         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30540         don't use its results.
30541         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30542         since we include them unconditionally.  Don't require
30543         AM_STDBOOL_H, since stdbool is a prerequisite.
30544         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30545         since we assume C89 or better.
30546         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30547         as we don't use their results.
30548         Don't check for fchdir, memmove, memset, strrchr, as we use
30549         them unconditionally.
30550         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30551         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30552
30553 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30554
30555         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30556         Include <stddef.h> unconditionally, since we assume C89 now.
30557         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30558         * lib/fts.c: Include fts_.h first, to check interface.
30559         Do not include intprops.h; no longer needed.
30560         Include cycle-check.h and hash.h, since fts_.h no longer does.
30561         Remove unnecessary casts of closedir to void.
30562         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30563         decide whether to decrement nlinks.
30564         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30565         (FTS): Use struct hash_table * instead of Hash_table, so that
30566         we no longer need to include hash.h here.
30567
30568 2005-05-18  Jim Meyering  <jim@meyering.net>
30569
30570         * modules/dirfd (License): Change to LGPL.  Most of the code
30571         is already in the public domain.
30572
30573 2005-05-18  Jim Meyering  <jim@meyering.net>
30574
30575         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30576         Reported by Yoann Vandoorselaere.
30577
30578 2005-05-17  Jim Meyering  <jim@meyering.net>
30579
30580         * m4/fts.m4: New file, from coreutils.
30581
30582 2005-05-17  Jim Meyering  <jim@meyering.net>
30583
30584         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30585
30586 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30587
30588         Sync from coreutils.
30589         * m4/unlinkdir.m4: New file.
30590
30591 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30592
30593         Sync from coreutils.
30594         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30595         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30596         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30597         White space changes only.
30598         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30599         special.
30600         * lib/yesno.c: Include getline.h, not ctype.h.
30601         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30602         Use getline to remove arbitrary restriction on response length.
30603
30604 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30605
30606         * config/srclist-update: Spell out "Street" in FSF postal
30607         mail address; this is the style the FSF seems to prefer.
30608
30609         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30610         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30611         this updates FSF postal mail address.
30612
30613         Sync from coreutils.
30614         * modules/unlinkdir: New file.
30615         * modules/yesno (Depends-on): Add getline.
30616         * MODULES.html.sh (File system functions): Add unlinkdir.
30617
30618 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30619
30620         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30621         lib/strsep.h:
30622         Change the initial comment to refer to GPL, not LGPL.
30623         gnulib-tool will change it to LGPL as needed.
30624
30625         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30626         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30627         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30628         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30629         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30630         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30631         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30632         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30633         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30634         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30635         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30636         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30637         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30638         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30639         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30640         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30641         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30642         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30643         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30644         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30645         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30646         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30647         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30648         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30649         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30650         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30651         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30652         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30653         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30654         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30655         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30656         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30657         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30658         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30659         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30660         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30661         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30662         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30663         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30664         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30665         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30666         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30667         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30668         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30669         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30670         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30671         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30672         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30673         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30674         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30675         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30676         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30677         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30678         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30679         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30680         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30681         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30682         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30683         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30684         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30685         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30686         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30687         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30688         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30689         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30690         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30691         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30692         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30693         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30694         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30695         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30696         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30697         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30698         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30699         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30700         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30701         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30702         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30703         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30704         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30705         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30706         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30707         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30708         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30709         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30710         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30711         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30712         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30713         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30714         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30715         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30716         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30717         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30718         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30719         lib/yesno.c, lib/yesno.h:
30720         Update FSF postal mail address.
30721
30722 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30723
30724         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30725         tests/test-memmem.c, tests/test-stpncpy.c:
30726         Update FSF postal mail address.
30727
30728 2005-05-13  Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30731         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30732         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30733         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30734         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30735         Add support for 64-bit integers in the MSVC compiler.
30736
30737 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30738
30739         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30740
30741 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30742
30743         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30744
30745 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30746
30747         * doc/getdate.texi (General date syntax): Don't say that date
30748         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30749         Problem reported by Nic Ferrier.
30750
30751 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30752
30753         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30754         specified in ai_socktype. Fix invalid ai_protocol
30755         check. ai_protocol is usually set to 0 or depending on
30756         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30757         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30758         ai_socktype / ai_protocol in the returned addrinfo structure.
30759
30760 2005-05-10  Simon Josefsson  <jas@extundo.com>
30761
30762         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30763         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30764
30765 2005-05-10  Karl Berry  <karl@gnu.org>
30766
30767         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30768         (from http://www.gnu.org/licenses).
30769         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30770         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30771         fdl.texi suffices.
30772
30773 2005-05-10  Karl Berry  <karl@gnu.org>
30774
30775         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30776         (COPYING.DOC): remove.
30777
30778         * config/srclist-update: new FSF address.
30779
30780 2005-05-10  Derek Price  <derek@ximbiot.com>
30781
30782         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30783         possible.
30784
30785 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30786             Bruno Haible  <bruno@clisp.org>
30787
30788         * modules/inet_ntop: New file.
30789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30790         inet_ntop.
30791
30792 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30793             Bruno Haible  <bruno@clisp.org>
30794
30795         * m4/inet_ntop.m4: New file.
30796
30797 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30798             Bruno Haible  <bruno@clisp.org>
30799
30800         * lib/inet_ntop.h: New file.
30801         * lib/inet_ntop.c: New file, from glibc with modifications.
30802
30803 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30804
30805         * modules/time_r (License): Change to LGPL.
30806         * modules/extensions (License): Change to LGPL.  Actually,
30807         the license is more permissive than that, but currently gnulib-tool
30808         doesn't know how to handle more-permissive licenses.
30809
30810         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30811         Problem reported by Dave Love.
30812
30813 2005-05-08  Jim Meyering  <jim@meyering.net>
30814
30815         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30816         blank.
30817
30818 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30819
30820         * modules/argmatch (Depends-on): Add stdbool.
30821         * modules/backupfile (Depends-on): Likewise.
30822         * modules/chdir-long (Depends-on): Likewise.
30823         * modules/closeout (Depends-on): Likewise.
30824         * modules/cycle-check (Depends-on): Likewise.
30825         * modules/dirname (Depends-on): Likewise.
30826         * modules/fnmatch (Depends-on): Likewise.
30827         * modules/fsusage (Depends-on): Likewise.
30828         * modules/fwriteerror (Depends-on): Likewise.
30829         * modules/getcwd (Depends-on): Likewise.
30830         * modules/getloadavg (Depends-on): Likewise.
30831         * modules/hard-locale (Depends-on): Likewise.
30832         * modules/makepath (Depends-on): Likewise.
30833         * modules/mountlist (Depends-on): Likewise.
30834         * modules/nanosleep (Depends-on): Likewise.
30835         * modules/posixtm (Depends-on): Likewise.
30836         * modules/quotearg (Depends-on): Likewise.
30837         * modules/readtokens (Depends-on): Likewise.
30838         * modules/readtokens0 (Depends-on): Likewise.
30839         * modules/readutmp (Depends-on): Likewise.
30840         * modules/save-cwd (Depends-on): Likewise.
30841         * modules/strftime (Depends-on): Likewise.
30842         * modules/userspec (Depends-on): Likewise.
30843         * modules/utimecmp (Depends-on): Likewise.
30844         * modules/xgetcwd (Depends-on): Likewise.
30845         * modules/xnanosleep (Depends-on): Likewise.
30846         * modules/xstrtod (Depends-on): Likewise.
30847         * modules/yesno (Depends-on): Likewise.
30848
30849 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30850
30851         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30852         needless checks.
30853
30854 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30855
30856         Merge from coreutils.  Among other things,
30857         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30858         * lib/fd-safer.c: New file.
30859         * lib/fcntl-safer.h, open-safer.c: Remove.
30860         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30861         * lib/dup-safer.c: Include unistd-safer.h first.
30862         Don't include errno.h.
30863         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30864         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30865         * lib/file-type.c: Rely on file-type.h change.
30866         * lib/getloadavg.c: Include unistd-safer.h.
30867         (getloadavg): Use safer open.
30868         * lib/getusershell.c: Include "stdio-safer.h".
30869         (getusershell): Use safer fopen.
30870         * lib/long-options.c (long_options): Use NULL rather than 0.
30871         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30872         'free'.
30873         * lib/modechange.c: Likewise.
30874         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30875         (MODE_DONE): New constant.
30876         (struct mode_change): Remove 'next' member.
30877         (make_node_op_equals): New function; like the old one of the
30878         same name, except it allocates an array.
30879         (mode_compile, mode_create_from_ref): Use it.
30880         (mode_compile): Allocate result as an array, not a linked list.
30881         Parse octal string ourself, so that we catch mistakes like "+0".
30882         (mode_adjust): Arg is an array, not a linked list.
30883         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30884         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30885         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30886         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30887         Remove.  This is now stat-macros.h's job.
30888         (talloc): Remove.  All callers replaced by xalloc, so that
30889         our invokers don't have to worry about reporting memory failures.
30890         (make_node_op_equals): Remove.
30891         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30892         New constants.
30893         (struct mode_change): Moved here from modechange.h.
30894         (mode_append_entry): Remove.
30895         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30896         apps to have incorrect behavior.  Use simpler algorithm for head
30897         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30898         Detect more invalid usages rather than having somewhat-random behavior.
30899         Don't insert an "a=" action, as that leads to incorrect behavior.
30900         (mode_compile, mode_create_from_ref): Return NULL on error instead
30901         of an enum, since now there's only one way to have an error.  All
30902         callers changed.
30903         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30904         at the correct time.  Simplify calculation of "+u" and its ilk.
30905         Don't mishandle "+X".
30906         (mode_free): Remove "register" and localize decls.
30907         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30908         (struct mode_change): Move to modechange.c; callers don't
30909         need to see this stuff.
30910         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30911         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30912         (mode_change, mode_adjust): Reflect the new signatures noted above.
30913         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30914         that might redefine system include files.
30915         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30916         (my_usleep): Use NULL rather than (void *) 0.
30917         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30918         Use siginterrupt to specify that system calls should be interrupted.
30919         (rpl_nanosleep): Move initialization of suspended closer to call of
30920         my_usleep.
30921         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30922         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30923         (desirable_utmp_entry): New function.
30924         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30925         using x2nrealloc, to simplify logic.
30926         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30927         size calculation.  Do not assume utmp file is a regular file.
30928         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30929         (READ_UTMP_CHECK_PIDS): New constant.
30930         * lib/save-cwd.c: Include unistd-safer.h.
30931         (save_cwd): Use fd_safer.
30932         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30933         [!_LIBC] Include "stat-macros.h" instead.
30934         * lib/unistd-safer.h (fd_safer): New decl.
30935
30936 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30937
30938         * modules/getloadavg (Depends-on): Add unistd-safer.
30939         * modules/getusershell (Depends-on): Add stdio-safer.
30940         * modules/lstat (Depends-on): Remove xalloc.
30941         * modules/mkstemp (Depends-on): Add stat-macros.
30942         * modules/modechange (Depends-on): Remove xstrtol.
30943         Add stat-macros, xalloc.
30944         * modules/save-cwd (Depends-on): Add unistd-safer.
30945         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30946         * modules/unistd-safer (Files): Add lib/fd-safer.c
30947         (Makefile.am): Remove lib_SOURCES.
30948
30949         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30950         Remove fcntl-safer; unistd-safer supersedes it.
30951
30952 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30953
30954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30955         AC_HEADER_STAT.
30956         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30957         (gl_PREREQ_CHOWN): Remove.
30958         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30959         it.  Don't require AC_HEADER_STAT.
30960         (gl_PREREQ_LSTAT): Remove.
30961         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30962         Don't require AC_HEADER_STAT.
30963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30964         (gl_PREREQ_RMDIR): Remove.
30965         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30966         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30967         the stat-macros module a prerequisite.
30968         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30969         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30970         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30971         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30972         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30973         variable names.
30974         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30975         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30976         variable prefixes.
30977         * m4/fcntl-safer.m4: Remove.
30978         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30979         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30980         Invoke gl_PREREQ_FD_SAFER.
30981         (gl_PREREQ_FD_SAFER): New macro.
30982         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30983         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30984         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30985         Remove duplicate call to AC_LIBOBJ(readutmp).
30986         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30987
30988         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30989         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30990
30991 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         * MODULES.html.sh (Misc): Add byteswap.
30994
30995 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30996
30997         * modules/getcwd (Depends-on): Add extensions.
30998         * modules/openat (Depends-on): Likewise.
30999
31000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31001
31002         * modules/byteswap: New file.
31003
31004 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31005
31006         * m4/byteswap.m4: New file.
31007
31008 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31009
31010         * lib/byteswap_.h: New file.
31011
31012 2005-04-25  Karl Berry  <karl@gnu.org>
31013
31014         * m4/gettext.m4: Update from GNU gettext 0.14.4.
31015
31016 2005-04-25  Albert Chin  <china@thewrittenword.com>
31017
31018         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31019         Toolkit C bug.
31020
31021 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31022
31023         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31024         (func_ln_if_changed) Remove forcibly for no error message
31025         in case file does not exist.
31026
31027 2005-04-19  Simon Josefsson  <jas@extundo.com>
31028
31029         * gnulib-tool (Options): Make --symlink mean --symbolic.
31030
31031 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31032
31033         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31034
31035 2005-04-16  Simon Josefsson  <jas@extundo.com>
31036
31037         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31038
31039 2005-04-15  Simon Josefsson  <jas@extundo.com>
31040
31041         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31042
31043 2005-04-15  Simon Josefsson  <jas@extundo.com>
31044
31045         * gnulib-tool: Rename --symlink to --symbolic.
31046
31047 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31048
31049         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31050         symbolic links to files instead of copying/moving.  Add --aux-dir,
31051         specifying directory relative --dir where auxiliary build tools
31052         are placed.
31053
31054 2005-04-14  Bruno Haible  <bruno@clisp.org>
31055
31056         * modules/allocsa (License): Change to LGPL.
31057         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31058
31059 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31060
31061         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
31062         that "UTC +1 second" continues to work.  Problem reported
31063         by Dmitry V. Levin.
31064         (relunit_snumber): New rule.
31065         (relunit): Use it.
31066
31067 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31068
31069         * lib/getdate.y (universal_time_zone_table): New constant.
31070         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
31071         universal_time_zone_table.
31072         (lookup_zone): Prefer universal_time_zone_table to
31073         local_time_zone_table, so that "GMT" time stamps are allowed in
31074         London during the summer.  Problem reported by Ian Abbott.
31075
31076 2005-04-12  Jim Meyering  <jim@meyering.net>
31077
31078         * lib/human.c (humblock): Set *options even when returning due to
31079         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31080         warning from gcc-4.
31081
31082 2005-04-09  Jim Meyering  <jim@meyering.net>
31083
31084         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31085         -Wuninitialized: initialize tm0.tm_year.
31086
31087 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31088
31089         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31090         count, since there's no maximum.  All uses changed.
31091         Add member dsts_seen.
31092         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31093         not being INT_MAX.
31094         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31095         Use pc_rels_seen to decide whther a date is absolute.
31096
31097         * lib/getdate.y (number): Don't overwrite year.
31098         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31099         check.
31100
31101 2005-04-02  Simon Josefsson  <jas@extundo.com>
31102
31103         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31104         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31105
31106 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31107
31108         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31109         where no absolute path name can be longer than PATH_MAX.
31110
31111 2005-03-27  Jim Meyering  <jim@meyering.net>
31112
31113         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31114
31115 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31116
31117         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31118         "one's complement" -> "ones' complement" in comment, as per Knuth.
31119         "value of type" -> "type or expression" in comment.
31120         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31121
31122 2005-03-26  Jim Meyering  <jim@meyering.net>
31123
31124         Comment nits.
31125         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31126         Correct typos: s/or/of/.
31127
31128 2005-03-26  Jim Meyering  <jim@meyering.net>
31129
31130         * modules/check-include-files: Move to ../ and rename to...
31131         * check-module: ...this.
31132
31133 2005-03-25  Jim Meyering  <jim@meyering.net>
31134
31135         * modules/xvasprintf (Files): Add xalloc.h.
31136
31137 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31138
31139         * modules/gettext (Files): config/config.rpath ->
31140         build-aux/config.rpath
31141         * modules/iconv (Files): Likewise.
31142         Problem reported by Oskar Liljeblad.
31143
31144 2005-03-23  Jim Meyering  <jim@meyering.net>
31145
31146         * modules/check-include-files: New script to check for
31147         missing dependencies, multiple includes, etc.
31148
31149         * modules/c-strtold (Depends-on): Add xalloc.
31150         * modules/c-strtod (Depends-on): Add xalloc.
31151         * modules/hash (Depends-on): Add xalloc.
31152         (Files): Remove lib/xalloc.h.
31153
31154         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31155         * modules/userspec (Files): Add lib/inttostr.h.
31156
31157 2005-03-23  Jim Meyering  <jim@meyering.net>
31158
31159         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31160
31161 2005-03-22  Jim Meyering  <jim@meyering.net>
31162
31163         * modules/stat-macros: New module.
31164         * modules/canonicalize, modules/euidaccess, modules/file-type,
31165         * modules/filemode, modules/lchown, modules/makepath,
31166         * modules/rmdir, modules/stat: Depend on new stat-macros module
31167         rather than listing lib/stat-macros.h manually.
31168         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31169
31170 2005-03-22  Jim Meyering  <jim@meyering.net>
31171
31172         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31173
31174 2005-03-22  Bruno Haible  <bruno@clisp.org>
31175
31176         * config/srclist.txt: Replace target directory 'config' with
31177         'build-aux'.
31178         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31179         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31180         ../build-aux/.
31181
31182 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31183
31184         * modules/chdir-long (Depends-on): Add mempcpy.
31185
31186         * modules/acl, modules/backupfile, modules/c-strtod,
31187         modules/c-strtold, modules/canon-host, modules/canonicalize,
31188         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31189         modules/exclude, modules/exitfail, modules/file-type,
31190         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31191         modules/getdate, modules/getline, modules/getpagesize,
31192         modules/getpass, modules/getugroups, modules/group-member,
31193         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31194         modules/inttostr, modules/long-options, modules/makepath,
31195         modules/md5, modules/memcasecmp, modules/memcoll,
31196         modules/modechange, modules/mountlist, modules/path-concat,
31197         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31198         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31199         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31200         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31201         modules/strftime, modules/strndup, modules/strverscmp,
31202         modules/timespec, modules/unlocked-io, modules/userspec,
31203         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31204         modules/yesno:
31205         Remove lib_SOURCES line from Makefile.am section, as this is now
31206         done automatically by the corresponding Autoconf macro.
31207
31208 2005-03-21  Jim Meyering  <jim@meyering.net>
31209
31210         Changes imported from coreutils.
31211
31212         * lib/cycle-check.c: Don't include xalloc.h.
31213
31214         * lib/path-concat.c: Don't include assert.h.
31215         (path_concat): Remove assertion that would have triggered
31216         for ABASE starting with more than one slash.
31217         Reported by Andreas Schwab.
31218
31219         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31220         properly when ABASE is an absolute file name.
31221         Correct the description of this function.
31222         Include <assert.h>.
31223         Add an assertion and a test driver.
31224         This fixes a bug introduced on 2004-07-02.
31225         Andreas Schwab reported the resulting failure of cp --parents:
31226         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31227
31228 2005-03-21  Jim Meyering  <jim@meyering.net>
31229
31230         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31232
31233 2005-03-21  Jim Meyering  <jim@meyering.net>
31234         and  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31237         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31238         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31239         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31240         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31241         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31242         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31243         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31244         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31245         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31246         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31247         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31248         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31249         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31250         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31251         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31252         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31253         for these modules.
31254
31255 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31256
31257         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31258         (which shouldn't happen), generate nothing instead of returning 0
31259         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31260
31261 2005-03-16  Bruno Haible  <bruno@clisp.org>
31262
31263         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31264         HAVE_LONGLONG_64BIT.
31265
31266 2005-03-16  Bruno Haible  <bruno@clisp.org>
31267
31268         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31269         HAVE_LONGLONG_64BIT.
31270
31271 2005-03-16  Bruno Haible  <bruno@clisp.org>
31272
31273         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31274         HAVE_LONGLONG_64BIT.
31275
31276 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31277
31278         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31279         reliably distinguish strftime failure from empty output on POSIX
31280         hosts.
31281
31282 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31283
31284         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31285         (iconv_string): Don't guess a size-zero buffer, as that might cause
31286         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31287         result would be 'too large', where 'too large' is (heuristically)
31288         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31289         overflow concerns.  This will prevent some unwanted malloc failures
31290         when the inputs are very large.
31291
31292 2005-03-15  Karl Berry  <karl@gnu.org>
31293
31294         * config/srclist.txt (config.rpath): from gettext.
31295         * config/config.rpath: update.
31296
31297 2005-03-15  Bruno Haible  <bruno@clisp.org>
31298
31299         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31300         to 'negate'.
31301
31302         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31303         variable.
31304
31305         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31306         results.
31307
31308 2005-03-14  Simon Josefsson  <jas@extundo.com>
31309
31310         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31311         <fx@gnu.org>.
31312
31313 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31314
31315         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31316         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31317         intprops.h.
31318         * lib/strtol.c: Likewise.
31319
31320 2005-03-14  Jim Meyering  <jim@meyering.net>
31321
31322         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31323         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31324         to be nonzero so that we (and caller) can detect the difference
31325         between a valid zero-length expansion and an error return, even
31326         when the underlying strftime fails before writing anything into
31327         that location.
31328
31329 2005-03-14  Bruno Haible  <bruno@clisp.org>
31330
31331         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31332         Update from GNU gettext 0.14.3.
31333
31334 2005-03-10  Jim Meyering  <jim@meyering.net>
31335
31336         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31337
31338 2005-03-10  Jim Meyering  <jim@meyering.net>
31339
31340         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31341         so that this module works on systems without fchdir.
31342
31343 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31344
31345         Factor int-properties macros into a single file, except for
31346         glibc-related files.
31347         * lib/intprops.h: New file.
31348         * lib/getloadavg.c: Include it instead of limits.h.
31349         (INT_STRLEN_BOUND): Remove.
31350         * lib/human.c: Include intprops.h.
31351         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31352         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31353         302/1000.
31354         * lib/inttostr.h: Include intprops.h instead of limits.h.
31355         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31356         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31357         for consistency with intprops.h.
31358         (time_t_is_integer, twos_complement_arithmetic): Use them.
31359         * lib/sig2str.h: Include <signal.h>, intprops.h.
31360         (INT_STRLEN_BOUND): Remove.
31361         * lib/strftime.c (TYPE_SIGNED): Remove.
31362         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31363         * lib/strtol.c: Adjust comments to match intprops.h.
31364         * lib/userspec.c: Include intprops.h.
31365         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31366         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31367         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31368         instead of rolling our own expressions.
31369         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31370
31371         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31372         instead of int.
31373         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31374         the right thing even if adding 1900 would overflow.  Similarly
31375         for tm_mon + 1 and tm_yday + 1.
31376         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31377         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31378         (DO_SIGNED_NUMBER): New macro.
31379         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31380
31381 2005-03-07  Bruno Haible  <bruno@clisp.org>
31382
31383         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31384
31385 2005-03-07  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31388
31389 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31390
31391         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31392         (func_import): Only replace files via --import when they have actually
31393         changed.
31394
31395 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31396
31397         * m4/mmap-anon.m4: New file.
31398         * m4/pagealign_alloc.m4: New file.
31399
31400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31401             Bruno Haible  <bruno@clisp.org>
31402
31403         * modules/pagealign_alloc: New file.
31404         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31405
31406 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31407             Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/pagealign_alloc.h: New file.
31410         * lib/pagealign_alloc.c: New file.
31411
31412 2005-03-03  Bruno Haible  <bruno@clisp.org>
31413
31414         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31415         Use an all-permissive copyright notice, recommended by RMS.
31416
31417 2005-03-02  Bruno Haible  <bruno@clisp.org>
31418
31419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31420         of AIX, the replacement has to be done only after <string.h> is
31421         included, therefore not in config.h. stpncpy.h does the replacement,
31422         and stpncpy.c uses it.
31423
31424 2005-03-02  Bruno Haible  <bruno@clisp.org>
31425
31426         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31427         stpncpy.c uses it.
31428
31429 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31430
31431         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31432         The workaround isn't strictly needed for POSIX conformance, and
31433         it's too much of a pain to configure and maintain.  We'll ask
31434         people to fix their kernels instead.
31435         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31436         (NANOSLEEP_BUG_WORKAROUND): Remove.
31437         (xnanosleep): Remove the workaround.
31438
31439 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31440
31441         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31442         Reported by Derek Price.
31443         (Include): Add "timespec.h".
31444
31445         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31446
31447 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31448
31449         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31450         to detect nanosleep bug.
31451
31452 2005-03-01  Bruno Haible  <bruno@clisp.org>
31453
31454         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31455
31456 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31457
31458         * modules/gethrxtime: New file.
31459         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31460         (Depends-on): Add gethrxtime.
31461         (configure.ac): Add gl_XNANOSLEEP.
31462         (Makefile.am): Remove lib_SOURCES line.
31463
31464 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31465
31466         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31467         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31468
31469 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31470
31471         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31472         * lib/timespec.h (gettime): Return void, since it always
31473         succeeds now.  All uses changed.
31474         * lib/gettime.c (gettime) Likewise.
31475         [HAVE_NANOTIME]: Prefer nanotime.
31476         Assume gettimeofday succeeds, as POSIX requires.
31477         Assime time () succeeds, since other code already does.
31478         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31479         (timespec_subtract): Remove.
31480         (NANOSLEEP_BUG_WORKAROUND): New constant.
31481         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31482         things considerably.  Use it only on GNU/Linux hosts, since the
31483         workaround shouldn't be needed elsewhere.
31484
31485 2005-02-24  Bruno Haible  <bruno@clisp.org>
31486
31487         * modules/gettext (Files): Add m4/glibc2.m4.
31488
31489 2005-02-24  Bruno Haible  <bruno@clisp.org>
31490
31491         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31492         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31493         * m4/progtest.m4:
31494         Update from GNU gettext 0.14.2.
31495         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31496
31497 2005-02-24  Bruno Haible  <bruno@clisp.org>
31498
31499         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31500         * lib/config.charset: Update from GNU gettext 0.14.2.
31501
31502 2005-02-24  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/gettext.h: Update from GNU gettext 0.14.2.
31505
31506 2005-02-23  Simon Josefsson  <jas@extundo.com>
31507
31508         * m4/iconvme.m4: New file.
31509
31510 2005-02-23  Jim Meyering  <jim@meyering.net>
31511
31512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31513         change.
31514         Thanks to Bruno Haible for catching it.
31515
31516 2005-02-22  Simon Josefsson  <jas@extundo.com>
31517
31518         * modules/iconvme: New file.
31519
31520         * MODULES.html.sh: Add iconvme.
31521
31522 2005-02-22  Simon Josefsson  <jas@extundo.com>
31523
31524         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31525
31526 2005-02-22  Simon Josefsson  <jas@extundo.com>
31527
31528         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31529
31530 2005-02-22  Jim Meyering  <jim@meyering.net>
31531
31532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31533         s/ifndef/ifdef/.
31534
31535 2005-02-20  Neil Conway  <neilc@samurai.com>
31536
31537         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31538         returned by OSX/Darwin if the specified buffer is not large
31539         enough for the hostname.
31540
31541 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31542
31543         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31544         pass it to _help, otherwise the latter coredumps trying to
31545         dereference state.root_argp.
31546
31547 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31548
31549         * modules/chdir-long (Depends-on): Add memrchr.
31550         * modules/memrchr (Files): Add lib/memrchr.h.
31551         (Include): "memrchr.h".
31552
31553 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31554
31555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31556
31557 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31558
31559         * lib/memrchr.h: New file.
31560         * lib/chdir-long.c: Include it.
31561         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31562         Don't bother including stddef.h.
31563
31564 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31565
31566         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31567         inclusion.
31568         Include <sys/types.h>, for dev_t.
31569         (ME_DUMMY, ME_REMOTE): Move from here....
31570         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31571         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31572         Dmitry V. Levin.
31573         Include mountlist.h first, to test the interface.
31574
31575 2005-01-29  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/progname.c (program_name): Initialize.
31578         Needed when linking statically on MacOS X.
31579
31580 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31581
31582         Sync from coreutils.
31583         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31584         (Depends-on): Add c-strtod.
31585         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31586
31587 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31588
31589         Sync from coreutils.
31590         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31591
31592         Remove files that are specific to coreutils.
31593         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31594
31595 2005-01-28  Bruno Haible  <bruno@clisp.org>
31596
31597         * modules/javacomp: New file.
31598         * MODULES.html.sh (Java): Add javacomp.
31599
31600 2005-01-28  Bruno Haible  <bruno@clisp.org>
31601
31602         * m4/javacomp.m4: New file, from GNU gettext.
31603
31604 2005-01-28  Bruno Haible  <bruno@clisp.org>
31605
31606         * lib/javacomp.sh.in: New file, from GNU gettext.
31607         * lib/javacomp.h: New file, from GNU gettext.
31608         * lib/javacomp.c: New file, from GNU gettext.
31609
31610 2005-01-26  Simon Josefsson  <jas@extundo.com>
31611
31612         * lib/gai_strerror.c: Use GPL in header.
31613
31614 2005-01-26  Bruno Haible  <bruno@clisp.org>
31615
31616         * modules/javaexec: New file.
31617         * MODULES.html.sh (Java): Add javaexec.
31618
31619 2005-01-26  Bruno Haible  <bruno@clisp.org>
31620
31621         * m4/javaexec.m4: New file, from GNU gettext.
31622
31623 2005-01-26  Bruno Haible  <bruno@clisp.org>
31624
31625         * lib/javaexec.sh.in: New file, from GNU gettext.
31626         * lib/javaexec.h: New file, from GNU gettext.
31627         * lib/javaexec.c: New file, from GNU gettext.
31628
31629 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31630
31631         * modules/lchown (Depends-on): Remove lchown.h
31632
31633 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31634
31635         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31636         must be defined if the header file was not found, in order
31637         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31638
31639 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31640
31641         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31642         initializers for struct pentry_state.
31643         (__argp_error): Check return value of __asprintf
31644         (__argp_failure): Translate error message
31645
31646         * lib/argp-parse.c: Removed braces around the expansion of N_()
31647
31648 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31649
31650         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31651         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31652         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31653         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31654         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31655         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31656         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31657         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31658         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31659         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31660         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31661         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31662         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31663         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31664         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31665         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31666         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31667         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31668         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31669         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31670         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31671         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31672         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31673         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31674         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31675         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31676         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31677         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31678         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31679         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31680         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31681         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31682         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31683         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31684         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31685         Use an all-permissive copyright notice, recommended by RMS.
31686
31687 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31688
31689         * modules/chdir-long (Depends-on): Remove mempcpy.
31690
31691 2005-01-21  Jim Meyering  <jim@meyering.net>
31692
31693         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31694         same value as for Solaris 9.
31695
31696         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31697         component length.  This included changing the parameter to be
31698         of type `char *' rather than `char const *'.
31699         * lib/chdir-long.h (chdir_long): Update prototype.
31700
31701         * lib/openat.c (fdopendir, fstatat): New functions.
31702         * lib/openat.h: Include headers required for use of DIR and struct
31703         stat.
31704         [AT_SYMLINK_NOFOLLOW]: Define.
31705         (fdopendir, fstatat): Add prototypes.
31706
31707 2005-01-21  Bruno Haible  <bruno@clisp.org>
31708
31709         * modules/classpath: New file.
31710         * MODULES.html.sh (Java): Add classpath.
31711
31712 2005-01-21  Bruno Haible  <bruno@clisp.org>
31713
31714         * lib/classpath.h: New file, from GNU gettext.
31715         * lib/classpath.c: New file, from GNU gettext.
31716
31717 2005-01-20  Simon Josefsson  <jas@extundo.com>
31718
31719         * modules/version-etc-fsf: New file.
31720
31721 2005-01-20  Simon Josefsson  <jas@extundo.com>
31722
31723         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31724         * lib/version-etc.c: Remove version_etc_copyright.
31725         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31726         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31727
31728 2005-01-20  Simon Josefsson  <jas@extundo.com>
31729
31730         * lib/base64.h (isbase64): Add.
31731
31732         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31733         using a unsigned prototype, don't inline.
31734         (base64_decode): Use it.
31735
31736 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31739         it.
31740
31741 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31742
31743         * lib/save-cwd.c (save_cwd): Remove code to support the case
31744         where fchdir is missing or flaky.
31745
31746 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31747
31748         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31749
31750 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31751
31752         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31753         AC_LIBSOURCES now does this.
31754         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31755         with new ullong_max module.
31756
31757 2005-01-19  Bruno Haible  <bruno@clisp.org>
31758
31759         * modules/sh-quote: New file.
31760         * MODULES.html.sh (Executing programs): Add sh-quote.
31761
31762 2005-01-19  Bruno Haible  <bruno@clisp.org>
31763
31764         * lib/sh-quote.h: New file, from GNU gettext.
31765         * lib/sh-quote.c: New file, from GNU gettext.
31766
31767 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31768
31769         Merge from coreutils.
31770         * m4/ullong_max.m4: New file.
31771         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31772         (gl_MACROS): Assume localeconv exists.
31773
31774 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31775
31776         Merge changes from coreutils, as described below in several
31777         changelogs dated today.
31778
31779         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31780         (O_DIRECTORY): Remove; not needed here, since "." must be
31781         a directory.  All uses removed.
31782         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31783         universal on Suns, and we also need to test for IRIX.
31784         Revamp code to use 'if' rather than '#if'.
31785         Avoid unnecessary comparison of cwd->desc to 0.
31786
31787         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31788         for known valid error numbers rather than observed invalid ones.
31789
31790 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31791
31792         * modules/ullong_max: New file.
31793
31794         * modules/chdir-long, modules/openat: New files.
31795         * modules/save-cwd (Depends-on): Depend on chdir-long.
31796         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31797
31798 2005-01-18  Jim Meyering  <jim@meyering.net>
31799
31800         Merge from coreutils.
31801         * m4/chdir-long.m4, m4/openat.m4: New files.
31802         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31803         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31804         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31805         is sane and DOES follow symlinks.  Besides, testing 20 different
31806         systems found no broken chown implementations.
31807         Prompted by a change in rsync's copy of this macro.
31808         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31809
31810         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31811
31812         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31813         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31814         NULL-means-set-to-current-time semantics.
31815         Remove temporary file immediately, rather than waiting
31816         for configure's at-exit trap code to do it.
31817
31818 2005-01-18  Jim Meyering  <jim@meyering.net>
31819
31820         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31821
31822         * lib/utimens.c (futimens): Account for the fact that futimes
31823         can also fail with errno == ENOSYS or errno == ENOENT.
31824         Patch from Dmitry V. Levin.
31825
31826         Change the name of the robust chdir function from chdir to chdir_long.
31827         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31828         (restore_cwd): Use chdir_long, not chdir.
31829         * lib/chdir-long.c: Renamed from chdir.c.
31830         * lib/chdir-long.h: Renamed from chdir.h.
31831         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31832         Hurd.
31833
31834 2005-01-18  Bruno Haible  <bruno@clisp.org>
31835
31836         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31837         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31838         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31839         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31840         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31841         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31842         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31843         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31844         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31845         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31846         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31847         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31848         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31849         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31850         Use an all-permissive copyright notice, recommended by RMS.
31851
31852 2005-01-18  Bob Proulx  <bob@proulx.com>
31853
31854         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31855         simplify offsetof() macro construct to avoid compile failure with
31856         native HP-UX 11.0 ANSI C compiler.
31857
31858 2005-01-17  Bruno Haible  <bruno@clisp.org>
31859
31860         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31861         redundant because stpncpy.m4 takes care of it.
31862
31863 2005-01-17  Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31866
31867 2005-01-17  Bruno Haible  <bruno@clisp.org>
31868
31869         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31870         used.
31871
31872 2005-01-17  Bruno Haible  <bruno@clisp.org>
31873
31874         * lib/fwriteerror.h (fwriteerror): Change specification to include
31875         fclose.
31876         * lib/fwriteerror.c: Include <stdbool.h>.
31877         (fwriteerror): At the end, close the file stream. Record whether
31878         stdout was already closed.
31879
31880 2005-01-17  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/execute.c (environ): Declare if needed.
31883         * lib/pipe.c (environ): Likewise.
31884         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31885
31886 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31887
31888         * modules/argp: Depend on vsnprintf
31889
31890 2005-01-10  Jim Meyering  <jim@meyering.net>
31891
31892         * modules/closeout (Depends-on): Add atexit.
31893
31894 2005-01-06  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31897
31898 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31899
31900         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31901         definitions to be after all include files, to avoid collisions.
31902         Problem reported by Bob Proulx.
31903
31904 2005-01-04  Jim Meyering  <jim@meyering.net>
31905
31906         Changes imported from coreutils.
31907         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31908         as the mkstemp template, use a temporary directory and an
31909         8.3-friendly template to avoid trouble on systems like DJGPP.
31910         Reported by Juan M. Guerrero via Stepan Kasal.
31911         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31912         close. Remove the temporary directory right away, rather than waiting
31913         for configure's at-exit trap code to do it.
31914         Suggestion from Stepan Kasal.
31915
31916 2005-01-01  Simon Josefsson  <jas@extundo.com>
31917
31918         * gnulib-tool: Print #include directives when --import'ing.
31919
31920 2004-12-28  Simon Josefsson  <jas@extundo.com>
31921
31922         * tests/test-base64.c: Include required header files.  Remove
31923         unused variables.
31924
31925 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31926
31927         * modules/error (Depends-on): Remove gettext.
31928
31929 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31930
31931         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31932         not needed.  This removes a dependency on the gettext module.
31933         [defined _LIBC]: Do not include <libintl.h>; not needed.
31934
31935 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31936
31937         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31938         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31939
31940 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31941
31942         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31943         HAVE_DECL_STRTOLD.
31944
31945 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31946
31947         * modules/getdate (Depends-on): Remove alloca-opt.
31948
31949 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31950
31951         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31952
31953 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31954
31955         * lib/argp-parse.c: Include <stddef.h>.
31956         (alignof, alignto): New macros.
31957         (parser_init): Don't assume that void * is aligned sufficiently
31958         for struct option.
31959
31960         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31961         need to extend the stack.
31962         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31963         large.
31964
31965 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31966
31967         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31968
31969 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31970
31971         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31972         (2004-10-24) change.  Apparently this was a false alarm.
31973
31974         * modules/getdate: Depend on alloca-opt, not alloca.
31975
31976 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31977
31978         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31979         Remove now-obsolete comment about AIX.
31980         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31981         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31982         (YYMAXDEPTH): New macro.
31983
31984 2004-12-18  Simon Josefsson  <jas@extundo.com>
31985
31986         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31987
31988 2004-12-18  Bruno Haible  <bruno@clisp.org>
31989
31990         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31991
31992 2004-12-18  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/fatal-signal.c (fatal_signals): Make non-const.
31995         (init_fatal_signals): New function.
31996         (uninstall_handlers, install_handlers): Ignore signals that were set to
31997         SIG_IGN.
31998         (at_fatal_signal): Call init_fatal_signals.
31999         (init_fatal_signal_set): Likewise. Ignore signals that were set to
32000         SIG_IGN.
32001         Reported by Paul Eggert.
32002
32003 2004-12-18  Bruno Haible  <bruno@clisp.org>
32004
32005         * doc/alloca.texi: New file.
32006         * doc/alloca-opt.texi: New file.
32007
32008 2004-12-17  Jim Meyering  <jim@meyering.net>
32009
32010         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32011         Otherwise, install-sh could exit with improper exit status when
32012         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
32013
32014 2004-12-16  Simon Josefsson  <jas@extundo.com>
32015
32016         * tests/test-base64.c: Add license.
32017
32018 2004-12-15  Stepan Kasal  <address@hidden>
32019
32020         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32021
32022 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32023
32024         * modules/getcwd (Files): Add m4/d-ino.m4.
32025         Suggested by Mark D. Baushke.
32026
32027 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32028
32029         * lib/getdate.y (textint): New member "negative".
32030         (time_zone_hhmm): New function.
32031         Expect 14 shift-reduce conflicts, not 13.
32032         (o_colon_minutes): New rule.
32033         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32034         (yylex): Set the "negative" member of signed numbers.
32035
32036 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32037
32038         * doc/getdate.texi (Time of day items, Time zone items):
32039         Describe new formats +00:00, UTC+00:00.
32040
32041 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32042
32043         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32044         spurious "-l"s.  Problem reported by Stepan Kasal.
32045
32046 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32047
32048         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32049         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32050
32051 2004-12-04  Simon Josefsson  <jas@extundo.com>
32052
32053         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
32054         Vandoorselaere <yoann@prelude-ids.org>.
32055
32056 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         Changes imported from coreutils.
32059         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
32060         exist.
32061         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
32062
32063 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32064
32065         Changes imported from coreutils.
32066         * lib/hard-locale.c: Assume <locale.h> exists.
32067         Include "strdup.h".
32068         (GLIBC_VERSION): New macro.
32069         (hard_locale): Assume setlocale exists.
32070         Rewrite to avoid #ifdef.
32071         Use strdup rather than malloc + strcpy.
32072         * lib/human.c: Assume <locale.h> exists.
32073         (human_readable): Assume localeconv exists.
32074
32075 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32076
32077         * modules/hard-locale (Depends-on): Add strdup.
32078
32079 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32080
32081         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32082         convert T2, not T.  (Imported from libc.)
32083
32084 2004-11-30  Simon Josefsson  <jas@extundo.com>
32085
32086         * modules/restrict (License): Change to LGPL.
32087
32088 2004-11-30  Simon Josefsson  <jas@extundo.com>
32089
32090         * m4/restrict.m4: Add copyright and copying conditions.
32091
32092 2004-11-30  Simon Josefsson  <jas@extundo.com>
32093
32094         * m4/base64.m4: New file.
32095
32096 2004-11-30  Simon Josefsson  <jas@extundo.com>
32097
32098         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32099         base64.
32100
32101         * tests/test-base64.c: New file.
32102
32103         * modules/base64: New file.
32104
32105 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32106
32107         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32108         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32109
32110         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32111
32112 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32113
32114         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32115         (__getcwd.c): Don't restore errno; glibc doesn't.
32116         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32117         first, falling back to our code only if its results look suspicious.
32118         Ensure that the resulting buffer is only as large as necessary.
32119
32120         * lib/readutmp.c: Include readutmp.h first.
32121         Include <errno.h>, since readutmp.h no longer does that.
32122         * lib/readutmp.h: Don't include <errno.h>,
32123         <sys/param.h>, <time.h>; not needed to establish interface.
32124         (errno): Remove decl.
32125         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32126         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32127         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32128
32129 2004-11-28  Simon Josefsson  <jas@extundo.com>
32130
32131         * lib/base64.h, base64.c: New file.
32132
32133 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32134
32135         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32136
32137 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32140         (Depends-on): Remove pathmax, same.  Add mempcpy.
32141         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32142         (Makefile.am): Append getcwd.h to lib_SOURCES.
32143         (Include): Add getcwd.h.
32144         (Maintainer): Change from Jim Meyering to "all, glibc",
32145         since getdate now uses intended-for-glibc code.
32146         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32147         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32148
32149 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32150
32151         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32152         HP's ANSI C compiler.
32153         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32154         Declaring int functions causes warnings on some modern systems and
32155         shouldn't be needed to compile on ancient ones.
32156         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32157         defined.
32158
32159         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32160         with the following changes.
32161         (__set_errno): Parenthesize properly.
32162         Include <stdbool.h>.
32163         (MIN, MAX, MATCHING_INO): New macros.
32164         (__getcwd): Define with prototype, not K&R form.
32165         Use heuristics to allocate default buffer on stack if possible.
32166         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32167         behavior, and to avoid the PATH_MAX limit when computing
32168         ../../../../...
32169         Use MATCHING_INO to compare inode number to file.
32170         Check for arithmetic overflow in size calculations.
32171         Fix bug in reallocation of dot array that caused getcwd to fail
32172         on directories nested deeper than 75.
32173         Be more careful about saving errno on error.
32174         Do not use realloc; use only free+malloc, as this is a bit
32175         more flexible and avoids a needless copy operation.
32176         Do not inspect st_dev and st_ino for symbolic links; POSIX
32177         doesn't specify the latter.
32178         Check for closedir errors.
32179         Avoid needless casts.
32180         Use "#ifdef weak_alias" around weak_alias, to be like other
32181         glibc code.
32182         The following changes to getcwd.c have effect only when used in
32183         gnulib; they have no effect inside glibc proper.
32184         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32185         as alloca isn't used.
32186         (alloca, __alloca): Likewise.
32187         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32188         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32189         unconditionally, as gnulib assumes C89 or better.
32190         Do not include <sys/param.h>.
32191         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32192         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32193         better.
32194         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32195         Include <dirent.h> in a way that is compatible with modern Autoconf.
32196         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32197         New macros, if not already defined.
32198         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32199         Use "_LIBC", not "defined _LIBC", for consistency.
32200         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32201         a mempcpy module.
32202         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32203         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32204         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32205         credit only to Jim Meyering and adjust the copyright dates.
32206         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32207         <stdlib.h>, <unistd.h>, "pathmax.h".
32208         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32209         (INITIAL_BUFFER_SIZE): Remove.
32210         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32211
32212 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32213
32214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32215         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32216         Use the _ONCE methods, for efficiency.
32217         Check for fcntl.h.  In test program, include <errno.h>
32218         and <fcntl.h> if available.  Remove old K&R cruft from
32219         test program.  Check for common errors in GNU/Linux,
32220         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32221         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32222         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32223         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32224         name accordingly.
32225         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32226         accommodate new getcwd.c.
32227         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32228         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32229         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32230         that's all we need now.
32231
32232 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32233
32234         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32235         argp-parse.c depends on getopt internals, that means we should
32236         always use our getopt, to be on the safe side.
32237         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32238         order not to spoil the result of an eventual previous invocation
32239         of gl_GETOPT_SUBSTITUTE.
32240
32241 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32242
32243         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32244         redefinition warnings. To avoid them, include the defines
32245         in `#if !defined __need_getopt ... #endif'. The only place
32246         where __getopt_argv_const is used is in definitions
32247         of getopt_long and getopt_long_only below, which are as well
32248         protected by `#ifndef __need_getopt'.
32249         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32250         __need_getopt after including <stdio.h> and <unistd.h> These
32251         headers might have defined it.
32252
32253 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32254
32255         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32256
32257 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32258
32259         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32260         (futimens): New function, which uses futimes if available.
32261         (futimens, utimens): Support timespec==NULL, with same semantics
32262         as utime and utimens.
32263         * lib/utimens.h (futimens): New decl.
32264
32265 2004-11-23  Jim Meyering  <jim@meyering.net>
32266
32267         * lib/getopt_.h: Remove trailing blanks.
32268
32269 2004-11-23  Jim Meyering  <jim@meyering.net>
32270
32271         * lib/__fpending.c: Add comment.
32272
32273 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * modules/canonicalize (Depends-on): Add xreadlink.
32276         Problem reported by James Youngman.
32277
32278 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32279
32280         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32281         New macros.
32282         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32283         optopt): Use them instead of invoking ## directly; otherwise, the
32284         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32285
32286 2004-11-19  Bruno Haible  <bruno@clisp.org>
32287
32288         * lib/strtok_r.c: Move comments from here...
32289         * lib/strtok_r.h: ... to here.
32290
32291 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32292
32293         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32294         implementations that mishandle size_t overflow.
32295
32296 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32297
32298         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32299         might fail.  Problem reported by Yoann Vandoorselaere.
32300         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32301         implementations that mishandle size_t overflow.
32302
32303 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32304
32305         * modules/canon-host (Depends-on): Add strdup.
32306
32307 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32308
32309         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32310
32311 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32312
32313         * lib/canon-host.c: Include "strdup.h".
32314         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32315         Use strdup instead of malloc/strcpy to duplicate strings.
32316
32317         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32318         (human_space_before_unit): New constant.
32319         * lib/human.c (human_readable): Support it.
32320
32321         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32322         (xgetcwd): Set errno correctly when failing.
32323         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32324         the failure is actually due to a PATH_MAX problem.
32325
32326         Further getopt changes to make it more likely that glibc will
32327         buy the changes back.
32328         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32329         (getopt): Use it, so to preserve glibc semantic
32330         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32331         when compiling for libc.
32332         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32333         (getopt_long, getopt_long_only): Use it.
32334
32335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32336         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32337         (getopt): Argv is now char * const *, as per standard.
32338         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32339         not char *__getopt_argv_const *.
32340         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32341         _getopt_long_only_r): Likewise.
32342         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32343         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32344         _getopt_long_r, _getopt_long_only_r): Likewise.
32345         * lib/getopt_.h (__getopt_argv_const): Remove.
32346         (getopt): Argv is now char * const *, as per standard.
32347
32348         * lib/getdate.y (tORDINAL): New token.
32349         (day, relunit): Allow it for relative times.
32350         (relative_time_table): Use tORDINAL for ordinals.
32351
32352 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32353
32354         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32355         Document that "second" isn't allowed as an ordinal number.
32356
32357 2004-11-16  Jim Meyering  <jim@meyering.net>
32358
32359         * modules/closeout (Depends-on): Add fpending.
32360
32361 2004-11-15  Jim Meyering  <jim@meyering.net>
32362
32363         * lib/closeout.c: Include "__fpending.h" once again.
32364         Include <stdbool.h>.
32365         (close_stdout): Don't fail just because stdout was closed initially,
32366         since some programs don't write to stdout in the normal course of
32367         operation (other than --version and --help), and we don't want this
32368         function to make e.g. `touch file >&-' fail.
32369         But do fail if it was closed and someone has tried to write to it.
32370         E.g., `printf foo >&-' must fail.
32371
32372 2004-11-13  Jim Meyering  <jim@meyering.net>
32373
32374         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32375
32376 2004-11-12  Simon Josefsson  <jas@extundo.com>
32377
32378         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32379         small doc fix is still pending.
32380
32381 2004-11-11  Simon Josefsson  <jas@extundo.com>
32382
32383         * modules/strtok_r: New file.
32384
32385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32386         strtok_r.
32387
32388 2004-11-11  Simon Josefsson  <jas@extundo.com>
32389
32390         * m4/strtok_r.m4: New file.
32391
32392         * m4/getopt.m4: Replace opterr.
32393
32394 2004-11-11  Simon Josefsson  <jas@extundo.com>
32395
32396         * lib/strtok_r.h, strtok_r.c: New file.
32397
32398 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32399
32400         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32401         of replacing opterr, getopt, etc.  This should handle the
32402         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32403
32404 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32405
32406         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32407         we can stop lying to compilers about the constness of argv when we
32408         are compiled outside glibc.
32409         (getopt, getopt_long, getopt_long_only): Use it.
32410         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32411         _getopt_internal, getopt): Likewise.
32412         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32413         _getopt_long_only_r): Likewise.
32414         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32415         _getopt_long_r, _getopt_long_only_r): Likewise.
32416
32417         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32418         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32419         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32420         the other external symbols.
32421         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32422         declaration, since the above renaming now works around collisions.
32423
32424 2004-11-11  Jim Meyering  <jim@meyering.net>
32425
32426         * lib/linebreak.c: Remove trailing blanks.
32427         * lib/alloca_.h: Likewise.
32428         * lib/acosl.c: Likewise.
32429         * lib/euidaccess.c: Likewise.
32430         * lib/allocsa.h: Likewise.
32431
32432 2004-11-10  Simon Josefsson  <jas@extundo.com>
32433
32434         * m4/getaddrinfo.m4: New file.
32435
32436 2004-11-10  Simon Josefsson  <jas@extundo.com>
32437
32438         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32439
32440 2004-11-10  Simon Josefsson  <jas@extundo.com>
32441
32442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32443         getaddrinfo.
32444
32445         * modules/getaddrinfo: New file.
32446
32447 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32448
32449         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32450
32451 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         * lib/mktime.c (SHR): New macro, which is a portable
32454         substitute for >> that should work even on Crays.
32455         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32456         Problem reported by Mark D. Baushke in
32457         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32458         * lib/getdate.y (SHR): Likewise.
32459         (tm_diff): Use it.
32460         * lib/strftime.c (SHR): Likewise.
32461         (tm_diff): Use it.
32462         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32463         quote_these_too, so that right shifts are well defined.  All uses
32464         changed.
32465
32466 2004-11-10  Jim Meyering  <jim@meyering.net>
32467
32468         Ensure that no close failure goes unreported.
32469         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32470         return early when it seems there's nothing to flush.
32471         Don't include __fpending.h.
32472
32473 2004-11-10  Jim Meyering  <jim@meyering.net>
32474
32475         * modules/closeout (Depends-on): Remove fpending.
32476
32477 2004-11-10  Jim Meyering  <jim@meyering.net>
32478
32479         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32480
32481 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32482
32483         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32484         gl_FUNC_STRFTIME.
32485         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32486         and AC_REQUIRE when possible, to avoid duplicate checks.
32487         Check for <wchar.h>.
32488
32489 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32490
32491         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32492
32493 2004-11-09  Bruno Haible  <bruno@clisp.org>
32494
32495         * m4/sockpfaf.m4: New file.
32496
32497 2004-11-05  Bruno Haible  <bruno@clisp.org>
32498
32499         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32500         Reported by Mark D. Baushke <mdb@cvshome.org>.
32501
32502 2004-11-04  Bruno Haible  <bruno@clisp.org>
32503
32504         2004-09-11  Bruno Haible  <bruno@clisp.org>
32505                 * allocsa.valgrind: New file.
32506         2004-02-06  Bruno Haible  <bruno@clisp.org>
32507                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32508                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32509                 Reported by Christopher Seip <chris.seip@hp.com>.
32510
32511 2004-11-04  Bruno Haible  <bruno@clisp.org>
32512
32513         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32514         (Makefile.am): Distribute it.
32515
32516 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32517
32518         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32519         with errno == ERANGE if the buffer is too small.
32520         Problem reported by Mark D. Baushke.
32521
32522 2004-11-03  Albert Chin  <china@thewrittenword.com>
32523             Paul Eggert  <eggert@cs.ucla.edu>
32524
32525         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32526         equivalent, substitute $ac_type for equivalent type rather than
32527         blindly using uint32_t *always* which won't work if uint32_t is not
32528         available.  Define _UINT32_T to work around typedef of uint32_t if
32529         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32530         2.5.1.
32531
32532 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32533
32534         * m4/jm-macros.m4: Sync from coreutils.
32535         (gl_MACROS): Check for mbrlen, for pathchk.
32536         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32537
32538 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/xreadlink.c (MAXSIZE): New macro.
32541         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32542         size does not exceed MAXSIZE.  Avoid cast.
32543         As suggested by Mark D. Baushke in
32544         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32545         if readlink fails with buffer size just under MAXSIZE, try again
32546         with MAXSIZE.
32547
32548 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32549
32550         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32551
32552 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32553         and  Paul Eggert  <eggert@cs.ucla.edu>
32554
32555         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32556         (get_date): Overparenthesize to avoid GCC warning.
32557
32558 2004-11-02  Bruno Haible  <bruno@clisp.org>
32559
32560         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32561         returns void.
32562
32563 2004-11-02  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32566         function returns void.
32567
32568 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32571         fflush_unlocked, flockfile, funlockfile, funlockfile,
32572         fputs_unlocked, putc_unlocked.
32573
32574 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32575
32576         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32577         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32578         already declared.
32579
32580 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32581
32582         * modules/getdate (Files): Add doc/getdate.texi.
32583         (Depends-on): Add setenv, xalloc.
32584
32585 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32586
32587         * lib/getdate.y: Add support for TZ="foo" within a date string.
32588         Fix some bugs near time_t boundaries.  Reject dates with
32589         out-of-range components, e.g., "Sept 31".
32590         Include <stdlib.h>, "setenv.h", "xalloc.h".
32591         (ISDIGIT_LOCALE): Remove; unused.
32592         Note that the TZ and time functions used here are not reentrant.
32593         (mktime_ok, get_tz): New functions.
32594         (TZBUFSIZE): New constant.
32595         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32596         This requires that we sometimes generate our own TZ="XXX..." setting.
32597
32598 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32599
32600         * doc/getdate.texi: New file, from coreutils with modifications for
32601         the new TZ parsing.
32602
32603 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32604
32605         * lib/mktime.c (not_equal_tm): Remove redundant check.
32606
32607 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32608
32609         * modules/regex (lib_SOURCES): Add regex.c.
32610         Reported by James Youngman in
32611         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32612
32613 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32614
32615         * lib/getdate.y: Use Bison 1.875 features, and some minor
32616         code cleanups.  This change does not affect semantics.
32617         Don't include <stdlib.h>; no longer needed.
32618         Don't include unlocked-io.h; only the "#if TEST" code uses
32619         stdio, and performance isn't crucial there.
32620         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32621         Bison 1.875 features as described below.
32622         All uses of "PC." replaced by "pc->".
32623         (YYSTYPE): Add a forward declaration.
32624         (yylex, yyerror): Use full prototypes in forward decls.
32625         Use "%pure-parser" rather than obsolescent "%pure_parser".
32626         Use %parse-param and %lex-param instead of obsolescent
32627         YYPARSE_PARAM and YYLEX_PARAM.
32628         (meridian_table, month_and_day_table, time_units_table,
32629         relative_time_table, time_zone_table, military_table,
32630         lookup_zone, lookup_word, get_date):
32631         Use NULL instead of 0 where appropriate.
32632         (to_hour): Avoid abort (), to avoid a dependency on
32633         stdlib.h.
32634         (yyerror, yylex): Now accepts parser_control * arg.
32635         (main) [TEST]: Use '\0' rather than 0 for char.
32636
32637 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32638
32639         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32640
32641 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32642
32643         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32644         It's now the caller's responsibility to handle the case where
32645         !HAVE_GETPAGESIZE && !defined getpagesize.
32646
32647         * lib/mktime.c (leapyear): Arg is long int, not int.
32648
32649 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32650
32651         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32652
32653 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32654
32655         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32656         missing.  Problem reported by James Youngman.
32657
32658 2004-10-16  Simon Josefsson  <jas@extundo.com>
32659
32660         * gnulib-tool: Fix comments.  Fix parse problem.
32661         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32662
32663 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32664
32665         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32666         implementation of getopt_long.  Problem reported by Alexander Taler in:
32667         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32668
32669 2004-10-15  Bruno Haible  <bruno@clisp.org>
32670
32671         * gnulib-tool: Untabify. Initialize supplied_libname.
32672         (func_usage): More homogenous output.
32673         (func_modules_transitive_closure, func_modules_to_filelist,
32674         func_emit_lib_Makefile_am): New functions.
32675         (func_import): New function, extracted from big case statement. Use
32676         func_get_license, func_modules_transitive_closure,
32677         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32678         opt_lgpl. Don't use test -a, as it's not portable.
32679         (func_create_testdir): Use func_modules_transitive_closure,
32680         func_modules_to_filelist, func_emit_lib_Makefile_am.
32681
32682 2004-10-15  Bruno Haible  <bruno@clisp.org>
32683
32684         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32685
32686 2004-10-15  Bruno Haible  <bruno@clisp.org>
32687
32688         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32689         the portions belonging to each module.
32690         Suggested by Derek Robert Price <derek@ximbiot.com>.
32691
32692 2004-10-12  Simon Josefsson  <jas@extundo.com>
32693
32694         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32695         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32696         to real functions.
32697
32698 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32699
32700         * modules/vsnprintf: New file.
32701
32702 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32703
32704         * m4/vsnprintf.m4: New file.
32705
32706 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32707
32708         * lib/vsnprintf.h: New file.
32709         * lib/vsnprintf.c: New file.
32710
32711 2004-10-11  Bruno Haible  <bruno@clisp.org>
32712
32713         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32714         vsnprintf.
32715
32716 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32717
32718         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32719
32720 2004-10-07  Bruno Haible  <bruno@clisp.org>
32721
32722         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32723         fits into the provided buffer.
32724
32725 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32726
32727         * lib/diacrit.c, diacrit.h: Add GPL notice.
32728
32729         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32730         notice.
32731         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32732         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32733         This avoids a potential constant-folding bug.
32734
32735 2004-10-05  Bruno Haible  <bruno@clisp.org>
32736
32737         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32738         for the declaration of strsep.
32739
32740 2004-10-05  Bruno Haible  <bruno@clisp.org>
32741
32742         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32743
32744 2004-10-04  Simon Josefsson  <jas@extundo.com>
32745
32746         * modules/memmem: New file.
32747         * tests/test-memmem.c: New file.
32748         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32749
32750 2004-10-04  Simon Josefsson  <jas@extundo.com>
32751
32752         * m4/memmem.m4: New file.
32753
32754 2004-10-04  Simon Josefsson  <jas@extundo.com>
32755
32756         * lib/memmem.h: New file.
32757         * lib/memmem.c: New file, taken from glibc.
32758
32759 2004-10-04  Simon Josefsson  <jas@extundo.com>
32760
32761         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32762         '#ifdef USE_UNLOCKED_IO'.
32763
32764 2004-10-04  Simon Josefsson  <jas@extundo.com>
32765
32766         * config/srclist.txt: Add memmem from glibc.
32767
32768 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32769
32770         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32771
32772         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32773         modules/exclude, modules/getdate, modules/getline,
32774         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32775         modules/getusershell, modules/linebuffer, modules/md5,
32776         modules/mountlist, modules/posixtm, modules/readtokens,
32777         modules/readutmp, modules/regex, modules/sha1,
32778         modules/version-etc, modules/yesno:
32779         Remove dependency on unlocked-io.
32780
32781 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32782
32783         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32784
32785         * m4/unlocked-io.m4: Add copyright notice.
32786         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32787
32788 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32789
32790         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32791         * lib/xmalloc.c (xmemdup): Likewise.
32792         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32793         XFREE): Remove these long-obsolescent macros.
32794         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32795         * lib/xstrdup.c: Remove.
32796
32797         * lib/regex.c (re_comp): Cast gettext return value to char *,
32798         Problem reported by Martin Neitzel via Mark D. Baushke.
32799
32800 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32801
32802         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32803         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32804         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32805         regex.c, sha1.c, version-etc.c, yesno.c:
32806         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32807         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32808         the includer's responsibility.
32809
32810         Sync from coreutils.
32811
32812         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32813         points to the start of a string, as the C Standard says the
32814         resulting behavior is undefined.
32815
32816         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32817         simple -> simple_backups, numbered_existing ->
32818         numbered_existing_backups, numbered -> numbered_backups
32819         to avoid shadowing problems.  All uses changed.
32820         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32821         * lib/backupfile.c (check_extension, numbered_backup):
32822         Rename locals to avoid shadowing 'basename'.
32823         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32824         once.
32825
32826         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32827         * lib/.cvsignore: Add getopt.h.
32828
32829 2004-10-04  Bruno Haible  <bruno@clisp.org>
32830
32831         * modules/README: New file.
32832         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32833         not a module.
32834
32835 2004-10-02  Jim Meyering  <jim@meyering.net>
32836
32837         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32838
32839 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32840
32841         * modules/strsep: New file.
32842
32843 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32844
32845         * m4/strsep.m4: New file.
32846
32847 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32848
32849         * lib/strsep.h: New file.
32850         * lib/strsep.c: New file.
32851
32852 2004-10-01  Simon Josefsson  <jas@extundo.com>
32853
32854         * lib/snprintf.c (snprintf): Handle size==0.
32855
32856 2004-10-01  Simon Josefsson  <jas@extundo.com>
32857             Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32860         (snprintf): Declare 'args'.
32861
32862 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         * lib/snprintf.c: Remove comments as to why each header is needed.
32865
32866 2004-10-01  Bruno Haible  <bruno@clisp.org>
32867
32868         * MODULES.html.sh: Add strsep.
32869
32870 2004-09-30  Simon Josefsson  <jas@extundo.com>
32871
32872         * modules/snprintf: New file.
32873
32874 2004-09-30  Simon Josefsson  <jas@extundo.com>
32875
32876         * m4/snprintf.m4: New file.
32877
32878 2004-09-30  Simon Josefsson  <jas@extundo.com>
32879
32880         * lib/snprintf.h, lib/snprintf.c: New files.
32881
32882 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32883
32884         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32885         (hol_entry_help): Never translate an empty string.
32886         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32887         * lib/argp.h (OPTION_NO_TRANS): New option.
32888
32889 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32890
32891         * modules/argp (Maintainer): Replace Simon Josefsson
32892         by Sergey Poznyakoff.
32893
32894 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32895
32896         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32897         changes merged back into glibc.
32898
32899 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32902
32903 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32904
32905         * lib/xvasprintf.c: Include xalloc.h.
32906         (xvasprintf): Use xalloc_die, not xmalloc_die.
32907
32908 2004-09-29  Bruno Haible  <bruno@clisp.org>
32909
32910         * modules/alloca-opt: New file, derived from modules/alloca.
32911         * modules/allocsa: Depend on alloca-opt instead of alloca.
32912         * modules/setenv: Likewise.
32913         * modules/vasnprintf: Likewise.
32914         * MODULES.html.sh: Add alloca-opt.
32915
32916 2004-09-28  Simon Josefsson  <jas@extundo.com>
32917
32918         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32919         LGPL, and to replace license template from GPL to LGPL.
32920
32921 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32922
32923         * modules/dummy: Change license to LGPL.
32924
32925 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32926
32927         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32928
32929 2004-09-24  Simon Josefsson  <jas@extundo.com>
32930
32931         * modules/minmax (License): Change from GPL to LGPL.
32932
32933 2004-09-23  Simon Josefsson  <jas@extundo.com>
32934
32935         * gnulib-tool (--import): Typo.
32936
32937 2004-09-23  Simon Josefsson  <jas@extundo.com>
32938
32939         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32940
32941 2004-09-22  Bruno Haible  <bruno@clisp.org>
32942
32943         * modules/*: Add 'License' field.
32944         * gnulib-tool: Accept --extract-license option.
32945         (func_get_license): New function.
32946
32947 2004-09-21  Bruno Haible  <bruno@clisp.org>
32948
32949         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32950         Reported by Simon Josefsson.
32951
32952 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32953
32954         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32955         gl_AC_TYPE_LONG_LONG.
32956
32957 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32958
32959         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32960
32961 2004-09-18  Simon Josefsson  <jas@extundo.com>
32962         and  Paul Eggert  <eggert@cs.ucla.edu>
32963
32964         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32965         calls with autoreconf.  Define GL_LIB.
32966
32967 2004-09-14  Karl Berry  <karl@gnu.org>
32968
32969         * config/srclist.txt: unsync setenv.c, sigh.
32970
32971 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32972
32973         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32974         Problem reported by Bruno Haible in:
32975         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32976
32977 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32978
32979         * config/srclist.txt: Comment out argp-pvh.c.
32980
32981 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32982
32983         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32984         in case some system header has #define'd it.  Problem reported by
32985         Soeren D. Schulze in
32986         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32987
32988 2004-09-09  Karl Berry  <karl@gnu.org>
32989
32990         * regex.[ch]: delete from the root.  These were supposed to be
32991                 synced with emacs cvs, but this has not happened for about
32992                 a year, and anyway nothing else uses emacs regex.[ch].
32993                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32994                 lib/regex[.ch] is untouched.
32995
32996 2004-09-09  Bruno Haible  <bruno@clisp.org>
32997
32998         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32999
33000 2004-09-09  Bruno Haible  <bruno@clisp.org>
33001
33002         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33003         modifications.
33004         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33005
33006 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33007
33008         * modules/xvasprintf: New file.
33009         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33010
33011 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33012
33013         * lib/xvasprintf.h: New file.
33014         * lib/xvasprintf.c: New file.
33015         * lib/xasprintf.c: New file.
33016
33017 2004-09-08  Bruno Haible  <bruno@clisp.org>
33018
33019         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33020
33021 2004-09-08  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33024         length is > INT_MAX.
33025         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33026         more.
33027
33028 2004-09-08  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/stdint_.h: New file, taken from GNU clisp.
33031
33032 2004-09-08  Bruno Haible  <bruno@clisp.org>
33033             Oskar Liljeblad  <oskar@osk.mine.nu>
33034
33035         * modules/stdint: New file.
33036         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33037
33038 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33039
33040         Import from coreutils.
33041         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33042         strings on unbounded length.  alloca's performance benefits aren't
33043         that important here.
33044         (V_STRDUP): Remove.
33045         (parse_with_separator): New function, with most of the internals
33046         of the old parse_user_spec.  Allow user to omit both user and group,
33047         for compatibility with FreeBSD.
33048         Clone only the user name, not the entire spec.
33049         Do not set *uid, *gid unless entirely successful.
33050         Avoid memory leak in some failing cases.
33051         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33052         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
33053         (parse_user_spec): Rewrite to use parse_with_separator.
33054
33055 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33056
33057         * modules/userspec: Don't depend on alloca.
33058
33059 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33060
33061         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
33062
33063 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33064
33065         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
33066         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
33067         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
33068
33069 2004-08-16  Simon Josefsson  <jas@extundo.com>
33070
33071         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
33072         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
33073         Add --dry-run for --import.
33074         Let user provided command line parameters override configure.ac
33075         settings.
33076
33077 2004-08-12  Simon Josefsson  <jas@extundo.com>
33078
33079         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33080         as discussed with Paul Eggert in threads rooted at
33081         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33082         and
33083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33084         Before, the test was empty, and relied on ELIDE_CODE in source
33085         code.)
33086         (gl_PREREQ_GETOPT): New macro.
33087         (gl_GETOPT): Use them.
33088
33089 2004-08-12  Simon Josefsson  <jas@extundo.com>
33090
33091         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33092         * lib/getopt_.h: Renamed from getopt.h.
33093
33094 2004-08-12  Simon Josefsson  <jas@extundo.com>
33095
33096         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33097         Change default library name from libfoo to libgnu.
33098         Now, if you have a configure.ac that says:
33099                 gl_SOURCE_BASE(gl)
33100                 gl_M4_BASE(gl/m4)
33101                 gl_MODULES(error getopt etcetera)
33102                 gl_INIT
33103         you can import all you need by running:
33104                 ../gnulib/gnulib-tool --import
33105
33106         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33107         (Makefile.am): Rewrite, use logic from argz.
33108         (Include): Use <getopt.h> instead of "getopt.h".
33109
33110 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33111
33112         * modules/argp (Files): Add m4/unlocked-io.m4.
33113         (Depends-on): Add extensions.
33114
33115 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33118         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33119         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33120         Check for program_invocation_name, program_invocation_short_name,
33121         flockfile, funlockfile, features.h, _getopt_long_only_r.
33122
33123 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33124
33125         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33126         its complicated substitute.
33127         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33128         and program_invocation_name.
33129         (__argp_basename) [!_LIBC]: Remove; the only use was
33130         replaced by its body.
33131         (__argp_short_program_name): Change condition from
33132         !defined __argp_short_program_name to
33133         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33134         to match argp-namefrob.h.
33135         (__argp_failure): Don't assume strerror_r returns char *.
33136         * lib/argp-parse.c (N_): Define unconditionally.
33137         (argp_default_options): Fill out initializers with 0 to avoid
33138         gcc warnings.
33139
33140 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33141
33142         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33143         getopt1.c.
33144
33145 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33146
33147         Merge from coreutils.
33148
33149         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33150
33151         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33152         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33153
33154 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33155
33156         Merge from coreutils.
33157
33158         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33159         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33160         for Reliant Unix 5.43.
33161
33162         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33163         (union fooround): Use uintmax_t, not long int.
33164         The rest is a merge from libc:
33165         [defined _LIBC]: Include <shlib-compat.h>.
33166         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33167
33168         * lib/settime.c (settime): Recode to avoid warning with
33169         Sun Forte C 6U2.
33170
33171         * lib/strverscmp.c: Convert to UTF-8.
33172
33173 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33174
33175         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33176         m4/uintmax_t.m4.
33177
33178 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33179
33180         * modules/xalloc-die: New file.
33181         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33182
33183         * modules/md5 (Files): Add m4/uint32_t.m4.
33184         * modules/sha1: Renamed from modules/sha.
33185         (Files):
33186         Rename lib/sha.h to lib/sha1.h.
33187         Rename lib/sha.c to lib/sha1.c.
33188         Rename m4/sha.m4 to m4/sha1.m4.
33189         (lib_SOURCES): Likewise.
33190         (configure.ac): Rename gl_SHA to gl_SHA1.
33191         (Include): sha.h -> sha1.h.
33192
33193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33194
33195         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33196         * m4/sha1.m4: Renamed from sha.m4.
33197         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33198
33199 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33200
33201         * lib/obstack.h (obstack_empty_p):
33202         Don't assume that chunk->contents is suitably aligned.
33203         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33204         Likewise. Problem reported by Benno in
33205         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33206
33207         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33208         readable.  This could be improved further but it'd take some work.
33209
33210 2004-08-08  Simon Josefsson  <jas@extundo.com>
33211
33212         * modules/xgethostname (Depends-on): Remove exit and error (not
33213         used).
33214
33215         * modules/getpass-gnu: Add getpass.h.
33216         (Depends-on): Add stdbool.
33217         * modules/getpass: Add getpass.h.
33218
33219 2004-08-08  Simon Josefsson  <jas@extundo.com>
33220
33221         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33222         Check getpass declaration.
33223
33224 2004-08-08  Simon Josefsson  <jas@extundo.com>
33225
33226         * lib/xgethostname.c: Don't include error.h (not used).
33227
33228         * lib/getpass.h: Add.
33229         * lib/getpass.c: Include getpass.h first.
33230
33231 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33232
33233         * lib/xalloc-die.c: New file.
33234         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33235         All uses removed.
33236         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33237         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33238         xalloc-die.c.
33239         (_, N_, xalloc_die): Move to xalloc-die.c.
33240         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33241         so that we needn't mess with xalloc_msg_memory_exhausted.
33242
33243         * lib/sha1.h: Renamed from sha.h.
33244         (SHA1_H): Renamed from _SHA_H.
33245         (sha1_ctx): Renamed from sha_ctx.
33246         (sha1_init_ctx): Renamed from sha_init_ctx.
33247         (sha1_process_block): Renamed from sha_process_block.
33248         (sha1_process_bytes): Renamed from sha_process_bytes.
33249         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33250         (sha1_read_ctx): Renamed from sha_read_ctx.
33251         (sha1_stream): Renamed from sha_stream.
33252         (sha1_buffer): Renamed from sha_buffer.
33253         * lib/sha1.c: Likewise; renamed from sha.c.
33254         Do not include <sys/types.h>.
33255         Include <stddef.h> rather than <stdlib.h>.
33256
33257 2004-08-08  Bruno Haible  <bruno@clisp.org>
33258
33259         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33260         FILESYSTEM_PREFIX_LEN.
33261         * lib/progreloc.c: Likewise.
33262         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33263
33264 2004-08-06  Simon Josefsson  <jas@extundo.com>
33265
33266         * modules/progname (Depends-on): Don't depend on stdbool.
33267
33268 2004-08-06  Simon Josefsson  <jas@extundo.com>
33269
33270         * modules/getsubopt: New file.
33271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33272         getsubopt.
33273
33274 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33275
33276         More merge from coreutils.
33277
33278         * m4/utimens.m4, m4/utimecmp.m4: New files.
33279         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33280         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33281         prereq.m4, sha.m4: Import changes from coreutils.
33282
33283 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33284
33285         More merge from coreutils.
33286         * modules/raise, modules/readtokens0, modules/utimens:
33287         * modules/utimecmp, module/xnanosleep: New files.
33288         * modules/strftime: Add lib/strftime.h.
33289         Change include from <time.h> to "strftime.h".
33290         * modules/yesno: Add lib/yesno.h.
33291         * modules/backupfile: Remove lib/addext.c.
33292         * modules/euidaccess: Add stat-macros.h.
33293         * modules/canonicalize, modules/euidaccess,
33294         modules/filemode, modules/lchown, modules/makepath,
33295         modules/rmdir, modules/stat: Likewise.
33296
33297 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33298
33299         Merge from tar.
33300         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33301         SIZE_MAX is a valid preprocessor constant.
33302         (__argp_basename): Change from "#ifndef _LIBC"
33303         to "#ifndef __argp_short_program_name", so that
33304         we don't compile these functions for tar.
33305
33306         More merges from coreutils.
33307         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33308         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33309         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33310         * lib/addext.c: Remove; no longer needed.
33311         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33312         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33313         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33314         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33315         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33316         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33317         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33318         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33319         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33320         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33321         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33322         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33323         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33324         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33325         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33326         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33327         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33328         Import changes from coreutils.
33329
33330 2004-08-05  Simon Josefsson  <jas@extundo.com>
33331
33332         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33333
33334 2004-08-05  Simon Josefsson  <jas@extundo.com>
33335
33336         * m4/getsubopt.m4: New file.
33337
33338 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33339
33340         Merge from coreutils.
33341
33342         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33343         * m4/getcwd-path-max.m4: New files.
33344
33345         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33346         FILESYSTEM_PREFIX_LEN ->
33347         FILE_SYSTEM_PREFIX_LEN.
33348         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33349         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33350         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33351         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33352
33353         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33354         prerequisite modules now handle the DOS stuff.
33355         Don't check for unistd.h.
33356
33357 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33358
33359         Merge from coreutils.
33360
33361         * lib/.gdb-history: Remove; this doesn't belong here.
33362
33363         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33364         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33365         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33366         * lib/getcwd.c: New files.
33367
33368         * lib/dirname.h: Include <stdbool.h>.
33369         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33370         for consistency with POSIX terminology.  All uses changed.
33371         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33372         (strip_trailing_slashes): Use bool for booleans.
33373         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33374
33375         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33376         sometimes returns a positive errno value even when it succeeds.
33377         (print_errno_message) [!LIBC]: Fall back on strerror if
33378         __strerror_r fails.
33379
33380         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33381         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33382         (longest_relative_suffix): New function.
33383         (path_concat): Use it.  Assume first argument is not NULL.
33384         Port to DOS.  Omit redundant separators.
33385         Report an error instead of returning NULL.
33386         Use mempcpy instead of memcpy.
33387         (xpath_concat): Remove: not declared or used.
33388
33389         * lib/same.h: Include <stdbool.h>
33390         (same_name): Return bool, not int.
33391         * lib/same.c (same_name): Likewise.
33392         (errno): Don't declare; we assume C89 or better now.
33393
33394         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33395         if not already defined.
33396
33397         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33398         * lib/dup-safer.c (errno): Likewise.
33399
33400 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33401
33402         Merge from coreutils.
33403         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33404         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33405         * modules/path-concat: Don't depend on strdup.
33406
33407 2004-08-03  Simon Josefsson  <jas@extundo.com>
33408
33409         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33410         * lib/progname.h: Don't include stdbool.h.
33411
33412 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33413
33414         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33415         * MODULES.html.sh (func_all_modules): Remove fatal.
33416
33417 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33418
33419         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33420
33421 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33422
33423         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33424         working.
33425
33426 2004-08-02  Simon Josefsson  <jas@extundo.com>
33427
33428         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33429         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33430         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33431
33432 2004-08-01  Simon Josefsson  <jas@extundo.com>
33433
33434         * lib/xgetdomainname.c: Include stdlib.h, for free().
33435
33436 2004-07-19  Bruno Haible  <bruno@clisp.org>
33437
33438         * MODULES.html.sh (func_all_modules): Add dummy.
33439
33440 2004-07-16  Simon Josefsson  <jas@extundo.com>
33441
33442         * modules/dummy: New file.
33443
33444 2004-07-16  Simon Josefsson  <jas@extundo.com>
33445
33446         * lib/dummy.c: New file.
33447
33448 2004-07-16  Bruno Haible  <bruno@clisp.org>
33449
33450         * lib/backupfile.h: Add extern "C" for C++.
33451         * lib/closeout.h: Likewise.
33452         * lib/copy-file.h: Likewise.
33453         * lib/findprog.h: Likewise.
33454         * lib/full-write.h: Likewise.
33455         * lib/pathname.h: Likewise.
33456         * lib/progname.h: Likewise.
33457         * lib/stpcpy.h: Likewise.
33458         * lib/stpncpy.h: Likewise.
33459         * lib/strcase.h: Likewise.
33460         * lib/strstr.h: Likewise.
33461         * lib/xalloc.h: Likewise.
33462
33463         * lib/mbswidth.h: Add extern "C" for C++.
33464         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33465
33466 2004-07-13  Robert Millan  <robertmh@gnu.org>
33467
33468         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33469
33470 2004-07-09  Simon Josefsson  <jas@extundo.com>
33471
33472         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33473         failed without this.)
33474
33475 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33476
33477         * modules/chown (Files): Add lib/fchown-stub.c, since
33478         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33479
33480 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33481
33482         * lib/fchown-stub.c: New file.
33483
33484 2004-06-24  Jim Meyering  <jim@meyering.net>
33485
33486         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33487
33488 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33489
33490         * modules/argz: Omit "#include".
33491
33492         * MODULES.html.sh (func_all_modules): Add calloc, to match
33493         2004-06-01 addition of calloc module.
33494
33495 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33496
33497         * m4/argz.m4: New file, which is autoupdated from libtool.
33498
33499 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33500
33501         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33502         libtool.
33503
33504 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33505
33506         * config/srclist-update: Don't insist on "USA." before the
33507         close-comment, as libtool omits the period and puts the */ on a
33508         separate line.
33509         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33510         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33511
33512 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33513
33514         * modules/argz: New file.
33515         * MODULES.html.sh (func_all_modules): Add argz.
33516
33517 2004-06-12  Jim Meyering  <jim@meyering.net>
33518         and  Paul Eggert  <eggert@cs.ucla.edu>
33519
33520         * modules/hash (Files): Add lib/xalloc.h.
33521         * modules/pipe (Depends-on): Add wait-process.
33522         * modules/stat (Depends-on): Add xalloc.
33523         * modules/userspec (Files): Add lib/userspec.h.
33524         * modules/xstrto
33525
33526         Upgrade from gettext-0.13.
33527         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33528         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33529         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33530
33531 2004-06-10  Jim Meyering  <jim@meyering.net>
33532
33533         * lib/calloc.c: New file.
33534
33535 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33536
33537         * lib/getdate.y (yylex): Allow space between sign and number.
33538         Problem reported by Dan Jacobson.
33539
33540 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33541
33542         Merge from coreutils CVS.
33543
33544         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33545         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33546         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33547         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33548         xstrtol.m4: Fix copyright date and/or serial number.
33549
33550         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33551         See if we need an fchown replacement.
33552         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33553         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33554         and use the replacement function if we detect either defect.
33555
33556         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33557         gl_UTIMECMP.
33558
33559 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33560         and  Jim Meyering  <jim@meyering.net>
33561
33562         Merge from coreutils CVS.
33563
33564         * lib/stat-macros.h: New file, with contents from file-type.h
33565         and coreutils' system.h.
33566         * lib/file-type.c: Include "stat-macros.h".
33567         * lib/file-type.h (file_type): Move all macro definitions to new file,
33568         stat-macros.h.
33569
33570         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33571         Wrap old code with this conditional.
33572         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33573         function that does not dereference symlinks.
33574         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33575
33576         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33577         dependency problems.
33578         (xreadlink): Accept new arg SIZE, for efficiency.
33579         All decls and uses changed.
33580         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33581
33582         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33583         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33584
33585         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33586         sysexits.h.
33587
33588 2004-06-01  Jim Meyering  <jim@meyering.net>
33589
33590         * m4/calloc.m4: New file.
33591
33592 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33593
33594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33595         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33596         Also, fix a typo in a diagnostic.
33597
33598 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33599
33600         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33601         or AC_FUNC_REALLOC.
33602
33603 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33604
33605         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33606         macros to be defined.
33607         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33608         the allocator returns NULL because the requested size is zero.
33609
33610 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33611
33612         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33613         var.  Add comment explaining why libc still defines it.  This
33614         merges the following patch from glibc:
33615         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33616
33617 2004-05-20  Andreas Schwab  <schwab@suse.de>
33618
33619         * m4/free.m4: Replace free if it not known to work, not the other
33620         way round.
33621
33622 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33623
33624         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33625         present in glibc since revision 1.1 of this file.
33626         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33627         obstack_alignment_mask, obstack_alloc, obstack_base,
33628         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33629         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33630         obstack_grow0, obstack_init, obstack_int_grow,
33631         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33632         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33633         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33634         nonexistent functions.
33635
33636 2004-05-18  Karl Berry  <karl@gnu.org>
33637
33638         * config/srclist.txt: break link for vasnprintf.c.
33639
33640 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33641
33642         Port obstack to the AS/400, where pointers are 16 bytes wide and
33643         you cannot cast an integer to a valid pointer.  This patch is
33644         currently waiting to be integrated into glibc; see
33645         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33646
33647         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33648         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33649         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33650         (struct obstack): temp member is now a union of a pointer and
33651         an integer, instead of an integer.  All integer uses changed.
33652         This does not affect the physical layout of struct obstack,
33653         except on hosts (like the AS/400) where the size or alignment of
33654         void * is greater than that of ptrdiff_t.
33655         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33656         __STDC__)]: Store temporary in pointer member of union, not
33657         integer member.
33658         * lib/obstack.c: Include <stddef.h>, for offsetof.
33659         (struct fooalign): Remove; it doesn't need a name.
33660         (union fooround): Change double to long double, and add void *.
33661         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33662         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33663         not a macro.  Hence the values are always int; so remove all
33664         casts-to-int in uses.
33665
33666 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33667
33668         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33669         we can get this patch merged into glibc.
33670
33671 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33672             Paul Eggert  <eggert@cs.ucla.edu>
33673
33674         * m4/argp: Depend on alloca.
33675
33676 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33677             Paul Eggert  <eggert@cs.ucla.edu>
33678
33679         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33680         freecoding.
33681
33682 2004-05-17  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33685         precision that consists of a '.' followed by an empty digit string.
33686         Patch by Tor Lillqvist <tml@iki.fi>.
33687
33688 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33689
33690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33691         for backward compatibility with older code.  We need our own
33692         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33693         it under some other name, and our alloca.h will define it.
33694
33695 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33696             Derek Price  <derek@ximbiot.com>
33697
33698         * lib/alloca.c: Include <alloca.h>, to get our interface.
33699         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33700         include <alloca.h> first.  Use C89 prototype for alloca; this
33701         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33702         Use #elif for simplicity, since we can assume C89 now.
33703         Don't try to source the system alloca.h since it will not be found
33704         and to prevent recursively including its replacement.
33705         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33706         * lib/regex.c: Likewise.
33707
33708 2004-05-16  Derek Price  <derek@ximbiot.com>
33709             Paul Eggert  <eggert@cs.ucla.edu>
33710
33711         getline cleanup.  This changes the getndelim2 API: both order of
33712         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33713         no delimiter).
33714
33715         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33716         interface does that.
33717         (getline): Always use getdelim, so that we don't have two
33718         copies of this code.
33719         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33720         if available.
33721         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33722         (GETNDELIM2_MAXIMUM): New macro.
33723         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33724         instead of the old practice of delim2==0.  All callers changed.
33725         Return -1 on overflow, instead of returning junk.
33726         Do not set *linesize unless allocation succeeds.
33727         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33728         that we include sys/types.h.
33729         * lib/getnline.h: Likewise.
33730         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33731         (getndelim2): Reorder arguments.
33732         * lib/getnline.c (getnline, getndelim):
33733         Don't discard the NMAX argument.
33734         (getnline): Invoke getndelim, to avoid code duplication.
33735         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33736         of (size_t) -1 by callers of the getnline family.
33737
33738 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33739
33740         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33741         Check for gettimeofday.
33742         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33743         Check for settimeofday, stime.
33744
33745 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33746
33747         * lib/nanosleep.c (suspended): Change its type from int to
33748         sig_atomic_t volatile.
33749         (first_call): Make it private to rpl_nanosleep, and have it
33750         be zero initially as that's a bit faster.
33751         (my_usleep): Round up fractional times instead of truncating them,
33752         as this is the usual meaning for 'sleep'.
33753
33754         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33755         doesn't work.
33756         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33757         (ENOSYS): Define if not defined.
33758         (settime): Fall back on stime if it exists and settimeofday fails.
33759         But don't bother with fallbacks if a method fails with errno == EPERM.
33760
33761 2004-05-11  Jim Meyering  <jim@meyering.net>
33762
33763         Prior to this change, the save_cwd caller required read access to the
33764         current directory on most systems (ones with the fchdir function).
33765
33766         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33767         fails, try write-only, and finally, resort to using xgetcwd.
33768
33769 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33770
33771         * lib/obstack.c, obstack.h: Import changes from libc.
33772
33773 2004-04-28  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33776         also implicitly appends .exe to executables.
33777         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33778         accepts Windows pathnames.
33779         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33780         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33781         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33782         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33783         Reported by Derek Robert Price <derek@ximbiot.com>.
33784
33785 2004-04-21  Karl Berry  <karl@gnu.org>
33786
33787         * config/srclist.txt (localcharset.c): break sync.
33788
33789 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33790
33791         * m4/host-os.m4: Add a copyright notice.
33792
33793 2004-04-20  Jim Meyering  <jim@meyering.net>
33794
33795         Change UTILS_ to gl_ in AC_DEFINE'd names.
33796         Change utils_- and jm_-prefixed variables, too.
33797         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33798         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33800
33801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33802         Don't emit trailing blanks.
33803         Also rename jm_-prefixed variables to have gl_ prefix.
33804
33805         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33806         Also rename jm_-prefixed variables to have gl_ prefix.
33807
33808         * m4/jm-macros.m4: Reflect the renamings.
33809         * m4/prereq.m4: Likewise.
33810
33811 2004-04-20  Jim Meyering  <jim@meyering.net>
33812
33813         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33814         memory.
33815
33816 2004-04-20  Jim Meyering  <jim@meyering.net>
33817             Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33820         memory when realloc fails.
33821
33822 2004-04-19  Jim Meyering  <jim@meyering.net>
33823
33824         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33825         now that readutmp.c may call `free (0)'.
33826
33827 2004-04-19  Bruno Haible  <bruno@clisp.org>
33828
33829         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33830         * m4/inttypes_h.m4: Likewise.
33831         * m4/stdint_h.m4: Likewise.
33832         * m4/intmax_t.m4: Likewise.
33833         * m4/uintmax_t.m4: Likewise.
33834
33835 2004-04-18  Jim Meyering  <jim@meyering.net>
33836
33837         * m4/prereq.m4: Don't forbid jm_ prefix.
33838
33839         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33840         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33841         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33842         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33843         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33844         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33845         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33846         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33847         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33848         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33849         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33850         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33851         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33852         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33853         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33854         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33855         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33856         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33857         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33858
33859 2004-04-18  Jim Meyering  <jim@meyering.net>
33860
33861         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33862         failure, don't leak memory and do call END_UTMP_ENT.
33863
33864 2004-04-16  Jim Meyering  <jim@meyering.net>
33865
33866         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33867         coreutils' stat program.
33868         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33869
33870 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33871
33872         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33873         C89.
33874         (CHAR_BIT): Remove, since we assume C89.
33875         Include <stdint.h> if available, as per current Autoconf CVS advice.
33876
33877 2004-03-31  Jim Meyering  <jim@meyering.net>
33878
33879         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33880         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33881         * m4/xalloc.m4: Likewise.
33882
33883 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33884
33885         Merge from coreutils.
33886
33887         * m4/inttostr.m4: New file.
33888         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33889         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33890         Require gl_CLOCK_TIME.
33891         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33892
33893 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33894
33895         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33896         not bool, to be more consistent with Unix conventions.
33897         Suggested by Bruno Haible.
33898
33899         Merge from coreutils.
33900
33901         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33902         * lib/umaxtostr.c: New files.
33903
33904         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33905         the usual <time.h> dance.
33906         (get_date): Change signature to support fractional time stamps.
33907         All callers changed.
33908         * lib/getdate.y: Include "getdate.h" first, as we can now
33909         assume C89 and don't need to worry about 'const'.
33910         Similarly, include "unlocked-io.h" near start, not in middle.
33911         Include <limits.h>.
33912         (textint.value): Use long int rather than int.
33913         (textint.digits): Use size_t rather than int.
33914         (BILLION, LOG10_BILLION): New constants.
33915         (parser_control): New member rel_ns.  Members day_ordinal,
33916         time_zone, month, day, hour, minutes, rel_year, rel_month,
33917         rel_day, rel_hour, rel_minutes, rel_seconds
33918         are now long int, not int.  Member seconds is now struct timespec,
33919         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33920         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33921         not int.
33922         (%union.intval): Now long int, not int.
33923         New member timespec.
33924         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33925         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33926         (spec): Now is a timespec or an item list.
33927         (timespec, items): New nonterminals.
33928         (time, rel, relunit, number, get_date):
33929         Add support for fractional seconds.
33930         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33931         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33932         (to_hour): First arg is now long int, not int.
33933         (to_year): Returns long int, not int.
33934         Don't treat year -70 like 70.
33935         (tm_diff): Returns long int, not int.
33936         (lookup_word): Use bool instead of int when appropriate.
33937         (yylex): Use size_t for count, not int.
33938         Detect overflow when parsing large integer constants.
33939         Add support for fractions.
33940         (get_date): Make pointers 'const' if possible.
33941         Use more-portable code to detect integer overflow.
33942         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33943         Don't use ctime; it's not reliable if the year has >4 digits.
33944
33945         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33946         This is for compatibility with BSD.
33947
33948         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33949         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33950         From coreutils' system.h.
33951
33952         * lib/userspec.c: Don't include "posixver.h".
33953         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33954         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33955         compatible extension.  Simplify code by removing a boolean int
33956         that was always nonzero if a string was nonnull.
33957
33958 2004-03-30  Jim Meyering  <jim@meyering.net>
33959
33960         Merge from coreutils.
33961
33962         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33963         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33964         on some systems one must include <grp.h> before it.
33965         Reported by Christian Krackowizer.
33966
33967 2004-03-30  Jim Meyering  <jim@meyering.net>
33968
33969         Merge from coreutils.
33970
33971         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33972
33973         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33974         an empty input stream.
33975
33976         * lib/readtokens.c: Include <stdbool.h>.
33977         (readtoken): Use `size_t' rather than int/long.
33978         All callers adjusted.
33979         Use `bool' rather than `int' where appropriate.
33980         Use memset rather than an explicit loop.
33981         Use x2nrealloc rather than xrealloc.
33982         Allow the use of `\0' as a delimiter.
33983         (readtokens): Likewise.
33984         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33985
33986 2004-03-30  Jim Meyering  <jim@meyering.net>
33987
33988         * m4/realloc.m4: Remove file, since now it does no more than
33989         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33990         the `configure.ac' section of module/realloc.
33991         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33992
33993 2004-03-30  Bruno Haible  <bruno@clisp.org>
33994
33995         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33996         nonnull.
33997
33998 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33999
34000         Merge changes to getloadavg.c from coreutils and Emacs.
34001
34002         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34003         Define to an expression, not to the empty string.
34004         Include cloexec.h and xalloc.h.
34005         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34006         Use set_cloexec_flag rather than rolling our own.
34007         * lib/cloexec.c, lib/cloexec.h: New files.
34008
34009 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34010
34011         * m4/cloexec.m4: New file.
34012
34013 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34014
34015         * lib/getopt.h: Sync with libc CVS.
34016
34017 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34018             Bruno Haible  <bruno@clisp.org>
34019
34020         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34021         mbswidth.
34022
34023 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34024             Bruno Haible  <bruno@clisp.org>
34025
34026         * lib/mbswidth.h: Include <wchar.h> only if
34027         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34028         <wchar.h>.
34029         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34030
34031 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34032
34033         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34034         Sync with libc CVS.
34035         * lib/getopt_int.h: New file, also synced from libc.
34036
34037 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34038
34039         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34040         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34041         Bring back getopt.c, getopt.h, getopt1.c.
34042
34043 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34044
34045         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34046         All uses changed.  Check for sa_sigaction member; this fixes
34047         a bug first reported by Jason Andrade in
34048         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34049
34050 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34051
34052         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
34053         '#if' expressions.  Unlike the code it replaces, it does not
34054         depend on (defined _SC_PAGESIZE).  However, it does depend on
34055         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
34056         first reported by Jason Andrade in
34057         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34058
34059 2004-02-25  Simon Josefsson  <jas@extundo.com>
34060
34061         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
34062
34063 2004-02-25  Simon Josefsson  <jas@extundo.com>
34064
34065         * lib/strdup.h: New file.
34066         * lib/strdup.c: Include it.
34067         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
34068         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
34069
34070 2004-02-23  Karl Berry  <karl@gnu.org>
34071
34072         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
34073         (from fencepost.gnu.org:/gd/gnuorg).
34074
34075 2004-02-23  Karl Berry  <karl@gnu.org>
34076
34077         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34078         * config/srclist.txt: add maintain/standards documents.
34079
34080 2004-02-18  Bruno Haible  <bruno@clisp.org>
34081
34082         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34083         Reported by Derek Robert Price <derek@ximbiot.com>.
34084
34085 2004-02-16  Karl Berry  <karl@gnu.org>
34086
34087         * config/mkinstalldirs, install-sh: update from automake.
34088
34089 2004-02-06  Karl Berry  <karl@gnu.org>
34090
34091         * m4/po.m4: update from gettext 0.14.1.
34092
34093 2004-02-06  Karl Berry  <karl@gnu.org>
34094
34095         * lib/config.charset: update from gettext 0.14.1.
34096
34097 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34098
34099         Add comments and code, prompted by suggestions from Bruno Haible
34100         for sh-quote.
34101         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34102         describing the enum quoting_style values.
34103         * lib/quotearg.c (quotearg_alloc): New function.
34104         (quotearg_buffer_restyled): Treat lone { and } as special.
34105         Treat = as special.  Work around bug with older shells
34106         that "see" a '\' that is really the 2nd byte of a multibyte char.
34107         Quote empty string with shell_quoting_style.
34108
34109 2004-02-03  Bruno Haible  <bruno@clisp.org>
34110
34111         * m4/pipe.m4: New file, from GNU gettext.
34112
34113 2004-02-03  Bruno Haible  <bruno@clisp.org>
34114
34115         * lib/pipe.h: New file, from GNU gettext.
34116         * lib/pipe.c: New file, from GNU gettext.
34117
34118 2004-01-27  Bruno Haible  <bruno@clisp.org>
34119
34120         * m4/execute.m4: New file, from GNU gettext.
34121
34122 2004-01-27  Bruno Haible  <bruno@clisp.org>
34123
34124         * lib/execute.h: New file, from GNU gettext.
34125         * lib/execute.c: New file, from GNU gettext.
34126         * lib/w32spawn.h: New file, from GNU gettext.
34127
34128 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34129
34130         Merge from diffutils.
34131
34132         * lib/file-type.c (file_type): Add typed memory objects.
34133         * lib/file-type.h (S_TYPEISTMO): New macro.
34134
34135         * lib/c-stack.h (c_stack_action): Remove argv argument.
34136         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34137         (die): Don't calculate message unless segv_action returns.
34138         (get_stack_location, min_address_from_argv, max_address_from_argv,
34139         volatile stack_base, volatile_stack_size): Remove.
34140         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34141         that every segmentation violation is a stack overflow.  (Ouch!)
34142         See Debian bug 136249 (still outstanding) for more info about why
34143         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34144
34145 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34146
34147         Exit-status fix from coreutils.
34148
34149         Use exit_failure consistently in place of EXIT_FAILURE,
34150         so that program exit statuses are consistent on failure.
34151
34152         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34153         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34154         * lib/argmatch.h: Comment fix to match the above.
34155         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34156         Now a macro referring to exit_failure, instead of a separate
34157         variable.  Include "exitfail.h" to get it.
34158         * lib/xstrtol.h: Include "exitfail.h".
34159         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34160
34161         * lib/long-options.c (parse_long_options): Use prototype
34162         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34163         for clarity.
34164
34165 2004-01-21  Jim Meyering  <jim@meyering.net>
34166
34167         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34168         so as not to conflict with a different-sized __mktime_internal
34169         function in GNU libc.
34170         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34171         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34172
34173 2004-01-20  Karl Berry  <karl@gnu.org>
34174
34175         * config/config.guess: update from config.
34176
34177         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34178
34179 2004-01-20  Bruno Haible  <bruno@clisp.org>
34180
34181         Safer stack allocation.
34182         * lib/setenv.c: Include allocsa.h.
34183         (alloca): Remove fallback definition.
34184         (freea): Remove macro.
34185         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34186         instead of freea.
34187
34188 2004-01-20  Bruno Haible  <bruno@clisp.org>
34189
34190         * m4/eealloc.m4: New file, from GNU gettext.
34191
34192 2004-01-20  Bruno Haible  <bruno@clisp.org>
34193
34194         * m4/allocsa.m4: New file, from GNU gettext.
34195
34196 2004-01-20  Bruno Haible  <bruno@clisp.org>
34197
34198         * lib/xallocsa.h: New file, from GNU gettext.
34199         * lib/xallocsa.c: New file, from GNU gettext.
34200
34201 2004-01-20  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34204
34205 2004-01-20  Bruno Haible  <bruno@clisp.org>
34206
34207         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34208         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34209         specially.
34210
34211 2004-01-20  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34214         patch.
34215
34216 2004-01-20  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34219
34220 2004-01-20  Bruno Haible  <bruno@clisp.org>
34221
34222         * lib/eealloc.h: New file.
34223
34224 2004-01-20  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/binary-io.h: Avoid warnings on Cygwin.
34227
34228 2004-01-20  Bruno Haible  <bruno@clisp.org>
34229
34230         * lib/allocsa.h: New file, from GNU gettext.
34231         * lib/allocsa.c: New file, from GNU gettext.
34232
34233 2004-01-18  Karl Berry  <karl@gnu.org>
34234
34235         * doc/gpl.texi, doc/lgpl.texi: new files.
34236
34237 2004-01-18  Karl Berry  <karl@gnu.org>
34238
34239         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34240         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34241
34242 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34243
34244         Merge from coreutils.
34245
34246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34247         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34248         (gl_DEFAULT_POSIX2_VERSION): Move
34249         the documentation from 'configure' into 'config.hin',
34250         so that 'configure --help' isn't burdened by it and
34251         we don't have to worry about its formatting there.
34252         Reword the documentation so that it's more succinct
34253         and can be run together into a single paragraph.
34254         * m4/same.m4 (gl_SAME): Check for pathconf.
34255
34256 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34257
34258         Merge from coreutils.
34259
34260         * lib/posixver.c: Include posixver.h.
34261
34262         * lib/same.c: Include <stdbool.h>, <limits.h>.
34263         (_POSIX_NAME_MAX): Define if not defined.
34264         (MIN): New macro.
34265         (same_name): If file names are silently truncated, report
34266         that the file names are the same if they are the same after
34267         the silent truncation.
34268
34269         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34270         conversion function.
34271         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34272         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34273         longer needed.
34274
34275 2004-01-15  Jim Meyering  <jim@meyering.net>
34276
34277         Merge from coreutils.
34278
34279         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34280         if no library is required.
34281         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34282         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34283         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34284         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34285         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34286         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34287         value, $ac_cv_search_crypt, if it's "none required".
34288         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34289         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34290         not gl_FUNC_GETLOADAVG.
34291         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34292         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34293
34294 2004-01-15  Jim Meyering  <jim@meyering.net>
34295
34296         Merge from coreutils.
34297
34298         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34299         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34300         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34301
34302         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34303         optional configure-time default.
34304
34305         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34306
34307         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34308
34309 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34310
34311         Merge from coreutils.
34312
34313         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34314         value, $ac_cv_search_nanosleep, if it's "none required".
34315
34316 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34317
34318         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34319         with like-named macro in fnmatch.c.
34320         (EXT): Use an internal constant instead.
34321
34322         Merge fnmatch patches from glibc.
34323         * lib/fnmatch.c (mbsinit): Remove define.
34324         Add libc_hidden_ver (__fnmatch, fnmatch).
34325         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34326         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34327
34328 2004-01-14  Karl Berry  <karl@gnu.org>
34329
34330         * config/install-sh: update from automake.
34331
34332 2004-01-13  Karl Berry  <karl@gnu.org>
34333
34334         * config/install-sh: update from automake.
34335
34336 2004-01-09  Karl Berry  <karl@gnu.org>
34337
34338         * config/install-sh: update from automake.
34339
34340 2004-01-05  Karl Berry  <karl@gnu.org>
34341
34342         * config/config.{sub,guess}: update from config.
34343
34344 2003-12-31  Karl Berry  <karl@gnu.org>
34345
34346         * config/depcomp: update from automake.
34347
34348 2003-12-14  Karl Berry  <karl@gnu.org>
34349
34350         * lib/config.charset: update from gettext-runtime.
34351
34352 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34353
34354         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34355         Bug reported by Alfred M. Szmidt.
34356
34357 2003-12-03  Bruno Haible  <bruno@clisp.org>
34358
34359         * m4/gettext.m4: Upgrade from gettext-0.13.
34360         * m4/po.m4: Upgrade from gettext-0.13.
34361         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34362         * m4/intmax.m4: New file, from gettext-0.13.
34363         * m4/printf-posix.m4: New file, from gettext-0.13.
34364
34365 2003-11-29  Karl Berry  <karl@gnu.org>
34366
34367         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34368
34369 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34370             Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/printf-parse.h: Don't include sys/types.h.
34373         (ARG_NONE): New macro.
34374         (char_directive): Change type of *arg_index fields to size_t.
34375         * lib/printf-parse.c: Don't include sys/types.h.
34376         (SSIZE_MAX): Remove macro.
34377         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34378         Remove unnecessary overflow check.
34379         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34380         fields.
34381
34382 2003-11-25  Bruno Haible  <bruno@clisp.org>
34383
34384         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34385
34386 2003-11-25  Bruno Haible  <bruno@clisp.org>
34387
34388         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34389         gt_TYPE_SSIZE_T.
34390
34391 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34392
34393         * modules/alloca: Remove dependency on xalloc.
34394
34395 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34396
34397         * lib/alloca.c: Remove dependency on xalloc module.
34398         (xalloc_die): Remove.
34399         (memory_full) [!defined emacs]: New macro.
34400         [!defined emacs]: Don't include xalloc.h.
34401         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34402         address arithmetic overflows.  Change datatypes a bit to avoid
34403         unnecessary casts.
34404
34405 2003-11-22  Jim Meyering  <jim@meyering.net>
34406
34407         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34408         s/size/size_t/.
34409
34410 2003-11-21  Karl Berry  <karl@gnu.org>
34411
34412         * config/config.{sub,guess}: update from config.
34413
34414 2003-11-18  Karl Berry  <karl@gnu.org>
34415
34416         * config/config.{sub,guess}: update from config.
34417
34418         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34419
34420 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34421
34422         * README: Mention that S+T cannot overflow if S is the size of
34423         an existing object and T is sufficiently small.
34424
34425 2003-11-17  Jim Meyering  <jim@meyering.net>
34426
34427         On systems without utime and without a utimes function capable of
34428         dealing with a NULL struct utimbuf* argument, this utime replacement
34429         could -- in unusual circumstances -- leak a file descriptor.
34430         * lib/utime.c: Include <unistd.h> and <errno.h>.
34431         (utime_null): Be sure to close `fd' and to preserve errno.
34432         Reported by Geoff Collyer via Arnold Robbins.
34433
34434 2003-11-17  Bruno Haible  <bruno@clisp.org>
34435
34436         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34437         (Depends-on): Add xsize.
34438
34439 2003-11-17  Bruno Haible  <bruno@clisp.org>
34440
34441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34442
34443 2003-11-17  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/vasnprintf.c (alloca): Remove fallback definition.
34446         (freea): Remove definition.
34447         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34448         Reported by Paul Eggert.
34449
34450 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34451             Bruno Haible  <bruno@clisp.org>
34452
34453         Protect against address arithmetic overflow.
34454         * lib/printf-args.h: Include stddef.h.
34455         (arguments): Change type of field 'count' to size_t.
34456         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34457         'unsigned int' where appropriate.
34458         * lib/printf-parse.h: Include sys/types.h.
34459         (char_directive): Change type of *arg_index fields to ssize_t.
34460         (char_directives): Change type of fields 'count', max_*_length to
34461         size_t.
34462         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34463         (SSIZE_MAX): Define fallback value.
34464         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34465         instead of 'int' where appropriate. Check a_allocated, d_allocated
34466         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34467         * lib/vasnprintf.c: Include xsize.h.
34468         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34469         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34470         overflow. Avoid wraparound when converting a width or precision from
34471         decimal to binary.
34472
34473 2003-11-16  Bruno Haible  <bruno@clisp.org>
34474
34475         Update from GNU gettext.
34476         * lib/printf-parse.c: Generalize to it can be compiled for wide
34477         strings.
34478         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34479         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34480         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34481         SNPRINTF): New macros.
34482         Don't include <alloca.h> if the file is used inside libintl.
34483         (local_wcslen): New function, for Solaris 2.5.1.
34484         (VASNPRINTF): Use it instead of wcslen.
34485
34486 2003-11-16  Bruno Haible  <bruno@clisp.org>
34487
34488         * lib/xsize.h (xmax): New function.
34489         (xsum, xsum3, xsum4): Declare as "pure" functions.
34490
34491 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34492
34493         * modules/xalloc (Files): Undo latest change, since xalloc.h
34494         no longer needs SIZE_MAX or PTRDIFF_MAX.
34495
34496 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34497
34498         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34499         gl_PTRDIFF_MAX.
34500
34501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34502
34503         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34504         "return", to pacify some unknown compiler.  Problem reported
34505         by Joerg Schilling.
34506
34507 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34508
34509         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34510         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34511         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34512         heuristic is just as accurate as far as we know, and it removes a
34513         dependency on size_max.m4 and ptrdiff_max.m4.
34514
34515 2003-11-11  Bruno Haible  <bruno@clisp.org>
34516
34517         * modules/xsize (Files): Add m4/size_max.m4.
34518         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34519
34520 2003-11-11  Bruno Haible  <bruno@clisp.org>
34521
34522         * m4/size_max.m4: New file.
34523         * m4/ptrdiff_max.m4: New file.
34524         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34525         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34526         (gl_XALLOC): Invoke it.
34527
34528 2003-11-11  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34531         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34532         defined.
34533
34534 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34535
34536         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34537         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34538         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34539         From Bruno Haible.
34540         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34541         not (size_t) -1, since it's defined here.
34542
34543 2003-11-09  Karl Berry  <karl@gnu.org>
34544
34545         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34546
34547 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34548
34549         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34550         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34551         Reject sizes of exactly SIZE_MAX bytes.
34552         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34553         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34554
34555 2003-11-05  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34558         SIZE_MAX defined in <limits.h> on Solaris.
34559
34560 2003-11-04  Jim Meyering  <jim@meyering.net>
34561
34562         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34563         variable names, rather than @VAR@.
34564         * modules/poll: Likewise.
34565
34566 2003-11-04  Bruno Haible  <bruno@clisp.org>
34567
34568         * modules/xsize: New file.
34569         * modules/linebreak: Depend on xsize.
34570         * MODULES.html.sh (func_all_modules): Add xsize.
34571
34572 2003-11-04  Bruno Haible  <bruno@clisp.org>
34573
34574         * m4/xsize.m4: New file.
34575
34576 2003-11-04  Bruno Haible  <bruno@clisp.org>
34577
34578         * lib/xsize.h: New file.
34579         * lib/linebreak.c: Include xsize.h.
34580         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34581         argument for overflow.
34582         Suggested by Paul Eggert.
34583
34584 2003-11-03  Karl Berry  <karl@gnu.org>
34585
34586         * config/config.{guess,sub}: update from config.
34587
34588 2003-11-03  Jim Meyering  <jim@meyering.net>
34589
34590         * modules/userspec (lib_SOURCES): Add userspec.h.
34591         (Include): Add "userspec.h".
34592         Improve description.
34593
34594 2003-11-03  Jim Meyering  <jim@meyering.net>
34595
34596         * lib/userspec.c: Include "userspec.h".
34597         * lib/userspec.h: New file.
34598
34599 2003-11-03  Bruno Haible  <bruno@clisp.org>
34600
34601         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34602
34603 2003-11-03  Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34606         available, to avoid (extremely rare) race condition.
34607         Suggested by Paul Eggert.
34608
34609 2003-11-02  Karl Berry  <karl@gnu.org>
34610
34611         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34612
34613 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34614
34615         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34616         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34617         (read_filesystem_list): Set and use me_type_malloced.
34618         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34619         whatever the type happens to be), for brevity and consistency.
34620         Check for size calculation overflow on Alphas running OSF/1.
34621
34622 2003-10-31  Jim Meyering  <jim@meyering.net>
34623
34624         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34625
34626         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34627
34628 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34629             Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34632         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34633
34634 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34635
34636         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34637         netbsd*-gnu*.  Suggested by Robert Millan.
34638
34639 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34640
34641         * modules/group-member: Depend on stdbool.
34642
34643 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34644
34645         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34646
34647 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34648
34649         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34650         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34651         after the 'gnu' in these cases.  This fixes some bugs in the
34652         previous change, and is based on suggestions by Robert Millan.
34653
34654 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34655
34656         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34657         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34658         no longer needed.
34659         * lib/quotearg.c (quotearg_n_options): Use it.
34660         * lib/group-member.c: Include <stdbool.h>.
34661         (free_group_info): Arg is now const *; don't free arg.
34662         (get_group_info): Now returns bool and accepts struct group_info *,
34663         rather than returning a malloc'ed struct group_info *.
34664         All uses changed.  Check for overflow in internal size calculation.
34665
34666         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34667         rather than xmalloc/xrealloc.
34668         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34669         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34670         conformance bug: the old code used a pointer after freeing the
34671         storage that it addressed.
34672         * lib/hash.c (hash_initialize): Simplify the code by using
34673         xalloc_oversized rather than doing it by hand.
34674         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34675         the buffer preserved.  Use free and xmalloc instead.
34676         * lib/quotearg.c (quotearg_n_options): Likewise.
34677         Use a simpler test for size overflow.  Don't use xalloc_oversized
34678         because unsigned int might be wider than size_t (!); this suggests
34679         that we should switch from unsigned int to size_t for slot numbers.
34680
34681 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34682
34683         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34684         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34685         NetBSD kernels.  Requested by Richard Stallman.
34686
34687 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34688
34689         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34690         to allocate the returned structure.  Do not allocate a subarray,
34691         as x2nrealloc will do that.
34692         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34693         instead of xnrealloc.
34694         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34695
34696 2003-10-27  Bruno Haible  <bruno@clisp.org>
34697
34698         * lib/stdbool_.h: Better support for BeOS.
34699
34700 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34701
34702         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34703         now uses inline.
34704
34705 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34706
34707         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34708         callers that want to do their own size-overflow checking.  Include
34709         <stdbool.h>, since xalloc_oversized returns bool.
34710         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34711         to use xalloc_oversized.
34712
34713         Add two functions x2realloc, x2nrealloc, for programs that grow
34714         arrays dynamically by doubling their sizes.
34715         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34716         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34717         New functions.
34718
34719         Port to C99 semantics for 'inline' of external functions.
34720         Bug reported by Bruno Haible.
34721         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34722         with the old contents of xnmalloc.
34723         (xnmalloc, xmalloc): Use it.
34724         (xnrealloc_inline): New static inline function,
34725         with the old contents of xnrealloc.
34726         (xnrealloc, xrealloc): Use it.
34727
34728         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34729         that.
34730
34731 2003-10-26  Karl Berry  <karl@gnu.org>
34732
34733         * config/srclist.txt (COPYING.DOC): no longer available from
34734         /gd/gnuorg; don't know where the ultimate source is.
34735
34736 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34737
34738         Fix several address-calculation bugs in the hash modules,
34739         plus some minor code cleanup.
34740
34741         * lib/hash.h: Include <stdbool.h>, for bool.
34742         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34743         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34744         hash_get_n_entries, hash_get_max_bucket_length,
34745         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34746         hash_rehash): Use size_t rather than unsigned.
34747         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34748         hash_get_n_buckets_used, hash_get_n_entries,
34749         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34750         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34751         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34752         Likewise.
34753         (SIZE_MAX): Define if not defined.
34754         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34755         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34756         hash_print):
34757         Use const * when possible.
34758         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34759         (check_tuning): Fix bug: if tuning parameters were very close to
34760         0 or 1, rounding errors could have caused subscript violations.
34761         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34762         (hash_initialize): Add 'fail:' label
34763         to free table and return NULL, and use it to simplify code.
34764         Use calloc rather than clearing the storage ourself.
34765         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34766         buffer size calculations.
34767         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34768         Include <stddef.h>, for size_t.
34769         * lib/hash-pjw.c (hash_pjw): Likewise.
34770         Switch to method described by Bruno Haible.
34771         Include <limits.h>, for CHAR_BIT.
34772         (SIZE_BITS): New macro.
34773
34774 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34775
34776         * m4/getline.m4 (AM_FUNC_GETLINE):
34777         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34778         hosts.  Problem reported by Derek Robert Price in
34779         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34780         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34781         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34782
34783 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34784
34785         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34786         ceiling the allocation at NMAX bytes rather than silently
34787         discarding input bytes before NMAX is reached.  This makes
34788         a difference only if NMAX exceeds SIZE_MAX / 2.
34789
34790         * lib/obstack.c: Merge from glibc.
34791         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34792         Add libc_hidden_def (_obstack_newchunk).
34793         (_obstack_free) [! defined _LIBC]: Remove.
34794         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34795         a clone of the function body.
34796         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34797         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34798
34799         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34800         glibc.
34801         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34802         arg to memcpy.
34803
34804         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34805         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34806         Don't use lvalue casts, as GCC plans to remove support for them
34807         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34808         was also present in the non-GCC version, indicating that this
34809         code had always been buggy and had never been widely used.
34810         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34811         Use the fast variant of each macro, rather than copying the
34812         definiens of the fast variant; that way, we'll be more likely to
34813         catch future bugs in the fast variants.
34814
34815 2003-10-20  Bruno Haible  <bruno@clisp.org>
34816
34817         * modules/wait-process: New file.
34818         * MODULES.html.sh (func_all_modules): Add wait-process.
34819
34820 2003-10-20  Bruno Haible  <bruno@clisp.org>
34821
34822         * m4/wait-process.m4: New file.
34823
34824 2003-10-20  Bruno Haible  <bruno@clisp.org>
34825
34826         * lib/wait-process.h: New file, from GNU gettext.
34827         * lib/wait-process.c: New file, from GNU gettext.
34828
34829 2003-10-19  Jim Meyering  <jim@meyering.net>
34830
34831         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34832         HPUX 10.20.
34833
34834 2003-10-18  Karl Berry  <karl@gnu.org>
34835
34836         * config/config.guess: update from config.
34837
34838 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34839
34840         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34841         (getgroups): First arg is int, not size_t.
34842         Don't let 'free' mangle errno.
34843
34844 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34845
34846         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34847
34848 2003-10-16  Karl Berry  <karl@gnu.org>
34849
34850         * config/config.{guess,sub}: update from config.
34851
34852 2003-10-16  Jim Meyering  <jim@meyering.net>
34853
34854         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34855         memcpy.
34856
34857 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34858
34859         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34860         (SIZE_MAX): Remove.
34861         (new_exclude, add_exclude_file): Initial size no longer needs to
34862         be a power of 2.
34863         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34864         our own address arithmetic overflow checking.
34865
34866         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34867         (fnmatch): Do not alloca more than 2000 wide characters;
34868         instead, use malloc for large buffers.
34869         Check for address arithmetic overflow, and return -1
34870         with errno set to ENOMEM in that case.
34871         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34872         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34873         instead, return -1.  Check for address arithmetic overflow.
34874
34875 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34876
34877         Handle invalid suffixes and overflow independently, so that
34878         callers can treat them independently as needed.  Fix some bugs in
34879         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34880         suffix for a human-readable blocksize.  The major caller-visible
34881         change is the addition of a new
34882         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34883         that both overflow and suffix chars were found.
34884
34885         * lib/human.c (humblock): Don't check separately for invalid suffix
34886         char; that is xstrtoumax's job (now that its bug is fixed).
34887         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34888         INTMAX_MAX]: New macros.
34889         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34890         TYPE_MAXIMUM): New macros.
34891         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34892         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34893         if overflow occurs, as it's what __strtol does and it's more useful
34894         in practice.
34895         (__xstrtol): If __strtol reports some error other than ERANGE,
34896         reflect it to the caller as LONGINT_INVALID.  If it reports
34897         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34898         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34899         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34900         value.
34901         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34902         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34903         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34904         [defined UINTMAX_MAX]: New macros.
34905
34906 2003-10-14  Bruno Haible  <bruno@clisp.org>
34907
34908         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34909
34910 2003-10-14  Bruno Haible  <bruno@clisp.org>
34911
34912         * m4/sig_atomic_t: New file, from GNU gettext.
34913         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34914
34915 2003-10-14  Bruno Haible  <bruno@clisp.org>
34916
34917         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34918         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34919         Also use volatile where needed.
34920
34921 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34922
34923         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34924         Change maintainer from Bruno Haible to 'all'.
34925
34926 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34927
34928         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34929
34930 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34931
34932         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34933         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34934         and define in terms of the other primitives.
34935         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34936         (SIZE_MAX): Define if not already defined.
34937         (array_size_overflow): New function.
34938         (xalloc_die): Abort instead of exiting if 'error' returns.
34939         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34940         (xmalloc, xrealloc): Use them.
34941         (xcalloc): Check for address arithmetic overflow.
34942         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34943         a bit faster than strcpy.
34944
34945 2003-10-10  Simon Josefsson  <jas@extundo.com>
34946
34947         * modules/argp (Depends-on): Add restrict and strcase.
34948
34949 2003-10-10  Simon Josefsson  <jas@extundo.com>
34950
34951         * m4/argp.m4: Add AC_C_INLINE.
34952
34953 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34954
34955         Merge getpass from libc, plus a few fixes.
34956
34957         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34958         Include <stdbool.h>.
34959         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34960         __fsetlocking to empty.
34961         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34962         do include <bits/libc-lock.h>.
34963         Do not include <fcntl.h>; not needed.
34964         [_LIBC]: Include <wchar.h>.
34965         (NOTCANCEL_MODE): New macro.
34966         (flockfile, funlockfile) [_LIBC]: New macros.
34967         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34968         [!_LIBC]: New macros.
34969         (call_fclose): New function.
34970         (getpass): Use it.  Save tty stream separately; this simplifies the
34971         code and makes it more reliable if stdin happens to equal stdout.
34972         Invoke __fsetlocking on tty.
34973         Handle thread cancellation if needed.
34974         Namespace cleanup (use __tcgetattr, __getline).
34975         Use bool for Booleans.
34976         [USE_IN_LIBIO]: Handle wide streams.
34977         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34978         stream might go where.
34979
34980         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34981         doesn't have to include <stdio.h> before us.
34982         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34983         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34984         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34985         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34986         if not declared, so that we can use getpass.c code from libc without
34987         rewriting it.
34988         (flockfile, ftrylockfile, funlockfile): New macros.
34989
34990 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34991
34992         * modules/getpass: Depend on stdbool.
34993
34994 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34995
34996         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34997
34998 2003-10-07  Karl Berry  <karl@gnu.org>
34999
35000         * config/config.{guess,sub}: update from config.
35001
35002 2003-10-06  Jim Meyering  <jim@meyering.net>
35003             Bruno Haible  <bruno@clisp.org>
35004
35005         This lets translators provide better translations for the
35006         "Written by ..." part of --version output.
35007         * lib/version-etc.h: Include stdarg.h.
35008         (version_etc_copyright): Declare as readonly.
35009         (version_etc): Make this function variadic with a NULL-terminated list
35010         of author name strings.
35011         (version_etc_va): New declaration.
35012         * lib/version-etc.c: Include stdarg.h, stdlib.h.
35013         (version_etc_copyright): Declare as readonly.
35014         (version_etc_va): New function. Provide a different translatable string
35015         for each possible number of authors < 10. Abbreviate when there are 10
35016         authors or more.
35017         (version_etc): Make this function variadic. Call version_etc_va.
35018         Suggestion from Gary V. Vaughan.
35019
35020         * lib/long-options.h (parse_long_options): Change prototype: the
35021         authors string is moved to the end and becomes variadic.
35022         * lib/long-options.c: Include stdarg.h.
35023         (parse_long_options): Make this function variadic, too.
35024         Call version_etc_va, not version_etc.
35025
35026 2003-10-06  Bruno Haible  <bruno@clisp.org>
35027
35028         * modules/version-etc-2: Remove file.
35029         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35030
35031 2003-10-06  Bruno Haible  <bruno@clisp.org>
35032
35033         * modules/fatal-signal: New file.
35034         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35035
35036 2003-10-06  Bruno Haible  <bruno@clisp.org>
35037
35038         * m4/fatal-signal.m4: New file.
35039         * m4/signalblocking.m4: New file, from GNU gettext.
35040
35041 2003-10-06  Bruno Haible  <bruno@clisp.org>
35042
35043         * lib/version-etc-2.h: Remove file.
35044         * lib/version-etc-2.c: Remove file.
35045
35046 2003-10-06  Bruno Haible  <bruno@clisp.org>
35047
35048         * lib/fatal-signal.h: New file, from GNU gettext.
35049         * lib/fatal-signal.c: New file, from GNU gettext.
35050
35051 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35052
35053         * README: Rework advice for preventing empty .o files.
35054         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
35055         not <sys/types.h>.
35056
35057 2003-10-04  Karl Berry  <karl@gnu.org>
35058
35059         * lib/argp*: update from libc.
35060
35061 2003-10-04  Karl Berry  <karl@gnu.org>
35062
35063         * config/config.{guess,sub}: update from config.
35064
35065 2003-10-02  Bruno Haible  <bruno@clisp.org>
35066
35067         * modules/lchown (Include): Add lchown.h.
35068         * modules/time_r (Include): Use "..." syntax.
35069         * modules/xgetdomainname (Include): Add xgetdomainname.h.
35070
35071 2003-10-01  Simon Josefsson  <jas@extundo.com>
35072
35073         * MODULES.html.sh (func_all_modules): Move gethostname from section
35074         'based on' to section 'lacking' POSIX:2001.
35075
35076 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35077
35078         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35079         to output mode on the same stream.
35080
35081 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35082
35083         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35084         Fix arg typo in previous patch.
35085
35086 2003-09-28  Jim Meyering  <jim@meyering.net>
35087
35088         * lib/error.c: Correct cpp indentation.
35089
35090 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35091
35092         * modules/free: New file.
35093
35094 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35095
35096         * m4/free.m4: New file.
35097
35098 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35099
35100         * lib/minmax.h (MIN, MAX)
35101         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35102         Omit the special code that used __typeof__, since we worry that
35103         it could be more trouble than it's worth.  See:
35104         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35105         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35106
35107         * lib/free.c: New file.
35108
35109 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35110
35111         Trivial fixes to Makefile.am parts of module listings.
35112         * modules/strstr: Append strstr.h to lib_SOURCES.
35113         * modules/strcase: Likewise, for strcase.h.
35114
35115 2003-09-27  Karl Berry  <karl@gnu.org>
35116
35117         * config/mkinstalldirs: update from automake.
35118
35119 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35120
35121         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35122         (error_tail): Do not loop, reallocating temporary buffer, since
35123         the output cannot contain more wide characters than the input
35124         contains bytes, the size must be big enough already.  This avoids
35125         one potential size overflow calculation.  Check for size overflow
35126         when calculating temporary buffer size.  Free temporary buffer
35127         when done, if it was allocated with malloc; this plugs a memory
35128         leak.  Remove casts from void * to pointers, that are no longer
35129         needed now that we're assuming C89 or better.
35130
35131         Merge error changes from glibc.
35132
35133         * lib/error.c, error.h: Update copyright notice header to match glibc.
35134         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35135         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35136         Disable cancellation while printing error.
35137         * lib/error.h: Prepend __ to parameter names.
35138
35139 2003-09-26  Jim Meyering  <jim@meyering.net>
35140
35141         * lib/error.c (error_tail): Move some declarations
35142         into inner scope where the local variables are used.
35143
35144 2003-09-26  Bruno Haible  <bruno@clisp.org>
35145
35146         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35147         stpncpy().
35148         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35149
35150 2003-09-26  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35153         (stpncpy): Define as alias for gnu_stpncpy.
35154         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35155
35156 2003-09-25  Simon Josefsson  <jas@extundo.com>
35157
35158         * lib/xgetdomainname.h: New file.
35159         * lib/xgetdomainname.c: New file.
35160
35161 2003-09-25  Simon Josefsson  <jas@extundo.com>
35162             Bruno Haible  <bruno@clisp.org>
35163
35164         * modules/getdomainname: New file.
35165         * modules/xgetdomainname: New file.
35166         * MODULES.html.sh (func_all_modules): Add getdomainname,
35167         xgetdomainname.
35168
35169 2003-09-25  Simon Josefsson  <jas@extundo.com>
35170             Bruno Haible  <bruno@clisp.org>
35171
35172         * m4/getdomainname.m4: New file.
35173
35174 2003-09-25  Simon Josefsson  <jas@extundo.com>
35175             Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/getdomainname.h: New file.
35178         * lib/getdomainname.c: New file.
35179
35180 2003-09-25  Karl Berry  <karl@gnu.org>
35181
35182         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35183
35184 2003-09-25  Karl Berry  <karl@gnu.org>
35185
35186         * config/install-sh: update from automake.
35187
35188 2003-09-25  Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/version-etc-2: New file, from modules/version-etc with
35191         modifications.
35192         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35193
35194 2003-09-25  Bruno Haible  <bruno@clisp.org>
35195
35196         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35197         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35198
35199 2003-09-24  Simon Josefsson  <jas@extundo.com>
35200
35201         * modules/xgethostname: Add xgethostname.h.
35202
35203 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35204
35205         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35206         the buffer associated with the argument.  Bug reported by
35207         Simon Josefsson.
35208
35209 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35210
35211         * README: Document assumptions that 'int' is at least 32 bits
35212         wide, that integer arithmetic is 2's complement without overflow,
35213         that there are no holes in integer values, that adding sizes of
35214         two nonoverlapping objects can't overflow, and that all-bits-zero
35215         yields scalar zero.  Fix spelling and capitalization typos.
35216
35217 2003-09-19  Karl Berry  <karl@gnu.org>
35218
35219         * lib/argp.h: update from libc.
35220
35221 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35222
35223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35224         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35225         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35226
35227 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35228
35229         * gnulib-tool: Use "test -h", not "test -L", for portability
35230         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35231         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35232         (sed_extract_prog): Issue s commands one-by-one, rather than
35233         using \| in one s command.
35234
35235 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35236
35237         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35238         input error, instead of returning NULL the next time we are called
35239         (and therefore losing track of errno).
35240
35241 2003-09-16  Bruno Haible  <bruno@clisp.org>
35242
35243         * gnulib-tool (func_create_testdir): Warn about duplicated
35244         dependencies.
35245
35246 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35247
35248         * modules/argmatch, modules/fatal, modules/obstack,
35249         modules/xalloc, modules/xgethostname: Sort dependencies by
35250         importance, not alphabetically.
35251
35252 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35253
35254         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35255         fails, so that the caller gets the proper errno.
35256
35257         * lib/readutmp.c (read_utmp): Likewise.
35258         Check for fstat error.  Close stream and free storage
35259         when failing.
35260
35261 2003-09-14  Karl Berry  <karl@gnu.org>
35262
35263         * config/srclist.txt (strdup.c): disable for c89 changes.
35264
35265 2003-09-14  Jim Meyering  <jim@meyering.net>
35266
35267         * lib/getloadavg.c: Correct cpp indentation.
35268         * lib/strdup.c: Likewise.
35269         * lib/vasnprintf.c: Likewise.
35270
35271 2003-09-14  Bruno Haible  <bruno@clisp.org>
35272
35273         * modules/fwriteerror: New file.
35274         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35275
35276 2003-09-14  Bruno Haible  <bruno@clisp.org>
35277
35278         * lib/fwriteerror.h: New file.
35279         * lib/fwriteerror.c: New file.
35280
35281 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35282
35283         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35284         modules/xgethostname, modules/xalloc: Depend on exit.
35285
35286 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35287
35288         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35289
35290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35291         and AC_MINIX, too, so that their extensions are available.
35292
35293         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35294         This macro has been superseded by gl_BACKUPFILE.
35295
35296         More patches to assume C89 or better.
35297
35298         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35299
35300         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35301         unconditionally.
35302         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35303         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35304         Include <string.h>, <stdlib.h> unconditionally.
35305         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35306         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35307         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35308         headers or for string.h.
35309         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35310         or strtoul.
35311
35312         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35313         headers.
35314         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35315         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35316         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35317         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35318         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35319         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35320         memcpy, memset.
35321         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35322         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35324         strtol.
35325         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35326         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35327         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35328         strtoul.
35329
35330 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35331
35332         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35333         * lib/obstack.c [!defined _LIBC]: Likewise.
35334         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35335         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35336         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35337
35338         More changes to assume C89 or better.
35339
35340         * lib/error.c (error_tail): Assume vprintf.
35341
35342         * lib/argmatch.c (getenv): Remove decl.
35343         * lib/progreloc.c (get_full_program_name): Define via prototype.
35344         * lib/setenv.c (clearenv): Likewise.
35345         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35346         needed.
35347         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35348         (malloc, memcpy): Remove decls.
35349         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35350         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35351         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35352         (memcpy): Remove macro.
35353         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35354         (__P): Remove.  All uses removed.
35355         (PTR): Remove.  All uses changed to void *.
35356         (CHAR_BIT, NULL): Remove.
35357         (spaces, zeros, memset_space, memset_zero)
35358         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35359         Remove.
35360         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35361         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35362         Define with prototype.
35363         Remove now-unnecessary prototype decl.
35364         (extra_args_spec): Assume ANSI C.  All uses changed.
35365         (extra_args_spec_iso): Remove.
35366         (my_strftime, emacs_strftimeu): Define via prototype.
35367         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35368         unconditionally.
35369         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35370         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35371         (strtoul, strtol): Remove decls.
35372         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35373         LONG_MAX): Remove.
35374         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35375         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35376         (LOCALE_PARAM_PROTO): New macro.
35377         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35378         (INTERNAL (strtol), strtol): Define with a prototype.
35379         (PARAMS): Remove.  All uses removed.
35380         * lib/tempname.c: Include <string.h> unconditionally.
35381         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35382         * lib/xgethostname.c (main): Define with a prototype.
35383         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35384         Include <stdlib.h> unconditionally.
35385         (calloc, malloc, realloc, free): Remove decls.
35386         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35387         Include <stdlib.h> unconditionally.  Sort include file names.
35388         (strtod): Remove.
35389         (xstrtod): Define with a prototype.
35390         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35391         (strtol, strtoul): Remove decls.
35392
35393 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35394
35395         More patches to assume C89 or better.
35396         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35397         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35398         string.h, memchr, STDC_HEADERS.
35399
35400 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35401
35402         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35403         Include <stdlib.h>, <string.h> unconditionally.
35404         Remove now-unnecessary cast to char *.
35405         * lib/strnlen.c: Include <string.h> unconditionally.
35406         * lib/yesno.c (yesno): Define with a prototype.
35407
35408 2003-09-11  Bruno Haible  <bruno@clisp.org>
35409
35410         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35411
35412 2003-09-10  Jim Meyering  <jim@meyering.net>
35413
35414         * lib/error.c: Correct indentation of cpp directives.
35415
35416 2003-09-10  Bruno Haible  <bruno@clisp.org>
35417
35418         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35419         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35420         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35421         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35422         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35423         <stdlib.h> and <string.h> checks.
35424         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35425         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35426
35427 2003-09-10  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/strcspn.c: Include <string.h> unconditionally.
35430         * lib/strpbrk.c: Include <string.h> unconditionally.
35431         * lib/strstr.c: Include <string.h> unconditionally.
35432         * lib/unicodeio.c: Include <string.h> unconditionally.
35433         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35434         * lib/unsetenv.c: Likewise.
35435         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35436         * lib/yesno.c: Include <stdlib.h> unconditionally.
35437         (rpmatch): Add prototype.
35438
35439 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35440
35441         More patches to assume C89 or better.
35442         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35443         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35444         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35445         or for string.h.
35446         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35447         stdlib.h.
35448         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35449         C headers.
35450         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35451         string.h.
35452         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35453         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35454         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35455         or for string.h.
35456         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35457         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35458         C headers.
35459         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35460         memcpy.
35461         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35462         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35463         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35464         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35465         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35466         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35467         string.h, free.
35468         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35469         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35470         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35471         C headers, or for string.h.
35472         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35473         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35474         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35475         headers, memory.h, stdlib.h, string.h, strings.h.
35476         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35477         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35478         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35479         strchr.
35480         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35481         headers, memory.h, string.h.
35482         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35483         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35484         free.
35485         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35486         headers.
35487         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35488         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35489         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35490         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35491         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35492
35493 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35494
35495         More K&R removal.
35496
35497         * lib/acosl.c (main): Use a prototype.
35498         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35499         tanl.c: Likewise.
35500
35501         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35502
35503         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35504         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35505         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35506         with a prototype.
35507         * lib/getopt.c (const): Remove macro.
35508         Include <string.h> unconditionally.
35509         (my_index): Remove; all uses changed to strchr.
35510         (strlen): Remove decl.
35511         (exchange): Remove forward decl; no longer needed.
35512         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35513         Define with prototype.
35514         * lib/getopt1.c (const): Remove macro.
35515         (getopt_long, getopt_long_only, main): Define with prototype.
35516
35517         * lib/getugroups.c: Include <string.h> unconditionally.
35518
35519         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35520         (getusershell, setusershell, endusershell, readname, main):
35521         Define with prototypes.
35522
35523         * lib/group-member.c: Include group-member.h first.
35524         Include <stdlib.h> unconditionally.
35525
35526         * lib/hard-locale.c: Include hard-locale.h first.
35527         Include <stdlib.h>, <string.h> unconditionally.
35528
35529         * lib/hash.c (free, malloc): Remove decls.
35530         Include <stdlib.h> unconditionally.
35531
35532         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35533         (getenv): Do not declare.
35534
35535         * lib/idcache.c: Include <string.h> unconditionally.
35536
35537         * lib/long-options.c: Include long-options.h first, to test interface.
35538         Include <stdlib.h> unconditionally.
35539
35540         * lib/makepath.c: Include makepath.h first, to test interface.
35541         Include <stdlib.h> and <string.h> unconditionally.
35542
35543         * lib/linebuffer.c: Include <stdlib.h>.
35544         (free): Remove decl.
35545
35546         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35547         stddef.h. rpl_malloc returns void *, not char *.
35548         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35549         prototype.
35550
35551         * lib/md5.h: Include <limits.h> unconditionally.
35552         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35553         (__P): Remove; all uses removed.
35554         * lib/md5.c: Include "md5.h" first.
35555         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35556         md5_buffer, md5_process_bytes, md5_process_block):
35557         Define with prototypes.
35558         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35559         * lib/sha.c: Include "sha.h" first.
35560         Include <stdlib.h>, <string.h> unconditionally.
35561
35562         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35563         * lib/memcmp.c (__ptr_t): Likewise.
35564         * lib/memrchr.c (__ptr_t): Likewise.
35565         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35566         Include <string.h> unconditionally.
35567         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35568         * lib/memchr.c: Include <stdlib.h> unconditionally.
35569         * lib/memchr.c (LONG_MAX): Remove.
35570         * lib/memrchr.c (LONG_MAX): Likewise.
35571         * lib/memchr.c (__memchr): Define via a prototype.
35572         * lib/memrchr.c (__memrchr): Likewise.
35573         * lib/memcmp.c (__P): Remove, and remove all uses.
35574         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35575         Remove forward decls; no longer needed.
35576         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35577         Use types required by C89 in prototype.
35578
35579         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35580         * lib/savedir.c: Likewise.
35581         * lib/mkdir.c (free): Remove decl.
35582         * lib/rmdir.c (rmdir): Define with a prototype.
35583         * lib/savedir.c: Include savedir.h first, to test interface.
35584
35585         * lib/mktime.c (STDC_HEADERS): Remove.
35586         Include <stdlib.h>, <string.h> unconditionally.
35587
35588         * lib/modechange.c: Include <stdlib.h> unconditionally.
35589         (malloc): Remove decl.
35590
35591         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35592         (free): Remove decl.
35593
35594         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35595         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35596         (This type really should be intptr_t, but that's a C99ism.)
35597         (_obstack_memcpy): Remove: all uses changed to memcpy.
35598         Include <string.h> unconditionally.
35599         (struct obstack): Assume __STDC__ for types of members
35600         chunkfun, freefun, extra_arg.
35601         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35602         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35603         obstack_begin, obstack_specify_allocation,
35604         obstack_specify_allocation_with_arg, obstack_chunkfun,
35605         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35606         Remove unprototyped decls and the macros that use them.
35607         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35608         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35609         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35610         (defined __STDC__ && __STDC__)]:
35611         Remove nonprototyped code.
35612         Include <stdlib.h> unconditionally.
35613         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35614         _obstack_allocated_p, _obstack_free, obstack_free,
35615         _obstack_memory_used, print_and_abort):
35616         Define using prototypes.
35617         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35618         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35619         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35620         obstack_next_free, obstack_object_size, obstack_room) [0]:
35621         Remove unused, unprototyped code.
35622
35623         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35624
35625         * lib/physmem.c (physmem_total, physmem_available, main): Define
35626         with prototypes.
35627
35628         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35629         (main): Define with a prototype.
35630
35631         * lib/posixver.c (getenv): Remove decl.
35632
35633         * lib/putenv.c (malloc): Returns void *, not char *.
35634         Include <string.h> unconditionally.
35635         (strchr, memcpy, NULL): Do not define.
35636
35637         * lib/readtokens.c: Include readtokens.h first, to test interface.
35638         Include <stdlib.h>, <string.h> unconditionally.
35639         (init_tokenbuffer): Define with a prototype.
35640
35641         * lib/regex.c (PARAMS): Remove.  All uses removed.
35642         All uses of _RE_ARGS removed, too.
35643         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35644         unconditionally.
35645         (bzero): Assume memset exists.
35646         (memcmp, memcpy, NULL): Remove.
35647         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35648         char, or assignments to local vars of type signed char.
35649         (init_syntax_once, PREFIX(extract_number_and_incr),
35650         PREFIX(print_partial_compiled_pattern),
35651         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35652         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35653         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35654         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35655         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35656         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35657         wcs_compile_range, byte_compile_range, truncate_wchar,
35658         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35659         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35660         count_mbs_length, wcs_re_match_2_internal,
35661         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35662         PREFIX(alt_match_null_string_p),
35663         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35664         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35665         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35666         now-unnecessary declaration, if any.
35667         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35668         regcomp, regexec):
35669         Remove now-unnecessary casts among pointer types.
35670         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35671
35672         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35673         (free): Remove decl.
35674
35675         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35676
35677         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35678         (free): Remove decl.
35679
35680         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35681         * lib/xgetcwd.c: Likewise.
35682
35683         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35684         (free): Remove decl.
35685
35686         * lib/strchrnul.c (strchrnul): Define with a prototype.
35687         Fix bug: c_in was not converted to char before searching.
35688
35689         The following changes are not K&R related:
35690
35691         * lib/group-member.h: Include <sys/types.h>, so that this file is
35692         self-contained.
35693         * lib/makepath.h: Likewise.
35694
35695         * lib/getusershell.c (readname, default_index, line_size, readname):
35696         Use size_t, not int, for sizes.
35697         (readname): If the size overflows, report an error instead of
35698         looping forever.
35699
35700 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35701
35702         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35703         libc.
35704
35705 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35706
35707         * README: New section: portability guidelines.
35708
35709 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35710
35711         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35712         C89 spec.
35713
35714 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35715
35716         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35717
35718 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35719
35720         Assume C89 or better; remove K&R cruft.
35721         A few of these changes were first proposed by Derek Robert Price
35722         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35723
35724         * lib/addext.c: Include <string.h> unconditionally.
35725         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35726         Don't declare getenv or malloc.
35727
35728         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35729         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35730         (NULL): Remove.
35731         (find_stack_direction, alloca): Use prototypes.
35732
35733         * lib/atexit.c (atexit): Define using a prototype.
35734
35735         * lib/basename.c, dirname.c, stripslash.c:
35736         Include <string.h> unconditionally.
35737
35738         * lib/bcopy.c: Include <stddef.h>.
35739         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35740
35741         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35742
35743         * lib/error.h (error, error_at_line, error_print_progname)
35744         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35745         * lib/error.c: Include error.h first, to check interface.
35746         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35747         (VA_START): Remove; all uses changeed to va_start.
35748         (exit, strerror): Remove decls.
35749         (error_print_progname): Prototype uncondionally.
35750         Don't include <errno.h>; no longer needed.
35751         (private_strerror): Remove.
35752         (error_tail): Always define.
35753         (error, error_at_line): Assume C89 or better; always use prototypes.
35754         * lib/fatal.c: Include "fatal.h" first, to test interface.
35755         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35756         (VA_START): Remove; all uses changed to va_start.
35757         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35758         this case.
35759         (exit): Remove decl.
35760         (fatal): Prototype unconditionally.  Assume va_start works.
35761         Abort at end, to pacify gcc.
35762
35763         * lib/euidaccess.c (main): Define with a prototype.
35764
35765         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35766
35767         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35768
35769         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35770         prototypes.
35771         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35772         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35773         (getenv): Remove decl.
35774         (fnmatch): Define using a prototype.
35775         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35776         (FCT): Define using a prototype.
35777
35778         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35779
35780         * lib/gethostname.c: Include <stddef.h>.
35781         (gethostname): Define with prototype.  Length is size_t, not int.
35782
35783 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35784
35785         Assume C89 or better; remove K&R cruft.
35786         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35787         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35788         string.h, getenv, malloc.
35789         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35790         headers.
35791         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35792         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35793         do not check for strerror.
35794         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35795         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35796         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35797         do not check for doprnt or vprintf.
35798         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35799         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35800
35801 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35802
35803         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35804         getversion.c should have been removed then, but was accidentally
35805         preserved.
35806
35807         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35808         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35809
35810 2003-09-08  Karl Berry  <karl@gnu.org>
35811
35812         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35813                 config, forget about prep.
35814
35815         * config/depcomp, missing: update from automake.
35816
35817 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35818
35819         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35821
35822 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35823
35824         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35825         copy_tm_result.  Bug reported by Simon Josefsson in
35826         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35827
35828 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35829
35830         * m4/time_r.m4: New file.
35831         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35832         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35833         is. Check for timegm declaration.
35834         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35835         Do not check for gmtime_r.
35836         Replace mktime if __mktime_internal does not exist and if mktime
35837         hasn't been replaced already.
35838
35839 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35840
35841         * lib/time_r.c, lib/time_r.h: New files.
35842
35843         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35844         __localtime_r.
35845         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35846         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35847
35848         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35849         __gmtime_r.
35850         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35851         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35852         Include <time_r.h>.
35853
35854         * lib/timegm.c: Switch to glibc implementation, with the following
35855         changes:
35856         [defined HAVE_CONFIG_H]: Include <config.h>.
35857         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35858         (__mktime_internal) [!defined _LIBC]: New decl.
35859         (__gmtime_r) [!defined _LIBC]: New macro and function.
35860         (timegm): Use a prototype, since gnulib assumes C89.
35861         Do not bother declaring tmp to be const, as it's not really usefu.
35862         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35863         (timegm): Declare only if HAVE_DECL_TIMEGM.
35864
35865 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35866
35867         * MODULES.html.sh (func_all_modules): Add time_r.
35868         * modules/time_r: New file.
35869         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35870         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35871
35872 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35873
35874         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35875         Bug reported by Lute Kamstra in
35876         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35877
35878         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35879         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35880         course with correspondingly smaller numbers for tomorrow and
35881         yesterday.  From Tadayoshi Funaba.  Originally installed into
35882         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35883         coreutils merge?).
35884
35885 2003-08-31  Simon Josefsson  <jas@extundo.com>
35886
35887         * modules/timegm: New file.
35888         * MODULES.html.sh (func_all_modules): Add timegm.
35889
35890 2003-08-31  Simon Josefsson  <jas@extundo.com>
35891
35892         * m4/timegm.m4: New file.
35893
35894 2003-08-31  Simon Josefsson  <jas@extundo.com>
35895
35896         * lib/timegm.h: New file.
35897         * lib/timegm.c: New file.  Based on
35898         wget-1.8.2/src/http.c:mktime_from_utc.
35899
35900 2003-08-31  Karl Berry  <karl@gnu.org>
35901
35902         * lib/argp.h: update from libc.
35903
35904 2003-08-28  Bruno Haible  <bruno@clisp.org>
35905
35906         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35907         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35908         followed by '#define fnmatch fnmatch_posix' gives an error.
35909
35910 2003-08-28  Bruno Haible  <bruno@clisp.org>
35911
35912         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35913         warning on QNX, which defines O_BINARY to 000000.
35914
35915 2003-08-27  Jim Meyering  <jim@meyering.net>
35916
35917         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35918         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35919         would fail after 32.  Reported by Danny Levinson.  Details here:
35920         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35921
35922 2003-08-24  Bruno Haible  <bruno@clisp.org>
35923
35924         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35925         MSVC7 <stdio.h> is included later.
35926
35927 2003-08-22  Simon Josefsson  <jas@extundo.com>
35928
35929         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35930
35931 2003-08-20  Karl Berry  <karl@gnu.org>
35932
35933         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35934
35935 2003-08-20  Bruno Haible  <bruno@clisp.org>
35936
35937         * modules/progname: New file.
35938         * MODULES.html.sh (func_all_modules): Add progname.
35939
35940 2003-08-20  Bruno Haible  <bruno@clisp.org>
35941
35942         * lib/progname.h: New file, from GNU gettext.
35943         * lib/progname.c: New file, from GNU gettext.
35944         * lib/progreloc.c: New file, from GNU gettext.
35945
35946 2003-08-19  Jim Meyering  <jim@meyering.net>
35947
35948         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35949         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35950
35951 2003-08-19  Bruno Haible  <bruno@clisp.org>
35952
35953         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35954         more.
35955
35956 2003-08-19  Bruno Haible  <bruno@clisp.org>
35957
35958         * lib/xstrdup.c: Assume <string.h> exists.
35959
35960 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35961
35962         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35963         in makefile rules.
35964
35965 2003-08-18  Jim Meyering  <jim@meyering.net>
35966
35967         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35968         * m4/lib-ld.m4: Likewise.
35969
35970 2003-08-18  Jim Meyering  <jim@meyering.net>
35971
35972         * lib/setenv.h: Indent nested cpp directive.
35973         * lib/vasnprintf.c: Remove trailing blanks.
35974
35975 2003-08-17  Simon Josefsson  <jas@extundo.com>
35976
35977         * modules/xstrndup: New file.
35978         * MODULES.html.sh (func_all_modules): Add xstrndup.
35979
35980 2003-08-17  Simon Josefsson  <jas@extundo.com>
35981
35982         * modules/argp: Fix autoconf macro name. Add more dependencies.
35983
35984 2003-08-17  Simon Josefsson  <jas@extundo.com>
35985
35986         * m4/xstrndup.m4: New file.
35987
35988 2003-08-17  Simon Josefsson  <jas@extundo.com>
35989
35990         * m4/argp.m4: New file.
35991
35992 2003-08-17  Simon Josefsson  <jas@extundo.com>
35993             Bruno Haible  <bruno@clisp.org>
35994
35995         * lib/xstrndup.h: New file.
35996         * lib/xstrndup.c: New file.
35997
35998 2003-08-17  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/strndup (Files, Include): Add lib/strndup.h.
36001
36002 2003-08-17  Bruno Haible  <bruno@clisp.org>
36003
36004         * modules/euidaccess (Files): Add lib/euidaccess.h.
36005
36006 2003-08-17  Bruno Haible  <bruno@clisp.org>
36007
36008         * lib/strndup.h: New file.
36009
36010 2003-08-17  Bruno Haible  <bruno@clisp.org>
36011
36012         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36013         like AC_GNU_SOURCE.
36014         * modules/extensions (configure.ac): Comment out the invocation of
36015         gl_USE_SYSTEM_EXTENSIONS.
36016
36017 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36018
36019         Merges from coreutils, etc.
36020         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36021         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36022         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36023         fixing a typo.
36024         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36025         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36026
36027 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36028
36029         Document merge from coreutils.
36030         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36031         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36032         * modules/utime: Add m4/utimes-null.m4.
36033
36034 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36035
36036         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36037         space, undoing this 2003-08-12 change:
36038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36039
36040 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36041
36042         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36043         strtoul.c from libc, undoing this 2003-08-12 change:
36044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36045
36046 2003-08-16  Jim Meyering  <jim@meyering.net>
36047
36048         Merges from coreutils.
36049         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36050         prefix.  Adjust cache variables similarly.  Create 500 rather than
36051         just 300 files, to exercise bug on Darwin6.5, too.
36052         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
36053         $missing_dir.
36054         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
36055         AM_SYS_POSIX_TERMIOS.
36056         Reported by mkc@mathdogs.com.
36057         Also change use of $am_cv_sys_posix_termios
36058         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
36059         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
36060         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
36061         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
36062         in /proc/mounts until it finds one with matching device number.  This
36063         is unnecessary when the FILE argument *is* a mount point.  No stat call
36064         is necessary in that case.  So, disable the statvfs-testing code on
36065         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
36066         as RedHat bug# 84846.
36067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36068         to 1MB, so as not to render systems with no stack size limit (e.g.,
36069         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36070         Include <unistd.h>.  On some systems,
36071         it is required for the definition of _SC_PAGESIZE.
36072
36073 2003-08-16  Jim Meyering  <jim@meyering.net>
36074
36075         Merge from coreutils.
36076         * lib/xstrtoimax.c: #else #if -> #elif.
36077         * lib/xstrtoumax.c: Likewise.
36078
36079 2003-08-16  Jim Meyering  <jim@meyering.net>
36080
36081         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36082         * m4/utimes.m4: Removed.
36083         * m4/utimes-null.m4: Renamed from utimes.m4.
36084
36085         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36086         to 1MB, so as not to render systems with no stack size limit (e.g.,
36087         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36088         Include <unistd.h>.  On some systems,
36089         it is required for the definition of _SC_PAGESIZE.
36090
36091 2003-08-16  Jim Meyering  <jim@meyering.net>
36092         and Paul Eggert  <eggert@cs.ucla.edu>
36093
36094         Merges from coreutils, etc.
36095
36096         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36097         using the latest version from cvs.  This avoids problems with #line
36098         directives using a vendor (Sun) compiler.
36099         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36100         Don't set GETGROUPS_LIB here; now it's
36101         done via getgroups.m4's wrapper function.
36102         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36103         rather than just in sh-util/configure.in, so that the
36104         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36105         same.
36106         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36107         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36108         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36109         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36110         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36111         Remove code that is now done by the newly-required macros.
36112         Append $(EXEEXT) to DF_PROG.
36113         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36114         Do not invoke or require the following here,
36115         since prereq.m4 or some gnulib .m4 now does this for us:
36116         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36117         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36118         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36119         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36120         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36121         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36122         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36123         AC_FUNC_OBSTACK.
36124         Do not replace the following functions, as this is now the job
36125         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36126         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36127         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36128         atexit getpass, strdup, getpagesize.
36129         Replace 'raise'.
36130         Do not check for the following functions, as this is now the job
36131         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36132         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36133         setregid.
36134         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36135         Check for sys/sysctl.h.
36136         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36137         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36138         of checking for ssize_t ourselves.
36139
36140         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36141         Require every macro that gnulib/modules/* suggests for us.
36142         (jm_PREREQ_ADDEXT): New macro.
36143         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36144         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36145
36146         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36147         (gl_PHYSMEM): Use it.
36148         Also check for `table' function.
36149         Check for new headers and functions.
36150         Add check for sys/sysmp.h.
36151         With suggestions from Kaveh Ghazi.
36152         Ignore headers that are present but cannot be compiled.  This
36153         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36154         C 5.4.
36155
36156 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36157
36158         Document merge from coreutils.
36159         * modules/userspec: Depend on posixver.
36160         * modules/strftime: Depend on tzset.
36161
36162 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36163
36164         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36165         rather than tab, after '#' in shell-script copyright notices.
36166         Suggested by Bruno Haible.
36167
36168 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36169
36170         * config/srclist-update: Use three spaces, rather than tab, after '#'
36171         in shell-script copyright notices.  Suggested by Bruno Haible.
36172         Remove unnecessary parenthesization in regular expression.
36173
36174 2003-08-15  Jim Meyering  <jim@meyering.net>
36175
36176         Merge from coreutils.
36177         * lib/xgethostname.c: Include <stdlib.h>.
36178         (xghostname): Don't exit for anything other than memory-related
36179         failure; just return NULL.
36180         * lib/userspec.c: Include "posixver.h".
36181         (parse_user_spec): Accept `.' as a separator only
36182         in pre-POSIX-200112 mode.
36183         * lib/strtoimax.c: Use #elif rather than #else #if.
36184         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36185         Remove function, now that we can rely on a working tzset function.
36186         [!_LIBC]: Ensure that the required autoconf test has been run.
36187         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36188         Use underlying_strftime for %r.
36189         * lib/sha.c: Merge in some clean-up and optimization changes from
36190         glibc.
36191         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36192         Ensure that it is a multiple of 64.
36193         Rearrange loop exit tests so as to avoid performing an
36194         additional fread after encountering an error or EOF.
36195         * lib/realloc.c: Update copyright date.
36196
36197 2003-08-15  Jim Meyering  <jim@meyering.net>
36198         and Paul Eggert  <eggert@twinsun.com>
36199
36200         Merge from coreutils.
36201         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36202         member but strut utmpx does not.  Needed for AIX 4.3.3.
36203         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36204
36205 2003-08-15  Jim Meyering  <jim@meyering.net>
36206         and Paul Eggert  <eggert@cs.ucla.edu>
36207
36208         Merges from coreutils, etc.
36209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36210         Require gl_FUNC_TZSET_CLOBBER.
36211         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36212         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36213         members.
36214
36215 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36216
36217         Help the merge from coreutils.
36218         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36219         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36220         * m4/tzset.m4: Use it too.
36221
36222 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36223
36224         * modules/tzset: New file.
36225
36226 2003-08-14  Jim Meyering  <jim@meyering.net>
36227
36228         Merges from coreutils.
36229         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36230         variable names, rather than @FNMATCH_H@.
36231         * modules/alloca: Likewise for $(ALLOCA_H).
36232
36233         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36234         the three copies of the literal target, `fnmatch.h'.
36235         * modules/alloca (alloca.h): Likewise.
36236
36237 2003-08-14  Jim Meyering  <jim@meyering.net>
36238
36239         Merge from coreutils.
36240         * m4/tzset.m4: New file.
36241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36242         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36243         otherwise, AIX 5.1 systems would end up using the latter.
36244         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36245         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36246         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36247         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36248
36249 2003-08-14  Jim Meyering  <jim@meyering.net>
36250
36251         Merge from coreutils.
36252         * lib/obstack.h: Whitespace changes.
36253         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36254         and xcalloc return values.
36255         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36256         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36257         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36258         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36259         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36260         error from mntctl.
36261         Use mntctl's return value to drive the entry-processing loop, since
36262         we can't rely on the value of the vmt_length member in the last
36263         entry.  On some systems doing so could result in exhausting
36264         virtual memory.  Based in part on a patch from Mike Jetzer.
36265
36266 2003-08-14  Jim Meyering  <jim@meyering.net>
36267         and Paul Eggert  <eggert@twinsun.com>
36268
36269         Merges from coreutils, plus other fixes.
36270         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36271         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36272         for credits and details.  Thanks to Kaveh Ghazi for helping
36273         to keep these files in sync.
36274         (ARRAY_SIZE): Define it.
36275         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36276         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36277         (memcasecmp): Don't assume size_t fits in unsigned int.
36278         Remove casts and duplicate code.
36279         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36280         (memcpy): Remove definition.
36281         Merge in some clean-up and optimization changes from glibc.
36282         [BLOCKSIZE]: Move definition to top of file.
36283         Ensure that it is a multiple of 64.
36284         Rearrange loop exit tests so as to avoid performing an
36285         additional fread after encountering an error or EOF.
36286         * lib/md5.h (md5_uintptr): Define.
36287         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36288         return to the initial working directory.  Preserve errno
36289         for caller.
36290         * lib/idcache.c: Include "xalloc.h".
36291         (xmalloc, xrealloc): Remove decls.
36292         (getuser): Remove casts no longer required in C89.
36293         * lib/human.c: Include stdio.h, for sprintf.
36294         * lib/group-member.c: Include "xalloc.h".
36295         (xmalloc, xrealloc): Remove decls.
36296         (get_group_info): Remove casts no longer required in C89.
36297         * lib/getusershell.c (readname): Remove casts no longer required in
36298         C89.
36299         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36300         * lib/getline.c: Whitespace fix, from coreutils.
36301
36302 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36303
36304         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36305         Check for isascii.
36306
36307         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36308         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36309         Undo previous (whitespace-only) change.
36310
36311 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36312
36313         * lib/exclude.c: Include <ctype.h>
36314         (IN_CTYPE_DOMAIN): New macro.
36315         (is_space): New fn.
36316         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36317         and empty lines.
36318
36319         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36320         Undo previous (whitespace-only) change.
36321
36322 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36323
36324         * config/srclist-update: Change update back to the old behavior,
36325         leaving whitespace alone.  Use one 'sed' command rather than a
36326         pipeline.
36327         (fixlicense): Now a variable, not a function.
36328         (remove_trailing_blanks): Remove.
36329         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36330         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36331         Undo previous (whitespace-only) change.
36332
36333 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36334
36335         Merge from coreutils.
36336         * modules/euidaccess: Add lib_SOURCES, include for new
36337         file euidaccess.h
36338
36339 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36340
36341         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36342         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36343         Normalize leading white space and remove trailing white space.
36344
36345         Merge from coreutils
36346         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36347
36348         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36349         0.12.1.  These files are now being upgraded automatically by
36350         ../config/srclist-update.
36351
36352 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36353
36354         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36355         Normalize leading white space and remove trailing white space.
36356         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36357         notice, as per ../config/srclist-update.
36358
36359         Merge from coreutils.
36360         * lib/euidaccess.h: New file.
36361         * lib/euidaccess.c: Include it.
36362         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36363         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36364         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36365
36366 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36367
36368         * config/srclist-update: Add copyright notice.
36369         (remove_id_lines, remove_trailing_blanks): New constants.
36370         (fixfile): Use them to normalize spacing a bit in copied files.
36371         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36372         Normalize leading white space and remove trailing white space.
36373
36374         * config/texinfo.tex: Sync with texinfo.
36375
36376         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36377         strtoul.c from libc, to merge coreutils whitespace changes.
36378
36379         * config/srclist.txt: Get the following m4 files from gettext:
36380         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36381         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36382         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36383         wint_t.m4.
36384
36385 2003-08-12  Karl Berry  <karl@gnu.org>
36386
36387         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36388         been made.
36389
36390 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36391
36392         * modules/gnu-source, m4/gnu-source.m4:
36393         Remove; we're assuming Autoconf 2.54 or later now.
36394         Suggested by Bruno Haible.
36395         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36396
36397 2003-08-11  Bruno Haible  <bruno@clisp.org>
36398
36399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36400
36401 2003-08-11  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36404         (vasnprintf): Use it instead of wcslen.
36405
36406 2003-08-11  Bruno Haible  <bruno@clisp.org>
36407
36408         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36409         value to ensure that _Bool promotes to int. Use #define for _Bool when
36410         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36411
36412 2003-08-10  Karl Berry  <karl@gnu.org>
36413
36414         * lib/regex.h: update from libc (whitespace fix).
36415
36416 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36417
36418         Merge some files from coreutils.  These changes were
36419         originally made by Jim Meyering.
36420         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36421         many older Unixes require this.
36422         * lib/alloca.c (alloca): Remove cast to argument of free;
36423         no longer needed in C89.
36424         * lib/alloca_.h, regex.h: Fix white space to match
36425         what GNU indent does.
36426
36427 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36428
36429         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36430         apparently Emacs's Unicode mode got confused before my 2003-08-05
36431         checkin.
36432
36433 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36434
36435         * m4/extensions.m4: New file.
36436         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36437         Require gl_USE_SYSTEM_EXTENSIONS.
36438         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36439         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36440
36441 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36442
36443         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36444         * modules/extensions, modules/gnu-source: New files.
36445         * modules/timespec, modules/unlocked-io: Depend on extensions.
36446
36447 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36448
36449         * modules/restrict: New file.
36450         * MODULES.html.sh (func_all_modules): Add restrict.
36451         * modules/regex: Depend on restrict.
36452
36453 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36454
36455         * m4/restrict.m4: New file.
36456         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36457
36458 2003-08-07  Bruno Haible  <bruno@clisp.org>
36459
36460         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36461         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36462
36463 2003-08-07  Bruno Haible  <bruno@clisp.org>
36464
36465         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36466         makes the module 'getndelim2' compatible with the module 'getline'.
36467
36468 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36469
36470         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36471         byte with "\201" to avoid glitches when editing that source file
36472         with multi-gnome-terminal.
36473
36474 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36475
36476         * lib/bumpalloc.h: Remove.
36477
36478 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36479
36480         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36481         * modules/bumpalloc: Remove.
36482
36483 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36484
36485         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36486         GNU coding style.
36487
36488         Merge from coreutils.
36489         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36490         1. From glibc.
36491         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36492         from Karl Berry, implemented by Jim Meyering.
36493         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36494         from Dmitry V. Levin.
36495         Remove anachronistic cast of xrealloc.
36496         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36497         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36498         type. Otherwise, it wouldn't compile with at least /bin/cc on
36499         ymp-cray-unicos9.0.2.X.
36500         Combine two mostly-identical uses of alloca into one.
36501         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36502
36503 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36504
36505         [From Emacs.]
36506
36507         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36508         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36509         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36510         obsolete NLIST_NAME_UNION.
36511         [__GNU__]: Undef BSD and FSCALE.
36512         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36513
36514 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36515
36516         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36517         an enum type, so that it's guaranteed to promote to int.  See:
36518         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36519
36520 2003-08-03  Karl Berry  <karl@gnu.org>
36521
36522         * config/depcomp: update from automake.
36523
36524 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36525
36526         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36527         (strerror): Don't assume that a printable int fits in 14 bytes.
36528
36529 2003-07-31  Bruno Haible  <bruno@clisp.org>
36530
36531         * modules/getpass-gnu: New file.
36532         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36533
36534 2003-07-31  Bruno Haible  <bruno@clisp.org>
36535
36536         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36537
36538 2003-07-24  Karl Berry  <karl@gnu.org>
36539
36540         * config/missing: update from automake.
36541
36542 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36543             Bruno Haible  <bruno@clisp.org>
36544
36545         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36546         * lib/getline.c (getline, getdelim): Likewise.
36547         Remove _GNU_SOURCE define; now it's defined in config.h through
36548         m4/getline.m4.
36549
36550 2003-07-23  Karl Berry  <karl@gnu.org>
36551
36552         * config/config.sub: update from prep.
36553
36554 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36555
36556         * modules/xalloc (Depends-on): Add exitfail.
36557         * modules/xmemcoll: Likewise.
36558
36559 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36560
36561         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36562         over-parenthesization in macros.
36563
36564         Sync with coreutils.
36565
36566         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36567         required by C99.
36568
36569         Use `exit_failure' for xalloc and xmemcoll instead of their own
36570         private exit-failure variables.
36571         * lib/xalloc.h (xalloc_exit_failure): Remove.
36572         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36573         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36574         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36575         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36576         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36577
36578 2003-07-20  Jim Meyering  <jim@meyering.net>
36579
36580         * modules/closeout (Depends-on): Add exitfail.
36581         Suggestion from Bruno Haible.
36582
36583 2003-07-19  Karl Berry  <karl@gnu.org>
36584
36585         * config/config.sub: update from prep.
36586
36587 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36588
36589         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36590         Remove.
36591         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36592         to test that it can stand by itself.  Include "exitfail.h".
36593         Clients should set exit_failure instead.
36594         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36595
36596 2003-07-18  Bruno Haible  <bruno@clisp.org>
36597
36598         * modules/getndelim2: New file.
36599         * modules/getline: Share files with module getndelim2.
36600         * modules/getnline: Depend on getndelim2 instead of sharing files with
36601         it. Add getnline.c to lib_SOURCES.
36602         * MODULES.html.sh (func_all_modules): Add getndelim2.
36603
36604 2003-07-18  Bruno Haible  <bruno@clisp.org>
36605
36606         * m4/getndelim2.m4: New file.
36607         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36608         invoke gl_PREREQ_GETNDELIM2.
36609         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36610         gl_PREREQ_GETNDELIM2.
36611         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36612         gl_GETNDELIM2.
36613
36614 2003-07-18  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/getndelim2.h: New file.
36617         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36618         getndelim2.h.
36619         (getndelim2): Make non-static. Change return type to ssize_t.
36620         * lib/getline.h: Change argument names.
36621         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36622         * lib/getnline.c: Include getndelim2.h.
36623
36624 2003-07-18  Andreas Schwab  <schwab@suse.de>
36625
36626         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36627
36628 2003-07-17  Karl Berry  <karl@gnu.org>
36629
36630         * config/config.sub: update from prep.
36631
36632 2003-07-17  Bruno Haible  <bruno@clisp.org>
36633
36634         * modules/getnline: New file.
36635         * modules/getline: Add lib/getndelim2.c to source file list.
36636         * MODULES.html.sh (func_all_modules): Add getnline.
36637
36638 2003-07-17  Bruno Haible  <bruno@clisp.org>
36639
36640         * m4/getnline.m4: New file.
36641
36642 2003-07-17  Bruno Haible  <bruno@clisp.org>
36643
36644         * m4/Makefile.am.in: Remove file.
36645         * m4/Makefile.am: Remove file.
36646         * m4/Makefile.in: Remove file.
36647
36648 2003-07-17  Bruno Haible  <bruno@clisp.org>
36649
36650         * lib/getnline.h: New file.
36651         * lib/getnline.c: New file.
36652         * lib/getndelim2.c: New file, extracted from getline.c.
36653         (getndelim2): Renamed from getdelim2, with added nmax argument.
36654         * lib/getline.c: Include getndelim2.c.
36655         (getdelim2): Moved out to getndelim2.c.
36656         (getline, getdelim): Update.
36657
36658 2003-07-17  Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/Makefile.am: Remove file.
36661         * lib/Makefile.in: Remove file.
36662
36663 2003-07-17  Bruno Haible  <bruno@clisp.org>
36664
36665         * configure.in: Remove file.
36666         * Makefile.in: Remove file.
36667
36668 2003-07-17  Bruno Haible  <bruno@clisp.org>
36669
36670         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36671
36672 2003-07-16  Karl Berry  <karl@gnu.org>
36673
36674         * config/srclist-update: was running fixlicense twice, which caused
36675                 texinfo.tex to be nullified for some reason.  Simplify,
36676                 $gplsrc is no longer needed as far as I can see?
36677
36678 2003-07-16  Jim Meyering  <jim@meyering.net>
36679
36680         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36681
36682 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36683
36684         * config/srclist.txt: Get the following files from gettext-runtime/intl
36685         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36686         ref-del.sin.  From Bruno Haible.
36687         * config/srclist-update (fixfile): Change grep pattern again, since the
36688         previous fix didn't work (there was another trailing $).  Use
36689         '[$]' to escape the $s.
36690
36691 2003-07-15  Karl Berry  <karl@gnu.org>
36692
36693         * lib/vasnprintf.c: update from gettext.
36694
36695 2003-07-15  Karl Berry  <karl@gnu.org>
36696
36697         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36698         gets expanded when surrounded by '$'.
36699
36700 2003-07-15  Jim Meyering  <jim@meyering.net>
36701
36702         * modules/save-cwd: Don't depend on error.  From Derek Price.
36703
36704 2003-07-15  Jim Meyering  <jim@meyering.net>
36705
36706         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36707
36708 2003-07-14  Simon Josefsson  <jas@extundo.com>
36709
36710         * modules/mempcpy: New file.
36711         * MODULES.html.sh (func_all_modules): Add mempcpy.
36712
36713 2003-07-14  Simon Josefsson  <jas@extundo.com>
36714
36715         * m4/mempcpy.m4: New file.
36716
36717 2003-07-14  Simon Josefsson  <jas@extundo.com>
36718
36719         * lib/mempcpy.h: New file.
36720         * lib/mempcpy.c: New file.
36721
36722 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36723
36724         * modules/getdate, modules/posixtm: Depend on mktime.
36725
36726 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36727
36728         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36729         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36730         unicodeio.c, unicodeio.h, unlocked-io.h:
36731         Switch from LGPL to GPL.
36732
36733 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36734
36735         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36736         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36737         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36738         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36739         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36740         updated automatically by ../config/srclist-update.  This changes
36741         their license from LPGL to GPL.
36742
36743 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36744
36745         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36746         assumed to refer to the root of the most recent stable gettext version.
36747         * config/srclistvars.sh: Add defaults for eggert.
36748         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36749         Match "This program" as well as "The program".  This is needed
36750         for gettext.
36751
36752 2003-07-14  Jim Meyering  <jim@meyering.net>
36753
36754         Don't emit diagnostics.  Let callers do that.
36755         * lib/save-cwd.c: Don't include "error.h".
36756         (save_cwd): Don't call error.  Ensure that errno is valid
36757         when returning nonzero.
36758
36759         * lib/save-cwd.h (restore_cwd): Update prototype.
36760         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36761         Simplify.  Don't call error upon failure.  Let callers do that.
36762         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36763         when auditing is enabled.  But don't bother updating the #if.
36764
36765 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36766
36767         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36768         it breaks C++ compilation.
36769         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36770
36771 2003-07-10  Simon Josefsson  <jas@extundo.com>
36772
36773         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36774
36775 2003-07-10  Jim Meyering  <jim@meyering.net>
36776
36777         * m4/clock_time.m4: Remove trailing blank.
36778         * m4/intmax_t.m4: Likewise.
36779
36780 2003-07-10  Jim Meyering  <jim@meyering.net>
36781
36782         * lib/vasnprintf.c: Remove trailing blanks.
36783         Make cpp indentation consistent.
36784
36785 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36786
36787         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36788         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36789         Switch from LGPL to GPL.
36790
36791 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36792
36793         * config/srclist.txt: Sort sublists.  Add
36794         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36795         that differ from gnulib for one reason or another; we'd like this list
36796         to be smaller but for now let's document what we have.
36797
36798 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36799
36800         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36801         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36802         and sweeter "eval x=$x".
36803         * config/srclist.txt: Get lib/argp* from glibc.
36804
36805 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36806
36807         * lib/mktime.c: Fix some boundary cases and remove need for floating
36808         point.
36809
36810         Issue a compile-time diagnostic if time_t is floating point, or if
36811         two's complement arithmetic is not in effect, or if arithmetic
36812         right shift does not propagate the sign.  These assumptions were
36813         all in the original code but they weren't checked.
36814
36815         (TIME_T_MIDPOINT, verify): New macros.
36816         (__isleap): Remove; it has integer overflow problems.
36817         (leapyear): New function, without those problems.
36818         (ydhms_tm_diff): Remove; splitting into two parts.
36819         (ydhms_diff): New function, containing the arithmetic part of
36820         the old ydhms_tm_diff function.  Issue a compile-time
36821         diagnostic if we are not using C99 integer division.
36822         Avoid casts when possible.
36823         (guess_time_tm): New function, containing the checking part of
36824         the old ydhms_tm_diff function.  Return the new value, rather than
36825         the difference between it and the old.  Accept a new argument T
36826         so that *T specifies the old value.  Check for overflow in the result.
36827
36828         (__mktime_internal): Use a time_t offset, not a long int offset.
36829         This undoes the 2003-06-04 change, which is no longer needed now
36830         that we have better overflow checking.
36831         (localtime_offset): Likewise.
36832
36833         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36834         and long are 64-bit but int is only 32-bit.
36835         (ydhms_diff): Use long int to store year1 and yday1.
36836         Issue a compile-time diagnostic if long int is not wide enough.
36837
36838         (__mktime_internal): Use long int to store adjusted year and yday.
36839         Use plain C rather than preprocessor commands, if that doesn't
36840         affect efficiency.
36841         Check for overflow (and try to repair) after each probe
36842         rather than checking only at the very end.  This avoids some bugs
36843         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36844         does not equal GMT offset at maximum time).
36845         Use integer to check for overflow rather than floating point; this
36846         is more portable to non-IEEE hosts, and is a tad faster.
36847         When we detect that we are oscillating between two values,
36848         don't check whether tm_isdst has the requested value, since
36849         we already know the answer.  When tm_isdst has the wrong value,
36850         use a different heuristic to find the right one, based on the
36851         extreme values actually observed in practice in tz2003a,
36852         rather than the (overly optimistic) "previous 3 calendar quarters".
36853
36854         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36855         "T const" to accommodate glibc style.
36856         (check_result): Use less-confusing report format.  "long" -> "long int.
36857         (main): Likewise.
36858         Don't loop if the iteration overflows time_t.
36859         Allow a negative step in the iteration.
36860
36861 2003-07-06  Karl Berry  <karl@gnu.org>
36862
36863         * config/depcomp: update from automake.
36864         * config/config.sub: update from prep.
36865
36866 2003-07-03  Karl Berry  <karl@gnu.org>
36867
36868         * config/config.guess: update from prep.
36869
36870 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36871
36872         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36873         xreadlink.c now includes it unconditionally.
36874
36875 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36876
36877         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36878         having it depend on HAVE_SYS_TYPES_H.
36879
36880 2003-07-01  Bruno Haible  <bruno@clisp.org>
36881
36882         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36883         <sys/types.h> should be sufficient.
36884         Reported by Paul Eggert.
36885
36886 2003-06-26  Karl Berry  <karl@gnu.org>
36887
36888         * config/depcomp: update from automake.
36889
36890 2003-06-26  Bruno Haible  <bruno@clisp.org>
36891
36892         * modules/human: Depend on module stdbool.
36893
36894 2003-06-25  Bruno Haible  <bruno@clisp.org>
36895
36896         * modules/readlink: New file.
36897         * modules/xreadlink: Depend on it.
36898         * MODULES.html.sh (func_all_modules): Add readlink.
36899
36900 2003-06-25  Bruno Haible  <bruno@clisp.org>
36901
36902         * m4/readlink.m4: New file.
36903
36904 2003-06-25  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/readlink.c: New file.
36907
36908 2003-06-22  Karl Berry  <karl@gnu.org>
36909
36910         * config/srclist.txt: update mkinstalldirs from automake.
36911         * config/mkinstalldirs: update.
36912
36913 2003-06-22  Bruno Haible  <bruno@clisp.org>
36914
36915         Portability to mingw32.
36916         * m4/ssize_t.m4: New file, from GNU gettext.
36917         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36918         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36919
36920 2003-06-22  Bruno Haible  <bruno@clisp.org>
36921
36922         * modules/safe-read: Add m4/ssize_t.m4.
36923         * modules/xreadlink: Add m4/ssize_t.m4.
36924
36925 2003-06-20  Bruno Haible  <bruno@clisp.org>
36926
36927         Assume C89, so PARAMS isn't needed.
36928         * lib/unicodeio.h (PARAMS): Remove.
36929         * lib/unicodeio.c: Don't use PARAMS.
36930
36931 2003-06-18  Karl Berry  <karl@gnu.org>
36932
36933         * config/config.{guess,sub}: update from prep.
36934
36935 2003-06-18  Jim Meyering  <jim@meyering.net>
36936
36937         Merge changes from coreutils.
36938         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36939         Remove explicit declarations of xmalloc and realloc.
36940         Include xalloc.h.
36941         (read_utmp): Remove anachronistic cast of xmalloc.
36942
36943 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36944
36945         Assume C89, so PARAMS isn't needed.
36946         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36947         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36948         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36949         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36950         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36951         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36952         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36953         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36954         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36955         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36956         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36957         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36958         no longer needed. Anyway, config.h should always be included before any
36959         other file.
36960
36961 2003-06-11  Simon Josefsson  <jas@extundo.com>
36962
36963         * modules/sysexits: New file.
36964         * MODULES.html.sh (func_all_modules): Add sysexits.
36965
36966 2003-06-11  Simon Josefsson  <jas@extundo.com>
36967
36968         * lib/sysexit_.h: New file.
36969
36970 2003-06-11  Derek Price  <derek@ximbiot.com>
36971
36972         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36973         necessary.
36974
36975 2003-06-11  Bruno Haible  <bruno@clisp.org>
36976
36977         * m4/sysexits.m4: New file.
36978
36979 2003-06-10  Simon Josefsson  <jas@extundo.com>
36980
36981         * lib/argp.h: New file, from glibc.
36982         * lib/argp-ba.c: New file, from glibc.
36983         * lib/argp-eexst.c: New file, from glibc.
36984         * lib/argp-fmtstream.c: New file, from glibc.
36985         * lib/argp-fmtstream.h: New file, from glibc.
36986         * lib/argp-fs-xinl.c: New file, from glibc.
36987         * lib/argp-help.c: New file, from glibc.
36988         * lib/argp-namefrob.h: New file, from glibc.
36989         * lib/argp-parse.c: New file, from glibc.
36990         * lib/argp-pv.c: New file, from glibc.
36991         * lib/argp-pvh.c: New file, from glibc.
36992         * lib/argp-xinl.c: New file, from glibc.
36993
36994 2003-06-10  Simon Josefsson  <jas@extundo.com>
36995
36996         * modules/strchrnul: New file.
36997
36998 2003-06-10  Simon Josefsson  <jas@extundo.com>
36999
37000         * modules/argp: New file.
37001
37002 2003-06-10  Simon Josefsson  <jas@extundo.com>
37003
37004         * m4/strchrnul.m4: New file.
37005
37006 2003-06-10  Simon Josefsson  <jas@extundo.com>
37007
37008         * lib/strchrnul.h: New file.
37009         * lib/strchrnul.c: New file.
37010
37011 2003-06-10  Bruno Haible  <bruno@clisp.org>
37012
37013         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37014
37015 2003-06-07  Karl Berry  <karl@gnu.org>
37016
37017         * config/config.{guess,sub}: update from prep.
37018
37019 2003-06-07  Jim Meyering  <jim@meyering.net>
37020
37021         * modules/strtod: Use $(...) notation, not @...@ for
37022         AC_REPLACE'd variables.
37023         * modules/localcharset: Likewise.
37024
37025 2003-06-07  Jim Meyering  <jim@meyering.net>
37026
37027         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37028         in place of my name in the copyright comment.
37029         Remove definition and uses of __P.
37030
37031         From coreutils.
37032         * lib/stat.c: Don't declare xmalloc explicitly.
37033         Instead, include "xalloc.h".
37034         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37035         xrealloc, and xcalloc return values.
37036         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37037         Improve comment.
37038         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37039
37040 2003-06-07  Bruno Haible  <bruno@clisp.org>
37041
37042         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37043         avoid AC_CONFIG_LINKS.
37044         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37045         fnmatch.h, to avoid AC_CONFIG_LINKS.
37046         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37047
37048 2003-06-07  Bruno Haible  <bruno@clisp.org>
37049
37050         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37051         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37052         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37053         directory.
37054         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
37055         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37056         directory.
37057
37058 2003-06-06  Jim Meyering  <jim@meyering.net>
37059
37060         Merge from coreutils.
37061         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
37062         Consolidate declarations and initializations of *_base* locals.
37063
37064         Merge from coreutils.
37065         This avoids a core dump on systems without GNU putenv,
37066         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
37067         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
37068         (unsetenv): New static function, from GNU libc.
37069         (rpl_putenv): Use it.
37070
37071         * lib/modechange.c: Remove trailing blanks.
37072
37073         Merge from coreutils.
37074         * lib/fsusage.c: Remove declaration of statfs.
37075         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37076
37077         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37078
37079 2003-06-06  Jim Meyering  <jim@meyering.net>
37080
37081         * lib/stdbool_.h: Renamed from stdbool.h.in.
37082
37083 2003-06-06  Jim Meyering  <jim@meyering.net>
37084             Bruno Haible  <bruno@clisp.org>
37085
37086         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37087         Adjust Makefile.am snippet not to redirect directly to target.
37088         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37089
37090 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37091
37092         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37093         mismatch, look in future quarters as well as past.  This fixes a
37094         bug when processing fall-backwards gaps immediately after a long
37095         period of daylight-saving time.
37096
37097         * lib/mktime.c: Assume freestanding C89 or better.
37098         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37099         (__P): Remove; not used.
37100         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37101         (mktime, not_equal_tm, print_tm, check_result,
37102         main): Use prototypes.  Use const * where appropriate.
37103         (main): Fix typo in testing code that uncovered by above changes.
37104         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37105
37106 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37107
37108         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37109         locale.h, localeconv.  This merges changes from coreutils.
37110
37111         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37112         It can be removed after the next Autoconf is released.
37113         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37114         needed.
37115
37116 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37117
37118         * lib/mktime.c: Fix Debian bug 177940
37119         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37120         (localtime_offset): Now long int, not time_t, because we want it
37121         to be guaranteed to be signed.  All uses changed.
37122         (__mktime_internal): If overflow would occur when adding offset,
37123         don't add it.
37124
37125         Merge 'human' changes from coreutils.  Rewrite to support
37126         locale-specific notations like thousands separators.
37127         * lib/human.c: Simplify authorship notice.
37128         Include human.h immediately after config.h.
37129         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37130         <limits.h>: Do not include, since human.h does.
37131         (SIZE_MAX, UINTMAX_MAX): New macros.
37132         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37133         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37134         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37135         (power_letter): Renamed from suffixes.
37136         (generate_suffix_backwards): Remove.
37137         (adjust_value): Now takes int style (because of human.h changes)
37138         and long double value (for greater precision on some platforms).
37139         (group_number): New function.
37140         (human_readable): Use it.  Use integer options, not enum.
37141         Put the options before the sizes in the arg list.
37142         Support all the new options.
37143         The old human_readable function has been removed;
37144         use inttostr.h instead.
37145         (human_readable, default_block_size, humblock):
37146         Use uintmax_t, not int, for block sizes.
37147         (human_readable_inexact, block_size_types): Remove.
37148         (block_size_opts): New constant.
37149         (human_options): Renamed from human_block_size, with new signature
37150         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37151         * lib/human.h: Add copyright and authorship notice.
37152         Include <limits.h> and <stdbool.h> unconditionally.
37153         (PARAMS): Remove.  All uses removed.
37154         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37155         (enum human_inexact_style): Remove tag; now a nameless enum.
37156         (human_floor, human_ceiling, human_round_to_even): Now have
37157         values 2, 0, 1 rather than -1, 1, 0.
37158         (human_group_digits, human_suppress_point_zero, human_autoscale,
37159         human_base_1024, human_SI, human_B): New constants.
37160         (human_readable_inexact, human_block_size): Remove.
37161         (human_readable): Size args are now uintmax_t, not int.
37162         (human_options): New decl.
37163
37164         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37165         unnecessary now that we assume C89 or better.  This change
37166         imported from coreutils.
37167
37168         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37169         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37170         in the 2003-05-30 sync from glibc.
37171
37172         .h files should stand alone, but we shouldn't include <sys/types.h>
37173         if we can get away with just <stddef.h>.
37174
37175         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37176         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37177         rather than <sys/types.h>, as we merely need size_t.
37178         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37179         to get size_t.
37180         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37181         Include <stdio.h>, to get FILE.
37182         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37183         memcasecmp.h has included <stddef.h> and all we need is size_t.
37184         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37185         our interface, instead of including <sys/types.h>
37186
37187 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37188
37189         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37190         now, as glibc mktime is buggy on non-glibc systems.
37191
37192 2003-06-03  Karl Berry  <karl@gnu.org>
37193
37194         * config/config.sub: update from prep.
37195
37196 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37197
37198         [from coreutils]
37199         Fix some minor time-related bugs with POSIX time arguments.
37200         Some valid time stamps were being rejected (notably -1, and
37201         time stamps before 1900 on 64-bit hosts).  And some invalid
37202         time stamps were being accepted, e.g. September 31.
37203
37204         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37205         that we can return (time_t) -1 successfully.
37206         * lib/posixtm.c: Likewise.
37207         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37208         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37209         (t): Remove static var.
37210         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37211         of static var.  All uses changed.
37212         (year): Do not reject years before 1900; they can occur with
37213         64-bit time_t.
37214         (posix_time_parse): Do not check for out-of-range components;
37215         that is now the caller's responsibility, since our checks were
37216         only approximations.
37217         (posixtime): Use mktime to check for out-of-range components,
37218         since it knows them exactly.
37219         If mktime returns (time_t) -1, check whether an error actually occurred
37220         by invoking localtime on -1.
37221         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37222         posixtime failures better.
37223         Improve the test data (in comments only).
37224
37225 2003-06-02  Karl Berry  <karl@gnu.org>
37226
37227         * config/mkinstalldirs (version): new variable.
37228         (--version): new option.
37229         (usage): improve message.
37230
37231 2003-05-30  Karl Berry  <karl@gnu.org>
37232
37233         * lib/mktime.c: update from libc.
37234
37235 2003-05-30  Bruno Haible  <bruno@clisp.org>
37236
37237         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37238         * config/config.rpath: Upgrade to gettext-0.12.1.
37239
37240 2003-05-30  Bruno Haible  <bruno@clisp.org>
37241
37242         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37243         * m4/nls.m4: New file, from gettext-0.12.1.
37244         * m4/po.m4: New file, from gettext-0.12.1.
37245         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37246
37247 2003-05-30  Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37250         * lib/localcharset.h: Likewise.
37251         * lib/localcharset.c: Likewise.
37252
37253 2003-05-29  Karl Berry  <karl@gnu.org>
37254
37255         * config/config.rpath: update from gettext.
37256
37257 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37258
37259         Assume the headers required for C89 freestanding compilers.
37260         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37261         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37262         * m4/human.m4 (gl_HUMAN): Likewise.
37263         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37264         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37265         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37266         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37268         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37269
37270 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37271
37272         Assume the headers required for C89 freestanding compilers.
37273         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37274         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37275         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37276         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37277         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37278         define, since <limits.h> is guaranteed to do that.
37279         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37280         * lib/exclude.c: Include <stdbool.h> unconditionally.
37281         * lib/tempname.c: Include <stddef.h> unconditionally.
37282         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37283         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37284         <stddef.h> does that.
37285         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37286         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37287         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37288         needed.
37289         * lib/xstrtol.c: Likewise.
37290         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37291         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37292
37293         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37294         warnings on some platforms.
37295
37296         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37297         arbitrarily.
37298
37299 2003-05-26  Jim Meyering  <jim@meyering.net>
37300
37301         Merge in a change from coreutils:
37302         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37303         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37304         that condition, rather than `-1' which is slightly misleading.
37305         Change the name of the cache variable to have the gl_ prefix.
37306         Prompted by a patch from Richard Dawe for DJGPP.
37307
37308 2003-05-24  Karl Berry  <karl@gnu.org>
37309
37310         * config/config.guess: update from prep.
37311
37312 2003-05-22  Karl Berry  <karl@gnu.org>
37313
37314         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37315
37316 2003-05-20  Karl Berry  <karl@gnu.org>
37317
37318         * config/config.guess: update from prep.
37319
37320 2003-05-18  Karl Berry  <karl@gnu.org>
37321
37322         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37323         might actually be set by the user.
37324
37325         * config/depcomp, install-sh, mdate-sh: update from automake.
37326
37327 2003-05-17  Bruno Haible  <bruno@clisp.org>
37328
37329         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37330         invalid expansion for AC_EGREP_CPP.
37331         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37332         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37333         Suggested by Akim Demaille <akim@epita.fr> in
37334         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37335
37336 2003-05-12  Jim Meyering  <jim@meyering.net>
37337
37338         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37339         the space-padded-by-default conversion specifiers, %e, %k, %l.
37340
37341 2003-05-12  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37344         the string is longer than 4 KB.
37345
37346 2003-05-11  Karl Berry  <karl@gnu.org>
37347
37348         * config/config.{guess,sub}: update from prep.
37349
37350 2003-05-09  Bruno Haible  <bruno@clisp.org>
37351
37352         * modules/error: Add m4/strerror_r.m4 to file list.
37353
37354 2003-05-03  Bruno Haible  <bruno@clisp.org>
37355
37356         Upgrade to Unicode-4.0.
37357         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37358         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37359         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37360         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37361         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37362         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37363         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37364         Change width of U+E0100..U+E01EF from 1 to 0.
37365
37366 2003-04-25  Jim Meyering  <jim@meyering.net>
37367
37368         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37369         of type size_t, not int.
37370
37371 2003-04-25  Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/copy-file.c: Include <stddef.h>, for size_t.
37374
37375 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37376
37377         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37378         code which expansion is under static control.  Patch imported from
37379         Akim Demaille's patch to Bison; see
37380         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37381
37382 2003-04-14  Bruno Haible  <bruno@clisp.org>
37383
37384         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37385
37386 2003-04-11  Jim Meyering  <jim@meyering.net>
37387
37388         Merge changes from Coreutils.
37389
37390         2003-03-22  Jim Meyering  <jim@meyering.net>
37391
37392         * lib/strftime.c (widen): Cast alloca return value to proper type.
37393
37394         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37395
37396         From GNU libc.
37397         * lib/strftime.c (my_strftime): Handle very large width
37398         specifications for numeric values correctly.  Improve checks for
37399         overflow.
37400
37401         2003-01-19  Jim Meyering  <jim@meyering.net>
37402
37403         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37404         definitions.
37405         (nl_get_alt_digit) [! defined my_strftime]: Define.
37406         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37407         _nl_get_alt_digit and _nl_get_walt_digit.
37408
37409         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37410         libc. These changes have no effect outside of _LIBC.
37411
37412 2003-04-10  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/findprog: New file.
37415         * MODULES.html.sh (func_all_modules): Add it.
37416
37417 2003-04-10  Bruno Haible  <bruno@clisp.org>
37418
37419         * m4/findprog.m4: New file.
37420         * m4/eaccess.m4: New file.
37421
37422 2003-04-10  Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/findprog.h: New file, from GNU gettext.
37425         * lib/findprog.c: New file, from GNU gettext.
37426
37427 2003-04-05  Jim Meyering  <jim@meyering.net>
37428
37429         Merge changes from Coreutils.
37430
37431         * lib/exclude.h (PARAMS): Remove definition and uses.
37432         * lib/exclude.c: Remove uses of `PARAMS'.
37433
37434         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37435         Add test-cases for DOS filenames. Declare program_name.
37436         (main): Set up program_name.  Patch by Rich Dawe.
37437
37438         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37439         error from mntctl.
37440         Use mntctl's return value to drive the entry-processing loop, since
37441         we can't rely on the value of the vmt_length member in the last
37442         entry.  On some systems doing so could result in exhausting
37443         virtual memory.  Based in part on a patch from Mike Jetzer.
37444
37445 2003-04-04  Bruno Haible  <bruno@clisp.org>
37446
37447         * modules/linebreak: New file.
37448         * MODULES.html.sh (func_all_modules): Add it.
37449
37450 2003-04-04  Bruno Haible  <bruno@clisp.org>
37451
37452         * m4/linebreak.m4: New file.
37453
37454 2003-04-04  Bruno Haible  <bruno@clisp.org>
37455
37456         * lib/linebreak.h: New file, from GNU gettext.
37457         * lib/linebreak.c: New file, from GNU gettext with slight
37458         modifications.
37459         * lib/lbrkprop.h: New file, from GNU gettext.
37460
37461 2003-04-03  Bruno Haible  <bruno@clisp.org>
37462
37463         * modules/utf8-ucs4: New file.
37464         * modules/utf16-ucs4: New file.
37465         * modules/ucs4-utf8: New file.
37466         * modules/ucs4-utf16: New file.
37467         * MODULES.html.sh (func_all_modules): Add them.
37468
37469 2003-04-03  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/utf-ucs4.m4: New file.
37472         * m4/ucs4-utf.m4: New file.
37473
37474 2003-04-03  Bruno Haible  <bruno@clisp.org>
37475
37476         * lib/utf8-ucs4.h: New file, from GNU gettext.
37477         * lib/utf16-ucs4.h: New file, from GNU gettext.
37478         * lib/ucs4-utf8.h: New file, from GNU gettext.
37479         * lib/ucs4-utf16.h: New file, from GNU gettext.
37480
37481 2003-04-02  Bruno Haible  <bruno@clisp.org>
37482
37483         * modules/binary-io: New file.
37484         * MODULES.html.sh (func_all_modules): Add it.
37485
37486 2003-04-02  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/binary-io.h: New file, from GNU gettext.
37489
37490 2003-04-01  Bruno Haible  <bruno@clisp.org>
37491
37492         * modules/pathname: New file.
37493         * MODULES.html.sh (func_all_modules): Add it.
37494
37495 2003-04-01  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/pathname.h: New file, from GNU gettext.
37498         * lib/concatpath.c: New file, from GNU gettext.
37499
37500 2003-03-30  Bruno Haible  <bruno@clisp.org>
37501
37502         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37503
37504 2003-03-30  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37507         function chown() doesn't exist.
37508
37509 2003-03-28  Bruno Haible  <bruno@clisp.org>
37510
37511         * modules/copy-file: New file.
37512         * MODULES.html.sh (func_all_modules): Add it.
37513
37514 2003-03-28  Bruno Haible  <bruno@clisp.org>
37515
37516         * m4/copy-file.m4: New file.
37517
37518 2003-03-28  Bruno Haible  <bruno@clisp.org>
37519
37520         * lib/copy-file.h: New file, from GNU gettext.
37521         * lib/copy-file.c: New file, from GNU gettext.
37522
37523 2003-03-18  Jim Meyering  <jim@meyering.net>
37524
37525         * lib/quote.c (quote_n): Fix typo in comment.
37526
37527 2003-03-18  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37530         checking.
37531         * m4/onceonly_2_57.m4: Likewise.
37532
37533 2003-03-17  Bruno Haible  <bruno@clisp.org>
37534
37535         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37536         (m4_quote): Remove macro.
37537         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37538
37539 2003-03-14  Jim Meyering  <jim@meyering.net>
37540
37541         Merge changes from Coreutils.
37542         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37543         to be const, in order to avoid warnings.
37544         (obstack_room): Likewise.
37545         (obstack_empty_p): Likewise.
37546
37547 2003-03-14  Bruno Haible  <bruno@clisp.org>
37548
37549         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37550         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37551
37552 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37553
37554         Merge changes from Bison.
37555         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37556         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37557         when compiling Bison 1.875's `bitset bset = obstack_alloc
37558         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37559         * lib/hash.c: Include <stdbool.h> unconditionally.
37560
37561 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37562
37563         * m4/onceonly.m4 (m4_quote): New macro.
37564         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37565         Quote AC_FOREACH variable-expansions properly.
37566
37567 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37568
37569         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37570
37571 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37572
37573         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37574         Reported by Bruce Becker; see:
37575         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37576
37577 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37578             Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37581         Reported by John Hughes, see
37582         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37583
37584 2003-02-20  Bruno Haible  <bruno@clisp.org>
37585
37586         * MODULES.html.sh (func_all_modules): Add poll.
37587
37588 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37589
37590         * modules/poll: New file.
37591
37592 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37593
37594         * lib/poll_.h: New file.
37595         * lib/poll.c: New file.
37596
37597 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37598
37599         * m4/poll.m4: New file.
37600
37601 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37602
37603         * modules/mathl: New file.
37604
37605 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37606
37607         * lib/mathl.h: New file.
37608         * lib/acosl.c: New file.
37609         * lib/asinl.c: New file.
37610         * lib/atanl.c: New file.
37611         * lib/ceill.c: New file.
37612         * lib/cosl.c: New file.
37613         * lib/expl.c: New file.
37614         * lib/floorl.c: New file.
37615         * lib/frexpl.c: New file.
37616         * lib/ldexpl.c: New file.
37617         * lib/logl.c: New file.
37618         * lib/sincosl.c: New file.
37619         * lib/sinl.c: New file.
37620         * lib/sqrtl.c: New file.
37621         * lib/tanl.c: New file.
37622         * lib/trigl.c: New file.
37623         * lib/trigl.h: New file.
37624
37625 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37626
37627         * m4/mathl.m4: New file.
37628
37629 2003-02-18  Bruno Haible  <bruno@clisp.org>
37630
37631         * MODULES.html.sh (func_all_modules): Add mathl.
37632
37633 2003-02-17  Bruno Haible  <bruno@clisp.org>
37634
37635         * modules/mkdtemp: New module.
37636         * MODULES.html.sh (func_all_modules): Add it.
37637
37638 2003-02-17  Bruno Haible  <bruno@clisp.org>
37639
37640         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37641
37642 2003-02-17  Bruno Haible  <bruno@clisp.org>
37643
37644         * lib/mkdtemp.h: New file, from GNU gettext.
37645         * lib/mkdtemp.c: New file, from GNU gettext.
37646
37647 2003-02-02  Jim Meyering  <jim@meyering.net>
37648
37649         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37650         e.g. glibc-2.2.93.
37651
37652 2003-01-31  Bruno Haible  <bruno@clisp.org>
37653
37654         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37655         'rpl_rename'.
37656         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37657         'rpl_strnlen'.
37658         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37659         'rpl_strtod'.
37660         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37661         'rpl_utime'.
37662
37663 2003-01-31  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/rename.c: #undef rename before defining rpl_rename.
37666         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37667
37668 2003-01-30  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/vasnprintf, modules/vasprintf: New modules.
37671         * MODULES.html.sh (func_all_modules): Add them.
37672
37673 2003-01-30  Bruno Haible  <bruno@clisp.org>
37674
37675         * m4/signed.m4: New file, from GNU gettext.
37676         * m4/longdouble.m4: New file, from GNU gettext.
37677         * m4/wchar_t.m4: New file, from GNU gettext.
37678         * m4/wint_t.m4: New file, from GNU gettext.
37679         * m4/vasnprintf.m4: New file.
37680         * m4/vasprintf.m4: New file.
37681
37682 2003-01-30  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/printf-args.h: New file, from GNU gettext.
37685         * lib/printf-args.c: New file, from GNU gettext.
37686         * lib/printf-parse.h: New file, from GNU gettext.
37687         * lib/printf-parse.c: New file, from GNU gettext.
37688         * lib/vasnprintf.h: New file, from GNU gettext.
37689         * lib/vasnprintf.c: New file, from GNU gettext.
37690         * lib/asnprintf.c: New file, from GNU gettext.
37691         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37692         * lib/vasprintf.c: New file, from GNU gettext.
37693         * lib/asprintf.c: New file, from GNU gettext.
37694
37695 2003-01-29  Bruno Haible  <bruno@clisp.org>
37696
37697         * modules/stpncpy: New module.
37698         * MODULES.html.sh (func_all_modules): Add it.
37699
37700 2003-01-29  Bruno Haible  <bruno@clisp.org>
37701
37702         * m4/stpncpy.m4: New file.
37703
37704 2003-01-29  Bruno Haible  <bruno@clisp.org>
37705
37706         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37707         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37708
37709 2003-01-28  Bruno Haible  <bruno@clisp.org>
37710
37711         * modules/c-ctype: New module.
37712         * MODULES.html.sh (func_all_modules): Add it.
37713
37714 2003-01-28  Bruno Haible  <bruno@clisp.org>
37715
37716         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37717         Paul Eggert.
37718         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37719         Paul Eggert.
37720
37721 2003-01-27  Bruno Haible  <bruno@clisp.org>
37722
37723         * modules/xsetenv: New module.
37724         * MODULES.html.sh (func_all_modules): Add it.
37725
37726 2003-01-27  Bruno Haible  <bruno@clisp.org>
37727
37728         * lib/xsetenv.h: New file, from GNU gettext.
37729         * lib/xsetenv.c: New file, from GNU gettext.
37730
37731 2003-01-23  Jim Meyering  <jim@meyering.net>
37732
37733         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37734         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37735
37736 2003-01-23  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/minmax: New module.
37739         * MODULES.html.sh (func_all_modules): Add it.
37740
37741 2003-01-23  Bruno Haible  <bruno@clisp.org>
37742
37743         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37744         Eggert.
37745
37746 2003-01-22  Bruno Haible  <bruno@clisp.org>
37747
37748         * modules/exit: New module.
37749         * MODULES.html.sh (func_all_modules): Add it.
37750
37751 2003-01-22  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/exit.h: New file, from GNU gettext.
37754
37755 2003-01-19  Bruno Haible  <bruno@clisp.org>
37756
37757         * gnulib-tool: Recognize option --extract-maintainer.
37758         (func_get_maintainer): New function.
37759         * modules/*: Add Maintainer entry.
37760
37761 2003-01-16  Jim Meyering  <jim@meyering.net>
37762
37763         * m4/regex.m4: The `regex' struct is both input and output.
37764         Initialize it before each use.  Patch by Tim Waugh.
37765
37766 2003-01-16  Bruno Haible  <bruno@clisp.org>
37767
37768         * MODULES.html.sh: Add a table of contents. Add the module name as
37769         leftmost column. Add hyperlinks.
37770
37771 2003-01-15  Bruno Haible  <bruno@clisp.org>
37772
37773         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37774
37775 2003-01-15  Bruno Haible  <bruno@clisp.org>
37776
37777         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37778         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37779         suffix.
37780
37781 2003-01-15  Bruno Haible  <bruno@clisp.org>
37782
37783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37784
37785 2003-01-15  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37788         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37789
37790 2003-01-14  Jim Meyering  <jim@meyering.net>
37791
37792         * lib/same.c (same_name): Tweak a comment.
37793
37794 2003-01-14  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37797         when a string comparison is sufficient.
37798
37799 2003-01-14  Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37802         'unsigned int'.
37803
37804 2003-01-14  Bruno Haible  <bruno@clisp.org>
37805
37806         * lib/hash-pjw.c: Add comment about low quality of this function.
37807
37808 2003-01-13  Bruno Haible  <bruno@clisp.org>
37809
37810         * modules/stpcpy: Distribute lib/stpcpy.h.
37811         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37812
37813 2003-01-13  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/*: Add a description.
37816         * modules/strpbrk: Fix Makefile.am snippet.
37817         * modules/strtoimax: Fix dependencies.
37818         * modules/strtoumax: Likewise.
37819
37820 2003-01-13  Bruno Haible  <bruno@clisp.org>
37821
37822         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37823         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37824         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37825
37826 2003-01-13  Bruno Haible  <bruno@clisp.org>
37827
37828         * gnulib-tool (func_create_testdir): Store config/* files in the main
37829         directory.
37830         * config.rpath: Move to ...
37831         * config/config.rpath: ... here.
37832         * modules/gettext: Contains config/config.rpath, not config.rpath.
37833         * modules/iconv: Likewise.
37834
37835 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37836
37837         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37838         to avoid collisions with libcurses and libreadline.
37839
37840         * m4/getstr.m4: Remove.
37841         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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
37848         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37849         * lib/getstr.h, getstr.c: Remove.
37850         * lib/getline.c: Include "getline.h", to check interface.
37851         Move body of old getstr.c here: this defines MIN_CHUNK and
37852         declares getdelim2, which is renamed from getstr.
37853         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37854
37855         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37856         All uses changed.
37857         * lib/linebuffer.h: Likewise.
37858         (readline): Remove backward-compatibility macro.
37859
37860 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37861
37862         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37863         to avoid collisions with libcurses and libreadline.
37864         * getstr: Remove.
37865         * MODULES.html.sh: Remove getstr.
37866         * modules/getline: Depend on unlocked-io, not getstr.
37867
37868 2003-01-12  Jim Meyering  <jim@meyering.net>
37869
37870         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37871
37872 2003-01-10  Bruno Haible  <bruno@clisp.org>
37873
37874         * modules/alloca: Change Makefile.am requirements. Simplify Include
37875         requirements. Add lib/alloca_.h to file list.
37876
37877 2003-01-10  Bruno Haible  <bruno@clisp.org>
37878
37879         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37880
37881 2003-01-10  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/alloca_.h: New file.
37884         * lib/getdate.y: Unconditionally include alloca.h.
37885         * lib/makepath.c: Likewise.
37886         * lib/setenv.c: Likewise.
37887         * lib/userspec.c: Likewise.
37888
37889 2003-01-09  Karl Berry  <karl@gnu.org>
37890
37891         * MODULES.html.sh: include `dirname $0` in PATH, to find
37892         gnulib-tool.
37893
37894 2003-01-09  Bruno Haible  <bruno@clisp.org>
37895
37896         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37897         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37898
37899 2003-01-09  Bruno Haible  <bruno@clisp.org>
37900
37901         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37902
37903 2003-01-09  Bruno Haible  <bruno@clisp.org>
37904
37905         * lib/stdbool.h.in: New file.
37906
37907 2003-01-09  Bruno Haible  <bruno@clisp.org>
37908
37909         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37910         * MODULES.html.sh: Likewise.
37911
37912 2003-01-08  Jim Meyering  <jim@meyering.net>
37913
37914         * lib/full-write.c: Undefine and define-away `const' after inclusion
37915         of errno.h, not before.  Suggestion from Bruno Haible.
37916
37917 2003-01-08  Bruno Haible  <bruno@clisp.org>
37918
37919         * modules/full-read: Depend on full-write.
37920
37921 2003-01-08  Bruno Haible  <bruno@clisp.org>
37922
37923         * lib/safe-read.c: Include specification header first, to ensure its
37924         selfcontainedness.
37925         * lib/full-write.c: Likewise.
37926
37927 2003-01-07  Jim Meyering  <jim@meyering.net>
37928
37929         * lib/full-write.c: Rework so that it may serve to define full_read,
37930         too.
37931         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37932
37933 2003-01-07  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37936         <inttypes.h>.
37937         * lib/xstrtol.h: Likewise.
37938         * lib/xstrtoimax.c: Likewise.
37939         * lib/xstrtoumax.c: Likewise.
37940         * lib/human.h: Likewise.
37941
37942         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37943         on systems that have <inttypes.h> but not <stdint.h>.
37944
37945 2003-01-07  Bruno Haible  <bruno@clisp.org>
37946
37947         * MODULES.html.sh: Add copyright notice.
37948         (missed_files): Omit CVS directory entries.
37949         (func_module): Make it work with sed-3.02.
37950         * MODULES.txt: Remove file.
37951
37952 2003-01-06  Jim Meyering  <jim@meyering.net>
37953
37954         * lib/version-etc.c: Update year in translatable copyright string.
37955
37956 2003-01-03  Karl Berry  <karl@gnu.org>
37957
37958         * config/config.{guess,sub}: update from prep.
37959
37960 2003-01-02  Karl Berry  <karl@gnu.org>
37961
37962         * doc/COPYING.DOC: belatedly updated to 1.2.
37963
37964 2003-01-01  Karl Berry  <karl@gnu.org>
37965
37966         * gnulib-tool (func_verify_module): report module name $module in
37967         error message, not $1.
37968         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37969         be created, only if it doesn't exist.
37970         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37971
37972 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37973
37974         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37975
37976 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37977
37978         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37979         memcmp if strcoll doesn't work.
37980
37981 2002-12-31  Bruno Haible  <bruno@clisp.org>
37982
37983         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37984         nonempty.
37985
37986 2002-12-31  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/memcoll.c (STRCOLL): New macro.
37989         (memcoll): Use it.
37990
37991 2002-12-31  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/localcharset.h: New file.
37994         * lib/localcharset.c: Include it.
37995         * lib/unicodeio.c: Likewise.
37996
37997 2002-12-31  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38000         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38001
38002 2002-12-31  Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/getline.h: Include <stddef.h>, for size_t.
38005
38006         * lib/unicodeio.h: Include <stddef.h>, for size_t.
38007         * lib/unicodeio.c: Don't include <stddef.h>.
38008
38009 2002-12-31  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38012         HAVE_TM_ZONE.
38013
38014 2002-12-24  Karl Berry  <karl@gnu.org>
38015
38016         * config/config.guess: update from prep.
38017
38018 2002-12-24  Bruno Haible  <bruno@clisp.org>
38019
38020         General infrasructure.
38021         * m4/README: Rewritten.
38022         * m4/onceonly.m4: New file.
38023         * m4/onceonly_2_57.m4: New file.
38024
38025         Module atexit.
38026         * m4/atexit.m4: New file.
38027
38028         Module strtod.
38029         * m4/strtod.m4: New file.
38030
38031         Module strtol.
38032         * m4/strtol.m4: New file.
38033
38034         Module strtoul.
38035         * m4/strtoul.m4: New file.
38036
38037         Module memchr.
38038         * m4/memchr.m4: New file.
38039
38040         Module memcmp.
38041         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38042         (jm_FUNC_MEMCMP): Invoke it.
38043
38044         Module memcpy.
38045         * m4/memcpy.m4: New file.
38046
38047         Module memmove.
38048         * m4/memmove.m4: New file.
38049
38050         Module memset.
38051         * m4/memset.m4: New file.
38052
38053         Module strcspn.
38054         * m4/strcspn.m4: New file.
38055
38056         Module strpbrk.
38057         * m4/strpbrk.m4: New file.
38058
38059         Module strstr.
38060         * m4/strstr.m4: New file.
38061
38062         Module strerror.
38063         * m4/strerror.m4: New file.
38064
38065         Module mktime.
38066         * m4/mktime.m4: Renamed from jm-mktime.m4.
38067         (gl_PREREQ_MKTIME): New macro.
38068         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
38069
38070         Module malloc.
38071         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
38072         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
38073         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
38074
38075         Module realloc.
38076         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38077         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38078         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38079
38080         Module strftime.
38081         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38082         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38083         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38084         gl_TM_GMTOFF.
38085         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38086
38087         Module xalloc.
38088         * m4/xalloc.m4: New file.
38089
38090         Module alloca.
38091         * m4/alloca.m4: New file.
38092
38093         Module putenv.
38094         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38095         (jm_FUNC_PUTENV): Invoke it.
38096
38097         Module setenv.
38098         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38099         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38100         when invoked twice.
38101         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38102         gt_FUNC_SETENV.
38103
38104         Module memrchr.
38105         * m4/memrchr.m4: New file.
38106
38107         Module stpcpy.
38108         * m4/stpcpy.m4: New file.
38109
38110         Module strcase.
38111         * m4/strcase.m4: New file.
38112
38113         Module strdup.
38114         * m4/strdup.m4: New file.
38115
38116         Module strnlen.
38117         * m4/strnlen.m4: New file.
38118
38119         Module strndup.
38120         * m4/strndup.m4: New file.
38121
38122         Module xstrtod.
38123         * m4/xstrtod.m4: New file.
38124
38125         Module xstrtol.
38126         * m4/xstrtol.m4: New file.
38127
38128         Module getdate.
38129         * m4/getdate.m4: New file.
38130
38131         Module unlocked-io.
38132         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38133         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38134         * m4/jm-glibc-io.m4n: Remove file.
38135
38136         Module long-options.
38137         * m4/long-options.m4: New file.
38138
38139         Module md5.
38140         * m4/md5.m4: New file.
38141
38142         Module sha.
38143         * m4/sha.m4: New file.
38144
38145         Module getstr.
38146         * m4/getstr.m4: New file.
38147
38148         Module getline.
38149         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38150         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38151         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38152         simply getline. Infoke gl_PREREQ_GETLINE.
38153
38154         Module obstack.
38155         * m4/obstack.m4: New file.
38156
38157         Module hash.
38158         * m4/hash.m4: New file.
38159
38160         Module readtokens.
38161         * m4/readtokens.m4: New file.
38162
38163         Module strverscmp.
38164         * m4/strverscmp.m4: New file.
38165
38166         Module stdbool.
38167         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38168         OSF/1.
38169
38170         Module strtoll.
38171         * m4/strtoll.m4: New file.
38172
38173         Module strtoull.
38174         * m4/strtoull.m4: New file.
38175
38176         Module strtoimax.
38177         * m4/strtoimax.m4: New file.
38178
38179         Module strtoumax.
38180         * m4/strtoumax.m4: New file.
38181
38182         Module xstrtoimax.
38183         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38184         jm_AC_PREREQ_XSTRTOIMAX.
38185         Moved the strtol prerequisites to strtol.m4.
38186         Moved the strtoll prerequisites to strtoll.m4.
38187         Moved the strtoimax prerequisites to strtoimax.m4.
38188
38189         Module xstrtoumax.
38190         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38191         jm_AC_PREREQ_XSTRTOUMAX.
38192         Moved the strtoul prerequisites to strtoul.m4.
38193         Moved the strtoull prerequisites to strtoull.m4.
38194         Moved the strtoumax prerequisites to strtoumax.m4.
38195
38196         Module chown.
38197         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38198         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38199
38200         Module dup2.
38201         * m4/dup2.m4: New file.
38202
38203         Module ftruncate.
38204         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38205         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38206
38207         Module getgroups.
38208         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38209         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38210
38211         Module gettimeofday.
38212         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38213         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38214         gl_PREREQ_GETTIMEOFDAY.
38215
38216         Module mkdir.
38217         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38218         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38219
38220         Module mkstemp.
38221         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38222         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38223         jm_AC_TYPE_UINTMAX_T.
38224         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38225
38226         Module stat.
38227         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38228         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38229
38230         Module lstat.
38231         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38232         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38233
38234         Module timespec.
38235         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38236         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38237         * m4/st_mtim.m4: Indentation.
38238
38239         Module nanosleep.
38240         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38241         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38242         gl_PREREQ_NANOSLEEP.
38243
38244         Module regex.
38245         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38246         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38247         (gl_REGEX): New macro.
38248
38249         Module rename.
38250         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38251         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38252
38253         Module rmdir.
38254         * m4/rmdir.m4: New file.
38255
38256         Module utime.
38257         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38258         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38259         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38260
38261         Module dirname.
38262         * m4/dirname.m4: New file.
38263
38264         Module getopt.
38265         * m4/getopt.m4: New file.
38266
38267         Module unistd-safer.
38268         * m4/unistd-safer.m4: New file.
38269
38270         Module fnmatch.
38271         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38272         declaration.
38273         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38274         (gl_FUNC_FNMATCH_POSIX): New macro.
38275         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38276         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38277         simply fnmatch.
38278
38279         Module exclude.
38280         * m4/exclude.m4: New file.
38281
38282         Module human.
38283         * m4/human.m4: New file.
38284
38285         Module acl.
38286         * m4/acl.m4: Nop.
38287
38288         Module backupfile.
38289         * m4/backupfile.m4: New file.
38290         * m4/d-ino.m4: Indentation.
38291
38292         Module fsusage.
38293         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38294         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38295         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38296
38297         Module dirfd.
38298         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38299         requirements.
38300
38301         Module euidaccess.
38302         * m4/euidaccess.m4: New file.
38303
38304         Module file-type.
38305         * m4/file-type.m4: New file.
38306
38307         Module fileblocks.
38308         * m4/fileblocks.m4: New file.
38309
38310         Module filemode.
38311         * m4/filemode.m4: New file.
38312
38313         Module isdir.
38314         * m4/isdir.m4: New file.
38315
38316         Module lchown.
38317         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38318         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38319
38320         Module makepath.
38321         * m4/makepath.m4: New file.
38322
38323         Module modechange.
38324         * m4/modechange.m4: New file.
38325
38326         Module mountlist.
38327         * m4/mountlist.m4: New file.
38328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38329         Indentation.
38330
38331         Module path-concat.
38332         * m4/path-concat.m4: New file.
38333
38334         Module pathmax.
38335         * m4/pathmax.m4: New file.
38336
38337         Module same.
38338         * m4/same.m4: New file.
38339
38340         Module save-cwd.
38341         * m4/save-cwd.m4: New file.
38342
38343         Module savedir.
38344         * m4/savedir.m4: New file.
38345
38346         Module xgetcwd.
38347         * m4/xgetcwd.m4: New file.
38348         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38349
38350         Module xreadlink.
38351         * m4/xreadlink.m4: New file.
38352
38353         Module safe-read.
38354         * m4/safe-read.m4: New file.
38355
38356         Module safe-write.
38357         * m4/safe-write.m4: New file.
38358
38359         Module closeout.
38360         * m4/closeout.m4: New file.
38361
38362         Module stdio-safer.
38363         * m4/stdio-safer.m4: New file.
38364
38365         Module getpass.
38366         * m4/getpass.m4: New file.
38367
38368         Module getugroups.
38369         * m4/getugroups.m4: New file.
38370
38371         Module group-member.
38372         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38373         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38374
38375         Module idcache.
38376         * m4/idcache.m4: New file.
38377
38378         Module userspec.
38379         * m4/userspec.m4: New file.
38380
38381         Module gettime.
38382         * m4/clock_time.m4: New file.
38383         * m4/gettime.m4: New file.
38384
38385         Module settime.
38386         * m4/settime.m4: New file.
38387
38388         Module posixtm.
38389         * m4/posixtm.m4: New file.
38390
38391         Module gethostname.
38392         * m4/gethostname.m4: New file.
38393
38394         Module canon-host.
38395         * m4/canon-host.m4: New file.
38396
38397         Module gettext.
38398         * m4/codeset.m4: New file, from gettext-0.11.5.
38399         * m4/gettext.m4: New file, from gettext-0.11.5.
38400         * m4/glibc21.m4: New file, from gettext-0.11.5.
38401         * m4/iconv.m4: New file, from gettext-0.11.5.
38402         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38403         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38404         * m4/inttypes.m4: New file, from gettext-0.11.5.
38405         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38406         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38407         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38408         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38409         * m4/lib-link.m4: New file, from gettext-0.11.5.
38410         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38411         * m4/progtest.m4: New file, from gettext-0.11.5.
38412         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38413         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38414         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38415
38416         Module localcharset.
38417         * m4/localcharset.m4: New file.
38418
38419         Module hard-locale.
38420         * m4/hard-locale.m4: New file.
38421
38422         Module mbswidth.
38423         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38424         onceonly macros.
38425         * m4/mbrtowc.m4: Add comment.
38426
38427         Module memcasecmp.
38428         * m4/memcasecmp.m4: New file.
38429
38430         Module memcoll.
38431         * m4/memcoll.m4: New file.
38432
38433         Module unicodeio.
38434         * m4/unicodeio.m4: New file.
38435
38436         Module rpmatch.
38437         * m4/rpmatch.m4: New file.
38438
38439         Module yesno.
38440         * m4/yesno.m4: New file.
38441
38442         Module exitfail.
38443         * m4/exitfail.m4: New file.
38444
38445         Module c-stack.
38446         * m4/c-stack.m4 (gl_C_STACK): New macro.
38447         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38448
38449         Module error.
38450         * m4/error.m4 (gl_ERROR): New macro.
38451         (jm_PREREQ_ERROR): Use onceonly macros.
38452
38453         Module fatal.
38454         * m4/fatal.m4: New file.
38455
38456         Module getloadavg.
38457         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38458         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38459
38460         Module getpagesize.
38461         * m4/getpagesize.m4: New file.
38462
38463         Module getusershell.
38464         * m4/getusershell.m4: New file.
38465
38466         Module physmem.
38467         * m4/physmem.m4: New file.
38468
38469         Module posixver.
38470         * m4/posixver.m4: New file.
38471
38472         Module quotearg.
38473         * m4/quotearg.m4: New file.
38474
38475         Module quote.
38476         * m4/quote.m4: New file.
38477
38478         Module readutmp.
38479         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38480
38481         Module sig2str.
38482         * m4/sig2str.m4: New file.
38483
38484         Other.
38485         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38486         ulonglong.m4.
38487         * m4/intmax_t.m4: New file.
38488         * m4/d-type.m4: Indentation.
38489         * m4/jm-macros.m4: Update.
38490         * m4/prereq.m4 (jm_PREREQ): Update.
38491         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38492         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38493         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38494         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38495         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38496         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38497         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38498         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38499         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38500         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38501         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38502         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38503         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38504         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38505         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38506         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38507         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38508         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38509         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38510
38511 2002-12-24  Bruno Haible  <bruno@clisp.org>
38512
38513         * MODULES.txt: Update according to m4/ changes.
38514
38515         Module gettext.
38516         * config.rpath: New file, from gettext-0.11.5.
38517
38518         * modules/*: New module descriptions.
38519         * gnulib-tool: New file.
38520         * MODULES.html.sh: New file.
38521
38522 2002-12-21  Karl Berry  <karl@gnu.org>
38523
38524         * doc/fdl.texi: update to version 1.2.
38525
38526 2002-12-19  Karl Berry  <karl@gnu.org>
38527
38528         * config/config.guess: update from prep.
38529
38530 2002-12-18  Bruno Haible  <bruno@clisp.org>
38531
38532         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38533         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38534
38535 2002-12-17  Bruno Haible  <bruno@clisp.org>
38536
38537         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38538         stdlib.h, string.h.
38539
38540 2002-12-17  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/canon-host.c (strdup): Remove unused declaration.
38543
38544         * lib/fsusage.c: Include full_read.h.
38545         (get_fs_usage): Use full_read instead of safe_read.
38546
38547         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38548
38549 2002-12-12  Karl Berry  <karl@gnu.org>
38550
38551         * config/config.guess: update from prep.
38552
38553 2002-12-11  Bruno Haible  <bruno@clisp.org>
38554
38555         * m4/setenv.m4: New file, from gettext-0.11.5.
38556
38557 2002-12-11  Bruno Haible  <bruno@clisp.org>
38558
38559         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38560         not unsetenv().
38561         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38562         modifications:
38563
38564         2002-12-11  Bruno Haible  <bruno@clisp.org>
38565
38566                 * setenv.c (alloca): Fall back to malloc.
38567                 (freea): New macro.
38568                 (setenv): Use freea() to free memory allocated with alloca().
38569
38570         2002-11-13  Bruno Haible  <bruno@clisp.org>
38571
38572                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38573                 function declarations.
38574                 * unsetenv.c (unsetenv): Likewise.
38575
38576         2002-03-04  Bruno Haible  <bruno@clisp.org>
38577
38578                 Portability to AIX 4.3.3.
38579                 * unsetenv.c: New file, extracted from setenv.c.
38580                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38581
38582         2001-12-20  Bruno Haible  <bruno@clisp.org>
38583
38584                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38585                 use malloc instead. For SunOS 4.
38586
38587         2001-12-11  Bruno Haible  <bruno@clisp.org>
38588
38589                 * setenv.c: Declare alloca.
38590                 (compar_fn_t): New typedef.
38591                 (KNOWN_VALUE, STORE_VALUE): Use it.
38592
38593         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38594         setenv.h.
38595
38596 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38597
38598         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38599         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38600         Choose values that are less likely to collide with system fnmatch
38601         options.
38602         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38603         defined (e.g., a pure POSIX system).
38604         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38605         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38606
38607 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38608
38609         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38610         a pain in practice to deal with generated m4 files.  This change
38611         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38612
38613         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38614         and jm-glibc-io.m4, as they are no longer a special case.
38615         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38616         kludge and the auto-generation stuff.  Check only whether the
38617         functions are declared, not whether they exist, since older hosts
38618         that don't declare the functions can't use the optimization anyway.
38619
38620 2002-12-06  Jim Meyering  <jim@meyering.net>
38621
38622         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38623
38624         Merge in changes from libc's misc/error.c, in preparation
38625         for the merge of gnulib's changes back into libc.
38626
38627         * lib/error.c (_): Define only if not already defined.
38628         Move definition to follow all #include directives.
38629         Include unlocked-io.h only if !_LIBC.
38630         [_LIBC]: Include <libio/libioP.h>.
38631         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38632         (fflush): Tweak definition to use INTUSE.
38633         (putc): Define.
38634
38635 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38636
38637         * lib/alloca.c [defined emacs]: Include "lisp.h".
38638         (xalloc_die) [defined emacs]: New macro.
38639         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38640         [! defined emacs]: Include <xalloc.h>.
38641         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38642         (pointer): Typedef to POINTER_TYPE *.
38643         (malloc): Remove decl; we now always use xmalloc.
38644         (alloca): Use old-style definition, since Emacs needs this.
38645         Check for arithmetic overflow when computing combined size.
38646
38647 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38648
38649         Do not generate unlocked-io.h automatically, since it's easier to
38650         maintain it by hand.
38651
38652         * lib/unlocked-io.h: New file, from GNU diffutils,
38653         but with proper copyright notice and attribution.
38654         * lib/gen-uio: Remove.
38655         * lib/Makefile.am: Add copyright notice.
38656         (libfetish_a_SOURCES): Add unlocked-io.h.
38657         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38658         (DISTCLEANFILES, io_functions): Remove macros.
38659         (EXTRA_DIST): Remove gen_uio.
38660         (unlocked-io.h): Remove rule.
38661
38662 2002-12-04  Jim Meyering  <jim@meyering.net>
38663
38664         Reflect the fact that stat.c and lstat.c are no longer generated.
38665         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38666         (DISTCLEANFILES): Likewise.
38667         (EXTRA_DIST): Likewise.
38668         (all_local): Don't depend on stat.c or lstat.c.
38669         (stat.c, lstat.c): Remove rules.
38670         (EXTRA_DIST): Remove xstat.in.
38671
38672         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38673         * lib/stat.c: New file.  Contents mostly from xstat.in.
38674         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38675         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38676
38677         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38678         too.
38679         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38680
38681 2002-12-03  Jim Meyering  <jim@meyering.net>
38682
38683         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38684         but not semantics, to minimize the differences between these two files.
38685         (safe_read): Change comment to mention SAFE_READ_ERROR.
38686
38687         * lib/safe-read.c (IS_EINTR): Define.
38688         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38689
38690 2002-12-02  Jim Meyering  <jim@meyering.net>
38691
38692         * lib/safe-read.c (EINTR): Define.
38693         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38694         (INT_MAX): Provide fallback.
38695         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38696
38697         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38698
38699 2002-12-02  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38702         Define, taken from safe-read.c.
38703         (INT_MAX): Provide fallback.
38704         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38705         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38706
38707         * lib/safe-read.c (EINTR): Remove definition.
38708         (safe_read): Don't use EINTR if it is absent.
38709
38710 2002-12-01  Jim Meyering  <jim@meyering.net>
38711
38712         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38713         zero.
38714         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38715
38716 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38717
38718         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38719         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38720         with `if (! (value < limit)) abort ();', for readability.
38721
38722 2002-11-26  Karl Berry  <karl@gnu.org>
38723
38724         * lib/strdup.c: copy from libc again, with jim's ok.
38725         * lib/.cppi-disable: re-add strdup.c
38726
38727 2002-11-25  Karl Berry  <karl@gnu.org>
38728
38729         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38730         instead of "strtol.c".
38731
38732 2002-11-25  Karl Berry  <karl@gnu.org>
38733
38734         * config/install-sh: update from automake for variable quoting, $0 in
38735         error msgs, etc.
38736
38737         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38738         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38739         entry.
38740
38741 2002-11-25  Jim Meyering  <jim@meyering.net>
38742
38743         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38744
38745 2002-11-24  Karl Berry  <karl@gnu.org>
38746
38747         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38748         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38749
38750 2002-11-24  Jim Meyering  <jim@meyering.net>
38751
38752         Update from coreutils:
38753
38754         * lib/mktime.c: Merge in changes from libc.
38755
38756         Avoid a link-time failure on some Linux systems.
38757         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38758         (otherwise).
38759         (__mon_yday): Declare with the STATIC attribute.
38760         (__mktime_internal): Likewise.
38761         Based on a report from Greg Schafer.
38762
38763 2002-11-23  Jim Meyering  <jim@meyering.net>
38764
38765         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38766         Use `unsigned', not `int', as type of index.
38767
38768         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38769
38770         * lib/fsusage.c: Remove unneeded parentheses around operands of
38771         `defined'.
38772
38773 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38774
38775         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38776         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38777         so that we can be included first.
38778         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38779         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38780         No need to include stddef.h or sys/types.h any more.
38781         Surround local include files with "", not "<>".
38782         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38783         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38784         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38785         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38786         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38787         (ISPRINT): Remove; no longer needed now that we assume C89.
38788
38789         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38790         Preserve errno.
38791
38792         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38793         quotearg_char): Use SIZE_MAX rather than
38794         (size_t) -1 when we are talking about "infinity".
38795
38796         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38797
38798 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38799
38800         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38801         hint that one should use `if (! x) abort ();' rather than `assert
38802         (x);', and anyway it's one less thing to worry about configuring.
38803         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38804         hash_rehash, hash_insert): Use abort rather than assert.
38805
38806 2002-11-22  Bruno Haible  <bruno@clisp.org>
38807
38808         * lib/safe-read.h: Assume C89. Add comments.
38809         (safe_read): Change return type to size_t.
38810         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38811         byte counts > SSIZE_MAX correctly.
38812         * lib/safe-write.h: New file.
38813         * lib/safe-write.c: New file.
38814         * lib/full-read.h: New file.
38815         * lib/full-read.c: New file.
38816         * lib/full-write.h: Assume C89. Add comments.
38817         * lib/full-write.c: Include safe-write.h.
38818         (full_write): Rewritten to use safe_write.
38819         Suggested by Jim Meyering and Paul Eggert.
38820
38821 2002-11-21  Jim Meyering  <jim@meyering.net>
38822
38823         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38824
38825         Merge in changes from the coreutils.
38826
38827         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38828         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38829         <stdint.h>.
38830         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38831         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38832         int.  Work more efficiently if X is the same width as uintmax_t.
38833         Do not compare X to -1, to avoid bogus compiler warning.
38834         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38835         Don't assume that f_frsize and f_bsize are the same type.
38836
38837         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38838         warning on FreeBSD.
38839
38840         * lib/makepath.c (make_path): Restore umask *before* creating the final
38841         component.
38842         (make_path): Minor reformatting.
38843
38844         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38845         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38846         HAVE_MALLOC/HAVE_REALLOC.
38847
38848         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38849         dummy ones.  At least on GNU/Linux systems, `auto' means something
38850         else.
38851         From Michael Stone.
38852
38853 2002-11-21  Bruno Haible  <bruno@clisp.org>
38854
38855         Remove case insensitive option matching.
38856         * lib/argmatch.h (argcasematch): Remove declaration.
38857         (ARGCASEMATCH): Remove macro.
38858         (__xargmatch_internal): Remove case_sensitive argument.
38859         (XARGMATCH): Update.
38860         (XARGCASEMATCH): Remove macro.
38861         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38862         case_sensitive argument.
38863         (argcasematch): Remove function.
38864         (__xargmatch_internal): Remove case_sensitive argument.
38865         (main): Use XARGMATCH instead of XARGCASEMATCH.
38866
38867         * lib/xmalloc.c: Change compile-time error message. Add comment about
38868         required autoconf version.
38869
38870 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38871
38872         Merge argmatch cleanups from Bison.  Assume C89.
38873
38874         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38875         Include stdlib.h, for EXIT_FAILURE.
38876         Always include <string.h>, since we assume C89.
38877         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38878         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38879         Include <stddef.h> instead, since it's all we need for size_t.
38880         (PARAMS): Remove.  All uses removed.
38881         (ARRAY_CARDINALITY): Do not bother to #undef.
38882         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38883         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38884         Remove unnecessary parentheses.
38885         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38886         Insert necessary parentheses.
38887         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38888         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38889
38890 2002-11-19  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38893         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38894
38895         * lib/mbswidth.h (PARAMS): Remove macro.
38896         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38897         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38898
38899         * lib/gcd.h (PARAMS): Remove macro.
38900         (gcd): Use ANSI C function declarations.
38901         * lib/gcd.c (gcd): Likewise.
38902
38903 2002-11-15  Bruno Haible  <bruno@clisp.org>
38904
38905         * lib/strcspn.c: Include <stddef.h>.
38906         (strcspn): Use ANSI C function declaration. Change return type to
38907         size_t. Use NULL.
38908         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38909         (strpbrk): Use NULL.
38910         * lib/strpbrk.h (PARAMS): Remove macro.
38911         (strpbrk): Use ANSI C function declaration.
38912         * lib/strstr.c: Don't include <sys/types.h>.
38913         * lib/strstr.h (PARAMS): Remove macro.
38914         (strstr): Use ANSI C function declarations.
38915
38916 2002-11-14  Karl Berry  <karl@gnu.org>
38917
38918         * config/mkinstalldirs: `do' on separate line, instead of
38919         `for var; do'.
38920
38921 2002-11-06  Bruno Haible  <bruno@clisp.org>
38922
38923         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38924         * lib/gcd.c (gcd): Likewise.
38925
38926 2002-11-05  Bruno Haible  <bruno@clisp.org>
38927
38928         * lib/gcd.h: New file, from gettext-0.11.5.
38929         * lib/gcd.c: New file, from gettext-0.11.5.
38930
38931 2002-11-05  Bruno Haible  <bruno@clisp.org>
38932
38933         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38934         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38935         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38936         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38937
38938         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38939         <libintl.h>.
38940         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38941         <libintl.h>.
38942
38943         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38944         * lib/human.c: Include gettext.h instead of <libintl.h>.
38945         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38946         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38947         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38948         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38949         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38950         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38951         (textdomain): Remove definition.
38952         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38953
38954         * lib/long-options.c: Remove include of <libintl.h> and definition of
38955         _.
38956         * lib/same.c: Remove include of <libintl.h> and definition of _.
38957
38958 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38959
38960         * lib/config.charset: A few additions for Solaris.
38961
38962 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38963
38964         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38965         * lib/localcharset.c (locale_charset): Declare as extern "C".
38966
38967 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38968
38969         * lib/config.charset: msdos in uk_UA uses CP1125.
38970
38971 2002-11-04  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38974         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38975         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38976         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38977         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38978
38979 2002-11-04  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/localcharset.c (locale_charset): Don't return an empty string.
38982
38983 2002-11-04  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38986         aliases.
38987
38988 2002-11-04  Bruno Haible  <bruno@clisp.org>
38989
38990         * lib/config.charset: Update for newest glibc. Add canonical names
38991         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38992
38993 2002-11-04  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/config.charset: Add support for NetBSD.
38996
38997 2002-11-04  Bruno Haible  <bruno@clisp.org>
38998
38999         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39000
39001 2002-11-01  Bruno Haible  <bruno@clisp.org>
39002
39003         * configure.in: Add AC_CONFIG_AUX_DIR call.
39004         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39005         test/Makefile.
39006         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39007
39008 2002-09-28  Karl Berry  <karl@gnu.org>
39009
39010         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39011         installed automake until the next release, since changes have been
39012         made.
39013
39014 2002-09-25  Karl Berry  <karl@gnu.org>
39015
39016         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39017         * lib/getopt*: copy from libc/posix.
39018         * lib/gettext.h: copy from gettext.
39019         * lib/.cppi-disable: add strdup.c, gettext.h.
39020
39021 2002-09-25  Karl Berry  <karl@gnu.org>
39022
39023         * config/srclist.txt: enable gettext.h check.
39024         * config/config.{guess,sub}: update from prep.
39025         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39026                 from automake 1.6.3.
39027         See srclist*.
39028
39029 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39030
39031         * regex.c (PATFETCH): Remove the translating fetch.
39032         (PATFETCH_RAW): Rename to PATFETCH.
39033         (set_image_of_range): New fun.
39034         (SET_RANGE_TABLE_WORK_AREA): Use it.
39035         (regex_compile): Don't translate the pattern chars so eagerly.
39036         Only do it when inserting an `exactn' bytecode or when handling
39037         a char-range.
39038         (mutually_exclusive_p): Avoid empty statement.
39039
39040 2002-07-06  Jim Meyering  <meyering@lucent.com>
39041
39042         * m4/README: Don't mention Makefile.am.in.
39043         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39044
39045 2002-07-01  Jim Meyering  <meyering@lucent.com>
39046
39047         * lib/c-stack.c: Include sys/time.h.
39048         From Volker Borchert.
39049
39050 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39051
39052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
39053
39054 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39055
39056         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
39057         New macro.  Use it uniformly instead of
39058         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
39059         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
39060         reported by Vin Shelton.
39061
39062 2002-06-22  Paul Eggert  <eggert@twinsun.com>
39063
39064         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
39065         Do not assume SA_SIGINFO behavior.
39066         Bug reported by Jim Meyering on NetBSD 1.5.2.
39067
39068 2002-06-22  Jim Meyering  <meyering@lucent.com>
39069
39070         * m4/c-stack.m4: New file, from diffutils-2.8.2.
39071         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
39072
39073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
39074         now that configure.ac uses AC_GNU_SOURCE.
39075         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39076         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39077
39078         Update to latest tools.  Suggestions from Paul Eggert.
39079         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39080         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39081         * m4/fnmatch.m4: Likewise.
39082         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39083         to AC_HEADER_STDBOOL
39084
39085 2002-06-22  Jim Meyering  <meyering@lucent.com>
39086
39087         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39088         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39089
39090 2002-06-22  Jim Meyering  <meyering@lucent.com>
39091
39092         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39093
39094         * lib/exitfail.c, exitfail.h: Likewise.
39095         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39096
39097         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39098         of fnmatch.h.
39099         (EXTRA_DIST): Add fnmatch_loop.c.
39100         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39101
39102         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39103         * lib/fnmatch.c: Update from diffutils-2.8.2.
39104         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39105         * lib/fnmatch.h: Remove file.
39106
39107 2002-06-21  Jim Meyering  <meyering@lucent.com>
39108
39109         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39110         * m4/mbrtowc.m4: Likewise.
39111
39112         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39113         * m4/mbswidth.m4: Reflect name change:
39114         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39115         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39116
39117         * m4/lib-link.m4: Update from gettext-0.11.2.
39118         * m4/gettext.m4: Likewise.
39119
39120         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39121         From Alfred M. Szmidt.
39122
39123 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39124
39125         * lib/file-type.h: Report an error if neither S_ISREG nor
39126         S_IFREG is defined, instead of using a test specific to glibc
39127         2.2.  This should be safe, since POSIX requires S_ISREG and
39128         Unix Version 7 had S_IFREG.  We don't need to check for
39129         <sys/types.h> since we don't use any symbols that it defines.
39130
39131 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39132
39133         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39134         $@-t, so that each temporary file name is unique and valid in the first
39135         8 characters, for operation under DOS.
39136
39137 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39138
39139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39140
39141 2002-06-15  Jim Meyering  <meyering@lucent.com>
39142
39143         Work even with DJGPP 2.03, which lacks support for symlinks.
39144         From Richard Dawe.
39145         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39146         is defined.
39147         * lib/lchown.c (S_ISLNK): Likewise.
39148
39149 2002-06-15  Jim Meyering  <meyering@lucent.com>
39150
39151         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39152         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39153         have been included before this file.
39154
39155 2002-06-14  Jim Meyering  <meyering@lucent.com>
39156
39157         * lib/file-type.h: Use the version from diffutils-2.8.2.
39158         * lib/file-type.c: Likewise.
39159
39160 2002-06-07  Jim Meyering  <meyering@lucent.com>
39161
39162         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39163         They're needed at least for NetBSD 1.5.2.
39164         ($statxfs_includes): Include those same headers.
39165         ($statxfs_includes): Include sys/vfs.h if available.
39166         ($statxfs_includes): Likewise for sys/statvfs.h.
39167         Check for the following members in both structs statfs and statvfs:
39168         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39169
39170 2002-06-01  Jim Meyering  <meyering@lucent.com>
39171
39172         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39173         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39174
39175 2002-05-28  Jim Meyering  <meyering@lucent.com>
39176
39177         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39178         Reported by Volker Borchert.
39179
39180 2002-05-27  Jim Meyering  <meyering@lucent.com>
39181
39182         Fix a problem seen only on nonconforming systems whereby ls.c's
39183         use of localtime, and then of gettimeofday would cause trouble:
39184         the localtime call used to initialize rpl_gettimeofday's save
39185         mechanism would clobber ls's current local time information so
39186         that in any long listing the first file would always be listed
39187         with date 1970-01-01.  Analysis by Volker Borchert.
39188
39189         * lib/gettimeofday.c (localtime): Undefine.
39190         (rpl_localtime): New function.
39191
39192 2002-05-27  Jim Meyering  <meyering@lucent.com>
39193
39194         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39195         localtime.
39196
39197         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39198         use the replacement function; it wouldn't resolve at link time.
39199         Reported by Volker Borchert.
39200
39201 2002-05-22  Jim Meyering  <meyering@lucent.com>
39202
39203         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39204         file-type.h.
39205         * lib/file-type.h: New file.
39206         * lib/file-type.c (file_type): New file/function.  Extracted from
39207         diffutils.
39208
39209 2002-04-30  Jim Meyering  <meyering@lucent.com>
39210
39211         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39212
39213 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39214
39215         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39216
39217 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39218
39219         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39220         Do not check for alloca.h (no longer used) or stdbool.h (was never
39221         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39222
39223 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39224
39225         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39226
39227 2002-04-29  Jim Meyering  <meyering@lucent.com>
39228
39229         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39230         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39231         Use AC_FUNC_STRNLEN here instead.
39232
39233         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39234         With autoconf-2.53a, it's part of AC_PROG_CC.
39235
39236 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39237
39238         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39239         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39240
39241 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39242
39243         * lib/sig2str.h, lib/sig2str.c: New files.
39244         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39245
39246 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39247
39248         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39249         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39250         of 127, since 64 is the largest conceivable number for ancient
39251         nonstandard hosts.
39252         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39253
39254 2002-04-28  Jim Meyering  <meyering@lucent.com>
39255
39256         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39257
39258 2002-04-24  Jim Meyering  <meyering@lucent.com>
39259
39260         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39261         (jm_PREREQ): Use it.
39262
39263         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39264         mach/mach.h fcntl.h.
39265         Check for this function: setlocale.
39266
39267 2002-04-24  Jim Meyering  <meyering@lucent.com>
39268
39269         * lib/gettext.h: New file, from Gettext.
39270         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39271         (libfetish_a_SOURCES): Add gettext.h.
39272
39273 2002-04-16  Jim Meyering  <meyering@lucent.com>
39274
39275         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39276         ut_pid, ut_id, ut_exit.
39277
39278 2002-04-16  Jim Meyering  <meyering@lucent.com>
39279
39280         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39281         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39282         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39283
39284 2002-04-12  Jim Meyering  <meyering@lucent.com>
39285
39286         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39287         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39288         existence of the getmntinfo function.  Needed for Darwin 5.3.
39289
39290         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39291         This is necessary at least on Darwin 5.3.
39292
39293         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39294         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39295         strnlen.o in the library, and that makes some versions of ranlib
39296         object.
39297
39298 2002-04-12  Jim Meyering  <meyering@lucent.com>
39299
39300         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39301
39302 2002-04-09  Jim Meyering  <meyering@lucent.com>
39303
39304         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39305         to be more precise.  Rather than saying we're checking whether the
39306         function `works', say what we're testing.
39307         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39308         Reported by Bruno Haible.
39309
39310 2002-03-10  Jim Meyering  <meyering@lucent.com>
39311
39312         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39313         Suggestion from Santiago Vila.
39314
39315 2002-03-08  Jim Meyering  <meyering@lucent.com>
39316
39317         * lib/rename.c: Mention that this wrapper is needed also on
39318         mips-dec-ultrix4.4 systems.
39319
39320 2002-03-02  Jim Meyering  <meyering@lucent.com>
39321
39322         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39323         not HAVE_CLOCK_SETTIME.
39324
39325 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39326
39327         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39328         Check for clock_settime.
39329
39330 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39331
39332         * lib/nanosleep.h: Rename to....
39333         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39334
39335         * lib/gettime.c: New file.
39336         * lib/settime.c: New file.
39337         * lib/stime.c: Remove.
39338
39339         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39340         timespec.h.  Remove nanosleep.h.
39341
39342 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39343
39344         * m4/acl.m4: New file.
39345         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39346         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39347
39348 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39349
39350         * lib/acl.c, lib/acl.h: New files.
39351         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39352
39353 2002-02-24  Jim Meyering  <meyering@lucent.com>
39354
39355         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39356         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39357         cause trouble.  Reported by Nelson Beebe.
39358
39359 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39360
39361         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39362         compilers that don't know that xalloc_die never returns.
39363
39364 2002-02-20  Jim Meyering  <meyering@lucent.com>
39365
39366         * lib/getdate.c: Regenerate using bison-1.33.
39367
39368 2002-02-17  Jim Meyering  <meyering@lucent.com>
39369
39370         * config/config.guess (main): Don't use `head -1'; it's no longer
39371         portable. Use `sed 1q' instead.
39372
39373 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39374
39375         * m4/codeset.m4: Upgrade to gettext-0.11.
39376         * m4/gettext.m4: Upgrade to gettext-0.11.
39377         * m4/glibc21.m4: Upgrade to gettext-0.11.
39378         * m4/iconv.m4: Upgrade to gettext-0.11.
39379         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39380         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39381         * m4/lib-ld.m4: New file, from gettext-0.11.
39382         * m4/lib-link.m4: New file, from gettext-0.11.
39383         * m4/lib-prefix.m4: New file, from gettext-0.11.
39384         * m4/progtest.m4: Upgrade to gettext-0.11.
39385
39386 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39387
39388         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39389         (jm_PREREQ): Use it.
39390
39391 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39392
39393         * lib/posixver.c, lib/posixver.h: New files.
39394         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39395
39396 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39397             Bruno Haible  <bruno@clisp.org>
39398
39399         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39400         (fwrite_success_callback): New declaration.
39401         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39402         print_unicode_char. Call failure callback instead of error.
39403         (fwrite_success_callback): New function.
39404         (exit_failure_callback): New function.
39405         (fallback_failure_callback): New function.
39406         (print_unicode_char): Call unicode_to_mb.
39407
39408 2002-01-26  Jim Meyering  <meyering@lucent.com>
39409
39410         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39411         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39412
39413 2002-01-26  Jim Meyering  <meyering@lucent.com>
39414
39415         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39416
39417 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39418
39419         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39420
39421 2002-01-22  Jim Meyering  <meyering@lucent.com>
39422
39423         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39424         Otherwise, some versions of automake would omit the rule that makes
39425         Makefile from Makefile.in.
39426
39427 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39428
39429         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39430         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39431         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39432         (memcoll): Set errno to zero if there is no error.
39433
39434         * lib/quotearg.c (quotearg_buffer_restyled):
39435         Fix bug with quoting buffers containing NUL when backslashing escapes.
39436         This bug was exposed by the other changes in this patch.
39437         (quotearg_n_options): New arg ARGSIZE.
39438         All callers changed.
39439         (quoting_options_from_style): New function.
39440         (quotearg_n_style): Use it.
39441         (quotearg_n_style_mem): New function.
39442
39443         * lib/quotearg.h (quotearg_n_style_mem): New function.
39444
39445 2002-01-19  Jim Meyering  <meyering@lucent.com>
39446
39447         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39448         Remove useless quotes: DF_PROG="df".
39449         * m4/strnlen.m4: New file.
39450
39451 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39452
39453         * lib/backupfile.c (ISDIGIT): Comment fix.
39454         * lib/getdate.y (ISDIGIT): Likewise.
39455         * lib/posixtm.c (ISDIGIT, year): Likewise.
39456         * lib/strverscmp.c (ISDIGIT): Likewise.
39457         * lib/userspec.c (ISDIGIT): Likewise.
39458
39459 2002-01-16  Jim Meyering  <meyering@lucent.com>
39460
39461         * lib/getdate.y: Add three semicolons, each just before a closing
39462         brace. Bison (as of version 1.31) no longer papers over that mistake.
39463
39464 2002-01-05  Jim Meyering  <meyering@lucent.com>
39465
39466         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39467
39468 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39469
39470         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39471         not silently exit merely because the output buffer happens to
39472         have nothing pending.
39473
39474 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39475
39476         See the big note in ../ChangeLog.
39477         * lib/human.c (suffixes): Prefer K to k for 1024.
39478         (generate_suffix_backwards): New function.
39479         (human_readable_inexact): Use it.
39480         * lib/xstrtol.c (__xstrtol): If there is no number but there
39481         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39482         Accept 'K' as well as 'k'.
39483
39484 2001-12-15  Jim Meyering  <meyering@lucent.com>
39485
39486         * lib/regex.h (__restrict_arr): Update from libc.
39487
39488         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39489         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39490         (STREQ): Define.
39491
39492 2001-12-14  Jim Meyering  <meyering@lucent.com>
39493
39494         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39495         Suggestion from Bruno Haible.
39496
39497 2001-12-10  Jim Meyering  <meyering@lucent.com>
39498
39499         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39500         xrealloc, Instead, include "xalloc.h".
39501         (initbuffer): Don't cast xmalloc return value to char*.
39502         (readline): Reword comment.
39503         Don't cast xrealloc return value to char*
39504         Return NULL, not 0.
39505
39506 2001-12-09  Jim Meyering  <meyering@lucent.com>
39507
39508         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39509         about `signed and unsigned type in conditional expression'.
39510         * lib/posixtm.c (posix_time_parse): Likewise.
39511
39512         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39513
39514         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39515         to avoid a pedantic warning.
39516
39517         * lib/getstr.c: Don't include assert.h.
39518         (getstr): Remove warning-evoking assertions.
39519         Return -1 if offset parameter is out of bounds.
39520         Change the type of a local from int to size_t.
39521
39522         * lib/strftime.c (my_strftime_localtime_r): Include this function
39523         definition in the `#if ! HAVE_TM_GMTOFF' block.
39524
39525         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39526         Include xalloc.h instead.
39527
39528 2001-12-02  Jim Meyering  <meyering@lucent.com>
39529
39530         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39531         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39532         included.
39533
39534         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39535         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39536
39537 2001-11-30  Akim Demaille  <akim@epita.fr>
39538
39539         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39540         before being defined.
39541
39542 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39543
39544         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39545         First arg is int, not unsigned.
39546         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39547         (SIZE_MAX, UINT_MAX): New macros.
39548         (quotearg_n_options): Abort if N is negative.
39549         Avoid overflow check on hosts where size_t is 64 bits and int
39550         is 32 bits, as overflow is impossible there.
39551         Fix off-by-one typo that caused unnecessary reallocation.
39552
39553 2001-11-27  Jim Meyering  <meyering@lucent.com>
39554
39555         * lib/tempname.c: Merge with version from libc.
39556         * lib/regex.c: Likewise.
39557
39558         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39559         systems for which STDC_HEADERS is 0, it was not included, resulting in
39560         a warning about an integer-to-pointer conversion problem with getenv.
39561         Reported by Volker Borchert.
39562
39563 2001-11-26  Jim Meyering  <meyering@lucent.com>
39564
39565         * lib/gtod.h: Remove file.
39566         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39567         * lib/gettimeofday.c: Don't include gtod.h.
39568         (GTOD_init): Remove function.
39569         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39570         Suggestion from Volker Borchert.
39571
39572 2001-11-23  Jim Meyering  <meyering@lucent.com>
39573
39574         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39575         it.
39576         * lib/hash.c (struct hash_table): Define it here instead.
39577
39578 2001-11-22  Jim Meyering  <meyering@lucent.com>
39579
39580         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39581
39582 2001-11-20  Jim Meyering  <meyering@lucent.com>
39583
39584         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39585         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39586
39587 2001-11-19  Jim Meyering  <meyering@lucent.com>
39588
39589         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39590         directory.  Use "conftestXXXXXX" as the template.
39591         Suggestion from Paul Eggert.
39592
39593         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39594         immediately, so the test doesn't mistakenly hit the max-open-files
39595         limit.
39596
39597 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39598
39599         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39600         (TEMPORARIES): New macro.
39601         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39602         removes an artificial limitation (e.g. HP-UX 10.20, where
39603         TMP_MAX is 17576).
39604
39605 2001-11-18  Jim Meyering  <meyering@lucent.com>
39606
39607         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39608
39609 2001-11-18  Jim Meyering  <meyering@lucent.com>
39610
39611         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39612         on SunOS 4.
39613
39614         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39615         files will be created before anything else.
39616
39617 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39618
39619         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39620         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39621
39622 2001-11-17  Jim Meyering  <meyering@lucent.com>
39623
39624         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39625         Prompted by a report from Bob Proulx.
39626
39627         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39628         Instead, require UTILS_FUNC_MKSTEMP.
39629
39630 2001-11-17  Jim Meyering  <meyering@lucent.com>
39631
39632         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39633         Now, that's done as part of AC_FUNC_STRTOD.
39634
39635 2001-11-17  Jim Meyering  <meyering@lucent.com>
39636
39637         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39638         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39639         rather than group writable.  Patch by Juan F. Codagnone.
39640
39641         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39642         xrealloc, Instead, include "xalloc.h".
39643
39644         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39645         Remove explicit declarations of xmalloc, xrealloc,
39646         and xstrdup.  Instead, include "xalloc.h".
39647
39648         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39649         unlocked-io.h.
39650         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39651         Likewise.
39652         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39653
39654         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39655         Reported by Padraig Brady.
39656
39657         * lib/mkstemp.c: #undef mkstemp.
39658         Include config.h.
39659         (rpl_mkstemp): Rename from mkstemp.
39660         Protoize.
39661
39662 2001-11-16  Jim Meyering  <meyering@lucent.com>
39663
39664         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39665         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39666         determine the amount of total physical memory, use pstat_getstatic.
39667         HPUX-11 doesn't define _SC_PHYS_PAGES.
39668         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39669         If sysconf couldn't be used to determine the amount of available
39670         physical memory, use both pstat_getstatic and pstat_getdynamic.
39671         Based on a patch from Bob Proulx.
39672
39673 2001-11-10  Jim Meyering  <meyering@lucent.com>
39674
39675         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39676         (jm_PREREQ): Use it.
39677
39678 2001-11-09  Jim Meyering  <meyering@lucent.com>
39679
39680         * m4/jm-macros.m4: Require autoconf-2.52f.
39681         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39682         Use these AC_-prefixed names, not the AM_-prefixed ones.
39683
39684         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39685
39686 2001-11-05  Jim Meyering  <meyering@lucent.com>
39687
39688         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39689
39690 2001-11-04  Jim Meyering  <meyering@lucent.com>
39691
39692         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39693         $DEFS.
39694
39695 2001-11-03  Jim Meyering  <meyering@lucent.com>
39696
39697         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39698         of AC_DEFUN.
39699
39700         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39701         know the name of the variable in the macro definition.
39702
39703 2001-11-03  Jim Meyering  <meyering@lucent.com>
39704
39705         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39706         in argmatch_to_argument call.
39707
39708         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39709         argument.
39710
39711         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39712         e.g., a fault due to an attempt to free a NULL pointer.
39713
39714 2001-11-01  Jim Meyering  <meyering@lucent.com>
39715
39716         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39717         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39718
39719 2001-11-01  Jim Meyering  <meyering@lucent.com>
39720
39721         * lib/dirfd.c, lib/dirfd.h: New files.
39722         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39723
39724         * lib/hash.c (hash_print) [TESTING]: Clean up.
39725
39726 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39727
39728         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39729         to avoid a warning if -Wall.
39730
39731 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39732
39733         * README: New file
39734         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39735         (per RMS's instructions, this is now the canonical source)
39736         * lgpl/, gpl/: New directories.
39737
39738 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39739
39740         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39741
39742 2001-10-21  Jim Meyering  <meyering@lucent.com>
39743
39744         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39745         this code would end up calling gettext even in packages built
39746         with --disable-nls.
39747         * lib/getopt.c (_): Likewise.
39748         * lib/regex.c (_): Likewise.
39749
39750 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39751
39752         * m4/error.m4 (jm_PREREQ_ERROR):
39753         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39754         AC_FUNC_STRERROR_R does that.
39755         Check for strerror declaration.
39756
39757         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39758         are supposed to have them these days.
39759         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39760         Merge changes from latest Autoconf CVS.
39761         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39762         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39763         POSIX decided to standardize on the int flavor of strerror_r.
39764
39765 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39766
39767         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39768         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39769         Use strerror_r that is only a macro, even if it is not a function.
39770         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39771         (private_strerror): Use prototypes, not old-style function definition.
39772         (print_errno_message): New function.
39773         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39774         char*-flavored one.
39775         (error_tail, error, error_at_line): Use it.
39776
39777 2001-10-11  Jim Meyering  <meyering@lucent.com>
39778
39779         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39780         and quote_n (1, ... to avoid clobbering a buffer.
39781
39782 2001-10-05  Jim Meyering  <meyering@lucent.com>
39783
39784         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39785         hash-pjw.h.
39786         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39787         * lib/hash-pjw.h: New file.
39788
39789 2001-09-30  Jim Meyering  <meyering@lucent.com>
39790
39791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39792         `struct fsstat' has the `f_fstypename' member.
39793         Use that to define FS_TYPE, which is now used to make
39794         the getfsstat link test tighter.
39795
39796 2001-09-30  Jim Meyering  <meyering@lucent.com>
39797
39798         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39799         Include <sys/ucred.h>, for Apple Darwin.
39800         Include sys/mount.h and sys/fs_types.h only if available.
39801         (FS_TYPE): Define.
39802         (read_filesystem_list): Use FS_TYPE.
39803
39804 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39805
39806         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39807         a boolean context.
39808
39809 2001-09-29  Jim Meyering  <meyering@lucent.com>
39810
39811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39812         [one-argument getmntent function]): Include stdio.h before mntent.h.
39813         SunOS 4.1.x needs it for the declaration of `FILE'.
39814         Patch by Volker Borchert.
39815
39816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39817         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39818         sys/fs_types.h, and make the link-test for getfsstat guard #include
39819         directives with appropriate #if HAVE_*_H tests so that we can
39820         detect getfsstat on Apple Darwin1.3.7 systems.
39821         Reported by Nelson Beebe.
39822         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39823
39824 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39825
39826         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39827         #defines strtoimax.  Also treat the other strto* functions
39828         like strtoimax.
39829
39830         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39831         Check for strtoul and strtoumax,
39832         as those declarations are made even in the signed case.
39833         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39834         Likewise, for strtol and strtoimax.
39835
39836 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39837
39838         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39839         #defines strtoimax.  Also treat the other strto* functions
39840         like strtoimax.
39841
39842         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39843         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39844         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39845
39846 2001-09-26  Jim Meyering  <meyering@lucent.com>
39847
39848         Most macros in unlocked-io.h had the wrong number of arguments.
39849         * lib/gen-uio: New script.
39850         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39851         * lib/unlocked-io.hin: Remove file.
39852         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39853         rather than trying to embed it here.
39854         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39855         Reported by Padraig Brady.
39856
39857 2001-09-25  Volker Borchert  <bt@teknon.de>
39858
39859         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39860         `result'.
39861
39862 2001-09-24  Jim Meyering  <meyering@lucent.com>
39863
39864         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39865
39866 2001-09-23  Jim Meyering  <meyering@lucent.com>
39867
39868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39869         instead of the mere test for existence of mntent.h.  The latter
39870         would get a false-positive on AIX 3.4 systems.
39871         In the outer getmntent if-block, don't die if neither of the getmntent
39872         tests succeeds.  Instead, just fall through and continue with the
39873         remaining tests.
39874
39875 2001-09-23  Jim Meyering  <meyering@lucent.com>
39876
39877         * lib/mountlist.c: Remove useless parentheses in #if directives.
39878         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39879         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39880
39881 2001-09-22  Jim Meyering  <meyering@lucent.com>
39882
39883         * m4/gettext.m4: New file.  From gettext.
39884         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39885         * m4/progtest.m4: Likewise
39886         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39887         * m4/glibc21.m4: Likewise.
39888
39889         * m4/libintl.m4: Remove.  No longer used.
39890
39891 2001-09-22  Jim Meyering  <meyering@lucent.com>
39892
39893         * lib/localcharset.c: Update from latest gettext.
39894         * lib/config.charset: Likewise.
39895
39896 2001-09-20  Jim Meyering  <meyering@lucent.com>
39897
39898         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39899         strtoimax.
39900         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39901         strtoumax.
39902
39903 2001-09-20  Jim Meyering  <meyering@lucent.com>
39904
39905         * lib/xstrtol.c (strtoimax): Guard declaration with
39906         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39907         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39908         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39909         (strtoumax): Likewise, for completeness (it wasn't necessary).
39910
39911 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39912
39913         * lib/strtoimax.c (HAVE_LONG_LONG):
39914         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39915         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39916         to work around bug in IBM C compiler.
39917
39918 2001-09-17  Jim Meyering  <meyering@lucent.com>
39919
39920         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39921         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39922         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39923         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39924         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39925         whenever the right hand side need not be expanded by the shell.
39926
39927 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39928
39929         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39930         library.  It's not correct, as some older glibcs are buggy.
39931         fnmatch wasn't fixed until glibc 2.2.
39932
39933         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39934         special shell magic here.
39935
39936 2001-09-16  Jim Meyering  <meyering@lucent.com>
39937
39938         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39939         * m4/jm-macros.m4: Require it.
39940
39941 2001-09-16  Jim Meyering  <meyering@lucent.com>
39942
39943         * lib/mkdir.c: New file.
39944
39945 2001-09-15  Jim Meyering  <meyering@lucent.com>
39946
39947         * m4/jm-macros.m4: Check for help2man.
39948
39949 2001-09-11  Jim Meyering  <meyering@lucent.com>
39950
39951         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39952         The body, by Paul Eggert, was moved here from configure.in.
39953         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39954
39955 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39956
39957         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39958         (jm_PREREQ): Use it.
39959
39960 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39961
39962         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39963         Use ssize_t, not int, to store result of readlink.
39964         Check for ssize_t overflow as well as size_t overflow,
39965         as POSIX says the result of readlink is implementation-defined
39966         when ssize_t overflows.
39967         Remove unnecessary cast to char*.
39968         Use free+malloc instead of realloc, as the storage doesn't need
39969         to be preserved and it's clearer and can be more efficient that way.
39970         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39971         * lib/xreadlink.h (xreadlink): Update prototype.
39972
39973 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39974
39975         * lib/xgetcwd.c: Revert some of the previous change; intead,
39976         fix the HAVE_GETCWD_NULL code to behave more like the
39977         !HAVE_GETCWD_NULL code used to.
39978
39979         Include "xalloc.h".
39980         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39981         invoke xalloc_die.
39982
39983 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39984
39985         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39986         sys/param.h, as pathmax.h includes them.
39987
39988 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39989
39990         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39991         (jm_PREREQ_XGETCWD): New macro.
39992
39993         * m4/getcwd.m4: New file.
39994
39995 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39996
39997         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39998         like the HAVE_GETCWD_NULL code.
39999         Include pathmax.h if not HAVE_GETCWD.
40000         Do not include xalloc.h.
40001         (INITIAL_BUFFER_SIZE): New symbol.
40002         Do not use xmalloc / xrealloc, since the caller is responsible for
40003         handling errors.  Preserve errno around `free' during failure.
40004         Do not overrun buffer when using getwd.
40005
40006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40007
40008         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40009         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40010         getcwd (NULL, 0).
40011
40012 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40013
40014         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40015         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
40016         spotted by Jim Meyering.
40017
40018 2001-09-03  Jim Meyering  <meyering@lucent.com>
40019
40020         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40021         failure.
40022
40023 2001-09-02  Jim Meyering  <meyering@lucent.com>
40024
40025         * lib/error.c: Update from GNU libc.
40026
40027 2001-09-01  Jim Meyering  <meyering@lucent.com>
40028
40029         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40030         Used by df.
40031
40032 2001-09-01  Jim Meyering  <meyering@lucent.com>
40033
40034         * lib/xreadlink.c: New file.
40035         * lib/xreadlink.h: New file.
40036         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40037         xreadlink.h.
40038
40039         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40040         doesn't conflict with sparc Solaris 7's definition in
40041         /usr/include/sys/int_types.h.
40042
40043         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40044         files.
40045         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40046         and strncasecmp as r-values.  Unixware didn't have declarations.
40047
40048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40049
40050         * lib/xstrtol.h: Add copyright notice.
40051         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40052         LONGINT_INVALID_SUFFIX_CHAR.
40053
40054 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40055
40056         * lib/xstrtol.c (strtoimax): New decl.
40057
40058 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40059
40060         * lib/xgetcwd.c: Don't include pathmax.h.
40061         Include stdlib.h and unistd.h if available.
40062         Include xalloc.h.
40063         (xmalloc, xstrdup, free): Remove decls.
40064         (xgetcwd): Don't assume sizes fit in unsigned.
40065         Check for overflow when computing sizes.
40066         Simplify reallocation code.
40067
40068 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40069
40070         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
40071         a directory's st_size can have an arbitrary value, so the old
40072         usage could waste an arbitrary amount of memory.  All uses
40073         changed.
40074         * lib/savedir.h: Update prototype.
40075
40076 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40077
40078         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40079
40080         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40081         old strtoimax.c.
40082
40083         Also, make the following further changes to make this file's
40084         configuration more similar to that of strtol.c:
40085         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40086         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40087         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40088         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40089         changed to signed values.
40090
40091         And make the following changes as well:
40092         Fix copyright notice, as 1999 was missing.
40093         (verify): New macro.
40094         (strtoimax): Check sizes at compile-time, not run-time.
40095         Prefer strtol to strtoll if both work.
40096         (main): Remove; it was not that useful and was a pain to maintain.
40097
40098         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40099
40100 2001-08-31  Jim Meyering  <meyering@lucent.com>
40101
40102         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40103         Use an initial, malloc'd, buffer of length 128 rather than
40104         a statically allocated one of length 1024.
40105
40106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40107
40108         Simplify code, partly by assuming autoconf 2.52 semantics.
40109
40110         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40111
40112         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40113         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40114         All uses removed.
40115         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40116         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40117         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40118         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40119         jm_AC_HEADER_INTTYPES_H.
40120         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40121
40122         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40123
40124         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40125         Quote first arg of AC_DEFUN.
40126         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40127         since they are needed to parse the include file even if we need
40128         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40129         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40130         but with opposite signedness.
40131
40132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40133
40134         Merge 'exclude' changes from tar 1.13.22.
40135         This fixes one or two unlikely storage allocation overflow bugs,
40136         but doesn't change user-visible behavior otherwise.
40137
40138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40139
40140         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40141         (jm_PREREQ_EXCLUDE): New macro.
40142
40143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40144
40145         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40146         tm to be declared.
40147
40148 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40149
40150         * lib/hash.c: Remove '2001' from copyright notice.
40151
40152 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40153
40154         * lib/full-write.h: New file.
40155         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40156         * lib/full-write.c: Correct credits, as cccp.c no longer
40157         exists and anyway it was so heavily changed from the old cccp
40158         code as to be unrecognizable.  Include full-write.h.
40159         (full_write) Return size_t, with short writes meaning failure.
40160         All callers changed.  This fixes a bug with large buffers
40161         on 64-bit hosts.
40162         * lib/utime.c: Include full-write.h.
40163
40164 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40165
40166         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40167         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40168         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40169         Include if available.
40170         (<xalloc.h>): Include
40171         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40172         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40173         collide with FNM macros.
40174         (struct patopts): New struct.
40175         (struct exclude): Use it, as exclude patterns now come with options.
40176         (new_exclude): Support above changes.
40177         (new_exclude, add_exclude_file):
40178         Initial size must now be a power of two to simplify overflow checking.
40179         (free_exclude, fnmatch_no_wildcards): New function.
40180         (excluded_filename): No longer requires options arg, as the options
40181         are determined by add_exclude.  Now returns bool, not int.
40182         (excluded_filename, add_exclude):
40183         Add support for the fancy new exclusion options.
40184         (add_exclude, add_exclude_file): Now takes int options arg.
40185         Check for arithmetic overflow when computing sizes.
40186         (add_exclude_file): xrealloc might modify errno, so don't
40187         realloc until after errno might be used.
40188
40189         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40190         New macros.
40191         (free_exclude): New decl.
40192         (add_exclude, add_exclude_file): Now takes int options arg.
40193         (excluded_filename): No longer requires options arg, as the options
40194         are determined by add_exclude.  Now returns bool, not int.
40195
40196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40197
40198         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40199
40200 2001-08-27  Jim Meyering  <meyering@lucent.com>
40201
40202         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40203
40204         * lib/version-etc.c (N_): Remove definition.
40205         Revert most of last change.
40206         Instead, simply don't mark the `Copyright...' string for translation.
40207         Based on advice from Paul Eggert.
40208
40209         * lib/strtoxmax.c: Tweak comment.
40210
40211 2001-08-26  Jim Meyering  <meyering@lucent.com>
40212
40213         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40214
40215         * m4/xstrtoimax.m4: New file.
40216         * m4/xstrtoumax.m4: Add comments explaining why we
40217         AC_REPLACE_FUNCS(strtol).
40218
40219 2001-08-26  Jim Meyering  <meyering@lucent.com>
40220
40221         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40222         of copyright with `%s' so translators don't get an untranslated
40223         message in 2002.
40224         (COPYRIGHT_YEAR): Define.
40225         (version_etc): Use fprintf rather than fputs.
40226         Suggestion from Ulrich Drepper.
40227
40228         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40229
40230         * lib/strtoll.c: New file, from GNU libc.
40231         * lib/xstrtoimax.c: New file.
40232
40233         * lib/xstrtol.h: Add xstrtoimax.
40234         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40235         * lib/strtoimax.c: New file.  Likewise, but first define
40236         STRTOUXMAX_SIGNED.
40237
40238         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40239         ...
40240         * lib/strtoxmax.c: ... then renamed to this.
40241
40242 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40243
40244         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40245         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40246         (jm_AC_TYPE_INTMAX_T): New macro.
40247         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40248
40249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40250
40251         * m4/longlong.m4: Renamed from ulonglong.m4.
40252         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40253         * m4/uintmax_t.m4: Removed.
40254
40255 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40256
40257         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40258         Port to Solaris 8, where 'sed' requires a space after the 'r'
40259         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40260         Redirect output to $tmp just once.
40261
40262 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40263
40264         * lib/addext.c (<errno.h>): Include.
40265         (errno): Declare if not defined.
40266         (addext): Work correctly when pathconf returns -1 and leaves
40267         errno alone because there is no limit.  Also, work even if
40268         pathconf returns a value greater than SIZE_MAX.
40269
40270 2001-08-12  Jim Meyering  <meyering@lucent.com>
40271
40272         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40273         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40274         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40275         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40276         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40277         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40278         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40279         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40280         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40281         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40282         utime.m4, utimes.m4, xstrtoumax.m4:
40283         Quote the first argument in each use of AC_DEFUN.
40284
40285 2001-08-12  Jim Meyering  <meyering@lucent.com>
40286
40287         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40288         Simply `return getcwd (NULL, 0);'.
40289         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40290         Use 1300 as initial value for length, not PATH_MAX.
40291
40292         * lib/pathmax.h: Clean up cpp syntax.
40293
40294 2001-08-12  Jim Meyering  <meyering@lucent.com>
40295
40296         * lib/gettimeofday.c: New file.
40297         * lib/gtod.h: New file.
40298         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40299
40300 2001-08-05  Jim Meyering  <meyering@lucent.com>
40301
40302         * m4/jm-macros.m4: Require autoconf-2.52.
40303
40304 2001-08-04  Jim Meyering  <meyering@lucent.com>
40305
40306         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40307         stmt, to get in sync with glibc.
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.
40313
40314         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40315         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40316         with inverted sense.  All uses changed.
40317
40318         * lib/mbswidth.c: Don't include <limits.h>.
40319         Include <stdlib.h> and <string.h> unconditionally.
40320         (iswcntrl, mbsinit, ISCNTRL): New macros.
40321         (mbsnwidth): Use K&R style function declarations.
40322         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40323         can optimize it when MB_CUR_MAX == 1.
40324         The width of control characters is zero, not 1.
40325
40326 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40327
40328         The following changes are from gettext 0.10.39 as maintained by
40329         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40330
40331         * m4/codeset.m4: Upgrade to serial AM1.
40332         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40333         all uses changed.  Quote first arg of AC_DEFUN.
40334         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40335
40336         * m4/iconv.m4: Upgrade to serial AM2.
40337         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40338         Add --with-libconv-prefix.
40339         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40340         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40341         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40342         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40343         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40344
40345         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40346         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40347         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40348         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40349         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40350         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40351         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40352         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40353         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40354
40355         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40356         string.h any more.
40357
40358         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40359         not the default value.
40360
40361         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40362         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40363         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40364         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40365         Also check for iswcntrl, used for wcwidth fallback.
40366         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40367         to Autoconf 2.13.
40368
40369 2001-08-03  Jim Meyering  <meyering@lucent.com>
40370
40371         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40372         as it was in the original.  Reported by Paul Eggert.
40373
40374 2001-07-16  Jim Meyering  <meyering@lucent.com>
40375
40376         * m4/gettimeofday.m4: New file.
40377         Prompted by a report from Bernhard Baehr.
40378
40379 2001-07-15  Jim Meyering  <meyering@lucent.com>
40380
40381         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40382         stuff. Now it's in ../Makefile.cfg.
40383
40384 2001-07-15  Jim Meyering  <meyering@lucent.com>
40385
40386         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40387         (BUILT_SOURCES): Add unlocked-io.h.
40388         (io_functions): Define.
40389         (unlocked-io.h): New rule.
40390         (DISTCLEANFILES): Add unlocked-io.h.
40391         (all-local): Depend on unlocked-io.h, to ensure it is created.
40392
40393         * lib/unlocked-io.hin: New file
40394
40395         * lib/regex.c: Update from glibc.
40396
40397 2001-07-05  Jim Meyering  <meyering@lucent.com>
40398
40399         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40400         recommendation.
40401         (libfetish_a_SOURCES): Put all .h files here instead.
40402         Remove a thus-exposed (better checks in automake) duplicate and
40403         two unnecessary .h files.
40404
40405 2001-07-04  Jim Meyering  <meyering@lucent.com>
40406
40407         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40408         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40409         distcheck failure.
40410
40411 2001-07-02  Jim Meyering  <meyering@lucent.com>
40412
40413         The following changes were prompted by suggestions from Bruno Haible.
40414
40415         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40416         is now generated.
40417         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40418         definition of EXTRA_DIST.
40419         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40420         ensure that the generated file is created/updated whenever the list
40421         of $(unlocked_functions) is changed.
40422         (jm-glibc-io.m4): New rule.
40423         (unlocked-io.h): New rule -- currently unused.
40424
40425 2001-06-24  Jim Meyering  <meyering@lucent.com>
40426
40427         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40428         unmatched right bracket, rather than kludging it with an extra,
40429         falsely-matching quote in a comment.  Patch by Akim Demaille.
40430
40431 2001-06-11  Jim Meyering  <meyering@lucent.com>
40432
40433         * lib/regex.c: Update from GNU libc.
40434
40435 2001-05-27  Jim Meyering  <meyering@lucent.com>
40436
40437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40438         Check for ut_type in struct utmp.
40439
40440 2001-05-27  Jim Meyering  <meyering@lucent.com>
40441
40442         * lib/readutmp.h (UT_TYPE): Define.
40443
40444 2001-05-24  Jim Meyering  <meyering@lucent.com>
40445
40446         * lib/argmatch.c: Include "quote.h".
40447         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40448         quote function.  Reported by Göran Uddeborg.
40449
40450 2001-05-22  Jim Meyering  <meyering@lucent.com>
40451
40452         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40453         now that we use the package-supplied version unconditionally.
40454         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40455
40456 2001-05-21  Jim Meyering  <meyering@lucent.com>
40457
40458         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40459         shell syntax errors.
40460
40461 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40462
40463         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40464
40465 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40466
40467         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40468         Don't bother to check library strftime, since
40469         we'll be using our own my_strftime function anyway.
40470         Define my_strftime instead of strftime.
40471
40472 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40473
40474         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40475         which is not yet declared.
40476
40477 2001-05-15  Jim Meyering  <meyering@lucent.com>
40478
40479         * m4/regex.m4: Use proper quoting so brackets appear in the test
40480         program.
40481         Reported by, and with help from, Bruno Haible.
40482
40483 2001-05-13  Jim Meyering  <meyering@lucent.com>
40484
40485         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40486         undefined.
40487
40488 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40489
40490         dirname code cleanup.  base_name now behaves more compatibly
40491         with POSIX basename when given file names that have trailing
40492         slashes, and similarly for dir_name.  Add new primitives
40493         base_len and dir_len.  Put the directory-name-related decls
40494         into dirname.h.
40495
40496         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40497         * lib/backupfile.c (base_name): Likewise.
40498         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40499         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40500         * lib/makepath.c (strip_trailing_slashes): Likewise.
40501         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40502         ISSLASH): Likewise.
40503         * lib/rename.c (strip_trailing_slashes): Likewise.
40504         * lib/same.c (base_name): Likewise.
40505         * lib/stripslash.c (ISSLASH): Likewise.
40506
40507         * lib/addext.c: Include <dirname.h> after size_t is defined.
40508         * lib/backupfile.c: Likewise.
40509
40510         * lib/addext.c (addext): Use base_len to trim redundant
40511         trailing slashes instead of doing it ourselves.
40512         But do not trim the last slash if it is not redundant.
40513
40514         * lib/backupfile.c (find_backup_file_name,
40515         max_backup_version): Use base_len instead of rolling it ourselves.
40516         Handle the case of "" and (on DOS) "C:" correctly.
40517
40518         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40519         needed. Include <string.h>, <dirname.h>.
40520         (base_name): Allow file names ending in slashes, other than names
40521         that are all slashes.  In this case, return the basename followed
40522         by the slashes.  This is more general, and can be used in places
40523         where the original base_name purposely had an assertion failure.
40524         (base_len): New function.
40525
40526         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40527         Do not include <assert.h>; no longer needed.
40528         Include xalloc.h.
40529         (memrchr): Remove decl.
40530         (dir_name_r): Remove.
40531         (dir_len): Renamed from dirlen.  All callers changed.
40532         Rewrite in terms of base_name, for simplicity and consistency.
40533         (dir_name): Never return NULL.  All callers changed.
40534         Do not include <stdlib.h> in test program; no longer needed.
40535         return 0; is fine for test program.
40536
40537         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40538         New macros.
40539         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40540
40541         * lib/path-concat.c (path_concat): Use base_len to compute
40542         base length, not strlen; this means we cannot rely on memcpy
40543         to null-terminate.
40544
40545         * lib/same.c (STREQ): Remove.
40546         (same_name): Handle the case where the basename ends in trailing '/'.
40547
40548         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40549         a slash was stripped.  Do not strip the last slash after a
40550         file system prefix.
40551
40552 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40553
40554         * lib/Makefile.am (libfetish_a_SOURCES):
40555         Add strftime.c, since we now compile it on all hosts.
40556
40557         * lib/strftime.c (my_strftime):
40558         Define to nstrftime if emacs, but only if my_strftime is not defined.
40559         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40560         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40561         Add one more extra argument: a nanoseconds value.
40562         All uses changed.
40563         (ns): New macro.
40564         (my_strftime function): Add %N format.
40565         (emacs_strftimeu): Renamed from emacs_strftime,
40566         with extra ut argument.
40567
40568 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40569
40570         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40571
40572 2001-04-21  Jim Meyering  <meyering@lucent.com>
40573
40574         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40575         doesn't interfere.
40576
40577 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40578
40579         * m4/ftruncate.m4: Check for chsize.
40580         Link with ftruncate.o unconditionally if ftruncate is missing.
40581         This was required when cross-compiling to i586-mingw32msvc.
40582
40583 2001-04-08  Jim Meyering  <meyering@lucent.com>
40584
40585         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40586         recomputed; that's necessary when the offset spans a DST transition.
40587         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40588
40589 2001-04-02  Jim Meyering  <meyering@lucent.com>
40590
40591         * lib/regex.h, regex.c: Update from GNU libc.
40592
40593 2001-03-24  Jim Meyering  <meyering@lucent.com>
40594
40595         * m4/jm-macros.m4: Require autoconf-2.49d.
40596
40597 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40598
40599         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40600
40601 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40602
40603         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40604
40605 2001-03-17  Jim Meyering  <meyering@lucent.com>
40606
40607         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40608         now that the version in autoconf is equivalent.
40609         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40610
40611         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40612         Suggestion from Akim Demaille.
40613
40614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40615         (jm_PREREQ_TEMPNAME): New function.
40616
40617 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40618
40619         * lib/tempname.c (uint64_t): Define to uintmax_t if
40620         not defined, and if UINT64_MAX is not defined.
40621         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40622         Reported by John David Anglin.
40623
40624 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40625
40626         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40627         resolve alias if codeset is empty.
40628         * lib/config.charset (BeOS): Use wildcard syntax.
40629
40630 2001-03-13  Jim Meyering  <meyering@lucent.com>
40631
40632         * lib/path-concat.c (path_concat)
40633         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40634         concatenating e.g., `C:' and `foo'.
40635         From Bruno Haible.
40636
40637 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40638
40639         * lib/localcharset.c (locale_charset): Don't use
40640         setlocale(LC_CTYPE,NULL). Don't return NULL.
40641         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40642
40643 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40644
40645         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40646         support for DOS/DJGPP.
40647
40648 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40649
40650         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40651         lacks mkstemp.  Compile our own tempname.c if we compile our own
40652         mkstemp.c, as mkstemp relies on tempname.
40653
40654 2001-03-01  Jim Meyering  <meyering@lucent.com>
40655
40656         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40657         AH_VERBATIM really does output its argument verbatim.
40658
40659 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40660
40661         * lib/Makefile.am (libfetish_a_SOURCES):
40662         Add dup-safer.c, fopen-safer.c.
40663         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40664
40665         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40666         * lib/unistd-safer.h: New files.
40667
40668 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40669
40670         The mkstemp replacement is taken from glibc 2.2.2, with some
40671         portability fixes for use outside glibc, as follows:
40672
40673         * lib/tempname.c (struct_stat64): New macro.
40674         (direxists, __gen_tempname): Use it.
40675         This avoids a portability problem with Solaris 8.
40676
40677         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40678         (<stddef.h>, <stdint.h>, <string.h>):
40679         Include only if STDC_HEADERS || _LIBC.
40680         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40681         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40682         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40683         (__set_errno): Define this macro if <errno.h> doesn't.
40684         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40685         Define these macros if <stdio.h> doesn't.
40686         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40687         Define these macros if <sys/stat.h>
40688         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40689         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40690         __xstat64): Define if not _LIBC.
40691         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40692         (__gen_tempname): Invoke gettimeofday only if
40693         HAVE_GETTIMEOFDAY || _LIBC;
40694         otherwise, fall back on plain "time".
40695         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40696
40697         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40698
40699         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40700
40701 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40702
40703         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40704
40705 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40706
40707         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40708         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40709         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40710         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40711
40712 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40713
40714         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40715         Remove workaround macros for hosts that have mbrtowc but not
40716         mbstate_t, as we now insist on proper declarations for both
40717         before using mbrtowc.
40718
40719 2001-02-17  Jim Meyering  <meyering@lucent.com>
40720
40721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40722         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40723         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40724         UnixWare 7.1.1.
40725
40726         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40727         rather than AC_CACHE_VAL.
40728
40729 2001-02-17  Jim Meyering  <meyering@lucent.com>
40730
40731         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40732         around included file name.
40733
40734         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40735
40736         * lib/strftime.c: Update from GNU libc (the only changes were to
40737         comments).
40738
40739 2001-02-17  Jim Meyering  <meyering@lucent.com>
40740
40741         * lib/regex.c: Update from libc.
40742
40743 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40744
40745         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40746         clash.
40747
40748 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40749
40750         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40751         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40752         Reported by Mark Hounschell via Paul Eggert.
40753
40754 2001-02-07  Jim Meyering  <meyering@lucent.com>
40755
40756         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40757
40758 2001-02-05  Jim Meyering  <meyering@lucent.com>
40759
40760         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40761         it includes the patch required for `large file' support with at least
40762         HP-UX's 10.20 /bin/cc.
40763
40764 2001-02-03  Jim Meyering  <meyering@lucent.com>
40765
40766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40767         AS_IF, now that it works once again (mysteriously).
40768         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40769
40770 2001-01-30  Jim Meyering  <meyering@lucent.com>
40771
40772         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40773         * m4/chown.m4: Rename conftestchown to conftest.chown.
40774         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40775         s/conftestdir2/conftest.d2/.
40776         * m4/utimes.m4: s/conftestdata/conftest.data/
40777         Inspired by Pavel Roskin's change in autoconf.
40778
40779 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40780
40781         * lib/config.charset: Update for FreeBSD 4.2.
40782
40783 2001-01-27  Jim Meyering  <meyering@lucent.com>
40784
40785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40786         a use of AS_IF.
40787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40788
40789 2001-01-26  Jim Meyering  <meyering@lucent.com>
40790
40791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40792         quotearg.c includes it.
40793
40794 2001-01-26  Jim Meyering  <meyering@lucent.com>
40795
40796         * lib/quotearg.c: Include stddef.h.
40797         * lib/quote.c: Include stddef.h.
40798         Reported by Axel Kittenberger.
40799
40800         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40801         line in double quotes so that it evokes a better diagnostic.
40802         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40803         Reported by Axel Kittenberger.
40804
40805 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40806
40807         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40808         as if it was a `charset'.
40809
40810 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40811
40812         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40813         has const.
40814
40815 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40816
40817         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40818         to avoid a warning.  Add back 'const' to inptr.
40819
40820 2001-01-20  Jim Meyering  <meyering@lucent.com>
40821
40822         Be sure that headers are checked before used in code compiled
40823         for the type checks.
40824         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40825         In place of that, invoke jm_CHECK_ALL_TYPES.
40826         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40827         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40828         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40829         The check for ssize_t was mistakenly run before the test for unistd.h.
40830
40831         The configure-time check for stdbool.h was missing.
40832         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40833         (jm_PREREQ_HASH): New function.
40834
40835 2001-01-17  Jim Meyering  <meyering@lucent.com>
40836
40837         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40838         for autoconf-2.49c.
40839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40840
40841 2001-01-16  Jim Meyering  <meyering@lucent.com>
40842
40843         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40844         From Bruno Haible.
40845
40846 2001-01-14  Jim Meyering  <meyering@lucent.com>
40847
40848         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40849         foo and bar.  Create conftestdir/ in the script, not in the C code.
40850         Remove directories in the script, not in the C code.
40851         Remove conftestdir{,2} before trying to create the directory.
40852         Make the entire configure script fail if the mkdir fails.
40853
40854 2001-01-14  Jim Meyering  <meyering@lucent.com>
40855
40856         * lib/rename.c: New file.  From Volker Borchert.
40857         Include stdlib.h, string.h or strings.h, and xalloc.h.
40858         Use strip_trailing_slashes rather than open-coding it.
40859
40860 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40861
40862         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40863
40864 2001-01-03  Jim Meyering  <meyering@lucent.com>
40865
40866         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40867         of local `inptr' to avoid warning with some system declarations of
40868         iconv.
40869
40870 2001-01-02  Volker Borchert  <bt@teknon.de>
40871
40872         * m4/rename.m4: New file.
40873         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40874
40875 2001-01-01  Jim Meyering  <meyering@lucent.com>
40876
40877         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40878         even on systems with utmpx.h.  It's necessary for the declaration of
40879         utmp's ut_user member.  Reported by Andreas Jaeger.
40880
40881         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40882         available. They are required for the declarations of getgrgid and
40883         getpwuid resp.
40884         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40885         Reported by Andreas Jaeger.
40886
40887 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40888
40889         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40890         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40891         so `make install' also works in VPATH builds.
40892
40893 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40894
40895         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40896         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40897         can be used in subdirectories.
40898
40899 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40900
40901         * lib/modechange.c: Do not assume that mode_t uses the
40902         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40903         the other-execute bit of FOO even if S_IXOTH != 1.
40904
40905         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40906         WOTH, XOTH, ALLM): New macros.
40907         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40908          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40909         Use them.
40910         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40911         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40912         (mode_compile):
40913         No need to use uintmax_t; unsigned long is long enough.
40914         Don't bother to get suffix since we don't use it.
40915
40916 2000-12-26  Jim Meyering  <meyering@lucent.com>
40917
40918         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40919         better with autoheader.
40920
40921 2000-12-24  Jim Meyering  <meyering@lucent.com>
40922
40923         * lib/hash.c (is_prime): Return explicit boolean values.
40924         (hash_get_first): Return NULL to appease Irix5.6's 89.
40925         Reported by Nelson Beebe.
40926
40927 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40928
40929         * lib/localcharset.c (locale_charset): Add support for Win32.
40930
40931 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40932
40933         * lib/physmem.h, lib/physmem.c: New files.
40934
40935         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40936         (noinst_HEADERS): Add physmem.h.
40937
40938         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40939         't' for compatibility with Solaris 8 sort.
40940
40941 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40942
40943         * lib/config.charset: Add support for BeOS.
40944
40945 2000-12-17  Jim Meyering  <meyering@lucent.com>
40946
40947         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40948         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40949
40950 2000-12-16  Jim Meyering  <meyering@lucent.com>
40951
40952         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40953         N and M) would have treated it like `chown N:N FILE'.
40954
40955         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40956
40957 2000-12-16  Jim Meyering  <meyering@lucent.com>
40958
40959         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40960         SHELLS_FILE to a file name that's useful on djgpp systems.
40961         Include stdlib.h.
40962         (ADDITIONAL_DEFAULT_SHELLS): Define.
40963         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40964         Based mostly on a patch from Prashant TR.
40965
40966 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40967
40968         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40969         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40970         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40971
40972 2000-12-08  Andreas Schwab  <schwab@suse.de>
40973
40974         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40975         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40976
40977 2000-12-07  Jim Meyering  <meyering@lucent.com>
40978
40979         * lib/stripslash.c (ISSLASH): Define.
40980         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40981         `/'.
40982         From Prashant TR.
40983
40984         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40985         (dir_name_r): Declare this function as static.
40986         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40987         manifest itself on a name containing a mix of slashes and
40988         backslashes.
40989         Make this function work with names starting with a DOS-style
40990         drive letter and colon prefix.
40991         (dir_name): Append `.' if necessary.
40992         Based mostly on patches from Prashant TR and Eli Zaretskii.
40993
40994         * lib/dirname.h (dir_name_r): Remove prototype.
40995
40996 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40997
40998         * m4/off_t-format.m4: Remove this file.
40999         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41000
41001 2000-12-06  Jim Meyering  <meyering@lucent.com>
41002
41003         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41004         replacement strtoull, we may well need the replacement strtoul, too.
41005         Check for declarations of strtoul and strtoull.
41006         Check for strtol.  Mainly as a cue to cause automake to include
41007         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41008         Check for limits.h -- strtol.c needs it.
41009
41010 2000-12-05  Jim Meyering  <meyering@lucent.com>
41011
41012         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41013
41014 2000-12-04  Jim Meyering  <meyering@lucent.com>
41015
41016         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41017         Also include memory.h, stdlib.h, unistd.h if appropriate.
41018         Reported by Andreas Jaeger (conflicting declaration of malloc).
41019
41020 2000-12-02  Jim Meyering  <meyering@lucent.com>
41021
41022         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41023         * m4/jm-macros.m4 (jm_MACROS): require it.
41024
41025 2000-12-02  Jim Meyering  <meyering@lucent.com>
41026
41027         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41028
41029 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41030
41031         * lib/memrchr.c: Include <config.h> before any system include file.
41032
41033 2000-11-30  Jim Meyering  <meyering@lucent.com>
41034
41035         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41036
41037 2000-11-30  Jim Meyering  <meyering@lucent.com>
41038
41039         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41040
41041 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41042
41043         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41044
41045 2000-11-26  Jim Meyering  <meyering@lucent.com>
41046
41047         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41048
41049 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41050
41051         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41052         size of (size_t) -1; it's not portable.
41053
41054 2000-11-17  Jim Meyering  <meyering@lucent.com>
41055
41056         * lib/strstr.c: Update from GNU libc.
41057
41058 2000-11-17  Akim Demaille  <akim@epita.fr>
41059
41060         * lib/obstack.h: Formatting changes.
41061         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
41062         prevent type checking.
41063         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
41064         cast the value to (void *): assigning a `foo *' to a `void *'
41065         variable is valid.
41066         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
41067
41068 2000-11-16  Jim Meyering  <meyering@lucent.com>
41069
41070         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
41071
41072 2000-11-11  Jim Meyering  <meyering@lucent.com>
41073
41074         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41075
41076 2000-11-10  Jim Meyering  <meyering@lucent.com>
41077
41078         * lib/obstack.h: Update from GNU libc.
41079         * lib/obstack.c: Likewise.
41080
41081 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41082
41083         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41084
41085 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41086
41087         * lib/getusershell.c (setusershell): Use rewind rather than
41088         fseek/fseeko, to avoid configuration hassles with fseeko.
41089         Don't bother opening SHELLS_FILE if shellstream is NULL;
41090         it's not necessary.
41091
41092 2000-11-05  Jim Meyering  <meyering@lucent.com>
41093
41094         * lib/makepath.h (make_dir): Declare.
41095         * lib/makepath.c (make_dir): Remove `static' attribute.
41096         Tweak a comment.
41097
41098 2000-11-04  Jim Meyering  <meyering@lucent.com>
41099
41100         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41101
41102 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41103
41104         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41105         last one in a bucket, advance to the next bucket.
41106
41107 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41108
41109         * lib/fnmatch.c: Do not comment out all the code if we are using
41110         the GNU C library, because in some cases we are replacing buggy
41111         code in the GNU C library itself.
41112
41113 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41114
41115         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41116         (regex_compile): Catch bogus \(\1\).
41117
41118 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41119
41120         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41121         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41122         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41123
41124 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41125
41126         * lib/error.h, getline.h, modechange.h:
41127         Remove "2000" from Copyright line, as the file hasn't been
41128         changed this year other than in the copyright notice.
41129
41130         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41131         was changed this year.
41132
41133 2000-10-29  Jim Meyering  <meyering@lucent.com>
41134
41135         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41136         renaming.
41137         * m4/ls-mntd-fs.m4: Likewise
41138
41139 2000-10-29  Jim Meyering  <meyering@lucent.com>
41140
41141         * lib/xstat.in: Fix grammar in comment.
41142
41143 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41144
41145         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41146         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41147         doesn't define __restrict_arr.
41148
41149 2000-10-28  Jim Meyering  <meyering@lucent.com>
41150
41151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41152         (jm_PREREQ_MEMCHR): New function.
41153
41154 2000-10-28  Jim Meyering  <meyering@lucent.com>
41155
41156         * lib/memchr.c: Update from libc.
41157         Adjust for portability:
41158         [HAVE_STDLIB_H]: Include stdlib.h.
41159         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41160         Undef __memchr, too.
41161         [!weak_alias]: Define __memchr to memchr.
41162
41163         * lib/regex.c: Update from libc.
41164         * lib/regex.h: Likewise.
41165         * lib/getopt1.c: Likewise.
41166         * lib/memcmp.c: Likewise.
41167
41168         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41169         Avoid using fseek, when possible -- it's broken by design.
41170         Patch by Ulrich Drepper.
41171
41172 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41173
41174         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41175         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41176         Giving in to popular pressure to shut up the compiler with casts.
41177
41178 2000-10-26  Jim Meyering  <meyering@lucent.com>
41179
41180         * lib/strftime.c: Update from libc.
41181
41182 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41183
41184         * regex.c: More `unsigned char' -> `re_char' changes.
41185         Also change several `int' into `re_wchar_t'.
41186         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41187         (PUSH_FAILURE_POINTER): Don't cast any more.
41188         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41189         We want GCC to complain, since this piece of code makes
41190         re_match non-reentrant, which *should* be fixed.
41191         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41192         (EXTEND_BUFFER): Use RETALLOC.
41193         (SET_LIST_BIT): Don't cast.
41194         (re_wchar_t): New type.
41195         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41196         that those two functions will always properly return.
41197         (IMMEDIATE_QUIT_CHECK): Cast to void.
41198         (analyse_first): Use recursion rather than an explicit stack.
41199         (re_compile_fastmap): Can't fail anymore.
41200         (re_search_2): Don't check re_compile_fastmap for failure.
41201         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41202         Now also sets the new value (passed in a new argument).
41203         (re_match_2_internal): Use it.
41204         Also, use a new var `reg' of type size_t when looping through regs
41205         rather than reuse the inappropriate `mcnt'.
41206
41207 2000-10-25  Jim Meyering  <meyering@lucent.com>
41208
41209         * lib/obstack.c: Update from libc.
41210
41211 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41212
41213         * regex.c (regex_compile): Change the way of handling a range from
41214         a char less than 256 to a char not less than 256.
41215
41216 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41217
41218         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41219         NT-Emacs only.
41220         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41221         so that re_search functions only quit when callers expect them to.
41222
41223 2000-10-23  Jim Meyering  <meyering@lucent.com>
41224
41225         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41226         wrong.  That set_locale call must not have any side effects.
41227         From Paul Eggert.
41228
41229 2000-10-22  Jim Meyering  <meyering@lucent.com>
41230
41231         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41232         [CYCLIC]: Remove now-unused definition.
41233
41234         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41235         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41236         Suggestion from Ulrich Drepper.
41237
41238 2000-10-21  Jim Meyering  <meyering@lucent.com>
41239
41240         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41241         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41243
41244 2000-10-21  Jim Meyering  <meyering@lucent.com>
41245
41246         * lib/dirname.c (memrchr): Declare if necessary.
41247         (dir_name): Remove the restriction that there be no
41248         trailing slashes.  Now, this code skips past them, effectively
41249         ignoring them.
41250         [TEST_DIRNAME] (main): New unit tests.
41251
41252         * lib/memrchr.c: New file from GNU libc.
41253         Undef __memrchr, too.
41254         [!weak_alias]: Define __memrchr to memrchr.
41255         Guard weak_alias use with `#ifdef weak_alias'.
41256
41257 2000-10-21  Jim Meyering  <meyering@lucent.com>
41258
41259         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41260         (dir_name): Use dir_name_r.
41261         * lib/dirname.h (dir_name_r): Declare it.
41262
41263 2000-10-17  Jim Meyering  <meyering@lucent.com>
41264
41265         * lib/quote.h (PARAMS): Define and use.
41266         Reported by Akim Demaille.
41267
41268         * lib/getopt.c: Update from libc.
41269
41270 2000-10-16  Jim Meyering  <meyering@lucent.com>
41271
41272         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41273         setlocale.
41274         From Jan Fedak.
41275
41276 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41277
41278         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41279
41280 2000-09-25  Jim Meyering  <meyering@lucent.com>
41281
41282         * lib/md5.h (rol): Define (from GnuPG).
41283
41284         * lib/sha.c: Give credit (GnuPG) where due.
41285         (M): Use rol rather than open-coding it.
41286         Add a FIXME comment.
41287
41288 2000-09-21  Jim Meyering  <meyering@lucent.com>
41289
41290         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41291         Reported by Michael Stone.
41292
41293 2000-09-20  Jim Meyering  <meyering@lucent.com>
41294
41295         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41296         (noinst_HEADERS): Add sha.h.
41297         Based on code from Scott G. Miller and from GnuPG.
41298
41299 2000-09-18  Jim Meyering  <meyering@lucent.com>
41300
41301         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41302         LIBS. Otherwise, everyone ends up linking with -lelf for some
41303         configurations.
41304         Reported by Mike Stone.
41305
41306 2000-09-15  Jim Meyering  <meyering@lucent.com>
41307
41308         * lib/regex.c: Update from libc.
41309
41310 2000-09-10  Jim Meyering  <meyering@lucent.com>
41311
41312         * lib/getopt.c (_getopt_internal): Update from glibc.
41313
41314 2000-09-09  Jim Meyering  <meyering@lucent.com>
41315
41316         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41317         think it should be used as a general replacement for isascii.
41318         * lib/fnmatch.c: Likewise.
41319         * lib/mbswidth.c: Likewise
41320         * lib/regex.c: Likewise.
41321
41322         Don't use atoi.
41323         * lib/userspec.c: Include sys/param.h and limits.h.
41324         Include xstrtol.h.
41325         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41326         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41327         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41328         UID, GID.  Check range.
41329
41330 2000-09-06  Jim Meyering  <meyering@lucent.com>
41331
41332         * lib/getopt.c (_getopt_internal): Update from glibc.
41333
41334 2000-08-30  Jim Meyering  <meyering@lucent.com>
41335
41336         * lib/strftime.c: Merge in changes from GNU libc.
41337
41338 2000-08-26  Jim Meyering  <meyering@lucent.com>
41339
41340         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41341         * m4/fpending.m4: New file.
41342
41343 2000-08-26  Jim Meyering  <meyering@lucent.com>
41344
41345         * lib/closeout.c: Include "__fpending.h".
41346         (close_stdout_status): Return right away if there's nothing to flush.
41347
41348         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41349         * lib/__fpending.c: New file.
41350         * lib/__fpending.h: New file.
41351
41352 2000-08-20  Jim Meyering  <meyering@lucent.com>
41353
41354         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41355         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41356         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41357
41358 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41359
41360         Improve fileutils installation on systems where running
41361         programs (like install) can't be unlinked.
41362         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41363         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41364
41365 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41366
41367         Standardize on "memory exhausted" instead of "Memory exhausted"
41368         or "virtual memory exhausted".
41369         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41370         "virtual memory exhausted".
41371         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41372         our own message.
41373         * lib/userspec.c (parse_user_spec): Likewise.
41374         * lib/bumpalloc.h: comment fix
41375         * lib/same.c, userspec.c: Include xalloc.h.
41376
41377         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41378         not char *const and pointing to a constant array.
41379         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41380         (xrealloc): Comment fix.
41381
41382         * lib/userspec.c (parse_user_spec):
41383         Don't translate a message until just before returning,
41384         to avoid unnecessary translation.
41385
41386 2000-08-07  Jim Meyering  <meyering@lucent.com>
41387
41388         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41389         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41390         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41391         getgroups.c, gethostname.c, getopt.h, group-member.c,
41392         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41393         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41394         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41395         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41396         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41397         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41398         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41399         yesno.c: Back out Copyright date changes for each file with no change
41400         this year.  This eases coordination with other programs using the same
41401         source code modules.  From Paul Eggert.
41402
41403 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41404
41405         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41406         not char, for compatibility with glibc 2.1.3 strftime.c.
41407
41408 2000-08-03  Greg McGary  <greg@mcgary.org>
41409
41410         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41411         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41412         (EXTEND_BUFFER): Use them.
41413
41414 2000-08-01  Jim Meyering  <meyering@lucent.com>
41415
41416         * lib/dirname.c (ISSLASH): Define.
41417         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41418         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41419         both `\' and `/' may be use as path separators.
41420         Based on a patch from Prashant TR.
41421
41422 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41423
41424         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41425         slot vector a constant, since it might get modified.
41426
41427 2000-07-31  Jim Meyering  <meyering@lucent.com>
41428
41429         * lib/xmalloc.c: Use `virtual memory exhausted', not
41430         `Memory exhausted'.
41431         * lib/obstack.c (print_and_abort): Likewise.
41432
41433 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41434
41435         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41436         buffer, so that the caller can always quote one small
41437         component of a "memory exhausted" message in slot 0.
41438         From a suggestion by Jim Meyering.
41439
41440 2000-07-30  Jim Meyering  <meyering@lucent.com>
41441
41442         * lib/makepath.c (make_path): Quote the other instance, too.
41443
41444         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41445         (STATIC_BUF_SIZE): Define.
41446         (quotearg_n_options): Use only statically allocated storage when
41447         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41448         than STATIC_BUF_SIZE.
41449
41450 2000-07-29  Jim Meyering  <meyering@lucent.com>
41451
41452         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41453         * lib/dirname.c (dir_name): Likewise.
41454
41455         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41456         `/'.
41457
41458         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41459         (dir_name): Assert that there are no trailing slashes.
41460
41461 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41462
41463         * lib/mbswidth.h (mbswidth): Add a flags argument.
41464         (mbswidth): New declaration.
41465         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41466         * lib/mbswidth.c (mbswidth): Add a flags argument.
41467         (mbsnwidth): New function.
41468
41469 2000-07-24  Jim Meyering  <meyering@lucent.com>
41470
41471         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41472
41473 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41474
41475         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41476
41477 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41478
41479         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41480         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41481         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41482         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41483         invoke multibyte primitives.
41484
41485 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41486
41487         * lib/quotearg.c:
41488         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41489         so that mbstate_t is always defined.
41490
41491         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41492         be 1 in at least one GCC installation, and this configuration
41493         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41494         performance on hosts that have mbrtowc but have only unibyte
41495         locales, but I assume these hosts are rare.
41496
41497 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41498
41499         * lib/mbswidth.c (_XOPEN_SOURCE):
41500         Don't define; this causes problems on Solaris 7.
41501         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41502
41503 2000-07-23  Jim Meyering  <meyering@lucent.com>
41504
41505         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41506         too: getgrgid, getpwuid, getuid.
41507
41508 2000-07-23  Jim Meyering  <meyering@lucent.com>
41509
41510         * lib/basename.c (base_name): Add an assertion.
41511
41512 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41513
41514         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41515         shadow its mbsinit function.
41516
41517 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41518
41519         * lib/mbswidth.h: New file.
41520         * lib/mbswidth.c: New file.
41521         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41522         (noinst_HEADERS): Add mbswidth.h.
41523
41524 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41525
41526         * lib/config.charset: Add support for FreeBSD. Improve support for
41527         HP-UX and IRIX 6.
41528
41529 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41530
41531         * m4/mbswidth.m4: New file.
41532         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41533
41534 2000-07-15  Jim Meyering  <meyering@lucent.com>
41535
41536         * lib/makepath.c: Include quote.h.
41537         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41538         corresponding argument in a `quote (...)' call.
41539         Give better diagnostics.
41540
41541         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41542         (noinst_HEADERS): Add quote.h.
41543
41544         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41545         from tar's src/misc.c.
41546         * lib/quote.h: New file.  Prototypes for same.
41547
41548 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41549
41550         From a suggestion by Bruno Haible.
41551         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41552         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41553         to decide whether to define the BeOS workaround macro;
41554         this adjusts to the change to AC_MBSTATE_T.
41555
41556 2000-07-14  Jim Meyering  <meyering@lucent.com>
41557
41558         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41559         jm_AC_TYPE_UINTMAX_T.
41560
41561 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41562
41563         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41564
41565         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41566         quotearg_buffer_restyled): Add support for
41567         clocale_quoting_style.  Undo previous change to
41568         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41569         and "{RIGHT QUOTATION MARK}" msgids.
41570
41571 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41572
41573         From a suggestion by Bruno Haible.
41574         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41575         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41576         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41577         and mbstate_t, to a single-part test that simply defines mbstate_t.
41578         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41579         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41580
41581 2000-07-10  Jim Meyering  <meyering@lucent.com>
41582
41583         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41584
41585         * m4/gnu-source.m4: Output to confdefs.h directly.
41586         Suggestion from Akim Demaille.
41587
41588 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41589
41590         The old behavior of quoting `like this' doesn't look good with
41591         newer, ISO-style fonts.  See:
41592         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41593
41594         Instead, quote "like this" by default.  Let the translator
41595         tailor the locale-specific quoting behavior by providing
41596         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41597
41598         * lib/quotearg.c (N_): New macro.
41599         (gettext_default): New function.
41600         (quotearg_buffer_restyled): Use
41601         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41602         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41603
41604 2000-07-09  Jim Meyering  <meyering@lucent.com>
41605
41606         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41607         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41608
41609         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41611
41612 2000-07-09  Jim Meyering  <meyering@lucent.com>
41613
41614         * lib/Most files: Update copyright dates to include 2000.
41615
41616 2000-07-08  Jim Meyering  <meyering@lucent.com>
41617
41618         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41619         if not defined.
41620         (xgethostname): Remove now-unnecessary #ifdef.
41621         Move declaration of `err' into loop where it's used.
41622
41623 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41624         and Bruno Haible  <haible@clisp.cons.org>
41625
41626         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41627         only if the test for an object-type mbstate_t fails.  This
41628         prevents us from mistakenly reporting that mbstate_t is a
41629         system object type after we "#define mbstate_t int" to work
41630         around its lack.
41631
41632 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41633         and Bruno Haible  <haible@clisp.cons.org>
41634
41635         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41636
41637 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41638
41639         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41640         to strerror_r.
41641         Include <ctype.h> for use of isalpha.
41642
41643 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41644
41645         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41646         by allocating a larger buffer. Test the gethostname return value for
41647         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41648         returns an error and ENAMETOOLONG isn't defined.
41649
41650 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41651
41652         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41653         dimension.
41654
41655 2000-07-04  Jim Meyering  <meyering@lucent.com>
41656
41657         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41658         of the deprecated AC_CHECKING.
41659
41660 2000-07-04  Jim Meyering  <meyering@lucent.com>
41661
41662         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41663         Reported by Bruno Haible.
41664
41665 2000-07-04  Jim Meyering  <meyering@lucent.com>
41666
41667         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41668         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41669         lacks mbrtowc.
41670
41671 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41672
41673         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41674         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41675
41676 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41677         and Bruno Haible  <haible@clisp.cons.org>
41678
41679         * lib/quotearg.c (mbrtowc):
41680         Assign to *pwc, and return 1 only if result is nonzero.
41681         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41682
41683 2000-07-03  Jim Meyering  <meyering@lucent.com>
41684
41685         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41686
41687 2000-07-03  Jim Meyering  <meyering@lucent.com>
41688
41689         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41690         This is necessary to get a definition of e.g., UTMP_FILE on
41691         HP-UX 10.20.
41692         From Bob Proulx.
41693
41694 2000-07-02  Jim Meyering  <meyering@lucent.com>
41695
41696         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41697
41698         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41699         AC_LIBOBJ(function_name).
41700         * m4/chown.m4: Likewise.
41701         * m4/fnmatch.m4: Likewise.
41702         * m4/ftruncate.m4: Likewise.
41703         * m4/getgroups.m4: Likewise.
41704         * m4/getline.m4: Likewise.
41705         * m4/group-member.m4: Likewise.
41706         * m4/jm-macros.m4: Likewise.
41707         * m4/lstat.m4: Likewise.
41708         * m4/malloc.m4: Likewise.
41709         * m4/memcmp.m4: Likewise.
41710         * m4/nanosleep.m4: Likewise.
41711         * m4/putenv.m4: Likewise.
41712         * m4/realloc.m4: Likewise.
41713         * m4/regex.m4: Likewise.
41714         * m4/stat.m4: Likewise.
41715         * m4/strftime.m4: Likewise.
41716
41717 2000-07-02  Jim Meyering  <meyering@lucent.com>
41718
41719         * lib/quotearg.c (mbstate_t): Don't define here.
41720
41721 2000-07-02  Jim Meyering  <meyering@lucent.com>
41722
41723         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41724
41725 2000-07-01  Jim Meyering  <meyering@lucent.com>
41726
41727         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41728
41729 2000-07-01  Jim Meyering  <meyering@lucent.com>
41730
41731         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41732         problem.
41733
41734 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41735
41736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41737         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41738
41739 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41740
41741         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41742         per change in ../m4/ls-mntd-fs.m4.
41743         (read_filesystem_list): Ignore symbolic links.
41744
41745 2000-06-29  Jim Meyering  <meyering@lucent.com>
41746
41747         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41748         for declaration of strcmp.
41749
41750         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41751
41752         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41753         Avoid warning by casting result to `char *' to remove `const'.
41754
41755 2000-06-28  Jim Meyering  <meyering@lucent.com>
41756
41757         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41758         included by quotearg.c, for which we perform this test.  From
41759         Bruno Haible.
41760
41761 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41762
41763         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41764         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41765         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41766
41767 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41768
41769         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41770
41771 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41772
41773         savedir now sets errno on failure and invokes xmalloc to get memory.
41774         Fix a couple of other minor bugs while we're at it.
41775
41776         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41777         (NAMLEN): Remove macro.
41778         (malloc, realloc): Remove decls.
41779         (stpcpy): Likewise.
41780         ("xalloc.h"): Include.
41781         (NAME_SIZE_DEFAULT): New macro.
41782         (savedir): Use xmalloc / xrealloc to allocate memory.
41783         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41784         Skip "" directory entries.
41785         Use strlen to calculate directory entry length, since the old method
41786         is rarely used these days and isn't worth supporting.
41787         Don't use a pointer after freeing it.
41788         Check for integer overflow when calculating allocation size.
41789         Use memcpy to copy entries, instead of stpcpy.
41790         Set errno properly when returning NULL.
41791         Check for readdir error.
41792
41793 2000-06-26  Jim Meyering  <meyering@lucent.com>
41794
41795         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41796
41797 2000-06-25  Jim Meyering  <meyering@lucent.com>
41798
41799         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41800         Linux header bug when _XOPEN_SOURCE is defined to 500.
41801
41802 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41803
41804         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41805         deficiency.
41806
41807 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41808
41809         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41810         Include xalloc.h.
41811         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41812
41813 2000-06-24  Jim Meyering  <meyering@lucent.com>
41814
41815         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41816         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41817         for which strerror does return char*, but which lacks a conveniently
41818         accessible declaration of the function.  If the compile-test says
41819         strerror_r doesn't work, then resort to a `run'-test that works on
41820         BeOS and segfaults on DEC Unix.
41821
41822 2000-06-24  Jim Meyering  <meyering@lucent.com>
41823
41824         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41825
41826 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41827
41828         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41830
41831 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41832
41833         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41834         (mbrtowc, mbstate_t): Define substitutes if
41835         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41836         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41837         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41838
41839 2000-06-23  Jim Meyering  <meyering@lucent.com>
41840
41841         * m4/afs.m4: Add missing AC_MSG_RESULT.
41842         Reported by Bruno Haible.
41843
41844         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41845         Suggestion from Bruno Haible.
41846
41847 2000-06-23  Jim Meyering  <meyering@lucent.com>
41848
41849         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41850
41851 2000-06-21  Jim Meyering  <meyering@lucent.com>
41852
41853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41854
41855 2000-06-21  Jim Meyering  <meyering@lucent.com>
41856
41857         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41858         (noinst_HEADERS): Add getstr.h.
41859
41860         * lib/getline.c (getstr): Move into a separate file.
41861         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41862         the following changes: new parameter, delim2; both delim[12]
41863         parameters have type `int', not `char'.  The latter would lose
41864         with 8-bit delimiters.
41865         * lib/getstr.h: New file.
41866
41867 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41868
41869         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41870         than 1024, return a memory chunk of least possible size, instead
41871         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41872         Use free/xmalloc instead of xrealloc to avoid copying for very long
41873         paths.
41874
41875 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41876
41877         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41878         the empty string.
41879
41880 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41881
41882         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41883         address, not strdup.  Include <stdlib.h> and don't declare free().
41884
41885 2000-06-19  Jim Meyering  <meyering@lucent.com>
41886
41887         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41888
41889 2000-06-18  Jim Meyering  <meyering@lucent.com>
41890
41891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41892
41893         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41894         `checking whether...' message to be consistent with that of the
41895         lstat test.
41896
41897 2000-06-18  Jim Meyering  <meyering@lucent.com>
41898
41899         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41900         Besides, these days every porting target provides a mkdir function.
41901
41902         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41903         needed. (this snippet comes from src/system.h).
41904
41905 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41906
41907         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41908
41909 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41910
41911         * lib/human.c (adjust_value): New function.
41912         (human_readable_inexact): Apply rounding style even when
41913         printing approximate values.
41914
41915 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41916
41917         * lib/human.c (human_readable_inexact): Allow an input block
41918         size that is not a multiple of the output block size, and vice versa.
41919         Reported by Piergiorgio Sartor.
41920
41921 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41922
41923         * lib/getdate.y (get_date): Apply relative times after time
41924         zone indicator, not before.  Reported by Todd A. Jacobs.
41925
41926 2000-06-13  Jim Meyering  <meyering@lucent.com>
41927
41928         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41929
41930         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41931
41932 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41933
41934         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41935
41936 2000-06-12  Jim Meyering  <meyering@lucent.com>
41937
41938         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41939         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41940         optional argument.
41941         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41942         the optional argument, `lib'.
41943
41944 2000-06-08  Jim Meyering  <meyering@lucent.com>
41945
41946         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41947
41948 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41949
41950         Rewrite largefile configuration so that we don't need to run
41951         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41952         AC_CANONICAL_HOST in configure.in -- jmm]
41953
41954         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41955         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41956         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41957         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41958         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41959         All uses changed.
41960         Instead of inspecting the output of getconf, try to compile the
41961         test program without and with the macro definition.
41962         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41963         for getconf.  Instead, check for the needed flags by compiling
41964         test programs.
41965
41966 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41967
41968         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41969
41970 2000-06-04  Jim Meyering  <meyering@lucent.com>
41971
41972         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41973         SunOS 4.1.4 for which gid_t is an unsigned type.
41974
41975 2000-06-03  Jim Meyering  <meyering@lucent.com>
41976
41977         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41978         now that autoconf requires that.
41979
41980         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41981         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41982         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41983
41984 2000-06-03  Jim Meyering  <meyering@lucent.com>
41985
41986         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41987
41988 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41989
41990         * m4/glibc21.m4: New file.
41991         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41992
41993 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41994
41995         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41996         newer, don't install charset.alias.
41997         * lib/config.charset: Change the Linux/glibc rules so they become empty
41998         on glibc-2.1 or newer.
41999
42000 2000-06-02  Jim Meyering  <meyering@lucent.com>
42001
42002         * lib/mountlist.c: Back out last change.  Instead, do this...
42003         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42004         me_dummy member using the same `ignore'-testing code.
42005         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42006         fs_type strings.
42007         From Mark D. Roth.
42008
42009 2000-05-29  Jim Meyering  <meyering@lucent.com>
42010
42011         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42012         mounts with the `ignore' attribute.  Based on a patch from
42013         Mark D. Roth.
42014
42015 2000-05-28  Jim Meyering  <meyering@lucent.com>
42016
42017         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42018         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42019         * m4/stat.m4: Likewise.
42020         * m4/lstat.m4: Likewise.
42021         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42022
42023         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42024         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42025
42026 2000-05-26  Jim Meyering  <meyering@lucent.com>
42027
42028         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42029
42030 2000-05-24  Jim Meyering  <meyering@lucent.com>
42031
42032         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42033         autoconf requires that.
42034         * m4/lib-check.m4: Likewise.
42035         * m4/jm-macros.m4: Likewise.
42036         * m4/strftime.m4: Likewise.
42037
42038         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42039         AC_CHECK_DECLS, now that autoconf requires that.
42040
42041 2000-05-22  Jim Meyering  <meyering@lucent.com>
42042
42043         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42044         * m4/lstat.m4: Likewise.
42045
42046 2000-05-22  Jim Meyering  <meyering@lucent.com>
42047
42048         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42049
42050 2000-05-20  Jim Meyering  <meyering@lucent.com>
42051
42052         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
42053         (jm_PREREQ): Use it.
42054
42055 2000-05-18  Jim Meyering  <meyering@lucent.com>
42056
42057         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
42058         back, too, since it may have been modified by allocate_entry.
42059         (hash_delete): Rewrite to use neither the assignment operator
42060         nor the comma operator in an if-expression.
42061
42062 2000-05-15  Paul Eggert  <eggert@twinsun.com>
42063
42064         * lib/closeout.c:
42065         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
42066         Remove; no longer needed.
42067         "quotearg.h": Add include.
42068         (file_name): Do not bother to explicitly initialize to NULL; it's less
42069         efficient on some hosts.
42070         (close_stdout_status): Remove test as to whether stdout was already
42071         closed; it breaks for the case "echo x | sort >&-".
42072         Quote file name colons.
42073         Do not assume that _("write error") lacks format strings.
42074
42075 2000-05-15  Jim Meyering  <meyering@lucent.com>
42076
42077         * lib/version-etc.c (version_etc_copyright): Update the copyright
42078         string used in all --version output.
42079
42080 2000-05-14  Jim Meyering  <meyering@lucent.com>
42081
42082         * lib/closeout.c (close_stdout_set_file_name): New function.
42083         (close_stdout_status): Use new file-scoped global.
42084         Return right away if fstat says the stdout file descriptor is invalid.
42085         * lib/closeout.h (close_stdout_set_file_name): Declare.
42086
42087 2000-05-10  Jim Meyering  <meyering@lucent.com>
42088
42089         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42090         (close_stdout_set_status): New function.
42091         * lib/closeout.h (close_stdout_set_status): Declare.
42092
42093 2000-05-09  Jim Meyering  <meyering@lucent.com>
42094
42095         * m4/gettext.m4: Rename this...
42096         * m4/libintl.m4: ...to this.
42097
42098 2000-05-08  Jim Meyering  <meyering@lucent.com>
42099
42100         * lib/long-options.c: Don't include closeout.h.
42101         (parse_long_options): Don't call close_stdout for --version.
42102
42103 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42104
42105         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42106         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42107         2.1.3 bug.  This avoids a clash when files like regex.c define
42108         _GNU_SOURCE.
42109
42110 2000-05-06  Jim Meyering  <meyering@lucent.com>
42111
42112         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42113         (AC_REPLACE_FUNCS): Add strnlen.
42114
42115         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42116         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42117
42118         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42119         AC_SEARCH_LIBS call for nanosleep.
42120         (LIB_NANOSLEEP): Set and AC_SUBST.
42121
42122 2000-05-06  Jim Meyering  <meyering@lucent.com>
42123
42124         * lib/strnlen.c: Undefine __strnlen and strnlen.
42125         [!weak_alias]: Define __strnlen to strnlen.
42126
42127         * lib/atexit.c: New file, from libiberty.
42128
42129 2000-05-06  Jim Meyering  <meyering@lucent.com>
42130
42131         * lib/closeout.c (close_stdout_status): Also check for errors on the
42132         stderr stream.
42133
42134 2000-05-05  Jim Meyering  <meyering@lucent.com>
42135
42136         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42137         AC_SEARCH_LIBS call for clock_gettime.
42138         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42139
42140         * m4/search-libs.m4: Update from autoconf.
42141
42142         su doesn't work on Solaris 2.6.
42143         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42144         <shadow.h>.  Reported by Dragos Harabor.
42145
42146 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42147
42148         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42149         memcpy instead of xmalloc, xrealloc, path_concat.
42150         (locale_charset): Treat empty environment variables as absent.
42151         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42152
42153 2000-05-04  Jim Meyering  <meyering@lucent.com>
42154
42155         * lib/getopt.c: Update from glibc.
42156         * lib/obstack.c: Likewise.
42157         * lib/obstack.h: Likewise.
42158         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42159         file
42160
42161         * lib/regex.h: Likewise.
42162         * lib/strndup.c: Likewise.
42163         * lib/strnlen.c: New file, from glibc.
42164
42165 2000-05-03  Jim Meyering  <meyering@lucent.com>
42166
42167         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42168
42169 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42170
42171         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42172         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42173         compile-time test, rather than inspecting host and OS, to
42174         decide whether to define _LARGEFILE_SOURCE.
42175
42176 2000-05-01  Jim Meyering  <meyering@lucent.com>
42177
42178         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42179
42180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42181         Based on a patch from Bruno Haible.
42182
42183 2000-05-01  Jim Meyering  <meyering@lucent.com>
42184
42185         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42186
42187 2000-04-29  Jim Meyering  <meyering@lucent.com>
42188
42189         * lib/path-concat.c: Declare strdup only if it's not defined.
42190         * lib/canon-host.c: Likewise.
42191
42192 2000-04-28  Jim Meyering  <meyering@lucent.com>
42193
42194         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42195         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42196         is included first, then limits.h is included by locale.h by libintl.h.
42197         From John David Anglin.
42198
42199 2000-04-25  Jim Meyering  <meyering@lucent.com>
42200
42201         * lib/makepath.c (S_IRWXUGO): Define.
42202         (make_path): Always perform explicit chmod if MODE specifies any
42203         of the `special' permission bits.  Prompted by a bug report against
42204         install from Mate Wierdl and Joost van Baal.
42205
42206 2000-04-18  Jim Meyering  <meyering@lucent.com>
42207
42208         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42209         (jm_PREREQ): Use it.
42210
42211 2000-04-18  Jim Meyering  <meyering@lucent.com>
42212
42213         * lib/README: New file.
42214
42215         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42216         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42217
42218 2000-04-17  Jim Meyering  <meyering@lucent.com>
42219
42220         Get it right :-)
42221         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42222         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42223         Suggestion from Akim Demaille.
42224
42225 2000-04-17  Jim Meyering  <meyering@lucent.com>
42226
42227         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42228         the definition of it to rpl_strftime also defined-away the system's
42229         declaration.
42230
42231 2000-04-15  Jim Meyering  <meyering@lucent.com>
42232
42233         Use `C' to denote so-called `contiguous' files, the same way
42234         that tar does.
42235         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42236         (ftypelet): Use S_ISCTG.
42237         From Michael Deutschmann.
42238
42239 2000-04-14  Jim Meyering  <meyering@lucent.com>
42240
42241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42242         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42243         clobbered.
42244
42245 2000-04-14  Jim Meyering  <meyering@lucent.com>
42246
42247         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42248
42249 2000-04-13  Jim Meyering  <meyering@lucent.com>
42250
42251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42252         AH_VERBATIM to insert required #ifndef into config.h.in.
42253         Suggestion from Akim Demaille.
42254
42255 2000-04-12  Jim Meyering  <meyering@lucent.com>
42256
42257         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42258         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42259         Christian Krackowizer.
42260
42261         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42262         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42263         (AC_SYS_LARGEFILE): Require.
42264         (AM_C_PROTOTYPES): Require.
42265
42266 2000-04-08  Jim Meyering  <meyering@lucent.com>
42267
42268         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42269         names don't conflict.  Reported by Eli Zaretskii.
42270
42271 2000-04-07  Jim Meyering  <meyering@lucent.com>
42272
42273         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42274         sys/types.h, to work around system header problems on AIX 3.2.5.
42275         From Bruno Haible.
42276
42277 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42278
42279         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42280         bug.  Deal with the different error behavior of Irix iconv.
42281
42282 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42283
42284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42285         IRIX if the installer said otherwise.
42286
42287 2000-04-05  Jim Meyering  <meyering@lucent.com>
42288
42289         Portability tweaks required for ultrix4.3.
42290         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42291         (jm_CHECK_DECLS): Add getutent to the list of functions.
42292         (_jm_DECL_HEADERS): Add utmpx.h.
42293         From John David Anglin.
42294
42295         * m4/strftime.m4: Back out the 2000-04-02 change.
42296         Instead of that change, simply undefine putenv in the test program.
42297
42298 2000-04-05  Jim Meyering  <meyering@lucent.com>
42299
42300         Portability tweaks required for ultrix4.3.
42301         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42302         getutent.
42303         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42304         * lib/canon-host.c: Declare strdup.
42305         * lib/path-concat.c: Likewise.
42306         From John David Anglin.
42307
42308 2000-04-04  Jim Meyering  <meyering@lucent.com>
42309
42310         Be more DOS 8.3-friendly.
42311         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42312         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42313         * lib/Makefile.am: Reflect renaming.
42314         Reported by Eli Zaretskii.
42315
42316         Use a temporary file name that won't clash with `charset.alias'
42317         in the DOS 8.3 name space.
42318         * lib/Makefile.am (charset_tmp): Define.
42319         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42320         (uninstall-local): Likewise.
42321         Reported by Eli Zaretskii.
42322
42323 2000-04-03  Jim Meyering  <meyering@lucent.com>
42324
42325         * m4/gettext.m4: Fix typo in comment.
42326
42327         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42328         textutils/configure.in).  Suggestion from Paul Eggert.
42329         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42330
42331 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42332
42333         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42334         variable in the shell rather than using putenv, which isn't
42335         portable.  This avoids the configure-time inter-test dependency
42336         on the potentially-renamed putenv function.
42337
42338 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42339
42340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42341         before checking struct stat.st_blksize, so that
42342         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42343
42344 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42345
42346         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42347         since strftime.c uses HAVE_STRFTIME to decide whether to use
42348         the underlying strftime.
42349
42350 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42351
42352         * lib/time/strftime.c (my_strftime): Make sure we call the system
42353         strftime, not ourselves, when invoking the underlying strftime.
42354
42355 2000-03-24  Jim Meyering  <meyering@lucent.com>
42356
42357         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42358         (charset_alias): Define.
42359         (install-exec-local): Factor out common code.
42360         (uninstall-local): Split lines longer than 80.
42361         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42362         (SUFFIXES): Define.
42363         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42364         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42365
42366 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42367
42368         * lib/config.charset: Output a line containing "Packages using this
42369         file".
42370         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42371         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42372         ref-del.sed): New rules.
42373
42374 2000-03-17  Jim Meyering  <meyering@lucent.com>
42375
42376         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42377         Otherwise, include <strings.h>
42378
42379 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42380
42381         * lib/unicodeio.c (utf8_wctomb): New function.
42382         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42383         format instead of in UCS-4 with platform dependent endianness.
42384
42385 2000-03-10  Jim Meyering  <meyering@lucent.com>
42386
42387         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42388         From Marco Franzen.
42389
42390 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42391
42392         * lib/savedir.c (savedir): Work even if directory size is
42393         negative; this can happen with some screwy NFS configurations.
42394
42395 2000-03-06  Jim Meyering  <meyering@lucent.com>
42396
42397         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42398         if it's NULL (because we ran out of memory).  From Bruno Haible.
42399
42400 2000-03-05  Jim Meyering  <meyering@lucent.com>
42401
42402         * lib/localcharset.c ("path-concat.h"): Include.
42403         (get_charset_aliases): Use path_concat instead of ANSI string
42404         concatenation.
42405
42406         * lib/unicodeio.h (PARAMS): Define.
42407         Use it to guard prototype.
42408
42409 2000-03-04  Jim Meyering  <meyering@lucent.com>
42410
42411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42412         for lib/localcharset.c.
42413
42414 2000-03-04  Jim Meyering  <meyering@lucent.com>
42415
42416         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42417         installing into it.
42418         (uninstall-local): Uncomment this rule so `make distcheck' works
42419         once again.
42420
42421         * lib/unicodeio.c (<errno.h>): Include it.
42422         (errno): Declare if not defined.
42423
42424         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42425
42426         * lib/config.charset: New version, incorporating remarks from a linux
42427         i18n mailing list.  From Bruno Haible.
42428
42429 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42430
42431         * m4/codeset.m4: New file.
42432         * m4/iconv.m4: New file.
42433         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42434
42435 2000-03-03  Jim Meyering  <meyering@lucent.com>
42436
42437         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42438
42439 2000-03-02  Jim Meyering  <meyering@lucent.com>
42440
42441         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42442         the messages come out on separate lines.
42443
42444         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42445         rather than jm_CHECK_DECLARATIONS.
42446         * m4/decl.m4: Remove now-unused file.
42447
42448         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42449         geteuid.
42450
42451 2000-03-02  Jim Meyering  <meyering@lucent.com>
42452
42453         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42454
42455 2000-03-01  Jim Meyering  <meyering@lucent.com>
42456
42457         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42458         * lib/unicodeio.c: Likewise.
42459
42460 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42461
42462         * lib/config.charset: New file.
42463         * lib/localcharset.c: New file.
42464         * lib/unicodeio.h, lib/unicodeio.c: New files.
42465         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42466         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42467         (noinst_HEADERS): Add unicodeio.h.
42468         (all-local, install-exec-local, charset.alias): New targets.
42469
42470 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42471
42472         * lib/quotearg.c (ALERT_CHAR): New macro.
42473         (quotearg_buffer_restyled): Use it.
42474
42475 2000-02-27  Jim Meyering  <meyering@lucent.com>
42476
42477         * m4/check-decl.m4: Add getenv to the list.
42478
42479 2000-02-27  Jim Meyering  <meyering@lucent.com>
42480
42481         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42482         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42483
42484         * lib/backupfile.c: Guard inclusion of stdlib.h with
42485         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42486         Declare malloc if needed.
42487
42488         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42489         `#ifndef HAVE_DECL..'
42490         now that autoconf always defines the HAVE_DECL_ symbols.
42491         * lib/human.c: Likewise.
42492         * lib/same.c: Likewise.
42493         * lib/strtoumax.c: Likewise.
42494
42495         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42496         declaration check was not run.
42497         * lib/hash.c: Likewise.
42498         * lib/human.c: Likewise.
42499         * lib/same.c: Likewise.
42500         * lib/strtoumax.c: Likewise.
42501
42502         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42503         `.', then first look up the entire `.'-containing string as a login
42504         name.
42505
42506 2000-02-23  Jim Meyering  <meyering@lucent.com>
42507
42508         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42509         in place of my hack.
42510
42511 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42512
42513         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42514         (textint): New typedef.
42515         (parser_control): Member year changed from int to textint.
42516         All uses changed.
42517         (YYSTYPE): Removed; replaced by %union with int and textint members.
42518         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42519         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42520         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42521         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42522         (date, number, to_year): Use width of number in digits, not its value,
42523         to determine whether it's a 2-digit year, or a 2-digit time.
42524         (yylex): Store number of digits of numeric tokens.
42525         Reported by John Kendall.
42526
42527         (parser_control): Changed from struct parser_control to typedef (for
42528         consistency).  All uses changed.
42529
42530         (tID): Removed; not used.
42531         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42532
42533 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42534
42535         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42536         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42537
42538 2000-02-12  Jim Meyering  <meyering@lucent.com>
42539
42540         * lib/userspec.c (ISDIGIT): Define it.
42541         (isdigit): Remove definition.
42542         (is_number): Use ISDIGIT, not isdigit.
42543         <libintl.h>: Include.
42544         (_ and N_): Define.
42545         (parse_user_spec): Mark translatable strings.
42546
42547 2000-02-10  Jim Meyering  <meyering@lucent.com>
42548
42549         With these changes, nanosleep.[ch] are finally enough like the other
42550         lib/* replacement files to compile on a few more losing systems.
42551
42552         * lib/nanosleep.h: Don't include config.h.
42553         Remove prototype from declaration of nanosleep.
42554         (PARAMS): Remove now-unneeded definition.
42555         * lib/nanosleep.c: #undef nanosleep.
42556         (rpl_nanosleep): Rename from nanosleep.
42557
42558 2000-02-10  Jim Meyering  <meyering@lucent.com>
42559
42560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42561         gnu_nanosleep to rpl_nanosleep.
42562
42563 2000-02-09  Jim Meyering  <meyering@lucent.com>
42564
42565         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42566         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42567
42568 2000-02-08  Akim Demaille  <akim@epita.fr>
42569
42570         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42571         `[' and `]' and remove uses of `changequote'.
42572         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42573         (AC_SYS_LARGEFILE): Likewise.
42574         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42575         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42576         of changequote.
42577         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42578         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42579         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42580         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42581
42582 2000-02-05  Jim Meyering  <meyering@lucent.com>
42583
42584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42585         Remove explicit use of AC_HEADER_TIME.  It is required by
42586         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42587         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42588         in autoconf whereby the expansion of the latter ended up preceding
42589         the expansion of its prerequisite, AC_HEADER_TIME.
42590         Reported by Volker Borchert.
42591
42592 2000-02-03  Jim Meyering  <meyering@lucent.com>
42593
42594         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42595
42596 2000-02-03  Jim Meyering  <meyering@lucent.com>
42597
42598         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42599         rather than with `#if HAVE_UTMPNAME'.
42600
42601 2000-02-02  Jim Meyering  <meyering@lucent.com>
42602
42603         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42604         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42605         Reported by Eli Zaretskii.
42606
42607 2000-02-01  Jim Meyering  <meyering@lucent.com>
42608
42609         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42610
42611 2000-01-31  Jim Meyering  <meyering@lucent.com>
42612
42613         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42614         functions.  Add the time.h and sys/time.h headers along with the
42615         AC_REQUIRE'ment of AC_HEADER_TIME.
42616
42617 2000-01-31  Jim Meyering  <meyering@lucent.com>
42618
42619         * lib/nanosleep.h (nanosleep): Guard declaration with
42620         `#if ! HAVE_DECL_NANOSLEEP'.
42621         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42622         the declaration in that vendor's sys/timers.h.
42623         Reported by Christian Krackowizer.
42624
42625         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42626         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42627         (ISPRINT): Likewise.
42628         Reported by Tom Tromey.
42629
42630 2000-01-30  Jim Meyering  <meyering@lucent.com>
42631
42632         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42633
42634         * m4/prereq.m4 (utmp_includes): Define.
42635         Check for ut_user and ut_name members in both struct utmpx
42636         and struct utmp.
42637
42638 2000-01-30  Jim Meyering  <meyering@lucent.com>
42639
42640         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42641         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42642         header files where only utmpx.ut_user is declared.
42643
42644         * lib/readutmp.h (UT_USER): Define.
42645
42646 2000-01-29  Jim Meyering  <meyering@lucent.com>
42647
42648         * m4/lib-check.m4: New file containing library-related checks from
42649         fileutils and sh-utils (textutils had none).
42650
42651 2000-01-28  Jim Meyering  <meyering@lucent.com>
42652
42653         * m4/perl.m4: Change format of warning message to look more like that
42654         from the missing script.  Suggestion from François Pinard.
42655
42656 2000-01-25  Jim Meyering  <meyering@lucent.com>
42657
42658         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42659         well as time.h in the compile check.
42660         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42661         Fix typo in cross-compiling case: s/yes/no/.
42662
42663 2000-01-23  Jim Meyering  <meyering@lucent.com>
42664
42665         * m4/jm-macros.m4: Move df-related tests here from
42666         fileutils/configure.in
42667
42668         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42669         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42670
42671         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42672         s/space/ac_fsusage_space/.
42673         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42674
42675         * m4/ftruncate.m4: New file (derived from part of
42676         fileutils/configure.in).
42677         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42678         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42679
42680         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42681         AC_SUBST these here, rather than just in sh-util/configure.in, so
42682         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42683         all the same.
42684         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42685         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42686         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42687         (AC_SUBST(POW_LIBM)): Likewise.
42688         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42689
42690 2000-01-23  Jim Meyering  <meyering@lucent.com>
42691
42692         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42693         obstack.c.
42694
42695 2000-01-22  Jim Meyering  <meyering@lucent.com>
42696
42697         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42698
42699         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42700
42701         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42702         configure.in
42703         (AC_CHECK_HEADERS): Likewise for sh-utils.
42704         (AC_CHECK_HEADERS): Likewise for textutils.
42705         Merge the three lists of headers.
42706
42707         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42708         from fileutils' configure.in.
42709
42710         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42711         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42712         check-decl.m4.
42713
42714         * m4/check-decl.m4: Use #if rather than #ifdef.
42715         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42716         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42717         (_jm_DECL_HEADERS): Define new function.
42718         (jm_CHECK_DECLARATIONS): Require it.
42719
42720 2000-01-22  Jim Meyering  <meyering@lucent.com>
42721
42722         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42723         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42724         Required for some AIX systems.  Reported by Christian Krackowizer.
42725         [TESTING] (main): New function.
42726
42727         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42728         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42729         letters.
42730
42731         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42732         iswprint.
42733
42734         * lib/strverscmp.c (ISDIGIT): Define.
42735         (strverscmp): Use ISDIGIT, not isdigit.
42736
42737 2000-01-19  Jim Meyering  <meyering@lucent.com>
42738
42739         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42740         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42741         defines `struct timespec' in <sys/time.h>
42742
42743         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42744         Thanks to Akim for explaining.
42745
42746 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42747
42748         * lib/nanosleep.c (nanosleep):
42749         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42750         POSIX.1 doesn't require SA_INTERRUPT and some systems
42751         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42752         it's been part of POSIX.1 since day 1 (in 1988).
42753
42754 2000-01-17  Jim Meyering  <meyering@lucent.com>
42755
42756         * lib/interlock: Remove unused file.  Reported by François Pinard.
42757
42758 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42759
42760         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42761         alert, backslash, formfeed, and vertical tab unnecessarily in
42762         shell quoting style.
42763
42764 2000-01-16  Jim Meyering  <meyering@lucent.com>
42765
42766         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42767         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42768         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42769         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42770
42771 2000-01-16  Jim Meyering  <meyering@lucent.com>
42772
42773         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42774         because the latter didn't work.
42775
42776 2000-01-15  Jim Meyering  <meyering@lucent.com>
42777
42778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42779         (AC_REPLACE_FUNCS): Add memcpy and memset.
42780         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42781         Add strpbrk.
42782         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42783
42784 2000-01-12  Jim Meyering  <meyering@lucent.com>
42785
42786         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42787         (jm_PREREQ): Use it.
42788         (jm_PREREQ_READUTMP): New macro.
42789         (jm_PREREQ): Use it.
42790
42791 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42792
42793         Quote multibyte characters correctly.
42794         * m4/c-bs-a.m4: New file.
42795         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42796         (jm_PREREQ): Use it.
42797
42798 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42799
42800         * m4/uintmax_t.m4: Port to autoconf 2.13.
42801
42802 2000-01-08  Jim Meyering  <meyering@ascend.com>
42803
42804         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42805         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42806
42807 2000-01-04  Jim Meyering  <meyering@ascend.com>
42808
42809         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42810         jm_STRUCT_DIRENT_D_TYPE.
42811         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42812         jm_STRUCT_DIRENT_D_INO.
42813         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42814         jm_STRUCT_UTIMBUF.
42815         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42816         renamings.
42817         * m4/utime.m4: Likewise.
42818
42819         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42820         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42821
42822 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42823
42824         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42825         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42826
42827 2000-01-02  Jim Meyering  <meyering@ascend.com>
42828
42829         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42830         remember if this is necessary.
42831
42832 1999-12-26  Jim Meyering  <meyering@ascend.com>
42833
42834         * m4/jm-macros.m4: Use it here.
42835         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42836
42837 1999-12-23  Jim Meyering  <meyering@ascend.com>
42838
42839         * m4/jm-macros.m4: Check for clock_gettime (moved from
42840         fileutils/configure.in)
42841         Check for gettimeofday.
42842
42843 1999-12-20  Jim Meyering  <meyering@ascend.com>
42844
42845         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42846         autoconf-2.14a-1999-12-20.
42847
42848 1999-12-19  Jim Meyering  <meyering@ascend.com>
42849
42850         * m4/lstat-slash.m4: New file.
42851         * m4/jm-macros.m4: Use the new macro:
42852         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42853
42854 1999-12-07  Jim Meyering  <meyering@ascend.com>
42855
42856         * m4/perl.m4: Require that File::Compare be available, too.
42857         Too many systems seem to lack it.
42858
42859         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42860         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42861
42862 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42863
42864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42865         problem with the QNX 4.25 shell, which doesn't propagate exit
42866         status of failed commands inside shell assignments.
42867
42868 1999-11-17  Jim Meyering  <meyering@ascend.com>
42869
42870         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42871
42872 1999-11-07  Jim Meyering  <meyering@ascend.com>
42873
42874         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42875
42876 1999-11-06  Jim Meyering  <meyering@ascend.com>
42877
42878         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42879         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42880
42881 1999-11-05  Jim Meyering  <meyering@ascend.com>
42882
42883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42884         configure.in of textutils, fileutils, and sh-utils into this one
42885         (shared between those packages) file.
42886         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42887         AC_STRUCT_ST_BLKSIZE.
42888
42889 1999-11-03  Jim Meyering  <meyering@ascend.com>
42890
42891         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42892         of AC_CHECK_TYPE checks includes unistd.h.
42893         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42894         Suggestion from Akim Demaille.
42895
42896 1999-10-30  Jim Meyering  <meyering@ascend.com>
42897
42898         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42899         m4-quoted string.
42900         * m4/ls-mntd-fs.m4: Likewise.
42901         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42902         * m4/jm-winsz1.m4: Likewise.
42903
42904         * m4/const.m4: Remove file, since the fix made it into the experimental
42905         version of autoconf.
42906         * m4/mktime.m4: Likewise.
42907
42908         * m4/check-type.m4: Remove file, now that the latest version of
42909         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42910
42911         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42912         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42913         AC_CHECK_TYPE.
42914
42915 1999-10-04  Jim Meyering  <meyering@ascend.com>
42916
42917         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42918
42919 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42920
42921         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42922         2.95.1 bug with HP-UX 10.20.
42923
42924 1999-09-17  Jim Meyering  <meyering@ascend.com>
42925
42926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42927         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42928         due to missing strdup (against sh-utils-2.0).
42929
42930 1999-08-29  Jim Meyering  <meyering@ascend.com>
42931
42932         * m4/jm-macros.m4: Require jm_BISON.
42933         * m4/bison.m4: New file.
42934
42935 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42936
42937         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42938         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42939
42940 1999-08-05  Jim Meyering  <meyering@ascend.com>
42941
42942         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42943         to avoid conflicts with `conftest' on 8+3 filesystems.
42944         Suggestion from Eli Zaretskii.
42945
42946 1999-08-04  Jim Meyering  <meyering@ascend.com>
42947
42948         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42949         fileutils and sh-utils (textutils's getline test was inadequate).
42950         (AM_FUNC_GETLINE): Run this test.
42951         (AC_CHECK_FUNCS): Check for getdelim.
42952         Reported by Bob Proulx.
42953
42954 1999-08-02  Jim Meyering  <meyering@ascend.com>
42955
42956         * m4/jm-macros.m4: Add a comment.
42957
42958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42959
42960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42961         <inttypes.h> defines strtoumax as a macro (and not as a
42962         function).
42963
42964 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42965
42966         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42967         that we can shift, multiply and divide unsigned long long
42968         values; Ultrix cc can't do it.
42969
42970 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42971
42972         * m4/mktime.m4: New file, which is a preview of what should appear
42973         in the next public autoconf release.
42974
42975 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42976
42977         * m4/lfs.m4: Remove this file.
42978         * m4/largefile.m4: New file.  It contains the old contents of
42979         lfs.m4, except that all names with prefix AC_LFS have been
42980         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42981         compatible with future autoconf versions.  Also, some minor m4
42982         quoting problems have been fixed.
42983
42984 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42985
42986         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42987         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42988         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42989         and simplify the shell code.
42990
42991 1999-08-01  Jim Meyering  <meyering@ascend.com>
42992
42993         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42994         m4.
42995
42996 1999-07-20  Jim Meyering  <meyering@ascend.com>
42997
42998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42999
43000 1999-07-15  Jim Meyering  <meyering@ascend.com>
43001
43002         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43003
43004 1999-05-22  Jim Meyering  <meyering@ascend.com>
43005
43006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43007
43008 1999-05-20  Jim Meyering  <meyering@ascend.com>
43009
43010         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43011         Add a colon after each `then' in case $4 is empty.
43012
43013 1999-05-16  Jim Meyering  <meyering@ascend.com>
43014
43015         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43016
43017 1999-05-10  Jim Meyering  <meyering@ascend.com>
43018
43019         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43020
43021         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43022         AC_FUNC_MKTIME.
43023
43024 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43025
43026         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43027
43028 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43029
43030         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43031         not CPPFLAGS, so that linking works correctly in IRIX.
43032
43033 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43034
43035         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43036
43037 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43038
43039         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43040         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43042         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43043         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43044
43045         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43046
43047 1999-04-20  Jim Meyering  <meyering@ascend.com>
43048
43049         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43050         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43051         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43052
43053 1999-04-18  Jim Meyering  <meyering@ascend.com>
43054
43055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
43056         * m4/jm-macros.m4: Use it.
43057
43058 1999-04-06  Jim Meyering  <meyering@ascend.com>
43059
43060         * m4/strftime.m4: Remove test for %f.
43061
43062 1999-03-29  Jim Meyering  <meyering@ascend.com>
43063
43064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
43065         superset of the AC_TYPE_* checks in the textutils, fileutils,
43066         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
43067         AC_TYPE_PID_T.
43068
43069 1999-03-28  Jim Meyering  <meyering@ascend.com>
43070
43071         * m4/jm-macros.m4: Define GNU_PACKAGE here.
43072         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
43073         replaced e.g., in the *.sh files of the sh-utils.
43074
43075 1999-03-20  Jim Meyering  <meyering@ascend.com>
43076
43077         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43078         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43079         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43080
43081 1999-03-19  Jim Meyering  <meyering@ascend.com>
43082
43083         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43084
43085 1999-03-12  Jim Meyering  <meyering@ascend.com>
43086
43087         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43088
43089 1999-03-07  Jim Meyering  <meyering@ascend.com>
43090
43091         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43092         declared.
43093
43094 1999-02-17  Jim Meyering  <meyering@ascend.com>
43095
43096         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43097         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43098
43099 1999-02-07  Jim Meyering  <meyering@ascend.com>
43100
43101         * m4/group-member.m4: New file -- extracted from sh-utils'
43102         configure.in.
43103
43104         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43105         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43106
43107 1999-02-06  Jim Meyering  <meyering@ascend.com>
43108
43109         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43110         * m4/fnmatch.m4: Likewise.
43111         * m4/getgroups.m4: Likewise.
43112         * m4/lstat.m4: Likewise.
43113         * m4/malloc.m4: Likewise.
43114         * m4/putenv.m4: Likewise.
43115         * m4/realloc.m4: Likewise.
43116         * m4/regex.m4: Likewise.
43117         * m4/stat.m4: Likewise.
43118         * m4/strftime.m4: Likewise.
43119         Suggestion from Alain Magloire.
43120
43121         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43122         * m4/fnmatch.m4: Likewise.
43123         * m4/getgroups.m4: Likewise.
43124         * m4/getline.m4: Likewise.
43125         * m4/lstat.m4: Likewise.
43126         * m4/malloc.m4: Likewise.
43127         * m4/memcmp.m4: Likewise.
43128         * m4/putenv.m4: Likewise.
43129         * m4/realloc.m4: Likewise.
43130         * m4/regex.m4: Likewise.
43131         * m4/stat.m4: Likewise.
43132         * m4/strftime.m4: Likewise.
43133         Suggestion from Alain Magloire.
43134
43135         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43136         an argument.
43137
43138         * m4/regex.m4: Add a run-time Test for proper operation of
43139         re_compile_pattern.
43140
43141 1999-01-31  Jim Meyering  <meyering@ascend.com>
43142
43143         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43144
43145 1999-01-30  Jim Meyering  <meyering@ascend.com>
43146
43147         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43148
43149         * m4/jm-mktime.m4: Make this a wrapper around the official
43150         AM_FUNC_MKTIME rather than my private copy, now that the official one
43151         is up to date.
43152         * m4/mktime.m4: Remove file.
43153
43154         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43155         * m4/uptime.m4: Likewise.
43156         * m4/uintmax_t.m4: Likewise.
43157
43158 1999-01-28  Jim Meyering  <meyering@ascend.com>
43159
43160         * m4/jm-macros.m4: Use jm_AFS.
43161         * m4/afs.m4: New file (from fileutils' configure.in).
43162
43163         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43164         * m4/chown.m4: Likewise.
43165         * m4/d-ino.m4: Likewise.
43166         * m4/d-type.m4: Likewise.
43167         * m4/fnmatch.m4: Likewise.
43168         * m4/getgroups.m4: Likewise.
43169         * m4/gettext.m4: Likewise.
43170         * m4/jm-mktime.m4: Likewise.
43171         * m4/jm-winsz2.m4: Likewise.
43172         * m4/lcmessage.m4: Likewise.
43173         * m4/ls-mntd-fs.m4: Likewise.
43174         * m4/malloc.m4: Likewise.
43175         * m4/memcmp.m4: Likewise.
43176         * m4/putenv.m4: Likewise.
43177         * m4/realloc.m4: Likewise.
43178         * m4/st_mtim.m4: Likewise.
43179         * m4/strftime.m4: Likewise.
43180
43181 1999-01-16  Jim Meyering  <meyering@ascend.com>
43182
43183         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43184         (ARGMATCH_DIE_DECL): Define.
43185
43186 1999-01-12  Jim Meyering  <meyering@ascend.com>
43187
43188         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43189         Reported by Lars Hecking.
43190
43191 1999-01-10  Jim Meyering  <meyering@ascend.com>
43192
43193         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43194         gross kludge.
43195         * m4/inttypes_h.m4: Likewise.
43196         * m4/lstat.m4: Likewise.
43197         * m4/malloc.m4: Likewise.
43198         * m4/readdir.m4: Likewise.
43199         * m4/realloc.m4: Likewise.
43200         * m4/st_dm_mode.m4: Likewise.
43201         * m4/stat.m4: Likewise.
43202         * m4/utimbuf.m4: Likewise.
43203         * m4/utimes.m4: Likewise.
43204
43205         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43206         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43207         comments in config.h.in are meaningful.
43208
43209         * m4/jm-macros.m4: Require autoconf-2.13 here.
43210
43211         * m4/regex.m4: By default, don't use the included regex.c on systems
43212         with glibc 2.  Suggestion from Uli Drepper.
43213
43214 1999-01-02  Jim Meyering  <meyering@ascend.com>
43215
43216         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43217
43218 1998-12-18  Jim Meyering  <meyering@ascend.com>
43219
43220         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43221         Based on a suggestion from Lars Hecking.
43222
43223 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43224
43225         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43226
43227 1998-11-16  Jim Meyering  <meyering@ascend.com>
43228
43229         * m4/lfs.m4: Double-quote the `uname...` expression.
43230
43231 1998-11-14  Jim Meyering  <meyering@ascend.com>
43232
43233         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43234         * m4/stat.m4: Likewise.
43235
43236 1998-11-03  Jim Meyering  <meyering@ascend.com>
43237
43238         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43239         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43240
43241 1998-10-18  Jim Meyering  <meyering@ascend.com>
43242
43243         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43244
43245 1998-10-17  Jim Meyering  <meyering@ascend.com>
43246
43247         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43248         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43249         calls for those previously hard-coded headers.  Instead, take a new
43250         parameter.
43251         (jm_CHECK_DECLARATIONS): Reflect interface change.
43252         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43253         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43254
43255         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43256
43257 1998-10-14  Jim Meyering  <meyering@ascend.com>
43258
43259         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43260         instead of "TZ=America/Vancouver".  From Paul Eggert.
43261
43262 1998-10-11  Jim Meyering  <meyering@ascend.com>
43263
43264         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43265         This adds a test for a recently added compatibility fix for mktime.c.
43266         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43267
43268 1998-09-27  Jim Meyering  <meyering@ascend.com>
43269
43270         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43271
43272         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43273         ../configure.in, including a change from Gordon Matzigkeit to allow
43274         cross-compiling for the Hurd.
43275
43276         * m4/glibc.m4: New file/macro to test for the GNU C Library
43277         versions 1 and 2.  From Gordon Matzigkeit.
43278         Indent.
43279
43280 1998-09-21  Jim Meyering  <meyering@ascend.com>
43281
43282         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43283
43284 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43285
43286         Port nanosecond-resolution times to UnixWare 2.1.2 and
43287         pedantic Solaris 2.6.
43288
43289         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43290         AC_STRUCT_ST_MTIM.
43291         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43292         Generate name of ns member, instead of just 1 or undef.
43293         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43294
43295 1998-08-15  Jim Meyering  <meyering@ascend.com>
43296
43297         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43298         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43299         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43300         instead of jm_TYPE_SSIZE_T.
43301
43302 1998-08-12  Jim Meyering  <meyering@ascend.com>
43303
43304         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43305
43306 1998-08-02  Jim Meyering  <meyering@ascend.com>
43307
43308         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43309         in acconfig.h manually.
43310
43311 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43312
43313         * m4/st_mtim.m4: New file.
43314
43315 1998-07-28  Jim Meyering  <meyering@ascend.com>
43316
43317         * m4/utimes.m4: Undef stat.
43318
43319 1998-07-25  Jim Meyering  <meyering@ascend.com>
43320
43321         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43322         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43323
43324 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43325
43326         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43327         uid and gid actually remain unchanged.
43328
43329 1998-07-07  Jim Meyering  <meyering@ascend.com>
43330
43331         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43332
43333 1998-07-04  Jim Meyering  <meyering@ascend.com>
43334
43335         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43336         to prove that this macro can be used in packages without regex.c.
43337
43338 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43339
43340         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43341         is to be used.
43342
43343 1998-07-03  Jim Meyering  <meyering@ascend.com>
43344
43345         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43346
43347         * m4/gettext.m4: New file -- from gettext-0.10.35.
43348         * m4/lcmessage.m4: Likewise.
43349         * m4/progtest.m4: Likewise.
43350
43351         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43352         * m4/jm-macros.m4: Require the new macro.
43353
43354 1998-06-29  Jim Meyering  <meyering@ascend.com>
43355
43356         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43357         for the definition of NGROUPS (used in a system header included
43358         by sys/mount.h).
43359
43360 1998-06-28  Jim Meyering  <meyering@ascend.com>
43361
43362         * m4/ls-mntd-fs.m4: New file.
43363         * m4/fstypename.m4: New file.
43364
43365         * m4/jm-macros.m4: Require the new macro.
43366         * m4/jm-glibc-io.m4: New file.
43367
43368 1998-05-19  Jim Meyering  <meyering@ascend.com>
43369
43370         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43371         * m4/lchown.m4: New file.
43372
43373         * m4/Makefile.am.in: New file.
43374         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43375
43376 1998-05-14  Jim Meyering  <meyering@ascend.com>
43377
43378         * m4/Makefile.am (EXTRA_DIST): Add them.
43379         * m4/jm-macros.m4: New file.
43380         * m4/utimbuf.m4: New file.
43381
43382 1998-05-12  Jim Meyering  <meyering@ascend.com>
43383
43384         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43385
43386 1998-05-11  Jim Meyering  <meyering@ascend.com>
43387
43388         * m4/isc-posix.m4: New file.
43389
43390 1998-05-10  Jim Meyering  <meyering@ascend.com>
43391
43392         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43393
43394 1998-05-09  Jim Meyering  <meyering@ascend.com>
43395
43396         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43397         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43398         with automake.
43399
43400         * m4/ssize_t.m4: New file.
43401         * m4/mktime.m4: Remove file -- the new automake has this now.
43402
43403 1998-04-26  Jim Meyering  <meyering@ascend.com>
43404
43405         * m4/assert.m4: New file.
43406         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43407
43408 1998-04-05  Jim Meyering  <meyering@ascend.com>
43409
43410         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43411         (jm_PREREQ): Use it here.
43412
43413 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43414
43415         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43416         in acconfig.h.
43417
43418 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43419
43420         * m4/prereq.m4: New file.
43421         * m4/error.m4: New file.
43422         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43423
43424 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43425
43426         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43427         cache-check for the same variable -- that defeated the purpose of
43428         the test; the test program was never run.  This was a problem only
43429         on systems with losing getline functions -- HP-UX 10.20 is one.
43430         Reported by Bjorn Helgaas.
43431
43432 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43433
43434         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43435
43436 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43437
43438         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43439
43440         * m4/const.m4: New file.  Use an initializer in this declaration
43441         typedef int charset[2]; const charset x;
43442         Reported by Bob Glickstein.
43443
43444 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43445
43446         * m4/chown.m4: Fix reversed types on -1 args to chown.
43447         From Kaveh Ghazi.
43448
43449 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43450
43451         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43452         Add lseek and memchr.
43453
43454         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43455         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43456         have a 20-character limit on names.
43457
43458 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43459
43460         * m4/inttypes_h.m4: New file.
43461         * m4/uintmax_t.m4: New file.
43462         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43463
43464
43465         -----
43466
43467         Local Variables:
43468         coding: utf-8
43469         End:
43470
43471         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43472
43473         Copying and distribution of this file, with or without
43474         modification, are permitted provided the copyright notice
43475         and this notice are preserved.