2ddc2843999bab6f80502da585920377628d38bc
[gnulib.git] / ChangeLog
1 2008-09-28  Bruno Haible  <bruno@clisp.org>
2
3         New module 'posix_spawnattr_setschedparam'.
4         * modules/posix_spawnattr_setschedparam: New file.
5         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
6         modifications.
7         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
8         new module.
9
10         New module 'posix_spawnattr_getschedparam'.
11         * modules/posix_spawnattr_getschedparam: New file.
12         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
13         modifications.
14         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15         new module.
16
17         New module 'posix_spawnattr_setpgroup'.
18         * modules/posix_spawnattr_setpgroup: New file.
19         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20         modifications.
21         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22         module.
23
24         New module 'posix_spawnattr_getpgroup'.
25         * modules/posix_spawnattr_getpgroup: New file.
26         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27         modifications.
28         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29         module.
30
31         New module 'posix_spawnattr_setflags'.
32         * modules/posix_spawnattr_setflags: New file.
33         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35         module.
36
37         New module 'posix_spawnattr_getflags'.
38         * modules/posix_spawnattr_getflags: New file.
39         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41         module.
42
43         New module 'posix_spawnattr_init'.
44         * modules/posix_spawnattr_init: New file.
45         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47         module.
48
49         New module 'posix_spawn_file_actions_destroy'.
50         * modules/posix_spawn_file_actions_destroy: New file.
51         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52         modifications.
53         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54         the new module.
55
56         New module 'posix_spawn_file_actions_addopen'.
57         * modules/posix_spawn_file_actions_addopen: New file.
58         * lib/spawn_faction_addopen.c: New file, from GNU libc with
59         modifications.
60         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
61         the new module.
62
63         New module 'posix_spawn_file_actions_adddup2'.
64         * modules/posix_spawn_file_actions_adddup2: New file.
65         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
66         modifications.
67         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
68         the new module.
69
70         New module 'posix_spawn_file_actions_addclose'.
71         * modules/posix_spawn_file_actions_addclose: New file.
72         * lib/spawn_faction_addclose.c: New file, from GNU libc with
73         modifications.
74         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75         the new module.
76
77         New module 'posix_spawn_file_actions_init'.
78         * modules/posix_spawn_file_actions_init: New file.
79         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
80         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
81         new module.
82
83         New module 'posix_spawn-internal'.
84         * modules/posix_spawn-internal: New file.
85         * lib/spawn_int.h: New file, from GNU libc with modifications.
86         * lib/spawni.c: New file, from GNU libc with modifications.
87         * m4/posix_spawn.m4: New file.
88
89         New module 'spawn'.
90         * modules/spawn: New file.
91         * lib/spawn.in.h: New file, from GNU libc with modifications.
92         * m4/spawn_h.m4: New file.
93         * doc/posix-headers/spawn.texi: Mention the new module.
94
95 2008-09-28  Bruno Haible  <bruno@clisp.org>
96
97         * modules/sched-tests: New file.
98         * tests/test-sched.c: New file.
99
100         New module 'sched'.
101         * modules/sched: New file.
102         * lib/sched.in.h: New file.
103         * m4/sched_h.m4: New file.
104         * doc/posix-headers/sched.texi: Mention the new module.
105
106 2008-09-27  Eric Blake  <ebb9@byu.net>
107
108         Fix previous patch, and tweak references to $0.
109         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
110         (func_version, func_gnulib_dir): Don't call this program
111         gnulib-tool.
112         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
113         with using $0 in function.
114         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
115         (func_fatal_error): Reuse the name the user invoked us with.
116
117 2008-09-27  Bruno Haible  <bruno@clisp.org>
118
119         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
120         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
121         (gl_ICONV_H): Not here.
122         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
123         instead of assigning ICONV_H directly.
124
125         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
127         WCHAR_H directly.
128
129 2008-09-27  Bruno Haible  <bruno@clisp.org>
130
131         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
132         * modules/arpa_inet (Depends-on): Add link-warning.
133         (Makefile.am): Insert the definition of GL_LINK-WARNING.
134         * modules/unistd (Makefile.am): Likewise.
135
136 2008-09-26  Bruno Haible  <bruno@clisp.org>
137
138         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
139         variables.
140         (func_version): Essentially copied from gnulib-tool.
141         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
142         func_readlink): Copied from gnulib-tool.
143
144 2008-09-26  Bruno Haible  <bruno@clisp.org>
145
146         * gnulib-tool (func_version): Change directory to $gnulib_dir before
147         invoking git-version-gen.
148
149 2008-09-26  Bruno Haible  <bruno@clisp.org>
150
151         * posix-modules: Update to directory names changed on 2008-01-19.
152         Remove commas in output before splitting into words. No more need to
153         avoid 'ftruncate' since 2007-02-19.
154
155 2008-09-26  Bruno Haible  <bruno@clisp.org>
156
157         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
158
159 2008-09-26  Bruno Haible  <bruno@clisp.org>
160
161         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
162         * modules/fwriteerror (Depends-on): Add errno.
163
164 2008-09-26  Bruno Haible  <bruno@clisp.org>
165
166         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
167         * tests/test-vc-list-files-cvs.sh: Likewise.
168
169 2008-09-26  Bruno Haible  <bruno@clisp.org>
170
171         * doc/posix-headers/sys_resource.texi: Reorder items.
172
173 2008-09-26  Jim Meyering  <meyering@redhat.com>
174
175         fts: tweak inode comparison function
176         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
177         inode numbers, as documented.
178
179         fts: sort dirent entries on inode number before traversing
180         This avoids a quadratic, seek-related performance penalty when
181         operating on a directory containing many entries (measurable at 10k;
182         3.5 hours at 2 million entries with a cold cache) on certain types
183         of file systems, including ext3 and ext4, but not tmpfs.
184         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
185         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
186         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
187         (fs_handles_readdir_ordered_dirents_efficiently): New function.
188         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
189         (fts_build): Set the stat.st_ino member from D_INO.
190         If it is likely to be useful, sort dirent entries on inode number.
191
192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
193         and the struct statfs.f_type member.
194         * modules/fts (Depends-on): Add d-ino.
195
196 2008-09-26  Bruno Haible  <bruno@clisp.org>
197
198         * modules/sigpipe-die (Depends-on): Add sigpipe.
199
200         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
201         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
202         and GNULIB_STDIO_H_SIGPIPE are set.
203         * lib/stdio-write.c: New file.
204         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
205         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
206         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
207         REPLACE_STDIO_WRITE_FUNCS.
208         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
209         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
210         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
211         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
212         * modules/stdio (Files): Add lib/stdio-write.c.
213         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
214         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
215         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
216         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
217         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
218         REPLACE_FPRINTF_POSIX.
219         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
220         REPLACE_PRINTF_POSIX.
221         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
222         REPLACE_VFPRINTF_POSIX.
223         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
224         REPLACE_VPRINTF_POSIX.
225         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
226         SIGPIPE issue.
227         * doc/posix-functions/fputc.texi: Likewise.
228         * doc/posix-functions/fputs.texi: Likewise.
229         * doc/posix-functions/fwrite.texi: Likewise.
230         * doc/posix-functions/printf.texi: Likewise.
231         * doc/posix-functions/putc.texi: Likewise.
232         * doc/posix-functions/putchar.texi: Likewise.
233         * doc/posix-functions/puts.texi: Likewise.
234         * doc/posix-functions/vfprintf.texi: Likewise.
235         * doc/posix-functions/vprintf.texi: Likewise.
236
237         * modules/safe-write (Depends-on): Add write.
238
239         * modules/sigpipe-tests: New file.
240         * tests/test-sigpipe.c: New file.
241         * tests/test-sigpipe.sh: New file.
242
243         * modules/write: New file.
244         * lib/unistd.in.h: Include <sys/types.h>.
245         (write): New declaration.
246         * lib/write.c: New file.
247         * m4/write.m4: New file.
248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
249         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
250         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
251         GNULIB_WRITE, REPLACE_WRITE.
252         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
253         and the SIGPIPE issue.
254
255         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
256         (raise): New declaration.
257         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
258         (ext_signal): New function.
259         (rpl_raise): New function.
260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
261         GNULIB_SIGNAL_H_SIGPIPE.
262         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
263         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
264
265         * modules/sigpipe: New file.
266         * m4/sigpipe.m4: New file.
267
268 2008-09-25  Derek Price  <derek@ximbiot.com>
269             Bruno Haible  <bruno@clisp.org>
270
271         * gnulib-tool (func_import): Report all license incompatibilities, not
272         just the first one.
273
274 2008-09-25  Bruno Haible  <bruno@clisp.org>
275
276         * gnulib-tool (func_import): When computing the edits, consider not
277         only the Makefile.ams that exist but also those that will be generated.
278
279 2008-09-25  Simon Josefsson  <simon@josefsson.org>
280
281         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
282         fixes gnulib-tool --test warning about duplicate dependency.
283
284 2008-09-25  Bruno Haible  <bruno@clisp.org>
285
286         * gnulib-tool: Don't ask the user to perform edits in the generated
287         Makefile.ams.
288         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
289         apply to the Makefile.am being generated.
290         (func_emit_tests_Makefile_am): Execute edits that apply to the
291         Makefile.am being generated.
292         (func_import): Setup list of Makefile.am edits before emitting the
293         Makefile.ams, not at the end.
294         (func_create_testdir): Update.
295         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
296
297 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
298
299         * gnulib-tool (func_import): Store the --tests-base option in the
300         comment in gnulib-cache.m4.
301
302 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
303
304         * NEWS: Document increased portability that sys_select now provides.
305
306         * lib/sys_select.in.h: Install select wrapper.
307         * lib/sys_socket.in.h: Use more descriptive name when there is no
308         select wrapper.
309         * lib/winsock-select.c: New.
310         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
311         Require gl_HEADER_SYS_SOCKET.
312         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
313         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
314         * tests/test-sys_select.c: Add functional tests.
315
316 2008-09-24  Eric Blake  <ebb9@byu.net>
317
318         open, fopen: close fd leak in last patch
319         * lib/open.c (rpl_open): Close fd before returning error.
320         * lib/fopen.c (rpl_fopen): Close fd before returning error.
321         * doc/posix-functions/open.texi (open): Document that Irix also
322         has the bug.
323         * doc/posix-functions/fopen.texi (fopen): Likewise.
324         Reported by Paolo Bonzini.
325
326 2008-09-24  Bruno Haible  <bruno@clisp.org>
327
328         Ensure that a filename ending in a slash cannot be used to access a
329         non-directory.
330         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
331         to check whether it's really a directory.
332         * lib/fopen.c: Include fcntl.h, unistd.h.
333         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
334         and fdopen().
335         * modules/fopen (Depends-on): Add unistd.
336         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
337         * tests/test-fopen.c (main): Likewise.
338         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
339         * doc/posix-functions/fopen.texi: Likewise.
340         Reported by Eric Blake.
341
342 2008-09-23  Eric Blake  <ebb9@byu.net>
343
344         c-stack: avoid compiler optimizations when provoking overflow
345         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
346         recursion harder to optimize, to ensure a stack overflow occurs.
347         * tests/test-c-stack.c (recurse): Likewise.
348         Borrowed from libsigsegv.
349
350         c-stack: work around Irix sigaltstack bug
351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
352         whether sigaltstack uses wrong end of stack_t (copied in part from
353         libsigsegv).
354         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
355         Irix bug, without requiring an over-allocation.
356         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
357         bug.
358
359         fopen: document mingw bug on directories
360         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
361         not allowing a stream visiting a directory, even though reading
362         from such a stream is not portable.
363
364 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
365
366         * lib/poll.c: Rewrite.
367         * modules/poll: Depend on alloca.
368
369 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
370
371         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
372         instead define prototypes for a full set of wrappers.  Ensure
373         that Cygwin does not use the compatibility code, which is only
374         for MinGW.
375         * lib/winsock.c: New.
376         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
377         * modules/sys_socket: Add lib/winsock.c.
378
379         * modules/poll-tests: Add errno and perror.
380         * tests/test-poll.c: Use ioctl, not ioctlsocket.
381
382 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
383
384         * tests/test-poll.c: Downgrade minimum needed Winsock version.
385
386 2008-09-23  Bruno Haible  <bruno@clisp.org>
387
388         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
389         * doc/glibc-functions/*: Likewise.
390
391 2008-09-23  Simon Josefsson  <simon@josefsson.org>
392
393         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
394         success.
395
396 2008-09-22  Eric Blake  <ebb9@byu.net>
397             Bruno Haible  <bruno@clisp.org>
398
399         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
400         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
401         supply %A but mishandle pseudo-NaN.
402         Reported by Simon Josefsson.
403
404 2008-09-21  Bruno Haible  <bruno@clisp.org>
405
406         * tests/test-lock.c (main): Tweak skip message.
407         * tests/test-tls.c (main): Likewise.
408
409 2008-09-21  Bruno Haible  <bruno@clisp.org>
410
411         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
412         whether 'struct sigaction' has sa_sigaction here...
413         (gl_PREREQ_SIG_HANDLER_H): ... not here.
414         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
415
416 2008-09-21  Bruno Haible  <bruno@clisp.org>
417
418         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
419         section.
420         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
421         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
422         the new section.
423         (Support for obsolete systems lacking POSIX:2001): New section.
424         (String handling <string.h>): Move strdup to the new section.
425         Suggested by Simon Josefsson and Paolo Bonzini.
426
427 2008-09-21  Bruno Haible  <bruno@clisp.org>
428
429         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
430         exponents in %e and %g results on 'long double'. Needed for mingw's
431         improved *printf functions.
432         * tests/test-vasprintf-posix.c (test_function): Likewise.
433         * tests/test-snprintf-posix.h (test_function): Likewise.
434         * tests/test-sprintf-posix.h (test_function): Likewise.
435         Reported by Eric Blake.
436
437 2008-09-21  Bruno Haible  <bruno@clisp.org>
438
439         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
440         * tests/test-sprintf-posix.h (test_function): Likewise.
441
442 2008-09-21  Bruno Haible  <bruno@clisp.org>
443
444         * modules/getpass (Depends-on): Add strdup-posix.
445
446         New module 'strdup-posix'.
447         * modules/strdup-posix: New file.
448         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
449         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
451         REPLACE_STRDUP.
452         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
453         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
455         strdup-posix.
456
457         * modules/strdup (Depends-on): Remove malloc-posix.
458
459 2008-09-20  Bruno Haible  <bruno@clisp.org>
460
461         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
462         Wildenhues.
463
464 2008-09-20  Bruno Haible  <bruno@clisp.org>
465
466         Ensure that wint_t gets defined on IRIX 5.3.
467         * lib/wchar.in.h (wint_t): Define if not defined by the system.
468         * lib/wctype.in.h (wint_t): Likewise.
469         (__wctype_wint_t): Remove type.
470         (isw*): Use wint_t instead of __wctype_wint_t.
471         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
472         * modules/wchar (Files): Add m4/wint_t.m4.
473         (Makefile.am): Substitute HAVE_WINT_T.
474         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
475         * tests/test-wctype.c: Check that wint_t is defined.
476         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
477         * doc/posix-headers/wctype.texi: Likewise.
478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
479
480 2008-09-18  Bruno Haible  <bruno@clisp.org>
481
482         * gnulib-tool (func_exit): Update comment.
483
484 2008-09-18  Simon Josefsson  <simon@josefsson.org>
485
486         * modules/getaddrinfo (Depends-on): Remove strdup, this module
487         assumes strdup exists and does not depend on strdup to return
488         ENOMEM on out of memory conditions.
489
490 2008-09-18  Bruno Haible  <bruno@clisp.org>
491
492         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
493         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
494         digits for the exponent.
495
496 2008-09-18  Jim Meyering  <meyering@redhat.com>
497             Bruno Haible  <bruno@clisp.org>
498
499         * lib/vasnprintf.c (decimal_point_char): Define also if
500         NEED_PRINTF_INFINITE_LONG_DOUBLE.
501
502 2008-09-16  Bruno Haible  <bruno@clisp.org>
503         and Eric Blake  <ebb9@byu.net>
504
505         vasnprintf: support Irix 5.3
506         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
507         that mishandle long double infinity.
508         Reported by Tom G. Christensen.
509
510 2008-09-16  Bruno Haible  <bruno@clisp.org>
511
512         * doc/glibc-functions/scandir.texi: Mention the function is missing on
513         Solaris 9.
514         * doc/glibc-functions/alphasort.texi: Likewise.
515         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
516
517 2008-09-16  Jim Meyering  <meyering@redhat.com>
518
519         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
520         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
521         a umask modification leak out of a subshell.  Otherwise, the
522         opensolaris /bin/sh would be accepted and thus cause unwarranted
523         failures in the coreutils test suite.
524
525 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
526
527         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
528         to succeed.
529
530 2008-09-16  Jim Meyering  <meyering@redhat.com>
531
532         avoid spurious test failure when library is built without ACL support
533         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
534         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
535         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
536         * tests/test-copy-acl.sh: Likewise.
537
538 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
539
540         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
541         based on character occurrence counts.
542
543 2008-09-15  Eric Blake  <ebb9@byu.net>
544
545         tests: avoid some compiler warnings
546         * tests/test-memchr.c (main): Pass NULL indirectly.
547         * tests/test-closein.c (main): Avoid unused variable.
548
549 2008-09-15  Bruno Haible  <bruno@clisp.org>
550
551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
552         are missing on OpenBSD 4.0 individually.
553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
554
555 2008-09-15  Bruno Haible  <bruno@clisp.org>
556
557         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
558         * doc/posix-functions/strerror.texi: Mention also Cygwin.
559         * doc/posix-functions/perror.texi: Likewise.
560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
561         is missing.
562         Reported by Eric Blake.
563
564         * lib/errno.in.h: Use replacement values >= 2000.
565         Reported by Eric Blake.
566
567 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
568
569         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
570         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
571         limit.
572         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
573         compareseq was aborted.
574
575 2008-09-14  Bruno Haible  <bruno@clisp.org>
576
577         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
578         yvec_edit_count.
579         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
580         (fstrcmp_bounded): Simplify result computation accordingly.
581
582 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583
584         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
585         (fstrcmp): Define in terms of fstrcmp_bounded.
586         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
587         lower_bound argument.
588         Return quickly if the result is certainly < lower_bound.
589         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
590
591 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
592
593         * lib/diffseq.h (EARLY_ABORT): New macro.
594         (compareseq): Change return type to bool. Return true when EARLY_ABORT
595         evaluates to true.
596
597 2008-09-14  Bruno Haible  <bruno@clisp.org>
598
599         * modules/perror-tests: New file.
600         * tests/test-perror.sh: New file.
601         * tests/test-perror.c: New file.
602
603         New module 'perror'.
604         * lib/stdio.in.h (perror): New declaration.
605         * lib/perror.c: New file.
606         * m4/perror.m4: New file.
607         * modules/perror: New file.
608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
609         * doc/posix-functions/perror.texi: Mention the perror module.
610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
611         REPLACE_PERROR.
612         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
613         REPLACE_PERROR.
614
615 2008-09-14  Bruno Haible  <bruno@clisp.org>
616
617         * modules/stdio (Makefile.am): Reorder to match the order in
618         lib/stdio.in.h.
619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
620
621 2008-09-13  Bruno Haible  <bruno@clisp.org>
622
623         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
624
625 2008-09-13  Bruno Haible  <bruno@clisp.org>
626
627         Extend strerror to cover the added errno values.
628         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
629         (rpl_strerror): Provide error messages for the added errno values and
630         for the WSA* values.
631         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
632         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
633         strerror.
634         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
635         * modules/strerror (Depends-on): Add errno.
636         * doc/posix-functions/strerror.texi: Document the change.
637         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
638         and EOVERFLOW.
639
640 2008-09-13  Bruno Haible  <bruno@clisp.org>
641
642         * modules/EOVERFLOW: Remove file.
643         * m4/eoverflow.m4: Remove file.
644         * modules/EOVERFLOW-tests: Remove file.
645         * tests/test-EOVERFLOW.c: Remove file.
646         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
647         * modules/ftell (Depends-on): Likewise.
648         * modules/getdelim (Depends-on): Likewise.
649         * modules/getugroups (Depends-on): Likewise.
650         * modules/poll (Depends-on): Likewise.
651         * modules/snprintf (Depends-on): Likewise.
652         * modules/sprintf-posix (Depends-on): Likewise.
653         * modules/vasnprintf (Depends-on): Likewise.
654         * modules/vasprintf (Depends-on): Likewise.
655         * modules/vfprintf-posix (Depends-on): Likewise.
656         * modules/vsnprintf (Depends-on): Likewise.
657         * modules/vsprintf-posix (Depends-on): Likewise.
658         * modules/xvasprintf (Depends-on): Likewise.
659         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
660         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
661         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
662         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
664         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
665         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
666         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
668         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
669         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
670         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
671         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
672         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
673         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
674         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
675         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
676         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
677         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
678         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
679         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
680         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
681         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
682         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
683         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
684         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
685         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
686         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
687         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
688         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
689         * MODULES.html.sh: Remove EOVERFLOW.
690         * NEWS: Mention the change.
691
692 2008-09-13  Bruno Haible  <bruno@clisp.org>
693
694         * modules/errno-tests: New file.
695         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
696
697         * lib/errno.in.h: New file.
698         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
699         * modules/errno: New file.
700         * doc/posix-headers/errno.texi: Update documentation.
701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
702
703 2008-09-13  Bruno Haible  <bruno@clisp.org>
704
705         * tests/test-poll.c: Use #if for native Windows, rather than testing
706         __MSVCRT__.
707
708 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
709             Bruno Haible  <bruno@clisp.org>
710
711         * lib/glob.c: Don't include <pwd.h> on native Windows.
712         (WINDOWS32): New macro.
713         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
714
715 2008-09-13  Bruno Haible  <bruno@clisp.org>
716
717         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
718         (ETIMEDOUT): Remove macro.
719         (glthread_cond_timedwait_multithreaded): New declaration.
720         (glthread_cond_timedwait): Use it.
721         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
722         (glthread_cond_timedwait_multithreaded): New function.
723
724 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
725
726         * modules/poll-tests: Do not check for io.h.
727         * tests/test-poll.c: Check for __MSVCRT__ instead.
728
729 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
730
731         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
732         * modules/poll-tests: Add inet_pton, stdbool, sockets.
733         * tests/test-poll.c: Use them.  Use _pipe on Windows.
734
735 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
736
737         * modules/poll-tests: New.
738         * tests/test-poll.c: New.
739
740 2008-09-12  Eric Blake  <ebb9@byu.net>
741
742         frexp: test for NetBSD failure on -0.0
743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
744         not all, bugs from NetBSD 3.0 have been fixed.
745         * doc/posix-functions/frexp.texi (frexp): Document bug.
746         Reported by Thomas Klausner.
747
748         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
749         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
750         literal -0.0.
751         Reported by Jonathan C. Patschke <jp@centtech.com>.
752
753 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
754
755         * lib/glthread/cond.h: Use dummy implementation also if
756         USE_WIN32_THREADS.
757
758 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
759
760         * modules/fnmatch-posix (License): Change to LGPLv2+.
761         * modules/fnmatch-gnu (License): Likewise.
762
763 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
764
765         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
766
767 2008-09-11  Jim Meyering  <meyering@redhat.com>
768
769         * users.txt: Add gtk-vnc.
770
771 2008-09-08  Simon Josefsson  <simon@josefsson.org>
772
773         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
774         rotate amounts.
775
776         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
777         required for 16-bit and 8-bit rotates.
778         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
779         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
780         UINT8_MAX instead of hard-coded constants.
781         Suggested by Paul Eggert.
782
783 2008-09-07  Bruno Haible  <bruno@clisp.org>
784
785         * tests/test-striconveh.c (main): Check behaviour when converting from
786         UTF-7.
787
788         Make striconveh work better with stateful encodings.
789         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
790         that iconv does not increment the inptr when returning -1/EINVAL.
791
792 2008-09-07  Bruno Haible  <bruno@clisp.org>
793
794         * build-aux/config.rpath: Update according to libtool-2.2.6.
795         * build-aux/config.libpath: Likewise.
796
797 2008-09-06  Bruno Haible  <bruno@clisp.org>
798
799         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
800         * lib/freadptr.c (freadptr): Likewise.
801         * lib/freadseek.c (freadptrinc): Likewise.
802         Reported by Simon Josefsson.
803
804 2008-09-06  Bruno Haible  <bruno@clisp.org>
805
806         * modules/freadptr (License): Change to LGPLv2+.
807         * modules/freadseek (License): Likewise.
808         Suggested by Eric Blake.
809
810         * modules/memchr2 (License): Change to LGPLv2+.
811         Approved by Eric Blake.
812
813 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
814             Bruno Haible  <bruno@clisp.org>
815
816         Make gnulib-tool work with native 'sed' on AIX.
817         * gnulib-tool (sed_noop): New variable.
818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
819         func_add_or_update, func_create_testdir): Use it to initialize sed
820         script variables.
821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
822
823 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
824             Bruno Haible  <bruno@clisp.org>
825
826         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
827         also works after #include directives.
828
829 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
830
831         getdate.y: reject an out-of-range timezone value
832         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
833         the range [-24...+24].  When specified with only one or two digits,
834         * tests/test-getdate.c: Tests for the fix.
835         * doc/getdate.texi: Document this change.
836
837 2008-09-03  Bruno Haible  <bruno@clisp.org>
838
839         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
840
841 2008-09-02  Simon Josefsson  <simon@josefsson.org>
842
843         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
844         <bruce.korb@gmail.com> with ideas from Ben Pfaff
845         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
846         Blake <ebb9@byu.net>.
847
848         * tests/test-bitrotate.c: Add more test vectors.
849
850 2008-09-02  Eric Blake  <ebb9@byu.net>
851
852         vasnprintf-posix: handle large precision via %.*d
853         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
854         when handling it ourselves.
855         * tests/test-vasnprintf-posix.c (test_function): Add test.
856         * tests/test-snprintf-posix.h (test_function): Likewise.
857         * tests/test-sprintf-posix.h (test_function): Likewise.
858         * tests/test-vasprintf-posix.c (test_function): Likewise.
859         Reported by Alain Guibert.
860
861 2008-09-01  Eric Blake  <ebb9@byu.net>
862
863         c-stack: make configure-time check more robust
864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
865         successful sigaction call.
866         Reported by Tom G. Christensen.
867
868 2008-09-01  Bruno Haible  <bruno@clisp.org>
869
870         New module 'findprog-lgpl'.
871         * modules/findprog-lgpl: New file.
872         * lib/findprog-lgpl.c: New file.
873         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
874         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
875         to decide whether to use strdup or xstrdup, concatenated_filename or
876         xconcatenated_filename.
877
878 2008-09-01  Bruno Haible  <bruno@clisp.org>
879
880         Split module 'concat-filename' into 'concat-filename' (LGPL) and
881         'xconcat-filename' (GPL).
882         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
883         (License): Change to LGPLv2+.
884         * modules/xconcat-filename: New file.
885         * lib/concat-filename.h (concatenated_filename): Change specification.
886         (xconcatenated_filename): New declaration.
887         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
888         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
889         memory situations.
890         * lib/xconcat-filename.c: New file.
891         * NEWS: Mention the change.
892         * lib/findprog.c: Include concat-filename.h, not filename.h.
893         (find_in_path): Use xconcatenated_filename instead of
894         concatenated_filename.
895         * lib/javacomp.c: Include concat-filename.h, not filename.h.
896         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
897         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
898         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
899         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
900         instead of concatenated_filename.
901         * lib/javaexec.c: Include concat-filename.h, not filename.h.
902         (execute_java_class): Use xconcatenated_filename instead of
903         concatenated_filename.
904         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
905         * modules/javacomp (Depends-on): Likewise.
906         * modules/javaexec (Depends-on): Likewise.
907
908 2008-09-01  Bruno Haible  <bruno@clisp.org>
909
910         Split module 'filename' into 'filename' and 'concat-filename'.
911         * modules/filename: Keep only lib/filename.h.
912         (License): Change to LGPLv2+.
913         * modules/concat-filename: New file, extracted from modules/filename.
914         * lib/filename.h (concatenated_filename): Remove declaration.
915         * lib/concat-filename.h: New file, extracted from lib/filename.h.
916         * lib/concat-filename.c: Include concat-filename.h.
917         * NEWS: Mention the change.
918
919 2008-09-01  Simon Josefsson  <simon@josefsson.org>
920
921         * lib/bitrotate.h (rotl8, rotr8): Add.
922
923         * modules/bitrotate (configure.ac): Need
924         AC_REQUIRE([AC_C_INLINE]).
925         (Description): Mention stdint.h.  Reported by Bruno Haible
926         <bruno@clisp.org>.
927
928         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
929         Paolo Bonzini <bonzini@gnu.org>.
930
931 2008-08-31  Bruno Haible  <bruno@clisp.org>
932
933         Assume Solaris specific bi-arch conventions on Solaris systems.
934         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
935         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
937         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
938         like acl_libdirstem.
939         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
940         acl_libdirstem.
941         * NEWS: Mention the change.
942         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
943
944 2008-08-31  Jim Meyering  <meyering@redhat.com>
945
946         * lib/strftime.h: Add comments describing the two added arguments.
947
948         remove duplicate #include directives
949         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
950         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
951
952 2008-08-31  Bruno Haible  <bruno@clisp.org>
953
954         New module 'sigpipe-die'.
955         * modules/sigpipe-die: New file.
956         * lib/sigpipe-die.h: New file.
957         * lib/sigpipe-die.c: New file.
958         * MODULES.html.sh (Signal handling): Add sigpipe-die.
959
960 2008-08-31  Bruno Haible  <bruno@clisp.org>
961
962         Don't override previously installed signal handlers.
963         * lib/fatal-signal.c (saved_sigactions): New variable.
964         (uninstall_handlers): Reset the signal to the saved handler, not
965         to SIG_DFL (except when ignored).
966         (install_handlers): Save the previous handlers.
967
968 2008-08-30  Bruno Haible  <bruno@clisp.org>
969
970         * gnulib-tool (func_reset_sigpipe): New function.
971         (func_get_automake_snippet, func_modules_transitive_closure,
972         func_import): Invoke it before a join command that reads from stdin,
973         to avoid "echo: write error: Broken pipe" error messages on stderr.
974         Reported by Sam Steingold <sds@gnu.org>.
975
976 2008-08-30  Bruno Haible  <bruno@clisp.org>
977
978         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
979         Code copied from m4/open.m4.
980         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
981         access and the filename ends in a slash. Code copied from lib/open.c.
982         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
983         * tests/test-fopen.c (main): Check against bug with trailing slash.
984
985 2008-08-29  Bruno Haible  <bruno@clisp.org>
986
987         Avoid some "gcc -pedantic" warnings.
988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
989         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
990         * lib/dirent.in.h: Likewise.
991         * lib/fcntl.in.h: Likewise.
992         * lib/float.in.h: Likewise.
993         * lib/iconv.in.h: Likewise.
994         * lib/inttypes.in.h: Likewise.
995         * lib/locale.in.h: Likewise.
996         * lib/math.in.h: Likewise.
997         * lib/netinet_in.in.h: Likewise.
998         * lib/search.in.h: Likewise.
999         * lib/signal.in.h: Likewise.
1000         * lib/stdarg.in.h: Likewise.
1001         * lib/stdint.in.h: Likewise.
1002         * lib/stdio.in.h: Likewise.
1003         * lib/stdlib.in.h: Likewise.
1004         * lib/string.in.h: Likewise.
1005         * lib/strings.in.h: Likewise.
1006         * lib/sys_select.in.h: Likewise.
1007         * lib/sys_socket.in.h: Likewise.
1008         * lib/sys_stat.in.h: Likewise.
1009         * lib/sys_time.in.h: Likewise.
1010         * lib/sysexits.in.h: Likewise.
1011         * lib/time.in.h: Likewise.
1012         * lib/unistd.in.h: Likewise.
1013         * lib/wchar.in.h: Likewise.
1014         * lib/wctype.in.h: Likewise.
1015         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
1016         * modules/fchdir (Makefile.am): Likewise.
1017         * modules/fcntl (Makefile.am): Likewise.
1018         * modules/float (Makefile.am): Likewise.
1019         * modules/iconv_open (Makefile.am): Likewise.
1020         * modules/inttypes (Makefile.am): Likewise.
1021         * modules/locale (Makefile.am): Likewise.
1022         * modules/math (Makefile.am): Likewise.
1023         * modules/netinet_in (Makefile.am): Likewise.
1024         * modules/search (Makefile.am): Likewise.
1025         * modules/signal (Makefile.am): Likewise.
1026         * modules/stdarg (Makefile.am): Likewise.
1027         * modules/stdint (Makefile.am): Likewise.
1028         * modules/stdio (Makefile.am): Likewise.
1029         * modules/stdlib (Makefile.am): Likewise.
1030         * modules/string (Makefile.am): Likewise.
1031         * modules/strings (Makefile.am): Likewise.
1032         * modules/sys_select (Makefile.am): Likewise.
1033         * modules/sys_socket (Makefile.am): Likewise.
1034         * modules/sys_stat (Makefile.am): Likewise.
1035         * modules/sys_time (Makefile.am): Likewise.
1036         * modules/sysexits (Makefile.am): Likewise.
1037         * modules/time (Makefile.am): Likewise.
1038         * modules/unistd (Makefile.am): Likewise.
1039         * modules/wchar (Makefile.am): Likewise.
1040         * modules/wctype (Makefile.am): Likewise.
1041         Reported by Reuben Thomas <rrt@sc3d.org>.
1042
1043 2008-08-29  Bruno Haible  <bruno@clisp.org>
1044
1045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
1046         any more.
1047
1048 2008-08-29  Simon Josefsson  <simon@josefsson.org>
1049
1050         * MODULES.html.sh (Misc): Add bitrotate.
1051
1052         * modules/bitrotate: New file.
1053
1054         * lib/bitrotate.h: New file.
1055
1056         * modules/bitrotate-tests: New file.
1057
1058         * tests/test-bitrotate.c: New file.
1059
1060         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
1061         on the bitrotate module.
1062
1063         * lib/arctwo.c: Use new bitrotate module.
1064
1065 2008-08-29  Jim Meyering  <meyering@redhat.com>
1066
1067         bootstrap: merge changes from coreutils
1068         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
1069         of copied files.  Remove a kludge, now that this is fixed.
1070         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
1071         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
1072         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
1073
1074 2008-08-29  Bruno Haible  <bruno@clisp.org>
1075
1076         * MODULES.html.sh: Remove --cvs-urls option.
1077
1078 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
1079
1080         maint.mk: adjust to file name change
1081         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
1082
1083 2008-08-28  Jim Meyering  <meyering@redhat.com>
1084
1085         * modules/getndelim2 (License): Relicense to LGPLv2+.
1086         Approved by Richard Stallman for the version of 1995, and by
1087         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
1088
1089 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
1090
1091         * lib/getdelim.c (flockfile, funlockfile): Make all of them
1092         dummy if one is not available.  Do not touch them if
1093         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
1094         (getc_maybe_unlocked): New.
1095         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
1096
1097 2008-08-26  Eric Blake  <ebb9@byu.net>
1098
1099         doc/INSTALL: resync from autoconf
1100         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
1101         (INSTALL_PRELUDE): Delete; this is done more efficiently by
1102         moving...
1103         * install.texi [!autoconf]: ...here.  Resync from autoconf.
1104         * INSTALL: Regenerate.
1105         * INSTALL.ISO: New file.
1106         * INSTALL.UTF-8: Likewise.
1107
1108 2008-08-26  Jim Meyering  <meyering@redhat.com>
1109
1110         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
1111         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
1112         these definitions conditional, so that they may be overridden, too.
1113
1114 2008-08-26  Bruno Haible  <bruno@clisp.org>
1115
1116         Generate INSTALL file variants with prettier quotes.
1117         * doc/Makefile (INSTALL_PRELUDE): New macro.
1118         (INSTALL): Use it.
1119         (INSTALL.ISO, INSTALL.UTF-8): New rules.
1120
1121 2008-08-26  Bruno Haible  <bruno@clisp.org>
1122
1123         Run makeinfo in an English locale.
1124         * doc/Makefile (MAKEINFO): New variable.
1125
1126 2008-08-26  Bruno Haible  <bruno@clisp.org>
1127
1128         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
1129         Suggested by Eric Blake.
1130
1131 2008-08-25  Bruno Haible  <bruno@clisp.org>
1132
1133         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
1134
1135 2008-08-25  Eric Blake  <ebb9@byu.net>
1136
1137         c-stack: test that stack overflow can be caught
1138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
1139         that platform allows handling stack overflow; at least OS/2 EMX
1140         has sigaltstack, but crashes before transferring control to
1141         handler on stack overflow.
1142         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
1143         check for HAVE_STACK_OVERFLOW_HANDLING.
1144         Reported by Elbert Pol.
1145
1146 2008-08-25  Bruno Haible  <bruno@clisp.org>
1147
1148         * doc/posix-functions/strftime.texi: Fix description of strftime
1149         module.
1150
1151 2008-08-24  Bruno Haible  <bruno@clisp.org>
1152
1153         * tests/uniwidth/test-uc_width2.c: New file.
1154         * tests/uniwidth/test-uc_width2.sh: New file.
1155         * modules/uniwidth/width-tests (Files): Add the new files.
1156         (TESTS): Add uniwidth/test-uc_width2.sh.
1157         (TESTS_ENVIRONMENT): New variable.
1158         (check_PROGRAMS): Add test-uc_width2.
1159         (test_uc_width2_SOURCES): New variable.
1160
1161         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1162         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1163         not 0x00AB.
1164         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1165
1166 2008-08-22  Eric Blake  <ebb9@byu.net>
1167
1168         test-lock, test-tls: mention why a test is skipped
1169         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1170         skipped.
1171         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1172
1173         count-one-bits: relax license
1174         * modules/count-one-bits (License): Relicense to LGPLv2+.
1175         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1176
1177 2008-08-22  Andreas Schwab  <schwab@suse.de>
1178
1179         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1180         Remove spurious space in assignment.
1181
1182 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1183
1184         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1185         Paul Eggert <eggert@CS.UCLA.EDU>.
1186
1187 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1188
1189         * modules/gettext: Add m4/threadlib.m4.
1190
1191 2008-08-19  Eric Blake  <ebb9@byu.net>
1192
1193         test-c-stack: fix compilation failure on FreeBSD 5.0
1194         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1195         headers before <sys/resource.h>.
1196         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1197         the bug.
1198         Reported by Nelson H. F. Beebe.
1199
1200         strverscmp: migrate from "strverscmp.h" to <string.h>
1201         * modules/string (Makefile.am): Add new hooks.
1202         * modules/strverscmp (Files): Remove strverscmp.h.
1203         (Depends-on): Add string.
1204         (configure.ac): Add indicator.
1205         (Include): Mention new header.
1206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1207         defaults.
1208         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1209         results.
1210         * lib/strverscmp.h: Delete.
1211         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1212         * tests/test-strverscmp.c (includes): Adjust client.
1213         * lib/check-version.c (includes): Likewise.
1214         * NEWS: Document the change.
1215
1216         strverscmp: add unit test
1217         * modules/strverscmp-tests: New file.
1218         * tests/test-strverscmp.c: Likewise.
1219
1220 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1221
1222         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1223         regarding Windows crypto stuff, from Mono.
1224
1225 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1226
1227         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1228         if present, for intel RND.  Return error on failures.
1229
1230 2008-08-18  Ben Pfaff  <blp@gnu.org>
1231
1232         gitlog-to-changelog: give better diagnostic for failed pipe-open
1233         * build-aux/gitlog-to-changelog: Improve error message: suggest
1234         that the version of Git may be too old.
1235
1236 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1237
1238         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1239         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1240
1241 2008-08-18  Bruno Haible  <bruno@clisp.org>
1242
1243         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1244         pthread_in_use().
1245
1246 2008-08-18  Bruno Haible  <bruno@clisp.org>
1247
1248         * lib/glthread/threadlib.c: Include <pthread.h>.
1249
1250 2008-08-18  Bruno Haible  <bruno@clisp.org>
1251
1252         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1253         glthread_recursive_lock_* macros.
1254         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1255         Fix syntax error.
1256
1257 2008-08-18  Bruno Haible  <bruno@clisp.org>
1258
1259         * lib/glthread/thread.c: Avoid forcing a context switch right after
1260         thread creation.
1261
1262 2008-08-17  Bruno Haible  <bruno@clisp.org>
1263
1264         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1265         * lib/glthread/thread.h: Provide Win32 specific implementation.
1266         * modules/thread (Files): Add lib/glthread/thread.c.
1267         (Depends-on): Add lock.
1268         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1269
1270 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1271
1272         New module 'yield'.
1273         * modules/yield: New file.
1274         * lib/glthread/yield.h: New file.
1275         * m4/yield.m4: New file.
1276         * MODULES.html.sh (Multithreading): Add yield.
1277
1278 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1279
1280         New module 'thread'.
1281         * modules/thread: New file.
1282         * lib/glthread/thread.h: New file.
1283         * m4/thread.m4: New file.
1284         * MODULES.html.sh (Multithreading): Add thread.
1285
1286 2008-08-17  Bruno Haible  <bruno@clisp.org>
1287
1288         * lib/glthread/lock.h: Include <stdlib.h> always.
1289         * lib/glthread/tls.h: Likewise.
1290         * lib/glthread/cond.h: Likewise.
1291
1292 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1293
1294         New module 'cond'.
1295         * modules/cond: New file.
1296         * lib/glthread/cond.h: New file.
1297         * lib/glthread/cond.c: New file.
1298         * m4/cond.m4: New file.
1299         * MODULES.html.sh (Multithreading): Add cond.
1300
1301 2008-08-16  Eric Blake  <ebb9@byu.net>
1302
1303         c-stack: fix regression on Irix 5.3 from 2008-06-21
1304         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1305         sa_sigaction...
1306         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1307         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1308         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1309         * modules/signal (Makefile.am): Use the value.
1310         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1311         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1312         * doc/posix-headers/signal.texi (signal.h): Document this
1313         portability issue.
1314         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1315         Reported by Tom G. Christensen.
1316
1317 2008-08-17  Bruno Haible  <bruno@clisp.org>
1318
1319         New module 'threadlib'.
1320         * modules/threadlib: New file.
1321         * lib/glthread/threadlib.c: New file, extracted from
1322         lib/glthread/lock.c.
1323         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1324         functions.
1325         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1326         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1327         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1328         macros.
1329         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1330         (gl_DISABLE_THREADS): Remove macro.
1331         * modules/lock (Files): Remove build-aux/config.rpath.
1332         (Depends-on): Remove havelib. Add threadlib.
1333         (configure.ac-early): Remove section.
1334         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1335         * modules/tls (Depends-on): Remove lock. Add threadlib.
1336         (Link): New section, copied from threadlib.
1337         * MODULES.html.sh (Multithreading): Add threadlib.
1338
1339 2008-08-14  Bruno Haible  <bruno@clisp.org>
1340
1341         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1342         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1343         glthread_rwlock_unlock, glthread_rwlock_destroy,
1344         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1345         glthread_recursive_lock_destroy): Define as macros always.
1346         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1347         glthread_lock_lock.
1348         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1349         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1350         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1351         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1352         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1353         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1354         (glthread_recursive_lock_lock_func): Renamed from
1355         glthread_recursive_lock_lock.
1356         (glthread_recursive_lock_unlock_func): Renamed from
1357         glthread_recursive_lock_unlock.
1358         (glthread_recursive_lock_destroy_func): Renamed from
1359         glthread_recursive_lock_destroy.
1360
1361 2008-08-14  Bruno Haible  <bruno@clisp.org>
1362
1363         * lib/glthread/lock.h: Renamed from lib/lock.h.
1364         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1365         * lib/glthread/tls.h: Renamed from lib/tls.h.
1366         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1367         * lib/fstrcmp.c: Update includes.
1368         * lib/strsignal.c: Update includes.
1369         * modules/lock (Files, Makefile.am): Update.
1370         (Include): Change to "glthread/lock.h".
1371         * modules/tls (Files, Makefile.am): Update.
1372         (Include): Change to "glthread/tls.h".
1373         * tests/test-lock.c: Update includes.
1374         * tests/test-tls.c: Update includes.
1375         * NEWS: Mention the renamed header files.
1376
1377 2008-08-11  Jim Meyering  <meyering@redhat.com>
1378
1379         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1380
1381 2008-08-11  Eric Blake  <ebb9@byu.net>
1382
1383         test-c-stack: avoid C99-ism
1384         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1385         before statement.
1386         Reported by Alain Guibert.
1387
1388 2008-08-10  Jim Meyering  <meyering@redhat.com>
1389
1390         ensure that return value of uinttostr et al are not ignored
1391         * lib/inttostr.h (__GNUC_PREREQ): Define.
1392         (__attribute_warn_unused_result__): Define.
1393         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1394
1395 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1396
1397         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1398         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1399
1400 2008-08-07  Jim Meyering  <meyering@redhat.com>
1401
1402         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1403
1404         * modules/mkstemp (License): Relicense under LGPLv2+.
1405         * modules/tempname (License): Likewise.
1406
1407 2008-08-06  Bruno Haible  <bruno@clisp.org>
1408
1409         * lib/poll.c (poll): Further micro-optimization.
1410
1411 2008-08-06  Jim Meyering  <meyering@redhat.com>
1412
1413         inet_pton.c: use locale-independent tolower
1414         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1415         (inet_pton6): Use c_tolower rather than tolower.
1416         * modules/inet_pton (Depends-on): Add c-ctype.
1417
1418 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1419
1420         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1421         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1422
1423 2008-08-06  Jim Meyering  <meyering@redhat.com>
1424
1425         * modules/inet_pton (License): Relicense under LGPLv2+.
1426
1427 2008-08-03  Bruno Haible  <bruno@clisp.org>
1428
1429         Additional non-aborting API for lock and tls.
1430         * lib/lock.h: Include <errno.h>.
1431         (glthread_lock_init): New macro/function.
1432         (gl_lock_init): Define as wrapper around glthread_lock_init.
1433         (glthread_lock_lock): New macro/function.
1434         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1435         (glthread_lock_unlock): New macro/function.
1436         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1437         (glthread_lock_destroy): New macro/function.
1438         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1439         (glthread_rwlock_init): New macro/function.
1440         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1441         (glthread_rwlock_rdlock): New macro/function.
1442         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1443         (glthread_rwlock_wrlock): New macro/function.
1444         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1445         (glthread_rwlock_unlock): New macro/function.
1446         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1447         (glthread_rwlock_destroy): New macro/function.
1448         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1449         (glthread_recursive_lock_init): New macro/function.
1450         (gl_recursive_lock_init): Define as wrapper around
1451         glthread_recursive_lock_init.
1452         (glthread_recursive_lock_lock): New macro/function.
1453         (gl_recursive_lock_lock): Define as wrapper around
1454         glthread_recursive_lock_lock.
1455         (glthread_recursive_lock_unlock): New macro/function.
1456         (gl_recursive_lock_unlock): Define as wrapper around
1457         glthread_recursive_lock_unlock.
1458         (glthread_recursive_lock_destroy): New macro/function.
1459         (gl_recursive_lock_destroy): Define as wrapper around
1460         glthread_recursive_lock_destroy.
1461         (glthread_once): New macro/function.
1462         (gl_once): Define as wrapper around glthread_once.
1463         Update function declarations.
1464         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1465         glthread_rwlock_init. Return error code.
1466         (glthread_rwlock_rdlock_multithreaded): Renamed from
1467         glthread_rwlock_rdlock. Return error code.
1468         (glthread_rwlock_wrlock_multithreaded): Renamed from
1469         glthread_rwlock_wrlock. Return error code.
1470         (glthread_rwlock_unlock_multithreaded): Renamed from
1471         glthread_rwlock_unlock. Return error code.
1472         (glthread_rwlock_destroy_multithreaded): Renamed from
1473         glthread_rwlock_destroy. Return error code.
1474         (glthread_recursive_lock_init_multithreaded): Renamed from
1475         glthread_recursive_lock_init. Return error code.
1476         (glthread_recursive_lock_lock_multithreaded): Renamed from
1477         glthread_recursive_lock_lock. Return error code.
1478         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1479         glthread_recursive_lock_unlock. Return error code.
1480         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1481         glthread_recursive_lock_destroy. Return error code.
1482         (glthread_once_call): Make static.
1483         (glthread_once_multithreaded): Renamed from glthread_once.
1484         * lib/tls.h: Include <errno.h>.
1485         (glthread_tls_key_init): New macro/function.
1486         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1487         (glthread_tls_set): New macro/function.
1488         (gl_tls_set): Define as wrapper around glthread_tls_set.
1489         (glthread_tls_key_destroy): New macro/function.
1490         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1491         Update function declarations.
1492         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1493         glthread_tls_get.
1494         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1495
1496 2008-08-04  Eric Blake  <ebb9@byu.net>
1497
1498         gnumakefile: use space, not TAB, outside of targets
1499         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1500
1501 2008-08-02  Jim Meyering  <meyering@redhat.com>
1502
1503         getdate.y: avoid locale-dependent date parsing failure
1504         In Turkish locales, getdate would fail to recognize keywords
1505         containing a lowercase "i".  The solution is not to rely on
1506         locale-sensitive case-conversion.
1507         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1508         (lookup_word): Use c_toupper in place of toupper.
1509         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1510         Reported by Vefa Bicakci <bicave@superonline.com> in
1511         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1512         * modules/getdate (Depends-on): Add c-ctype.
1513
1514 2008-08-02  Bruno Haible  <bruno@clisp.org>
1515
1516         * gnulib-tool (func_import): When updating or creating a .gitignore
1517         file, prepend each added line with a slash, and ignore leading slashes
1518         from the existing lines.
1519         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1520
1521 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1522
1523         Portability fix for GNU make 3.79.1.
1524         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1525         versions do not understand.
1526
1527 2008-08-01  Bruno Haible  <bruno@clisp.org>
1528
1529         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1530         * tests/test-isnanf.h (zero): New variable.
1531         (main): Avoid literal -0.0f.
1532         * tests/test-isnand.h (zero): New variable.
1533         (main): Avoid literal -0.0.
1534         * tests/test-isnanl.h (zero): New variable.
1535         (main): Avoid literal -0.0L.
1536         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1537         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1538         -0.0, -0.0L.
1539         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1540         (test_signbitd): Avoid literal -0.0.
1541         (test_signbitl): Avoid literal -0.0L.
1542         * tests/test-ceilf1.c (zero): New variable.
1543         (main): Avoid literal -0.0f.
1544         * tests/test-ceill.c (zero): New variable.
1545         (main): Avoid literal -0.0L.
1546         * tests/test-floorf1.c (zero): New variable.
1547         (main): Avoid literal -0.0f.
1548         * tests/test-floorl.c (zero): New variable.
1549         (main): Avoid literal -0.0L.
1550         * tests/test-roundf1.c (zero): New variable.
1551         (main): Avoid literal -0.0f.
1552         * tests/test-round1.c (zero): New variable.
1553         (main): Avoid literal -0.0.
1554         * tests/test-roundl.c (zero): New variable.
1555         (main): Avoid literal -0.0L.
1556         * tests/test-truncf1.c (zero): New variable.
1557         (main): Avoid literal -0.0f.
1558         * tests/test-trunc1.c (zero): New variable.
1559         (main): Avoid literal -0.0.
1560         * tests/test-truncl.c (zero): New variable.
1561         (main): Avoid literal -0.0L.
1562         * tests/test-frexp.c (zero): New variable.
1563         (main): Avoid literal -0.0.
1564         * tests/test-frexpl.c (zero): New variable.
1565         (main): Avoid literal -0.0L.
1566         * tests/test-ldexpl.c (zero): New variable.
1567         (main): Avoid literal -0.0L.
1568         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1569         (zerod, zerol): New variables.
1570         (test_function): Avoid literals -0.0, -0.0L.
1571         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1572         (zerod, zerol): New variables.
1573         (test_function): Avoid literals -0.0, -0.0L.
1574         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1575         (zerod, zerol): New variables.
1576         (test_function): Avoid literals -0.0, -0.0L.
1577         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1578         (zerod, zerol): New variables.
1579         (test_function): Avoid literals -0.0, -0.0L.
1580         * tests/test-strtod.c (zero): New variable.
1581         (main): Avoid literal -0.0.
1582         Reported by Jonathan C. Patschke <jp@centtech.com>.
1583
1584 2008-07-31  Jim Meyering  <meyering@redhat.com>
1585
1586         sha256.h: correct definition of SHA224_DIGEST_SIZE
1587         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1588         Reported by Paulie Pena IV <paulie4@gmail.com>.
1589         Define as 224 / 8, rather than as a literal.
1590         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1591         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1592         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1593
1594 2008-07-31  Bruno Haible  <bruno@clisp.org>
1595
1596         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1597         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1598         Reported by Jonathan Patschke <jp@centtech.com>.
1599
1600 2008-07-31  Bruno Haible  <bruno@clisp.org>
1601
1602         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1603         Reported by Paolo Bonzini <bonzini@gnu.org>.
1604
1605 2008-07-30  Eric Blake  <ebb9@byu.net>
1606
1607         test-strtod: allow compilation without -lm
1608         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1609         Reported by Dennis Clarke <blastwave@gmail.com>.
1610
1611 2008-07-28  Jim Meyering  <meyering@redhat.com>
1612
1613         bootstrap: work also when there are no .po files in po/
1614         * build-aux/bootstrap (update_po_files): Complete the change
1615         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1616
1617 2008-07-27  Jim Meyering  <meyering@redhat.com>
1618
1619         * users.txt: Add zile.
1620
1621 2008-07-26  Ben Pfaff  <blp@gnu.org>
1622
1623         Add missing dependencies on new m4/exponent[fdl].m4 files.
1624         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1625         * modules/isnand-nolibm: Add m4/exponentd.m4.
1626         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1627         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1628         m4/isnan[fdl].m4, because the macros actually used moved.
1629         Reported by Jim Meyering.
1630
1631 2008-07-14  Ben Pfaff  <blp@gnu.org>
1632
1633         Add isinf module.
1634         * lib/isinf.c: New file.
1635         * lib/math.in.h: Define isinf macro if we have decided to replace
1636         it.
1637         * m4/isinf.m4: New file.
1638         * m4/math_h.m4: Initialize and substitute variables for isinf
1639         module.
1640         * modules/isinf: New file.
1641         * modules/isinf-tests: New file.
1642         * modules/math: Add substitutions for new module.
1643         * tests/test-isinf.c: New file.
1644         * doc/posix-functions/isinf.texi: Mention new module.
1645         * MODULES.html.sh: Mention new module.
1646
1647 2008-07-14  Ben Pfaff  <blp@gnu.org>
1648
1649         Factor out some macros for use by additional modules.
1650         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1651         exponentf.m4.
1652         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1653         exponentd.m4.
1654         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1655         file exponentl.m4.
1656         * m4/exponentf.m4: New file.
1657         * m4/exponentd.m4: New file.
1658         * m4/exponentl.m4: New file.
1659         * modules/isnanf: Use new file m4/exponentf.m4.
1660         * modules/isnand: Use new file m4/exponentd.m4.
1661         * modules/isnanl: Use new file m4/exponentl.m4.
1662
1663 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1664
1665         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1666         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1667         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1668         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1669
1670         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1671         readlink on platforms without PATH_MAX.
1672
1673 2008-07-21  Eric Blake  <ebb9@byu.net>
1674
1675         Warn, not fail, on stale version.
1676         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1677
1678         Don't allow installation with stale devel version number.
1679         * top/GNUmakefile (_is-install-target): New macro.
1680         (_curr-ver): Forbid installation with stale version number.
1681
1682 2008-07-20  Bruno Haible  <bruno@clisp.org>
1683
1684         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1685         TESTS_ENVIRONMENT.
1686         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1687
1688 2008-07-20  Bruno Haible  <bruno@clisp.org>
1689
1690         * lib/c-stack.h (c_stack_action): Add documentation.
1691         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1692
1693 2008-07-20  Bruno Haible  <bruno@clisp.org>
1694
1695         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1696         * modules/readlink (License): Likewise.
1697
1698 2008-07-17  Eric Blake  <ebb9@byu.net>
1699
1700         * modules/c-stack (Link): Fix typo.
1701
1702         Make c-stack use libsigsegv, when available.
1703         * modules/c-stack (Depends-on): Add libsigsegv.
1704         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1705         needed.
1706         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1707         (segv_handler, overflow_handler, c_stack_action)
1708         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1709         implementation when libsigsegv is available, but only when using
1710         the library is necessary.
1711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1712         comment, explaining why XSI check fails on Linux.
1713         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1714         * tests/test-c-stack2.sh: Tweak skip message.
1715         * NEWS: Document new link-time requirements.
1716
1717 2008-07-16  Eric Blake  <ebb9@byu.net>
1718
1719         c-stack: Expose false positives when not using libsigsegv.
1720         * modules/c-stack-tests (Files): Expand test.
1721         * tests/test-c-stack.c (main): Add means to conditionally trigger
1722         non-overflow SIGSEGV.
1723         * tests/test-c-stack2.sh: New file.
1724
1725 2008-07-14  Bruno Haible  <bruno@clisp.org>
1726
1727         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1728         Reported by Eric Blake.
1729
1730 2008-07-14  Sam Steingold  <sds@gnu.org>
1731             Bruno Haible  <bruno@clisp.org>
1732
1733         New module libsigsegv.
1734         * modules/libsigsegv: New file.
1735         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1736         modifications.
1737         * MODULES.html.sh (Signal handling): New section.
1738
1739 2008-07-14  Bruno Haible  <bruno@clisp.org>
1740
1741         * modules/unictype/ctype-* (Description): Add the word "function".
1742         Improves the resulting doc in MODULES.html.
1743
1744 2008-07-12  Ben Pfaff  <blp@gnu.org>
1745
1746         Add longlong module.
1747         * modules/longlong: New file.
1748
1749 2008-07-12  Bruno Haible  <bruno@clisp.org>
1750
1751         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1752         to empty.
1753
1754 2008-07-10  Ben Pfaff  <blp@gnu.org>
1755
1756         Add isnan module.
1757         * doc/posix-functions/isnan.texi: Mention new module.
1758         * lib/math.in.h: Define isnan macro if we have decided to replace
1759         it.
1760         * m4/isnan.m4: New file.
1761         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1762         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1763         also.
1764         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1765         redundancy.
1766         * m4/math_h.m4: Initialize and substitute variables for isnan
1767         module.
1768         * modules/isnan: New file.
1769         * modules/isnan-tests: New file.
1770         * modules/math: Add substitutions for new module.
1771         * tests/test-isnan.c: New file.
1772         * MODULES.html.sh: Mention new module.
1773
1774 2008-07-10  Ben Pfaff  <blp@gnu.org>
1775
1776         Add isnanf module.
1777         * lib/isnanf.m4: New file.
1778         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1779         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1780         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1781         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1782         * modules/isnanf: New file.
1783         * modules/isnanf-tests: New file.
1784         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1785         files.
1786         * tests/test-isnanf-nolibm.c: factored most of its contents into
1787         new file tests/test-isnanf.h.
1788         * tests/test-isnanf.h: New file.
1789         * tests/test-isnanf.c: New file.
1790         * MODULES.html.sh: Mention new module.
1791         * doc/glibc-functions/isnanf.texi: Mention new module.
1792
1793 2008-07-10  Ben Pfaff  <blp@gnu.org>
1794
1795         Add isnand module.
1796         * lib/isnand.h: New file.
1797         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1798         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1799         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1800         functionality also.
1801         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1802         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1803         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1804         * modules/isnand: New file.
1805         * modules/isnand-tests: New file.
1806         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1807         files.
1808         * tests/test-isnand-nolibm.c: factored most of its contents into
1809         new file tests/test-isnand.h.
1810         * tests/test-isnand.h: New file.
1811         * tests/test-isnand.c: New file.
1812         * MODULES.html.sh: Mention new module.
1813
1814 2008-07-10  Ben Pfaff  <blp@gnu.org>
1815
1816         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1817         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1818         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1819         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1820         * modules/isnanf-nolibm: Update references to renamed files.
1821         * modules/isnand-nolibm: Likewise.
1822         * modules/isnanf-nolibm-tests: Likewise.
1823         * modules/isnand-nolibm-tests: Likewise.
1824         * lib/frexp.c: Likewise.
1825         * lib/isfinite.c: Likewise.
1826         * lib/signbitd.c: Likewise.
1827         * lib/signbitf.c: Likewise.
1828         * lib/vasnprintf.c: Likewise.
1829         * tests/test-ceilf1.c: Likewise.
1830         * tests/test-ceilf2.c: Likewise.
1831         * tests/test-floorf1.c: Likewise.
1832         * tests/test-floorf2.c: Likewise.
1833         * tests/test-frexp.c: Likewise.
1834         * tests/test-round1.c: Likewise.
1835         * tests/test-round2.c: Likewise.
1836         * tests/test-roundf1.c: Likewise.
1837         * tests/test-strtod.c: Likewise.
1838         * tests/test-trunc1.c: Likewise.
1839         * tests/test-trunc2.c: Likewise.
1840         * tests/test-truncf1.c: Likewise.
1841         * tests/test-truncf2.c: Likewise.
1842         * NEWS: Mention the renamed header files.
1843
1844 2008-07-11  Jim Meyering  <meyering@redhat.com>
1845
1846         vc-list-files: make the last-resort awk code more portable
1847         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1848         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1849         does not support it.
1850
1851 2008-07-10  Eric Blake  <ebb9@byu.net>
1852
1853         Work with tar's bootstrap.
1854         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1855         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1856         an m4 comment.
1857
1858 2008-07-09  Jim Meyering  <meyering@redhat.com>
1859
1860         posix-shell.m4: fix typo that made this test malfunction
1861         * m4/posix-shell.m4: Remove capitalization in variable name.
1862
1863 2008-07-08  Bruno Haible  <bruno@clisp.org>
1864
1865         * m4/onceonly.m4: Update comments.
1866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1867
1868 2008-07-04  Jim Meyering  <meyering@redhat.com>
1869
1870         * users.txt: Add vc-dwim.
1871         (bison, coreutils): Use the gitweb URL.
1872
1873 2008-07-03  Jim Meyering  <meyering@redhat.com>
1874
1875         * users.txt: Add libffcall.  From Sam Steingold.
1876
1877 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
1878
1879         getdate.y: do not ignore TZ with relative day, month or year offset
1880         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1881         relative-date-handling, since otherwise, the latter would clobber the
1882         sole output (an updated Start value) of the tz-handling block.
1883         * tests/test-getdate.c: Tests for the fix
1884
1885 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1886
1887         Recognize 'foo_LIBRARIES += libgnu.a'.
1888         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1889         makefile snippet has already specified an installation location,
1890         also using '+='.
1891
1892 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
1893
1894         getdate.y: factor out common actions
1895         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1896         Use them in place of open-coded actions.
1897
1898 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1899
1900         Add self-test for getdate module.
1901         * modules/getdate-tests: New file.
1902         * tests/test-getdate.c: New file.
1903
1904 2008-06-29  Bruno Haible  <bruno@clisp.org>
1905
1906         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1907         .gitignore.
1908         Reported by Sylvain Beucler <beuc@beuc.net>.
1909
1910 2008-06-29  Bruno Haible  <bruno@clisp.org>
1911
1912         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1913         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1914
1915 2008-06-29  Bruno Haible  <bruno@clisp.org>
1916
1917         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1918         EXTRA_DIST.
1919         Reported by Sylvain Beucler <beuc@beuc.net>.
1920
1921 2008-06-26  Jim Meyering  <meyering@redhat.com>
1922
1923         make several modules depend on the "open" module
1924         This provides slightly increased consistency when opening-for-write
1925         the name of a non-directory spelled with a trailing slash.
1926         * modules/chdir-safer: Likewise.
1927         * modules/chown: Likewise.
1928         * modules/clean-temp: Likewise.
1929         * modules/copy-file: Likewise.
1930         * modules/fchdir: Likewise.
1931         * modules/fcntl-safer: Likewise.
1932         * modules/pipe: Likewise.
1933         * modules/utime: Likewise.
1934         Prompted by Eric Blake and Bruno Haible.
1935
1936 2008-06-24  Andreas Schwab  <schwab@suse.de>
1937
1938         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1939         literals can be used as initializers for global variables.
1940
1941 2008-06-23  Eric Blake  <ebb9@byu.net>
1942
1943         Make gnulib-cache.m4 easier to diff.
1944         * gnulib-tool (func_import): Allow newlines when reading cached
1945         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1946
1947 2008-06-23  Bruno Haible  <bruno@clisp.org>
1948
1949         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1950         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1951         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1952         m4/signalblocking.m4.
1953         (gl_PREREQ_SIGACTION): Don't invoke it.
1954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1955         gl_PREREQ_SIG_HANDLER_H.
1956         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1957         Don't check for sigaction here.
1958
1959 2008-06-23  Bruno Haible  <bruno@clisp.org>
1960
1961         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1962         (install_handlers): Don't set the SA_RESETHAND flag.
1963
1964 2008-06-23  Bruno Haible  <bruno@clisp.org>
1965
1966         * m4/sigaction.m4: Comment fixes.
1967         * lib/signal.in.h: Likewise.
1968
1969 2008-06-23  Eric Blake  <ebb9@byu.net>
1970
1971         Fix typo.
1972         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1973
1974         Avoid SA_ namespace.
1975         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1976         Reported by Ralf Wildenhues.
1977
1978         Avoid test failure due to SA_RESTORER.
1979         * tests/test-sigaction.c (SA_MASK): New macro.
1980         (main): Avoid failing due to extension flags being set.
1981         Reported by Jim Meyering.
1982
1983         Revert use of sig-handler.h in sigprocmask.c.
1984         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1985         it requires the existence of struct sigaction.
1986         * lib/sigprocmask.c (handler_t): Restore typedef.
1987         (rpl_signal, old_handlers): Use local type.
1988
1989 2008-06-22  Bruno Haible  <bruno@clisp.org>
1990
1991         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1992         conditionally.
1993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1994
1995 2008-06-22  Bruno Haible  <bruno@clisp.org>
1996
1997         * doc/posix-functions/siginterrupt.texi: Move note.
1998
1999         * lib/signal.in.h (SA_RESTART): New macro.
2000         * lib/sigaction.c: Update comment.
2001
2002         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
2003
2004         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
2005         (gl_PREREQ_SIGPROCMASK): Invoke it.
2006         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
2007
2008         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
2009
2010         * lib/sigprocmask.c: Update a comment.
2011
2012 2008-06-21  Eric Blake  <ebb9@byu.net>
2013
2014         Use sigaction module rather than signal().
2015         * modules/c-stack (Depends-on): Add sigaction.
2016         * modules/fatal-signal (Depends-on): Likewise.
2017         * modules/nanosleep (Depends-on): Likewise.
2018         * modules/sigprocmask (Files): Add sig-handler.h.
2019         * modules/sigaction (Files): Likewise.
2020         * lib/sig-handler.h (get_handler): New file, suggested by Paul
2021         Eggert.
2022         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
2023         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
2024         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2025         (init_fatal_signals): Likewise.
2026         * lib/nanosleep.c (rpl_nanosleep): Likewise.
2027         (siginterrupt): Delete fallback.
2028         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
2029         instead.
2030         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
2031         siginterrupt.
2032
2033         New module sigaction, for mingw.
2034         * modules/sigaction: New module...
2035         * modules/sigaction-tests: ...and its test.
2036         * m4/sigaction.m4: New file.
2037         * lib/sigaction.c: Likewise.
2038         * tests/test-sigaction.c: Likewise.
2039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
2040         * modules/signal (Makefile.am): Likewise.
2041         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
2042         needed.
2043         * doc/posix-headers/signal.texi (signal.h): Mention provided
2044         types.
2045         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
2046         that sigaction is preferable.
2047         * doc/posix-functions/sigaction.texi (sigaction): Mention new
2048         module.
2049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2050         sigaction.
2051
2052         Improve robustness of sigprocmask by overriding signal.
2053         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
2054         is in use.
2055         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
2056         (SIGKILL, SIGSTOP): Provide fallbacks.
2057         (rpl_signal): Implement.
2058         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
2059         signal can be called inside handlers.
2060
2061         Fix nanosleep module on mingw.
2062         * modules/nanosleep (Depends-on): Add sys_select.
2063         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
2064
2065         Fix licensing of sigprocmask.
2066         * modules/raise (License): Relicense as LGPL.
2067
2068 2008-06-21  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/propername.c (proper_name_utf8): Don't use the transliterated
2071         result if it contains question marks.
2072         Reported by Michael Geng <linux@michaelgeng.de>.
2073
2074 2008-06-19  Bruno Haible  <bruno@clisp.org>
2075
2076         Fix CVS-ism.
2077         * doc/gnulib.texi: Include updated-stamp.texi.
2078         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
2079         (updated-stamp.texi): New rule.
2080         (gnulib.info): Depend on it.
2081         * doc/.gitignore: Add updated-stamp.texi.
2082         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
2083
2084 2008-06-19  Bruno Haible  <bruno@clisp.org>
2085
2086         * doc/Makefile (gnulib.info): Update and simplify dependencies.
2087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2088
2089 2008-06-19  Eric Blake  <ebb9@byu.net>
2090
2091         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
2092         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
2093         Reported by Stepan Kasal.
2094
2095 2008-06-18  Bruno Haible  <bruno@clisp.org>
2096
2097         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2098         Reported by Eric Blake.
2099
2100 2008-06-18  Eric Blake  <ebb9@byu.net>
2101
2102         Work around cygwin 1.5.25 strsignal bug.
2103         * tests/test-strsignal.c: Allow for const char *.
2104         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
2105
2106 2008-06-18  Simon Josefsson  <simon@josefsson.org>
2107
2108         * users.txt: Update URL to article and add author/date
2109         information.
2110
2111 2008-06-17  Bruno Haible  <bruno@clisp.org>
2112
2113         New macro gl_DISABLE_THREADS.
2114         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
2115         if the user did not pass --enable-threads or --disable-threads option.
2116         (gl_DISABLE_THREADS): New macro.
2117         Reported by Eric Blake <ebb9@byu.net>.
2118
2119 2008-06-17  Bruno Haible  <bruno@clisp.org>
2120
2121         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
2122         when the macro ignores it.
2123         Based on a patch by Eric Blake <ebb9@byu.net>.
2124
2125 2008-06-17  Bruno Haible  <bruno@clisp.org>
2126
2127         * modules/tls (License): Change to LGPLv2+.
2128         Reported by Eric Blake.
2129
2130 2008-06-17  Eric Blake  <ebb9@byu.net>
2131
2132         Simplify c-stack prerequisites.
2133         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
2134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
2135         no longer requires <ucontext.h> to exist.  Optimize setrlimit
2136         check.
2137         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
2138         <sys/resource.h>.
2139
2140         Move c-stack test into testsuite.
2141         * modules/c-stack-tests: New file.
2142         * lib/c-stack.c [DEBUG]: Move test program...
2143         * tests/test-c-stack.c: ...into this new file.  Skip rather than
2144         fail test if sigaltstack is lacking.
2145         * tests/test-c-stack.sh: New driver file.
2146
2147 2008-06-16  Eric Blake  <ebb9@byu.net>
2148
2149         Use raise module consistently.
2150         * modules/fatal-signal (Depends-on): Add raise.
2151         * modules/sigprocmask (Depends-on): Likewise.
2152         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
2153         * lib/sigprocmask.c (sigprocmask): Likewise.
2154         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2155         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2156
2157         Fix compliance bug in sigpending.
2158         * lib/sigprocmask.c (sigpending): Return pending array via
2159         parameter, not return value.
2160
2161 2008-06-14  Eric Blake  <ebb9@byu.net>
2162
2163         Improve obstack-printf test code.
2164         * tests/test-obstack-printf.c (test_function): Fix comment, and
2165         simplify usage of obstack_* in macros.  Add a test for coverage.
2166         Reported by Bruno Haible.
2167
2168 2008-06-14  Bruno Haible  <bruno@clisp.org>
2169
2170         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2171         array size as a constant, not as a const variable.
2172         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2173         AC_USE_SYSTEM_EXTENSIONS.
2174         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2175         Test whether the obstack_printf function actually exists.
2176         * modules/obstack-printf (Depends-on): Add extensions.
2177         (Include): Remove obstack.h.
2178         * modules/obstack-printf-posix (Depends-on): Add extensions.
2179         (Include): Remove obstack.h.
2180
2181 2008-06-13  Eric Blake  <ebb9@byu.net>
2182
2183         Add obstack-printf and obstack-printf-posix modules.
2184         * modules/obstack-printf: New file.
2185         * modules/obstack-printf-posix: Likewise.
2186         * MODULES.html.sh (Misc): Mention them.
2187         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2188         Likewise.
2189         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2190         Likewise.
2191         * modules/stdio (Makefile.am): Accomodate new modules.
2192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2193         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2194         Declare.
2195         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2196         functions.
2197         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2198         (gl_REPLACE_OBSTACK_PRINTF): New macros
2199         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2200         * tests/test-obstack-printf.c: New file.
2201         * modules/obstack-printf-tests: Likewise.
2202         * modules/obstack-printf-posix-tests: Likewise.
2203
2204 2008-06-11  Bruno Haible  <bruno@clisp.org>
2205
2206         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2207         * lib/open.c: Include errno.h.
2208         (open): Fail when attempting to write to a file that has a trailing
2209         slash.
2210         * tests/test-open.c (main): Test against trailing slash bug.
2211         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2212
2213 2008-06-10  Bruno Haible  <bruno@clisp.org>
2214
2215         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2216         for $? to work inside the trap command, with various /bin/sh-s.
2217         * tests/test-vc-list-files-cvs.sh: Likewise.
2218
2219 2008-06-10  Bruno Haible  <bruno@clisp.org>
2220
2221         * lib/acl-internal.h: Don't include gettext.h here.
2222         * lib/set-mode-acl.c: Include gettext.h here.
2223         * lib/copy-acl.c: Likewise.
2224
2225 2008-06-10  Bruno Haible  <bruno@clisp.org>
2226
2227         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2228         * lib/wait-process.c (wait_subprocess): Likewise.
2229         * lib/execute.h (execute): Add termsigp argument.
2230         * lib/execute.c (execute): Likewise.
2231         * lib/csharpcomp.c (compile_csharp_using_pnet,
2232         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2233         * lib/csharpexec.c (execute_csharp_using_pnet,
2234         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2235         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2236         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2237         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2238         is_jikes_present): Update.
2239         * lib/javaexec.c (execute_java_class): Update.
2240         * lib/javaversion.c (execute_and_read_line): Update.
2241         * NEWS: Document the changes.
2242         Reported by Eric Blake.
2243
2244 2008-06-10  Eric Blake  <ebb9@byu.net>
2245
2246         Add missing include.
2247         * tests/test-strstr.c (includes): Add <signal.h>.
2248         * tests/test-strcasestr.c (includes): Likewise.
2249         * tests/test-memmem.c (includes): Likewise.
2250
2251 2008-06-10  Bruno Haible  <bruno@clisp.org>
2252
2253         * lib/wait-process.c (wait_subprocess): Add an assertion.
2254
2255 2008-06-10  Bruno Haible  <bruno@clisp.org>
2256
2257         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2258
2259 2008-06-10  Bruno Haible  <bruno@clisp.org>
2260
2261         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2262         using alarm().
2263         * tests/test-strcasestr.c (main): Likewise.
2264         * tests/test-strstr.c (main): Likewise.
2265
2266 2008-06-09  Bruno Haible  <bruno@clisp.org>
2267
2268         Work around the Solaris 10 ACE ACLs ABI change.
2269         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2270         declare if ACL_NO_TRIVIAL is present.
2271         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2272         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2273         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2274         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2275         define if ACL_NO_TRIVIAL is present.
2276         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2277         and use the current ABI.
2278         (file_has_acl): Use same #if condition as elsewhere.
2279         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2280         in use, and use the current ABI.
2281         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2282         Reported by Jim Meyering.
2283
2284 2008-06-09  Eric Blake  <ebb9@byu.net>
2285
2286         Work around environments that (stupidly) ignore SIGALRM.
2287         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2288         before using alarm().
2289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2291         Reported by Ian Beckwith <ianb@erislabs.net>.
2292
2293         Produce autobuild blurb earlier in log.
2294         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2295
2296 2008-06-09  Jim Meyering  <meyering@redhat.com>
2297         and OndÅ™ej Vašík  <ovasik@redhat.com>
2298
2299         utimens.c: correct kernel bug work-around
2300         OndÅ™ej Vašík found that the invalid return value of 280 indicates
2301         failure, not success, and the kernel bug we're trying to work
2302         around affects not just the utimensat call, but also the fallback
2303         futimens call.
2304         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2305         not success.
2306         [HAVE_FUTIMENS]: Use the same work-around, here.
2307
2308 2008-06-09  Jim Meyering  <meyering@redhat.com>
2309
2310         add more guards around definition of ACE_-related code
2311         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2312         ALLOW and ACE_OWNER are also defined.
2313
2314 2008-06-08  Bruno Haible  <bruno@clisp.org>
2315
2316         * lib/acl-internal.h: Add me as co-author.
2317         * lib/file-has-acl.c: Likewise.
2318         * lib/set-mode-acl.c: Likewise.
2319         * lib/copy-acl.c: Likewise.
2320
2321 2008-06-08  Bruno Haible  <bruno@clisp.org>
2322
2323         Add support for AIX ACLs.
2324         * lib/acl-internal.h (acl_nontrivial): New declaration.
2325         * lib/file-has-acl.c (acl_nontrivial): New function.
2326         (file_has_acl): Add implementation using AIX 4 ACL API.
2327         * lib/set-mode-acl.c (qset_acl): Likewise.
2328         * lib/copy-acl.c (qcopy_acl): Likewise.
2329
2330 2008-06-08  Bruno Haible  <bruno@clisp.org>
2331
2332         Add support for HP-UX ACLs.
2333         * lib/acl-internal.h (acl_nontrivial): New declaration.
2334         * lib/file-has-acl.c (acl_nontrivial): New function.
2335         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2336         * lib/set-mode-acl.c (qset_acl): Likewise.
2337         * lib/copy-acl.c (qcopy_acl): Likewise.
2338
2339 2008-06-08  Bruno Haible  <bruno@clisp.org>
2340
2341         Add support for Cygwin ACLs.
2342         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2343         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2344         the chmod_or_fchmod call.
2345         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2346
2347 2008-06-08  Bruno Haible  <bruno@clisp.org>
2348
2349         Fix bug with setuid modes in Solaris 10+ code.
2350         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2351         succeeded, when the mode contains some special bits.
2352
2353 2008-06-08  Bruno Haible  <bruno@clisp.org>
2354
2355         Add support for Solaris 7..10 ACLs.
2356         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2357         declarations.
2358         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2359         functions.
2360         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2361         * lib/set-mode-acl.c (qset_acl): Likewise.
2362         * lib/copy-acl.c (qcopy_acl): Likewise.
2363
2364 2008-06-08  Bruno Haible  <bruno@clisp.org>
2365
2366         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2367         declaration.
2368         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2369         (acl_access_nontrivial): Remove MacOS X case.
2370         (file_has_acl): Use acl_extended_nontrivial.
2371         * lib/copy-acl.c (qcopy_acl): Likewise.
2372
2373 2008-06-08  Bruno Haible  <bruno@clisp.org>
2374
2375         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2376
2377 2008-06-08  Jim Meyering  <meyering@redhat.com>
2378
2379         * modules/acl (Maintainer): Add Bruno Haible.
2380
2381 2008-06-07  Bruno Haible  <bruno@clisp.org>
2382
2383         Improve support for Tru64 ACLs.
2384         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2385         ACL on OSF/1.
2386
2387 2008-06-07  Bruno Haible  <bruno@clisp.org>
2388
2389         Add support for MacOS X ACLs.
2390         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2391         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2392         * lib/set-mode-acl.c (qset_acl): Likewise.
2393         * lib/copy-acl.c (qcopy_acl): Likewise.
2394
2395 2008-06-07  Bruno Haible  <bruno@clisp.org>
2396
2397         Fix memory leak introduced on 2008-05-22.
2398         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2399         use.
2400
2401 2008-06-07  Bruno Haible  <bruno@clisp.org>
2402
2403         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2404         to construct an empty ACL.
2405
2406 2008-06-07  Bruno Haible  <bruno@clisp.org>
2407
2408         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2409         precisely.
2410         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2411
2412 2008-06-07  Bruno Haible  <bruno@clisp.org>
2413
2414         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2415         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2416
2417 2008-06-07  Bruno Haible  <bruno@clisp.org>
2418
2419         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2420         regardless of POSIX.
2421         * doc/posix-functions/_longjmp.texi: Likewise.
2422         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2423         SystemV platform in this case.
2424
2425 2008-06-06  Eric Blake  <ebb9@byu.net>
2426
2427         Document abort() bugs.
2428         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2429
2430         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2431         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2432         sigsetjmp.
2433         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2434         siglongjmp, but only as a macro.
2435         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2436         is obsolete.
2437         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2438
2439         Tweak documentation to cover cygwin argz bugs.
2440         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2441         argz bug fix; no code change needed since no cygwin releases
2442         occurred between the last fix and the bug being tested.
2443         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2444         module and recently fixed cygwin bugs.
2445         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2446         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2447         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2448         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2449         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2450         Likewise.
2451         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2452         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2453         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2454         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2455         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2456         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2457         Likewise.
2458
2459         Avoid gcc warning on cygwin.
2460         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2461         !ACL_NO_TRIVIAL]: Avoid unused variable.
2462
2463 2008-06-05  Eric Blake  <ebb9@byu.net>
2464
2465         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2466         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2467         git-version-gen fails to come up with a version.
2468         Reported by Simon Josefsson.
2469
2470 2008-06-05  Jim Meyering  <meyering@redhat.com>
2471             Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         utimens.c: work around a probable Linux kernel bug
2474         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2475         appears to be a kernel bug that causes utimensat to return 280
2476         instead of 0, indicating success.
2477
2478 2008-06-04  Bruno Haible  <bruno@clisp.org>
2479
2480         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2481         2008-06-01 commit.
2482
2483 2008-06-04  Bruno Haible  <bruno@clisp.org>
2484
2485         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2486         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2487         (file_has_acl): Use it. Save errno afterwards.
2488         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2489
2490 2008-06-03  Bruno Haible  <bruno@clisp.org>
2491
2492         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2493         draft code. Simplify #ifs.
2494         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2495         Put Solaris code after POSIX-draft code. Fix comments regarding
2496         Solaris 10, HP-UX. Mention Cygwin.
2497         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2498
2499 2008-06-03  Eric Blake  <ebb9@byu.net>
2500
2501         Provide fallback for older kernels.
2502         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2503         Provide runtime fallback if kernel lacks support.
2504         Reported by Mike Frysinger.
2505
2506 2008-06-02  Bruno Haible  <bruno@clisp.org>
2507
2508         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2509         it exists.
2510
2511 2008-06-02  Bruno Haible  <bruno@clisp.org>
2512
2513         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2514         * lib/copy-acl.c (qcopy_acl): Update comment.
2515
2516 2008-06-02  Bruno Haible  <bruno@clisp.org>
2517
2518         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2519         like ACL APIs.
2520
2521 2008-06-02  Bruno Haible  <bruno@clisp.org>
2522
2523         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2524         * tests/test-set-mode-acl.sh: Likewise.
2525         * tests/test-copy-acl.sh: Likewise.
2526         * tests/test-copy-file.sh: Likewise.
2527
2528 2008-06-02  Bruno Haible  <bruno@clisp.org>
2529
2530         * tests/test-file-has-acl.sh: Remove unused code.
2531
2532 2008-06-01  Bruno Haible  <bruno@clisp.org>
2533
2534         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2535         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2536         messages.
2537         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2538
2539 2008-06-01  Bruno Haible  <bruno@clisp.org>
2540
2541         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2542         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2543         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2544         APIs.
2545         * modules/acl-tests (configure.ac): Remove tests now contained in
2546         m4/acl.m4.
2547
2548 2008-06-02  Jim Meyering  <meyering@redhat.com>
2549
2550         announce-gen: use a better key-server host name
2551         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2552         it may be more consistently reliable.  Suggested by Werner Koch
2553         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2554
2555 2008-06-01  Bruno Haible  <bruno@clisp.org>
2556
2557         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2558         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2559
2560 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2561
2562         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2563
2564 2008-06-01  Bruno Haible  <bruno@clisp.org>
2565
2566         New ACL tests.
2567         * tests/test-file-has-acl.sh: New file.
2568         * tests/test-file-has-acl.c: New file.
2569         * tests/test-set-mode-acl.sh: New file.
2570         * tests/test-set-mode-acl.c: New file.
2571         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2572         * tests/test-copy-acl.c: New file.
2573         * modules/acl-tests: New file, based on modules/copy-file-tests.
2574         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2575         (Depends-on): Add acl-tests.
2576         (configure.ac): Remove checks.
2577         (Makefile.am): Don't create test-sameacls program here any more.
2578
2579 2008-06-01  Bruno Haible  <bruno@clisp.org>
2580
2581         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2582         * tests/test-sameacls.c: Include progname.h.
2583         (main): Invoke set_program_name. Portability fixes for MacOS X,
2584         Solaris, HP-UX.
2585
2586 2008-06-01  Bruno Haible  <bruno@clisp.org>
2587
2588         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2589         function.
2590         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2591
2592 2008-06-01  Bruno Haible  <bruno@clisp.org>
2593
2594         * modules/rpmatch (Depends-on): Add strdup.
2595
2596 2008-06-01  Bruno Haible  <bruno@clisp.org>
2597
2598         * lib/pipe.c: Include unistd-safer.h.
2599         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2600         * modules/pipe (Depends-on): Add unistd-safer.
2601
2602 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2603
2604         * modules/autobuild (configure.ac): Call AB_INIT.
2605
2606 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2607
2608         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2609         Suggested by Bruno Haible <bruno@clisp.org>.
2610
2611 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2612
2613         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2614         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2615         <bruno@clisp.org>.
2616
2617 2008-05-29  Eric Blake  <ebb9@byu.net>
2618
2619         Prefer new POSIX 200x interfaces over futimesat.
2620         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2621         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2622         when available.
2623         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2624
2625 2008-05-28  Bruno Haible  <bruno@clisp.org>
2626
2627         * modules/stpcpy (License): Change to LGPLv2+.
2628         Requested by David Lutterkort <dlutter@redhat.com>.
2629
2630 2008-05-27  Bruno Haible  <bruno@clisp.org>
2631
2632         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2633         current mingw.
2634         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2635
2636 2008-05-27  Bruno Haible  <bruno@clisp.org>
2637
2638         * modules/iconv_open (Link): New section, from module 'iconv'.
2639         * modules/striconv (Link): Likewise.
2640         * modules/striconveh (Link): Likewise.
2641         * modules/xstriconv (Link): Likewise.
2642         * modules/unicodeio (Link): Likewise.
2643         * modules/propername (Link): Likewise.
2644         Reported by Jim Meyering.
2645
2646 2008-05-26  Jim Meyering  <meyering@redhat.com>
2647
2648         sha256: do not artificially restrict buffer length to be < 2^32
2649         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2650         uint32_t to size_t.
2651         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2652         to match.
2653
2654         avoid unaligned access errors, e.g., on sparc
2655         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2656         direct access through a possibly-unaligned uint64* pointer.
2657         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2658         direct access through a possibly-unaligned uint32* pointer.
2659         Prompted by this patch from Tom "spot" Callaway:
2660         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2661
2662         sha512.c: fix typo in comment
2663         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2664
2665 2008-05-25  Bruno Haible  <bruno@clisp.org>
2666
2667         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2668         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2669         (Makefile.am): Update lib_SOURCES.
2670
2671 2008-05-25  Bruno Haible  <bruno@clisp.org>
2672
2673         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2674
2675 2008-05-25  Jim Meyering  <meyering@redhat.com>
2676
2677         useless-if-before-free: freed expr may have white-space differences
2678         * build-aux/useless-if-before-free: Recognize cases in which the
2679         freed expression differs from the tested one in embedded white
2680         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2681         $1 was used, so we can't make any regexp shy.  Improved tests now
2682         detect this.
2683
2684         useless-if-before-free: accept white space in the expression.
2685         * build-aux/useless-if-before-free: For now, any white space
2686         in the expression must be identical in the free argument.
2687
2688         useless-if-before-free: efficiency tweak
2689         * build-aux/useless-if-before-free: Make the expression-matching
2690         regexp "shy".
2691         Make the *outer* regexp shy, not the expr-matching one.
2692
2693         update code-in-comment to accept cast of free arg
2694         * build-aux/useless-if-before-free: Update regexp.
2695
2696 2008-05-25  Bruno Haible  <bruno@clisp.org>
2697
2698         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2699         * modules/copy-file-tests (Files, Makefile.am): Update.
2700         * tests/test-copy-file.c (func_test_copy): Update.
2701
2702 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2703
2704         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2705
2706 2008-05-23  Bruno Haible  <bruno@clisp.org>
2707
2708         Improve support for ACLs on OSF/1.
2709         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2710         Remove fallback for unknown flavors of ACLs.
2711
2712 2008-05-22  Bruno Haible  <bruno@clisp.org>
2713
2714         Add support for ACLs on OSF/1.
2715         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2716         replacements.
2717         (acl_free_text): New macro fallback.
2718         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2719         acl_free.
2720         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2721         acl_free_text function. Require AC_C_INLINE.
2722
2723 2008-05-22  Bruno Haible  <bruno@clisp.org>
2724
2725         Make copy_acl work on MacOS X 10.5.
2726         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2727         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2728         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2729         If MODE_INSIDE_ACL, don't assume that every system has the same text
2730         representation for ACLs as FreeBSD.
2731         * lib/copy-acl.c (copy_acl): Add support for platforms with
2732         !MODE_INSIDE_ACL.
2733         * lib/file-has-acl.c (file_has_acl): Likewise.
2734         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2735         FreeBSD, MacOS X, or IRIX, respectively.
2736
2737 2008-05-22  Bruno Haible  <bruno@clisp.org>
2738
2739         * lib/acl.h: Don't include <sys/acl.h>.
2740         (GETACLCNT): Move fallback to lib/acl-internal.h.
2741         * lib/acl-internal.h: Include <sys/acl.h> here.
2742         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2743
2744 2008-05-22  Bruno Haible  <bruno@clisp.org>
2745
2746         Split off copy_acl function to separate file.
2747         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2748         * lib/acl.c (copy_acl): Moved function to separate file.
2749         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2750         * modules/acl (Files): Add lib/copy-acl.c.
2751         (Makefiles.am): Augment lib_SOURCES.
2752
2753 2008-05-22  Bruno Haible  <bruno@clisp.org>
2754
2755         * modules/copy-file-tests: New file.
2756         * tests/test-copy-file.sh: New file.
2757         * tests/test-copy-file.c: New file.
2758         * tests/test-copy-file-sameacls.c: New file.
2759
2760 2008-05-22  Eric Blake  <ebb9@byu.net>
2761
2762         Avoid gcc warning.
2763         * tests/test-memcmp.c (main): Pass NULL indirectly.
2764
2765 2008-05-21  Bruno Haible  <bruno@clisp.org>
2766
2767         Add reference doc about ACLs.
2768         * doc/acl-resources.txt: New file.
2769         * doc/acl-cygwin.txt: New file.
2770
2771 2008-05-21  Bruno Haible  <bruno@clisp.org>
2772
2773         Avoid one more warning from gcc.
2774         * lib/vasnprintf.c (IF_LINT): Update comments.
2775         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2776
2777 2008-05-21  Jim Meyering  <meyering@redhat.com>
2778
2779         avoid a warning from gcc
2780         * lib/vasnprintf.c (IF_LINT): Define.
2781         (scale10_round_decimal_long_double):
2782         Use it to avoid a "may be used uninitialized" warning.
2783         (scale10_round_decimal_double): Likewise.
2784
2785 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2786
2787         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2788         declared.
2789
2790 2008-05-20  Bruno Haible  <bruno@clisp.org>
2791
2792         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2793         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2794
2795 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2796
2797         * modules/memcmp-tests: New file.
2798         * tests/test-memcmp.c: New file.
2799
2800 2008-05-19  Bruno Haible  <bruno@clisp.org>
2801
2802         * modules/propername (Notice, configure.ac): Put quoted "..." into
2803         --keyword option.
2804         * lib/propername.h: Update comments accordingly.
2805         Reported by Eric Blake.
2806
2807 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2808
2809         * modules/getpass-gnu (Depends-on): Add fseeko.
2810
2811 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2812
2813         * modules/base64-tests: New file.
2814
2815 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2816
2817         * lib/base64.c (base64_decode_ctx): If a decode context structure
2818         was passed in use it to ignore newlines.  If a context structure
2819         was _not_ passed in, continue to treat newlines as garbage (this
2820         is the historical behavior).  Formerly base64_decode.
2821         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2822         takes a decode context structure.
2823         * lib/base64.h (base64_decode): Macro for four-argument calls.
2824         (base64_decode_alloc): Likewise.
2825         * lib/base64.c (base64_decode_ctx): If a decode context structure
2826         was passed in use it to ignore newlines.  If a context structure
2827         was _not_ passed in, continue to treat newlines as garbage (this
2828         is the historical behavior).  Formerly base64_decode.
2829         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2830         takes a decode context structure.
2831         * lib/base64.h (base64_decode): Macro for four-argument calls.
2832         (base64_decode_alloc): Likewise.
2833
2834 2008-05-19  Jim Meyering  <meyering@redhat.com>
2835
2836         avoid a warning from gcc
2837         * lib/trim.c (IF_LINT): Define.
2838         (trim2): Use it to avoid a "may be used uninitialized" warning.
2839
2840         Fix doc typo.
2841         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2842
2843 2008-05-19  Bruno Haible  <bruno@clisp.org>
2844
2845         * doc/glibc-functions/getpass.texi: Document limits of other
2846         implementations.
2847
2848 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2849             Bruno Haible <bruno@clisp.org>
2850
2851         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2852
2853 2008-05-18  Bruno Haible  <bruno@clisp.org>
2854
2855         * modules/propername: New file, from GNU gettext.
2856         * lib/propername.h: New file, from GNU gettext.
2857         * lib/propername.c: New file, from GNU gettext.
2858         * MODULES.html.sh (Internationalization functions): Add propername.
2859
2860 2008-05-16  Jim Meyering  <meyering@redhat.com>
2861             Bruno Haible  <bruno@clisp.org>
2862
2863         Avoid some warnings from "gcc -Wshadow".
2864         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2865
2866 2008-05-15  Eric Blake  <ebb9@byu.net>
2867
2868         Extend previous patch to cygwin 1.7.0.
2869         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2870         fast implementation in cygwin >= 1.7.0.
2871         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2873
2874 2008-05-15  Bruno Haible  <bruno@clisp.org>
2875
2876         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2877         implementation in glibc >= 2.9.
2878         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2880
2881 2008-05-15  Bruno Haible  <bruno@clisp.org>
2882
2883         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2884         (Unicode string functions): Add unilbrk/*.
2885         Reported by Karl Berry.
2886
2887 2008-05-15  Eric Blake  <ebb9@byu.net>
2888
2889         Fix violation of <stdbool.h> replacement in regex.
2890         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2891         * lib/regexec.c (re_search_internal): Likewise.
2892         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2893
2894 2008-05-15  Jim Meyering  <meyering@redhat.com>
2895
2896         avoid distracting test output when git or cvs is not found
2897         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2898         * tests/test-vc-list-files-git.sh: Likewise.
2899
2900 2008-05-15  Eric Blake  <ebb9@byu.net>
2901
2902         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2903         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2904         glibc version.
2905         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2906         * doc/posix-functions/strstr.texi (strstr): Likewise.
2907         * lib/str-two-way.h (MAX): Sychronize with glibc.
2908
2909 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2910
2911         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2912         opr.ctx_type.
2913         (calc_first): Initialize constraint field.
2914         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2915         Fix grammar.
2916         (duplicate_node): Merge constraint field for all node types.
2917         (calc_eclosure_iter): Look at constraint field for all node types.
2918         * lib/regex_internal.c (create_cd_newstate): Don't look at
2919         opr.ctx_type.
2920
2921 2008-05-14  Bruno Haible  <bruno@clisp.org>
2922
2923         Help GCC to do better code generation.
2924         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2925         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2926         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2927         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2928         Declare with attribute 'malloc' if supported.
2929
2930 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2931
2932         use "echo STR|wc -c" rather than unportable "expr length STR"
2933         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2934         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2935
2936 2008-05-14  Jim Meyering  <meyering@redhat.com>
2937
2938         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2939         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2940         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2941         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2942         via Collin Lasse.
2943
2944 2008-05-14  Eric Blake  <ebb9@byu.net>
2945
2946         Avoid quadratic growth in gl_LIBSOURCES.
2947         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2948         Suggested by Bruno Haible.
2949
2950         Test xmemdup0.
2951         * modules/xmemdup0-tests: New file.
2952         * tests/test-xmemdup0.c: Likewise.
2953
2954 2008-05-13  Eric Blake  <ebb9@byu.net>
2955
2956         Split xmemdup0 into its own module.
2957         * modules/xmemdup0: New file.
2958         * lib/xmemdup0.h: Likewise.
2959         * lib/xmemdup0.c: Likewise.
2960         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2961         * lib/xalloc.h (xmemdup0): Remove.
2962         * lib/xmalloc.c (xmemdup0): Likewise.
2963
2964 2008-05-13  Eric Blake  <ebb9@byu.net>
2965             Bruno Haible  <bruno@clisp.org>
2966
2967         Reduce number of forks required during autoconf.
2968         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2969         and gl_LIBSOURCES_DIR.
2970         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2971         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2972         m4_syscmd per file.
2973         <m4_foreach_w>: Move...
2974         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2975
2976 2008-05-13  Eric Blake  <ebb9@byu.net>
2977
2978         * gnulib-tool: Fix various comment typos.
2979
2980 2008-05-12  Bruno Haible  <bruno@clisp.org>
2981
2982         Tailor the linebreaking algorithm.
2983         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2984
2985 2008-05-12  Bruno Haible  <bruno@clisp.org>
2986
2987         Update to Unicode 5.0.0.
2988         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2989         LBP_JV, LBP_JT. Redistribute values.
2990         (unilbrk_table): Change size.
2991         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2992         Unicode TR#14 rev. 22.
2993         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2994         LBP_JV, LBP_JT. Redistribute values.
2995         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2996         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2997         Update.
2998         * lib/unilbrk/lbrkprop1.h: Regenerated.
2999         * lib/unilbrk/lbrkprop2.h: Regenerated.
3000         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
3001         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
3002         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
3003         Likewise.
3004         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
3005         Likewise.
3006         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
3007         result.
3008         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3009         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3010         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3011         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
3012         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
3013         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
3014
3015 2008-05-11  Bruno Haible  <bruno@clisp.org>
3016
3017         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
3018
3019 2008-05-11  Bruno Haible  <bruno@clisp.org>
3020
3021         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
3022         * modules/unilbrk/gen-lbrk: New file.
3023
3024 2008-05-11  Bruno Haible  <bruno@clisp.org>
3025
3026         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
3027         * m4/sha512.m4 (gl_SHA512): Likewise.
3028
3029 2008-05-11  Jim Meyering  <meyering@redhat.com>
3030
3031         New modules: crypto/sha256, crypto/sha512 (from coreutils)
3032         * modules/crypto/sha256: New file.
3033         * modules/crypto/sha512: Likewise.
3034         * lib/sha256.c: Likewise.
3035         * lib/sha256.h: Likewise.
3036         * lib/sha512.c: Likewise.
3037         * lib/sha512.h: Likewise.
3038         * lib/u64.h: Likewise.
3039         * m4/sha256.m4: Likewise.
3040         * m4/sha512.m4: Likewise.
3041         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
3042
3043 2008-05-10  Bruno Haible  <bruno@clisp.org>
3044
3045         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
3046         (Input/Output <stdio.h>): Add xprintf.
3047         (Signal handling <signal.h>): Add strsignal.
3048         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
3049         (Core language properties): Add func.
3050         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
3051         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
3052         strings.
3053         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
3054         (Input/output): New section.
3055         (File system functions): Add openat-die, stat-macros.
3056         (Networking functions): Add sockets.
3057         (Unicode string functions): Add unictype/*.
3058         (Support for building libraries and executables): Add gperf.
3059         (Support for building documentation): Add agpl-3.0.
3060         (Misc): Add nocrash.
3061
3062 2008-05-10  Bruno Haible  <bruno@clisp.org>
3063
3064         * modules/unictype/gen-ctype: New file.
3065
3066 2008-05-10  Jim Meyering  <meyering@redhat.com>
3067
3068         Make chdir-safer.c more efficient on a system with no symlinks.
3069         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
3070         also if ELOOP is zero.  Suggested by Bruno Haible.
3071
3072         Make chdir-safer.c slightly safer.
3073         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
3074         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
3075
3076         Avoid compile failure on systems without ELOOP (like mingw).
3077         * lib/chdir-safer.c (ELOOP): Define if not already defined.
3078         Reported by Bruno Haible.
3079
3080 2008-05-10  Bruno Haible  <bruno@clisp.org>
3081
3082         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
3083         (is_utf8_encoding): Use a case-insensitive comparison.
3084         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
3085         streq.
3086
3087 2008-05-10  Bruno Haible  <bruno@clisp.org>
3088
3089         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
3090         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
3091         * lib/unilbrk/ulc-common.h (iconv_string_length,
3092         iconv_string_keeping_offsets): Remove declarations.
3093         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
3094         Don't include <iconv.h>, streq.h, xsize.h.
3095         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
3096         conversion.
3097         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
3098         <iconv.h>, streq.h, xsize.h.
3099         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
3100         conversion.
3101         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
3102         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
3103         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
3104         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
3105
3106 2008-05-10  Bruno Haible  <bruno@clisp.org>
3107
3108         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
3109         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
3110
3111         * modules/unilbrk/u32-width-linebreaks-tests: New file.
3112         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
3113
3114         * modules/unilbrk/u16-width-linebreaks-tests: New file.
3115         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
3116
3117         * modules/unilbrk/u8-width-linebreaks-tests: New file.
3118         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
3119
3120         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
3121         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
3122
3123         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
3124         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
3125
3126         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
3127         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
3128
3129         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
3130         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
3131
3132 2008-05-10  Bruno Haible  <bruno@clisp.org>
3133
3134         Split up 'linebreak' module.
3135         * lib/unilbrk.h: New file, based on lib/linebreak.h.
3136         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
3137         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
3138         modifications.
3139         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
3140         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
3141         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
3142         lib/linebreak.c.
3143         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
3144         lib/linebreak.c.
3145         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
3146         lib/linebreak.c.
3147         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
3148         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
3149         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
3150         lib/linebreak.c.
3151         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
3152         lib/linebreak.c.
3153         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
3154         lib/linebreak.c.
3155         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3156         lib/linebreak.c.
3157         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3158         lib/linebreak.c.
3159         * modules/unilbrk/base: New file.
3160         * modules/unilbrk/tables: New file.
3161         * modules/unilbrk/u8-possible-linebreaks: New file.
3162         * modules/unilbrk/u16-possible-linebreaks: New file.
3163         * modules/unilbrk/u32-possible-linebreaks: New file.
3164         * modules/unilbrk/ulc-common: New file.
3165         * modules/unilbrk/ulc-possible-linebreaks: New file.
3166         * modules/unilbrk/u8-width-linebreaks: New file.
3167         * modules/unilbrk/u16-width-linebreaks: New file.
3168         * modules/unilbrk/u32-width-linebreaks: New file.
3169         * modules/unilbrk/ulc-width-linebreaks: New file.
3170         * lib/linebreak.h: Remove file.
3171         * lib/linebreak.c: Remove file.
3172         * m4/linebreak.m4: Remove file.
3173         * modules/linebreak: Remove file.
3174         * NEWS: Mention the changes.
3175
3176 2008-05-09  Eric Blake  <ebb9@byu.net>
3177
3178         Add xmemdup0.
3179         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3180         implementation.
3181         * lib/xmalloc.c (xmemdup0): New C implementation.
3182
3183 2008-05-08  Bruno Haible  <bruno@clisp.org>
3184
3185         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3186
3187 2008-05-07  Eric Blake  <ebb9@byu.net>
3188
3189         Support cross-compilation of <wctype.h>.
3190         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3191         AC_CACHE_CHECK.
3192
3193 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3194
3195         * build-aux/vc-list-files: Add support for bzr.
3196
3197 2008-05-03  Jim Meyering  <meyering@redhat.com>
3198
3199         avoid failed assertion with tight malloc
3200         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3201
3202 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3203
3204         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3205         are needed from arpa/inet.h.
3206         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3207         Reported by Bruno Haible.
3208
3209 2008-05-02  Jim Meyering  <meyering@redhat.com>
3210
3211         avoid compilation error on FreeBSD 6
3212         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3213
3214 2008-05-01  Jim Meyering  <meyering@redhat.com>
3215
3216         useless-if-before-free: correct --help's exit status description
3217         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3218         for one or more matches, etc.  Reported by Bruno Haible.
3219
3220         vc-list-files: make the stand-alone gnulib test work
3221         * modules/vc-list-files-tests (configure.ac):
3222         Define and AC_SUBST abs_aux_dir.
3223         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3224         $(abs_top_srcdir) to each script and having each of them
3225         duplicate the work of setting PATH, set PATH here, using
3226         the new variable, abs_aux_dir instead.
3227         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3228         * tests/test-vc-list-files-git.sh: Likewise.
3229         Reported by Bruno Haible.
3230
3231 2008-05-01  Bruno Haible  <bruno@clisp.org>
3232
3233         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3234         reallocation. Rename 'done' to 'found_delimiter'.
3235
3236 2008-05-01  Jim Meyering  <meyering@redhat.com>
3237
3238         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3239         * build-aux/vc-list-files: Use `...`, not $(...).
3240
3241 2008-04-30  Jim Meyering  <meyering@redhat.com>
3242
3243         add tests for vc-list-files
3244         * modules/vc-list-files-tests: New module.
3245         * tests/test-vc-list-files-cvs.sh: New file.
3246         * tests/test-vc-list-files-git.sh: New file.
3247
3248         avoid a warning from gcc
3249         * lib/getndelim2.c (IF_LINT): Define.
3250         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3251
3252         vc-list-files: work properly with build-aux/cvsu, too
3253         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3254         to all cvs-based clauses.
3255
3256         vc-list-files: work properly in the CVS+awk case, too
3257         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3258
3259         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3260         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3261         take more than one file argument, so .  Add quotes, just in case $dir
3262         ever contains a shell meta-character.  Prompted by Soren Hansen in
3263         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3264
3265 2008-04-29  Eric Blake  <ebb9@byu.net>
3266
3267         Optimize getndelim2 to use block operations when possible.
3268         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3269         freadseek, and memchr2.
3270         * lib/getndelim2.c (getndelim2): Use them for block reads.
3271
3272 2008-04-29  Bruno Haible  <bruno@clisp.org>
3273
3274         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3275         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3276         * modules/inet_ntop (Depends-on): Add extensions.
3277         * modules/inet_pton (Depends-on): Likewise.
3278         Reported by Simon Josefsson.
3279
3280 2008-04-29  Jim Meyering  <meyering@redhat.com>
3281
3282         When the is more than one match in a block, match all of them.
3283         * build-aux/useless-if-before-free: Iterate through each block
3284         until there are no more matches.
3285
3286         Fix broken useless-if-before-free script.
3287         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3288         the expression to match cast of argument to free-like function.
3289
3290 2008-04-29  Eric Blake  <ebb9@byu.net>
3291
3292         Use new header.
3293         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3294
3295 2008-04-29  Jim Meyering  <meyering@redhat.com>
3296
3297         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3298         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3299         by gnulib to exist and to declare e.g., inet_ntop.
3300         Don't include "inet_ntop.h", now removed.
3301
3302         * m4/arpa_inet_h.m4: Remove trailing blanks.
3303
3304 2008-04-29  Eric Blake  <ebb9@byu.net>
3305
3306         Silence valgrind on safe reads beyond potential array bounds.
3307         * lib/rawmemchr.valgrind: New file.
3308         * lib/strchrnul.valgrind: Likewise.
3309         * modules/rawmemchr (Files): Distribute new file.
3310         * modules/strchrnul (Files): Likewise.
3311         Suggested by Bruno Haible.
3312
3313 2008-04-29  Bruno Haible  <bruno@clisp.org>
3314
3315         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3316         (inet_ntop, inet_pton): Change portability warning's wording.
3317         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3318         Invoke gl_CHECK_NEXT_HEADERS.
3319         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3320         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3321         set ARPA_INET_H.
3322         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3323         * modules/arpa_inet (Description): No longer only for systems that
3324         lack it.
3325         (Depends-on): Add include_next.
3326         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3327         HAVE_ARPA_INET_H.
3328
3329 2008-04-29  Jim Meyering  <meyering@redhat.com>
3330
3331         * modules/mkdir (License): Re-license as LGPLv2+.
3332
3333 2008-04-29  Bruno Haible  <bruno@clisp.org>
3334
3335         * modules/rawmemchr (Maintainer): Set to Eric.
3336         * modules/strchrnul (Maintainer): Likewise.
3337
3338 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3339
3340         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3341         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3342
3343         * modules/arpa_inet (arpa/inet.h): Use them.
3344
3345 2008-04-28  Eric Blake  <ebb9@byu.net>
3346
3347         Test getndelim2.
3348         * modules/getndelim2-tests: New file.
3349         * tests/test-getndelim2.c: Likewise.
3350         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3351         stream.
3352         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3353
3354         * MODULES.html.sh: Document new module.
3355
3356 2008-04-20  Bruno Haible  <bruno@clisp.org>
3357
3358         * lib/c-stack.c (die): Use raise.
3359         * modules/c-stack (Depends-on): Add raise.
3360
3361 2008-04-28  Bruno Haible  <bruno@clisp.org>
3362
3363         Expect rpmatch to be declared.
3364         * lib/yesno.c (rpmatch): Remove declaration.
3365
3366         Declare rpmatch.
3367         * lib/stdlib.in.h (rpmatch): New declaration.
3368         * lib/rpmatch.c: Include <stdlib.h> first.
3369         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3370         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3372         HAVE_RPMATCH.
3373         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3374         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3375         (Include): Set to <stdlib.h>.
3376         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3377         HAVE_RPMATCH.
3378         * NEWS: Document the change.
3379
3380 2008-04-28  Bruno Haible  <bruno@clisp.org>
3381
3382         Change rpmatch to use nl_langinfo when appropriate.
3383         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3384         (N_): New macro.
3385         (localized_pattern): New function/macro.
3386         (try): Remove match, nomatch arguments. Copy the pattern into safe
3387         memory before caching it.
3388         (rpmatch): Use localized_pattern. Add translator comments.
3389         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3390         Suggested by Eric Blake.
3391         * modules/rpmatch (Depends-on): Add stdbool.
3392
3393 2008-04-28  Eric Blake  <ebb9@byu.net>
3394
3395         Add rawmemchr module, matching glibc.
3396         * modules/string (Makefile.am): New indicator.
3397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3398         * lib/string.in.h (rawmemchr): Declare when appropriate.
3399         * modules/rawmemchr: New file.
3400         * m4/rawmemchr.m4: Likewise.
3401         * lib/rawmemchr.c: Likewise.
3402         * modules/rawmemchr-tests: Likewise.
3403         * tests/test-rawmemchr.c: Likewise.
3404         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3405         module.
3406         * modules/strchrnul (Depends-on): Add rawmemchr.
3407         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3408
3409         Whitespace cleanup.
3410         * tests/test-strchrnul.c: Reindent.
3411         * lib/strchrnul.c: Likewise.
3412
3413         Optimize and test strchrnul.
3414         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3415         * modules/strchrnul-tests: New file.
3416         * tests/test-strchrnul.c: Likewise.
3417
3418         Remove intprops dependency.
3419         * modules/memchr (Depends-on): Remove intprops.
3420         * modules/memrchr (Depends-on): Likewise.
3421         * modules/memchr2 (Depends-on): Likewise.
3422         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3423         * lib/memrchr.c (__memrchr): Likewise.
3424         * lib/memrchr2.c (memchr2): Likewise.
3425         Reported by Simon Josefsson.
3426
3427 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3428
3429         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3430         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3431
3432 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3433
3434         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3435
3436         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3437
3438         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3439
3440         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3441         declarations.
3442         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3443
3444         * m4/inet_pton.m4: Don't check for header files.
3445
3446         * m4/inet_ntop.m4: Don't check for header files.
3447
3448 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3449
3450         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3451         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3452         trigger for cygwin).
3453         Reported by Bruno Haible  <bruno@clisp.org>.
3454
3455 2008-04-28  Bruno Haible  <bruno@clisp.org>
3456
3457         * doc/posix-functions/strdup.texi: Mention mingw problem.
3458
3459 2008-04-27  Bruno Haible  <bruno@clisp.org>
3460
3461         * modules/stat-time-tests (Depends-on): Add sleep.
3462         * tests/test-stat-time.c (force_unlink): New function.
3463         (cleanup): Use it.
3464         (test_mtime): Remove the ctime related tests.
3465         (test_ctime): New function, containing the ctime related tests.
3466         (main): Call test_ctime, except on native Windows platforms.
3467
3468 2008-04-27  Bruno Haible  <bruno@clisp.org>
3469
3470         * lib/rpmatch.c (rpmatch): Add some comments.
3471         Reported by James Youngman <jay@gnu.org>.
3472
3473 2008-04-27  Bruno Haible  <bruno@clisp.org>
3474
3475         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3476         quiet NaNs.
3477
3478 2008-04-27  Bruno Haible  <bruno@clisp.org>
3479
3480         Make test-yesno.sh work on mingw.
3481         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3482         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3483         (main): Set stdin to binary mode.
3484         * modules/yesno-tests (Depends-on): Add binary-io.
3485
3486 2008-04-27  Bruno Haible  <bruno@clisp.org>
3487
3488         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3489         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3490         argument that lie outside the IEEE 854 domain.
3491         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3492         (gl_ISFINITE): Use it.
3493         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3494
3495 2008-04-27  Bruno Haible  <bruno@clisp.org>
3496
3497         Allow local renaming in config.h.
3498         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3499
3500 2008-04-27  Bruno Haible  <bruno@clisp.org>
3501
3502         * lib/memchr.c (__memchr): Change type of 'i'.
3503         * lib/memchr2.c (memchr2): Likewise.
3504
3505 2008-04-26  Eric Blake  <ebb9@byu.net>
3506         and Bruno Haible  <bruno@clisp.org>
3507
3508         Optimize and test memrchr.
3509         * modules/memrchr (Depends-on): Add intprops.
3510         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3511         * modules/memrchr-tests: New file.
3512         * tests/test-memrchr.c: New file.
3513
3514 2008-04-26  Bruno Haible  <bruno@clisp.org>
3515
3516         Add tentative support for DragonFly BSD.
3517         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3518         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3519         fp.
3520         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3521         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3522         * lib/fpurge.c (fpurge): Likewise.
3523         * lib/freadable.c (freaadable): Likewise.
3524         * lib/freadahead.c (freadahead): Likewise.
3525         * lib/freading.c (freading): Likewise.
3526         * lib/freadptr.c (freadptr): Likewise.
3527         * lib/freadseek.c (freadptrinc): Likewise.
3528         * lib/fseeko.c (fseeko): Likewise.
3529         * lib/fseterr.c (fseterr): Likewise.
3530         * lib/fwritable.c (fwritable): Likewise.
3531         * lib/fwriting.c (fwriting): Likewise.
3532
3533 2008-04-26  Bruno Haible  <bruno@clisp.org>
3534
3535         * lib/stdio-impl.h: New file.
3536         * lib/fbufmode.c: Include stdio-impl.h.
3537         (fbufmode): Use fp_, remove redundant #defines.
3538         * lib/fflush.c: Include stdio-impl.h.
3539         (clear_ungetc_buffer): Remove redundant #defines.
3540         * lib/fpurge.c: Include stdio-impl.h.
3541         (fpurge): Remove redundant #defines.
3542         * lib/freadable.c: Include stdio-impl.h.
3543         (freadable): Remove redundant #defines.
3544         * lib/freadahead.c: Include stdio-impl.h.
3545         (freadahead): Remove redundant #defines.
3546         * lib/freading.c: Include stdio-impl.h.
3547         (freading): Remove redundant #defines.
3548         * lib/freadptr.c: Include stdio-impl.h.
3549         (freadptr): Remove redundant #defines.
3550         * lib/freadseek.c: Include stdio-impl.h.
3551         (freadptrinc): Remove redundant #defines.
3552         * lib/fseeko.c: Include stdio-impl.h.
3553         (rpl_fseeko): Remove redundant #defines.
3554         * lib/fseterr.c: Include stdio-impl.h.
3555         (fseterr): Remove redundant #defines.
3556         * lib/fwritable.c: Include stdio-impl.h.
3557         (fwritable: Remove redundant #defines.
3558         * lib/fwriting.c: Include stdio-impl.h.
3559         (fwriting): Remove redundant #defines.
3560         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3561         * modules/fflush (Files): Likewise.
3562         * modules/fpurge (Files): Likewise.
3563         * modules/freadable (Files): Likewise.
3564         * modules/freadahead (Files): Likewise.
3565         * modules/freading (Files): Likewise.
3566         * modules/freadptr (Files): Likewise.
3567         * modules/freadseek (Files): Likewise.
3568         * modules/fseeko (Files): Likewise.
3569         * modules/fseterr (Files): Likewise.
3570         * modules/fwritable (Files): Likewise.
3571         * modules/fwriting (Files): Likewise.
3572
3573 2008-04-26  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3576         restore_seek_optimization, update_fpos_cache): New functions, extracted
3577         from rpl_fflush.
3578         (rpl_fflush): Use them.
3579         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3580         (gl_REPLACE_FFLUSH): Use it.
3581
3582 2008-04-26  Bruno Haible  <bruno@clisp.org>
3583
3584         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3585         on Solaris.
3586         * tests/test-xstrtoimax.sh: Likewise.
3587         * tests/test-xstrtoumax.sh: Likewise.
3588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3589
3590 2008-04-26  Bruno Haible  <bruno@clisp.org>
3591
3592         * modules/memchr-tests: New file.
3593         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3594
3595 2008-04-26  Eric Blake  <ebb9@byu.net>
3596             Bruno Haible  <bruno@clisp.org>
3597
3598         * lib/memchr.c: Include intprops.h.
3599         (__memchr): Optimize parallel detection of matching bytes. Rename local
3600         variables. Add explanatory comments.
3601
3602 2008-04-26  Bruno Haible  <bruno@clisp.org>
3603
3604         Fix module 'memchr', broken since 2000-10-28.
3605         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3606
3607 2008-04-26  Bruno Haible  <bruno@clisp.org>
3608
3609         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3610         comments.
3611
3612 2008-04-25  Eric Blake  <ebb9@byu.net>
3613
3614         Use native fstatat on cygwin 1.7.0.
3615         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3616         first.
3617
3618 2008-04-23  Eric Blake  <ebb9@byu.net>
3619
3620         Improve memchr2 performance.
3621         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3622         NUL bytes.
3623         * modules/memchr2 (Depends-on): Use intprops.h.
3624
3625 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3626
3627         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3628         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3629         <blp@cs.stanford.edu>.
3630
3631 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3632
3633         * lib/arpa_inet.in.h: New file.
3634
3635         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3636         (Makefile.am): Sed in substitute header file.
3637
3638         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3639         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3640
3641         * modules/inet_ntop (configure.ac): Use
3642         gl_ARPA_INET_MODULE_INDICATOR.
3643
3644         * modules/inet_pton (configure.ac): Use
3645         gl_ARPA_INET_MODULE_INDICATOR.
3646
3647 2008-04-22  Jim Meyering  <meyering@redhat.com>
3648
3649         * modules/verify (License): Re-license as LGPLv2+.
3650
3651 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3652
3653         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3654         parameter to void* as per POSIX standard (MinGW uses char*).
3655
3656 2008-04-21  Bruno Haible  <bruno@clisp.org>
3657
3658         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3659         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3660         Define to replacements if REPLACE_ISWCNTRL is 1.
3661         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3662         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3663         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3664         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3665         what it fixes.
3666         * doc/posix-functions/iswalpha.texi: Likewise.
3667         * doc/posix-functions/iswblank.texi: Likewise.
3668         * doc/posix-functions/iswcntrl.texi: Likewise.
3669         * doc/posix-functions/iswdigit.texi: Likewise.
3670         * doc/posix-functions/iswgraph.texi: Likewise.
3671         * doc/posix-functions/iswlower.texi: Likewise.
3672         * doc/posix-functions/iswprint.texi: Likewise.
3673         * doc/posix-functions/iswpunct.texi: Likewise.
3674         * doc/posix-functions/iswspace.texi: Likewise.
3675         * doc/posix-functions/iswupper.texi: Likewise.
3676         * doc/posix-functions/iswxdigit.texi: Likewise.
3677         Reported by Alain Guibert.
3678
3679 2008-04-21  Bruno Haible  <bruno@clisp.org>
3680
3681         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3682         Patch by Alain Guibert.
3683
3684 2008-04-21  Bruno Haible  <bruno@clisp.org>
3685
3686         Fix test failures on mingw.
3687         * tests/test-xstrtol.c (print_no_progname): New function.
3688         (main): Install it in error_print_progname hook.
3689         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3690         * tests/test-xstrtoimax.sh: Likewise.
3691         * tests/test-xstrtoumax.sh: Likewise.
3692
3693 2008-04-21  Bruno Haible  <bruno@clisp.org>
3694
3695         Fix test failure on mingw.
3696         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3697
3698 2008-04-21  Bruno Haible  <bruno@clisp.org>
3699
3700         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3701         Actually assign a value.
3702
3703 2008-04-20  Bruno Haible  <bruno@clisp.org>
3704
3705         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3706         take 2.
3707         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3708         'canonicalize-lgpl' module is also used.
3709         * lib/canonicalize-lgpl.c: Undo last change.
3710         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3711
3712 2008-04-20  Bruno Haible  <bruno@clisp.org>
3713
3714         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3715         config.h. Provide _mkdir based fallback for mingw.
3716         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3717         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3719         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3720         rather than defining mkdir in config.h.
3721         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3722         (gl_SYS_STAT_H_DEFAULTS): New macro.
3723         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3724         HAVE_IO_H any more.
3725         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3726         HAVE_DECL_MKDIR and HAVE_IO_H.
3727
3728 2008-04-20  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/isapipe.c: Port to native Windows platforms.
3731
3732 2008-04-20  Bruno Haible  <bruno@clisp.org>
3733
3734         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3735
3736 2008-04-21  Eric Blake  <ebb9@byu.net>
3737
3738         Work around preprocessors that don't handle UINTMAX_MAX.
3739         * lib/memchr2.c (memchr2): Avoid embedded #if.
3740         Reported by Alain Guibert, fix suggested by Bruno Haible.
3741
3742 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3743
3744         * doc/posix-functions/strftime.texi (strftime): Explain better
3745         Windows incompatibility.  Suggested by Micah Cowan
3746         <micah@cowan.name>.
3747
3748 2008-04-20  Bruno Haible  <bruno@clisp.org>
3749
3750         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3751         unistr/u8-mblen.
3752
3753 2008-04-20  Bruno Haible  <bruno@clisp.org>
3754
3755         Fix test failure on platforms with non-GNU iconv.
3756         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3757         (U_TO_U8): Use it, rather than u16_to_u8.
3758         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3759         units at the end of the input string.
3760         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3761
3762 2008-04-20  Bruno Haible  <bruno@clisp.org>
3763
3764         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3765         when the resulting length is 0.
3766         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3767
3768 2008-04-20  Bruno Haible  <bruno@clisp.org>
3769
3770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3771         works.
3772         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3773
3774 2008-04-20  Bruno Haible  <bruno@clisp.org>
3775
3776         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3777         * modules/tsearch-tests (configure.ac): Test for initstate function.
3778
3779 2008-04-20  Bruno Haible  <bruno@clisp.org>
3780
3781         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3782         for nlink_t if missing.
3783         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3784
3785 2008-04-19  Bruno Haible  <bruno@clisp.org>
3786
3787         Work around snprintf bug on Linux libc5.
3788         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3790         gl_SNPRINTF_SIZE1.
3791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3792         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3793         that test failed.
3794         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3795         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3796         * modules/snprintf (Files): Add m4/printf.m4.
3797         * modules/vsnprintf (Files): Likewise.
3798         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3799         * doc/posix-functions/vsnprintf.texi: Likewise.
3800
3801 2008-04-19  Bruno Haible  <bruno@clisp.org>
3802
3803         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3804         from 0.0058 to less than 10^-7.
3805
3806 2008-04-19  Bruno Haible  <bruno@clisp.org>
3807
3808         Fix rounding when a precision is given.
3809         * lib/vasnprintf.c (is_borderline): New function.
3810         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3811         9...9x.
3812         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3813         %e, %g.
3814         * tests/test-vasprintf-posix.c (test_function): Likewise.
3815         * tests/test-snprintf-posix.h (test_function): Likewise.
3816         * tests/test-sprintf-posix.h (test_function): Likewise.
3817         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3818         * tests/test-printf-posix.h (test_function): Likewise.
3819         * tests/test-printf-posix.output: Update.
3820         Reported by John Darrington <john@darrington.wattle.id.au> via
3821         Ben Pfaff <blp@cs.stanford.edu>.
3822
3823 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3824
3825         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3826         Suggested by Bruno Haible <bruno@clisp.org>.
3827
3828 2008-04-17  Bruno Haible  <bruno@clisp.org>
3829
3830         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3831         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3832         implementation.
3833         Patch by Bruce Merry <bmerry@gmail.com>.
3834
3835 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3836
3837         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3838         doesn't work under Windows.
3839
3840 2008-04-16  Bruno Haible  <bruno@clisp.org>
3841
3842         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3843         New macros.
3844         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3845         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3846         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3847         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3848         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3849         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3850         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3851         macros.
3852         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3853         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3854         Northern Sotho, Uighur.
3855
3856 2008-04-16  Bruno Haible  <bruno@clisp.org>
3857
3858         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3859         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3860         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3861         Reported by Daniel Bergström <daniel@octocode.com>.
3862
3863 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3864             Bruno Haible  <bruno@clisp.org>
3865
3866         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3867         function.
3868         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3869         New functions, mostly extracted from gl_locale_name_default.
3870         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3871
3872 2008-04-16  Eric Blake  <ebb9@byu.net>
3873
3874         Adjust strtod detection to catch glibc 2.7 bug.
3875         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3876         Reported by John Gatewood Ham.
3877
3878 2008-04-16  Bruno Haible  <bruno@clisp.org>
3879
3880         Add tentative support for Linux libc5.
3881         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3882         * lib/fpurge.c (fpurge): Likewise.
3883         * lib/freadable.c (freadable): Likewise.
3884         * lib/freadahead.c (freadahead): Likewise.
3885         * lib/freading.c (freading): Likewise.
3886         * lib/freadptr.c (freadptr): Likewise.
3887         * lib/freadseek.c (freadptrinc): Likewise.
3888         * lib/fseeko.c (rpl_fseeko): Likewise.
3889         * lib/fseterr.c (fseterr): Likewise.
3890         * lib/fwritable.c (fwritable): Likewise.
3891         * lib/fwriting.c (fwriting): Likewise.
3892         Reported by Alain Guibert <alguibert+bts@free.fr>.
3893
3894 2008-04-15  Bruno Haible  <bruno@clisp.org>
3895
3896         * modules/mathl (configure.ac): Define module indicator.
3897
3898 2008-04-15  Bruno Haible  <bruno@clisp.org>
3899
3900         * lib/logl.c (logl): Remove unused variables.
3901
3902 2008-04-15  Bruno Haible  <bruno@clisp.org>
3903
3904         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3905         fails.
3906
3907 2008-04-15  Bruno Haible  <bruno@clisp.org>
3908
3909         * lib/trim.c (trim2): Fix argument of isspace() macro.
3910
3911 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3912
3913         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3914         to 0.
3915         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3916
3917 2008-04-14  Bruno Haible  <bruno@clisp.org>
3918
3919         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3920         AC_LANG_PROGRAM argument.
3921         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3922         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3925         * m4/math_h.m4 (gl_MATH_H): Likewise.
3926         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3928         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3929         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3930         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3931         * m4/regex.m4 (gl_REGEX): Likewise.
3932         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3933         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3935         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3937         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3940
3941 2008-04-14  Jim Meyering  <meyering@redhat.com>
3942
3943         test-strtod: fix typos: s/abs/fabs/
3944         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3945
3946 2008-04-13  Bruno Haible  <bruno@clisp.org>
3947
3948         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3949         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3950         module is also used and while not building the reloc-wrapper.
3951
3952 2008-04-13  Bruno Haible  <bruno@clisp.org>
3953
3954         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3955
3956 2008-04-13  Bruno Haible  <bruno@clisp.org>
3957
3958         Fix AIX compilation failure introduced on 2008-04-02.
3959         * tests/test-frexp.c (exp): Undefine before redefining.
3960         * tests/test-frexpl.c (exp): Likewise.
3961
3962 2008-04-13  Bruno Haible  <bruno@clisp.org>
3963
3964         Work around a HP-UX stdio bug.
3965         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3966         * tests/test-ftello.c (main): Likewise.
3967         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3968         * doc/posix-functions/ftello.texi: Likewise.
3969
3970 2008-04-13  Bruno Haible  <bruno@clisp.org>
3971
3972         Make test-signbit pass on HP-UX/hppa.
3973         * tests/test-signbit.c (minus_zerol): New variable.
3974         (test_signbitl): Use it.
3975
3976 2008-04-13  Bruno Haible  <bruno@clisp.org>
3977
3978         Make truncl work on OSF/1 4.0.
3979         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3980         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3981         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3983         HAVE_DECL_TRUNCL.
3984         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3985         HAVE_DECL_TRUNCL.
3986         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3987
3988 2008-04-13  Bruno Haible  <bruno@clisp.org>
3989
3990         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3991
3992 2008-04-13  Bruno Haible  <bruno@clisp.org>
3993
3994         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3995         expression, so as to avoid HP-UX 11 cc compiler bug.
3996
3997 2008-04-13  Bruno Haible  <bruno@clisp.org>
3998
3999         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
4000
4001 2008-04-13  Bruno Haible  <bruno@clisp.org>
4002
4003         * lib/git-merge-changelog.c: Remove empty declaration outside of
4004         functions.
4005
4006 2008-04-13  Bruno Haible  <bruno@clisp.org>
4007
4008         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
4009
4010 2008-04-13  Bruno Haible  <bruno@clisp.org>
4011
4012         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
4013         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
4014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
4015         also if it exists but lacks definitions of the SHUT_* macros.
4016         * modules/sys_socket (Description): Update.
4017         Reported by Elbert Pol <e.pol@chello.nl>.
4018
4019 2008-04-13  Bruno Haible  <bruno@clisp.org>
4020
4021         * lib/localcharset.c (OS2): Don't redefine if already defined.
4022         Reported by Elbert Pol <e.pol@chello.nl>.
4023
4024 2008-04-13  Bruno Haible  <bruno@clisp.org>
4025
4026         * lib/binary-io.h [__EMX__]: Include <io.h>.
4027         Reported by Elbert Pol <e.pol@chello.nl>.
4028
4029 2008-04-12  Bruno Haible  <bruno@clisp.org>
4030
4031         * lib/fpucw.h: Enable the definitions also for x86_64.
4032         Needed for NetBSD/x86_64.
4033         Reported by Thomas Klausner <tk@giga.or.at>.
4034
4035 2008-04-12  Bruno Haible  <bruno@clisp.org>
4036
4037         * tests/test-strtod.c: Include isnand.h.
4038         (main): Use isnand instead of isnan.
4039         Reported by Jim Meyering.
4040
4041 2008-04-12  Bruno Haible  <bruno@clisp.org>
4042
4043         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
4044         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4045
4046 2008-04-12  Jim Meyering  <meyering@redhat.com>
4047
4048         * m4/math_h.m4 (gl_MATH_H): Fix typos.
4049
4050 2008-04-12  Bruno Haible  <bruno@clisp.org>
4051
4052         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
4053         Reported by Elbert Pol <e.pol@chello.nl>.
4054
4055 2008-04-12  Eric Blake  <ebb9@byu.net>
4056
4057         Work around Solaris 10 math.h bug.
4058         * m4/math_h.m4 (gl_MATH_H): Check for bug.
4059         (gl_MATH_H_DEFAULTS): Set up default.
4060         * modules/math (Makefile.am): Replace new indicators.
4061         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
4062         * tests/test-math.c (main): Test this.
4063         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
4064         * doc/posix-headers/math.texi (math.h): Mention bug.
4065         Reported by Nelson H. F. Beebe and Jim Meyering.
4066
4067 2008-04-11  Bruno Haible  <bruno@clisp.org>
4068
4069         Adapt to future versions of Apple GCC.
4070         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
4071         Reported by Peter O'Gorman <peter@pogma.com>.
4072
4073 2008-04-11  Bruno Haible  <bruno@clisp.org>
4074
4075         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
4076
4077 2008-04-11  Bruno Haible  <bruno@clisp.org>
4078
4079         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
4080
4081         * modules/getaddrinfo-tests (Makefile.am): Define
4082         test_getaddrinfo_LDADD.
4083
4084 2008-04-11  Bruno Haible  <bruno@clisp.org>
4085
4086         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
4087         (init): Fix syntax error.
4088         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
4089         is declared.
4090
4091 2008-04-11  Bruno Haible  <bruno@clisp.org>
4092
4093         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
4094         * modules/glob (Depends-on): Add stdbool.
4095
4096 2008-04-11  Bruno Haible  <bruno@clisp.org>
4097
4098         * lib/trim.c: Include <string.h>.
4099
4100 2008-04-11  Eric Blake  <ebb9@byu.net>
4101
4102         Avoid compile failure on OS/2.
4103         * lib/regex_internal.h (internal_function): Disable optimization
4104         on OS/2 (__EMX__), where it caused compiler error.
4105         Reported by Elbert Pol.
4106
4107 2008-04-11  Bruno Haible  <bruno@clisp.org>
4108
4109         Flush the standard error stream before aborting. Needed on mingw.
4110         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
4111         * tests/test-array_list.c (ASSERT): Likewise.
4112         * tests/test-array_oset.c (ASSERT): Likewise.
4113         * tests/test-avltree_list.c (ASSERT): Likewise.
4114         * tests/test-avltree_oset.c (ASSERT): Likewise.
4115         * tests/test-avltreehash_list.c (ASSERT): Likewise.
4116         * tests/test-binary-io.c (ASSERT): Likewise.
4117         * tests/test-byteswap.c (ASSERT): Likewise.
4118         * tests/test-c-ctype.c (ASSERT): Likewise.
4119         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
4120         * tests/test-c-strcasestr.c (ASSERT): Likewise.
4121         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
4122         * tests/test-c-strstr.c (ASSERT): Likewise.
4123         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
4124         * tests/test-canonicalize.c (ASSERT): Likewise.
4125         * tests/test-carray_list.c (ASSERT): Likewise.
4126         * tests/test-ceilf1.c (ASSERT): Likewise.
4127         * tests/test-ceilf2.c (ASSERT): Likewise.
4128         * tests/test-ceill.c (ASSERT): Likewise.
4129         * tests/test-count-one-bits.c (ASSERT): Likewise.
4130         * tests/test-fbufmode.c (ASSERT): Likewise.
4131         * tests/test-fflush2.c (ASSERT): Likewise.
4132         * tests/test-floorf1.c (ASSERT): Likewise.
4133         * tests/test-floorf2.c (ASSERT): Likewise.
4134         * tests/test-floorl.c (ASSERT): Likewise.
4135         * tests/test-fopen.c (ASSERT): Likewise.
4136         * tests/test-fpending.c (ASSERT): Likewise.
4137         * tests/test-fprintf-posix.c (ASSERT): Likewise.
4138         * tests/test-fpurge.c (ASSERT): Likewise.
4139         * tests/test-freadable.c (ASSERT): Likewise.
4140         * tests/test-freadahead.c (ASSERT): Likewise.
4141         * tests/test-freading.c (ASSERT): Likewise.
4142         * tests/test-freadptr.c (ASSERT): Likewise.
4143         * tests/test-freadptr2.c (ASSERT): Likewise.
4144         * tests/test-freadseek.c (ASSERT): Likewise.
4145         * tests/test-freopen.c (ASSERT): Likewise.
4146         * tests/test-frexp.c (ASSERT): Likewise.
4147         * tests/test-frexpl.c (ASSERT): Likewise.
4148         * tests/test-fseek.c (ASSERT): Likewise.
4149         * tests/test-fseeko.c (ASSERT): Likewise.
4150         * tests/test-fstrcmp.c (ASSERT): Likewise.
4151         * tests/test-ftell.c (ASSERT): Likewise.
4152         * tests/test-ftello.c (ASSERT): Likewise.
4153         * tests/test-func.c (ASSERT): Likewise.
4154         * tests/test-fwritable.c (ASSERT): Likewise.
4155         * tests/test-fwriting.c (ASSERT): Likewise.
4156         * tests/test-getdelim.c (ASSERT): Likewise.
4157         * tests/test-getline.c (ASSERT): Likewise.
4158         * tests/test-i-ring.c (ASSERT): Likewise.
4159         * tests/test-iconv-utf.c (ASSERT): Likewise.
4160         * tests/test-iconv.c (ASSERT): Likewise.
4161         * tests/test-isfinite.c (ASSERT): Likewise.
4162         * tests/test-isnand.c (ASSERT): Likewise.
4163         * tests/test-isnanf.c (ASSERT): Likewise.
4164         * tests/test-isnanl.h (ASSERT): Likewise.
4165         * tests/test-ldexpl.c (ASSERT): Likewise.
4166         * tests/test-linked_list.c (ASSERT): Likewise.
4167         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4168         * tests/test-localename.c (ASSERT): Likewise.
4169         * tests/test-lseek.c (ASSERT): Likewise.
4170         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4171         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4172         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4173         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4174         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4175         * tests/test-mbschr.c (ASSERT): Likewise.
4176         * tests/test-mbscspn.c (ASSERT): Likewise.
4177         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4178         * tests/test-mbspbrk.c (ASSERT): Likewise.
4179         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4180         * tests/test-mbsrchr.c (ASSERT): Likewise.
4181         * tests/test-mbsspn.c (ASSERT): Likewise.
4182         * tests/test-mbsstr1.c (ASSERT): Likewise.
4183         * tests/test-mbsstr2.c (ASSERT): Likewise.
4184         * tests/test-mbsstr3.c (ASSERT): Likewise.
4185         * tests/test-memchr2.c (ASSERT): Likewise.
4186         * tests/test-memmem.c (ASSERT): Likewise.
4187         * tests/test-open.c (ASSERT): Likewise.
4188         * tests/test-printf-frexp.c (ASSERT): Likewise.
4189         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4190         * tests/test-printf-posix.c (ASSERT): Likewise.
4191         * tests/test-quotearg.c (ASSERT): Likewise.
4192         * tests/test-rbtree_list.c (ASSERT): Likewise.
4193         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4194         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4195         * tests/test-round1.c (ASSERT): Likewise.
4196         * tests/test-roundf1.c (ASSERT): Likewise.
4197         * tests/test-roundl.c (ASSERT): Likewise.
4198         * tests/test-signbit.c (ASSERT): Likewise.
4199         * tests/test-sleep.c (ASSERT): Likewise.
4200         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4201         * tests/test-snprintf.c (ASSERT): Likewise.
4202         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4203         * tests/test-stat-time.c (ASSERT): Likewise.
4204         * tests/test-strcasestr.c (ASSERT): Likewise.
4205         * tests/test-strerror.c (ASSERT): Likewise.
4206         * tests/test-striconv.c (ASSERT): Likewise.
4207         * tests/test-striconveh.c (ASSERT): Likewise.
4208         * tests/test-striconveha.c (ASSERT): Likewise.
4209         * tests/test-strsignal.c (ASSERT): Likewise.
4210         * tests/test-strstr.c (ASSERT): Likewise.
4211         * tests/test-strtod.c (ASSERT): Likewise.
4212         * tests/test-trunc1.c (ASSERT): Likewise.
4213         * tests/test-trunc2.c (ASSERT): Likewise.
4214         * tests/test-truncf1.c (ASSERT): Likewise.
4215         * tests/test-truncf2.c (ASSERT): Likewise.
4216         * tests/test-truncl.c (ASSERT): Likewise.
4217         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4218         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4219         * tests/test-vasnprintf.c (ASSERT): Likewise.
4220         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4221         * tests/test-vasprintf.c (ASSERT): Likewise.
4222         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4223         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4224         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4225         * tests/test-vsnprintf.c (ASSERT): Likewise.
4226         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4227         * tests/test-wcwidth.c (ASSERT): Likewise.
4228         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4229         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4230         * tests/test-xvasprintf.c (ASSERT): Likewise.
4231         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4232         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4233         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4234         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4235         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4236         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4237         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4238         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4239         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4240         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4241         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4242         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4243         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4244         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4245         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4246         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4247         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4248         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4249         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4250         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4251         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4252         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4253         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4254         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4255         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4256         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4257         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4258         * tests/unictype/test-combining.c (ASSERT): Likewise.
4259         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4260         * tests/unictype/test-digit.c (ASSERT): Likewise.
4261         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4262         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4263         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4264         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4265         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4266         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4267         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4268         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4269         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4270         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4271         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4272         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4273         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4274         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4275         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4276         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4277         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4278         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4279         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4280         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4281         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4282         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4283         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4284         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4285         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4286         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4287         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4288         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4289         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4290         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4291         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4292         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4293         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4294         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4295         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4296         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4297         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4298         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4299         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4300         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4301         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4302         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4303         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4304         Reported by Eric Blake.
4305
4306 2008-04-11  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/wchar.in.h: Tweak comment.
4309
4310 2008-04-11  Bruno Haible  <bruno@clisp.org>
4311
4312         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4313         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4314         gl_COMMON.
4315         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4316
4317 2008-04-11  Bruno Haible  <bruno@clisp.org>
4318
4319         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4320
4321 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4322
4323         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4324         of attempting to use non-existing /dev/*random.  Based on patch
4325         from Adam Strzelecki <ono@java.pl> in
4326         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4327
4328 2008-04-08  Bruno Haible  <bruno@clisp.org>
4329
4330         Add tentative support for emx+gcc.
4331         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4332         * lib/fpurge.c (fpurge): Likewise.
4333         * lib/freadable.c (freadable): Likewise.
4334         * lib/freadahead.c (freadahead): Likewise.
4335         * lib/freading.c (freading): Likewise.
4336         * lib/freadptr.c (freadptr): Likewise.
4337         * lib/freadseek.c (freadptrinc): Likewise.
4338         * lib/fseeko.c (rpl_fseeko): Likewise.
4339         * lib/fseterr.c (fseterr): Likewise.
4340         * lib/fwritable.c (fwritable): Likewise.
4341         * lib/fwriting.c (fwriting): Likewise.
4342         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4343
4344 2008-04-09  Eric Blake  <ebb9@byu.net>
4345
4346         Avoid some autoconf warnings.
4347         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4348         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4349         * m4/afs.m4 (gl_AFS): Likewise.
4350         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4351         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4353         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4354         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4355         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4356         (AC_CHECK_DECLS_ONCE): Likewise.
4357         Rename file...
4358         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4359         gnulib-tool requires autoconf 2.59 or better.
4360         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4361
4362 2008-04-08  Eric Blake  <ebb9@byu.net>
4363
4364         Use 'git describe --match' if present (added in git 1.5.5).
4365         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4366         if possible.
4367
4368 2008-04-08  Bruno Haible  <bruno@clisp.org>
4369
4370         Add tentative support for OpenServer.
4371         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4372         _ptr, _cnt.
4373         * lib/fpurge.c (fpurge): Likewise.
4374         * lib/freadable.c (freadable): Likewise.
4375         * lib/freadahead.c (freadahead): Likewise.
4376         * lib/freading.c (freading): Likewise.
4377         * lib/freadptr.c (freadptr): Likewise.
4378         * lib/freadseek.c (freadptrinc): Likewise.
4379         * lib/fseeko.c (rpl_fseeko): Likewise.
4380         * lib/fseterr.c (fseterr): Likewise.
4381         * lib/fwritable.c (fwritable): Likewise.
4382         * lib/fwriting.c (fwriting): Likewise.
4383         Reported by Roger Cornelius <rac@tenzing.org> and
4384         Brian K. White <brian@aljex.com>.
4385
4386 2008-04-06  Jim Meyering  <meyering@redhat.com>
4387
4388         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4389
4390 2008-04-06  Bruno Haible  <bruno@clisp.org>
4391
4392         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4393         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4394         * tests/test-printf-posix.sh: Likewise.
4395         * tests/test-vfprintf-posix.sh: Likewise.
4396         * tests/test-vprintf-posix.sh: Likewise.
4397         * tests/test-xprintf-posix.sh: Likewise.
4398
4399 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4400
4401         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4402         hide error from 'ls', needed on OS/2.
4403         Report by Elbert Pol <elbert.pol@gmail.com>.
4404
4405 2008-04-04  Eric Blake  <ebb9@byu.net>
4406
4407         Make test-fseeko.c failures meaningful.
4408         * tests/test-fseeko.c: Print line number on failure.
4409         * tests/test-fseek.c: Likewise.
4410         Reported by Nelson H. F. Beebe.
4411
4412         Improve strtod bug detection check.
4413         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4414         required for Solaris 10.
4415         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4416
4417 2008-04-04  Bruno Haible  <bruno@clisp.org>
4418
4419         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4420         by m4/setenv.m4.
4421
4422 2008-04-03  Eric Blake  <ebb9@byu.net>
4423
4424         Ensure sane .version contents.
4425         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4426         version string.
4427         * build-aux/git-version-gen: Improve documentation.
4428
4429         Make GNU make output nicer.
4430         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4431         MAKECMDGOALS to enforce message for all command line targets.  Set
4432         srcdir for use in maint.mk.
4433
4434         Another maintainer tweak.
4435         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4436         a target that regenerates version.
4437
4438 2008-04-03  Jim Meyering  <meyering@redhat.com>
4439
4440         vc-list-files: don't cause coreutils "make po-check" failure
4441         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4442
4443 2008-04-03  Eric Blake  <ebb9@byu.net>
4444
4445         Allow VPATH usage of vc-list-files.
4446         * build-aux/vc-list-files (scriptversion): Add timestamp.
4447         (options): Add --help, --version, -C.
4448         (CVS): Support installed cvsu.
4449
4450 2008-04-02  Bruno Haible  <bruno@clisp.org>
4451
4452         Avoid some "statement with no effect" warnings from gcc.
4453         * tests/test-wctype.c (main): Explicitly ignore unused values.
4454         Reported by Jim Meyering.
4455
4456 2008-04-02  Jim Meyering  <meyering@redhat.com>
4457
4458         Avoid some warnings from "gcc -Wshadow".
4459         * tests/test-frexp.c (exp): Define to a different identifier.
4460         * tests/test-frexpl.c (exp): Likewise.
4461
4462 2008-04-03  Jim Meyering  <meyering@redhat.com>
4463
4464         bootstrap: remove dangling *.[ch] symlinks from lib
4465         * build-aux/bootstrap [dangling symlink removal]: Move find's
4466         -depth option to precede all others, to avoid a warning.
4467         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4468
4469 2008-04-02  Bruno Haible  <bruno@clisp.org>
4470
4471         Avoid some warnings from "gcc -Wshadow".
4472         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4473         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4474         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4475         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4476         Reported by Jim Meyering.
4477
4478 2008-04-01  Bruno Haible  <bruno@clisp.org>
4479
4480         Fix test to work on IRIX 6.5 with cc.
4481         * tests/test-math.c (numeric_equal): New function.
4482         (main): Use it.
4483
4484 2008-04-01  Bruno Haible  <bruno@clisp.org>
4485
4486         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4487
4488 2008-04-01  Bruno Haible  <bruno@clisp.org>
4489
4490         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4491         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4492         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4493         (Depends-on): Remove math.
4494
4495         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4496         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4497         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4498         (Depends-on): Remove math.
4499
4500         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4501         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4502         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4503         (Depends-on): Remove math.
4504         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4505         (Depends-on): Remove math.
4506
4507         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4508         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4509         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4510         (Depends-on): Remove math.
4511         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4512         (Depends-on): Remove math.
4513
4514         * tests/test-round1.c: Include nan.h.
4515         (main): Use NaNd instead of NAN.
4516         * modules/round-tests (Files): Add tests/nan.h.
4517
4518         * tests/test-trunc1.c: Include nan.h.
4519         (main): Use NaNd instead of NAN.
4520         * modules/trunc-tests (Files): Add tests/nan.h.
4521
4522         * tests/test-roundf1.c: Include nan.h.
4523         (main): Use NaNf instead of NAN.
4524         * modules/roundf-tests (Files): Add tests/nan.h.
4525
4526         * tests/test-truncf1.c: Include nan.h.
4527         (main): Use NaNf instead of NAN.
4528         * modules/truncf-tests (Files): Add tests/nan.h.
4529
4530         * tests/test-ceilf1.c: Include nan.h.
4531         (main): Use NaNf instead of NAN.
4532         * modules/ceilf-tests (Files): Add tests/nan.h.
4533
4534         * tests/test-floorf1.c: Include nan.h.
4535         (main): Use NaNf instead of NAN.
4536         * modules/floorf-tests (Files): Add tests/nan.h.
4537
4538         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4539         (main): Use NaNf instead of NAN.
4540         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4541
4542         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4543         (main): Use NaNd instead of NAN.
4544         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4545
4546         * tests/test-frexp.c: Include nan.h.
4547         (main): Use NaNd instead of NAN.
4548         * modules/frexp-tests (Files): Add tests/nan.h.
4549
4550         * lib/isnan.c: Don't include <math.h>.
4551         (FUNC): Don't use NAN macro.
4552         * modules/isnand-nolibm (Depends-on): Remove math.
4553         * modules/isnanf-nolibm (Depends-on): Remove math.
4554         * modules/isnanl (Depends-on): Remove math.
4555         * modules/isnanl-nolibm (Depends-on): Remove math.
4556
4557         * tests/nan.h: New file.
4558
4559 2008-04-01  Eric Blake  <ebb9@byu.net>
4560
4561         Fix typos.
4562         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4563         values to be the right type.
4564
4565         For now, cater to gnulib strtod inaccuracies.
4566         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4567         fractional results.  While not as nice from a QoI perspective, it
4568         is a quicker patch than correctly implementing decimal to binary
4569         rounding.
4570
4571 2008-03-31  Eric Blake  <ebb9@byu.net>
4572
4573         Guarantee a definition of NAN.
4574         * lib/math.in.h (NAN): Define if missing.
4575         * tests/test-math.c (main): Test it.
4576         * doc/posix-headers/math.texi (math.h): Document this.
4577         * lib/isnan.c (rpl_isnand): Use it.
4578         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4579         * tests/test-floorf1.c (NaN): Likewise.
4580         * tests/test-frexp.c (NaN): Likewise.
4581         * tests/test-isnand.c (NaN): Likewise.
4582         * tests/test-isnanf.c (NaN): Likewise.
4583         * tests/test-round1.c (NaN): Likewise.
4584         * tests/test-roundf1.c (NaN): Likewise.
4585         * tests/test-snprintf-posix.h (NaN): Likewise.
4586         * tests/test-sprintf-posix.h (NaN): Likewise.
4587         * tests/test-trunc1.c (NaN): Likewise.
4588         * tests/test-truncf1.c (NaN): Likewise.
4589         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4590         * tests/test-vasprintf-posix.c (NaN): Likewise.
4591         * modules/isnand-nolibm (Depends-on): Add math.
4592         * modules/isnanf-nolibm (Depends-on): Likewise.
4593         * modules/isnanl (Depends-on): Likewise.
4594         * modules/isnanl-nolibm (Depends-on): Likewise.
4595         * modules/snprintf-posix-tests (Depends-on): Likewise.
4596         * modules/sprintf-posix-tests (Depends-on): Likewise.
4597         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4598         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4599         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4600         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4601
4602 2008-03-31  Bruno Haible  <bruno@clisp.org>
4603
4604         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4605         * doc/posix-functions/strtod.texi: Likewise.
4606
4607 2008-03-31  Bruno Haible  <bruno@clisp.org>
4608
4609         * tests/test-strtod.c (main): Don't use C99 syntax.
4610
4611 2008-03-31  Bruno Haible  <bruno@clisp.org>
4612
4613         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4614         Reported by Eric Blake.
4615
4616 2008-03-31  Jim Meyering  <meyering@redhat.com>
4617
4618         Don't compare actual signbit return values.
4619         * tests/test-strtod.c (main): Rather, compare only their
4620         zero/non-zero nature.
4621
4622 2008-03-31  Eric Blake  <ebb9@byu.net>
4623
4624         More strtod documentation.
4625         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4626         failures as distinct bugs.
4627
4628 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4629
4630         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4631         Problem reported by Erik Benada in
4632         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4633
4634 2008-03-30  Bruno Haible  <bruno@clisp.org>
4635
4636         * tests/test-strtod.c: Add comments about which assertion fails on which
4637         platform.
4638         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4639
4640 2008-03-30  Eric Blake  <ebb9@byu.net>
4641
4642         Test signbit behavior on zeros.
4643         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4644         (test_signbitd, test_signbitl): Likewise.
4645
4646         More strtod touchups.
4647         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4648         sign of negative underflow, for now.  Use .5, not .1.
4649         * doc/posix-functions/strtod.texi (strtod): Mention these
4650         limitations.
4651         Reported by Jim Meyering.
4652
4653 2008-03-30  Bruno Haible  <bruno@clisp.org>
4654
4655         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4656         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4657
4658 2008-03-30  Bruno Haible  <bruno@clisp.org>
4659
4660         Avoid failure when attempting to return empty iconv results on some
4661         platforms.
4662         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4663         allocation, don't report ENOMEM when the resulting string is empty.
4664
4665 2008-03-30  Bruno Haible  <bruno@clisp.org>
4666
4667         Fix buffer overrun.
4668         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4669         Don't consider the width for tmp_length. Check count against tmp_length
4670         before doing the padding. Ensure enough allocation during padding.
4671
4672 2008-03-30  Eric Blake  <ebb9@byu.net>
4673
4674         strtod touchups.
4675         * lib/strtod.c (strtod): Avoid compiler warnings.
4676         Reported by Jim Meyering.
4677
4678 2008-03-30  Bruno Haible  <bruno@clisp.org>
4679
4680         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4681         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4682         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4683         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4684         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4685         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4686         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4687         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4688
4689         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4690         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4691         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4692         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4693         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4694         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4695         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4696         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4697
4698         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4699         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4700         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4701         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4702         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4703         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4704         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4705         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4706
4707         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4708         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4709
4710         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4711         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4712
4713         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4714         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4715
4716         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4718         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4719
4720         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4722         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4723
4724         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4725         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4726         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4727
4728         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4730         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4731
4732         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4733         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4735         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4736         (Depends-on): Add EOVERFLOW.
4737         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4738         (Depends-on): Add EOVERFLOW.
4739         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4740         (Depends-on): Add EOVERFLOW.
4741         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4742         (Depends-on): Add EOVERFLOW.
4743         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4744         (Depends-on): Add EOVERFLOW.
4745         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4746         (Depends-on): Add EOVERFLOW.
4747         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4748         (Depends-on): Add EOVERFLOW.
4749         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4750         (Depends-on): Add EOVERFLOW.
4751
4752         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4754         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4755
4756         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4758         * modules/snprintf (Depends-on): Add EOVERFLOW.
4759
4760         * lib/poll.c (EOVERFLOW): Remove fallback.
4761         * modules/poll (Depends-on): Add EOVERFLOW.
4762
4763         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4764         * modules/getugroups (Depends-on): Add EOVERFLOW.
4765
4766         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4767         * modules/getdelim (Depends-on): Add EOVERFLOW.
4768
4769         * lib/ftell.c (EOVERFLOW): Remove fallback.
4770         * modules/ftell (Depends-on): Add EOVERFLOW.
4771
4772         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4774         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4775
4776         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4777
4778         * modules/EOVERFLOW-tests: New file.
4779         * tests/test-EOVERFLOW.c: New file.
4780
4781         * modules/EOVERFLOW: New file.
4782         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4783
4784 2008-03-30  Bruno Haible  <bruno@clisp.org>
4785
4786         Fix bug introduced on 2007-06-10.
4787         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4788         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4789
4790 2008-03-30  Bruno Haible  <bruno@clisp.org>
4791
4792         Improve freadseek's efficiency after ungetc.
4793         * lib/freadseek.c: Include freadahead.h.
4794         (freadptrinc): New function, extracted from freadseek.
4795         (freadseek): Use it in a loop. Use freadahead to determine the number
4796         of loop iterations.
4797         * modules/freadseek (Depends-on): Add freadahead.
4798         (configure.ac): Require AC_C_INLINE.
4799
4800 2008-03-30  Bruno Haible  <bruno@clisp.org>
4801
4802         * lib/freadseek.c (freadseek): Don't ignore the return value of
4803         freadptr.
4804
4805 2008-03-29  Eric Blake  <ebb9@byu.net>
4806
4807         Add hex float support.
4808         * modules/strtod (Depends-on): Add c-ctype.
4809         (Link): Mention POW_LIB.
4810         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4811         whitespace between 'e' and exponent.
4812         * tests/test-strtod.c (main): Enable hex float tests.
4813         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4814         now provides.
4815
4816         Document various strtod bugs, with some fixes.
4817         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4818         "-0x", "inf", "nan", and hex constants.
4819         * doc/posix-functions/atof.texi (atof): Likewise.
4820         * modules/stdlib (Makefile.am): Support strtod.
4821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4822         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4823         detect additional strtod bugs.
4824         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4825         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4826         bool where appropriate.  Parse 'inf' and 'nan'.
4827         * tests/test-strtod.c: New file.
4828         * modules/strtod (Depends-on): Add stdbool, stdlib.
4829         (configure.ac): Turn on module indicator.
4830         * modules/strtod-tests: New module.
4831
4832 2008-03-29  Eric Blake  <ebb9@byu.net>
4833
4834         Fix ftell on mingw.
4835         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4836         * modules/ftell-tests (Depends-on): Add binary-io.
4837         * modules/ftello-tests (Depends-on): Likewise.
4838         * tests/test-ftell.c (main): Enhance test to cover behavior after
4839         ungetc.  Enforce binary mode.
4840         * tests/test-ftello.c (main): Likewise.
4841
4842         Pass test-freadseek on cygwin.
4843         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4844         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4845         ungetc buffer.
4846
4847         * tests/test-fflush2.c (main): Fix typo.
4848
4849 2008-03-29  Bruno Haible  <bruno@clisp.org>
4850
4851         * tests/test-fflush2.c (main): Temporarily disable the contents of
4852         this test.
4853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4854         Reported by Eric Blake.
4855
4856 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4857
4858         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4859         (GC_SHA224_DIGEST_SIZE): Add.
4860
4861         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4862         (gc_hash_digest_length): Likewise.
4863         (gc_hash_buffer): Likewise.
4864
4865 2008-03-25  Bruno Haible  <bruno@clisp.org>
4866
4867         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4868         detail which gettext release to use.
4869         Reported by Simon Josefsson.
4870
4871 2008-03-26  Jim Meyering  <meyering@redhat.com>
4872
4873         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4874         * modules/gnumakefile (clean-GNUmakefile): Also, use
4875         test ... && ... || : syntax rather than if-then ... fi.
4876
4877         gnumakefile: Don't double-quote-expand $(VPATH) value.
4878         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4879
4880 2008-03-24  Eric Blake  <ebb9@byu.net>
4881
4882         Alter GNUmakefile to install into top directory.
4883         * modules/maintainer-makefile: Split, and add dependency...
4884         * modules/gnumakefile: to this new module.
4885         * build-aux/GNUmakefile: Move...
4886         * top/GNUmakefile: ...here.
4887         * build-aux/maint.mk: Move...
4888         * top/maint.mk: ...here.
4889         * MODULES.html.sh (Support for maintaining...): Document new
4890         module.
4891
4892 2008-03-23  Bruno Haible  <bruno@clisp.org>
4893
4894         * gnulib-tool: New options --vc-files, --no-vc-files.
4895         (func_usage): Document them.
4896         (vc_files): New variable.
4897         (func_import): Consider vc_files.
4898         (func_create_testdir): Set vc_files to empty.
4899         Suggested by Jim Meyering and Karl Berry.
4900
4901 2008-03-23  Bruno Haible  <bruno@clisp.org>
4902
4903         Fix regex compilation error on HP-UX 11.
4904         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4905         * modules/regex (Files): Add m4/mbstate_t.m4.
4906         Reported by Ton Voon <ton.voon@altinity.com>.
4907
4908 2008-03-23  Bruno Haible  <bruno@clisp.org>
4909
4910         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4911
4912 2008-03-23  Eric Blake  <ebb9@byu.net>
4913             Bruno Haible  <bruno@clisp.org>
4914
4915         Install files from top/ in the destination directory.
4916         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4917         augmentation also for the files from top/.
4918         (func_import, func_create_testdir): Rewrite file names:
4919         top/filename -> filename.
4920
4921 2008-03-23  Bruno Haible  <bruno@clisp.org>
4922
4923         Tweak "gnulib --version" output.
4924         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4925
4926 2008-03-23  Bruno Haible  <bruno@clisp.org>
4927
4928         Tweak "gnulib --version" output.
4929         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4930         rather than contents of ChangeLog, when possible.
4931
4932 2008-03-21  Eric Blake  <ebb9@byu.net>
4933
4934         More --version tweaks.
4935         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4936         date of last ChangeLog entry.
4937
4938 2008-03-21  Jim Meyering  <meyering@redhat.com>
4939
4940         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4941
4942 2008-03-20  Eric Blake  <ebb9@byu.net>
4943
4944         VPATH fix.
4945         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4946
4947 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4948
4949         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4950         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4951
4952 2008-03-20  Eric Blake  <ebb9@byu.net>
4953
4954         Sync GNUmakefile with coreutils.
4955         * build-aux/GNUmakefile (have-Makefile): Rename...
4956         (_have-Makefile): ...to this, for namespace consideration.
4957         (GNUmakefile.cfg): Include, if present.
4958         (_autoreconf): Define a default.
4959         (_is-dist-target): New rule for rebuilds to pick up intra-release
4960         version.
4961         (maint-cfg.mk): Rename...
4962         (cfg.mk): ...to this.
4963
4964 2008-03-18  Jim Meyering  <meyering@redhat.com>
4965
4966         New script and module: mktempd
4967         * MODULES.html.sh (maint+release support): Add mktempd.
4968         * build-aux/mktempd: New file.
4969         * modules/mktempd: New file.
4970
4971 2008-03-15  Jim Meyering  <meyering@redhat.com>
4972
4973         Undo last change.
4974         * lib/sha1.c, lib/md5.c: 63 != ~63.
4975         Reported by Andreas Schwab.
4976
4977         sha1.c, md5.c: Hoist a redundant expression.
4978         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4979         "ctx->buflen" only once, before calling *_process_block.
4980         * lib/md5.c (md5_process_bytes): Likewise.
4981
4982 2008-03-14  Eric Blake  <ebb9@byu.net>
4983
4984         Bump copyright year in files generated by gnulib-tool.
4985         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4986         gnulib-tool, rather than hard-coding it.
4987
4988         Fix 'gnulib-tool --version' output to work with git.
4989         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4990         (startup): ...here.
4991         (func_version): Use it to invoke git-version-gen, rather than
4992         relying on CVS keyword expansion.  Modernize wording.
4993         (cvsdatestamp, last_checkin_date, version): Kill unused
4994         variables.
4995
4996 2008-03-12  Jim Meyering  <meyering@redhat.com>
4997
4998         Recognize optional cast of the argument to free.
4999         * build-aux/useless-if-before-free: Update regexps.
5000
5001         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
5002
5003 2008-03-11  Bruno Haible  <bruno@clisp.org>
5004
5005         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
5006         by a single package.
5007         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
5008         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
5009         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
5010         Reported by Sam Steingold <sds@gnu.org>.
5011
5012 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5013
5014         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
5015         repositories.
5016
5017 2008-03-11  Bruno Haible  <bruno@clisp.org>
5018
5019         Avoid conflicts between local macro definitions.
5020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5021         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
5022
5023 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
5024             Bruno Haible  <bruno@clisp.org>
5025
5026         Make va_copy work with some version of xlc on AIX 5.1.
5027         * lib/stdarg.in.h: New file.
5028         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
5029         On AIX, use a <stdarg.h> file substitute.
5030         * modules/stdarg (Files): Add lib/stdarg.in.h.
5031         (Depends-on): Add include_next.
5032         (Makefile.am): Build a stdarg.h substitute if requested.
5033         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
5034
5035 2008-03-10  Bruno Haible  <bruno@clisp.org>
5036
5037         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
5038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5039         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5040
5041 2008-03-10  Bruno Haible  <bruno@clisp.org>
5042
5043         * modules/stdlib (Depends-on): Add include_next, remove
5044         absolute-header.
5045
5046 2008-03-09  Bruno Haible  <bruno@clisp.org>
5047
5048         * lib/freadahead.h (freadahead): Document more precisely.
5049         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
5050         the sum of both buffer sizes.
5051         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
5052         * NEWS: Document the change.
5053
5054 2008-03-09  Bruno Haible  <bruno@clisp.org>
5055
5056         Extend freadptr to return also the buffer size.
5057         * lib/freadptr.h (freadptr): Add sizep argument.
5058         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
5059         (freadptr): Add sizep argument. Determine buffer size like freadahead
5060         does.
5061         * tests/test-freadptr.c: Don't include freadahead.h.
5062         (main): Adapt for new calling convention of freadptr.
5063         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
5064         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
5065         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
5066         tests/test-freadptr2.sh.
5067         (Depends): Remove freadahead.
5068         (TESTS): Add test-freadptr2.sh.
5069         (check_PROGRAMS): Add test-freadptr2.
5070
5071 2008-03-09  Bruno Haible  <bruno@clisp.org>
5072
5073         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
5074         Report and solution by Simon Josefsson.
5075
5076 2008-03-06  Bruno Haible  <bruno@clisp.org>
5077
5078         Make fflush after ungetc work on BSD platforms.
5079         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
5080         * tests/test-fflush2.c: New file.
5081         * tests/test-fflush2.sh: New file.
5082         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
5083         tests/test-fflush2.c.
5084         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
5085         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
5086
5087 2008-03-06  Eric Blake  <ebb9@byu.net>
5088
5089         Likewise for ftello.
5090         * modules/ftello (Dependencies): Add extensions.
5091         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
5092
5093 2008-03-06  Bruno Haible  <bruno@clisp.org>
5094
5095         * modules/fseeko (Dependencies): Add extensions.
5096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
5097         Needed on glibc systems.
5098
5099 2008-03-06  Bruno Haible  <bruno@clisp.org>
5100
5101         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
5102         email address.
5103         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5104
5105 2008-03-06  Bruno Haible  <bruno@clisp.org>
5106
5107         * users.txt: Add libgnupdf.
5108
5109 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5110
5111         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
5112         (Header File Substitutes, Function Substitutes,
5113         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
5114         (Build robot for gnulib): Fix typo.
5115
5116 2008-03-06  Bruno Haible  <bruno@clisp.org>
5117
5118         * doc/gnulib-tool.texi (VCS Issues): Small updates.
5119         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5120
5121 2008-03-06  Bruno Haible  <bruno@clisp.org>
5122
5123         * doc/func.texi: New file, extracted from doc/gnulib.texi.
5124         * doc/gnulib.texi: Include it.
5125
5126 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5127
5128         * modules/func (License): Change license to unlimited; there was
5129         no LGPL parts in the module anyway.
5130
5131 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5132
5133         * modules/__func__: Renamed to modules/func.
5134         * modules/__func__-tests: Renamed to modules/func-tests.
5135         * tests/test-__func__.c: Renamed to tests/test-func.c.
5136         * m4/__func__.m4: Renamed to m4/func.m4.
5137         * doc/gnulib.texi (__func__): Section renamed to func.
5138         Suggested by Eric Blake <ebb9@byu.net>.
5139
5140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5141
5142         * doc/gnulib.texi (__func__): Use C99 terminology when talking
5143         about __func__.  Make example self-contained.  Suggested by Eric
5144         Blake <ebb9@byu.net>.
5145
5146         * tests/test-__func__.c (main): Avoid extraneous () around __func.
5147         Suggested by Eric Blake <ebb9@byu.net>.
5148
5149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
5150
5151         * modules/__func__: New file.
5152         * modules/__func__-tests: New file.
5153         * tests/test-__func__.c: New file.
5154         * m4/__func__.m4: New file.
5155         * doc/gnulib.texi (__func__): Document __func__ module.
5156
5157 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5158
5159         * modules/byteswap (License): Re-license as LGPLv2+.
5160
5161 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5162
5163         * doc/Makefile: Add pdf target.
5164
5165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5166
5167         * modules/inline (License): Use 'unlimited', since there are only
5168         *.m4 files in this module.
5169
5170 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5171             Bruno Haible  <bruno@clisp.org>
5172
5173         Add support for HP C 7.1 on OpenVMS 8.3.
5174         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5175
5176 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5177
5178         Update VMS specifics.
5179         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5180
5181 2008-03-02  Jim Meyering  <meyering@redhat.com>
5182
5183         Remove the last dependency on the "free" module.
5184         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5185         Reported by Bob Proulx.
5186
5187         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5188
5189         Remove useless "if" tests before free.  Deprecate "free" module.
5190         * doc/posix-functions/free.texi: Mention that this
5191         module is no longer useful.
5192         * modules/free (Notice): Say this module is obsolete.
5193         * modules/readutmp (Depends-on): Remove free.
5194         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5195         * lib/putenv.c (putenv): Likewise.
5196         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5197         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5198         * tests/test-c-strcasestr.c (main): Likewise.
5199         * tests/test-c-strstr.c (main): Likewise.
5200         * tests/test-mbscasestr1.c (main): Likewise.
5201         * tests/test-mbscasestr2.c (main): Likewise.
5202         * tests/test-mbsstr1.c (main): Likewise.
5203         * tests/test-mbsstr2.c (main): Likewise.
5204         * tests/test-memmem.c (main): Likewise.
5205         * tests/test-strcasestr.c (main): Likewise.
5206         * tests/test-striconv.c (main): Likewise.
5207         * tests/test-striconveh.c (main): Likewise.
5208         * tests/test-striconveha.c (main): Likewise.
5209         * tests/test-strstr.c (main): Likewise.
5210
5211         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5212
5213         bootstrap: sync from coreutils again
5214         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5215
5216 2008-03-01  Jim Meyering  <meyering@redhat.com>
5217
5218         bootstrap: sync from coreutils
5219         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5220         also when the target doesn't exist.
5221
5222 2008-03-01  Eric Blake  <ebb9@byu.net>
5223
5224         Fix bugs in last patch.
5225         * lib/memchr2.c (memchr2): Fix typo.
5226         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5227         extension.
5228         Reported by Bruce Korb.
5229
5230         New module 'memchr2'.
5231         * modules/memchr2: New file.
5232         * modules/memchr2-tests: Likewise.
5233         * lib/memchr2.h: Likewise.
5234         * lib/memchr2.c: Likewise, based on memchr.c.
5235         * tests/test-memchr2.c: New test.
5236         * MODULES.html.sh (String handling): Add memchr2.
5237
5238 2008-02-29  Bruno Haible  <bruno@clisp.org>
5239
5240         * modules/freadseek-tests: New file.
5241         * tests/test-freadseek.sh: New file.
5242         * tests/test-freadseek.c: New file.
5243
5244         New module 'freadseek'.
5245         * modules/freadseek: New file.
5246         * lib/freadseek.h: New file.
5247         * lib/freadseek.c: New file.
5248         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5249
5250 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5251
5252         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5253         wydawca.
5254
5255         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5256         program_invocation_name and program_invocation_short_name are
5257         present.
5258
5259 2008-02-28  Bruno Haible  <bruno@clisp.org>
5260
5261         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5262         * tests/test-freadptr.sh: Also test non-seekable stdin.
5263
5264 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5265
5266         * build-aux/bootstrap (source_base, m4_base)
5267         (doc_base, tests_base): New variables.
5268         (gnulib_tool_options): Do not hardcode base directories, use
5269         the above variables instead.
5270
5271 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5272
5273         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5274
5275 2008-02-28  Bruno Haible  <bruno@clisp.org>
5276
5277         * modules/freadptr-tests: New file.
5278         * tests/test-freadptr.sh: New file.
5279         * tests/test-freadptr.c: New file.
5280
5281         New module 'freadptr'.
5282         * modules/freadptr: New file.
5283         * lib/freadptr.h: New file.
5284         * lib/freadptr.c: New file.
5285         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5286
5287 2008-02-26  Karl Berry  <karl@freefriends.org>
5288
5289         Sync from Libtool:
5290         * libltdl/argz.c (argz_add, argz_count): New functions.
5291         * libltdl/argz.in.h: Declare them.
5292         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5293
5294 2008-02-22  Bruno Haible  <bruno@clisp.org>
5295
5296         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5297         is a pointer type.  Needed for HP-UX 10.
5298         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5299         * doc/posix-functions/gmtime_r.texi: Likewise.
5300         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5301
5302 2008-02-24  Bruno Haible  <bruno@clisp.org>
5303
5304         * modules/environ-tests: New file.
5305         * tests/test-environ.c: New file.
5306
5307         New module 'environ'.
5308         * modules/environ: New file.
5309         * lib/unistd.in.h (environ): New declaration.
5310         * m4/environ.m4: New file.
5311         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5312         after use.
5313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5314         HAVE_DECL_ENVIRON.
5315         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5316         HAVE_DECL_ENVIRON.
5317         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5318         wrong claim that 'environ' is missing on some systems.
5319         * modules/execute (Depends-on): Add environ.
5320         * lib/execute.c (environ): Remove fallback declaration.
5321         * modules/pipe (Depends-on): Add environ.
5322         * lib/pipe.c (environ): Remove fallback declaration.
5323         * modules/setenv (Depends-on): Add environ.
5324         * lib/setenv.c (environ): Remove fallback declaration.
5325         * modules/unsetenv (Depends-on): Add environ.
5326         * lib/unsetenv.c (environ): Remove fallback declaration.
5327         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5328         m4/environ.m4.
5329         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5330         (gl_PREREQ_UNSETENV): Likewise.
5331
5332 2008-02-24  Bruno Haible  <bruno@clisp.org>
5333
5334         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5335
5336 2008-02-20  Bob Proulx  <bob@proulx.com>
5337
5338         Enable use of older two part flavor 'git describe'.
5339         * build-aux/git-version-gen: If using the older two part flavor of
5340         git version then recreate the third part now present in the
5341         newer three part flavor of git describe.
5342
5343 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5344
5345         * lib/fts.c (fts_build): Typo correction to comment.
5346
5347 2008-02-17  Bruno Haible  <bruno@clisp.org>
5348
5349         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5350         generating no-op conflicts.
5351
5352 2008-02-17  Bruno Haible  <bruno@clisp.org>
5353
5354         Speed up by 10%.
5355         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5356         result_entries, rather than an index-based loop.
5357
5358 2008-02-17  Bruno Haible  <bruno@clisp.org>
5359
5360         Speed up by 25%.
5361         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5362         'hashcode_cached'.
5363         (entry_create): New function.
5364         (entry_hashcode): Use the cached hashcode if possible.
5365         (read_changelog_file, try_split_merged_entry): Use entry_create.
5366
5367 2008-02-17  Bruno Haible  <bruno@clisp.org>
5368
5369         Speed up from O(n^2) to O(n) for long ChangeLog files.
5370         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5371         (read_changelog_file): Change implementation of entries_reversed list
5372         to rbtreehash.
5373         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5374
5375 2008-02-17  Bruno Haible  <bruno@clisp.org>
5376
5377         New option --split-merged-entry.
5378         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5379         (find_paragraph_end, try_split_merged_entry): New functions.
5380         (long_options): Add option --split-merged-entry.
5381         (usage): Document option --split-merged-entry.
5382         (main): Implement option --split-merged-entry.
5383         Reported by Eric Blake.
5384
5385 2008-02-17  Bruno Haible  <bruno@clisp.org>
5386
5387         * lib/git-merge-changelog.c: Include c-strstr.h.
5388         (main): Support the "git pull --rebase" situation.
5389         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5390         Reported by Eric Blake.
5391
5392 2008-02-16  Eric Blake  <ebb9@byu.net>
5393
5394         Avoid doubling \ in common case of "c-maybe" quoting style.
5395         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5396         eliding outer quotes.
5397         * lib/quotearg.h: Document this.
5398         * tests/test-quotearg.c (result_strings, inputs, results_g)
5399         (flag_results, locale_results): Test it by adding a new string to
5400         each test group.
5401         (compare_strings): Test new string.
5402
5403 2008-02-13  Eric Blake  <ebb9@byu.net>
5404
5405         Avoid trigraph quoting in default output.
5406         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5407         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5408         unless explicitly requested.
5409         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5410
5411 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5412
5413         Don't rely on signed integer overflowing to negative value.
5414         * lib/getugroups.c (getugroups): Include <limits.h>.
5415         Instead, compare against INT_MAX, and increment only if the test passes.
5416
5417 2008-02-13  Jim Meyering  <meyering@redhat.com>
5418         and Eric Blake  <ebb9@byu.net>
5419
5420         Avoid shadowing warning and compile errors on Linux.
5421         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5422         forwarding macros on Linux.
5423         (dcgettext): Define a stub, for Linux.
5424         (results_g, main): Avoid warnings.
5425
5426 2008-02-12  Eric Blake  <ebb9@byu.net>
5427
5428         Silence warning in last patch.
5429         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5430
5431         Quotearg part 4: add tests, fix c-maybe colon quoting.
5432         * lib/quotearg.h: Improve documentation.
5433         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5434         escapes when adding outer quotes.  When quoting trigraphs, use
5435         valid C notation.  When quoting NUL, omit extra characters if next
5436         character is not digit.  Alter prototype.
5437         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5438         callers.
5439         * modules/quotearg-tests: New module.
5440         * tests/test-quotearg.c: New test.
5441
5442 2008-02-07  Eric Blake  <ebb9@byu.net>
5443
5444         Quotearg part 3: add flag to control outer quote elision.
5445         * lib/quotearg.h (c_maybe_quoting_style): New style.
5446         (enum quoting_flags): Better documentation of flags.
5447         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5448         c-maybe style.
5449         (quotearg_buffer_restyled): Handle new flag to elide outer
5450         quotes.
5451
5452         Quotearg part 2: add flag that can control NUL elision.
5453         * lib/quotearg.h (set_quoting_flags): New prototype.
5454         * lib/quotearg.c (struct quoting_options): Add flag field.
5455         (set_quoting_flags): New function.
5456         (quotearg_buffer_restyled): Add flags parameter.
5457         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5458         (quotearg_n_options): Set the flag, since length cannot be
5459         returned.
5460         (quoting_options_from_style): Default flags correctly.
5461
5462         Quotearg part 1: more wrappers, restore quotearg_char state.
5463         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5464         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5465         (quotearg_colon_mem): New wrappers.
5466         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5467         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5468         functions.
5469         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5470         (quotearg_colon_mem): New functions.
5471
5472 2008-02-11  Bruno Haible  <bruno@clisp.org>
5473
5474         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5475         library in the current directory: it does not work with parallel make.
5476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5477
5478 2008-02-11  Bruno Haible  <bruno@clisp.org>
5479
5480         * .gitattributes: New file.
5481
5482 2008-02-11  Jim Meyering  <meyering@redhat.com>
5483
5484         useless-if-before-free: Fix reversed exit values.
5485         * build-aux/useless-if-before-free: Use correct values
5486         for EXIT_MATCH and EXIT_NO_MATCH.
5487
5488         * build-aux/useless-if-before-free: Close stdout carefully.
5489
5490 2008-02-10  Bruno Haible  <bruno@clisp.org>
5491
5492         New module 'git-merge-changelog'.
5493         * modules/git-merge-changelog: New file.
5494         * lib/git-merge-changelog.c: New file.
5495
5496 2008-02-10  Jim Meyering  <meyering@redhat.com>
5497
5498         useless-if-before-free: New option: --list (-l).
5499
5500         useless-if-before-free: Don't exit immediately upon open failure.
5501         * build-aux/useless-if-before-free: Exit 2 for errors.
5502         Upon failure to open a file, don't exit immediately.
5503         Rather, just warn and continue with any remaining files.
5504
5505 2008-02-10  Bruno Haible  <bruno@clisp.org>
5506
5507         New abstract list operation 'node_set_value'.
5508         * lib/gl_list.h (gl_list_node_set_value): New function.
5509         (struct gl_list_implementation): New field node_set_value.
5510         * lib/gl_list.c (gl_list_node_set_value): New function.
5511         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5512         (gl_array_list_implementation): Update.
5513         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5514         (gl_carray_list_implementation): Update.
5515         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5516         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5517         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5518         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5519         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5520         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5521         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5522         Update.
5523         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5524         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5525         (gl_sublist_list_implementation): Update.
5526
5527 2008-02-10  Bruno Haible  <bruno@clisp.org>
5528
5529         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5530         Needed when ELEMENT is #defined to 'some_type *'.
5531
5532 2008-02-10  Jim Meyering  <meyering@redhat.com>
5533
5534         New script and module: useless-if-before-free
5535         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5536         * build-aux/useless-if-before-free: New file.
5537         * modules/useless-if-before-free: New file.
5538
5539         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5540
5541         xstrtol_error: Fix typo.
5542         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5543         s/exit_failure/exit_status/.
5544
5545 2008-02-09  Jim Meyering  <meyering@redhat.com>
5546
5547         New script and module: gitlog-to-changelog
5548         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5549         * modules/gitlog-to-changelog: New file.
5550         * build-aux/gitlog-to-changelog: New file.
5551
5552 2008-02-08  Jim Meyering  <meyering@redhat.com>
5553
5554         Avoid two "parameter unused" warnings.
5555         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5556         Mark "st" as used.
5557
5558         Use "git COMMAND", not "git-COMMAND".
5559         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5560         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5561         * build-aux/git-version-gen: Use "git status", not "git-status".
5562
5563 2008-02-07  Bruno Haible  <bruno@clisp.org>
5564
5565         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5566         Avoids a crash on Windows Vista.
5567         Reported by Adam Strzelecki <ono@java.pl> via
5568         Simon Josefsson <simon@josefsson.org>.
5569
5570 2008-02-06  Bruno Haible  <bruno@clisp.org>
5571
5572         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5573         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5574         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5578         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5579         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5587         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5588         left-adjust flag.
5589         * tests/test-snprintf-posix.h (test_function): Likewise.
5590         * tests/test-sprintf-posix.h (test_function): Likewise.
5591         * tests/test-vasprintf-posix.c (test_function): Likewise.
5592         * doc/posix-functions/fprintf.texi: Update.
5593         * doc/posix-functions/printf.texi: Update.
5594         * doc/posix-functions/snprintf.texi: Update.
5595         * doc/posix-functions/sprintf.texi: Update.
5596         * doc/posix-functions/vfprintf.texi: Update.
5597         * doc/posix-functions/vprintf.texi: Update.
5598         * doc/posix-functions/vsnprintf.texi: Update.
5599         * doc/posix-functions/vsprintf.texi: Update.
5600         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5601
5602 2008-02-06  Bruno Haible  <bruno@clisp.org>
5603
5604         Fix bug introduced on 2008-01-26.
5605         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5606
5607 2008-02-06  Bruno Haible  <bruno@clisp.org>
5608
5609         Fix bug introduced on 2007-06-10.
5610         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5611         !NEED_PRINTF_FLAG_ZERO.
5612
5613 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5614
5615         getloadavg: use libperfstat on AIX5
5616         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5617
5618 2008-02-03  Bruno Haible  <bruno@clisp.org>
5619
5620         * lib/diffseq.h: Add comments about required #includes.
5621         Reported by Michael Biggs <gnulib@doubleplum.net>.
5622
5623 2008-02-01  Bruno Haible  <bruno@clisp.org>
5624
5625         * users.txt: Add gnuit.
5626
5627 2008-01-31  Bruno Haible  <bruno@clisp.org>
5628
5629         * lib/md4.c (set_uint32): Mark as inline.
5630         * lib/md5.c (set_uint32): Likewise.
5631         * lib/sha1.c (set_uint32): Likewise.
5632         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5633         * m4/md5.m4 (gl_MD5): Likewise.
5634         * m4/sha1.m4 (gl_SHA1): Likewise.
5635
5636 2008-01-31  Jim Meyering  <meyering@redhat.com>
5637
5638         Use "sizeof VAR", rather than a literal "4".
5639         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5640         * lib/md4.c (md4_read_ctx): Likewise.
5641         * lib/sha1.c (sha1_read_ctx): Likewise.
5642
5643 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5644
5645         * tests/test-sha1.c: New file, based on test-md5.c.
5646
5647         * modules/crypto/sha1-tests: New file.
5648
5649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5650
5651         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5652
5653 2008-01-31  Jim Meyering  <meyering@redhat.com>
5654
5655         Prefer "sizeof v" over the equivalent "4".
5656         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5657         * lib/md5.c (set_uint32): Likewise.
5658         * lib/sha1.c (set_uint32): Likewise.
5659
5660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5661
5662         * lib/sha1.c (set_uint32): Mark function as static.
5663
5664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5665
5666         md2: clarify comments to say that alignment is not required.
5667         * lib/md2.h: Remove warning about alignment in comment.
5668         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5669         never been required.
5670
5671 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5672
5673         md4: adapt alignment constraint fix from sha1.
5674         * lib/md4.c (set_uint32): New function, from sha1.c
5675         (md4_read_ctx): Use it.
5676         (md4_finish_ctx): Doc fix.
5677         * lib/md4.h: Doc fix.
5678
5679 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5680
5681         md5: adapt alignment constraint fix from sha1.
5682         * lib/md5.c (set_uint32): New function, from sha1.c
5683         (md5_read_ctx): Use it.
5684         (md5_finish_ctx): Doc fix.
5685         * lib/md5.h: Doc fix.
5686
5687 2008-01-30  Peter Palfrader  <weasel@debian.org>
5688
5689         sha1: remove the result buffer alignment constraint
5690         * lib/sha1.c (set_uint32): New function.
5691         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5692         constraint.
5693         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5694         * lib/sha1.h: Likewise.
5695
5696 2008-01-30  Andreas Schwab  <schwab@suse.de>
5697             Bruno Haible  <bruno@clisp.org>
5698
5699         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5700         correct definition of LDBL_MIN_EXP.
5701
5702 2008-01-30  Karl Berry  <karl@gnu.org>
5703
5704         * config/srclist-update: try to preserve x bit on updates.
5705         * config/srclistvars.sh: update for karl.
5706
5707 2008-01-29  Jim Meyering  <meyering@redhat.com>
5708
5709         vasnprintf.c: Avoid warning about unused label
5710         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5711         "overflow" label definition and associated code with the
5712         same cpp condition that guards the sole use of that label.
5713
5714 2008-01-26  Bruno Haible  <bruno@clisp.org>
5715
5716         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5717         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5718         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5719         * lib/isnanl-nolibm.h (isnanl): Likewise.
5720         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5721
5722 2008-01-26  Bruno Haible  <bruno@clisp.org>
5723
5724         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5725         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5726
5727 2008-01-26  Bruno Haible  <bruno@clisp.org>
5728
5729         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5730         GCC >= 4.0 built-in.
5731         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5732
5733 2008-01-26  Bruno Haible  <bruno@clisp.org>
5734
5735         Rename isnan, applicable to 'double' only, to isnand.
5736         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5737         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5738         (configure.ac): Update.
5739         (Include): Replace "isnan.h" with "isnand.h".
5740         * m4/isnand.m4: Renamed from m4/isnan.m4.
5741         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5742         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5743         instead of isnan.c.
5744         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5745         instead of HAVE_ISNAN_IN_LIBC.
5746         (isnand): Renamed from isnan.
5747         * lib/isnand.c: New file.
5748         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5749         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5750         (Makefile.am): Update.
5751         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5752         Include isnand.h instead of isnan.h.
5753         (main): Test isnand instead of isnan.
5754         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5755         isnan-nolibm.
5756         * modules/frexp (Depends-on): Likewise.
5757         * modules/frexp-tests (Depends-on): Likewise.
5758         * modules/frexp-nolibm (Depends-on): Likewise.
5759         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5760         * modules/isfinite (Depends-on): Likewise.
5761         * modules/round-tests (Depends-on): Likewise.
5762         * modules/signbit (Depends-on): Likewise.
5763         * modules/signbit-tests (Depends-on): Likewise.
5764         * modules/snprintf-posix (Depends-on): Likewise.
5765         * modules/sprintf-posix (Depends-on): Likewise.
5766         * modules/trunc-tests (Depends-on): Likewise.
5767         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5769         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5770         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5771         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5772         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5773         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5774         * modules/vasnprintf-posix (Depends-on): Likewise.
5775         * modules/vasprintf-posix (Depends-on): Likewise.
5776         * modules/vfprintf-posix (Depends-on): Likewise.
5777         * modules/vsnprintf-posix (Depends-on): Likewise.
5778         * modules/vsprintf-posix (Depends-on): Likewise.
5779         * lib/frexp.c: Include isnand.h instead of isnan.h.
5780         (ISNAN): Set to isnand instead of isnan.
5781         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5782         (gl_isfinited): Use isnand instead of isnan.
5783         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5784         (gl_signbitd): Use isnand instead of isnan.
5785         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5786         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5787         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5788         (main): Use isnand instead of isnan.
5789         * tests/test-round1.c: Include isnand.h.
5790         (main): Use isnand instead of isnan.
5791         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5792         (ISNAN): Set to isnand instead of isnan.
5793         * tests/test-trunc1.c: Include isnand.h.
5794         (main): Use isnand instead of isnan.
5795         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5796         (equal): Use isnand instead of isnan.
5797         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5798         isnand-nolibm.
5799         * NEWS: Mention the change.
5800
5801 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5802             Bruno Haible  <bruno@clisp.org>
5803
5804         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5805         the GCC builtins for signbits are present and set
5806         REPLACE_SIGNBIT_USING_GCC if so.
5807         * lib/math.in.h (signbit): Define using GCC builtins if
5808         REPLACE_SIGNBIT_USING_GCC is set.
5809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5810         REPLACE_SIGNBIT_USING_GCC.
5811         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5812
5813 2008-01-25  Jim Meyering  <meyering@redhat.com>
5814
5815         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5816         * lib/poll.c: Include <config.h>, not "config.h".
5817         * tests/test-getaddrinfo.c: Likewise.
5818
5819 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5820
5821         * modules/sockets-tests: New file.
5822
5823 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5824
5825         * modules/sockets: New module, can be used to call WSA_Startup and
5826         WSA_Cleanup when needed.
5827
5828         * lib/sockets.h, lib/sockets.c: New files.
5829
5830         * m4/sockets.m4: New file.
5831
5832         * tests/test-sockets.c: New file.
5833
5834 2008-01-19  Bruno Haible  <bruno@clisp.org>
5835
5836         * doc/posix-headers: Renamed from doc/headers.
5837         * doc/posix-functions: Renamed from doc/functions.
5838         * doc/gnulib.texi: Update.
5839
5840 2008-01-19  Bruno Haible  <bruno@clisp.org>
5841
5842         * doc/glibc-functions/strcasestr.texi: Include contents of
5843         doc/functions/strcasestr.texi, fixing the list of platforms.
5844         * doc/functions/strcasestr.texi: Remove file.
5845
5846 2008-01-19  Bruno Haible  <bruno@clisp.org>
5847
5848         * doc/glibc-functions/memmem.texi: Include contents of
5849         doc/functions/memmem.texi.
5850         * doc/functions/memmem.texi: Remove file.
5851
5852 2008-01-18  Bruno Haible  <bruno@clisp.org>
5853
5854         * doc/glibc-functions/*.texi: New files.
5855         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5856         to use the new files.
5857
5858 2008-01-17  Bruno Haible  <bruno@clisp.org>
5859
5860         * tests/test-gethostname.c (main): Fix printf statement.
5861
5862 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5863
5864         * modules/gethostname-tests: New file.
5865
5866         * tests/test-gethostname.c: New file.
5867
5868 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5869
5870         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5871         used by the UNAME case.  Reported by Bruno Haible
5872         <bruno@clisp.org>.
5873
5874 2008-01-17  Eric Blake  <ebb9@byu.net>
5875
5876         Convert c-strcasestr to be more efficient.
5877         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5878         (Depends-on): Add c-strcase, remove malloca, strnlen.
5879         * tests/test-c-strcasestr.c (main): Enhance test.
5880         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5881
5882 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5883
5884         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5885         Use it in creating po/Makevars.
5886
5887 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5888
5889         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5890         Applications that requires it should initialize libgcrypt
5891         manually.
5892
5893 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5894
5895         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5896
5897 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5898
5899         Fix problem with getdate on mingw32 reported by Simon Josefsson
5900         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5901         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5902         tzname", when deciding whether to declare tzname.
5903         * lib/strftime.c (tzname): Likewise.
5904
5905 2008-01-15  Bruno Haible  <bruno@clisp.org>
5906
5907         Work around a MacOS X 10.5 bug in frexpl().
5908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5909         * doc/functions/frexpl.texi: Document the bug.
5910         Reported by Elias Pipping <pipping@gentoo.org>.
5911
5912 2008-01-14  Eric Blake  <ebb9@byu.net>
5913
5914         Touch up previous patch.
5915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5916         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5917
5918         Convert strcasestr module to use Two-Way algorithm.
5919         * modules/strcasestr-simple: New module, based on the old
5920         strcasestr, but with Two-Way rather than KMP.
5921         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5922         * lib/string.in.h (rpl_strcasestr): Declare.
5923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5924         performance.
5925         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5926         * modules/string (Makefile.am): Support strcasestr.
5927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5928         * modules/strcasestr-tests (Depends-on): Check for alarm.
5929         * tests/test-strcasestr.c: Augment test.
5930         * lib/str-two-way.h: Clean up stray macro.
5931         * NEWS: Document new module.
5932         * MODULES.html.sh (string handling): Likewise.
5933         * doc/functions/strcasestr.texi: New file.
5934         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5935         here, since it is not a POSIX function.
5936
5937 2008-01-14  Colin Watson  <cjwatson@debian.org>
5938             Bruno Haible  <bruno@clisp.org>
5939
5940         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5941         works fine; if not, set REPLACE_STRSIGNAL.
5942         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5944         REPLACE_STRSIGNAL.
5945         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5946         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5947         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5948
5949 2008-01-14  Bruno Haible  <bruno@clisp.org>
5950
5951         * modules/strsignal (Include): Change to <string.h>.
5952
5953 2008-01-14  Colin Watson  <cjwatson@debian.org>
5954
5955         * modules/argp (Notice): Add a notice recommending to change
5956         XGETTEXT_OPTIONS.
5957         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5958
5959 2008-01-13  Colin Watson  <cjwatson@debian.org>
5960
5961         * modules/strsignal-tests: New file.
5962         * tests/test-strsignal.c: New file.
5963
5964         * lib/strsignal.c: New file, from glibc with modifications.
5965         * lib/siglist.h: New file, from glibc with modifications.
5966         * lib/string.in.h (strsignal): New declaration.
5967         * m4/strsignal.m4: New file.
5968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5969         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5970         * modules/strsignal: New file.
5971         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5972         HAVE_DECL_STRSIGNAL.
5973
5974 2008-01-13  Bruno Haible  <bruno@clisp.org>
5975
5976         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5977         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5979         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5980
5981 2008-01-13  Bruno Haible  <bruno@clisp.org>
5982
5983         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5984         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5985         * lib/argp.h (__attribute__): Likewise.
5986         * lib/c-stack.c (__attribute__): Likewise.
5987         * lib/error.h (__attribute__): Likewise.
5988         * lib/fts.c (__attribute__): Likewise.
5989         * lib/openat.h (__attribute__): Likewise.
5990         * lib/stdio.in.h (__attribute__): Likewise.
5991         * lib/string.in.h (__attribute__): Likewise.
5992         * lib/utimens.c (__attribute__): Likewise.
5993         * lib/vasnprintf.h (__attribute__): Likewise.
5994         * lib/xalloc.h (__attribute__): Likewise.
5995         * lib/xprintf.h (__attribute__): Likewise.
5996         * lib/xstrtol.h (__attribute__): Likewise.
5997         * lib/xvasprintf.h (__attribute__): Likewise.
5998
5999 2008-01-12  Bruno Haible  <bruno@clisp.org>
6000
6001         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
6002         * doc/glibc-headers/a.out.texi: New file.
6003         * doc/glibc-headers/aliases.texi: New file.
6004         * doc/glibc-headers/alloca.texi: New file.
6005         * doc/glibc-headers/ar.texi: New file.
6006         * doc/glibc-headers/argp.texi: New file.
6007         * doc/glibc-headers/argz.texi: New file.
6008         * doc/glibc-headers/byteswap.texi: New file.
6009         * doc/glibc-headers/crypt.texi: New file.
6010         * doc/glibc-headers/endian.texi: New file.
6011         * doc/glibc-headers/envz.texi: New file.
6012         * doc/glibc-headers/err.texi: New file.
6013         * doc/glibc-headers/error.texi: New file.
6014         * doc/glibc-headers/execinfo.texi: New file.
6015         * doc/glibc-headers/fpu_control.texi: New file.
6016         * doc/glibc-headers/fstab.texi: New file.
6017         * doc/glibc-headers/fts.texi: New file.
6018         * doc/glibc-headers/getopt.texi: New file.
6019         * doc/glibc-headers/ieee754.texi: New file.
6020         * doc/glibc-headers/ifaddrs.texi: New file.
6021         * doc/glibc-headers/libintl.texi: New file.
6022         * doc/glibc-headers/mcheck.texi: New file.
6023         * doc/glibc-headers/mntent.texi: New file.
6024         * doc/glibc-headers/obstack.texi: New file.
6025         * doc/glibc-headers/paths.texi: New file.
6026         * doc/glibc-headers/printf.texi: New file.
6027         * doc/glibc-headers/pty.texi: New file.
6028         * doc/glibc-headers/resolv.texi: New file.
6029         * doc/glibc-headers/shadow.texi: New file.
6030         * doc/glibc-headers/sysexits.texi: New file.
6031         * doc/glibc-headers/ttyent.texi: New file.
6032
6033 2008-01-12  Jim Meyering  <meyering@redhat.com>
6034
6035         announce-gen: emit Gnulib's git-based version string.
6036         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
6037         New option --gnulib-version=V, where V is expected to be
6038         the output of running git describe in the gnulib directory.
6039         (get_tool_versions): Request feedback on xdelta.  I suspect it's
6040         not useful, and plan to stop publishing an xdelta file with each
6041         coreutils release.
6042
6043         * build-aux/announce-gen: Also check for lzma-compressed files.
6044
6045 2008-01-11  Bruno Haible  <bruno@clisp.org>
6046
6047         * tests/test-memmem.c (main): Increase maximum allowed time.
6048         * tests/test-strstr.c (main): Likewise.
6049
6050 2008-01-11  Bruno Haible  <bruno@clisp.org>
6051
6052         * doc/functions/memmem.texi: Add more precisions about platforms.
6053         * doc/functions/strstr.texi: Likewise.
6054
6055 2008-01-10  Eric Blake  <ebb9@byu.net>
6056
6057         * m4/strstr.m4: Delete cruft from copy-n-paste.
6058         Reported by Bruno Haible.
6059
6060 2008-01-10  Bruno Haible  <bruno@clisp.org>
6061
6062         Make c-strstr rely on strstr.
6063         * lib/c-strstr.c: Don't include str-kmp.h.
6064         (c_strstr): Define in terms of strstr.
6065         * modules/c-strstr (Files): Remove lib/str-kmp.h.
6066         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
6067
6068 2008-01-10  Bruno Haible  <bruno@clisp.org>
6069
6070         * doc/gnulib.texi (String Functions in C Locale): New section.
6071         * doc/c-ctype.texi: New file.
6072         * doc/c-strcase.texi: New file.
6073         * doc/c-strcaseeq.texi: New file.
6074         * doc/c-strcasestr.texi: New file.
6075         * doc/c-strstr.texi: New file.
6076         * doc/c-strtod.texi: New file.
6077         * doc/c-strtold.texi: New file.
6078
6079 2008-01-10  Eric Blake  <ebb9@byu.net>
6080
6081         * lib/relocatable.h: Fix a comment.
6082
6083 2008-01-10  Eric Blake  <ebb9@byu.net>
6084
6085         Share two-way algorithm.
6086         * lib/str-two-way.h: New file, merged from...
6087         * lib/memmem.c: ...here...
6088         * lib/strstr.c: ...and here.
6089         * modules/memmem (Files): Use it.
6090         * modules/strstr (Files): Likewise.
6091
6092         Avoid quadratic strstr implementations.
6093         * lib/strstr.c: New file.
6094         * m4/strstr.m4: Likewise.
6095         * modules/strstr: Likewise.
6096         * modules/strstr-tests: Likewise.
6097         * tests/test-strstr.c: Likewise.
6098         * lib/string.in.h (rpl_strstr): Declare.
6099         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
6100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
6101         * modules/string (Makefile.am): Likewise.
6102         * MODULES.html.sh (string handling): Mention new module.
6103         * doc/functions/strstr.texi (strstr): Document the bug.
6104
6105 2008-01-10  Bruno Haible  <bruno@clisp.org>
6106
6107         * lib/relocatable.h (relocate): State whether result is freshly
6108         allocated or not.
6109         * lib/relocatable.c (relocate): Return a freshly allocated string
6110         instead of a pointer to a privately held string.
6111         Reported by Sylvain Beucler <beuc@gnu.org>.
6112
6113 2008-01-10  Colin Watson  <cjwatson@debian.org>
6114
6115         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
6116         s/S_ISNLK/S_ISLNK/.
6117
6118 2008-01-09  Bruno Haible  <bruno@clisp.org>
6119
6120         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
6121         and other files.
6122         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
6123         if it's only a guess.
6124         * modules/memmem: Simplify by depending on memmem-simple.
6125
6126 2008-01-09  Bruno Haible  <bruno@clisp.org>
6127
6128         Work around OpenBSD 4.0 tdelete() bug.
6129         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
6130         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
6131         macros and don't redefine the enum values.
6132         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
6133         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
6134         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
6135
6136 2008-01-09  Bruno Haible  <bruno@clisp.org>
6137
6138         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
6139         (main): Don't perform the tests if setlocale did not install a UTF-8
6140         locale. Needed on OpenBSD 4.0.
6141         * modules/wcwidth-tests (Depends-on): Add localcharset.
6142
6143 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
6144
6145         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
6146         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
6147         * NEWS: announce this.
6148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
6149
6150 2008-01-09  Simon Josefsson  <simon@josefsson.org>
6151         and Eric Blake  <ebb9@byu.net>
6152
6153         Add memmem-simple module.
6154         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6155         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6156         * modules/memmem-simple: New file.
6157         * modules/memmem (Description): Tweak.
6158         * MODULES.html.sh (string handling): Mention new module.
6159         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6160         addressed by memmem-simple.
6161         * NEWS: Document the difference.
6162
6163 2008-01-09  Eric Blake  <ebb9@byu.net>
6164
6165         Give gcc some memmem optimization hints.
6166         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6167         (strcasestr): Declare as pure.
6168         * modules/memmem (Maintainer): Claim my implementation.
6169
6170 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6171
6172         Support AIX 6.1 and higher.
6173         * build-aux/config.libpath: Likewise.
6174         * build-aux/config.rpath: Likewise.
6175
6176 2008-01-08  Jim Meyering  <meyering@redhat.com>
6177             Bruno Haible  <bruno@clisp.org>
6178
6179         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6180         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6181         Reported by Peter Fales in
6182         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6183
6184 2008-01-08  Bruno Haible  <bruno@clisp.org>
6185
6186         * modules/unictype/category-of (Depends-on): Add
6187         unictype/category-none.
6188         * modules/unictype/category-and-tests (Depends-on): Add
6189         unictype/category-{L,N,Lu,Nd}.
6190         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6191         * modules/unictype/category-or-tests (Depends-on): Add
6192         unictype/category-{L,N}.
6193         * modules/unictype/category-name-tests (Depends-on): Add
6194         unictype/category-{Z,Nl}.
6195         Reported by Simon Josefsson.
6196
6197 2008-01-08  Bruno Haible  <bruno@clisp.org>
6198
6199         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6200         convention better.
6201         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6202         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6203         Reported by Peter Miller <millerp@canb.auug.org.au>.
6204
6205 2008-01-08  Eric Blake  <ebb9@byu.net>
6206
6207         Rewrite memmem to guarantee linear complexity without malloc.
6208         * lib/memmem.c (memmem): Use Two-Way rather than
6209         Knuth-Morris-Pratt, to allow O(1) space usage.
6210         (critical_factorization, two_way_short_needle)
6211         (two_way_long_needle): New functions.
6212         (knuth_morris_pratt): Delete.
6213         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6214         Add stdint.
6215         * tests/test-memmem.c (main): Add tests for periodic needle and
6216         sublinear performance.
6217         * doc/functions/memmem.texi (memmem): Document other deficiencies
6218         in cygwin and older glibc.
6219
6220 2008-01-08  Bruno Haible  <bruno@clisp.org>
6221
6222         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6223         augmentation.
6224
6225 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6226
6227         Add a configure time option: --disable-acl.
6228         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6229         AC_ARG_ENABLE(acl).
6230
6231 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6232
6233         * tests/test-localename.c: Don't include obsolete "setenv.h".
6234
6235         * modules/localename-tests (Depends-on): Need unsetenv.
6236
6237 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6238
6239         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6240
6241 2008-01-06  Colin Watson  <cjwatson@debian.org>
6242
6243         * users.txt: Add man-db.
6244
6245 2008-01-07  Bruno Haible  <bruno@clisp.org>
6246
6247         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6248         previous section name.
6249
6250 2008-01-07  Bruno Haible  <bruno@clisp.org>
6251
6252         * lib/progname.c (set_program_name): Don't strip off a leading
6253         "lt-" prefix outside a .libs directory.
6254         Suggested by Paul Eggert.
6255
6256 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6257             Bruno Haible  <bruno@clisp.org>
6258
6259         Improve memory cleanup in 'relocatable' module.
6260         * lib/relocatable.h (compute_curr_prefix): Change return type to
6261         'char *'.
6262         * lib/relocatable.c (compute_curr_prefix): Change return type to
6263         'char *'. Free curr_installdir after use.
6264         (relocate): Free curr_prefix_better after use.
6265         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6266
6267 2008-01-01  Bruno Haible  <bruno@clisp.org>
6268
6269         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6270         failure on older glibc systems.
6271         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6272
6273 2008-01-05  Eric Blake  <ebb9@byu.net>
6274
6275         Avoid quadratic system memmem.
6276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6277         Reported by Ralf Wildenhues.
6278
6279         Fix memmem test for mingw.
6280         * modules/memmem-tests (configure.ac): Check for alarm.
6281         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6282         it.
6283         * doc/functions/memmem.texi: New file.
6284         * doc/gnulib.texi (Function Substitutes): Add memmem.
6285         Reported by Bruno Haible.
6286
6287 2008-01-04  Bruno Haible  <bruno@clisp.org>
6288
6289         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6290         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6291         gl_HEADER_STRING_H_DEFAULTS.
6292
6293 2008-01-04  Eric Blake  <ebb9@byu.net>
6294
6295         Shorten duration of memmem test.
6296         * tests/test-memmem.c (main): Use alarm to declare failure if test
6297         is taking too long.
6298         Reported by Ralf Wildenhues.
6299
6300 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6301
6302         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6303         string, needed by strerror.
6304
6305 2008-01-03  Colin Watson  <cjwatson@debian.org>
6306             Bruno Haible  <bruno@clisp.org>
6307
6308         * doc/gnulib-tool.texi (Localization): New section.
6309
6310 2008-01-02  Bruno Haible  <bruno@clisp.org>
6311
6312         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6313         variables to 'unsigned char *' type.
6314         Reported by Paul Eggert.
6315
6316 2008-01-02  Jim Meyering  <jim@meyering.net>
6317
6318         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6319
6320 2007-12-31  Jim Meyering  <jim@meyering.net>
6321
6322         Avoid use of private FTS type name.
6323         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6324
6325 2007-12-30  Karl Berry  <karl@gnu.org>
6326
6327         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6328         work around defect in Texinfo and/or the standalone Info browser.
6329
6330 2007-12-30  Bruno Haible  <bruno@clisp.org>
6331
6332         Unify 5 copies of the KMP code.
6333         * lib/str-kmp.h: New file.
6334         * lib/c-strcasestr.c: Include str-kmp.h.
6335         (knuth_morris_pratt): Remove function.
6336         (c_strcasestr): Update.
6337         * lib/c-strstr.c: Include str-kmp.h.
6338         (knuth_morris_pratt): Remove function.
6339         (c_strcasestr): Update.
6340         * lib/mbscasestr.c: Include str-kmp.h.
6341         (knuth_morris_pratt_unibyte): Remove function.
6342         * lib/mbsstr.c: Include str-kmp.h.
6343         (knuth_morris_pratt_unibyte): Remove function.
6344         * lib/strcasestr.c: Include str-kmp.h.
6345         (knuth_morris_pratt): Remove function.
6346         (strcasestr): Update.
6347         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6348         * modules/c-strstr (Files): Likewise.
6349         * modules/mbscasestr (Files): Likewise.
6350         * modules/mbsstr (Files): Likewise.
6351         * modules/strcasestr (Files): Likewise.
6352         Suggested by Paul Eggert.
6353
6354 2007-12-30  Bruno Haible  <bruno@clisp.org>
6355
6356         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6357         defined.
6358
6359 2007-12-30  Bruno Haible  <bruno@clisp.org>
6360
6361         * lib/xmalloca.h: Include xalloc.h.
6362         (xnmalloca): New macro.
6363
6364 2007-12-30  Bruno Haible  <bruno@clisp.org>
6365
6366         * lib/malloca.h (nmalloca): New macro.
6367         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6368         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6369         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6370         knuth_morris_pratt_multibyte): Likewise.
6371         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6372         knuth_morris_pratt_multibyte): Likewise.
6373         * lib/memmem.c (knuth_morris_pratt): Likewise.
6374         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6375
6376 2007-12-25  Bruno Haible  <bruno@clisp.org>
6377
6378         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6379         * lib/glob.c: Don't include openat.h.
6380         (link_exists2_p): Add back the code that deals with the
6381         !GLOB_ALTDIRFUNC case.
6382         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6383         let it do the filename concatenation.
6384         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6385         * modules/glob (Depends-on): Remove openat.
6386
6387 2007-12-31  Bruno Haible  <bruno@clisp.org>
6388
6389         * modules/dirfd (License): Change to LGPLv2+.
6390         Approved by Jim Meyering.
6391
6392 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6393
6394         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6395         when multiplying M by sizeof (size_t).
6396
6397 2007-12-10  Martin Lambers  <marlam@marlam.de>
6398
6399         Override getpagesize on mingw.
6400         * lib/getpagesize.c: New file.
6401         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6402         * modules/getpagesize (Files): Add lib/getpagesize.c.
6403         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6405         REPLACE_GETPAGESIZE.
6406         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6407
6408 2007-12-25  Bruno Haible  <bruno@clisp.org>
6409
6410         * modules/localcharset (Notice): New field.
6411         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6412         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6413
6414 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6415             Bruno Haible  <bruno@clisp.org>
6416
6417         Avoid using the syntax symbol() in formatted documentation.
6418         * MODULES.html.sh (func_module): When replacing symbol() with a
6419         hyperlink, remove the parentheses. Show an error if some remain.
6420         Recognize and render the '...' syntax.
6421         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6422         Rework. Add paragraph about GCC's inlining.
6423         * doc/alloca.texi: Likewise.
6424         * doc/error.texi: Remove parentheses from symbol reference.
6425         * doc/gnulib-intro.texi: Likewise.
6426         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6427         * modules/fnmatch (Description): Reword to say "the ... function".
6428         * modules/full-read (Description): Likewise.
6429         * modules/full-write (Description): Likewise.
6430         * modules/safe-read (Description): Likewise.
6431         * modules/safe-write (Description): Likewise.
6432         * modules/strchrnul (Description): Likewise.
6433         * modules/trim (Description): Likewise.
6434         * modules/error (Description): Remove parentheses from symbol
6435         references.
6436         * modules/verror (Description): Likewise.
6437         Reported by Karl Berry.
6438
6439 2007-12-25  Bruno Haible  <bruno@clisp.org>
6440
6441         Fixup after 2007-10-16 commit.
6442         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6443
6444 2007-12-24  Bruno Haible  <bruno@clisp.org>
6445
6446         Make --enable-relocatable work with DESTDIR.
6447         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6448         to compute installdir from destprog.
6449         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6450         also set the RELOC_DESTDIR variable.
6451         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6452
6453 2007-12-24  Bruno Haible  <bruno@clisp.org>
6454
6455         Fix link error due to xalloc_die().
6456         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6457         of xreadlink.
6458         * lib/relocwrapper.c: Update comments.
6459         * build-aux/install-reloc: Remove xreadlink.c from file list.
6460         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6461         xreadlink.c.
6462         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6463
6464 2007-12-24  Bruno Haible  <bruno@clisp.org>
6465
6466         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6467         * lib/setenv.h: Remove file.
6468         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6469         lib/setenv.h.
6470         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6471         (Depends-on): Add stdlib.
6472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6473         gl_FUNC_UNSETENV.
6474         (Include): Replace setenv.h with <stdlib.h>.
6475         * modules/unsetenv: New file.
6476         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6477         * lib/unsetenv.c: Include <stdlib.h> first.
6478         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6479         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6480         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6481         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6482         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6483         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6485         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6486         * doc/functions/unsetenv.texi: Update.
6487         * modules/xsetenv (Depends-on): Add unsetenv.
6488         * modules/getdate (Depends-on): Likewise.
6489         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6490         * lib/xsetenv.c: Don't include setenv.h.
6491         * lib/getdate.y: Likewise.
6492         * lib/relocwrapper.c: Likewise.
6493         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6494         (Depends-on): Add stdlib.
6495         * NEWS: Mention the changes.
6496         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6497
6498 2007-12-23  Bruno Haible  <bruno@clisp.org>
6499
6500         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6501         indentation.
6502
6503 2007-12-23  Bruno Haible  <bruno@clisp.org>
6504
6505         * lib/c-strcasestr.c: Add more comments.
6506         * lib/c-strstr.c: Likewise.
6507         * lib/mbscasestr.c: Likewise.
6508         * lib/mbsstr.c: Likewise.
6509         * lib/strcasestr.c: Likewise.
6510         * lib/memmem.c: Likewise.
6511
6512 2007-12-23  Bruno Haible  <bruno@clisp.org>
6513
6514         * tests/test-memmem.c: Include <string.h> first.
6515
6516 2007-12-22  Bruno Haible  <bruno@clisp.org>
6517
6518         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6519         the contents of $testsbase.
6520         Reported by Ralf Wildenhues.
6521
6522 2007-12-22  Bruno Haible  <bruno@clisp.org>
6523
6524         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6525         two variables local_ldadd_before, local_ldadd_last.
6526
6527 2007-12-20  Eric Blake  <ebb9@byu.net>
6528
6529         Work around circular library issue when cross-compiling.
6530         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6531         that progname.o does not need to pull in rpl_memcmp.
6532
6533 2007-12-19  Eric Blake  <ebb9@byu.net>
6534
6535         Fix memmem to avoid O(n^2) worst-case complexity.
6536         * lib/memmem.c (knuth_morris_pratt): New function.
6537         (memmem): Use it if first few naive iterations fail.
6538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6539         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6540         * modules/memchr (License): Likewise.
6541         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6542         malloca.
6543         * tests/test-memmem.c: Rewrite, borrowing ideas from
6544         test-mbsstr1.c; the old version wouldn't even compile!
6545         * modules/memmem-tests: New file.
6546         * lib/string.in.h (rpl_memmem): Add declaration.
6547         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6549         REPLACE_MEMMEM.
6550
6551 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6552
6553         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6554         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6555         before any system include files, and undef after them all.  This
6556         should fix a problem on VMS reported by John E. Malmberg in
6557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6558
6559 2007-12-17  Eric Blake  <ebb9@byu.net>
6560
6561         Revert addition of verify, for BSD/OS.
6562         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6563         can't handle large files, for the sake of obsolete platforms.
6564         * modules/fseeko (Depends-on): Remove verify.
6565         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6566         * doc/functions/ftello.texi (ftello): Likewise.
6567         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6568         Reported by Larry Jones.
6569
6570 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6571
6572         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6573         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6574
6575 2007-12-17  Jim Meyering  <meyering@redhat.com>
6576
6577         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6578         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6579         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6580         * modules/getcwd (Depends-on): Add openat.
6581         Reported by Petr Salinger.
6582
6583 2007-12-17  Bruno Haible  <bruno@clisp.org>
6584
6585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6586         avoid a segmentation fault of the configure test on x86_64 systems.
6587
6588 2007-12-15  Jim Meyering  <meyering@redhat.com>
6589
6590         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6591
6592 2007-12-13  Eric Blake  <ebb9@byu.net>
6593
6594         Another fseek test.
6595         * tests/test-fseek.c (main): Also test ungetc handling.
6596         * tests/test-fseeko.c (main): Likewise.
6597         * modules/fseeko (Depends-on): Add verify.
6598         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6599         large.
6600         Reported by Larry Jones.
6601
6602         Fix fseeko on mingw.
6603         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6604         seek.
6605
6606         Beef up fseek tests.
6607         * tests/test-fseek.c (main): Also test eof handling.
6608         * tests/test-fseeko.c (main): Likewise.
6609         Reported by Larry Jones.
6610
6611 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6612
6613         Fix fseeko on BSD-based platforms.
6614         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6615         successful seek.
6616
6617 2007-12-12  Eric Blake  <ebb9@byu.net>
6618
6619         Allow circular dependency of separate libtests.a
6620         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6621         when use_libtests.
6622
6623 2007-12-11  Eric Blake  <ebb9@byu.net>
6624
6625         Fix bug with -0.0L in previous patch.
6626         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6627         * tests/test-isnan.c (main): Also test on zeroes.
6628         * tests/test-isnanf.c (main): Likewise.
6629         * tests/test-isnanl.h (main): Likewise.
6630
6631         Detect pseudo-denormals on x86 even when cross-compiling.
6632         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6633         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6634         invalid bit patterns that happen to satisfy ==.
6635
6636         Avoid link failures with separate libtests.a.
6637         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6638         last, to satisfy circular dependencies.
6639
6640 2007-12-11  Eric Blake  <ebb9@byu.net>
6641         and Bruno Haible  <bruno@clisp.org>
6642
6643         Fix OpenBSD 4.0 <float.h> handling of long double.
6644         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6645         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6646         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6647
6648 2007-12-11  Jim Meyering  <meyering@redhat.com>
6649
6650         * users.txt: Add libvirt.
6651
6652         Support versions of autoconf prior to 2.59c.
6653         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6654         if it is not already defined.
6655
6656 2007-12-09  Bruno Haible  <bruno@clisp.org>
6657
6658         Let 'gnulib-tool --import' collect sources needed for the tests in
6659         tests/ rather than in lib/.
6660         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6661         argument. If true, add rules to generate libtests.a, and put libtests.a
6662         into $(LDADD). Consider source files in subdirectories and set
6663         uses_subdirs.
6664         (func_emit_initmacro_start, func_emit_initmacro_end,
6665         func_emit_initmacro_done): Pass all arguments explicitly.
6666         (func_import): Determine two module lists main_modules,
6667         testsrelated_modules. Determine use_libtests. Determine two variables
6668         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6669         instead of just sed_transform_lib_file. Determine two variables
6670         main_files and testsrelated_files. Compute 'files' as the union of
6671         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6672         func_add_or_update. In the generated gnulib-comp.m4, collect the
6673         object files for tests/ in different variables than those for lib/.
6674         Substitute LIBTESTS_LIBDEPS.
6675         (func_create_testdir): Combine the uses_subdirs results from
6676         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6677
6678 2007-12-09  Bruno Haible  <bruno@clisp.org>
6679
6680         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6681         the build-aux directory.
6682
6683 2007-12-09  Bruno Haible  <bruno@clisp.org>
6684
6685         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6686         introduced on 2006-09-09.
6687
6688 2007-12-07  Jim Meyering  <meyering@redhat.com>
6689
6690         Let these macros work also with autoconf-2.59.
6691         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6692         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6693         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6694
6695 2007-12-06  Jim Meyering  <meyering@redhat.com>
6696
6697         Avoid a configure-time syntax error in gl_FUNC_ACL.
6698         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6699         function in each branch, before testing the cache variable.
6700
6701 2007-12-04  Eric Blake  <ebb9@byu.net>
6702
6703         Make scripts executable.
6704         * build-aux/config.guess: Add execute permissions.
6705         * build-aux/config.sub: Likewise.
6706         * build-aux/gendocs.sh: Likewise.
6707
6708         Fix frexp on mingw.
6709         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6710         cross-compiling.
6711         * doc/functions/frexp.texi (frexp): Document the bug.
6712
6713         Make cygwin fseeko check more reliable.
6714         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6715         version numbers, rather than unrelated feature check.
6716         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6717         * doc/functions/ftello.texi (ftello): Likewise.
6718         Reported by Bruno Haible.
6719
6720         * m4/strerror.m4: Bump version number.
6721
6722 2007-12-03  Bruno Haible  <bruno@clisp.org>
6723
6724         * doc/functions/mprotect.texi: Mention the mingw problem.
6725
6726 2007-12-03  Eric Blake  <ebb9@byu.net>
6727
6728         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6729         REPLACE_STRERROR is initialized before this macro.
6730
6731 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6734         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6735         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6736         put -lsec in even for programs other than 'ls'.  This fixes a problem
6737         for gettext reported by Bruno Haible in
6738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6739         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6740         Add support for Solaris 10.  This isn't efficient, but should get the
6741         job done for now.
6742
6743 2007-12-03  James Youngman  <jay@gnu.org>
6744
6745         * doc/regexprops-generic.texi: change "an close-group" to "a
6746         close-group" and "illegal" to "not allowed".
6747
6748 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6749
6750         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6751         pr_byname.h. Needed for the rare case when the maintainer has done
6752         "make maintainer-clean" in the source directory and then attempts a
6753         build outside the source directory.
6754         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6755         scripts_byname.h.
6756
6757 2007-12-02  Martin Lambers <marlam@marlam.de>
6758             Bruno Haible  <bruno@clisp.org>
6759
6760         * lib/getpagesize.h: Remove file.
6761         * lib/unistd.in.h: Include declaration of getpagesize here.
6762         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6763         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6764         HAVE_SYS_PARAM_H.
6765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6766         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6767         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6768         (Depends-on): Add unistd.
6769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6770         (Include): Use <unistd.h> instead of getpagesize.h.
6771         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6772         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6773         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6774         gl_GETPAGESIZE invocation, already handled by module dependency.
6775         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6776
6777 2007-12-02  Bruno Haible  <bruno@clisp.org>
6778
6779         * modules/strings-tests: New file.
6780         * tests/test-strings.c: New file.
6781
6782         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6783         * lib/strings.in.h: New file.
6784         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6785         * m4/strings_h.m4: New file.
6786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6787         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6788         * modules/strings: New file.
6789         * modules/string (Makefile.am): Update.
6790         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6791         Reported by Karl Berry.
6792
6793 2007-12-01  Eric Blake  <ebb9@byu.net>
6794
6795         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6796         accomodate fix in cygwin 1.5.25.
6797
6798 2007-12-01  Jim Meyering  <meyering@redhat.com>
6799
6800         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6801         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6802         that would inhibit utf8-optimization of a regexp containing line-
6803         or buffer-anchors, e.g., `^', `$'.
6804
6805 2007-11-30  Bruno Haible  <bruno@clisp.org>
6806
6807         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6808         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6809         glthread_recursive_lock_init.
6810         * lib/lock.c (glthread_recursive_lock_init)
6811         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6812         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6813
6814 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6815
6816         New function qset_acl, like set_acl but with syscall semantics.
6817         * lib/acl.h (qset_acl): New decl.
6818         * lib/acl.c (qset_acl): New function.
6819         (set_acl): Use new function.  Use more-consistent diagnostics.
6820
6821 2007-11-28  Jim Meyering  <meyering@redhat.com>
6822
6823         * modules/physmem (License): Change from GPL to LGPLv2+.
6824
6825 2007-11-26  Bruno Haible  <bruno@clisp.org>
6826
6827         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6828         'long double' type has excess precision.
6829         Reported by Jim Meyering in
6830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6831
6832 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6833
6834         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6835         Sync from <http://gnu.org/licenses>.
6836         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6837         with license text from same location.
6838         * doc/maintain.texi, doc/standards.texi:  Sync from
6839         <http://savannah.gnu.org/projects/gnustandards>.
6840
6841 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
6842         and Jim Meyering  <meyering@redhat.com>
6843
6844         Adjust getdate' grammar to accept a slightly more regular language.
6845         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6846         Before, the former was rejected.
6847         * lib/getdate.y (digits_to_date_time): New function, factored
6848         out of ...
6849         (number): ...here.  Just call digits_to_date_time.
6850         (hybrid): New non-terminal to handle an <unsigned number,
6851         signed relative offset> sequence consistently.
6852
6853 2007-11-18  Jim Meyering  <meyering@redhat.com>
6854
6855         Pull my changes from coreutils:
6856         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6857         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6858         use of $gnulib_tool_option_extras, so that it's separated from the
6859         preceding argument.
6860
6861         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6862         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6863         parent destination directories before copying a file into place.
6864
6865 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6866
6867         bootstrap: work also with 4-argument variant of AC_INIT
6868         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6869
6870 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6871
6872         Port test-getaddrinfo to Solaris.
6873         Problem reported by Bruno Haible in
6874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6875         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6876         explanation of setting 'hints'.
6877         Don't reject an implementation merely because it returns EAI_SERVICE.
6878         (EAI_SERVICE): Define to 0 if not defined.
6879
6880 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6881
6882         The license of gnu-make and posix-shell is now "GPLed build tool".
6883         * modules/gnu-make (License): Likewise.
6884         * modules/posix-shell (License): Likewise.
6885
6886         New module posix-shell, for determining a POSIX shell
6887         or perhaps something that is close enough to a POSIX shell.
6888         * m4/posix-shell.m4: New file.
6889         * modules/posix-shell: New file.
6890
6891         * MODULES.html.sh: Mention new module.
6892
6893         New module gnu-make, for determining whether we're using GNU Make.
6894         * m4/gnu-make.m4: New file.
6895         * modules/gnu-make: New file.
6896         * MODULES.html.sh: Mention new module.
6897
6898 2007-11-14  Jim Meyering  <meyering@redhat.com>
6899
6900         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6901         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6902         use this macro to create a function _definition_.
6903         Remove useless "#undef ARGMATCH_DIE".
6904
6905 2007-11-14  Bruno Haible  <bruno@clisp.org>
6906
6907         * lib/config.charset: Update for OpenBSD 4.1.
6908         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6909
6910 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6911
6912         Document 64-bit #if problems in stdint.texi.
6913         * doc/headers/stdint.texi (stdint.h): Mention problems with
6914         64-bit-#if, and how to work around them.
6915
6916         Don't insist on 'long long int' support in the preprocessor.  It
6917         breaks too many things.  For example, PRIdMAX still uses a 'long
6918         long int' format with the latest Sun compiler, even though
6919         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6920         preprocessor problem.  This causes the latest coreutils to dump
6921         core on Solaris 10 sparc with the Sun C compiler.
6922         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6923         the troublesome expressions at configure-time, not at #if-time.
6924         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6925         preprocessor.
6926         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6927         compile-time C checks, done at 'configure'-time.
6928         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6929         * modules/inttypes (Makefile): Substitute the new symbols that
6930         gl_INTTYPES_H now generates.
6931         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6932
6933 2007-11-12  Bruno Haible  <bruno@clisp.org>
6934
6935         Tests for Unicode character classification functions.
6936
6937         * modules/unictype/bidicategory-byname-tests: New file.
6938         * modules/unictype/bidicategory-name-tests: New file.
6939         * modules/unictype/bidicategory-of-tests: New file.
6940         * modules/unictype/bidicategory-test-tests: New file.
6941         * modules/unictype/block-list-tests: New file.
6942         * modules/unictype/block-of-tests: New file.
6943         * modules/unictype/block-test-tests: New file.
6944         * modules/unictype/category-C-tests: New file.
6945         * modules/unictype/category-Cc-tests: New file.
6946         * modules/unictype/category-Cf-tests: New file.
6947         * modules/unictype/category-Cn-tests: New file.
6948         * modules/unictype/category-Co-tests: New file.
6949         * modules/unictype/category-Cs-tests: New file.
6950         * modules/unictype/category-L-tests: New file.
6951         * modules/unictype/category-Ll-tests: New file.
6952         * modules/unictype/category-Lm-tests: New file.
6953         * modules/unictype/category-Lo-tests: New file.
6954         * modules/unictype/category-Lt-tests: New file.
6955         * modules/unictype/category-Lu-tests: New file.
6956         * modules/unictype/category-M-tests: New file.
6957         * modules/unictype/category-Mc-tests: New file.
6958         * modules/unictype/category-Me-tests: New file.
6959         * modules/unictype/category-Mn-tests: New file.
6960         * modules/unictype/category-N-tests: New file.
6961         * modules/unictype/category-Nd-tests: New file.
6962         * modules/unictype/category-Nl-tests: New file.
6963         * modules/unictype/category-No-tests: New file.
6964         * modules/unictype/category-P-tests: New file.
6965         * modules/unictype/category-Pc-tests: New file.
6966         * modules/unictype/category-Pd-tests: New file.
6967         * modules/unictype/category-Pe-tests: New file.
6968         * modules/unictype/category-Pf-tests: New file.
6969         * modules/unictype/category-Pi-tests: New file.
6970         * modules/unictype/category-Po-tests: New file.
6971         * modules/unictype/category-Ps-tests: New file.
6972         * modules/unictype/category-S-tests: New file.
6973         * modules/unictype/category-Sc-tests: New file.
6974         * modules/unictype/category-Sk-tests: New file.
6975         * modules/unictype/category-Sm-tests: New file.
6976         * modules/unictype/category-So-tests: New file.
6977         * modules/unictype/category-Z-tests: New file.
6978         * modules/unictype/category-Zl-tests: New file.
6979         * modules/unictype/category-Zp-tests: New file.
6980         * modules/unictype/category-Zs-tests: New file.
6981         * modules/unictype/category-and-not-tests: New file.
6982         * modules/unictype/category-and-tests: New file.
6983         * modules/unictype/category-byname-tests: New file.
6984         * modules/unictype/category-name-tests: New file.
6985         * modules/unictype/category-none-tests: New file.
6986         * modules/unictype/category-of-tests: New file.
6987         * modules/unictype/category-or-tests: New file.
6988         * modules/unictype/category-test-withtable-tests: New file.
6989         * modules/unictype/combining-class-tests: New file.
6990         * modules/unictype/ctype-alnum-tests: New file.
6991         * modules/unictype/ctype-alpha-tests: New file.
6992         * modules/unictype/ctype-blank-tests: New file.
6993         * modules/unictype/ctype-cntrl-tests: New file.
6994         * modules/unictype/ctype-digit-tests: New file.
6995         * modules/unictype/ctype-graph-tests: New file.
6996         * modules/unictype/ctype-lower-tests: New file.
6997         * modules/unictype/ctype-print-tests: New file.
6998         * modules/unictype/ctype-punct-tests: New file.
6999         * modules/unictype/ctype-space-tests: New file.
7000         * modules/unictype/ctype-upper-tests: New file.
7001         * modules/unictype/ctype-xdigit-tests: New file.
7002         * modules/unictype/decimal-digit-tests: New file.
7003         * modules/unictype/digit-tests: New file.
7004         * modules/unictype/mirror-tests: New file.
7005         * modules/unictype/numeric-tests: New file.
7006         * modules/unictype/property-alphabetic-tests: New file.
7007         * modules/unictype/property-ascii-hex-digit-tests: New file.
7008         * modules/unictype/property-bidi-arabic-digit-tests: New file.
7009         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
7010         * modules/unictype/property-bidi-block-separator-tests: New file.
7011         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
7012         * modules/unictype/property-bidi-common-separator-tests: New file.
7013         * modules/unictype/property-bidi-control-tests: New file.
7014         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
7015         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
7016         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
7017         * modules/unictype/property-bidi-european-digit-tests: New file.
7018         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
7019         * modules/unictype/property-bidi-left-to-right-tests: New file.
7020         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
7021         * modules/unictype/property-bidi-other-neutral-tests: New file.
7022         * modules/unictype/property-bidi-pdf-tests: New file.
7023         * modules/unictype/property-bidi-segment-separator-tests: New file.
7024         * modules/unictype/property-bidi-whitespace-tests: New file.
7025         * modules/unictype/property-byname-tests: New file.
7026         * modules/unictype/property-combining-tests: New file.
7027         * modules/unictype/property-composite-tests: New file.
7028         * modules/unictype/property-currency-symbol-tests: New file.
7029         * modules/unictype/property-dash-tests: New file.
7030         * modules/unictype/property-decimal-digit-tests: New file.
7031         * modules/unictype/property-default-ignorable-code-point-tests: New file.
7032         * modules/unictype/property-deprecated-tests: New file.
7033         * modules/unictype/property-diacritic-tests: New file.
7034         * modules/unictype/property-extender-tests: New file.
7035         * modules/unictype/property-format-control-tests: New file.
7036         * modules/unictype/property-grapheme-base-tests: New file.
7037         * modules/unictype/property-grapheme-extend-tests: New file.
7038         * modules/unictype/property-grapheme-link-tests: New file.
7039         * modules/unictype/property-hex-digit-tests: New file.
7040         * modules/unictype/property-hyphen-tests: New file.
7041         * modules/unictype/property-id-continue-tests: New file.
7042         * modules/unictype/property-id-start-tests: New file.
7043         * modules/unictype/property-ideographic-tests: New file.
7044         * modules/unictype/property-ids-binary-operator-tests: New file.
7045         * modules/unictype/property-ids-trinary-operator-tests: New file.
7046         * modules/unictype/property-ignorable-control-tests: New file.
7047         * modules/unictype/property-iso-control-tests: New file.
7048         * modules/unictype/property-join-control-tests: New file.
7049         * modules/unictype/property-left-of-pair-tests: New file.
7050         * modules/unictype/property-line-separator-tests: New file.
7051         * modules/unictype/property-logical-order-exception-tests: New file.
7052         * modules/unictype/property-lowercase-tests: New file.
7053         * modules/unictype/property-math-tests: New file.
7054         * modules/unictype/property-non-break-tests: New file.
7055         * modules/unictype/property-not-a-character-tests: New file.
7056         * modules/unictype/property-numeric-tests: New file.
7057         * modules/unictype/property-other-alphabetic-tests: New file.
7058         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
7059         * modules/unictype/property-other-grapheme-extend-tests: New file.
7060         * modules/unictype/property-other-id-continue-tests: New file.
7061         * modules/unictype/property-other-id-start-tests: New file.
7062         * modules/unictype/property-other-lowercase-tests: New file.
7063         * modules/unictype/property-other-math-tests: New file.
7064         * modules/unictype/property-other-uppercase-tests: New file.
7065         * modules/unictype/property-paired-punctuation-tests: New file.
7066         * modules/unictype/property-paragraph-separator-tests: New file.
7067         * modules/unictype/property-pattern-syntax-tests: New file.
7068         * modules/unictype/property-pattern-white-space-tests: New file.
7069         * modules/unictype/property-private-use-tests: New file.
7070         * modules/unictype/property-punctuation-tests: New file.
7071         * modules/unictype/property-quotation-mark-tests: New file.
7072         * modules/unictype/property-radical-tests: New file.
7073         * modules/unictype/property-sentence-terminal-tests: New file.
7074         * modules/unictype/property-soft-dotted-tests: New file.
7075         * modules/unictype/property-space-tests: New file.
7076         * modules/unictype/property-terminal-punctuation-tests: New file.
7077         * modules/unictype/property-test-tests: New file.
7078         * modules/unictype/property-titlecase-tests: New file.
7079         * modules/unictype/property-unassigned-code-value-tests: New file.
7080         * modules/unictype/property-unified-ideograph-tests: New file.
7081         * modules/unictype/property-uppercase-tests: New file.
7082         * modules/unictype/property-variation-selector-tests: New file.
7083         * modules/unictype/property-white-space-tests: New file.
7084         * modules/unictype/property-xid-continue-tests: New file.
7085         * modules/unictype/property-xid-start-tests: New file.
7086         * modules/unictype/property-zero-width-tests: New file.
7087         * modules/unictype/scripts-tests: New file.
7088         * modules/unictype/syntax-c-ident-tests: New file.
7089         * modules/unictype/syntax-c-whitespace-tests: New file.
7090         * modules/unictype/syntax-java-ident-tests: New file.
7091         * modules/unictype/syntax-java-whitespace-tests: New file.
7092         * tests/unictype/test-bidi_byname.c: New file.
7093         * tests/unictype/test-bidi_name.c: New file.
7094         * tests/unictype/test-bidi_of.c: New file.
7095         * tests/unictype/test-bidi_test.c: New file.
7096         * tests/unictype/test-block_list.c: New file.
7097         * tests/unictype/test-block_of.c: New file.
7098         * tests/unictype/test-block_test.c: New file.
7099         * tests/unictype/test-categ_and.c: New file.
7100         * tests/unictype/test-categ_and_not.c: New file.
7101         * tests/unictype/test-categ_byname.c: New file.
7102         * tests/unictype/test-categ_name.c: New file.
7103         * tests/unictype/test-categ_none.c: New file.
7104         * tests/unictype/test-categ_of.c: New file.
7105         * tests/unictype/test-categ_or.c: New file.
7106         * tests/unictype/test-categ_test_withtable.c: New file.
7107         * tests/unictype/test-combining.c: New file.
7108         * tests/unictype/test-decdigit.c: New file.
7109         * tests/unictype/test-digit.c: New file.
7110         * tests/unictype/test-mirror.c: New file.
7111         * tests/unictype/test-numeric.c: New file.
7112         * tests/unictype/test-pr_byname.c: New file.
7113         * tests/unictype/test-pr_test.c: New file.
7114         * tests/unictype/test-predicate-part1.h: New file.
7115         * tests/unictype/test-predicate-part2.h: New file.
7116         * tests/unictype/test-scripts.c: New file.
7117         * tests/unictype/test-sy_c_ident.c: New file.
7118         * tests/unictype/test-sy_java_ident.c: New file.
7119
7120         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
7121         for Unicode 5.0.0.
7122         * tests/unictype/test-categ_Cc.c: Likewise.
7123         * tests/unictype/test-categ_Cf.c: Likewise.
7124         * tests/unictype/test-categ_Cn.c: Likewise.
7125         * tests/unictype/test-categ_Co.c: Likewise.
7126         * tests/unictype/test-categ_Cs.c: Likewise.
7127         * tests/unictype/test-categ_L.c: Likewise.
7128         * tests/unictype/test-categ_Ll.c: Likewise.
7129         * tests/unictype/test-categ_Lm.c: Likewise.
7130         * tests/unictype/test-categ_Lo.c: Likewise.
7131         * tests/unictype/test-categ_Lt.c: Likewise.
7132         * tests/unictype/test-categ_Lu.c: Likewise.
7133         * tests/unictype/test-categ_M.c: Likewise.
7134         * tests/unictype/test-categ_Mc.c: Likewise.
7135         * tests/unictype/test-categ_Me.c: Likewise.
7136         * tests/unictype/test-categ_Mn.c: Likewise.
7137         * tests/unictype/test-categ_N.c: Likewise.
7138         * tests/unictype/test-categ_Nd.c: Likewise.
7139         * tests/unictype/test-categ_Nl.c: Likewise.
7140         * tests/unictype/test-categ_No.c: Likewise.
7141         * tests/unictype/test-categ_P.c: Likewise.
7142         * tests/unictype/test-categ_Pc.c: Likewise.
7143         * tests/unictype/test-categ_Pd.c: Likewise.
7144         * tests/unictype/test-categ_Pe.c: Likewise.
7145         * tests/unictype/test-categ_Pf.c: Likewise.
7146         * tests/unictype/test-categ_Pi.c: Likewise.
7147         * tests/unictype/test-categ_Po.c: Likewise.
7148         * tests/unictype/test-categ_Ps.c: Likewise.
7149         * tests/unictype/test-categ_S.c: Likewise.
7150         * tests/unictype/test-categ_Sc.c: Likewise.
7151         * tests/unictype/test-categ_Sk.c: Likewise.
7152         * tests/unictype/test-categ_Sm.c: Likewise.
7153         * tests/unictype/test-categ_So.c: Likewise.
7154         * tests/unictype/test-categ_Z.c: Likewise.
7155         * tests/unictype/test-categ_Zl.c: Likewise.
7156         * tests/unictype/test-categ_Zp.c: Likewise.
7157         * tests/unictype/test-categ_Zs.c: Likewise.
7158         * tests/unictype/test-ctype_alnum.c: Likewise.
7159         * tests/unictype/test-ctype_alpha.c: Likewise.
7160         * tests/unictype/test-ctype_blank.c: Likewise.
7161         * tests/unictype/test-ctype_cntrl.c: Likewise.
7162         * tests/unictype/test-ctype_digit.c: Likewise.
7163         * tests/unictype/test-ctype_graph.c: Likewise.
7164         * tests/unictype/test-ctype_lower.c: Likewise.
7165         * tests/unictype/test-ctype_print.c: Likewise.
7166         * tests/unictype/test-ctype_punct.c: Likewise.
7167         * tests/unictype/test-ctype_space.c: Likewise.
7168         * tests/unictype/test-ctype_upper.c: Likewise.
7169         * tests/unictype/test-ctype_xdigit.c: Likewise.
7170         * tests/unictype/test-decdigit.h: Likewise.
7171         * tests/unictype/test-digit.h: Likewise.
7172         * tests/unictype/test-numeric.h: Likewise.
7173         * tests/unictype/test-pr_alphabetic.c: Likewise.
7174         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7175         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7176         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7177         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7178         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7179         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7180         * tests/unictype/test-pr_bidi_control.c: Likewise.
7181         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7182         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7183         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7184         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7185         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7186         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7187         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7188         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7189         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7190         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7191         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7192         * tests/unictype/test-pr_combining.c: Likewise.
7193         * tests/unictype/test-pr_composite.c: Likewise.
7194         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7195         * tests/unictype/test-pr_dash.c: Likewise.
7196         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7197         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7198         * tests/unictype/test-pr_deprecated.c: Likewise.
7199         * tests/unictype/test-pr_diacritic.c: Likewise.
7200         * tests/unictype/test-pr_extender.c: Likewise.
7201         * tests/unictype/test-pr_format_control.c: Likewise.
7202         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7203         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7204         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7205         * tests/unictype/test-pr_hex_digit.c: Likewise.
7206         * tests/unictype/test-pr_hyphen.c: Likewise.
7207         * tests/unictype/test-pr_id_continue.c: Likewise.
7208         * tests/unictype/test-pr_id_start.c: Likewise.
7209         * tests/unictype/test-pr_ideographic.c: Likewise.
7210         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7211         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7212         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7213         * tests/unictype/test-pr_iso_control.c: Likewise.
7214         * tests/unictype/test-pr_join_control.c: Likewise.
7215         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7216         * tests/unictype/test-pr_line_separator.c: Likewise.
7217         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7218         * tests/unictype/test-pr_lowercase.c: Likewise.
7219         * tests/unictype/test-pr_math.c: Likewise.
7220         * tests/unictype/test-pr_non_break.c: Likewise.
7221         * tests/unictype/test-pr_not_a_character.c: Likewise.
7222         * tests/unictype/test-pr_numeric.c: Likewise.
7223         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7224         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7225         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7226         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7227         * tests/unictype/test-pr_other_id_start.c: Likewise.
7228         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7229         * tests/unictype/test-pr_other_math.c: Likewise.
7230         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7231         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7232         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7233         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7234         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7235         * tests/unictype/test-pr_private_use.c: Likewise.
7236         * tests/unictype/test-pr_punctuation.c: Likewise.
7237         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7238         * tests/unictype/test-pr_radical.c: Likewise.
7239         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7240         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7241         * tests/unictype/test-pr_space.c: Likewise.
7242         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7243         * tests/unictype/test-pr_titlecase.c: Likewise.
7244         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7245         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7246         * tests/unictype/test-pr_uppercase.c: Likewise.
7247         * tests/unictype/test-pr_variation_selector.c: Likewise.
7248         * tests/unictype/test-pr_white_space.c: Likewise.
7249         * tests/unictype/test-pr_xid_continue.c: Likewise.
7250         * tests/unictype/test-pr_xid_start.c: Likewise.
7251         * tests/unictype/test-pr_zero_width.c: Likewise.
7252         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7253         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7254
7255 2007-11-12  Bruno Haible  <bruno@clisp.org>
7256
7257         Unicode character classification functions.
7258         * lib/unictype.h: New file.
7259         * modules/unictype/base: New file.
7260         * modules/unictype/category-L: New file.
7261         * modules/unictype/category-Lu: New file.
7262         * modules/unictype/category-Ll: New file.
7263         * modules/unictype/category-Lt: New file.
7264         * modules/unictype/category-Lm: New file.
7265         * modules/unictype/category-Lo: New file.
7266         * modules/unictype/category-M: New file.
7267         * modules/unictype/category-Mn: New file.
7268         * modules/unictype/category-Mc: New file.
7269         * modules/unictype/category-Me: New file.
7270         * modules/unictype/category-N: New file.
7271         * modules/unictype/category-Nd: New file.
7272         * modules/unictype/category-Nl: New file.
7273         * modules/unictype/category-No: New file.
7274         * modules/unictype/category-P: New file.
7275         * modules/unictype/category-Pc: New file.
7276         * modules/unictype/category-Pd: New file.
7277         * modules/unictype/category-Ps: New file.
7278         * modules/unictype/category-Pe: New file.
7279         * modules/unictype/category-Pi: New file.
7280         * modules/unictype/category-Pf: New file.
7281         * modules/unictype/category-Po: New file.
7282         * modules/unictype/category-S: New file.
7283         * modules/unictype/category-Sm: New file.
7284         * modules/unictype/category-Sc: New file.
7285         * modules/unictype/category-Sk: New file.
7286         * modules/unictype/category-So: New file.
7287         * modules/unictype/category-Z: New file.
7288         * modules/unictype/category-Zs: New file.
7289         * modules/unictype/category-Zl: New file.
7290         * modules/unictype/category-Zp: New file.
7291         * modules/unictype/category-C: New file.
7292         * modules/unictype/category-Cc: New file.
7293         * modules/unictype/category-Cf: New file.
7294         * modules/unictype/category-Cs: New file.
7295         * modules/unictype/category-Co: New file.
7296         * modules/unictype/category-Cn: New file.
7297         * modules/unictype/category-or: New file.
7298         * modules/unictype/category-of: New file.
7299         * modules/unictype/category-test: New file.
7300         * modules/unictype/category-test-withtable: New file.
7301         * modules/unictype/category-byname: New file.
7302         * modules/unictype/category-none: New file.
7303         * modules/unictype/category-and: New file.
7304         * modules/unictype/category-and-not: New file.
7305         * modules/unictype/category-name: New file.
7306         * modules/unictype/combining-class: New file.
7307         * modules/unictype/category-all: New file.
7308         * modules/unictype/bidicategory-all: New file.
7309         * modules/unictype/bidicategory-byname: New file.
7310         * modules/unictype/bidicategory-name: New file.
7311         * modules/unictype/bidicategory-of: New file.
7312         * modules/unictype/bidicategory-test: New file.
7313         * modules/unictype/decimal-digit: New file.
7314         * modules/unictype/digit: New file.
7315         * modules/unictype/numeric: New file.
7316         * modules/unictype/mirror: New file.
7317         * modules/unictype/property-white-space: New file.
7318         * modules/unictype/property-alphabetic: New file.
7319         * modules/unictype/property-other-alphabetic: New file.
7320         * modules/unictype/property-not-a-character: New file.
7321         * modules/unictype/property-default-ignorable-code-point: New file.
7322         * modules/unictype/property-other-default-ignorable-code-point: New
7323         file.
7324         * modules/unictype/property-deprecated: New file.
7325         * modules/unictype/property-logical-order-exception: New file.
7326         * modules/unictype/property-variation-selector: New file.
7327         * modules/unictype/property-private-use: New file.
7328         * modules/unictype/property-unassigned-code-value: New file.
7329         * modules/unictype/property-uppercase: New file.
7330         * modules/unictype/property-other-uppercase: New file.
7331         * modules/unictype/property-lowercase: New file.
7332         * modules/unictype/property-other-lowercase: New file.
7333         * modules/unictype/property-titlecase: New file.
7334         * modules/unictype/property-soft-dotted: New file.
7335         * modules/unictype/property-id-start: New file.
7336         * modules/unictype/property-other-id-start: New file.
7337         * modules/unictype/property-id-continue: New file.
7338         * modules/unictype/property-other-id-continue: New file.
7339         * modules/unictype/property-xid-start: New file.
7340         * modules/unictype/property-xid-continue: New file.
7341         * modules/unictype/property-pattern-white-space: New file.
7342         * modules/unictype/property-pattern-syntax: New file.
7343         * modules/unictype/property-join-control: New file.
7344         * modules/unictype/property-grapheme-base: New file.
7345         * modules/unictype/property-grapheme-extend: New file.
7346         * modules/unictype/property-other-grapheme-extend: New file.
7347         * modules/unictype/property-grapheme-link: New file.
7348         * modules/unictype/property-bidi-control: New file.
7349         * modules/unictype/property-bidi-left-to-right: New file.
7350         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7351         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7352         * modules/unictype/property-bidi-european-digit: New file.
7353         * modules/unictype/property-bidi-eur-num-separator: New file.
7354         * modules/unictype/property-bidi-eur-num-terminator: New file.
7355         * modules/unictype/property-bidi-arabic-digit: New file.
7356         * modules/unictype/property-bidi-common-separator: New file.
7357         * modules/unictype/property-bidi-block-separator: New file.
7358         * modules/unictype/property-bidi-segment-separator: New file.
7359         * modules/unictype/property-bidi-whitespace: New file.
7360         * modules/unictype/property-bidi-non-spacing-mark: New file.
7361         * modules/unictype/property-bidi-boundary-neutral: New file.
7362         * modules/unictype/property-bidi-pdf: New file.
7363         * modules/unictype/property-bidi-embedding-or-override: New file.
7364         * modules/unictype/property-bidi-other-neutral: New file.
7365         * modules/unictype/property-hex-digit: New file.
7366         * modules/unictype/property-ascii-hex-digit: New file.
7367         * modules/unictype/property-ideographic: New file.
7368         * modules/unictype/property-unified-ideograph: New file.
7369         * modules/unictype/property-radical: New file.
7370         * modules/unictype/property-ids-binary-operator: New file.
7371         * modules/unictype/property-ids-trinary-operator: New file.
7372         * modules/unictype/property-zero-width: New file.
7373         * modules/unictype/property-space: New file.
7374         * modules/unictype/property-non-break: New file.
7375         * modules/unictype/property-iso-control: New file.
7376         * modules/unictype/property-format-control: New file.
7377         * modules/unictype/property-dash: New file.
7378         * modules/unictype/property-hyphen: New file.
7379         * modules/unictype/property-punctuation: New file.
7380         * modules/unictype/property-line-separator: New file.
7381         * modules/unictype/property-paragraph-separator: New file.
7382         * modules/unictype/property-quotation-mark: New file.
7383         * modules/unictype/property-sentence-terminal: New file.
7384         * modules/unictype/property-terminal-punctuation: New file.
7385         * modules/unictype/property-currency-symbol: New file.
7386         * modules/unictype/property-math: New file.
7387         * modules/unictype/property-other-math: New file.
7388         * modules/unictype/property-paired-punctuation: New file.
7389         * modules/unictype/property-left-of-pair: New file.
7390         * modules/unictype/property-combining: New file.
7391         * modules/unictype/property-composite: New file.
7392         * modules/unictype/property-decimal-digit: New file.
7393         * modules/unictype/property-numeric: New file.
7394         * modules/unictype/property-diacritic: New file.
7395         * modules/unictype/property-extender: New file.
7396         * modules/unictype/property-ignorable-control: New file.
7397         * modules/unictype/property-test: New file.
7398         * modules/unictype/property-byname: New file.
7399         * modules/unictype/property-all: New file.
7400         * modules/unictype/scripts: New file.
7401         * modules/unictype/scripts-all: New file.
7402         * modules/unictype/block-of: New file.
7403         * modules/unictype/block-test: New file.
7404         * modules/unictype/block-list: New file.
7405         * modules/unictype/block-all: New file.
7406         * modules/unictype/syntax-c-whitespace: New file.
7407         * modules/unictype/syntax-java-whitespace: New file.
7408         * modules/unictype/syntax-c-ident: New file.
7409         * modules/unictype/syntax-java-ident: New file.
7410         * modules/unictype/ctype-alnum: New file.
7411         * modules/unictype/ctype-alpha: New file.
7412         * modules/unictype/ctype-cntrl: New file.
7413         * modules/unictype/ctype-digit: New file.
7414         * modules/unictype/ctype-graph: New file.
7415         * modules/unictype/ctype-lower: New file.
7416         * modules/unictype/ctype-print: New file.
7417         * modules/unictype/ctype-punct: New file.
7418         * modules/unictype/ctype-space: New file.
7419         * modules/unictype/ctype-upper: New file.
7420         * modules/unictype/ctype-xdigit: New file.
7421         * modules/unictype/ctype-blank: New file.
7422         * lib/unictype/bidi_byname.c: New file.
7423         * lib/unictype/bidi_name.c: New file.
7424         * lib/unictype/bidi_of.c: New file.
7425         * lib/unictype/bidi_test.c: New file.
7426         * lib/unictype/bitmap.h: New file.
7427         * lib/unictype/block_test.c: New file.
7428         * lib/unictype/blocks.c: New file.
7429         * lib/unictype/categ_C.c: New file.
7430         * lib/unictype/categ_Cc.c: New file.
7431         * lib/unictype/categ_Cf.c: New file.
7432         * lib/unictype/categ_Cn.c: New file.
7433         * lib/unictype/categ_Co.c: New file.
7434         * lib/unictype/categ_Cs.c: New file.
7435         * lib/unictype/categ_L.c: New file.
7436         * lib/unictype/categ_Ll.c: New file.
7437         * lib/unictype/categ_Lm.c: New file.
7438         * lib/unictype/categ_Lo.c: New file.
7439         * lib/unictype/categ_Lt.c: New file.
7440         * lib/unictype/categ_Lu.c: New file.
7441         * lib/unictype/categ_M.c: New file.
7442         * lib/unictype/categ_Mc.c: New file.
7443         * lib/unictype/categ_Me.c: New file.
7444         * lib/unictype/categ_Mn.c: New file.
7445         * lib/unictype/categ_N.c: New file.
7446         * lib/unictype/categ_Nd.c: New file.
7447         * lib/unictype/categ_Nl.c: New file.
7448         * lib/unictype/categ_No.c: New file.
7449         * lib/unictype/categ_P.c: New file.
7450         * lib/unictype/categ_Pc.c: New file.
7451         * lib/unictype/categ_Pd.c: New file.
7452         * lib/unictype/categ_Pe.c: New file.
7453         * lib/unictype/categ_Pf.c: New file.
7454         * lib/unictype/categ_Pi.c: New file.
7455         * lib/unictype/categ_Po.c: New file.
7456         * lib/unictype/categ_Ps.c: New file.
7457         * lib/unictype/categ_S.c: New file.
7458         * lib/unictype/categ_Sc.c: New file.
7459         * lib/unictype/categ_Sk.c: New file.
7460         * lib/unictype/categ_Sm.c: New file.
7461         * lib/unictype/categ_So.c: New file.
7462         * lib/unictype/categ_Z.c: New file.
7463         * lib/unictype/categ_Zl.c: New file.
7464         * lib/unictype/categ_Zp.c: New file.
7465         * lib/unictype/categ_Zs.c: New file.
7466         * lib/unictype/categ_and.c: New file.
7467         * lib/unictype/categ_and_not.c: New file.
7468         * lib/unictype/categ_byname.c: New file.
7469         * lib/unictype/categ_name.c: New file.
7470         * lib/unictype/categ_none.c: New file.
7471         * lib/unictype/categ_of.c: New file.
7472         * lib/unictype/categ_or.c: New file.
7473         * lib/unictype/categ_test.c: New file.
7474         * lib/unictype/combining.c: New file.
7475         * lib/unictype/ctype_alnum.c: New file.
7476         * lib/unictype/ctype_alpha.c: New file.
7477         * lib/unictype/ctype_blank.c: New file.
7478         * lib/unictype/ctype_cntrl.c: New file.
7479         * lib/unictype/ctype_digit.c: New file.
7480         * lib/unictype/ctype_graph.c: New file.
7481         * lib/unictype/ctype_lower.c: New file.
7482         * lib/unictype/ctype_print.c: New file.
7483         * lib/unictype/ctype_punct.c: New file.
7484         * lib/unictype/ctype_space.c: New file.
7485         * lib/unictype/ctype_upper.c: New file.
7486         * lib/unictype/ctype_xdigit.c: New file.
7487         * lib/unictype/decdigit.c: New file.
7488         * lib/unictype/digit.c: New file.
7489         * lib/unictype/identsyntaxmap.h: New file.
7490         * lib/unictype/mirror.c: New file.
7491         * lib/unictype/numeric.c: New file.
7492         * lib/unictype/pr_alphabetic.c: New file.
7493         * lib/unictype/pr_ascii_hex_digit.c: New file.
7494         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7495         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7496         * lib/unictype/pr_bidi_block_separator.c: New file.
7497         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7498         * lib/unictype/pr_bidi_common_separator.c: New file.
7499         * lib/unictype/pr_bidi_control.c: New file.
7500         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7501         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7502         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7503         * lib/unictype/pr_bidi_european_digit.c: New file.
7504         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7505         * lib/unictype/pr_bidi_left_to_right.c: New file.
7506         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7507         * lib/unictype/pr_bidi_other_neutral.c: New file.
7508         * lib/unictype/pr_bidi_pdf.c: New file.
7509         * lib/unictype/pr_bidi_segment_separator.c: New file.
7510         * lib/unictype/pr_bidi_whitespace.c: New file.
7511         * lib/unictype/pr_byname.c: New file.
7512         * lib/unictype/pr_byname.gperf: New file.
7513         * lib/unictype/pr_combining.c: New file.
7514         * lib/unictype/pr_composite.c: New file.
7515         * lib/unictype/pr_currency_symbol.c: New file.
7516         * lib/unictype/pr_dash.c: New file.
7517         * lib/unictype/pr_decimal_digit.c: New file.
7518         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7519         * lib/unictype/pr_deprecated.c: New file.
7520         * lib/unictype/pr_diacritic.c: New file.
7521         * lib/unictype/pr_extender.c: New file.
7522         * lib/unictype/pr_format_control.c: New file.
7523         * lib/unictype/pr_grapheme_base.c: New file.
7524         * lib/unictype/pr_grapheme_extend.c: New file.
7525         * lib/unictype/pr_grapheme_link.c: New file.
7526         * lib/unictype/pr_hex_digit.c: New file.
7527         * lib/unictype/pr_hyphen.c: New file.
7528         * lib/unictype/pr_id_continue.c: New file.
7529         * lib/unictype/pr_id_start.c: New file.
7530         * lib/unictype/pr_ideographic.c: New file.
7531         * lib/unictype/pr_ids_binary_operator.c: New file.
7532         * lib/unictype/pr_ids_trinary_operator.c: New file.
7533         * lib/unictype/pr_ignorable_control.c: New file.
7534         * lib/unictype/pr_iso_control.c: New file.
7535         * lib/unictype/pr_join_control.c: New file.
7536         * lib/unictype/pr_left_of_pair.c: New file.
7537         * lib/unictype/pr_line_separator.c: New file.
7538         * lib/unictype/pr_logical_order_exception.c: New file.
7539         * lib/unictype/pr_lowercase.c: New file.
7540         * lib/unictype/pr_math.c: New file.
7541         * lib/unictype/pr_non_break.c: New file.
7542         * lib/unictype/pr_not_a_character.c: New file.
7543         * lib/unictype/pr_numeric.c: New file.
7544         * lib/unictype/pr_other_alphabetic.c: New file.
7545         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7546         * lib/unictype/pr_other_grapheme_extend.c: New file.
7547         * lib/unictype/pr_other_id_continue.c: New file.
7548         * lib/unictype/pr_other_id_start.c: New file.
7549         * lib/unictype/pr_other_lowercase.c: New file.
7550         * lib/unictype/pr_other_math.c: New file.
7551         * lib/unictype/pr_other_uppercase.c: New file.
7552         * lib/unictype/pr_paired_punctuation.c: New file.
7553         * lib/unictype/pr_paragraph_separator.c: New file.
7554         * lib/unictype/pr_pattern_syntax.c: New file.
7555         * lib/unictype/pr_pattern_white_space.c: New file.
7556         * lib/unictype/pr_private_use.c: New file.
7557         * lib/unictype/pr_punctuation.c: New file.
7558         * lib/unictype/pr_quotation_mark.c: New file.
7559         * lib/unictype/pr_radical.c: New file.
7560         * lib/unictype/pr_sentence_terminal.c: New file.
7561         * lib/unictype/pr_soft_dotted.c: New file.
7562         * lib/unictype/pr_space.c: New file.
7563         * lib/unictype/pr_terminal_punctuation.c: New file.
7564         * lib/unictype/pr_test.c: New file.
7565         * lib/unictype/pr_titlecase.c: New file.
7566         * lib/unictype/pr_unassigned_code_value.c: New file.
7567         * lib/unictype/pr_unified_ideograph.c: New file.
7568         * lib/unictype/pr_uppercase.c: New file.
7569         * lib/unictype/pr_variation_selector.c: New file.
7570         * lib/unictype/pr_white_space.c: New file.
7571         * lib/unictype/pr_xid_continue.c: New file.
7572         * lib/unictype/pr_xid_start.c: New file.
7573         * lib/unictype/pr_zero_width.c: New file.
7574         * lib/unictype/scripts.c: New file.
7575         * lib/unictype/sy_c_ident.c: New file.
7576         * lib/unictype/sy_c_whitespace.c: New file.
7577         * lib/unictype/sy_java_ident.c: New file.
7578         * lib/unictype/sy_java_whitespace.c: New file.
7579
7580         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7581         Unicode 5.0.0.
7582         * lib/unictype/blocks.h: Likewise.
7583         * lib/unictype/categ_C.h: Likewise.
7584         * lib/unictype/categ_Cc.h: Likewise.
7585         * lib/unictype/categ_Cf.h: Likewise.
7586         * lib/unictype/categ_Cn.h: Likewise.
7587         * lib/unictype/categ_Co.h: Likewise.
7588         * lib/unictype/categ_Cs.h: Likewise.
7589         * lib/unictype/categ_L.h: Likewise.
7590         * lib/unictype/categ_Ll.h: Likewise.
7591         * lib/unictype/categ_Lm.h: Likewise.
7592         * lib/unictype/categ_Lo.h: Likewise.
7593         * lib/unictype/categ_Lt.h: Likewise.
7594         * lib/unictype/categ_Lu.h: Likewise.
7595         * lib/unictype/categ_M.h: Likewise.
7596         * lib/unictype/categ_Mc.h: Likewise.
7597         * lib/unictype/categ_Me.h: Likewise.
7598         * lib/unictype/categ_Mn.h: Likewise.
7599         * lib/unictype/categ_N.h: Likewise.
7600         * lib/unictype/categ_Nd.h: Likewise.
7601         * lib/unictype/categ_Nl.h: Likewise.
7602         * lib/unictype/categ_No.h: Likewise.
7603         * lib/unictype/categ_P.h: Likewise.
7604         * lib/unictype/categ_Pc.h: Likewise.
7605         * lib/unictype/categ_Pd.h: Likewise.
7606         * lib/unictype/categ_Pe.h: Likewise.
7607         * lib/unictype/categ_Pf.h: Likewise.
7608         * lib/unictype/categ_Pi.h: Likewise.
7609         * lib/unictype/categ_Po.h: Likewise.
7610         * lib/unictype/categ_Ps.h: Likewise.
7611         * lib/unictype/categ_S.h: Likewise.
7612         * lib/unictype/categ_Sc.h: Likewise.
7613         * lib/unictype/categ_Sk.h: Likewise.
7614         * lib/unictype/categ_Sm.h: Likewise.
7615         * lib/unictype/categ_So.h: Likewise.
7616         * lib/unictype/categ_Z.h: Likewise.
7617         * lib/unictype/categ_Zl.h: Likewise.
7618         * lib/unictype/categ_Zp.h: Likewise.
7619         * lib/unictype/categ_Zs.h: Likewise.
7620         * lib/unictype/categ_of.h: Likewise.
7621         * lib/unictype/combining.h: Likewise.
7622         * lib/unictype/ctype_alnum.h: Likewise.
7623         * lib/unictype/ctype_alpha.h: Likewise.
7624         * lib/unictype/ctype_blank.h: Likewise.
7625         * lib/unictype/ctype_cntrl.h: Likewise.
7626         * lib/unictype/ctype_digit.h: Likewise.
7627         * lib/unictype/ctype_graph.h: Likewise.
7628         * lib/unictype/ctype_lower.h: Likewise.
7629         * lib/unictype/ctype_print.h: Likewise.
7630         * lib/unictype/ctype_punct.h: Likewise.
7631         * lib/unictype/ctype_space.h: Likewise.
7632         * lib/unictype/ctype_upper.h: Likewise.
7633         * lib/unictype/ctype_xdigit.h: Likewise.
7634         * lib/unictype/decdigit.h: Likewise.
7635         * lib/unictype/digit.h: Likewise.
7636         * lib/unictype/mirror.h: Likewise.
7637         * lib/unictype/numeric.h: Likewise.
7638         * lib/unictype/pr_alphabetic.h: Likewise.
7639         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7640         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7642         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7643         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7644         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7645         * lib/unictype/pr_bidi_control.h: Likewise.
7646         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7647         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7648         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7649         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7650         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7651         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7652         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7653         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7654         * lib/unictype/pr_bidi_pdf.h: Likewise.
7655         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7656         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7657         * lib/unictype/pr_combining.h: Likewise.
7658         * lib/unictype/pr_composite.h: Likewise.
7659         * lib/unictype/pr_currency_symbol.h: Likewise.
7660         * lib/unictype/pr_dash.h: Likewise.
7661         * lib/unictype/pr_decimal_digit.h: Likewise.
7662         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7663         * lib/unictype/pr_deprecated.h: Likewise.
7664         * lib/unictype/pr_diacritic.h: Likewise.
7665         * lib/unictype/pr_extender.h: Likewise.
7666         * lib/unictype/pr_format_control.h: Likewise.
7667         * lib/unictype/pr_grapheme_base.h: Likewise.
7668         * lib/unictype/pr_grapheme_extend.h: Likewise.
7669         * lib/unictype/pr_grapheme_link.h: Likewise.
7670         * lib/unictype/pr_hex_digit.h: Likewise.
7671         * lib/unictype/pr_hyphen.h: Likewise.
7672         * lib/unictype/pr_id_continue.h: Likewise.
7673         * lib/unictype/pr_id_start.h: Likewise.
7674         * lib/unictype/pr_ideographic.h: Likewise.
7675         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7676         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7677         * lib/unictype/pr_ignorable_control.h: Likewise.
7678         * lib/unictype/pr_iso_control.h: Likewise.
7679         * lib/unictype/pr_join_control.h: Likewise.
7680         * lib/unictype/pr_left_of_pair.h: Likewise.
7681         * lib/unictype/pr_line_separator.h: Likewise.
7682         * lib/unictype/pr_logical_order_exception.h: Likewise.
7683         * lib/unictype/pr_lowercase.h: Likewise.
7684         * lib/unictype/pr_math.h: Likewise.
7685         * lib/unictype/pr_non_break.h: Likewise.
7686         * lib/unictype/pr_not_a_character.h: Likewise.
7687         * lib/unictype/pr_numeric.h: Likewise.
7688         * lib/unictype/pr_other_alphabetic.h: Likewise.
7689         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7690         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7691         * lib/unictype/pr_other_id_continue.h: Likewise.
7692         * lib/unictype/pr_other_id_start.h: Likewise.
7693         * lib/unictype/pr_other_lowercase.h: Likewise.
7694         * lib/unictype/pr_other_math.h: Likewise.
7695         * lib/unictype/pr_other_uppercase.h: Likewise.
7696         * lib/unictype/pr_paired_punctuation.h: Likewise.
7697         * lib/unictype/pr_paragraph_separator.h: Likewise.
7698         * lib/unictype/pr_pattern_syntax.h: Likewise.
7699         * lib/unictype/pr_pattern_white_space.h: Likewise.
7700         * lib/unictype/pr_private_use.h: Likewise.
7701         * lib/unictype/pr_punctuation.h: Likewise.
7702         * lib/unictype/pr_quotation_mark.h: Likewise.
7703         * lib/unictype/pr_radical.h: Likewise.
7704         * lib/unictype/pr_sentence_terminal.h: Likewise.
7705         * lib/unictype/pr_soft_dotted.h: Likewise.
7706         * lib/unictype/pr_space.h: Likewise.
7707         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7708         * lib/unictype/pr_titlecase.h: Likewise.
7709         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7710         * lib/unictype/pr_unified_ideograph.h: Likewise.
7711         * lib/unictype/pr_uppercase.h: Likewise.
7712         * lib/unictype/pr_variation_selector.h: Likewise.
7713         * lib/unictype/pr_white_space.h: Likewise.
7714         * lib/unictype/pr_xid_continue.h: Likewise.
7715         * lib/unictype/pr_xid_start.h: Likewise.
7716         * lib/unictype/pr_zero_width.h: Likewise.
7717         * lib/unictype/scripts.h: Likewise.
7718         * lib/unictype/scripts_byname.gperf: Likewise.
7719         * lib/unictype/sy_c_ident.h: Likewise.
7720         * lib/unictype/sy_c_whitespace.h: Likewise.
7721         * lib/unictype/sy_java_ident.h: Likewise.
7722         * lib/unictype/sy_java_whitespace.h: Likewise.
7723
7724         * lib/unictype/Makefile: New file.
7725         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7726         glibc.
7727         * lib/unictype/3level.h: New file, copied from glibc.
7728         * lib/unictype/3levelbit.h: New file.
7729
7730 2007-11-11  Bruno Haible  <bruno@clisp.org>
7731
7732         * modules/gperf: New file.
7733         * modules/iconv_open (Depends-on): Add it.
7734         (Makefile.am): Remove the GPERF definition.
7735
7736 2007-11-11  Bruno Haible  <bruno@clisp.org>
7737
7738         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7739         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7740
7741 2007-11-11  Bruno Haible  <bruno@clisp.org>
7742
7743         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7744         (usage): Remove function.
7745
7746 2007-11-11  Bruno Haible  <bruno@clisp.org>
7747
7748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7749         gl_FUNC_CEILF_LIBS.
7750         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7751         gl_FUNC_CEIL_LIBS.
7752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7753         gl_FUNC_CEILL_LIBS.
7754         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7755         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7756         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7757
7758 2007-11-11  Bruno Haible  <bruno@clisp.org>
7759
7760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7761         roundf were declared but do not exist on functions.
7762         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7763         roundl were declared but do not exist on functions.
7764         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7765         HAVE_FLOORL_AND_CEILL, respectively.
7766         Needed for Sun C on Solaris 10.
7767
7768 2007-11-11  Bruno Haible  <bruno@clisp.org>
7769
7770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7771         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7772         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7773         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7775         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7776         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7777         HAVE_DECL_ROUNDF.
7778         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7779         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7781         of HAVE_DECL_ROUND*.
7782         * modules/math (Makefile.am): Update.
7783
7784 2007-11-10  Bruno Haible  <bruno@clisp.org>
7785
7786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7787         ptrdiff_t as m4/intl.m4.
7788
7789 2007-11-10  Jim Meyering  <meyering@redhat.com>
7790
7791         Avoid link failure for the argmatch test.
7792         * tests/test-argmatch.c (usage): Define function to avoid a link
7793         failure: argmatch_die requires a usage function.
7794
7795 2007-11-09  Bruno Haible  <bruno@clisp.org>
7796
7797         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7798         * doc/functions/vsnprintf.texi: Likewise.
7799         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7800         with a size argument < 2.
7801
7802 2007-11-09  Bruno Haible  <bruno@clisp.org>
7803
7804         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7805         buffer. Fixes an inefficiency introduced on 2007-11-03.
7806
7807 2007-11-09  Bruno Haible  <bruno@clisp.org>
7808
7809         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7810         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7811
7812 2007-11-08  Jim Meyering  <meyering@redhat.com>
7813
7814         Change cache variable name prefix "jm_" to "gl_" everywhere.
7815         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7816         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7817         * m4/uptime.m4: s/gl_/jm_/
7818
7819 2007-11-07  Bruno Haible  <bruno@clisp.org>
7820
7821         Update to GNU gettext 0.17.
7822         * m4/intl.m4: Update to GNU gettext 0.17.
7823         * m4/po.m4: Likewise.
7824         * modules/gettext (Files): Remove m4/ulonglong.m4.
7825         (configure.ac): Require gettext infrastructure from version 0.17.
7826
7827 2007-11-06  Bruno Haible  <bruno@clisp.org>
7828
7829         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7830         symbolic values are not defined in a public header.
7831         * lib/freadable.c (freadable) [QNX]: Likewise.
7832         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7833         * lib/freading.c (freading) [QNX]: Likewise.
7834         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7835         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7836         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7837         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7838         Reported by Alain Magloire.
7839
7840         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7841
7842 2007-11-05  Bruno Haible  <bruno@clisp.org>
7843
7844         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7845         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7846         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7847         Reported by Eric Blake.
7848
7849 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7850             Bruno Haible  <bruno@clisp.org>
7851
7852         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7853         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7854         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7855         (malloc): Undefine also before including <stdlib.h>.
7856         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7857         Needed on OSF/1 4.0.
7858
7859 2007-11-05  Jim Meyering  <meyering@redhat.com>
7860
7861         git-version-gen: sync from coreutils.
7862         * build-aux/git-version-gen: Add comments.
7863         Change the first '-' to '.' in the snapshot version string,
7864         e.g., 6.9-377-08144 -> 6.9.377-08144
7865         Remove first parameter.
7866         Don't declare a version "-dirty" merely because a time
7867         stamp has changed.
7868
7869 2007-11-04  Bruno Haible  <bruno@clisp.org>
7870
7871         * lib/lock.h: Protect all macro definitions containing an 'if'
7872         statement through a "do { ... } while (0)".
7873         * lib/tls.h: Likewise.
7874
7875 2007-11-04  Bruno Haible  <bruno@clisp.org>
7876
7877         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7878
7879 2007-11-04  Bruno Haible  <bruno@clisp.org>
7880
7881         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7882         * modules/fprintf-posix (Depends-on): Add nocrash.
7883         * modules/snprintf-posix (Depends-on): Likewise.
7884         * modules/sprintf-posix (Depends-on): Likewise.
7885         * modules/vasnprintf-posix (Depends-on): Likewise.
7886         * modules/vasprintf-posix (Depends-on): Likewise.
7887         * modules/vfprintf-posix (Depends-on): Likewise.
7888         * modules/vsnprintf-posix (Depends-on): Likewise.
7889         * modules/vsprintf-posix (Depends-on): Likewise.
7890         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7891         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7892         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7893         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7894         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7895         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7896         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7897
7898 2007-11-04  Bruno Haible  <bruno@clisp.org>
7899
7900         * modules/nocrash: New file.
7901         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7902         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7903
7904 2007-11-04  Bruno Haible  <bruno@clisp.org>
7905
7906         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7907         precision handling.
7908         * tests/test-vasprintf-posix.c (test_function): Likewise.
7909         * tests/test-snprintf-posix.h (test_function): Likewise.
7910         * tests/test-sprintf-posix.h (test_function): Likewise.
7911
7912         Fix *printf behaviour for large precisions on mingw and BeOS.
7913         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7914         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7916         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7918         gl_PRINTF_PRECISION and test its result. Invoke
7919         gl_PREREQ_VASNPRINTF_PRECISION.
7920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7927         * doc/functions/fprintf.texi: Update.
7928         * doc/functions/printf.texi: Update.
7929         * doc/functions/snprintf.texi: Update.
7930         * doc/functions/sprintf.texi: Update.
7931         * doc/functions/vfprintf.texi: Update.
7932         * doc/functions/vprintf.texi: Update.
7933         * doc/functions/vsnprintf.texi: Update.
7934         * doc/functions/vsprintf.texi: Update.
7935
7936 2007-11-04  Bruno Haible  <bruno@clisp.org>
7937
7938         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7939
7940 2007-11-04  Bruno Haible  <bruno@clisp.org>
7941
7942         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7943         Reported by Sylvain Beucler <beuc@gnu.org>.
7944
7945 2007-11-03  Bruno Haible  <bruno@clisp.org>
7946
7947         * tests/test-fprintf-posix2.sh: New file.
7948         * tests/test-fprintf-posix2.c: New file.
7949         * modules/fprintf-posix-tests (Files): Add them.
7950         (TESTS): Add test-fprintf-posix2.sh.
7951         (configure.ac): Check for getrlimit and setrlimit.
7952         (check_PROGRAMS): Add test-fprintf-posix2.
7953
7954         * tests/test-printf-posix2.sh: New file.
7955         * tests/test-printf-posix2.c: New file.
7956         * modules/printf-posix-tests (Files): Add them.
7957         (TESTS): Add test-printf-posix2.sh.
7958         (configure.ac): Check for getrlimit and setrlimit.
7959         (check_PROGRAMS): Add test-printf-posix2.
7960
7961         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7962         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7963         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7964         (decode_double): New function, copied from decode_long_double.
7965         (scale10_round_decimal_decoded): New function, extracted from
7966         scale10_round_decimal_long_double.
7967         (scale10_round_decimal_long_double): Use it.
7968         (scale10_round_decimal_double): New function.
7969         (floorlog10): New function.
7970         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7972         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7974         gl_PRINTF_ENOMEM and test its result. Invoke
7975         gl_PREREQ_VASNPRINTF_ENOMEM.
7976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7977         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7980         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7983         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7984         * modules/snprintf-posix (Depends-on): Likewise.
7985         * modules/sprintf-posix (Depends-on): Likewise.
7986         * modules/vasnprintf-posix (Depends-on): Likewise.
7987         * modules/vasprintf-posix (Depends-on): Likewise.
7988         * modules/vfprintf-posix (Depends-on): Likewise.
7989         * modules/vsnprintf-posix (Depends-on): Likewise.
7990         * modules/vsprintf-posix (Depends-on): Likewise.
7991         * doc/functions/fprintf.texi: Update.
7992         * doc/functions/printf.texi: Update.
7993         * doc/functions/snprintf.texi: Update.
7994         * doc/functions/sprintf.texi: Update.
7995         * doc/functions/vfprintf.texi: Update.
7996         * doc/functions/vprintf.texi: Update.
7997         * doc/functions/vsnprintf.texi: Update.
7998         * doc/functions/vsprintf.texi: Update.
7999
8000 2007-11-03  Bruno Haible  <bruno@clisp.org>
8001
8002         * modules/frexp-nolibm-tests: New file.
8003
8004         * modules/frexp-nolibm: New file.
8005         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
8006
8007 2007-11-03  Bruno Haible  <bruno@clisp.org>
8008
8009         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
8010         value is C99 compliant.
8011         Needed for OSF/1 5.1.
8012
8013 2007-11-03  Bruno Haible  <bruno@clisp.org>
8014
8015         Fix out-of-memory handling of vasnprintf.
8016         * lib/printf-parse.c: Include <errno.h>.
8017         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
8018         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
8019         is already set.
8020
8021 2007-11-02  Eric Blake  <ebb9@byu.net>
8022
8023         Fix tests on cygwin.
8024         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
8025
8026 2007-11-01  Bruno Haible  <bruno@clisp.org>
8027
8028         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
8029         warning.
8030         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
8031         needed for POSIX compatibility.
8032
8033 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8034
8035         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
8036         for compatibility with GNU.
8037
8038 2007-11-01  Bruno Haible  <bruno@clisp.org>
8039
8040         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
8041         (putenv): Renamed from rpl_putenv. Change argument type from
8042         'const char *' to 'char *'.
8043         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
8044         of defining putenv in config.h, just set REPLACE_PUTENV.
8045         * modules/putenv (Depends-on): Add stdlib.
8046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8047         (Include): Use <stdlib.h>.
8048         * lib/stdlib.in.h (putenv): New declaration.
8049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
8050         REPLACE_PUTENV.
8051         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
8052         REPLACE_PUTENV.
8053         Needed for MacOS X 10.5.0.
8054         Reported by Peter O'Gorman <peter@pogma.com>.
8055
8056 2007-11-01  Jim Meyering  <meyering@redhat.com>
8057
8058         Treat an empty date string exactly like "0".
8059         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
8060         if the remaining date string (to be parsed) is empty, use "0".
8061         Reported by Mischa Molhoek and discussed in this thread:
8062         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
8063
8064 2007-10-31  Bruno Haible  <bruno@clisp.org>
8065
8066         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
8067         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
8068         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
8069         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
8070         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
8071         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
8072
8073 2007-10-31  Bruno Haible  <bruno@clisp.org>
8074
8075         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
8076         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
8077         (AC_TYPE_LONG_LONG_INT): Use it.
8078         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
8079         it as well.
8080         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
8081         to m4/longlong.m4.
8082         * modules/stdint (Files): Remove m4/ulonglong.m4.
8083         * modules/strtoull (Files): Use m4/longlong.m4 instead of
8084         m4/ulonglong.m4.
8085         * modules/strtoumax (Files): Likewise.
8086
8087 2007-10-30  Bruno Haible  <bruno@clisp.org>
8088
8089         * modules/xvasprintf-posix: New file.
8090         Suggested by Eric Blake.
8091
8092 2007-10-30  Bruno Haible  <bruno@clisp.org>
8093
8094         * modules/xprintf-posix-tests: New file.
8095         * tests/test-xprintf-posix.sh: New file.
8096         * tests/test-xprintf-posix.c: New file.
8097         * tests/test-xfprintf-posix.c: New file.
8098
8099         * modules/xprintf-posix: New file.
8100
8101 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8102
8103         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
8104         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
8105         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
8106
8107 2007-10-29  Bruno Haible  <bruno@clisp.org>
8108
8109         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
8110         contain the special marker '_cv_'.
8111         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8112         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8113         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8114         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8115         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8116         Reported by Ralf Wildenhues.
8117
8118 2007-10-29  Bruno Haible  <bruno@clisp.org>
8119
8120         * gnulib-tool (func_import): When --lgpl is not specified, set
8121         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
8122         GPLv3.
8123         Reported by Simon Josefsson.
8124
8125 2007-10-28  Bruno Haible  <bruno@clisp.org>
8126
8127         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
8128         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
8129         HAVE_DECL_ISFINITE.
8130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8131         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
8132         HAVE_DECL_ISFINITE.
8133
8134 2007-10-28  Bruno Haible  <bruno@clisp.org>
8135
8136         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
8137         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
8138
8139 2007-10-28  Bruno Haible  <bruno@clisp.org>
8140
8141         Fix link errors with Sun C 5.0 on Solaris 10.
8142         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
8143         function is declared but not present in the compiler's libm.
8144         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8145         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8146         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
8147         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
8148         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
8149         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
8150         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
8151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
8152         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
8153         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
8154         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8155         HAVE_DECL_FLOORL.
8156
8157 2007-10-28  Bruno Haible  <bruno@clisp.org>
8158
8159         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8160         gl_FUNC_FLOORL. Cache the result.
8161         (gl_FUNC_FLOORL): Use it.
8162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8163         gl_FUNC_CEILL. Cache the result.
8164         (gl_FUNC_CEILL): Use it.
8165
8166         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8167         gl_FUNC_FLOOR. Cache the result.
8168         (gl_FUNC_FLOOR): Use it.
8169         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8170         gl_FUNC_CEIL. Cache the result.
8171         (gl_FUNC_CEIL): Use it.
8172
8173         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8174         gl_FUNC_FLOORF. Cache the result.
8175         (gl_FUNC_FLOORF): Use it.
8176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8177         gl_FUNC_CEILF. Cache the result.
8178         (gl_FUNC_CEILF): Use it.
8179
8180 2007-10-28  Bruno Haible  <bruno@clisp.org>
8181
8182         * gnulib-tool: Allow specifying the LGPL version number through
8183         --lgpl=2 or --lgpl=3.
8184         (func_usage): Document --lgpl with argument.
8185         Handle --lgpl=... arguments.
8186         (func_import): Recognize also gl_LGPL calls with an argument. When
8187         --lgpl=2 is used and the module's license is just LGPL, report an
8188         error. Set sed_transform_lib_file according to the lgpl variable. In
8189         the generated files, use --lgpl or gl_LGPL invocations with argument,
8190         if necessary.
8191         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8192         an LGPv2+ license.
8193         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8194         gl_LGPL macro.
8195
8196 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8197             Bruno Haible  <bruno@clisp.org>
8198
8199         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8200         (u16_uctomb_aux): Likewise.
8201         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8202         !HAVE_INLINE.
8203         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8204
8205 2007-10-28  Bruno Haible  <bruno@clisp.org>
8206
8207         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8208         Invoke AM_GETTEXT_OPTION if it exists.
8209         * modules/vasprintf: Likewise.
8210         * modules/verror: Likewise.
8211         * modules/xprintf: Likewise.
8212         * modules/xvasprintf: Likewise.
8213
8214 2007-10-27  Ben Pfaff  <blp@gnu.org>
8215
8216         * lib/math.in.h: Define isfinite macro and prototypes for
8217         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8218         implementations.
8219         * m4/math_h.m4: New substitutions for isfinite module.
8220         * lib/isfinite.c: New file.
8221         * m4/isfinite.m4: New file.
8222         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8223         * modules/isfinite: New file.
8224         * modules/isfinite-tests: New file.
8225         * tests/tests-isfinite.c: New file.
8226         * doc/functions/isfinite.texi: Mention isfinite module.
8227         * MODULES.html.sh: Mention new module.
8228
8229 2007-10-27  Ben Pfaff  <blp@gnu.org>
8230
8231         Ralf Wildenhues reported that Tru64 4.0D declares the round
8232         functions but does not have definitions.
8233         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8234         cannot be found in any library, set the output variable to
8235         "missing" instead of "".
8236         * m4/round.m4: Also use our substitute if we cannot find round in
8237         any library, even if it is declared.
8238         * m4/roundf.m4: Likewise for roundf.
8239         * m4/roundl.m4: Likewise for roundl.
8240         * lib/math.in.h: Undefine roundf, round, roundl before defining
8241         their replacements, to allow for hypothetical systems where these
8242         may be defined as macros but not available in libraries.
8243
8244 2007-10-27  Bruno Haible  <bruno@clisp.org>
8245
8246         * doc/gnulib.texi: Invoke @firstparagraphindent.
8247         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8248         changes in gnulib.
8249         (Source changes): New section.
8250
8251 2007-10-26  Bruno Haible  <bruno@clisp.org>
8252
8253         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8254         borrowed from autoconf.
8255
8256 2007-10-26  Bruno Haible  <bruno@clisp.org>
8257
8258         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8259         strerror returned the empty string. Needed on HP-UX 11.00.
8260
8261 2007-10-24  Micah Cowan  <micah@cowan.name>
8262
8263         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8264         * build-aux/bootstrap: Remove support for now-unnecessary option,
8265         --cvs-user, and envvars CVS_USER, CVS_RSH.
8266
8267 2007-10-24  Jim Meyering  <meyering@redhat.com>
8268
8269         Avoid diagnostics from sha1sum when there is no cached checksum.
8270         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8271         if the po.s1 file hasn't been created yet.
8272
8273         * build-aux/bootstrap: Sync from coreutils:
8274         2007-10-24  Jim Meyering  <meyering@redhat.com>
8275         Get gnulib from the git repository, not from an obsolete cvs one.
8276         * build-aux/bootstrap: Suggestion from Micah Cowan.
8277         2007-10-04  Jim Meyering  <jim@meyering.net>
8278         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8279         (update_po_files): Work also when there are no .po files in po/.
8280
8281 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8282
8283         * README: Append ".git" to git and cg examples.
8284         Problem reported by Benoit Sigoure.
8285
8286 2007-10-23  Micah Cowan  <micah@cowan.name>
8287
8288         * users.txt: Add wget.
8289
8290 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8291
8292         Fix linking of some unistdio tests on FreeBSD.
8293         * modules/unistdio/u16-vsnprintf-tests
8294         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8295         * modules/unistdio/u16-vsprintf-tests
8296         (test_u16_vsnprintf1_LDADD): Likewise.
8297         * modules/unistdio/u32-vsnprintf-tests
8298         (test_u32_vsnprintf1_LDADD): Likewise.
8299         * modules/unistdio/u32-vsprintf-tests
8300         (test_u32_vsprintf1_LDADD): Likewise.
8301         * modules/unistdio/u8-vsnprintf-tests
8302         (test_u8_vsnprintf1_LDADD): Likewise.
8303         * modules/unistdio/u8-vsprintf-tests
8304         (test_u8_vsprintf1_LDADD): Likewise.
8305         * modules/unistdio/ulc-vsnprintf-tests
8306         (test_ulc_vsnprintf1_LDADD): Likewise.
8307         * modules/unistdio/ulc-vsprintf-tests
8308         (test_ulc_vsprintf1_LDADD): Likewise.
8309
8310         Fix linking of some uniconv tests on FreeBSD.
8311         * modules/uniconv/u16-conv-from-enc-tests
8312         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8313         * modules/uniconv/u16-conv-to-enc-tests
8314         (test_u16_conv_to_enc_LDADD): Likewise.
8315         * modules/uniconv/u16-strconv-from-enc-tests
8316         (test_u16_strconv_from_enc_LDADD): Likewise.
8317         * modules/uniconv/u16-strconv-to-enc-tests
8318         (test_u16_strconv_to_enc_LDADD): Likewise.
8319         * modules/uniconv/u32-conv-from-enc-tests
8320         (test_u32_conv_from_enc_LDADD): Likewise.
8321         * modules/uniconv/u32-conv-to-enc-tests
8322         (test_u32_conv_to_enc_LDADD): Likewise.
8323         * modules/uniconv/u32-strconv-from-enc-tests
8324         (test_u32_strconv_from_enc_LDADD): Likewise.
8325         * modules/uniconv/u32-strconv-to-enc-tests
8326         (test_u32_strconv_to_enc_LDADD): Likewise.
8327         * modules/uniconv/u8-conv-from-enc-tests
8328         (test_u8_conv_from_enc_LDADD): Likewise.
8329         * modules/uniconv/u8-conv-to-enc-tests
8330         (test_u8_conv_to_enc_LDADD): Likewise.
8331         * modules/uniconv/u8-strconv-from-enc-tests
8332         (test_u8_strconv_from_enc_LDADD): Likewise.
8333         * modules/uniconv/u8-strconv-to-enc-tests
8334         (test_u8_strconv_to_enc_LDADD): Likewise.
8335
8336 2007-10-22  Bruno Haible  <bruno@clisp.org>
8337
8338         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8339         size.
8340
8341 2007-10-22  Eric Blake  <ebb9@byu.net>
8342
8343         Tweak x*printf documentation.
8344         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8345         variable name and comments.
8346         Suggested by Bruno Haible.
8347
8348 2007-10-22  Bruno Haible  <bruno@clisp.org>
8349
8350         * lib/acl.c (copy_acl): Fix file name in comment.
8351
8352 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8353
8354         Fix Tru64 problem with stdbool.h.
8355         * lib/stdbool.in.h (false, true):
8356         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8357         Don't declare as an enum in this situation; it runs afoul of Tru64.
8358         Problem reported by Steven M. Schweda in
8359         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8360
8361 2007-10-22  Eric Blake  <ebb9@byu.net>
8362
8363         Also wrap vf?printf.
8364         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8365         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8366         (xvprintf, xvfprintf): New functions.
8367
8368 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8369
8370         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8371         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8372
8373         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8374         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8375
8376 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8377
8378         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8379         by Bruno Haible.
8380
8381 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8382
8383         * lib/getloadavg.c
8384         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8385         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8386
8387         * tests/test-i-ring.c: Work for C89.
8388
8389 2007-10-22  Bruno Haible  <bruno@clisp.org>
8390
8391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8392         -1u, in preprocessor expression, so that we don't test for the bug
8393         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8395
8396 2007-10-22  Eric Blake  <ebb9@byu.net>
8397
8398         * tests/test-yesno.sh: Silence stderr during test.
8399
8400 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8401
8402         * modules/crypto/gc-camellia: New file.
8403
8404         * m4/gc-camellia.m4: New file.
8405
8406         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8407
8408         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8409
8410 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8411
8412         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8413         --help to stdout.  Reported by sms@antinode.org (Steven
8414         M. Schweda).
8415
8416 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8417
8418         * users.txt: Fix link to libksba.
8419
8420 2007-10-21  Ben Pfaff  <blp@gnu.org>
8421
8422         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8423         round.c roundf implementation that depends on floorf and ceilf to
8424         be tested unconditionally.
8425
8426 2007-10-21  Ben Pfaff  <blp@gnu.org>
8427
8428         * m4/check-libm-func.m4: Removed.
8429         * m4/check-math-lib.m4: New file.
8430         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8431         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8432         definition and lack of AC_LIBOBJ([roundf]).
8433         * m4/roundl.m4: Ditto, and similarly for roundl.
8434         * modules/round: Reference new m4 file.
8435         * modules/roundf: Ditto.
8436         * modules/roundl: Ditto.
8437         * tests/test-round2.c (main): Use ROUND instead of round.
8438         Bug report from Bruno Haible.
8439
8440 2007-10-21  Bruno Haible  <bruno@clisp.org>
8441
8442         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8443         context.
8444
8445 2007-10-21  Bruno Haible  <bruno@clisp.org>
8446
8447         * tests/test-wcwidth.c (main): Allow negative result for some control
8448         characters.
8449
8450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8451         Needed on OSF/1 5.1.
8452
8453 2007-10-21  Bruno Haible  <bruno@clisp.org>
8454
8455         * tests/test-floorf1.c: Include isnanf.h.
8456         (main): Use isnanf() instead of isnan().
8457         * tests/test-ceilf1.c: Include isnanf.h.
8458         (main): Use isnanf() instead of isnan().
8459         * tests/test-truncf1.c: Include isnanf.h.
8460         (main): Use isnanf() instead of isnan().
8461         * tests/test-roundf1.c: Include isnanf.h.
8462         (main): Use isnanf() instead of isnan().
8463
8464 2007-10-21  Eric Blake  <ebb9@byu.net>
8465
8466         * users.txt: Update URL for m4.
8467
8468 2007-10-21  Bruno Haible  <bruno@clisp.org>
8469
8470         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8471
8472 2007-10-21  Bruno Haible  <bruno@clisp.org>
8473
8474         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8475         Git's management files if the CVS files are not present.
8476
8477 2007-10-20  Bruno Haible  <bruno@clisp.org>
8478
8479         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8480         gcc-3.4.x.
8481
8482 2007-10-20  Ben Pfaff  <blp@gnu.org>
8483
8484         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8485         implementations.
8486         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8487         * lib/round.c: New file.
8488         * lib/roundf.c: New file.
8489         * lib/roundl.c: New file.
8490         * m4/round.m4: New file.
8491         * m4/roundf.m4: New file.
8492         * m4/roundl.m4: New file.
8493         * m4/check-libm-func-m4: New file.
8494         * modules/math: Replace round, roundf, roundl related @VARS@ in
8495         math.in.h.
8496         * modules/round: New file.
8497         * modules/round-tests: New file.
8498         * modules/roundf: New file.
8499         * modules/roundf-tests: New file.
8500         * modules/roundl: New file.
8501         * modules/roundl-tests: New file.
8502         * tests/test-round1.c: New file.
8503         * tests/test-round2.c: New file.
8504         * tests/test-roundf1.c: New file.
8505         * tests/test-roundf2.c: New file.
8506         * tests/test-roundl.c: New file.
8507         * doc/functions/round.texi: Mention round module.
8508         * doc/functions/roundf.texi: Mention roundf module.
8509         * doc/functions/roundl.texi: Mention roundl module.
8510         * MODULES.html.sh: Mention new modules.
8511         Thanks to Bruno Haible for suggestions.
8512
8513 2007-10-20  Jim Meyering  <meyering@redhat.com>
8514
8515         * lib/xprintf.c: Include <config.h> unconditionally.
8516
8517         Change xprintf's license to GPL.
8518         * modules/xprintf (License): s/LGPL/GPL/, since this module
8519         depends on modules (exit and exitfail) which are GPL.
8520         Suggestion from Bruno Haible.
8521
8522         xprintf fixes.
8523         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8524         Use a clearer diagnostic.
8525         Patch from Bruno Haible.
8526
8527 2007-10-20  Bruno Haible  <bruno@clisp.org>
8528
8529         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8530         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8532
8533 2007-10-20  Bruno Haible  <bruno@clisp.org>
8534
8535         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8536         precision in the comparison result > x - 1 or similar.
8537         * tests/test-ceilf2.c (correct_result_p): Likewise.
8538         * tests/test-truncf2.c (correct_result_p): Likewise.
8539         * tests/test-trunc2.c (correct_result_p): Likewise.
8540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8541
8542 2007-10-20  Bruno Haible  <bruno@clisp.org>
8543
8544         * modules/ceil: New file.
8545         * m4/ceil.m4: New file.
8546         * doc/functions/ceil.texi: Mention the 'ceil' module.
8547
8548 2007-10-20  Bruno Haible  <bruno@clisp.org>
8549
8550         * modules/floor: New file.
8551         * m4/floor.m4: New file.
8552         * doc/functions/floor.texi: Mention the 'floor' module.
8553
8554 2007-10-20  Bruno Haible  <bruno@clisp.org>
8555
8556         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8557         of %a.
8558         * modules/floorf-tests (Depends-on): Likewise.
8559         * modules/truncf-tests (Depends-on): Likewise.
8560         * modules/trunc-tests (Depends-on): Likewise.
8561         Reported by Ben Pfaff.
8562
8563 2007-10-19  Jim Meyering  <meyering@redhat.com>
8564
8565         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8566         Don't bother testing specific errno values.  Just test ferror.
8567
8568         New module: xprintf
8569         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8570
8571 2007-10-19  Bruno Haible  <bruno@clisp.org>
8572
8573         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8574         syntax.
8575         * modules/javaexec (Makefile.am): Likewise.
8576         * modules/relocatable-prog (Makefile.am): Likewise.
8577         Suggested by Jim Meyering.
8578
8579 2007-10-18  Bruno Haible  <bruno@clisp.org>
8580
8581         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8582         Reported by Jim Meyering.
8583
8584 2007-10-18  Eric Blake  <ebb9@byu.net>
8585
8586         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8587
8588 2007-10-18  Bruno Haible  <bruno@clisp.org>
8589
8590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8591         the format string into writable memory. Needed in Fortify conditions.
8592
8593 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8594             Bruno Haible  <bruno@clisp.org>
8595
8596         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8597         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8598         * modules/trim (Depends-on): Add mbchar.
8599         (configure.ac): Add gl_FUNC_MBRTOWC.
8600         (Makefile.am): Augment lib_SOURCES.
8601
8602 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8603
8604         Modify glob.c to use fstatat and dirfd, to simplify it.
8605         Suggested by Eric Blake.
8606         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8607         Don't include <stdbool.h>; not used.
8608         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8609         (link_exists_p): Simplify implementation, since we can now assume
8610         dirfd and fstatat.
8611         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8612
8613 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8614
8615         * gnulib-tool (func_get_dependencies): Fix sed script to
8616         match only tests.
8617
8618 2007-10-17  Bruno Haible  <bruno@clisp.org>
8619
8620         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8621         allow locale names without encoding suffix.
8622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8624
8625 2007-10-16  Bruno Haible  <bruno@clisp.org>
8626
8627         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8628         * lib/getgroups.c (getgroups): Likewise.
8629         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8630
8631 2007-10-16  Bruno Haible  <bruno@clisp.org>
8632
8633         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8634         * modules/malloc-posix (License): Likewise.
8635         * modules/realloc-posix (License): Likewise.
8636         * modules/calloc-posix (License): Likewise.
8637         * modules/intprops (License): Change from GPL to LGPL, with
8638         Paul Eggert's approval.
8639
8640 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8641
8642         Merge glibc changes into lib/glob.c.
8643
8644         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8645         2007-10-15 04:59:03 UTC.  Here are the changes:
8646
8647         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8648
8649         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8650
8651         * lib/glob.c: Add some branch prediction throughout.
8652
8653         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8654
8655         [BZ #5103]
8656         * lib/glob.c (glob): Recognize patterns starting \/.
8657
8658         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8659
8660         [BZ #3996]
8661         * lib/glob.c (attribute_hidden): Define if not defined.
8662         (glob): Unescape dirname, filename or username when needed and not
8663         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8664         is NULL.  Handle unescaped [ in pattern without closing ].
8665         Don't pass GLOB_CHECK down to recursive glob for directories.
8666         (__glob_pattern_type): New function.
8667         (__glob_pattern_p): Implement using __glob_pattern_type.
8668         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8669         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8670         Remove unreachable code.
8671
8672         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8673
8674         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8675         explain why there are no leaks.
8676
8677         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8678
8679         [BZ #3253]
8680         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8681         time, rather allocate increasingly bigger arrays of pointers, if
8682         possible with alloca, if too large with malloc.
8683
8684 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8685
8686         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8687         Problem reported by H.Merijn Brand in
8688         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8689         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8690         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8691
8692 2007-10-15  Bruno Haible  <bruno@clisp.org>
8693
8694         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8695         with explicit rpl_ prefix.
8696         * lib/fopen.c (fopen): Likewise.
8697         * lib/freopen.c (freopen): Likewise.
8698         * lib/iconv.c (iconv): Likewise.
8699         * lib/iconv_close.c (iconv_close): Likewise.
8700
8701 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8702
8703         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8704
8705 2007-10-15  Bruno Haible  <bruno@clisp.org>
8706
8707         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8708         <stddef.h> instead of <stdlib.h> since we only need NULL.
8709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8710
8711 2007-10-15  Bruno Haible  <bruno@clisp.org>
8712
8713         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8714         Replace paragraph talking about LIBOBJS.
8715         Reported by Colin Watson <cjwatson@debian.org>.
8716
8717 2007-10-15  Bruno Haible  <bruno@clisp.org>
8718
8719         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8720         <stdlib.h> before using NULL.
8721
8722 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8723
8724         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8725         Reported by Albert Chin <china@thewrittenword.com>.
8726
8727 2007-10-14  Bruno Haible  <bruno@clisp.org>
8728
8729         * modules/iconv_open-utf-tests: New file.
8730         * tests/test-iconv-utf.c: New file.
8731
8732         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8733         * modules/iconv_open-utf: New file.
8734         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8735         (iconv, iconv_close): New declarations.
8736         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8737         be defined.
8738         (iconv_open): Add special handling of conversion between UTF-8 and
8739         UTF-{16,32}{BE,LE}.
8740         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8741         * lib/iconv_close.c: New file.
8742         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8743         gl_FUNC_ICONV_OPEN.
8744         (gl_FUNC_ICONV_OPEN): Use it.
8745         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8746         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8747         and REPLACE_ICONV_UTF.
8748         * modules/iconv_open (Depends-on): Add c-strcase.
8749         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8750         ICONV_CONST.
8751         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8752
8753 2007-10-13  Albert Chin  <china@thewrittenword.com>
8754             Bruno Haible  <bruno@clisp.org>
8755
8756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8757         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8758
8759 2007-10-13  Bruno Haible  <bruno@clisp.org>
8760
8761         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8762         defined, use the ISO C99 inline semantics.
8763         * lib/argp.h (ARGP_EI): Likewise.
8764
8765 2007-10-13  Bruno Haible  <bruno@clisp.org>
8766
8767         Handle 'inline' change in gcc 4.3.0.
8768         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8769         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8770         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8771         argp_fmtstream_point): Disable 'extern' declaration if the function
8772         definition is going to be provided inline.
8773         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8774         semantics, not the ISO C99 inline semantics.
8775         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8776         'extern' declaration if the function definition is going to be provided
8777         inline.
8778         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8779         the GNU C inline semantics, not the ISO C99 inline semantics. With
8780         GCC 4.2, avoid a warning.
8781
8782 2007-10-13  Bruno Haible  <bruno@clisp.org>
8783
8784         * lib/freading.h (freading): Enable the use of __freading for
8785         glibc >= 2.7.
8786         * lib/freading.c (freading): Likewise.
8787
8788 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8789
8790         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8791         "warning: C99 inline functions are not supported; using GNU89".
8792
8793 2007-10-12  Bruno Haible  <bruno@clisp.org>
8794
8795         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8796         of 2.
8797         * tests/test-ceilf2.c: New file.
8798         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8799
8800         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8801         * modules/ceilf-tests: Update.
8802
8803 2007-10-12  Bruno Haible  <bruno@clisp.org>
8804
8805         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8806         of 2.
8807         * tests/test-floorf2.c: New file.
8808         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8809
8810         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8811         * modules/floorf-tests: Update.
8812
8813 2007-10-12  Bruno Haible  <bruno@clisp.org>
8814
8815         * tests/test-trunc2.c: New file.
8816         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8817
8818         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8819         * modules/trunc-tests: Update.
8820
8821 2007-10-12  Bruno Haible  <bruno@clisp.org>
8822
8823         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8824         of 2.
8825         * tests/test-truncf2.c: New file.
8826         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8827
8828         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8829         * modules/truncf-tests: Update.
8830
8831 2007-10-11  Eric Blake  <ebb9@byu.net>
8832
8833         Don't claim strerror is broken on Interix.
8834         * doc/functions/strerror.texi (strerror): Known broken systems are
8835         now Solaris 8, and not Interix.
8836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8837         Interix on cross-compile.
8838         Reported by Martin Koeppe in
8839         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8840
8841 2007-10-11  Bruno Haible  <bruno@clisp.org>
8842
8843         * modules/i-ring-tests: New file.
8844         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8845         instead of assert.
8846
8847 2007-10-11  Bruno Haible  <bruno@clisp.org>
8848
8849         * modules/filenamecat-tests: New file.
8850         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8851         * lib/filenamecat.c: Remove test code.
8852
8853 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8854
8855         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8856
8857         * lib/strerror.c: Include <string.h> always, to test interface,
8858         and to remove the need for the dummy.
8859         Include intprops.h to compute width instead of doing it ourselves
8860         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8861         (strerror): Define it to return NULL if there's no system strerror.
8862         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8863         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8864         ancient pre-strerror Unix systems well any more.  Saying "unknown
8865         system error" is enough.
8866         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8867         simpler strerror.c implementation.
8868         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8869         Simplify the tests to reflect the simpler strerror implementation.
8870         * modules/strerror (Depends-on): Add intprops.
8871
8872 2007-10-09  Eric Blake  <ebb9@byu.net>
8873
8874         Silence test-fpending.
8875         * modules/fpending-tests (Files): Add wrapper script.
8876         * tests/test-fpending.sh: New file.
8877
8878 2007-10-09  Bruno Haible  <bruno@clisp.org>
8879
8880         * MODULES.html.sh (func_module): Don't create a hyperlink for
8881         function names like 'printf_frexp'.
8882         (Misc): Add crc, memxor.
8883         (Characteristics of floating types): New section.
8884         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8885         isnanf-nolibm, signbit, trunc, truncf, truncl.
8886         (Enhancements for ISO C 99 functions): New subsection Input/output.
8887         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8888         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8889         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8890         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8891         (Enhancements for POSIX:2001 functions): Add chdir-long.
8892         (File system functions): Add areadlink, chdir-safer, read-file.
8893         Remove cycle-check.
8894         (File system as inode set): New section.
8895         (Date and time): Add gethrxtime.
8896         (Multithreading): Add openmp.
8897         (Internationalization functions): Add localename.
8898         (Unicode string functions): Add unistr/u*-mbsnlen.
8899         (Support for maintaining and releasing projects): Add git-version-gen.
8900         (Lone files): Remove directories.
8901
8902 2007-10-08  Ben Pfaff  <blp@gnu.org>
8903
8904         * lib/xmalloca.h: Fix typo in comment.
8905
8906 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8907
8908         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8909         when avoiding problems with integer overflow.  Use a portable test
8910         instead.
8911
8912 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8913
8914         * modules/dummy (License): Change to LGPLv2+.
8915         * modules/float (License): Likewise
8916         * modules/realloc (License): Likewise
8917         * modules/stdlib (License): Likewise
8918
8919 2007-10-07  Bruno Haible  <bruno@clisp.org>
8920
8921         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8922         * floor.c (TWO_MANT_DIG): Likewise.
8923         * ceil.c (TWO_MANT_DIG): Likewise.
8924         Reported by Ben Pfaff.
8925
8926 2007-10-07  Bruno Haible  <bruno@clisp.org>
8927
8928         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8929         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8930         * lib/frexp.c (FUNC): Likewise.
8931         * lib/printf-frexp.h (printf_frexp): Likewise.
8932         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8933         * lib/printf-frexp.c (FUNC): Likewise.
8934         Suggested by Jim Meyering.
8935
8936 2007-10-07  Jim Meyering  <meyering@redhat.com>
8937
8938         Make xnanosleep's integer overflow test more robust.
8939         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8940         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8941
8942 2007-10-07  Bruno Haible  <bruno@clisp.org>
8943
8944         * NEWS: Mention the license change.
8945
8946         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8947         abbreviations in the modules files.
8948
8949         Change copyright notice from GPLv2+ to GPLv3+.
8950         * README: Change copyright notice.
8951         * MODULES.html.sh: Likewise.
8952         * build-aux/bootstrap.conf: Likewise.
8953         * build-aux/config.libpath: Likewise.
8954         * build-aux/csharpcomp.sh.in: Likewise.
8955         * build-aux/csharpexec.sh.in: Likewise.
8956         * build-aux/install-reloc: Likewise.
8957         * build-aux/javacomp.sh.in: Likewise.
8958         * build-aux/javaexec.sh.in: Likewise.
8959         * build-aux/ldd.sh.in: Likewise.
8960         * build-aux/reloc-ldflags: Likewise.
8961         * build-aux/relocatable.sh.in: Likewise.
8962         * build-aux/x-to-1.in: Likewise.
8963         * check-module: Likewise.
8964         * config/srclistvars.sh: Likewise.
8965         * gnulib-tool: Likewise.
8966         * lib/acl-internal.h: Likewise.
8967         * lib/acl.c: Likewise.
8968         * lib/acl.h: Likewise.
8969         * lib/acl_entries.c: Likewise.
8970         * lib/areadlink-with-size.c: Likewise.
8971         * lib/areadlink.c: Likewise.
8972         * lib/areadlink.h: Likewise.
8973         * lib/argmatch.c: Likewise.
8974         * lib/argmatch.h: Likewise.
8975         * lib/argp-ba.c: Likewise.
8976         * lib/argp-eexst.c: Likewise.
8977         * lib/argp-fmtstream.c: Likewise.
8978         * lib/argp-fmtstream.h: Likewise.
8979         * lib/argp-fs-xinl.c: Likewise.
8980         * lib/argp-help.c: Likewise.
8981         * lib/argp-namefrob.h: Likewise.
8982         * lib/argp-parse.c: Likewise.
8983         * lib/argp-pin.c: Likewise.
8984         * lib/argp-pv.c: Likewise.
8985         * lib/argp-pvh.c: Likewise.
8986         * lib/argp-xinl.c: Likewise.
8987         * lib/argp.h: Likewise.
8988         * lib/at-func.c: Likewise.
8989         * lib/atanl.c: Likewise.
8990         * lib/backupfile.c: Likewise.
8991         * lib/backupfile.h: Likewise.
8992         * lib/basename.c: Likewise.
8993         * lib/binary-io.h: Likewise.
8994         * lib/byteswap.in.h: Likewise.
8995         * lib/c-stack.c: Likewise.
8996         * lib/c-stack.h: Likewise.
8997         * lib/c-strcasestr.c: Likewise.
8998         * lib/c-strcasestr.h: Likewise.
8999         * lib/c-strstr.c: Likewise.
9000         * lib/c-strstr.h: Likewise.
9001         * lib/c-strtod.c: Likewise.
9002         * lib/calloc.c: Likewise.
9003         * lib/canon-host.c: Likewise.
9004         * lib/canon-host.h: Likewise.
9005         * lib/canonicalize-lgpl.c: Likewise.
9006         * lib/canonicalize.c: Likewise.
9007         * lib/canonicalize.h: Likewise.
9008         * lib/ceil.c: Likewise.
9009         * lib/ceilf.c: Likewise.
9010         * lib/ceill.c: Likewise.
9011         * lib/chdir-long.c: Likewise.
9012         * lib/chdir-long.h: Likewise.
9013         * lib/chdir-safer.c: Likewise.
9014         * lib/chdir-safer.h: Likewise.
9015         * lib/chown.c: Likewise.
9016         * lib/classpath.c: Likewise.
9017         * lib/classpath.h: Likewise.
9018         * lib/clean-temp.c: Likewise.
9019         * lib/clean-temp.h: Likewise.
9020         * lib/cloexec.c: Likewise.
9021         * lib/close-stream.c: Likewise.
9022         * lib/closein.c: Likewise.
9023         * lib/closein.h: Likewise.
9024         * lib/closeout.c: Likewise.
9025         * lib/closeout.h: Likewise.
9026         * lib/concat-filename.c: Likewise.
9027         * lib/copy-file.c: Likewise.
9028         * lib/copy-file.h: Likewise.
9029         * lib/count-one-bits.h: Likewise.
9030         * lib/crc.c: Likewise.
9031         * lib/crc.h: Likewise.
9032         * lib/creat-safer.c: Likewise.
9033         * lib/csharpcomp.c: Likewise.
9034         * lib/csharpcomp.h: Likewise.
9035         * lib/csharpexec.c: Likewise.
9036         * lib/csharpexec.h: Likewise.
9037         * lib/cycle-check.c: Likewise.
9038         * lib/cycle-check.h: Likewise.
9039         * lib/diacrit.c: Likewise.
9040         * lib/diacrit.h: Likewise.
9041         * lib/diffseq.h: Likewise.
9042         * lib/dirchownmod.c: Likewise.
9043         * lib/dirent.in.h: Likewise.
9044         * lib/dirfd.c: Likewise.
9045         * lib/dirfd.h: Likewise.
9046         * lib/dirname.c: Likewise.
9047         * lib/dirname.h: Likewise.
9048         * lib/dummy.c: Likewise.
9049         * lib/dup-safer.c: Likewise.
9050         * lib/dup2.c: Likewise.
9051         * lib/eealloc.h: Likewise.
9052         * lib/error.c: Likewise.
9053         * lib/error.h: Likewise.
9054         * lib/euidaccess.c: Likewise.
9055         * lib/exclude.c: Likewise.
9056         * lib/exclude.h: Likewise.
9057         * lib/execute.c: Likewise.
9058         * lib/execute.h: Likewise.
9059         * lib/exitfail.c: Likewise.
9060         * lib/exitfail.h: Likewise.
9061         * lib/expl.c: Likewise.
9062         * lib/fatal-signal.c: Likewise.
9063         * lib/fatal-signal.h: Likewise.
9064         * lib/fbufmode.c: Likewise.
9065         * lib/fbufmode.h: Likewise.
9066         * lib/fchdir.c: Likewise.
9067         * lib/fchmodat.c: Likewise.
9068         * lib/fchownat.c: Likewise.
9069         * lib/fcntl--.h: Likewise.
9070         * lib/fcntl-safer.h: Likewise.
9071         * lib/fcntl.in.h: Likewise.
9072         * lib/fd-safer.c: Likewise.
9073         * lib/fflush.c: Likewise.
9074         * lib/file-has-acl.c: Likewise.
9075         * lib/file-set.c: Likewise.
9076         * lib/file-type.c: Likewise.
9077         * lib/file-type.h: Likewise.
9078         * lib/fileblocks.c: Likewise.
9079         * lib/filemode.c: Likewise.
9080         * lib/filemode.h: Likewise.
9081         * lib/filename.h: Likewise.
9082         * lib/filenamecat.c: Likewise.
9083         * lib/filenamecat.h: Likewise.
9084         * lib/findprog.c: Likewise.
9085         * lib/findprog.h: Likewise.
9086         * lib/float.in.h: Likewise.
9087         * lib/floor.c: Likewise.
9088         * lib/floorf.c: Likewise.
9089         * lib/floorl.c: Likewise.
9090         * lib/fopen-safer.c: Likewise.
9091         * lib/fopen.c: Likewise.
9092         * lib/fpending.c: Likewise.
9093         * lib/fpending.h: Likewise.
9094         * lib/fprintf.c: Likewise.
9095         * lib/fprintftime.h: Likewise.
9096         * lib/fpucw.h: Likewise.
9097         * lib/fpurge.c: Likewise.
9098         * lib/fpurge.h: Likewise.
9099         * lib/freadable.c: Likewise.
9100         * lib/freadable.h: Likewise.
9101         * lib/freadahead.c: Likewise.
9102         * lib/freadahead.h: Likewise.
9103         * lib/freading.c: Likewise.
9104         * lib/freading.h: Likewise.
9105         * lib/free.c: Likewise.
9106         * lib/freopen.c: Likewise.
9107         * lib/frexp.c: Likewise.
9108         * lib/frexpl.c: Likewise.
9109         * lib/fseek.c: Likewise.
9110         * lib/fseterr.c: Likewise.
9111         * lib/fseterr.h: Likewise.
9112         * lib/fstatat.c: Likewise.
9113         * lib/fstrcmp.c: Likewise.
9114         * lib/fstrcmp.h: Likewise.
9115         * lib/fsusage.c: Likewise.
9116         * lib/fsusage.h: Likewise.
9117         * lib/ftell.c: Likewise.
9118         * lib/ftello.c: Likewise.
9119         * lib/fts-cycle.c: Likewise.
9120         * lib/fts.c: Likewise.
9121         * lib/fts_.h: Likewise.
9122         * lib/full-read.c: Likewise.
9123         * lib/full-read.h: Likewise.
9124         * lib/full-write.c: Likewise.
9125         * lib/full-write.h: Likewise.
9126         * lib/fwritable.c: Likewise.
9127         * lib/fwritable.h: Likewise.
9128         * lib/fwriteerror.c: Likewise.
9129         * lib/fwriteerror.h: Likewise.
9130         * lib/fwriting.c: Likewise.
9131         * lib/fwriting.h: Likewise.
9132         * lib/gcd.c: Likewise.
9133         * lib/gcd.h: Likewise.
9134         * lib/getcwd.c: Likewise.
9135         * lib/getdate.h: Likewise.
9136         * lib/getdate.y: Likewise.
9137         * lib/getdomainname.c: Likewise.
9138         * lib/getdomainname.h: Likewise.
9139         * lib/getgroups.c: Likewise.
9140         * lib/gethostname.c: Likewise.
9141         * lib/gethrxtime.c: Likewise.
9142         * lib/gethrxtime.h: Likewise.
9143         * lib/getloadavg.c: Likewise.
9144         * lib/getndelim2.c: Likewise.
9145         * lib/getndelim2.h: Likewise.
9146         * lib/getnline.c: Likewise.
9147         * lib/getnline.h: Likewise.
9148         * lib/getopt.c: Likewise.
9149         * lib/getopt.in.h: Likewise.
9150         * lib/getopt1.c: Likewise.
9151         * lib/getopt_int.h: Likewise.
9152         * lib/getpagesize.h: Likewise.
9153         * lib/getsubopt.c: Likewise.
9154         * lib/gettime.c: Likewise.
9155         * lib/getugroups.c: Likewise.
9156         * lib/getugroups.h: Likewise.
9157         * lib/getusershell.c: Likewise.
9158         * lib/gl_anyavltree_list1.h: Likewise.
9159         * lib/gl_anyavltree_list2.h: Likewise.
9160         * lib/gl_anyhash_list1.h: Likewise.
9161         * lib/gl_anyhash_list2.h: Likewise.
9162         * lib/gl_anylinked_list1.h: Likewise.
9163         * lib/gl_anylinked_list2.h: Likewise.
9164         * lib/gl_anyrbtree_list1.h: Likewise.
9165         * lib/gl_anyrbtree_list2.h: Likewise.
9166         * lib/gl_anytree_list1.h: Likewise.
9167         * lib/gl_anytree_list2.h: Likewise.
9168         * lib/gl_anytree_oset.h: Likewise.
9169         * lib/gl_anytreehash_list1.h: Likewise.
9170         * lib/gl_anytreehash_list2.h: Likewise.
9171         * lib/gl_array_list.c: Likewise.
9172         * lib/gl_array_list.h: Likewise.
9173         * lib/gl_array_oset.c: Likewise.
9174         * lib/gl_array_oset.h: Likewise.
9175         * lib/gl_avltree_list.c: Likewise.
9176         * lib/gl_avltree_list.h: Likewise.
9177         * lib/gl_avltree_oset.c: Likewise.
9178         * lib/gl_avltree_oset.h: Likewise.
9179         * lib/gl_avltreehash_list.c: Likewise.
9180         * lib/gl_avltreehash_list.h: Likewise.
9181         * lib/gl_carray_list.c: Likewise.
9182         * lib/gl_carray_list.h: Likewise.
9183         * lib/gl_linked_list.c: Likewise.
9184         * lib/gl_linked_list.h: Likewise.
9185         * lib/gl_linkedhash_list.c: Likewise.
9186         * lib/gl_linkedhash_list.h: Likewise.
9187         * lib/gl_list.c: Likewise.
9188         * lib/gl_list.h: Likewise.
9189         * lib/gl_oset.c: Likewise.
9190         * lib/gl_oset.h: Likewise.
9191         * lib/gl_rbtree_list.c: Likewise.
9192         * lib/gl_rbtree_list.h: Likewise.
9193         * lib/gl_rbtree_oset.c: Likewise.
9194         * lib/gl_rbtree_oset.h: Likewise.
9195         * lib/gl_rbtreehash_list.c: Likewise.
9196         * lib/gl_rbtreehash_list.h: Likewise.
9197         * lib/gl_sublist.c: Likewise.
9198         * lib/gl_sublist.h: Likewise.
9199         * lib/group-member.c: Likewise.
9200         * lib/group-member.h: Likewise.
9201         * lib/hard-locale.c: Likewise.
9202         * lib/hard-locale.h: Likewise.
9203         * lib/hash-pjw.c: Likewise.
9204         * lib/hash-pjw.h: Likewise.
9205         * lib/hash-triple.c: Likewise.
9206         * lib/hash.c: Likewise.
9207         * lib/hash.h: Likewise.
9208         * lib/human.c: Likewise.
9209         * lib/human.h: Likewise.
9210         * lib/i-ring.c: Likewise.
9211         * lib/i-ring.h: Likewise.
9212         * lib/idcache.c: Likewise.
9213         * lib/imaxabs.c: Likewise.
9214         * lib/imaxdiv.c: Likewise.
9215         * lib/inet_pton.c: Likewise.
9216         * lib/inet_pton.h: Likewise.
9217         * lib/intprops.h: Likewise.
9218         * lib/inttostr.c: Likewise.
9219         * lib/inttostr.h: Likewise.
9220         * lib/inttypes.in.h: Likewise.
9221         * lib/isapipe.c: Likewise.
9222         * lib/isdir.c: Likewise.
9223         * lib/isnan.c: Likewise.
9224         * lib/isnan.h: Likewise.
9225         * lib/isnanf.c: Likewise.
9226         * lib/isnanf.h: Likewise.
9227         * lib/isnanl-nolibm.h: Likewise.
9228         * lib/isnanl.c: Likewise.
9229         * lib/isnanl.h: Likewise.
9230         * lib/javacomp.c: Likewise.
9231         * lib/javacomp.h: Likewise.
9232         * lib/javaexec.c: Likewise.
9233         * lib/javaexec.h: Likewise.
9234         * lib/javaversion.c: Likewise.
9235         * lib/javaversion.h: Likewise.
9236         * lib/javaversion.java: Likewise.
9237         * lib/lbrkprop.h: Likewise.
9238         * lib/lchmod.h: Likewise.
9239         * lib/lchown.c: Likewise.
9240         * lib/ldexpl.c: Likewise.
9241         * lib/linebreak.c: Likewise.
9242         * lib/linebreak.h: Likewise.
9243         * lib/linebuffer.c: Likewise.
9244         * lib/linebuffer.h: Likewise.
9245         * lib/locale.in.h: Likewise.
9246         * lib/logl.c: Likewise.
9247         * lib/long-options.c: Likewise.
9248         * lib/long-options.h: Likewise.
9249         * lib/lstat.c: Likewise.
9250         * lib/lstat.h: Likewise.
9251         * lib/math.in.h: Likewise.
9252         * lib/mbchar.c: Likewise.
9253         * lib/mbchar.h: Likewise.
9254         * lib/mbfile.h: Likewise.
9255         * lib/mbiter.h: Likewise.
9256         * lib/mbscasecmp.c: Likewise.
9257         * lib/mbscasestr.c: Likewise.
9258         * lib/mbschr.c: Likewise.
9259         * lib/mbscspn.c: Likewise.
9260         * lib/mbslen.c: Likewise.
9261         * lib/mbsncasecmp.c: Likewise.
9262         * lib/mbsnlen.c: Likewise.
9263         * lib/mbspbrk.c: Likewise.
9264         * lib/mbspcasecmp.c: Likewise.
9265         * lib/mbsrchr.c: Likewise.
9266         * lib/mbssep.c: Likewise.
9267         * lib/mbsspn.c: Likewise.
9268         * lib/mbsstr.c: Likewise.
9269         * lib/mbstok_r.c: Likewise.
9270         * lib/mbswidth.c: Likewise.
9271         * lib/mbswidth.h: Likewise.
9272         * lib/mbuiter.h: Likewise.
9273         * lib/memcasecmp.c: Likewise.
9274         * lib/memcasecmp.h: Likewise.
9275         * lib/memchr.c: Likewise.
9276         * lib/memcmp.c: Likewise.
9277         * lib/memcoll.c: Likewise.
9278         * lib/memcoll.h: Likewise.
9279         * lib/memcpy.c: Likewise.
9280         * lib/memrchr.c: Likewise.
9281         * lib/mkancesdirs.c: Likewise.
9282         * lib/mkdir-p.c: Likewise.
9283         * lib/mkdir-p.h: Likewise.
9284         * lib/mkdir.c: Likewise.
9285         * lib/mkdirat.c: Likewise.
9286         * lib/mkdtemp.c: Likewise.
9287         * lib/mkstemp-safer.c: Likewise.
9288         * lib/mkstemp.c: Likewise.
9289         * lib/modechange.c: Likewise.
9290         * lib/modechange.h: Likewise.
9291         * lib/mountlist.c: Likewise.
9292         * lib/mountlist.h: Likewise.
9293         * lib/mpsort.c: Likewise.
9294         * lib/nanosleep.c: Likewise.
9295         * lib/obstack.c: Likewise.
9296         * lib/obstack.h: Likewise.
9297         * lib/open-safer.c: Likewise.
9298         * lib/open.c: Likewise.
9299         * lib/openat-die.c: Likewise.
9300         * lib/openat-priv.h: Likewise.
9301         * lib/openat-proc.c: Likewise.
9302         * lib/openat.c: Likewise.
9303         * lib/openat.h: Likewise.
9304         * lib/pagealign_alloc.c: Likewise.
9305         * lib/pagealign_alloc.h: Likewise.
9306         * lib/physmem.c: Likewise.
9307         * lib/physmem.h: Likewise.
9308         * lib/pipe-safer.c: Likewise.
9309         * lib/pipe.c: Likewise.
9310         * lib/pipe.h: Likewise.
9311         * lib/posixtm.c: Likewise.
9312         * lib/posixtm.h: Likewise.
9313         * lib/posixver.c: Likewise.
9314         * lib/printf-frexp.c: Likewise.
9315         * lib/printf-frexp.h: Likewise.
9316         * lib/printf-frexpl.c: Likewise.
9317         * lib/printf-frexpl.h: Likewise.
9318         * lib/printf.c: Likewise.
9319         * lib/progname.c: Likewise.
9320         * lib/progname.h: Likewise.
9321         * lib/progreloc.c: Likewise.
9322         * lib/putenv.c: Likewise.
9323         * lib/quote.c: Likewise.
9324         * lib/quote.h: Likewise.
9325         * lib/quotearg.c: Likewise.
9326         * lib/quotearg.h: Likewise.
9327         * lib/raise.c: Likewise.
9328         * lib/readline.c: Likewise.
9329         * lib/readline.h: Likewise.
9330         * lib/readlink.c: Likewise.
9331         * lib/readtokens.c: Likewise.
9332         * lib/readtokens.h: Likewise.
9333         * lib/readtokens0.c: Likewise.
9334         * lib/readtokens0.h: Likewise.
9335         * lib/readutmp.c: Likewise.
9336         * lib/readutmp.h: Likewise.
9337         * lib/realloc.c: Likewise.
9338         * lib/relocwrapper.c: Likewise.
9339         * lib/rename-dest-slash.c: Likewise.
9340         * lib/rename.c: Likewise.
9341         * lib/rmdir.c: Likewise.
9342         * lib/rpmatch.c: Likewise.
9343         * lib/safe-read.c: Likewise.
9344         * lib/safe-read.h: Likewise.
9345         * lib/safe-write.c: Likewise.
9346         * lib/safe-write.h: Likewise.
9347         * lib/same-inode.h: Likewise.
9348         * lib/same.c: Likewise.
9349         * lib/same.h: Likewise.
9350         * lib/save-cwd.c: Likewise.
9351         * lib/save-cwd.h: Likewise.
9352         * lib/savedir.c: Likewise.
9353         * lib/savedir.h: Likewise.
9354         * lib/savewd.c: Likewise.
9355         * lib/savewd.h: Likewise.
9356         * lib/search.in.h: Likewise.
9357         * lib/setenv.c: Likewise.
9358         * lib/setenv.h: Likewise.
9359         * lib/settime.c: Likewise.
9360         * lib/sh-quote.c: Likewise.
9361         * lib/sh-quote.h: Likewise.
9362         * lib/sig2str.c: Likewise.
9363         * lib/sig2str.h: Likewise.
9364         * lib/signal.in.h: Likewise.
9365         * lib/signbitd.c: Likewise.
9366         * lib/signbitf.c: Likewise.
9367         * lib/signbitl.c: Likewise.
9368         * lib/sigprocmask.c: Likewise.
9369         * lib/sincosl.c: Likewise.
9370         * lib/sleep.c: Likewise.
9371         * lib/sprintf.c: Likewise.
9372         * lib/sqrtl.c: Likewise.
9373         * lib/stat-time.h: Likewise.
9374         * lib/stdio--.h: Likewise.
9375         * lib/stdio-safer.h: Likewise.
9376         * lib/stdlib--.h: Likewise.
9377         * lib/stdlib-safer.h: Likewise.
9378         * lib/stdlib.in.h: Likewise.
9379         * lib/stpcpy.c: Likewise.
9380         * lib/stpncpy.c: Likewise.
9381         * lib/strchrnul.c: Likewise.
9382         * lib/strcspn.c: Likewise.
9383         * lib/strerror.c: Likewise.
9384         * lib/strftime.c: Likewise.
9385         * lib/strftime.h: Likewise.
9386         * lib/striconveh.c: Likewise.
9387         * lib/striconveh.h: Likewise.
9388         * lib/striconveha.c: Likewise.
9389         * lib/striconveha.h: Likewise.
9390         * lib/stripslash.c: Likewise.
9391         * lib/strnlen1.c: Likewise.
9392         * lib/strnlen1.h: Likewise.
9393         * lib/strtod.c: Likewise.
9394         * lib/strtoimax.c: Likewise.
9395         * lib/strtok_r.c: Likewise.
9396         * lib/strtol.c: Likewise.
9397         * lib/strtoll.c: Likewise.
9398         * lib/strtoul.c: Likewise.
9399         * lib/strtoull.c: Likewise.
9400         * lib/sysexits.in.h: Likewise.
9401         * lib/tempname.c: Likewise.
9402         * lib/tempname.h: Likewise.
9403         * lib/timespec.h: Likewise.
9404         * lib/tls.c: Likewise.
9405         * lib/tls.h: Likewise.
9406         * lib/tmpdir.c: Likewise.
9407         * lib/tmpdir.h: Likewise.
9408         * lib/tmpfile-safer.c: Likewise.
9409         * lib/tmpfile.c: Likewise.
9410         * lib/trigl.c: Likewise.
9411         * lib/trigl.h: Likewise.
9412         * lib/trim.c: Likewise.
9413         * lib/trim.h: Likewise.
9414         * lib/trunc.c: Likewise.
9415         * lib/truncf.c: Likewise.
9416         * lib/truncl.c: Likewise.
9417         * lib/tsearch.c: Likewise.
9418         * lib/unicodeio.c: Likewise.
9419         * lib/unicodeio.h: Likewise.
9420         * lib/unistd--.h: Likewise.
9421         * lib/unistd-safer.h: Likewise.
9422         * lib/unistdio/ulc-fprintf.c: Likewise.
9423         * lib/unistdio/ulc-vfprintf.c: Likewise.
9424         * lib/unlinkdir.c: Likewise.
9425         * lib/unlinkdir.h: Likewise.
9426         * lib/unlocked-io.h: Likewise.
9427         * lib/unsetenv.c: Likewise.
9428         * lib/userspec.c: Likewise.
9429         * lib/utime.c: Likewise.
9430         * lib/utimecmp.c: Likewise.
9431         * lib/utimecmp.h: Likewise.
9432         * lib/utimens.c: Likewise.
9433         * lib/verify.h: Likewise.
9434         * lib/verror.c: Likewise.
9435         * lib/verror.h: Likewise.
9436         * lib/version-etc-fsf.c: Likewise.
9437         * lib/version-etc.c: Likewise.
9438         * lib/version-etc.h: Likewise.
9439         * lib/vfprintf.c: Likewise.
9440         * lib/vprintf.c: Likewise.
9441         * lib/vsprintf.c: Likewise.
9442         * lib/w32spawn.h: Likewise.
9443         * lib/wait-process.c: Likewise.
9444         * lib/wait-process.h: Likewise.
9445         * lib/wcwidth.c: Likewise.
9446         * lib/write-any-file.c: Likewise.
9447         * lib/xalloc-die.c: Likewise.
9448         * lib/xalloc.h: Likewise.
9449         * lib/xasprintf.c: Likewise.
9450         * lib/xgetcwd.c: Likewise.
9451         * lib/xgetcwd.h: Likewise.
9452         * lib/xgetdomainname.c: Likewise.
9453         * lib/xgetdomainname.h: Likewise.
9454         * lib/xgethostname.c: Likewise.
9455         * lib/xmalloc.c: Likewise.
9456         * lib/xmalloca.c: Likewise.
9457         * lib/xmalloca.h: Likewise.
9458         * lib/xmemcoll.c: Likewise.
9459         * lib/xnanosleep.c: Likewise.
9460         * lib/xreadlink.c: Likewise.
9461         * lib/xreadlink.h: Likewise.
9462         * lib/xsetenv.c: Likewise.
9463         * lib/xsetenv.h: Likewise.
9464         * lib/xstriconv.c: Likewise.
9465         * lib/xstriconv.h: Likewise.
9466         * lib/xstrndup.c: Likewise.
9467         * lib/xstrndup.h: Likewise.
9468         * lib/xstrtod.c: Likewise.
9469         * lib/xstrtod.h: Likewise.
9470         * lib/xstrtol-error.c: Likewise.
9471         * lib/xstrtol.c: Likewise.
9472         * lib/xstrtol.h: Likewise.
9473         * lib/xtime.h: Likewise.
9474         * lib/xvasprintf.c: Likewise.
9475         * lib/xvasprintf.h: Likewise.
9476         * lib/yesno.c: Likewise.
9477         * lib/yesno.h: Likewise.
9478         * posix-modules: Likewise.
9479         * tests/test-alloca-opt.c: Likewise.
9480         * tests/test-arcfour.c: Likewise.
9481         * tests/test-arctwo.c: Likewise.
9482         * tests/test-argmatch.c: Likewise.
9483         * tests/test-argp-2.sh: Likewise.
9484         * tests/test-argp.c: Likewise.
9485         * tests/test-arpa_inet.c: Likewise.
9486         * tests/test-array_list.c: Likewise.
9487         * tests/test-array_oset.c: Likewise.
9488         * tests/test-atexit.c: Likewise.
9489         * tests/test-avltree_list.c: Likewise.
9490         * tests/test-avltree_oset.c: Likewise.
9491         * tests/test-avltreehash_list.c: Likewise.
9492         * tests/test-base64.c: Likewise.
9493         * tests/test-binary-io.c: Likewise.
9494         * tests/test-byteswap.c: Likewise.
9495         * tests/test-c-ctype.c: Likewise.
9496         * tests/test-c-strcasecmp.c: Likewise.
9497         * tests/test-c-strcasestr.c: Likewise.
9498         * tests/test-c-strncasecmp.c: Likewise.
9499         * tests/test-c-strstr.c: Likewise.
9500         * tests/test-canonicalize-lgpl.c: Likewise.
9501         * tests/test-canonicalize.c: Likewise.
9502         * tests/test-carray_list.c: Likewise.
9503         * tests/test-ceilf.c: Likewise.
9504         * tests/test-ceill.c: Likewise.
9505         * tests/test-count-one-bits.c: Likewise.
9506         * tests/test-crc.c: Likewise.
9507         * tests/test-dirname.c: Likewise.
9508         * tests/test-fbufmode.c: Likewise.
9509         * tests/test-fcntl.c: Likewise.
9510         * tests/test-fflush.c: Likewise.
9511         * tests/test-floorf.c: Likewise.
9512         * tests/test-floorl.c: Likewise.
9513         * tests/test-fopen.c: Likewise.
9514         * tests/test-fprintf-posix.c: Likewise.
9515         * tests/test-fprintf-posix.h: Likewise.
9516         * tests/test-fpurge.c: Likewise.
9517         * tests/test-freadable.c: Likewise.
9518         * tests/test-freadahead.c: Likewise.
9519         * tests/test-freading.c: Likewise.
9520         * tests/test-freopen.c: Likewise.
9521         * tests/test-frexp.c: Likewise.
9522         * tests/test-frexpl.c: Likewise.
9523         * tests/test-fseek.c: Likewise.
9524         * tests/test-fseeko.c: Likewise.
9525         * tests/test-fseterr.c: Likewise.
9526         * tests/test-fstrcmp.c: Likewise.
9527         * tests/test-ftell.c: Likewise.
9528         * tests/test-ftello.c: Likewise.
9529         * tests/test-fwritable.c: Likewise.
9530         * tests/test-fwriting.c: Likewise.
9531         * tests/test-getaddrinfo.c: Likewise.
9532         * tests/test-getpass.c: Likewise.
9533         * tests/test-gettimeofday.c: Likewise.
9534         * tests/test-hmac-md5.c: Likewise.
9535         * tests/test-hmac-sha1.c: Likewise.
9536         * tests/test-iconv.c: Likewise.
9537         * tests/test-iconvme.c: Likewise.
9538         * tests/test-inttypes.c: Likewise.
9539         * tests/test-isnan.c: Likewise.
9540         * tests/test-isnanf.c: Likewise.
9541         * tests/test-isnanl-nolibm.c: Likewise.
9542         * tests/test-isnanl.c: Likewise.
9543         * tests/test-isnanl.h: Likewise.
9544         * tests/test-ldexpl.c: Likewise.
9545         * tests/test-linked_list.c: Likewise.
9546         * tests/test-linkedhash_list.c: Likewise.
9547         * tests/test-locale.c: Likewise.
9548         * tests/test-localename.c: Likewise.
9549         * tests/test-lock.c: Likewise.
9550         * tests/test-lseek.c: Likewise.
9551         * tests/test-malloca.c: Likewise.
9552         * tests/test-math.c: Likewise.
9553         * tests/test-mbscasecmp.c: Likewise.
9554         * tests/test-mbscasestr1.c: Likewise.
9555         * tests/test-mbscasestr2.c: Likewise.
9556         * tests/test-mbscasestr3.c: Likewise.
9557         * tests/test-mbscasestr4.c: Likewise.
9558         * tests/test-mbschr.c: Likewise.
9559         * tests/test-mbscspn.c: Likewise.
9560         * tests/test-mbsncasecmp.c: Likewise.
9561         * tests/test-mbspbrk.c: Likewise.
9562         * tests/test-mbspcasecmp.c: Likewise.
9563         * tests/test-mbsrchr.c: Likewise.
9564         * tests/test-mbsspn.c: Likewise.
9565         * tests/test-mbsstr1.c: Likewise.
9566         * tests/test-mbsstr2.c: Likewise.
9567         * tests/test-mbsstr3.c: Likewise.
9568         * tests/test-md5.c: Likewise.
9569         * tests/test-memmem.c: Likewise.
9570         * tests/test-netinet_in.c: Likewise.
9571         * tests/test-open.c: Likewise.
9572         * tests/test-printf-frexp.c: Likewise.
9573         * tests/test-printf-frexpl.c: Likewise.
9574         * tests/test-printf-posix.c: Likewise.
9575         * tests/test-printf-posix.h: Likewise.
9576         * tests/test-rbtree_list.c: Likewise.
9577         * tests/test-rbtree_oset.c: Likewise.
9578         * tests/test-rbtreehash_list.c: Likewise.
9579         * tests/test-read-file.c: Likewise.
9580         * tests/test-rijndael.c: Likewise.
9581         * tests/test-search.c: Likewise.
9582         * tests/test-signbit.c: Likewise.
9583         * tests/test-sleep.c: Likewise.
9584         * tests/test-snprintf-posix.c: Likewise.
9585         * tests/test-snprintf-posix.h: Likewise.
9586         * tests/test-snprintf.c: Likewise.
9587         * tests/test-sprintf-posix.c: Likewise.
9588         * tests/test-sprintf-posix.h: Likewise.
9589         * tests/test-stat-time.c: Likewise.
9590         * tests/test-stdbool.c: Likewise.
9591         * tests/test-stdint.c: Likewise.
9592         * tests/test-stdio.c: Likewise.
9593         * tests/test-stdlib.c: Likewise.
9594         * tests/test-stpncpy.c: Likewise.
9595         * tests/test-strcasestr.c: Likewise.
9596         * tests/test-striconv.c: Likewise.
9597         * tests/test-striconveh.c: Likewise.
9598         * tests/test-striconveha.c: Likewise.
9599         * tests/test-string.c: Likewise.
9600         * tests/test-sys_select.c: Likewise.
9601         * tests/test-sys_socket.c: Likewise.
9602         * tests/test-sys_stat.c: Likewise.
9603         * tests/test-sys_time.c: Likewise.
9604         * tests/test-sysexits.c: Likewise.
9605         * tests/test-time.c: Likewise.
9606         * tests/test-tls.c: Likewise.
9607         * tests/test-trunc.c: Likewise.
9608         * tests/test-truncf.c: Likewise.
9609         * tests/test-truncl.c: Likewise.
9610         * tests/test-unistd.c: Likewise.
9611         * tests/test-vasnprintf-posix.c: Likewise.
9612         * tests/test-vasnprintf-posix2.c: Likewise.
9613         * tests/test-vasnprintf.c: Likewise.
9614         * tests/test-vasprintf-posix.c: Likewise.
9615         * tests/test-vasprintf.c: Likewise.
9616         * tests/test-verify.c: Likewise.
9617         * tests/test-vfprintf-posix.c: Likewise.
9618         * tests/test-vprintf-posix.c: Likewise.
9619         * tests/test-vsnprintf-posix.c: Likewise.
9620         * tests/test-vsnprintf.c: Likewise.
9621         * tests/test-vsprintf-posix.c: Likewise.
9622         * tests/test-wchar.c: Likewise.
9623         * tests/test-wctype.c: Likewise.
9624         * tests/test-wcwidth.c: Likewise.
9625         * tests/test-xstrtol.c: Likewise.
9626         * tests/test-xvasprintf.c: Likewise.
9627         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9628         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9629         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9630         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9631         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9632         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9633         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9634         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9635         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9636         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9637         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9638         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9639         * tests/uniname/test-uninames.c: Likewise.
9640         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9641         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9642         * tests/unistdio/test-u16-printf1.h: Likewise.
9643         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9644         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9645         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9646         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9647         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9648         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9649         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9650         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9651         * tests/unistdio/test-u32-printf1.h: Likewise.
9652         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9653         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9654         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9655         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9656         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9657         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9658         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9659         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9660         * tests/unistdio/test-u8-printf1.h: Likewise.
9661         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9662         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9663         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9664         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9665         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9666         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9667         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9668         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9669         * tests/unistdio/test-ulc-printf1.h: Likewise.
9670         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9671         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9672         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9673         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9674         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9675         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9676         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9677         * tests/uniwidth/test-u16-width.c: Likewise.
9678         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9679         * tests/uniwidth/test-u32-width.c: Likewise.
9680         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9681         * tests/uniwidth/test-u8-width.c: Likewise.
9682         * tests/uniwidth/test-uc_width.c: Likewise.
9683         * config/srclist-update: Likewise.
9684         (fixlicense): Update to GPLv3+.
9685
9686         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9687         * tests/test-tsearch.c: Change copyright notice.
9688
9689         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9690         * lib/c-strcaseeq.h: Change copyright notice.
9691         * lib/streq.h: Likewise.
9692         * lib/uniconv.h: Likewise.
9693         * lib/uniconv/u-conv-from-enc.h: Likewise.
9694         * lib/uniconv/u-conv-to-enc.h: Likewise.
9695         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9696         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9697         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9698         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9699         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9700         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9701         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9702         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9703         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9704         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9705         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9706         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9707         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9708         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9709         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9710         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9711         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9712         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9713         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9714         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9715         * lib/uniname.h: Likewise.
9716         * lib/uniname/uniname.c: Likewise.
9717         * lib/unistdio.h: Likewise.
9718         * lib/unistdio/u-asnprintf.h: Likewise.
9719         * lib/unistdio/u-asprintf.h: Likewise.
9720         * lib/unistdio/u-printf-args.c: Likewise.
9721         * lib/unistdio/u-printf-args.h: Likewise.
9722         * lib/unistdio/u-printf-parse.h: Likewise.
9723         * lib/unistdio/u-snprintf.h: Likewise.
9724         * lib/unistdio/u-sprintf.h: Likewise.
9725         * lib/unistdio/u-vasprintf.h: Likewise.
9726         * lib/unistdio/u-vsnprintf.h: Likewise.
9727         * lib/unistdio/u-vsprintf.h: Likewise.
9728         * lib/unistdio/u16-asnprintf.c: Likewise.
9729         * lib/unistdio/u16-asprintf.c: Likewise.
9730         * lib/unistdio/u16-printf-parse.c: Likewise.
9731         * lib/unistdio/u16-snprintf.c: Likewise.
9732         * lib/unistdio/u16-sprintf.c: Likewise.
9733         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9734         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9735         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9736         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9737         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9738         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9739         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9740         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9741         * lib/unistdio/u16-vasnprintf.c: Likewise.
9742         * lib/unistdio/u16-vasprintf.c: Likewise.
9743         * lib/unistdio/u16-vsnprintf.c: Likewise.
9744         * lib/unistdio/u16-vsprintf.c: Likewise.
9745         * lib/unistdio/u32-asnprintf.c: Likewise.
9746         * lib/unistdio/u32-asprintf.c: Likewise.
9747         * lib/unistdio/u32-printf-parse.c: Likewise.
9748         * lib/unistdio/u32-snprintf.c: Likewise.
9749         * lib/unistdio/u32-sprintf.c: Likewise.
9750         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9751         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9752         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9753         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9754         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9755         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9756         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9757         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9758         * lib/unistdio/u32-vasnprintf.c: Likewise.
9759         * lib/unistdio/u32-vasprintf.c: Likewise.
9760         * lib/unistdio/u32-vsnprintf.c: Likewise.
9761         * lib/unistdio/u32-vsprintf.c: Likewise.
9762         * lib/unistdio/u8-asnprintf.c: Likewise.
9763         * lib/unistdio/u8-asprintf.c: Likewise.
9764         * lib/unistdio/u8-printf-parse.c: Likewise.
9765         * lib/unistdio/u8-snprintf.c: Likewise.
9766         * lib/unistdio/u8-sprintf.c: Likewise.
9767         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9768         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9769         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9770         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9771         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9772         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9773         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9774         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9775         * lib/unistdio/u8-vasnprintf.c: Likewise.
9776         * lib/unistdio/u8-vasprintf.c: Likewise.
9777         * lib/unistdio/u8-vsnprintf.c: Likewise.
9778         * lib/unistdio/u8-vsprintf.c: Likewise.
9779         * lib/unistdio/ulc-asnprintf.c: Likewise.
9780         * lib/unistdio/ulc-asprintf.c: Likewise.
9781         * lib/unistdio/ulc-printf-parse.c: Likewise.
9782         * lib/unistdio/ulc-snprintf.c: Likewise.
9783         * lib/unistdio/ulc-sprintf.c: Likewise.
9784         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9785         * lib/unistdio/ulc-vasprintf.c: Likewise.
9786         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9787         * lib/unistdio/ulc-vsprintf.c: Likewise.
9788         * lib/unistr.h: Likewise.
9789         * lib/unistr/u-cpy-alloc.h: Likewise.
9790         * lib/unistr/u-cpy.h: Likewise.
9791         * lib/unistr/u-endswith.h: Likewise.
9792         * lib/unistr/u-move.h: Likewise.
9793         * lib/unistr/u-set.h: Likewise.
9794         * lib/unistr/u-startswith.h: Likewise.
9795         * lib/unistr/u-stpcpy.h: Likewise.
9796         * lib/unistr/u-stpncpy.h: Likewise.
9797         * lib/unistr/u-strcat.h: Likewise.
9798         * lib/unistr/u-strcpy.h: Likewise.
9799         * lib/unistr/u-strcspn.h: Likewise.
9800         * lib/unistr/u-strdup.h: Likewise.
9801         * lib/unistr/u-strlen.h: Likewise.
9802         * lib/unistr/u-strncat.h: Likewise.
9803         * lib/unistr/u-strncpy.h: Likewise.
9804         * lib/unistr/u-strnlen.h: Likewise.
9805         * lib/unistr/u-strpbrk.h: Likewise.
9806         * lib/unistr/u-strspn.h: Likewise.
9807         * lib/unistr/u-strstr.h: Likewise.
9808         * lib/unistr/u-strtok.h: Likewise.
9809         * lib/unistr/u16-check.c: Likewise.
9810         * lib/unistr/u16-chr.c: Likewise.
9811         * lib/unistr/u16-cmp.c: Likewise.
9812         * lib/unistr/u16-cpy-alloc.c: Likewise.
9813         * lib/unistr/u16-cpy.c: Likewise.
9814         * lib/unistr/u16-endswith.c: Likewise.
9815         * lib/unistr/u16-mblen.c: Likewise.
9816         * lib/unistr/u16-mbsnlen.c: Likewise.
9817         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9818         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9819         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9820         * lib/unistr/u16-mbtouc.c: Likewise.
9821         * lib/unistr/u16-mbtoucr.c: Likewise.
9822         * lib/unistr/u16-move.c: Likewise.
9823         * lib/unistr/u16-next.c: Likewise.
9824         * lib/unistr/u16-prev.c: Likewise.
9825         * lib/unistr/u16-set.c: Likewise.
9826         * lib/unistr/u16-startswith.c: Likewise.
9827         * lib/unistr/u16-stpcpy.c: Likewise.
9828         * lib/unistr/u16-stpncpy.c: Likewise.
9829         * lib/unistr/u16-strcat.c: Likewise.
9830         * lib/unistr/u16-strchr.c: Likewise.
9831         * lib/unistr/u16-strcmp.c: Likewise.
9832         * lib/unistr/u16-strcpy.c: Likewise.
9833         * lib/unistr/u16-strcspn.c: Likewise.
9834         * lib/unistr/u16-strdup.c: Likewise.
9835         * lib/unistr/u16-strlen.c: Likewise.
9836         * lib/unistr/u16-strmblen.c: Likewise.
9837         * lib/unistr/u16-strmbtouc.c: Likewise.
9838         * lib/unistr/u16-strncat.c: Likewise.
9839         * lib/unistr/u16-strncmp.c: Likewise.
9840         * lib/unistr/u16-strncpy.c: Likewise.
9841         * lib/unistr/u16-strnlen.c: Likewise.
9842         * lib/unistr/u16-strpbrk.c: Likewise.
9843         * lib/unistr/u16-strrchr.c: Likewise.
9844         * lib/unistr/u16-strspn.c: Likewise.
9845         * lib/unistr/u16-strstr.c: Likewise.
9846         * lib/unistr/u16-strtok.c: Likewise.
9847         * lib/unistr/u16-to-u32.c: Likewise.
9848         * lib/unistr/u16-to-u8.c: Likewise.
9849         * lib/unistr/u16-uctomb-aux.c: Likewise.
9850         * lib/unistr/u16-uctomb.c: Likewise.
9851         * lib/unistr/u32-check.c: Likewise.
9852         * lib/unistr/u32-chr.c: Likewise.
9853         * lib/unistr/u32-cmp.c: Likewise.
9854         * lib/unistr/u32-cpy-alloc.c: Likewise.
9855         * lib/unistr/u32-cpy.c: Likewise.
9856         * lib/unistr/u32-endswith.c: Likewise.
9857         * lib/unistr/u32-mblen.c: Likewise.
9858         * lib/unistr/u32-mbsnlen.c: Likewise.
9859         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9860         * lib/unistr/u32-mbtouc.c: Likewise.
9861         * lib/unistr/u32-mbtoucr.c: Likewise.
9862         * lib/unistr/u32-move.c: Likewise.
9863         * lib/unistr/u32-next.c: Likewise.
9864         * lib/unistr/u32-prev.c: Likewise.
9865         * lib/unistr/u32-set.c: Likewise.
9866         * lib/unistr/u32-startswith.c: Likewise.
9867         * lib/unistr/u32-stpcpy.c: Likewise.
9868         * lib/unistr/u32-stpncpy.c: Likewise.
9869         * lib/unistr/u32-strcat.c: Likewise.
9870         * lib/unistr/u32-strchr.c: Likewise.
9871         * lib/unistr/u32-strcmp.c: Likewise.
9872         * lib/unistr/u32-strcpy.c: Likewise.
9873         * lib/unistr/u32-strcspn.c: Likewise.
9874         * lib/unistr/u32-strdup.c: Likewise.
9875         * lib/unistr/u32-strlen.c: Likewise.
9876         * lib/unistr/u32-strmblen.c: Likewise.
9877         * lib/unistr/u32-strmbtouc.c: Likewise.
9878         * lib/unistr/u32-strncat.c: Likewise.
9879         * lib/unistr/u32-strncmp.c: Likewise.
9880         * lib/unistr/u32-strncpy.c: Likewise.
9881         * lib/unistr/u32-strnlen.c: Likewise.
9882         * lib/unistr/u32-strpbrk.c: Likewise.
9883         * lib/unistr/u32-strrchr.c: Likewise.
9884         * lib/unistr/u32-strspn.c: Likewise.
9885         * lib/unistr/u32-strstr.c: Likewise.
9886         * lib/unistr/u32-strtok.c: Likewise.
9887         * lib/unistr/u32-to-u16.c: Likewise.
9888         * lib/unistr/u32-to-u8.c: Likewise.
9889         * lib/unistr/u32-uctomb.c: Likewise.
9890         * lib/unistr/u8-check.c: Likewise.
9891         * lib/unistr/u8-chr.c: Likewise.
9892         * lib/unistr/u8-cmp.c: Likewise.
9893         * lib/unistr/u8-cpy-alloc.c: Likewise.
9894         * lib/unistr/u8-cpy.c: Likewise.
9895         * lib/unistr/u8-endswith.c: Likewise.
9896         * lib/unistr/u8-mblen.c: Likewise.
9897         * lib/unistr/u8-mbsnlen.c: Likewise.
9898         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9899         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9900         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9901         * lib/unistr/u8-mbtouc.c: Likewise.
9902         * lib/unistr/u8-mbtoucr.c: Likewise.
9903         * lib/unistr/u8-move.c: Likewise.
9904         * lib/unistr/u8-next.c: Likewise.
9905         * lib/unistr/u8-prev.c: Likewise.
9906         * lib/unistr/u8-set.c: Likewise.
9907         * lib/unistr/u8-startswith.c: Likewise.
9908         * lib/unistr/u8-stpcpy.c: Likewise.
9909         * lib/unistr/u8-stpncpy.c: Likewise.
9910         * lib/unistr/u8-strcat.c: Likewise.
9911         * lib/unistr/u8-strchr.c: Likewise.
9912         * lib/unistr/u8-strcmp.c: Likewise.
9913         * lib/unistr/u8-strcpy.c: Likewise.
9914         * lib/unistr/u8-strcspn.c: Likewise.
9915         * lib/unistr/u8-strdup.c: Likewise.
9916         * lib/unistr/u8-strlen.c: Likewise.
9917         * lib/unistr/u8-strmblen.c: Likewise.
9918         * lib/unistr/u8-strmbtouc.c: Likewise.
9919         * lib/unistr/u8-strncat.c: Likewise.
9920         * lib/unistr/u8-strncmp.c: Likewise.
9921         * lib/unistr/u8-strncpy.c: Likewise.
9922         * lib/unistr/u8-strnlen.c: Likewise.
9923         * lib/unistr/u8-strpbrk.c: Likewise.
9924         * lib/unistr/u8-strrchr.c: Likewise.
9925         * lib/unistr/u8-strspn.c: Likewise.
9926         * lib/unistr/u8-strstr.c: Likewise.
9927         * lib/unistr/u8-strtok.c: Likewise.
9928         * lib/unistr/u8-to-u16.c: Likewise.
9929         * lib/unistr/u8-to-u32.c: Likewise.
9930         * lib/unistr/u8-uctomb-aux.c: Likewise.
9931         * lib/unistr/u8-uctomb.c: Likewise.
9932         * lib/unitypes.h: Likewise.
9933         * lib/uniwidth.h: Likewise.
9934         * lib/uniwidth/cjk.h: Likewise.
9935         * lib/uniwidth/u16-strwidth.c: Likewise.
9936         * lib/uniwidth/u16-width.c: Likewise.
9937         * lib/uniwidth/u32-strwidth.c: Likewise.
9938         * lib/uniwidth/u32-width.c: Likewise.
9939         * lib/uniwidth/u8-strwidth.c: Likewise.
9940         * lib/uniwidth/u8-width.c: Likewise.
9941         * lib/uniwidth/width.c: Likewise.
9942
9943 2007-10-07  Bruno Haible  <bruno@clisp.org>
9944
9945         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9946         The file is still under LGPL (see modules/inttypes).
9947
9948 2007-10-06  Bruno Haible  <bruno@clisp.org>
9949
9950         * modules/trunc (Dependencies): Add 'extensions'.
9951         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9952         Reported by Ben Pfaff <blp@gnu.org>.
9953
9954 2007-10-06  Bruno Haible  <bruno@clisp.org>
9955
9956         * modules/freopen-tests: New file.
9957         * tests/test-freopen.c: New file.
9958
9959         * modules/fopen-tests: New file.
9960         * tests/test-fopen.c: New file.
9961
9962         * modules/fopen: New file.
9963         * lib/fopen.c: New file.
9964         * m4/fopen.m4: New file.
9965         * modules/freopen: New file.
9966         * lib/freopen.c: New file.
9967         * m4/freopen.m4: New file.
9968         * lib/stdio.in.h (fopen, freopen): New declarations.
9969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9970         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9971         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9972         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9973         * doc/functions/fopen.texi: Mention the 'fopen' module.
9974         * doc/functions/freopen.texi: Mention the 'freopen' module.
9975
9976 2007-10-06  Bruno Haible  <bruno@clisp.org>
9977
9978         * modules/open-tests: New file.
9979         * tests/test-open.c: New file.
9980
9981         * modules/open: New file.
9982         * lib/open.c: New file.
9983         * m4/open.m4: New file.
9984         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9985         lib/open.c does.
9986         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9987         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9988         macros.
9989         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9990         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9991         REPLACE_OPEN.
9992         * doc/functions/open.texi: Mention the 'open' module.
9993
9994 2007-10-04  Bruno Haible  <bruno@clisp.org>
9995
9996         * modules/ceill-tests: New file.
9997         * tests/test-ceill.c: New file.
9998
9999         * modules/ceill: New file.
10000         * lib/ceill.c: Replace entire file.
10001         * m4/ceill.m4: New file.
10002         * lib/math.in.h (ceill): Replace declaration.
10003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
10004         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
10005         * doc/functions/ceill.texi: Mention the 'ceill' module.
10006         * modules/mathl (Files): Remove lib/ceill.c.
10007         (Depends-on): Add ceill.
10008
10009 2007-10-04  Bruno Haible  <bruno@clisp.org>
10010
10011         * modules/ceilf-tests: New file.
10012         * tests/test-ceilf.c: New file.
10013
10014         * modules/ceilf: New file.
10015         * lib/ceil.c: New file.
10016         * lib/ceilf.c: New file.
10017         * m4/ceilf.m4: New file.
10018         * lib/math.in.h (ceilf): New declaration.
10019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
10020         HAVE_DECL_CEILF.
10021         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
10022         HAVE_DECL_CEILF.
10023         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
10024
10025 2007-10-04  Bruno Haible  <bruno@clisp.org>
10026
10027         * modules/floorl-tests: New file.
10028         * tests/test-floorl.c: New file.
10029
10030         * modules/floorl: New file.
10031         * lib/floorl.c: Replace entire file.
10032         * m4/floorl.m4: New file.
10033         * lib/math.in.h (floorl): Replace declaration.
10034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
10035         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
10036         * doc/functions/floorl.texi: Mention the 'floorl' module.
10037         * modules/mathl (Files): Remove lib/floorl.c.
10038         (Depends-on): Add floorl.
10039
10040 2007-10-04  Bruno Haible  <bruno@clisp.org>
10041
10042         * modules/floorf-tests: New file.
10043         * tests/test-floorf.c: New file.
10044
10045         * modules/floorf: New file.
10046         * lib/floor.c: New file.
10047         * lib/floorf.c: New file.
10048         * m4/floorf.m4: New file.
10049         * lib/math.in.h (floorf): New declaration.
10050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
10051         HAVE_DECL_FLOORF.
10052         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
10053         HAVE_DECL_FLOORF.
10054         * doc/functions/floorf.texi: Mention the 'floorf' module.
10055
10056 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
10057             Bruno Haible  <bruno@clisp.org>
10058
10059         Advertise for the Git server instead of the CVS server.
10060         * doc/gnulib-intro.texi (Steady Development): Mention the Git
10061         repository instead of the CVS one.
10062         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
10063         about all VCS systems generically.
10064         * doc/gnulib.texi (Introduction): Capitalize `Git'.
10065
10066 2007-10-04  Bruno Haible  <bruno@clisp.org>
10067
10068         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
10069         means.
10070         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
10071
10072 2007-10-04  Bruno Haible  <bruno@clisp.org>
10073
10074         * modules/truncl-tests: New file.
10075         * tests/test-truncl.c: New file.
10076
10077         * modules/truncl: New file.
10078         * lib/truncl.c: New file.
10079         * m4/truncl.m4: New file.
10080         * lib/math.in.h (truncl): New declaration.
10081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
10082         HAVE_DECL_TRUNCL.
10083         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
10084         HAVE_DECL_TRUNCL.
10085         * doc/functions/truncl.texi: Mention the 'truncl' module.
10086
10087 2007-10-04  Bruno Haible  <bruno@clisp.org>
10088
10089         * modules/truncf-tests: New file.
10090         * tests/test-truncf.c: New file.
10091
10092         * modules/truncf: New file.
10093         * lib/trunc.c: Make paramerizable through USE_* macros.
10094         * lib/truncf.c: New file.
10095         * m4/truncf.m4: New file.
10096         * lib/math.in.h (truncf): New declaration.
10097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
10098         HAVE_DECL_TRUNCF.
10099         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
10100         HAVE_DECL_TRUNCF.
10101         * doc/functions/truncf.texi: Mention the 'truncf' module.
10102
10103 2007-10-03  Bruno Haible  <bruno@clisp.org>
10104
10105         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10106         augmentation also for tests modules.
10107         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
10108         * modules/atexit-tests (Makefile.am): Likewise.
10109         * modules/binary-io-tests (Makefile.am): Likewise.
10110         * modules/c-strcase-tests (Makefile.am): Likewise.
10111         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
10112         * modules/canonicalize-tests (Makefile.am): Likewise.
10113         * modules/closein-tests (Makefile.am): Likewise.
10114         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10115         * modules/freadahead-tests (Makefile.am): Likewise.
10116         * modules/fseek-tests (Makefile.am): Likewise.
10117         * modules/fseeko-tests (Makefile.am): Likewise.
10118         * modules/ftell-tests (Makefile.am): Likewise.
10119         * modules/ftello-tests (Makefile.am): Likewise.
10120         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
10121         * modules/isnanl-tests (Makefile.am): Likewise.
10122         * modules/lseek-tests (Makefile.am): Likewise.
10123         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10124         * modules/mbscasestr-tests (Makefile.am): Likewise.
10125         * modules/mbschr-tests (Makefile.am): Likewise.
10126         * modules/mbscspn-tests (Makefile.am): Likewise.
10127         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10128         * modules/mbspbrk-tests (Makefile.am): Likewise.
10129         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10130         * modules/mbsrchr-tests (Makefile.am): Likewise.
10131         * modules/mbsspn-tests (Makefile.am): Likewise.
10132         * modules/mbsstr-tests (Makefile.am): Likewise.
10133         * modules/printf-posix-tests (Makefile.am): Likewise.
10134         * modules/snprintf-posix-tests (Makefile.am): Likewise.
10135         * modules/sprintf-posix-tests (Makefile.am): Likewise.
10136         * modules/tsearch-tests (Makefile.am): Likewise.
10137         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10138         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10139         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10140         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10141         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10142         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10143         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10144         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10145         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
10146         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
10147         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10148         * modules/xstrtol-tests (Makefile.am): Likewise.
10149         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10150         * modules/yesno-tests (Makefile.am): Likewise.
10151
10152 2007-10-03  Bruno Haible  <bruno@clisp.org>
10153
10154         * modules/trunc-tests: New file.
10155         * tests/test-trunc.c: New file.
10156
10157         * modules/trunc: New file.
10158         * lib/trunc.c: New file.
10159         * m4/trunc.m4: New file.
10160         * lib/math.in.h (trunc): New declaration.
10161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10162         HAVE_DECL_TRUNC.
10163         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10164         HAVE_DECL_TRUNC.
10165         * doc/functions/trunc.texi: Mention the 'trunc' module.
10166
10167 2007-10-03  Bruno Haible  <bruno@clisp.org>
10168
10169         * tests/test-fpending.c: New file, mostly copied
10170         from coreutils/lib/t-fpending.c.
10171         * modules/fpending-tests: New file.
10172
10173 2007-10-03  Bruno Haible  <bruno@clisp.org>
10174
10175         Port the stdio extensions to QNX (untested).
10176         * lib/fseterr.c (fseterr): Add support for QNX.
10177         * lib/fbufmode.c (fbufmode): Likewise.
10178         * lib/freadable.c (freadable): Likewise.
10179         * lib/fwritable.c (fwritable): Likewise.
10180         * lib/freading.c (freading): Likewise.
10181         * lib/fwriting.c (fwriting): Likewise.
10182         * lib/freadahead.c (freadahed): Likewise.
10183         * lib/fpurge.c (fpurge): Likewise.
10184         * lib/fseeko.c (rpl_fseeko): Likewise.
10185
10186 2007-10-03  Bruno Haible  <bruno@clisp.org>
10187             Jim Meyering  <jim@meyering.net>
10188             Eric Blake  <ebb9@byu.net>
10189
10190         * doc/relocatable.texi: Use @command instead of @program.
10191
10192 2007-10-02  Jim Meyering  <jim@meyering.net>
10193
10194         Perform one more "_.h" -> ".in.h" substitution.
10195         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10196         instead of unistd_.h here, too.
10197
10198 2007-10-01  Bruno Haible  <bruno@clisp.org>
10199
10200         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10201         Needed for the alloca-opt module.
10202
10203 2007-09-30  Bruno Haible  <bruno@clisp.org>
10204
10205         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10206         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10207         alloca_.h.
10208         * lib/argz.in.h: Renamed from lib/argz_.h.
10209         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10210         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10211         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10212         byteswap_.h.
10213         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10214         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10215         dirent_.h.
10216         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10217         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10218         fcntl_.h.
10219         * lib/float.in.h: Renamed from lib/float_.h.
10220         * modules/float (Files, Makefile.am): Use float.in.h instead of
10221         float_.h.
10222         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10223         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10224         fnmatch_.h.
10225         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10226         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10227         getopt_.h.
10228         * lib/glob.in.h: Renamed from lib/glob_.h.
10229         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10230         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10231         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10232         iconv_.h.
10233         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10234         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10235         inttypes_.h.
10236         * lib/locale.in.h: Renamed from lib/locale_.h.
10237         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10238         locale_.h.
10239         * lib/math.in.h: Renamed from lib/math_.h.
10240         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10241         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10242         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10243         of netinet_in_.h. Add dependency.
10244         * lib/poll.in.h: Renamed from lib/poll_.h.
10245         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10246         * lib/search.in.h: Renamed from lib/search_.h.
10247         * modules/search (Files, Makefile.am): Use search.in.h instead of
10248         search_.h.
10249         * lib/signal.in.h: Renamed from lib/signal_.h.
10250         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10251         _signal.h.
10252         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10253         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10254         stdbool_.h.
10255         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10256         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10257         stdint_.h.
10258         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10259         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10260         stdio_.h.
10261         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10262         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10263         stdlib_.h.
10264         * lib/string.in.h: Renamed from lib/string_.h.
10265         * modules/string (Files, Makefile.am): Use string.in.h instead of
10266         string_.h.
10267         * doc/gnulib-tool.texi (Initial import): Update.
10268         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10269         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10270         of sys_select_.h. Add dependency.
10271         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10272         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10273         of sys_socket_.h.
10274         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10275         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10276         sys_stat_.h.
10277         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10278         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10279         sys_time_.h.
10280         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10281         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10282         sysexits_.h.
10283         * lib/time.in.h: Renamed from lib/time_.h.
10284         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10285         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10286         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10287         unistd_.h.
10288         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10289         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10290         wchar_.h.
10291         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10292         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10293         wctype_.h.
10294         * build-aux/bootstrap (slurp): Update.
10295         * lib/.cppi-disable: Update.
10296
10297 2007-09-30  Bruno Haible  <bruno@clisp.org>
10298
10299         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10300         Needed on BeOS.
10301
10302 2007-09-30  Bruno Haible  <bruno@clisp.org>
10303
10304         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10305
10306 2007-09-29  Bruno Haible  <bruno@clisp.org>
10307
10308         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10309
10310 2007-09-29  Bruno Haible  <bruno@clisp.org>
10311
10312         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10313         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10314         * build-aux/install-reloc: Compile also areadlink.c.
10315         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10316
10317 2007-09-29  Bruno Haible  <bruno@clisp.org>
10318
10319         * gnulib-tool (func_emit_initmacro_done): Indentation.
10320
10321 2007-09-29  Bruno Haible  <bruno@clisp.org>
10322
10323         * README: Add CVS checkout update instructions.
10324         Info from Bob Proulx <bob@proulx.com>.
10325
10326 2007-09-28  Eric Blake  <ebb9@byu.net>
10327
10328         Provide move-if-change.
10329         * build-aux/move-if-change: New file, based on best practice
10330         rather than any canonical upstream location.
10331
10332 2007-09-28  Jim Meyering  <jim@meyering.net>
10333
10334         Fix canonicalize loop-detection corner case.
10335         Do not attempt to stat the symlink values stored via seen_triple.
10336         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10337         on linux-2.6.18, (but not 2.6.22).
10338         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10339         triple_compare.  The former compares dev,ino,filename, while the latter
10340         would actually stat dirname(filename) when dev and ino were equal.
10341         * lib/hash-triple.c: Install <string.h>.
10342         (STREQ): Define.
10343         (triple_compare_ino_str): New function.
10344         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10345
10346 2007-09-28  Eric Blake  <ebb9@byu.net>
10347
10348         Enforce that AC_REPLACE_FUNCS files exist.
10349         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10350         override check for typos.
10351
10352         Fix test-closein on Solaris 10.
10353         * tests/test-closein.c (main): Don't assume stdin can be inherited
10354         closed on all systems.
10355         * tests/test-closein.sh: Likewise.
10356         Reported by Piotr Tarnowski.
10357
10358 2007-09-28  Jim Meyering  <jim@meyering.net>
10359
10360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10361
10362 2007-09-27  Jim Meyering  <jim@meyering.net>
10363
10364         canonicalize: Avoid a false-positive cycle failure.
10365         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10366         Sort.  Remove cycle-check.
10367         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10368         not cycle-check.h.
10369         (seen_triple): New function.
10370         (canonicalize_filename_mode): Use it instead of cycle-check.
10371         * tests/test-canonicalize.c: Add a test for this bug.
10372         * tests/test-canonicalize.sh: Set up and run the test.
10373
10374         New module, file-set, from coreutils.
10375         * modules/file-set: Define it.
10376         * lib/file-set.c, lib/file-set.h: Implement.
10377
10378         New module, hash-triple, from coreutils.
10379         * modules/hash-triple: Define it.
10380         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10381
10382 2007-09-25  Eric Blake  <ebb9@byu.net>
10383
10384         Fix strerror on Interix.
10385         * lib/string_.h (strerror): Declare replacement.
10386         * doc/functions/strerror.texi (strerror): Document the Interix
10387         shortcoming.
10388         * modules/string (Makefile.am): Support new hooks.
10389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10390         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10391         gl_FUNC_STRERROR_SEPARATE.
10392         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10393         * lib/strerror.c (rpl_strerror): Provide replacement.
10394         * modules/strerror (Depends-on): Add string.
10395         (configure.ac): Detect use of module.
10396         * tests/test-strerror.c: New file.
10397         * modules/strerror-tests: New test module.
10398         * modules/argp (Depends-on): Add strerror.
10399         * modules/error (Depends-on): Likewise.
10400         Reported by Martin Koeppe.
10401
10402 2007-09-24  Bruno Haible  <bruno@clisp.org>
10403
10404         * README: Update git instructions.
10405
10406 2007-09-24  Eric Blake  <ebb9@byu.net>
10407
10408         Revert fpending breakage from 2007-09-08.
10409         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10410         __fpending.c.
10411
10412 2007-09-24  Jim Meyering  <jim@meyering.net>
10413
10414         filenamecat.c: Add a test.
10415         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10416         showing how the function works when DIR is the empty string.
10417
10418 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10419
10420         * tests/test-canonicalize.sh: Turn on executable bit.
10421
10422 2007-09-19  Eric Blake  <ebb9@byu.net>
10423
10424         * README: Update CVS instructions.
10425
10426 2007-09-18  Bruno Haible  <bruno@clisp.org>
10427
10428         * modules/areadlink: New file.
10429         * lib/areadlink.h (areadlink): New declaration.
10430         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10431
10432 2007-09-17  Jim Meyering  <jim@meyering.net>
10433
10434         * lib/savewd.c (ESTALE) [!defined]: Define.
10435         Reported to be required on Interix by Martin Koeppe.
10436
10437 2007-09-17  Bruno Haible  <bruno@clisp.org>
10438
10439         * gnulib-tool (func_version): Use $version.
10440
10441 2007-09-16  Bruno Haible  <bruno@clisp.org>
10442
10443         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10444         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10445         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10446         Reported by Greg Schafer <gschafer@zip.com.au>.
10447
10448 2007-09-15  Bruno Haible  <bruno@clisp.org>
10449
10450         * gnulib-tool (sed): Try a little harder to make bash understand the
10451         alias.
10452         Reported by Bruce Korb <bruce.korb@gmail.com>.
10453
10454 2007-09-13  Eric Blake  <ebb9@byu.net>
10455
10456         * ChangeLog: Remove conflict markers.
10457
10458 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10459
10460         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10461         Reported by Bruno Haible <bruno@clisp.org>.
10462
10463 2007-09-12  Bruno Haible  <bruno@clisp.org>
10464
10465         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10466         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10467         is not defined.
10468
10469 2007-09-12  Eric Blake  <ebb9@byu.net>
10470
10471         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10472         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10473         Autoconf definition.
10474         * modules/euidaccess (Depends-on): Add extensions, for
10475         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10476         * modules/fnmatch (Depends-on): Likewise.
10477         * modules/getaddrinfo (Depends-on): Likewise.
10478         * modules/getdelim (Depends-on): Likewise.
10479         * modules/getline (Depends-on): Likewise.
10480         * modules/getsubopt (Depends-on): Likewise.
10481         * modules/gettext (Depends-on): Likewise.
10482         * modules/group-member (Depends-on): Likewise.
10483         * modules/mbchar (Depends-on): Likewise.
10484         * modules/memmem (Depends-on): Likewise.
10485         * modules/mempcpy (Depends-on): Likewise.
10486         * modules/memrchr (Depends-on): Likewise.
10487         * modules/pagealign_alloc (Depends-on): Likewise.
10488         * modules/readutmp (Depends-on): Likewise.
10489         * modules/stpcpy (Depends-on): Likewise.
10490         * modules/stpncpy (Depends-on): Likewise.
10491         * modules/strchrnul (Depends-on): Likewise.
10492         * modules/strndup (Depends-on): Likewise.
10493         * modules/strsep (Depends-on): Likewise.
10494         * modules/strverscmp (Depends-on): Likewise.
10495         * modules/vasprintf (Depends-on): Likewise.
10496         * modules/wcwidth (Depends-on): Likewise.
10497         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10498         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10499         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10500         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10501         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10502         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10503         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10504         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10505         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10506         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10508         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10510         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10511         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10512         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10514         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10516         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10518         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10519         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10520         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10521         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10523         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10524         so that lock.m4 can be used in gettext without extensions module.
10525
10526 2007-09-11  Bruno Haible  <bruno@clisp.org>
10527
10528         * m4/isc-posix.m4: Remove file.
10529         Suggested by Eric Blake.
10530
10531 2007-09-11  Eric Blake  <ebb9@byu.net>
10532
10533         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10534
10535 2007-09-10  Bruno Haible  <bruno@clisp.org>
10536
10537         * posix-modules: Fix typo in error message.
10538         Reported by Matt <mkraai@beckman.com>.
10539
10540 2007-09-09  Bruno Haible  <bruno@clisp.org>
10541
10542         * doc/functions/getdelim.texi: Update list of platforms lacking the
10543         function.
10544         * doc/functions/getline.texi: Likewise.
10545
10546 2007-09-09  Jim Meyering  <jim@meyering.net>
10547
10548         * lib/hash.c (hash_initialize): Detect calloc failure.
10549         Reported by Bruno Haible.
10550
10551 2007-09-09  Bruno Haible  <bruno@clisp.org>
10552
10553         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10554         malloc or realloc fails.
10555
10556 2007-09-09  Bruno Haible  <bruno@clisp.org>
10557
10558         * modules/getcwd (Depends-on): Add malloc-posix.
10559         * modules/glob (Depends-on): Likewise.
10560         * modules/putenv (Depends-on): Likewise.
10561         * modules/strdup (Depends-on): Likewise.
10562         * modules/getdelim (Depends-on): Add realloc-posix.
10563         * modules/read-file (Depends-on): Likewise.
10564
10565 2007-09-09  Bruno Haible  <bruno@clisp.org>
10566
10567         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10568         (gl_FUNC_MALLOC_POSIX): Require it.
10569         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10570         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10571         * modules/realloc (Files): Add m4/malloc.m4.
10572         * modules/calloc (Files): Likewise.
10573
10574 2007-09-09  Bruno Haible  <bruno@clisp.org>
10575
10576         * modules/malloc-posix: New file.
10577         * modules/malloc (Depends-on): Add malloc-posix.
10578         * lib/malloc.c: Include errno.h.
10579         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10580         and a POSIX-compatible malloc into a single function. Set ENOMEM
10581         when returning NULL.
10582         * m4/malloc.m4: New file.
10583         * doc/functions/malloc.texi: Mention the malloc-posix module.
10584         * lib/stdlib_.h (malloc): New declaration.
10585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10586         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10587         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10588         and HAVE_MALLOC_POSIX.
10589
10590 2007-09-09  Bruno Haible  <bruno@clisp.org>
10591
10592         * modules/realloc-posix: New file.
10593         * modules/realloc (Depends-on): Add realloc-posix.
10594         * lib/realloc.c: Include errno.h.
10595         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10596         and a POSIX-compatible realloc into a single function. Set ENOMEM
10597         when returning NULL.
10598         * m4/realloc.m4: New file.
10599         * doc/functions/realloc.texi: Mention the realloc-posix module.
10600         * lib/stdlib_.h (realloc): New declaration.
10601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10602         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10603         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10604         and HAVE_REALLOC_POSIX.
10605
10606 2007-09-09  Bruno Haible  <bruno@clisp.org>
10607
10608         * modules/calloc-posix: New file.
10609         * modules/calloc (Depends-on): Add calloc-posix.
10610         * lib/calloc.c: Include errno.h.
10611         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10612         and a POSIX-compatible calloc into a single function. Set ENOMEM
10613         when returning NULL.
10614         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10615         * doc/functions/calloc.texi: Mention the calloc-posix module.
10616         * lib/stdlib_.h (calloc): New declaration.
10617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10618         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10619         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10620         and HAVE_CALLOC_POSIX.
10621
10622 2007-09-09  Bruno Haible  <bruno@clisp.org>
10623
10624         Allow for modules to show an arbitrary notice.
10625         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10626         * gnulib-tool: New option --extract-notice.
10627         (func_usage): Document it.
10628         (sed_extract_prog): Update.
10629         (func_get_notice): New function.
10630         (func_modules_notice): New function.
10631         (func_import, func_create_testdir): Invoke it.
10632         Suggested by Jim Meyering.
10633
10634 2007-09-09  Bruno Haible  <bruno@clisp.org>
10635
10636         * gnulib-tool: New options --verbose, --quiet.
10637         (func_usage): Document them.
10638         (verbose): New variable.
10639         (func_execute_command): New function.
10640         (func_import): Don't show the module list and the file list if
10641         $verbose < 0.
10642         (func_create_testdir): Likewise. Use func_execute_command.
10643         (func_create_megatestdir): Use func_execute_command.
10644
10645 2007-09-08  Bruno Haible  <bruno@clisp.org>
10646
10647         * gnulib-tool (func_import): Prefer rsync over wget when available,
10648         for fetching the PO files.
10649
10650 2007-09-08  Bruno Haible  <bruno@clisp.org>
10651
10652         * posix-modules: New file. Portions copied from gnulib-tool.
10653         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10654
10655 2007-09-08  Jim Meyering  <jim@meyering.net>
10656
10657         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10658         * lib/fpending.h: Rename from __fpending.h.
10659         * lib/fpending.c: Rename from __fpending.c.
10660         Include "fpending.h", not "__fpending.h".
10661         * lib/__fpending.h, lib/__fpending.c: Remove files.
10662         * modules/fpending (Files): Reflect new file names.
10663         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10664
10665 2007-09-08  Bruno Haible  <bruno@clisp.org>
10666
10667         * m4/inttypes-h.m4: Remove stub file.
10668
10669 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10670
10671         * doc/headers/stdint.texi: Discuss #include_next issue.
10672
10673 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10674
10675         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10676
10677 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10678
10679         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10680         in variable name.
10681
10682 2007-09-03  Jim Meyering  <jim@meyering.net>
10683
10684         New module: git-version-gen.
10685         * modules/git-version-gen: New file.
10686
10687         Import changes from coreutils for bootstrap script.
10688
10689         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10690
10691         bootstrap: uses rsync to download the .po files
10692         * build-aux/bootstrap (po_download_command_format): New global.
10693         (download_po_files): Use rsync.
10694         (update_po_files): Don't remove .po files after download,
10695         so future rsync runs can take advantage of the copies.
10696
10697         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10698
10699         Solve the unnecessary-.po-file-regeneration problem once and for all.
10700         * build-aux/bootstrap (download_po_files): New function, renamed from
10701         get_translations.  Now, downloads, but doesn't update LINGUAS.
10702         (update_po_files): New function.
10703
10704         bootstrap: Ignore more.
10705         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10706         uniwidth to e.g., lib/.gitignore.
10707         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10708
10709         * build-aux/bootstrap: New setting: vc_ignore.
10710         (insert_sorted_if_absent): Create $file if absent.
10711         Adapt to new, possibly empty, list: $vc_ignore.
10712
10713         bootstrap: generate more ignorable names
10714         * build-aux/bootstrap (slurp): When generating ignorable names,
10715         also map .sin to .sed, .gperf to .c, and .y to .c.
10716
10717 2007-09-03  Jim Meyering  <jim@meyering.net>
10718
10719         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10720         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10721
10722 2007-09-02  Bruno Haible  <bruno@clisp.org>
10723
10724         Fix mis-recognition of 'mcs' on QNX 6.
10725         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10726         output contains the string "Mono".
10727         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10728         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10729
10730 2007-09-01  Bruno Haible  <bruno@clisp.org>
10731
10732         Fix collision between uniwidth/* and linebreak modules.
10733         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10734         u32_width): Remove declarations.
10735         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10736         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10737         streq3, streq2, streq1, streq0): Remove functions.
10738         (STREQ): Remove macro.
10739         (is_cjk_encoding): Remove function.
10740         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10741         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10742         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10743         * NEWS: Document the change.
10744
10745 2007-09-01  Bruno Haible  <bruno@clisp.org>
10746
10747         * lib/streq.h: Add double-inclusion guard.
10748
10749 2007-09-01  Karl Berry  <karl@gnu.org>
10750
10751         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10752
10753 2007-08-28  Jim Meyering  <jim@meyering.net>
10754
10755         Rename mreadlink_with_size to areadlink_with_size.
10756         * NEWS: Document the change.
10757         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10758         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10759         * lib/mreadlink.h: Rename this to...
10760         * lib/areadlink.h: ...this.
10761         * modules/mreadlink-with-size: Rename this to...
10762         * modules/areadlink-with-size: ...this.
10763         * lib/canonicalize.c: Reflect the renaming.
10764         * modules/canonicalize: Likewise.
10765
10766 2007-08-26  Bruno Haible  <bruno@clisp.org>
10767
10768         * gnulib-tool (func_import): When deciding which files to remove,
10769         consider also dangling symbolic links.
10770         Reported by Eric Blake.
10771
10772 2007-08-26  Bruno Haible  <bruno@clisp.org>
10773
10774         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10775
10776 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10777
10778         * lib/readline.c: Don't include getline.h, the prototype is now
10779         found in stdio.h.
10780
10781 2007-08-23  Jim Meyering  <jim@meyering.net>
10782
10783         Getdelim touchup.
10784         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10785         around the funlockfile call, since funlockfile never sets errno.
10786         Don't set errno upon failed realloc.
10787
10788 2007-08-22  Eric Blake  <ebb9@byu.net>
10789
10790         Getline touchups.
10791         * lib/getdelim.c (getdelim): Revert regression that required *n to
10792         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10794         getdelim, rather than whether implementation is missing.
10795         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10796         * lib/stdio_.h (getline): Also declare if replacement is
10797         required.
10798         * doc/functions/getdelim.texi: New file.
10799         * doc/functions/getline.texi: Likewise.
10800         * doc/gnulib.texi (Function Substitutes): Add new files.
10801         Reported by Bruno Haible.
10802
10803 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10804
10805         * users.txt: Add Guile.
10806
10807 2007-08-22  Eric Blake  <ebb9@byu.net>
10808
10809         * tests/test-getdelim.c (main): Use remove, not unlink.
10810         * tests/test-getline.c (main): Likewise.
10811
10812         Move getline and getdelim into stdio.h, per POSIX 200x.
10813         * modules/getline (Files): Remove getline.h.
10814         (Depends-on): Add stdio.
10815         (configure.ac): Add module indicator.
10816         * modules/getdelim (Files): Remove getdelim.h.
10817         (Depends-on): Add stdio.
10818         (configure.ac): Add module indicator.
10819         * modules/stdio (Makefile.am): Work with new indicators.
10820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10822         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10823         * lib/getdelim.h: Delete.
10824         * lib/getline.h: Delete.
10825         * lib/stdio_.h (getdelim, getline): Declare.
10826         * modules/getdelim-tests: New module.
10827         * modules/getline-tests: Likewise.
10828         * tests/test-getdelim.c: New file.
10829         * tests/test-getline.c: Likewise.
10830         * NEWS: Document the change.
10831         * lib/getline.c: Update choice of header.
10832         * lib/csharpcomp.c: Likewise.
10833         * lib/getpass.c: Likewise.
10834         * lib/javacomp.c: Likewise.
10835         * lib/javaversion.c: Likewise.
10836         * lib/yesno.c: Likewise.
10837         * lib/getdelim.c: Likewise.
10838         (getdelim): Set errno on failure, and avoid memory leak.
10839
10840 2007-08-19  Bruno Haible  <bruno@clisp.org>
10841
10842         * modules/closein (Depends-on): Add freadahead.
10843         * lib/closein.c: Include freadahead.h.
10844         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10845         is zero.
10846
10847 2007-08-19  Bruno Haible  <bruno@clisp.org>
10848
10849         * modules/freadahead-tests: New file.
10850         * tests/test-freadahead.sh: New file.
10851         * tests/test-freadahead.c: New file.
10852
10853         * modules/freadahead: New file.
10854         * lib/freadahead.h: New file.
10855         * lib/freadahead.c: New file.
10856         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10857         fbufmode, fpurge, freadable, fwritable.
10858
10859 2007-08-19  Eric Blake  <ebb9@byu.net>
10860
10861         Test yesno in combination with closein.
10862         * lib/yesno.c (yesno): Document use of stdin.
10863         * modules/yesno-tests (Files): New module.
10864         * tests/test-yesno.c (main): New file.
10865         * tests/test-yesno.sh: Likewise.
10866
10867 2007-08-19  Bruno Haible  <bruno@clisp.org>
10868
10869         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10870         * lib/fseeko.c (rpl_fseeko): Likewise.
10871         * lib/fseterr.c (fseterr): Likewise.
10872
10873 2007-08-19  Bruno Haible  <bruno@clisp.org>
10874
10875         * tests/test-lseek.c (main): Disable a test for BeOS.
10876         * doc/functions/lseek.texi: Document the BeOS bug.
10877
10878 2007-08-19  Bruno Haible  <bruno@clisp.org>
10879             Eric Blake  <ebb9@byu.net>
10880
10881         * lib/lseek.c: Include <sys/stat.h>.
10882         (rpl_lseek): Add workaround code also for Unix platforms.
10883         Needed for BeOS.
10884         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10885         * doc/functions/lseek.texi: Document BeOS definiency.
10886
10887 2007-08-18  Bruno Haible  <bruno@clisp.org>
10888
10889         * modules/fstrcmp-tests: New file.
10890         * tests/test-fstrcmp.c: New file.
10891
10892 2007-08-18  Bruno Haible  <bruno@clisp.org>
10893
10894         * modules/fstrcmp: New file, from GNU gettext with modifications.
10895         * lib/fstrcmp.h: New file, from GNU gettext.
10896         * lib/fstrcmp.c: New file, from GNU gettext.
10897         * MODULES.html.sh (String handling): Add fstrcmp.
10898
10899 2007-08-18  Bruno Haible  <bruno@clisp.org>
10900
10901         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10902         'bool'.
10903         (diag, compareseq): Remove const from the ctxt argument.
10904         (USE_HEURISTIC): Undefine at the end.
10905
10906 2007-08-18  Jim Meyering  <jim@meyering.net>
10907
10908         New file: lib/idcache.h
10909         * NEWS: Mention the addition.
10910         * modules/idcache (Files): Add lib/idcache.h
10911         * lib/idcache.c: Include "idcache.h".
10912         Don't include <sys/types.h>.
10913         Add a FIXME comment.
10914         Move file-scoped "static" declarations to the top.
10915         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10916
10917 2007-08-17  Bruno Haible  <bruno@clisp.org>
10918         and Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         * MODULES.html.sh: Add diffseq.
10921         * modules/diffseq: New file.
10922         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10923         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10924
10925 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10926
10927         Import changes from coreutils for bootstrap script.
10928
10929         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         * build-aux/bootstrap (slurp): Work even in environments where
10932         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10933         current code does not slurp files whose names start with ".", and
10934         this looks like it might be a troublesome area.
10935
10936         2007-07-11  Jim Meyering  <jim@meyering.net>
10937
10938         If there's a GPL vN copyright comment, require that N == 3.
10939
10940         2007-07-08  Jim Meyering  <jim@meyering.net>
10941
10942         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10943         * build-aux/bootstrap (mam_template): Move definition out of loop.
10944
10945         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10946
10947         * build-aux/bootstrap (symlink_to_dir): Rename function from
10948         symlink_to_gnulib.  Add a directory parameter.  Update all
10949         callers.
10950         (cp_mark_as_generated): Also check for -- and link to -- files in
10951         gl/.
10952
10953         2007-07-08  Jim Meyering  <jim@meyering.net>
10954
10955         Adapt to deeper hierarchy in gnulib.
10956         * build-aux/bootstrap (symlink_to_dir): If the destination
10957         directory doesn't exist, create it. This is required at least for
10958         "lib/uniwidth/cjk.h".
10959
10960         2007-05-15  Jim Meyering  <jim@meyering.net>
10961
10962         * build-aux/bootstrap: Now that generated Makefile.am files
10963         are no longer under version control, they must be created at
10964         bootstrap time.
10965
10966 2007-08-14  Ben Pfaff  <blp@gnu.org>
10967
10968         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10969
10970 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10971
10972         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10973         given the changes below.
10974         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10975         even on hosts that have padding bits beyond the supported 64.
10976
10977 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10978
10979         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10980         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10981         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10982         depends on it.
10983         (xstrtol_error): Remove.
10984         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10985         but with a different signature.
10986         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10987         * lib/xstrtol-error.c: Include exitfail.h.
10988         (xstrtol_fatal): New function, with a different signature from the
10989         old xstrtol_error, so that the caller need not worry about passing
10990         in an exit status, or about storage management of the option argument.
10991         (xstrtol_error): Now a static function.  Redo signature to
10992         implement xstrtol_fatal.  Output the correct number of hyphens in
10993         front of the option so that the caller need not worry about
10994         storage management.
10995         (N_): New macro.
10996         (_): Remove; not used now.
10997         * modules/xstrtol: Depend on getopt.
10998         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10999         of old STRTOL_FATAL_ERROR macro.
11000         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
11001         of test program.
11002         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
11003         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
11004
11005 2007-08-08  Eric Blake  <ebb9@byu.net>
11006
11007         * lib/xstrtol-error.c: Add missing include.
11008
11009         Move xstrtol messages into gnulib domain, when --pobase is used.
11010         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
11011         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
11012         * modules/xstrtol (Files): Distribute new file.
11013         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
11014         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
11015         * tests/test-xstrtol.c: ...into new file.
11016         * tests/test-xstrtoul.c: Also test xstrtoul.
11017         * tests/test-xstrtoimax.c: Also test xstrtoimax.
11018         * tests/test-xstrtoumax.c: Also test xstrtoumax.
11019         * tests/test-xstrtol.sh: Drive the tests.
11020         * tests/test-xstrtoimax.sh: Likewise.
11021         * tests/test-xstrtoumax.sh: Likewise.
11022         * modules/xstrtol-tests: New module.
11023         * modules/xstrtoimax-tests: Likewise.
11024         * modules/xstrtoumax-tests: Likewise.
11025
11026 2007-08-08  Jim Meyering  <jim@meyering.net>
11027
11028         New function: mfile_name_concat.
11029         * lib/filenamecat.c (mfile_name_concat): New function, just like
11030         file_name_concat, but return NULL upon failure rather than exiting
11031         with a diagnostic.
11032         * lib/filenamecat.h: Declare it.
11033
11034 2007-08-07  Bruno Haible  <bruno@clisp.org>
11035
11036         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
11037         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
11038         warning from gcc.
11039         Reported by Eric Blake.
11040
11041 2007-08-07  Simon Josefsson  <simon@josefsson.org>
11042
11043         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
11044         * modules/crypto/arcfour (License): Likewise.
11045         * modules/crypto/des-tests (License): Likewise.
11046         * modules/crypto/gc-arctwo-tests (License): Likewise.
11047         * modules/crypto/gc-des-tests (License): Likewise.
11048         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
11049         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
11050         * modules/crypto/gc-md2-tests (License): Likewise.
11051         * modules/crypto/gc-md4-tests (License): Likewise.
11052         * modules/crypto/gc-md5-tests (License): Likewise.
11053         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
11054         * modules/crypto/gc-rijndael-tests (License): Likewise.
11055         * modules/crypto/gc-sha1-tests (License): Likewise.
11056         * modules/crypto/gc-tests (License): Likewise.
11057         * modules/crypto/hmac-md5 (License): Likewise.
11058         * modules/crypto/hmac-sha1 (License): Likewise.
11059         * modules/crypto/md2-tests (License): Likewise.
11060         * modules/crypto/md4-tests (License): Likewise.
11061         * modules/crypto/md5 (License): Likewise.
11062         * modules/crypto/rijndael (License): Likewise.
11063         * modules/crypto/sha1 (License): Likewise.
11064         * modules/memxor (License): Likewise.
11065
11066 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
11067         and Bruno Haible  <bruno@clisp.org>
11068
11069         * NEWS: Describe interface changes to human, xstrtol.
11070         * lib/human.h: Include <xstrtol.h>.
11071         (human_options): Return enum strtol_error, not int.  Remove
11072         bool arg; take int * instead.
11073         * lib/human.c: Don't include "gettext.h".
11074         (_): Remove; no longer used.
11075         Don't include <xstrtol.h>, since human.h does it.
11076         (human_options): Adjust to abovementioned interface changes.
11077         Do not report error to stderr; that's now the caller's
11078         responsibility.
11079         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
11080         interface change.
11081         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
11082         Str, Argument_type_string.  All uses changed.  Put " argument"
11083         in diagnostics to make them clearer.  Change wording of suffix
11084         message for clarity.
11085         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
11086         Argument_type_string.
11087         (STRTOL_FATAL_WARN): Remove; no longer used.
11088         * modules/human (Depends-on): Remove gettext-h.
11089
11090 2007-08-06  Simon Josefsson  <simon@josefsson.org>
11091
11092         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
11093
11094 2007-07-31  Bruno Haible  <bruno@clisp.org>
11095
11096         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
11097         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
11098         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
11099
11100 2007-07-31  Bruno Haible  <bruno@clisp.org>
11101
11102         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
11103         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
11104
11105 2007-07-30  Bruno Haible  <bruno@clisp.org>
11106
11107         * modules/base64 (License): Use the synonymous term "LGPLv2+".
11108         * modules/c-ctype (License): Likewise.
11109         * modules/c-strcase (License): Likewise.
11110         * modules/check-version (License): Likewise.
11111         * modules/iconv (License): Likewise.
11112         * modules/iconv_open (License): Likewise.
11113         * modules/read-file (License): Likewise.
11114         * modules/striconv (License): Likewise.
11115         * modules/strverscmp (License): Likewise.
11116         * modules/vasprintf (License): Likewise.
11117         * modules/crypto/des (License): Likewise.
11118         * modules/crypto/gc (License): Likewise.
11119         * modules/crypto/gc-arcfour (License): Likewise.
11120         * modules/crypto/gc-arctwo (License): Likewise.
11121         * modules/crypto/gc-des (License): Likewise.
11122         * modules/crypto/gc-hmac-md5 (License): Likewise.
11123         * modules/crypto/gc-hmac-sha1 (License): Likewise.
11124         * modules/crypto/gc-md2 (License): Likewise.
11125         * modules/crypto/gc-md4 (License): Likewise.
11126         * modules/crypto/gc-md5 (License): Likewise.
11127         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
11128         * modules/crypto/gc-random (License): Likewise.
11129         * modules/crypto/gc-rijndael (License): Likewise.
11130         * modules/crypto/gc-sha1 (License): Likewise.
11131         * modules/crypto/md2 (License): Likewise.
11132         * modules/crypto/md4 (License): Likewise.
11133
11134 2007-07-30  Jim Meyering  <jim@meyering.net>
11135
11136         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
11137         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
11138         it has valid stat data.  This bug would cause du not to count the
11139         sizes of inaccessible directories.
11140         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
11141         in <http://bugzilla.redhat.com/250077>.
11142
11143 2007-07-25  Peter O'Gorman  <peter@pogma.com>
11144             Bruno Haible  <bruno@clisp.org>
11145
11146         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
11147         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
11148         #include_next, gives a diagnostic about it, but reports no error in
11149         the exit code.
11150         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
11151
11152 2007-07-24  Ben Pfaff  <blp@gnu.org>
11153
11154         Improve name: "count-one-bits" is better than "popcount".
11155         * MODULES.html.sh: Update name.
11156         * lib/popcount.h: Renamed lib/count-one-bits.h.
11157         (popcount): Renamed count_one_bits.
11158         (popcountl): Renamed count_one_bits_l.
11159         (popcountll): Renamed count_one_bits_ll.
11160         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11161         * modules/popcount: Renamed module/count-one-bits.
11162         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11163         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11164
11165 2007-07-23  Ben Pfaff  <blp@gnu.org>
11166
11167         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11168         better code generation, and add U to large constants to avoid
11169         warnings, in non-GCC case.
11170         Suggested by Bruno Haible.
11171
11172 2007-07-23  Ben Pfaff  <blp@gnu.org>
11173
11174         * lib/popcount.h: Use verify_true instead of if...abort.
11175         * modules/popcount: Depend on verify module.
11176         Suggested by Jim Meyering.
11177
11178 2007-07-23  Bruno Haible  <bruno@clisp.org>
11179
11180         * gnulib-tool (func_import): Create a .cvsignore file also when the
11181         directory is not yet in CVS but the toplevel directory is. When
11182         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11183         Reported by Karl Berry.
11184
11185 2007-07-22  Ben Pfaff  <blp@gnu.org>
11186
11187         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11188         case.
11189         Suggested by Eric Blake.
11190
11191 2007-07-22  Ben Pfaff  <blp@gnu.org>
11192
11193         New module: popcount.
11194         * MODULES.html.sh: Add popcount.
11195         * modules/popcount: New file.
11196         * modules/popcount-tests: New file.
11197         * tests/test-popcount.c: New file.
11198         * lib/popcount.h: New file.
11199         * m4/popcount.m4: New file.
11200
11201 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11202
11203         * build-aux/announce-gen: Update to GPLv3.
11204
11205         * build-aux/config.guess: Update from config.
11206
11207 2007-07-21  Bruno Haible  <bruno@clisp.org>
11208
11209         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11210         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11211
11212 2007-07-20  Jim Meyering  <jim@meyering.net>
11213
11214         * check-module: Diagnose a self-dependency.
11215
11216 2007-07-19  Bruno Haible  <bruno@clisp.org>
11217
11218         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11219         empty.
11220         Reported by Eric Blake.
11221
11222 2007-07-18  Bruno Haible  <bruno@clisp.org>
11223
11224         * gnulib-tool: New options --po-base, --po-domain.
11225         (func_usage): Document them.
11226         (pobase, po_domain): New variables.
11227         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11228         DEFAULT_TEXT_DOMAIN.
11229         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11230         (func_import): Consider pobase and po_domain. Create a po/ directory.
11231         (func_create_testdir): Set pobase and po_domain to empty.
11232         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11233         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11234
11235 2007-07-18  Bruno Haible  <bruno@clisp.org>
11236
11237         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11238         EXTRA_DIST augmentation for files in build-aux/.
11239
11240 2007-07-16  Bruno Haible  <bruno@clisp.org>
11241
11242         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11243         * modules/getdelim (License): Likewise.
11244
11245 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11246
11247         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11248         * modules/d-type (License): Likewise.
11249         * modules/extensions (License): Likewise.
11250         * modules/fnmatch (License): Likewise.
11251         * modules/fseeko (License): Likewise.
11252         * modules/getaddrinfo (License): Likewise.
11253         * modules/getline (License): Likewise.
11254         * modules/getlogin_r (License): Likewise.
11255         * modules/getpass (License): Likewise.
11256         * modules/gettimeofday (License): Likewise.
11257         * modules/glob (License): Likewise.
11258         * modules/inet_ntop (License): Likewise.
11259         * modules/malloc (License): Likewise.
11260         * modules/malloca (License): Likewise.
11261         * modules/memmem (License): Likewise.
11262         * modules/mempcpy (License): Likewise.
11263         * modules/memset (License): Likewise.
11264         * modules/minmax (License): Likewise.
11265         * modules/mktime (License): Likewise.
11266         * modules/netinet_in (License): Likewise.
11267         * modules/pathmax (License): Likewise.
11268         * modules/poll (License): Likewise.
11269         * modules/regex (License): Likewise.
11270         * modules/snprintf (License): Likewise.
11271         * modules/stdbool (License): Likewise.
11272         * modules/stdint (License): Likewise.
11273         * modules/stdio (License): Likewise.
11274         * modules/strcase (License): Likewise.
11275         * modules/strcasestr (License): Likewise.
11276         * modules/strdup (License): Likewise.
11277         * modules/string (License): Likewise.
11278         * modules/strndup (License): Likewise.
11279         * modules/strnlen (License): Likewise.
11280         * modules/strpbrk (License): Likewise.
11281         * modules/strptime (License): Likewise.
11282         * modules/strsep (License): Likewise.
11283         * modules/sys_select (License): Likewise.
11284         * modules/sys_socket (License): Likewise.
11285         * modules/sys_stat (License): Likewise.
11286         * modules/sys_time (License): Likewise.
11287         * modules/time (License): Likewise.
11288         * modules/time_r (License): Likewise.
11289         * modules/timegm (License): Likewise.
11290         * modules/unistd (License): Likewise.
11291         * modules/vsnprintf (License): Likewise.
11292         * modules/wctype (License): Likewise.
11293
11294 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11295
11296         * modules/argz (License): LGPLv2+.
11297
11298 2007-07-15  Karl Berry  <karl@gnu.org>
11299
11300         * doc/gnulib.texi: revise node structure per new fdl.texi.
11301
11302 2007-07-14  Bruno Haible  <bruno@clisp.org>
11303
11304         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11305         the output file.
11306         * lib/uniname/uninames.h: Regenerated.
11307
11308 2007-07-14  Karl Berry  <karl@gnu.org>
11309
11310         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11311         omitting sectioning and index commands.
11312
11313 2007-07-13  Bruno Haible  <bruno@clisp.org>
11314
11315         New gnulib-tool option --more-symlinks.
11316         * gnulib-tool (func_usage): Document --more-symlinks.
11317         (do_copyrights): New variable.
11318         Recognize option --more-symlinks.
11319         (func_import): Don't add a copyright notice transform to
11320         sed_transform_lib_file if do_copyrights is empty.
11321
11322 2007-07-13  Bruno Haible  <bruno@clisp.org>
11323
11324         * lib/vasnprintf.c (decimal_point_char): Define also if
11325         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11326         && !NEED_PRINTF_DIRECTIVE_A.
11327         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11328         Gary V. Vaughan <gary@gnu.org>.
11329
11330 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11331
11332         * lib/inttypes_.h: Undo previous change, since it was fixed
11333         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11334
11335 2007-07-13  Bruno Haible  <bruno@clisp.org>
11336
11337         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11338         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11339
11340 2007-07-13  Jim Meyering  <jim@meyering.net>
11341
11342         df: Don't fail for Tru64's "file-on-file mount".
11343         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11344         so we fall through and use statfs instead.  Details here:
11345         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11346         Reported by Albert Chin.
11347
11348 2007-07-13  Bruno Haible  <bruno@clisp.org>
11349
11350         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11351         * modules/configmake (License): Likewise.
11352         * modules/gettext (License): Likewise.
11353         * modules/gettext-h (License): Likewise.
11354         * modules/include_next (License): Likewise.
11355         * modules/link-warning (License): Likewise.
11356         * modules/localcharset (License): Likewise.
11357         * modules/localename (License): Likewise.
11358         * modules/lock (License): Likewise.
11359         * modules/relocatable-lib-lgpl (License): Likewise.
11360         * modules/size_max (License): Likewise.
11361         * modules/vasnprintf (License): Likewise.
11362         * modules/wchar (License): Likewise.
11363         * modules/xsize (License): Likewise.
11364
11365 2007-07-13  Bruno Haible  <bruno@clisp.org>
11366
11367         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11368         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11369
11370 2007-07-12  Bruno Haible  <bruno@clisp.org>
11371
11372         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11373         in the modules files.
11374
11375 2007-07-11  Karl Berry  <karl@gnu.org>
11376
11377         * MODULES.html.sh (func_module): use
11378          sed -e '\|^'"${includefile}"'$|d'
11379          instead of /.../d, to avoid errors on $includefile's containing /.
11380
11381 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11382
11383         * gnulib-tool (func_import): Avoid duplication of --avoid
11384         statements
11385         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11386         names to `_' in variable names.
11387
11388 2007-07-10  Eric Blake  <ebb9@byu.net>
11389
11390         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11391         * NEWS: Document this change.
11392
11393 2007-07-08  Bruno Haible  <bruno@clisp.org>
11394
11395         Update to Unicode 5.0.
11396         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11397         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11398         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11399         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11400         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11401         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11402         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11403         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11404         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11405         U+10A3F, U+1D242..U+1D244.
11406         (nonspacing_table_ind): Update.
11407         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11408         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11409
11410 2007-07-08  Bruno Haible  <bruno@clisp.org>
11411
11412         Update to Unicode 5.0.
11413         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11414         code transform. Extend the name index field of unicode_name_to_code and
11415         unicode_code_to_name from 16 to 24 bits.
11416         * lib/uniname/uniname.c (unicode_character_name,
11417         unicode_name_character): Add the range 0x12xxx to the code transform.
11418         * lib/uniname/uninames.h: Regenerated.
11419         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11420
11421 2007-07-07  Bruno Haible  <bruno@clisp.org>
11422
11423         * modules/wcwidth-tests: New file.
11424         * tests/test-wcwidth.c: New file.
11425
11426         Work around MacOS X wcwidth() bug.
11427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11428         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11429         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11430         original wcwidth in non-UTF-8 locales.
11431         * modules/wcwidth (Depends-on): Add localcharset, streq,
11432         uniwidth/width.
11433         * doc/functions/wcwidth.texi: Update.
11434
11435 2007-07-07  Bruno Haible  <bruno@clisp.org>
11436
11437         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11438         (wcwidth): New declaration.
11439         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11440         macros.
11441         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11442         here. Prepare for creating <wchar.h> unconditionally.
11443         * modules/wchar (Depends-on): Add link-warning.
11444         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11445         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11446         * lib/wcwidth.h: Remove file.
11447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11448         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11449         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11450         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11451         (Include): Replace wcwidth.h with <wchar.h>.
11452         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11453         * lib/mbchar.h: Don't include wcwidth.h.
11454         * lib/mbswidth.c: Likewise.
11455         * NEWS: Mention the change.
11456
11457 2007-07-07  Bruno Haible  <bruno@clisp.org>
11458
11459         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11460         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11461         definition with an external declaration.
11462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11463         defined as a function. Remove AC_C_INLINE requirement.
11464         * modules/wcwidth (Files): Add lib/wcwidth.c.
11465         (Makefile.am): Remove redundant statement.
11466
11467 2007-07-07  Bruno Haible  <bruno@clisp.org>
11468
11469         * MODULES.html.sh (Unicode string functions): Add the new modules.
11470
11471         * tests/uniwidth/test-u32-strwidth.c: New file.
11472         * modules/uniwidth/u32-strwidth-tests: New file.
11473
11474         * lib/uniwidth/u32-strwidth.c: New file.
11475         * modules/uniwidth/u32-strwidth: New file.
11476
11477         * tests/uniwidth/test-u16-strwidth.c: New file.
11478         * modules/uniwidth/u16-strwidth-tests: New file.
11479
11480         * lib/uniwidth/u16-strwidth.c: New file.
11481         * modules/uniwidth/u16-strwidth: New file.
11482
11483         * tests/uniwidth/test-u8-strwidth.c: New file.
11484         * modules/uniwidth/u8-strwidth-tests: New file.
11485
11486         * lib/uniwidth/u8-strwidth.c: New file.
11487         * modules/uniwidth/u8-strwidth: New file.
11488
11489         * tests/uniwidth/test-u32-width.c: New file.
11490         * modules/uniwidth/u32-width-tests: New file.
11491
11492         * lib/uniwidth/u32-width.c: New file.
11493         * modules/uniwidth/u32-width: New file.
11494
11495         * tests/uniwidth/test-u16-width.c: New file.
11496         * modules/uniwidth/u16-width-tests: New file.
11497
11498         * lib/uniwidth/u16-width.c: New file.
11499         * modules/uniwidth/u16-width: New file.
11500
11501         * tests/uniwidth/test-u8-width.c: New file.
11502         * modules/uniwidth/u8-width-tests: New file.
11503
11504         * lib/uniwidth/u8-width.c: New file.
11505         * modules/uniwidth/u8-width: New file.
11506
11507         * tests/uniwidth/test-uc_width.c: New file.
11508         * modules/uniwidth/width-tests: New file.
11509
11510         * lib/uniwidth/width.c: New file, from GNU libiconv.
11511         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11512         * modules/uniwidth/width: New file.
11513
11514         * lib/uniwidth.h: New file, from GNU libiconv.
11515         * modules/uniwidth/base: New file.
11516
11517 2007-07-07  Bruno Haible  <bruno@clisp.org>
11518
11519         * lib/uniname.h: New file, from GNU gettext.
11520         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11521         * lib/uniname/uninames.h: New file, from GNU gettext.
11522         * lib/uniname/uniname.c: New file, from GNU gettext.
11523         * tests/uniname/test-uninames.sh: New file.
11524         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11525         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11526         * modules/uniname/base: New file.
11527         * modules/uniname/uniname: New file.
11528         * modules/uniname/uniname-tests: New file.
11529         * MODULES.html.sh (Unicode string functions): Add the new modules.
11530
11531 2007-07-06  Bruno Haible  <bruno@clisp.org>
11532
11533         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11534
11535 2007-07-06  Bruno Haible  <bruno@clisp.org>
11536
11537         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11538         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11539         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11540         include <sys/time.h>.
11541         Reported by Eric Blake.
11542
11543 2007-07-06  Eric Blake  <ebb9@byu.net>
11544
11545         Fix testing canonicalize on cygwin.
11546         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11547         Revert patch from 2007-06-19.
11548         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11549         canonicalize module is also in use.
11550         * tests/test-canonicalize.c: New file.
11551         * tests/test-canonicalize.sh: Likewise.
11552         * modules/canonicalize-tests: Likewise.
11553
11554 2007-07-06  Jim Meyering  <jim@meyering.net>
11555
11556         * lib/getugroups.c (getugroups): Detect getgrent failure.
11557         Adjust comment to reflect reality: this function may return -1.
11558
11559 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11560
11561         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11562         the new TP address.
11563         (usage): Fix typo
11564         (gnulib_mk): New variable.
11565
11566 2007-07-05  Jim Meyering  <jim@meyering.net>
11567
11568         Don't let endgrent clobber errno, no matter how improbable.
11569         * lib/getugroups.c (getugroups): Save and restore errno around
11570         endgrent call.
11571
11572         Close the group DB even when failing with 2^31 or more members.
11573         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11574
11575 2007-07-04  Jim Meyering  <jim@meyering.net>
11576
11577         * lib/getugroups.h: New file.
11578         * lib/getugroups.c: Include "getugroups.h".
11579         Remove uses of "register" keyword.
11580         Move local variable, "cp", down into scope where used.
11581         Give "username" parameter the "const" attribute.
11582         * modules/getugroups (Files): Add lib/getugroups.h
11583
11584 2007-07-04  Karl Berry  <karl@gnu.org>
11585
11586         * MODULES.html.sh (func_all_modules): Complete rename of
11587         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11588
11589 2007-07-02  Bruno Haible  <bruno@clisp.org>
11590
11591         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11592         mode, when inttypes.h comes from gnulib.
11593         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11594
11595 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11596
11597         * NEWS: Mention lgpl module name change.
11598
11599         * modules/lgpl-2.1: Renamed from lgpl.
11600
11601         * NEWS: Mention gpl module name change.
11602
11603         * modules/gpl-3.0: New file, based on gpl-2.0.
11604
11605         * modules/gpl-2.0: Renamed from gpl.
11606
11607         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11608         doc/gpl-2.0.texi.
11609
11610 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11613         #define __STDC_LIMIT_MACROS temporarily while including
11614         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11615         Problem reported by Joel E. Denny in
11616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11617
11618 2007-07-01  Bruno Haible  <bruno@clisp.org>
11619
11620         * lib/unistdio.h: New file.
11621         * lib/unistdio/u-asnprintf.h: New file.
11622         * lib/unistdio/u-asprintf.h: New file.
11623         * lib/unistdio/u-printf-args.c: New file.
11624         * lib/unistdio/u-printf-args.h: New file.
11625         * lib/unistdio/u-printf-parse.h: New file.
11626         * lib/unistdio/u-snprintf.h: New file.
11627         * lib/unistdio/u-sprintf.h: New file.
11628         * lib/unistdio/u-vasprintf.h: New file.
11629         * lib/unistdio/u-vsnprintf.h: New file.
11630         * lib/unistdio/u-vsprintf.h: New file.
11631         * lib/unistdio/ulc-asnprintf.c: New file.
11632         * lib/unistdio/ulc-asprintf.c: New file.
11633         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11634         * lib/unistdio/ulc-printf-parse.c: New file.
11635         * lib/unistdio/ulc-snprintf.c: New file.
11636         * lib/unistdio/ulc-sprintf.c: New file.
11637         * lib/unistdio/ulc-vasnprintf.c: New file.
11638         * lib/unistdio/ulc-vasprintf.c: New file.
11639         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11640         * lib/unistdio/ulc-vsnprintf.c: New file.
11641         * lib/unistdio/ulc-vsprintf.c: New file.
11642         * lib/unistdio/u8-asnprintf.c: New file.
11643         * lib/unistdio/u8-asprintf.c: New file.
11644         * lib/unistdio/u8-printf-parse.c: New file.
11645         * lib/unistdio/u8-snprintf.c: New file.
11646         * lib/unistdio/u8-sprintf.c: New file.
11647         * lib/unistdio/u8-vasnprintf.c: New file.
11648         * lib/unistdio/u8-vasprintf.c: New file.
11649         * lib/unistdio/u8-vsnprintf.c: New file.
11650         * lib/unistdio/u8-vsprintf.c: New file.
11651         * lib/unistdio/u8-u8-asnprintf.c: New file.
11652         * lib/unistdio/u8-u8-asprintf.c: New file.
11653         * lib/unistdio/u8-u8-snprintf.c: New file.
11654         * lib/unistdio/u8-u8-sprintf.c: New file.
11655         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11656         * lib/unistdio/u8-u8-vasprintf.c: New file.
11657         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11658         * lib/unistdio/u8-u8-vsprintf.c: New file.
11659         * lib/unistdio/u16-asnprintf.c: New file.
11660         * lib/unistdio/u16-asprintf.c: New file.
11661         * lib/unistdio/u16-printf-parse.c: New file.
11662         * lib/unistdio/u16-snprintf.c: New file.
11663         * lib/unistdio/u16-sprintf.c: New file.
11664         * lib/unistdio/u16-vasnprintf.c: New file.
11665         * lib/unistdio/u16-vasprintf.c: New file.
11666         * lib/unistdio/u16-vsnprintf.c: New file.
11667         * lib/unistdio/u16-vsprintf.c: New file.
11668         * lib/unistdio/u16-u16-asnprintf.c: New file.
11669         * lib/unistdio/u16-u16-asprintf.c: New file.
11670         * lib/unistdio/u16-u16-snprintf.c: New file.
11671         * lib/unistdio/u16-u16-sprintf.c: New file.
11672         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11673         * lib/unistdio/u16-u16-vasprintf.c: New file.
11674         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11675         * lib/unistdio/u16-u16-vsprintf.c: New file.
11676         * lib/unistdio/u32-asnprintf.c: New file.
11677         * lib/unistdio/u32-asprintf.c: New file.
11678         * lib/unistdio/u32-printf-parse.c: New file.
11679         * lib/unistdio/u32-snprintf.c: New file.
11680         * lib/unistdio/u32-sprintf.c: New file.
11681         * lib/unistdio/u32-vasnprintf.c: New file.
11682         * lib/unistdio/u32-vasprintf.c: New file.
11683         * lib/unistdio/u32-vsnprintf.c: New file.
11684         * lib/unistdio/u32-vsprintf.c: New file.
11685         * lib/unistdio/u32-u32-asnprintf.c: New file.
11686         * lib/unistdio/u32-u32-asprintf.c: New file.
11687         * lib/unistdio/u32-u32-snprintf.c: New file.
11688         * lib/unistdio/u32-u32-sprintf.c: New file.
11689         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11690         * lib/unistdio/u32-u32-vasprintf.c: New file.
11691         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11692         * lib/unistdio/u32-u32-vsprintf.c: New file.
11693         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11694         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11695         * tests/unistdio/test-ulc-printf1.h: New file.
11696         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11697         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11698         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11699         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11700         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11701         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11702         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11703         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11704         * tests/unistdio/test-u8-asnprintf1.c: New file.
11705         * tests/unistdio/test-u8-asnprintf1.h: New file.
11706         * tests/unistdio/test-u8-printf1.h: New file.
11707         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11708         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11709         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11710         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11711         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11712         * tests/unistdio/test-u8-vasprintf1.c: New file.
11713         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11714         * tests/unistdio/test-u8-vsprintf1.c: New file.
11715         * tests/unistdio/test-u16-asnprintf1.c: New file.
11716         * tests/unistdio/test-u16-asnprintf1.h: New file.
11717         * tests/unistdio/test-u16-printf1.h: New file.
11718         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11719         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11720         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11721         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11722         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11723         * tests/unistdio/test-u16-vasprintf1.c: New file.
11724         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11725         * tests/unistdio/test-u16-vsprintf1.c: New file.
11726         * tests/unistdio/test-u32-asnprintf1.c: New file.
11727         * tests/unistdio/test-u32-asnprintf1.h: New file.
11728         * tests/unistdio/test-u32-printf1.h: New file.
11729         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11730         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11731         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11732         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11733         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11734         * tests/unistdio/test-u32-vasprintf1.c: New file.
11735         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11736         * tests/unistdio/test-u32-vsprintf1.c: New file.
11737         * modules/unistdio/base: New file.
11738         * modules/unistdio/u-printf-args: New file.
11739         * modules/unistdio/ulc-asnprintf: New file.
11740         * modules/unistdio/ulc-asprintf: New file.
11741         * modules/unistdio/ulc-fprintf: New file.
11742         * modules/unistdio/ulc-printf-parse: New file.
11743         * modules/unistdio/ulc-snprintf: New file.
11744         * modules/unistdio/ulc-sprintf: New file.
11745         * modules/unistdio/ulc-vasnprintf: New file.
11746         * modules/unistdio/ulc-vasprintf: New file.
11747         * modules/unistdio/ulc-vfprintf: New file.
11748         * modules/unistdio/ulc-vsnprintf: New file.
11749         * modules/unistdio/ulc-vsprintf: New file.
11750         * modules/unistdio/u8-asnprintf: New file.
11751         * modules/unistdio/u8-asprintf: New file.
11752         * modules/unistdio/u8-printf-parse: New file.
11753         * modules/unistdio/u8-snprintf: New file.
11754         * modules/unistdio/u8-sprintf: New file.
11755         * modules/unistdio/u8-vasnprintf: New file.
11756         * modules/unistdio/u8-vasprintf: New file.
11757         * modules/unistdio/u8-vsnprintf: New file.
11758         * modules/unistdio/u8-vsprintf: New file.
11759         * modules/unistdio/u8-u8-asnprintf: New file.
11760         * modules/unistdio/u8-u8-asprintf: New file.
11761         * modules/unistdio/u8-u8-snprintf: New file.
11762         * modules/unistdio/u8-u8-sprintf: New file.
11763         * modules/unistdio/u8-u8-vasnprintf: New file.
11764         * modules/unistdio/u8-u8-vasprintf: New file.
11765         * modules/unistdio/u8-u8-vsnprintf: New file.
11766         * modules/unistdio/u8-u8-vsprintf: New file.
11767         * modules/unistdio/u16-asnprintf: New file.
11768         * modules/unistdio/u16-asprintf: New file.
11769         * modules/unistdio/u16-printf-parse: New file.
11770         * modules/unistdio/u16-snprintf: New file.
11771         * modules/unistdio/u16-sprintf: New file.
11772         * modules/unistdio/u16-vasnprintf: New file.
11773         * modules/unistdio/u16-vasprintf: New file.
11774         * modules/unistdio/u16-vsnprintf: New file.
11775         * modules/unistdio/u16-vsprintf: New file.
11776         * modules/unistdio/u16-u16-asnprintf: New file.
11777         * modules/unistdio/u16-u16-asprintf: New file.
11778         * modules/unistdio/u16-u16-snprintf: New file.
11779         * modules/unistdio/u16-u16-sprintf: New file.
11780         * modules/unistdio/u16-u16-vasnprintf: New file.
11781         * modules/unistdio/u16-u16-vasprintf: New file.
11782         * modules/unistdio/u16-u16-vsnprintf: New file.
11783         * modules/unistdio/u16-u16-vsprintf: New file.
11784         * modules/unistdio/u32-asnprintf: New file.
11785         * modules/unistdio/u32-asprintf: New file.
11786         * modules/unistdio/u32-printf-parse: New file.
11787         * modules/unistdio/u32-snprintf: New file.
11788         * modules/unistdio/u32-sprintf: New file.
11789         * modules/unistdio/u32-vasnprintf: New file.
11790         * modules/unistdio/u32-vasprintf: New file.
11791         * modules/unistdio/u32-vsnprintf: New file.
11792         * modules/unistdio/u32-vsprintf: New file.
11793         * modules/unistdio/u32-u32-asnprintf: New file.
11794         * modules/unistdio/u32-u32-asprintf: New file.
11795         * modules/unistdio/u32-u32-snprintf: New file.
11796         * modules/unistdio/u32-u32-sprintf: New file.
11797         * modules/unistdio/u32-u32-vasnprintf: New file.
11798         * modules/unistdio/u32-u32-vasprintf: New file.
11799         * modules/unistdio/u32-u32-vsnprintf: New file.
11800         * modules/unistdio/u32-u32-vsprintf: New file.
11801         * modules/unistdio/ulc-asnprintf-tests: New file.
11802         * modules/unistdio/ulc-vasnprintf-tests: New file.
11803         * modules/unistdio/ulc-vasprintf-tests: New file.
11804         * modules/unistdio/ulc-vsnprintf-tests: New file.
11805         * modules/unistdio/ulc-vsprintf-tests: New file.
11806         * modules/unistdio/u8-asnprintf-tests: New file.
11807         * modules/unistdio/u8-vasnprintf-tests: New file.
11808         * modules/unistdio/u8-vasprintf-tests: New file.
11809         * modules/unistdio/u8-vsnprintf-tests: New file.
11810         * modules/unistdio/u8-vsprintf-tests: New file.
11811         * modules/unistdio/u16-asnprintf-tests: New file.
11812         * modules/unistdio/u16-vasnprintf-tests: New file.
11813         * modules/unistdio/u16-vasprintf-tests: New file.
11814         * modules/unistdio/u16-vsnprintf-tests: New file.
11815         * modules/unistdio/u16-vsprintf-tests: New file.
11816         * modules/unistdio/u32-asnprintf-tests: New file.
11817         * modules/unistdio/u32-vasnprintf-tests: New file.
11818         * modules/unistdio/u32-vasprintf-tests: New file.
11819         * modules/unistdio/u32-vsnprintf-tests: New file.
11820         * modules/unistdio/u32-vsprintf-tests: New file.
11821         * MODULES.html.sh (Unicode string functions): Add the new modules.
11822
11823 2007-07-01  Bruno Haible  <bruno@clisp.org>
11824
11825         * lib/sprintf.c (sprintf): Limit the available length estimation,
11826         to avoid address wraparound.
11827         * lib/vsprintf.c (vsprintf): Likewise.
11828         * modules/sprintf-posix (Dependencies): Add stdint.
11829         * modules/vsprintf-posix (Dependencies): Likewise.
11830
11831 2007-07-01  Bruno Haible  <bruno@clisp.org>
11832
11833         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11834         Windows PATH as well. Conservative double-quoting. Comments.
11835
11836 2007-07-01  Bruno Haible  <bruno@clisp.org>
11837             Eric Blake  <ebb9@byu.net>
11838             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11839
11840         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11841         empty components in $PATH, denoting '.'.
11842
11843 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11844
11845         * gnulib-tool: Fix indentation.
11846         (func_create_megatestdir): Likewise.
11847         Report by Bruno Haible.
11848
11849 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11850
11851         Sync from Automake.
11852         * build-aux/gnupload: Fix shell portability issues with for loops.
11853         Report by Karl Berry.
11854
11855 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11856
11857         * build-aux/maint.mk (POURL): Use translationproject.org.
11858
11859 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11860             Bruno Haible  <bruno@clisp.org>
11861
11862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11863         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11864         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11865         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11866         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11867
11868 2007-06-27  Bruno Haible  <bruno@clisp.org>
11869
11870         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11871         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11872
11873 2007-06-26  Karl Berry  <karl@gnu.org>
11874
11875         * MODULES.html.sh: remove xreadlink-with-size.
11876
11877 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11878
11879         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11880         method that I hope also handles the double-include problem noted
11881         by Bruno Haible in
11882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11883
11884 2007-06-23  Bruno Haible  <bruno@clisp.org>
11885
11886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11887         Don't let the 'mostlyclean' target fail if the last subdirectory could
11888         not be removed.
11889         Reported by Karl Berry.
11890
11891 2007-06-23  Bruno Haible  <bruno@clisp.org>
11892
11893         * gnulib-tool (echo): Add a speedier workaround for ksh.
11894         * tests/test-echo.sh: Likewise.
11895
11896 2007-06-23  Bruno Haible  <bruno@clisp.org>
11897
11898         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11899         * tests/test-echo.sh: Likewise.
11900
11901 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11902
11903         * gnulib-tool (IFS): Initialize early, so we don't set it to
11904         empty later.
11905         (self_abspathname): Rewrite algorithm to set it, reindent.
11906         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11907         (func_create_megatestdir): Merge some sed scripts.
11908
11909 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11910
11911         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11912         exposed by Sun Studio 11 cc on Solaris 8.
11913
11914 2007-06-22  Bruno Haible  <bruno@clisp.org>
11915
11916         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11917         backslashes.
11918         * tests/test-echo.sh: New file.
11919
11920 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11921
11922         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11923         simplify `sed_replace_build_aux' scripts, they are portable but
11924         echoing them with `echo' is not.
11925         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11926
11927 2007-06-21  Karl Berry  <karl@gnu.org>
11928
11929         * config/srclist.txt: guess we can't handle the licenses via
11930         srclist at the moment.
11931
11932 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         * MODULES.html.sh: Add include_next.
11935         * modules/include_next: New file.
11936
11937 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11938
11939         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11940         INCLUDE_NEXT.
11941         (gl_CHECK_NEXT_HEADERS): New macro.
11942         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11943         the obsolescent gl_ABSOLUTE_HEADER.
11944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11945         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11946         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11947         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11948         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11949         * m4/math_h.m4 (gl_MATH_H): Likewise.
11950         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11951         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11952         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11953         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11954         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11955         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11956         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11960         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11961         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11962         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11963         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11964         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11965         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11966         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11967         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11968         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11969         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11970         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11971         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11972         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11973         * lib/float_.h: Likewise.
11974         * lib/inttypes_.h: Likewise.
11975         * lib/math_.h: Likewise.
11976         * lib/search_.h: Likewise.
11977         * lib/signal_.h: Likewise.
11978         * lib/stdint_.h: Likewise.
11979         * lib/stdio_.h: Likewise.
11980         * lib/stdlib_.h: Likewise.
11981         * lib/string_.h: Likewise.
11982         * lib/sys_stat_.h: Likewise.
11983         * lib/sys_time_.h: Likewise.
11984         * lib/time_.h: Likewise.
11985         * lib/unistd_.h: Likewise.
11986         * lib/wchar_.h: Likewise.
11987         * lib/wctype_.h: Likewise.
11988         * lib/dirent_.h: Likewise.
11989         * lib/iconv_.h: Likewise.
11990         * lib/locale_.h: Likewise.
11991         * lib/netinet_in_.h: Likewise.
11992         * lib/sys_select_.h: Likewise.
11993         * lib/sys_socket_.h: Likewise.
11994         * lib/sysexits_.h: Likewise.
11995         * modules/fcntl (Depends-on): Depend on include_next, not
11996         absolute_header.
11997         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11998         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11999         * modules/fchdir: Likewise.
12000         * modules/float: Likewise.
12001         * modules/iconv_open: Likewise.
12002         * modules/inttypes: Likewise.
12003         * modules/locale: Likewise.
12004         * modules/math: Likewise.
12005         * modules/netinet_in: Likewise.
12006         * modules/search: Likewise.
12007         * modules/signal: Likewise.
12008         * modules/stdint: Likewise.
12009         * modules/stdio: Likewise.
12010         * modules/stdlib: Likewise.
12011         * modules/string: Likewise.
12012         * modules/sys_select: Likewise.
12013         * modules/sys_socket: Likewise.
12014         * modules/sys_stat: Likewise.
12015         * modules/sys_time: Likewise.
12016         * modules/sysexits: Likewise.
12017         * modules/time: Likewise.
12018         * modules/unistd: Likewise.
12019         * modules/wchar: Likewise.
12020         * modules/wctype: Likewise.
12021         * modules/sys_stat: Change maintainer to "all".
12022         * modules/unistd: Likewise.
12023
12024 2007-06-20  Karl Berry  <karl@gnu.org>
12025
12026         * config/srclist.txt: track www changes in license files.
12027
12028 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
12029
12030         * build-aux/bootstrap: Remove stray dot.
12031         Make sure build_aux settings are honored when linking
12032         gnulib_extra_files.
12033
12034 2007-06-19  Eric Blake  <ebb9@byu.net>
12035
12036         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
12037         Allow compilation on cygwin.
12038
12039 2007-06-19  Jim Meyering  <jim@meyering.net>
12040
12041         xreadlink-with-size: Remove module.  No longer used.
12042         Ex-callers now use xreadlink or mreadlink-with-size.
12043         * modules/xreadlink-with-size: Remove module.
12044         * lib/xreadlink-with-size.c: Remove file.
12045         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
12046         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
12047         just before the function definition *is* accurate.
12048
12049         Eliminate one way canonicalize_filename_mode could exit.
12050         * lib/canonicalize.c (canonicalize_filename_mode):
12051         Use mreadlink_with_size, not xreadlink_with_size.
12052
12053 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
12054
12055         Detect porting problems to FreeBSD/arm, which has time_t wider than
12056         long int.  Original problem reported for GNU diff by Xin Li in
12057         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
12058         * modules/getdate (Depends-on): Add intprops, verify.
12059         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
12060         is an integer type no wider than long int.
12061
12062 2007-06-18  Jim Meyering  <jim@meyering.net>
12063
12064         New module: mreadlink-with-size.
12065         * MODULES.html.sh: Add mreadlink-with-size.
12066         * modules/mreadlink-with-size: New module
12067         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
12068         not xreadlink-with-size.
12069         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
12070
12071 2007-06-16  Bruno Haible  <bruno@clisp.org>
12072
12073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
12074         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
12075         Reported by Gary V. Vaughan <gary@gnu.org>.
12076
12077 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12078
12079         Revamp lchown so that it lives in unistd.h where it belongs.
12080         * lib/lchown.h: Remove.
12081         * lib/dirchownmod.c: Don't include lib/lchown.h.
12082         * lib/fchownat.c: Likewise.
12083         * lib/openat.c: Likewise.
12084         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
12085         does not follow symlinks.
12086         (EOPNOTSUPP): Define if not defined.
12087         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
12088         is defined to 0.
12089         (lchown): New decl.
12090         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
12091         Do not check for lchown decl.
12092         Set REPLACE_LCHOWN.
12093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
12094         REPLACE_LCHOWN.
12095         * modules/chown: Make it clear it follows symlinks.
12096         * modules/lchown: Make it clear it doesn't follow symlinks.
12097         (Files): Remove lib/lchown.h
12098         (Depends-on): Add unistd.
12099         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
12100         (Include): Include <unistd.h>, not "lchown.h".
12101         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
12102         REPLACE_LCHOWN.
12103
12104 2007-06-15  Jim Meyering  <jim@meyering.net>
12105
12106         Change license (GPL to LGPL) of fsusage and dependents.
12107         * modules/fsusage (License): Change to LGPL.
12108         * modules/full-read (License): Likewise.
12109         * modules/full-write (License): Likewise.
12110         * modules/safe-read (License): Likewise.
12111         * modules/safe-write (License): Likewise.
12112
12113 2007-06-14  Ben Pfaff  <blp@gnu.org>
12114
12115         Missing part of allocsa -> malloca transition.
12116         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
12117         gl_MALLOCA.
12118
12119 2007-06-12  Bruno Haible  <bruno@clisp.org>
12120
12121         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
12122         to ia64, x86_64, i386.
12123         Reported by Eric Blake.
12124
12125 2007-06-12  Bruno Haible  <bruno@clisp.org>
12126
12127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
12128         cross-compiling to x86_64.
12129
12130 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
12133         glitch reported by Ralf Wildenhues in
12134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
12135
12136         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
12137         Vin Shelton.
12138
12139 2007-06-11  Bruno Haible  <bruno@clisp.org>
12140
12141         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
12142         replacement string.
12143         Reported by Eric Blake.
12144
12145 2007-06-10  Bruno Haible  <bruno@clisp.org>
12146
12147         Prepare vasnprintf code for use with Unicode strings.
12148         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
12149         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
12150         TYPE_U32_STRING.
12151         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
12152         a_u32_string variants.
12153         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12154         * lib/printf-args.c: Don't include config.h and the specification
12155         header if PRINTF_FETCHARGS is already defined.
12156         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12157         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12158         TYPE_U16_STRING, TYPE_U32_STRING.
12159         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12160         u16_directive, u16_directives, u32_directive, u32_directives): New
12161         types.
12162         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12163         New declarations.
12164         * lib/printf-parse.c: Don't include config.h and the specification
12165         header if PRINTF_PARSE is already defined. Eliminate the set of
12166         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12167         them now. Include c-ctype.h.
12168         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12169         directive and CHAR_T_ONLY_ASCII.
12170         * lib/vasnprintf.c: Don't include config.h and the specification header
12171         if VASNPRINTF is already defined.
12172         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12173         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12174         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12175         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12176         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12177         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12178         code accordingly.
12179         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12180         pad_ourselves also in this case, with the 'c' and 's' directives, and
12181         with a different notion of "width".
12182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12183
12184 2007-06-10  Bruno Haible  <bruno@clisp.org>
12185
12186         * modules/unistr/u32-mbsnlen: New file.
12187         * lib/unistr/u32-mbsnlen.c: New file.
12188
12189         * modules/unistr/u16-mbsnlen: New file.
12190         * lib/unistr/u16-mbsnlen.c: New file.
12191
12192         * modules/unistr/u8-mbsnlen: New file.
12193         * lib/unistr/u8-mbsnlen.c: New file.
12194
12195         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12196         declarations.
12197
12198 2007-06-10  Bruno Haible  <bruno@clisp.org>
12199
12200         * lib/string_.h (mbsnlen): New declaration.
12201         * lib/mbsnlen.c: New file.
12202         * m4/mbsnlen.m4: New file.
12203         * modules/mbsnlen: New file.
12204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12205         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12206         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12207
12208 2007-06-10  Bruno Haible  <bruno@clisp.org>
12209
12210         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12211
12212 2007-06-10  Bruno Haible  <bruno@clisp.org>
12213
12214         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12215         * lib/mbuiter.h: Likewise.
12216
12217 2007-06-10  Bruno Haible  <bruno@clisp.org>
12218
12219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12220         declaration.
12221
12222 2007-06-10  Karl Berry  <karl@gnu.org>
12223
12224         * config/srclist.txt: remove gettext entries, Bruno prefers
12225         to update individually.
12226
12227 2007-06-10  Bruno Haible  <bruno@clisp.org>
12228
12229         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12230         'maxlen'. Ensure only length + width bytes are allocated, not
12231         length + 1 + width.
12232
12233 2007-06-09  Bruno Haible  <bruno@clisp.org>
12234
12235         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12236         (CHAR_T): Remove macro.
12237         (VASNPRINTF): Update.
12238
12239 2007-06-09  Bruno Haible  <bruno@clisp.org>
12240
12241         * MODULES.html.sh (Unicode string functions): Add the new modules.
12242
12243         * modules/uniconv/u32-conv-to-enc: New file.
12244         * lib/uniconv/u32-conv-to-enc.c: New file.
12245         * modules/uniconv/u32-conv-to-enc-tests: New file.
12246         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12247
12248         * modules/uniconv/u16-conv-to-enc: New file.
12249         * lib/uniconv/u16-conv-to-enc.c: New file.
12250         * lib/uniconv/u-conv-to-enc.h: New file.
12251         * modules/uniconv/u16-conv-to-enc-tests: New file.
12252         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12253
12254         * modules/uniconv/u8-conv-to-enc: New file.
12255         * lib/uniconv/u8-conv-to-enc.c: New file.
12256         * modules/uniconv/u8-conv-to-enc-tests: New file.
12257         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12258
12259         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12260         u32_conv_to_encoding): New declarations.
12261
12262 2007-06-09  Bruno Haible  <bruno@clisp.org>
12263
12264         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12265
12266 2007-06-09  Bruno Haible  <bruno@clisp.org>
12267
12268         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12269         * modules/malloca: Renamed from modules/allocsa, updated.
12270         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12271         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12272         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12273         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12274         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12275         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12276         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12277         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12278         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12279         * modules/c-strcasestr (Depends-on): Update.
12280         * lib/c-strcasestr.c: Update.
12281         * modules/c-strstr (Depends-on): Update.
12282         * lib/c-strstr.c: Update.
12283         * modules/canonicalize-lgpl (Depends-on): Update.
12284         * lib/canonicalize-lgpl.c: Update.
12285         * modules/clean-temp (Depends-on): Update.
12286         * lib/clean-temp.c: Update.
12287         * modules/csharpcomp (Depends-on): Update.
12288         * lib/csharpcomp.c: Update.
12289         * modules/csharpexec (Depends-on): Update.
12290         * lib/csharpexec.c: Update.
12291         * modules/javacomp (Depends-on): Update.
12292         * lib/javacomp.c: Update.
12293         * modules/javaexec (Depends-on): Update.
12294         * lib/javaexec.c: Update.
12295         * modules/mbscasestr (Depends-on): Update.
12296         * lib/mbscasestr.c: Update.
12297         * modules/mbsstr (Depends-on): Update.
12298         * lib/mbsstr.c: Update.
12299         * modules/setenv (Depends-on): Update.
12300         * lib/setenv.c: Update.
12301         * modules/strcasestr (Depends-on): Update.
12302         * lib/strcasestr.c: Update.
12303         * modules/striconveha (Depends-on): Update.
12304         * lib/striconveha.c: Update.
12305         * modules/relocatable-prog-wrapper (Files): Update.
12306         * lib/relocwrapper.c: Update.
12307         * build-aux/install-reloc: Update.
12308         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12309
12310 2007-06-08  Bruno Haible  <bruno@clisp.org>
12311
12312         Port to uClibc.
12313         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12314         * lib/fpurge.c (fpurge): Likewise.
12315         * lib/freading.c (freading): Likewise.
12316         * lib/fseeko.c (rpl_fseeko): Likewise.
12317         * lib/fseterr.c (fseterr): Likewise.
12318         * lib/fwriting.c (fwriting): Likewise.
12319         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12320
12321 2007-06-08  Bruno Haible  <bruno@clisp.org>
12322
12323         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12324         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12325         * modules/gettext (Files): Add m4/intlmacosx.m4.
12326
12327 2007-06-07  Bruno Haible  <bruno@clisp.org>
12328
12329         * modules/localename-tests: New file.
12330         * tests/test-localename.c: New file.
12331
12332         New module 'localename'.
12333         * lib/localename.h: New file.
12334         * lib/localename.c: New file, from GNU gettext.
12335         * m4/localename.m4: New file.
12336         * modules/localename: New file.
12337
12338 2007-06-07  Bruno Haible  <bruno@clisp.org>
12339
12340         Work around the lack of <wchar.h> on some builds of uClibc.
12341         * doc/headers/wchar.texi: Update.
12342         * lib/wchar_.h: Include <wchar.h> only if it exists.
12343         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12344         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12345         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12346         doesn't exist.
12347         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12348         * modules/mbfile (Depends-on): Add wchar.
12349         * modules/mbiter (Depends-on): Likewise.
12350         * modules/mbuiter (Depends-on): Likewise.
12351         Reported by Simon Josefsson.
12352
12353 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12354
12355         Work around problem reported by Steven M. Schweda in
12356         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12357         Tru64 5.1B with the Compaq compiler environment installed declares
12358         an 'isblank' function but does not define it in the C library.
12359         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12360         * lib/regex_internal.h (isblank): Likewise.
12361         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12362         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12363
12364 2007-06-05  Bruno Haible  <bruno@clisp.org>
12365
12366         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12367         ia64.
12368         * modules/printf-safe: New file.
12369         * modules/fprintf-posix (Depends-on): Add printf-safe.
12370         * modules/printf-posix (Depends-on): Likewise.
12371         * modules/snprintf-posix (Depends-on): Likewise.
12372         * modules/sprintf-posix (Depends-on): Likewise.
12373         * modules/vasnprintf-posix (Depends-on): Likewise.
12374         * modules/vasprintf-posix (Depends-on): Likewise.
12375         * modules/vfprintf-posix (Depends-on): Likewise.
12376         * modules/vprintf-posix (Depends-on): Likewise.
12377         * modules/vsnprintf-posix (Depends-on): Likewise.
12378         * modules/vsprintf-posix (Depends-on): Likewise.
12379         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12380         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12381         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12382         "no" on i386, x86_64, ia64.
12383         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12384         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12385         on i386, x86_64, ia64.
12386         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12387         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12388         on i386, x86_64, ia64.
12389         * tests/test-vasnprintf-posix.c: Include float.h.
12390         (LDBL80_WORDS): New macro.
12391         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12392         on i386, x86_64, ia64.
12393         * tests/test-vasprintf-posix.c: Include float.h.
12394         (LDBL80_WORDS): New macro.
12395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12396         on i386, x86_64, ia64.
12397         * tests/test-snprintf-posix.c: Include float.h.
12398         * tests/test-sprintf-posix.c: Likewise.
12399         * tests/test-vsnprintf-posix.c: Likewise.
12400         * tests/test-vsprintf-posix.c: Likewise.
12401
12402 2007-06-05  Bruno Haible  <bruno@clisp.org>
12403
12404         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12405         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12406         non-IEEE numbers on i386, x86_64, ia64.
12407         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12408         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12409         * tests/test-isnanl.h: Include float.h.
12410         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12411
12412 2007-06-05  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12415         also the %a / %A. Handle the %a / %A code before this extra handling.
12416
12417 2007-06-05  Bruno Haible  <bruno@clisp.org>
12418
12419         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12420         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12421
12422 2007-06-05  Bruno Haible  <bruno@clisp.org>
12423
12424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12425         typo in variable name.
12426
12427 2007-06-05  Eric Blake  <ebb9@byu.net>
12428
12429         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12430         Reported by Simon Josefsson.
12431
12432 2007-06-04  Bruno Haible  <bruno@clisp.org>
12433
12434         Avoid test failures on some PowerPC platforms.
12435         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12436         Define differently for PowerPC.
12437         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12438         Reported by Gary V. Vaughan <gary@gnu.org>.
12439
12440 2007-06-02  Bruno Haible  <bruno@clisp.org>
12441
12442         Fix test-stdint failure on FreeBSD/ia64.
12443         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12444         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12445         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12446         * doc/headers/stdint.texi: Update.
12447
12448 2007-06-01  Bruno Haible  <bruno@clisp.org>
12449
12450         * tests/test-binary-io.c (main): Pass a third argument to open().
12451         Reported by Gary V. Vaughan <gary@gnu.org>.
12452
12453 2007-06-01  Bruno Haible  <bruno@clisp.org>
12454
12455         * doc/functions/frexpl.texi: Update for mingw.
12456
12457 2007-06-01  Bruno Haible  <bruno@clisp.org>
12458
12459         * tests/test-lseek.c (main): Disable test of errno for invalid third
12460         argument.
12461         * doc/functions/lseek.texi: Update.
12462         Reported by Gary V. Vaughan <gary@gnu.org>.
12463
12464 2007-05-28  Bruno Haible  <bruno@clisp.org>
12465
12466         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12467
12468 2007-05-31  Eric Blake  <ebb9@byu.net>
12469
12470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12471         cross compiling.
12472
12473 2007-05-30  Eric Blake  <ebb9@byu.net>
12474         and Bruno Haible  <bruno@clisp.org>
12475
12476         Work around mingw test failures exposed by m4-1.4.9b.
12477         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12478         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12479         moment.
12480
12481 2007-05-30  Bruno Haible  <bruno@clisp.org>
12482
12483         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12484         assuming that they are closed. Needed on HP-UX 11.
12485
12486 2007-05-29  Bruno Haible  <bruno@clisp.org>
12487
12488         Fix a problem with #include_next.
12489         * lib/dirent_.h: Split the double-inclusion guard.
12490         * lib/fcntl_.h: Likewise.
12491         * lib/float_.h: Likewise.
12492         * lib/iconv_.h: Likewise.
12493         * lib/inttypes_.h: Likewise.
12494         * lib/locale_.h: Likewise.
12495         * lib/math_.h: Likewise.
12496         * lib/netinet_in_.h: Likewise.
12497         * lib/search_.h: Likewise.
12498         * lib/signal_.h: Likewise.
12499         * lib/stdint_.h: Likewise.
12500         * lib/stdio_.h: Likewise.
12501         * lib/stdlib_.h: Likewise.
12502         * lib/string_.h: Likewise.
12503         * lib/sys_select_.h: Likewise.
12504         * lib/sys_socket_.h: Likewise.
12505         * lib/sys_stat_.h: Likewise.
12506         * lib/sys_time_.h: Likewise.
12507         * lib/sysexits_.h: Likewise.
12508         * lib/time_.h: Likewise.
12509         * lib/unistd_.h: Likewise.
12510         * lib/wchar_.h: Likewise.
12511         * lib/wctype_.h: Likewise.
12512
12513 2007-05-29  Bruno Haible  <bruno@clisp.org>
12514
12515         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12516         for the moment.
12517
12518 2007-05-29  Bruno Haible  <bruno@clisp.org>
12519
12520         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12521         invocation.
12522         Reported by Eric Blake.
12523
12524 2007-05-29  Bruno Haible  <bruno@clisp.org>
12525
12526         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12527         compiling case.
12528
12529 2007-05-29  Eric Blake  <ebb9@byu.net>
12530             Bruno Haible  <bruno@clisp.org>
12531
12532         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12533         cross compiles.
12534
12535 2007-05-28  Eric Blake  <ebb9@byu.net>
12536
12537         * modules/closein-tests (test_closein_LDADD): Support test on
12538         cygwin with libtool.
12539
12540 2007-05-28  Bruno Haible  <bruno@clisp.org>
12541
12542         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12543         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12544         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12545         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12546         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12547         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12548         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12549         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12550         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12551
12552 2007-05-28  Eric Blake  <ebb9@byu.net>
12553
12554         Unconditionally include <config.h> in unit tests.
12555         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12556         * tests/test-allocsa.c, tests/test-arcfour.c,
12557         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12558         tests/test-array_list.c, tests/test-array_oset.c,
12559         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12560         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12561         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12562         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12563         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12564         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12565         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12566         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12567         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12568         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12569         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12570         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12571         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12572         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12573         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12574         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12575         test-md5.c, test-memmem.c, test-printf-posix.c,
12576         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12577         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12578         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12579         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12580         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12581         test-vasnprintf-posix2.c, test-vasnprintf.c,
12582         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12583         test-vfprintf-posix.c, test-vprintf-posix.c,
12584         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12585         test-xvasprintf.c: Likewise.
12586
12587 2007-05-28  Bruno Haible  <bruno@clisp.org>
12588
12589         * gnulib-tool (func_import): Remember the --with-tests command-line
12590         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12591         Reported by Eric Blake.
12592
12593 2007-05-28  Bruno Haible  <bruno@clisp.org>
12594
12595         * modules/ftell-tests: New file.
12596         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12597         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12598
12599         * lib/ftell.c: New file.
12600         * modules/ftell: New file.
12601         * m4/ftell.m4: New file.
12602         * doc/functions/ftell.texi: Update.
12603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12604         REPLACE_FTELL.
12605         * lib/stdio_.h (rpl_ftell): New declaration.
12606         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12607         REPLACE_FTELL.
12608
12609 2007-05-28  Eric Blake  <ebb9@byu.net>
12610
12611         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12612
12613 2007-05-28  Bruno Haible  <bruno@clisp.org>
12614
12615         * modules/fseek-tests: New file.
12616         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12617         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12618
12619         * lib/fseek.c: New file.
12620         * modules/fseek: New file.
12621         * m4/fseek.m4: New file.
12622         * doc/functions/fseek.texi: Update.
12623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12624         REPLACE_FSEEK.
12625         * lib/stdio_.h (rpl_fseek): New declaration.
12626         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12627         REPLACE_FSEEK.
12628
12629 2007-05-28  Bruno Haible  <bruno@clisp.org>
12630
12631         * lib/stdio_.h (fflush): More comments.
12632
12633 2007-05-28  Bruno Haible  <bruno@clisp.org>
12634
12635         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12636         runtime test.
12637
12638 2007-05-28  Eric Blake  <ebb9@byu.net>
12639
12640         Improve lseek module.
12641         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12642         * lib/unistd_.h (lseek): Scale back link warning message.
12643         * tests/test-lseek.c: Beef up test.
12644         * tests/test-lseek.sh: Exercise more facets of lseek.
12645         Reported by Bruno Haible.
12646
12647 2007-05-28  Bruno Haible  <bruno@clisp.org>
12648
12649         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12650         to define.
12651
12652 2007-05-27  Bruno Haible  <bruno@clisp.org>
12653
12654         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12655
12656 2007-05-27  Bruno Haible  <bruno@clisp.org>
12657
12658         * modules/openmp: New file.
12659         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12660         Noah Misch.
12661
12662 2007-05-26  Bruno Haible  <bruno@clisp.org>
12663
12664         * modules/chdir-long (Depends-on): Add fchdir.
12665         * modules/chdir-safer (Depends-on): Likewise.
12666         * modules/fts (Depends-on): Likewise.
12667         * modules/fts-lgpl (Depends-on): Likewise.
12668         * modules/openat (Depends-on): Likewise.
12669         * modules/savewd (Depends-on): Likewise.
12670
12671 2007-05-24  Eric Blake  <ebb9@byu.net>
12672
12673         Fix lseek on mingw.
12674         * modules/lseek: New module.
12675         * m4/lseek.m4: New file.
12676         * lib/lseek.c: New file.
12677         * modules/lseek-tests: New file.
12678         * tests/test-lseek.c: New file.
12679         * tests/test-lseek.sh: New file.
12680         * MODULES.html.sh: Document lseek module.
12681         * modules/fflush (Depends-on): Add lseek, fseeko.
12682         * modules/fseeko (Depends-on): Likewise.
12683         * modules/ftello (Depends-on): Likewise.
12684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12685         broken.
12686         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12687         broken.
12688         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12689         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12690         * lib/ftello.c (rpl_ftello): Likewise.
12691         * tests/test-fseeko.c (main): Test this.
12692         * tests/test-fseeko.sh: Likewise.
12693         * tests/test-ftello.c (main): Likewise.
12694         * tests/test-ftello.sh: Likewise.
12695         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12696         implies replacing fseek.
12697         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12698         HAVE_FTELLO.
12699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12700         * modules/unistd (Makefile.am): Likewise.
12701         * lib/unistd_.h (lseek): Declare a replacement.
12702         * doc/functions/lseek.texi (lseek): Document this fix.
12703         * doc/functions/fseek.texi (fseek): Likewise.
12704         * doc/functions/ftell.texi (ftell): Likewise.
12705
12706 2007-05-24  Bruno Haible  <bruno@clisp.org>
12707
12708         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12709         in the printed representation of a NaN.
12710         * tests/test-vasprintf-posix.c (test_function): Likewise.
12711         * tests/test-snprintf-posix.h (test_function): Likewise.
12712         * tests/test-sprintf-posix.h (test_function): Likewise.
12713         Reported by Eric Blake.
12714
12715 2007-05-23  Eric Blake  <ebb9@byu.net>
12716
12717         Fix fseeko/ftello on cygwin 1.5.24.
12718         * doc/functions/fseeko.texi (fseeko): Document the fix.
12719         * doc/functions/ftello.texi (ftello): Document the fix.
12720         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12721         * doc/functions/stdout.text (stdout): New file.
12722         * doc/functions/stderr.text (stderr): New file.
12723         * doc/gnulib.texi (Function Substitutes): Use new files.
12724         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12725         prior to 1.7.0.
12726         * tests/test-ftello.c (main): Likewise for ftello.
12727         * tests/test-fseeko.sh: New file.
12728         * tests/test-ftello.sh: New file.
12729         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12730         with seekable stdin.
12731         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12732         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12733         (gl_REPLACE_FSEEKO): New macro.
12734         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12735         * modules/fseeko (Files): Distribute fseeko.c.
12736         * modules/ftello (Files): Distribute ftello.c.
12737         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12738         mode.
12739         * lib/ftello.c (rpl_ftello): New file.
12740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12741         fseeko, ftello.
12742         (gl_STDIN_LARGE_OFFSET): New macro.
12743         * modules/stdio (Makefile.am): Perform the replacement.
12744         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12745
12746 2007-05-23  Bruno Haible  <bruno@clisp.org>
12747
12748         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12749         GNULIB_POSIXCHECK is defined.
12750
12751 2007-05-21  Bruno Haible  <bruno@clisp.org>
12752
12753         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12754         Check also the output for NaN arguments. When cross-compiling, guess
12755         no on IRIX.
12756         * lib/vasnprintf.c: Update comments.
12757         * tests/test-vasnprintf-posix.c (strisnan): New function.
12758         (test_function): Use it.
12759         * tests/test-vasprintf-posix.c (strisnan): New function.
12760         (test_function): Use it.
12761         * tests/test-snprintf-posix.h (strisnan): New function.
12762         (test_function): Use it.
12763         * tests/test-sprintf-posix.h (strisnan): New function.
12764         (test_function): Use it.
12765         Reported by Eric Blake.
12766
12767 2007-05-20  Bruno Haible  <bruno@clisp.org>
12768
12769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12770         numbers that fails on BeOS.
12771         * doc/functions/frexpl.texi: Update.
12772
12773 2007-05-20  Jim Meyering  <jim@meyering.net>
12774
12775         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12776         forced upon us by glibc-2.6.
12777
12778 2007-05-20  Bruno Haible  <bruno@clisp.org>
12779
12780         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12781         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12782         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12783         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12784         NEED_PRINTF_INFINITE.
12785         (is_infinitel): New function.
12786         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12788         gl_PREREQ_VASNPRINTF_INFINITE.
12789         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12791         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12792         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12793         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12794         gl_PREREQ_VASNPRINTF_INFINITE.
12795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12802         * doc/functions/fprintf.texi: Update.
12803         * doc/functions/printf.texi: Update.
12804         * doc/functions/snprintf.texi: Update.
12805         * doc/functions/sprintf.texi: Update.
12806         * doc/functions/vfprintf.texi: Update.
12807         * doc/functions/vprintf.texi: Update.
12808         * doc/functions/vsnprintf.texi: Update.
12809         * doc/functions/vsprintf.texi: Update.
12810
12811 2007-05-20  Bruno Haible  <bruno@clisp.org>
12812
12813         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12814         was not found in libc.
12815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12816
12817 2007-05-20  Bruno Haible  <bruno@clisp.org>
12818
12819         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12820         printed as "-nan" instead of "nan".
12821         * tests/test-vasprintf-posix.c (test_function): Likewise.
12822         * tests/test-snprintf-posix.h (test_function): Likewise.
12823         * tests/test-sprintf-posix.h (test_function): Likewise.
12824         Needed for HP-UX 11.
12825
12826 2007-05-20  Jim Meyering  <jim@meyering.net>
12827
12828         Fix buggy test for the fchownat-deref bug.
12829         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12830         symlink required for the run-test.  Without it, this test would
12831         always declare that fchownat doesn't work, and client code would
12832         unnecessarily use the replacement function with fixed libc.
12833         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12834         Reported by Greg Schafer.
12835
12836 2007-05-19  Bruno Haible  <bruno@clisp.org>
12837
12838         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12839         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12840         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12841         Needed for IRIX 6.5 and Solaris 2.5.1.
12842
12843 2007-05-19  Bruno Haible  <bruno@clisp.org>
12844
12845         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12846         (test_function): Skip tests involving -0.0 on platforms where
12847         -0.0 = 0.0.
12848         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12849         (test_function): Skip tests involving -0.0 on platforms where
12850         -0.0 = 0.0.
12851         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12852         (test_function): Skip tests involving -0.0 on platforms where
12853         -0.0 = 0.0.
12854         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12855         (test_function): Skip tests involving -0.0 on platforms where
12856         -0.0 = 0.0.
12857         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12858         tests.
12859         * tests/test-printf-posix.h (test_function): Likewise.
12860         * tests/test-printf-posix.output: Remove all -0.0 related results.
12861         Needed for IRIX 6.5.
12862
12863 2007-05-19  Bruno Haible  <bruno@clisp.org>
12864
12865         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12866         printed as "nan0x7fffffff" instead of "nan".
12867         * tests/test-vasprintf-posix.c (test_function): Likewise.
12868         * tests/test-snprintf-posix.h (test_function): Likewise.
12869         * tests/test-sprintf-posix.h (test_function): Likewise.
12870         * tests/test-fprintf-posix.h (NaN): Remove macro.
12871         (test_function): Remove all NaN related tests.
12872         * tests/test-printf-posix.h (NaN): Remove macro.
12873         (test_function): Remove all NaN related tests.
12874         * tests/test-printf-posix.output: Remove all NaN related results.
12875         Needed for IRIX 6.5.
12876
12877 2007-05-19  Bruno Haible  <bruno@clisp.org>
12878
12879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12881
12882 2007-05-19  Bruno Haible  <bruno@clisp.org>
12883
12884         * lib/float_.h: New file.
12885         * m4/float_h.m4: New file.
12886         * modules/float: New file.
12887         * modules/isnanl (Dependencies): Add float.
12888         * modules/isnanl-nolibm (Dependencies): Likewise.
12889         * modules/mathl (Dependencies): Likewise.
12890         * modules/printf-frexpl (Dependencies): Likewise.
12891         * modules/signbit (Dependencies): Likewise.
12892         * modules/vasnprintf (Dependencies): Likewise.
12893         * doc/headers/float.texi: Update.
12894
12895 2007-05-19  Jim Meyering  <jim@meyering.net>
12896
12897         * lib/utimens.c (gl_futimens): Rename from futimens,
12898         now that glibc-2.6 declares futimens.
12899         * lib/utimens.h: Likewise.
12900
12901 2007-05-19  Bruno Haible  <bruno@clisp.org>
12902
12903         Avoid test failures on mingw.
12904         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12905         * tests/test-printf-posix.sh: Likewise.
12906         * tests/test-vfprintf-posix.sh: Likewise.
12907         * tests/test-vprintf-posix.sh: Likewise.
12908
12909 2007-05-19  Bruno Haible  <bruno@clisp.org>
12910
12911         Fix *printf result for NaN, Inf, -0.0 on mingw.
12912         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12913         * lib/vasnprintf.c: Include math.h and isnan.h.
12914         (is_infinite_or_zero): New function.
12915         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12916         values in the %f, %F, %e, %E, %g, %G directives.
12917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12919         gl_PRINTF_INFINITE and test its result. Invoke
12920         gl_PREREQ_VASNPRINTF_INFINITE.
12921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12928         * doc/functions/fprintf.texi: Update.
12929         * doc/functions/printf.texi: Update.
12930         * doc/functions/snprintf.texi: Update.
12931         * doc/functions/sprintf.texi: Update.
12932         * doc/functions/vfprintf.texi: Update.
12933         * doc/functions/vprintf.texi: Update.
12934         * doc/functions/vsnprintf.texi: Update.
12935         * doc/functions/vsprintf.texi: Update.
12936
12937 2007-05-19  Bruno Haible  <bruno@clisp.org>
12938
12939         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12940         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12941         Instead of multiplying with 10^k, set extra_zeroes to k.
12942         (scale10_round_long_double): Remove function.
12943
12944 2007-05-18  Bruno Haible  <bruno@clisp.org>
12945
12946         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12947         introduced on 2007-05-06.
12948
12949 2007-05-18  Bruno Haible  <bruno@clisp.org>
12950
12951         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12952         %g directives.
12953         * tests/test-vasprintf-posix.c (test_function): Likewise.
12954         * tests/test-snprintf-posix.h (test_function): Likewise.
12955         * tests/test-sprintf-posix.h (test_function): Likewise.
12956
12957 2007-05-18  Bruno Haible  <bruno@clisp.org>
12958
12959         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12960         (strmatch): New function.
12961         (test_function): Test the %f directive on numbers of various exponents.
12962         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12963         (strmatch): New function.
12964         (test_function): Test the %f directive on numbers of various exponents.
12965         * tests/test-snprintf-posix.h (strmatch): New function.
12966         (test_function): Test the %f directive on numbers of various exponents.
12967         * tests/test-sprintf-posix.h (strmatch): New function.
12968         (test_function): Test the %f directive on numbers of various exponents.
12969         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12970         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12971         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12972         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12973
12974 2007-05-18  Bruno Haible  <bruno@clisp.org>
12975
12976         Add support for 'long double' number output.
12977         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12978         * lib/vasnprintf.c: Include math.h and float+.h.
12979         (mp_limb_t): New type.
12980         (GMP_LIMB_BITS): New macro.
12981         (mp_twolimb_t): New type.
12982         (GMP_TWOLIMB_BITS): New macro.
12983         (mpn_t): New type.
12984         (multiply, divide, convert_to_decimal, decode_long_double,
12985         scale10_round_long_double, scale10_round_decimal_long_double,
12986         floorlog10l): New functions.
12987         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12988         for the %f, %F, %e, %E, %g, %G directives.
12989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12991         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12992         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13000         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
13001         * modules/snprintf-posix (Depends-on): Likewise.
13002         * modules/sprintf-posix (Depends-on): Likewise.
13003         * modules/vasnprintf-posix (Depends-on): Likewise.
13004         * modules/vasprintf-posix (Depends-on): Likewise.
13005         * modules/vfprintf-posix (Depends-on): Likewise.
13006         * modules/vsnprintf-posix (Depends-on): Likewise.
13007         * modules/vsprintf-posix (Depends-on): Likewise.
13008         * modules/vasnprintf (Files): Add lib/float+.h.
13009         * doc/functions/fprintf.texi: Update.
13010         * doc/functions/printf.texi: Update.
13011         * doc/functions/snprintf.texi: Update.
13012         * doc/functions/sprintf.texi: Update.
13013         * doc/functions/vfprintf.texi: Update.
13014         * doc/functions/vprintf.texi: Update.
13015         * doc/functions/vsnprintf.texi: Update.
13016         * doc/functions/vsprintf.texi: Update.
13017
13018 2007-05-18  Bruno Haible  <bruno@clisp.org>
13019
13020         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
13021
13022 2007-05-18  Bruno Haible  <bruno@clisp.org>
13023
13024         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
13025         for printing 64-bit integers. Needed for mingw.
13026
13027 2007-05-18  Bruno Haible  <bruno@clisp.org>
13028
13029         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13030         gl_FUNC_FREXPL_WORKS.
13031         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
13032
13033 2007-05-18  Bruno Haible  <bruno@clisp.org>
13034
13035         * modules/frexpl-nolibm-tests: New file.
13036
13037         * modules/frexpl-nolibm: New file.
13038         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
13039
13040 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13041
13042         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
13043         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13044         GCC 4.2, which otherwise issues a lot of warnings.
13045         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
13046         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
13047         Likewise.
13048         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
13049         * modules/iconv_open (iconv.h): Likewise.
13050         * modules/locale (locale.h): Likewise.
13051         * modules/netinet_in (netinet/in.h): Likewise.
13052         * modules/sys_select (sys_select.h): Likewise.
13053         * modules/sys_socket (sys/socket.h): Likewise.
13054         * modules/sys_stat (sys/stat.h): Likewise.
13055         * modules/sysexits (sysexits.h): Likewise.
13056         * modules/unistd (unistd.h): Likewise.
13057
13058 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13059
13060         * modules/closein-tests (Makefile.am): Distribute
13061         `test-closein.sh'.
13062
13063 2007-05-17  Bruno Haible  <bruno@clisp.org>
13064
13065         * tests/test-printf-posix.output: Renamed from
13066         tests/test-fprintf-posix.out.
13067         * modules/fprintf-posix-tests: Update.
13068         * modules/printf-posix-tests: Update.
13069         * modules/vfprintf-posix-tests: Update.
13070         * modules/vprintf-posix-tests: Update.
13071         * tests/test-fprintf-posix.sh: Update.
13072         * tests/test-printf-posix.sh: Update.
13073         * tests/test-vfprintf-posix.sh: Update.
13074         * tests/test-vprintf-posix.sh: Update.
13075         Reported by Ralf Wildenhues.
13076
13077 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13078
13079         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
13080         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
13081         GCC 4.2, which otherwise issues a lot of warnings.
13082         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
13083         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
13084         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
13085         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
13086         it should no longer be needed.
13087         * lib/string_.h: Likewise.
13088         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
13089         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
13090         * modules/inttypes (inttypes.h): Likewise.
13091         * modules/math (math.h): Likewise.
13092         * modules/search (search.h): Likewise.
13093         * modules/signal (signal.h): Likewise.
13094         * modules/stdint (stdint.h): Likewise.
13095         * modules/stdio (stdio.h): Likewise.
13096         * modules/stdlib (stdlib.h): Likewise.
13097         * modules/string (string.h): Likewise.
13098         * modules/sys_time (sys/time.h): Likewise.
13099         * modules/time (time.h): Likewise.
13100         * modules/wchar (wchar.h): Likewise.
13101         * modules/wctype (wtype.h): Likewise.
13102
13103 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13104
13105         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
13106
13107 2007-05-13  Bruno Haible  <bruno@clisp.org>
13108
13109         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
13110         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13111         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
13112         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13113         (gl_PREREQ_STRTOK_R): Don't require it here.
13114
13115 2007-05-13  Bruno Haible  <bruno@clisp.org>
13116
13117         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
13118         when used in C++ mode.
13119
13120 2007-05-12  Bruno Haible  <bruno@clisp.org>
13121
13122         * lib/linebuffer.h: Tweak doc.
13123         * lib/linebuffer.c: Likewise.
13124
13125 2007-05-12  James Youngman  <jay@gnu.org>
13126
13127         * lib/linebuffer.c (readlinebuffer_delim): New function,
13128         like readlinebuffer, but use a caller-specified delimiter.
13129         (readlinebuffer): Just call readlinebuffer_delim with '\n'
13130         as the delimiter.
13131         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
13132
13133 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13134
13135         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
13136         * modules/openat (Files): Remove openat-die.c.
13137         (Depends-on): Add openat-die.
13138         * modules/openat-die: New module.
13139
13140 2007-05-06  Bruno Haible  <bruno@clisp.org>
13141
13142         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
13143         Update with info about Cygwin.
13144         * doc/functions/fprintf.texi: Update.
13145         * doc/functions/printf.texi: Update.
13146         * doc/functions/snprintf.texi: Update.
13147         * doc/functions/sprintf.texi: Update.
13148         * doc/functions/vfprintf.texi: Update.
13149         * doc/functions/vprintf.texi: Update.
13150         * doc/functions/vsnprintf.texi: Update.
13151         * doc/functions/vsprintf.texi: Update.
13152         Reported by Eric Blake.
13153
13154 2007-05-06  Bruno Haible  <bruno@clisp.org>
13155
13156         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13157         padding ourselves for the floating-point directives.
13158         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13161         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13162         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13170         * tests/test-snprintf-posix.h (test_function): Also check the width
13171         and some flags in the %f directive.
13172         * tests/test-sprintf-posix.h (test_function): Likewise.
13173         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13174         * tests/test-vasprintf-posix.c (test_function): Likewise.
13175         * doc/functions/fprintf.texi: Update.
13176         * doc/functions/printf.texi: Update.
13177         * doc/functions/snprintf.texi: Update.
13178         * doc/functions/sprintf.texi: Update.
13179         * doc/functions/vfprintf.texi: Update.
13180         * doc/functions/vprintf.texi: Update.
13181         * doc/functions/vsnprintf.texi: Update.
13182         * doc/functions/vsprintf.texi: Update.
13183
13184 2007-05-06  Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13187         pass the ' flag character to sprintf or snprintf.
13188         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13190         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13191         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13192         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13200         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13201         flag.
13202         * tests/test-sprintf-posix.h (test_function): Likewise.
13203         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13204         * tests/test-vasprintf-posix.c (test_function): Likewise.
13205         * doc/functions/fprintf.texi: Update.
13206         * doc/functions/printf.texi: Update.
13207         * doc/functions/snprintf.texi: Update.
13208         * doc/functions/sprintf.texi: Update.
13209         * doc/functions/vfprintf.texi: Update.
13210         * doc/functions/vprintf.texi: Update.
13211         * doc/functions/vsnprintf.texi: Update.
13212         * doc/functions/vsprintf.texi: Update.
13213
13214 2007-05-01  Bruno Haible  <bruno@clisp.org>
13215
13216         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13217
13218 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13219
13220         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13221         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13222
13223 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13224
13225         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13226         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13228
13229 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13230
13231         * lib/argp-help.c (struct hol_entry): New member `ord'.
13232         (HOL_ENTRY_PTRCMP): Use ord for comparison
13233         (hol_sort): Initialize ord.
13234
13235 2007-05-01  Bruno Haible  <bruno@clisp.org>
13236
13237         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13238         Reported by Eric Blake.
13239         * doc/gnulib.texi (Function Substitutes): Update.
13240
13241 2007-05-01  Bruno Haible  <bruno@clisp.org>
13242
13243         * doc/functions.texi: Remove file, now redundant through
13244         doc/functions/*.texi.
13245
13246 2007-05-01  Bruno Haible  <bruno@clisp.org>
13247
13248         * modules/argp (Depends-on): Add sleep.
13249
13250 2007-05-01  Bruno Haible  <bruno@clisp.org>
13251
13252         * modules/sleep-tests: New file.
13253         * tests/test-sleep.c: New file.
13254
13255         * modules/sleep: New file.
13256         * lib/sleep.c: New file.
13257         * m4/sleep.m4: New file.
13258         * lib/unistd_.h (sleep): New declaration.
13259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13260         HAVE_SLEEP.
13261         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13262         * doc/functions/sleep.texi: Document the sleep module.
13263
13264 2007-05-01  Bruno Haible  <bruno@clisp.org>
13265
13266         * lib/sigprocmask.h: Remove file.
13267         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13268         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13270         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13271         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13272         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13273         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13274         HAVE_SIGSET_T as a shell variable.
13275         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13276         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13277         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13278         (Depends-on): Add signal. Remove verify.
13279         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13280         (Include): Mention <signal.h> instead of sigprocmask.h.
13281         * NEWS: Mention the change.
13282         * lib/fatal-signal.c: Don't include sigprocmask.h.
13283
13284 2007-05-01  Bruno Haible  <bruno@clisp.org>
13285
13286         * modules/signal: New file.
13287         * lib/signal_.h: New file.
13288         * m4/signal_h.m4: New file.
13289
13290 2007-05-01  Bruno Haible  <bruno@clisp.org>
13291
13292         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13293         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13294         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13295         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13296
13297 2007-05-01  Bruno Haible  <bruno@clisp.org>
13298
13299         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13300         configure time.
13301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13302         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13303         * modules/sys_stat (Makefile.am): Substitute their values into
13304         sys/stat.h.
13305
13306 2007-05-01  Bruno Haible  <bruno@clisp.org>
13307
13308         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13309         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13310         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13311
13312 2007-05-01  Bruno Haible  <bruno@clisp.org>
13313
13314         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13315         'assert' module here.
13316
13317 2007-05-01  Bruno Haible  <bruno@clisp.org>
13318
13319         * doc/functions/*.texi: New files.
13320         * doc/functions/google-ranking.txt: New file.
13321         * doc/gnulib.texi (Function Substitutes): New chapter.
13322         (ctime, inet_ntoa): Remove sections.
13323         * doc/ctime.texi: Remove file.
13324         * doc/inet_ntoa.texi: Remove file.
13325         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13326         dependencies.
13327         (%.info): New rule, specifying a --reference-limit.
13328
13329 2007-05-01  Bruno Haible  <bruno@clisp.org>
13330
13331         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13332
13333 2007-05-01  Bruno Haible  <bruno@clisp.org>
13334
13335         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13336         the portability of 'mkdir' to mingw systems.
13337
13338 2007-05-01  Bruno Haible  <bruno@clisp.org>
13339
13340         * doc/headers/google-ranking.txt: New file.
13341
13342 2007-04-30  Eric Blake  <ebb9@byu.net>
13343
13344         Prefer fseeko to fseek.
13345         * modules/getpass (Depends-on): Add fseeko.
13346         * lib/getpass.c (getpass): Use fseeko, not fseek.
13347
13348 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13349
13350         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13351         assumes the sorting is stable, while most qsort implementations
13352         are not.  Use argument addresses to ensure they never compare as
13353         equal.
13354
13355         * tests/test-argp-2.sh (usage-indent test): Fix output
13356         (func_compare): Restore diff options
13357         * tests/test-argp.c: Restore #include "progname.h"
13358
13359 2007-04-29  Bruno Haible  <bruno@clisp.org>
13360
13361         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13363         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13365         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13366         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13367         (TESTS, check_PROGRAMS): Add test-snprintf.
13368         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13369         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13370         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13371         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13372         assertions that fail on HP-UX, OSF/1, or IRIX.
13373         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13374
13375 2007-04-29  Bruno Haible  <bruno@clisp.org>
13376
13377         * MODULES.html.sh (posix_functions): Remove 'contents'.
13378
13379 2007-04-29  Karl Berry  <karl@gnu.org>
13380
13381         * config/srclist.txt (gendocs_template_min): new entry.
13382
13383 2007-04-29  Bruno Haible  <bruno@clisp.org>
13384
13385         Work around fpurge bug on BSD systems.
13386         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13388         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13389         fpurge to rpl_fpurge if the system already has this function.
13390         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13391         the case where the system already has this function. Correct invariants
13392         on BSD systems.
13393         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13394         BSD systems.
13395
13396 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13397
13398         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13399         proposed by Sven Verdoolaege.
13400
13401         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13402         options.
13403         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13404         (usage and help tests): Update
13405
13406 2007-04-29  Bruno Haible  <bruno@clisp.org>
13407
13408         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13409         Print more information in case of failure. Disable a test on BeOS.
13410
13411 2007-04-29  Bruno Haible  <bruno@clisp.org>
13412
13413         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13414         This helps debugging on systems on which no gdb is available.
13415
13416 2007-04-29  Bruno Haible  <bruno@clisp.org>
13417
13418         * lib/freading.h: Improve comments.
13419         * lib/fwriting.h: Likewise.
13420         * tests/test-freading.c (main): Don't check freading immediately after
13421         repositioning. Needed for glibc.
13422
13423 2007-04-29  Bruno Haible  <bruno@clisp.org>
13424
13425         * lib/freading.c (freading): Trivial simplification.
13426
13427 2007-04-28  Bruno Haible  <bruno@clisp.org>
13428
13429         * tests/test-fwriting.c (main): Also test the interaction between
13430         fflush and fwriting.
13431         * modules/fwriting-tests (Depends-on): Add fflush.
13432
13433         * tests/test-freading.c (main): Also test the interaction between
13434         fflush and freading.
13435         * modules/freading-tests (Depends-on): Add fflush.
13436
13437 2007-04-28  Bruno Haible  <bruno@clisp.org>
13438
13439         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13440         fseeko and ftello.
13441         Suggested by Eric Blake.
13442
13443 2007-04-28  Jim Meyering  <jim@meyering.net>
13444
13445         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13446         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13447         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13448
13449 2007-04-27  Eric Blake  <ebb9@byu.net>
13450
13451         * doc/headers/assert.texi (assert.h): Document assert module use.
13452
13453 2007-04-27  Bruno Haible  <bruno@clisp.org>
13454
13455         * doc/headers/*.texi: New files.
13456         * doc/gnulib.texi (Header File Substitutes): New chapter.
13457         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13458         dependencies.
13459         (standards.info ,standards.html, standards.dvi): Update dependencies.
13460         (mostlyclean, clean): New targets.
13461
13462 2007-04-27  Bruno Haible  <bruno@clisp.org>
13463
13464         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13465         * modules/sysexits (Files, Makefile.am): Update.
13466
13467         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13468         * modules/sys_socket (Files, Makefile.am): Update.
13469
13470         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13471         * modules/sys_stat (Files, Makefile.am): Update.
13472
13473 2007-04-27  Eric Blake  <ebb9@byu.net>
13474
13475         * lib/freading.h: Improve comments.
13476         * lib/fwriting.h: Likewise.
13477         * lib/fflush.c: Likewise.
13478
13479         Fix closein for mingw.
13480         * modules/closein-tests: Add tests for closein.
13481         * tests/test-closein.c: New file.
13482         * tests/test-closein.sh: Likewise.
13483         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13484         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13485
13486 2007-04-27  Bruno Haible  <bruno@clisp.org>
13487
13488         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13489         version is < 6.
13490         * lib/math_.h [__DECC]: Likewise.
13491         * lib/stdio_.h [__DECC]: Likewise.
13492         * lib/stdlib_.h [__DECC]: Likewise.
13493         * lib/string_.h [__DECC]: Likewise.
13494         * lib/time_.h [__DECC]: Likewise.
13495         * lib/wchar_.h [__DECC]: Likewise.
13496         * lib/wctype_.h [__DECC]: Likewise.
13497
13498 2007-04-27  Bruno Haible  <bruno@clisp.org>
13499
13500         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13501
13502 2007-04-27  Bruno Haible  <bruno@clisp.org>
13503
13504         * lib/fflush.c: Add comments.
13505         * modules/fpurge-tests (Depends-on): Add fflush.
13506         * modules/freadable-tests (Depends-on): Likewise.
13507         * modules/fwritable-tests (Depends-on): Likewise.
13508
13509 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13510
13511         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13512         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13513         Report by Bruno Haible <bruno@clisp.org>.
13514
13515 2007-04-26  Eric Blake  <ebb9@byu.net>
13516
13517         Fix fflush on mingw.
13518         * modules/fflush (Depends-on): Add freading.
13519         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13520         but unread data.
13521
13522 2007-04-26  Eric Blake  <ebb9@byu.net>
13523         and Bruno Haible  <bruno@clisp.org>
13524
13525         Implement freading and fwriting.
13526         * lib/freading.c: New file.
13527         * lib/freading.h: Likewise.
13528         * m4/freading.m4: Likewise.
13529         * modules/freading: Likewise.
13530         * modules/freading-tests: Likewise.
13531         * tests/test-freading.c: Likewise.
13532         * lib/fwriting.c: New file.
13533         * lib/fwriting.h: Likewise.
13534         * m4/fwriting.m4: Likewise.
13535         * modules/fwriting: Likewise.
13536         * modules/fwriting-tests: Likewise.
13537         * tests/test-fwriting.c: Likewise.
13538         * MODULES.html.sh (File stream based Input/Output): Mention them.
13539
13540 2007-04-26  Bruno Haible  <bruno@clisp.org>
13541
13542         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13543         'long' when we assume it.
13544         Suggested by Eric Blake.
13545
13546 2007-04-26  Bruno Haible  <bruno@clisp.org>
13547
13548         Ensure fseeko, ftello are declared on glibc systems.
13549         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13550         * modules/fseeko (configure.ac-early): Likewise.
13551         * modules/ftello (configure.ac-early): Likewise.
13552         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13553         AC_FUNC_FSEEKO for this.
13554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13555         (gl_CHECK_FSEEKO): Remove macro.
13556
13557 2007-04-26  Bruno Haible  <bruno@clisp.org>
13558
13559         * tests/test-fflush.c (main): Also check the ftell result after
13560         fflush and fseek/fseeko.
13561         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13562         file descriptor position cache in the stream.
13563         * lib/fseeko.c (rpl_fseeko): Likewise.
13564
13565 2007-04-26  Bruno Haible  <bruno@clisp.org>
13566
13567         * modules/fflush-tests (Depends-on): Add fseeko.
13568
13569 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13570             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13571
13572         * lib/argz_.h: ensure error_t definition is obtained in same
13573         mechanism system argz.h would have.
13574         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13575         argz facilities are known bad.  Err on the side of caution if
13576         cross-compiling.
13577
13578 2007-04-25  Eric Blake  <ebb9@byu.net>
13579
13580         * lib/fpurge.c (includes): Use stdlib.h for free.
13581         * tests/test-fflush.c (main): Also test fflush-fseeko.
13582
13583 2007-04-25  Bruno Haible  <bruno@clisp.org>
13584
13585         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13586         * lib/fseeko.c: New file.
13587         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13588         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13589         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13590         gl_FUNC_FSEEKO.
13591         (gl_FUNC_FSEEKO): Invoke it.
13592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13593         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13594         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13595
13596 2007-04-25  Bruno Haible  <bruno@clisp.org>
13597
13598         * modules/fflush (Depends-on): Add ftello.
13599
13600 2007-04-25  Bruno Haible  <bruno@clisp.org>
13601
13602         * modules/ftello-tests: New file.
13603         * tests/test-ftello.c: New file.
13604
13605         * modules/ftello: New file.
13606         * m4/ftello.m4: New file.
13607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13608         HAVE_FTELLO.
13609         * lib/stdio_.h (ftello): New declaration.
13610         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13611         HAVE_FTELLO.
13612
13613 2007-04-25  Bruno Haible  <bruno@clisp.org>
13614
13615         * modules/fseeko-tests: New file.
13616         * tests/test-fseeko.c: New file.
13617
13618         * modules/fseeko: New file.
13619         * m4/fseeko.m4: New file.
13620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13621         HAVE_FSEEKO.
13622         * lib/stdio_.h (fseeko): New declaration.
13623         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13624         HAVE_FSEEKO.
13625
13626 2007-04-25  Bruno Haible  <bruno@clisp.org>
13627
13628         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13629
13630 2007-04-25  Bruno Haible  <bruno@clisp.org>
13631
13632         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13633         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13634         * tests/test-unistd.c: Likewise.
13635         * tests/test-fcntl.c: Likewise.
13636
13637 2007-04-23  Eric Blake  <ebb9@byu.net>
13638
13639         * lib/fflush.c: Fix missing include.
13640         Reported by Bruno Haible.
13641
13642 2007-04-23  Bruno Haible  <bruno@clisp.org>
13643
13644         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13645         Reported by Eric Blake.
13646
13647 2007-04-23  Bruno Haible  <bruno@clisp.org>
13648
13649         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13650
13651 2007-04-23  Bruno Haible  <bruno@clisp.org>
13652
13653         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13654
13655 2007-04-23  Bruno Haible  <bruno@clisp.org>
13656
13657         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13658         Needed on HP-UX 11.
13659
13660 2007-04-16  Eric Blake  <ebb9@byu.net>
13661
13662         Make fflush rely on fpurge.
13663         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13664         open coding all variants.
13665         * modules/fflush (Depends-on): Add fpurge and unistd.
13666         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13667         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13668
13669         Fix --with-tests compilation on cygwin.
13670         * modules/argmatch-tests (Makefile.am): List gnulib library first
13671         in LDADD.
13672         * modules/argp-tests (Makefile.am): Likewise.
13673         * modules/array-list-tests (Makefile.am): Likewise.
13674         * modules/array-oset-tests (Makefile.am): Likewise.
13675         * modules/avltree-list-tests (Makefile.am): Likewise.
13676         * modules/avltree-oset-tests (Makefile.am): Likewise.
13677         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13678         * modules/carray-list-tests (Makefile.am): Likewise.
13679         * modules/dirname-tests (Makefile.am): Likewise.
13680         * modules/frexp-tests (Makefile.am): Likewise.
13681         * modules/isnanl-tests (Makefile.am): Likewise.
13682         * modules/linked-list-tests (Makefile.am): Likewise.
13683         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13684         * modules/lock-tests (Makefile.am): Likewise.
13685         * modules/rbtree-list-tests (Makefile.am): Likewise.
13686         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13687         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13688         * modules/tls-tests (Makefile.am): Likewise.
13689         * modules/tsearch-tests (Makefile.am): Likewise.
13690         * modules/xvasprintf-tests (Makefile.am): Likewise.
13691
13692         Fix fpurge for cygwin.
13693         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13694         value.
13695         * modules/fpurge-tests (Depends-on): Clean up trash.
13696
13697 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13698
13699         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13700
13701         * m4/autobuild.m4: Re-indent.
13702
13703 2007-04-13  Bruno Haible  <bruno@clisp.org>
13704
13705         * modules/fpurge-tests: New file.
13706         * tests/test-fpurge.c: New file.
13707
13708         * modules/fpurge: New file.
13709         * lib/fpurge.h: New file.
13710         * lib/fpurge.c: New file.
13711         * m4/fpurge.m4: New file.
13712
13713 2007-04-13  Bruno Haible  <bruno@clisp.org>
13714
13715         * modules/fbufmode-tests: New file.
13716         * tests/test-fbufmode.c: New file.
13717
13718         * modules/fbufmode: New file.
13719         * lib/fbufmode.h: New file.
13720         * lib/fbufmode.c: New file.
13721         * m4/fbufmode.m4: New file.
13722
13723 2007-04-13  Bruno Haible  <bruno@clisp.org>
13724
13725         * modules/fwritable-tests: New file.
13726         * tests/test-fwritable.c: New file.
13727
13728         * modules/fwritable: New file.
13729         * lib/fwritable.h: New file.
13730         * lib/fwritable.c: New file.
13731         * m4/fwritable.m4: New file.
13732
13733 2007-04-13  Bruno Haible  <bruno@clisp.org>
13734
13735         * modules/freadable-tests: New file.
13736         * tests/test-freadable.c: New file.
13737
13738         * modules/freadable: New file.
13739         * lib/freadable.h: New file.
13740         * lib/freadable.c: New file.
13741         * m4/freadable.m4: New file.
13742
13743 2007-04-13  Bruno Haible  <bruno@clisp.org>
13744
13745         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13746         MOSTLYCLEANFILES.
13747
13748 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13749
13750         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13751         gzip bootstrap.conf to avoid dragging in i18n machinery.
13752         (gnulib_tool_option): Use it.
13753
13754 2007-04-13  Bruno Haible  <bruno@clisp.org>
13755
13756         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13757         %F directives.
13758         * tests/test-vasprintf-posix.c (test_function): Likewise.
13759         * tests/test-snprintf-posix.h (test_function): Likewise.
13760         * tests/test-sprintf-posix.h (test_function): Likewise.
13761         * tests/test-fprintf-posix.h (test_function): Likewise.
13762         * tests/test-printf-posix.h (test_function): Likewise.
13763         * tests/test-fprintf-posix.out: Likewise.
13764
13765 2007-04-13  Bruno Haible  <bruno@clisp.org>
13766
13767         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13768         * modules/tls-tests (configure.ac): Likewise.
13769         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13770
13771 2007-04-13  Bruno Haible  <bruno@clisp.org>
13772
13773         * lib/tls.c (glthread_tls_get): Fix return type.
13774         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13775
13776 2007-04-12  Eric Blake  <ebb9@byu.net>
13777
13778         * modules/gettime (Depends-on): Remove gettime.
13779         Reported by Dmitry V. Levin.
13780
13781 2007-04-12  Bruno Haible  <bruno@clisp.org>
13782
13783         * modules/fflush (Include): Mention <stdio.h>.
13784         * modules/strtoimax (Include): Mention <inttypes.h>.
13785         * modules/strtoumax (Include): Likewise.
13786
13787 2007-04-12  Eric Blake  <ebb9@byu.net>
13788
13789         * .cvsignore: New file.
13790         * .gitignore: Likewise.
13791
13792 2007-04-12  Bruno Haible  <bruno@clisp.org>
13793
13794         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13795         not before, since $(LDADD) often contains libgnu.a.
13796         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13797         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13798         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13799         Needed on Cygwin.
13800
13801 2007-04-12  Eric Blake  <ebb9@byu.net>
13802
13803         Work around glibc's failure to flush stdin on fclose.
13804         * lib/closein.c (close_stdin): Flush stdin before closing.
13805
13806         Work around glibc's failure to reset seekable stdin on exit.
13807         * modules/closein: New module.
13808         * lib/closein.c: New file.
13809         * lib/closein.h: Likewise.
13810         * m4/closein.m4: Likewise.
13811         * MODULES.html.sh (File stream based Input/Output): Document it.
13812
13813 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13814
13815         * gnulib-tool: Rename generated 'autobuild' script to
13816         'do-autobuild' in --create-megatestdir output.
13817
13818         * doc/gnulib.texi (Build robot for gnulib): Fix.
13819
13820 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13821
13822         * modules/sysexits (Depends-on): Add absolute-header.
13823
13824 2007-04-12  Eric Blake  <ebb9@byu.net>
13825
13826         No need to preserve errno on success.
13827         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13828         Reported by Bruno Haible.
13829
13830 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13831
13832         * MODULES.html.sh (Support for maintaining and releasing
13833         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13834
13835 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13836
13837         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13838
13839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13840
13841         * modules/autobuild: New module.
13842
13843         * m4/autobuild.m4: New file.
13844
13845 2007-04-11  Bruno Haible  <bruno@clisp.org>
13846
13847         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13848         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13852         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13853         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13855         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13856         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13858         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13859         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13875         Reported by Eric Blake.
13876
13877 2007-04-11  Bruno Haible  <bruno@clisp.org>
13878
13879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13880
13881 2007-04-10  Bruno Haible  <bruno@clisp.org>
13882
13883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13884         for NaN and Infinity. Needed on FreeBSD 6.1.
13885         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13886         regarding results for "%010a" of Infinity and NaN.
13887         * tests/test-vasprintf-posix.c (test_function): Likewise.
13888         * tests/test-snprintf-posix.h (test_function): Likewise.
13889         * tests/test-sprintf-posix.h (test_function): Likewise.
13890         * tests/test-fprintf-posix.h (test_function): Likewise.
13891         * tests/test-printf-posix.h (test_function): Likewise.
13892         * tests/test-fprintf-posix.out: Likewise.
13893
13894 2007-04-10  Bruno Haible  <bruno@clisp.org>
13895
13896         * modules/locale-tests: New file.
13897         * tests/test-locale.c: New file.
13898
13899         * modules/locale: New file.
13900         * lib/locale_.h: New file.
13901         * m4/locale_h.m4: New file.
13902
13903 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13904             Bruno Haible  <bruno@clisp.org>
13905
13906         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13907         be determined, test for availability of the copysignf, copysign,
13908         copysignl functions.
13909         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13910         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13911         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13912
13913 2007-04-09  Eric Blake  <ebb9@byu.net>
13914
13915         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13916         * modules/stdio (Makefile.am): Support fflush.
13917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13918         * modules/fflush: New file.
13919         * lib/fflush.c: Likewise.
13920         * m4/fflush.m4: Likewise.
13921         * modules/fflush-tests: New test.
13922         * tests/test-fflush.c: Likewise.
13923         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13924
13925 2007-04-06  Bruno Haible  <bruno@clisp.org>
13926
13927         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13928         (VASNPRINTF): Use signbit for faster determination whether to print a
13929         minus sign.
13930         * modules/vasnprintf (Files): Remove lib/float+.h.
13931         * modules/fprintf-posix (Depends-on): Add signbit.
13932         * modules/snprintf-posix (Depends-on): Likewise.
13933         * modules/sprintf-posix (Depends-on): Likewise.
13934         * modules/vasnprintf-posix (Depends-on): Likewise.
13935         * modules/vasprintf-posix (Depends-on): Likewise.
13936         * modules/vfprintf-posix (Depends-on): Likewise.
13937         * modules/vsnprintf-posix (Depends-on): Likewise.
13938         * modules/vsprintf-posix (Depends-on): Likewise.
13939
13940 2007-04-06  Bruno Haible  <bruno@clisp.org>
13941
13942         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13943         * tests/test-frexpl.c (main): Likewise.
13944         * tests/test-ldexpl.c (main): Likewise.
13945         * modules/frexp-tests (Depends-on): Add signbit.
13946         * modules/frexpl-tests (Depdends-on): Likewise.
13947         * modules/ldexpl-tests (Depdends-on): Likewise.
13948
13949 2007-04-06  Bruno Haible  <bruno@clisp.org>
13950
13951         * modules/signbit-tests: New file.
13952         * tests/test-signbit.c: New file.
13953
13954         * modules/signbit: New file.
13955         * lib/signbitf.c: New file.
13956         * lib/signbitd.c: New file.
13957         * lib/signbitl.c: New file.
13958         * m4/signbit.m4: New file.
13959         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13960         (signbit): New macro.
13961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13962         REPLACE_SIGNBIT.
13963         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13964         REPLACE_FREXPL into math.h.
13965
13966 2007-04-06  Bruno Haible  <bruno@clisp.org>
13967
13968         * modules/isnanf-nolibm-tests: New file.
13969         * tests/test-isnanf.c: New file.
13970
13971         * modules/isnanf-nolibm: New file.
13972         * lib/isnanf.h: New file.
13973         * lib/isnanf.c: New file.
13974         * lib/isnan.c: Consider the USE_FLOAT macro.
13975         * m4/isnanf.m4: New file.
13976
13977 2007-04-06  Bruno Haible  <bruno@clisp.org>
13978
13979         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13980         (Link): New section.
13981
13982         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13983
13984 2007-04-06  Bruno Haible  <bruno@clisp.org>
13985
13986         Assume the 'long double' type.
13987         * m4/longdouble.m4: Remove file.
13988         * config/srclist.txt: Don't mention longdouble.m4.
13989         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13990         * lib/float+.h: Likewise.
13991         * lib/frexp.c: Likewise.
13992         * lib/printf-args.h: Likewise.
13993         * lib/printf-args.c: Likewise.
13994         * lib/printf-frexp.c: Likewise.
13995         * lib/printf-parse.c: Likewise.
13996         * lib/vasnprintf.c: Likewise.
13997         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13998         * m4/intl.m4: Likewise.
13999         * m4/isnanl.m4: Likewise.
14000         * m4/printf.m4: Likewise.
14001         * m4/printf-frexpl.m4: Likewise.
14002         * m4/vasnprintf.m4: Likewise.
14003         * modules/allocsa (Files): Remove m4/longdouble.m4.
14004         * modules/gettext (Files): Likewise.
14005         * modules/relocatable-prog-wrapper (Files): Likewise.
14006         * modules/vasnprintf (Files): Likewise.
14007         * modules/isnanl (Files): Likewise.
14008         (Include): Simplify.
14009         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
14010         (Include): Simplify.
14011         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
14012         (Include): Simplify.
14013         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
14014         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14015         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
14016         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14017         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14019         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
14020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14021         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
14022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14023         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
14024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
14025         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
14026         * tests/test-isnanl.c: Likewise.
14027         * tests/test-snprintf-posix.h: Likewise.
14028         * tests/test-sprintf-posix.h: Likewise.
14029         * tests/test-vasnprintf-posix.c: Likewise.
14030         * tests/test-vasnprintf-posix2.c: Likewise.
14031         * tests/test-vasprintf-posix.c: Likewise.
14032
14033 2007-04-06  Bruno Haible  <bruno@clisp.org>
14034
14035         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
14036         * lib/math_.h [__DECC]: Include the overridden include file through
14037         #include_next, outside the double-inclusion guard.
14038         * lib/stdio_.h [__DECC]: Likewise.
14039         * lib/stdlib_.h [__DECC]: Likewise.
14040         * lib/string_.h [__DECC]: Likewise.
14041         * lib/time_.h [__DECC]: Likewise.
14042         * lib/wchar_.h [__DECC]: Likewise.
14043         * lib/wctype_.h [__DECC]: Likewise.
14044         * lib/inttypes_.h [__DECC]: Likewise.
14045         Reported by Albert Chin <china@thewrittenword.com> in
14046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
14047
14048 2007-04-04  Eric Blake  <ebb9@byu.net>
14049
14050         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
14051         1.5.x.
14052
14053 2007-04-04  Bruno Haible  <bruno@clisp.org>
14054
14055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
14056         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
14057
14058 2007-04-04  Bruno Haible  <bruno@clisp.org>
14059
14060         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
14061         results for "%010a" of Infinity and NaN.
14062         * tests/test-vasprintf-posix.c (test_function): Likewise.
14063         * tests/test-snprintf-posix.h (test_function): Likewise.
14064         * tests/test-sprintf-posix.h (test_function): Likewise.
14065         * tests/test-fprintf-posix.h (test_function): Remove these tests.
14066         * tests/test-printf-posix.h (test_function): Likewise.
14067         * tests/test-fprintf-posix.out: Update.
14068         Needed for FreeBSD 6.1.
14069
14070 2007-04-04  Bruno Haible  <bruno@clisp.org>
14071
14072         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
14073         directly used by the gnulib modules nor by gnulib-tool.
14074
14075 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14076
14077         * DEPENDENCIES: Give overall description of version dependency
14078         desirability.  Use more-typical names for apps.
14079         Add shell, coreutils, diffutils, grep, tar, gzip.
14080
14081 2007-04-04  Simon Josefsson  <simon@josefsson.org>
14082
14083         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
14084
14085 2007-04-04  Karl Berry  <karl@gnu.org>
14086
14087         * MODULES.html.sh (func_module): missing '.
14088
14089 2007-04-03  Bruno Haible  <bruno@clisp.org>
14090
14091         * modules/argmatch-tests (Makefile.am): New variable
14092         test_argmatch_LDADD.
14093         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
14094         * modules/array-list-tests (Makefile.am): New variable
14095         test_array_list_LDADD.
14096         * modules/array-oset-tests (Makefile.am): New variable
14097         test_array_oset_LDADD.
14098         * modules/avltree-list-tests (Makefile.am): New variable
14099         test_avltree_list_LDADD.
14100         * modules/avltree-oset-tests (Makefile.am): New variable
14101         test_avltree_oset_LDADD.
14102         * modules/avltreehash-list-tests (Makefile.am): New variable
14103         test_avltreehash_list_LDADD.
14104         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
14105         test_canonicalize_lgpl_LDADD.
14106         * modules/carray-list-tests (Makefile.am): New variable
14107         test_carray_list_LDADD.
14108         * modules/dirname-tests (Makefile.am): New variable
14109         test_dirname_LDADD.
14110         * modules/linked-list-tests (Makefile.am): New variable
14111         test_linked_list_LDADD.
14112         * modules/linkedhash-list-tests (Makefile.am): New variable
14113         test_linkedhash_list_LDADD.
14114         * modules/rbtree-list-tests (Makefile.am): New variable
14115         test_rbtree_list_LDADD.
14116         * modules/rbtree-oset-tests (Makefile.am): New variable
14117         test_rbtree_oset_LDADD.
14118         * modules/rbtreehash-list-tests (Makefile.am): New variable
14119         test_rbtreehash_list_LDADD.
14120         * modules/xvasprintf-tests (Makefile.am): New variable
14121         test_xvasprintf_LDADD.
14122         Reported by Eric Blake.
14123
14124 2007-04-03  Eric Blake  <ebb9@byu.net>
14125
14126         * DEPENDENCIES: Weaken m4 requirements.
14127
14128 2007-04-03  Bruno Haible  <bruno@clisp.org>
14129
14130         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
14131         * modules/isnanl-tests (configure.ac): Likewise.
14132
14133 2007-04-03  Ben Pfaff  <blp@gnu.org>
14134
14135         * modules/iconv_open: Add $(srcdir)/ to source directory
14136         references in Makefile fragments that call gperf, to fix VPATH
14137         builds.
14138
14139 2007-04-03  Bruno Haible  <bruno@clisp.org>
14140
14141         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
14142         * lib/ldexpl.c: Undo last change.
14143
14144 2007-04-03  Bruno Haible  <bruno@clisp.org>
14145
14146         * modules/printf-frexpl (Depends-on): Undo last change.
14147         (Files): Add m4/ldexpl.m4.
14148
14149 2007-04-03  Bruno Haible  <bruno@clisp.org>
14150
14151         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
14152         * modules/isnanl (Link): New section.
14153
14154         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14155         * modules/frexp (Link): New section.
14156
14157         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14158         * modules/frexpl (Link): New section.
14159
14160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14161         * modules/ldexpl (Link): New section.
14162
14163 2007-04-03  Bruno Haible  <bruno@clisp.org>
14164
14165         * modules/TEMPLATE-EXTENDED: New file.
14166         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14167
14168 2007-04-03  Bruno Haible  <bruno@clisp.org>
14169
14170         * DEPENDENCIES: New file.
14171         Suggested by Simon Josefsson.
14172
14173 2007-04-03  Bruno Haible  <bruno@clisp.org>
14174
14175         * doc/gnulib.texi: Escape @.
14176
14177 2007-04-03  James Youngman  <jay@gnu.org>
14178         and Paul Eggert  <eggert@cs.ucla.edu>
14179
14180         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14181         birthtime on all systems that have birthtime, not just those which
14182         use st_birthtimensec rather than st_birthtim.  Putting zero in
14183         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14184         that the birth time is not available for files on an NFS mount.
14185
14186 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14187
14188         * modules/memxor: Move back from crypto/, suggested by Bruno.
14189         * modules/crypto/hmac-sha1: Fix memxor dependency.
14190
14191         * modules/crypto/gc: Moved from ../.
14192
14193 2007-04-02  Eric Blake  <ebb9@byu.net>
14194
14195         * lib/ldexpl.c (includes): Avoid libm.
14196
14197         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14198
14199 2007-04-02  Bruno Haible  <bruno@clisp.org>
14200
14201         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14202         on IRIX.
14203
14204 2007-04-02  Bruno Haible  <bruno@clisp.org>
14205
14206         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14207         x86 or x86_64 platforms running MacOS X.
14208         Reported by Ryan Schmidt <@ryandesign.com>.
14209
14210 2007-04-02  Bruno Haible  <bruno@clisp.org>
14211
14212         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14213         i386.
14214
14215 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14216
14217         * modules/crypto/arcfour: Moved from ../.
14218         * modules/crypto/arcfour-tests: Moved from ../.
14219         * modules/crypto/arctwo: Moved from ../.
14220         * modules/crypto/arctwo-tests: Moved from ../.
14221         * modules/crypto/des: Moved from ../.
14222         * modules/crypto/des-tests: Moved from ../.
14223         * modules/crypto/gc-arcfour: Moved from ../.
14224         * modules/crypto/gc-arcfour-tests: Moved from ../.
14225         * modules/crypto/gc-arctwo: Moved from ../.
14226         * modules/crypto/gc-arctwo-tests: Moved from ../.
14227         * modules/crypto/gc-des: Moved from ../.
14228         * modules/crypto/gc-des-tests: Moved from ../.
14229         * modules/crypto/gc-hmac-md5: Moved from ../.
14230         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14231         * modules/crypto/gc-hmac-sha1: Moved from ../.
14232         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14233         * modules/crypto/gc-md2: Moved from ../.
14234         * modules/crypto/gc-md2-tests: Moved from ../.
14235         * modules/crypto/gc-md4: Moved from ../.
14236         * modules/crypto/gc-md4-tests: Moved from ../.
14237         * modules/crypto/gc-md5: Moved from ../.
14238         * modules/crypto/gc-md5-tests: Moved from ../.
14239         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14240         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14241         * modules/crypto/gc-random: Moved from ../.
14242         * modules/crypto/gc-rijndael: Moved from ../.
14243         * modules/crypto/gc-rijndael-tests: Moved from ../.
14244         * modules/crypto/gc-sha1: Moved from ../.
14245         * modules/crypto/gc-sha1-tests: Moved from ../.
14246         * modules/crypto/gc-tests: Moved from ../.
14247         * modules/crypto/hmac-md5: Moved from ../.
14248         * modules/crypto/hmac-md5-tests: Moved from ../.
14249         * modules/crypto/hmac-sha1: Moved from ../.
14250         * modules/crypto/hmac-sha1-tests: Moved from ../.
14251         * modules/crypto/md2: Moved from ../.
14252         * modules/crypto/md2-tests: Moved from ../.
14253         * modules/crypto/md4: Moved from ../.
14254         * modules/crypto/md4-tests: Moved from ../.
14255         * modules/crypto/md5: Moved from ../.
14256         * modules/crypto/md5-tests: Moved from ../.
14257         * modules/crypto/memxor: Moved from ../.
14258         * modules/crypto/rijndael: Moved from ../.
14259         * modules/crypto/rijndael-tests: Moved from ../.
14260         * modules/crypto/sha1: Moved from ../.
14261
14262 2007-03-30  James Youngman  <jay@gnu.org>
14263
14264         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14265         rename() to change the ctime of a file (because ctime is unaffected
14266         by rename on jfs2 on AIX 5.1).
14267         (main): Start by doing cleanup, in case a previous run failed leaving
14268         test files behind.
14269
14270 2007-03-31  Bruno Haible  <bruno@clisp.org>
14271
14272         Support old proprietary implementations of iconv.
14273         * modules/iconv_open: New file.
14274         * lib/iconv_.h: New file.
14275         * m4/iconv_h.m4: New file.
14276         * lib/iconv_open.c: New file.
14277         * lib/iconv_open-aix.gperf: New file.
14278         * lib/iconv_open-hpux.gperf: New file.
14279         * lib/iconv_open-irix.gperf: New file.
14280         * lib/iconv_open-osf.gperf: New file.
14281         * m4/iconv_open.m4: New file.
14282         * modules/linebreak (Depends-on): Add iconv_open.
14283         * modules/striconv (Depends-on): Likewise.
14284         * modules/striconveh (Depends-on): Likewise.
14285         * modules/unicodeio (Depends-on): Likewise.
14286         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14287         (iconv_t)(-1).
14288         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14289         conversion if cd is (iconv_t)(-1).
14290         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14291         is not possible.
14292
14293 2007-03-31  Bruno Haible  <bruno@clisp.org>
14294
14295         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14296         work on Solaris either. Protect also second use of "autodetect_jp".
14297
14298 2007-03-31  Bruno Haible  <bruno@clisp.org>
14299
14300         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14301         the function is not present.
14302
14303 2007-03-31  Bruno Haible  <bruno@clisp.org>
14304
14305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14306         the function is not present.
14307
14308 2007-03-31  Bruno Haible  <bruno@clisp.org>
14309
14310         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14311         a bug in HP-UX iconv_open().
14312
14313 2007-03-31  Bruno Haible  <bruno@clisp.org>
14314
14315         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14316         (Mathematics <math.h>): New section, add fpieee.
14317         (Input/output <stdio.h>): Add fseterr.
14318         (Mathematics <math.h>): New section, add printf-frexp.
14319         (Container data structures): Add sublist.
14320         (Core language properties): Add fpucw, inline.
14321         (Functions for greatest-width integer types <inttypes.h>): Add
14322         imaxabs, imaxdiv, inttypes.
14323         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14324         isnanl-nolibm, ldexp.
14325         (Mathematics <math.h>): New section, add printf-frexpl.
14326         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14327         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14328         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14329         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14330         (Unicode string functions): Add unistr/u*-mbtoucr.
14331         (Java): Add javacomp-script, javaexec-script.
14332         (C#): Add csharpcomp-script, csharpexec-script.
14333         (Support for building libraries and executables): Add havelib,
14334         relocatable-*.
14335         (Support for maintaining and releasing projects): Renamed from
14336         'Support for maintaining and release projects'. Add announce-gen.
14337
14338 2007-03-31  Bruno Haible  <bruno@clisp.org>
14339
14340         * README: Talk primarily about git.
14341         (git and CVS): Renamed from CVS.
14342         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14343         gnulib is available through git.
14344         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14345
14346 2007-03-30  Bruno Haible  <bruno@clisp.org>
14347
14348         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14349         * lib/poll_.h: Likewise.
14350         * lib/stat_.h: Likewise.
14351         * lib/sys_time_.h: Likewise.
14352         * lib/sysexit_.h: Likewise.
14353         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14354         * lib/stdbool_.h: Likewise.
14355         * lib/byteswap_.h: Add double-inclusion guard.
14356
14357 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14358
14359         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14360
14361 2007-03-30  Karl Berry  <karl@gnu.org>
14362
14363         * config/srclist-update: double space after USA in the license
14364         substitution, since that's how it's usually (?) written.
14365
14366 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14369         reported by Bruno Haible.
14370
14371 2007-03-29  Bruno Haible  <bruno@clisp.org>
14372
14373         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14374         a bug in AIX iconv().
14375
14376 2007-03-29  Bruno Haible  <bruno@clisp.org>
14377
14378         * modules/ldexpl-tests: New file.
14379         * tests/test-ldexpl.c: New file.
14380
14381 2007-03-29  Bruno Haible  <bruno@clisp.org>
14382
14383         * lib/ldexpl.c: Include fpucw.h.
14384         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14385         multiplication.
14386         * modules/ldexpl (Depends-on): Add fpucw.
14387
14388 2007-03-29  Bruno Haible  <bruno@clisp.org>
14389
14390         * modules/ldexpl: New file.
14391         * m4/ldexpl.m4: New file.
14392         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14393         set.
14394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14395         REPLACE_LDEXPL.
14396         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14397         REPLACE_LDEXPL.
14398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14399         gl_FUNC_LDEXPL_WORKS.
14400         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14401         * modules/mathl (Files): Remove lib/ldexpl.c.
14402         (Depends-on): Add ldexpl.
14403
14404 2007-03-29  Bruno Haible  <bruno@clisp.org>
14405
14406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14407
14408 2007-03-29  Bruno Haible  <bruno@clisp.org>
14409
14410         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14411         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14412         and possibly also HP-UX.
14413         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14414         work on AIX, IRIX, HP-UX, OSF/1.
14415         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14416         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14417         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14418         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14419         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14420         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14421
14422 2007-03-29  Bruno Haible  <bruno@clisp.org>
14423
14424         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14425
14426 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14427
14428         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14429         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14430
14431 2007-03-29  Eric Blake  <ebb9@byu.net>
14432
14433         * lib/acl-internal.h: Remove redundant include.
14434         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14435         Cygwin when a file is locked.
14436
14437 2007-03-29  Bruno Haible  <bruno@clisp.org>
14438
14439         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14440         file.
14441         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14442
14443 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14444
14445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14446         try to remove a parent directory if the child couldn't be removed
14447         (except for the first rmdir, which could fail because the child
14448         doesn't exist).  Problem reported by Jeff Blaine in
14449         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14450
14451 2007-03-28  Bruno Haible  <bruno@clisp.org>
14452
14453         * lib/striconveh.c (utf8conv_carefully): New function.
14454         (mem_cd_iconveh_internal): Invoke it.
14455
14456 2007-03-28  Bruno Haible  <bruno@clisp.org>
14457
14458         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14459         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14460         input.
14461         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14462         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14463         unistr/u8-uctomb.
14464
14465 2007-03-28  Bruno Haible  <bruno@clisp.org>
14466
14467         * modules/unistr/u8-mbtoucr: New file.
14468         * lib/unistr/u8-mbtoucr.c: New file.
14469         * modules/unistr/u16-mbtoucr: New file.
14470         * lib/unistr/u16-mbtoucr.c: New file.
14471         * modules/unistr/u16-mbtoucr: New file.
14472         * lib/unistr/u16-mbtoucr.c: New file.
14473         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14474
14475 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14476             Bruno Haible  <bruno@clisp.org>
14477
14478         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14479         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14480         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14481
14482         * m4/stdio_h.m4: Add stubs for vasprintf too.
14483
14484         * modules/stdio: Support vasprintf in sed command.
14485
14486         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14487         vasprintf.h.  Add stdio module indicator.
14488
14489         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14490         vasprintf.h.
14491
14492         * lib/vasprintf.h: File removed.
14493
14494         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14495         * lib/vasprintf.c: Ditto.
14496         * lib/xvasprintf.c: Ditto.
14497         * tests/test-vasprintf-posix.c: Ditto.
14498         * tests/test-vasprintf.c: Ditto.
14499
14500 2007-03-27  Bruno Haible  <bruno@clisp.org>
14501
14502         Make vasnprintf multithread-safe.
14503         * lib/vasnprintf.c (decimal_point_char): New function.
14504         (VASNPRINTF): Use it.
14505         Suggested by Simon Josefsson.
14506
14507 2007-03-27  Eric Blake  <ebb9@byu.net>
14508
14509         Support sub-second birthtime on cygwin.
14510         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14511         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14512         (get_stat_birthtime): Also work with st_birthtim.
14513
14514 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14515
14516         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14517         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14518         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14519         (get_stat_birthtime_ns): Simplify compile-time tests.
14520         (get_stat_birthtime): Change the API to look like
14521         get_stat_mtime etc., except return a negative tv_nsec on error.
14522         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14523         Don't check for "spare" fields.
14524         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14525         or for struct stat.st_birthtime, as these tests aren't used.
14526         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14527
14528 2007-03-27  Bruno Haible  <bruno@clisp.org>
14529
14530         * lib/stat-time.h: Include <sys/stat.h>.
14531
14532 2007-03-27  James Youngman  <jay@gnu.org>
14533
14534         * lib/stat-time.h (get_stat_birthtime): New function for
14535           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14536         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14537           and its variants.
14538         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14539         * modules/stat-time-test: New file.
14540         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14541
14542 2007-03-26  Bruno Haible  <bruno@clisp.org>
14543
14544         Better support of signalling NaNs.
14545         * lib/atanl.c: Include isnanl.h.
14546         (atanl): Perform test for NaN at the beginning of the function and
14547         through a call to isnanl.
14548         * lib/cosl.c: Include isnanl.h.
14549         (cosl): Perform test for NaN at the beginning of the function and
14550         through a call to isnanl.
14551         * lib/ldexpl.c: Include isnanl.h.
14552         (ldexpl): Perform test for NaN through a call to isnanl.
14553         * lib/logl.c: Include isnanl.h.
14554         (logl): Perform test for NaN at the beginning of the function and
14555         through a call to isnanl.
14556         * lib/sinl.c: Include isnanl.h.
14557         (sinl): Perform test for NaN at the beginning of the function and
14558         through a call to isnanl.
14559         * lib/sqrtl.c: Include isnanl.h.
14560         (sqrtl): Perform test for NaN at the beginning of the function and
14561         through a call to isnanl.
14562         * lib/tanl.c: Include isnanl.h.
14563         (tanl): Perform test for NaN at the beginning of the function and
14564         through a call to isnanl.
14565         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14566         * modules/mathl (Depends-on): Add isnanl.
14567
14568 2007-03-26  Eric Blake  <ebb9@byu.net>
14569
14570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14571         regression in logic sense of previous patch.
14572
14573 2007-03-26  Bruno Haible  <bruno@clisp.org>
14574
14575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14576         unportable shell command "if ! ...".
14577         Reported by Ralf Wildenhues.
14578
14579 2007-03-25  Bruno Haible  <bruno@clisp.org>
14580
14581         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14582         <sysexits.h> file, and only add EX_CONFIG.
14583         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14584         absolute file name and whether it is sufficient. Substitute also
14585         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14586         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14587         ABSOLUTE_SYSEXITS_H into sysexits.h.
14588
14589 2007-03-25  Bruno Haible  <bruno@clisp.org>
14590
14591         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14592         hints is NULL.
14593
14594 2007-03-25  Bruno Haible  <bruno@clisp.org>
14595
14596         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14597         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14598
14599 2007-03-25  Bruno Haible  <bruno@clisp.org>
14600
14601         * lib/vasnprintf.c: Include langinfo.h.
14602         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14603         multithread-safe.
14604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14613         Reported by Simon Josefsson.
14614
14615 2007-03-25  Bruno Haible  <bruno@clisp.org>
14616
14617         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14618         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14619         * modules/vasnprintf (Depends-on): Add stdint.
14620
14621 2007-03-25  Bruno Haible  <bruno@clisp.org>
14622
14623         * modules/fpieee: New file.
14624         * m4/fpieee.m4: New file.
14625         * modules/isnan-nolibm (Depends-on): Add fpieee.
14626         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14627         * modules/isnanl (Depends-on): Add fpieee.
14628
14629 2007-03-25  Bruno Haible  <bruno@clisp.org>
14630
14631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14632
14633 2007-03-25  Bruno Haible  <bruno@clisp.org>
14634
14635         Avoid test failures on IRIX 6.5.
14636         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14637         (main): Use it.
14638         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14639         macros.
14640         (main): Use them.
14641
14642 2007-03-25  Bruno Haible  <bruno@clisp.org>
14643
14644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14645         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14646         exists but doesn't work.
14647         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14648         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14650         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14651
14652 2007-03-25  Bruno Haible  <bruno@clisp.org>
14653
14654         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14655         returns inf. Needed on IRIX 6.5.
14656
14657 2007-03-25  Bruno Haible  <bruno@clisp.org>
14658
14659         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14660         (main): Use isnanl instead of x != x idiom.
14661         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14662
14663         * tests/test-frexp.c: Include isnan.h.
14664         (main): Use isnan instead of x != x idiom.
14665         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14666
14667 2007-03-25  Bruno Haible  <bruno@clisp.org>
14668
14669         * tests/test-frexp.c (NaN): New function/macro.
14670         (main): Use it instead of 0.0 / 0.0.
14671         * tests/test-isnan.c (NaN): New function/macro.
14672         (main): Use it instead of 0.0 / 0.0.
14673         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14674         (test_function): Use it instead of 0.0 / 0.0.
14675         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14676         (test_function): Use it instead of 0.0 / 0.0.
14677         * tests/test-snprintf-posix.h (NaN): New function/macro.
14678         (test_function): Use it instead of 0.0 / 0.0.
14679         * tests/test-sprintf-posix.h (NaN): New function/macro.
14680         (test_function): Use it instead of 0.0 / 0.0.
14681         * tests/test-fprintf-posix.h (NaN): New function/macro.
14682         (test_function): Use it instead of 0.0 / 0.0.
14683         * tests/test-printf-posix.h (NaN): New function/macro.
14684         (test_function): Use it instead of 0.0 / 0.0.
14685
14686         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14687
14688 2007-03-25  Bruno Haible  <bruno@clisp.org>
14689
14690         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14691
14692 2007-03-25  Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/regexec.c (merge_state_with_log): Make static.
14695
14696 2007-03-25  Bruno Haible  <bruno@clisp.org>
14697
14698         * lib/trigl.c (kernel_rem_pio2): Make static.
14699
14700 2007-03-25  Bruno Haible  <bruno@clisp.org>
14701
14702         * lib/sincosl.c (sincosl_table): Make static.
14703
14704 2007-03-25  Bruno Haible  <bruno@clisp.org>
14705
14706         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14707         if the compiler does not support C99.
14708
14709 2007-03-25  Bruno Haible  <bruno@clisp.org>
14710
14711         * modules/time (Makefile.am): Ensure all rule action lines start with a
14712         tab.
14713
14714 2007-03-24  Bruno Haible  <bruno@clisp.org>
14715
14716         * modules/tsearch-tests: New file.
14717         * tests/test-tsearch.sh: New file.
14718         * tests/test-tsearch.c: New file, mostly copied from glibc.
14719
14720         * modules/search-tests: New file.
14721         * tests/test-search.c: New file.
14722
14723         * modules/search: New file.
14724         * lib/search_.h: New file, incorporating lib/tsearch.h.
14725         * m4/search_h.m4: New file.
14726         * lib/tsearch.h: Remove file.
14727         * lib/tsearch.c: Include search.h instead of tsearch.h.
14728         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14729         HAVE_TSEARCH.
14730         * modules/tsearch (Files): Remove lib/tsearch.h.
14731         (Depends-on): Add search.
14732         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14733         (Include): Change tsearch.h into search.h.
14734
14735 2007-03-24  Bruno Haible  <bruno@clisp.org>
14736
14737         * modules/fpucw: New file.
14738         * lib/fpucw.h: New file.
14739         * lib/frexp.c: Include fpucw.h.
14740         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14741         (FUNC): Use them.
14742         * lib/printf-frexp.c: Include fpucw.h.
14743         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14744         (FUNC): Use them.
14745         * lib/vasnprintf.c: Include fpucw.h.
14746         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14747         'long double' calculations.
14748         * tests/test-frexpl.c: Include fpucw.h.
14749         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14750         * tests/test-printf-frexpl.c: Include fpucw.h.
14751         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14752         * modules/frexpl (Depends-on): Add fpucw.
14753         * modules/printf-frexpl (Depends-on): Likewise.
14754         * modules/fprintf-posix (Depends-on): Likewise.
14755         * modules/snprintf-posix (Depends-on): Likewise.
14756         * modules/sprintf-posix (Depends-on): Likewise.
14757         * modules/vasnprintf-posix (Depends-on): Likewise.
14758         * modules/vasprintf-posix (Depends-on): Likewise.
14759         * modules/vfprintf-posix (Depends-on): Likewise.
14760         * modules/vsnprintf-posix (Depends-on): Likewise.
14761         * modules/vsprintf-posix (Depends-on): Likewise.
14762         * modules/frexpl-tests (Depends-on): Likewise.
14763         * modules/printf-frexpl-tests (Depends-on): Likewise.
14764
14765 2007-03-24  Bruno Haible  <bruno@clisp.org>
14766
14767         * lib/float+.h: New file.
14768         * lib/isnan.c: Include float+.h.
14769         (SIZE): New macro.
14770         (FUNC): Compare only SIZE bytes of the value.
14771         * lib/vasnprintf.c: Include float+.h.
14772         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14773         SIZEOF_LDBL or SIZEOF_DBL bytes.
14774         * modules/isnan-nolibm (Files): Add lib/float+.h.
14775         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14776         * modules/isnanl (Files): Add lib/float+.h.
14777         * modules/vasnprintf (Files): Add lib/float+.h.
14778
14779 2007-03-24  Bruno Haible  <bruno@clisp.org>
14780
14781         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14782         include isnanl-nolibm.h.
14783
14784 2007-03-24  Bruno Haible  <bruno@clisp.org>
14785
14786         * tests/test-read-file.c (main): Don't produce spurious output for
14787         expected situations. Make the test fail if it encountered unexpected
14788         results.
14789
14790 2007-03-24  Bruno Haible  <bruno@clisp.org>
14791
14792         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14793         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14794
14795 2007-03-24  Bruno Haible  <bruno@clisp.org>
14796
14797         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14798
14799 2007-03-24  Bruno Haible  <bruno@clisp.org>
14800
14801         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14802         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14803
14804         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14805         * modules/utf8-ucs4: Turn into a symbolic link to module
14806         unistr/u8-mbtouc.
14807
14808         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14809         utf8-ucs4-unsafe.
14810         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14811         unistr/u8-mbtouc-unsafe.
14812
14813         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14814         * modules/utf16-ucs4: Turn into a symbolic link to module
14815         unistr/u16-mbtouc.
14816
14817         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14818         utf16-ucs4-unsafe.
14819         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14820         unistr/u16-mbtouc-unsafe.
14821
14822         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14823         * modules/ucs4-utf8: Turn into a symbolic link to module
14824         unistr/u8-ubtomb.
14825
14826         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14827         * modules/ucs4-utf16: Turn into a symbolic link to module
14828         unistr/u16-ubtomb.
14829
14830 2007-03-24  Bruno Haible  <bruno@clisp.org>
14831
14832         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14833         Enable the function only if HAVE_INLINE.
14834         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14835         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14836         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14837         Enable the function only if HAVE_INLINE.
14838         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14839         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14840         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14841         Enable the function only if HAVE_INLINE.
14842         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14843         Enable the function only if HAVE_INLINE.
14844         * modules/utf8-ucs4: Update.
14845         * modules/utf8-ucs4-unsafe: Update.
14846         * modules/utf16-ucs4: Update.
14847         * modules/utf16-ucs4-unsafe: Update.
14848         * modules/ucs4-utf8: Update.
14849         * modules/ucs4-utf16: Update.
14850
14851 2007-03-24  Bruno Haible  <bruno@clisp.org>
14852
14853         * lib/utf8-ucs4.h: Remove file.
14854         * lib/utf8-ucs4-unsafe.h: Remove file.
14855         * lib/utf16-ucs4.h: Remove file.
14856         * lib/utf16-ucs4-unsafe.h: Remove file.
14857         * lib/ucs4-utf8.h: Remove file.
14858         * lib/ucs4-utf16.h: Remove file.
14859         * lib/unistr.h: Include their previous contents.
14860         * m4/utf-ucs4.m4: Remove file.
14861         * m4/ucs4-utf.m4: Remove file.
14862         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14863         (Depends-on): Add unistr/base.
14864         (configure.ac): Remove gl_UTF_UCS4.
14865         (Makefile.am): Update.
14866         (Include): Change to unistr.h.
14867         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14868         (Depends-on): Add unistr/base.
14869         (configure.ac): Remove gl_UTF_UCS4.
14870         (Makefile.am): Update.
14871         (Include): Change to unistr.h.
14872         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14873         (Depends-on): Add unistr/base.
14874         (configure.ac): Remove gl_UTF_UCS4.
14875         (Makefile.am): Update.
14876         (Include): Change to unistr.h.
14877         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14878         (Depends-on): Add unistr/base.
14879         (configure.ac): Remove gl_UTF_UCS4.
14880         (Makefile.am): Update.
14881         (Include): Change to unistr.h.
14882         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14883         (Depends-on): Add unistr/base.
14884         (configure.ac): Remove gl_UCS4_UTF.
14885         (Makefile.am): Update.
14886         (Include): Change to unistr.h.
14887         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14888         (Depends-on): Add unistr/base.
14889         (configure.ac): Remove gl_UCS4_UTF.
14890         (Makefile.am): Update.
14891         (Include): Change to unistr.h.
14892         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14893         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14894         utf8-ucs4-unsafe.h.
14895         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14896         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14897         utf16-ucs4-unsafe.h.
14898         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14899         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14900         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14901         * lib/unistr/u8-strchr.c: Likewise.
14902         * lib/unistr/u8-strrchr.c: Likewise.
14903         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14904         * lib/unistr/u16-strchr.c: Likewise.
14905         * lib/unistr/u16-strrchr.c: Likewise.
14906         * lib/striconveh.c: Update.
14907         * lib/linebreak.c: Update.
14908
14909 2007-03-24  Bruno Haible  <bruno@clisp.org>
14910
14911         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14912         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14913
14914 2007-03-22  Bruno Haible  <bruno@clisp.org>
14915
14916         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14917
14918 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14919
14920         * MODULES.html.sh (File system functions): New module write-any-file.
14921         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14922         * m4/write-any-file.m4: New files.
14923
14924 2007-03-23  Eric Blake  <ebb9@byu.net>
14925
14926         * gnulib-tool: Rearrange space-tab sequences, since some editors
14927         like to eat them.
14928
14929 2007-03-23  Eric Blake  <ebb9@byu.net>
14930
14931         * lib/version-etc.c (version_etc_va): Update license wording to
14932         be more concise.  Recommended by Richard Stallman.
14933
14934 2007-03-22  Bruno Haible  <bruno@clisp.org>
14935
14936         * lib/poll.c (MSG_PEEK): New fallback definition.
14937
14938 2007-03-22  Bruno Haible  <bruno@clisp.org>
14939
14940         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14941         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14942         (main): Update.
14943         Fixes a compilation error on BeOS.
14944
14945 2007-03-22  Bruno Haible  <bruno@clisp.org>
14946
14947         * modules/frexpl-tests: New file.
14948         * tests/test-frexpl.c: New file.
14949
14950         * modules/frexpl: New file.
14951         * m4/frexpl.m4: New file.
14952         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14953         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14955         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14956         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14957         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14958
14959 2007-03-22  Bruno Haible  <bruno@clisp.org>
14960
14961         * lib/frexpl.c: Share code with lib/frexp.c.
14962         * modules/mathl (Files): Add lib/frexp.c.
14963         (Depends-on): Add isnanl-nolibm.
14964
14965 2007-03-22  Bruno Haible  <bruno@clisp.org>
14966
14967         * modules/printf-frexp (Files): Add m4/frexp.m4.
14968         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14969         only if the found frexp function actually works.
14970
14971 2007-03-22  Bruno Haible  <bruno@clisp.org>
14972
14973         * lib/frexp.c: Remove older implementation that uses divisions.
14974
14975 2007-03-21  Bruno Haible  <bruno@clisp.org>
14976
14977         * modules/frexp-tests: New file.
14978         * tests/test-frexp.c: New file.
14979
14980         * modules/frexp: New file.
14981         * lib/frexp.c: New file.
14982         * m4/frexp.m4: New file.
14983         * lib/math_.h (frexp): New declaration.
14984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14985         REPLACE_FREXP.
14986         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14987
14988 2007-03-21  Bruno Haible  <bruno@clisp.org>
14989
14990         * modules/isnanl-tests: New file.
14991         * tests/test-isnanl.c: New file.
14992
14993         * modules/isnanl: New file.
14994         * lib/isnanl.h: New file.
14995         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14996         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14997         gl_FUNC_ISNANL_WORKS.
14998         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14999         New macros.
15000
15001 2007-03-21  Bruno Haible  <bruno@clisp.org>
15002
15003         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
15004         lib/isnanl.h.
15005         (Include): Update.
15006         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
15007         * lib/vasnprintf.c: Update.
15008         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
15009         tests/test-isnanl.h, remove tests/test-isnanl.c.
15010         (Makefile.am): Update.
15011         * tests/test-isnanl-nolibm.c: New file.
15012         * tests/test-isnanl.h: New file.
15013         * tests/test-isnanl.c: Remove file.
15014
15015 2007-03-21  Jim Meyering  <jim@meyering.net>
15016
15017         When trying to open ".", treat ESTALE like EACCES.
15018         * lib/savewd.c (savewd_save): Resort to forking not just upon
15019         failure with EACCES, but also when errno is ESTALE.
15020
15021 2007-03-20  Bruno Haible  <bruno@clisp.org>
15022
15023         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
15024         Needed on AIX 5.1. Reported by Matthew Woehlke.
15025
15026 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         Suggestions by Bruno Haible:
15029         * lib/acl-internal.h: Include "gettext.h" rather than rolling
15030         our own.
15031         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
15032         * modules/acl (Depends-on): Add gettext.
15033
15034 2007-03-19  Bruno Haible  <bruno@clisp.org>
15035
15036         * modules/iconvme: Remove file.
15037         * lib/iconvme.h: Remove file.
15038         * lib/iconvme.c: Remove file.
15039         * m4/iconvme.m4: Remove file.
15040
15041 2007-03-19  Bruno Haible  <bruno@clisp.org>
15042
15043         * doc/relocatable-maint.texi: Break long shell script line.
15044         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15045
15046 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15047
15048         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
15049         handle file_has_acl.
15050         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
15051         * lib/acl.c: Move header inclusions and related macro defns into
15052         lib/acl-internal.h.
15053         (S_ISLNK): Remove defn, since that's now done for us.
15054         (file_has_acl): Move to lib/file-has-acl.c.
15055         Call acl_trivial if available.  This is the crucial part of the fix.
15056         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
15057         shared within the library.  Rewrite a bit, partly to make it compatible
15058         with the GNU coding style.
15059         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
15060         Remove unnecessary double-quotes.
15061         Don't test for acl_to_text; the build will catch that.
15062         Replace acl_entries if it doesn't exist and it is needed.
15063         Check for -lsec and acl_trivial (as used on Solaris 10).
15064         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
15065         lib/file-has-acl.c.
15066         (Depends-on): Add sys_stat, for S_ISLNK.
15067
15068 2007-03-19  Ben Pfaff  <blp@gnu.org>
15069
15070         * doc/gnulib.texi: Fix typos.
15071         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
15072
15073 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
15076         If size is zero here, buf must be zero.
15077
15078 2007-03-19  Simon Josefsson  <simon@josefsson.org>
15079
15080         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
15081         <bruno@clisp.org>.
15082
15083 2007-03-18  Bruno Haible  <bruno@clisp.org>
15084
15085         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
15086         Suggested by Eric Blake.
15087
15088 2007-03-18  Ben Pfaff  <blp@gnu.org>
15089
15090         * doc/relocatable.texi: Recommend using as prefix a directory
15091         that does not exist and will never be created.  Based on
15092         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
15093         and others.
15094
15095 2007-03-17  Bruno Haible  <bruno@clisp.org>
15096
15097         * lib/fchownat.c: Include lchown.h.
15098
15099 2007-03-17  Bruno Haible  <bruno@clisp.org>
15100
15101         Fix endless loop when the given allocated size was > INT_MAX.
15102         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
15103         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
15104         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
15105         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
15106         * lib/sprintf.c (sprintf): Likewise.
15107
15108 2007-03-17  Bruno Haible  <bruno@clisp.org>
15109
15110         * tests/test-argp-2.sh (func_compare): Output a context diff.
15111
15112 2007-03-17  Bruno Haible  <bruno@clisp.org>
15113
15114         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
15115         locale's decimal-point character.
15116
15117 2007-03-17  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
15120         before comparing it. Needed because on some platforms (e.g. x86) a
15121         'long double' occupies less bytes than sizeof (long double).
15122
15123 2007-03-17  Bruno Haible  <bruno@clisp.org>
15124
15125         * tests/test-crc.c (main): Make printf statements 64-bit clean.
15126         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
15127         * tests/test-getaddrinfo.c (simple): Likewise.
15128         * tests/test-read-file.c (main): Likewise.
15129
15130 2007-03-17  Bruno Haible  <bruno@clisp.org>
15131
15132         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
15133
15134 2007-03-17  Bruno Haible  <bruno@clisp.org>
15135
15136         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
15137         unused variable.
15138
15139 2007-03-17  Bruno Haible  <bruno@clisp.org>
15140
15141         * tests/test-c-strcasecmp.c: Include c-strcase.h.
15142         * tests/test-c-strncasecmp.c: Likewise.
15143
15144 2007-03-17  Bruno Haible  <bruno@clisp.org>
15145
15146         * modules/stdlib (Depends-on): Add unistd.
15147         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
15148         Needed for MacOS X 10.3.
15149
15150 2007-03-17  Bruno Haible  <bruno@clisp.org>
15151
15152         * lib/unistr/u-strdup.h: Include <stdlib.h>.
15153
15154 2007-03-17  Bruno Haible  <bruno@clisp.org>
15155
15156         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15157
15158 2007-03-17  Bruno Haible  <bruno@clisp.org>
15159
15160         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15161         to reflect files copied from gnulib (with or without modifications).
15162         Suggested by Jim Meyering.
15163
15164 2007-03-17  Eric Blake  <ebb9@byu.net>
15165
15166         * NEWS: Document stdlib change from 2007-02-18.
15167
15168 2007-03-17  Jim Meyering  <jim@meyering.net>
15169
15170         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15171         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15172         someone uses a name containing shell meta-characters.
15173         Reported by Alfred M. Szmidt.
15174
15175         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15176
15177 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15178
15179         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15180         and copy gettext configuration files only if configure.ac contains
15181         a use of AM_GNU_GETTEXT_VERSION.
15182
15183 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15184
15185         * build-aux/bootstrap (gnulib_name): New variable.
15186         (gnulib_tool_options): Use it.
15187
15188 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15189
15190         * tests/test-des.c: Use new namespace.
15191
15192 2007-03-15  Bruno Haible  <bruno@clisp.org>
15193
15194         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15195         Reported by James Youngman <jay@gnu.org>.
15196
15197 2007-03-15  Bruno Haible  <bruno@clisp.org>
15198
15199         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15200         declared prototype. Needed with cc on OSF/1 5.1.
15201
15202 2007-03-15  Bruno Haible  <bruno@clisp.org>
15203
15204         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15205         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15206         (struct gl_list_implementation): Add dispose_fn argument to the
15207         'create_empty', 'create' methods.
15208         (struct gl_list_impl_base): Add field 'dispose_fn'.
15209         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15210         argument.
15211         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15212         dispose_fn argument.
15213         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15214         dispose_fn on the dropped values.
15215         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15216         dispose_fn argument.
15217         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15218         dropped values.
15219         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15220         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15221         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15222         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15223         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15224         argument.
15225         (gl_tree_list_free): Call dispose_fn on the dropped values.
15226         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15227         the dropped values.
15228         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15229         Add dispose_fn argument.
15230         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15231         Call dispose_fn on the dropped values.
15232         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15233         Add dispose_fn argument.
15234         (gl_sublist_create): Initialize the 'dispose_fn' field.
15235         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15236         * tests/test-array_list.c (main): Update.
15237         * tests/test-carray_list.c (main): Update.
15238         * tests/test-avltree_list.c (main): Update.
15239         * tests/test-rbtree_list.c (main): Update.
15240         * tests/test-avltreehash_list.c (main): Update.
15241         * tests/test-rbtreehash_list.c (main): Update.
15242         * tests/test-linked_list.c (main): Update.
15243         * tests/test-linkedhash_list.c (main): Update.
15244         * tests/test-array_oset.c (main): Update.
15245
15246 2007-03-15  Bruno Haible  <bruno@clisp.org>
15247
15248         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15249         (gl_oset_create_empty): Add dispose_fn argument.
15250         (struct gl_oset_implementation): Add dispose_fn argument to
15251         'create_empty' method.
15252         (struct gl_oset_impl_base): Add dispose_fn field.
15253         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15254         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15255         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15256         values.
15257         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15258         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15259         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15260         dropped value.
15261         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15262         dropped value.
15263         * tests/test-array_oset.c (main): Update.
15264         * tests/test-avltree_oset.c (main): Update.
15265         * tests/test-rbtree_oset.c (main): Update.
15266         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15267
15268 2007-03-13  Bruno Haible  <bruno@clisp.org>
15269
15270         * tests/test-stdbool.c (i): Update after last patch.
15271
15272 2007-03-12  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15275         the iswprint macro. Needed on Solaris 2.5.1.
15276
15277 2007-03-12  Bruno Haible  <bruno@clisp.org>
15278
15279         * tests/test-printf-frexp.c (main): Declare x as volatile.
15280
15281 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15282
15283         * doc/gnulib.texi (Build robot for gnulib): New section.
15284
15285 2007-03-12  Jim Meyering  <jim@meyering.net>
15286
15287         * build-aux/bootstrap: New file.
15288         * build-aux/bootstrap.conf: New file, from coreutils.
15289
15290 2007-03-11  Bruno Haible  <bruno@clisp.org>
15291
15292         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15293
15294 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15295
15296         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15297         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15298         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15299
15300 2007-03-11  Bruno Haible  <bruno@clisp.org>
15301
15302         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15303         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15304
15305 2007-03-11  Bruno Haible  <bruno@clisp.org>
15306
15307         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15308         formula. Needed for SunPRO C 5.0.
15309
15310 2007-03-11  Bruno Haible  <bruno@clisp.org>
15311
15312         * modules/long-options (Depends-on): Add getopt.
15313
15314 2007-03-11  Bruno Haible  <bruno@clisp.org>
15315
15316         * modules/modechange (Depends-on): Add stdbool.
15317
15318 2007-03-11  Bruno Haible  <bruno@clisp.org>
15319
15320         * modules/i-ring (Depends-on): Add stdbool.
15321
15322 2007-03-11  Bruno Haible  <bruno@clisp.org>
15323
15324         * modules/gc-des (Depends-on): Add stdbool.
15325
15326 2007-03-11  Bruno Haible  <bruno@clisp.org>
15327
15328         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15329
15330 2007-03-11  Bruno Haible  <bruno@clisp.org>
15331
15332         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15333
15334 2007-03-11  Bruno Haible  <bruno@clisp.org>
15335
15336         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15337
15338 2007-03-11  Bruno Haible  <bruno@clisp.org>
15339
15340         * lib/vasnprintf.c (sprintf): Undefine.
15341
15342 2007-03-11  Bruno Haible  <bruno@clisp.org>
15343
15344         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15345         initializers in SunPRO C and Compaq C compilers.
15346
15347 2007-03-11  Bruno Haible  <bruno@clisp.org>
15348
15349         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15350         decrementing code ANSI C compliant.
15351
15352 2007-03-11  Bruno Haible  <bruno@clisp.org>
15353
15354         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15355         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15356
15357 2007-03-11  Bruno Haible  <bruno@clisp.org>
15358
15359         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15360         <stdbool.h> substitute doesn't pass.
15361
15362 2007-03-11  Bruno Haible  <bruno@clisp.org>
15363
15364         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15365
15366 2007-03-11  Bruno Haible  <bruno@clisp.org>
15367
15368         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15369         script, for submission to autobuild.josefsson.org.
15370
15371 2007-03-10  Bruno Haible  <bruno@clisp.org>
15372
15373         * modules/canonicalize-lgpl-tests: New file.
15374         * tests/test-canonicalize-lgpl.sh: New file.
15375         * tests/test-canonicalize-lgpl.c: New file.
15376
15377         * modules/c-strcase-tests: New file.
15378         * tests/test-c-strcase.sh: New file.
15379         * tests/test-c-strcasecmp.c: New file.
15380         * tests/test-c-strncasecmp.c: New file.
15381
15382         * modules/atexit-tests: New file.
15383         * tests/test-atexit.sh: New file.
15384         * tests/test-atexit.c: New file.
15385
15386 2007-03-10  Bruno Haible  <bruno@clisp.org>
15387
15388         * tests/test-binary-io.sh: Use temporary filenames that are not so
15389         likely to clash with those of other tests (in a parallel make).
15390         * tests/test-binary-io.c: Likewise.
15391
15392 2007-03-10  Bruno Haible  <bruno@clisp.org>
15393
15394         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15395         fallback; use #error instead.
15396         Suggested by Simon Josefsson.
15397
15398 2007-03-10  Bruno Haible  <bruno@clisp.org>
15399
15400         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15401         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15402         first and the last.
15403
15404 2007-03-10  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15407
15408 2007-03-10  Bruno Haible  <bruno@clisp.org>
15409
15410         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15411         "make distcheck".
15412         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15413         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15414         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15415
15416 2007-03-10  Bruno Haible  <bruno@clisp.org>
15417
15418         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15419         variable.
15420         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15421         variable.
15422
15423 2007-03-09  Eric Blake  <ebb9@byu.net>
15424         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15425
15426         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15427         types are not being provided by gnulib.
15428         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15429         types are supported.
15430
15431 2007-03-10  Bruno Haible  <bruno@clisp.org>
15432
15433         * lib/stdio_.h (__attribute__): New macro.
15434         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15435         vsprintf): Specify __attribute__ __format__ for GCC.
15436         Suggested by Eric Blake.
15437
15438 2007-03-09  Bruno Haible  <bruno@clisp.org>
15439
15440         * modules/printf-posix-tests: New file.
15441         * tests/test-printf-posix.sh: New file.
15442         * tests/test-printf-posix.c: New file.
15443
15444         * modules/printf-posix: New file.
15445         * lib/printf.c: New file.
15446         * m4/printf-posix-rpl.m4: New file.
15447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15448         REPLACE_PRINTF.
15449         * lib/stdio_.h (printf): New declaration.
15450         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15451         ____strfmon____): New macros.
15452         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15453         REPLACE_PRINTF.
15454
15455 2007-03-09  Bruno Haible  <bruno@clisp.org>
15456
15457         * tests/test-vasnprintf-posix2.sh: New file.
15458         * tests/test-vasnprintf-posix2.c: New file.
15459         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15460         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15461         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15462
15463         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15464         a locale dependent decimal point, rather than always '.'.
15465
15466 2007-03-09  Eric Blake  <ebb9@byu.net>
15467
15468         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15469         spite of platforms like Tandem/NSK that define it to -1.
15470
15471 2007-03-08  Bruno Haible  <bruno@clisp.org>
15472
15473         * modules/vprintf-posix-tests: New file.
15474         * tests/test-vprintf-posix.sh: New file.
15475         * tests/test-vprintf-posix.c: New file.
15476         * tests/test-printf-posix.h: New file.
15477
15478         * modules/vprintf-posix: New file.
15479         * lib/vprintf.c: New file.
15480         * m4/vprintf-posix.m4: New file.
15481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15482         REPLACE_VPRINTF.
15483         * lib/stdio_.h (vprintf): New declaration.
15484         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15485         REPLACE_VPRINTF.
15486
15487 2007-03-08  Bruno Haible  <bruno@clisp.org>
15488
15489         * modules/fprintf-posix-tests: New file.
15490         * tests/test-fprintf-posix.sh: New file.
15491         * tests/test-fprintf-posix.c: New file.
15492
15493         * modules/fprintf-posix: New file.
15494         * lib/fprintf.c: New file.
15495         * m4/fprintf-posix.m4: New file.
15496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15497         REPLACE_FPRINTF.
15498         * lib/stdio_.h (fprintf): New declaration.
15499         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15500         REPLACE_FPRINTF.
15501
15502 2007-03-08  Bruno Haible  <bruno@clisp.org>
15503
15504         * modules/vfprintf-posix-tests: New file.
15505         * tests/test-vfprintf-posix.sh: New file.
15506         * tests/test-vfprintf-posix.c: New file.
15507         * tests/test-fprintf-posix.h: New file.
15508         * tests/test-fprintf-posix.out: New file.
15509
15510         * modules/vfprintf-posix: New file.
15511         * lib/vfprintf.c: New file.
15512         * m4/vfprintf-posix.m4: New file.
15513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15514         REPLACE_VFPRINTF.
15515         * lib/stdio_.h (vfprintf): New declaration.
15516         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15517         REPLACE_VFPRINTF.
15518
15519 2007-03-08  Bruno Haible  <bruno@clisp.org>
15520
15521         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15522
15523 2007-03-08  Bruno Haible  <bruno@clisp.org>
15524
15525         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15526         instead of 'expr' invocations.
15527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15532         Suggested by Paul Eggert.
15533
15534 2007-03-08  Bruno Haible  <bruno@clisp.org>
15535
15536         * modules/fseterr-tests: New file.
15537         * tests/test-fseterr.c: New file.
15538
15539         * modules/fseterr: New file.
15540         * lib/fseterr.h: New file.
15541         * lib/fseterr.c: New file.
15542
15543 2007-03-08  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15546         * lib/getopt_.h: Likewise.
15547         * lib/mbswidth.h: Likewise.
15548         * lib/setenv.h: Likewise.
15549         * lib/vasnprintf.h: Likewise.
15550         * lib/vasprintf.h: Likewise.
15551         * lib/verror.h: Likewise.
15552         * lib/xsetenv.h: Likewise.
15553         * lib/xvasprintf.h: Likewise.
15554
15555 2007-03-08  Jim Meyering  <jim@meyering.net>
15556
15557         * users.txt: Add parted.
15558
15559         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15560
15561 2007-03-07  Bruno Haible  <bruno@clisp.org>
15562
15563         * m4/printf.m4: Make the shell script snippets copy&pastable.
15564
15565 2007-03-02  Bruno Haible  <bruno@clisp.org>
15566
15567         * lib/netinet_in_.h: New file.
15568         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15569         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15570         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15571         (Depends-on): Add absolute-header.
15572         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15573         into netinet/in.h.
15574
15575 2007-03-03  Bruno Haible  <bruno@clisp.org>
15576
15577         * lib/sys_select_.h: New file.
15578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15579         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15580         * modules/sys_select (Files): Add lib/sys_select_.h.
15581         (Depends-on): Add absolute-header.
15582         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15583         into sys/select.h.
15584
15585 2007-03-02  Bruno Haible  <bruno@clisp.org>
15586
15587         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15588         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15589         values.
15590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15591         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15592         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15593         * modules/sys_socket (Depends-on): Add absolute-header.
15594         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15595         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15596         (Include): Remove requirement of inclusion of <sys/types.h>.
15597
15598 2007-03-02  Bruno Haible  <bruno@clisp.org>
15599
15600         * lib/byteswap_.h (bswap_32): Fix formula.
15601
15602 2007-03-06  Bruno Haible  <bruno@clisp.org>
15603
15604         * modules/sprintf-posix-tests: New file.
15605         * tests/test-sprintf-posix.c: New file.
15606
15607         * modules/sprintf-posix: New file.
15608         * lib/sprintf.c: New file.
15609         * m4/sprintf-posix.m4: New file.
15610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15611         REPLACE_SPRINTF.
15612         * lib/stdio_.h (sprintf): New declaration.
15613         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15614         REPLACE_SPRINTF.
15615
15616 2007-03-06  Bruno Haible  <bruno@clisp.org>
15617
15618         * modules/vsprintf-posix-tests: New file.
15619         * tests/test-vsprintf-posix.c: New file.
15620         * tests/test-sprintf-posix.h: New file.
15621
15622         * modules/vsprintf-posix: New file.
15623         * lib/vsprintf.c: New file.
15624         * m4/vsprintf-posix.m4: New file.
15625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15626         REPLACE_VSPRINTF.
15627         * lib/stdio_.h (vsprintf): New declaration.
15628         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15629         REPLACE_VSPRINTF.
15630
15631 2007-03-06  Bruno Haible  <bruno@clisp.org>
15632
15633         * modules/vsnprintf (Depend-on): Remove minmax.
15634
15635 2007-03-06  Bruno Haible  <bruno@clisp.org>
15636
15637         * modules/snprintf-posix-tests: New file.
15638         * tests/test-snprintf-posix.c: New file.
15639
15640         * modules/snprintf-posix: New file.
15641         * m4/snprintf-posix.m4: New file.
15642         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15643         gl_FUNC_SNPRINTF.
15644         (gl_FUNC_SNPRINTF): Invoke it.
15645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15646         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15647         is set.
15648         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15649
15650 2007-03-06  Bruno Haible  <bruno@clisp.org>
15651
15652         * modules/vsnprintf-posix-tests: New file.
15653         * tests/test-vsnprintf-posix.c: New file.
15654         * tests/test-snprintf-posix.h: New file.
15655
15656         * modules/vsnprintf-posix: New file.
15657         * m4/vsnprintf-posix.m4: New file.
15658         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15659         gl_FUNC_VSNPRINTF.
15660         (gl_FUNC_VSNPRINTF): Invoke it.
15661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15662         * lib/stdio_.h (vsnprintf): Define as a replacement if
15663         REPLACE_VSNPRINTF is set.
15664         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15665
15666 2007-03-06  Bruno Haible  <bruno@clisp.org>
15667
15668         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15670
15671 2007-03-06  Bruno Haible  <bruno@clisp.org>
15672
15673         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15674         (asinl): Declare also if HAVE_DECL_ASINL is set.
15675         (atanl): Declare also if HAVE_DECL_ATANL is set.
15676         (ceill): Declare also if HAVE_DECL_CEILL is set.
15677         (cosl): Declare also if HAVE_DECL_COSL is set.
15678         (expl): Declare also if HAVE_DECL_EXPL is set.
15679         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15680         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15681         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15682         (logl): Declare also if HAVE_DECL_LOGL is set.
15683         (sinl): Declare also if HAVE_DECL_SINL is set.
15684         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15685         (tanl): Declare also if HAVE_DECL_TANL is set.
15686         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15688         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15689         declaration of frexpl, ldexpl.
15690         * modules/printf-frexpl (Depends-on): Add math.
15691         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15692
15693 2007-03-05  Bruno Haible  <bruno@clisp.org>
15694
15695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15696         frexpl and ldexpl are declared.
15697         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15698
15699 2007-03-05  Bruno Haible  <bruno@clisp.org>
15700
15701         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15702         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15703
15704 2007-03-05  Bruno Haible  <bruno@clisp.org>
15705
15706         * lib/stdio_.h: Include <stddef.h>.
15707
15708 2007-03-05  Bruno Haible  <bruno@clisp.org>
15709
15710         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15711
15712 2007-03-05  Bruno Haible  <bruno@clisp.org>
15713
15714         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15715         NetBSD 4, from Ralf Wildenhues.
15716
15717 2007-03-04  Bruno Haible  <bruno@clisp.org>
15718
15719         * lib/vasprintf.h: Update #if logic for the case when the functions
15720         exist but are overridden.
15721
15722 2007-03-04  Bruno Haible  <bruno@clisp.org>
15723
15724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15725         implementations: glibc-2.4 and MacOS X 10.3.
15726         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15727         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15728         * tests/test-vasprintf-posix.c (test_function): Likewise.
15729
15730 2007-03-04  Bruno Haible  <bruno@clisp.org>
15731
15732         * modules/vasprintf-posix-tests: New file.
15733         * tests/test-vasprintf-posix.c: New file.
15734
15735         * modules/vasprintf-posix: New file.
15736         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15737         defined.
15738         * m4/vasprintf-posix.m4: New file.
15739         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15740         gl_FUNC_VASPRINTF.
15741         (gl_FUNC_VASPRINTF): Invoke it.
15742         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15743         here.
15744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15745
15746 2007-03-04  Bruno Haible  <bruno@clisp.org>
15747
15748         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15749         REPLACE_GETTIMEOFDAY.
15750         * modules/sys_time (Makefile.am): Likewise.
15751         * m4/sys_time_h.m4: Likewise.
15752         * m4/gettimeofday.m4: Likewise.
15753
15754 2007-03-04  Bruno Haible  <bruno@clisp.org>
15755
15756         * modules/vasnprintf-posix-tests: New file.
15757         * tests/test-vasnprintf-posix.c: New file.
15758
15759         * modules/vasnprintf-posix: New file.
15760         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15761         printf-frexpl.h.
15762         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15763         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15764         REPLACE_VASNPRINTF is defined.
15765         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15766         gl_FUNC_VASNPRINTF.
15767         (gl_FUNC_VASNPRINTF): Invoke it.
15768         * m4/vasnprintf-posix.m4: New file.
15769         * m4/printf.m4: New file.
15770
15771 2007-03-04  Bruno Haible  <bruno@clisp.org>
15772
15773         Compile progreloc.c only if --enable-relocatable is specified.
15774         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15775         if --enable-relocatable was specified.
15776         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15777         lib_SOURCES.
15778
15779 2007-03-04  Jim Meyering  <jim@meyering.net>
15780
15781         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15782         Use it consistently, rather than enumerating errno constants.
15783
15784 2007-03-04  Bruno Haible  <bruno@clisp.org>
15785
15786         * modules/xvasprintf-tests: New file.
15787         * tests/test-xvasprintf.c: New file.
15788
15789         * modules/vasprintf-tests: New file.
15790         * tests/test-vasprintf.c: New file.
15791
15792         * modules/vasnprintf-tests: New file.
15793         * tests/test-vasnprintf.c: New file.
15794
15795         * modules/vsnprintf-tests: New file.
15796         * tests/test-vsnprintf.c: New file.
15797
15798         * modules/snprintf-tests: New file.
15799         * tests/test-snprintf.c: New file.
15800
15801 2007-03-04  Bruno Haible  <bruno@clisp.org>
15802
15803         Compile relocatable.c only if --enable-relocatable is specified.
15804         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15805         gl_RELOCATABLE_LIBRARY.
15806         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15807         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15808         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15809         gl_RELOCATABLE_LIBRARY.
15810         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15811         (Makefile.am): Remove lib_SOURCES.
15812         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15813         gl_RELOCATABLE_LIBRARY.
15814         (Makefile.am): Remove lib_SOURCES.
15815         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15816         always.
15817         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15818         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15819
15820 2007-03-04  Bruno Haible  <bruno@clisp.org>
15821
15822         * modules/argmatch-tests: New file.
15823         * tests/test-argmatch.c: New file.
15824
15825         * tests/test-allocsa.c (main): Halve the number of loop runs.
15826
15827         * modules/alloca-opt-tests: New file.
15828         * tests/test-alloca-opt.c: New file.
15829
15830 2007-03-04  Jim Meyering  <jim@meyering.net>
15831
15832         Work around difference between Linux ACLs and Solaris 10 ZFS.
15833         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15834         for EINVAL.
15835
15836 2007-03-03  Bruno Haible  <bruno@clisp.org>
15837
15838         * modules/relocatable-prog (Depends-on): Add back progreloc's
15839         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15840
15841 2007-03-03  Bruno Haible  <bruno@clisp.org>
15842
15843         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15844         * modules/relocatable-lib: New file.
15845
15846 2007-03-03  Bruno Haible  <bruno@clisp.org>
15847
15848         * modules/relocatable-prog: Renamed from modules/relocatable.
15849         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15850
15851 2007-03-03  Bruno Haible  <bruno@clisp.org>
15852
15853         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15854         m4/relocatable-lib.m4.
15855         (Depends-on): Remove 'relocatable'.
15856         (configure.ac): Add gl_RELOCATABLE_NOP.
15857
15858 2007-03-03  Bruno Haible  <bruno@clisp.org>
15859
15860         * modules/relocatable-prog-wrapper: New file.
15861         * modules/relocatable (Depends-on): Add it. Remove all other
15862         dependencies except progname.
15863         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15864
15865         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15866         (gl_FUNC_STRERROR): Nop.
15867         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15868
15869         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15870         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15871
15872         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15873         (gl_FUNC_READLINK): Update.
15874
15875         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15876
15877 2007-03-03  Bruno Haible  <bruno@clisp.org>
15878
15879         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15880         * modules/xreadlink (Depends-on): Add unistd.
15881         * modules/xreadlink-with-size (Depends-on): Likewise.
15882
15883 2007-03-03  Bruno Haible  <bruno@clisp.org>
15884
15885         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15886         extracted from gt_FUNC_SETENV.
15887         (gt_FUNC_SETENV): Remove macro.
15888         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15889         remove gt_FUNC_SETENV.
15890
15891 2007-03-03  Bruno Haible  <bruno@clisp.org>
15892
15893         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15894         ENABLE_RELOCATABLE here.
15895         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15896
15897 2007-03-03  Bruno Haible  <bruno@clisp.org>
15898
15899         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15900         * tests/test-rbtreehash_list.c: Include progname.h.
15901         (main): Call set_program_name.
15902
15903         * modules/rbtree-oset-tests (Depends-on): Add progname.
15904         * tests/test-rbtree_oset.c: Include progname.h.
15905         (main): Call set_program_name.
15906
15907         * modules/rbtree-list-tests (Depends-on): Add progname.
15908         * tests/test-rbtree_list.c: Include progname.h.
15909         (main): Call set_program_name.
15910
15911         * modules/linked-list-tests (Depends-on): Add progname.
15912         * tests/test-linked_list.c: Include progname.h.
15913         (main): Call set_program_name.
15914
15915 2007-03-03  Bruno Haible  <bruno@clisp.org>
15916
15917         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15918         All uses of __restrict changed to _Restrict_.
15919         * lib/glob_.h (__restrict): Remove macro.
15920
15921 2007-03-02  Bruno Haible  <bruno@clisp.org>
15922
15923         * modules/gettext (configure.ac): Require gettext infrastructure
15924         from version 0.16.1.
15925
15926 2007-03-02  Bruno Haible  <bruno@clisp.org>
15927
15928         * modules/linkedhash-list-tests (Depends-on): Add progname.
15929         * tests/test-linkedhash_list.c: Include progname.h.
15930         (main): Call set_program_name.
15931
15932         * modules/carray-list-tests (Depends-on): Add progname.
15933         * tests/test-carray_list.c: Include progname.h.
15934         (main): Call set_program_name.
15935
15936         * modules/avltreehash-list-tests (Depends-on): Add progname.
15937         * tests/test-avltreehash_list.c: Include progname.h.
15938         (main): Call set_program_name.
15939
15940         * modules/avltree-oset-tests (Depends-on): Add progname.
15941         * tests/test-avltree_oset.c: Include progname.h.
15942         (main): Call set_program_name.
15943
15944         * modules/avltree-list-tests (Depends-on): Add progname.
15945         * tests/test-avltree_list.c: Include progname.h.
15946         (main): Call set_program_name.
15947
15948         * modules/array-oset-tests (Depends-on): Add progname.
15949         * tests/test-array_oset.c: Include progname.h.
15950         (main): Call set_program_name.
15951
15952         * modules/array-list-tests (Depends-on): Add progname.
15953         * tests/test-array_list.c: Include progname.h.
15954         (main): Call set_program_name.
15955
15956         * modules/argp-tests (Depends-on): Add progname.
15957         * tests/test-argp.c: Include argp.h first. Include progname.h.
15958         (main): Call set_program_name.
15959
15960 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         * doc/gnulib-tool.texi (Initial import): Reword description of
15963         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15964         limited effect even if defined after the first system include.
15965
15966 2007-03-01  Bruno Haible  <bruno@clisp.org>
15967
15968         * build-aux/config.libpath: Update to libtool-1.5.22.
15969         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15970
15971 2007-03-01  Bruno Haible  <bruno@clisp.org>
15972
15973         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15974         foo_CFLAGS.
15975         Reported by Ralf Wildenhues.
15976
15977 2007-03-01  Bruno Haible  <bruno@clisp.org>
15978
15979         * build-aux/install-reloc: Remove object files left over by some
15980         compilers.
15981         Reported by Ralf Wildenhues.
15982
15983 2007-03-01  Bruno Haible  <bruno@clisp.org>
15984
15985         * build-aux/install-reloc: Break long lines.
15986
15987 2007-03-01  Bruno Haible  <bruno@clisp.org>
15988
15989         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15990         Reported by Ralf Wildenhues.
15991
15992 2007-03-01  Bruno Haible  <bruno@clisp.org>
15993
15994         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15995         include ordering constraints.
15996
15997 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15998
15999         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
16000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
16001         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
16002         as another example.
16003         * lib/time_.h: Fix misspelling.
16004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16005         Require gl_HEADER_TIME_H_DEFAULTS.
16006         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
16007         * m4/time_r.m4 (gl_TIME_R): Likewise.
16008         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
16009
16010 2007-03-01  Bruno Haible  <bruno@clisp.org>
16011
16012         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
16013         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16014
16015 2007-03-01  Jim Meyering  <jim@meyering.net>
16016
16017         * modules/xreadlink (Maintainer): Add my name.
16018         * modules/xreadlink-with-size (Depends-on): Alphabetize.
16019
16020 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
16021             Bruno Haible  <bruno@clisp.org>
16022
16023         * build-aux/install-reloc: Compile also c-ctype.c.
16024         * build-aux/relocatable.sh.in: New file.
16025         * doc/relocatable.texi: New file.
16026         * doc/relocatable-maint.texi: New file.
16027         * doc/gnulib.texi: Include relocatable-maint.texi.
16028         * lib/progreloc.c: Include unistd.h unconditionally.
16029         * lib/relocwrapper.c: Include unistd.h unconditionally.
16030         Include c-ctype.h.
16031         (add_dotbin): Use c_tolower.
16032         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
16033         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
16034         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
16035         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
16036         to m4/relocatable-lib.m4.
16037         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
16038         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
16039         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
16040         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
16041         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
16042         * modules/relocatable: New file.
16043         * modules/relocatable-lib: New file.
16044         * modules/relocatable-script: New file.
16045
16046 2007-02-28  Bruno Haible  <bruno@clisp.org>
16047
16048         Import --enable-relocatable infrastructure.
16049         * build-aux/config.libpath: New file, from GNU gettext.
16050         * build-aux/install-reloc: New file, from GNU gettext.
16051         * build-aux/reloc-ldflags: New file, from GNU gettext.
16052         * lib/relocatable.h: New file, from GNU gettext.
16053         * lib/relocatable.c: New file, from GNU gettext.
16054         * lib/relocwrapper.c: New file, from GNU gettext.
16055         * m4/relocatable.m4: New file, from GNU gettext.
16056
16057 2007-02-28  Bruno Haible  <bruno@clisp.org>
16058
16059         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
16060
16061         * modules/xreadlink: New file, from GNU gettext with modifications.
16062         * lib/xreadlink.c: New file, from GNU gettext.
16063         * lib/xreadlink.h: Add comments.
16064         (xreadlink): New declaration.
16065
16066         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
16067         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
16068         lib/xreadlink-with-size.c.
16069         (configure.ac): Remove gl_XREADLINK invocation.
16070         (Makefile.am): Augment lib_SOURCES.
16071         * m4/xreadlink.m4: Remove file.
16072         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
16073         (xreadlink_with_size): Renamed from xreadink.
16074         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
16075         * modules/canonicalize (Depends-on): Replace xreadlink with
16076         xreadlink-with-size.
16077         * lib/canonicalize.c (canonicalize_filename_mode): Update.
16078
16079 2007-02-25  Jim Meyering  <jim@meyering.net>
16080
16081         * build-aux/announce-gen: When complaining about excess arguments,
16082         list them.
16083
16084 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16085
16086         * README: Document signed integer overflow situation more
16087         accurately.
16088
16089 2007-02-25  Bruno Haible  <bruno@clisp.org>
16090
16091         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
16092         'a' or 'A' conversion.
16093
16094 2007-02-25  Bruno Haible  <bruno@clisp.org>
16095
16096         * modules/filename: Renamed from modules/pathname.
16097         (Files): Replace lib/pathname.h with lib/filename.h. Replace
16098         lib/concatpath.c with lib/concat-filename.c.
16099         (Makefile.am): Update.
16100         (Include): Replace pathname.h with filename.h.
16101         * lib/filename.h: Renamed from lib/pathname.h.
16102         (concatenated_filename): Renamed from concatenated_pathname.
16103         * lib/concat-filename.c: Renamed from lib/concatpath.c.
16104         (concatenated_filename): Renamed from concatenated_pathname.
16105         * lib/findprog.c: Include filename.h instead of pathname.h.
16106         (find_in_path): Update.
16107         * lib/javacomp.c: Include filename.h instead of pathname.h.
16108         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16109         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16110         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16111         is_oldgcj_14_13_usable, is_javac_usable): Update.
16112         * lib/javaexec.c: Include filename.h instead of pathname.h.
16113         (execute_java_class): Update.
16114         * modules/findprog: Update.
16115         * modules/javacomp: Update.
16116         * modules/javaexec: Update.
16117         * MODULES.html.sh (File system functions): Add 'filename', remove
16118         'pathname'.
16119
16120 2007-02-25  Bruno Haible  <bruno@clisp.org>
16121
16122         * modules/printf-frexpl-tests: New file.
16123         * tests/test-printf-frexpl.c: New file.
16124
16125         * modules/printf-frexpl: New file.
16126         * lib/printf-frexpl.h: New file.
16127         * lib/printf-frexpl.c: New file.
16128         * m4/printf-frexpl.m4: New file.
16129
16130 2007-02-25  Bruno Haible  <bruno@clisp.org>
16131
16132         * modules/printf-frexp-tests: New file.
16133         * tests/test-printf-frexp.c: New file.
16134
16135         * modules/printf-frexp: New file.
16136         * lib/printf-frexp.h: New file.
16137         * lib/printf-frexp.c: New file.
16138         * m4/printf-frexp.m4: New file.
16139
16140 2007-02-25  Bruno Haible  <bruno@clisp.org>
16141
16142         Assume automake >= 1.10 for the tests.
16143         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
16144         * modules/arctwo-tests: Likewise.
16145         * modules/argp-tests: Likewise.
16146         * modules/avltree-list-tests: Likewise.
16147         * modules/avltree-oset-tests: Likewise.
16148         * modules/avltreehash-list-tests: Likewise.
16149         * modules/carray-list-tests: Likewise.
16150         * modules/crc-tests: Likewise.
16151         * modules/des-tests: Likewise.
16152         * modules/gc-arcfour-tests: Likewise.
16153         * modules/gc-arctwo-tests: Likewise.
16154         * modules/gc-des-tests: Likewise.
16155         * modules/gc-hmac-md5-tests: Likewise.
16156         * modules/gc-hmac-sha1-tests: Likewise.
16157         * modules/gc-md2-tests: Likewise.
16158         * modules/gc-md4-tests: Likewise.
16159         * modules/gc-md5-tests: Likewise.
16160         * modules/gc-pbkdf2-sha1-tests: Likewise.
16161         * modules/gc-rijndael-tests: Likewise.
16162         * modules/gc-sha1-tests: Likewise.
16163         * modules/gc-tests: Likewise.
16164         * modules/getaddrinfo-tests: Likewise.
16165         * modules/hmac-md5-tests: Likewise.
16166         * modules/hmac-sha1-tests: Likewise.
16167         * modules/linked-list-tests: Likewise.
16168         * modules/linkedhash-list-tests: Likewise.
16169         * modules/lock-tests: Likewise.
16170         * modules/md2-tests: Likewise.
16171         * modules/md4-tests: Likewise.
16172         * modules/md5-tests: Likewise.
16173         * modules/rbtree-list-tests: Likewise.
16174         * modules/rbtree-oset-tests: Likewise.
16175         * modules/rbtreehash-list-tests: Likewise.
16176         * modules/read-file-tests: Likewise.
16177         * modules/rijndael-tests: Likewise.
16178         * modules/stdint-tests: Likewise.
16179         * modules/tls-tests: Likewise.
16180
16181 2007-02-24  Bruno Haible  <bruno@clisp.org>
16182
16183         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16184         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16185         function; instead check whether isnan with a double argument links.
16186         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16187         function; instead check whether isnan with a 'long double' argument
16188         links.
16189         Reported by Eric Blake <ebb9@byu.net>.
16190
16191 2007-02-24  Bruno Haible  <bruno@clisp.org>
16192
16193         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16194         defined.
16195         * lib/isnanl.c: Remove all code. Just include isnan.c.
16196         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16197
16198 2007-02-25  Jim Meyering  <jim@meyering.net>
16199
16200         Avoid conflicting types for 'unsetenv' on FreeBSD.
16201         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16202         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16203         in stdlib.h.
16204
16205 2007-02-24  Bruno Haible  <bruno@clisp.org>
16206
16207         * modules/isnanl-nolibm-tests: New file.
16208         * tests/test-isnanl.c: New file.
16209
16210         * modules/isnanl-nolibm: New file.
16211         * lib/isnanl.h: New file.
16212         * lib/isnanl.c: New file.
16213         * m4/isnanl.m4: New file.
16214
16215 2007-02-24  Bruno Haible  <bruno@clisp.org>
16216
16217         * modules/isnan-nolibm-tests: New file.
16218         * tests/test-isnan.c: New file.
16219
16220         * modules/isnan-nolibm: New file.
16221         * lib/isnan.h: New file.
16222         * lib/isnan.c: New file.
16223         * m4/isnan.m4: New file.
16224
16225 2007-02-24  Bruno Haible  <bruno@clisp.org>
16226
16227         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16228         assume that an exponent fits in 20 bits.
16229
16230 2007-02-24  Jim Meyering  <jim@meyering.net>
16231
16232         * m4/regex.m4: Update the description of the configure-time option,
16233         --without-included-regex, to state accurately what the defaults are,
16234         and perhaps to give people an idea why using this option is risky.
16235
16236 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16237
16238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16239         loops on small arguments.  This attempts to avoid the problem
16240         Bruno Haible reported for AIX 4.3.2 in
16241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16242
16243 2007-02-23  Bruno Haible  <bruno@clisp.org>
16244
16245         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16246         Needed for help2man.
16247
16248 2007-02-23  Karl Berry  <karl@gnu.org>
16249
16250         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16251         exists, foo.h should be cvs-ignored, not committed.
16252
16253 2007-02-23  Eric Blake  <ebb9@byu.net>
16254
16255         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16256         * lib/stat-time.h (includes): Likewise.
16257         * lib/utimecmp.c (includes): Likewise.
16258         * lib/utimens.h (includes): Likewise.
16259         * lib/getdate.y (includes): Also include "timespec.h" for use
16260         internal to the module.
16261         * modules/utimens (Depends-on): Revert yesterday's patch.
16262         * modules/nanosleep (Depends-on): Add missing dependency.
16263
16264 2007-02-22  Bruno Haible  <bruno@clisp.org>
16265
16266         * lib/glob.c: Don't include getlogin_r.h.
16267
16268 2007-02-22  Jim Meyering  <jim@meyering.net>
16269
16270         * modules/utimens (Depends-on): Add timespec, required for
16271         utimens.h's inclusion of timespec.h.
16272
16273 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16274
16275         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16276         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16277         Schwab in
16278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16279         I'll try to think of a better way to fix the Solaris problem.
16280
16281         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16282         like glibc; on Solaris 10, it fails with errno == EINVAL.
16283         POSIX says the behavior is unspecified if the first argument is NULL,
16284         so play it safe and never pass NULL to the system getcwd.
16285
16286 2007-02-21  Jim Meyering  <jim@meyering.net>
16287
16288         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16289         of gettimeofday.  It would conflict with the one now always
16290         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16291         an IRIX 6.5 build failure.
16292
16293 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16294
16295         Minor fixups to port to Solaris 10 with Sun C 5.8.
16296         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16297         * modules/getcwd (Depends-on): Add dirfd.
16298         * lib/putenv.c (putenv): #undef it.
16299         (rpl_putenv): New decl.
16300         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16301
16302 2007-02-20  Bruno Haible  <bruno@clisp.org>
16303
16304         * modules/stdio-tests: New file.
16305         * tests/test-stdio.c: New file.
16306
16307         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16308         (Depends-on): Add stdio.
16309         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16310         (Include): Use <stdio.h> instead of vsnprintf.h.
16311         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16312         HAVE_DECL_VSNPRINTF.
16313         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16314
16315         * modules/snprintf (Files): Remove lib/snprintf.h.
16316         (Depends-on): Add stdio.
16317         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16318         (Include): Use <stdio.h> instead of snprintf.h.
16319         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16320         HAVE_DECL_SNPRINTF.
16321         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16322         * lib/getaddrinfo.c: Likewise.
16323
16324         * modules/stdio: New file.
16325         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16326         * lib/snprintf.h: Remove file.
16327         * lib/vsnprintf.h: Remove file.
16328         * lib/.cppi-disable: Remove snprintf.h.
16329         * m4/stdio_h.m4: New file.
16330         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16331
16332 2007-02-20  Jim Meyering  <jim@meyering.net>
16333
16334         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16335         used by e.g., mingw.  From Bruno Haible.
16336
16337 2007-02-19  Bruno Haible  <bruno@clisp.org>
16338
16339         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16340         warnings.
16341         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16342
16343 2007-02-19  Bruno Haible  <bruno@clisp.org>
16344
16345         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16346         from mingw users.
16347
16348 2007-02-19  Bruno Haible  <bruno@clisp.org>
16349
16350         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16351         warnings.
16352         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16353
16354 2007-02-19  Jim Meyering  <jim@meyering.net>
16355
16356         Don't use FD after a successful "fdopendir (fd)".
16357         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16358         Reset it by calling dirfd on the just-obtained DIR*.
16359
16360         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16361         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16362
16363 2007-02-18  Bruno Haible  <bruno@clisp.org>
16364
16365         * lib/readlink.c: Include <unistd.h>.
16366         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16367         HAVE_READLINK.
16368         * modules/readlink (Depends-on): Add unistd.
16369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16370         (Include): Add <unistd.h>.
16371
16372         * lib/getlogin_r.h: Remove file.
16373         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16374         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16375         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16376         HAVE_DECL_GETLOGIN_R.
16377         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16379         (Include): Use <unistd.h> instead of getlogin_r.h.
16380
16381         * lib/getcwd.h: Remove file.
16382         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16383         * lib/xgetcwd.c: Likewise.
16384         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16385         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16386         * modules/getcwd (Files): Remove lib/getcwd.h.
16387         (Depends-on): Add unistd.
16388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16389         (Include): Use <unistd.h> instad of getcwd.h.
16390
16391         * lib/ftruncate.c: Include <unistd.h> first.
16392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16393         Set HAVE_FTRUNCATE.
16394         * modules/ftruncate (Depends-on): Add unistd.
16395         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16396
16397         * lib/fchdir.c: Include <unistd.h> first.
16398         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16400         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16401         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16402         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16403
16404         * lib/dup2.c: Include <unistd.h> first.
16405         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16406         HAVE_DUP2.
16407         * modules/dup2 (Depends-on): Add unistd.
16408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16409
16410         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16411         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16412         REPLACE_CHOWN. Don't define chown as a macro here.
16413         * modules/chown (Depends-on): Add unistd.
16414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16415
16416         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16417         Add definition for GL_LINK_WARNING.
16418         (chown, dup2): New declarations.
16419         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16420         link warning.
16421         (ftruncate): New declaration.
16422         (getcwd): New declaration, taken from old getcwd.h.
16423         (getlogin_r): New declaration, taken from old getlogin_r.h.
16424         (readlink): New declaration.
16425         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16426         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16427         (gl_PREREQ_UNISTD): Remove macro.
16428         (gl_UNISTD_MODULE_INDICATOR): New macro.
16429         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16430         many new variables. Don't set UNISTD_H.
16431         * modules/unistd (Description): Change.
16432         (Depends-on): Add link-warning.
16433         (configure.ac): Update.
16434         (Makefile.am): Create unistd.h always. Substitute many new variables
16435         into it.
16436
16437 2007-02-18  Bruno Haible  <bruno@clisp.org>
16438
16439         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16440         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16441         HAVE_GETSUBOPT.
16442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16443         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16444         * lib/getsubopt.h: Remove file.
16445         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16446         (Depends-on): Add stdlib.
16447         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16448         (Includes): Use <stdlib.h> instead of getsubopt.h.
16449         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16450         Set HAVE_GETSUBOPT.
16451         * lib/getsubopt.c: Don't include getsubopt.h.
16452
16453 2007-02-18  Bruno Haible  <bruno@clisp.org>
16454
16455         * modules/fchdir (Depends-on): Add dup2.
16456
16457 2007-02-18  Bruno Haible  <bruno@clisp.org>
16458
16459         * lib/stdlib_.h: Handle glibc's special invocation convention
16460         specially.
16461
16462 2007-02-18  Bruno Haible  <bruno@clisp.org>
16463
16464         * modules/stdlib-tests: New file.
16465         * tests/test-stdlib.c: New file.
16466
16467         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16468         (Depends-on): Add stdlib.
16469         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16470         (Includes): Use <stdlib.h> instead of mkstemp.h.
16471         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16472         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16473         * lib/mkstemp.c: Don't include mkstemp.h.
16474         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16475         * lib/stdlib--.h: Don't include mkstemp.h.
16476
16477         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16478         (Depends-on): Add stdlib.
16479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16480         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16481         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16482         HAVE_MKDTEMP.
16483         * lib/mkdtemp.c: Don't include mkdtemp.h.
16484         * lib/clean-temp.c: Don't include mkdtemp.h.
16485
16486         * modules/exit (Files): Remove lib/exit.h.
16487         (Depends-on): Add stdlib.
16488         (Makefile.am): Remove lib_SOURCES.
16489         (Include): Use <stdlib.h> instead of exit.h.
16490         * lib/argmatch.c: Don't include exit.h.
16491         * lib/execute.c: Likewise.
16492         * lib/pagealign_alloc.c: Likewise.
16493         * lib/pipe.c: Likewise.
16494         * lib/wait-process.c: Likewise.
16495         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16496         * lib/exitfail.c: Likewise.
16497         * lib/savewd.c: Likewise.
16498         * lib/xsetenv.c: Likewise.
16499
16500         * modules/stdlib: New file.
16501         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16502         and extra comments about mkstemp().
16503         * lib/exit.h: Remove file.
16504         * lib/mkdtemp.h: Remove file.
16505         * lib/mkstemp.h: Remove file.
16506         * m4/stdlib_h.m4: New file.
16507         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16508
16509 2007-02-18  Bruno Haible  <bruno@clisp.org>
16510
16511         * modules/math-tests: New file.
16512         * tests/test-math.c: New file.
16513
16514         * modules/math: New file.
16515         * modules/mathl (Files): Remove lib/mathl.h.
16516         (Depends-on): Add math.
16517         (Makefile.am): Don't mention mathl.h.
16518         (Include): Use <math.h> instead of mathl.h.
16519         * lib/math_.h: New file.
16520         * lib/mathl.h: Remove file.
16521         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16522         mathl.h.
16523         * lib/asinl.c: Likewise.
16524         * lib/atanl.c: Likewise.
16525         * lib/ceill.c: Likewise.
16526         * lib/cosl.c: Likewise.
16527         * lib/expl.c: Likewise.
16528         * lib/floorl.c: Likewise.
16529         * lib/frexpl.c: Likewise.
16530         * lib/ldexpl.c: Likewise.
16531         * lib/logl.c: Likewise.
16532         * lib/sincosl.c: Likewise.
16533         * lib/sinl.c: Likewise.
16534         * lib/sqrtl.c: Likewise.
16535         * lib/tanl.c: Likewise.
16536         * lib/trigl.c: Likewise.
16537         * m4/math_h.m4: New file.
16538         * MODULES.html.sh (Mathematics): Add math.
16539
16540 2007-02-17  Bruno Haible  <bruno@clisp.org>
16541
16542         * modules/wctype-tests: New file.
16543         * tests/test-wctype.c: New file.
16544
16545         * modules/wchar-tests: New file.
16546         * tests/test-wchar.c: New file.
16547
16548         * modules/unistd-tests: New file.
16549         * tests/test-unistd.c: New file.
16550
16551         * modules/time-tests: New file.
16552         * tests/test-time.c: New file.
16553
16554         * modules/sysexits-tests: New file.
16555         * tests/test-sysexits.c: New file.
16556
16557         * modules/sys_time-tests: New file.
16558         * tests/test-sys_time.c: New file.
16559
16560         * modules/sys_stat-tests: New file.
16561         * tests/test-sys_stat.c: New file.
16562
16563         * modules/sys_socket-tests: New file.
16564         * tests/test-sys_socket.c: New file.
16565
16566         * modules/sys_select-tests: New file.
16567         * tests/test-sys_select.c: New file.
16568
16569         * modules/string-tests: New file.
16570         * tests/test-string.c: New file.
16571
16572         * modules/stdbool-tests: New file.
16573         * tests/test-stdbool.c: New file.
16574
16575         * modules/netinet_in-tests: New file.
16576         * tests/test-netinet_in.c: New file.
16577
16578         * modules/inttypes-tests: New file.
16579         * tests/test-inttypes.c: New file.
16580
16581         * modules/fcntl-tests: New file.
16582         * tests/test-fcntl.c: New file.
16583
16584         * modules/byteswap-tests: New file.
16585         * tests/test-byteswap.c: New file.
16586
16587         * modules/arpa_inet-tests: New file.
16588         * tests/test-arpa_inet.c: New file.
16589
16590 2007-02-17  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16593         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16594         if the corresponding module is not enabled. Emit link warnings if
16595         the function is used nevertheless.
16596         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16597         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16598         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16599         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16600         * modules/inttypes (Depends-on): Add link-warning.
16601         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16602         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16603         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16604         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16605         * modules/imaxdiv (configure.ac): Likewise.
16606         * modules/strtoimax (configure.ac): Likewise.
16607         * modules/strtoumax (configure.ac): Likewise.
16608
16609 2007-02-17  Bruno Haible  <bruno@clisp.org>
16610
16611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16612         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16613         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16614         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16615
16616 2007-02-17  Bruno Haible  <bruno@clisp.org>
16617
16618         * modules/link-warning: New file.
16619         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16620         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16621         * modules/string (Depends-on): Add link-warning.
16622         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16623         string.h.
16624         * MODULES.html.sh (Support for building libraries and executables): Add
16625         link-warning.
16626
16627 2007-02-17  Bruno Haible  <bruno@clisp.org>
16628
16629         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16630         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16631         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16632         long lines.
16633
16634 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16635             Bruno Haible  <bruno@clisp.org>
16636
16637         * modules/tmpfile: New file.
16638         * lib/tmpfile.c: New file.
16639         * m4/tmpfile.m4: New file.
16640         * MODULES.html.sh (func_all_modules): New section "Input/output".
16641
16642 2007-02-15  Bruno Haible  <bruno@clisp.org>
16643
16644         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16645         (supports_delete_on_close): New function.
16646         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16647
16648 2007-02-14  Bruno Haible  <bruno@clisp.org>
16649
16650         * modules/mbspcasecmp-tests: New file.
16651         * tests/test-mbspcasecmp.sh: New file.
16652         * tests/test-mbspcasecmp.c: New file.
16653
16654         New module mbspcasecmp.
16655         * modules/mbspcasecmp: New file.
16656         * lib/mbspcasecmp.c: New file.
16657         * lib/string_.h (strncasecmp): Change warning message.
16658         (mbspcasecmp): New declaration.
16659         * m4/mbspcasecmp.m4: New file.
16660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16661         GNULIB_MBSPCASECMP.
16662         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16663         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16664
16665 2007-02-14  Bruno Haible  <bruno@clisp.org>
16666
16667         * modules/mbsncasecmp-tests: New file.
16668         * tests/test-mbsncasecmp.sh: New file.
16669         * tests/test-mbsncasecmp.c: New file.
16670
16671         New module mbsncasecmp.
16672         * modules/mbsncasecmp: New file.
16673         * lib/mbsncasecmp.c: New file.
16674         * lib/string_.h (mbsncasecmp): New declaration.
16675         * m4/mbsncasecmp.m4: New file.
16676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16677         GNULIB_MBSNCASECMP.
16678         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16679         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16680
16681 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16684         Verify that it doesn't overlap with our flags.
16685         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16686         do not have the desired effect in multibyte locales; instead, use
16687         mbscasecmp.
16688         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16689         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16690         we don't require GNU fnmatch ourselves (if our users require it, they
16691         should do so explicitly).
16692
16693         Fix regex code so it doesn't rely on strcasecmp.
16694         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16695         Otherwise, include gnulib's langinfo.h.
16696         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16697         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16698         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16699         * modules/regex (FILES): Remove m4/codeset.m4.
16700         (Depends-on): Add localcharset.  Remove strcase.
16701
16702 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16703
16704         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16705         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16706
16707 2007-02-13  Bruno Haible  <bruno@clisp.org>
16708
16709         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16711
16712 2007-02-12  Bruno Haible  <bruno@clisp.org>
16713
16714         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16715         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16716         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16717         time warning rather than a link error.
16718
16719 2007-02-12  Bruno Haible  <bruno@clisp.org>
16720
16721         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16722         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16724
16725 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16728         args, not 2.
16729
16730 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         New module 'time', so that apps can include <time.h> as per
16733         POSIX and GNU instead of separate include files like time_r.h
16734         and timegm.h.  This implementation tries out a simpler approach
16735         for replacing decls in standard include files (as compared to
16736         the string module), somewhat as an experiment.
16737
16738         * config/srclist.txt: Comment out mktime.c for now.
16739         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16740         since it doesn't apply any more.  Use generic wording instead.
16741         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16742         'time'.
16743         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16744         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16745         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16746         Don't include <sys/types.h>; no longer needed since we assume C89.
16747         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16748         * lib/strftime.c: Likewise.
16749         * lib/time_r.c: Likewise.
16750         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16751         * lib/nanosleep.c: Include <time.h> first, to check interface.
16752         * lib/strptime.c: Likewise.
16753         * lib/time_r.c: Likewise.
16754         * lib/timegm.c: Likewise.
16755         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16756         needed.
16757         * lib/timegm.c: Don't include timegm.h; no longer needed.
16758         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16759         time.h now handles any problems in that area.
16760         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16761         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16762         that time.h defines struct timespec.
16763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16764         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16765         handles that.
16766         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16767         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16768         needed.  Set REPLACE_LOCALTIME.
16769         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16770         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16771         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16772         nanosleep; time_h.m4 now does that.  Don't require
16773         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16774         module handles this now.
16775         * modules/getdate (Depends-on): Remove timespec.  Add time.
16776         * modules/nanosleep (Depends-on): Likewise.
16777         * modules/stat-time (Depends-on): Likewise.
16778         * modules/nanosleep (Include): Include time.h, not timespec.h.
16779         * modules/strptime (Files): Remove lib/strptime.h.
16780         (Depends-on): Add extensions, time.
16781         (Include): Include time.h, not strptime.h.
16782         * modules/time_r (Files): Remove lib/time_r.h.
16783         (Depends-on): Add time.
16784         (Include): Include time.h, not time_r.h.
16785         * modules/timegm: Likewise.
16786         * modules/timespec (Description): Now does timespec-related decls
16787         of our own, instead of struct timespec itself.
16788         (Depends-on): Add time; remove extensions.
16789         (Maintainer): Add self.
16790         * modules/utimecmp (Depends-on): Add time; remove timespec.
16791         * modules/utimens (Depends-on): Likewise.
16792         * modules/xnanosleep (Depends-on): Likewise.
16793
16794 2007-02-11  Bruno Haible  <bruno@clisp.org>
16795
16796         * lib/c-strstr.c: Include allocsa.h.
16797         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16798         * lib/c-strcasestr.c: Include allocsa.h.
16799         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16800         * lib/strcasestr.c: Include allocsa.h.
16801         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16802         * lib/mbsstr.c: Include allocsa.h.
16803         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16804         allocsa/freesa instead of malloc/free.
16805         * lib/mbscasestr.c: Include allocsa.h.
16806         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16807         allocsa/freesa instead of malloc/free.
16808         * modules/c-strstr (Depends-on): Add allocsa.
16809         * modules/c-strcasestr (Depends-on): Likewise.
16810         * modules/strcasestr (Depends-on): Likewise.
16811         * modules/mbsstr (Depends-on): Likewise.
16812         * modules/mbscasestr (Depends-on): Likewise.
16813
16814 2007-02-11  Bruno Haible  <bruno@clisp.org>
16815
16816         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16817
16818         * modules/mbsspn-tests: New file.
16819         * tests/test-mbsspn.sh: New file.
16820         * tests/test-mbsspn.c: New file.
16821
16822 2007-02-11  Bruno Haible  <bruno@clisp.org>
16823
16824         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16825
16826         * modules/mbspbrk-tests: New file.
16827         * tests/test-mbspbrk.sh: New file.
16828         * tests/test-mbspbrk.c: New file.
16829
16830 2007-02-11  Bruno Haible  <bruno@clisp.org>
16831
16832         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16833         unneeded cast.
16834
16835         * modules/mbscspn-tests: New file.
16836         * tests/test-mbscspn.sh: New file.
16837         * tests/test-mbscspn.c: New file.
16838
16839 2007-02-11  Bruno Haible  <bruno@clisp.org>
16840
16841         * modules/mbscasecmp-tests: New file.
16842         * tests/test-mbscasecmp.sh: New file.
16843         * tests/test-mbscasecmp.c: New file.
16844
16845 2007-02-11  Bruno Haible  <bruno@clisp.org>
16846
16847         Ensure O(n) worst-case complexity of mbscasestr.
16848         * lib/mbscasestr.c: Include stdbool.h.
16849         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16850         functions.
16851         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16852         the bookkeeping indicates that it's worth it.
16853         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16854
16855         * modules/mbscasestr-tests: New file.
16856         * tests/test-mbscasestr1.c: New file.
16857         * tests/test-mbscasestr2.sh: New file.
16858         * tests/test-mbscasestr2.c: New file.
16859         * tests/test-mbscasestr3.sh: New file.
16860         * tests/test-mbscasestr3.c: New file.
16861         * tests/test-mbscasestr4.sh: New file.
16862         * tests/test-mbscasestr4.c: New file.
16863         * m4/locale-tr.m4: New file.
16864
16865 2007-02-11  Bruno Haible  <bruno@clisp.org>
16866
16867         Ensure O(n) worst-case complexity of mbsstr.
16868         * lib/mbsstr.c: Include stdbool.h.
16869         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16870         functions.
16871         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16872         bookkeeping indicates that it's worth it.
16873         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16874
16875         * modules/mbsstr-tests: New file.
16876         * tests/test-mbsstr1.c: New file.
16877         * tests/test-mbsstr2.sh: New file.
16878         * tests/test-mbsstr2.c: New file.
16879         * tests/test-mbsstr3.sh: New file.
16880         * tests/test-mbsstr3.c: New file.
16881         * m4/locale-fr.m4: New file.
16882
16883 2007-02-11  Bruno Haible  <bruno@clisp.org>
16884
16885         * lib/mbsrchr.c (mbsrchr): Fix bug.
16886
16887         * modules/mbsrchr-tests: New file.
16888         * tests/test-mbsrchr.sh: New file.
16889         * tests/test-mbsrchr.c: New file.
16890
16891 2007-02-11  Bruno Haible  <bruno@clisp.org>
16892
16893         * lib/mbschr.c (mbschr): Fix bug.
16894
16895         * modules/mbschr-tests: New file.
16896         * tests/test-mbschr.sh: New file.
16897         * tests/test-mbschr.c: New file.
16898         * m4/locale-zh.m4: New file.
16899
16900 2007-02-11  Bruno Haible  <bruno@clisp.org>
16901
16902         Support for copying multibyte string iterators.
16903         * lib/mbiter.h: Include <string.h>.
16904         (mbiter_multi_copy): New function.
16905         (mbi_copy): New macro.
16906         * lib/mbuiter.h: Include <string.h>.
16907         (mbuiter_multi_copy): New function.
16908         (mbui_copy): New macro.
16909
16910 2007-02-11  Bruno Haible  <bruno@clisp.org>
16911
16912         New module mbslen.
16913         * modules/mbslen: New file.
16914         * lib/mbslen.c: New file.
16915         * lib/string_.h (mbslen): New declaration.
16916         * m4/mbslen.m4: New file.
16917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16918         GNULIB_MBSLEN.
16919         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16920         * MODULES.html.sh (Internationalization functions): Add mbslen.
16921
16922 2007-02-11  Bruno Haible  <bruno@clisp.org>
16923
16924         Ensure O(n) worst-case complexity of strcasestr substitute.
16925         * lib/strcasestr.c: Include stdbool.h.
16926         (knuth_morris_pratt): New function.
16927         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16928         bookkeeping indicates that it's worth it.
16929         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16930
16931         * modules/strcasestr-tests: New file.
16932         * tests/test-strcasestr.c: New file.
16933
16934 2007-02-11  Bruno Haible  <bruno@clisp.org>
16935
16936         Ensure O(n) worst-case complexity of c_strcasestr.
16937         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16938         (knuth_morris_pratt): New function.
16939         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16940         the bookkeeping indicates that it's worth it.
16941         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16942
16943         * modules/c-strcasestr-tests: New file.
16944         * tests/test-c-strcasestr.c: New file.
16945
16946 2007-02-11  Bruno Haible  <bruno@clisp.org>
16947
16948         Ensure O(n) worst-case complexity of c_strstr.
16949         * lib/c-strstr.c: Include stdbool.h, string.h.
16950         (knuth_morris_pratt): New function.
16951         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16952         bookkeeping indicates that it's worth it.
16953         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16954
16955         * lib/c-strstr.c: Complete rewrite for maintainability.
16956
16957         * modules/c-strstr-tests: New file.
16958         * tests/test-c-strstr.c: New file.
16959
16960 2007-02-11  Bruno Haible  <bruno@clisp.org>
16961
16962         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16963         5.2.1 and earlier, whereby \055 was treated just like the range
16964         delimiter '-'.
16965         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16966
16967 2007-02-08  Bruno Haible  <bruno@clisp.org>
16968
16969         * modules/regex (Depends-on): Add stdbool.
16970         Reported by Dalibor Topic <robilad@kaffe.org>.
16971
16972 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16973
16974         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16975         Prefer returning from main to exiting from it.
16976         Remove unnecessary parens after sizeof.
16977
16978 2007-02-05  Bruno Haible  <bruno@clisp.org>
16979
16980         New module mbssep.
16981         * modules/mbssep: New file.
16982         * lib/mbssep.c: New file.
16983         * lib/string_.h (strsep): Add a conditional link warning.
16984         (mbssep): New declaration.
16985         * m4/mbssep.m4: New file.
16986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16987         GNULIB_MBSSEP.
16988         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16989         * MODULES.html.sh (Internationalization functions): Add mbssep.
16990
16991 2007-02-05  Bruno Haible  <bruno@clisp.org>
16992
16993         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16994         Optimize search in case of 1 delimiter.
16995
16996 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16997
16998         * lib/acl.h: Include sys/types.h before sys/acl.h.
16999
17000 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
17001
17002         Merge upstream fix for glibc bugzilla #3957:
17003
17004         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
17005
17006         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
17007         bit for RE_HAT_LISTS_NOT_NEWLINE.
17008         (build_charclass_op): Remove bogus comment.
17009
17010 2007-02-05  Simon Josefsson  <simon@josefsson.org>
17011
17012         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
17013
17014 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17015
17016         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
17017         * lib/memmem.c [!defined _LIBC]: Include config.h.
17018
17019 2007-02-04  Bruno Haible  <bruno@clisp.org>
17020
17021         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
17022         warning message.
17023
17024 2007-02-04  Bruno Haible  <bruno@clisp.org>
17025
17026         New module mbstok_r.
17027         * modules/mbstok_r: New file.
17028         * lib/mbstok_r.c: New file.
17029         * lib/string_.h (strtok_r): Change argument names to match the
17030         comments. Add a conditional link warning.
17031         (mbstok_r): New declaration.
17032         * m4/mbstok_r.m4: New file.
17033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17034         GNULIB_MBSTOK_R.
17035         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
17036         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
17037
17038 2007-02-04  Bruno Haible  <bruno@clisp.org>
17039
17040         New module mbsspn.
17041         * modules/mbsspn: New file.
17042         * lib/mbsspn.c: New file.
17043         * lib/string_.h (strspn): Add a conditional link warning.
17044         (mbsspn): New declaration.
17045         * m4/mbsspn.m4: New file.
17046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17047         GNULIB_MBSSPN.
17048         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
17049         * MODULES.html.sh (Internationalization functions): Add mbsspn.
17050
17051 2007-02-04  Bruno Haible  <bruno@clisp.org>
17052
17053         New module mbspbrk.
17054         * modules/mbspbrk: New file.
17055         * lib/mbspbrk.c: New file.
17056         * lib/string_.h (strpbrk): Add a conditional link warning.
17057         (mbspbrk): New declaration.
17058         * m4/mbspbrk.m4: New file.
17059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17060         GNULIB_MBSPBRK.
17061         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
17062         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
17063
17064 2007-02-04  Bruno Haible  <bruno@clisp.org>
17065
17066         New module mbscspn.
17067         * modules/mbscspn: New file.
17068         * lib/mbscspn.c: New file.
17069         * lib/string_.h (strcspn): Add a conditional link warning.
17070         (mbscspn): New declaration.
17071         * m4/mbscspn.m4: New file.
17072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17073         GNULIB_MBSCSPN.
17074         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
17075         * MODULES.html.sh (Internationalization functions): Add mbscspn.
17076
17077 2007-02-04  Bruno Haible  <bruno@clisp.org>
17078
17079         New module mbscasestr, reduced goal of strcasestr.
17080         * modules/mbscasestr: New file.
17081         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
17082         (mbscasestr): Renamed from strcasestr.
17083         * lib/strcasestr.c: Don't include mbuiter.h.
17084         (strcasestr): Remove support for multibyte locales.
17085         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
17086         Change the conditional link warning.
17087         (mbscasestr): New declaration.
17088         * m4/mbscasestr.m4: New file.
17089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
17090         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
17091         REPLACE_STRCASESTR.
17092         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
17093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17094         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17095         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
17096         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
17097         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
17098         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
17099         (Depends-on): Remove mbuiter.
17100         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
17101
17102 2007-02-04  Bruno Haible  <bruno@clisp.org>
17103
17104         Simplify handling of strncasecmp.
17105         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
17106         the conditional link warning.
17107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17108         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
17109         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
17110         * modules/strcase (configure.ac): Don't invoke
17111         gl_STRING_MODULE_INDICATOR.
17112         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
17113
17114 2007-02-04  Bruno Haible  <bruno@clisp.org>
17115
17116         New module mbscasecmp, reduced goal of strcasecmp.
17117         * modules/mbscasecmp: New file.
17118         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
17119         (mbscasecmp): Renamed from strcasecmp.
17120         * lib/strcasecmp.c: Don't include mbuiter.h.
17121         (strcasecmp): Remove support for multibyte locales.
17122         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
17123         Change the conditional link warning.
17124         (mbscasecmp): New declaration.
17125         * m4/mbscasecmp.m4: New file.
17126         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
17127         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
17128         REPLACE_STRCASECMP.
17129         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
17130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17131         GNULIB_MBSCASECMP.
17132         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
17133         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
17134         * modules/strcase (Files): Remove m4/mbrtowc.m4.
17135         (Depends-on): Remove mbuiter.
17136         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
17137
17138 2007-02-04  Bruno Haible  <bruno@clisp.org>
17139
17140         New module mbsstr. Remove module strstr.
17141         * modules/mbsstr: New file.
17142         * modules/strstr: Remove file.
17143         * lib/mbsstr.c: Renamed from lib/strstr.c.
17144         (mbsstr): Renamed from strstr.
17145         * lib/string_.h (strstr): Remove declaration. Change the conditional
17146         link warning.
17147         (mbsstr): New declaration.
17148         * m4/mbsstr.m4: New file.
17149         * m4/strstr.m4: Remove file.
17150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17151         REPLACE_STRSTR.
17152         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
17153         Don't initialize GNULIB_STRSTR.
17154         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17155         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17156         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17157         (Support for systems lacking ANSI C 89): Remove strstr.
17158
17159 2007-02-04  Bruno Haible  <bruno@clisp.org>
17160
17161         New module mbsrchr.
17162         * modules/mbsrchr: New file.
17163         * lib/mbsrchr.c: New file.
17164         * lib/string_.h (strrchr): Add a conditional link warning.
17165         (mbsrchr): New declaration.
17166         * m4/mbsrchr.m4: New file.
17167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17168         GNULIB_MBSRCHR.
17169         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17170         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17171
17172 2007-02-04  Bruno Haible  <bruno@clisp.org>
17173
17174         New module mbschr.
17175         * modules/mbschr: New file.
17176         * lib/mbschr.c: New file.
17177         * lib/string_.h (strchr): Add a conditional link warning.
17178         (mbschr): New declaration.
17179         * m4/mbschr.m4: New file.
17180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17181         GNULIB_MBSCHR.
17182         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17183         * MODULES.html.sh (Internationalization functions): Add mbschr.
17184
17185 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17186
17187         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17188
17189         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17190
17191 2007-02-04  Bruno Haible  <bruno@clisp.org>
17192
17193         New module description section 'configure.ac-early'.
17194         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17195         (func_get_autoconf_early_snippet): New function.
17196         (func_import, func_create_testdir): Use it. Remove special cases for
17197         modules 'extensions' and 'lock'.
17198         * modules/extensions (configure.ac-early): Require
17199         gl_USE_SYSTEM_EXTENSIONS.
17200         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17201
17202 2007-02-04  Bruno Haible  <bruno@clisp.org>
17203
17204         Make use of gcj-4.3's -fsource and -ftarget option.
17205         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17206         and if so try the options -fsource and -ftarget.
17207         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17208         source_version, ftarget_option, target_version arguments.
17209         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17210         (is_envjavac_oldgcj_14_14_usable): Renamed from
17211         is_envjavac_gcj_14_14_usable.
17212         (is_envjavac_oldgcj_14_13_usable): Renamed from
17213         is_envjavac_gcj_14_13_usable.
17214         (is_gcj_present): Update.
17215         (is_gcj_43, is_gcj43_usable): New functions.
17216         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17217         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17218         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17219         try the options -fsource and -ftarget.
17220
17221 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17222
17223         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17224         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17225         larger value.
17226
17227 2007-02-03  Jim Meyering  <jim@meyering.net>
17228
17229         Give tools a better chance to allocate space for very large buffers.
17230         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17231
17232         Make pwd and readlink work also when run with an unreadable parent dir
17233         on systems with openat support.
17234         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17235         provided getcwd function, even when we have openat support.
17236         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17237
17238 2007-02-02  Bruno Haible  <bruno@clisp.org>
17239
17240         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17241         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17242         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17243         portability problems if one of these functions is only used on specific
17244         platforms.
17245         Reported by Paul Eggert.
17246
17247 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17248
17249         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17250         is causing more trouble than it's curing.
17251         * lib/regex_internal.h (__mempcpy): Remove.
17252         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17253         (and make the code a tad smaller to boot).
17254         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17255
17256 2007-02-02  Jim Meyering  <jim@meyering.net>
17257
17258         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17259         section, not in the Makefile.am: one.
17260
17261 2007-02-02  Eric Blake  <ebb9@byu.net>
17262
17263         * lib/strchrnul.c: Always include config.h first.
17264
17265         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17266         gnulib strstr is not necessary here.
17267
17268 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17269
17270         * m4/socklen.m4: Fix typo.
17271
17272 2007-02-02  Eric Blake  <ebb9@byu.net>
17273
17274         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17275         * modules/netinet_in (Makefile.am): Likewise.
17276
17277 2007-02-01  Bruno Haible  <bruno@clisp.org>
17278
17279         * lib/string_.h (GL_LINK_WARNING): New macro.
17280         (strcasecmp, strstr, strcasestr): If provided by the system,
17281         conditionally define as a macro that leads to a warning instead of to
17282         an error.
17283         (strncasecmp): Conditionally define as a macro that leads to a warning.
17284
17285 2007-02-01  Karl Berry  <karl@gnu.org>
17286
17287         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17288
17289 2007-02-01  Bruno Haible  <bruno@clisp.org>
17290
17291         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17292         renamings.
17293
17294 2007-02-01  Eric Blake  <ebb9@byu.net>
17295
17296         * modules/regex (Depends-on): Revert dependence on mempcpy.
17297         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17298         module's definition of mempcpy.
17299         Reported by Paul Eggert.
17300
17301 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17302
17303         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17304         the symbol XYZ before redefining it.  This fixes a problem with
17305         programs that don't use XYZ, when compiled on systems that define
17306         XYZ to something else.
17307
17308 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17309
17310         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17311         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17312         writeable to group or other and (2) is intended to have a special
17313         mode bit that is set or cleared.  In such a case, the directory
17314         should be neither group- nor other-writeable until the special
17315         mode bits are right.
17316
17317 2007-01-31  Eric Blake  <ebb9@byu.net>
17318
17319         * modules/mountlist (Depends-on): Add strstr.
17320
17321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17322         bug.
17323         * modules/string (Makefile.am): Remove redundant replacement.
17324         * modules/regex (Depends-on): Add mempcpy.
17325
17326 2007-01-31  Bruno Haible  <bruno@clisp.org>
17327
17328         New module description field 'Link'.
17329         * gnulib-tool (func_usage): Document --extract-link-directive.
17330         (sed_extract_prog): Recognize 'Link' directive.
17331         (func_get_link_directive): New function.
17332         (func_import): Show summary of link directives.
17333         Handle --extract-link-directive option.
17334         * modules/acl (Link): New section.
17335         * modules/clock-time (Link): New section.
17336         * modules/euidaccess (Link): New section.
17337         * modules/gettext (Link): New section.
17338         * modules/iconv (Link): New section.
17339         * modules/lock (Link): New section.
17340         * modules/nanosleep (Link): New section.
17341         * modules/readline (Link): New section.
17342
17343 2007-01-27  Bruno Haible  <bruno@clisp.org>
17344
17345         Enforce the use of gnulib modules for unportable <string.h> functions.
17346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17347         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17348         (gl_HEADER_STRING_H_BODY): Require it.
17349         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17350         the symbol XYZ to one that gives a link error.
17351         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17352         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17353         * modules/mempcpy (configure.ac): Likewise.
17354         * modules/memrchr (configure.ac): Likewise.
17355         * modules/stpcpy (configure.ac): Likewise.
17356         * modules/stpncpy (configure.ac): Likewise.
17357         * modules/strcase (configure.ac): Likewise.
17358         * modules/strcasestr (configure.ac): Likewise.
17359         * modules/strchrnul (configure.ac): Likewise.
17360         * modules/strdup (configure.ac): Likewise.
17361         * modules/strndup (configure.ac): Likewise.
17362         * modules/strnlen (configure.ac): Likewise.
17363         * modules/strpbrk (configure.ac): Likewise.
17364         * modules/strsep (configure.ac): Likewise.
17365         * modules/strstr (configure.ac): Likewise.
17366         * modules/strtok_r (configure.ac): Likewise.
17367
17368 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17369
17370         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17371
17372 2007-01-30  Jim Meyering  <jim@meyering.net>
17373
17374         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17375
17376 2007-01-29  Bruno Haible  <bruno@clisp.org>
17377
17378         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17379         * lib/execute.c: Likewise.
17380         * lib/pipe.c: Likewise.
17381         * lib/printf-args.h: Likewise.
17382         * lib/printf-args.c: Likewise.
17383         * lib/printf-parse.c: Likewise.
17384         * lib/vasnprintf.c: Likewise.
17385
17386 2007-01-29  Eric Blake  <ebb9@byu.net>
17387
17388         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17389         declaration.
17390
17391 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17392
17393         * lib/strptime.h (strptime): Use 'restrict' for args where
17394         POSIX requires this.
17395         * lib/strptime.c (strptime): Likewise.
17396         Change license notice from LGPL to GPL, since gnulib-tool will
17397         change this as needed.
17398         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17399         defined.
17400         Include "strptime.h" first, to check interface.
17401         Do not #undef _LIBC and _NL_CURRENT.
17402         Do not include <stdlib.h>; no longer needed.
17403         Include "time_r.h" and declare ptime_locale_status
17404         only if _LIBC is not defined.
17405         (__P): Remove unused macro.
17406         (match_string): Bring back glibc version, but use it only if _LIBC
17407         is defined.
17408         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17409         Remove unnecessary assertion and abort() call.
17410         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17411         * m4/strptime.m4: Fix serial number comment.
17412         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17413         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17414         (Depends-on): Add time_r.
17415
17416 2007-01-29  Bruno Haible  <bruno@clisp.org>
17417
17418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17419         strptime.
17420         * modules/strptime (Depends-on): Add stdbool.
17421         * lib/strptime.h: Include <time.h> always. Add comments.
17422
17423 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17424
17425         * modules/strptime: New file.
17426         * lib/strptime.h: New file.
17427         * lib/strptime.c: New file.
17428         * m4/strptime.m4: New file.
17429
17430 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         * MODULES.html.sh: New module mpsort.
17433         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17434
17435         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17436         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17438         All uses changed.
17439         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17440         All uses changed.
17441         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17442         to _Restrict_.
17443         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17444         the parameter matches the prototype.
17445
17446 2007-01-28  Jim Meyering  <jim@meyering.net>
17447
17448         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17449         sys/time.h here, reverting that part of the previous patch:
17450         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17451
17452 2007-01-28  Bruno Haible  <bruno@clisp.org>
17453
17454         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17455         value of $(SYS_TIME_H).
17456         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17457         remove it conditionally, too. [added by Jim Meyering]
17458         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17460         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17461         GETTIMEOFDAY_REPLACEMENT to 1.
17462
17463 2007-01-28  Bruno Haible  <bruno@clisp.org>
17464
17465         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17466         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17468         Set UNISTD_H instead of UNISTD_H2.
17469         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17470
17471 2007-01-28  Bruno Haible  <bruno@clisp.org>
17472
17473         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17474         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17475
17476 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17477
17478         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17479         (func_create_testdir): Ensure C locale for `grep' and `tr'
17480         character ranges.
17481         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17482         ACLOCAL_AMFLAGS parsing state machine.
17483
17484 2007-01-27  Bruno Haible  <bruno@clisp.org>
17485
17486         * modules/unistr/base: Update.
17487
17488 2007-01-27  Bruno Haible  <bruno@clisp.org>
17489
17490         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17491         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17492         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17493         modules/unistr/u32-mbtouc.
17494         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17495         * lib/unistr.h: Update.
17496         * lib/linebreak.c: Update.
17497         * modules/unistr/u32-mbtouc: Renamed from
17498         modules/unistr/u32-mbtouc-safe.
17499         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17500         * lib/unistr.h: Update.
17501         * lib/unistr/u32-to-u8.c: Update.
17502         * lib/unistr/u32-to-u16.c: Update.
17503
17504 2007-01-27  Bruno Haible  <bruno@clisp.org>
17505
17506         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17507         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17508         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17509         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17510         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17511         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17512         modules/unistr/u16-mbtouc.
17513         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17514         * lib/unistr.h: Update.
17515         * lib/linebreak.c: Update.
17516         * modules/linebreak: Update.
17517         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17518         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17519         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17520         * modules/unistr/u16-mbtouc: Renamed from
17521         modules/unistr/u16-mbtouc-safe.
17522         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17523         * lib/unistr.h: Update.
17524         * lib/unistr/u16-to-u8.c: Update.
17525         * modules/unistr/u16-to-u8: Update.
17526         * lib/unistr/u16-to-u32.c: Update.
17527         * modules/unistr/u16-to-u32: Update.
17528
17529 2007-01-27  Bruno Haible  <bruno@clisp.org>
17530
17531         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17532         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17533         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17534         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17535         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17536         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17537         modules/unistr/u8-mbtouc.
17538         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17539         * lib/unistr.h: Update.
17540         * lib/striconveh.c: Update.
17541         * modules/striconveh: Update.
17542         * lib/linebreak.c: Update.
17543         * modules/linebreak: Update.
17544         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17545         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17546         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17547         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17548         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17549         * lib/unistr.h: Update.
17550         * lib/striconveh.c: Update.
17551         * modules/striconveh: Update.
17552         * lib/unistr/u8-to-u16.c: Update.
17553         * modules/unistr/u8-to-u16: Update.
17554         * lib/unistr/u8-to-u32.c: Update.
17555         * modules/unistr/u8-to-u32: Update.
17556
17557 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17558
17559         Sync from Libtool.
17560         * lib/argz.c: Do not include strings.h nor memory.h, include
17561         string.h unconditionally.  Patch by Simon Josefsson.
17562
17563 2007-01-27  Bruno Haible  <bruno@clisp.org>
17564
17565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17566         from gl_HEADER_STRING_H_BODY.
17567         (gl_HEADER_STRING_H_BODY): Require it.
17568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17569         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17571         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17573         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17575         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17576         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17577         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17578         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17579         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17580         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17581         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17582         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17583
17584 2007-01-27  Bruno Haible  <bruno@clisp.org>
17585
17586         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17587         check_PROGRAMS into noinst_PROGRAMS.
17588         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17589         check_PROGRAMS in this case.
17590         (func_import): Set for_test to false.
17591         (func_create_testdir): Set for_test to true.
17592
17593 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17594             Bruno Haible  <bruno@clisp.org>
17595
17596         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17597         (Depends-on): Add string.
17598         (Includes): Use <string.h> instead of strcasestr.h.
17599         * modules/string (Makefile.am): Also substitute the value of
17600         REPLACE_STRCASESTR.
17601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17602         assume strcasestr is declared in <string.h> not <strings.h>. Also
17603         set REPLACE_STRCASESTR.
17604         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17605         REPLACE_STRCASESTR.
17606         * lib/strcasestr.h: Remove file.
17607         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17608         * lib/string_.h (strcasestr): New declaration.
17609
17610 2007-01-27  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/string_.h: Use 'extern'.
17613
17614 2007-01-27  Jim Meyering  <jim@meyering.net>
17615
17616         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17617         of set-but-not-used local, "q".
17618
17619         * lib/mempcpy.c: Include <config.h> before <string.h>.
17620         This fixes a compilation error on HP-UX, due to the system's
17621         "restrict"-using mempcpy prototype.
17622
17623 2007-01-26  Bruno Haible  <bruno@clisp.org>
17624
17625         Small optimization.
17626         * lib/javacomp.c: Include c-strstr.h.
17627          (is_envjavac_gcj): Use c_strstr instead of strstr.
17628         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17629
17630 2007-01-26  Bruno Haible  <bruno@clisp.org>
17631
17632         * MODULES.html.sh (Unicode string functions): Add the new modules.
17633
17634         * modules/uniconv/u32-strconv-to-locale: New file.
17635         * lib/uniconv/u32-strconv-to-locale.c: New file.
17636
17637         * modules/uniconv/u16-strconv-to-locale: New file.
17638         * lib/uniconv/u16-strconv-to-locale.c: New file.
17639
17640         * modules/uniconv/u8-strconv-to-locale: New file.
17641         * lib/uniconv/u8-strconv-to-locale.c: New file.
17642
17643         * modules/uniconv/u32-strconv-from-locale: New file.
17644         * lib/uniconv/u32-strconv-from-locale.c: New file.
17645
17646         * modules/uniconv/u16-strconv-from-locale: New file.
17647         * lib/uniconv/u16-strconv-from-locale.c: New file.
17648
17649         * modules/uniconv/u8-strconv-from-locale: New file.
17650         * lib/uniconv/u8-strconv-from-locale.c: New file.
17651
17652         * modules/uniconv/u32-strconv-to-enc: New file.
17653         * lib/uniconv/u32-strconv-to-enc.c: New file.
17654         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17655         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17656
17657         * modules/uniconv/u16-strconv-to-enc: New file.
17658         * lib/uniconv/u16-strconv-to-enc.c: New file.
17659         * lib/uniconv/u-strconv-to-enc.h: New file.
17660         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17661         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17662
17663         * modules/uniconv/u8-strconv-to-enc: New file.
17664         * lib/uniconv/u8-strconv-to-enc.c: New file.
17665         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17666         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17667
17668         * modules/uniconv/u32-strconv-from-enc: New file.
17669         * lib/uniconv/u32-strconv-from-enc.c: New file.
17670         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17671         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17672
17673         * modules/uniconv/u16-strconv-from-enc: New file.
17674         * lib/uniconv/u16-strconv-from-enc.c: New file.
17675         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17676         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17677
17678         * modules/uniconv/u8-strconv-from-enc: New file.
17679         * lib/uniconv/u8-strconv-from-enc.c: New file.
17680         * lib/uniconv/u-strconv-from-enc.h: New file.
17681         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17682         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17683
17684         * modules/uniconv/u32-conv-from-enc: New file.
17685         * lib/uniconv/u32-conv-from-enc.c: New file.
17686         * modules/uniconv/u32-conv-from-enc-tests: New file.
17687         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17688
17689         * modules/uniconv/u16-conv-from-enc: New file.
17690         * lib/uniconv/u16-conv-from-enc.c: New file.
17691         * lib/uniconv/u-conv-from-enc.h: New file.
17692         * modules/uniconv/u16-conv-from-enc-tests: New file.
17693         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17694
17695         * modules/uniconv/u8-conv-from-enc: New file.
17696         * lib/uniconv/u8-conv-from-enc.c: New file.
17697         * modules/uniconv/u8-conv-from-enc-tests: New file.
17698         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17699
17700         * modules/uniconv/base: New file.
17701         * lib/uniconv.h: New file.
17702
17703 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17704
17705         * doc/gnulib-tool.texi (Initial import): Update to match current
17706         behavior with strdup module.
17707         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17708         * lib/memmem.h: Remove; all uses removed.  This is now done
17709         by <string.h>.
17710         * lib/mempcpy.h: Likewise.
17711         * lib/memrchr.h: Likewise.
17712         * lib/stpcpy.h: Likewise.
17713         * lib/stpncpy.h: Likewise.
17714         * lib/strcase.h: Likewise.
17715         * lib/strchrnul.h: Likewise.
17716         * lib/strdup.h: Likewise.
17717         * lib/strndup.h: Likewise.
17718         * lib/strnlen.h: Likewise.
17719         * lib/strpbrk.h: Likewise.
17720         * lib/strsep.h: Likewise.
17721         * lib/strstr.h: Likewise.
17722         * lib/strtok_r.h: Likewise.
17723         * lib/string_.h: New file.
17724         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17725         Rely on <string.h> instead.
17726         * lib/canon-host.c: Likewise.
17727         * lib/chdir-long.c: Likewise.
17728         * lib/concatpath.c: Likewise.
17729         * lib/exclude.c: Likewise.
17730         * lib/fchdir.c: Likewise.
17731         * lib/getaddrinfo.c: Likewise.
17732         * lib/getcwd.c: Likewise.
17733         * lib/getsubopt.c: Likewise.
17734         * lib/glob.c: Likewise.
17735         * lib/hard-locale.c: Likewise.
17736         * lib/iconvme.c: Likewise.
17737         * lib/javacomp.c: Likewise.
17738         * lib/mempcpy.c: Likewise.
17739         * lib/memrchr.c: Likewise.
17740         * lib/regex_internal.h: Likewise.
17741         * lib/stpncpy.c: Likewise.
17742         * lib/strcasecmp.c: Likewise.
17743         * lib/strchrnul.c: Likewise.
17744         * lib/strdup.c: Likewise.
17745         * lib/striconv.c: Likewise.
17746         * lib/striconveh.c: Likewise.
17747         * lib/striconveha.c: Likewise.
17748         * lib/strncasecmp.c: Likewise.
17749         * lib/strndup.c: Likewise.
17750         * lib/strnlen.c: Likewise.
17751         * lib/strsep.c: Likewise.
17752         * lib/strstr.c: Likewise.
17753         * lib/strtok_r.c: Likewise.
17754         * lib/userspec.c: Likewise.
17755         * lib/w32spawn.h: Likewise.
17756         * lib/xstrndup.c: Likewise.
17757         * lib/mountlist.c (strstr): Remove decl.
17758         * m4/string_h.m4: New file.
17759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17760         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17761         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17762         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17763         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17764         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17765         Set REPLACE_STRCASECMP if necessary.
17766         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17767         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17768         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17769         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17770         HAVE_DECL_STRDUP if necessary.
17771         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17772         since gl_FUNC_STRNDUP does that now.
17773         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17774         Check for decl here...
17775         (gl_PREREQ_STRNLEN): ... not here.
17776         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17777         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17778         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17779         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17780         necessary.
17781         * modules/string: New file.
17782         * modules/memmem (Files): Remove special-purpose include file.
17783         (Depends-on): Add string.
17784         (Include): Include <string.h>, not the removed file.
17785         * modules/mempcpy: Likewise.
17786         * modules/memrchr: Likewise.
17787         * modules/stpcpy: Likewise.
17788         * modules/stpncpy: Likewise.
17789         * modules/strcase: Likewise.
17790         * modules/strchrnul: Likewise.
17791         * modules/strdup: Likewise.
17792         * modules/strndup: Likewise.
17793         * modules/strnlen: Likewise.
17794         * modules/strpbrk: Likewise.
17795         * modules/strsep: Likewise.
17796         * modules/strstr: Likewise.
17797         * modules/strtok_r: Likewise.
17798         * tests/test-dirname.c: Don't include "strdup.h", since
17799         <string.h> now suffices.
17800         * tests/test-memmem.c: Don't include "memmem.h", since
17801         <string.h> now suffices.
17802
17803 2007-01-25  Bruno Haible  <bruno@clisp.org>
17804
17805         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17806         *resultp is 0.
17807
17808         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17809         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17810         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17811         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17812
17813         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17814         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17815         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17816         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17817         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17818         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17819
17820 2007-01-24  Bruno Haible  <bruno@clisp.org>
17821
17822         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17824         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17825         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17826         gl_FUNC_FTS_CORE.
17827         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17828         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17829         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17830         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17831         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17832         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17833         gl_FUNC_FCHOWNAT.
17834         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17835         gl_FUNC_STRFTIME.
17836         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17837         Reported by Ralf Wildenhues.
17838
17839 2007-01-24  Bruno Haible  <bruno@clisp.org>
17840
17841         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17842         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17843         gl_GETADDRINFO.
17844         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17845         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17846         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17847
17848 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17849
17850         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17851         Don't use 'exit'; just return from 'main'.
17852         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17853
17854         * lib/fnmatch_.h: Readjust white space and comments to match
17855         glibc, to avoid spurious diffs.
17856
17857 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17858
17859         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17860         2004-12-01 change by Jakub Jelinek, since this code won't compile
17861         if !LIBC.  Problem reported by Bob Proulx.
17862
17863 2007-01-23  Bruno Haible  <bruno@clisp.org>
17864
17865         * lib/striconveh.c: Include c-strcaseeq.h.
17866         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17867         * modules/striconveh (Depends-on): Add c-strcaseeq.
17868
17869 2007-01-23  Bruno Haible  <bruno@clisp.org>
17870
17871         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17872
17873         * modules/c-strcaseeq: New file.
17874         * lib/c-strcaseeq.h: New file.
17875
17876         * modules/streq: New file.
17877         * lib/streq.h: New file.
17878
17879 2007-01-23  Bruno Haible  <bruno@clisp.org>
17880
17881         * modules/striconveha-tests: New file.
17882         * tests/test-striconveha.c: New file.
17883
17884         * lib/striconveha.h: Include <stdbool.h>.
17885         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17886         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17887         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17888         (mem_iconveha): New function.
17889         (str_iconveha_notranslit): Renamed from str_iconveha.
17890         (str_iconveha): New function.
17891         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17892         c-strcase.
17893
17894 2007-01-23  Bruno Haible  <bruno@clisp.org>
17895
17896         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17897         encodings without forgiving before trying any encoding with handler.
17898         (str_iconveha): Try all encodings without forgiving before trying any
17899         encoding with handler.
17900
17901 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17902
17903         Import the following changes from libc.
17904
17905         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17906
17907         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17908
17909         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17910
17911         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17912         normal_bracket label.
17913
17914         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17915
17916         [BZ #361]
17917         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17918         to normal_bracket after fetching the next character.
17919
17920 2007-01-22  Bruno Haible  <bruno@clisp.org>
17921
17922         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17923         argument.
17924         * lib/striconveh.c (iconv_carefully_1): New function.
17925         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17926         argument.
17927         (str_cd_iconveh): Update.
17928         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17929         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17930         * tests/test-striconveh.c (MAGIC): New macro.
17931         (new_offsets): New function.
17932         (main): Test call with and without offsets.
17933
17934 2007-01-22  Bruno Haible  <bruno@clisp.org>
17935
17936         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17937         * modules/sys_select (Makefile.am): Likewise.
17938         * modules/sys_socket (Makefile.am): Likewise.
17939         * modules/sys_time (Makefile.am): Likewise.
17940
17941 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17942
17943         * modules/gettimeofday (License): Change from GPL to LGPL, since
17944         gettimeofday is a library function.
17945
17946 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17947
17948         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17949
17950 2007-01-21  Bruno Haible  <bruno@clisp.org>
17951
17952         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17953
17954 2007-01-21  Bruno Haible  <bruno@clisp.org>
17955
17956         * modules/striconveha: New file.
17957         * lib/striconveha.h: New file.
17958         * lib/striconveha.c: New file.
17959         * MODULES.html.sh (Internationalization functions): Add striconveha.
17960         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17961         string.
17962         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17963
17964 2007-01-21  Bruno Haible  <bruno@clisp.org>
17965
17966         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17967         * lib/striconveh.c (str_iconveh): Likewise.
17968
17969 2007-01-21  Bruno Haible  <bruno@clisp.org>
17970
17971         * lib/striconveh.h (mem_iconveh): New declaration.
17972         * lib/striconveh.c (mem_iconveh): New function.
17973         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17974
17975 2007-01-21  Bruno Haible  <bruno@clisp.org>
17976
17977         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17978
17979         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17980         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17981         original result buffer.
17982         (str_cd_iconveh): Update.
17983         * tests/test-striconveh.c (main): Update.
17984
17985         * lib/striconv.h (mem_cd_iconv): Change specification.
17986         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17987         result buffer.
17988         (str_cd_iconv): Update.
17989         * tests/test-striconv.c (main): Update.
17990
17991 2007-01-21  Bruno Haible  <bruno@clisp.org>
17992
17993         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17994
17995 2007-01-20  Jim Meyering  <jim@meyering.net>
17996
17997         * lib/userspec.c (parse_with_separator): If a user or group string
17998         starts with "+", skip the corresponding name-to-ID look-up, since
17999         such a look-up must fail: user and group names may not include "+".
18000
18001 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         * lib/poll.c: Include sys/time.h and time.h unconditionally,
18004         since we now assume the sys_time module.
18005         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
18006         check for sys/time.h; no longer needed.
18007         * modules/poll (Depends-on): Depend on sys_time.
18008
18009 2007-01-18  Bruno Haible  <bruno@clisp.org>
18010
18011         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
18012         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18013
18014         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
18015         gettimeofday.
18016
18017         * tests/test-gettimeofday.c: Include <time.h>.
18018         (dummy): Remove variable.
18019
18020         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
18021         gl_HEADER_SYS_TIME_H.
18022         (gl_HEADER_SYS_TIME_H): New macro.
18023
18024         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
18025         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18026         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18027         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
18028         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
18030         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
18031         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18032         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
18033         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
18034         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18035
18036         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
18037         last change; it caused a compilation error when cross-compiling to
18038         Cygwin.
18039
18040 2007-01-18  Jim Meyering  <jim@meyering.net>
18041
18042         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
18043         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
18044         than the race-prone "test -d sys || mkdir sys".
18045         (configure.ac): Use AC_PROG_MKDIR_P.
18046         * modules/sys_select: Likewise.
18047         * modules/sys_socket: Likewise.
18048         * modules/sys_time: Likewise.
18049
18050 2007-01-18  Eric Blake  <ebb9@byu.net>
18051
18052         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
18053         replace gettimeofday.
18054         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
18055         name, to avoid infinite recursion.
18056
18057 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
18058
18059         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
18060         module sys_time.
18061         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
18062         assume timespec.h defines struct timeval.
18063         * lib/settime.c: Likewise.
18064         * lib/utimens.c: Likewise.
18065         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
18066         since we now assume the gettimeofday module.
18067         * lib/tempname.c (__gen_tempname): Likewise.
18068         * lib/gettimeofday.h: Remove.
18069         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
18070         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
18071         Include <time.h>, for 'time()'.
18072         (localtime_buffer_addr): Also use this workaround if
18073         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
18074         to simplify the uses.  All uses changed.
18075         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
18076         that #undef is inside {}, and 'const' follows type name consistently.
18077         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
18078         (gettimeofday): Do not use the maximum possible value for
18079         tv->tv_usec, since that might break usages other than ls.c.
18080         Instead, we'll leave ls.c alone.  This undoes today's patch
18081         by Bruno.  Add a compile-time warning for 1s-clock resolution;
18082         we've never observed the problem but might as well keep the
18083         canary.
18084         * lib/nanosleep.c: Include timespec.h first, for interface check.
18085         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
18086         now assume the sys_time module.
18087         * lib/tempname.c: Likewise.
18088         * lib/timespec.h: Likewise.
18089         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
18090         needed.
18091         * lib/strftime.c: Likewise.
18092         * lib/timespec.h: Likewise.
18093         * lib/posixtm.c: Include posixtm.h first, for interface check.
18094         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
18095         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
18096         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
18097         * lib/sys_time_.h: New file.
18098         * lib/timespec.h (struct timespec): Use long int, not long.
18099         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
18100         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
18101         Remove obsolescent call to AC_HEADER_TIME.
18102         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18104         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
18105         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
18106         Likewise.
18107         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18108         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
18109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
18110         into the sys_time module.  Check for gettimeofday just once.
18111         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
18112         for gettimeofday signature to just check the signature.  Merely
18113         compile it, since linking doesn't test signature.  Improve test for
18114         whether gettimeofday.o is actually needed.
18115         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
18116         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
18117         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
18118         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18119         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
18120         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
18121         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
18122         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
18123         than worrying about sys/time.h.
18124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18125         Don't bother worrying about TIME_WITH_SYS_TIME.
18126         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18127         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
18128         * m4/sys_time_h.m4: New file.
18129         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
18130         Don't include sys/time.h.  Return from main rather than exiting.
18131         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
18132         all uses changed.
18133         * modules/gethrxtime (Depends-on): Add sys_time.
18134         * modules/gettime (Depends-on): Likewise.
18135         * modules/gettimeofday (Depends-on): Likewise.
18136         * modules/nanosleep (Depends-on): Likewise.
18137         * modules/settime (Depends-on): Likewise.
18138         * modules/tempname (Depends-on): Likewise.
18139         * modules/utimens (Depends-on): Likewise.
18140         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
18141         (Include:) Change back to <sys/time.h>.
18142         (Maintainer:) Add self.
18143         * modules/sys_time: New file.
18144         * modules/tempname (Depends-on): Add gettimeofday.
18145         * tests/test-gettimeofday.c: Include <sys/time.h>
18146         rather than gettimeofday.h.
18147
18148 2007-01-17  Bruno Haible  <bruno@clisp.org>
18149
18150         * gnulib-tool (func_get_license): Revert last patch. Instead, let
18151         the license default to GPL.
18152         (func_create_testdir): Don't complain if a module is LGPL and its
18153         tests module depends on GPLed modules.
18154
18155 2007-01-17  Bruno Haible  <bruno@clisp.org>
18156
18157         * lib/gettimeofday.c (gettimeofday): Add code for the case
18158         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18159         maximum possible value for tv->tv_usec, rather than the minimum one.
18160
18161 2005-10-08  Martin Lambers  <marlam@marlam.de>
18162 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18163 2007-01-16  Bruno Haible  <bruno@clisp.org>
18164
18165         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18166         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18167         gl_FUNC_GETTIMEOFDAY.
18168         (Include): Add gettimeofday.h.
18169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18170         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18171         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18172         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18173         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18174         * lib/gettimeofday.h: New file.
18175         * lib/gettimeofday.c: Include <sys/timeb.h>.
18176         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18177         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18178         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18179         fall back on time().
18180
18181         * tests/test-gettimeofday.c: New file.
18182         * modules/gettimeofday-tests: New file.
18183
18184 2007-01-16  Eric Blake  <ebb9@byu.net>
18185
18186         * modules/fnmatch (Depends-on): Depend on wchar.
18187         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18188         * m4/fnmatch.m4: Likewise.
18189         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18190         * m4/mbchar.m4: Likewise.
18191         * modules/mbswidth (Depends-on): Depend on wchar.
18192         * lib/mbswidth.c: Assume <wchar.h>.
18193         * m4/mbswidth.m4: Likewise.
18194         * modules/quotearg (Depends-on): Depend on wchar.
18195         * lib/quotearg.c: Assume <wchar.h>.
18196         * m4/quotearg.m4: Likewise.
18197         * modules/regex (Depends-on): Depend on wchar.
18198         * lib/regex_internal.h: Assume <wchar.h>.
18199         * m4/regex.m4: Likewise.
18200         * modules/stdint (Depends-on): Depend on wchar.
18201         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18202         * m4/stdint.m4: Likewise.
18203         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18204         * modules/strftime (Depends-on): Depend on wchar.
18205         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18206         * modules/strtol (Depends-on): Depend on wchar.
18207         * lib/strtol.c: Assume <wchar.h>.
18208         * modules/wcwidth (Depends-on): Depend on wchar.
18209         * lib/wcwidth.h: Assume <wchar.h>.
18210         * m4/wcwidth.m4: Likewise.
18211
18212 2007-01-16  Bruno Haible  <bruno@clisp.org>
18213
18214         * modules/csharpexec-script: New, created from...
18215         * modules/csharpexec: ... this.
18216
18217 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18218
18219         * modules/javaexec-script: New, created from...
18220         * modules/javaexec: ... this.
18221
18222 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18223
18224         * modules/poll (Dependencies): Add sys_select.
18225
18226 2007-01-15  Jim Meyering  <jim@meyering.net>
18227
18228         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18229         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18230         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18231         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18232
18233 2007-01-15  Bruno Haible  <bruno@clisp.org>
18234
18235         * modules/striconveh: New file.
18236         * lib/striconveh.h: New file.
18237         * lib/striconveh.c: New file.
18238         * MODULES.html.sh (Internationalization functions): Add striconveh.
18239
18240         * modules/striconveh-tests: New file.
18241         * tests/test-striconveh.c: New file.
18242
18243 2007-01-15  Bruno Haible  <bruno@clisp.org>
18244
18245         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18246         not from GNU libiconv or GNU libc.
18247
18248 2007-01-15  Bruno Haible  <bruno@clisp.org>
18249
18250         * doc/gnulib-intro.texi (Copyright): Explain the different license
18251         terms for module descriptions, autoconf macros, tests, documentation.
18252
18253 2007-01-14  Bruno Haible  <bruno@clisp.org>
18254
18255         * modules/striconv-tests: New file.
18256         * tests/test-striconv.c: New file.
18257
18258 2007-01-14  Bruno Haible  <bruno@clisp.org>
18259
18260         * modules/iconv-tests: New file.
18261         * tests/test-iconv.c: New file.
18262
18263 2007-01-14  Bruno Haible  <bruno@clisp.org>
18264
18265         * gnulib-tool (func_get_license): For test modules, use the license of
18266         the main module.
18267
18268 2007-01-14  Bruno Haible  <bruno@clisp.org>
18269
18270         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18271         if iconv is found to exist.
18272
18273 2007-01-14  Bruno Haible  <bruno@clisp.org>
18274
18275         * modules/c-ctype-tests: New file.
18276         * tests/test-c-ctype.c: New file.
18277
18278 2007-01-14  Bruno Haible  <bruno@clisp.org>
18279
18280         * modules/binary-io-tests: New file.
18281         * tests/test-binary-io.sh: New file.
18282         * tests/test-binary-io.c: New file.
18283
18284 2007-01-14  Bruno Haible  <bruno@clisp.org>
18285
18286         * modules/array-oset-tests: New file.
18287         * tests/test-array_oset.c: New file.
18288
18289 2007-01-14  Bruno Haible  <bruno@clisp.org>
18290
18291         * modules/array-list-tests: New file.
18292         * tests/test-array_list.c: New file.
18293
18294 2007-01-14  Bruno Haible  <bruno@clisp.org>
18295
18296         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18297         and make.
18298         Reported by Simon Josefsson in
18299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18300
18301 2007-01-14  Bruno Haible  <bruno@clisp.org>
18302
18303         * modules/allocsa-tests: New file.
18304         * tests/test-allocsa.c: New file.
18305
18306 2007-01-14  Bruno Haible  <bruno@clisp.org>
18307
18308         * modules/fchdir (Depends-on): Add absolute-header.
18309         * modules/unistd (Depends-on): Likewise.
18310
18311 2006-12-30  Bruno Haible  <bruno@clisp.org>
18312
18313         * modules/fchdir: New file.
18314         * modules/unistd (Files): Add lib/unistd_.h.
18315         (Makefile.am): Generate unistd.h from unistd_.h.
18316         * lib/fchdir.c: New file.
18317         * lib/dirent_.h: New file.
18318         * lib/unistd_.h: New file.
18319         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18320         * m4/fchdir.m4: New file.
18321         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18322         (gl_HEADER_UNISTD): Invoke it.
18323         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18324         function.
18325         * lib/backupfile.c (opendir, closedir): Undefine.
18326         * lib/chown.c (open, close): Undefine.
18327         * lib/clean-temp.c (open, close): Undefine.
18328         * lib/copy-file.c (open, close): Undefine.
18329         * lib/execute.c (open, close): Undefine.
18330         * lib/fsusage.c (open, close): Undefine.
18331         * lib/gc-gnulib.c (open, close): Undefine.
18332         * lib/getcwd.c (opendir, closedir): Undefine.
18333         * lib/glob.c (opendir, closedir): Undefine.
18334         * lib/javacomp.c (open, close): Undefine.
18335         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18336         * lib/openat-proc.c (open, close): Undefine.
18337         * lib/pagealign_alloc.c (open, close): Undefine.
18338         * lib/pipe.c (open, close): Undefine.
18339         * lib/progreloc.c (open, close): Undefine.
18340         * lib/savedir.c (opendir, closedir): Undefine.
18341         * lib/utime.c (open, close): Undefine.
18342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18343
18344 2007-01-10  Bruno Haible  <bruno@clisp.org>
18345
18346         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18347
18348 2007-01-12  Eric Blake  <ebb9@byu.net>
18349
18350         Provide a robust <wchar.h>.  Further simplifications are now
18351         possible in other modules, but not included here.
18352         * modules/wchar: New module.
18353         * m4/wchar.m4: New file.
18354         * lib/wchar_.h: Likewise.
18355         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18356         of the new module.
18357         * MODULES.html.sh (Extended multibyte and wide character utilities):
18358         New section.
18359
18360 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18361
18362         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18363         to a reasonable default for memory allocation.
18364         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18365         file system that reports garbage st_size values for symlinks.
18366         Problem reported by Liyang Hu.
18367
18368 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18369
18370         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18371         Emacs .#* auto-save files).
18372
18373 2007-01-11  Bruno Haible  <bruno@clisp.org>
18374
18375         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18376         directory.
18377
18378 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         Use @...@ consistently in lib/wctype_.h.
18381         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18382         on it being set to 1 or 0.
18383         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18384         go back to AC_SUBSTing it.
18385         * modules/wctype (Makefile.am): Undo previous change.
18386
18387 2007-01-10  Eric Blake  <ebb9@byu.net>
18388
18389         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18390         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18391         * modules/wctype (Makefile.am): Likewise.
18392         Reported by Chris McGuire.
18393
18394 2007-01-10  Jim Meyering  <jim@meyering.net>
18395
18396         fts.c: a small readability/maintainability improvement
18397         * lib/fts.c (fts_read): Make this code slightly more readable and
18398         maintainable by hoisting the "sp->fts_cur = p" assignments to
18399         immediately follow the statements that set P.  Derived from
18400         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18401
18402 2007-01-10  Eric Blake  <ebb9@byu.net>
18403
18404         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18405         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18407         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18408         Reported by Chris McGuire.
18409
18410 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18411
18412         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18413         in sed script.
18414
18415 2007-01-09  Bruno Haible  <bruno@clisp.org>
18416
18417         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18418         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18419         variables.
18420         (func_module): Use them.
18421
18422 2007-01-09  Bruno Haible  <bruno@clisp.org>
18423
18424         * modules/unistr/base: New file.
18425         * lib/unistr.h: New file.
18426
18427         * modules/unistr/u8-to-u16: New file.
18428         * lib/unistr/u8-to-u16.c: New file.
18429
18430         * modules/unistr/u8-to-u32: New file.
18431         * lib/unistr/u8-to-u32.c: New file.
18432
18433         * modules/unistr/u16-to-u8: New file.
18434         * lib/unistr/u16-to-u8.c: New file.
18435
18436         * modules/unistr/u16-to-u32: New file.
18437         * lib/unistr/u16-to-u32.c: New file.
18438
18439         * modules/unistr/u32-to-u8: New file.
18440         * lib/unistr/u32-to-u8.c: New file.
18441
18442         * modules/unistr/u32-to-u16: New file.
18443         * lib/unistr/u32-to-u16.c: New file.
18444
18445         * modules/unistr/u8-check: New file.
18446         * modules/unistr/u16-check: New file.
18447         * modules/unistr/u32-check: New file.
18448         * lib/unistr/u8-check.c: New file.
18449         * lib/unistr/u16-check.c: New file.
18450         * lib/unistr/u32-check.c: New file.
18451
18452         * modules/unistr/u8-chr: New file.
18453         * modules/unistr/u16-chr: New file.
18454         * modules/unistr/u32-chr: New file.
18455         * lib/unistr/u8-chr.c: New file.
18456         * lib/unistr/u16-chr.c: New file.
18457         * lib/unistr/u32-chr.c: New file.
18458
18459         * modules/unistr/u8-cmp: New file.
18460         * modules/unistr/u16-cmp: New file.
18461         * modules/unistr/u32-cmp: New file.
18462         * lib/unistr/u8-cmp.c: New file.
18463         * lib/unistr/u16-cmp.c: New file.
18464         * lib/unistr/u32-cmp.c: New file.
18465
18466         * modules/unistr/u8-cpy: New file.
18467         * modules/unistr/u16-cpy: New file.
18468         * modules/unistr/u32-cpy: New file.
18469         * lib/unistr/u8-cpy.c: New file.
18470         * lib/unistr/u16-cpy.c: New file.
18471         * lib/unistr/u32-cpy.c: New file.
18472         * lib/unistr/u-cpy.h: New file.
18473
18474         * modules/unistr/u8-cpy-alloc: New file.
18475         * modules/unistr/u16-cpy-alloc: New file.
18476         * modules/unistr/u32-cpy-alloc: New file.
18477         * lib/unistr/u8-cpy-alloc.c: New file.
18478         * lib/unistr/u16-cpy-alloc.c: New file.
18479         * lib/unistr/u32-cpy-alloc.c: New file.
18480         * lib/unistr/u-cpy-alloc.h: New file.
18481
18482         * modules/unistr/u8-endswith: New file.
18483         * modules/unistr/u16-endswith: New file.
18484         * modules/unistr/u32-endswith: New file.
18485         * lib/unistr/u8-endswith.c: New file.
18486         * lib/unistr/u16-endswith.c: New file.
18487         * lib/unistr/u32-endswith.c: New file.
18488         * lib/unistr/u-endswith.h: New file.
18489
18490         * modules/unistr/u8-mblen: New file.
18491         * modules/unistr/u16-mblen: New file.
18492         * modules/unistr/u32-mblen: New file.
18493         * lib/unistr/u8-mblen.c: New file.
18494         * lib/unistr/u16-mblen.c: New file.
18495         * lib/unistr/u32-mblen.c: New file.
18496
18497         * modules/unistr/u8-mbtouc: New file.
18498         * modules/unistr/u16-mbtouc: New file.
18499         * modules/unistr/u32-mbtouc: New file.
18500         * lib/unistr/u8-mbtouc.c: New file.
18501         * lib/unistr/u16-mbtouc.c: New file.
18502         * lib/unistr/u32-mbtouc.c: New file.
18503
18504         * modules/unistr/u8-mbtouc-safe: New file.
18505         * modules/unistr/u16-mbtouc-safe: New file.
18506         * modules/unistr/u32-mbtouc-safe: New file.
18507         * lib/unistr/u8-mbtouc-safe.c: New file.
18508         * lib/unistr/u16-mbtouc-safe.c: New file.
18509         * lib/unistr/u32-mbtouc-safe.c: New file.
18510
18511         * modules/unistr/u8-move: New file.
18512         * modules/unistr/u16-move: New file.
18513         * modules/unistr/u32-move: New file.
18514         * lib/unistr/u8-move.c: New file.
18515         * lib/unistr/u16-move.c: New file.
18516         * lib/unistr/u32-move.c: New file.
18517         * lib/unistr/u-move.h: New file.
18518
18519         * modules/unistr/u8-next: New file.
18520         * modules/unistr/u16-next: New file.
18521         * modules/unistr/u32-next: New file.
18522         * lib/unistr/u8-next.c: New file.
18523         * lib/unistr/u16-next.c: New file.
18524         * lib/unistr/u32-next.c: New file.
18525
18526         * modules/unistr/u8-prev: New file.
18527         * modules/unistr/u16-prev: New file.
18528         * modules/unistr/u32-prev: New file.
18529         * lib/unistr/u8-prev.c: New file.
18530         * lib/unistr/u16-prev.c: New file.
18531         * lib/unistr/u32-prev.c: New file.
18532
18533         * modules/unistr/u8-set: New file.
18534         * modules/unistr/u16-set: New file.
18535         * modules/unistr/u32-set: New file.
18536         * lib/unistr/u8-set.c: New file.
18537         * lib/unistr/u16-set.c: New file.
18538         * lib/unistr/u32-set.c: New file.
18539         * lib/unistr/u-set.h: New file.
18540
18541         * modules/unistr/u8-startswith: New file.
18542         * modules/unistr/u16-startswith: New file.
18543         * modules/unistr/u32-startswith: New file.
18544         * lib/unistr/u8-startswith.c: New file.
18545         * lib/unistr/u16-startswith.c: New file.
18546         * lib/unistr/u32-startswith.c: New file.
18547         * lib/unistr/u-startswith.h: New file.
18548
18549         * modules/unistr/u8-stpcpy: New file.
18550         * modules/unistr/u16-stpcpy: New file.
18551         * modules/unistr/u32-stpcpy: New file.
18552         * lib/unistr/u8-stpcpy.c: New file.
18553         * lib/unistr/u16-stpcpy.c: New file.
18554         * lib/unistr/u32-stpcpy.c: New file.
18555         * lib/unistr/u-stpcpy.h: New file.
18556
18557         * modules/unistr/u8-stpncpy: New file.
18558         * modules/unistr/u16-stpncpy: New file.
18559         * modules/unistr/u32-stpncpy: New file.
18560         * lib/unistr/u8-stpncpy.c: New file.
18561         * lib/unistr/u16-stpncpy.c: New file.
18562         * lib/unistr/u32-stpncpy.c: New file.
18563         * lib/unistr/u-stpncpy.h: New file.
18564
18565         * modules/unistr/u8-strcat: New file.
18566         * modules/unistr/u16-strcat: New file.
18567         * modules/unistr/u32-strcat: New file.
18568         * lib/unistr/u8-strcat.c: New file.
18569         * lib/unistr/u16-strcat.c: New file.
18570         * lib/unistr/u32-strcat.c: New file.
18571         * lib/unistr/u-strcat.h: New file.
18572
18573         * modules/unistr/u8-strchr: New file.
18574         * modules/unistr/u16-strchr: New file.
18575         * modules/unistr/u32-strchr: New file.
18576         * lib/unistr/u8-strchr.c: New file.
18577         * lib/unistr/u16-strchr.c: New file.
18578         * lib/unistr/u32-strchr.c: New file.
18579
18580         * modules/unistr/u8-strcmp: New file.
18581         * modules/unistr/u16-strcmp: New file.
18582         * modules/unistr/u32-strcmp: New file.
18583         * lib/unistr/u8-strcmp.c: New file.
18584         * lib/unistr/u16-strcmp.c: New file.
18585         * lib/unistr/u32-strcmp.c: New file.
18586
18587         * modules/unistr/u8-strcpy: New file.
18588         * modules/unistr/u16-strcpy: New file.
18589         * modules/unistr/u32-strcpy: New file.
18590         * lib/unistr/u8-strcpy.c: New file.
18591         * lib/unistr/u16-strcpy.c: New file.
18592         * lib/unistr/u32-strcpy.c: New file.
18593         * lib/unistr/u-strcpy.h: New file.
18594
18595         * modules/unistr/u8-strcspn: New file.
18596         * modules/unistr/u16-strcspn: New file.
18597         * modules/unistr/u32-strcspn: New file.
18598         * lib/unistr/u8-strcspn.c: New file.
18599         * lib/unistr/u16-strcspn.c: New file.
18600         * lib/unistr/u32-strcspn.c: New file.
18601         * lib/unistr/u-strcspn.h: New file.
18602
18603         * modules/unistr/u8-strdup: New file.
18604         * modules/unistr/u16-strdup: New file.
18605         * modules/unistr/u32-strdup: New file.
18606         * lib/unistr/u8-strdup.c: New file.
18607         * lib/unistr/u16-strdup.c: New file.
18608         * lib/unistr/u32-strdup.c: New file.
18609         * lib/unistr/u-strdup.h: New file.
18610
18611         * modules/unistr/u8-strlen: New file.
18612         * modules/unistr/u16-strlen: New file.
18613         * modules/unistr/u32-strlen: New file.
18614         * lib/unistr/u8-strlen.c: New file.
18615         * lib/unistr/u16-strlen.c: New file.
18616         * lib/unistr/u32-strlen.c: New file.
18617         * lib/unistr/u-strlen.h: New file.
18618
18619         * modules/unistr/u8-strmblen: New file.
18620         * modules/unistr/u16-strmblen: New file.
18621         * modules/unistr/u32-strmblen: New file.
18622         * lib/unistr/u8-strmblen.c: New file.
18623         * lib/unistr/u16-strmblen.c: New file.
18624         * lib/unistr/u32-strmblen.c: New file.
18625
18626         * modules/unistr/u8-strmbtouc: New file.
18627         * modules/unistr/u16-strmbtouc: New file.
18628         * modules/unistr/u32-strmbtouc: New file.
18629         * lib/unistr/u8-strmbtouc.c: New file.
18630         * lib/unistr/u16-strmbtouc.c: New file.
18631         * lib/unistr/u32-strmbtouc.c: New file.
18632
18633         * modules/unistr/u8-strncat: New file.
18634         * modules/unistr/u16-strncat: New file.
18635         * modules/unistr/u32-strncat: New file.
18636         * lib/unistr/u8-strncat.c: New file.
18637         * lib/unistr/u16-strncat.c: New file.
18638         * lib/unistr/u32-strncat.c: New file.
18639         * lib/unistr/u-strncat.h: New file.
18640
18641         * modules/unistr/u8-strncmp: New file.
18642         * modules/unistr/u16-strncmp: New file.
18643         * modules/unistr/u32-strncmp: New file.
18644         * lib/unistr/u8-strncmp.c: New file.
18645         * lib/unistr/u16-strncmp.c: New file.
18646         * lib/unistr/u32-strncmp.c: New file.
18647
18648         * modules/unistr/u8-strncpy: New file.
18649         * modules/unistr/u16-strncpy: New file.
18650         * modules/unistr/u32-strncpy: New file.
18651         * lib/unistr/u8-strncpy.c: New file.
18652         * lib/unistr/u16-strncpy.c: New file.
18653         * lib/unistr/u32-strncpy.c: New file.
18654         * lib/unistr/u-strncpy.h: New file.
18655
18656         * modules/unistr/u8-strnlen: New file.
18657         * modules/unistr/u16-strnlen: New file.
18658         * modules/unistr/u32-strnlen: New file.
18659         * lib/unistr/u8-strnlen.c: New file.
18660         * lib/unistr/u16-strnlen.c: New file.
18661         * lib/unistr/u32-strnlen.c: New file.
18662         * lib/unistr/u-strnlen.h: New file.
18663
18664         * modules/unistr/u8-strpbrk: New file.
18665         * modules/unistr/u16-strpbrk: New file.
18666         * modules/unistr/u32-strpbrk: New file.
18667         * lib/unistr/u8-strpbrk.c: New file.
18668         * lib/unistr/u16-strpbrk.c: New file.
18669         * lib/unistr/u32-strpbrk.c: New file.
18670         * lib/unistr/u-strpbrk.h: New file.
18671
18672         * modules/unistr/u8-strrchr: New file.
18673         * modules/unistr/u16-strrchr: New file.
18674         * modules/unistr/u32-strrchr: New file.
18675         * lib/unistr/u8-strrchr.c: New file.
18676         * lib/unistr/u16-strrchr.c: New file.
18677         * lib/unistr/u32-strrchr.c: New file.
18678
18679         * modules/unistr/u8-strspn: New file.
18680         * modules/unistr/u16-strspn: New file.
18681         * modules/unistr/u32-strspn: New file.
18682         * lib/unistr/u8-strspn.c: New file.
18683         * lib/unistr/u16-strspn.c: New file.
18684         * lib/unistr/u32-strspn.c: New file.
18685         * lib/unistr/u-strspn.h: New file.
18686
18687         * modules/unistr/u8-strstr: New file.
18688         * modules/unistr/u16-strstr: New file.
18689         * modules/unistr/u32-strstr: New file.
18690         * lib/unistr/u8-strstr.c: New file.
18691         * lib/unistr/u16-strstr.c: New file.
18692         * lib/unistr/u32-strstr.c: New file.
18693         * lib/unistr/u-strstr.h: New file.
18694
18695         * modules/unistr/u8-strtok: New file.
18696         * modules/unistr/u16-strtok: New file.
18697         * modules/unistr/u32-strtok: New file.
18698         * lib/unistr/u8-strtok.c: New file.
18699         * lib/unistr/u16-strtok.c: New file.
18700         * lib/unistr/u32-strtok.c: New file.
18701         * lib/unistr/u-strtok.h: New file.
18702
18703         * modules/unistr/u8-uctomb: New file.
18704         * modules/unistr/u16-uctomb: New file.
18705         * modules/unistr/u32-uctomb: New file.
18706         * lib/unistr/u8-uctomb.c: New file.
18707         * lib/unistr/u16-uctomb.c: New file.
18708         * lib/unistr/u32-uctomb.c: New file.
18709
18710         * MODULES.html.sh (Unicode string functions): Add the new modules.
18711
18712 2007-01-08  Bruno Haible  <bruno@clisp.org>
18713
18714         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18715         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18716         subdirectories.
18717
18718 2007-01-08  Karl Berry  <karl@gnu.org>
18719
18720         * doc/error.texi: mention that main() fns must set program_name
18721         when progname is used.
18722
18723 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18724
18725         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18726         WCTYPE_H is empty, for the benefit of builds from non-distclean
18727         directories.  Problem reported by Eric Blake in
18728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18729
18730 2007-01-08  Bruno Haible  <bruno@clisp.org>
18731
18732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18733         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18734         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18735         PROVIDE_CANONICALIZE_FILENAME_MODE.
18736         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18737
18738 2007-01-08  Bruno Haible  <bruno@clisp.org>
18739
18740         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18741         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18742         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18743         * lib/fts.c: Likewise.
18744         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18745
18746 2006-12-25  Bruno Haible  <bruno@clisp.org>
18747
18748         * modules/utf8-ucs4-safe: New file.
18749         * lib/utf8-ucs4-safe.h: New file.
18750         * lib/unistr/utf8-ucs4-safe.c: New file.
18751
18752         * modules/utf16-ucs4-safe: New file.
18753         * lib/utf16-ucs4-safe.h: New file.
18754         * lib/unistr/utf16-ucs4-safe.c: New file.
18755
18756         * MODULES.html.sh (Unicode string functions): Add the new modules.
18757
18758 2007-01-08  Bruno Haible  <bruno@clisp.org>
18759
18760         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18761         (Depends-on): Add unitypes.
18762         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18763         (u8_mbtouc_aux): Move out to separate file.
18764         (u8_mbtouc): Use ucs4_t, uint8_t types.
18765         * lib/unistr/utf8-ucs4.c: New file.
18766
18767         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18768         (Depends-on): Add unitypes.
18769         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18770         (u16_mbtouc_aux): Move out to separate file.
18771         (u16_mbtouc): Use ucs4_t, uint16_t types.
18772         * lib/unistr/utf16-ucs4.c: New file.
18773
18774         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18775         (Depends-on): Add unitypes.
18776         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18777         (u8_uctomb_aux): Move out to separate file.
18778         (u8_uctomb): Use ucs4_t, uint8_t types.
18779         * lib/unistr/ucs4-utf8.c: New file.
18780
18781         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18782         (Depends-on): Add unitypes.
18783         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18784         (u16_uctomb_aux): Move out to separate file.
18785         (u16_uctomb): Use ucs4_t, uint16_t types.
18786         * lib/unistr/ucs4-utf16.c: New file.
18787
18788 2006-12-25  Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/unitypes: New file.
18791         * lib/unitypes.h: New file.
18792         * MODULES.html.sh (func_all_modules): New section "Unicode string
18793         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18794         this section. Add unitypes.
18795
18796 2007-01-08  Bruno Haible  <bruno@clisp.org>
18797
18798         Avoid variable names that conflict with those from libtool.
18799         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18800         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18801         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18802         library_names_spec to acl_library_names_spec, hardcode_* to
18803         acl_hardcode_*.
18804         Reported by Ralf Wildenhues.
18805
18806 2007-01-08  Bruno Haible  <bruno@clisp.org>
18807
18808         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18809         definition.
18810         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18811         definition.
18812         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18813         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18814         definition.
18815         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18816         definition.
18817         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18818         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18819         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18820         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18821         definition.
18822         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18823         definition.
18824         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18825         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18826         GC_USE_<algorithm>.
18827         * lib/gc-libgcrypt.c: Likewise.
18828         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18829         * modules/gc-arctwo (configure.ac): Likewise.
18830         * modules/gc-des (configure.ac): Likewise.
18831         * modules/gc-hmac-md5 (configure.ac): Likewise.
18832         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18833         * modules/gc-md2 (configure.ac): Likewise.
18834         * modules/gc-md4 (configure.ac): Likewise.
18835         * modules/gc-md5 (configure.ac): Likewise.
18836         * modules/gc-random (configure.ac): Likewise.
18837         * modules/gc-rijndael (configure.ac): Likewise.
18838         * modules/gc-sha1 (configure.ac): Likewise.
18839
18840 2007-01-08  Bruno Haible  <bruno@clisp.org>
18841
18842         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18843         macro definition.
18844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18845         definition.
18846         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18847         definition.
18848         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18849         * modules/fcntl-safer (configure.ac): Likewise.
18850         * modules/fopen-safer (configure.ac): Likewise.
18851         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18852         GNULIB_FWRITEERROR macro definition.
18853
18854 2007-01-08  Bruno Haible  <bruno@clisp.org>
18855
18856         * m4/gnulib-common.m4: New file.
18857         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18858         (func_get_filelist): Add m4/gnulib-common.m4.
18859
18860 2007-01-08  Bruno Haible  <bruno@clisp.org>
18861
18862         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18863         command.
18864
18865 2007-01-08  Jim Meyering  <jim@meyering.net>
18866
18867         Use a more robust test for a "can't happen" condition.
18868         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18869         narrowed the st_size value.  Presuming the "can't happen" condition
18870         is true, that narrowing could conceivably convert an invalid st_size
18871         value into a valid one.  Instead, use a change based on Matthew
18872         Woehlke's original patch.
18873
18874         Slight readability improvement: use an assert-like macro
18875         in place of literal "abort ()" uses.
18876         * lib/fts.c (fts_assert): Define.
18877         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18878         Use this macro instead of a bare 'abort'.
18879
18880 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18881
18882         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18883         simply work around them.
18884         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18885         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18886         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18887         declaring.
18888         Don't bother to define as macros, since the standard doesn't require it.
18889         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18890         longer worry about IRIX 5.3.
18891         (HAVE_WCTYPE_CTMP_BUG): Remove.
18892
18893 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18894
18895         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18896         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18897         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18898         Problems reported by Georg Schwarz for IRIX 5.3.
18899
18900         * gnulib-tool (autoconf_minversion): Take the maximum version number
18901         found, not the minimum.  Problem reported by James Youngman.
18902
18903 2007-01-03  Karl Berry  <karl@gnu.org>
18904
18905         * doc/error.texi: new file, explaining interaction with progname.
18906         * doc/gnulib.texi: include it.  Update copyright.
18907
18908 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18909
18910         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18911         AC_CANONICAL_HOST, to improve autobuild outputs.
18912
18913 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18914             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18915
18916         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18917         sockets, server sockets, and other file descriptors.  Count errors
18918         to compute the return value.  Reorder the code a bit to be easier
18919         to follow.  Don't set event bits that were not requested (except
18920         POLLERR and POLLHUP).
18921
18922 2007-01-01  Bruno Haible  <bruno@clisp.org>
18923
18924         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18925
18926 2007-01-03  Jim Meyering  <jim@meyering.net>
18927
18928         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18929
18930 2007-01-02  Bruno Haible  <bruno@clisp.org>
18931
18932         * modules/settime (Include): Require timespec.h.
18933         * modules/nanosleep (Include): Likewise.
18934
18935 2007-01-01  Bruno Haible  <bruno@clisp.org>
18936
18937         * gnulib-tool (func_emit_copyright_notice): Bump year.
18938         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18939
18940 2007-01-01  Bruno Haible  <bruno@clisp.org>
18941
18942         Improve support for OpenBSD.
18943         * build-aux/config.rpath (libname_spec): Export.
18944         (library_names_spec): New variable. Export.
18945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18946         library_names_spec from the config.rpath output. Locate shared library
18947         through the name pattern in library_names_spec.
18948
18949 2007-01-01  Eric Blake  <ebb9@byu.net>
18950
18951         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18952
18953 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18954
18955         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18956         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18957         assume the C locale, and avoid an "eval" that could cause trouble.
18958         Problem with SORT reported by Bob Proulx.
18959
18960         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18961         Define.  Trivial patch from Henning Nielsen Lund, originally
18962         sent to bug-grep@gnu.org today.
18963
18964 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18965
18966         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18967         struct stat.  Problem reported by Henning Nielsen Lund.
18968         * lib/acl.c: Include acl.h first, to check interface.  Don't
18969         bother to include sys/types.h and sys/stat.h again.
18970
18971 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18972
18973         Import the following change from libc; problem reported by
18974         Sven Verdoolaege.
18975
18976         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18977
18978         [BZ #1373]
18979         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18980
18981 2006-12-28  Jim Meyering  <jim@meyering.net>
18982
18983         * build-aux/announce-gen: Do not assume that the package
18984         builds any of tar.gz, tar.bz2, and .xdelta files.
18985         Suggestion from Simon Josefsson.
18986
18987 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18988
18989         * modules/announce-gen: New file.
18990
18991 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18992
18993         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18994         handles its gotchas now.
18995         * lib/mbswidth.c: Likewise.
18996         * lib/wcwidth.h: Likewise.
18997         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18998         and iswcntrl; the wctype module does this stuff now.
18999         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19001         * modules/mbchar (Depends-on): Add wctype.
19002         * modules/mbswidth (Depends-on): Likewise.
19003         * modules/wcwidth (Depends-on): Likewise.
19004
19005 2006-12-27  Eric Blake  <ebb9@byu.net>
19006
19007         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
19008         module uses more than what <wctype.h> is required to provide.
19009
19010 2006-12-26  Eric Blake  <ebb9@byu.net>
19011
19012         * gnulib-tool (sed_extract_prog): Avoid space-tab.
19013
19014 2006-12-26  Eric Blake  <ebb9@byu.net>
19015
19016         * modules/absolute-header: New module.
19017         * modules/fcntl (Depends-on): Depend on it.
19018         * modules/inttypes (Depends-on): Likewise.
19019         * modules/stdint (Depends-on): Likewise.
19020         * modules/sys_stat (Depends-on): Likewise.
19021         * modules/wctype (Depends-on): Likewise.
19022         * MODULES.html.sh (Support for building libraries and
19023         executables): Document it.
19024
19025 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19026
19027         * gnulib-tool (SED): Remove, undoing previous change.
19028         The problem was that it broke coreutils on Solaris, because
19029         "sed --posix" leaked into a makefile.
19030         (sed): New alias, if 'alias' and GNU sed.
19031
19032 2006-12-24  Jim Meyering  <jim@meyering.net>
19033
19034         Work around an fchownat bug in glibc-2.4:
19035         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
19036         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
19037         in spite of the -P option.
19038         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
19039         New macros.
19040         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
19041         * modules/openat (Files): Add lib/fchownat.c.
19042         * lib/openat.c (fchownat): Don't define here.  Move to...
19043         * lib/fchownat.c: ...this new file.
19044
19045 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19046
19047         Fix bug reported by Bruno Haible in
19048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
19049         where quotearg.c didn't compile on Mac OS X 10.2 because it
19050         lacks <wchar.h> and wint_t.
19051         * lib/wctype_.h (__wctype_wint_t): New type.
19052         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
19053         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
19054         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
19055         Arg is now of type __wctype_wint_t, not wint_t.
19056         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
19057         substitute HAVE_WINT_T.
19058         * modules/wctype (Files): Add m4/wint_t.m4.
19059         (wctype.h): Substitute HAVE_WINT_T.
19060
19061 2006-12-23  Bruno Haible  <bruno@clisp.org>
19062
19063         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
19064
19065 2006-12-23  Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
19068         S_ISLNK.
19069         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
19070         mingw.
19071
19072 2006-12-22  Bruno Haible  <bruno@clisp.org>
19073
19074         * lib/copy-file.c: Include acl.h.
19075         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
19076         Close the file descriptors only after being done with copy_acl.
19077         * modules/copy-file (Depends-on): Add acl.
19078
19079 2006-12-22  Bruno Haible  <bruno@clisp.org>
19080
19081         * gnulib-tool (SED): New variable.
19082         Use $SED instead of sed everywhere.
19083
19084 2006-12-22  Bruno Haible  <bruno@clisp.org>
19085
19086         * modules/no-c++: New file.
19087         * m4/no-c++.m4: New file.
19088         * MODULES.html.sh (Support for building libraries and executables):
19089         Add no-c++.
19090
19091 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19092
19093         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19094         Include <limits.h>, and use its INT_MAX to rewrite the
19095         j loop so that it does not overflow 'int'.  Problem reported by
19096         Ralf Wildenhues in
19097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
19098         Play it safe by shifting left by 1 rather than multiplying by 2,
19099         as GCC is less likely to optimize this away when the value
19100         is signed (when it assumes overflow leads to undefined behavior).
19101         Also, don't assume time_t uses two's complement.
19102
19103 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19104
19105         * MODULES.html.sh: New module wctype.
19106         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
19107         * lib/fnmatch.c: Don't bother to include <wchar.h> before
19108         <wctype.h>, since the new wctype module should fix this.
19109         * lib/quotearg.c: Include <wctype.h> unconditionally, since
19110         the wctype module should arrange for it.
19111         * lib/regex_internal.h: Likewise.
19112         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
19113         since the wctype module should handle this now.
19114         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
19115         * modules/fnmatch (Depends-on): Add wctype.
19116         * modules/quotearg (Depends-on): Likewise.
19117         * modules/regex (Depends-on): Likewise.
19118
19119 2006-12-19  Bruno Haible  <bruno@clisp.org>
19120
19121         * lib/strdup.h [C++]: Wrap definitions in extern "C".
19122         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
19123
19124 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19125
19126         * modules/savewd (Depends-on): Fix dependency on fcntl.
19127
19128 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19129
19130         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
19131         conforms to C99, rather than relying on the user's environment
19132         setting of STDINT_H.
19133
19134 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19135         and Eric Blake  <ebb9@byu.net>
19136
19137         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
19138         This is more consistent with the other defines here.
19139         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
19140         Port to z/OS.  Problem reported by Paul Gilmartin.
19141         Change local vars to use gl_ prefix rather than ac_.
19142         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
19143         with other defines.
19144         * modules/double-slash-root: New module.
19145         * modules/dirname (Files): Remove m4/double-slash-root.m4.
19146         (Depends-on): Add double-slash-root.
19147         * MODULES.html.sh (File system functions): Mention new module.
19148
19149 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
19150
19151         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
19152         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
19153         This is for the benefit of gzip, which doesn't do i18n.
19154
19155 2006-12-12  Jim Meyering  <jim@meyering.net>
19156
19157         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19158         Reported by Andreas Schwab <schwab@suse.de>.
19159
19160 2006-12-12  Bruno Haible  <bruno@clisp.org>
19161
19162         Merge these changes.
19163         2006-09-05  Bruno Haible  <bruno@clisp.org>
19164         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19165         iconv_alloc succeeded.
19166         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19167         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19168         test for " && dest " at the end - dest is always != NULL there. Call
19169         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19170         with 2xNULL arguments, also to flush the state storage. Handle the
19171         IRIX iconv behaviour. Realloc the final result, to throw away unused
19172         memory.
19173
19174 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19175
19176         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19177         and fchmodat unconditionally, since glibc 2.4 has them.
19178         Problem reported by Arkadiusz Miskiewicz.
19179
19180 2006-12-10  Bruno Haible  <bruno@clisp.org>
19181
19182         * gnulib-tool (func_import): Show the include files only for those
19183         modules that are copied and specified.
19184         Reported by Karl Berry.
19185
19186 2006-12-08  Jim Meyering  <jim@meyering.net>
19187
19188         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19189         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19190
19191         * build-aux/announce-gen: Add two new options, both optional:
19192         --bootstrap-tools=TOOL_LIST
19193               a comma-separated list of tools, e.g.,
19194               autoconf,automake,bison,gnulib
19195         --gnulib-snapshot-date=DATE
19196               if gnulib is in the bootstrap tool list,
19197               then report this as the snapshot date.
19198               If not specified, use the current date/time.
19199               If you specify a date here, be sure it's UTC.
19200
19201 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19202
19203         * tests/test-argp-2.sh: Fix test to match actual output.
19204         (func_compare): Fix sed script to be portable.
19205
19206 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19207
19208         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19209         workaround for this case.  It is not autoconfigured now; offhand
19210         it's hard to see how to autoconfigure it.
19211
19212 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19213
19214         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19215         a directory that is about to be chowned.  Such a directory's
19216         initial file permissions should permit the owner only and this
19217         should not be changed until after the chown, since the group and
19218         other bits would be incorrect if they granted permission before
19219         the chown.
19220
19221         Fix porting problem for iswctype reported by Georg Schwarz in:
19222         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19223         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19224         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19226         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19227
19228 2006-12-03  Jim Meyering  <jim@meyering.net>
19229
19230         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19231         p->fts_statp may not yet be defined.
19232         (fts_read): Instead, set it in the caller, once p->fts_statp is
19233         sure to be defined, and corresponds to a top-level directory.
19234         This bug made du -x fail.  Here's the coreutils test case:
19235         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19236         Reported by Mike Frysinger.
19237
19238 2006-12-01  Jim Meyering  <jim@meyering.net>
19239
19240         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19241         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19242         Reported by Simon Josefsson.
19243
19244 2006-11-30  Jim Meyering  <jim@meyering.net>
19245
19246         * m4/warning.m4: Use the all-permissive copyright notice
19247         recommended by RMS (rather than LGPL).
19248         * m4/vararrays.m4: Likewise.
19249         * m4/flexmember.m4: Likewise.
19250
19251 2006-11-29  Bruno Haible  <bruno@clisp.org>
19252
19253         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19254         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19255         using +=.
19256         Reported by Simon Josefsson <simon@josefsson.org>.
19257
19258 2006-11-28  James Youngman <jay@gnu.org>
19259
19260         * README: Advise users that they might find the bug-gnulib@gnu.org
19261         and autotools-announce@gnu.org mailing lists useful.
19262
19263 2006-11-28  Bruno Haible  <bruno@clisp.org>
19264
19265         * m4/ptrdiff_max.m4: Remove file.
19266
19267 2006-11-21  Bruno Haible  <bruno@clisp.org>
19268
19269         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19270         _AC_COMPUTE_INT.
19271         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19272         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19273         _AC_COMPUTE_INT.
19274         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19275         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19276         _AC_COMPUTE_INT.
19277         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19278
19279 2006-11-28  Jim Meyering  <jim@meyering.net>
19280
19281         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19282         warning from "gcc -Wshadow" about shadowing the builtin.
19283
19284 2006-11-27  Bruno Haible  <bruno@clisp.org>
19285
19286         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19287         _AC_COMPUTE_INT.
19288         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19289
19290 2006-11-27  Bruno Haible  <bruno@clisp.org>
19291             Paul Eggert  <eggert@cs.ucla.edu>
19292
19293         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19294
19295 2006-11-26  Bruno Haible  <bruno@clisp.org>
19296
19297         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19298         noinst_LTLIBRARIES.
19299
19300 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19301             Bruno Haible  <bruno@clisp.org>
19302
19303         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19304         if compiling with "gcc -ansi".
19305
19306 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19307
19308         Fix some incompatibilities with gcc -ansi -pedantic.
19309         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19310         if compiling pedantically with GCC, unless it's C99 or later.
19311         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19312         it mishandles gcc -ansi -pedantic as well.
19313         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19314         if gcc -pedantic.
19315         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19316         initializers for struct if -pedantic, unless it's C99 or later.
19317
19318 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19319
19320         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19321         Don't close an fd more than once. Identical atimes indicate
19322         success, not failure.
19323
19324 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19325
19326         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19327
19328 2006-11-23  Jim Meyering  <jim@meyering.net>
19329
19330         * build-aux/announce-gen: New file.  From coreutils.
19331
19332 2006-11-22  Jim Meyering  <jim@meyering.net>
19333
19334         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19335         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19336         (fts_read): Use a temporary to narrow the overused st_size member
19337         before using it in a switch statement.  Reported by Matthew Woehlke.
19338
19339         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19340         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19341
19342 2006-11-20  Bruno Haible  <bruno@clisp.org>
19343
19344         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19345         changequote instead of pairs of brackets.
19346         Reported by Andreas Schwab <schwab@suse.de>.
19347
19348 2006-11-21  Jim Meyering  <jim@meyering.net>
19349
19350         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19351         so as to remain compatible with older compilers.
19352         Patch from Michael Deutschmann.
19353
19354 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         * MODULES.html.sh (File system functions): Add openat.
19357
19358         * lib/openat.h (rpl_fstatat): New macro, if
19359         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19360         (fstatat): Define to rpl_fstatat under the same conditions,
19361         unless COMPILING_FSTATAT.
19362         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19363         seems to have the bug.
19364         * lib/fstatat.c: New file.
19365         * modules/openat (Files): Add it.
19366
19367 2006-11-20  Bruno Haible  <bruno@clisp.org>
19368
19369         * Makefile: New file.
19370
19371 2006-11-20  Jim Meyering  <jim@meyering.net>
19372
19373         The beginnings of syntax-related checks for gnulib.
19374         * lib/Makefile: New file.
19375         * lib/t-idcache: New script.  Ensure that the two halves of
19376         idcache.c stay in sync.
19377
19378         * lib/idcache.c: Adjust comments in user- and group- portions to
19379         be more accurate, and to be consistent with one another.
19380
19381 2006-11-20  Jim Meyering  <jim@meyering.net>
19382
19383         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19384         continue using the flexible array member (thus, this module performs
19385         half as many malloc calls), with the addition that...
19386         (getgroup, getuser): Consistently record a non-match via an empty
19387         "name" string, and map an empty string match to a NULL return value.
19388         * modules/idcache (Depends-on): Re-add flexmember.
19389
19390         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19391         (getuidbyname, getgroup, getgidbyname): Likewise.
19392
19393         Use cleaner syntax: NULL rather than 0.
19394         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19395
19396 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19397
19398         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19399         It mishandled the case where the group was missing.
19400         Problem reported by Greg Schafer.
19401         * modules/idcache: Likewise.
19402
19403 2006-11-18  Jim Meyering  <jim@meyering.net>
19404
19405         * check-module (%exempt_header): Add exception for some
19406         conditionally-included headers.
19407
19408         * modules/i-ring (Depends-on): Add verify.
19409         (License): Change to LGPL.
19410
19411 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19412
19413         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19414         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19415         and inttostr.h.  Use snprintf rather than uinttostr, so that
19416         LGPLed code doesn't depend on GPLed.
19417
19418 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19419
19420         * modules/inline (License): Change from GPL to LGPL.
19421
19422 2006-11-17  Jim Meyering  <jim@meyering.net>
19423
19424         * modules/d-type (License): Switch to LGPL.
19425
19426 2006-11-15  Bruno Haible  <bruno@clisp.org>
19427
19428         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19429
19430 2006-11-15  Eric Blake  <ebb9@byu.net>
19431
19432         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19433         the module dependency.
19434
19435 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19436             Bruno Haible  <bruno@clisp.org>
19437
19438         * gnulib-tool (func_create_testdir): Add license consistency check.
19439
19440 2006-11-15  Eric Blake  <ebb9@byu.net>
19441
19442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19443         random "(cached)" in configure output.
19444
19445 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19446
19447         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19448         test for conforming inttypes.h is both announced and cached.
19449
19450         * MODULES.html.sh (seen_modules, seen_files): New variables.
19451         (func_module): Rewrite to use a few less gnulib-tool and sed
19452         invocations.  Avoid a couple of quadratic algorithms for ...
19453         (missed_modules, missed_files): ... these, with ...
19454         (func_append, func_tmpdir): ... these new functions, from
19455         gnulib-tool.  Analogously, install traps for cleanup.
19456
19457         * tests/test-gc.c (main): Remove unused variables.
19458         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19459
19460 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19461
19462         * modules/inttostr (License): Change to LGPL.
19463
19464 2006-11-14  Eric Blake  <ebb9@byu.net>
19465
19466         * modules/tempname (License): Change to LGPL.
19467
19468 2006-11-14  Eric Blake  <ebb9@byu.net>
19469
19470         * doc/functions.texi (Function Portability): *printf functions on
19471         Cygwin now understand all POSIX size specifiers.
19472
19473 2006-11-14  Bruno Haible  <bruno@clisp.org>
19474
19475         * modules/c-ctype (License): Change to LGPL.
19476
19477 2006-11-12  Bruno Haible  <bruno@clisp.org>
19478
19479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19480         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19481         for GNOME libraries, for which the include files are installed in
19482         subdirectories of $prefix/include.
19483
19484 2006-11-12  Bruno Haible  <bruno@clisp.org>
19485
19486         * m4/lib-link.m4: Require at least autoconf-2.54.
19487         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19488         name to underscores for the --with option.
19489
19490 2006-11-13  Bruno Haible  <bruno@clisp.org>
19491
19492         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19493         the tests directory.
19494         Reported by Ralf Wildenhues.
19495
19496 2006-11-13  Bruno Haible  <bruno@clisp.org>
19497
19498         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19499         (func_emit_initmacro_end): Undo the override here.
19500         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19501         Works around the famous automake error in coreutils.
19502
19503 2006-11-13  Eric Blake  <ebb9@byu.net>
19504
19505         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19506         element, not its node.
19507
19508 2006-11-12  Bruno Haible  <bruno@clisp.org>
19509
19510         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19511         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19512
19513 2006-11-12  Bruno Haible  <bruno@clisp.org>
19514
19515         * gnulib-tool: New option --local-symlink.
19516         (func_usage): Document it.
19517         (lsymbolic): New variable.
19518         (func_import, func_create_testdir): If --symlink was not specified,
19519         test whether --local-symlink was specified and the file comes from
19520         the local_gnulib_dir.
19521
19522 2006-11-12  Bruno Haible  <bruno@clisp.org>
19523
19524         * gnulib-tool (func_ln): New function.
19525         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19526
19527 2006-11-12  Bruno Haible  <bruno@clisp.org>
19528
19529         Finish support for source files in subdirectories.
19530         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19531         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19532         AUTOMAKE_OPTIONS.
19533         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19534
19535 2006-11-12  Bruno Haible  <bruno@clisp.org>
19536
19537         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19538         EXTRA_lib_SOURCES augmentation.
19539         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19540
19541 2006-11-12  Jim Meyering  <jim@meyering.net>
19542
19543         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19544         file descriptors.  This also averts a failure on systems with
19545         native openat support when a traversed directory lacks "x" access.
19546         * lib/fts_.h: Include "i-ring.h"
19547         (struct FTS) [fts_fd_ring]: New member.
19548         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19549         (FCHDIR): Add parentheses.
19550         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19551         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19552         When descending, rather than simply closing the previous
19553         fts_cwd_fd value, push that file descriptor onto the ring.
19554         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19555         (fts_open): Initialize the new fd_ring member.
19556         (fts_close): Clear the ring.
19557         (fts_safe_changedir): When possible, use our new fd_ring to skip
19558         the diropen and fstat and dev/ino comparison that would normally
19559         accompany a virtual `chdir ("..")'.
19560
19561         * modules/fts (Depends-on): Add i-ring.
19562         * modules/i-ring: New module.
19563         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19564         * m4/i-ring.m4: New file.
19565
19566 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19567
19568         * gnulib-tool (func_create_testdir): Fix replacement of
19569         `build-aux' in configure.ac.  Run autotools in gltests
19570         subdirectory.
19571         (func_create_testdir, func_create_megatestdir, test): There is
19572         no need for '--force' in most autotool invocations in a new
19573         tree.  Actually fail the whole test if any of the tools, or the
19574         configure or make stages fail.
19575
19576         Sync from Automake.
19577         * build-aux/gnupload: Revert last change.  Add pointer to upload
19578         instructions of the GNU Maintenance Instructions.
19579         Suggestion by Karl Berry.
19580
19581 2006-11-10  Jim Meyering  <jim@meyering.net>
19582
19583         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19584
19585 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19586
19587         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19588         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19589         (bind_textdomain_codeset) [! ENABLE_NLS]:
19590         Evaluate all the arguments.  That way, callers get compatible behavior
19591         if the arguments have side effects.  Also, it avoids some GCC
19592         diagnostics in some cases; Joel E. Denny reported problems when Bison
19593         was configured with --enable-gcc-warnigs.
19594
19595 2006-11-10  Jim Meyering  <jim@meyering.net>
19596
19597         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19598         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19599         account.
19600
19601 2006-11-10  Jim Meyering  <jim@meyering.net>
19602
19603         * modules/inline: New file/module.
19604         * modules/xalloc (Files): Remove m4/inline.m4.
19605         (Depends-on): Add inline, instead.
19606         * modules/oset: Likewise.
19607         * modules/list: Likewise.
19608
19609 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19610
19611         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19612         Problem reported by Matthew Woehlke.
19613
19614 2006-11-09  Bruno Haible  <bruno@clisp.org>
19615
19616         * lib/tempname.c (gen_tempname): Remove variant that invokes
19617         __gen_tempname.
19618         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19619         __gen_tempname.
19620
19621 2006-11-08  Bruno Haible  <bruno@clisp.org>
19622
19623         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19624         to 'yes' instead of 'cross-compiling'.
19625
19626 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19627
19628         * lib/quotearg.h (quotearg_free): New decl.
19629         * lib/quotearg.c (quotearg_free): New function.
19630         (slot0, nslots, slotvec0, slotvec):
19631         Now file-scope so that quotearg_free can get at them.
19632
19633 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19634
19635         Sync from Automake.
19636         * build-aux/gnupload: Add missing 'gnu' to example URL.
19637         Report by Karl Berry.
19638
19639 2006-11-08  Bruno Haible  <bruno@clisp.org>
19640
19641         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19642         Suggested by Paul Eggert.
19643
19644 2006-11-08  Jim Meyering  <jim@meyering.net>
19645
19646         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19647         It's already included if !_LIBC.
19648         (fts_safe_changedir): Add a comment.
19649
19650 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19653         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19654         Matthew Woehlke.
19655
19656         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19657         definitions up, to avoid colliding with change below.
19658         (static_inline) [HAVE_INLINE]: New macro.
19659         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19660         Provide extern decls when !HAVE_INLINE.  Do not define unless
19661         static_inline is defined, either by us or by xmalloc.c.  Use
19662         static_inline rather than static inline.
19663         (XCALLOC): Optimize sizeof(T) = 1 case.
19664         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19665
19666 2006-11-07  Bruno Haible  <bruno@clisp.org>
19667
19668         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19669         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19670         AC_C_INLINE.
19671         * modules/xalloc (Files): Add m4/inline.m4.
19672
19673 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19674
19675         * README: Fix typo.
19676         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19677         (Miscellanous Notes): ...from this.
19678
19679 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19682         Mention that offsetof should be used instead of sizeof.
19683         From Bruno Haible.
19684
19685 2006-11-07  Bruno Haible  <bruno@clisp.org>
19686
19687         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19688
19689 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19692         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19693         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19694         (gl_tree_add_before, gl_tree_add_after):
19695         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19696         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19697         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19698         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19699         (gl_linked_add_after, gl_linked_add_at): Likewise.
19700         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19701         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19702         (gl_tree_add_before, gl_tree_add_after): Likewise.
19703         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19704         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19705         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19706
19707 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19708
19709         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19710
19711 2006-11-06  Bruno Haible  <bruno@clisp.org>
19712
19713         * m4/inline.m4: New file.
19714         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19715         * modules/list (Files): Add m4/inline.m4.
19716         * modules/oset (Files): Likewise.
19717
19718 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19719
19720         * lib/idcache.c: Include <stddef.h>, for offsetof.
19721         (struct userid.name): Change from char * to a flexible array member.
19722         All uses changed.
19723         * modules/idcache (Depends-on): Add flexmember.
19724
19725         * MODULES.html.sh (Core language properties): New module flexmember.
19726         * modules/flexmember, m4/flexmember.m4: New files.
19727
19728         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19729         inline functions that are identical with the old xnmalloc_inline,
19730         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19731         that we can avoid some unnecessary integer multiplications and
19732         divisions in the common case where the element size is known at
19733         compile time.
19734         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19735         needed.
19736         (xnboundedmalloc): Remove.
19737         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19738         arguments, for consistency with rest of this header.
19739         (xcharalloc): Rewrite using XNMALLOC.
19740         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19741         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19742         versions have been moved to lib/xalloc.h and renamed to be the
19743         non-*_inline versions.
19744         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19745         and xnrealloc functions, since those functions are now inline and
19746         now call us.
19747         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19748         renaming described above.
19749         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19750         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19751         captures the dependency in AC_C_INLINE.
19752
19753         New module canonicalize-lgpl, proposed by Charles Wilson in
19754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19755         with a few small changes afterwards.
19756         * MODULES.html.sh (File system functions): New module
19757         canonicalize-lgpl.
19758         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19759         and canonicalize_file_name.
19760         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19761         * modules/canonicalize-lgpl: New files.
19762
19763 2006-11-05  Bruno Haible  <bruno@clisp.org>
19764
19765         * gnulib-tool (func_import, func_create_testdir): Create directories
19766         also for files in subdirectories of lib/.
19767
19768 2006-11-05  Bruno Haible  <bruno@clisp.org>
19769
19770         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19771         ANSI C compliant.
19772
19773 2006-11-03  Bruno Haible  <bruno@clisp.org>
19774
19775         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19776         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19777         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19778         (xnboundedmalloc): New inline function.
19779         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19780         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19781         xmalloc.
19782         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19783         xmalloc.
19784         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19785         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19786         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19787         xmalloc.
19788         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19789         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19790         xmalloc.
19791         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19792         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19793         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19794         xmalloc.
19795         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19796         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19797         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19798         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19799         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19800         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19801         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19802
19803 2006-11-03  Bruno Haible  <bruno@clisp.org>
19804
19805         * lib/c-ctype.h [C++]: Define functions without name mangling.
19806         * lib/fwriteerror.h [C++]: Likewise.
19807         * lib/gcd.h [C++]: Likewise.
19808         * lib/linebreak.h [C++]: Likewise.
19809
19810 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19811
19812         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19813         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19814         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19815         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19816         Check for functions and headers just once.
19817         Check for declaration of canonicalize_file_name.
19818         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19819
19820 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19821
19822         * gnulib-tool (func_import): Fix typo in actioncmd.
19823
19824 2006-11-02  Bruno Haible  <bruno@clisp.org>
19825
19826         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19827         newline sequence in the Makefile.am snippet as a space, like "make"
19828         does.
19829         Reported by Roger Persson <perrog@gmail.com>.
19830
19831 2006-11-01  Bruno Haible  <bruno@clisp.org>
19832
19833         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19834         already declared in <string.h>.
19835         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19836
19837 2006-11-01  Bruno Haible  <bruno@clisp.org>
19838
19839         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19840         * lib/strcase.h: Include <string.h>.
19841         (strcasecmp): Define to rpl_strcasecmp here.
19842
19843 2006-11-01  Bruno Haible  <bruno@clisp.org>
19844
19845         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19846
19847 2006-11-01  Eric Blake  <ebb9@byu.net>
19848
19849         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19850
19851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19852
19853 2006-10-29  Bruno Haible  <bruno@clisp.org>
19854
19855         Make it compile in C++ mode.
19856         * lib/full-write.c (full_rw): Add a cast.
19857
19858 2006-11-01  Bruno Haible  <bruno@clisp.org>
19859
19860         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19861         be POSIX compliant.
19862         Reported by Roger Persson <perrog@gmail.com>.
19863
19864 2006-11-01  Eric Blake  <ebb9@byu.net>
19865
19866         * lib/getopt_.h: Fix comments.
19867
19868 2006-10-31  Eric Blake  <ebb9@byu.net>
19869
19870         * modules/tmpdir (Depends-on): Add sys_stat.
19871         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19872         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19873         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19874         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19875         tempname.
19876
19877 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19878
19879         Avoid some C++ diagnostics reported by Bruno Haible.
19880         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19881         xmalloc.
19882         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19883         (struct slotvec): Move to top level.
19884         (quotearg_n_options): Rewrite to avoid xmalloc.
19885         * lib/xalloc.h (xcharalloc): New function.
19886         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19887         [defined __cplusplus]: Add function template that provides result
19888         type propagation.  This part of the change is from Bruno Haible.
19889
19890 2006-10-29  Bruno Haible  <bruno@clisp.org>
19891
19892         Make it compile in C++ mode.
19893         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19894         * lib/strnlen1.c (strnlen1): Cast memchr result.
19895         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19896         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19897         (create_temp_dir): Rename local variable 'template'.
19898         (compile_csharp_using_sscli): Add cast.
19899         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19900         * lib/findprog.c (find_in_path): Likewise.
19901         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19902         * lib/wait-process.c (register_slave_subprocess): Likewise.
19903
19904 2006-10-22  Bruno Haible  <bruno@clisp.org>
19905
19906         * modules/tsearch: New file.
19907         * lib/tsearch.h: New file.
19908         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19909         * m4/tsearch.m4: New file.
19910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19911
19912 2006-10-29  Eric Blake  <ebb9@byu.net>
19913
19914         * lib/arcfour.c: Assume config.h.
19915         * lib/arctwo.c: Likewise.
19916         * lib/base64.c: Likewise.
19917         * lib/check-version.c: Likewise.
19918         * lib/crc.c: Likewise.
19919         * lib/des.c: Likewise.
19920         * lib/gc-gnulib.c: Likewise.
19921         * lib/gc-libgcrypt.c: Likewise.
19922         * lib/gc-pbkdf2-sha1.c: Likewise.
19923         * lib/getaddrinfo.c: Likewise.
19924         * lib/getdelim.c: Likewise.
19925         * lib/getline.c: Likewise.
19926         * lib/hmac-md5.c: Likewise.
19927         * lib/hmac-sha1.c: Likewise.
19928         * lib/iconvme.c: Likewise.
19929         * lib/md2.c: Likewise.
19930         * lib/md4.c: Likewise.
19931         * lib/memxor.c: Likewise.
19932         * lib/read-file.c: Likewise.
19933         * lib/readline.c: Likewise.
19934         * lib/rijndael-alg-fst.c: Likewise.
19935         * lib/rijndael-api-fst.c: Likewise.
19936         * lib/xgetdomainname.c: Likewise.
19937
19938 2006-10-28  Eric Blake  <ebb9@byu.net>
19939
19940         * lib/xstrndup.c: Assume config.h.
19941
19942 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19945         stat-macros.h is now for our own macros, whereas stat_h is for
19946         macros in the <sys/stat.h> name space.
19947         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19948         (STAT_MACROS_H): Remove.
19949         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19950         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19951         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19952         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19953         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19954         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19955         Move these macros to ...
19956         * lib/stat_.h: here.  Don't include stat-macros.h.
19957         * lib/canonicalize.c: Don't include stat-macros.h.
19958         * lib/chown.c: Likewise.
19959         * lib/euidaccess.c: Likewise.
19960         * lib/file-type.c: Likewise.
19961         * lib/filemode.c: Likewise.
19962         * lib/glob.c: Likewise.
19963         * lib/isapipe.c: Likewise.
19964         * lib/lchown.c: Likewise.
19965         * lib/lstat.c: Likewise.
19966         * lib/mkdir-p.c: Likewise.
19967         * lib/rmdir.c: Likewise.
19968         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19969         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19970         unless mkdir isn't declared, to speed up 'configure'.
19971         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19972         would define all the S_* symbols.
19973         * modules/canonicalize (Depends-on):
19974         Depend on sys_stat, not stat-macros.
19975         * modules/chown: Likewise.
19976         * modules/euidaccess: Likewise.
19977         * modules/filemode: Likewise.
19978         * modules/file-type: Likewise.
19979         * modules/glob: Likewise.
19980         * modules/isapipe: Likewise.
19981         * modules/lchown: Likewise.
19982         * modules/lstat: Likewise.
19983         * modules/mkancesdirs: Likewise.
19984         * modules/rmdir: Likewise.
19985         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19986         * modules/modechange: Likewise.
19987         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19988         (configure.ac): Remove gl_STAT_MACROS.
19989         * modules/sys_stat (Depends-on): Remove stat-macros.
19990
19991 2006-10-27  Bruno Haible  <bruno@clisp.org>
19992
19993         * m4/signed.m4: Remove file.
19994         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19995         invocation.
19996         * modules/vasnprintf (Files): Remove m4/signed.m4.
19997
19998 2006-10-27  Bruno Haible  <bruno@clisp.org>
19999
20000         Update to GNU gettext 0.16.
20001         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
20002         m4/inttypes-h.m4, m4/signed.m4.
20003         * m4/gettext.m4: Update to GNU gettext 0.16.
20004         * m4/intl.m4: New file, from GNU gettext.
20005         * m4/intldir.m4: New file, from GNU gettext.
20006         * config/srclist.txt: Update
20007
20008 2006-10-27  Eric Blake  <ebb9@byu.net>
20009
20010         * MODULES.html.sh: Document tempname.
20011         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
20012         dependencies.
20013         (Files): Move lib/tempname.c...
20014         * modules/tempname: ...to this new module.
20015         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
20016         (gl_PREREQ_TEMPNAME): Move...
20017         * m4/tempname.m4: ...to this new file.
20018         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
20019         * modules/sys_stat (Depends-on): Add stat-macros.
20020         * lib/stat_.h (includes): Pick up stat macros.
20021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
20022         if stat macros are broken.
20023         * lib/tempname.c (includes): No need to include "stat-macros.h".
20024         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
20025         (direxists, __path_search) [!_LIBC]: Don't compile these in
20026         gnulib; the tmpdir module covers that.
20027         * lib/tempname.h: New file.
20028
20029 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20030
20031         * COPYING: Explain how gnulib-tool converts licence headers.
20032         Almost all wording by Eric Blake.
20033
20034 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         * lib/mbchar.h (is_basic_table): Make read-only.
20037         * lib/mbchar.c (is_basic_table): Likewise.
20038         Reported by John Darrington.
20039
20040 2006-10-25  Bruno Haible  <bruno@clisp.org>
20041
20042         * lib/progname.h (set_program_name): Undefine before defining.
20043
20044 2006-10-25  Bruno Haible  <bruno@clisp.org>
20045
20046         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
20047         false for non-gcc C++ compilers.
20048         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20049
20050 2006-10-24  Bruno Haible  <bruno@clisp.org>
20051
20052         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
20053         iconv implementations like Irix iconv.
20054
20055 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20056
20057         * modules/vararrays: New file.
20058         * m4/vararrays.m4: New file, taken from diffutils.
20059         * MODULES.html.sh: New module vararrays.
20060
20061 2006-10-24  Karl Berry  <karl@gnu.org>
20062
20063         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
20064         Don't call GNU Unix.
20065
20066 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20067
20068         * users.txt: Add Libtool.
20069
20070         Sync from Libtool:
20071
20072         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20073
20074         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
20075         to gnulib's policy of including config.h unconditionally.
20076
20077 2006-10-24  Bruno Haible  <bruno@clisp.org>
20078
20079         * modules/wcwidth (Files): Add m4/wint_t.m4.
20080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
20081         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
20082
20083 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
20084
20085         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
20086         to pacify GCC with some -W flags enabled.  Problem reported by
20087         Bruno Haible.
20088
20089 2006-10-24  Jim Meyering  <jim@meyering.net>
20090
20091         * MODULES.html.sh: Remove uinttostr.  It's not a module.
20092         Reported by Karl Berry.
20093
20094 2006-10-23  Bruno Haible  <bruno@clisp.org>
20095
20096         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
20097
20098 2006-10-24  Bruno Haible  <bruno@clisp.org>
20099
20100         * lib/gl_list.h: Use C comment style, not C++ comment style.
20101
20102 2006-10-23  Eric Blake  <ebb9@byu.net>
20103
20104         * lib/getaddrinfo.c (includes): Add missing include.
20105
20106 2006-10-23  Bruno Haible  <bruno@clisp.org>
20107             Paul Eggert  <eggert@cs.ucla.edu>
20108
20109         Ability to rename obstack_free.
20110         * lib/obstack.h (__obstack_free): New macro. Declare instead of
20111         obstack_free.
20112         (obstack_free): Invoke the __obstack_free macro.
20113         * lib/obstack.c (obstack_free): Use __obstack_free macro.
20114
20115 2006-10-23  Bruno Haible  <bruno@clisp.org>
20116             Paul Eggert  <eggert@cs.ucla.edu>
20117
20118         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
20119         __argc, __argv from the declaration. (They are defined as macros on
20120         mingw.)
20121
20122 2006-10-22  Bruno Haible  <bruno@clisp.org>
20123
20124         * doc/gnulib-intro.texi: New file.
20125         * doc/gnulib.texi: Include it.
20126
20127 2006-10-21  Bruno Haible  <bruno@clisp.org>
20128
20129         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
20130         "Introduction", "Miscellanous Notes", "Particular Modules".
20131
20132 2006-10-21  Bruno Haible  <bruno@clisp.org>
20133
20134         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20135         Change mostlyclean-local rule to avoid sh syntax error from bash
20136         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
20137
20138 2006-10-23  Jim Meyering  <jim@meyering.net>
20139
20140         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
20141         in place of snprintf.
20142
20143         * modules/inttostr (Files): Add lib/uinttostr.c.
20144         * lib/uinttostr.c (inttostr): New file/function.
20145         * lib/inttostr.h (uinttostr): Declare.
20146         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
20147         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
20148         Add uinttostr.
20149         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
20150
20151 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         * lib/canonicalize.c (ELOOP): Define if not already defined.
20154         Problem reported by Bruno Haible in
20155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20156
20157 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20158
20159         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20160         Problem reported by Perry Smith and Ville Laurikari.
20161
20162         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20163         uses.
20164
20165 2006-10-19  Bruno Haible  <bruno@clisp.org>
20166
20167         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20168         for mingw.
20169
20170 2006-10-19  Bruno Haible  <bruno@clisp.org>
20171
20172         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20173         Needed for mingw.
20174
20175 2006-10-19  Bruno Haible  <bruno@clisp.org>
20176
20177         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20178
20179 2006-10-19  Bruno Haible  <bruno@clisp.org>
20180
20181         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20182         it.
20183
20184 2006-10-19  Bruno Haible  <bruno@clisp.org>
20185
20186         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20187         invocation.
20188
20189 2006-10-19  Bruno Haible  <bruno@clisp.org>
20190
20191         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20192         mountlist by default.
20193
20194 2006-10-16  Bruno Haible  <bruno@clisp.org>
20195
20196         * lib/c-strstr.c: Include c-strstr.h.
20197
20198 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20199
20200         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20201         in a slash.
20202
20203 2006-10-18  Bruno Haible  <bruno@clisp.org>
20204
20205         * lib/lock.h [C++]: Wrap definitions in extern "C".
20206
20207 2006-10-18  Bruno Haible  <bruno@clisp.org>
20208
20209         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20210         gl_LIBOBJS list.
20211
20212 2006-10-18  Bruno Haible  <bruno@clisp.org>
20213
20214         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20215
20216 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20217
20218         * lib/xstrtol.h: Include gettext.h.
20219         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20220         Problem reported by Eric Blake.
20221         * modules/xstrtol (Depends-on): Add gettext-h.
20222
20223 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20224
20225         * lib/strftime.c (advance): New macro.
20226         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20227         incomplete type, so you can't add 0 to it.  Problem and patch
20228         reported by Eelco Dolstra for dietlibc.
20229
20230 2006-10-18  Jim Meyering  <jim@meyering.net>
20231
20232         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20233         type for a local, and rename it: s/up/user_proc/.
20234
20235 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20236
20237         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20238         READ_UTMP_USER_PROCESS.
20239         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20240
20241 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20242
20243         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20244         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20245
20246 2006-10-17  Eric Blake  <ebb9@byu.net>
20247
20248         * lib/sigprocmask.c (sigprocmask): Fix typo.
20249
20250         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20251
20252         * modules/clean-temp (Makefile.am): Don't add to make output...
20253         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20254         config.h.
20255
20256 2006-10-17  Bruno Haible  <bruno@clisp.org>
20257
20258         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20259         differently if DEFAULT_TEXT_DOMAIN is set.
20260
20261 2006-10-16  Bruno Haible  <bruno@clisp.org>
20262
20263         * lib/clean-temp.c: Include fwriteerror.h.
20264
20265 2006-10-16  Bruno Haible  <bruno@clisp.org>
20266
20267         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20268
20269 2006-10-16  Bruno Haible  <bruno@clisp.org>
20270
20271         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20272         * lib/sigprocmask.h: Include <sys/types.h>.
20273         (sigset_t): Use the system's definition if present.
20274
20275 2006-10-17  Eric Blake  <ebb9@byu.net>
20276
20277         * lib/xvasprintf.c (includes): Assume config.h.
20278         * lib/xasprintf.c (includes): Likewise.
20279
20280 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20283         at least as wide as intmax_t.
20284
20285 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20286
20287         (Imported from Automake.)
20288         * build-aux/gnupload: Update to version 1.1 of directive file.
20289
20290 2006-10-16  Eric Blake  <ebb9@byu.net>
20291
20292         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20293         match Automake 1.10a.
20294
20295 2006-10-14  Bruno Haible  <bruno@clisp.org>
20296
20297         * modules/sigprocmask: New file.
20298         * lib/sigprocmask.h: New file.
20299         * lib/sigprocmask.c: New file.
20300         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20301         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20302         request sigprocmask.o.
20303         (gl_PREREQ_SIGPROCMASK): New macro.
20304         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20305         (Depends-on): Add sigprocmask.
20306         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20307         gt_SIGNALBLOCKING. Test for 'raise' only once.
20308         * lib/fatal-signal.c: Include sigprocmask.h.
20309         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20310         unblock_fatal_signals): Define always.
20311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20312         sigprocmask.
20313
20314 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         Sync from Automake.
20317         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20318         which incorrectly sets the mode of an existing destination
20319         directory.  In some cases the unpatched install-sh could do the
20320         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20321         system.  We hope this is rare in practice, but it's clearly worth
20322         fixing.  Problem reported by Alex Unleashed in
20323         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20324         Also, don't bother to check for -m bugs unless we're using -m;
20325         suggested by Stepan Kasal.
20326
20327 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20328
20329         Sync from Automake.
20330         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20331         `-c' flag, so they appear at the same position as in %FASTDEP%
20332         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20333         which ignores unknown options only after the first non-option.
20334         Bug report against M4 by Nelson H. F. Beebe.
20335
20336 2006-10-13  Jim Meyering  <jim@meyering.net>
20337
20338         Fix a bug in yesterday's change.
20339         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20340         p->fts_statp->st_dev would be used uninitialized.
20341         Ensures that we always call fts_stat on the very first entry.
20342         Miklos Szeredi reported that find -xdev stopped working.
20343
20344 2006-10-12  Bruno Haible  <bruno@clisp.org>
20345
20346         * gnulib-tool (func_get_automake_snippet): Append an automatically
20347         computed EXTRA_DIST augmentation.
20348         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20349         * modules/alloca-opt (Makefile.am): Likewise.
20350         * modules/allocsa (Makefile.am): Likewise.
20351         * modules/arcfour (Makefile.am): Likewise.
20352         * modules/arctwo (Makefile.am): Likewise.
20353         * modules/argmatch (Makefile.am): Likewise.
20354         * modules/argz (Makefile.am): Likewise.
20355         * modules/atexit (Makefile.am): Likewise.
20356         * modules/backupfile (Makefile.am): Likewise.
20357         * modules/byteswap (Makefile.am): Likewise.
20358         * modules/c-strtod (Makefile.am): Likewise.
20359         * modules/c-strtold (Makefile.am): Likewise.
20360         * modules/calloc (Makefile.am): Likewise.
20361         * modules/canon-host (Makefile.am): Likewise.
20362         * modules/canonicalize (Makefile.am): Likewise.
20363         * modules/chdir-long (Makefile.am): Likewise.
20364         * modules/chdir-safer (Makefile.am): Likewise.
20365         * modules/check-version (Makefile.am): Likewise.
20366         * modules/chown (Makefile.am): Likewise.
20367         * modules/cloexec (Makefile.am): Likewise.
20368         * modules/close-stream (Makefile.am): Likewise.
20369         * modules/closeout (Makefile.am): Likewise.
20370         * modules/crc (Makefile.am): Likewise.
20371         * modules/csharpexec (Makefile.am): Likewise.
20372         * modules/cycle-check (Makefile.am): Likewise.
20373         * modules/des (Makefile.am): Likewise.
20374         * modules/dev-ino (Makefile.am): Likewise.
20375         * modules/dirfd (Makefile.am): Likewise.
20376         * modules/dirname (Makefile.am): Likewise.
20377         * modules/dup2 (Makefile.am): Likewise.
20378         * modules/eealloc (Makefile.am): Likewise.
20379         * modules/error (Makefile.am): Likewise.
20380         * modules/euidaccess (Makefile.am): Likewise.
20381         * modules/exclude (Makefile.am): Likewise.
20382         * modules/exitfail (Makefile.am): Likewise.
20383         * modules/fcntl-safer (Makefile.am): Likewise.
20384         * modules/fcntl (Makefile.am): Likewise.
20385         * modules/file-type (Makefile.am): Likewise.
20386         * modules/fileblocks (Makefile.am): Likewise.
20387         * modules/filemode (Makefile.am): Likewise.
20388         * modules/filenamecat (Makefile.am): Likewise.
20389         * modules/fnmatch (Makefile.am): Likewise.
20390         * modules/fopen-safer (Makefile.am): Likewise.
20391         * modules/fpending (Makefile.am): Likewise.
20392         * modules/fprintftime (Makefile.am): Likewise.
20393         * modules/free (Makefile.am): Likewise.
20394         * modules/fsusage (Makefile.am): Likewise.
20395         * modules/ftruncate (Makefile.am): Likewise.
20396         * modules/fts (Makefile.am): Likewise.
20397         * modules/gc-arcfour (Makefile.am): Likewise.
20398         * modules/gc-des (Makefile.am): Likewise.
20399         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20400         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20401         * modules/gc-md4 (Makefile.am): Likewise.
20402         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20403         * modules/gc-sha1 (Makefile.am): Likewise.
20404         * modules/gc (Makefile.am): Likewise.
20405         * modules/getaddrinfo (Makefile.am): Likewise.
20406         * modules/getcwd (Makefile.am): Likewise.
20407         * modules/getdelim (Makefile.am): Likewise.
20408         * modules/getdomainname (Makefile.am): Likewise.
20409         * modules/getgroups (Makefile.am): Likewise.
20410         * modules/gethostname (Makefile.am): Likewise.
20411         * modules/gethrxtime (Makefile.am): Likewise.
20412         * modules/getline (Makefile.am): Likewise.
20413         * modules/getloadavg (Makefile.am): Likewise.
20414         * modules/getlogin_r (Makefile.am): Likewise.
20415         * modules/getndelim2 (Makefile.am): Likewise.
20416         * modules/getopt (Makefile.am): Likewise.
20417         * modules/getpagesize (Makefile.am): Likewise.
20418         * modules/getpass-gnu (Makefile.am): Likewise.
20419         * modules/getpass (Makefile.am): Likewise.
20420         * modules/getsubopt (Makefile.am): Likewise.
20421         * modules/gettime (Makefile.am): Likewise.
20422         * modules/gettimeofday (Makefile.am): Likewise.
20423         * modules/getugroups (Makefile.am): Likewise.
20424         * modules/getusershell (Makefile.am): Likewise.
20425         * modules/glob (Makefile.am): Likewise.
20426         * modules/group-member (Makefile.am): Likewise.
20427         * modules/hard-locale (Makefile.am): Likewise.
20428         * modules/hash (Makefile.am): Likewise.
20429         * modules/hmac-md5 (Makefile.am): Likewise.
20430         * modules/hmac-sha1 (Makefile.am): Likewise.
20431         * modules/human (Makefile.am): Likewise.
20432         * modules/idcache (Makefile.am): Likewise.
20433         * modules/imaxabs (Makefile.am): Likewise.
20434         * modules/imaxdiv (Makefile.am): Likewise.
20435         * modules/inet_ntop (Makefile.am): Likewise.
20436         * modules/inet_pton (Makefile.am): Likewise.
20437         * modules/intprops (Makefile.am): Likewise.
20438         * modules/inttostr (Makefile.am): Likewise.
20439         * modules/inttypes (Makefile.am): Likewise.
20440         * modules/isapipe (Makefile.am): Likewise.
20441         * modules/javaversion (Makefile.am): Likewise.
20442         * modules/lchmod (Makefile.am): Likewise.
20443         * modules/lchown (Makefile.am): Likewise.
20444         * modules/localcharset (Makefile.am): Likewise.
20445         * modules/long-options (Makefile.am): Likewise.
20446         * modules/lstat (Makefile.am): Likewise.
20447         * modules/malloc (Makefile.am): Likewise.
20448         * modules/mathl (Makefile.am): Likewise.
20449         * modules/mbchar (Makefile.am): Likewise.
20450         * modules/md2 (Makefile.am): Likewise.
20451         * modules/md4 (Makefile.am): Likewise.
20452         * modules/md5 (Makefile.am): Likewise.
20453         * modules/memcasecmp (Makefile.am): Likewise.
20454         * modules/memchr (Makefile.am): Likewise.
20455         * modules/memcmp (Makefile.am): Likewise.
20456         * modules/memcoll (Makefile.am): Likewise.
20457         * modules/memcpy (Makefile.am): Likewise.
20458         * modules/memmem (Makefile.am): Likewise.
20459         * modules/memmove (Makefile.am): Likewise.
20460         * modules/mempcpy (Makefile.am): Likewise.
20461         * modules/memrchr (Makefile.am): Likewise.
20462         * modules/memset (Makefile.am): Likewise.
20463         * modules/memxor (Makefile.am): Likewise.
20464         * modules/mkancesdirs (Makefile.am): Likewise.
20465         * modules/mkdir-p (Makefile.am): Likewise.
20466         * modules/mkdir (Makefile.am): Likewise.
20467         * modules/mkdtemp (Makefile.am): Likewise.
20468         * modules/mkstemp (Makefile.am): Likewise.
20469         * modules/mktime (Makefile.am): Likewise.
20470         * modules/modechange (Makefile.am): Likewise.
20471         * modules/mountlist (Makefile.am): Likewise.
20472         * modules/nanosleep (Makefile.am): Likewise.
20473         * modules/obstack (Makefile.am): Likewise.
20474         * modules/openat (Makefile.am): Likewise.
20475         * modules/pagealign_alloc (Makefile.am): Likewise.
20476         * modules/pathmax (Makefile.am): Likewise.
20477         * modules/physmem (Makefile.am): Likewise.
20478         * modules/poll (Makefile.am): Likewise.
20479         * modules/posixtm (Makefile.am): Likewise.
20480         * modules/posixver (Makefile.am): Likewise.
20481         * modules/putenv (Makefile.am): Likewise.
20482         * modules/quote (Makefile.am): Likewise.
20483         * modules/quotearg (Makefile.am): Likewise.
20484         * modules/raise (Makefile.am): Likewise.
20485         * modules/read-file (Makefile.am): Likewise.
20486         * modules/readline (Makefile.am): Likewise.
20487         * modules/readlink (Makefile.am): Likewise.
20488         * modules/readtokens (Makefile.am): Likewise.
20489         * modules/readutmp (Makefile.am): Likewise.
20490         * modules/realloc (Makefile.am): Likewise.
20491         * modules/regex (Makefile.am): Likewise.
20492         * modules/rename-dest-slash (Makefile.am): Likewise.
20493         * modules/rename (Makefile.am): Likewise.
20494         * modules/rijndael (Makefile.am): Likewise.
20495         * modules/rmdir (Makefile.am): Likewise.
20496         * modules/rpmatch (Makefile.am): Likewise.
20497         * modules/safe-read (Makefile.am): Likewise.
20498         * modules/safe-write (Makefile.am): Likewise.
20499         * modules/same-inode (Makefile.am): Likewise.
20500         * modules/same (Makefile.am): Likewise.
20501         * modules/save-cwd (Makefile.am): Likewise.
20502         * modules/savedir (Makefile.am): Likewise.
20503         * modules/setenv (Makefile.am): Likewise.
20504         * modules/settime (Makefile.am): Likewise.
20505         * modules/sha1 (Makefile.am): Likewise.
20506         * modules/sig2str (Makefile.am): Likewise.
20507         * modules/snprintf (Makefile.am): Likewise.
20508         * modules/stat-macros (Makefile.am): Likewise.
20509         * modules/stat-time (Makefile.am): Likewise.
20510         * modules/stdbool (Makefile.am): Likewise.
20511         * modules/stdint (Makefile.am): Likewise.
20512         * modules/stdlib-safer (Makefile.am): Likewise.
20513         * modules/stpcpy (Makefile.am): Likewise.
20514         * modules/stpncpy (Makefile.am): Likewise.
20515         * modules/strcase (Makefile.am): Likewise.
20516         * modules/strcasestr (Makefile.am): Likewise.
20517         * modules/strchrnul (Makefile.am): Likewise.
20518         * modules/strcspn (Makefile.am): Likewise.
20519         * modules/strdup (Makefile.am): Likewise.
20520         * modules/strerror (Makefile.am): Likewise.
20521         * modules/strftime (Makefile.am): Likewise.
20522         * modules/strndup (Makefile.am): Likewise.
20523         * modules/strnlen (Makefile.am): Likewise.
20524         * modules/strpbrk (Makefile.am): Likewise.
20525         * modules/strsep (Makefile.am): Likewise.
20526         * modules/strstr (Makefile.am): Likewise.
20527         * modules/strtod (Makefile.am): Likewise.
20528         * modules/strtoimax (Makefile.am): Likewise.
20529         * modules/strtok_r (Makefile.am): Likewise.
20530         * modules/strtol (Makefile.am): Likewise.
20531         * modules/strtoll (Makefile.am): Likewise.
20532         * modules/strtoul (Makefile.am): Likewise.
20533         * modules/strtoull (Makefile.am): Likewise.
20534         * modules/strtoumax (Makefile.am): Likewise.
20535         * modules/strverscmp (Makefile.am): Likewise.
20536         * modules/sys_socket (Makefile.am): Likewise.
20537         * modules/sys_stat (Makefile.am): Likewise.
20538         * modules/sysexits (Makefile.am): Likewise.
20539         * modules/time_r (Makefile.am): Likewise.
20540         * modules/timegm (Makefile.am): Likewise.
20541         * modules/timespec (Makefile.am): Likewise.
20542         * modules/tmpfile-safer (Makefile.am): Likewise.
20543         * modules/trim (Makefile.am): Likewise.
20544         * modules/unistd-safer (Makefile.am): Likewise.
20545         * modules/unlinkdir (Makefile.am): Likewise.
20546         * modules/unlocked-io (Makefile.am): Likewise.
20547         * modules/userspec (Makefile.am): Likewise.
20548         * modules/utime (Makefile.am): Likewise.
20549         * modules/utimecmp (Makefile.am): Likewise.
20550         * modules/utimens (Makefile.am): Likewise.
20551         * modules/vasnprintf (Makefile.am): Likewise.
20552         * modules/vasprintf (Makefile.am): Likewise.
20553         * modules/vsnprintf (Makefile.am): Likewise.
20554         * modules/xalloc (Makefile.am): Likewise.
20555         * modules/xgetcwd (Makefile.am): Likewise.
20556         * modules/xnanosleep (Makefile.am): Likewise.
20557         * modules/xreadlink (Makefile.am): Likewise.
20558         * modules/xstrtod (Makefile.am): Likewise.
20559         * modules/xstrtol (Makefile.am): Likewise.
20560         * modules/xstrtold (Makefile.am): Likewise.
20561         * modules/yesno (Makefile.am): Likewise.
20562         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20563
20564 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20565
20566         * modules/error (Makefile.am): Distribute files through
20567         EXTRA_DIST, not lib_SOURCES.
20568
20569 2006-10-12  Eric Blake  <ebb9@byu.net>
20570
20571         * modules/error (Makefile.am): Distribute files in /lib.
20572         * modules/obstack (Makefile.am): Likewise.
20573
20574 2006-10-12  Bruno Haible  <bruno@clisp.org>
20575
20576         * modules/acl (Makefile.am): Distribute all files in lib/ through
20577         EXTRA_DIST.
20578         * modules/arcfour (Makefile.am): Likewise.
20579         * modules/arctwo (Makefile.am): Likewise.
20580         * modules/argmatch (Makefile.am): Likewise.
20581         * modules/argz (Makefile.am): Likewise.
20582         * modules/atexit (Makefile.am): Likewise.
20583         * modules/backupfile (Makefile.am): Likewise.
20584         * modules/c-strtod (Makefile.am): Likewise.
20585         * modules/c-strtold (Makefile.am): Likewise.
20586         * modules/calloc (Makefile.am): Likewise.
20587         * modules/canon-host (Makefile.am): Likewise.
20588         * modules/canonicalize (Makefile.am): Likewise.
20589         * modules/chdir-long (Makefile.am): Likewise.
20590         * modules/chdir-safer (Makefile.am): Likewise.
20591         * modules/check-version (Makefile.am): Likewise.
20592         * modules/chown (Makefile.am): Likewise.
20593         * modules/cloexec (Makefile.am): Likewise.
20594         * modules/close-stream (Makefile.am): Likewise.
20595         * modules/closeout (Makefile.am): Likewise.
20596         * modules/crc (Makefile.am): Likewise.
20597         * modules/cycle-check (Makefile.am): Likewise.
20598         * modules/des (Makefile.am): Likewise.
20599         * modules/dirfd (Makefile.am): Likewise.
20600         * modules/dirname (Makefile.am): Likewise.
20601         * modules/dup2 (Makefile.am): Likewise.
20602         * modules/euidaccess (Makefile.am): Likewise.
20603         * modules/exclude (Makefile.am): Likewise.
20604         * modules/exitfail (Makefile.am): Likewise.
20605         * modules/fcntl-safer (Makefile.am): Likewise.
20606         * modules/file-type (Makefile.am): Likewise.
20607         * modules/fileblocks (Makefile.am): Likewise.
20608         * modules/filemode (Makefile.am): Likewise.
20609         * modules/filenamecat (Makefile.am): Likewise.
20610         * modules/fnmatch (Makefile.am): Likewise.
20611         * modules/fopen-safer (Makefile.am): Likewise.
20612         * modules/fpending (Makefile.am): Likewise.
20613         * modules/fprintftime (Makefile.am): Likewise.
20614         * modules/free (Makefile.am): Likewise.
20615         * modules/fsusage (Makefile.am): Likewise.
20616         * modules/ftruncate (Makefile.am): Likewise.
20617         * modules/fts (Makefile.am): Likewise.
20618         * modules/gc (Makefile.am): Likewise.
20619         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20620         * modules/getaddrinfo (Makefile.am): Likewise.
20621         * modules/getcwd (Makefile.am): Likewise.
20622         * modules/getdelim (Makefile.am): Likewise.
20623         * modules/getdomainname (Makefile.am): Likewise.
20624         * modules/getgroups (Makefile.am): Likewise.
20625         * modules/gethostname (Makefile.am): Likewise.
20626         * modules/gethrxtime (Makefile.am): Likewise.
20627         * modules/getline (Makefile.am): Likewise.
20628         * modules/getloadavg (Makefile.am): Likewise.
20629         * modules/getlogin_r (Makefile.am): Likewise.
20630         * modules/getopt (Makefile.am): Likewise.
20631         * modules/getpass (Makefile.am): Likewise.
20632         * modules/getpass-gnu (Makefile.am): Likewise.
20633         * modules/getsubopt (Makefile.am): Likewise.
20634         * modules/gettime (Makefile.am): Likewise.
20635         * modules/gettimeofday (Makefile.am): Likewise.
20636         * modules/getugroups (Makefile.am): Likewise.
20637         * modules/getusershell (Makefile.am): Likewise.
20638         * modules/glob (Makefile.am): Likewise.
20639         * modules/group-member (Makefile.am): Likewise.
20640         * modules/hard-locale (Makefile.am): Likewise.
20641         * modules/hash (Makefile.am): Likewise.
20642         * modules/hmac-md5 (Makefile.am): Likewise.
20643         * modules/hmac-sha1 (Makefile.am): Likewise.
20644         * modules/human (Makefile.am): Likewise.
20645         * modules/idcache (Makefile.am): Likewise.
20646         * modules/imaxabs (Makefile.am): Likewise.
20647         * modules/imaxdiv (Makefile.am): Likewise.
20648         * modules/inet_ntop (Makefile.am): Likewise.
20649         * modules/inet_pton (Makefile.am): Likewise.
20650         * modules/inttostr (Makefile.am): Likewise.
20651         * modules/isapipe (Makefile.am): Likewise.
20652         * modules/lchown (Makefile.am): Likewise.
20653         * modules/long-options (Makefile.am): Likewise.
20654         * modules/lstat (Makefile.am): Likewise.
20655         * modules/malloc (Makefile.am): Likewise.
20656         * modules/mathl (Makefile.am): Likewise.
20657         * modules/mbchar (Makefile.am): Likewise.
20658         * modules/md2 (Makefile.am): Likewise.
20659         * modules/md4 (Makefile.am): Likewise.
20660         * modules/md5 (Makefile.am): Likewise.
20661         * modules/memcasecmp (Makefile.am): Likewise.
20662         * modules/memchr (Makefile.am): Likewise.
20663         * modules/memcmp (Makefile.am): Likewise.
20664         * modules/memcoll (Makefile.am): Likewise.
20665         * modules/memcpy (Makefile.am): Likewise.
20666         * modules/memmem (Makefile.am): Likewise.
20667         * modules/memmove (Makefile.am): Likewise.
20668         * modules/mempcpy (Makefile.am): Likewise.
20669         * modules/memrchr (Makefile.am): Likewise.
20670         * modules/memset (Makefile.am): Likewise.
20671         * modules/memxor (Makefile.am): Likewise.
20672         * modules/mkancesdirs (Makefile.am): Likewise.
20673         * modules/mkdir (Makefile.am): Likewise.
20674         * modules/mkdir-p (Makefile.am): Likewise.
20675         * modules/mkdtemp (Makefile.am): Likewise.
20676         * modules/mkstemp (Makefile.am): Likewise.
20677         * modules/mktime (Makefile.am): Likewise.
20678         * modules/modechange (Makefile.am): Likewise.
20679         * modules/mountlist (Makefile.am): Likewise.
20680         * modules/nanosleep (Makefile.am): Likewise.
20681         * modules/openat (Makefile.am): Likewise.
20682         * modules/pagealign_alloc (Makefile.am): Likewise.
20683         * modules/physmem (Makefile.am): Likewise.
20684         * modules/poll (Makefile.am): Likewise.
20685         * modules/posixtm (Makefile.am): Likewise.
20686         * modules/posixver (Makefile.am): Likewise.
20687         * modules/putenv (Makefile.am): Likewise.
20688         * modules/quote (Makefile.am): Likewise.
20689         * modules/quotearg (Makefile.am): Likewise.
20690         * modules/raise (Makefile.am): Likewise.
20691         * modules/read-file (Makefile.am): Likewise.
20692         * modules/readline (Makefile.am): Likewise.
20693         * modules/readlink (Makefile.am): Likewise.
20694         * modules/readtokens (Makefile.am): Likewise.
20695         * modules/readutmp (Makefile.am): Likewise.
20696         * modules/realloc (Makefile.am): Likewise.
20697         * modules/regex (Makefile.am): Likewise.
20698         * modules/rename (Makefile.am): Likewise.
20699         * modules/rename-dest-slash (Makefile.am): Likewise.
20700         * modules/rijndael (Makefile.am): Likewise.
20701         * modules/rmdir (Makefile.am): Likewise.
20702         * modules/rpmatch (Makefile.am): Likewise.
20703         * modules/safe-read (Makefile.am): Likewise.
20704         * modules/safe-write (Makefile.am): Likewise.
20705         * modules/same (Makefile.am): Likewise.
20706         * modules/save-cwd (Makefile.am): Likewise.
20707         * modules/savedir (Makefile.am): Likewise.
20708         * modules/setenv (Makefile.am): Likewise.
20709         * modules/settime (Makefile.am): Likewise.
20710         * modules/sha1 (Makefile.am): Likewise.
20711         * modules/sig2str (Makefile.am): Likewise.
20712         * modules/snprintf (Makefile.am): Likewise.
20713         * modules/stdlib-safer (Makefile.am): Likewise.
20714         * modules/stpcpy (Makefile.am): Likewise.
20715         * modules/stpncpy (Makefile.am): Likewise.
20716         * modules/strcase (Makefile.am): Likewise.
20717         * modules/strcasestr (Makefile.am): Likewise.
20718         * modules/strchrnul (Makefile.am): Likewise.
20719         * modules/strcspn (Makefile.am): Likewise.
20720         * modules/strdup (Makefile.am): Likewise.
20721         * modules/strerror (Makefile.am): Likewise.
20722         * modules/strftime (Makefile.am): Likewise.
20723         * modules/strndup (Makefile.am): Likewise.
20724         * modules/strnlen (Makefile.am): Likewise.
20725         * modules/strpbrk (Makefile.am): Likewise.
20726         * modules/strsep (Makefile.am): Likewise.
20727         * modules/strstr (Makefile.am): Likewise.
20728         * modules/strtod (Makefile.am): Likewise.
20729         * modules/strtoimax (Makefile.am): Likewise.
20730         * modules/strtok_r (Makefile.am): Likewise.
20731         * modules/strtol (Makefile.am): Likewise.
20732         * modules/strtoll (Makefile.am): Likewise.
20733         * modules/strtoul (Makefile.am): Likewise.
20734         * modules/strtoull (Makefile.am): Likewise.
20735         * modules/strtoumax (Makefile.am): Likewise.
20736         * modules/strverscmp (Makefile.am): Likewise.
20737         * modules/time_r (Makefile.am): Likewise.
20738         * modules/timegm (Makefile.am): Likewise.
20739         * modules/tmpfile-safer (Makefile.am): Likewise.
20740         * modules/unistd-safer (Makefile.am): Likewise.
20741         * modules/unlinkdir (Makefile.am): Likewise.
20742         * modules/userspec (Makefile.am): Likewise.
20743         * modules/utime (Makefile.am): Likewise.
20744         * modules/utimecmp (Makefile.am): Likewise.
20745         * modules/utimens (Makefile.am): Likewise.
20746         * modules/vasnprintf (Makefile.am): Likewise.
20747         * modules/vasprintf (Makefile.am): Likewise.
20748         * modules/vsnprintf (Makefile.am): Likewise.
20749         * modules/xalloc (Makefile.am): Likewise.
20750         * modules/xgetcwd (Makefile.am): Likewise.
20751         * modules/xnanosleep (Makefile.am): Likewise.
20752         * modules/xreadlink (Makefile.am): Likewise.
20753         * modules/xstrtod (Makefile.am): Likewise.
20754         * modules/xstrtol (Makefile.am): Likewise.
20755         * modules/xstrtold (Makefile.am): Likewise.
20756         * modules/yesno (Makefile.am): Likewise.
20757
20758 2006-10-12  Jim Meyering  <jim@meyering.net>
20759
20760         * m4/getloadavg.m4: Revert the change below.
20761
20762         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20763         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20764         fail with a symlink, which is what coreutils' ./bootstrap now
20765         creates by default.
20766
20767 2006-10-12  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20770         mingw.
20771         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20772         MSVC and mingw explicitly.
20773
20774 2006-10-11  Simon Josefsson  <jas@extundo.com>
20775             Bruno Haible  <bruno@clisp.org>
20776
20777         Add support for multiple gnulib-tool invocations in the scope of a
20778         single configure.ac file.
20779         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20780         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20781         with the same contents as the _LIBADD variable.
20782         (func_emit_initmacro_start, func_emit_initmacro_end,
20783         func_emit_initmacro_done): New functions.
20784         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20785         gl_LIBOBJS and gl_LTLIBOBJS.
20786
20787 2006-10-11  Bruno Haible  <bruno@clisp.org>
20788
20789         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20790         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20791         autoreconf. Instead, invoke autopoint explicitly but move back the
20792         *.m4 files from gnulib.
20793
20794 2006-10-11  Bruno Haible  <bruno@clisp.org>
20795
20796         * gnulib-tool (func_usage): Make module names after --create-testdir
20797         optional.
20798         (func_create_testdir): If no module was specified, use nearly all
20799         modules.
20800
20801 2006-10-12  Jim Meyering  <jim@meyering.net>
20802
20803         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20804         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20805         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20806         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20807         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20808         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20809         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20810         (fts_set_stat_required): New function.
20811         (fts_open): Defer the calls to fts_stat, if possible or requested.
20812         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20813         into fts_stat itself.
20814         (fts_read): Perform any required (deferred) fts_stat call.
20815         (fts_build): Likewise, for the directory we're about to open and read.
20816         In the readdir loop, carefully decide whether each entry will require
20817         an eventual call to fts_stat, using dirent.d_type info if available.
20818         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20819         a command line argument into this function.  Update all callers.
20820         Map a return value of FTS_DOT to FTS_D for a command line argument.
20821         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20822         Thanks to Miklos Szeredi for his tenacity and for the initial
20823         bug report about "find" failing on a FUSE-based file system.
20824
20825         * lib/fts.c (fts_open): Use consistent indentation.
20826
20827 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20828
20829         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20830         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20831         reported by Jim Meyering.  All uses of cache variables renamed
20832         to match Autoconf's.
20833         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20834         the other one.
20835
20836         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20837         Fix misspelling in diagnostic.
20838
20839 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20840
20841         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20842         defined.  Problem reported by Matthew Woehlke.
20843
20844         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20845         Add support for Tandem NonStop R series.
20846         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20847         Use new macro.
20848
20849         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20850         (has_trailing_slash): Omit size arg; all callers changed.
20851         Omit 'inline', since it doesn't help performance and we'd
20852         need to configure it.
20853         Don't count //, ///, etc. as having a trailing slash.
20854         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20855         (rpl_rename_dest_slash): On failure, use rename's errno rather
20856         than (in some cases) an incorrect or junk errno.
20857         Simplify code by removing need to compute length; this does
20858         cause it to make two passes instead of one over the file name,
20859         but it's worth it.
20860
20861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20862         change, since Autoconf's version may no longer be appropriate now
20863         that we are using CVS Autoconf's version.  Add support for Tandem.
20864
20865 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20866             Bruno Haible  <bruno@clisp.org>
20867
20868         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20869         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20870         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20871         gl_AC_TYPE_LONG_LONG.
20872
20873         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20874         instead of HAVE_LONG_LONG.
20875         * lib/printf-args.c (printf_fetchargs): Likewise.
20876         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20877         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20879         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20880         gl_AC_TYPE_LONG_LONG.
20881
20882 2006-10-11  Bruno Haible  <bruno@clisp.org>
20883
20884         * m4/longlong.m4: Add comments.
20885         * m4/ulonglong.m4: Likewise.
20886
20887 2006-10-10  Bruno Haible  <bruno@clisp.org>
20888
20889         Make it possible to #define stpcpy, strdup to aliases.
20890         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20891         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20892
20893 2006-10-10  Bruno Haible  <bruno@clisp.org>
20894
20895         Make it possible to #define gcd to an alias.
20896         * lib/gcd.c: Include config.h.
20897
20898 2006-10-10  Bruno Haible  <bruno@clisp.org>
20899
20900         Make it possible to #define c_isascii to an alias.
20901         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20902         defined. Undefine the macros before defining them, to avoid gcc
20903         warnings.
20904         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20905         define NO_C_CTYPE_MACROS early.
20906
20907 2006-10-10  Bruno Haible  <bruno@clisp.org>
20908
20909         Make it possible to #define set_program_name to an alias.
20910         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20911         ENABLE_RELOCATABLE early.
20912
20913 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20914
20915         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20916         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20917         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20918         More generally, don't assume that 64-bit signed int is available
20919         if unsigned int is, and vice versa.
20920         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20921         unsigned symbols, not on their signed counterparts.
20922         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20923         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20924         (UINT64_C, UINTMAX_C):
20925         Likewise.
20926         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20927         unsigned counterparts.
20928         (Have_long_long, Unsigned): New macros.
20929         (Int): Renamed from INT.
20930         (strtoimax): Use the new macros.
20931         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20932         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20933         * modules/inttypes (inttypes.h): Substitute
20934         HAVE_UNSIGNED_LONG_LONG_INT.
20935         * modules/stdint (stdint.h): Likewise.
20936         (Files): Add m4/ulonglong.m4.
20937
20938 2006-10-10  Bruno Haible  <bruno@clisp.org>
20939
20940         Fix a gcc -Wshadow warning.
20941         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20942         to 'bucket'.
20943         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20944         gl_linked_indexof_from_to): Likewise.
20945         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20946         Likewise.
20947         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20948         Likewise.
20949         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20950         Reported by Eric Blake.
20951
20952 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20955         for NetBSD.  Problem reported by Bruno Haible.
20956
20957 2006-10-09  Jim Meyering  <jim@meyering.net>
20958
20959         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20960         Patch from Bruno Haible.
20961
20962 2006-10-09  Jim Meyering  <jim@meyering.net>
20963
20964         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20965         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20966         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20967
20968 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20969
20970         Don't include <config.h> twice; this doesn't work in some cases,
20971         e.g., when config.h has "#define intmax_t long long int" and
20972         we include <config.h>, <inttypes.h>, <config.h> in that order.
20973         Problem reported by Matthew Woehlke in:
20974         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20975         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20976         * lib/fts-cycle.c: Don't include config.h.
20977         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20978         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20979         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20980         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20981         inttypes.h.
20982         * lib/xstrtoumax.c: Likewise.
20983         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20984         __strtol and the like, so that this module is more like its siblings.
20985         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20986         Remove; no longer needed now that we assume gnulib inttypes.h.
20987
20988 2006-10-08  Bruno Haible  <bruno@clisp.org>
20989
20990         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20991         option.
20992
20993 2006-10-07  Jim Meyering  <jim@meyering.net>
20994
20995         * modules/inttypes (inttypes.h): Revert what seems to have been
20996         an inadvertent part of today's change: use "|", not "/" in the
20997         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20998
20999 2006-10-07  Bruno Haible  <bruno@clisp.org>
21000
21001         * modules/sublist: New file.
21002
21003 2006-10-07  Bruno Haible  <bruno@clisp.org>
21004
21005         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
21006         * modules/argz (argz.h): Likewise.
21007         * modules/arpa_inet (arpa/inet.h): Likewise.
21008         * modules/byteswap (byteswap.h): Likewise.
21009         * modules/configmake (configmake.h): Likewise.
21010         * modules/fcntl (fcntl.h): Likewise.
21011         * modules/fnmatch (fnmatch.h): Likewise.
21012         * modules/getopt (getopt.h): Likewise.
21013         * modules/glob (glob.h): Likewise.
21014         * modules/inttypes (inttypes.h): Likewise.
21015         * modules/netinet_in (netinet/in.h): Likewise.
21016         * modules/poll (poll.h): Likewise.
21017         * modules/stdbool (stdbool.h): Likewise.
21018         * modules/stdint (stdint.h): Likewise.
21019         * modules/sys_select (sys/select.h): Likewise.
21020         * modules/sys_socket (sys/socket.h): Likewise.
21021         * modules/sys_stat (sys/stat.h): Likewise.
21022         * modules/sysexits (sysexits.h): Likewise.
21023         * modules/unistd (unistd.h): Likewise.
21024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21025         Add a "DO NOT EDIT" comment to the generated file.
21026         (func_import): Likewise for gnulib-comp.m4.
21027
21028 2006-10-07  Bruno Haible  <bruno@clisp.org>
21029
21030         * lib/gl_sublist.h: New file.
21031         * lib/gl_sublist.c: New file.
21032
21033 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21034
21035         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
21036         name (relative to the original working directory) and the file
21037         name component (relative to the temporary working directory).  All
21038         callers changed.
21039         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
21040         * lib/mkdir-p.c (make_dir_parents): Likewise.
21041         * lib/mkdir-p.h (make_dir_parents): Likewise.
21042
21043 2006-10-06  Eric Blake  <ebb9@byu.net>
21044
21045         Define several macros for use by the clean-temp module.
21046         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
21047         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
21048         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
21049
21050         * lib/clean-temp.h (close_stream_temp): New declaration.
21051         * lib/clean-temp.c (includes): Pull in headers according to what
21052         other modules are in use.
21053         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
21054
21055 2006-10-06  Bruno Haible  <bruno@clisp.org>
21056
21057         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
21058         instead of fopen, fwriteerror.
21059
21060 2006-10-06  Bruno Haible  <bruno@clisp.org>
21061
21062         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
21063         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
21064         int.
21065         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
21066         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
21067         Return an error indicator.
21068         Suggested by Eric Blake.
21069
21070 2006-10-06  Bruno Haible  <bruno@clisp.org>
21071
21072         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
21073         Reported by Eric Blake.
21074
21075 2006-10-06  Bruno Haible  <bruno@clisp.org>
21076
21077         * modules/closeout (Description): Mention stderr too.
21078
21079 2006-10-06  Bruno Haible  <bruno@clisp.org>
21080         and Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         * lib/closeout.c (close_stdout): Also close stderr.
21083         * lib/closeout.h: Update comment.
21084
21085 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21086
21087         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
21088         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
21089         * lib/dirchownmod.c: Include lchown.h.
21090         * lib/lchown.c: Don't include files that lchown.h now includes.
21091         Don't declare chown, since lchown.h now does that.
21092         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
21093         (lchown): Define to rpl_chown if lchown is declared but
21094         does not exist.  Declare using a prototype if lchown is not
21095         declared.  Add a copyright notice.
21096         * lib/mkstemp.h: Include <unistd.h>.
21097         * lib/openat.c: Include lchown.h.
21098
21099         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
21100         we now test for that separately.
21101         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
21102         rather than O_NOFOLLOW, when testing whether it's possible to
21103         avoid a race condition reliably.
21104         * lib/savewd.c (savewd_chdir): Likewise.
21105
21106         Remove macros that are no longer needed now that stdint.h is
21107         reliable.
21108         * lib/fsusage.c (UINTMAX_MAX): Remove.
21109         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
21110         * lib/utimecmp.c (SIZE_MAX): Remove.
21111
21112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
21113
21114         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
21115         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
21116         O_NOATIME works.
21117
21118 2006-10-05  Bruno Haible  <bruno@clisp.org>
21119
21120         * lib/gl_list.h (gl_sortedlist_search_from_to,
21121         gl_sortedlist_indexof_from_to): New declarations.
21122         (gl_list_implementation): New fields sortedlist_search_from_to,
21123         sortedlist_indexof_from_to.
21124         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
21125         inline functions.
21126         * lib/gl_list.c (gl_sortedlist_search_from_to,
21127         gl_sortedlist_indexof_from_to): New functions.
21128         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
21129         function.
21130         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
21131         (gl_array_sortedlist_search_from_to): New function.
21132         (gl_array_list_implementation): Update.
21133         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
21134         function.
21135         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
21136         (gl_carray_sortedlist_search_from_to): New function.
21137         (gl_carray_list_implementation): Update.
21138         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
21139         gl_linked_sortedlist_indexof_from_to): New functions.
21140         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21141         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21142         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
21143         gl_tree_sortedlist_indexof_from_to): New functions.
21144         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21145         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21146         Update.
21147         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21148         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
21149         Update.
21150
21151 2006-10-05  Bruno Haible  <bruno@clisp.org>
21152
21153         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
21154         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21155         (struct gl_list_implementation): Add fields search_from_to,
21156         indexof_from_to. Remove fields search, indexof.
21157         (gl_list_search): Use the search_from_to method.
21158         (gl_list_search_from, gl_list_search_from_to): New functions.
21159         (gl_list_indexof): Use the indexof_from_to method.
21160         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21161         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21162         (gl_list_search_from, gl_list_search_from_to): New functions.
21163         (gl_list_indexof): Use the indexof_from_to method.
21164         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21165         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21166         gl_array_indexof. Add start_index, end_index arguments.
21167         (gl_array_search_from_to): Renamed from gl_array_search. Add
21168         start_index, end_index arguments.
21169         (gl_array_remove, gl_array_list_implementation): Update.
21170         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21171         gl_carray_indexof. Add start_index, end_index arguments.
21172         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21173         start_index, end_index arguments.
21174         (gl_carray_remove, gl_carray_list_implementation): Update.
21175         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21176         gl_linked_search. Add start_index, end_index arguments.
21177         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21178         start_index, end_index arguments.
21179         (gl_linked_remove): Update.
21180         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21181         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21182         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21183         field to 'size_t'.
21184         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21185         gl_tree_search. Add start_index, end_index arguments.
21186         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21187         start_index, end_index arguments.
21188         (gl_tree_remove): Update.
21189         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21190         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21191         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21192         function.
21193         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21194         gl_tree_search. Add start_index, end_index arguments.
21195         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21196         start_index, end_index arguments.
21197         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21198         Update.
21199         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21200
21201 2006-10-05  Bruno Haible  <bruno@clisp.org>
21202
21203         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21204
21205         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21206         fwriteerror_temp): New declarations.
21207         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21208         (descriptors): New variable.
21209         (cleanup): First, close the descriptors.
21210         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21211         fclose_temp, fwriteerror_temp): New functions.
21212
21213 2006-10-04  Jim Meyering  <jim@meyering.net>
21214
21215         * lib/fts.c (fts_open): Tiny comment change.
21216
21217 2006-10-04  Bruno Haible  <bruno@clisp.org>
21218
21219         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21220         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21221         gl_LOCK_BODY.
21222         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21223         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21224         gl_LOCK_EARLY_BODY.
21225         (gl_LOCK): Require gl_LOCK_BODY.
21226
21227 2006-10-04  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21230         (gl_oset_search_atleast): New declaration.
21231         (struct gl_oset_implementation): Add field 'search_atleast'.
21232         (gl_oset_search_atleast): New inline function.
21233         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21234         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21235         (gl_array_oset_implementation): Update.
21236         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21237         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21238         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21239
21240 2006-10-04  Bruno Haible  <bruno@clisp.org>
21241
21242         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21243
21244 2006-10-03  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21247         from gl_avltreehash_list_implementation.
21248
21249 2006-10-03  Bruno Haible  <bruno@clisp.org>
21250
21251         * lib/gl_oset.c (gl_oset_add): Fix return type.
21252
21253 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21254
21255         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21256
21257 2006-10-02  Eric Blake  <ebb9@byu.net>
21258
21259         * modules/strnlen (Depends-on): Add extensions.
21260
21261 2006-10-02  Eric Blake  <ebb9@byu.net>
21262
21263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21264         definition in 2.60+.
21265
21266 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21267
21268         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21269         checks.
21270
21271 2006-10-02  Bruno Haible  <bruno@clisp.org>
21272
21273         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21274         to the AUTOMAKE_OPTIONS.
21275         Reported by Jim Meyering.
21276
21277 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         Work around bug in Solaris 10 /proc file system:
21280         /proc/self/fd/NNN/.. isn't the parent directory of
21281         the directory whose file descriptor is NNN.  This needs to
21282         be worked around at run time, not compile time, since a
21283         program might be built on Solaris 8, where things work, and
21284         run on Solaris 10.
21285         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21286         to use the following interface instead:
21287         (OPENAT_BUFFER_SIZE): New macro.
21288         (openat_proc_name): New function.
21289         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21290         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21291         Likewise.
21292         * lib/openat-proc.c: New file.
21293         * modules/openat (Files): Add lib/openat-proc.c.
21294         (Depends-on): Add same-inode, stdbool.
21295         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21296
21297 2006-09-29  Bruno Haible  <bruno@clisp.org>
21298
21299         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21300         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21301         argument. Set stdout_closed before testing for ferror, not after.
21302         (fwriteerror, fwriteerror_no_ebadf): New functions.
21303
21304 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21305
21306         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21307
21308 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21309
21310         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21311         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21312
21313 2006-09-28  Jim Meyering  <jim@meyering.net>
21314
21315         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21316         Include <unistd.h>.
21317
21318 2006-09-28  Bruno Haible  <bruno@clisp.org>
21319
21320         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21321         * modules/linkedhash-list (Depends-on): Likewise.
21322         * modules/rbtreehash-list (Depends-on): Likewise.
21323
21324 2006-09-28  Bruno Haible  <bruno@clisp.org>
21325
21326         * lib/strndup.h: Simplify the redefinition of strndup.
21327         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21328         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21329
21330 2006-09-28  Bruno Haible  <bruno@clisp.org>
21331
21332         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21333         * lib/gl_linkedhash_list.c: Likewise.
21334         * lib/gl_rbtreehash_list.c: Likewise.
21335
21336 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21337
21338         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21339         getaddrinfo.
21340
21341         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21342         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21343         it causes <stdio_ext.h> to cause a compile-time error.
21344         Problem reported by Nelson H. F. Beebe.
21345         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21346         of HAVE_DECL___PENDING.
21347
21348         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21349         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21350         declaration.
21351
21352 2006-09-27  Jim Meyering  <jim@meyering.net>
21353
21354         This file could end up with a definition for a function
21355         named __strndup, rather than rpl_strndup on a system with
21356         incomplete weak_alias support.
21357         * lib/strndup.c (strndup): Rename from __strndup.
21358         Remove #defines that used to map __strndup to strndup.
21359         Don't use K&R prototypes.
21360         Remove LIBC-related code, since this file is not sync'd with glibc.
21361         * lib/strndup.h: Revamp, accordingly.
21362         * m4/strndup.m4: Modernize.
21363
21364 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21365
21366         * modules/savewd (Depends-on): Add 'raise'.
21367         * lib/savewd.c: Include <signal.h>, for 'raise'.
21368
21369 2006-09-26  Jim Meyering  <jim@meyering.net>
21370
21371         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21372         when we detect Darwin 8.7.0's acl_get_file bug.
21373         Rearrange to perform the new (below) run-test while $LIBS
21374         contains any acl-related library.  Set USE_ACL at the end.
21375         (gl_ACL_GET_FILE): New function.
21376
21377 2006-09-26  Eric Blake  <ebb9@byu.net>
21378
21379         * lib/verror.c: Include <config.h> unconditionally.
21380
21381 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21382
21383         * modules/clock-time (Maintainer): Add self.
21384         * modules/getlogin_r (Depends-on): Add extensions.
21385
21386 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21387
21388         * modules/clock-time: New module.
21389         * modules/nanosleep (Depends-on): Add clock-time.
21390         * modules/gethrxtime (Depends-on): Likewise.
21391         * modules/gettime (Depends-on): Likewise.
21392         * modules/settime (Depends-on): Likewise.
21393
21394         * modules/fts-lgpl: Depend on openat.
21395         * modules/mkancesdirs: Depend on savewd.
21396         * modules/mkdir-p: Likewise.
21397
21398 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21399
21400         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21401
21402         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21403         `gl_have_arbitrary_file_name_length_limit' to
21404         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21405         actually works between configure runs.
21406
21407 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21408             Bruno Haible  <bruno@clisp.org>
21409
21410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21411
21412 2006-09-25  Jim Meyering  <jim@meyering.net>
21413
21414         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21415         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21416
21417 2006-09-25  Eric Blake  <ebb9@byu.net>
21418
21419         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21420         exec's in 2006-09-18 patch when shuffling fds.
21421
21422 2006-09-25  Bruno Haible  <bruno@clisp.org>
21423
21424         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21425         Reported by Jim Meyering.
21426
21427 2006-09-24  Jim Meyering  <jim@meyering.net>
21428
21429         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21430         compare a pointer against a literal "0".  That caused failures with
21431         at least HP-UX's hpcc.
21432
21433 2006-09-22  Simon Josefsson  <jas@extundo.com>
21434
21435         * modules/gc-sha1:
21436         * modules/gc-md4:
21437         * modules/gc-hmac-sha1:
21438         * modules/gc-hmac-md5:
21439         * modules/gc-des:
21440         * modules/gc-arcfour: Distribute more files.
21441
21442 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21443
21444         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21445         (gl_linked_iterator_from_to): Initialize struct completely.
21446         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21447         (gl_tree_iterator_from_to): Likewise
21448         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21449         * lib/gl_array_list.c [lint] (gl_array_iterator)
21450         (gl_array_iterator_from_to): Likewise.
21451         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21452         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21453         (gl_carray_iterator_from_to): Likewise.
21454
21455         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21456         * lib/md4.c (md4_process_block): Remove unused variable.
21457         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21458         parentheses for clarity.
21459
21460 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21461
21462         * modules/bison-i18n (Depends-on): Add gettext.
21463
21464 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21465
21466         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21467         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21468         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21469         also add missing comma that caused broken test.
21470         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21471         stdlib.h, for `abort'.
21472         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21473         variables.
21474         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21475         include unistd.h if present, for `rmdir'.
21476         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21477         variables.
21478         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21479         in the process include standard headers for prototypes.
21480         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21481         gets declared on GNU/Linux.
21482         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21483         unistd.h, for `rmdir'.
21484         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21485
21486         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21487         always true.
21488         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21489
21490         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21491
21492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21493
21494         * gnulib-tool (func_version): Create output all at once.  This
21495         may help avoid triggering unnecessary SIGPIPEs, and at any
21496         rate it doesn't hurt.
21497
21498 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21499             Bruno Haible  <bruno@clisp.org>
21500
21501         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21502         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21503         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21504
21505         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21506         (gl_FUNC_VASPRINTF): Invoke it.
21507
21508 2006-09-22  Bruno Haible  <bruno@clisp.org>
21509
21510         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21511         getloadavg.c as first argument.
21512
21513 2006-09-22  Bruno Haible  <bruno@clisp.org>
21514
21515         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21516         at the beginning of the gl_INIT macro.
21517         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21518         gl_GETLOADAVG.
21519
21520 2006-09-22  Bruno Haible  <bruno@clisp.org>
21521
21522         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21523         module.
21524         Suggested by Ralf Wildenhues.
21525
21526 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         Import this patch from libc:
21529
21530         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21531
21532         * lib/regex_internal.c (re_string_reconstruct): Handle
21533         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21534         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21535         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21536         re_string_context_at.
21537
21538         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21539         now requires it.
21540         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21541         gl_REGEX now does it for us.
21542         (gl_REGEX): Add test taken from
21543         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21544
21545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21546         Check that large offsets work.  Modernize Autoconf usages.
21547         Prefer "yes" to mean a good thing rather than a bad.
21548         Don't put "#define mkstemp" in config.h, as this might interfere
21549         with standard system headers that "#define mkstemp mkstemp64".
21550
21551         * modules/mkstemp (Depends-on): Add extensions, so that
21552         mkstemp is visible on some platforms.
21553         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21554         (Include): Change to "mkstemp.h" from <stdlib.h>.
21555         (Files): Add mkstemp.h.
21556
21557         * lib/mkstemp.h: New file, since some standard headers
21558         #define mkstemp.
21559         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21560         Include "mkstemp.h".
21561         Make the _LIBC code resemble glibc original more,
21562         e.g., use K&R style.
21563         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21564         (mkstemp): Remove, since mkstemp.h does this for us.
21565         * lib/stdlib--.h: Include mkstemp.h.
21566
21567         Import this patch from libc:
21568
21569         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21570
21571         * lib/tempname.c (__gen_tempname): Change attempts_min
21572         into a macro.  Use preprocessor to decide how to initialize
21573         attempts [Coverity CID 67].
21574
21575 2006-09-20  Bruno Haible  <bruno@clisp.org>
21576
21577         * lib/mkdtemp.c: Import from libc.
21578         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21579                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21580                 attempts_min into a macro.  Use preprocessor to decide how to
21581                 initialize attempts [Coverity CID 67].
21582         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21583                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21584                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21585
21586 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21587
21588         * gnulib-tool (func_exit): New function, to allow to pass the
21589         exit status portably through the trap.  Use everywhere.
21590         (--help, --version): Signal a write error.
21591         (trap): catch SIGPIPE, for write errors.
21592         Exit at the end of the trap, with the correct exit status.
21593
21594 2006-09-19  Karl Berry  <karl@gnu.org>
21595
21596         * doc/gnulib.texi: note about the license texinfo files.
21597
21598 2006-09-19  Eric Blake  <ebb9@byu.net>
21599
21600         * gnulib-tool: Avoid space-tab.
21601
21602 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21605         that prevented coreutils 6.1 from building.  Problem reported
21606         by Petter Reinholdtsen.
21607
21608 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21609
21610         * gnulib-tool (avoidlist): Fix typo that broke options like
21611         --avoid=lock that are used by coreutils bootstrap.
21612
21613 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21614
21615         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21616         more systematically.
21617
21618 2006-09-18  Jim Meyering  <jim@meyering.net>
21619
21620         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21621
21622 2006-09-18  Bruno Haible  <bruno@clisp.org>
21623
21624         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21625
21626 2006-09-18  Bruno Haible  <bruno@clisp.org>
21627
21628         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21629         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21630         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21631         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21632         * m4/gettext.m4: Require autoconf >= 2.52.
21633         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21634         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21635         of gl_cv_header_inttypes_h.
21636
21637 2006-09-18  Bruno Haible  <bruno@clisp.org>
21638
21639         * lib/javaversion.c: Include configmake.h.
21640
21641 2006-09-18  Bruno Haible  <bruno@clisp.org>
21642
21643         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21644         avoid that the while loops be executed in a subshell.
21645
21646 2006-09-18  Bruno Haible  <bruno@clisp.org>
21647
21648         * MODULES.html.sh (func_module): Break long lines.
21649         Suggested by Bruce Korb <bkorb@gnu.org>.
21650
21651 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21652
21653         Speed up by a factor of 1.12.
21654         * gnulib-tool (nl): New variable.
21655         (func_import): Rewrite include directive extraction to only read each
21656         directive once.
21657
21658 2006-09-17  Bruno Haible  <bruno@clisp.org>
21659
21660         * modules/javaversion (Makefile.am): Remove DEFS setting.
21661         (Depends-on): Add configmake, for PKGDATADIR definition.
21662
21663 2006-09-17  Bruno Haible  <bruno@clisp.org>
21664
21665         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21666
21667 2006-09-17  Bruno Haible  <bruno@clisp.org>
21668
21669         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21670         (func_modules_transitive_closure, func_modules_add_dummy,
21671         func_modules_to_filelist, func_import, func_create_testdir,
21672         func_create_megatestdir, ...): Use it wherever possible.
21673         Suggested by Ralf Wildenhues.
21674
21675 2006-09-16  Karl Berry  <karl@gnu.org>
21676
21677         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21678         to avoid sectioning errors.
21679         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21680         [ifinfo]: blank line after @center-ed titles.
21681         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21682         Spell FSF address consistently with others.
21683         (These changes approved by rms.)
21684
21685 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21686
21687         Speed up by a factor of 1.61.
21688         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21689         already checked module names again.
21690
21691 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21692
21693         Speed up by a factor of 1.13.
21694         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21695         for new_files, and the input to func_add_or_update.
21696
21697 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21698
21699         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21700         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21701
21702 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21703
21704         * modules/mkancesdirs (Depends-on): Add fcntl.
21705         * modules/savewd: New file.
21706         * MODULES.html.sh (File system functions): Add savewd.
21707
21708         * modules/configmake (Makefile.am): Add support for the
21709         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21710
21711 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21712
21713         * m4/savewd.m4: New file.
21714
21715 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21716
21717         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21718         (dirchownmod): New arg FD.  All callers changed.
21719         Use FD rather than opening the directory ourself, as opening is
21720         now the caller's responsibility.
21721         * lib/dirchownmod.h: Likewise.
21722         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21723         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21724         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21725         (test_dir): Remove.
21726         (mkancesdirs): Return length of prefix of FILE that has already
21727         been made, or -2 if there is a child doing the work.  Redo
21728         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21729         ".", and treat ".." specially since it might stray back into
21730         already-created areas.  Use a subprocess if necessary.  New arg
21731         WD; all users changed.  MAKE_DIR function should now return 1
21732         if it creates a directory that is not readable.  Return -2 if
21733         a child process is spun off.
21734         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21735         Adjust signature to match code.
21736         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21737         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21738         all users changed.
21739         * lib/savewd.c, lib/savewd.h: New files.
21740
21741 2006-09-15  Jim Meyering  <jim@meyering.net>
21742
21743         * modules/rename-dest-slash: New module.
21744         * MODULES.html.sh (posix_compat): Add it here.
21745
21746         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21747
21748 2006-09-15  Jim Meyering  <jim@meyering.net>
21749
21750         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21751         file.
21752
21753         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21754
21755 2006-09-15  Jim Meyering  <jim@meyering.net>
21756
21757         * lib/rename-dest-slash.c (has_trailing_slash): Use
21758         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21759         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21760         test before testing whether SRC is a directory.
21761         Suggestions from Bruno Haible.
21762
21763         Avoid a warning about an unused variable.
21764         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21765         into the #ifdef block where it's used.
21766
21767         * lib/rename-dest-slash.c: New file.
21768
21769 2006-09-14  Bruno Haible  <bruno@clisp.org>
21770
21771         * lib/allocsa.c: Include <config.h> unconditionally.
21772         * lib/asnprintf.c: Likewise.
21773         * lib/asprintf.c: Likewise.
21774         * lib/c-strcasecmp.c: Likewise.
21775         * lib/c-strcasestr.c: Likewise.
21776         * lib/c-strncasecmp.c: Likewise.
21777         * lib/c-strstr.c: Likewise.
21778         * lib/classpath.c: Likewise.
21779         * lib/clean-temp.c: Likewise.
21780         * lib/concatpath.c: Likewise.
21781         * lib/copy-file.c: Likewise.
21782         * lib/csharpcomp.c: Likewise.
21783         * lib/csharpexec.c: Likewise.
21784         * lib/execute.c: Likewise.
21785         * lib/fatal-signal.c: Likewise.
21786         * lib/findprog.c: Likewise.
21787         * lib/fwriteerror.c: Likewise.
21788         * lib/gl_array_list.c: Likewise.
21789         * lib/gl_array_oset.c: Likewise.
21790         * lib/gl_avltree_list.c: Likewise.
21791         * lib/gl_avltree_oset.c: Likewise.
21792         * lib/gl_avltreehash_list.c: Likewise.
21793         * lib/gl_carray_list.c: Likewise.
21794         * lib/gl_linked_list.c: Likewise.
21795         * lib/gl_linkedhash_list.c: Likewise.
21796         * lib/gl_list.c: Likewise.
21797         * lib/gl_oset.c: Likewise.
21798         * lib/gl_rbtree_list.c: Likewise.
21799         * lib/gl_rbtree_oset.c: Likewise.
21800         * lib/gl_rbtreehash_list.c: Likewise.
21801         * lib/imaxabs.c: Likewise.
21802         * lib/imaxdiv.c: Likewise.
21803         * lib/javacomp.c: Likewise.
21804         * lib/javaexec.c: Likewise.
21805         * lib/javaversion.c: Likewise.
21806         * lib/linebreak.c: Likewise.
21807         * lib/localcharset.c: Likewise.
21808         * lib/lock.c: Likewise.
21809         * lib/mbchar.c: Likewise.
21810         * lib/mbswidth.c: Likewise.
21811         * lib/mkdtemp.c: Likewise.
21812         * lib/pipe.c: Likewise.
21813         * lib/printf-args.c: Likewise.
21814         * lib/printf-parse.c: Likewise.
21815         * lib/progname.c: Likewise.
21816         * lib/progreloc.c: Likewise.
21817         * lib/readlink.c: Likewise.
21818         * lib/sh-quote.c: Likewise.
21819         * lib/stpcpy.c: Likewise.
21820         * lib/stpncpy.c: Likewise.
21821         * lib/strcasecmp.c: Likewise.
21822         * lib/strcasestr.c: Likewise.
21823         * lib/strcspn.c: Likewise.
21824         * lib/striconv.c: Likewise.
21825         * lib/strncasecmp.c: Likewise.
21826         * lib/strnlen1.c: Likewise.
21827         * lib/strstr.c: Likewise.
21828         * lib/strtok_r.c: Likewise.
21829         * lib/tls.c: Likewise.
21830         * lib/tmpdir.c: Likewise.
21831         * lib/unicodeio.c: Likewise.
21832         * lib/unsetenv.c: Likewise.
21833         * lib/vasnprintf.c: Likewise.
21834         * lib/vasprintf.c: Likewise.
21835         * lib/wait-process.c: Likewise.
21836         * lib/xallocsa.c: Likewise.
21837         * lib/xsetenv.c: Likewise.
21838         * lib/xstriconv.c: Likewise.
21839
21840 2006-09-13  Simon Josefsson  <jas@extundo.com>
21841
21842         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21843         that internally, suggested by Ralf Wildenhues
21844         <Ralf.Wildenhues@gmx.de>.
21845
21846 2006-09-13  Simon Josefsson  <jas@extundo.com>
21847
21848         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21849         @LIBOBJS@.
21850         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21851
21852 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21853
21854         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21855         longer worry about uses that don't define HAVE_CONFIG_H.
21856         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21857         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21858         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21859         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21860         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21861         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21862         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21863         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21864         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21865         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21866         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21867         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21868         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21869         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21870         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21871         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21872         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21873         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21874         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21875         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21876         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21877         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21878         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21879         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21880         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21881         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21882         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21883         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21884         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21885         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21886         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21887         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21888         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21889         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21890         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21891         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21892         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21893         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21894         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21895         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21896         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21897         Likewise.
21898
21899 2006-09-13  Eric Blake  <ebb9@byu.net>
21900
21901         * lib/getopt.c: Fix typo in last commit.
21902
21903 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21904
21905         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21906         dgettext.
21907
21908 2006-09-12  Jim Meyering  <jim@meyering.net>
21909
21910         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21911         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21912         Reported by Nelson H. F. Beebe.
21913
21914 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21915
21916         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21917         program_invocation_name and program_invocation_short_name are
21918         initialized.
21919         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21920         and program_invocation_short_name to argp.h, so they are visible
21921         to user programs.
21922         * lib/argp.h: Likewise
21923
21924 2006-09-10  Bruno Haible  <bruno@clisp.org>
21925
21926         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21927         m4/inttypes_h.m4, m4/uintmax_t.m4.
21928
21929 2006-09-10  Bruno Haible  <bruno@clisp.org>
21930
21931         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21932         gl_AC_TYPE_UINTMAX_T.
21933
21934 2006-09-10  Bruno Haible  <bruno@clisp.org>
21935
21936         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21937
21938 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21939
21940         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21941         convention.  Text proposed by Bruno Haible.
21942         (struct argp_option): Document the use of N_() wrappers.
21943
21944         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21945         '\v', and translate the two parts separately, instead of feeding
21946         the whole string to gettext.  This allows to exclude
21947         '\v' from the strings visible to the translator by writing doc
21948         strings as N_("..") "\v" N_("..").
21949
21950 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         * config/srclist.txt: Undo latest change; the bug was fixed.
21953
21954 2006-09-09  Bruno Haible  <bruno@clisp.org>
21955
21956         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21957         assignments if building a library without libtool.
21958         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21959         in func_emit_lib_Makefile_am.
21960         (func_import): When building a static library libfoo.a, arrange to
21961         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21962         (func_create_testdir): Likewise.
21963         * modules/gc (configure.ac, Makefile.am): If building statically,
21964         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21965         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21966         * modules/striconv (configure.ac, Makefile.am): Likewise.
21967         Based on a suggestion by Ralf Wildenhues.
21968
21969 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21970
21971         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21972         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21973         Also:
21974
21975         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21976         Add year_2050_test to catch glibc bug 2821
21977         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21978
21979         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21980         Prefer #ifdef to #if.
21981
21982         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21983         Return from 'main' instead of calling 'exit'.
21984
21985 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21988         returned the maximum time_t value rather than (time_t) -1.
21989         Problem originally reported by William Bardwell
21990         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21991
21992         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21993         Moved to here ...
21994         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21995         ... from here.
21996
21997 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21998
21999         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
22000         2821 is fixed.
22001
22002 2006-09-08  Jim Meyering  <jim@meyering.net>
22003
22004         Don't make generated files read-only.  That would bother too many
22005         people.  However, do retain the ability to work when targets are
22006         read-only: remove the destination and temporary files before writing
22007         them (when generated via sed or echo), or by using the -f option for
22008         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
22009         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22010         * modules/byteswap, modules/configmake, modules/fcntl:
22011         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22012         * modules/localcharset, modules/netinet_in, modules/poll:
22013         * modules/stdbool, modules/stdint, modules/sys_select:
22014         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22015
22016 2006-09-08  Jim Meyering  <jim@meyering.net>
22017
22018         Avoid new build failure on FreeBSD 6.0.
22019         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
22020         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
22021         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
22022
22023 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22024
22025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
22026
22027 2006-09-07  Jim Meyering  <jim@meyering.net>
22028
22029         Fix global typo in last change: use chmod u-w, not chmod u-x.
22030         Spotted by Paul Eggert and Bruce Korb.
22031         * modules/alloca-opt, modules/argz, modules/arpa_inet:
22032         * modules/byteswap, modules/configmake, modules/fcntl:
22033         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
22034         * modules/localcharset, modules/netinet_in, modules/poll:
22035         * modules/stdbool, modules/stdint, modules/sys_select:
22036         * modules/sys_socket, modules/sys_stat, modules/sysexits:
22037
22038 2006-09-06  Jim Meyering  <jim@meyering.net>
22039
22040         Make generated files be read-only.
22041         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
22042         Ensure that each generated file is now read-only.
22043         * modules/argz: Likewise.
22044         * modules/arpa_inet: Likewise.
22045         * modules/byteswap: Likewise.
22046         * modules/configmake: Likewise.
22047         * modules/fcntl: Likewise.
22048         * modules/fnmatch: Likewise.
22049         * modules/getopt: Likewise.
22050         * modules/glob: Likewise.
22051         * modules/inttypes: Likewise.
22052         * modules/netinet_in: Likewise.
22053         * modules/poll: Likewise.
22054         * modules/stdbool: Likewise.
22055         * modules/stdint: Likewise.
22056         * modules/sys_select: Likewise.
22057         * modules/sys_socket: Likewise.
22058         * modules/sys_stat: Likewise.
22059         * modules/sysexits: Likewise.
22060         * modules/localcharset: Same as above, but continue using temporary
22061         file named "t-$@" (why different?) rather than the "$@-t" used
22062         everywhere else.
22063
22064         * modules/sysexits (Makefile.am): Replace literal occurrences
22065         of "sysexit.h" more readable, and more consistent, "$@".
22066
22067 2006-09-06  Bruno Haible  <bruno@clisp.org>
22068
22069         * modules/striconv: New file.
22070         * modules/xstriconv: New file.
22071         * MODULES.html.sh (Internationalization functions): Add striconv,
22072         xstriconv.
22073
22074 2006-09-06  Bruno Haible  <bruno@clisp.org>
22075
22076         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
22077         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
22078         not using libtool correctly.
22079
22080 2006-09-06  Bruno Haible  <bruno@clisp.org>
22081
22082         * lib/striconv.h: New file.
22083         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
22084         iconvstring.c.
22085         * lib/xstriconv.h: New file.
22086         * lib/xstriconv.c: New file.
22087
22088 2006-09-06  Bruno Haible  <bruno@clisp.org>
22089
22090         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
22091         lib_..._LDFLAGS.
22092
22093 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22094
22095         * lib/argz_.h: Sync from Libtool.
22096
22097         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
22098                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22099
22100         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
22101
22102 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22103
22104         * modules/trim: New file.
22105
22106 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
22107
22108         * lib/trim.h: New file.
22109         * lib/trim.c: New file.
22110
22111 2006-09-05  Bruno Haible  <bruno@clisp.org>
22112
22113         * MODULES.html.sh (String handling): Add trim.
22114
22115 2006-09-04  Karl Berry  <karl@gnu.org>
22116
22117         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
22118         until next release.
22119
22120 2006-09-03  Bruno Haible  <bruno@clisp.org>
22121
22122         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
22123         correctly.
22124
22125 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22126
22127         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
22128         not gl_GETLOADAVG.  Omit unneeded semicolons.
22129         Problems reported by Ralf Wildenhues in
22130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22131         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
22132         at the end, which is the usual gnulib style.
22133
22134         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
22135         of doing all the work ourselves.
22136         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
22137         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
22138
22139 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22140
22141         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
22142         Problem reported by Ralf Wildenhues in
22143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
22144
22145         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
22146         HAVE_STRUCT_STATFS_F_FSTYPENAME.
22147
22148 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22149
22150         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
22151         yesterday's patch by changing test -n to test -z.
22152
22153 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22154
22155         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22156         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22157         the former is now obsolescent.
22158
22159         * modules/chdir-long (Depends-on): Add fcntl.
22160
22161 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22164         obsolescent, and programs should use gnulib instead.
22165         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22166         but with prefixes changed.
22167
22168 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22171         or stdbool.h, because they might not exist while configuring.
22172
22173         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22174         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22175         does that for us.
22176         (O_DIRECTORY): Remove.
22177
22178 2006-08-31  Eric Blake  <ebb9@byu.net>
22179
22180         * gnulib-tool: Don't let emacs change spaces to TAB.
22181
22182 2006-08-31  Bruno Haible  <bruno@clisp.org>
22183
22184         * gnulib-tool: When calling func_import more than once, do it in a
22185         subshell.
22186         Reported by Eric Blake <ebb9@byu.net>.
22187
22188 2006-08-31  Bruno Haible  <bruno@clisp.org>
22189
22190         * gnulib-tool (nl): Remove variable.
22191         (sed_transform_lib_file): Use more robust test for config-h module.
22192         (func_import): Fix typo in 2006-08-25 patch.
22193
22194 2006-08-31  Bruno Haible  <bruno@clisp.org>
22195
22196         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22197         specified, augment Makefile.am variables instead of assigning them.
22198
22199 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         Work around a bug in both the Linux and SunOS 64-bit kernels:
22202         nanosleep mishandles sleeps for longer than 2**31 seconds.
22203         Problem reported by Frank v Waveren in
22204         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22206         Check for nanosleep bug.
22207         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22208
22209 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22210
22211         Work around a bug in both the Linux and SunOS 64-bit kernels:
22212         nanosleep mishandles sleeps for longer than 2**31 seconds.
22213         Problem reported by Frank v Waveren in
22214         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22215         * lib/nanosleep.c (BILLION): New constant.
22216         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22217         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22218         implementation.
22219
22220 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22221
22222         * modules/nanosleep (Depends-on): Add gettime.
22223
22224 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22225         and Simon Josefsson  <jas@extundo.com>
22226         and Oskar Liljeblad  <oskar@osk.mine.nu>
22227
22228         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22229         * gnulib-tool (func_import): New license type 'unmodifiable license
22230         text'.
22231         * modules/fdl: Use it.  Longer description.
22232         * module/gpl, module/lgpl: New files.
22233
22234 2006-08-30  Jim Meyering  <jim@meyering.net>
22235
22236         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22237         shadowing the parameter.
22238
22239 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22240
22241         Sync from Libtool:
22242
22243         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22244
22245         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22246         sharing with gnulib.  Report by Eric Blake.
22247
22248 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22249
22250         * modules/isapipe: New file.
22251         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22252
22253 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         * modules/configmake (Makefile.am): Add a comment, and omit
22256         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22257         by Bruno Haible.
22258
22259 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22260
22261         * m4/isapipe.m4: New file.
22262
22263 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22264
22265         * lib/isapipe.c, lib/isapipe.h: New files.
22266
22267 2006-08-29  Jim Meyering  <jim@meyering.net>
22268
22269         * modules/configmake (Makefile.am): Make configmake.h depend on
22270         Makefile.  Otherwise, a stale configmake.h could hang around.
22271
22272 2006-08-29  Eric Blake  <ebb9@byu.net>
22273
22274         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22275         resolution of upstream bug 3044.
22276
22277 2006-08-29  Bruno Haible  <bruno@clisp.org>
22278
22279         * modules/localcharset (Depends-on): Add configmake.
22280         (Makefile.am): Remove setting of LIBDIR through DEFS.
22281
22282 2006-08-29  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22285         defined.
22286
22287 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22288
22289         * modules/fcntl: New file.
22290         * modules/chdir-safer (Depends-on): Add fcntl.
22291         * modules/fts: Likewise.
22292         * modules/mkdir-p: Likewise.
22293
22294         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22295         This undoes the most recent change, since we're now addressing the
22296         problem in a different way.
22297
22298         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22299         into output, since the output might be called Makefile.am even
22300         if $makefile_name is something different.
22301         (func_import): Use $makefile_am rather than
22302         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22303         empty.
22304
22305         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22306
22307 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22308
22309         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22310         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22311         recent change to stdint.m4, since we're now addressing the problem in a
22312         different way.
22313
22314 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22315
22316         * m4/fcntl_h.m4: New file.
22317
22318 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22319
22320         * lib/fcntl_.h: New file.
22321         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22322         the fcntl module.
22323         * lib/dirchownmod.c: Likewise.
22324         * lib/fts.c: Likewise.
22325
22326         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22327         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22328         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22329         just before including <inttypes.h>, to avoid circular inclusion.
22330
22331 2006-08-28  Jim Meyering  <jim@meyering.net>
22332
22333         * doc/visibility.texi: Actually read and correct the grammar of the
22334         sentence affected by yesterday's change.
22335
22336 2006-08-28  Eric Blake  <ebb9@byu.net>
22337
22338         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22339         needs wrapper.
22340
22341 2006-08-28  Eric Blake  <ebb9@byu.net>
22342
22343         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22344
22345 2006-08-28  Eric Blake  <ebb9@byu.net>
22346
22347         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22348
22349 2006-08-28  Bruno Haible  <bruno@clisp.org>
22350
22351         * modules/c-strstr: New file, from GNU gettext.
22352         * MODULES.html.sh (String handling): Add c-strstr.
22353
22354 2006-08-28  Bruno Haible  <bruno@clisp.org>
22355
22356         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22357         macros.
22358         Reported by Eric Blake.
22359
22360 2006-08-28  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22363         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22364         * lib/vasprintf.c: Include errno.h, limits.h.
22365         (EOVERFLOW): New fallback definition.
22366         (vasprintf): Test here whether the string length is > INT_MAX.
22367         * lib/vsnprintf.c: Include errno.h, limits.h.
22368         (EOVERFLOW): New fallback definition.
22369         (vsnprintf): Fix bug when generated string was too long for the buffer.
22370         Test here whether the string length is > INT_MAX.
22371
22372 2006-08-28  Bruno Haible  <bruno@clisp.org>
22373
22374         * lib/inttypes_.h (SCNX*): Remove definitions.
22375         Reported by Eric Blake.
22376
22377 2006-08-28  Bruno Haible  <bruno@clisp.org>
22378
22379         * lib/c-strstr.h: New file, from GNU gettext.
22380         * lib/c-strstr.c: New file, from GNU gettext.
22381
22382 2006-08-28  Bruno Haible  <bruno@clisp.org>
22383
22384         * gnulib-tool: Reorder some statements.
22385
22386 2006-08-28  Bruno Haible  <bruno@clisp.org>
22387
22388         * gnulib-tool: New option --makefile-name.
22389         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22390         $makefile_name.
22391         (func_import): Write $makefile_name to the cache file, and read it from
22392         there unless explicitly specified. Use $makefile_name as file name
22393         instead of Makefile.am. Adjust the recommendations accordingly.
22394
22395 2006-08-28  Bruno Haible  <bruno@clisp.org>
22396
22397         * gnulib-tool (func_verify_module): Check against misapplying patch.
22398
22399 2006-08-28  Bruno Haible  <bruno@clisp.org>
22400
22401         * gnulib-tool (func_relativize, func_relconcat): New functions.
22402         Give an error if --local-dir is given with --update.
22403         Remove trailing slashes from $local_gnulib_dir.
22404         (func_import): Store the relativized $local_gnulib_dir in
22405         gnulib-cache.m4, and read it from there if not specified explicitly.
22406
22407 2006-08-28  Bruno Haible  <bruno@clisp.org>
22408
22409         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22410         is the current directory. Respect also $local_gnulib_dir.
22411
22412 2006-08-28  Bruno Haible  <bruno@clisp.org>
22413             Simon Josefsson  <jas@extundo.com>
22414
22415         BeOS portability.
22416         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22417
22418 2006-08-27  Jim Meyering  <jim@meyering.net>
22419
22420         * doc/visibility.texi: Remove duplicate word: "pointer".
22421
22422 2006-08-26  Bruno Haible  <bruno@clisp.org>
22423
22424         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22425         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22426         (Makefile.am): Create inttypes.h from inttypes_.h.
22427         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22428
22429         * modules/imaxabs: New file.
22430
22431         * modules/imaxdiv: New file.
22432
22433 2006-08-26  Bruno Haible  <bruno@clisp.org>
22434
22435         * m4/inttypes.m4: New file.
22436         * m4/_inttypes_h.m4: Remove file.
22437         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22438         PRI_MACROS_BROKEN.
22439         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22440
22441         * m4/imaxabs.m4: New file.
22442
22443         * m4/imaxdiv.m4: New file.
22444
22445 2006-08-26  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/inttypes_.h: New file.
22448         * lib/inttypes.h: Remove file.
22449         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22450
22451         * lib/imaxabs.c: New file.
22452
22453         * lib/imaxdiv.c: New file.
22454
22455 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22456
22457         New config-h module, so that "make" output needn't be cluttered
22458         by -DHAVE_CONFIG_H.
22459         * MODULES.html.sh (Support for building libraries and executables):
22460         Add config-h.
22461         * modules/config-h: New file.
22462         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22463         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22464         the config-h module is used.
22465
22466         New configmake module, so that "make" output needn't be cluttered
22467         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22468         * MODULES.html.sh (Support for building libraries and executables):
22469         Add configmake.
22470         * modules/configmake: New file.
22471
22472 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22473
22474         * m4/config-h.m4: New file.
22475
22476 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22477
22478         * config/srclist.txt: Add elisp-comp.
22479
22480 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22481
22482         * MODULES.html.sh (Support for building libraries and executables):
22483         Add elisp-comp.
22484         * build-aux/elisp-comp: New file.
22485         * modules/elisp-comp: New file.
22486
22487 2006-08-24  Bruno Haible  <bruno@clisp.org>
22488
22489         * gnulib-tool (func_create_testdir): Use non-default values of
22490         sourcebase and m4base.
22491
22492 2006-08-24  Bruno Haible  <bruno@clisp.org>
22493
22494         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22495         HTML structure.
22496
22497 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22498
22499         * modules/openat (Depends-on): Add lchown.
22500
22501 2006-08-23  Bruno Haible  <bruno@clisp.org>
22502
22503         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22504         of gl_LOCK_EARLY instead of gl_LOCK.
22505
22506 2006-08-23  Bruno Haible  <bruno@clisp.org>
22507
22508         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22509         on OSF/1 to no.
22510         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22511
22512 2006-08-23  Bruno Haible  <bruno@clisp.org>
22513
22514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22515         as unusable.
22516
22517         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22518         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22519         (gl_LOCK): New macro.
22520
22521 2006-08-22  Simon Josefsson  <jas@extundo.com>
22522
22523         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22524         to md5 module.
22525
22526 2006-08-22  Simon Josefsson  <jas@extundo.com>
22527
22528         * MODULES.html.sh: Add "Support for maintaining and release
22529         projects".
22530
22531         * build-aux/gnupload: New file, from coreutils.
22532
22533 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22534
22535         Avoid the need for AC_LIBSOURCES in m4 macros.
22536         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22537         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22538         * modules/check-version (EXTRA_DIST): Add check-version.h.
22539         * modules/crc (EXTRA_DIST): Add crc.h.
22540         * modules/des (EXTRA_DIST): Add des.h.
22541         * modules/gc (EXTRA_DIST): Add gc.h.
22542         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22543         * modules/getline (EXTRA_DIST): Add getline.h.
22544         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22545         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22546         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22547         * modules/md2 (EXTRA_DIST): Add md2.h.
22548         * modules/md4 (EXTRA_DIST): Add md4.h.
22549         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22550         * modules/read-file (EXTRA_DIST): Add read-file.h.
22551         * modules/readline (EXTRA_DIST): Add readline.h.
22552         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22553         rijndael-api-fst.h.
22554
22555 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22556
22557         * m4/rijndael.m4 (gl_ARCFOUR):
22558         * m4/arctwo.m4 (gl_ARCTWO):
22559         * m4/check-version.m4 (gl_CHECK_VERSION):
22560         * m4/crc.m4 (gl_CRC):
22561         * m4/des.m4 (gl_DES):
22562         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22563         * m4/gc.m4 (gl_GC):
22564         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22565         * m4/getline.m4 (gl_FUNC_GETLINE):
22566         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22567         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22568         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22569         * m4/md2.m4 (gl_MD2):
22570         * m4/md4.m4 (gl_MD4):
22571         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22572         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22573         * m4/readline.m4 (gl_FUNC_READLINE):
22574         * m4/rijndael.m4 (gl_RIJNDAEL):
22575         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22576         to get the necessary .h files and whatnot.
22577
22578 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22579
22580         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22581         gnulib rather than the other way around.
22582         * config/srclistvars.sh (COREUTILS): Remove.
22583
22584 2006-08-22  Jim Meyering  <jim@meyering.net>
22585
22586         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22587
22588         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22589
22590 2006-08-22  Eric Blake  <ebb9@byu.net>
22591
22592         * modules/regexprops-generic: New file.
22593         * MODULES.html.sh (Support for building documentation): List it.
22594
22595 2006-08-22  Eric Blake  <ebb9@byu.net>
22596
22597         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22598         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22600         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22601
22602 2006-08-22  Bruno Haible  <bruno@clisp.org>
22603
22604         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22605         and lib_LTLIBRARIES like the other lib_* variables.
22606
22607 2006-08-22  Bruno Haible  <bruno@clisp.org>
22608
22609         * build-aux/x-to-1.in: New file, from GNU gettext.
22610
22611 2006-08-22  Bruno Haible  <bruno@clisp.org>
22612
22613         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22614         <utmpx.h> exists.
22615
22616 2006-08-22  Bruno Haible  <bruno@clisp.org>
22617
22618         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22619         <utmpx.h> exists.
22620
22621 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         BeOS portability.
22624         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22625         exist.
22626         Problem reported by Bruno Haible.
22627
22628 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22629
22630         Avoid the need for AC_LIBSOURCES in m4 macros.
22631         * modules/acl (EXTRA_DIST): Add acl.h.
22632         * modules/argmatch (Files): Add m4/argmatch.m4.
22633         (configure.ac): Add gl_ARGMATCH.
22634         (EXTRA_DIST): Renamed from lib_SOURCES, for
22635         consistency with the other modules.  Remove argmatch.c.
22636         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22637         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22638         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22639         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22640         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22641         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22642         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22643         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22644         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22645         * modules/closeout (EXTRA_DIST): Add closeout.h.
22646         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22647         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22648         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22649         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22650         dirname.h; remove basename.c and stripslash.c.
22651         * modules/exclude (EXTRA_DIST): Add exclude.h.
22652         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22653         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22654         * modules/file-type (EXTRA_DIST): Add file-type.h.
22655         * modules/filemode (EXTRA_DIST): Add filemode.h.
22656         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22657         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22658         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22659         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22660         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22661         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22662         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22663         * modules/getdate (EXTRA_DIST): Add getdate.c.
22664         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22665         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22666         * modules/getpass (EXTRA_DIST): Add getpass.h.
22667         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22668         * modules/group-member (EXTRA_DIST): Add group-member.h.
22669         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22670         * modules/hash (EXTRA_DIST): Add hash.h.
22671         * modules/human (EXTRA_DIST): Add human.h.
22672         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22673         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22674         * modules/lchown (EXTRA_DIST): Add lchown.h.
22675         * modules/long-options (EXTRA_DIST): Add long-options.h.
22676         * modules/lstat (EXTRA_DIST): Add lstat.h.
22677         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22678         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22679         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22680         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22681         * modules/memxor (EXTRA_DIST): Add memxor.h.
22682         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22683         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22684         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22685         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22686         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22687         * modules/physmem (EXTRA_DIST): Add physmem.h.
22688         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22689         * modules/posixver (EXTRA_DIST): Add posixver.h.
22690         * modules/quote (EXTRA_DIST): Add quote.h.
22691         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22692         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22693         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22694         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22695         regex_internal.h regexec.c.
22696         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22697         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22698         * modules/same (EXTRA_DIST): Add same.h.
22699         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22700         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22701         * modules/savedir (EXTRA_DIST): Add savedir.h.
22702         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22703         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22704         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22705         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22706         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22707         * modules/strdup (EXTRA_DIST): Add strdup.h.
22708         * modules/strftime (EXTRA_DIST): Add strftime.h.
22709         * modules/strndup (EXTRA_DIST): Add strndup.h.
22710         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22711         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22712         * modules/time_r (EXTRA_DIST): Add time_r.h.
22713         * modules/timespec (EXTRA_DIST): Add timespec.h.
22714         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22715         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22716         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22717         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22718         * modules/userspec (EXTRA_DIST): Add userspec.h.
22719         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22720         * modules/utimens (EXTRA_DIST): Add utimens.h.
22721         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22722         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22723         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22724         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22725         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22726         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22727         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22728         * modules/yesno (EXTRA_DIST): Add yesno.h.
22729
22730 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22731
22732         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22733
22734         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22735         * m4/dev-ino.m4, same-inode.m4: Remove.
22736
22737         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22738         * m4/acl.m4 (AC_FUNC_ACL):
22739         * m4/backupfile.m4 (gl_BACKUPFILE):
22740         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22741         * m4/canon-host.m4 (gl_CANON_HOST):
22742         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22744         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22745         * m4/cloexec.m4 (gl_CLOEXEC):
22746         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22747         * m4/closeout.m4 (gl_CLOSEOUT):
22748         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22749         * m4/dirname.m4 (gl_DIRNAME):
22750         * m4/exclude.m4 (gl_EXCLUDE):
22751         * m4/exitfail.m4 (gl_EXITFAIL):
22752         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22753         * m4/file-type.m4 (gl_FILE_TYPE):
22754         * m4/filemode.m4 (gl_FILEMODE):
22755         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22756         * m4/fpending.m4 (gl_FUNC_FPENDING):
22757         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22758         * m4/fts.m4 (gl_FUNC_FTS):
22759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22760         * m4/getdate.m4 (gl_GETDATE):
22761         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22762         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22763         * m4/getpass.m4 (gl_FUNC_GETPASS):
22764         * m4/gettime.m4 (gl_GETTIME):
22765         * m4/getugroups.m4 (gl_GETUGROUPS):
22766         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22767         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22768         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22769         * m4/hash.m4 (gl_HASH):
22770         * m4/idcache.m4 (gl_IDCACHE):
22771         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22772         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22773         * m4/long-options.m4 (gl_LONG_OPTIONS):
22774         * m4/lstat.m4 (gl_FUNC_LSTAT):
22775         * m4/md5.m4 (gl_MD5):
22776         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22777         * m4/memcoll.m4 (gl_MEMCOLL):
22778         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22780         * m4/memxor.m4 (gl_MEMXOR):
22781         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22782         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22783         * m4/modechange.m4 (gl_MODECHANGE):
22784         * m4/mountlist.m4 (gl_MOUNTLIST):
22785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22786         * m4/openat.m4 (gl_FUNC_OPENAT):
22787         * m4/pathmax.m4 (gl_PATHMAX):
22788         * m4/physmem.m4 (gl_PHYSMEM):
22789         * m4/posixtm.m4 (gl_POSIXTM):
22790         * m4/posixver.m4 (gl_POSIXVER):
22791         * m4/quote.m4 (gl_QUOTE):
22792         * m4/quotearg.m4 (gl_QUOTEARG):
22793         * m4/readtokens.m4 (gl_READTOKENS):
22794         * m4/readutmp.m4 (gl_READUTMP):
22795         * m4/regex.m4 (gl_REGEX):
22796         * m4/safe-read.m4 (gl_SAFE_READ):
22797         * m4/safe-write.m4 (gl_SAFE_WRITE):
22798         * m4/same.m4 (gl_SAME):
22799         * m4/save-cwd.m4 (gl_SAVE_CWD):
22800         * m4/savedir.m4 (gl_SAVEDIR):
22801         * m4/settime.m4 (gl_SETTIME):
22802         * m4/sha1.m4 (gl_SHA1):
22803         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22804         * m4/stat-macros.m4 (gl_STAT_MACROS):
22805         * m4/stat-time.m4 (gl_STAT_TIME):
22806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22807         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22808         * m4/strdup.m4 (gl_FUNC_STRDUP):
22809         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22810         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22811         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22812         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22813         * m4/time_r.m4 (gl_TIME_R):
22814         * m4/timespec.m4 (gl_TIMESPEC):
22815         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22816         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22817         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22818         * m4/userspec.m4 (gl_USERSPEC):
22819         * m4/utimecmp.m4 (gl_UTIMECMP):
22820         * m4/utimens.m4 (gl_UTIMENS):
22821         * m4/xalloc.m4 (gl_XALLOC):
22822         * m4/xgetcwd.m4 (gl_XGETCWD):
22823         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22824         * m4/xreadlink.m4 (gl_XREADLINK):
22825         * m4/xstrtod.m4 (gl_XSTRTOD):
22826         * m4/yesno.m4 (gl_YESNO):
22827         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22828         to get the necessary .h files and whatnot.
22829
22830 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22831             Bruno Haible  <bruno@clisp.org>
22832
22833         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22834         /bin/sh understanding of '!' conditional negation.
22835
22836 2006-08-21  Jim Meyering  <jim@meyering.net>
22837
22838         * modules/openat (Depends-on): Really alphabetize.
22839
22840         * modules/acl (Depends-on): Add error and quote.
22841
22842         * check-module (find_included_lib_files): Add at-func.c to the
22843         ok-to-include-more-than-once white list.
22844
22845         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22846
22847 2006-08-21  Bruno Haible  <bruno@clisp.org>
22848
22849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22850         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22851         Reported by Martin Lambers <marlam@marlam.de>.
22852
22853 2006-08-21  Bruno Haible  <bruno@clisp.org>
22854
22855         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22856         specify an installation location, don't emit a noinst_LIBRARIES or
22857         noinst_LTLIBRARIES assignment.
22858
22859 2006-08-21  Bruno Haible  <bruno@clisp.org>
22860
22861         BeOS portability.
22862         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22863         BeOS has mbrtowc() but no <wctype.h>.
22864
22865 2006-08-21  Bruno Haible  <bruno@clisp.org>
22866
22867         BeOS portability.
22868         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22869         exist.
22870
22871 2006-08-21  Bruno Haible  <bruno@clisp.org>
22872
22873         BeOS portability.
22874         * lib/mbchar.h: Include <wctype.h> only if it exists.
22875
22876 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22877
22878         Remove files that are no longer needed by their respective modules.
22879         * m4/obstack.m4: Remove.
22880         * m4/strerror_r.m4: Remove.
22881         * m4/uint32_t.m4: Remove.
22882         * m4/uintptr_t.m4: Remove.
22883         * m4/ullong_max.m4: Remove.
22884         * m4/xstrtoimax.m4: Remove.
22885         * m4/xstrtoumax.m4: Remove.
22886
22887         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22888         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22889         dependencies now capture this.
22890
22891         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22892         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22893         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22894         * m4/human.m4 (gl_HUMAN): Likewise.
22895         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22896         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22897
22898         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22899
22900         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22901         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22902         stdint.
22903         * m4/human.m4 (gl_HUMAN): Likewise.
22904         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22905         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22906         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22907         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22908         * m4/xstrtol (gl_XSTRTOL): Likewise.
22909
22910         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22911         AC_TYPE_LONG_LONG_INT.
22912         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22913         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22914         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22915         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22916
22917         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22918         on stdbool.
22919
22920         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22921         (gl_PREREQ_XSTRTOUL): Remove.
22922
22923         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22924
22925         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22926         mode.
22927
22928 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22929
22930         Add and change modules to make it easier for coreutils to use
22931         gnulib-tool.
22932         * modules/backupfile (Files): Remove m4/d-ino.m4.
22933         (Depends-on): Add d-ino.
22934         * modules/cycle-check (Depends-on): Add stdint.
22935         (lib_SOURCES): Add cycle-check.h.
22936         * modules/d-ino: New module.
22937         * modules/d-type: New module.
22938         * modules/error (Files): Remove m4/strerror_r.m4.
22939         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22940         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22941         m4/inttypes_h.m4, m4/uintmax_t.m4.
22942         (Depends-on): Add stdint.
22943         (lib_SOURCES): Add fsusage.h.
22944         * modules/getcwd (Files): Remove d-ino.m4.
22945         (Depends-on): Add d-ino.
22946         * modules/getndelim2 (Depends-on): Add stdint.
22947         * modules/glob (Files): Remove m4/d-type.m4.
22948         (Depends-on): Add d-type.
22949         * modules/host-os: New module.
22950         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22951         m4/inttypes_h.m4, m4/uintmax_t.m4.
22952         * Depends-on: Add stdint.
22953         (lib_SOURCES): Add human.h.
22954         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22955         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22956         m4/uintmax_t.m4, m4/ulonglong.m4.
22957         (Depends-on): Add stdint.
22958         (EXTRA_DIST): Add inttostr.h.
22959         * modules/lchmod: New module.
22960         * modules/link-follow: New module.
22961         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22962         (Depends-on): Add lchmod.
22963         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22964         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22965         (Depends-on): Add stdint.
22966         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22967         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22968         (Depends-on): Add stdint.
22969         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22970         * modules/perl: New module.
22971         * modules/regex (Depends-on): Add stdint.
22972         * modules/rmdir-errno: New module.
22973         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22974         m4/intmax_t.m4.
22975         (Depends-on): Add stdint.
22976         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22977         m4/uintmax_t.m4.
22978         (Depends-on): Add stdint.
22979         * modules/unlink-busy: New module.
22980         * modules/utimecmp (Depends-on): Add stdint.
22981         * modules/uptime: New module.
22982         * modules/winsz-ioctl: New module.
22983         * modules/winsz-termios: New module.
22984         * modules/xnanosleep (Depends-on): Add nanosleep.
22985         * modules/ullong_max: Remove.
22986         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22987         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22988         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22989         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22990         (Depends-on): Add inttypes.
22991         (lib_SOURCES): Add xstrtol.h.
22992         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22993         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22994         * MODULES.html.sh: Move 'assert' into the assert section.
22995         Move 'dummy' into the linking section.
22996         Remove ullong_max.
22997         Add section for compatibility checks for POSIX:2001 functions,
22998         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22999         winsz-ioctl, and winsz-termios into it.
23000         Add lchmod.
23001         Add top-level Misc section and put host-os, perl, and uptime
23002         into it.
23003
23004 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23005
23006         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
23007         now assume the stdint module.  Do not include inttypes.h.
23008         * lib/fsusage.h: Likewise.
23009         * lib/getndelim2.c: Likewise.
23010         * lib/human.h: Likewise.
23011         * lib/inttostr.h: Likewise.
23012         * lib/obstack.c: Likewise.
23013         * lib/regex_internal.h: Likewise.
23014         * lib/tempname.c: Likewise.
23015         * lib/utimecmp.c: Likewise.
23016         * lib/xstrtol.h: Likewise.
23017
23018         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
23019
23020         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
23021         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
23022         * lib/xtime.h: Likewise.
23023
23024 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23025
23026         * modules/openat (Files): Add lib/fchmodat.c.
23027         Fixes problem reported by Jay Youngman.
23028
23029 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
23032         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
23033
23034 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23035             Bruno Haible  <bruno@clisp.org>
23036
23037         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
23038         and is a script that invokes bison. Tighten the code. Add comments.
23039
23040 2006-08-18  Jim Meyering  <jim@meyering.net>
23041
23042         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
23043         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
23044         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
23045         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
23046
23047 2006-08-18  Bruno Haible  <bruno@clisp.org>
23048
23049         * modules/bison-i18n: New file.
23050         * MODULES.html.sh (Internationalization functions): Add it.
23051
23052 2006-08-18  Bruno Haible  <bruno@clisp.org>
23053
23054         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
23055         sys/statvfs.h. When getmntinfo was found, check its declaration and
23056         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
23057
23058 2006-08-18  Bruno Haible  <bruno@clisp.org>
23059
23060         * m4/bison-i18n.m4: New file, from bison.
23061
23062 2006-08-18  Bruno Haible  <bruno@clisp.org>
23063
23064         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
23065         (ME_DUMMY): Treat "kernfs" as a dummy.
23066         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
23067
23068 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23069
23070         Update from coreutils.
23071
23072         2006-08-15  Jim Meyering  <jim@meyering.net>
23073
23074         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
23075
23076         2006-01-17  Jim Meyering  <jim@meyering.net>
23077
23078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
23079
23080         2006-01-11  Jim Meyering  <jim@meyering.net>
23081
23082         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
23083         Check for the lchmod function.
23084
23085 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23086
23087         Update from coreutils.
23088
23089         * lib/__fpending.h: Add copyright notice.
23090         * lib/fprintftime.h: Likewise.
23091         * lib/savedir.c: Use (C) in copyright notice.
23092         * lib/savedir.h: Likewise.
23093
23094         2006-08-15  Jim Meyering  <jim@meyering.net>
23095
23096         * lib/at-func.c: New file, with the logic of all emulated at-functions.
23097         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
23098         in support of the EXPECTED_ERRNO macro.
23099         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
23100         definitions.  Instead, define the appropriate symbols and include
23101         "at-func.c".
23102         * lib/mkdirat.c (mkdirat): Likewise.
23103         * lib/fchmodat.c (fchmodat): Likewise.
23104         (ENOSYS): Remove definition.
23105         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
23106         it.  Don't include "unistd--.h" -- it wasn't ever used.
23107
23108         2006-01-17  Jim Meyering  <jim@meyering.net>
23109
23110         Rewrite fts.c not to change the current working directory,
23111         by using openat, fstatat, fdopendir, etc..
23112
23113         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
23114         (HAVE_OPENAT_SUPPORT): Define.
23115         [_LIBC] (fchdir): Don't undef or define; no longer used.
23116         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
23117         Now, this `function' always succeeds, and consumes its file descriptor
23118         parameter -- so callers must not close such FDs.  Update callers.
23119         (diropen_fd, opendirat, cwd_advance_fd): New functions.
23120         (diropen): Add parameter, SP.  Adjust all callers.
23121         Implement using diropen_fd, rather than open.
23122         (fts_open): Initialize new member, fts_cwd_fd.
23123         Remove fts_rft-setting code.
23124         (fts_close): Close fts_cwd_fd, if necessary.
23125         (__opendir2): Define in terms of opendir or opendirat,
23126         depending on whether the FST_NOCHDIR flag is set.
23127         (fts_build): Since fts_safe_changedir consumes its FD, and since
23128         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
23129         and close the dup'd file descriptor upon failure.
23130         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
23131         (fts_safe_changedir): Tweak semantics to reflect that this function
23132         now calls cwd_advance_fd and hence consumes its FD argument.
23133         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
23134         [struct FTS] (fts_rft): Remove now-unused member.
23135         [struct FTS] (fts_cycle.state): Improve comment.
23136
23137         * lib/openat.c (openat_needs_fchdir): New function.
23138         * lib/openat.h (openat_needs_fchdir): Declare it.
23139
23140 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23141
23142         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
23143         Problem and fix reported by Pádraig Brady in
23144         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
23145
23146 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23147
23148         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
23149
23150 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23151
23152         * lib/memcoll.c (memcoll): Optimize for the common case where the
23153         arguments are bytewise equal.
23154
23155 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23156
23157         * doc/regexprops-generic.texi: Add a copyright notice.
23158
23159 2006-08-15  Bruno Haible  <bruno@clisp.org>
23160
23161         * modules/tmpdir (License): Change to LGPL.
23162
23163 2006-08-15  Bruno Haible  <bruno@clisp.org>
23164
23165         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23166         module.
23167
23168 2006-08-14  Simon Josefsson  <jas@extundo.com>
23169
23170         * config/srclist.txt: Add gnupload.
23171
23172 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         Change copyright notice from LGPL 2 to GPL 2, since that's the
23175         standard form used in the gnulib repository.
23176         * tests/test-lock.c: Likewise.
23177         * tests/test-stdint.c: Likewise.
23178         * tests/test-tls.c: Likewise.
23179
23180         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23181         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23182         Add copyright notice.
23183
23184         * check-module: Add copyright notice.  Output a copyright
23185         notice if "--version" is specified.
23186         * modules/COPYING: New file.
23187         * tests/test-getaddrinfo.c: Add copyright notice.
23188         * tests/test-verify.c: Likewise.
23189
23190 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23191
23192         Change copyright notice from LGPL 2 to GPL 2, since that's the
23193         standard form used in the gnulib repository.
23194         * lib/lock.c: LGPL -> GPL.
23195         * lib/lock.h: Likewise.
23196         * lib/strnlen1.c: Likewise.
23197         * lib/strnlen1.h: Likewise.
23198         * lib/tls.c: Likewise.
23199         * lib/tls.h: Likewise.
23200         * lib/tmpdir.c: Likewise.
23201
23202         * lib/TODO: Remove; this belongs only in coreutils.
23203
23204 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23205
23206         Add copyright notices to long-enough files that lack them, since
23207         otherwise the files aren't clearly free.  Use the same notice that
23208         getdate.texi already uses.
23209         * doc/alloca-opt.texi: Add copyright notice.
23210         * doc/alloca.texi: Likewise.
23211         * doc/ctime.texi: Likewise.
23212         * doc/functions.texi: Likewise.
23213         * doc/gcd.texi: Likewise.
23214         * doc/gnulib-tool.texi: Likewise.
23215         * doc/inet_ntoa.texi: Likewise.
23216         * doc/visibility.texi: Likewise.
23217
23218         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23219         * doc/quote.texi: Add copyright notice.
23220
23221         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23222         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23223         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23224         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23225         is now obsolete, and give a pointer to the Sun list.
23226         Add copyright notice.
23227
23228 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23229
23230         * config/srclistvars.sh: Add copyright notice.
23231
23232 2006-08-14  Eric Blake  <ebb9@byu.net>
23233
23234         Import the following change from libc:
23235
23236         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23237
23238         Upstream bug 2997.
23239         * lib/misc/error.c: Add space between program name and message if file
23240         name is missing.
23241
23242 2006-08-12  Karl Berry  <karl@gnu.org>
23243
23244         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23245         remove, these originate in gnulib now.
23246
23247 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23248
23249         * doc/Makefile (standards.info standards.html standards.dvi):
23250         Also depend on make-stds.texi.
23251
23252 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23255         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23256
23257         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23258         in wchar_t.  Problem reported by Eric Blake.
23259
23260         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23261         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23262         Also, help the compiler to keep LEN in a register.
23263
23264 2006-08-11  Eric Blake  <ebb9@byu.net>
23265
23266         * users.txt: Sort.  Add tar.
23267
23268 2006-08-11  Bruno Haible  <bruno@clisp.org>
23269
23270         * users.txt: New file.
23271
23272 2006-08-11  Bruno Haible  <bruno@clisp.org>
23273
23274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23275         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23276
23277 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23278
23279         * modules/snprintf (Depends-on): Remove minmax.
23280         (Maintainer): Add self and Bruno.
23281
23282 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23283
23284         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23285         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23286         (EOVERFLOW): Define if the system does not.
23287         Do not include "minmax.h"; it wasn't used.
23288         (snprintf): Don't assume size_t promotes to an unsigned type.
23289         Fix bug when generated string was too long for the buffer: the
23290         buffer's contents are supposed to be the initial prefix of the
23291         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23292         exceeds INT_MAX; do the check ourselves.
23293
23294         Import the following changes from libc:
23295
23296         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23297
23298         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23299         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23300         set wc to the byte which couldn't be converted.
23301         (re_string_reconstruct): Don't clear valid_raw_len before calling
23302         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23303         tip_context using re_string_context_at.
23304
23305         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23306
23307         * lib/posix/regex.h: g++ still cannot handled [restrict].
23308
23309         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23310
23311         * lib/posix/regex.h: Remove special handling for VMS.
23312
23313 2006-08-10  Jim Meyering  <jim@meyering.net>
23314
23315         * modules/same-inode: New module.
23316         * modules/dev-ino: New module.
23317         * modules/cycle-check: Depend on these modules, rather than simply
23318         including their .h files.
23319         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23320         required via m4/cycle-check.m4.
23321         * modules/same: Depend on new same-inode module, rather than
23322         including same-inode.h.
23323         * modules/chdir-safer: New file.
23324
23325         * modules/chown (Depends-on): Add stat-macros.
23326
23327 2006-08-10  Jim Meyering  <jim@meyering.net>
23328
23329         * m4/cycle-check.m4: New file.
23330         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23331         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23332
23333 2006-08-10  Eric Blake  <ebb9@byu.net>
23334
23335         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23336         in from original proposal.
23337
23338 2006-08-10  Eric Blake  <ebb9@byu.net>
23339         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23340
23341         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23342         namespace.
23343
23344 2006-08-10  Bruno Haible  <bruno@clisp.org>
23345
23346         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23347         as well.
23348
23349 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23350
23351         Sync from coreutils.
23352
23353         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23354
23355         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23356         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23357
23358 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23359
23360         * modules/restrict: Remove; no longer needed now that we assume
23361         Autoconf 2.59 or later.
23362         * MODULES.html.sh: Remove 'restrict'.
23363         * modules/argp (Depends-on): Remove 'restrict'.
23364         * modules/base64 (Depends-on): Likewise.
23365         * modules/gc (Depends-on): Likewise.
23366         * modules/getaddrinfo (Depends-on): Likewise.
23367         * modules/glob (Depends-on): Likewise.
23368         * modules/inet_ntop (Depends-on): Likewise.
23369         * modules/inet_pton (Depends-on): Likewise.
23370         * modules/memxor (Depends-on): Likewise.
23371         * modules/regex (Depends-on): Likewise.
23372         * modules/strtok_r (Depends-on): Likewise.
23373         * modules/time_r (Depends-on): Likewise.
23374
23375 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23376
23377         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23378         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23379         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23380         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23381         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23382         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23383         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23384         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23385
23386         Merge from coreutils.
23387         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23388         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23389         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23390         * m4/time_r.m4 (gl_TIME_R): Likewise.
23391
23392 2006-08-09  Karl Berry  <karl@gnu.org>
23393
23394         * config/srclist.txt: no more gettext-tools, per Bruno.
23395
23396 2006-08-08  Eric Blake  <ebb9@byu.net>
23397
23398         * modules/verror: New module.
23399         * MODULES.html.sh: Document it.
23400
23401 2006-08-08  Eric Blake  <ebb9@byu.net>
23402
23403         * lib/verror.h, lib/verror.c: New files.
23404
23405 2006-08-08  Eric Blake  <ebb9@byu.net>
23406
23407         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23408         verror_at_line output complies with GNU Coding Standards even when
23409         file is NULL.
23410
23411 2006-08-07  Bruno Haible  <bruno@clisp.org>
23412
23413         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23414         versions of AIX.
23415         Reported by Ralf Wildenhues.
23416
23417 2006-08-07  Bruno Haible  <bruno@clisp.org>
23418
23419         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23420         in an AC_DEFUN. Needed so that the autoconf snippets can use
23421         AC_REQUIRE.
23422
23423 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23424
23425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23426         Initialize pkgdata_DATA.
23427         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23428         overriding it.
23429
23430 2006-08-06  Eric Blake  <ebb9@byu.net>
23431
23432         * lib/error.h: Fold in some upstream changes from glibc.
23433         * lib/error.c: Likewise.
23434
23435 2006-08-04  Bruno Haible  <bruno@clisp.org>
23436
23437         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23438         Make the mostlyclean-local rule depend on mostlyclean-generic.
23439         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23440
23441 2006-07-31  Bruno Haible  <bruno@clisp.org>
23442
23443         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23444         <stdlib.h>, <string.h>.
23445
23446 2006-07-30  Bruno Haible  <bruno@clisp.org>
23447
23448         * modules/readlink (License): Change to LGPL.
23449
23450 2006-07-30  Bruno Haible  <bruno@clisp.org>
23451
23452         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23453         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23454         set PKGDATADIR to point to it.
23455
23456 2006-07-30  Bruno Haible  <bruno@clisp.org>
23457
23458         * modules/csharpexec (configure.ac): Comment out macro invocation.
23459         * modules/javaexec (configure.ac): Likewise.
23460         * modules/javacomp-script (configure.ac): Likewise.
23461
23462         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23463
23464 2006-07-30  Bruno Haible  <bruno@clisp.org>
23465
23466         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23467         linked-list.
23468
23469 2006-07-30  Bruno Haible  <bruno@clisp.org>
23470
23471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23472
23473 2006-07-30  Bruno Haible  <bruno@clisp.org>
23474
23475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23476         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23477         get removed.
23478
23479 2006-07-29  Bruno Haible  <bruno@clisp.org>
23480
23481         Make it possible for gnulib-tool to work with locally modified or
23482         augmented gnulib repositories.
23483         * gnulib-tool (func_usage): Document --local-dir option.
23484         (local_gnulib_dir): New variable.
23485         Handle --local-dir option.
23486         (func_lookup_file): New function.
23487         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23488         (func_get_description, func_get_filelist, func_get_description,
23489         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23490         func_get_automake_snippet, func_get_include_directive,
23491         func_get_license, func_get_maintainer): Use func_lookup_file.
23492         (func_import, func_create_testdir): Use func_lookup_file.
23493
23494 2006-07-29  Bruno Haible  <bruno@clisp.org>
23495
23496         * modules/setenv (Depends-on): Add unistd.
23497
23498 2006-07-29  Bruno Haible  <bruno@clisp.org>
23499
23500         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23501
23502 2006-07-29  Bruno Haible  <bruno@clisp.org>
23503
23504         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23505
23506 2006-07-29  Bruno Haible  <bruno@clisp.org>
23507
23508         * gnulib-tool (import, update): If there is no Makefile.am, look at
23509         aclocal.m4, instead of bailing out.
23510
23511 2006-07-29  Bruno Haible  <bruno@clisp.org>
23512
23513         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23514         Categorize the options by when they are useful.
23515
23516 2006-07-29  Bruno Haible  <bruno@clisp.org>
23517
23518         * gnulib-tool (func_usage): Document option --no-libtool.
23519         Handle option --no-libtool.
23520         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23521         for changed semantics of $libtool variable.
23522         (func_import): Likewise. If libtool is not used, show this through
23523         an option --no-libtool.
23524         (func_create_testdir): Update.
23525
23526 2006-07-29  Bruno Haible  <bruno@clisp.org>
23527
23528         * gnulib-tool (func_import): Extend error message about missing
23529         --doc-base.
23530
23531 2006-07-29  Bruno Haible  <bruno@clisp.org>
23532
23533         * gnulib-tool (func_import): Don't create the $docbase directory if
23534         there is no file to store there.
23535
23536 2006-07-29  Bruno Haible  <bruno@clisp.org>
23537
23538         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23539         relevant, look for configure.ac there, not in the current directory.
23540         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23541
23542 2006-07-29  Bruno Haible  <bruno@clisp.org>
23543
23544         * gnulib-tool (SORT): New variable.
23545         (func_usage): Undocument --assume-autoconf option.
23546         Remove --assume-autoconf option handling.
23547         (autoconf_minversion): Determine from the contents of configure.ac.
23548         (func_import): Remove autoconf_minversion handling.
23549         Suggested by Eric Blake.
23550
23551 2006-07-29  Bruno Haible  <bruno@clisp.org>
23552
23553         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23554
23555 2006-07-29  Bruno Haible  <bruno@clisp.org>
23556
23557         * config/srclist.txt (*setenv.[ch]): Remove rules.
23558
23559 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23560
23561         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23562
23563 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23564
23565         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23566         arpa/inet.h.
23567
23568 2006-07-28  Simon Josefsson  <jas@extundo.com>
23569
23570         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23571         * modules/inet_pton (Depends-on): Likewise.
23572
23573 2006-07-28  Simon Josefsson  <jas@extundo.com>
23574
23575         * m4/netinet_in_h.m4: New file.
23576
23577 2006-07-28  Simon Josefsson  <jas@extundo.com>
23578
23579         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23580         #include's.
23581
23582 2006-07-28  Simon Josefsson  <jas@extundo.com>
23583
23584         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23585         #include's.
23586
23587 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23588
23589         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23590         setgid on directories only if they set these bits.
23591         * lib/modechange.h: Remove obsolete comment about masks.
23592
23593 2006-07-28  Eric Blake  <ebb9@byu.net>
23594
23595         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23596         macro expansion.
23597
23598 2006-07-28  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23601
23602 2006-07-28  Bruno Haible  <bruno@clisp.org>
23603
23604         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23605
23606 2006-07-28  Bruno Haible  <bruno@clisp.org>
23607
23608         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23609         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23610         Define fallbacks.
23611         Avoids link error on FreeBSD 4.x.
23612         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23613
23614         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23615         encoding.
23616         * lib/mbswidth.c (iswcntrl): Likewise.
23617
23618 2006-07-27  Bruno Haible  <bruno@clisp.org>
23619
23620         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23621         test.
23622
23623 2006-07-27  Bruno Haible  <bruno@clisp.org>
23624
23625         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23626         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23627         defined.
23628
23629 2006-07-26  Eric Blake  <ebb9@byu.net>
23630
23631         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23632
23633 2006-07-26  Eric Blake  <ebb9@byu.net>
23634
23635         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23636         like mingw that lack mkstemp.
23637         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23638         avoid compilation warning on mingw.
23639
23640 2006-07-26  Bruno Haible  <bruno@clisp.org>
23641
23642         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23643         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23644         INT_FAST*_MIN, INTPTR_MIN.
23645
23646 2006-07-25  Bruno Haible  <bruno@clisp.org>
23647
23648         * modules/version-etc (Depends-on): Add stdarg.
23649
23650 2006-07-25  Bruno Haible  <bruno@clisp.org>
23651
23652         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23653         complex commands.
23654
23655 2006-07-25  Bruno Haible  <bruno@clisp.org>
23656
23657         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23658         defined in <stdarg.h> or config.h.
23659
23660 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23661
23662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23663         (gl_STDIO_SAFER): Remove.
23664
23665 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23666
23667         * MODULES.html.sh (File stream based Input/Output):
23668         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23669         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23670         * modules/fopen-safer, modules/tmpfile-safer: New files.
23671         * modules/stdio-safer: Remove.
23672
23673 2006-07-24  Bruno Haible  <bruno@clisp.org>
23674
23675         * modules/tmpdir: New file.
23676         * MODULES.html.sh (File system functions): Add it.
23677
23678 2006-07-24  Bruno Haible  <bruno@clisp.org>
23679
23680         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23681         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23682
23683 2006-07-24  Bruno Haible  <bruno@clisp.org>
23684
23685         * modules/clean-temp: New file.
23686
23687 2006-07-24  Bruno Haible  <bruno@clisp.org>
23688
23689         * m4/tmpdir.m4: New file, from GNU gettext.
23690
23691 2006-07-24  Bruno Haible  <bruno@clisp.org>
23692
23693         * lib/tmpdir.h: New file, from GNU gettext.
23694         * lib/tmpdir.c: New file, from GNU gettext.
23695
23696 2006-07-24  Bruno Haible  <bruno@clisp.org>
23697
23698         * lib/clean-temp.h: New file, from GNU gettext.
23699         * lib/clean-temp.c: New file, from GNU gettext.
23700
23701 2006-07-23  Eric Blake  <ebb9@byu.net>
23702
23703         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23704         (Depends-on): Add binary-io.
23705
23706 2006-07-23  Eric Blake  <ebb9@byu.net>
23707
23708         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23709
23710 2006-07-23  Eric Blake  <ebb9@byu.net>
23711
23712         * lib/tmpfile-safer.c: New file.
23713         * lib/stdio-safer.h (fopen_safer): Add prototype.
23714         * lib/stdio--.h (tmpfile): Make safer.
23715
23716 2006-07-23  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23719         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23720         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23721         gl_linked_remove_at): Use it.
23722
23723 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23724         and Simon Josefsson <jas@extundo.com>
23725
23726         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23727
23728         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23729
23730 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23731
23732         * modules/close-stream: New file.
23733         * modules/closeout (Description): Make it clear that it exits
23734         with a diagnostic on error.
23735         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23736         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23737
23738 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23739
23740         * m4/close-stream.m4: New file.
23741
23742 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23743
23744         * lib/close-stream.c, lib/close-stream.h: New files.
23745
23746 2006-07-22  Bruno Haible  <bruno@clisp.org>
23747
23748         Merge from GNU gettext 0.15.
23749
23750         2006-05-01  Bruno Haible  <bruno@clisp.org>
23751
23752                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23753
23754         2006-07-22  Bruno Haible  <bruno@clisp.org>
23755
23756                 * modules/javaversion: New file.
23757                 * MODULES.html.sh (Java): Add javaversion.
23758
23759         2006-03-12  Bruno Haible  <bruno@clisp.org>
23760
23761                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23762
23763         2005-12-04  Bruno Haible  <bruno@clisp.org>
23764
23765                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23766                 (untested).
23767
23768         2006-06-21  Bruno Haible  <bruno@clisp.org>
23769
23770                 Avoid warnings from recent versions of mcs.
23771                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23772                 -o, -L, -r any more. Use options documented since mcs-1.0
23773                 instead. Similarly for -g.
23774
23775         2005-12-04  Bruno Haible  <bruno@clisp.org>
23776
23777                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23778                 .resources, not .resource.
23779
23780         2005-07-09  Bruno Haible  <bruno@clisp.org>
23781
23782                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23783                 add a .dll suffix.
23784                 Reported by Mark Junker <mjscod@gmx.de>.
23785
23786         2006-07-22  Bruno Haible  <bruno@clisp.org>
23787
23788                 * modules/gettext: Upgrade to gettext-0.15.
23789                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23790                 m4/visibility.m4.
23791                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23792
23793 2006-07-22  Bruno Haible  <bruno@clisp.org>
23794
23795         Merge from GNU gettext 0.15.
23796
23797         2006-03-25  Bruno Haible  <bruno@clisp.org>
23798
23799                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23800
23801         2006-07-21  Bruno Haible  <bruno@clisp.org>
23802
23803                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23804                 "1.1".
23805
23806         2006-05-09  Bruno Haible  <bruno@clisp.org>
23807
23808                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23809                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23810                 for the conftestver execution.
23811
23812         2006-05-01  Bruno Haible  <bruno@clisp.org>
23813
23814                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23815                 optional target-version argument. Verify that the compiler
23816                 groks source of the specified source-version, or add -source
23817                 option as necessary. Verify that the compiler produces
23818                 bytecode in the specified target-version, or add -target and
23819                 -source options as necessary. Make the result of the test
23820                 available as variable CONF_JAVAC. Also log error output in
23821                 config.log.
23822
23823         2006-03-11  Bruno Haible  <bruno@clisp.org>
23824
23825                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23826
23827         2006-05-09  Bruno Haible  <bruno@clisp.org>
23828
23829                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23830                 CLASSPATH_SEPARATOR to a semicolon.
23831
23832         2006-03-12  Bruno Haible  <bruno@clisp.org>
23833
23834                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23835                 available as variable CONF_JAVA, for subsequent autoconf
23836                 tests. Also log error output in config.log.
23837
23838         2006-07-19  Bruno Haible  <bruno@clisp.org>
23839
23840                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23841                 that getline works on glibc2 systems. Needed to avoid trouble
23842                 in relocatable.c.
23843                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23844
23845         2005-12-04  Bruno Haible  <bruno@clisp.org>
23846
23847                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23848                 launcher (untested).
23849
23850         2005-12-04  Bruno Haible  <bruno@clisp.org>
23851
23852                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23853
23854         2006-07-22  Bruno Haible  <bruno@clisp.org>
23855
23856                 * gettext.m4: Update from GNU gettext-0.15.
23857                 * nls.m4: Likewise.
23858                 * po.m4: Likewise.
23859                 * inttypes-pri.m4: Likewise.
23860                 * inttypes-h.m4: Renamed from inttypes.m4.
23861                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23862
23863 2006-07-22  Bruno Haible  <bruno@clisp.org>
23864
23865         Merge from GNU gettext 0.15.
23866
23867         2005-07-05  Bruno Haible  <bruno@clisp.org>
23868
23869                 * printf-args.c (printf_fetchargs): Work around broken
23870                 definition of wint_t on mingw.
23871
23872         2005-02-12  Bruno Haible  <bruno@clisp.org>
23873
23874                 * xallocsa.h: Add extern "C" for C++.
23875
23876         2006-05-17  Bruno Haible  <bruno@clisp.org>
23877
23878                 Cygwin portability.
23879                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23880
23881         2006-04-30  Bruno Haible  <bruno@clisp.org>
23882
23883                 * progreloc.c: Include <mach-o/dyld.h> if available.
23884                 (find_executable): Use _NSGetExecutablePath when possible.
23885
23886         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23887
23888                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23889                 function.
23890
23891         2005-12-29  Bruno Haible  <bruno@clisp.org>
23892
23893                 * progreloc.c (set_program_name_and_installdir): Fix
23894                 compilation error.
23895
23896         2005-12-04  Bruno Haible  <bruno@clisp.org>
23897
23898                 Cygwin portability.
23899                 * progreloc.c: Include <windows.h> also on Cygwin.
23900                 (find_executable): Add support for Cygwin.
23901                 (set_program_name_and_installdir): Handle also platforms with
23902                 nonempty EXEEXT.
23903
23904         2006-07-11  Bruno Haible  <bruno@clisp.org>
23905
23906                 * javacomp.c: Fix a comment.
23907                 Reported by Jim Meyering.
23908
23909         2006-04-30  Bruno Haible  <bruno@clisp.org>
23910
23911                 * javacomp.h (compile_java_class): Add source_version,
23912                 target_version arguments.
23913                 * javacomp.c: Rewritten to choose only a compiler that
23914                 respects the specified source_version and target_version.
23915
23916         2006-06-27  Bruno Haible  <bruno@clisp.org>
23917
23918                 Assume correct S_ISDIR macro.
23919                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23920
23921         2006-07-22  Bruno Haible  <bruno@clisp.org>
23922
23923                 * javaversion.h: New file, from GNU gettext.
23924                 * javaversion.c: New file, from GNU gettext.
23925                 * javaversion.java: New file, from GNU gettext.
23926                 * javaversion.class: New file, from GNU gettext.
23927
23928         2006-05-17  Bruno Haible  <bruno@clisp.org>
23929
23930                 Cygwin portability.
23931                 * javaexec.c (execute_java_class): Test for jview program
23932                 also on Cygwin.
23933
23934         2006-04-09  Bruno Haible  <bruno@clisp.org>
23935
23936                 * fatal-signal.c: Don't include string.h.
23937                 (at_fatal_signal): Use a copying loop instead of memcpy.
23938
23939         2005-12-04  Bruno Haible  <bruno@clisp.org>
23940
23941                 * csharpexec.c: Add support for 'clix' launcher (untested).
23942                 (execute_csharp_using_sscli): New function.
23943                 (execute_csharp_program): Call it.
23944
23945         2006-06-21  Bruno Haible  <bruno@clisp.org>
23946
23947                 Avoid warnings from recent versions of mcs.
23948                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23949                 -o, -L, -r any more. Use options documented since mcs-1.0
23950                 instead. Similarly for -g.
23951
23952         2005-07-09  Bruno Haible  <bruno@clisp.org>
23953
23954                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23955                 add a .dll suffix.
23956                 Reported by Mark Junker <mjscod@gmx.de>.
23957
23958         2006-06-17  Bruno Haible  <bruno@clisp.org>
23959
23960                 * config.charset: Update for NetBSD 3.0.
23961
23962         2006-05-17  Bruno Haible  <bruno@clisp.org>
23963
23964                 Cygwin portability.
23965                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23966
23967         2006-05-16  Bruno Haible  <bruno@clisp.org>
23968
23969                 * localcharset.c [CYGWIN]: Include <windows.h>.
23970                 (get_charset_aliases): For Cygwin, return the same CPxxx
23971                 aliases list as under WIN32.
23972                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23973                 the environment variables. Fall back to GetACP().
23974
23975         2006-04-05  Bruno Haible  <bruno@clisp.org>
23976
23977                 * config.charset: Update Juan Manuel Guerrero's address.
23978
23979         2005-02-12  Bruno Haible  <bruno@clisp.org>
23980
23981                 * allocsa.h: Add extern "C" for C++.
23982
23983         2005-02-10  Bruno Haible  <bruno@clisp.org>
23984
23985                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23986                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23987
23988         2006-07-22  Bruno Haible  <bruno@clisp.org>
23989
23990                 * gettext.h: Update to GNU gettext-0.15.
23991
23992 2006-07-22  Bruno Haible  <bruno@clisp.org>
23993
23994         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23995         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23996         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23997
23998 2006-07-21  Eric Blake  <ebb9@byu.net>
23999
24000         * modules/stdlib-safer: New file.
24001         * MODULES.html.sh (File stream based Input/Output): Add
24002         stdlib-safer.
24003
24004 2006-07-21  Eric Blake  <ebb9@byu.net>
24005
24006         * lib/stdlib-safer.h: New file from coreutils, required by
24007         stdlib--.h.
24008
24009 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
24010
24011         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
24012
24013 2006-07-20  Bruno Haible  <bruno@clisp.org>
24014
24015         * gnulib-tool: Recognize new option --assume-autoconf.
24016         (autoconf_minversion): New variable.
24017         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
24018
24019 2006-07-20  Bruno Haible  <bruno@clisp.org>
24020
24021         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
24022
24023 2006-07-19  Derek R. Price  <derek@ximbiot.com>
24024
24025         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
24026         Reindent and repaginate.
24027
24028 2006-07-19  Derek Price  <derek@ximbiot.com>
24029
24030         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
24031         Correct grammar.
24032
24033 2006-07-17  Bruno Haible  <bruno@clisp.org>
24034
24035         * modules/list: New file.
24036         * modules/array-list: New file.
24037         * modules/carray-list, modules/carray-list-tests: New files.
24038         * modules/linked-list, modules/linked-list-tests: New files.
24039         * modules/avltree-list, modules/avltree-list-tests: New files.
24040         * modules/rbtree-list, modules/rbtree-list-tests: New files.
24041         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
24042         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
24043         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
24044         * modules/oset: New file.
24045         * modules/array-oset: New file.
24046         * modules/avltree-oset, modules/avltree-oset-tests: New files.
24047         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
24048         * tests/test-carray_list.c: New file.
24049         * tests/test-linked_list.c: New file.
24050         * tests/test-avltree_list.c: New file.
24051         * tests/test-rbtree_list.c: New file.
24052         * tests/test-linkedhash_list.c: New file.
24053         * tests/test-avltreehash_list.c: New file.
24054         * tests/test-rbtreehash_list.c: New file.
24055         * tests/test-avltree_oset.c: New file.
24056         * tests/test-rbtree_oset.c: New file.
24057         * MODULES.html.sh (Container data structures): New section.
24058
24059 2006-07-17  Bruno Haible  <bruno@clisp.org>
24060
24061         * m4/gl_list.m4: New file.
24062
24063 2006-07-17  Bruno Haible  <bruno@clisp.org>
24064
24065         * lib/gl_list.h: New file.
24066         * lib/gl_list.c: New file.
24067         * lib/gl_array_list.h: New file.
24068         * lib/gl_array_list.c: New file.
24069         * lib/gl_carray_list.h: New file.
24070         * lib/gl_carray_list.c: New file.
24071         * lib/gl_linked_list.h: New file.
24072         * lib/gl_linked_list.c: New file.
24073         * lib/gl_anylinked_list1.h: New file.
24074         * lib/gl_anylinked_list2.h: New file.
24075         * lib/gl_avltree_list.h: New file.
24076         * lib/gl_avltree_list.c: New file.
24077         * lib/gl_anyavltree_list1.h: New file.
24078         * lib/gl_anyavltree_list2.h: New file.
24079         * lib/gl_rbtree_list.h: New file.
24080         * lib/gl_rbtree_list.c: New file.
24081         * lib/gl_anyrbtree_list1.h: New file.
24082         * lib/gl_anyrbtree_list2.h: New file.
24083         * lib/gl_anytree_list1.h: New file.
24084         * lib/gl_anytree_list2.h: New file.
24085         * lib/gl_linkedhash_list.h: New file.
24086         * lib/gl_linkedhash_list.c: New file.
24087         * lib/gl_anyhash_list1.h: New file.
24088         * lib/gl_anyhash_list2.h: New file.
24089         * lib/gl_avltreehash_list.h: New file.
24090         * lib/gl_avltreehash_list.c: New file.
24091         * lib/gl_rbtreehash_list.h: New file.
24092         * lib/gl_rbtreehash_list.c: New file.
24093         * lib/gl_anytreehash_list1.h: New file.
24094         * lib/gl_anytreehash_list2.h: New file.
24095
24096         * lib/gl_oset.h: New file.
24097         * lib/gl_oset.c: New file.
24098         * lib/gl_array_oset.h: New file.
24099         * lib/gl_array_oset.c: New file.
24100         * lib/gl_avltree_oset.h: New file.
24101         * lib/gl_avltree_oset.c: New file.
24102         * lib/gl_rbtree_oset.h: New file.
24103         * lib/gl_rbtree_oset.c: New file.
24104         * lib/gl_anytree_oset.h: New file.
24105
24106 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24107
24108         * m4/mkancesdirs.m4: New file.
24109         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
24110         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
24111         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
24112         it.
24113
24114 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24115
24116         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
24117         * lib/mkancesdirs.h: New files.
24118         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
24119         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
24120         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
24121         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
24122         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
24123         callers changed.  Revamp internals significantly, by not
24124         attempting to create directories that are temporarily more
24125         permissive than the final results.  Do not attempt to use
24126         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
24127         This removes some race conditions, fixes some bugs, and simplifies
24128         things.  Use new dirchownmod function to do owner and mode changes.
24129         * lib/mkdir-p.h: Likewise.
24130         * lib/modechange.c (octal_to_mode): New function.
24131         (struct mode_change): New member mentioned.
24132         (make_node_op_equals): New arg mentioned.  All callers changed.
24133         (mode_compile): Keep track of which mode bits the user has explicitly
24134         mentioned.
24135         (mode_adjust): New arg DIR, so that we implement the X op correctly.
24136         New arg PMODE_BITS, to keep track of which mode bits the user
24137         mentioned; it treats S_ISUID and S_ISGID speciall.
24138         All callers changed.
24139         * lib/modechange.h: Likewise.
24140
24141 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
24142
24143         * MODULES.html.sh: Add mkancestors.
24144         * modules/mkancesdirs: New module.
24145         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
24146         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
24147         The chdir-safer and afs files are now orphans; I'll remove them
24148         unless someone speaks up.
24149         Add lib/dirchownmod.c, lib/dirchownmod.h.
24150         (Depends-on): Remove alloca, chown, save-cwd, dirname.
24151         Add lchown, mkancesdirs.
24152         (Maintainer): Add self.
24153
24154 2006-07-15  Karl Berry  <karl@gnu.org>
24155
24156         * gnulib-tool: help message wording/arrangement.
24157
24158 2006-07-14  Simon Josefsson  <jas@extundo.com>
24159
24160         * doc/gnulib.texi (Libtool and Windows): New section.
24161
24162 2006-07-12  Simon Josefsson  <jas@extundo.com>
24163
24164         * modules/gendocs (License): Fix license, approved by Karl.
24165
24166 2006-07-12  Eric Blake  <ebb9@byu.net>
24167
24168         * MODULES.html.sh: Add gendocs.
24169
24170 2006-07-11  Eric Blake  <ebb9@byu.net>
24171
24172         * modules/fdl: New module, to install doc/fdl.texi.
24173         * MODULES.html.sh: Add new section for documentation modules.
24174         * gnulib-tool: Avoid space-tab.
24175         (--doc-base): New option, to manage files from doc.
24176
24177 2006-07-11  Eric Blake  <ebb9@byu.net>
24178
24179         * m4/absolute-header.m4: Fix comments to match recent change.
24180
24181 2006-07-11  Eric Blake  <ebb9@byu.net>
24182
24183         * gnulib-tool: List --doc-base before --tests-base.
24184
24185 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24186
24187         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24188
24189 2006-07-11  Bruno Haible  <bruno@clisp.org>
24190
24191         * README: Mention where to put documentation.
24192
24193 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24194
24195         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24196
24197 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24198
24199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24200         to stdint.m4.
24201
24202 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24205         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24206         "no/such/file/stdint.h" when there is no such file, so that
24207         the resulting C code can be parsed by dodgy compilers.
24208         Problems reported by Bob Proulx.
24209
24210 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24211
24212         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24213         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24214         macros into the GNU _D_EXACT_NAMLEN.
24215         * lib/savedir.c:  Likewise.
24216         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24217
24218 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24219         and Paul Eggert  <eggert@cs.ucla.edu>
24220
24221         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24222         * m4/savedir.m4:
24223         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24224         macros into the GNU _D_EXACT_NAMLEN.
24225
24226 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24227
24228         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24229         around the absolute name, to work around a problem with the HP-UX
24230         11.23 native C compiler, reported by Bob Proulx.
24231
24232 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         * doc/maintain.texi, make-stds.texi: Sync from
24235         <http://savannah.gnu.org/projects/gnustandards>.
24236
24237 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24238
24239         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24240
24241 2006-07-09  Jim Meyering  <jim@meyering.net>
24242
24243         * m4/glob.m4: Remove a doubled word in a comment.
24244
24245 2006-07-09  Jim Meyering  <jim@meyering.net>
24246
24247         * lib/argp-pv.c: Remove a doubled word in a comment.
24248         * lib/check-version.c (check_version): Likewise.
24249         * lib/javacomp.c (compile_java_class): Likewise.
24250
24251 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24252
24253         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24254         for the benefit of people using Autoconf 2.60.  If you want to
24255         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24256         (or m4/onceonly.m4, if pre-2.57) manually.
24257
24258 2006-07-08  Jim Meyering  <jim@meyering.net>
24259
24260         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24261         comment.
24262         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24263         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24264         comment.
24265
24266 2006-07-08  Jim Meyering  <jim@meyering.net>
24267
24268         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24269
24270 2006-07-07  Simon Josefsson  <jas@extundo.com>
24271
24272         * tests/test-crc.c: Change expected crc value, the test vector
24273         were probably computed using the old broken crc.c?
24274
24275 2006-07-06  Simon Josefsson  <jas@extundo.com>
24276
24277         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24278         now the canonical place for the M4 file).
24279
24280         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24281         from the sys_socket dependency now.
24282
24283         * modules/inet_pton (Files): Ditto.
24284
24285         * modules/inet_ntop (Files): Ditto.
24286
24287 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24288
24289         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24290         not gl_PREREQ_GETUSERSHELL.
24291
24292 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24293
24294         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24295         with only one argument, for Autoconf 2.60.
24296         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24297         expand to nothing, so add a shell command to avoid syntax error.
24298         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24299
24300 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24301
24302         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24303
24304 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24305
24306         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24307         no longer needed.  Check for isblank decl.
24308         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24309         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24310         of existence.
24311
24312 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24313
24314         * lib/getloadavg.c: Use __VMS, not VMS.
24315         * lib/getopt.c: Likewise.
24316         * lib/getpagesize.h: Likewise.
24317         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24318         and probably does not work.
24319
24320 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         * lib/.cppi-disable: Add wcwidth.
24323         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24324         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24325         (ISGRAPH): Remove.  All uses changed to isgraph.
24326         (FOLD) [!defined _LIBC]: Remove special case.
24327         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24328         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24329         HAVE_ISBLANK.
24330         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24331         case.
24332
24333 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24334
24335         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24336         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24337         brackets.  Other minor changes to suppress some compiler
24338         warnings.
24339
24340 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24341         and Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24344         of invoking obsolescent AC_HEADER_DIRENT macro.
24345         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24346         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24347         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24349         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24350         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24351         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24352         * m4/readdir.m4: Remove; no longer needed.
24353
24354 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24355         and Paul Eggert  <eggert@cs.ucla.edu>
24356
24357         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24358         Don't worry about this obsolete case any more.
24359         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24360         directories.
24361         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24362         worry about this obsolete case any more.
24363         * lib/fts.c: Likewise.
24364         * lib/getcwd.c: Likewise.
24365         * lib/glob.h: Likewise.
24366         * lib/savedir.c: Likewise.
24367
24368 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24369
24370         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24371         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24373         needed.
24374         All uses removed.
24375         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24376         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24377         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24378         needed.
24379         * m4/getdate.m4 (gl_GETDATE): Likewise.
24380         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24381         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24382         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24383         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24384         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24386         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24387         needed.
24388
24389 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * lib/memcasecmp.c: Include <limits.h>.
24392         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24393         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24394         Don't assume isdigit succeeds only on '0' through '9'.
24395
24396 2006-07-05  Eric Blake  <ebb9@byu.net>
24397
24398         * modules/getaddrinfo (Depends-on): Add snprintf.
24399
24400 2006-07-05  Eric Blake  <ebb9@byu.net>
24401
24402         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24403         to avoid 'header present but could not be compiled' on cygwin.
24404
24405 2006-07-05  Eric Blake  <ebb9@byu.net>
24406
24407         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24408         missing from netdb.h.
24409         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24410
24411 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24412
24413         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24414         no longer needed.
24415         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24416         * m4/getdate.m4 (gl_GETDATE): Likewise.
24417         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24418         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24419         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24420         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24421         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24422
24423 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24424
24425         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24426         All uses of is_space replaced by isspace.
24427         * lib/exit.h: Don't talk about STDC_HEADERS.
24428         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24429         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24430         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24431         replaced by isprint etc.
24432         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24433         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24434         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24435         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24436         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24437         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24438
24439 2006-07-05  Bruno Haible  <bruno@clisp.org>
24440
24441         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24442         the function exists, before testing against AIX.
24443         Reported by Martin Lambers <marlam@marlam.de>.
24444
24445 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24446
24447         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24448         From Mark D. Baushke.
24449
24450 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24451
24452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24453         to the absolute name, not just one, to bypass Sun C 5.8's
24454         "warning: #include of /usr/include/... may be non-portable".
24455
24456 2006-07-04  Eric Blake  <ebb9@byu.net>
24457
24458         * modules/dirname-tests: New test module.
24459         * tests/test-dirname.c: New file, replacing dirname.c
24460         TEST_DIRNAME section that was recently deleted.
24461
24462 2006-07-04  Bruno Haible  <bruno@clisp.org>
24463
24464         Assume ANSI C header files and <ctype.h> functions.
24465         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24466         (mbsnwidth): Use isprint, iscntrl instead.
24467
24468 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24469
24470         Merge from coreutils.
24471         * MODULES.html.sh: Add xstrtold.
24472         * modules/xstrtold: New file.
24473         * modules/cycle-check (Files): Add lib/same-inode.h.
24474         * modules/dirname (Files): Add m4/double-slash-root.m4.
24475         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24476         * modules/mkdir-p (Files): Add lib/same-inode.h.
24477         * modules/same (Files): Add lib/same-inode.h.
24478
24479 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24480
24481         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24482         This is to keep the terminology clean; POSIX talks about
24483         "absolute pathnames", not "full pathnames", but the GNU
24484         Coding Standards say to use "path" for something else;
24485         so use "absolute" to keep both sides happy.
24486         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24487         Set gl_absolute_header, not gl_full_header_path.
24488         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24489         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24490         All uses changed.
24491
24492         Merge from coreutils.
24493
24494         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24495
24496         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24497         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24498         want to require the building of c-strtod.o.
24499         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24500         needs -lm directly.
24501         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24502
24503         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24504
24505         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24506         --as-needed option if available.  Problem reported by Albert Chin in
24507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24508         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24509         cc merely issues a bunch of annoying warnings for --as-needed
24510         (this problem was reported by Bob Proulx).  Also, try linking with
24511         -lm to detect a bug in binutils 2.16 (this problem was reported
24512         by Ralf Wildenhues).
24513
24514         2006-06-18  Jim Meyering  <jim@meyering.net>
24515
24516         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24517         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24518         macro.
24519         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24520         also check for glibc-2.4's abort-inducing bug.
24521
24522         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24523         Low-probability clean-up should be to use rmdir to get rid of
24524         the just-created directory, not unlink.
24525
24526         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24527         configure fail, and request a bug report to inform us about it.
24528         Add a comment that, barring reports to the contrary, in 2007 we'll
24529         assume ftruncate is universally available.
24530
24531         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24532
24533         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24534
24535         2006-03-12  Jim Meyering  <jim@meyering.net>
24536
24537         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24538         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24539         * m4/same.m4 (gl_SAME): Likewise.
24540         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24541
24542         2006-03-11  Eric Blake  <ebb9@byu.net>
24543
24544         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24545         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24546         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24547         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24548
24549 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24550
24551         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24552         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24553         reported by Mark D. Baushke, one in
24554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24555
24556         Merge from coreutils.
24557
24558         * lib/.cppi-disable: Add stdint_.h.
24559         * lib/.cvsignore: Add stdint.h.
24560
24561         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24562
24563         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24564         both double and long double versions.
24565         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24566         * lib/xstrtold.c: New file.
24567         * lib/xstrtod.h (xstrtold): New decl.
24568
24569         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24570
24571         * lib/filemode.c (setst): Remove.
24572         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24573         (arguably) clearer, and the generated code is a bit smaller on my
24574         Debian GNU/Linux stable x86 host.
24575
24576         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24577
24578         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24579         Assume that filemode.h includes sys/types.h and sys/stat.h.
24580         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24581         (ftypelet): Reorder to put common cases first, for efficiency.
24582         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24583         to do 'M'.
24584         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24585         of 10, for compatibility with FreeBSD.  All callers changed.
24586         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24587         types that can't be deduced solely from st_mode.  First arg is now a
24588         const pointer.
24589         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24590         (strmode): Renamed from mode_string.
24591         (filemodestring): New decl.
24592         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24593         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24594         needed.
24595         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24596
24597         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24600         fsusage.h now does that.  Include fsusage.h first, to test interface.
24601         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24602         at most one method (the old code could have generated decls that
24603         didn't conform to C89, not that this was ever exercised).
24604         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24605
24606         2006-03-19  Jim Meyering  <jim@meyering.net>
24607
24608         Work even in a chroot where d_ino values for entries in "/"
24609         don't match the stat.st_ino values for the same names.
24610         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24611         number, iterate through all entries again, using lstat instead.
24612         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24613         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24614
24615         * lib/getcwd.c (__getcwd): Clarify a comment.
24616         Use memcpy in place of a call to strcpy.
24617
24618         2006-03-12  Jim Meyering  <jim@meyering.net>
24619
24620         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24621         matches that of the current directory (which we're about to chdir ".."
24622         out of), then save the dev-ino of the parent, instead.
24623
24624         * lib/same-inode.h (SAME_INODE): New file/macro.
24625         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24626         Include "same-inode.h", instead.
24627         * lib/same.c: Likewise.
24628         * lib/cycle-check.h: Include "same-inode.h".
24629         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24630         * lib/cycle-check.c (SAME_INODE): Remove definition.
24631         * lib/root-dev-ino.h: Include "same-inode.h".
24632
24633         2006-03-11  Eric Blake  <ebb9@byu.net>
24634
24635         * lib/same.c (same_name): s/base_name/last_component/
24636         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24637         * lib/filenamecat.c (file_name_concat): Likewise.
24638
24639         2006-03-11  Eric Blake  <ebb9@byu.net>,
24640                     Paul Eggert  <eggert@cs.ucla.edu>
24641
24642         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24643         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24644         drive prefix.
24645         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24646         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24647         (last_component): New method.
24648         * lib/dirname.c (dir_len): Determine when drive letters need a
24649         subsequent slash.  Preserve // when it is special.
24650         (dir_name): Don't append dot when drive letter is absolute.
24651         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24652         * lib/basename.c (base_name): New semantics - malloc the result.
24653         Preserve // when it is special.  Preserve relative files that look
24654         like drive letters.
24655         (base_len): Preserve // when it is special.
24656         (last_component): New method, similar to old base_name semantics.
24657         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24658         base_name.  Strip redundant slashes from ///.
24659
24660 2006-07-03  Jim Meyering  <jim@meyering.net>
24661
24662         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24663         macro is used before the first cycle_check call.
24664
24665 2006-07-03  Eric Blake  <ebb9@byu.net>
24666
24667         * modules/dirname (Depends-on): Add xstrndup.
24668
24669 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24670
24671         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24672         test cases, so that config.log is a bit easier to follow.
24673
24674 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24675
24676         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24677         both are 64 bits, since this seems to be the tradition, and this
24678         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24679         we ever run into a host that prefers long long to long in this
24680         case, we'll need another configure-time test.  Problem reported by
24681         Jim Meyering.
24682
24683 2006-07-02  Eric Blake  <ebb9@byu.net>
24684
24685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24686
24687 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24688
24689         * modules/inttypes (Depends-on): No longer depends on stdint.
24690         * modules/stdint (Description): Say more about assumptions.
24691         Say that the fast types might differ.  Say macros are used.
24692         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24693         (Makefile.am): Revise list of substituted symbols to match
24694         new stdint.m4.
24695         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24696         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24697         * tests/test-stdint.c (verify_same_types)
24698         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24699         the code conforms to C99/C89.
24700         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24701         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24702
24703 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24706         but fix a bug, by requiring at least 64 bits.
24707         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24708         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24709         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24710         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24711
24712         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24713         changes.  Make 2.59 a prerequisite.  Check and substitute for
24714         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24715         inttypes.h.  Do not use special include files; just use the
24716         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24717         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24718         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24719         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24720         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24721         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24722         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24723         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24724         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24725         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24726         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24727         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24728         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24729         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24730         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24731         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24732         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24733         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24734         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24735         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24736         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24737         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24738         not check for things that C99 does not require, e.g., int8_t.  If
24739         a test isn't needed unless <stdint.h> isn't working, and is
24740         unlikely to be needed for any other reason, then don't do it
24741         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24742         size_t, since we assume C89 freestanding at least.  Do not check
24743         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24744         the right thing even if the types are not defined.  Instead use:
24745         (gl_STDINT_TYPE_PROPERTIES): New macro.
24746         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24747         testing whether <sys/types.h> clashes, as Autoconf does this for
24748         us now.  All uses removed.
24749         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24750         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24751         (gl_CHECK_TYPE_SAME):
24752         Remove; no longer needed.
24753         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24754         exists, since we'll return 0 anyway in that case.
24755         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24756
24757 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24758
24759         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24760         possible collision with system files.
24761         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24762         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24763         WCHAR_MIN and WCHAR_MAX in this case.
24764         (<stddef.h>): Do not include; no longer needed.
24765         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24766         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24767         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24768         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24769         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24770         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24771         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24772         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24773         !defined(__c99))]: Include in this case too, since it's harmless
24774         now.
24775         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24776         dangerous to do so.
24777         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24778         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24779         (_STDINT_MIN, _STDINT_MAX): New macros.
24780         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24781         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24782         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24783         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24784         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24785         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24786         macros, not typedefs; this simplifies things quite a bit.
24787         Use long int for all types narrower than int64_t.
24788         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24789         Define in terms of long long int or int64_t or long int,
24790         not int64_t or int32_t.  This saves some compile-time testing.
24791         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24792         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24793         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24794         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24795         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24796         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24797         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24798         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24799         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24800         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24801         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24802         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24803         undef any previous version and define our own version, for
24804         simplicity and consistency with the new macros for types.
24805         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24806         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24807         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24808         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24809         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24810         @WINT_T_SUFFIX@ to keep things simple here.
24811         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24812         Simplify by assuming typical 8/16/32/64 host, since we're
24813         already doing that elsewhere anyway.
24814         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24815         and assume long long int is 64 bits if available.  This
24816         speeds up 'configure'.
24817
24818 2006-07-01  Eric Blake  <ebb9@byu.net>
24819
24820         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24821         Reported by Andreas Buening.
24822
24823 2006-07-01  Eric Blake  <ebb9@byu.net>
24824
24825         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24826
24827 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24828
24829         * lib/getaddrinfo.c: fixed typo
24830
24831 2006-06-29  Jim Meyering  <jim@meyering.net>
24832
24833         * modules/strftime (Maintainer): Add my name, since with the
24834         FPRINTFTIME changes strftime.c has forked from glibc.
24835
24836 2006-06-29  Eric Blake  <ebb9@byu.net>
24837
24838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24839
24840 2006-06-29  Eric Blake  <ebb9@byu.net>
24841
24842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24843
24844 2006-06-29  Eric Blake  <ebb9@byu.net>
24845
24846         * lib/stat_.h: New file.
24847
24848 2006-06-29  Eric Blake  <ebb9@byu.net>
24849
24850         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24851         unused static function.
24852
24853 2006-06-29  Eric Blake  <ebb9@byu.net>
24854
24855         * doc/functions.texi (Function Portability): Document missing lstat
24856         on mingw.
24857
24858 2006-06-29  Eric Blake  <ebb9@byu.net>
24859
24860         * MODULES.html.sh: Add sys_stat.
24861         * modules/sys_stat: New module.
24862         * modules/mkstemp (Depends-on): Add sys_stat.
24863
24864 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24865
24866         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24867
24868 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24869
24870         * m4/c-bs-a.m4: Removed.
24871
24872 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24873
24874         * lib/strftime.c: Assume strftime() exists.
24875
24876 2006-06-29  Derek Price  <derek@ximbiot.com>
24877
24878         * modules/c-bs-a: Removed - \a is C89.
24879         * MODULES.html.sh: Remove c-bs-a.
24880
24881 2006-06-29  Bruno Haible  <bruno@clisp.org>
24882
24883         * modules/wcwidth (License): Change to LGPL.
24884
24885 2006-06-28  Simon Josefsson  <jas@extundo.com>
24886
24887         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24888         on _WIN32.
24889
24890         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24891         getnameinfo.
24892
24893 2006-06-28  Simon Josefsson  <jas@extundo.com>
24894
24895         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24896
24897 2006-06-28  Simon Josefsson  <jas@extundo.com>
24898
24899         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24900         functions there.  It will succeed on Windows XP, but on Windows
24901         2000 and (presumably) earlier, it will fail, and use the internal
24902         re-implementation.
24903         (use_win32_p): New function.
24904         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24905         Support AI_NUMERICSERV to disable getservbyname.
24906         (getnameinfo): New function, only supports
24907         NI_NUMERICHOST|NI_NUMERICSERV for now.
24908
24909         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24910         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24911         getnameinfo.
24912
24913 2006-06-28  Eric Blake  <ebb9@byu.net>
24914
24915         * modules/wcwidth: New file.
24916         * modules/mbchar (Depends-on): Add wcwidth.
24917         * modules/mbswidth (Depends-on): Add wcwidth.
24918         * MODULES.html.sh: Add wcwidth.
24919
24920 2006-06-28  Eric Blake  <ebb9@byu.net>
24921
24922         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24924
24925 2006-06-28  Eric Blake  <ebb9@byu.net>
24926
24927         * lib/xvasprintf.h: Fix comments.
24928
24929 2006-06-28  Eric Blake  <ebb9@byu.net>
24930
24931         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24932         * lib/mbswidth.c (wcwidth): Move from here...
24933         * lib/wcwidth.h: ...to this new file.
24934
24935 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24936
24937         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24938
24939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24940         it's obsolete.
24941         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24942
24943 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24944
24945         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24946         Autoconf 2.60 says this stuff was obsolete.
24947
24948 2006-06-28  Bruno Haible  <bruno@clisp.org>
24949
24950         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24951
24952 2006-06-28  Bruno Haible  <bruno@clisp.org>
24953
24954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24955         gt_TYPE_WCHAR_T.
24956
24957 2006-06-28  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24960         declaration for wcwidth.
24961         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24962
24963 2006-06-28  Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24966         (mkdir): Define using _mkdir.
24967
24968 2006-06-28  Bruno Haible  <bruno@clisp.org>
24969
24970         * lib/getaddrinfo.h: Fix POSIX URL.
24971         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24972         _WIN32.
24973         (use_win32_p): Make static.
24974         (getaddrinfo): Reject service name if it is empty or does not consist
24975         solely of decimal digits, or if its value is > 65535.
24976         (getnameinfo): Remove useless casts.
24977
24978 2006-06-27  Simon Josefsson  <jas@extundo.com>
24979
24980         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24981         Eggert and Martin Lambers.
24982
24983 2006-06-27  Simon Josefsson  <jas@extundo.com>
24984
24985         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24986         Eggert and Martin Lambers.
24987
24988 2006-06-27  Bruno Haible  <bruno@clisp.org>
24989
24990         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24991         result to 0, not to empty.
24992         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24993
24994 2006-06-27  Bruno Haible  <bruno@clisp.org>
24995
24996         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24997
24998 2006-06-26  Simon Josefsson  <jas@extundo.com>
24999
25000         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
25001         present.
25002
25003 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
25004
25005         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
25006         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
25007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
25008
25009 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
25010
25011         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
25012
25013 2006-06-26  Bruno Haible  <bruno@clisp.org>
25014
25015         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
25016
25017 2006-06-26  Bruno Haible  <bruno@clisp.org>
25018
25019         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
25020
25021 2006-06-26  Bruno Haible  <bruno@clisp.org>
25022
25023         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
25024         SGI C compiler in pre-C99 mode.
25025         Suggested by Mark D. Baushke and Larry Jones.
25026
25027 2006-06-26  Bruno Haible  <bruno@clisp.org>
25028
25029         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
25030         WCHAR_MAX.
25031         Reported by Mark D. Baushke and Larry Jones.
25032
25033 2006-06-26  Bruno Haible  <bruno@clisp.org>
25034
25035         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
25036         in pre-C99 mode.
25037         Suggested by Mark D. Baushke and Larry Jones.
25038
25039 2006-06-23  Simon Josefsson  <jas@extundo.com>
25040             Bruno Haible  <bruno@clisp.org>
25041
25042         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
25043         Emit mostlyclean-local rule.
25044         (func_emit_tests_Makefile_am): Likewise.
25045         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
25046
25047 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
25048
25049         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
25050
25051 2006-06-23  Bruno Haible  <bruno@clisp.org>
25052
25053         * tests/test-stdint.c: Update to match ISO C 99 Technical
25054         Corrigendum 1.
25055
25056 2006-06-23  Bruno Haible  <bruno@clisp.org>
25057
25058         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
25059
25060 2006-06-23  Bruno Haible  <bruno@clisp.org>
25061
25062         * lib/stdint_.h: Treat IRIX like OpenBSD.
25063
25064 2006-06-23  Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
25067         ISO C 99 Technical Corrigendum 1.
25068
25069 2006-06-22  Simon Josefsson  <jas@extundo.com>
25070
25071         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
25072         MinGW.
25073
25074 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25075
25076         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
25077         needed.  Some compiler complained about some of them.  Problem reported
25078         by Larry Jones in
25079         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
25080
25081 2006-06-21  Simon Josefsson  <jas@extundo.com>
25082
25083         * tests/test-getaddrinfo.c: New file.
25084
25085         * modules/getaddrinfo-tests: New file.
25086
25087         * MODULES.html.sh: Add inet_pton.
25088
25089         * modules/inet_pton: New file.
25090
25091 2006-06-21  Simon Josefsson  <jas@extundo.com>
25092
25093         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
25094         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
25095         of using the (limited) gnulib implementation on Windows XP.
25096
25097         * m4/inet_pton.m4: New file.
25098
25099 2006-06-21  Simon Josefsson  <jas@extundo.com>
25100
25101         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
25102         variable.
25103
25104         * lib/socket_.h: Don't define WINVER.
25105
25106         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
25107         slightly modified to work in gnulib.
25108
25109 2006-06-21  Simon Josefsson  <jas@extundo.com>
25110
25111         * doc/gnulib.texi (Windows sockets): Add.
25112
25113 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
25114
25115         * lib/read-file.c (fread_file): Start with buffer allocation of
25116         0 bytes rather than 1 byte; this simplifies the code.
25117         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
25118         code to free buffer and save/restore errno.
25119         (internal_read_file): Remove unused local.
25120
25121 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25122
25123         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
25124         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
25125         Problem reported by Denis Excoffier in
25126         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
25127
25128 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25129
25130         * modules/sys_socket, modules/socklen: Include sys/types since
25131         FreeBSD 4.x's sys/socket.h needs it.
25132
25133 2006-06-19  Simon Josefsson  <jas@extundo.com>
25134
25135         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
25136
25137 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
25138
25139         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
25140
25141 2006-06-19  Bruno Haible  <bruno@clisp.org>
25142
25143         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
25144         and FULL_PATH_INTTYPES_H in angle brackets.
25145         Reported by Mark D. Baushke <mdb@gnu.org>.
25146
25147 2006-06-17  Eric Blake  <ebb9@byu.net>
25148
25149         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
25150         errno.
25151
25152 2006-06-17  Bruno Haible  <bruno@clisp.org>
25153
25154         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25155         <sys/inttypes.h>.
25156
25157 2006-06-17  Bruno Haible  <bruno@clisp.org>
25158
25159         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25160         whether errno is declared. Assume <errno.h> declares errno.
25161
25162 2006-06-17  Bruno Haible  <bruno@clisp.org>
25163
25164         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25165
25166 2006-06-17  Bruno Haible  <bruno@clisp.org>
25167
25168         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25169         problem on Solaris 2.5.1.
25170
25171 2006-06-16  Eric Blake  <ebb9@byu.net>
25172
25173         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25174         * lib/unicodeio.c [!defined errno]: Likewise.
25175         * lib/strtol.c [!defined errno]: Likewise.
25176         * lib/strtod.c [!defined errno]: Likewise.
25177
25178 2006-06-15  Eric Blake  <ebb9@byu.net>
25179
25180         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25181
25182 2006-06-15  Eric Blake  <ebb9@byu.net>
25183
25184         * config/srclist.txt (ssize_t.m4): Lose sync.
25185
25186 2006-06-15  Bruno Haible  <bruno@clisp.org>
25187
25188         * modules/stdint (Files): Include m4/full-header-path.m4,
25189         m4/size_max.m4, m4/wchar_t.m4.
25190         (Makefile.am): Many more substitutions.
25191         * modules/stdint-tests: New file.
25192         * tests/test-stdint.c: New file.
25193
25194 2006-06-15  Bruno Haible  <bruno@clisp.org>
25195
25196         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25197         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25198         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25199         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25200         gl_CHECK_TYPE_SAME): New macros.
25201
25202 2006-06-15  Bruno Haible  <bruno@clisp.org>
25203
25204         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25205
25206 2006-06-15  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/stdint_.h: Rewritten to be fully auto-configured.
25209         Fixes bug on HP-UX/IA64.
25210
25211 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25212
25213         * lib/getdate.y (__attribute__): Don't define if already defined.
25214         Problem reported by Larry Jones.
25215         * lib/utimens.c (__attribute__): Likewise.
25216
25217 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25218
25219         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25220         reported by Andreas Schwab.
25221
25222 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25223             Bruno Haible  <bruno@clisp.org>
25224
25225         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25226         check for the declaration of strnlen and a run test that exposes the
25227         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25228         rpl_strndup.
25229
25230 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25231             Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25234
25235 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25236
25237         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25238         compile test, for Tru64 4.0D.
25239
25240 2006-05-28  Karl Berry  <karl@gnu.org>
25241
25242         * config/srclist.txt (printf-args.c): lose sync.
25243
25244 2006-05-26  Martin Lambers  <marlam@marlam.de>
25245
25246         * lib/getpass.c: Updates the test for the native W32 API, and adds
25247         missing includes, thus fixing compilation warnings.
25248
25249 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25250
25251         * lib/exclude.c (exclude_fnmatch): New function.
25252         (excluded_file_name): Call exclude_fnmatch.
25253         * lib/exclude.h (excluded_file_name): New prototype
25254
25255 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25256
25257         * lib/tempname.c (small_open, large_open): New macros.
25258         (__open, __open64) [!_LIBC]: Remove.
25259         (__gen_tempname): Use small_open and large_open instead of __open
25260         and __open64.  This fixes a portability bug on HP-UX 11.11i
25261         reported by Simon Wing-Tang in
25262         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25263
25264 2006-05-24  Bruno Haible  <bruno@clisp.org>
25265
25266         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25267         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25268         Reported by Thorsten Maerz <torte@netztorte.de> via
25269         Aaron Stone <aaron@serendipity.cx>.
25270
25271 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25272
25273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25274         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25275         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25276         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25277         not really conditional on the cache.
25278         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25279
25280 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25281
25282         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25283         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25284         (my_usleep): Don't mishandle maximum value.
25285
25286 2006-05-19  Jim Meyering  <jim@meyering.net>
25287
25288         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25289
25290 2006-05-17  Bruno Haible  <bruno@clisp.org>
25291
25292         Cygwin portability.
25293         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25294
25295 2006-05-17  Bruno Haible  <bruno@clisp.org>
25296
25297         * lib/stdint_.h: Fix recognition of Cygwin.
25298
25299 2006-05-15  Bruno Haible  <bruno@clisp.org>
25300
25301         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25302         on libtool patch by Ralf Wildenhues.
25303
25304 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25305
25306         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25307         test for C99 conformance; (bool) 0.5 is an integer constant
25308         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25309         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25310
25311 2006-05-11  Simon Josefsson  <jas@extundo.com>
25312
25313         * m4/xvasprintf.m4: Fix obvious typo.
25314
25315 2006-05-11  Jim Meyering  <jim@meyering.net>
25316
25317         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25318         James Lemley.
25319
25320 2006-05-10  Simon Josefsson  <jas@extundo.com>
25321
25322         * lib/md4.c: Typo fix, update copyright years.
25323         (K1, K2): Don't use L because it turn computations into 64-bit on
25324         64-bit platforms.
25325
25326 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25327
25328         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25329         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25330         unwanted sign propagation, e.g., on hosts with 64-bit int.
25331         There still are some problems with reeelly weird theoretical hosts
25332         (e.g., 33-bit int) but it's not worth worrying about now.
25333         * lib/sha1.c (rol): Likewise.
25334         (K1, K2, K3, K4): Remove unnecessary L suffix.
25335
25336 2006-05-10  Bruno Haible  <bruno@clisp.org>
25337
25338         * lib/des.c: Cast to avoid warnings.
25339
25340 2006-05-09  Bruno Haible  <bruno@clisp.org>
25341
25342         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25343         (Depends-on): Depend also on xsize, stdarg.
25344         (configure.ac): Add gl_XVASPRINTF.
25345
25346 2006-05-09  Bruno Haible  <bruno@clisp.org>
25347
25348         * m4/xvasprintf.m4: New file.
25349
25350 2006-05-09  Bruno Haible  <bruno@clisp.org>
25351
25352         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25353         (EOVERFLOW): Define fallback value.
25354         (xstrcat): New function.
25355         (xvasprintf): Recognize the special case of a string concatenation.
25356
25357 2006-05-08  Eric Blake  <ebb9@byu.net>
25358
25359         * gnulib-tool (func_version): Base copyright year on CVS date.
25360         (func_emit_copyright_notice): New function.
25361         (func_emit_lib_Makefile_am): Use it.
25362         (func_emit_tests_Makefile_am): Likewise.
25363         (func_import): Likewise.
25364
25365 2006-05-08  Bruno Haible  <bruno@clisp.org>
25366
25367         * modules/stdarg: New file.
25368         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25369
25370 2006-05-08  Bruno Haible  <bruno@clisp.org>
25371
25372         * m4/stdarg.m4: New file, from GNU gettext.
25373
25374 2006-05-08  Bruno Haible  <bruno@clisp.org>
25375
25376         * config/srclist.txt (build-aux/config.rpath): different from latest
25377         release.
25378
25379 2006-05-08  Bruno Haible  <bruno@clisp.org>
25380
25381         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25382
25383 2006-05-05  Jim Meyering  <jim@meyering.net>
25384
25385         * m4/warning.m4: New file, derived from bison's file by the same name.
25386
25387 2006-05-03  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/stdint_.h: Shorter URL.
25390         * lib/inttypes.h: Likewise.
25391
25392 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25393
25394         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25395
25396 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25397
25398         * lib/verify.h: Document the internals better.  Most of this change
25399         was written by Bruno Haible.
25400
25401 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25402
25403         * doc/verify.texi: New file, partly based on a proposal by
25404         Bruno Haible.
25405
25406 2006-05-02  Bruno Haible  <bruno@clisp.org>
25407
25408         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25409         test from here...
25410         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25411
25412 2006-04-29  Bruno Haible  <bruno@clisp.org>
25413
25414         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25415         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25416
25417 2006-04-29  Bruno Haible  <bruno@clisp.org>
25418
25419         * gnulib-tool: Make --update option actually work.
25420
25421 2006-04-29  Bruno Haible  <bruno@clisp.org>
25422
25423         * doc/gcd.texi: New file.
25424         * doc/gnulib.texi: Include it.
25425
25426 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25427
25428         * lib/getdate.y (get_date): When adding relative date, start with the
25429         initial time, not with the result of the first mktime call.
25430
25431 2006-04-25  Bruno Haible  <bruno@clisp.org>
25432
25433         * gnulib-tool (func_import): Output the include directives in three
25434         blocks, sorted separately.
25435         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25436
25437 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25438
25439         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25440         to define main with arguments, for C++.  Reported by Eric Blake.
25441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25442         Prefer 'int main ()' to 'int main (void)', for C++.
25443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25445         for 'main', for C99 and C++.
25446
25447 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25448
25449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25450         Don't assume that exit status -1 is valid.
25451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25452         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25453         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25454         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25455         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25456         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25457         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25458         functions can be used without declaring them, or that you can
25459         exit with status -1.
25460         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25461
25462 2006-04-24  Karl Berry  <karl@gnu.org>
25463
25464         * config/srclist.txt (longdouble.m4): sync lost.
25465
25466 2006-04-24  Eric Blake  <ebb9@byu.net>
25467
25468         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25469
25470 2006-04-24  Bruno Haible  <bruno@clisp.org>
25471
25472         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25473         poll() implementation in AIX.
25474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25475
25476 2006-04-24  Bruno Haible  <bruno@clisp.org>
25477
25478         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25479         assigned exactly once.
25480
25481 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25482             Bruno Haible  <bruno@clisp.org>
25483
25484         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25485         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25486         for AM_CPPFLAGS.
25487
25488 2006-04-23  Bruno Haible  <bruno@clisp.org>
25489
25490         * modules/copy-file: Depend on unistd.
25491         * modules/execute: Likewise.
25492         * modules/fatal-signal: Likewise.
25493         * modules/findprog: Likewise.
25494         * modules/mkdtemp : Likewise.
25495         * modules/pipe: Likewise.
25496         * modules/wait-process: Likewise.
25497
25498 2006-04-23  Bruno Haible  <bruno@clisp.org>
25499
25500         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25501         condition was already detected.
25502         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25503
25504 2006-04-23  Bruno Haible  <bruno@clisp.org>
25505
25506         * lib/copy-file.c: Include <unistd.h> unconditionally.
25507         * lib/execute.c: Likewise.
25508         * lib/fatal-signal.c: Likewise.
25509         * lib/findprog.c: Likewise.
25510         * lib/mkdtemp.c: Likewise.
25511         * lib/pipe.h: Likewise.
25512         * lib/pipe.c: Likewise.
25513         * lib/wait-process.h: Likewise.
25514
25515 2006-04-23  Bruno Haible  <bruno@clisp.org>
25516
25517         * gnulib-tool (func_usage): Fix --import description. Document
25518         --update.
25519         (func_import): Create temporary file in a temporary directory, if
25520         --dry-run is specified. Silence errors from 'grep' when there are no
25521         m4 files in $m4dir.
25522         (func_create_testdir): Silence errors from 'grep' when there are no
25523         m4 files in $m4dir.
25524         Reported by Karl Berry <karl@freefriends.org>.
25525
25526 2006-04-20  Bruno Haible  <bruno@clisp.org>
25527
25528         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25529         one argument, so that the code will be portable to Autoconf 2.60.
25530         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25531         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25532         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25533
25534 2006-04-19  Derek Price  <derek@ximbiot.com>
25535             Eric Blake  <ebb9@byu.net>
25536
25537         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25538         rather than "/full/path.h".  Update comment to match.  Shorten &
25539         generalize m4_translit call via AS_TR_CPP.
25540
25541 2006-04-19  Derek Price  <derek@ximbiot.com>
25542             Eric Blake  <ebb9@byu.net>
25543
25544         * lib/inttypes.h: Correct grammar in comment.
25545
25546 2006-04-18  Derek Price  <derek@ximbiot.com>
25547             Paul Eggert  <eggert@cs.ucla.edu>
25548
25549         * modules/inttypes: New file.
25550         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25551
25552 2006-04-18  Derek Price  <derek@ximbiot.com>
25553             Paul Eggert  <eggert@cs.ucla.edu>
25554
25555         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25556         New files.
25557
25558 2006-04-18  Derek Price  <derek@ximbiot.com>
25559             Paul Eggert  <eggert@cs.ucla.edu>
25560
25561         * lib/inttypes.h: New file.
25562         * lib/strtoimax.c: Assume <inttypes.h>.
25563
25564 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25565
25566         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25567         isn't mounted.  Problem reported by Kir Kolyshkin.
25568
25569 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25570
25571         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25572         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25573         Derek R. Price.
25574         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25575         implementation.
25576
25577 2006-04-12  Eric Blake  <ebb9@byu.net>
25578
25579         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25580         is now done automatically by the corresponding Autoconf macro.
25581
25582 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25583
25584         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25585         time_r.h.
25586
25587 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25588
25589         Merge regex changes from libc, removing some of our
25590         POSIX-conformance changes that were rejected and redoing them in a
25591         less-intrusive way.
25592
25593         * lib/regcomp.c (re_compile_internal, init_dfa):
25594         Length arg is now size_t, not Idx.  All uses changed.
25595         (peek_token): Forward decl now says internal_function.
25596         (__re_error_msgid, __re_error_msgid_idx):
25597         Now static rather than extern with attribute_hidden.
25598         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25599         For some reason libc prefers K&R style defns for external functions.
25600         (regerror) [!defined _LIBC]: Likewise.
25601         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25602         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25603         (build_range_exp, build_collating_symbol):
25604         Use K&R-style defn.
25605         (re_compile_fastmap): Use '\0' to memset, not 0.
25606         (utf8_sb_map): Make the calculations more obvious.
25607         (init_dfa, parse_bracket_exp, build_charclass_op):
25608         Call calloc and cast result, as glibc does.
25609         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25610         (build_range_exp, build_collating_symbol):
25611         Now internal functions.
25612
25613         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25614
25615         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25616         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25617         Don't depend on VMS; depend on __VMS instead, for POSIX
25618         namespace cleanness.
25619         (regoff_t): Define to ssize_t, not long int.
25620
25621         Remove the REG_ macros named below.  Instead, make the old names
25622         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25623         __USE_GNU_REGEX.
25624         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25625         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25626         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25627         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25628         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25629         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25630         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25631         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25632         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25633         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25634         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25635         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25636         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25637         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25638         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25639         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25640         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25641         (REG_NREGS):
25642         Remove.  All uses replaced by the old RE_* names.
25643         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25644         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25645         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25646         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25647         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25648         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25649         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25650         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25651         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25652         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25653         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25654         Don't bother having these macros be independent of each others'
25655         values, since they no longer exist in the POSIX name space.
25656
25657         Rename the following member names back to their old names,
25658         unless !__USE_GNU_REGEX.  All uses changed back.
25659         (buffer): Renamed from re_buffer.
25660         (allocated): Renamed from re_allocated.
25661         (used): Renamed from re_used.
25662         (syntax): Renamed from re_syntax.
25663         (fastmap): Renamed from re_fastmap.
25664         (translate): Renamed from re_translate.
25665         (can_be_null): Renamed from re_can_be_null.
25666         (regs_allocated): Renamed from re_regs_allocated.
25667         (fastmap_accurate): Renamed from re_fastmap_accurate.
25668         (no_sub): Renamed from re_no_sub.
25669         (not_bol): Renamed from re_not_bol.
25670         (not_eol): Renamed from re_not_eol.
25671         (newline_anchor): Renamed from re_newline_anchor.
25672         (num_regs): Renamed from rm_num_regs.
25673         (start): Renamed from rm_start.
25674         (end): Renamed from rm_end.
25675
25676         (free_state): Move up a bit.
25677
25678         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25679         #define to be empty.
25680         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25681         when that is what is intended.
25682         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25683         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25684         (MAX): New macro.
25685         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25686         All uses changed back to re_malloc, etc.  It's now the caller's
25687         responsibility to check for overflow; all callers changed.
25688         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25689         (re_x2nrealloc): Remove.
25690         (free_state): Remove decl.
25691
25692         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25693         (re_set_registers, re_exec):
25694         Use K&R-style defn.
25695
25696         2006-01-31  Roland McGrath  <roland@redhat.com>
25697
25698         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25699         Reported by Mike Frysinger <vapier@gentoo.org>.
25700
25701         2006-01-15  Andreas Jaeger  <aj@suse.de>
25702
25703         [BZ #1950]
25704         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25705         build_wcs_upper_buffer change.
25706         (build_wcs_upper_buffer): Change return type.
25707
25708         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25709
25710         * lib/regex_internal.h: Include <stdint.h> if available.
25711
25712         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25713
25714         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25715
25716         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25717
25718         * lib/regcomp.c: Adjust for changed secondary hash function.
25719
25720         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25721
25722         * lib/regex.h: Pretty printing.
25723         Clean up namespace a bit.
25724
25725         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25726
25727         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25728         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25729
25730         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25731                     Ulrich Drepper  <drepper@redhat.com>
25732
25733         [BZ #1302]
25734         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25735         changed.
25736         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25737
25738         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25739
25740         [BZ #281]
25741         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25742         * lib/regcomp.c: Remove unnecessary uses of
25743         unsigned RE_TRANSLATE_TYPE.
25744         * lib/regex_internal.h: Likewise.
25745         * lib/regex_internal.c: Likewise.
25746         * lib/regexec.c: Likewise.
25747         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25748
25749         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25750
25751         * lib/regexec.c (find_recover_state): Remove unnecessary
25752         initialization.
25753         (transit_state_bkref): Make DFA a const pointer.
25754         (get_subexp): Likewise.
25755         (check_arrival): Likewise.
25756         (update_cur_sifted_state): Likewise.
25757         (re_search_internal): Likewise.
25758         (prune_impossible_nodes): Likewise.
25759         (acquire_init_state_context): Likewise.
25760         (proceed_next_node): Likewise.
25761         (set_regs): Likewise.
25762         (free_fail_stack_return): Likewise.
25763         (check_arrival_expand_ecl): Mark DFA parameter as const.
25764         (check_arrival_expand_ecl_sub): Likewise.
25765         (check_subexp_limits): Likewise.
25766         (sub_epsilon_src_nodes):  Likewise.
25767         (add_epsilon_src_nodes):  Likewise.
25768         (merge_state_array): Likewise.
25769         (update_regs): Likewise.
25770         (build_trtable): Likewise.
25771         (sift_states_backward): Mark MCTX parameter as const.
25772         (build_sifted_states): Likewise.
25773         (update_cur_sifted_state): Likewise.
25774         (sift_states_mkref): Likewise.
25775         (check_arrival_expand_ecl): Mark eclosure as const.
25776         (check_dst_limits_calc_pos_1): Likewise.
25777         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25778         pointer.
25779
25780         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25781
25782         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25783         (transit_state_sb): Likewise.
25784         (transit_state_mb): Likewise.
25785         (sift_states_iter_mb): Likewise.
25786         (check_arrival_add_next_nodes): Likewise.
25787         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25788         [_LIBC] (re_search_2_stub): Use mempcpy.
25789
25790         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25791         mbrtowc for very simple UTF-8 case.
25792
25793         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25794         a pointer-to-const.
25795         (re_acquire_state_context): Likewise.
25796         * lib/regex_internal.h: Adjust prototypes.
25797
25798         * lib/regex.c: Prevent using C++ compilers.
25799
25800         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25801         (re_acquire_state_context): Likewise.
25802
25803 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25804
25805         * modules/regex (Depends-on): Add ssize_t.
25806
25807 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25808
25809         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25810         translation table.
25811
25812 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25813
25814         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25815
25816 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25817             Bruno Haible  <bruno@clisp.org>
25818
25819         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25820         <sys/types.h> and <inttypes.h>.
25821
25822 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25823
25824         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25825         `__error_t_defined', so argp.h will not typedef the former.
25826
25827 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25828
25829         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25830         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25831         glibc names.  Even if glibc is changed to conform to POSIX, the
25832         traditional names will be available anyway, since regex depends on
25833         the extensions module.  Also, fix a longstanding typo in the
25834         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25835         reported by Emanuele Giaquinta.  Also, change sense of cached
25836         variable, so that the message makes sense.
25837
25838 2006-03-24  Simon Josefsson  <jas@extundo.com>
25839
25840         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25841         including some doc fixes.
25842         (base64_encode_alloc): Fix +1 bug on allocation failures.
25843
25844 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25845
25846         * lib/base64.c (base64_encode): Do not read past end of array with
25847         unsanitized input on systems with CHAR_BIT > 8.
25848
25849 2006-03-24  Eric Blake  <ebb9@byu.net>
25850
25851         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25852
25853 2006-03-22  Karl Berry  <karl@gnu.org>
25854
25855         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25856         * config/srclistvars.sh (COREUTILS): new var.
25857
25858 2006-03-17  Jim Meyering  <jim@meyering.net>
25859
25860         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25861         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25862
25863 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25864
25865         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25866         no longer needs it.  Instead, check that regoff_t is as least
25867         as wide as ptrdiff_t.
25868
25869         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25870         so that our regex.h stays compatible with the installed regex.
25871         This is helpful for installers who configure --without-included-regex.
25872         Problem reported by Emanuele Giaquinta.
25873
25874 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25877         Typedef to long int, not to off_, as POSIX will likely change
25878         in that direction.
25879
25880 2006-03-15  Eric Blake  <ebb9@byu.net>
25881
25882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25883
25884 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25885
25886         * lib/argp-help.c (validate_uparams): Fix typo
25887         * lib/argp-parse.c (argp_default_options): Consistently begin help
25888         messages with a lowercase letter.
25889
25890 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25893         overrun buffers and shouldn't be used (much as gets shouldn't be
25894         used).
25895         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25896
25897 2006-03-08  Simon Josefsson  <jas@extundo.com>
25898
25899         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25900         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25901
25902 2006-03-08  Simon Josefsson  <jas@extundo.com>
25903
25904         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25905         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25906
25907 2006-03-08  Simon Josefsson  <jas@extundo.com>
25908
25909         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25910         signal that configure disabled the device.
25911
25912 2006-03-08  Simon Josefsson  <jas@extundo.com>
25913
25914         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25915         languages.
25916
25917 2006-03-07  Simon Josefsson  <jas@extundo.com>
25918
25919         * modules/getopt (Depends-on): Add unistd.
25920
25921         * modules/unistd: New file.
25922
25923 2006-03-07  Simon Josefsson  <jas@extundo.com>
25924
25925         * modules/gc-random: New file.
25926
25927 2006-03-07  Simon Josefsson  <jas@extundo.com>
25928
25929         * m4/unistd_h.m4: New file.
25930
25931 2006-03-07  Simon Josefsson  <jas@extundo.com>
25932
25933         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25934         test to be side-effect free by storing the result in the cache
25935         variable gl_cv_lib_readline, and moving the assignment of
25936         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25937         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25938
25939 2006-03-07  Simon Josefsson  <jas@extundo.com>
25940
25941         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25942         error on missing devices (the functions will return an error).
25943
25944         * m4/gc.m4: Move random stuff to gc-random.m4
25945
25946 2006-03-07  Simon Josefsson  <jas@extundo.com>
25947
25948         * lib/unistd_.h: New file.
25949
25950 2006-03-07  Simon Josefsson  <jas@extundo.com>
25951
25952         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25953
25954 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25955
25956         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25957         Problem reported by Juan Manuel Guerrero.
25958
25959 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25960
25961         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25962         the unistd module.
25963         * lib/getlogin_r.c: Likewise.
25964         * lib/getlogin_r.h: Likewise.
25965         * lib/glob.c: Likewise.
25966         * lib/pagealign_alloc.c: Likewise.
25967         * lib/unistd_.h: Remove; no longer needed.
25968
25969 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25970
25971         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25972         Add unistd.
25973         * modules/c-stack (Depends-on): Add unistd.
25974         * modules/getlogin_r: Likewise.
25975         * modules/glob: Likewise.
25976         * modules/pagealign_alloc: Likewise.
25977         * modules/unistd (Files): Remove lib/unistd_.h.
25978         (EXTRA_DIST): Remove.
25979         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25980         need unistd_.h.
25981         (MOSTLYCLEANFILES): Remove unistd.h-t.
25982
25983 2006-03-03  Simon Josefsson  <jas@extundo.com>
25984
25985         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25986
25987 2006-03-03  Simon Josefsson  <jas@extundo.com>
25988
25989         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25990         libidn and bison.
25991
25992 2006-03-03  Simon Josefsson  <jas@extundo.com>
25993
25994         * build-aux/maint.mk: Add indent target.
25995
25996 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25997
25998         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25999         our replacement poll.h in any case, to avoid a differing
26000         declaration from a system header.  Seen on AIX.
26001
26002 2006-03-01  Simon Josefsson  <jas@extundo.com>
26003
26004         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
26005         <kasal@ucw.cz>.
26006
26007 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26008
26009         * modules/gettime (Depends-on): Add extensions module.
26010         * modules/nanosleep (Depends-on): Likewise.
26011         * modules/settime (Depends-on): Likewise.
26012
26013 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26014
26015         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
26016         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
26017         pedantically.
26018         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26019         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
26020
26021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
26022         not "==".  Reported by Ralf Wildenhues.
26023
26024 2006-03-01  Karl Berry  <karl@gnu.org>
26025
26026         * doc/Copyright/request-*: new files, synced from gnuorg.
26027
26028 2006-03-01  Karl Berry  <karl@gnu.org>
26029
26030         * config/srclist.txt (Copyright/*): new entries.
26031
26032 2006-02-28  Simon Josefsson  <jas@extundo.com>
26033
26034         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
26035
26036 2006-02-27  Simon Josefsson  <jas@extundo.com>
26037
26038         * lib/base64.h: Indent #define's.  From Jim Meyering
26039         <jim@meyering.net>.
26040
26041 2006-02-27  Jim Meyering  <jim@meyering.net>
26042
26043         Revert the change of 2006-02-24, so these files can continue
26044         to be sync'd from gettext.
26045         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
26046         of `config.h'.
26047
26048 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26049
26050         * modules/intprops: New file.
26051         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
26052         Add intprops.
26053         * modules/getloadavg (Files): Remove lib/intprops.h.
26054         (Depends-on): Add intprops.
26055         * modules/human: Likewise.
26056         * modules/inttostr: Likewise.
26057         * modules/openat: Likewise.
26058         * modules/sig2str: Likewise.
26059         * modules/userspec: Likewise.
26060         * modules/utimecmp: Likewise.
26061         * modules/xnanosleep: Likewise.
26062         * modules/xstrtol: Likewise.
26063
26064 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
26065
26066         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
26067         * modules/lock-tests (TESTS): Use $(EXEEXT).
26068         * modules/tls-tests: Likewise.
26069         * modules/argp-tests: Likewise.
26070         (check_PROGRAMS): New var, replacing...
26071         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
26072
26073 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26074
26075         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
26076         `config.h'.
26077
26078 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26079
26080         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
26081
26082 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26083
26084         Sync from coreutils.
26085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
26086         gl_CHDIR_SAFER.
26087
26088 2006-02-22  Jim Meyering  <jim@meyering.net>
26089
26090         Sync from coreutils.
26091         * m4/chdir-safer.m4: New file.
26092
26093 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
26096         AT_FDCWD exceeds INT_MAX.
26097         * lib/openat.h (AT_FDCWD): Likewise.
26098
26099 2006-02-17  Eric Blake  <address@hidden>
26100
26101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
26102
26103 2006-02-16  Simon Josefsson  <jas@extundo.com>
26104
26105         * modules/getaddrinfo (Depends-on): Add sys_socket.
26106
26107 2006-02-15  Simon Josefsson  <jas@extundo.com>
26108
26109         * build-aux/maint.mk: Add dsyntax-check rule.
26110
26111 2006-02-15  Eric Blake  <ebb9@byu.net>
26112
26113         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
26114         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
26115         'present but cannot compile' warnings on cygwin.
26116         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
26117         use ws2tcpip.h if sys/socket.h works.
26118         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
26119         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
26120
26121 2006-02-14  Simon Josefsson  <jas@extundo.com>
26122
26123         * modules/maintainer-makefile (Files): Rename.
26124
26125         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
26126         and (the local) Makefile.cfg to maint-cfg.mk.
26127
26128         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
26129         to the latter.
26130
26131         * modules/maintainer-makefile: New module.
26132
26133         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
26134         severaly stripped to make it possible to build it up from scratch
26135         with reliable tests.
26136
26137         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
26138         fixes to permit overriding the default actions when configure and
26139         makefile are not available.
26140
26141 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26142
26143         Sync from coreutils.
26144         * modules/lstat (Depends-on): Don't depend on xalloc.
26145         (License): Change from GPL to LGPL, since this is now simply a
26146         replacement for a libc function.
26147
26148 2006-02-14  Jim Meyering  <jim@meyering.net>
26149
26150         Sync from coreutils.
26151
26152         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
26153         failure on deficient systems, and simplify gnulib lgpl dependencies.
26154         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26155         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26156
26157         * lib/xalloc-die.c: Remove unused definition of N_.
26158
26159 2006-02-14  Jim Meyering  <jim@meyering.net>
26160
26161         Sync from coreutils.
26162         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26163         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26164         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26165         double-quote uses of that variable, to accommodate the rare case in
26166         which getmntent is available in none of the libraries checked.  This
26167         happens at least on FreeBSD 5.0.
26168
26169 2006-02-13  Simon Josefsson  <jas@extundo.com>
26170
26171         * gnulib-tool (Usage): Fix --import, from
26172         karl@freefriends.org (Karl Berry).
26173
26174 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26175
26176         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26177
26178 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26179
26180         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26181         "autoupdate" on 2005-12-12.
26182
26183 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         * modules/closeout (Depends-on): Remove atexit.
26186
26187 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26188
26189         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26190         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26191
26192 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26193
26194         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26195         __EXTENSIONS__ if this causes compilation to fail.  Problem
26196         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26197         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26198
26199 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26200
26201         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26202         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26204         All uses changed.
26205
26206 2006-01-26  Simon Josefsson  <jas@extundo.com>
26207
26208         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26209         prototype is visible on mingw32.
26210
26211         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26212         for mingw32.
26213
26214         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26215         mingw32).
26216
26217 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26218
26219         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26220         attempt to open for write; this always fails, at least on POSIX
26221         hosts.  This reinstates the 2006-01-09 change, which was
26222         inadvertently removed.
26223
26224 2006-01-26  Bruno Haible  <bruno@clisp.org>
26225
26226         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26227         Reported by Paul Eggert.
26228
26229 2006-01-26  Bruno Haible  <bruno@clisp.org>
26230             Paul Eggert  <eggert@cs.ucla.edu>
26231
26232         * lib/stdbool_.h (_Bool)
26233         [(! (defined __cplusplus || defined __BEOS__)
26234           && !defined __GNUC__
26235           && !(defined __HP_cc || defined __xlc__
26236                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26237                || defined __sgi))]:
26238         #define to signed char in these cases too; this simplifies
26239         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26240         etc., separately) and makes it more conservative.
26241
26242 2006-01-25  Simon Josefsson  <jas@extundo.com>
26243
26244         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26245         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26246         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26247
26248 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26249
26250         * lib/argp-namefrob.h: Bugfix. Remove stray #
26251
26252 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26253
26254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26255         so that we test the test.
26256         Check for yet another HP-UX cc bug involving *bool |= bool.
26257
26258 2006-01-25  Karl Berry  <karl@gnu.org>
26259
26260         * config/srclist.txt (vasnprintf.c): sync lost.
26261
26262 2006-01-25  Jim Meyering  <jim@meyering.net>
26263
26264         Sync from the stable (b5) branch of coreutils:
26265
26266         * lib/fts.c (fts_children): Don't let close() clobber errno from
26267         failed fchdir().
26268
26269         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26270         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26271         a dangling symlink.  That can also happen at least for ELOOP.
26272         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26273         FYI, this bug predates the inclusion of fts.c in coreutils.
26274
26275         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26276         in their own block, so pre-c99 compilers don't object.
26277
26278         Avoid the double-free (first in fts_read, second in fts_close) that
26279         would occur when an `active' directory is made inaccessible (e.g.,
26280         via chmod a-x) during a traversal.
26281         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26282         before returning.  Reproduce this failure by
26283         mkdir -p a/b; cd a; chmod a-x . b
26284         Reported by Stavros Passas.
26285
26286 2006-01-25  Jim Meyering  <jim@meyering.net>
26287
26288         * lib/fileblocks.c: Remove more useless parentheses.
26289         * lib/readutmp.h: Likewise.
26290
26291 2006-01-25  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26294         warnings.
26295         Reported by Paul Eggert.
26296
26297 2006-01-25  Bruno Haible  <bruno@clisp.org>
26298
26299         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26300         rid of a trap command. For Solaris sh.
26301         Reported by Mark D. Baushke <mdb@gnu.org>.
26302
26303 2006-01-24  Simon Josefsson  <jas@extundo.com>
26304
26305         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26306         Bruno.
26307
26308 2006-01-24  Karl Berry  <karl@gnu.org>
26309
26310         * config/srclist.txt (argp-namefrob.h): sync lost.
26311
26312 2006-01-24  Jim Meyering  <jim@meyering.net>
26313
26314         * modules/openat (Files): Add lib/intprops.h.
26315         From Mark D. Baushke.
26316
26317 2006-01-24  Jim Meyering  <jim@meyering.net>
26318
26319         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26320         Reported by Mark D. Baushke.
26321
26322 2006-01-24  Jim Meyering  <jim@meyering.net>
26323
26324         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26325
26326 2006-01-24  Bruno Haible  <bruno@clisp.org>
26327
26328         * modules/strnlen (Maintainer): Change from glibc to all.
26329
26330 2006-01-24  Bruno Haible  <bruno@clisp.org>
26331
26332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26333         Patch by Paul Eggert.
26334
26335 2006-01-24  Bruno Haible  <bruno@clisp.org>
26336
26337         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26338         already has it.
26339         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26340         2005-11-26.
26341
26342         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26343         'signed char' to avoid problems with the built-in _Bool type.
26344         Reported by Paul Eggert on 2005-11-26.
26345
26346 2006-01-24  Bruno Haible  <bruno@clisp.org>
26347
26348         * gnulib-tool (func_import): Avoid constructing complicated sed
26349         expressions inside backquote.
26350         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26351
26352 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26353
26354         These changes imported from libc.
26355         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26356         test and two separate function calls.
26357         * lib/strndup.c (__strndup): Add libc_hidden_def.
26358
26359 2006-01-23  Simon Josefsson  <jas@extundo.com>
26360
26361         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26362         Remove the test_*_SOURCES variable: automake infers it by default.
26363         * modules/tls-tests: Likewise.
26364
26365 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26366
26367         Work around porting bugs reported by Dieter in
26368         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26369         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26370         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26371         Include "getopt.h" first, to check interface.
26372         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26373         !HAVE_DECL_GETENV.
26374         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26375         (__strndup): Revert to K&R-style function dfns, the glibc style.
26376         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26377         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26378         Include strnlen.h first, to get prototype properly.
26379         (strnlen): Renamed from __strnlen.
26380         Remove weak alias.
26381
26382 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26383
26384         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26385
26386 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26387
26388         * config/srclist.txt: Adjust to reflect glibc reorganization.
26389         This affects only comments.
26390
26391 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26392
26393          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26394          Reported by Bruce Korb <bkorb@gnu.org>.
26395
26396 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26397
26398         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26399         to pacify gcc -Wswitch-default.
26400
26401 2006-01-22  Bruno Haible  <bruno@clisp.org>
26402
26403         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26404         temporary buffer for sprintf, take into account the precision also
26405         for 'd', 'i', 'u', 'o', 'x', 'X'.
26406
26407 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26408
26409         * modules/argp-tests: New module
26410         * tests/test-argp.c: New file
26411         * tests/test-argp-2.sh: New file
26412
26413 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26414
26415         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26416         (__argp_base_name): Removed
26417         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26418         typo.
26419         (__argp_base_name): Provide macro definition or extern declaration
26420         depending on the configuration
26421
26422 2006-01-20  Simon Josefsson  <jas@extundo.com>
26423
26424         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26425
26426 2006-01-20  Simon Josefsson  <jas@extundo.com>
26427
26428         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26429
26430 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26431
26432         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26433         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26434         Suggested by Bruno Haible.
26435
26436 2006-01-20  Karl Berry  <karl@gnu.org>
26437
26438         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26439         until changes propagate, I guess.
26440
26441 2006-01-19  Simon Josefsson  <jas@extundo.com>
26442
26443         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26444
26445 2006-01-19  Simon Josefsson  <jas@extundo.com>
26446
26447         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26448
26449 2006-01-19  Simon Josefsson  <jas@extundo.com>
26450
26451         * gnulib-tool: Set check_PROGRAMS.
26452
26453         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26454         modules/des-tests, modules/gc-arcfour-tests,
26455         modules/gc-arctwo-tests, modules/gc-des-tests,
26456         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26457         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26458         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26459         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26460         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26461         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26462         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26463         test_*_SOURCES.
26464
26465 2006-01-18  Simon Josefsson  <jas@extundo.com>
26466
26467         * modules/socklen (Depends-on): Depend on sys_socket.
26468
26469 2006-01-18  Simon Josefsson  <jas@extundo.com>
26470
26471         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26472         modules/des-tests, modules/gc-arcfour-tests,
26473         modules/gc-arctwo-tests, modules/gc-des-tests,
26474         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26475         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26476         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26477         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26478         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26479         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26480         $(EXEEXT) to automake TESTS variable, for mingw32.
26481
26482 2006-01-17  Simon Josefsson  <jas@extundo.com>
26483
26484         * modules/socklen (Include): Need sys/socket.h.
26485
26486 2006-01-17  Bruno Haible  <bruno@clisp.org>
26487
26488         * modules/ssize_t (Include): Add <sys/types.h>.
26489
26490 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26491
26492         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26493         it's not portable and it doesn't work with cross-compiles.
26494         Problem reported by Bruno Haible.  Fix missing-$ typo in
26495         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26496         -zignore from being used with Sun's C compiler.
26497
26498 2006-01-12  Simon Josefsson  <jas@extundo.com>
26499
26500         * lib/base64.c: Fix warning, reported by Bruno Haible
26501         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26502
26503 2006-01-12  Bruno Haible  <bruno@clisp.org>
26504
26505         * modules/ldd: New file.
26506         * build-aux/ldd.sh.in: New file.
26507         * MODULES.html.sh (Support for building libraries and executables): Add
26508         ldd.
26509
26510 2006-01-12  Bruno Haible  <bruno@clisp.org>
26511
26512         * m4/ldd.m4: New file.
26513
26514 2006-01-12  Bruno Haible  <bruno@clisp.org>
26515
26516         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26517         endless loop while replacing $auxdir with build-aux.
26518
26519 2006-01-11  Simon Josefsson  <jas@extundo.com>
26520
26521         * lib/stdint_.h (SIZE_MAX): Add missing (.
26522
26523 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26524
26525         Sync from coreutils.
26526         * lib/md5.c: Fix commentary typos.
26527         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26528         * lib/md5.h (__attribute__): Remove; unused.
26529         * lib/sha1.c: Fix commentary to match md5 better.
26530         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26531         so that we don't need to worry about alignment.  All uses changed.
26532         This merges the 2005-10-28 md5 change into sha1.
26533
26534 2006-01-11  Jim Meyering  <jim@meyering.net>
26535
26536         Sync from coreutils.
26537         * lib/md5.c (OP): Fix spacing.
26538
26539 2006-01-11  Bruno Haible  <bruno@clisp.org>
26540
26541         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26542         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26543         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26544
26545 2006-01-11  Bruno Haible  <bruno@clisp.org>
26546
26547         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26548         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26549         the "early" section as well.
26550
26551 2006-01-11  Bruno Haible  <bruno@clisp.org>
26552
26553         Avoid "ar: no archive members specified" error on MacOS X.
26554         * gnulib-tool (func_modules_add_dummy): New function.
26555         (func_import, func_create_testdir): Invoke it.
26556
26557 2006-01-11  Bruno Haible  <bruno@clisp.org>
26558
26559         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26560         with $auxdir in AC_CONFIG_FILES statements.
26561
26562 2006-01-11  Bruno Haible  <bruno@clisp.org>
26563
26564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26565         Initialize also noinst_HEADERS to empty.
26566
26567 2006-01-11  Bruno Haible  <bruno@clisp.org>
26568
26569         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26570         variables.
26571         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26572         autoreconf.
26573
26574 2006-01-11  Bruno Haible  <bruno@clisp.org>
26575
26576         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26577         overridable by the user.
26578         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26579
26580 2006-01-10  Simon Josefsson  <jas@extundo.com>
26581
26582         * modules/sys_socket: New file.
26583
26584 2006-01-10  Simon Josefsson  <jas@extundo.com>
26585
26586         * m4/sys_socket_h.m4: New file.
26587
26588 2006-01-10  Simon Josefsson  <jas@extundo.com>
26589
26590         * lib/socket_.h: New file.
26591
26592 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26593
26594         * modules/readutmp (Maintainer): Add myself.
26595
26596 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26597
26598         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26599         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26600         People who are still concerned with buggy memcmp implementations
26601         can invoke gl_FUNC_MEMCMP themselves.
26602
26603 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26604
26605         * lib/regex_internal.h (BITSET_WORD_BITS):
26606         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26607         preprocessor mishandles large unsigned values as if they were signed.
26608         Problem reported by Claudio Fontana in
26609         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26610
26611 2006-01-10  Jim Meyering  <jim@meyering.net>
26612
26613         Avoid the double-free (first in fts_read, second in fts_close) that
26614         would occur when an `active' directory is made inaccessible (e.g.,
26615         via chmod a-x) during a traversal.
26616         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26617         before returning.  Reproduce this failure by
26618         mkdir -p a/b; cd a; chmod a-x . b
26619         Reported by Stavros Passas.
26620
26621         Sync from coreutils.
26622         * lib/sha1.c: Tweak grammar in a comment.
26623
26624 2006-01-10  Jim Meyering  <jim@meyering.net>
26625
26626         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26627         Patch by Joerg Sonnenberger.
26628
26629 2006-01-10  Bruno Haible  <bruno@clisp.org>
26630
26631         * modules/readutmp: Depend on module free.
26632         * modules/strtok_r: Depend on module restrict.
26633
26634 2006-01-10  Bruno Haible  <bruno@clisp.org>
26635
26636         * modules/gettext (configure.ac): Add an invocation of
26637         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26638
26639 2006-01-10  Bruno Haible  <bruno@clisp.org>
26640
26641         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26642         Reported by Werner Lemberg <wl@gnu.org>.
26643
26644 2006-01-10  Bruno Haible  <bruno@clisp.org>
26645
26646         * lib/localcharset.c: Update from GNU gettext.
26647
26648 2006-01-10  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/argp.h (__const): Remove macro. Use const instead.
26651         * lib/argp-fmtstream.h (__const): Likewise.
26652         * lib/glob_.h (__const): Remove macro.
26653         * lib/glob-libc.h: Use const instead of __const.
26654
26655 2006-01-10  Bruno Haible  <bruno@clisp.org>
26656
26657         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26658         variable.
26659         Needed to avoid an automake error regarding the 'gettext' module.
26660
26661 2006-01-09  Simon Josefsson  <jas@extundo.com>
26662
26663         * modules/inet_ntop (Depends-on): Add restrict.
26664
26665 2006-01-09  Simon Josefsson  <jas@extundo.com>
26666
26667         * modules/gc-rijndael-tests (License): Put under LGPL.
26668
26669         * modules/gc-des-tests (License): Likewise.
26670
26671         * modules/gc-arcfour-tests (License): Likewise.
26672
26673         * modules/gc-arctwo-tests (License): Likewise.
26674
26675         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26676
26677         * modules/gc-hmac-sha1-tests (Files): Likewise.
26678
26679         * modules/gc-hmac-md5-tests (License): Likewise.
26680
26681         * modules/gc-sha1-tests (License): Likewise.
26682
26683         * modules/gc-md5-tests (License): Likewise.
26684
26685         * modules/gc-md4-tests (License): Likewise.
26686
26687         * modules/gc-md2-tests (License): Likewise.
26688
26689         * modules/gc-tests (License): Likewise.
26690
26691         * modules/des-tests (License): Likewise.
26692
26693         * modules/md4-tests (License): Likewise.
26694
26695         * modules/md2-tests (License): Likewise.
26696
26697 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         Sync from coreutils:
26700
26701         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26702         * modules/lib-ignore: New file.
26703         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26704         chdir-safer.m4, lchmod.m4.
26705         * modules/openat: Add mkdirat.c, openat-priv.h.
26706
26707 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         Sync from coreutils.
26710         * m4/lib-ignore.m4: New file.
26711         * m4/lchmod.m4: New file.
26712
26713 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26714
26715         Sync from coreutils.
26716         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26717         for write access: POSIX says that must fail.
26718         * lib/fts.c (diropen): Likewise.
26719         * lib/save-cwd.c (save_cwd): Likewise.
26720         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26721         well, for minor improvements on hosts that lack O_DIRECTORY.
26722         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26723         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26724         Fall back on chown if open failed with EACCES.
26725
26726         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26727         Report an error at compile-time if only a 1-second nominal clock
26728         resolution is found.
26729
26730         * lib/lchmod.h: New file.
26731         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26732         (make_dir_parents): Use lchown rather than chown, and
26733         lchmod rather than chmod.
26734
26735         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26736         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26737         "proc" reported by n0dalus.
26738
26739         * lib/mountlist.c: Include <limits.h>.
26740         (dev_from_mount_options)
26741         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26742         New function.  It no longer assumes "dev=" has the System V meaning
26743         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26744         (read_file_system_list)
26745         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26746         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26747         dev= in that case.
26748
26749         * lib/posixtm.h (PDS_PRE_2000): New macro.
26750         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26751         allow_century.  All usages changed.  Reject dates outside the range
26752         1969-1999 if PDS_PRE_2000 is used.
26753
26754 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26755
26756         Sync from coreutils.
26757         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26758         (Time of day items): Mention the possibility of leap seconds.
26759         Problem reported by Dr. David Alan Gilbert.
26760
26761 2006-01-09  Jim Meyering  <jim@meyering.net>
26762
26763         Sync from coreutils.
26764
26765         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26766
26767         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26768
26769         * lib/modechange.c (mode_compile): Reject an invalid mode string
26770         that starts with an octal digit.  From Andreas Gruenbacher.
26771
26772         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26773         and dup to open_safer and dup_safer, respectively.
26774         (openat_permissive): Fix typo in comment.
26775
26776         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26777         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26778         (_): Remove; no longer needed.
26779         (openat): Renamed from rpl_openat; no need for rpl_openat
26780         since openat.h renames openat for us.
26781         Replace most of the body with a call to openat_permissive,
26782         to avoid duplicate code.
26783         Port to (probably hypothetical) environments were mode_t is
26784         wider than int.
26785         (openat_permissive): Require mode arg, so that we can check
26786         types better.  Put it just after flags.  Change cwd failure
26787         indicator from pointer-to-bool to pointer-to-errno-value.
26788         All callers changed.
26789         Invoke openat_save_fail and/or openat_restore_fail if
26790         cwd_errno is null, so that openat can call us.
26791         (openat_permissive, fdopendir, fstatat, unlinkat):
26792         Simplify errno handling to avoid some duplicate code,
26793         as it's OK to set errno on success.
26794         * lib/openat.h: Revamp code so that function macros depend on
26795         __OPENAT_PREFIX only, not also on AT_FDCWD.
26796         (openat_ro): Remove.  Caller changed to use openat_permissive.
26797         (openat_permissive): Now a macro, if not a function.
26798         (openat_restore_fail, openat_save_fail): Now always functions,
26799         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26800
26801         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26802         and openat.c.
26803         * lib/mkdirat.c: Include openat-priv.h.
26804         Remove definitions of macros defined therein.
26805         * lib/openat.c: Likewise.
26806
26807         * lib/mkdirat.c (mkdirat): New file and function.
26808         * lib/openat.h (mkdirat): Declare.
26809
26810         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26811
26812         * lib/openat.h (openat_permissive): Declare.
26813         (openat_ro): Define.
26814
26815         * lib/openat.c (EXPECTED_ERRNO): New macro.
26816         (openat_permissive): New function -- used in remove.c rewrite.
26817         (all functions): Set errno just before returning, only if there
26818         was an actual failure.
26819         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26820
26821         Emulate openat-family functions using Linux's procfs, if possible.
26822         Idea and some code based on Ulrich Drepper's glibc changes.
26823
26824         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26825         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26826         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26827         before falling back on save_cwd and restore_cwd.
26828         (fdopendir, fstatat, unlinkat): Likewise.
26829
26830         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26831         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26832
26833         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26834         as second argument to va_arg.  Otherwise, some versions of gcc
26835         warn that `if this code is reached, the program will abort'.
26836
26837 2006-01-09  Jim Meyering  <jim@meyering.net>
26838
26839         Sync from coreutils.
26840         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26841         Require openat-priv.h.
26842
26843 2006-01-09  Bruno Haible  <bruno@clisp.org>
26844
26845         * modules/strnlen (Include): Use strnlen.h.
26846
26847 2006-01-09  Bruno Haible  <bruno@clisp.org>
26848
26849         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26850
26851 2006-01-09  Bruno Haible  <bruno@clisp.org>
26852
26853         * lib/sysexit_.h (EX_OK): New macro.
26854         Suggested by Martin Lambers <marlam@marlam.de>.
26855
26856 2006-01-09  Bruno Haible  <bruno@clisp.org>
26857
26858         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26859         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26860
26861 2006-01-09  Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26864         numbers.
26865
26866 2006-01-09  Bruno Haible  <bruno@clisp.org>
26867
26868         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26869         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26870         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26871         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26872
26873 2006-01-09  Bruno Haible  <bruno@clisp.org>
26874
26875         * build-aux/javacomp.sh.in: New file, moved from lib/.
26876         * modules/javacomp-script (Files): Update.
26877         (configure.ac): Add AC_CONFIG_FILES invocation.
26878         (EXTRA_DIST): Remove variable.
26879
26880         * build-aux/javaexec.sh.in: New file, moved from lib/.
26881         * modules/javaexec (Files): Update.
26882         (configure.ac): Add AC_CONFIG_FILES invocation.
26883         (EXTRA_DIST): Remove javaexec.sh.in.
26884
26885         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26886         * modules/csharpcomp-script (Files): Update.
26887         (configure.ac): Add AC_CONFIG_FILES invocation.
26888         (EXTRA_DIST): Remove variable.
26889
26890         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26891         * modules/csharpexec (Files): Update.
26892         (configure.ac): Add AC_CONFIG_FILES invocation.
26893         (EXTRA_DIST): Remove csharpexec.sh.in.
26894
26895 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26896
26897         Sync from coreutils.
26898
26899         Add POSIX ACL support
26900         * lib/acl.h (copy_acl, set_acl): Add declarations.
26901         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26902         systems other than Linux.
26903         (chmod_or_fchmod): New function: use fchmod when possible,
26904         and chmod otherwise.
26905         (file_has_acl): Add a POSIX ACL implementation, with a
26906         Linux-specific subcase.
26907         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26908         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26909         acls are unsupported.
26910         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26911         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26912         are unsupported.
26913
26914 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26915
26916         Sync from coreutils.
26917         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26918
26919 2006-01-07  Bruno Haible  <bruno@clisp.org>
26920
26921         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26922         gl_EARLY.
26923
26924 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26927         Problem reported for Mingw by Mark Junker.
26928
26929 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26930
26931         * README: Gnulib normally doesn't generate a tarball.
26932
26933 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26934
26935         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26936         long int, not int, for nanosecond counts, so that people who are
26937         used to POSIX struct timespec won't be surprised.  Reported by Jim
26938         Meyering.
26939
26940 2005-12-28  Bruno Haible  <bruno@clisp.org>
26941
26942         * build-aux/config.rpath: Update from GNU gettext.
26943
26944 2005-12-16  Jim Meyering  <jim@meyering.net>
26945
26946         * modules/fprintftime: New module.
26947         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26948
26949 2005-12-16  Jim Meyering  <jim@meyering.net>
26950
26951         * m4/fprintftime.m4: New file.
26952
26953 2005-12-16  Jim Meyering  <jim@meyering.net>
26954
26955         * lib/fprintftime.c, lib/fprintftime.h: New files.
26956
26957 2005-12-15  Simon Josefsson  <jas@extundo.com>
26958
26959         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26960         new m4/socklen.m4.
26961
26962 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26963
26964         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26965         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26966
26967 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26968
26969         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26970         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26971         struct uparams is valid. Fall back to the default values if it is
26972         not.
26973
26974 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26975
26976         * modules/argp (Files): Add argp-pin.c
26977         (Depends-on): dirname
26978         (lib_SOURCES): Add argp-pin.c
26979
26980 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26981
26982         * m4/argp.m4:  Check if program_invocation_name and
26983         program_invocation_short_name are declared and define appropriate
26984         macros if they are not.
26985
26986 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26987
26988         * lib/argp-help.c (__argp_base_name): New function
26989         (__argp_short_program_name): Rewrite using __argp_base_name
26990         * lib/argp-namefrob.h: Define program_invocation_name and
26991         program_invocation_short_name if requested
26992         (__argp_base_name): Add prototype
26993         * lib/argp-parse.c (argp_def): Use gettext wrappers
26994         (argp_default_parser): Use __argp_base_name
26995         * lib/argp-pin.c: New file. Defines program_invocation_name and
26996         program_invocation_short_name on systems that lack them.
26997
26998 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26999
27000         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
27001         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27002         porting problem reported by Georg Schwarz in
27003         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27004
27005 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27006
27007         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
27008         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
27009         porting problem reported by Georg Schwarz in
27010         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
27011
27012 2005-12-05  Bruno Haible  <bruno@clisp.org>
27013
27014         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
27015         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
27016         Reported by Mark Junker <mjscod@gmx.de>.
27017
27018 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
27019
27020         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
27021         Use implementation from Albert Chin, with some
27022         comments/corrections by Stepan Kasal and myself.
27023
27024 2005-12-02  Bruno Haible  <bruno@clisp.org>
27025
27026         * gnulib-tool (func_import): Accept GPLed build tool modules when
27027         --lgpl is given.
27028         * modules/csharpcomp-script: New file.
27029         * modules/csharpcomp: Depend on it.
27030         * modules/javacomp-script: New file.
27031         * modules/javacomp: Depend on it.
27032         Suggested by Simon Josefsson.
27033
27034 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
27037         statement, to work around an HP-UX 10.20 compiler bug reported by
27038         Peter O'Gorman.
27039
27040 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27041
27042         * modules/savedir (Depends-on): Add openat.
27043
27044 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27045
27046         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
27047         (uintmax_t) [defined uintmax_t]: Do not declare.
27048         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
27049         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
27050         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
27051         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
27052         sake of portability to weird hosts that C allows (though we don't
27053         know of any practical examples).
27054
27055         * lib/savedir.h (fdsavedir): New decl.
27056         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
27057         contains most of the former guts of savedir.
27058         (savedir): Use savedirstream.
27059         Include "openat.h".
27060
27061 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27062
27063         * modules/obstack (Files): Add m4/ulonglong.m4.
27064         Problem reported by Davide Angelocola.
27065
27066 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27067
27068         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
27069         coreutils no longer futzes with rounding modes.
27070
27071 2005-11-14  Jim Meyering  <jim@meyering.net>
27072
27073         * lib/mkstemp-safer.c: Include <config.h>, required for possible
27074         replacement of mkstemp.
27075
27076 2005-11-10  Simon Josefsson  <jas@extundo.com>
27077
27078         * lib/readline.c: Remove EOL.
27079
27080 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27081
27082         * modules/gethrxtime (Depends-on): Add gettime.
27083
27084 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27085
27086         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
27087         or gettimeofday; no longer needed.
27088
27089 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27090
27091         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
27092         time business.
27093         (gethrxtime) [! (HAVE_NANOUPTIME
27094         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
27095         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
27096         our own approximation.
27097
27098 2005-11-08  Eric Blake  <ebb9@byu.net>
27099
27100         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27101
27102 2005-11-08  Eric Blake  <ebb9@byu.net>
27103
27104         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
27105
27106 2005-11-04  Bruno Haible  <bruno@clisp.org>
27107
27108         * gnulib-tool: Implement --update mode.
27109
27110 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27111
27112         Fix porting problem reported by Theodoros V. Kalamatianos.
27113         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
27114         Don't assume that futimes failing means we must fail.
27115
27116 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27117
27118         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
27119         variables to suggest the intended function of the PATH_MAX check.
27120
27121 2005-10-30  Kean Johnston  <jkj@sco.com>
27122
27123         Trivial changes to support SCO systems.
27124         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
27125         as PATH_MAX.
27126         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
27127         where __ptr is null when no I/O is pending.
27128
27129 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27130
27131         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
27132         leave errno alone.  Problem reported by Dmitry V. Levin.
27133
27134 2005-10-28  Simon Josefsson  <jas@extundo.com>
27135
27136         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
27137         Test more.
27138
27139         * tests/test-gc-md2.c, tests/test-md2.c: New files.
27140
27141         * modules/md2, modules/md2-tests: New files.
27142
27143 2005-10-28  Simon Josefsson  <jas@extundo.com>
27144
27145         * m4/inet_ntop.m4: More tests.
27146
27147         * m4/gc-md2.m4, md2.m4: New file.
27148
27149 2005-10-28  Simon Josefsson  <jas@extundo.com>
27150
27151         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
27152         "restrict" keywords, as per POSIX.  Protect the function
27153         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
27154         Don't use K&R prototypes.  Check the sprintf return values.
27155         Re-define EAFNOSUPPORT if not present.  Indent.
27156
27157         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27158         suggested by Bruno Haible <bruno@clisp.org>.
27159
27160         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27161
27162         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27163
27164         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27165         libgcrypt).
27166
27167         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27168
27169         * lib/md2.h, lib/md2.c: New files.
27170
27171 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27172
27173         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27174         errno alone.  Problem reported by Frederic Jolliton.
27175
27176 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         * modules/verify (License): Change from GPL to LGPL.  This is a
27179         tiny module and there are apparently near-equivalents that are
27180         under the BSD license.
27181
27182 2005-10-24  Simon Josefsson  <jas@extundo.com>
27183
27184         * modules/sha1: Relicense to LGPL.
27185
27186 2005-10-24  Simon Josefsson  <jas@extundo.com>
27187
27188         * lib/md4.h: Shrink buffer size, now that we changed the type.
27189
27190 2005-10-23  Simon Josefsson  <jas@extundo.com>
27191
27192         * gnulib-tool (func_import): Fix --tests-base.
27193
27194 2005-10-22  Simon Josefsson  <jas@extundo.com>
27195
27196         * modules/arcfour (Depends-on): Need stdint.
27197
27198 2005-10-22  Simon Josefsson  <jas@extundo.com>
27199
27200         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27201         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27202
27203 2005-10-22  Simon Josefsson  <jas@extundo.com>
27204
27205         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27206         suggested by Bruno Haible <bruno@clisp.org>.
27207
27208 2005-10-22  Simon Josefsson  <jas@extundo.com>
27209
27210         * lib/crc.h: Include stddef.h, for size_t.
27211
27212 2005-10-22  Simon Josefsson  <jas@extundo.com>
27213
27214         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27215         arcfour_context struct (simplify test vector testing in GNU
27216         Shishi).
27217
27218 2005-10-21  Simon Josefsson  <jas@extundo.com>
27219
27220         * modules/des, modules/des-tests: New files.
27221
27222         * modules/gc-des, modules/gc-des-tests: New files.
27223
27224         * tests/test-des.c, tests/test-gc-des.c: New file.
27225
27226 2005-10-21  Simon Josefsson  <jas@extundo.com>
27227
27228         * modules/arctwo, modules/arctwo-tests: New files.
27229
27230         * tests/test-arctwo.c: New file.
27231
27232         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27233
27234         * tests/test-gc-arctwo.c: New file.
27235
27236 2005-10-21  Simon Josefsson  <jas@extundo.com>
27237
27238         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27239         Bruno Haible <bruno@clisp.org>.
27240
27241         * m4/gc-des.m4: New file.
27242
27243 2005-10-21  Simon Josefsson  <jas@extundo.com>
27244
27245         * m4/arctwo.m4: New file.
27246
27247         * m4/gc-arctwo.m4: New file.
27248
27249 2005-10-21  Simon Josefsson  <jas@extundo.com>
27250
27251         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27252         block.
27253
27254 2005-10-21  Simon Josefsson  <jas@extundo.com>
27255
27256         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27257         <bruno@clisp.org>.
27258
27259         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27260
27261         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27262         Bruno Haible <bruno@clisp.org>.
27263
27264         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27265         <bruno@clisp.org>.
27266
27267 2005-10-21  Simon Josefsson  <jas@extundo.com>
27268
27269         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27270
27271 2005-10-21  Simon Josefsson  <jas@extundo.com>
27272
27273         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27274
27275 2005-10-21  Simon Josefsson  <jas@extundo.com>
27276
27277         * lib/des.h, lib/des.c: New files.
27278
27279         * lib/gc-gnulib.c: Support DES.c
27280
27281 2005-10-21  Simon Josefsson  <jas@extundo.com>
27282
27283         * lib/arctwo.h, lib/arctwo.c: New files.
27284
27285         * lib/gc-gnulib.c: Support ARCTWO.
27286
27287 2005-10-21  Simon Josefsson  <jas@extundo.com>
27288
27289         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27290         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27291
27292 2005-10-21  Simon Josefsson  <jas@extundo.com>
27293
27294         * gnulib-tool (func_import, func_create_testdir): Define automake
27295         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27296         Makefile.am snippet),
27297         suggested by Bruno Haible <bruno@clisp.org>.
27298
27299         * modules/gc (Makefile.am): Use it.
27300
27301 2005-10-21  Bruno Haible  <bruno@clisp.org>
27302
27303         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27304         patch.
27305
27306 2005-10-19  Simon Josefsson  <jas@extundo.com>
27307
27308         * tests/test-gc-rijndael.c: New file.
27309
27310         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27311
27312 2005-10-19  Simon Josefsson  <jas@extundo.com>
27313
27314         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27315         interface too.
27316
27317 2005-10-19  Simon Josefsson  <jas@extundo.com>
27318
27319         * tests/test-gc-arcfour.c: New file.
27320
27321         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27322
27323 2005-10-19  Simon Josefsson  <jas@extundo.com>
27324
27325         * modules/gc-md4, modules/gc-md4-tests: New file.
27326
27327         * tests/test-gc-md4.c: New file.
27328
27329 2005-10-19  Simon Josefsson  <jas@extundo.com>
27330
27331         * m4/gc-md4.m4: New file.
27332
27333 2005-10-19  Simon Josefsson  <jas@extundo.com>
27334
27335         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27336         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27337         <kasal@ucw.cz>.
27338
27339 2005-10-19  Simon Josefsson  <jas@extundo.com>
27340
27341         * m4/gc-arcfour.m4: New file.
27342
27343         * m4/gc-rijndael.m4: New file.
27344
27345 2005-10-19  Simon Josefsson  <jas@extundo.com>
27346
27347         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27348
27349 2005-10-19  Simon Josefsson  <jas@extundo.com>
27350
27351         * lib/gc-gnulib.c: Support ARCFOUR.
27352
27353 2005-10-19  Simon Josefsson  <jas@extundo.com>
27354
27355         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27356         support.
27357
27358         * lib/gc.h: Add ECB enum type.
27359
27360         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27361
27362 2005-10-18  Simon Josefsson  <jas@extundo.com>
27363
27364         * tests/test-md5.c: New file.
27365
27366         * modules/md5-tests: New file.
27367
27368 2005-10-18  Simon Josefsson  <jas@extundo.com>
27369
27370         * tests/test-md4.c: New file.
27371
27372         * modules/md4, modules/md4-tests: New files.
27373
27374 2005-10-18  Simon Josefsson  <jas@extundo.com>
27375
27376         * m4/md4.m4: New file.
27377
27378 2005-10-18  Simon Josefsson  <jas@extundo.com>
27379
27380         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27381
27382 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27383
27384         * gnulib-tool (func_create_testdir): Omit the second check whether
27385         BUILT_SOURCES in nonempty.
27386
27387 2005-10-17  Simon Josefsson  <jas@extundo.com>
27388
27389         * tests/test-rijndael.c: New file.
27390
27391 2005-10-17  Simon Josefsson  <jas@extundo.com>
27392
27393         * modules/sha1: Depend on stdint instead of md5.
27394
27395         * modules/md5: Depend on stdint, remove uint32_t.
27396
27397 2005-10-17  Simon Josefsson  <jas@extundo.com>
27398
27399         * modules/gc-sha1-tests: New file.
27400
27401         * tests/test-gc-sha1.c: New file.
27402
27403 2005-10-17  Simon Josefsson  <jas@extundo.com>
27404
27405         * m4/md5.m4: Remove call to uint32_t.m4.
27406
27407 2005-10-17  Simon Josefsson  <jas@extundo.com>
27408
27409         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27410
27411         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27412         md5.h.
27413
27414         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27415
27416         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27417
27418 2005-10-17  Simon Josefsson  <jas@extundo.com>
27419
27420         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27421
27422 2005-10-17  Simon Josefsson  <jas@extundo.com>
27423
27424         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27425
27426 2005-10-17  Simon Josefsson  <jas@extundo.com>
27427
27428         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27429
27430         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27431
27432 2005-10-17  Bruno Haible  <bruno@clisp.org>
27433
27434         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27435         that it can also be used in a test.
27436
27437 2005-10-16  Bruno Haible  <bruno@clisp.org>
27438
27439         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27440         TESTS_ENVIRONMENT, so that individual tests can augment it.
27441
27442         * gnulib-tool (func_create_testdir): Use an intermediate target for
27443         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27444         macros, like $(ALLOCA_H), which cannot be passed through the command
27445         line.
27446
27447 2005-10-15  Simon Josefsson  <jas@extundo.com>
27448
27449         * modules/rijndael-tests: New file.
27450
27451         * modules/rijndael: New file.
27452
27453 2005-10-15  Simon Josefsson  <jas@extundo.com>
27454
27455         * m4/rijndael.m4: New file.
27456
27457 2005-10-15  Simon Josefsson  <jas@extundo.com>
27458
27459         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27460
27461         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27462
27463 2005-10-14  Simon Josefsson  <jas@extundo.com>
27464
27465         * tests/test-arcfour.c: New file.
27466
27467         * modules/arcfour, modules/arcfour-tests: New files.
27468
27469 2005-10-14  Simon Josefsson  <jas@extundo.com>
27470
27471         * m4/arcfour.m4: New file.
27472
27473 2005-10-14  Simon Josefsson  <jas@extundo.com>
27474
27475         * lib/arcfour.h, lib/arcfour.c: New files.
27476
27477 2005-10-14  Roland McGrath  <roland@redhat.com>
27478
27479         Import from libc.  [BZ #1331]
27480         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27481         macro argument.
27482         Reported by Matej Vela <vela@debian.org>.
27483
27484 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27485
27486         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27487         include <wchar.h>; no longer needed.
27488
27489 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27490
27491         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27492
27493 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27494         and  Ulrich Drepper  <drepper@redhat.com>
27495
27496         Import from libc.
27497         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27498         instead of inline stream orientation test and two separate
27499         function calls.  Pay no attention to USE_IN_LIBIO.
27500
27501 2005-10-13  Simon Josefsson  <jas@extundo.com>
27502
27503         * modules/gc-hmac-md5-tests: New file.
27504
27505         * tests/test-gc-hmac-sha1.c: New file.
27506
27507         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27508
27509         * modules/gc-hmac-md5-tests: New file.
27510
27511         * tests/test-gc-md5.c: New file.
27512
27513         * modules/gc-md5-tests: New file.
27514
27515 2005-10-13  Simon Josefsson  <jas@extundo.com>
27516
27517         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27518         Move memory allocation outside of loop.
27519
27520 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27523         intermediate directory is in a read-only file system.  Problem
27524         reported by Eric Blake.
27525
27526 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27527
27528         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27529
27530 2005-10-12  Simon Josefsson  <jas@extundo.com>
27531
27532         * tests/test-hmac-sha1.c: New file.
27533
27534         * modules/hmac-sha1-tests: New file.
27535
27536         * modules/hmac-sha1: New file.
27537
27538 2005-10-12  Simon Josefsson  <jas@extundo.com>
27539
27540         * modules/gc-sha1: New file.
27541
27542 2005-10-12  Simon Josefsson  <jas@extundo.com>
27543
27544         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27545
27546         * tests/test-gc-pbkdf2-sha1.c: New file.
27547
27548 2005-10-12  Simon Josefsson  <jas@extundo.com>
27549
27550         * modules/gc-md5, modules/gc-hmac-md5: New files.
27551
27552         * modules/gc (Files): Remove md5, memxor and hmac files.
27553
27554 2005-10-12  Simon Josefsson  <jas@extundo.com>
27555
27556         * m4/gc-pbkdf2-sha1.m4: New file.
27557
27558         * m4/gc-hmac-sha1.m4: New file.
27559
27560         * m4/gc-sha1: New file.
27561
27562         * m4/hmac-sha1.m4: New file.
27563
27564 2005-10-12  Simon Josefsson  <jas@extundo.com>
27565
27566         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27567
27568         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27569
27570 2005-10-12  Simon Josefsson  <jas@extundo.com>
27571
27572         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27573         suggested by Bruno Haible <bruno@clisp.org>.
27574
27575 2005-10-12  Simon Josefsson  <jas@extundo.com>
27576
27577         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27578
27579 2005-10-12  Simon Josefsson  <jas@extundo.com>
27580
27581         * lib/gc-pbkdf2-sha1.c: New file.
27582
27583         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27584
27585 2005-10-12  Simon Josefsson  <jas@extundo.com>
27586
27587         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27588
27589         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27590
27591 2005-10-12  Simon Josefsson  <jas@extundo.com>
27592
27593         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27594         GC_USE_HMAC_MD5, respectively.
27595
27596         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27597         (gc_md5): Fix typo.
27598
27599         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27600
27601         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27602
27603         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27604
27605 2005-10-12  Bruno Haible  <bruno@clisp.org>
27606
27607         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27608         Reported by Stepan Kasal <kasal@ucw.cz>.
27609
27610 2005-10-11  Simon Josefsson  <jas@extundo.com>
27611
27612         * tests/test-crc.c: New file.
27613
27614         * modules/crc, modules/crc-tests: New files.
27615
27616 2005-10-11  Simon Josefsson  <jas@extundo.com>
27617
27618         * m4/crc.m4: New file.
27619
27620 2005-10-11  Simon Josefsson  <jas@extundo.com>
27621
27622         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27623
27624         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27625
27626         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27627
27628 2005-10-11  Simon Josefsson  <jas@extundo.com>
27629
27630         * lib/crc.h, lib/crc.c: New files.
27631
27632         * lib/gc.h (gc_hash_buffer): Add doc.
27633
27634 2005-10-11  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/c-strcasestr: New file.
27637         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27638
27639 2005-10-11  Bruno Haible  <bruno@clisp.org>
27640
27641         * modules/c-strcase: New file.
27642         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27643
27644 2005-10-11  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/strcasecmp.c: Include limits.h.
27647         (strcasecmp): Avoid integer overflow on exotic platforms.
27648         * lib/strncasecmp.c: Include limits.h.
27649         (strncasecmp): Avoid integer overflow on exotic platforms.
27650         Reported by Paul Eggert.
27651
27652 2005-10-11  Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/c-strcasestr.h: New file, from GNU gettext.
27655         * lib/c-strcasestr.c: New file, from GNU gettext.
27656
27657 2005-10-11  Bruno Haible  <bruno@clisp.org>
27658
27659         * lib/c-strcase.h: New file, from GNU gettext.
27660         * lib/c-strcasecmp.c: New file, from GNU gettext.
27661         * lib/c-strncasecmp.c: New file, from GNU gettext.
27662
27663 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         * modules/mempcpy (License): GPL -> LGPL.
27666         * modules/strchrnul (License): Likewise.
27667         * modules/sysexits (License): Likewise.
27668
27669 2005-10-08  Simon Josefsson  <jas@extundo.com>
27670
27671         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27672
27673 2005-10-07  Simon Josefsson  <jas@extundo.com>
27674
27675         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27676
27677 2005-10-06  Simon Josefsson  <jas@extundo.com>
27678
27679         * tests/test-hmac-md5.c: New file.
27680
27681         * modules/hmac-md5-tests: New file.
27682
27683         * modules/hmac-md5: New file.
27684
27685 2005-10-06  Simon Josefsson  <jas@extundo.com>
27686
27687         * m4/hmac-md5.m4: New file.
27688
27689         * m4/memxor.m4: Require gl_C_RESTRICT.
27690
27691 2005-10-06  Simon Josefsson  <jas@extundo.com>
27692
27693         * lib/memxor.c (memxor): Avoid casts and warnings.
27694
27695 2005-10-06  Simon Josefsson  <jas@extundo.com>
27696
27697         * lib/hmac-md5.c: New file.
27698
27699         * lib/hmac.h: New file.
27700
27701 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27704         promotes to int, not unsigned int, to catch the AIX 5.3
27705         compiler bug.
27706
27707 2005-10-05  Simon Josefsson  <jas@extundo.com>
27708
27709         * modules/memxor: New file.
27710
27711         * modules/iconv (Files): Move config.rpath to havelib, it is used
27712         there.
27713
27714         * modules/havelib (Files): Add config.rpath.
27715
27716 2005-10-05  Simon Josefsson  <jas@extundo.com>
27717
27718         * m4/memxor.m4: New file.
27719
27720 2005-10-05  Simon Josefsson  <jas@extundo.com>
27721
27722         * lib/memxor.c (memxor): Fix compiler error.
27723
27724         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27725         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27726
27727         * lib/memxor.h, lib/memxor.c: New files.
27728
27729         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27730         we assume all systems have it, suggested by Jim Meyering
27731         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27732         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27733         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27734         same reasons.
27735
27736 2005-10-05  Simon Josefsson  <jas@extundo.com>
27737
27738         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27739
27740 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27741
27742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27743         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27744         needed, since the source code now assumes these .h files.
27745
27746 2005-10-05  Derek Price  <derek@ximbiot.com>
27747
27748         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27749
27750 2005-10-05  Bruno Haible  <bruno@clisp.org>
27751
27752         * modules/stdint (License): Change to LGPL.
27753
27754 2005-10-04  Simon Josefsson  <jas@extundo.com>
27755
27756         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27757         D. Baushke" <mdb@gnu.org>.
27758
27759 2005-10-04  Bruno Haible  <bruno@clisp.org>
27760
27761         * lib/verify.h (verify_true): Provide alternative definition for C++.
27762
27763 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27764
27765         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27766         (SSIZE_MAX): New macro, if not already defined.
27767         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27768         than 2 GiB.
27769
27770 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27771
27772         Sync from coreutils.
27773         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27774         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27775         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27776         ULLONG_MAX doesn't work with 2.7.2.1.
27777
27778 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27779
27780         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27781         From Ben Pfaff.
27782
27783         * modules/exclude (Depends-on): Depend on verify.
27784         * modules/strtoimax (Depends-on): Likewise.
27785         * modules/utimecmp (Depends-on): Likewise.
27786
27787 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27788
27789         * lib/exclude.c: Include verify.h.
27790         (verify): Remove.  All callers changed to use verify.h's version.
27791         * lib/strtoimax.c: Likewise.
27792         * lib/utimecmp.c: Likewis.e
27793
27794         Sync from coreutils.
27795         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27796         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27797         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27798         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27799         bother returning ENOSYS if settimeofday or stime fails; just let
27800         them return whatever errno they want to return.
27801         * lib/utimens.c: Include unistd.h, for dup2.
27802         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27803         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27804
27805 2005-10-02  Jim Meyering  <jim@meyering.net>
27806
27807         Sync from coreutils.
27808         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27809         from glibc-2.2.5 that fails for read-only files.
27810
27811 2005-10-02  Jim Meyering  <jim@meyering.net>
27812
27813         Sync from coreutils.
27814         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27815         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27816         `#if HAVE_CONFIG_H'.
27817         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27818         Remove AT_FDCWD test.
27819         Do not consume the fd unless successful.
27820         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27821         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27822         block, so that we don't even try to compile it if settimeofday is
27823         available.  This works around a compilation failure on OSF1 V5.1,
27824         due to stime requiring a `long int*' while tv_sec is `int'.
27825
27826 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27827
27828         Sync from coreutils.
27829         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27830         against `yes', rather than just testing for nonempty.
27831
27832 2005-10-01  Simon Josefsson  <jas@extundo.com>
27833
27834         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27835         and Darwin.
27836
27837         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27838         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27839         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27840         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27841         Check if struct addrinfo is declared.
27842
27843 2005-10-01  Simon Josefsson  <jas@extundo.com>
27844
27845         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27846         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27847         AI_* and EAI_* definitions.  Protect function declarations.
27848
27849 2005-10-01  Jim Meyering  <jim@meyering.net>
27850
27851         Sync from coreutils.
27852
27853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27854         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27855         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27856         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27857         in the inet and nsl libraries.  Required on Solaris 5.7.
27858
27859 2005-10-01  Jim Meyering  <jim@meyering.net>
27860
27861         Sync from coreutils.
27862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27863         in the inet and nsl libraries.  Required on Solaris 5.7.
27864
27865 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27866
27867         * lib/getdelim.c (getdelim): Remove unused variables.
27868
27869 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27870
27871         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27872         so that the code works even with ancient cpp.  Portability problem
27873         with GCC 2.7.2.1 reported by Thomas M.Ott.
27874
27875 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27876
27877         * modules/regex (Depends-on): Add strcase.
27878
27879         * modules/gethostname (Licence): Change from GPL to LGPL, since
27880         gethostname.c is a trivial implementation of a standard library
27881         function.
27882         * modules/poll (License): Change from GPL to LGPL, since it's
27883         derived from LGPL code.
27884
27885 2005-09-27  Jim Meyering  <jim@meyering.net>
27886
27887         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27888         HAVE_CONFIG_H.
27889
27890         * lib/intprops.h (signed_type_or_expr__): Define.
27891         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27892         for unsigned types.
27893
27894 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27895
27896         * lib/verify.h (verify_expr): Remove, replacing with:
27897         (verify_true): New macro that returns true instead of void.
27898         (verify_type__): Remove.
27899         (verify): Use verify_true rather than verify_type__.
27900
27901 2005-09-26  Bruno Haible  <bruno@clisp.org>
27902
27903         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27904         is necessary.
27905         (lib_SOURCES): Remove mbchar.c.
27906         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27907         (Files): Add m4/mbrtowc.m4.
27908         * modules/mbiter: Likewise.
27909         * modules/mbuiter: Likewise.
27910
27911 2005-09-26  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27914         compile mbchar.c if they are not both present.
27915         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27916         * m4/mbiter.m4 (gl_MBITER): Likewise.
27917         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27918         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27919         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27920
27921 2005-09-25  Jim Meyering  <jim@meyering.net>
27922
27923         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27924         also uses socklen_t.
27925
27926 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27927
27928         * lib/utimens.c (ENOSYS): Define if not already defined.
27929         (futimens): Support having a null PATH if the file descriptor
27930         is nonnegative.
27931
27932         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27933         Remove.
27934         (__attribute): Define to empty unless GCC 3.1 or later.
27935         This works around a core dump on OpenBSD 3.4, which has GCC
27936         2.95.3, which dumps core when given __attribute__(()).  It also
27937         simplifies other tests, since we really don't want to bother with
27938         worrying about which ancient version of GCC supported what.
27939         Original problem reported by Yoann Vandoorselaere, with part of
27940         the fix suggested by Derek Price.
27941
27942 2005-09-24  Jim Meyering  <jim@meyering.net>
27943
27944         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27945         so we can once again use a positive bitfield width of 1 -- now we
27946         don't have to explain why we were using a bitfield width of 2.
27947
27948 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27949
27950         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27951         and similarly for the other external symbols.  Problem reported
27952         by James Gallager.
27953
27954         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27955         bug reported by Jim Meyering.
27956
27957         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27958         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27959         not needed, since socklen is a prerequisite module.
27960
27961 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27962
27963         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27964         Problem reported by Eric Blake.
27965         (getaddrinfo): Initialize se so that it's not garbage.
27966         Redo internal storage allocation so that it doesn't make unportable
27967         assumptions about alignment.
27968         Fix a memory leak.
27969
27970         * lib/utimens.c (futimens): Use futimesat if available.
27971         Prefer it to futimes since it doesn't have the futimes bug.
27972
27973         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27974         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27975         Instead, declare a function that returns a pointer to an array,
27976         and use verify_type__ to declare the size of the array.
27977         Problem and germ of a solution reported by Bruno Haible.
27978         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27979         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27980
27981 2005-09-23  Jim Meyering  <jim@meyering.net>
27982
27983         Sync from coreutils.
27984         Correct build failure (socklen_t not defined) on at least
27985         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27987
27988 2005-09-23  Jim Meyering  <jim@meyering.net>
27989
27990         * modules/getaddrinfo (Depends-on): Add socklen.
27991
27992 2005-09-23  Bruno Haible  <bruno@clisp.org>
27993
27994         * tests/test-verify.c: New file.
27995
27996 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27997
27998         Sync from coreutils.
27999
28000         * modules/argmatch (Depends-on): Add verify.
28001         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
28002         unistd-safer.
28003         * modules/save-cwd (Depends-on): Likewise.
28004
28005         * modules/openat (Files): Add lib/openat-die.c.
28006         (Depends-on): Remove error, exitfail.
28007         Add dirname.
28008
28009         * modules/verify: New file.
28010         * MODULES.html.sh (Diagnostics <assert.h>): New section,
28011         with "verify" module.
28012
28013 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28014
28015         Sync from coreutils.
28016
28017         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
28018         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
28019         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
28020         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
28021         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
28022         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
28023         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
28024         Don't bother checking for string.h, stdlib.h, unistd.h.
28025         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
28026         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
28027         module's job.
28028         * m4/jm-macros.m4 (gl_MACROS): Likewise.
28029         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
28030
28031         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
28032         (gl_GETDATE): Use it.
28033
28034         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
28035
28036 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28037
28038         Sync from coreutils.
28039
28040         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
28041         stat-time.h.
28042         * lib/argmatch.h: Include verify.h
28043         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
28044         (ARGMATCH_ASSERT): Remove; unused.
28045         * lib/canonicalize.c: Assume STDC_HEADERS.
28046         * lib/exclude.c: Include "strcase.h".
28047         * lib/regex_internal.h [!defined _LIBC]: Likewise.
28048         * lib/getusershell.c: Include stdio--.h rather than stdio.h
28049         and stdio-safer.h.
28050         (getusershell): Call fopen, not fopen_safer.
28051         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
28052         Do not include unistd-safer.h.
28053         (save_cwd): Don't call fd_safer; no longer needed
28054         now that we include fcntl--.h.
28055
28056         * lib/getdate.y (relative_time): New type.
28057         (RELATIVE_TIME_0): New constant.
28058         (parser_control): Use relative_time instead of doing it ourselves.
28059         (%union): Add new relative_time rel member.
28060         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
28061         Now typeless.
28062         (relunit, relunit_snumber): Now of type rel.
28063         (zone, rel, relunit, get_date): Adjust to above changes.
28064
28065         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
28066         Do not include unistd-safer.h.
28067         (getloadavg): Don't call fd_safer; no longer needed
28068         now that we include fcntl--.h.
28069
28070         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
28071         (make_dir_parents): Treat ENOSYS like EEXIST.
28072
28073         Improve quality of diagnostics on restore_cwd failure.
28074         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
28075         (make_dir_parents): Last arg is now int * (for errno), not bool *.
28076         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
28077         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
28078         each time through the loop.  Do not diagnose restore_cwd failure;
28079         that is the caller's job (and perhaps the caller does not care).
28080
28081         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
28082         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
28083         If the file already exists but is not a directory, don't bother
28084         to try to make its parents.
28085         Close potential file descriptor leak if we can't chdir("/") (!).
28086         Don't always return true if chdir($PWD) fails; return true only
28087         if the requested action was done successfully (except for the
28088         chdir($PWD)).
28089         Don't log final directory unless we actually made it.
28090         Refactor to avoid duplicate code to fix up permissions.
28091         Don't attempt to fix up parent permissions if chdir($PWD) fails.
28092
28093         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
28094         to make it a bit faster and (I hope) clearer.
28095         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
28096         Fix bug in formats like %2N.
28097
28098         * lib/verify.h: New file.
28099
28100 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28101
28102         Sync from coreutils.
28103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
28104
28105 2005-09-22  Jim Meyering  <jim@meyering.net>
28106
28107         Sync from coreutils.
28108
28109         * m4/lstat.m4 (gl_FUNC_LSTAT):
28110         Use AC_LIBSOURCES to require lstat.c and lstat.h.
28111         Remove obsolete comment.
28112         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
28113         * m4/xstrtod.m4: Likewise.
28114
28115         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
28116
28117 2005-09-22  Jim Meyering  <jim@meyering.net>
28118
28119         Sync from coreutils.
28120
28121         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
28122
28123         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
28124         the .tm_year member, since otherwise gcc-4.0 would now warn about
28125         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
28126
28127         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
28128         order to avoid an unsuppressible warning from gcc on 64-bit systems.
28129
28130         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
28131         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
28132         when run in a time zone for which daylight savings time is in effect
28133         for the starting date.
28134
28135         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
28136         stop us from restricting permissions of just-created absolute-named
28137         directories.
28138         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
28139         to restore initial working directory.
28140         * lib/mkdir-p.c (make_dir_parents): New parameter:
28141         different_working_dir, to tell caller if/when we change the working
28142         directory and are unable to return to the initial one.
28143         * lib/mkdir-p.h (make_dir_parents): Update prototype.
28144         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
28145         `return false'.  This fixes a bug introduced on 2004-07-30.
28146
28147         * lib/openat.c (fdopendir): Be sure to close the supplied
28148         file descriptor before returning.  This makes our replacement
28149         implementation a little closer to Solaris's, where fdopendir
28150         ties the file descriptor to the returned DIR* pointer.
28151         * lib/openat.c (unlinkat): New function.
28152         * lib/openat.h (unlinkat): Add prototype.
28153         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
28154         (openat_restore_fail): Rename from openat_restore_die.
28155         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28156
28157         Provide an alternative to exiting immediately upon save_cwd or
28158         restore_cwd failure.  Now, an application can arrange e.g.,
28159         to perform a longjump in that case.
28160         * lib/openat.c: Include dirname.h.
28161         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28162         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28163         and openat_restore_die rather than calling error directly.
28164         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28165
28166         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28167         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28168         define.
28169
28170         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28171         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28172                             int utc, int nanoseconds);
28173         Background:
28174         date should not have to allocate a megabyte of virtual memory to
28175         handle a format argument like +%1048575T.  When implemented with
28176         strftime, it must allocate such a buffer, use strftime to fill it
28177         in, print it, then free it.
28178         With fprintftime, it simply prints everything and exits.
28179         With no need for memory allocation, that's one fewer way to fail.
28180         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28181         optional field width, not before, so we accept %9:z, not %:9z.
28182         (my_strftime): Be sure to use L_('x') for literals.
28183
28184         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28185         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28186         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28187         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28188         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28189         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28190         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28191         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28192         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28193         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28194         * lib/xgethostname.c, lib/xreadlink.c:
28195         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28196
28197         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28198         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28199         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28200         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28201         and don't include <sys/file.h>).
28202
28203 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28204
28205         Sync from coreutils.
28206
28207         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28208         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28209         [!LDAV_DONE]: Avoid unused variable warning.
28210
28211 2005-09-21  Bruno Haible  <bruno@clisp.org>
28212
28213         * lib/unicodeio.h (unicode_to_mb): New declaration.
28214
28215 2005-09-20  Derek Price  <derek@ximbiot.com>
28216
28217         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28218         getaddrinfo.h.
28219
28220 2005-09-20  Bruno Haible  <bruno@clisp.org>
28221
28222         * gnulib-tool: Remove trailing slashes from the values specified for
28223         --source-base, --m4-base, --tests-base, --aux-dir.
28224         Suggested by Simon Josefsson <jas@extundo.com>.
28225
28226 2005-09-20  Bruno Haible  <bruno@clisp.org>
28227
28228         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28229         func_modules_to_filelist, func_import, func_create_testdir): Make all
28230         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28231         change when gnulib-tool is invoked in a different locale.
28232
28233 2005-09-19  Simon Josefsson  <jas@extundo.com>
28234
28235         * m4/socklen.m4: Fix typo.
28236
28237 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28238
28239         Use a consistent style for including <config.h>.
28240         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28241         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28242         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28243         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28244         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28245         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28246         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28247         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28248         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28249         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28250         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28251         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28252         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28253         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28254         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28255         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28256         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28257         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28258         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28259         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28260         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28261         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28262         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28263         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28264         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28265         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28266         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28267         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28268         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28269         lib/xstrtoumax.c, lib/yesno.c:
28270         Standardize inclusion of config.h.
28271         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28272         lib/inttostr.h:  Removed inclusion of config.h from header files.
28273         * lib/inttostr.c:  Adjusted in-tree users.
28274         * lib/timespec.h: Remove superfluous warning to include config.h.
28275         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28276         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28277         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28278         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28279         config.h with HAVE_CONFIG_H.
28280
28281 2005-09-19  Jim Meyering  <jim@meyering.net>
28282
28283         * modules/pathmax (License): Change to LGPL.
28284
28285 2005-09-19  Derek Price  <derek@ximbiot.com>
28286
28287         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28288
28289 2005-09-19  Bruno Haible  <bruno@clisp.org>
28290
28291         * gnulib-tool (import): Provide default for --tests-base.
28292
28293 2005-09-19  Bruno Haible  <bruno@clisp.org>
28294
28295         * doc/quote.texi: New file, extracted from gnulib.texi.
28296         * doc/ctime.texi: New file, extracted from gnulib.texi.
28297         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28298         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28299         * doc/gnulib.texi: Include them.
28300
28301 2005-09-18  Bruno Haible  <bruno@clisp.org>
28302
28303         Portability fix.
28304         * gnulib-tool (func_readlink): New function.
28305         (func_ln_if_changed): Use it.
28306
28307 2005-09-18  Bruno Haible  <bruno@clisp.org>
28308
28309         * gnulib-tool: Support --with-tests also with --import.
28310         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28311         (func_import): Use variables $testsbase and $inctests. Emit a
28312         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28313         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28314         SUBDIRS += $testsdir.
28315         (func_create_testdir): Update.
28316
28317 2005-09-18  Bruno Haible  <bruno@clisp.org>
28318
28319         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28320         instead of $dry_run.
28321         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28322         (func_ln_if_changed): Don't handle dry-run here.
28323         (func_import): In dry-run mode, detect more precisely which actions
28324         would be performed, and don't use "...ing" verbs.
28325
28326 2005-09-18  Bruno Haible  <bruno@clisp.org>
28327
28328         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28329         (func_import): Use join on two temporary files instead of three nested
28330         loops, in order to determine which files are new or old.
28331
28332 2005-09-18  Bruno Haible  <bruno@clisp.org>
28333
28334         * gnulib-tool (func_import): Comment out code that spits out the
28335         new files with --dry-run.
28336
28337 2005-09-18  Bruno Haible  <bruno@clisp.org>
28338
28339         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28340
28341 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28342
28343         * lib/stat-time.h: New file.
28344         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28345         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28346         in a different way.
28347         (timespec_cmp): New function.
28348         * lib/utimecmp.c: Include stat-time.h.
28349         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28350         members exist, not on the obsolescent ST_MTIM_NSEC.
28351         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28352
28353 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28354
28355         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28356
28357 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28358
28359         * MODULES.html.sh (File system functions): Add stat-time.
28360         * modules/stat-time: New file.
28361         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28362         is now done in a different way, by the stat-time module.
28363         * modules/utimecmp (Depends-on): Add stat-time.
28364
28365 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         * m4/st_mtim.m4: Remove.  Superseded by...
28368         * m4/stat-time.m4: New file.
28369         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28370         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28371
28372 2005-09-15  Derek Price  <derek@ximbiot.com>
28373
28374         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28375
28376 2005-09-15  Derek Price  <derek@ximbiot.com>
28377
28378         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28379         * lib/regex_internal.c: Ditto, using this...
28380         (__GNUC_PREREQ): ...new macro.
28381         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28382         using...
28383         (__GNUC_PREREQ): ...this new macro.
28384
28385         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28386
28387 2005-09-15  Derek Price  <derek@ximbiot.com>
28388             Paul Eggert  <eggert@cs.ucla.edu>
28389
28390         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28391         changes, consolidating in...
28392         * lib/regex_internal.h: ...this file.
28393
28394 2005-09-13  Jim Meyering  <jim@meyering.net>
28395
28396         * lib/canon-host.c: Filter through gnu indent and reword comments
28397         slightly.
28398         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28399
28400 2005-09-13  Derek Price  <derek@ximbiot.com>
28401
28402         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28403         failure.
28404         Reported by Jim Meyering  <jim@meyering.net>.
28405
28406 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28407
28408         * lib/base64.c: Typo.
28409         (base64_encode): Put b64str in initialized data section.
28410
28411 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28412
28413         Merge glibc and coreutils changes into gnulib, plus a few
28414         extra fixes.
28415         * lib/md5.c: Use #error rather than a string.
28416         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28417         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28418         (__attribute__): Define to empty for non recent-GCC.
28419         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28420         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28421         Renamed from their non-__ counterparts, with new macros replacing
28422         them if not _LIBC.  Add __THROW attribute.
28423         (rol): Remove.
28424         (struct md5_ctx): Align buffer if using GCC.
28425         * lib/sha1.h (struct sha1_ctx): Likewise.
28426         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28427         The old name was backwards.
28428         (NOTSWAP): Remove; not used.
28429         (rol): New macro, moved here from md5.h.
28430         (sha1_process_block): Remove a FIXME that doesn't make sense.
28431
28432 2005-09-12  Derek Price  <derek@ximbiot.com>
28433
28434         Return usable errors from canon-host.
28435         * lib/canon-host.h: New file.
28436         * lib/canon-host.c (canon_host): Wrap...
28437         (canon_host_r): ...this new function, which now relies exclusively on
28438         getaddrinfo.
28439         (ch_strerror): New function.
28440         (last_cherror): New global.
28441         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28442         interface.
28443         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28444         void *.
28445         (freeaddrinfo): Free ai->ai_canonname when set.
28446
28447 2005-09-12  Derek Price  <derek@ximbiot.com>
28448
28449         Make canon-host require getaddrinfo.
28450         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28451         AC_LIBSOURCE canon-host.h.  Call...
28452         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28453         gl_GETADDRINFO.
28454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28455
28456 2005-09-12  Derek Price  <derek@ximbiot.com>
28457
28458         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28459         LGPL.
28460         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28461
28462 2005-09-12  Derek Price  <derek@ximbiot.com>
28463
28464         * lib/gai_strerror.c: Include config.h when available.  Include
28465         getaddrinfo.h before other headers to test interface.
28466         Reported by Larry Jones <lawrence.jones@ugs.com>.
28467
28468 2005-09-12  Derek Price  <derek@ximbiot.com>
28469             Paul Eggert  <eggert@cs.ucla.edu>
28470
28471         * modules/glob (Files): Add glob-libc.h.
28472
28473 2005-09-12  Derek Price  <derek@ximbiot.com>
28474             Paul Eggert  <eggert@cs.ucla.edu>
28475
28476         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28477         glob_.h, glob-libc.h.
28478         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28479
28480 2005-09-12  Derek Price  <derek@ximbiot.com>
28481             Paul Eggert  <eggert@cs.ucla.edu>
28482
28483         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28484         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28485         protecting things that should be done only in gnulib contexts.
28486         * lib/glob_.h: New file, containing only the glob things needed for
28487         gnulib.
28488         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28489         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28490         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28491         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28492         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28493         and to respect the namespace rules better.
28494
28495 2005-09-08  Simon Josefsson  <jas@extundo.com>
28496
28497         * modules/socklen: New file.
28498
28499 2005-09-08  Simon Josefsson  <jas@extundo.com>
28500
28501         * m4/socklen.m4: New file.
28502
28503 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28504
28505         * modules/utimens (Files): Add m4/utimbuf.m4, since
28506         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28507         Reported by Sergey Poznyakoff.
28508
28509 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28510
28511         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28512         definitions, since that's the preferred style in glibc.
28513         Fix a minor spacing issue, and update copyright notice to match
28514         glibc's.
28515
28516 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28517
28518         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28519
28520 2005-09-06  Simon Josefsson  <jas@extundo.com>
28521
28522         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28523         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28524
28525 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28528         warning.
28529
28530 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28531
28532         * config/srclist.txt: Add glibc bug 1302.
28533
28534 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28535
28536         Change bitset word type from unsigned int to unsigned long int,
28537         as this has better performance on typical 64-bit hosts.
28538         Port bitset code to hosts with unusual word sizes.
28539         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28540         (build_collating_symbol):
28541         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28542         argument is a bitset.  This is merely a style issue, but it makes
28543         it clearer that an entire array is expected.
28544         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28545         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28546         Port to the case where bitset_word is not the same as unsigned int.
28547         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28548         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28549         Likewise.
28550         * lib/regexec.c (check_dst_limits_calc_pos_1,
28551         check_subexp_matching_top):
28552         (build_trtable, group_nodes_into_DFAstates):
28553         Likewise.
28554         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28555         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28556         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28557         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28558         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28559         * lib/regcomp.c (optimize_subexps, lower_subexp):
28560         Work even if bitset_word has holes in its bitwise representation.
28561         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28562         * lib/regexec.c (check_dst_limits_calc_pos_1,
28563         check_subexp_matching_top):
28564         Likewise.
28565         * lib/regex_internal.c (re_string_reconstruct):
28566         Don't assume UCHAR_MAX == 255.
28567         * lib/regex_internal.h (bitset_set_all): Likewise.
28568         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28569         All uses changed.
28570         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28571         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28572         All uses changed.
28573         (BITSET_WORD_MAX): New macro.
28574         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28575         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28576         (bitset_empty, bitset_copy):
28577         Prefer sizeof (bitset) to multiplying it out ourselves.
28578         (bitset_not_merge): Remove; unused.
28579         (bitset_contain): Return bool, not unsigned int with one bit on.
28580         All callers changed.
28581         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28582         alignment than re_node_set; do this by defining a new internal
28583         type struct dests_alloc and using it to allocate memory.
28584
28585 2005-09-05  Bruno Haible  <bruno@clisp.org>
28586
28587         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28588         links.
28589
28590 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28591
28592         * modules/size_max (Makefile.am): Add size_max.h
28593
28594 2005-09-04  Derek Price  <derek@ximbiot.com>
28595
28596         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28597
28598 2005-09-03  Simon Josefsson  <jas@extundo.com>
28599
28600         * gnulib-tool: Fix typo.
28601
28602 2005-09-03  Simon Josefsson  <jas@extundo.com>
28603
28604         * config/srclist.txt: Add glibc bug 1293.
28605
28606 2005-09-03  Derek Price  <derek@ximbiot.com>
28607
28608         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28609         From Larry Jones <lawrence.jones@ugs.com>.
28610
28611 2005-09-02  Simon Josefsson  <jas@extundo.com>
28612
28613         * modules/socklen: New file.
28614
28615 2005-09-02  Simon Josefsson  <jas@extundo.com>
28616
28617         * modules/havelib: New module.
28618
28619         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28620         Use havelib.
28621
28622 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28623
28624         Check for arithmetic overflow when calculating sizes, to prevent
28625         some buffer-overflow issues.  These patches are conservative, in the
28626         sense that when I couldn't determine whether an overflow was possible,
28627         I inserted a run-time check.
28628         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28629         macros.
28630         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28631         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28632         (re_xnrealloc, re_x2nrealloc): New inline functions.
28633         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28634         parse_bracket_exp):
28635         (build_equiv_class, build_charclass): Check for arithmetic overflow
28636         in size expression calculations.
28637         * lib/regex_internal.c (re_string_realloc_buffers):
28638         (build_wcs_upper_buffer, re_node_set_add_intersect):
28639         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28640         (re_dfa_add_node, register_state): Likewise.
28641         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28642         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28643         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28644         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28645
28646 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28647
28648         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28649         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28650
28651 2005-09-02  Bruno Haible  <bruno@clisp.org>
28652
28653         Support for lib vs. lib64 distinction on biarch platforms.
28654         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28655         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28657
28658 2005-09-02  Bruno Haible  <bruno@clisp.org>
28659
28660         * gnulib-tool (import): In the other first-use case, provide defaults
28661         as well.
28662
28663 2005-09-02  Bruno Haible  <bruno@clisp.org>
28664
28665         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28666         patches not yet found in the latest gettext release.
28667
28668 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28669
28670         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28671         to avoid a collision with bits/local_lim.h in glibc.
28672         All uses changed.  Problem reported by Dmitry V. Levin in
28673         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28674
28675         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28676         bugs in int versus size_t comparisons.
28677         (re_string_context_at): Fix bug where the code assumed that
28678         Idx is signed.
28679
28680         Use bool where appropriate.
28681         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28682         All callers changed.
28683         (calc_eclosure_iter): Likewise, for ROOT arg.
28684         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28685         (build_charclass_op): Likewise, for NON_MATCH arg.
28686         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28687         (re_string_construct_common): Likewise, for ICASE arg.
28688         * lib/regexec.c (re_search_2_stub, re_search_stub):
28689         Likewise, for RET_LEN arg.
28690         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28691         (set_regs): Likewise, for FL_BACKTRACK arg.
28692         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28693         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28694         (calc_eclosure_iter, parse_bracket_exp):
28695         Use bool for internal variables that are booleans.
28696         * lib/regexec.c (re_search_internal, check_matching,
28697         proceed_next_node):
28698         (set_regs, build_sifted_states, sift_states_bkref):
28699         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28700         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28701         (find_collation_sequence_value):
28702         Likewise.
28703         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28704         (re_node_set_compare):
28705         Return bool, not int. All callers changed.
28706         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28707         (build_trtable, check_node_accept): Likewise.
28708         * lib/regex_internal.h: Include stdbool.h.
28709
28710         Fix bugs uncovered when converting to bool.
28711         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28712         failure instead of charging ahead blindly.
28713         * lib/regex_internal.c (register_state): Likewise.
28714         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28715         for freeing internal storage.
28716         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28717         bitset pieces used as boolean, to avoid undefined behavior
28718         on hosts that do int overflow checking.
28719
28720 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28721
28722         * config/srclist.txt: Add glibc bugs 1285-1287.
28723
28724 2005-09-01  Jim Meyering  <jim@meyering.net>
28725
28726         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28727         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28728         Require gl_STAT_MACROS, too.
28729
28730 2005-09-01  Bruno Haible  <bruno@clisp.org>
28731
28732         * gnulib-tool (import): In the first-use case, provide defaults.
28733
28734 2005-09-01  Bruno Haible  <bruno@clisp.org>
28735
28736         * gnulib-tool (func_import): Remove the .tmp files.
28737
28738 2005-09-01  Bruno Haible  <bruno@clisp.org>
28739
28740         * gnulib-tool (func_import): Fix handling of symbolic links.
28741
28742 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28745         old glibc regex code mishandles strings longer than 2**31 bytes.
28746         This patch fixes this when the regex code is used in gnulib
28747         (i.e., outside glibc).
28748
28749         This patch should not affect the use of the regex code inside
28750         glibc.  No doubt this problem also needs to be handled for glibc
28751         as well, but the result will be an incompatible change to the
28752         glibc ABI, and the old ABI will have to be supported too.  That
28753         can be the the subject for another patch.
28754
28755         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28756         governing whether the rest of this patch is active.  By default,
28757         the macro is disabled and the patch has no effect.
28758         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28759         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28760         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28761         (re_match_2, re_set_registers): Use the new types.
28762         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28763         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28764         New macros.
28765         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28766         (re_string_context_at, bin_tree_t, re_dfastate_t):
28767         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28768         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28769         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28770         (re_string_char_size_at, re_string_wchar_at):
28771         (re_string_elem_size_at):
28772         Use the new types and macros to port to 64-bit hosts.
28773         Use unsigned types for internal values, so that the code
28774         mostly works even for arrays larger than SSIZE_MAX.
28775         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28776         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28777         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28778         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28779         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28780         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28781         (calc_inveclosure, parse_dup_op, build_range_exp):
28782         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28783         (fetch_number, create_token_tree, mark_opt_subexp):
28784         Likewise.
28785         * lib/regex_internal.c (re_string_construct_common,
28786         create_ci_newstate):
28787         (create_cd_newstate, re_string_allocate, re_string_construct):
28788         (re_string_realloc_buffers, build_wcs_upper_buffer):
28789         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28790         (re_string_reconstruct, re_string_peek_byte_case):
28791         (re_string_fetch_byte_case, re_string_context_at):
28792         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28793         (re_node_set_init_copy, re_node_set_add_intersect):
28794         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28795         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28796         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28797         (re_acquire_state, re_acquire_state_context, register_state):
28798         Likewise.
28799         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28800         search_cur_bkref_entry):
28801         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28802         (re_search_internal, re_search_2_stub, re_search_stub)
28803         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28804         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28805         (update_cur_sifted_state, check_dst_limits):
28806         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28807         (check_subexp_limits, sift_states_bkref, merge_state_array):
28808         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28809         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28810         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28811         (expand_bkref_cache, check_node_accept_bytes):
28812         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28813         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28814         (acquire_init_state_context, check_halt_node_context):
28815         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28816         (sift_states_backward, clean_state_log_if_needed):
28817         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28818         (find_recover_state, transit_state_sb, transit_state_mb):
28819         (transit_state_bkref, build_trtable, match_ctx_clean):
28820         Likewise.
28821         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28822         to work around an assumption that REG_MISSING is negative.
28823
28824         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28825         (seek_collating_symbol_entry) [defined _LIBC]:
28826         (lookup_collation_sequence_value) [defined _LIBC]:
28827         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28828         Use prototypes rather than old-style function definitions.
28829         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28830         (transit_state_sb) [0]:
28831         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28832
28833         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28834         rm_eo.
28835
28836         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28837         (optimize_subexps, lower_subexp):
28838         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28839         since the signed shift might overflow.  Use 1u<<31 instead.
28840         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28841         Likewise.
28842         * lib/regexec.c (check_dst_limits_calc_pos_1,
28843         check_subexp_matching_top): Likewise.
28844
28845         * lib/regcomp.c (optimize_subexps, lower_subexp):
28846         Use CHAR_BIT rather than 8, for clarity.
28847         * lib/regexec.c (check_dst_limits_calc_pos_1):
28848         (check_subexp_matching_top): Likewise.
28849         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28850         have to worry about portability issues when shifting it left.
28851         Remove no-longer-needed test for table_size > 0.
28852         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28853         in a word, as the resulting behavior is undefined.
28854         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28855         in one case, a <= should have been an <, and in another case the
28856         whole test was missing.
28857         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28858         the standard name CHAR_BIT.
28859         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28860         this is not true on one's complement and signed-magnitude hosts.
28861
28862         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28863         next_last_offset.
28864         (struct re_dfa_t): Remove unused member states_alloc.
28865         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28866
28867 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28868
28869         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28870         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28871         and large-file glibc and in 32-bit large-file Solaris.
28872
28873 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28874
28875         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28876         lengths fit in regoff_t; this isn't true if regoff_t is the same
28877         width as size_t.
28878         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28879         (= START + RANGE) instead of RANGE.  This avoids overflow
28880         problems when regoff_t is the same width as size_t.
28881         All callers changed.
28882         (re_search_2_stub): Check for overflow when adding the
28883         sizes of the two strings.
28884         (re_search_stub): Check for overflow when adding START
28885         to RANGE; if it occurs, substitute the extreme value.
28886
28887 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28888
28889         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28890
28891 2005-08-31  Jim Meyering  <jim@meyering.net>
28892
28893         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28894         a pointer-to-const.
28895         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28896         (register_state): Likewise.
28897         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28898         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28899         (group_nodes_into_DFAstates): Likewise.
28900
28901 2005-08-31  Jim Meyering  <jim@meyering.net>
28902
28903         * check-module: Add a FIXME comment.
28904
28905 2005-08-31  Eric Blake  <ebb9@byu.net>
28906
28907         * modules/unistd-safer (Files): Add unistd--.h.
28908         * modules/stdio-safer (Files): Add stdio--.h.
28909
28910 2005-08-31  Derek Price  <derek@ximbiot.com>
28911
28912         * lib/getdelim.c (getdelim): Return EOF on EOF.
28913         Reported by Larry Jones <lawrence.jones@ugs.com>.
28914
28915 2005-08-31  Bruno Haible  <bruno@clisp.org>
28916
28917         Avoid unnecessary diffs in the generated lib/Makefile.am.
28918         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28919         the generated files.
28920         (func_import): Don't set cmd.
28921
28922 2005-08-31  Bruno Haible  <bruno@clisp.org>
28923
28924         * lib/strstr.c: Include <stddef.h>, for NULL.
28925         * lib/strcasestr.c: Likewise.
28926         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28927
28928 2005-08-31  Bruno Haible  <bruno@clisp.org>
28929
28930         * gnulib-tool: New option --macro-prefix.
28931         (func_import): Use macro_prefix.
28932         (import): Handle option --macro-prefix.
28933
28934 2005-08-31  Bruno Haible  <bruno@clisp.org>
28935
28936         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28937         Also use new variables cached_lgpl, cached_libtool.
28938
28939 2005-08-31  Bruno Haible  <bruno@clisp.org>
28940
28941         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28942         always instantiating them.
28943
28944 2005-08-31  Bruno Haible  <bruno@clisp.org>
28945
28946         * gnulib-tool (func_import): Read the previous cached settings
28947         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28948         earlier added by gnulib but are now dropped. Warn when a gnulib file
28949         overwrites a non-gnulib file.
28950
28951 2005-08-31  Bruno Haible  <bruno@clisp.org>
28952
28953         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28954         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28955         projects that don't keep autogenerated files in CVS. Put into
28956         actioncmd only the specified modules, not the transitive closure.
28957
28958 2005-08-31  Bruno Haible  <bruno@clisp.org>
28959
28960         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28961         Create directories that shall be filled.
28962         (import): Don't look for gl_* macros in configure.ac. Recurse across
28963         all directories containing a gnulib-cache.m4 files, if meaningful.
28964
28965 2005-08-31  Bruno Haible  <bruno@clisp.org>
28966
28967         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28968         (import): Set seen_libtool when we see gl_LIBTOOL.
28969
28970 2005-08-31  Bruno Haible  <bruno@clisp.org>
28971
28972         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28973         declaration macro definitions from generated gnulib.m4.
28974
28975 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28976
28977         * lib/iconvme.h: Add prototype for iconv_alloc.
28978
28979 2005-08-29  Simon Josefsson  <jas@extundo.com>
28980
28981         * lib/iconvme.c: Fix errno.
28982
28983 2005-08-29  Bruno Haible  <bruno@clisp.org>
28984
28985         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28986         that it works when the directory contains spaces.
28987
28988 2005-08-29  Bruno Haible  <bruno@clisp.org>
28989
28990         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28991
28992 2005-08-29  Bruno Haible  <bruno@clisp.org>
28993
28994         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28995         Emit more advice.
28996
28997 2005-08-29  Bruno Haible  <bruno@clisp.org>
28998         and Stepan Kasal  <kasal@ucw.cz>
28999
29000         * check-module: If more parameters are given, check each of them
29001         separately; add more exceptions, as noted by Jim Meyering.
29002         (check_module): New procedure.
29003         (%exempt_header): Now contains all exceptions.
29004
29005 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
29006
29007         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
29008
29009 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29010
29011         * lib/iconvme.c: Split iconv_string into iconv_alloc.
29012
29013 2005-08-28  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/gnulib-tool.m4: New file.
29016
29017 2005-08-27  Jim Meyering  <jim@meyering.net>
29018
29019         * modules/unistd-safer (Files): Add pipe-safer.c.
29020         * modules/fcntl-safer (Files): Add creat-safer.c.
29021
29022 2005-08-27  Jim Meyering  <jim@meyering.net>
29023
29024         * m4/stdlib-safer.m4: New file.  From coreutils.
29025         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
29026         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
29027         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
29028         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
29029         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
29030
29031 2005-08-27  Jim Meyering  <jim@meyering.net>
29032
29033         * lib/fopen-safer.c: Merge minor changes from coreutils.
29034         * lib/dup-safer.c: Likewise.
29035         * lib/fd-safer.c: Likewise.
29036
29037         Merge from coreutils.
29038         * lib/stdio--.h: New file.
29039         * lib/stdlib--.h: New file.
29040         * lib/mkstemp-safer.c: New file.
29041
29042         GNU tar needs these.
29043         * lib/pipe-safer.c: New file.
29044         * lib/creat-safer.c: New file.
29045         * lib/fcntl--.h (creat): Define to creat_safer.
29046         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
29047         * lib/unistd--.h (pipe): Define to pipe_safer.
29048         * lib/unistd-safer.h: Declare pipe_safer.
29049
29050 2005-08-26  Simon Josefsson  <jas@extundo.com>
29051
29052         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
29053         Haible <bruno@clisp.org>.
29054
29055 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
29056
29057         * lib/regex_internal.h: Remove all references to
29058         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
29059         or better.
29060         (bitset_not, bitset_merge, bitset_not_merge):
29061         (bitset_mask, re_string_allocate, re_string_construct):
29062         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
29063         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
29064         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
29065         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
29066         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29067         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29068         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
29069         (re_acquire_state_context):
29070         Remove unnecessary forward decls.
29071         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
29072         Put __attribute at function definition,
29073         now that the function decl has been removed.
29074         * lib/regex_internal.c (re_string_peek_byte_case):
29075         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
29076         Likewise.
29077
29078 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
29079
29080         * m4/regex.m4: Add AC_PREREQ(2.50).
29081         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
29082
29083 2005-08-25  Simon Josefsson  <jas@extundo.com>
29084
29085         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
29086         __fsetlocking.
29087
29088 2005-08-25  Simon Josefsson  <jas@extundo.com>
29089
29090         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
29091         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
29092         GLIBC specific code.
29093
29094 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29095
29096         Make regex safe for g++.  This fixes one real bug (an "err"
29097         that should have been "*err").  g++ problem reported by
29098         Sam Steingold.
29099         * lib/regex_internal.h (re_calloc): New macro, consistent with
29100         re_malloc etc.  All callers of calloc changed to use re_calloc.
29101         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
29102         not int.  All callers changed.
29103         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
29104         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
29105         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
29106         (find_recover_state): Change "err" to "*err"; this fixes what
29107         appears to be a real bug.
29108         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
29109         versus int.
29110
29111 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29112
29113         * modules/regex (Depends-on): Add malloc, since the code
29114         assumes that !malloc(0) means failure.
29115
29116 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29117
29118         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
29119
29120         alloca modernization/simplification for regex.
29121         * lib/regex.c: Remove portability cruft for alloca.  This no longer
29122         needs to be at the start of the file, and can be moved into
29123         regex_internal.h and simplified.
29124         * lib/regex_internal.h: Include <alloca.h>.
29125         (__libc_use_alloca) [!defined _LIBC]: New macro.
29126         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
29127         now works outside glibc.
29128
29129 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29130
29131         * config/srclist.txt: Add glibc bugs 1241, 1245.
29132
29133 2005-08-25  Jim Meyering  <jim@meyering.net>
29134
29135         * lib/open-safer.c: Include <config.h>.
29136         Otherwise, we'd lose LARGEFILE support in any file using
29137         e.g. "fcntl--.h"
29138
29139 2005-08-25  Bruno Haible  <bruno@clisp.org>
29140
29141         * m4/minmax.m4: Require autoconf 2.52.
29142         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
29143         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
29144         alternatives of translit over the alphabet.
29145         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
29146
29147 2005-08-24  Simon Josefsson  <jas@extundo.com>
29148
29149         * tests/test-getpass.c: New file.
29150
29151 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29152
29153         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
29154         for GNU regex features.
29155
29156 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29157
29158         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29159         * lib/regex.h (regerror): Likewise.
29160
29161         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29162         requires this.  (The code never needed it.)
29163
29164         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29165         All uses of recently-renamed identifiers changed to use the new,
29166         POSIX-compliant names.  The code will build and run just fine
29167         without these changes, but it's better to eat our own dog food
29168         and use the standard-conforming names.
29169
29170         * lib/regex.h: Fix a multitude of POSIX name space violations.
29171         These changes have an effect only for programs that define
29172         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29173         do not change anything for programs compiled in the normal way.
29174         Also, there is no effect on the ABI.
29175
29176         (_REGEX_SOURCE): New macro.
29177         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29178         defined and _GNU_SOURCE is not; this fixes a name space violation.
29179
29180         Rename the following macros to obey POSIX requirements.
29181         The old names are still visible as macros if _REGEX_SOURCE is defined.
29182         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29183         RE_BACKSLASH_ESCAPE_IN_LISTS.
29184         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29185         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29186         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29187         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29188         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29189         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29190         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29191         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29192         (REG_INTERVALS): renamed from RE_INTERVALS.
29193         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29194         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29195         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29196         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29197         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29198         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29199         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29200         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29201         RE_UNMATCHED_RIGHT_PAREN_ORD.
29202         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29203         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29204         (REG_DEBUG): renamed from RE_DEBUG.
29205         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29206         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29207         unusual, since we can't clash with the POSIX REG_ICASE.
29208         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29209         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29210         (REG_NO_SUB): renamed from RE_NO_SUB.
29211         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29212         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29213         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29214         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29215         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29216         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29217         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29218         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29219         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29220         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29221         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29222         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29223         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29224         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29225         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29226         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29227         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29228         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29229         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29230         (REG_FIXED): Renamed from REGS_FIXED.
29231         (REG_NREGS): Renamed from RE_NREGS.
29232
29233         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29234         of other REG_* macros, since POSIX says the user is allowed to
29235         #undef these macros selectively.
29236
29237         (reg_errcode_t): Update comment stating what other tables need
29238         to be consistent.
29239
29240         Rename the following enum values to obey POSIX requirements.
29241         The old names are still visible as macros.
29242         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29243         is not defined, since GNU is supposed to be a superset of POSIX as
29244         much as possible, and since we want reg_errcode_t to be a signed
29245         type for implementation consistency.
29246         (_REG_NOERROR): Renamed from REG_NOERROR.
29247         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29248         (_REG_BADPAT): Renamed from REG_BADPAT.
29249         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29250         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29251         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29252         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29253         (_REG_EBRACK): Renamed from REG_EBRACK.
29254         (_REG_EPAREN): Renamed from REG_EPAREN.
29255         (_REG_EBRACE): Renamed from REG_EBRACE.
29256         (_REG_BADBR): Renamed from REG_BADBR.
29257         (_REG_ERANGE): Renamed from REG_ERANGE.
29258         (_REG_ESPACE): Renamed from REG_ESPACE.
29259         (_REG_BADRPT): Renamed from REG_BADRPT.
29260         (_REG_EEND): Renamed from REG_EEND.
29261         (_REG_ESIZE): Renamed from REG_ESIZE.
29262         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29263         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29264         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29265         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29266         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29267
29268         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29269         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29270         changed.  But support the old name if the new one is not defined
29271         and if _REGEX_SOURCE.
29272
29273         Change the following member names in struct re_pattern_buffer.
29274         The old names are still supported if !_REGEX_SOURCE.
29275         The new names are always supported, regardless of _REGEX_SOURCE.
29276         (re_buffer): Renamed from buffer.
29277         (re_allocated): Renamed from allocated.
29278         (re_used): Renamed from used.
29279         (re_syntax): Renamed from syntax.
29280         (re_fastmap): Renamed from fastmap.
29281         (re_translate): Renamed from translate.
29282         (re_can_be_null): Renamed from can_be_null.
29283         (re_regs_allocated): Renamed from regs_allocated.
29284         (re_fastmap_accurate): Renamed from fastmap_accurate.
29285         (re_no_sub): Renamed from no_sub.
29286         (re_not_bol): Renamed from not_bol.
29287         (re_not_eol): Renamed from not_eol.
29288         (re_newline_anchor): Renamed from newline_anchor.
29289
29290         Change the following member names in struct re_registers.
29291         The old names are still supported if !_REGEX_SOURCE.
29292         The new names are always supported, regardless of _REGEX_SOURCE.
29293         (rm_num_regs): Renamed from num_regs.
29294         (rm_start): Renamed from start.
29295         (rm_end): Renamed from end.
29296
29297         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29298         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29299         Prepend __ to parameter names.
29300
29301         Undo yesterday's changes.
29302
29303 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29304
29305         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29306         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29307         lib/regex.c.
29308
29309 2005-08-24  Jim Meyering  <jim@meyering.net>
29310
29311         Sync from coreutils.
29312         * m4/fcntl-safer.m4: New file.
29313
29314         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29315         and object files for this module.
29316
29317 2005-08-24  Jim Meyering  <jim@meyering.net>
29318
29319         Sync from coreutils.
29320         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29321
29322 2005-08-24  Jim Meyering  <jim@meyering.net>
29323
29324         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29325         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29326
29327 2005-08-24  Jim Meyering  <jim@meyering.net>
29328
29329         * modules/fcntl-safer: New module.
29330         * modules/fts (Depends-on): Add fcntl-safer.
29331         * MODULES.html.sh (File descriptor based Input/Output):
29332         Add fcntl-safer.
29333
29334 2005-08-24  Bruno Haible  <bruno@clisp.org>
29335
29336         Support for unit test modules.
29337         * modules/README: Mention tests modules.
29338         * modules/TEMPLATE-TESTS: New file.
29339         * gnulib-tool: New options --extract-tests-module, --with-tests and
29340         --tests-base (unused for the moment).
29341         (testsbase, inctests): New variables.
29342         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29343         (func_verify_module): Exclude TEMPLATE-TESTS.
29344         (func_verify_nontests_module, func_verify_tests_module): New functions.
29345         (func_get_dependencies): Add implicit dependency for tests modules.
29346         (func_get_tests_module): New function.
29347         (func_modules_transitive_closure): When --with-tests was specified,
29348         include the unit tests as well, unless explicitly avoided.
29349         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29350         (func_emit_tests_Makefile_am): New function.
29351         (func_create_testdir): When --with-tests was specified, emit a
29352         tests/ directory.
29353         * MODULES.html.sh (Future developments): Update.
29354
29355 2005-08-24  Bruno Haible  <bruno@clisp.org>
29356
29357         * modules/tls-tests: New file.
29358         * tests/test-tls.c: New file, from GNU gettext.
29359
29360 2005-08-24  Bruno Haible  <bruno@clisp.org>
29361
29362         * modules/lock-tests: New file.
29363         * tests/test-lock.c: New file, from GNU gettext.
29364
29365 2005-08-24  Bruno Haible  <bruno@clisp.org>
29366
29367         * lib/lock.h: Add multiple inclusion guard.
29368         * lib/tls.h: Add multiple inclusion guard.
29369
29370 2005-08-24  Bruno Haible  <bruno@clisp.org>
29371
29372         * gnulib-tool: Add support for the --aux-dir option to
29373         --create-testdir, --create-megatestdir, --test, --megatest.
29374         (func_create_testdir, func_create_megatestdir): Optionally emit a
29375         AC_CONFIG_AUX_DIR directive.
29376         (create-testdir, create-megatestdir, test, megatest): Provide a
29377         default value for $auxdir.
29378
29379 2005-08-24  Bruno Haible  <bruno@clisp.org>
29380
29381         * gnulib-tool (import): Use compound statement instead of subshell
29382         where possible.
29383
29384 2005-08-24  Bruno Haible  <bruno@clisp.org>
29385
29386         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29387
29388 2005-08-24  Bruno Haible  <bruno@clisp.org>
29389
29390         * gnulib-tool (func_version): Update.
29391
29392 2005-08-24  Bruno Haible  <bruno@clisp.org>
29393
29394         * gnulib-tool (func_import, func_create_testdir,
29395         func_create_megatestdir): Quote all autoconf macro arguments.
29396
29397 2005-08-24  Bruno Haible  <bruno@clisp.org>
29398
29399         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29400         option --force, because --force causes the aclocal.m4 of each
29401         subdirectory to be newer than the corresponding config.h.in.
29402
29403 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29404
29405         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29406         All contents moved to gl_REGEX.
29407         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29408         assume that it does.
29409
29410 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29411
29412         * lib/regex.h (REG_NOSYS)
29413         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29414         Define, since POSIX requires it as of 2001.
29415         (_REG_ENOSYS)
29416         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29417         New private symbol, used to keep the enum signed in all cases.
29418         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29419         Youngman in
29420         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29421
29422         * lib/regex_internal.c (re_string_skip_chars, register_state):
29423         (calc_state_hash):
29424         Remove forward decls; no longer needed now that we use prototypes.
29425         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29426         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29427         (clean_state_log_if_needed): Likewise.
29428
29429 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29430
29431         * config/srclist.txt: Add glibc bugs 1231-1233.
29432
29433 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29434
29435         Fix problems reported by Sam Steingold in
29436         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29437         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29438         assumed that reg_errcode_t is a signed type, which is not
29439         necessarily true if _XOPEN_SOURCE is not defined.
29440         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29441         since some compilers warn about it otherwise.
29442
29443 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29446         (init_word_char, create_initial_state, duplicate_node_closure):
29447         (fetch_token, peek_token_bracket, build_range_exp):
29448         (build_collating_symbol): Remove forward decls; no longer needed
29449         now that we use prototypes.
29450
29451         * lib/regcomp.c:
29452         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29453         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29454         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29455         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29456         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29457         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29458         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29459         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29460         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29461         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29462         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29463         (build_charclass, build_charclass_op, fetch_number, create_tree):
29464         (create_token_tree, mark_opt_subexp, duplicate_tree):
29465         Use prototypes rather than old-style definitions.
29466
29467         * lib/regex_internal.c:
29468         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29469         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29470         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29471         (re_string_reconstruct, re_string_peek_byte_case):
29472         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29473         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29474         (re_node_set_init_copy, re_node_set_add_intersect):
29475         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29476         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29477         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29478         (re_acquire_state, re_acquire_state_context, register_state):
29479         (create_ci_newstate, create_cd_newstate, free_state):
29480         Likewise.
29481         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29482         re_search_2):
29483         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29484         (re_search_internal, prune_impossible_nodes):
29485         (acquire_init_state_context, check_matching, static):
29486         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29487         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29488         (update_regs, sift_states_backward, build_sifted_states):
29489         (clean_state_log_if_needed, merge_state_array):
29490         (update_cur_sifted_state, add_epsilon_src_nodes):
29491         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29492         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29493         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29494         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29495         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29496         (check_arrival, check_arrival_add_next_nodes):
29497         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29498         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29499         (check_node_accept_bytes, check_node_accept, extend_buffers):
29500         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29501         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29502         (sift_ctx_init):
29503         Likewise.
29504
29505         * lib/regex_internal.h:
29506         (re_string_allocate, re_string_construct, re_string_reconstruct):
29507         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29508         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29509         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29510         (re_string_context_at, re_string_peek_byte_case):
29511         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29512         is defined, since we now use prototypes always.
29513
29514         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29515         C89 or better.  All uses removed.
29516
29517 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29518
29519         * config/srclist.txt: Add glibc bugs 1220-1227.
29520
29521 2005-08-20  Jim Meyering  <jim@meyering.net>
29522
29523         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29524         of unused local, dfa.
29525
29526 2005-08-20  Bruno Haible  <bruno@clisp.org>
29527
29528         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29529
29530 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29531
29532         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29533         (re_node_set_insert_last, re_dfa_add_node):
29534         Rename local variables to avoid GCC shadowing warnings.
29535
29536 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29537
29538         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29539         [defined lint]: Suppress bogus uninitialized-variable warnings.
29540
29541         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29542         and let the caller return REG_ESPACE if out of space.  This
29543         removes an uninitialied-variable warning with GCC 4.0.1, and also
29544         avoids taking the address of a local variable.  All callers
29545         changed.
29546
29547 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29548
29549         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29550         $LIBCSRC/posix/regexec.c.
29551         Add glibc bug 1217 for regcomp.c.
29552
29553 2005-08-19  Jim Meyering  <jim@meyering.net>
29554
29555         * lib/regexec.c (proceed_next_node): Redo local variables to
29556         avoid GCC shadowing warnings.
29557
29558 2005-08-18  Bruno Haible  <bruno@clisp.org>
29559
29560         * lib/strstr.c (strstr): Fix return value in multibyte case.
29561         * lib/strcasestr.c (strcasestr): Likewise.
29562
29563 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29564
29565         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29566
29567 2005-08-17  Jim Meyering  <jim@meyering.net>
29568
29569         Make the %s format (seconds since the epoch) work for a negative
29570         number and when used with a zero-padded field width, e.g. %015s.
29571
29572         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29573         label so that it precedes the code to set `digits'.  Otherwise,
29574         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29575         print `00-22'.  Now, it prints `-0022', as it should.
29576
29577 2005-08-17  Bruno Haible  <bruno@clisp.org>
29578
29579         * modules/strstr (Files): Add m4/mbrtowc.m4.
29580         (Depends-on): Add mbuiter.
29581
29582 2005-08-17  Bruno Haible  <bruno@clisp.org>
29583
29584         * modules/strcasestr: New file.
29585         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29586         strcasestr.
29587
29588 2005-08-17  Bruno Haible  <bruno@clisp.org>
29589
29590         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29591
29592 2005-08-17  Bruno Haible  <bruno@clisp.org>
29593
29594         * modules/mbuiter: New file.
29595         * MODULES.html.sh (Extended multibyte and wide character utilities):
29596         Add mbuiter.
29597
29598 2005-08-17  Bruno Haible  <bruno@clisp.org>
29599
29600         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29601         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29602
29603 2005-08-17  Bruno Haible  <bruno@clisp.org>
29604
29605         * m4/strcasestr.m4: New file.
29606
29607 2005-08-17  Bruno Haible  <bruno@clisp.org>
29608
29609         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29610         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29611
29612 2005-08-17  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/strcasestr.h: New file.
29615         * lib/strcasestr.c: New file.
29616
29617 2005-08-17  Bruno Haible  <bruno@clisp.org>
29618
29619         * lib/strcasecmp.c: Use mbuiter.h.
29620
29621 2005-08-17  Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/mbuiter.h: New file.
29624
29625 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29626
29627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29628         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29629         and gl_GETOPT are both invoked via different paths (as happens
29630         with GNU tar CVS because it uses both argp and getopt), the former
29631         wins.
29632
29633 2005-08-16  Bruno Haible  <bruno@clisp.org>
29634
29635         * modules/tls: New file.
29636         * MODULES.html.sh (Multithreading): Add tls.
29637
29638 2005-08-16  Bruno Haible  <bruno@clisp.org>
29639
29640         * modules/strnlen1: New file.
29641         * MODULES.html.sh (String handling): Add strnlen1.
29642
29643 2005-08-16  Bruno Haible  <bruno@clisp.org>
29644
29645         * modules/strcase (Files): Add m4/mbrtowc.m4.
29646         (Depends-on): Add strnlen1, mbchar.
29647
29648 2005-08-16  Bruno Haible  <bruno@clisp.org>
29649
29650         * modules/mbiter: New file.
29651         * MODULES.html.sh (Extended multibyte and wide character utilities):
29652         Add mbiter.
29653
29654 2005-08-16  Bruno Haible  <bruno@clisp.org>
29655
29656         * modules/mbfile: New file.
29657         * MODULES.html.sh (Extended multibyte and wide character utilities):
29658         Add mbfile.
29659
29660 2005-08-16  Bruno Haible  <bruno@clisp.org>
29661
29662         * modules/mbchar: New file.
29663         * MODULES.html.sh (Extended multibyte and wide character utilities):
29664         New section.
29665
29666 2005-08-16  Bruno Haible  <bruno@clisp.org>
29667
29668         * m4/tls.m4: New file, from GNU gettext.
29669
29670 2005-08-16  Bruno Haible  <bruno@clisp.org>
29671
29672         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29673         always.
29674         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29675
29676 2005-08-16  Bruno Haible  <bruno@clisp.org>
29677
29678         * m4/mbiter.m4: New file.
29679
29680 2005-08-16  Bruno Haible  <bruno@clisp.org>
29681
29682         * m4/mbfile.m4: New file.
29683
29684 2005-08-16  Bruno Haible  <bruno@clisp.org>
29685
29686         * m4/mbchar.m4: New file.
29687
29688 2005-08-16  Bruno Haible  <bruno@clisp.org>
29689
29690         * lib/tls.h: New file, from GNU gettext.
29691         * lib/tls.c: New file, from GNU gettext.
29692
29693 2005-08-16  Bruno Haible  <bruno@clisp.org>
29694
29695         * lib/strnlen1.h: New file.
29696         * lib/strnlen1.c: New file.
29697
29698 2005-08-16  Bruno Haible  <bruno@clisp.org>
29699
29700         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29701         (mbi_init): Update.
29702         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29703         NUL byte, not after it.
29704
29705 2005-08-16  Bruno Haible  <bruno@clisp.org>
29706
29707         * lib/strcase.h (strcasecmp): Add note in comments.
29708         * lib/strncasecmp.c: Use code from strcasecmp.c.
29709         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29710         (strcasecmp): Work correctly in multibyte locales.
29711
29712 2005-08-16  Bruno Haible  <bruno@clisp.org>
29713
29714         * lib/mbiter.h: New file.
29715
29716 2005-08-16  Bruno Haible  <bruno@clisp.org>
29717
29718         * lib/mbfile.h: New file.
29719
29720 2005-08-16  Bruno Haible  <bruno@clisp.org>
29721
29722         * lib/mbchar.h: New file.
29723         * lib/mbchar.c: New file.
29724
29725 2005-08-16  Bruno Haible  <bruno@clisp.org>
29726
29727         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29728         the valid ones. Makes the comparison operations transitive:
29729         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29730         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29731
29732 2005-08-15  Simon Josefsson  <jas@extundo.com>
29733
29734         * modules/ssize_t (License): Change to 'unlimited'.
29735
29736         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29737
29738 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29739
29740         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29741         Add comments for each pending glibc patch.
29742
29743 2005-08-15  Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29746         __cplusplus is defined.
29747
29748 2005-08-14  Jim Meyering  <jim@meyering.net>
29749
29750         Sync from coreutils.
29751
29752         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29753         Use the hash-table-based cycle-detection code not just when
29754         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29755         Reported by James Youngman in
29756         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29757         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29758         FTS_TIGHT_CYCLE_CHECK.
29759         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29760         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29761         once again.
29762         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29763         * lib/fts.c (fd_safer): Remove decl.
29764         Include fcntl--.h rather than unistd-safer.h
29765         (fts_safe_changedir): Don't call fd_safer; no longer needed
29766         now that we include fcntl--.h.
29767
29768 2005-08-12  Simon Josefsson  <jas@extundo.com>
29769
29770         * modules/getndelim2: Use ssize_t module.
29771         * modules/getnline: Likewise.
29772         * modules/safe-read: Likewise.
29773         * modules/xreadlink: Likewise.
29774
29775         * modules/ssize_t: New file.
29776
29777 2005-08-12  Simon Josefsson  <jas@extundo.com>
29778
29779         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29780
29781 2005-08-12  Simon Josefsson  <jas@extundo.com>
29782
29783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29784         ssize_t.
29785
29786 2005-08-12  Simon Josefsson  <jas@extundo.com>
29787
29788         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29789         readline, getdelim and check_version.
29790         (Support for systems lacking ISO C 99: Sizes of integer types):
29791         Add size_max.
29792
29793 2005-08-12  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29796
29797 2005-08-11  Simon Josefsson  <jas@extundo.com>
29798
29799         * modules/readline: New file.
29800
29801         * modules/strnlen (Files): Add strnlen.h.
29802
29803 2005-08-11  Simon Josefsson  <jas@extundo.com>
29804
29805         * m4/readline.m4: New file.
29806
29807 2005-08-11  Simon Josefsson  <jas@extundo.com>
29808
29809         * lib/readline.h, readline.c: New file.
29810
29811 2005-08-11  Simon Josefsson  <jas@extundo.com>
29812
29813         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29814         gl_AVOID.
29815
29816 2005-08-11  Bruno Haible  <bruno@clisp.org>
29817
29818         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29819
29820 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29821
29822         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29823
29824 2005-08-10  Simon Josefsson  <jas@extundo.com>
29825
29826         * tests/test-iconvme.c: New file.
29827
29828 2005-08-10  Simon Josefsson  <jas@extundo.com>
29829
29830         * m4/strnlen.m4: New file.
29831
29832         * m4/strndup.m4: Don't check for strnlen declaration, done in
29833         strnlen.m4.
29834
29835 2005-08-10  Simon Josefsson  <jas@extundo.com>
29836
29837         * lib/strndup.c: Use strnlen.h.
29838
29839         * lib/strnlen.h: New file.
29840
29841 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29842
29843         * README: Typos.
29844
29845 2005-08-02  Simon Josefsson  <jas@extundo.com>
29846
29847         * modules/readline: New file.
29848
29849 2005-08-02  Simon Josefsson  <jas@extundo.com>
29850
29851         * modules/getdelim: New file.
29852
29853         * modules/getline: Rewrite, don't use getndelim2.
29854
29855 2005-08-02  Simon Josefsson  <jas@extundo.com>
29856
29857         * m4/getline.m4: Separate out getdelim stuff into separate module.
29858
29859         * m4/getdelim.m4: New file.
29860
29861 2005-08-02  Simon Josefsson  <jas@extundo.com>
29862
29863         * lib/getline.h, getline.c: Rewrite.
29864
29865         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29866
29867 2005-07-31  Bruno Haible  <bruno@clisp.org>
29868
29869         * lib/lock.h (gl_lock_initializer): New macro.
29870         (gl_lock_define_initialized): Use it.
29871         (gl_rwlock_initializer): New macro.
29872         (gl_rwlock_define_initialized): Use it.
29873         (gl_recursive_lock_initializer): New macro.
29874         (gl_recursive_lock_define_initialized): Use it.
29875
29876 2005-07-30  Karl Berry  <karl@gnu.org>
29877
29878         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29879         Report from Ben Pfaff, regarding getopt.
29880
29881 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29882
29883         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29884         normal way.
29885         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29886         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29887         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29888         (gl_GETOPT): Use the new macros.  Most of the implementation
29889         is moved to the new macros.  This is for programs like Emacs
29890         that don't want all the functionality of gl_GETOPT.
29891
29892 2005-07-26  Bruno Haible  <bruno@clisp.org>
29893
29894         * m4/lock.m4: Update from GNU gettext.
29895
29896 2005-07-26  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/lock.h: Update from GNU gettext.
29899         * lib/lock.c: Update from GNU gettext.
29900
29901 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29902
29903         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29904         obsolescent AC_TRY_RUN.  Include the default includes files, for
29905         'exit'.
29906
29907 2005-07-24  Bruno Haible  <bruno@clisp.org>
29908
29909         * modules/visibility: New file.
29910         * MODULES.html.sh (Misc): Add visibility.
29911
29912 2005-07-24  Bruno Haible  <bruno@clisp.org>
29913
29914         * m4/visibility.m4: New file.
29915
29916 2005-07-24  Bruno Haible  <bruno@clisp.org>
29917
29918         * doc/visibility.texi: New file.
29919
29920 2005-07-22  Bruno Haible  <bruno@clisp.org>
29921
29922         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29923         $(ALLOCA_H), redundant through BUILT_SOURCES.
29924         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29925         redundant through BUILT_SOURCES.
29926         * modules/byteswap (Makefile.am): Remove explicit dependency on
29927         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29928         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29929         $(FNMATCH_H), redundant through BUILT_SOURCES.
29930         * modules/getopt (Makefile.am): Remove explicit dependency on
29931         $(GETOPT_H), redundant through BUILT_SOURCES.
29932         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29933         redundant through BUILT_SOURCES.
29934         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29935         redundant through BUILT_SOURCES.
29936         * modules/stdbool (Makefile.am): Remove explicit dependency on
29937         $(STDBOOL_H), redundant through BUILT_SOURCES.
29938         * modules/stdint (Makefile.am): Remove explicit dependency on
29939         $(STDINT_H), redundant through BUILT_SOURCES.
29940         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29941         Remove explicit dependency on $(SYSEXITS_H).
29942         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29943
29944 2005-07-18  Simon Josefsson  <jas@extundo.com>
29945
29946         * lib/check-version.c (check_version): Accept identical versions too.
29947
29948 2005-07-18  Bruno Haible  <bruno@clisp.org>
29949
29950         * modules/lock: New file.
29951         * MODULES.html.sh (Multithreading): New section.
29952
29953 2005-07-18  Bruno Haible  <bruno@clisp.org>
29954
29955         * m4/lock.m4: New file, from GNU gettext.
29956
29957 2005-07-18  Bruno Haible  <bruno@clisp.org>
29958
29959         * lib/lock.h: New file, from GNU gettext.
29960         * lib/lock.c: New file, from GNU gettext.
29961
29962 2005-07-18  Bruno Haible  <bruno@clisp.org>
29963
29964         * lib/lock.h (gl_once_t): New type.
29965         (gl_once_define, gl_once): New macros.
29966         * lib/lock.c (fresh_once): New variable.
29967         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29968         functions.
29969
29970 2005-07-16  Simon Josefsson  <jas@extundo.com>
29971
29972         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29973         workaround, suggested by Bruno.
29974
29975 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29976
29977         * modules/xalloc (Depends-on): Add xalloc-die.
29978         * modules/xvasprintf (Depends-on): Add xalloc-die.
29979
29980 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29983         with a minor change.
29984
29985 2005-07-15  Bruno Haible  <bruno@clisp.org>
29986
29987         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29988         When using lib/poll.c, define poll as rpl_poll.
29989
29990 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29991
29992         * modules/argp (Depends-on): Remove unlocked-io.
29993
29994 2005-07-14  Derek Price  <derek@ximbiot.com>
29995
29996         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29997         for glob symlink bug.
29998
29999 2005-07-14  Bruno Haible  <bruno@clisp.org>
30000
30001         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
30002         Instead, test for *_unlocked function declarations directly.
30003
30004 2005-07-11  Simon Josefsson  <jas@extundo.com>
30005
30006         * modules/size_max: New file.
30007
30008         * modules/xsize: Depend on size_max module for size_max.m4.
30009
30010 2005-07-11  Simon Josefsson  <jas@extundo.com>
30011
30012         * lib/size_max.h: New file.
30013
30014 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
30015
30016         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
30017         copyright symbol and the year.
30018         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
30019         (version_etc_va): Use parameterized copyright notice.
30020         Reword to conform to the current GNU coding standards.
30021
30022 2005-07-11  Karl Berry  <karl@gnu.org>
30023
30024         * doc/gnulib.texi (Quoting): new node.
30025         (Initial import): more info, from Patrice.
30026
30027 2005-07-11  Bruno Haible  <bruno@clisp.org>
30028
30029         * gnulib-tool (func_usage): Document option --avoid.
30030         (Command line options): Handle --avoid.
30031         (func_acceptable): New function.
30032         (func_modules_transitive_closure): Use it.
30033
30034 2005-07-11  Bruno Haible  <bruno@clisp.org>
30035
30036         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
30037         Reported by Jim Meyering.
30038
30039 2005-07-10  Bruno Haible  <bruno@clisp.org>
30040
30041         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
30042         Needed when size_t is smaller than 'unsigned int'.
30043         Reported by Paul Eggert.
30044
30045 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30046
30047         * modules/argp (Depends-on): Add unlocked-io
30048
30049 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
30050
30051         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
30052         block of defines.
30053
30054 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30055
30056         * config/srclist.txt: Comment out regcomp.c, since we have a porting
30057         fix now.
30058
30059 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
30060         and Paul Eggert  <eggert@cs.ucla.edu>
30061
30062         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
30063         in wint_t, not wchar_t.  Remove now-unnecessary cast.
30064
30065 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30066
30067         * modules/regex (Files): Add lib/regex_internal.c,
30068         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
30069         (Depends-on): Add extensions.
30070         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
30071
30072 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30073
30074         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
30075         pathconf.
30076         * m4/same.m4 (gl_SAME): Likewise.
30077         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
30078
30079         * m4/regex.m4: Adjust to new libc regex implementation.
30080         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
30081         all the .c and .h parts of (the new) regex.
30082         Quote the m4 stuff better.
30083         Check for RE_ICASE bug of old gnulib.
30084         Check for REG_STARTEND of recent libc.
30085         Rename local variables from jm_* to gl_*.
30086         Quote operand of "test -f".
30087         Say "recent enough" version of libc, not "version 2".
30088         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
30089         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
30090         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
30091         Remove check for btowc, isascii.
30092         Require AM_LANGINFO_CODESET.
30093
30094 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30095
30096         * lib/regex.c, regex.h: Sync from libc.
30097         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
30098         * lib/regexec.c:
30099         New files, synced from libc, except that regex_internal.h
30100         currently has a small porting fix.
30101
30102 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
30105         regex_internal.c, regexec.c.
30106         Add regex_internal.h too, but as a comment, since the libc version
30107         is currently broken in gnulib mode.
30108
30109 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30110
30111         Support programs like Emacs that use gnulib but not gettext.
30112         * MODULES.html.sh (Internationalization functions): Add gettext-h.
30113         * modules/gettext-h: New file.
30114         * modules/gettext (Files): Remove lib/gettext.h.
30115         (Depends-on): Add gettext-h.
30116         (Makefile.am): Remove lib_SOURCES.
30117         * modules/argmatch, modules/c-stack, modules/closeout:
30118         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
30119         * modules/execute, modules/file-type, modules/getaddrinfo:
30120         * modules/getopt, modules/human, modules/javacomp:
30121         * modules/javaexec, modules/mkdir-p, modules/obstack:
30122         * modules/openat, modules/pagealign_alloc, modules/pipe:
30123         * modules/quotearg, modules/regex, modules/rpmatch:
30124         * modules/unicodeio, modules/userspec, modules/version-etc:
30125         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
30126         * modules/xsetenv:
30127         Depend on gettext-h, not gettext.
30128
30129 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30130
30131         * gnulib-tool (func_import): Add support for 'public domain' license.
30132         * modules/alloca, modules/atexit, modules/memmove:
30133         Now public domain, not GPL.
30134         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
30135         * modules/realloc, modules/strerror, modules/strtod:
30136         Now LGPL, not GPL.
30137
30138 2005-07-05  Bruno Haible  <bruno@clisp.org>
30139
30140         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
30141         autoconf CVS. Needed for mingw.
30142
30143 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30144
30145         Remove the dependency of the strftime module on the tzset module.
30146         * modules/strftime (Depends-on): Remove dependency on tzset.
30147
30148 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30149
30150         Remove the dependency of the strftime module on the tzset module.
30151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
30152         gl_FUNC_TZSET_CLOBBER.
30153
30154 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         Remove the dependency of the strftime module on the tzset module.
30157         * lib/strftime.c (my_strftime)
30158         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30159         Copy the input structure, to work around some of the bug with
30160         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30161         Solaris releases, you should also use the tzset module, but we won't
30162         require it as a dependency any more since we don't want LGPLed code
30163         to depend on GPLed code.
30164
30165 2005-07-02  Jim Meyering  <jim@meyering.net>
30166
30167         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30168         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30169         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30170         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30171
30172 2005-07-02  Jim Meyering  <jim@meyering.net>
30173
30174         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30175
30176 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30177
30178         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30179         declares only 'struct timespec;' (!).
30180
30181 2005-07-01  Jim Meyering  <jim@meyering.net>
30182
30183         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30184         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30185         * lib/save-cwd.c, tempname.c:
30186         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30187         and don't include <sys/file.h>).
30188
30189 2005-06-29  Jim Meyering  <jim@meyering.net>
30190
30191         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30192         type name.  Use the variable name instead.
30193         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30194         Likewise.
30195
30196 2005-06-28  Simon Josefsson  <jas@extundo.com>
30197
30198         * modules/check-version (Files): Add check-version.m4.
30199
30200 2005-06-28  Simon Josefsson  <jas@extundo.com>
30201
30202         * m4/check-version.m4: New file, suggested by Jim Meyering
30203         <jim@meyering.net>.
30204
30205 2005-06-28  Simon Josefsson  <jas@extundo.com>
30206
30207         * lib/check-version.h, lib/check-version.c: New files.
30208
30209 2005-06-28  Simon Josefsson  <jas@extundo.com>
30210
30211         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30212         collision with global variable.  Better indentation.  Don't
30213         increment buffer pointer beyond buffer end.  Based on comments
30214         from Paul Eggert <eggert@cs.ucla.edu>.
30215
30216         * lib/base64.h: Indent.
30217
30218 2005-06-28  Simon Josefsson  <jas@extundo.com>
30219
30220         * doc/gnulib.texi (Library version handling): New section.
30221
30222 2005-06-28  Jim Meyering  <jim@meyering.net>
30223
30224         * check-module (find_included_lib_files): Hard-code another
30225         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30226         but modules/fts-lgpl (correctly) does not list those files.
30227
30228         * modules/canonicalize (Files): Add lib/pathmax.h.
30229
30230 2005-06-25  Simon Josefsson  <jas@extundo.com>
30231
30232         * modules/check-version: New file.
30233
30234 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30235
30236         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30237         initializer of struct addrinfo, as an indication that we don't
30238         care how many members the structure has.
30239
30240 2005-06-24  Derek Price  <derek@ximbiot.com>
30241         and Bruno Haible  <bruno@clisp.org>
30242
30243         Remove stat module & update lstat.
30244         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30246         * m4/stat.m4: Remove this file.
30247
30248 2005-06-24  Derek Price  <derek@ximbiot.com>
30249         and Bruno Haible  <bruno@clisp.org>
30250
30251         Remove stat module & update lstat.
30252         * lib/stat.c: Remove this file...
30253         (slash_aware_lstat): ...moving this content and its support...
30254         * lib/lstat.c (rpl_lstat): ...into here.
30255         * lib/lstat.h: New file.
30256
30257 2005-06-24  Derek Price  <derek@ximbiot.com>
30258         and Bruno Haible  <bruno@clisp.org>
30259
30260         Remove stat module & update lstat.
30261         * config/srclist.txt (libc sources): Remove stat.
30262
30263 2005-06-24  Derek Price  <derek@ximbiot.com>
30264         and Bruno Haible  <bruno@clisp.org>
30265
30266         Remove stat module & update lstat.
30267         * MODULES.html.sh (stat): Remove.
30268         * MODULES.html: Regenerated.
30269         * modules/lstat (Description): Correct function name.
30270         (Files): Add "lstat.h".
30271         (Depends-on): Remove stat, add xalloc, stat-macros.
30272         * modules/stat: Remove this file.
30273         (Include): Add "lstat.h", remove <sys/stat.h>.
30274
30275 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30276
30277         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30278         (ranged_convert): Don't save conversion in a temporary struct.
30279         This causes a warning with GCC 4.0.0, and anyway in the typical
30280         case it's not worth the extra 100 bytes or so of code.
30281         (ranged_convert, __mktime_internal): When calling a function via a
30282         pointer P, use P () rather than (*P) (), as we now assume C89 or
30283         better.
30284
30285 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30286
30287         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30288         "who -r" failed to give output.  Problem reported by Tim Waugh.
30289
30290         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30291         (xcalloc): Use it to avoid needless tests.
30292         Problem reported by Jim Meyering.
30293
30294 2005-06-20  Derek Price  <derek@ximbiot.com>
30295
30296         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30297         unnecessary for Autoconfs > 2.59c.
30298
30299 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30300
30301         * lib/argp.h (__option_is_short): Check upper limit of
30302         __key. Isprint() requires its argument to have the value
30303         of an unsigned char or EOF.
30304
30305 2005-06-16  Jim Meyering  <jim@meyering.net>
30306
30307         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30308         when either N or S is zero.
30309
30310 2005-06-16  Derek Price  <derek@ximbiot.com>
30311
30312         * m4/bison.m4: Declare YACC & YFLAGS precious.
30313
30314 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30315
30316         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30317         multibyte string or pattern, fall back on unibyte matching.
30318         Problem reported by James Youngman.
30319
30320 2005-06-08  Bruno Haible  <bruno@clisp.org>
30321
30322         * modules/csharpcomp: New file.
30323         * MODULES.html.sh (C#): Add csharpcomp.
30324
30325 2005-06-08  Bruno Haible  <bruno@clisp.org>
30326
30327         * m4/csharpcomp.m4: New file, from GNU gettext.
30328
30329 2005-06-08  Bruno Haible  <bruno@clisp.org>
30330
30331         * lib/csharpcomp.h: New file, from GNU gettext.
30332         * lib/csharpcomp.c: New file, from GNU gettext.
30333         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30334
30335 2005-06-08  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30338         warning on mingw.
30339
30340 2005-06-07  Derek Price  <derek@ximbiot.com>
30341
30342         Sync from CVS.
30343         * lib/glob_.h: Indent nested #ifdef.
30344
30345 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30346
30347         Sync from coreutils.
30348         Use "file name" when talking about file names, instead of "filename"
30349         or "path", as per the GNU coding standards.
30350         * lib/mkdir-p.c: Renamed from makepath.c.
30351         (make_dir_parents): Renamed from make_path.  All callers changed.
30352         * lib/mkdir-p.h: Likewise.  All includers changed.
30353         * lib/filenamecat.c: Renamed from path-concat.c.
30354         (file_name_concat): Renamed from path_concat.  All callers changed.
30355         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30356         * lib/filenamecat.h: Likewise.  All includers changed.
30357         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30358         in comments or local variable names.
30359         * lib/basename.c: Likewise.
30360         * lib/canonicalize.c, canonicalize.h: Likewise.
30361         * lib/dirname.c, dirname.h: Likewise.
30362         * lib/euidaccess.c: Likewise.
30363         * lib/exclude.c: Likewise
30364         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30365         * lib/fsusage.c, fsuage.h: Likewise.
30366         * lib/fts.c, fts_.h: Likewise.
30367         * lib/getcwd.c: Likewise.
30368         * lib/getloadavg.c: Likewise.
30369         * lib/mkstemp.c: Likewise.
30370         * lib/mountlist.c, mountlist.h: Likewise.
30371         * lib/openat.c, openat.h: Likewise.
30372         * lib/readlink-stub.c: Likewise.
30373         * lib/readutmp.c, readutmp.h: Likewise.
30374         * lib/rename.c: Likewise.
30375         * lib/rmdir.c: Likewise.
30376         * lib/same.c: Likewise.
30377         * lib/savedir.c: Likewise.
30378         * lib/stripslash.c: Likewise.
30379         * lib/tempname.c: Likewise.
30380         * lib/xreadlink.c: Likewise.
30381         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30382         All uses changed.
30383         * lib/exclude.h: Likewise.
30384
30385         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30386         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30387         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30388         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30389         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30390         files have been getting away with it for years (MORE/BSD 4.3
30391         is extinct now).
30392         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30393         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30394
30395         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30396         Define to 256, not 255, as per modern POSIX.
30397
30398 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30399
30400         Sync from coreutils.
30401         Use "file name" when talking about file names, instead of "filename"
30402         or "path", as per the GNU coding standards.
30403         * MODULES.html.sh: mkdir-p renamed from makepath.
30404         filenamecat renamed from path-concat.
30405         * modules/filenamecat: Renamed from modules/path-concat.
30406         (Files): filenamecat.h and filenamecat.c renamed from
30407         path-concat.h and path-concat.c.
30408         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30409         (Include): filenamecat.h, not path-concat.h.
30410         * modules/mkdir-p: Renamed from modules/makepath.
30411         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30412         makepath.c.
30413         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30414         (Include): mkdir-p.h, not makepath.h.
30415
30416 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30417
30418         Sync from coreutils.
30419         * m4/mkdir-p.m4: Renamed from makepath.m4.
30420         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30421         Rename files from makepath.c to mkdir-p.c, and from
30422         makepath.h to mkdir-p.h.
30423         * m4/filenamecat.m4: Renamed from path-concat.m4.
30424         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30425         Rename files from path-concat.c to filenamecat.c,
30426         and from path-concat.h to filenamecat.h.
30427         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30428         "file name" in local variables or comments.
30429         * m4/rename.m4: Likewise.
30430
30431 2005-06-01  Bruno Haible  <bruno@clisp.org>
30432
30433         * modules/csharpexec: New file.
30434         * MODULES.html.sh (C#): New section.
30435
30436 2005-06-01  Bruno Haible  <bruno@clisp.org>
30437
30438         * m4/csharp.m4: New file, from GNU gettext.
30439         * m4/csharpexec.m4: New file, from GNU gettext.
30440
30441 2005-06-01  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/csharpexec.h: New file, from GNU gettext.
30444         * lib/csharpexec.c: New file, from GNU gettext.
30445         * lib/csharpexec.sh.in: New file, from GNU gettext.
30446
30447 2005-05-31  Derek Price  <derek@ximbiot.com>
30448             Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         Sync from cvs.
30451         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30452
30453 2005-05-31  Derek Price  <derek@ximbiot.com>
30454             Paul Eggert  <eggert@cs.ucla.edu>
30455
30456         Sync from cvs.
30457         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30458
30459 2005-05-29  Derek Price  <derek@ximbiot.com>
30460
30461         * config/srclist.txt (glob_.h, glob.c): Add these files.
30462
30463 2005-05-29  Derek Price  <derek@ximbiot.com>
30464
30465         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30466         * modules/glob: New file.
30467         * modules/getlogin_r: Add link to POSIX spec in description.
30468
30469 2005-05-29  Derek Price  <derek@ximbiot.com>
30470             Paul Eggert  <eggert@cs.ucla.edu>
30471
30472         * m4/glob.m4: New file.
30473
30474 2005-05-29  Derek Price  <derek@ximbiot.com>
30475             Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         * lib/glob_.h, lib/glob.c: New files.
30478
30479 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30480
30481         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30482         * modules/fts-lgpl (Depends-on): Remove gettext.
30483
30484 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30485
30486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30487         and don't require gt_INTTYPES_PRI.
30488
30489 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30490
30491         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30492
30493         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30494         the configuration hassle isn't worth it.
30495         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30496         (LONGEST_MODIFIER, PRIuMAX): Remove.
30497
30498 2005-05-27  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30501
30502 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30503
30504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30505         _POSIX_PTHREAD_SEMANTICS for Solaris.
30506
30507 2005-05-25  Derek Price  <derek@ximbiot.com>
30508
30509         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30510
30511 2005-05-25  Derek Price  <derek@ximbiot.com>
30512             Paul Eggert  <eggert@cs.ucla.edu>
30513
30514         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30515         * lib/getlogin_r.c, getlogin_r.h: New files.
30516
30517 2005-05-25  Bruno Haible  <bruno@clisp.org>
30518             Derek Price  <derek@ximbiot.com>
30519
30520         * lib/getlogin_r.h: Simplify API documentation.
30521
30522 2005-05-23  Derek Price  <derek@ximbiot.com>
30523
30524         * modules/minmax (Files): Add m4/minmax.m4.
30525         (configure.ac): Add gl_MINMAX.
30526
30527 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30528
30529         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30530         so that unistd-safer.h (GPL'ed code) need not be included.
30531
30532 2005-05-22  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/minmax.m4: New file.
30535         Based on a patch by Derek Price <derek@ximbiot.com>.
30536
30537 2005-05-22  Bruno Haible  <bruno@clisp.org>
30538
30539         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30540         (INT64_MIN): Fix definition.
30541         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30542
30543         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30544         NEED_SIGNED_INT_TYPES.
30545
30546         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30547         HAVE_SYSTEM_INTTYPES.
30548
30549 2005-05-22  Bruno Haible  <bruno@clisp.org>
30550
30551         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30552         Also include <sys/param.h> if it defines MIN, MAX.
30553         Based on a patch by Derek Price <derek@ximbiot.com>.
30554
30555 2005-05-21  Jim Meyering  <jim@meyering.net>
30556
30557         * modules/fts (Files): Add m4/inttypes-pri.m4.
30558         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30559
30560 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30561
30562         New fts module.
30563         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30564         (setup_dir, free_dir): New functions.
30565         (enter_dir, leave_dir): Define trivial
30566         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30567         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30568         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30569         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30570         Move to fts-cycle.c.
30571         (fts_open): Use setup_dir.
30572         (fts_close): Use free_dir.
30573         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30574         This adds a label and some gotos, but the alternatives were messier.
30575         Check for memory allocation failure when entering a dir.
30576         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30577         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30578         (FTS): New member fts_cycle, that is a union that contains the
30579         old active_dir_ht and cycle_state.  All uses changed to mention
30580         fts_cycle.ht and fts_cycle.state.
30581         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30582         fts.c, with the following changes:
30583         (setup_dir, free_dir): New functions.
30584         (enter_dir): Now returns bool.  Return true if successful, false
30585         if memory exhausted.  All callers changed.
30586         Do not bother partly cleaning up on
30587         memory allocation failure; that is free_dir's job.
30588         However, free ad if hash_insert fails, to avoid memory leak.
30589         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30590         fts->fts_options to see which union member to use.
30591
30592 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30593
30594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30595         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30596
30597 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30598
30599         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30600
30601 2005-05-20  Jim Meyering  <jim@meyering.net>
30602
30603         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30604         Now a macro, to pacify GCC.
30605
30606 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30607
30608         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30609         of -1.
30610
30611 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30612
30613         * lib/chown.c (rpl_chown): Return -1 on failure.
30614
30615 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30616
30617         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30618         Don't check for stddef.h.
30619         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30620         don't use its results.
30621         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30622         since we include them unconditionally.  Don't require
30623         AM_STDBOOL_H, since stdbool is a prerequisite.
30624         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30625         since we assume C89 or better.
30626         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30627         as we don't use their results.
30628         Don't check for fchdir, memmove, memset, strrchr, as we use
30629         them unconditionally.
30630         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30631         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30632
30633 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30634
30635         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30636         Include <stddef.h> unconditionally, since we assume C89 now.
30637         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30638         * lib/fts.c: Include fts_.h first, to check interface.
30639         Do not include intprops.h; no longer needed.
30640         Include cycle-check.h and hash.h, since fts_.h no longer does.
30641         Remove unnecessary casts of closedir to void.
30642         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30643         decide whether to decrement nlinks.
30644         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30645         (FTS): Use struct hash_table * instead of Hash_table, so that
30646         we no longer need to include hash.h here.
30647
30648 2005-05-18  Jim Meyering  <jim@meyering.net>
30649
30650         * modules/dirfd (License): Change to LGPL.  Most of the code
30651         is already in the public domain.
30652
30653 2005-05-18  Jim Meyering  <jim@meyering.net>
30654
30655         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30656         Reported by Yoann Vandoorselaere.
30657
30658 2005-05-17  Jim Meyering  <jim@meyering.net>
30659
30660         * m4/fts.m4: New file, from coreutils.
30661
30662 2005-05-17  Jim Meyering  <jim@meyering.net>
30663
30664         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30665
30666 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30667
30668         Sync from coreutils.
30669         * m4/unlinkdir.m4: New file.
30670
30671 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30672
30673         Sync from coreutils.
30674         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30675         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30676         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30677         White space changes only.
30678         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30679         special.
30680         * lib/yesno.c: Include getline.h, not ctype.h.
30681         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30682         Use getline to remove arbitrary restriction on response length.
30683
30684 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30685
30686         * config/srclist-update: Spell out "Street" in FSF postal
30687         mail address; this is the style the FSF seems to prefer.
30688
30689         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30690         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30691         this updates FSF postal mail address.
30692
30693         Sync from coreutils.
30694         * modules/unlinkdir: New file.
30695         * modules/yesno (Depends-on): Add getline.
30696         * MODULES.html.sh (File system functions): Add unlinkdir.
30697
30698 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30699
30700         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30701         lib/strsep.h:
30702         Change the initial comment to refer to GPL, not LGPL.
30703         gnulib-tool will change it to LGPL as needed.
30704
30705         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30706         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30707         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30708         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30709         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30710         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30711         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30712         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30713         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30714         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30715         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30716         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30717         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30718         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30719         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30720         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30721         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30722         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30723         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30724         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30725         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30726         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30727         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30728         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30729         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30730         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30731         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30732         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30733         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30734         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30735         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30736         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30737         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30738         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30739         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30740         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30741         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30742         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30743         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30744         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30745         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30746         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30747         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30748         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30749         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30750         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30751         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30752         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30753         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30754         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30755         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30756         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30757         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30758         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30759         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30760         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30761         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30762         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30763         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30764         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30765         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30766         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30767         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30768         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30769         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30770         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30771         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30772         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30773         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30774         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30775         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30776         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30777         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30778         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30779         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30780         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30781         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30782         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30783         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30784         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30785         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30786         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30787         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30788         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30789         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30790         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30791         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30792         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30793         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30794         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30795         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30796         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30797         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30798         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30799         lib/yesno.c, lib/yesno.h:
30800         Update FSF postal mail address.
30801
30802 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30803
30804         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30805         tests/test-memmem.c, tests/test-stpncpy.c:
30806         Update FSF postal mail address.
30807
30808 2005-05-13  Bruno Haible  <bruno@clisp.org>
30809
30810         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30811         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30812         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30813         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30814         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30815         Add support for 64-bit integers in the MSVC compiler.
30816
30817 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30818
30819         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30820
30821 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30822
30823         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30824
30825 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         * doc/getdate.texi (General date syntax): Don't say that date
30828         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30829         Problem reported by Nic Ferrier.
30830
30831 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30832
30833         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30834         specified in ai_socktype. Fix invalid ai_protocol
30835         check. ai_protocol is usually set to 0 or depending on
30836         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30837         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30838         ai_socktype / ai_protocol in the returned addrinfo structure.
30839
30840 2005-05-10  Simon Josefsson  <jas@extundo.com>
30841
30842         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30843         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30844
30845 2005-05-10  Karl Berry  <karl@gnu.org>
30846
30847         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30848         (from http://www.gnu.org/licenses).
30849         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30850         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30851         fdl.texi suffices.
30852
30853 2005-05-10  Karl Berry  <karl@gnu.org>
30854
30855         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30856         (COPYING.DOC): remove.
30857
30858         * config/srclist-update: new FSF address.
30859
30860 2005-05-10  Derek Price  <derek@ximbiot.com>
30861
30862         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30863         possible.
30864
30865 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30866             Bruno Haible  <bruno@clisp.org>
30867
30868         * modules/inet_ntop: New file.
30869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30870         inet_ntop.
30871
30872 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30873             Bruno Haible  <bruno@clisp.org>
30874
30875         * m4/inet_ntop.m4: New file.
30876
30877 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30878             Bruno Haible  <bruno@clisp.org>
30879
30880         * lib/inet_ntop.h: New file.
30881         * lib/inet_ntop.c: New file, from glibc with modifications.
30882
30883 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30884
30885         * modules/time_r (License): Change to LGPL.
30886         * modules/extensions (License): Change to LGPL.  Actually,
30887         the license is more permissive than that, but currently gnulib-tool
30888         doesn't know how to handle more-permissive licenses.
30889
30890         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30891         Problem reported by Dave Love.
30892
30893 2005-05-08  Jim Meyering  <jim@meyering.net>
30894
30895         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30896         blank.
30897
30898 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30899
30900         * modules/argmatch (Depends-on): Add stdbool.
30901         * modules/backupfile (Depends-on): Likewise.
30902         * modules/chdir-long (Depends-on): Likewise.
30903         * modules/closeout (Depends-on): Likewise.
30904         * modules/cycle-check (Depends-on): Likewise.
30905         * modules/dirname (Depends-on): Likewise.
30906         * modules/fnmatch (Depends-on): Likewise.
30907         * modules/fsusage (Depends-on): Likewise.
30908         * modules/fwriteerror (Depends-on): Likewise.
30909         * modules/getcwd (Depends-on): Likewise.
30910         * modules/getloadavg (Depends-on): Likewise.
30911         * modules/hard-locale (Depends-on): Likewise.
30912         * modules/makepath (Depends-on): Likewise.
30913         * modules/mountlist (Depends-on): Likewise.
30914         * modules/nanosleep (Depends-on): Likewise.
30915         * modules/posixtm (Depends-on): Likewise.
30916         * modules/quotearg (Depends-on): Likewise.
30917         * modules/readtokens (Depends-on): Likewise.
30918         * modules/readtokens0 (Depends-on): Likewise.
30919         * modules/readutmp (Depends-on): Likewise.
30920         * modules/save-cwd (Depends-on): Likewise.
30921         * modules/strftime (Depends-on): Likewise.
30922         * modules/userspec (Depends-on): Likewise.
30923         * modules/utimecmp (Depends-on): Likewise.
30924         * modules/xgetcwd (Depends-on): Likewise.
30925         * modules/xnanosleep (Depends-on): Likewise.
30926         * modules/xstrtod (Depends-on): Likewise.
30927         * modules/yesno (Depends-on): Likewise.
30928
30929 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30930
30931         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30932         needless checks.
30933
30934 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30935
30936         Merge from coreutils.  Among other things,
30937         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30938         * lib/fd-safer.c: New file.
30939         * lib/fcntl-safer.h, open-safer.c: Remove.
30940         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30941         * lib/dup-safer.c: Include unistd-safer.h first.
30942         Don't include errno.h.
30943         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30944         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30945         * lib/file-type.c: Rely on file-type.h change.
30946         * lib/getloadavg.c: Include unistd-safer.h.
30947         (getloadavg): Use safer open.
30948         * lib/getusershell.c: Include "stdio-safer.h".
30949         (getusershell): Use safer fopen.
30950         * lib/long-options.c (long_options): Use NULL rather than 0.
30951         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30952         'free'.
30953         * lib/modechange.c: Likewise.
30954         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30955         (MODE_DONE): New constant.
30956         (struct mode_change): Remove 'next' member.
30957         (make_node_op_equals): New function; like the old one of the
30958         same name, except it allocates an array.
30959         (mode_compile, mode_create_from_ref): Use it.
30960         (mode_compile): Allocate result as an array, not a linked list.
30961         Parse octal string ourself, so that we catch mistakes like "+0".
30962         (mode_adjust): Arg is an array, not a linked list.
30963         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30964         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30965         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30966         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30967         Remove.  This is now stat-macros.h's job.
30968         (talloc): Remove.  All callers replaced by xalloc, so that
30969         our invokers don't have to worry about reporting memory failures.
30970         (make_node_op_equals): Remove.
30971         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30972         New constants.
30973         (struct mode_change): Moved here from modechange.h.
30974         (mode_append_entry): Remove.
30975         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30976         apps to have incorrect behavior.  Use simpler algorithm for head
30977         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30978         Detect more invalid usages rather than having somewhat-random behavior.
30979         Don't insert an "a=" action, as that leads to incorrect behavior.
30980         (mode_compile, mode_create_from_ref): Return NULL on error instead
30981         of an enum, since now there's only one way to have an error.  All
30982         callers changed.
30983         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30984         at the correct time.  Simplify calculation of "+u" and its ilk.
30985         Don't mishandle "+X".
30986         (mode_free): Remove "register" and localize decls.
30987         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30988         (struct mode_change): Move to modechange.c; callers don't
30989         need to see this stuff.
30990         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30991         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30992         (mode_change, mode_adjust): Reflect the new signatures noted above.
30993         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30994         that might redefine system include files.
30995         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30996         (my_usleep): Use NULL rather than (void *) 0.
30997         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30998         Use siginterrupt to specify that system calls should be interrupted.
30999         (rpl_nanosleep): Move initialization of suspended closer to call of
31000         my_usleep.
31001         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
31002         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
31003         (desirable_utmp_entry): New function.
31004         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
31005         using x2nrealloc, to simplify logic.
31006         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
31007         size calculation.  Do not assume utmp file is a regular file.
31008         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
31009         (READ_UTMP_CHECK_PIDS): New constant.
31010         * lib/save-cwd.c: Include unistd-safer.h.
31011         (save_cwd): Use fd_safer.
31012         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
31013         [!_LIBC] Include "stat-macros.h" instead.
31014         * lib/unistd-safer.h (fd_safer): New decl.
31015
31016 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31017
31018         * modules/getloadavg (Depends-on): Add unistd-safer.
31019         * modules/getusershell (Depends-on): Add stdio-safer.
31020         * modules/lstat (Depends-on): Remove xalloc.
31021         * modules/mkstemp (Depends-on): Add stat-macros.
31022         * modules/modechange (Depends-on): Remove xstrtol.
31023         Add stat-macros, xalloc.
31024         * modules/save-cwd (Depends-on): Add unistd-safer.
31025         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
31026         * modules/unistd-safer (Files): Add lib/fd-safer.c
31027         (Makefile.am): Remove lib_SOURCES.
31028
31029         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
31030         Remove fcntl-safer; unistd-safer supersedes it.
31031
31032 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31033
31034         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
31035         AC_HEADER_STAT.
31036         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
31037         (gl_PREREQ_CHOWN): Remove.
31038         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
31039         it.  Don't require AC_HEADER_STAT.
31040         (gl_PREREQ_LSTAT): Remove.
31041         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
31042         Don't require AC_HEADER_STAT.
31043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
31044         (gl_PREREQ_RMDIR): Remove.
31045         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
31046         mention stat-macros.h or AC_HEADER_STAT, since we'll make
31047         the stat-macros module a prerequisite.
31048         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
31049         * m4/filemode.m4 (gl_FILEMODE): Likewise.
31050         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
31051         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
31052         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
31053         variable names.
31054         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
31055         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
31056         variable prefixes.
31057         * m4/fcntl-safer.m4: Remove.
31058         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
31059         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
31060         Invoke gl_PREREQ_FD_SAFER.
31061         (gl_PREREQ_FD_SAFER): New macro.
31062         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
31063         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
31064         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
31065         Remove duplicate call to AC_LIBOBJ(readutmp).
31066         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
31067
31068         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
31069         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
31070
31071 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * MODULES.html.sh (Misc): Add byteswap.
31074
31075 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31076
31077         * modules/getcwd (Depends-on): Add extensions.
31078         * modules/openat (Depends-on): Likewise.
31079
31080 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31081
31082         * modules/byteswap: New file.
31083
31084 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31085
31086         * m4/byteswap.m4: New file.
31087
31088 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
31089
31090         * lib/byteswap_.h: New file.
31091
31092 2005-04-25  Karl Berry  <karl@gnu.org>
31093
31094         * m4/gettext.m4: Update from GNU gettext 0.14.4.
31095
31096 2005-04-25  Albert Chin  <china@thewrittenword.com>
31097
31098         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
31099         Toolkit C bug.
31100
31101 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
31102
31103         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
31104         (func_ln_if_changed) Remove forcibly for no error message
31105         in case file does not exist.
31106
31107 2005-04-19  Simon Josefsson  <jas@extundo.com>
31108
31109         * gnulib-tool (Options): Make --symlink mean --symbolic.
31110
31111 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
31112
31113         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
31114
31115 2005-04-16  Simon Josefsson  <jas@extundo.com>
31116
31117         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
31118
31119 2005-04-15  Simon Josefsson  <jas@extundo.com>
31120
31121         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
31122
31123 2005-04-15  Simon Josefsson  <jas@extundo.com>
31124
31125         * gnulib-tool: Rename --symlink to --symbolic.
31126
31127 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
31128
31129         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
31130         symbolic links to files instead of copying/moving.  Add --aux-dir,
31131         specifying directory relative --dir where auxiliary build tools
31132         are placed.
31133
31134 2005-04-14  Bruno Haible  <bruno@clisp.org>
31135
31136         * modules/allocsa (License): Change to LGPL.
31137         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31138
31139 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31140
31141         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
31142         that "UTC +1 second" continues to work.  Problem reported
31143         by Dmitry V. Levin.
31144         (relunit_snumber): New rule.
31145         (relunit): Use it.
31146
31147 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31148
31149         * lib/getdate.y (universal_time_zone_table): New constant.
31150         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
31151         universal_time_zone_table.
31152         (lookup_zone): Prefer universal_time_zone_table to
31153         local_time_zone_table, so that "GMT" time stamps are allowed in
31154         London during the summer.  Problem reported by Ian Abbott.
31155
31156 2005-04-12  Jim Meyering  <jim@meyering.net>
31157
31158         * lib/human.c (humblock): Set *options even when returning due to
31159         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31160         warning from gcc-4.
31161
31162 2005-04-09  Jim Meyering  <jim@meyering.net>
31163
31164         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31165         -Wuninitialized: initialize tm0.tm_year.
31166
31167 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31170         count, since there's no maximum.  All uses changed.
31171         Add member dsts_seen.
31172         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31173         not being INT_MAX.
31174         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31175         Use pc_rels_seen to decide whther a date is absolute.
31176
31177         * lib/getdate.y (number): Don't overwrite year.
31178         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31179         check.
31180
31181 2005-04-02  Simon Josefsson  <jas@extundo.com>
31182
31183         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31184         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31185
31186 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31187
31188         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31189         where no absolute path name can be longer than PATH_MAX.
31190
31191 2005-03-27  Jim Meyering  <jim@meyering.net>
31192
31193         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31194
31195 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31196
31197         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31198         "one's complement" -> "ones' complement" in comment, as per Knuth.
31199         "value of type" -> "type or expression" in comment.
31200         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31201
31202 2005-03-26  Jim Meyering  <jim@meyering.net>
31203
31204         Comment nits.
31205         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31206         Correct typos: s/or/of/.
31207
31208 2005-03-26  Jim Meyering  <jim@meyering.net>
31209
31210         * modules/check-include-files: Move to ../ and rename to...
31211         * check-module: ...this.
31212
31213 2005-03-25  Jim Meyering  <jim@meyering.net>
31214
31215         * modules/xvasprintf (Files): Add xalloc.h.
31216
31217 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31218
31219         * modules/gettext (Files): config/config.rpath ->
31220         build-aux/config.rpath
31221         * modules/iconv (Files): Likewise.
31222         Problem reported by Oskar Liljeblad.
31223
31224 2005-03-23  Jim Meyering  <jim@meyering.net>
31225
31226         * modules/check-include-files: New script to check for
31227         missing dependencies, multiple includes, etc.
31228
31229         * modules/c-strtold (Depends-on): Add xalloc.
31230         * modules/c-strtod (Depends-on): Add xalloc.
31231         * modules/hash (Depends-on): Add xalloc.
31232         (Files): Remove lib/xalloc.h.
31233
31234         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31235         * modules/userspec (Files): Add lib/inttostr.h.
31236
31237 2005-03-23  Jim Meyering  <jim@meyering.net>
31238
31239         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31240
31241 2005-03-22  Jim Meyering  <jim@meyering.net>
31242
31243         * modules/stat-macros: New module.
31244         * modules/canonicalize, modules/euidaccess, modules/file-type,
31245         * modules/filemode, modules/lchown, modules/makepath,
31246         * modules/rmdir, modules/stat: Depend on new stat-macros module
31247         rather than listing lib/stat-macros.h manually.
31248         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31249
31250 2005-03-22  Jim Meyering  <jim@meyering.net>
31251
31252         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31253
31254 2005-03-22  Bruno Haible  <bruno@clisp.org>
31255
31256         * config/srclist.txt: Replace target directory 'config' with
31257         'build-aux'.
31258         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31259         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31260         ../build-aux/.
31261
31262 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31263
31264         * modules/chdir-long (Depends-on): Add mempcpy.
31265
31266         * modules/acl, modules/backupfile, modules/c-strtod,
31267         modules/c-strtold, modules/canon-host, modules/canonicalize,
31268         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31269         modules/exclude, modules/exitfail, modules/file-type,
31270         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31271         modules/getdate, modules/getline, modules/getpagesize,
31272         modules/getpass, modules/getugroups, modules/group-member,
31273         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31274         modules/inttostr, modules/long-options, modules/makepath,
31275         modules/md5, modules/memcasecmp, modules/memcoll,
31276         modules/modechange, modules/mountlist, modules/path-concat,
31277         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31278         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31279         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31280         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31281         modules/strftime, modules/strndup, modules/strverscmp,
31282         modules/timespec, modules/unlocked-io, modules/userspec,
31283         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31284         modules/yesno:
31285         Remove lib_SOURCES line from Makefile.am section, as this is now
31286         done automatically by the corresponding Autoconf macro.
31287
31288 2005-03-21  Jim Meyering  <jim@meyering.net>
31289
31290         Changes imported from coreutils.
31291
31292         * lib/cycle-check.c: Don't include xalloc.h.
31293
31294         * lib/path-concat.c: Don't include assert.h.
31295         (path_concat): Remove assertion that would have triggered
31296         for ABASE starting with more than one slash.
31297         Reported by Andreas Schwab.
31298
31299         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31300         properly when ABASE is an absolute file name.
31301         Correct the description of this function.
31302         Include <assert.h>.
31303         Add an assertion and a test driver.
31304         This fixes a bug introduced on 2004-07-02.
31305         Andreas Schwab reported the resulting failure of cp --parents:
31306         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31307
31308 2005-03-21  Jim Meyering  <jim@meyering.net>
31309
31310         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31311         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31312
31313 2005-03-21  Jim Meyering  <jim@meyering.net>
31314         and  Paul Eggert  <eggert@cs.ucla.edu>
31315
31316         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31317         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31318         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31319         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31320         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31321         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31322         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31323         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31324         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31325         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31326         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31327         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31328         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31329         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31330         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31331         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31332         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31333         for these modules.
31334
31335 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31338         (which shouldn't happen), generate nothing instead of returning 0
31339         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31340
31341 2005-03-16  Bruno Haible  <bruno@clisp.org>
31342
31343         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31344         HAVE_LONGLONG_64BIT.
31345
31346 2005-03-16  Bruno Haible  <bruno@clisp.org>
31347
31348         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31349         HAVE_LONGLONG_64BIT.
31350
31351 2005-03-16  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31354         HAVE_LONGLONG_64BIT.
31355
31356 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31357
31358         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31359         reliably distinguish strftime failure from empty output on POSIX
31360         hosts.
31361
31362 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31363
31364         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31365         (iconv_string): Don't guess a size-zero buffer, as that might cause
31366         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31367         result would be 'too large', where 'too large' is (heuristically)
31368         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31369         overflow concerns.  This will prevent some unwanted malloc failures
31370         when the inputs are very large.
31371
31372 2005-03-15  Karl Berry  <karl@gnu.org>
31373
31374         * config/srclist.txt (config.rpath): from gettext.
31375         * config/config.rpath: update.
31376
31377 2005-03-15  Bruno Haible  <bruno@clisp.org>
31378
31379         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31380         to 'negate'.
31381
31382         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31383         variable.
31384
31385         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31386         results.
31387
31388 2005-03-14  Simon Josefsson  <jas@extundo.com>
31389
31390         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31391         <fx@gnu.org>.
31392
31393 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31394
31395         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31396         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31397         intprops.h.
31398         * lib/strtol.c: Likewise.
31399
31400 2005-03-14  Jim Meyering  <jim@meyering.net>
31401
31402         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31403         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31404         to be nonzero so that we (and caller) can detect the difference
31405         between a valid zero-length expansion and an error return, even
31406         when the underlying strftime fails before writing anything into
31407         that location.
31408
31409 2005-03-14  Bruno Haible  <bruno@clisp.org>
31410
31411         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31412         Update from GNU gettext 0.14.3.
31413
31414 2005-03-10  Jim Meyering  <jim@meyering.net>
31415
31416         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31417
31418 2005-03-10  Jim Meyering  <jim@meyering.net>
31419
31420         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31421         so that this module works on systems without fchdir.
31422
31423 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31424
31425         Factor int-properties macros into a single file, except for
31426         glibc-related files.
31427         * lib/intprops.h: New file.
31428         * lib/getloadavg.c: Include it instead of limits.h.
31429         (INT_STRLEN_BOUND): Remove.
31430         * lib/human.c: Include intprops.h.
31431         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31432         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31433         302/1000.
31434         * lib/inttostr.h: Include intprops.h instead of limits.h.
31435         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31436         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31437         for consistency with intprops.h.
31438         (time_t_is_integer, twos_complement_arithmetic): Use them.
31439         * lib/sig2str.h: Include <signal.h>, intprops.h.
31440         (INT_STRLEN_BOUND): Remove.
31441         * lib/strftime.c (TYPE_SIGNED): Remove.
31442         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31443         * lib/strtol.c: Adjust comments to match intprops.h.
31444         * lib/userspec.c: Include intprops.h.
31445         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31446         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31447         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31448         instead of rolling our own expressions.
31449         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31450
31451         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31452         instead of int.
31453         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31454         the right thing even if adding 1900 would overflow.  Similarly
31455         for tm_mon + 1 and tm_yday + 1.
31456         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31457         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31458         (DO_SIGNED_NUMBER): New macro.
31459         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31460
31461 2005-03-07  Bruno Haible  <bruno@clisp.org>
31462
31463         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31464
31465 2005-03-07  Bruno Haible  <bruno@clisp.org>
31466
31467         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31468
31469 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31470
31471         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31472         (func_import): Only replace files via --import when they have actually
31473         changed.
31474
31475 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31476
31477         * m4/mmap-anon.m4: New file.
31478         * m4/pagealign_alloc.m4: New file.
31479
31480 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31481             Bruno Haible  <bruno@clisp.org>
31482
31483         * modules/pagealign_alloc: New file.
31484         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31485
31486 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31487             Bruno Haible  <bruno@clisp.org>
31488
31489         * lib/pagealign_alloc.h: New file.
31490         * lib/pagealign_alloc.c: New file.
31491
31492 2005-03-03  Bruno Haible  <bruno@clisp.org>
31493
31494         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31495         Use an all-permissive copyright notice, recommended by RMS.
31496
31497 2005-03-02  Bruno Haible  <bruno@clisp.org>
31498
31499         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31500         of AIX, the replacement has to be done only after <string.h> is
31501         included, therefore not in config.h. stpncpy.h does the replacement,
31502         and stpncpy.c uses it.
31503
31504 2005-03-02  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31507         stpncpy.c uses it.
31508
31509 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31510
31511         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31512         The workaround isn't strictly needed for POSIX conformance, and
31513         it's too much of a pain to configure and maintain.  We'll ask
31514         people to fix their kernels instead.
31515         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31516         (NANOSLEEP_BUG_WORKAROUND): Remove.
31517         (xnanosleep): Remove the workaround.
31518
31519 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31522         Reported by Derek Price.
31523         (Include): Add "timespec.h".
31524
31525         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31526
31527 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31528
31529         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31530         to detect nanosleep bug.
31531
31532 2005-03-01  Bruno Haible  <bruno@clisp.org>
31533
31534         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31535
31536 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31537
31538         * modules/gethrxtime: New file.
31539         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31540         (Depends-on): Add gethrxtime.
31541         (configure.ac): Add gl_XNANOSLEEP.
31542         (Makefile.am): Remove lib_SOURCES line.
31543
31544 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31545
31546         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31547         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31548
31549 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31552         * lib/timespec.h (gettime): Return void, since it always
31553         succeeds now.  All uses changed.
31554         * lib/gettime.c (gettime) Likewise.
31555         [HAVE_NANOTIME]: Prefer nanotime.
31556         Assume gettimeofday succeeds, as POSIX requires.
31557         Assime time () succeeds, since other code already does.
31558         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31559         (timespec_subtract): Remove.
31560         (NANOSLEEP_BUG_WORKAROUND): New constant.
31561         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31562         things considerably.  Use it only on GNU/Linux hosts, since the
31563         workaround shouldn't be needed elsewhere.
31564
31565 2005-02-24  Bruno Haible  <bruno@clisp.org>
31566
31567         * modules/gettext (Files): Add m4/glibc2.m4.
31568
31569 2005-02-24  Bruno Haible  <bruno@clisp.org>
31570
31571         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31572         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31573         * m4/progtest.m4:
31574         Update from GNU gettext 0.14.2.
31575         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31576
31577 2005-02-24  Bruno Haible  <bruno@clisp.org>
31578
31579         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31580         * lib/config.charset: Update from GNU gettext 0.14.2.
31581
31582 2005-02-24  Bruno Haible  <bruno@clisp.org>
31583
31584         * lib/gettext.h: Update from GNU gettext 0.14.2.
31585
31586 2005-02-23  Simon Josefsson  <jas@extundo.com>
31587
31588         * m4/iconvme.m4: New file.
31589
31590 2005-02-23  Jim Meyering  <jim@meyering.net>
31591
31592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31593         change.
31594         Thanks to Bruno Haible for catching it.
31595
31596 2005-02-22  Simon Josefsson  <jas@extundo.com>
31597
31598         * modules/iconvme: New file.
31599
31600         * MODULES.html.sh: Add iconvme.
31601
31602 2005-02-22  Simon Josefsson  <jas@extundo.com>
31603
31604         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31605
31606 2005-02-22  Simon Josefsson  <jas@extundo.com>
31607
31608         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31609
31610 2005-02-22  Jim Meyering  <jim@meyering.net>
31611
31612         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31613         s/ifndef/ifdef/.
31614
31615 2005-02-20  Neil Conway  <neilc@samurai.com>
31616
31617         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31618         returned by OSX/Darwin if the specified buffer is not large
31619         enough for the hostname.
31620
31621 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31622
31623         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31624         pass it to _help, otherwise the latter coredumps trying to
31625         dereference state.root_argp.
31626
31627 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31628
31629         * modules/chdir-long (Depends-on): Add memrchr.
31630         * modules/memrchr (Files): Add lib/memrchr.h.
31631         (Include): "memrchr.h".
31632
31633 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31634
31635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31636
31637 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31638
31639         * lib/memrchr.h: New file.
31640         * lib/chdir-long.c: Include it.
31641         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31642         Don't bother including stddef.h.
31643
31644 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31645
31646         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31647         inclusion.
31648         Include <sys/types.h>, for dev_t.
31649         (ME_DUMMY, ME_REMOTE): Move from here....
31650         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31651         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31652         Dmitry V. Levin.
31653         Include mountlist.h first, to test the interface.
31654
31655 2005-01-29  Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/progname.c (program_name): Initialize.
31658         Needed when linking statically on MacOS X.
31659
31660 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31661
31662         Sync from coreutils.
31663         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31664         (Depends-on): Add c-strtod.
31665         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31666
31667 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31668
31669         Sync from coreutils.
31670         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31671
31672         Remove files that are specific to coreutils.
31673         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31674
31675 2005-01-28  Bruno Haible  <bruno@clisp.org>
31676
31677         * modules/javacomp: New file.
31678         * MODULES.html.sh (Java): Add javacomp.
31679
31680 2005-01-28  Bruno Haible  <bruno@clisp.org>
31681
31682         * m4/javacomp.m4: New file, from GNU gettext.
31683
31684 2005-01-28  Bruno Haible  <bruno@clisp.org>
31685
31686         * lib/javacomp.sh.in: New file, from GNU gettext.
31687         * lib/javacomp.h: New file, from GNU gettext.
31688         * lib/javacomp.c: New file, from GNU gettext.
31689
31690 2005-01-26  Simon Josefsson  <jas@extundo.com>
31691
31692         * lib/gai_strerror.c: Use GPL in header.
31693
31694 2005-01-26  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/javaexec: New file.
31697         * MODULES.html.sh (Java): Add javaexec.
31698
31699 2005-01-26  Bruno Haible  <bruno@clisp.org>
31700
31701         * m4/javaexec.m4: New file, from GNU gettext.
31702
31703 2005-01-26  Bruno Haible  <bruno@clisp.org>
31704
31705         * lib/javaexec.sh.in: New file, from GNU gettext.
31706         * lib/javaexec.h: New file, from GNU gettext.
31707         * lib/javaexec.c: New file, from GNU gettext.
31708
31709 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31710
31711         * modules/lchown (Depends-on): Remove lchown.h
31712
31713 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31714
31715         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31716         must be defined if the header file was not found, in order
31717         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31718
31719 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31720
31721         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31722         initializers for struct pentry_state.
31723         (__argp_error): Check return value of __asprintf
31724         (__argp_failure): Translate error message
31725
31726         * lib/argp-parse.c: Removed braces around the expansion of N_()
31727
31728 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31729
31730         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31731         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31732         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31733         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31734         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31735         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31736         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31737         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31738         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31739         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31740         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31741         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31742         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31743         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31744         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31745         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31746         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31747         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31748         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31749         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31750         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31751         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31752         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31753         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31754         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31755         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31756         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31757         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31758         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31759         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31760         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31761         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31762         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31763         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31764         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31765         Use an all-permissive copyright notice, recommended by RMS.
31766
31767 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31768
31769         * modules/chdir-long (Depends-on): Remove mempcpy.
31770
31771 2005-01-21  Jim Meyering  <jim@meyering.net>
31772
31773         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31774         same value as for Solaris 9.
31775
31776         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31777         component length.  This included changing the parameter to be
31778         of type `char *' rather than `char const *'.
31779         * lib/chdir-long.h (chdir_long): Update prototype.
31780
31781         * lib/openat.c (fdopendir, fstatat): New functions.
31782         * lib/openat.h: Include headers required for use of DIR and struct
31783         stat.
31784         [AT_SYMLINK_NOFOLLOW]: Define.
31785         (fdopendir, fstatat): Add prototypes.
31786
31787 2005-01-21  Bruno Haible  <bruno@clisp.org>
31788
31789         * modules/classpath: New file.
31790         * MODULES.html.sh (Java): Add classpath.
31791
31792 2005-01-21  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/classpath.h: New file, from GNU gettext.
31795         * lib/classpath.c: New file, from GNU gettext.
31796
31797 2005-01-20  Simon Josefsson  <jas@extundo.com>
31798
31799         * modules/version-etc-fsf: New file.
31800
31801 2005-01-20  Simon Josefsson  <jas@extundo.com>
31802
31803         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31804         * lib/version-etc.c: Remove version_etc_copyright.
31805         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31806         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31807
31808 2005-01-20  Simon Josefsson  <jas@extundo.com>
31809
31810         * lib/base64.h (isbase64): Add.
31811
31812         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31813         using a unsigned prototype, don't inline.
31814         (base64_decode): Use it.
31815
31816 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31817
31818         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31819         it.
31820
31821 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31822
31823         * lib/save-cwd.c (save_cwd): Remove code to support the case
31824         where fchdir is missing or flaky.
31825
31826 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31827
31828         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31829
31830 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31831
31832         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31833         AC_LIBSOURCES now does this.
31834         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31835         with new ullong_max module.
31836
31837 2005-01-19  Bruno Haible  <bruno@clisp.org>
31838
31839         * modules/sh-quote: New file.
31840         * MODULES.html.sh (Executing programs): Add sh-quote.
31841
31842 2005-01-19  Bruno Haible  <bruno@clisp.org>
31843
31844         * lib/sh-quote.h: New file, from GNU gettext.
31845         * lib/sh-quote.c: New file, from GNU gettext.
31846
31847 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31848
31849         Merge from coreutils.
31850         * m4/ullong_max.m4: New file.
31851         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31852         (gl_MACROS): Assume localeconv exists.
31853
31854 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31855
31856         Merge changes from coreutils, as described below in several
31857         changelogs dated today.
31858
31859         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31860         (O_DIRECTORY): Remove; not needed here, since "." must be
31861         a directory.  All uses removed.
31862         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31863         universal on Suns, and we also need to test for IRIX.
31864         Revamp code to use 'if' rather than '#if'.
31865         Avoid unnecessary comparison of cwd->desc to 0.
31866
31867         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31868         for known valid error numbers rather than observed invalid ones.
31869
31870 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31871
31872         * modules/ullong_max: New file.
31873
31874         * modules/chdir-long, modules/openat: New files.
31875         * modules/save-cwd (Depends-on): Depend on chdir-long.
31876         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31877
31878 2005-01-18  Jim Meyering  <jim@meyering.net>
31879
31880         Merge from coreutils.
31881         * m4/chdir-long.m4, m4/openat.m4: New files.
31882         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31883         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31884         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31885         is sane and DOES follow symlinks.  Besides, testing 20 different
31886         systems found no broken chown implementations.
31887         Prompted by a change in rsync's copy of this macro.
31888         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31889
31890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31891
31892         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31893         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31894         NULL-means-set-to-current-time semantics.
31895         Remove temporary file immediately, rather than waiting
31896         for configure's at-exit trap code to do it.
31897
31898 2005-01-18  Jim Meyering  <jim@meyering.net>
31899
31900         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31901
31902         * lib/utimens.c (futimens): Account for the fact that futimes
31903         can also fail with errno == ENOSYS or errno == ENOENT.
31904         Patch from Dmitry V. Levin.
31905
31906         Change the name of the robust chdir function from chdir to chdir_long.
31907         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31908         (restore_cwd): Use chdir_long, not chdir.
31909         * lib/chdir-long.c: Renamed from chdir.c.
31910         * lib/chdir-long.h: Renamed from chdir.h.
31911         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31912         Hurd.
31913
31914 2005-01-18  Bruno Haible  <bruno@clisp.org>
31915
31916         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31917         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31918         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31919         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31920         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31921         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31922         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31923         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31924         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31925         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31926         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31927         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31928         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31929         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31930         Use an all-permissive copyright notice, recommended by RMS.
31931
31932 2005-01-18  Bob Proulx  <bob@proulx.com>
31933
31934         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31935         simplify offsetof() macro construct to avoid compile failure with
31936         native HP-UX 11.0 ANSI C compiler.
31937
31938 2005-01-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31941         redundant because stpncpy.m4 takes care of it.
31942
31943 2005-01-17  Bruno Haible  <bruno@clisp.org>
31944
31945         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31946
31947 2005-01-17  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31950         used.
31951
31952 2005-01-17  Bruno Haible  <bruno@clisp.org>
31953
31954         * lib/fwriteerror.h (fwriteerror): Change specification to include
31955         fclose.
31956         * lib/fwriteerror.c: Include <stdbool.h>.
31957         (fwriteerror): At the end, close the file stream. Record whether
31958         stdout was already closed.
31959
31960 2005-01-17  Bruno Haible  <bruno@clisp.org>
31961
31962         * lib/execute.c (environ): Declare if needed.
31963         * lib/pipe.c (environ): Likewise.
31964         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31965
31966 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31967
31968         * modules/argp: Depend on vsnprintf
31969
31970 2005-01-10  Jim Meyering  <jim@meyering.net>
31971
31972         * modules/closeout (Depends-on): Add atexit.
31973
31974 2005-01-06  Bruno Haible  <bruno@clisp.org>
31975
31976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31977
31978 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31979
31980         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31981         definitions to be after all include files, to avoid collisions.
31982         Problem reported by Bob Proulx.
31983
31984 2005-01-04  Jim Meyering  <jim@meyering.net>
31985
31986         Changes imported from coreutils.
31987         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31988         as the mkstemp template, use a temporary directory and an
31989         8.3-friendly template to avoid trouble on systems like DJGPP.
31990         Reported by Juan M. Guerrero via Stepan Kasal.
31991         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31992         close. Remove the temporary directory right away, rather than waiting
31993         for configure's at-exit trap code to do it.
31994         Suggestion from Stepan Kasal.
31995
31996 2005-01-01  Simon Josefsson  <jas@extundo.com>
31997
31998         * gnulib-tool: Print #include directives when --import'ing.
31999
32000 2004-12-28  Simon Josefsson  <jas@extundo.com>
32001
32002         * tests/test-base64.c: Include required header files.  Remove
32003         unused variables.
32004
32005 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32006
32007         * modules/error (Depends-on): Remove gettext.
32008
32009 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32010
32011         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
32012         not needed.  This removes a dependency on the gettext module.
32013         [defined _LIBC]: Do not include <libintl.h>; not needed.
32014
32015 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32016
32017         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
32018         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
32019
32020 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
32021
32022         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
32023         HAVE_DECL_STRTOLD.
32024
32025 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32026
32027         * modules/getdate (Depends-on): Remove alloca-opt.
32028
32029 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32030
32031         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
32032
32033 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32034
32035         * lib/argp-parse.c: Include <stddef.h>.
32036         (alignof, alignto): New macros.
32037         (parser_init): Don't assume that void * is aligned sufficiently
32038         for struct option.
32039
32040         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
32041         need to extend the stack.
32042         (YYINITDEPTH): New macro, so that the initial stack isn't overly
32043         large.
32044
32045 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32046
32047         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
32048
32049 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
32052         (2004-10-24) change.  Apparently this was a false alarm.
32053
32054         * modules/getdate: Depend on alloca-opt, not alloca.
32055
32056 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
32057
32058         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
32059         Remove now-obsolete comment about AIX.
32060         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
32061         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
32062         (YYMAXDEPTH): New macro.
32063
32064 2004-12-18  Simon Josefsson  <jas@extundo.com>
32065
32066         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
32067
32068 2004-12-18  Bruno Haible  <bruno@clisp.org>
32069
32070         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
32071
32072 2004-12-18  Bruno Haible  <bruno@clisp.org>
32073
32074         * lib/fatal-signal.c (fatal_signals): Make non-const.
32075         (init_fatal_signals): New function.
32076         (uninstall_handlers, install_handlers): Ignore signals that were set to
32077         SIG_IGN.
32078         (at_fatal_signal): Call init_fatal_signals.
32079         (init_fatal_signal_set): Likewise. Ignore signals that were set to
32080         SIG_IGN.
32081         Reported by Paul Eggert.
32082
32083 2004-12-18  Bruno Haible  <bruno@clisp.org>
32084
32085         * doc/alloca.texi: New file.
32086         * doc/alloca-opt.texi: New file.
32087
32088 2004-12-17  Jim Meyering  <jim@meyering.net>
32089
32090         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
32091         Otherwise, install-sh could exit with improper exit status when
32092         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
32093
32094 2004-12-16  Simon Josefsson  <jas@extundo.com>
32095
32096         * tests/test-base64.c: Add license.
32097
32098 2004-12-15  Stepan Kasal  <address@hidden>
32099
32100         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
32101
32102 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32103
32104         * modules/getcwd (Files): Add m4/d-ino.m4.
32105         Suggested by Mark D. Baushke.
32106
32107 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32108
32109         * lib/getdate.y (textint): New member "negative".
32110         (time_zone_hhmm): New function.
32111         Expect 14 shift-reduce conflicts, not 13.
32112         (o_colon_minutes): New rule.
32113         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
32114         (yylex): Set the "negative" member of signed numbers.
32115
32116 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
32117
32118         * doc/getdate.texi (Time of day items, Time zone items):
32119         Describe new formats +00:00, UTC+00:00.
32120
32121 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32122
32123         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
32124         spurious "-l"s.  Problem reported by Stepan Kasal.
32125
32126 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
32127
32128         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
32129         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
32130
32131 2004-12-04  Simon Josefsson  <jas@extundo.com>
32132
32133         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
32134         Vandoorselaere <yoann@prelude-ids.org>.
32135
32136 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32137
32138         Changes imported from coreutils.
32139         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
32140         exist.
32141         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
32142
32143 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32144
32145         Changes imported from coreutils.
32146         * lib/hard-locale.c: Assume <locale.h> exists.
32147         Include "strdup.h".
32148         (GLIBC_VERSION): New macro.
32149         (hard_locale): Assume setlocale exists.
32150         Rewrite to avoid #ifdef.
32151         Use strdup rather than malloc + strcpy.
32152         * lib/human.c: Assume <locale.h> exists.
32153         (human_readable): Assume localeconv exists.
32154
32155 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32156
32157         * modules/hard-locale (Depends-on): Add strdup.
32158
32159 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32160
32161         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32162         convert T2, not T.  (Imported from libc.)
32163
32164 2004-11-30  Simon Josefsson  <jas@extundo.com>
32165
32166         * modules/restrict (License): Change to LGPL.
32167
32168 2004-11-30  Simon Josefsson  <jas@extundo.com>
32169
32170         * m4/restrict.m4: Add copyright and copying conditions.
32171
32172 2004-11-30  Simon Josefsson  <jas@extundo.com>
32173
32174         * m4/base64.m4: New file.
32175
32176 2004-11-30  Simon Josefsson  <jas@extundo.com>
32177
32178         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32179         base64.
32180
32181         * tests/test-base64.c: New file.
32182
32183         * modules/base64: New file.
32184
32185 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32186
32187         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32188         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32189
32190         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32191
32192 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32193
32194         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32195         (__getcwd.c): Don't restore errno; glibc doesn't.
32196         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32197         first, falling back to our code only if its results look suspicious.
32198         Ensure that the resulting buffer is only as large as necessary.
32199
32200         * lib/readutmp.c: Include readutmp.h first.
32201         Include <errno.h>, since readutmp.h no longer does that.
32202         * lib/readutmp.h: Don't include <errno.h>,
32203         <sys/param.h>, <time.h>; not needed to establish interface.
32204         (errno): Remove decl.
32205         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32206         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32207         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32208
32209 2004-11-28  Simon Josefsson  <jas@extundo.com>
32210
32211         * lib/base64.h, base64.c: New file.
32212
32213 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32214
32215         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32216
32217 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32218
32219         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32220         (Depends-on): Remove pathmax, same.  Add mempcpy.
32221         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32222         (Makefile.am): Append getcwd.h to lib_SOURCES.
32223         (Include): Add getcwd.h.
32224         (Maintainer): Change from Jim Meyering to "all, glibc",
32225         since getdate now uses intended-for-glibc code.
32226         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32227         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32228
32229 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32232         HP's ANSI C compiler.
32233         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32234         Declaring int functions causes warnings on some modern systems and
32235         shouldn't be needed to compile on ancient ones.
32236         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32237         defined.
32238
32239         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32240         with the following changes.
32241         (__set_errno): Parenthesize properly.
32242         Include <stdbool.h>.
32243         (MIN, MAX, MATCHING_INO): New macros.
32244         (__getcwd): Define with prototype, not K&R form.
32245         Use heuristics to allocate default buffer on stack if possible.
32246         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32247         behavior, and to avoid the PATH_MAX limit when computing
32248         ../../../../...
32249         Use MATCHING_INO to compare inode number to file.
32250         Check for arithmetic overflow in size calculations.
32251         Fix bug in reallocation of dot array that caused getcwd to fail
32252         on directories nested deeper than 75.
32253         Be more careful about saving errno on error.
32254         Do not use realloc; use only free+malloc, as this is a bit
32255         more flexible and avoids a needless copy operation.
32256         Do not inspect st_dev and st_ino for symbolic links; POSIX
32257         doesn't specify the latter.
32258         Check for closedir errors.
32259         Avoid needless casts.
32260         Use "#ifdef weak_alias" around weak_alias, to be like other
32261         glibc code.
32262         The following changes to getcwd.c have effect only when used in
32263         gnulib; they have no effect inside glibc proper.
32264         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32265         as alloca isn't used.
32266         (alloca, __alloca): Likewise.
32267         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32268         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32269         unconditionally, as gnulib assumes C89 or better.
32270         Do not include <sys/param.h>.
32271         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32272         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32273         better.
32274         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32275         Include <dirent.h> in a way that is compatible with modern Autoconf.
32276         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32277         New macros, if not already defined.
32278         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32279         Use "_LIBC", not "defined _LIBC", for consistency.
32280         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32281         a mempcpy module.
32282         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32283         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32284         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32285         credit only to Jim Meyering and adjust the copyright dates.
32286         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32287         <stdlib.h>, <unistd.h>, "pathmax.h".
32288         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32289         (INITIAL_BUFFER_SIZE): Remove.
32290         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32291
32292 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32293
32294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32295         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32296         Use the _ONCE methods, for efficiency.
32297         Check for fcntl.h.  In test program, include <errno.h>
32298         and <fcntl.h> if available.  Remove old K&R cruft from
32299         test program.  Check for common errors in GNU/Linux,
32300         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32301         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32302         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32303         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32304         name accordingly.
32305         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32306         accommodate new getcwd.c.
32307         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32308         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32309         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32310         that's all we need now.
32311
32312 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32313
32314         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32315         argp-parse.c depends on getopt internals, that means we should
32316         always use our getopt, to be on the safe side.
32317         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32318         order not to spoil the result of an eventual previous invocation
32319         of gl_GETOPT_SUBSTITUTE.
32320
32321 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32322
32323         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32324         redefinition warnings. To avoid them, include the defines
32325         in `#if !defined __need_getopt ... #endif'. The only place
32326         where __getopt_argv_const is used is in definitions
32327         of getopt_long and getopt_long_only below, which are as well
32328         protected by `#ifndef __need_getopt'.
32329         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32330         __need_getopt after including <stdio.h> and <unistd.h> These
32331         headers might have defined it.
32332
32333 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32334
32335         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32336
32337 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32338
32339         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32340         (futimens): New function, which uses futimes if available.
32341         (futimens, utimens): Support timespec==NULL, with same semantics
32342         as utime and utimens.
32343         * lib/utimens.h (futimens): New decl.
32344
32345 2004-11-23  Jim Meyering  <jim@meyering.net>
32346
32347         * lib/getopt_.h: Remove trailing blanks.
32348
32349 2004-11-23  Jim Meyering  <jim@meyering.net>
32350
32351         * lib/__fpending.c: Add comment.
32352
32353 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32354
32355         * modules/canonicalize (Depends-on): Add xreadlink.
32356         Problem reported by James Youngman.
32357
32358 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32359
32360         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32361         New macros.
32362         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32363         optopt): Use them instead of invoking ## directly; otherwise, the
32364         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32365
32366 2004-11-19  Bruno Haible  <bruno@clisp.org>
32367
32368         * lib/strtok_r.c: Move comments from here...
32369         * lib/strtok_r.h: ... to here.
32370
32371 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32372
32373         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32374         implementations that mishandle size_t overflow.
32375
32376 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32377
32378         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32379         might fail.  Problem reported by Yoann Vandoorselaere.
32380         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32381         implementations that mishandle size_t overflow.
32382
32383 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32384
32385         * modules/canon-host (Depends-on): Add strdup.
32386
32387 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32388
32389         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32390
32391 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         * lib/canon-host.c: Include "strdup.h".
32394         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32395         Use strdup instead of malloc/strcpy to duplicate strings.
32396
32397         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32398         (human_space_before_unit): New constant.
32399         * lib/human.c (human_readable): Support it.
32400
32401         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32402         (xgetcwd): Set errno correctly when failing.
32403         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32404         the failure is actually due to a PATH_MAX problem.
32405
32406         Further getopt changes to make it more likely that glibc will
32407         buy the changes back.
32408         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32409         (getopt): Use it, so to preserve glibc semantic
32410         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32411         when compiling for libc.
32412         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32413         (getopt_long, getopt_long_only): Use it.
32414
32415         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32416         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32417         (getopt): Argv is now char * const *, as per standard.
32418         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32419         not char *__getopt_argv_const *.
32420         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32421         _getopt_long_only_r): Likewise.
32422         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32423         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32424         _getopt_long_r, _getopt_long_only_r): Likewise.
32425         * lib/getopt_.h (__getopt_argv_const): Remove.
32426         (getopt): Argv is now char * const *, as per standard.
32427
32428         * lib/getdate.y (tORDINAL): New token.
32429         (day, relunit): Allow it for relative times.
32430         (relative_time_table): Use tORDINAL for ordinals.
32431
32432 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32433
32434         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32435         Document that "second" isn't allowed as an ordinal number.
32436
32437 2004-11-16  Jim Meyering  <jim@meyering.net>
32438
32439         * modules/closeout (Depends-on): Add fpending.
32440
32441 2004-11-15  Jim Meyering  <jim@meyering.net>
32442
32443         * lib/closeout.c: Include "__fpending.h" once again.
32444         Include <stdbool.h>.
32445         (close_stdout): Don't fail just because stdout was closed initially,
32446         since some programs don't write to stdout in the normal course of
32447         operation (other than --version and --help), and we don't want this
32448         function to make e.g. `touch file >&-' fail.
32449         But do fail if it was closed and someone has tried to write to it.
32450         E.g., `printf foo >&-' must fail.
32451
32452 2004-11-13  Jim Meyering  <jim@meyering.net>
32453
32454         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32455
32456 2004-11-12  Simon Josefsson  <jas@extundo.com>
32457
32458         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32459         small doc fix is still pending.
32460
32461 2004-11-11  Simon Josefsson  <jas@extundo.com>
32462
32463         * modules/strtok_r: New file.
32464
32465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32466         strtok_r.
32467
32468 2004-11-11  Simon Josefsson  <jas@extundo.com>
32469
32470         * m4/strtok_r.m4: New file.
32471
32472         * m4/getopt.m4: Replace opterr.
32473
32474 2004-11-11  Simon Josefsson  <jas@extundo.com>
32475
32476         * lib/strtok_r.h, strtok_r.c: New file.
32477
32478 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32479
32480         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32481         of replacing opterr, getopt, etc.  This should handle the
32482         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32483
32484 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32485
32486         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32487         we can stop lying to compilers about the constness of argv when we
32488         are compiled outside glibc.
32489         (getopt, getopt_long, getopt_long_only): Use it.
32490         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32491         _getopt_internal, getopt): Likewise.
32492         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32493         _getopt_long_only_r): Likewise.
32494         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32495         _getopt_long_r, _getopt_long_only_r): Likewise.
32496
32497         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32498         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32499         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32500         the other external symbols.
32501         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32502         declaration, since the above renaming now works around collisions.
32503
32504 2004-11-11  Jim Meyering  <jim@meyering.net>
32505
32506         * lib/linebreak.c: Remove trailing blanks.
32507         * lib/alloca_.h: Likewise.
32508         * lib/acosl.c: Likewise.
32509         * lib/euidaccess.c: Likewise.
32510         * lib/allocsa.h: Likewise.
32511
32512 2004-11-10  Simon Josefsson  <jas@extundo.com>
32513
32514         * m4/getaddrinfo.m4: New file.
32515
32516 2004-11-10  Simon Josefsson  <jas@extundo.com>
32517
32518         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32519
32520 2004-11-10  Simon Josefsson  <jas@extundo.com>
32521
32522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32523         getaddrinfo.
32524
32525         * modules/getaddrinfo: New file.
32526
32527 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32528
32529         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32530
32531 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         * lib/mktime.c (SHR): New macro, which is a portable
32534         substitute for >> that should work even on Crays.
32535         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32536         Problem reported by Mark D. Baushke in
32537         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32538         * lib/getdate.y (SHR): Likewise.
32539         (tm_diff): Use it.
32540         * lib/strftime.c (SHR): Likewise.
32541         (tm_diff): Use it.
32542         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32543         quote_these_too, so that right shifts are well defined.  All uses
32544         changed.
32545
32546 2004-11-10  Jim Meyering  <jim@meyering.net>
32547
32548         Ensure that no close failure goes unreported.
32549         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32550         return early when it seems there's nothing to flush.
32551         Don't include __fpending.h.
32552
32553 2004-11-10  Jim Meyering  <jim@meyering.net>
32554
32555         * modules/closeout (Depends-on): Remove fpending.
32556
32557 2004-11-10  Jim Meyering  <jim@meyering.net>
32558
32559         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32560
32561 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32562
32563         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32564         gl_FUNC_STRFTIME.
32565         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32566         and AC_REQUIRE when possible, to avoid duplicate checks.
32567         Check for <wchar.h>.
32568
32569 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32570
32571         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32572
32573 2004-11-09  Bruno Haible  <bruno@clisp.org>
32574
32575         * m4/sockpfaf.m4: New file.
32576
32577 2004-11-05  Bruno Haible  <bruno@clisp.org>
32578
32579         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32580         Reported by Mark D. Baushke <mdb@cvshome.org>.
32581
32582 2004-11-04  Bruno Haible  <bruno@clisp.org>
32583
32584         2004-09-11  Bruno Haible  <bruno@clisp.org>
32585                 * allocsa.valgrind: New file.
32586         2004-02-06  Bruno Haible  <bruno@clisp.org>
32587                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32588                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32589                 Reported by Christopher Seip <chris.seip@hp.com>.
32590
32591 2004-11-04  Bruno Haible  <bruno@clisp.org>
32592
32593         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32594         (Makefile.am): Distribute it.
32595
32596 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32597
32598         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32599         with errno == ERANGE if the buffer is too small.
32600         Problem reported by Mark D. Baushke.
32601
32602 2004-11-03  Albert Chin  <china@thewrittenword.com>
32603             Paul Eggert  <eggert@cs.ucla.edu>
32604
32605         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32606         equivalent, substitute $ac_type for equivalent type rather than
32607         blindly using uint32_t *always* which won't work if uint32_t is not
32608         available.  Define _UINT32_T to work around typedef of uint32_t if
32609         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32610         2.5.1.
32611
32612 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32613
32614         * m4/jm-macros.m4: Sync from coreutils.
32615         (gl_MACROS): Check for mbrlen, for pathchk.
32616         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32617
32618 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32619
32620         * lib/xreadlink.c (MAXSIZE): New macro.
32621         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32622         size does not exceed MAXSIZE.  Avoid cast.
32623         As suggested by Mark D. Baushke in
32624         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32625         if readlink fails with buffer size just under MAXSIZE, try again
32626         with MAXSIZE.
32627
32628 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32629
32630         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32631
32632 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32633         and  Paul Eggert  <eggert@cs.ucla.edu>
32634
32635         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32636         (get_date): Overparenthesize to avoid GCC warning.
32637
32638 2004-11-02  Bruno Haible  <bruno@clisp.org>
32639
32640         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32641         returns void.
32642
32643 2004-11-02  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32646         function returns void.
32647
32648 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32649
32650         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32651         fflush_unlocked, flockfile, funlockfile, funlockfile,
32652         fputs_unlocked, putc_unlocked.
32653
32654 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32655
32656         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32657         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32658         already declared.
32659
32660 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32661
32662         * modules/getdate (Files): Add doc/getdate.texi.
32663         (Depends-on): Add setenv, xalloc.
32664
32665 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32666
32667         * lib/getdate.y: Add support for TZ="foo" within a date string.
32668         Fix some bugs near time_t boundaries.  Reject dates with
32669         out-of-range components, e.g., "Sept 31".
32670         Include <stdlib.h>, "setenv.h", "xalloc.h".
32671         (ISDIGIT_LOCALE): Remove; unused.
32672         Note that the TZ and time functions used here are not reentrant.
32673         (mktime_ok, get_tz): New functions.
32674         (TZBUFSIZE): New constant.
32675         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32676         This requires that we sometimes generate our own TZ="XXX..." setting.
32677
32678 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * doc/getdate.texi: New file, from coreutils with modifications for
32681         the new TZ parsing.
32682
32683 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32684
32685         * lib/mktime.c (not_equal_tm): Remove redundant check.
32686
32687 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32688
32689         * modules/regex (lib_SOURCES): Add regex.c.
32690         Reported by James Youngman in
32691         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32692
32693 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32694
32695         * lib/getdate.y: Use Bison 1.875 features, and some minor
32696         code cleanups.  This change does not affect semantics.
32697         Don't include <stdlib.h>; no longer needed.
32698         Don't include unlocked-io.h; only the "#if TEST" code uses
32699         stdio, and performance isn't crucial there.
32700         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32701         Bison 1.875 features as described below.
32702         All uses of "PC." replaced by "pc->".
32703         (YYSTYPE): Add a forward declaration.
32704         (yylex, yyerror): Use full prototypes in forward decls.
32705         Use "%pure-parser" rather than obsolescent "%pure_parser".
32706         Use %parse-param and %lex-param instead of obsolescent
32707         YYPARSE_PARAM and YYLEX_PARAM.
32708         (meridian_table, month_and_day_table, time_units_table,
32709         relative_time_table, time_zone_table, military_table,
32710         lookup_zone, lookup_word, get_date):
32711         Use NULL instead of 0 where appropriate.
32712         (to_hour): Avoid abort (), to avoid a dependency on
32713         stdlib.h.
32714         (yyerror, yylex): Now accepts parser_control * arg.
32715         (main) [TEST]: Use '\0' rather than 0 for char.
32716
32717 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32718
32719         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32720
32721 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32722
32723         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32724         It's now the caller's responsibility to handle the case where
32725         !HAVE_GETPAGESIZE && !defined getpagesize.
32726
32727         * lib/mktime.c (leapyear): Arg is long int, not int.
32728
32729 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32730
32731         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32732
32733 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32734
32735         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32736         missing.  Problem reported by James Youngman.
32737
32738 2004-10-16  Simon Josefsson  <jas@extundo.com>
32739
32740         * gnulib-tool: Fix comments.  Fix parse problem.
32741         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32742
32743 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32744
32745         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32746         implementation of getopt_long.  Problem reported by Alexander Taler in:
32747         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32748
32749 2004-10-15  Bruno Haible  <bruno@clisp.org>
32750
32751         * gnulib-tool: Untabify. Initialize supplied_libname.
32752         (func_usage): More homogenous output.
32753         (func_modules_transitive_closure, func_modules_to_filelist,
32754         func_emit_lib_Makefile_am): New functions.
32755         (func_import): New function, extracted from big case statement. Use
32756         func_get_license, func_modules_transitive_closure,
32757         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32758         opt_lgpl. Don't use test -a, as it's not portable.
32759         (func_create_testdir): Use func_modules_transitive_closure,
32760         func_modules_to_filelist, func_emit_lib_Makefile_am.
32761
32762 2004-10-15  Bruno Haible  <bruno@clisp.org>
32763
32764         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32765
32766 2004-10-15  Bruno Haible  <bruno@clisp.org>
32767
32768         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32769         the portions belonging to each module.
32770         Suggested by Derek Robert Price <derek@ximbiot.com>.
32771
32772 2004-10-12  Simon Josefsson  <jas@extundo.com>
32773
32774         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32775         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32776         to real functions.
32777
32778 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32779
32780         * modules/vsnprintf: New file.
32781
32782 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32783
32784         * m4/vsnprintf.m4: New file.
32785
32786 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32787
32788         * lib/vsnprintf.h: New file.
32789         * lib/vsnprintf.c: New file.
32790
32791 2004-10-11  Bruno Haible  <bruno@clisp.org>
32792
32793         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32794         vsnprintf.
32795
32796 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32797
32798         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32799
32800 2004-10-07  Bruno Haible  <bruno@clisp.org>
32801
32802         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32803         fits into the provided buffer.
32804
32805 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32806
32807         * lib/diacrit.c, diacrit.h: Add GPL notice.
32808
32809         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32810         notice.
32811         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32812         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32813         This avoids a potential constant-folding bug.
32814
32815 2004-10-05  Bruno Haible  <bruno@clisp.org>
32816
32817         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32818         for the declaration of strsep.
32819
32820 2004-10-05  Bruno Haible  <bruno@clisp.org>
32821
32822         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32823
32824 2004-10-04  Simon Josefsson  <jas@extundo.com>
32825
32826         * modules/memmem: New file.
32827         * tests/test-memmem.c: New file.
32828         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32829
32830 2004-10-04  Simon Josefsson  <jas@extundo.com>
32831
32832         * m4/memmem.m4: New file.
32833
32834 2004-10-04  Simon Josefsson  <jas@extundo.com>
32835
32836         * lib/memmem.h: New file.
32837         * lib/memmem.c: New file, taken from glibc.
32838
32839 2004-10-04  Simon Josefsson  <jas@extundo.com>
32840
32841         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32842         '#ifdef USE_UNLOCKED_IO'.
32843
32844 2004-10-04  Simon Josefsson  <jas@extundo.com>
32845
32846         * config/srclist.txt: Add memmem from glibc.
32847
32848 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32849
32850         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32851
32852         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32853         modules/exclude, modules/getdate, modules/getline,
32854         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32855         modules/getusershell, modules/linebuffer, modules/md5,
32856         modules/mountlist, modules/posixtm, modules/readtokens,
32857         modules/readutmp, modules/regex, modules/sha1,
32858         modules/version-etc, modules/yesno:
32859         Remove dependency on unlocked-io.
32860
32861 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32862
32863         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32864
32865         * m4/unlocked-io.m4: Add copyright notice.
32866         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32867
32868 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32869
32870         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32871         * lib/xmalloc.c (xmemdup): Likewise.
32872         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32873         XFREE): Remove these long-obsolescent macros.
32874         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32875         * lib/xstrdup.c: Remove.
32876
32877         * lib/regex.c (re_comp): Cast gettext return value to char *,
32878         Problem reported by Martin Neitzel via Mark D. Baushke.
32879
32880 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32881
32882         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32883         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32884         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32885         regex.c, sha1.c, version-etc.c, yesno.c:
32886         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32887         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32888         the includer's responsibility.
32889
32890         Sync from coreutils.
32891
32892         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32893         points to the start of a string, as the C Standard says the
32894         resulting behavior is undefined.
32895
32896         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32897         simple -> simple_backups, numbered_existing ->
32898         numbered_existing_backups, numbered -> numbered_backups
32899         to avoid shadowing problems.  All uses changed.
32900         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32901         * lib/backupfile.c (check_extension, numbered_backup):
32902         Rename locals to avoid shadowing 'basename'.
32903         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32904         once.
32905
32906         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32907         * lib/.cvsignore: Add getopt.h.
32908
32909 2004-10-04  Bruno Haible  <bruno@clisp.org>
32910
32911         * modules/README: New file.
32912         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32913         not a module.
32914
32915 2004-10-02  Jim Meyering  <jim@meyering.net>
32916
32917         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32918
32919 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32920
32921         * modules/strsep: New file.
32922
32923 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32924
32925         * m4/strsep.m4: New file.
32926
32927 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32928
32929         * lib/strsep.h: New file.
32930         * lib/strsep.c: New file.
32931
32932 2004-10-01  Simon Josefsson  <jas@extundo.com>
32933
32934         * lib/snprintf.c (snprintf): Handle size==0.
32935
32936 2004-10-01  Simon Josefsson  <jas@extundo.com>
32937             Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32940         (snprintf): Declare 'args'.
32941
32942 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32943
32944         * lib/snprintf.c: Remove comments as to why each header is needed.
32945
32946 2004-10-01  Bruno Haible  <bruno@clisp.org>
32947
32948         * MODULES.html.sh: Add strsep.
32949
32950 2004-09-30  Simon Josefsson  <jas@extundo.com>
32951
32952         * modules/snprintf: New file.
32953
32954 2004-09-30  Simon Josefsson  <jas@extundo.com>
32955
32956         * m4/snprintf.m4: New file.
32957
32958 2004-09-30  Simon Josefsson  <jas@extundo.com>
32959
32960         * lib/snprintf.h, lib/snprintf.c: New files.
32961
32962 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32963
32964         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32965         (hol_entry_help): Never translate an empty string.
32966         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32967         * lib/argp.h (OPTION_NO_TRANS): New option.
32968
32969 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32970
32971         * modules/argp (Maintainer): Replace Simon Josefsson
32972         by Sergey Poznyakoff.
32973
32974 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32977         changes merged back into glibc.
32978
32979 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32982
32983 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32984
32985         * lib/xvasprintf.c: Include xalloc.h.
32986         (xvasprintf): Use xalloc_die, not xmalloc_die.
32987
32988 2004-09-29  Bruno Haible  <bruno@clisp.org>
32989
32990         * modules/alloca-opt: New file, derived from modules/alloca.
32991         * modules/allocsa: Depend on alloca-opt instead of alloca.
32992         * modules/setenv: Likewise.
32993         * modules/vasnprintf: Likewise.
32994         * MODULES.html.sh: Add alloca-opt.
32995
32996 2004-09-28  Simon Josefsson  <jas@extundo.com>
32997
32998         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32999         LGPL, and to replace license template from GPL to LGPL.
33000
33001 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33002
33003         * modules/dummy: Change license to LGPL.
33004
33005 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
33006
33007         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
33008
33009 2004-09-24  Simon Josefsson  <jas@extundo.com>
33010
33011         * modules/minmax (License): Change from GPL to LGPL.
33012
33013 2004-09-23  Simon Josefsson  <jas@extundo.com>
33014
33015         * gnulib-tool (--import): Typo.
33016
33017 2004-09-23  Simon Josefsson  <jas@extundo.com>
33018
33019         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
33020
33021 2004-09-22  Bruno Haible  <bruno@clisp.org>
33022
33023         * modules/*: Add 'License' field.
33024         * gnulib-tool: Accept --extract-license option.
33025         (func_get_license): New function.
33026
33027 2004-09-21  Bruno Haible  <bruno@clisp.org>
33028
33029         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
33030         Reported by Simon Josefsson.
33031
33032 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33033
33034         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
33035         gl_AC_TYPE_LONG_LONG.
33036
33037 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
33038
33039         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
33040
33041 2004-09-18  Simon Josefsson  <jas@extundo.com>
33042         and  Paul Eggert  <eggert@cs.ucla.edu>
33043
33044         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
33045         calls with autoreconf.  Define GL_LIB.
33046
33047 2004-09-14  Karl Berry  <karl@gnu.org>
33048
33049         * config/srclist.txt: unsync setenv.c, sigh.
33050
33051 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33052
33053         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
33054         Problem reported by Bruno Haible in:
33055         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
33056
33057 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
33058
33059         * config/srclist.txt: Comment out argp-pvh.c.
33060
33061 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
33062
33063         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
33064         in case some system header has #define'd it.  Problem reported by
33065         Soeren D. Schulze in
33066         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
33067
33068 2004-09-09  Karl Berry  <karl@gnu.org>
33069
33070         * regex.[ch]: delete from the root.  These were supposed to be
33071                 synced with emacs cvs, but this has not happened for about
33072                 a year, and anyway nothing else uses emacs regex.[ch].
33073                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
33074                 lib/regex[.ch] is untouched.
33075
33076 2004-09-09  Bruno Haible  <bruno@clisp.org>
33077
33078         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
33079
33080 2004-09-09  Bruno Haible  <bruno@clisp.org>
33081
33082         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
33083         modifications.
33084         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
33085
33086 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33087
33088         * modules/xvasprintf: New file.
33089         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
33090
33091 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
33092
33093         * lib/xvasprintf.h: New file.
33094         * lib/xvasprintf.c: New file.
33095         * lib/xasprintf.c: New file.
33096
33097 2004-09-08  Bruno Haible  <bruno@clisp.org>
33098
33099         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
33100
33101 2004-09-08  Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
33104         length is > INT_MAX.
33105         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
33106         more.
33107
33108 2004-09-08  Bruno Haible  <bruno@clisp.org>
33109
33110         * lib/stdint_.h: New file, taken from GNU clisp.
33111
33112 2004-09-08  Bruno Haible  <bruno@clisp.org>
33113             Oskar Liljeblad  <oskar@osk.mine.nu>
33114
33115         * modules/stdint: New file.
33116         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
33117
33118 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33119
33120         Import from coreutils.
33121         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
33122         strings on unbounded length.  alloca's performance benefits aren't
33123         that important here.
33124         (V_STRDUP): Remove.
33125         (parse_with_separator): New function, with most of the internals
33126         of the old parse_user_spec.  Allow user to omit both user and group,
33127         for compatibility with FreeBSD.
33128         Clone only the user name, not the entire spec.
33129         Do not set *uid, *gid unless entirely successful.
33130         Avoid memory leak in some failing cases.
33131         Fix regression for USER.GROUP reported by Dmitry V. Levin in
33132         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
33133         (parse_user_spec): Rewrite to use parse_with_separator.
33134
33135 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33136
33137         * modules/userspec: Don't depend on alloca.
33138
33139 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33140
33141         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
33142
33143 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33144
33145         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
33146         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
33147         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
33148
33149 2004-08-16  Simon Josefsson  <jas@extundo.com>
33150
33151         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
33152         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
33153         Add --dry-run for --import.
33154         Let user provided command line parameters override configure.ac
33155         settings.
33156
33157 2004-08-12  Simon Josefsson  <jas@extundo.com>
33158
33159         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33160         as discussed with Paul Eggert in threads rooted at
33161         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33162         and
33163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33164         Before, the test was empty, and relied on ELIDE_CODE in source
33165         code.)
33166         (gl_PREREQ_GETOPT): New macro.
33167         (gl_GETOPT): Use them.
33168
33169 2004-08-12  Simon Josefsson  <jas@extundo.com>
33170
33171         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33172         * lib/getopt_.h: Renamed from getopt.h.
33173
33174 2004-08-12  Simon Josefsson  <jas@extundo.com>
33175
33176         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33177         Change default library name from libfoo to libgnu.
33178         Now, if you have a configure.ac that says:
33179                 gl_SOURCE_BASE(gl)
33180                 gl_M4_BASE(gl/m4)
33181                 gl_MODULES(error getopt etcetera)
33182                 gl_INIT
33183         you can import all you need by running:
33184                 ../gnulib/gnulib-tool --import
33185
33186         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33187         (Makefile.am): Rewrite, use logic from argz.
33188         (Include): Use <getopt.h> instead of "getopt.h".
33189
33190 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33191
33192         * modules/argp (Files): Add m4/unlocked-io.m4.
33193         (Depends-on): Add extensions.
33194
33195 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33196
33197         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33198         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33199         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33200         Check for program_invocation_name, program_invocation_short_name,
33201         flockfile, funlockfile, features.h, _getopt_long_only_r.
33202
33203 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33204
33205         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33206         its complicated substitute.
33207         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33208         and program_invocation_name.
33209         (__argp_basename) [!_LIBC]: Remove; the only use was
33210         replaced by its body.
33211         (__argp_short_program_name): Change condition from
33212         !defined __argp_short_program_name to
33213         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33214         to match argp-namefrob.h.
33215         (__argp_failure): Don't assume strerror_r returns char *.
33216         * lib/argp-parse.c (N_): Define unconditionally.
33217         (argp_default_options): Fill out initializers with 0 to avoid
33218         gcc warnings.
33219
33220 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33221
33222         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33223         getopt1.c.
33224
33225 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         Merge from coreutils.
33228
33229         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33230
33231         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33232         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33233
33234 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33235
33236         Merge from coreutils.
33237
33238         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33239         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33240         for Reliant Unix 5.43.
33241
33242         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33243         (union fooround): Use uintmax_t, not long int.
33244         The rest is a merge from libc:
33245         [defined _LIBC]: Include <shlib-compat.h>.
33246         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33247
33248         * lib/settime.c (settime): Recode to avoid warning with
33249         Sun Forte C 6U2.
33250
33251         * lib/strverscmp.c: Convert to UTF-8.
33252
33253 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33254
33255         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33256         m4/uintmax_t.m4.
33257
33258 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33259
33260         * modules/xalloc-die: New file.
33261         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33262
33263         * modules/md5 (Files): Add m4/uint32_t.m4.
33264         * modules/sha1: Renamed from modules/sha.
33265         (Files):
33266         Rename lib/sha.h to lib/sha1.h.
33267         Rename lib/sha.c to lib/sha1.c.
33268         Rename m4/sha.m4 to m4/sha1.m4.
33269         (lib_SOURCES): Likewise.
33270         (configure.ac): Rename gl_SHA to gl_SHA1.
33271         (Include): sha.h -> sha1.h.
33272
33273 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33274
33275         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33276         * m4/sha1.m4: Renamed from sha.m4.
33277         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33278
33279 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33280
33281         * lib/obstack.h (obstack_empty_p):
33282         Don't assume that chunk->contents is suitably aligned.
33283         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33284         Likewise. Problem reported by Benno in
33285         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33286
33287         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33288         readable.  This could be improved further but it'd take some work.
33289
33290 2004-08-08  Simon Josefsson  <jas@extundo.com>
33291
33292         * modules/xgethostname (Depends-on): Remove exit and error (not
33293         used).
33294
33295         * modules/getpass-gnu: Add getpass.h.
33296         (Depends-on): Add stdbool.
33297         * modules/getpass: Add getpass.h.
33298
33299 2004-08-08  Simon Josefsson  <jas@extundo.com>
33300
33301         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33302         Check getpass declaration.
33303
33304 2004-08-08  Simon Josefsson  <jas@extundo.com>
33305
33306         * lib/xgethostname.c: Don't include error.h (not used).
33307
33308         * lib/getpass.h: Add.
33309         * lib/getpass.c: Include getpass.h first.
33310
33311 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33312
33313         * lib/xalloc-die.c: New file.
33314         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33315         All uses removed.
33316         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33317         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33318         xalloc-die.c.
33319         (_, N_, xalloc_die): Move to xalloc-die.c.
33320         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33321         so that we needn't mess with xalloc_msg_memory_exhausted.
33322
33323         * lib/sha1.h: Renamed from sha.h.
33324         (SHA1_H): Renamed from _SHA_H.
33325         (sha1_ctx): Renamed from sha_ctx.
33326         (sha1_init_ctx): Renamed from sha_init_ctx.
33327         (sha1_process_block): Renamed from sha_process_block.
33328         (sha1_process_bytes): Renamed from sha_process_bytes.
33329         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33330         (sha1_read_ctx): Renamed from sha_read_ctx.
33331         (sha1_stream): Renamed from sha_stream.
33332         (sha1_buffer): Renamed from sha_buffer.
33333         * lib/sha1.c: Likewise; renamed from sha.c.
33334         Do not include <sys/types.h>.
33335         Include <stddef.h> rather than <stdlib.h>.
33336
33337 2004-08-08  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33340         FILESYSTEM_PREFIX_LEN.
33341         * lib/progreloc.c: Likewise.
33342         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33343
33344 2004-08-06  Simon Josefsson  <jas@extundo.com>
33345
33346         * modules/progname (Depends-on): Don't depend on stdbool.
33347
33348 2004-08-06  Simon Josefsson  <jas@extundo.com>
33349
33350         * modules/getsubopt: New file.
33351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33352         getsubopt.
33353
33354 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33355
33356         More merge from coreutils.
33357
33358         * m4/utimens.m4, m4/utimecmp.m4: New files.
33359         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33360         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33361         prereq.m4, sha.m4: Import changes from coreutils.
33362
33363 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33364
33365         More merge from coreutils.
33366         * modules/raise, modules/readtokens0, modules/utimens:
33367         * modules/utimecmp, module/xnanosleep: New files.
33368         * modules/strftime: Add lib/strftime.h.
33369         Change include from <time.h> to "strftime.h".
33370         * modules/yesno: Add lib/yesno.h.
33371         * modules/backupfile: Remove lib/addext.c.
33372         * modules/euidaccess: Add stat-macros.h.
33373         * modules/canonicalize, modules/euidaccess,
33374         modules/filemode, modules/lchown, modules/makepath,
33375         modules/rmdir, modules/stat: Likewise.
33376
33377 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33378
33379         Merge from tar.
33380         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33381         SIZE_MAX is a valid preprocessor constant.
33382         (__argp_basename): Change from "#ifndef _LIBC"
33383         to "#ifndef __argp_short_program_name", so that
33384         we don't compile these functions for tar.
33385
33386         More merges from coreutils.
33387         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33388         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33389         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33390         * lib/addext.c: Remove; no longer needed.
33391         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33392         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33393         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33394         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33395         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33396         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33397         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33398         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33399         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33400         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33401         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33402         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33403         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33404         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33405         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33406         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33407         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33408         Import changes from coreutils.
33409
33410 2004-08-05  Simon Josefsson  <jas@extundo.com>
33411
33412         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33413
33414 2004-08-05  Simon Josefsson  <jas@extundo.com>
33415
33416         * m4/getsubopt.m4: New file.
33417
33418 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33419
33420         Merge from coreutils.
33421
33422         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33423         * m4/getcwd-path-max.m4: New files.
33424
33425         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33426         FILESYSTEM_PREFIX_LEN ->
33427         FILE_SYSTEM_PREFIX_LEN.
33428         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33429         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33430         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33431         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33432
33433         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33434         prerequisite modules now handle the DOS stuff.
33435         Don't check for unistd.h.
33436
33437 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33438
33439         Merge from coreutils.
33440
33441         * lib/.gdb-history: Remove; this doesn't belong here.
33442
33443         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33444         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33445         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33446         * lib/getcwd.c: New files.
33447
33448         * lib/dirname.h: Include <stdbool.h>.
33449         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33450         for consistency with POSIX terminology.  All uses changed.
33451         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33452         (strip_trailing_slashes): Use bool for booleans.
33453         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33454
33455         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33456         sometimes returns a positive errno value even when it succeeds.
33457         (print_errno_message) [!LIBC]: Fall back on strerror if
33458         __strerror_r fails.
33459
33460         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33461         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33462         (longest_relative_suffix): New function.
33463         (path_concat): Use it.  Assume first argument is not NULL.
33464         Port to DOS.  Omit redundant separators.
33465         Report an error instead of returning NULL.
33466         Use mempcpy instead of memcpy.
33467         (xpath_concat): Remove: not declared or used.
33468
33469         * lib/same.h: Include <stdbool.h>
33470         (same_name): Return bool, not int.
33471         * lib/same.c (same_name): Likewise.
33472         (errno): Don't declare; we assume C89 or better now.
33473
33474         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33475         if not already defined.
33476
33477         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33478         * lib/dup-safer.c (errno): Likewise.
33479
33480 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33481
33482         Merge from coreutils.
33483         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33484         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33485         * modules/path-concat: Don't depend on strdup.
33486
33487 2004-08-03  Simon Josefsson  <jas@extundo.com>
33488
33489         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33490         * lib/progname.h: Don't include stdbool.h.
33491
33492 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33493
33494         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33495         * MODULES.html.sh (func_all_modules): Remove fatal.
33496
33497 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33498
33499         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33500
33501 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33502
33503         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33504         working.
33505
33506 2004-08-02  Simon Josefsson  <jas@extundo.com>
33507
33508         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33509         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33510         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33511
33512 2004-08-01  Simon Josefsson  <jas@extundo.com>
33513
33514         * lib/xgetdomainname.c: Include stdlib.h, for free().
33515
33516 2004-07-19  Bruno Haible  <bruno@clisp.org>
33517
33518         * MODULES.html.sh (func_all_modules): Add dummy.
33519
33520 2004-07-16  Simon Josefsson  <jas@extundo.com>
33521
33522         * modules/dummy: New file.
33523
33524 2004-07-16  Simon Josefsson  <jas@extundo.com>
33525
33526         * lib/dummy.c: New file.
33527
33528 2004-07-16  Bruno Haible  <bruno@clisp.org>
33529
33530         * lib/backupfile.h: Add extern "C" for C++.
33531         * lib/closeout.h: Likewise.
33532         * lib/copy-file.h: Likewise.
33533         * lib/findprog.h: Likewise.
33534         * lib/full-write.h: Likewise.
33535         * lib/pathname.h: Likewise.
33536         * lib/progname.h: Likewise.
33537         * lib/stpcpy.h: Likewise.
33538         * lib/stpncpy.h: Likewise.
33539         * lib/strcase.h: Likewise.
33540         * lib/strstr.h: Likewise.
33541         * lib/xalloc.h: Likewise.
33542
33543         * lib/mbswidth.h: Add extern "C" for C++.
33544         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33545
33546 2004-07-13  Robert Millan  <robertmh@gnu.org>
33547
33548         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33549
33550 2004-07-09  Simon Josefsson  <jas@extundo.com>
33551
33552         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33553         failed without this.)
33554
33555 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33556
33557         * modules/chown (Files): Add lib/fchown-stub.c, since
33558         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33559
33560 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33561
33562         * lib/fchown-stub.c: New file.
33563
33564 2004-06-24  Jim Meyering  <jim@meyering.net>
33565
33566         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33567
33568 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * modules/argz: Omit "#include".
33571
33572         * MODULES.html.sh (func_all_modules): Add calloc, to match
33573         2004-06-01 addition of calloc module.
33574
33575 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33576
33577         * m4/argz.m4: New file, which is autoupdated from libtool.
33578
33579 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33580
33581         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33582         libtool.
33583
33584 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33585
33586         * config/srclist-update: Don't insist on "USA." before the
33587         close-comment, as libtool omits the period and puts the */ on a
33588         separate line.
33589         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33590         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33591
33592 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33593
33594         * modules/argz: New file.
33595         * MODULES.html.sh (func_all_modules): Add argz.
33596
33597 2004-06-12  Jim Meyering  <jim@meyering.net>
33598         and  Paul Eggert  <eggert@cs.ucla.edu>
33599
33600         * modules/hash (Files): Add lib/xalloc.h.
33601         * modules/pipe (Depends-on): Add wait-process.
33602         * modules/stat (Depends-on): Add xalloc.
33603         * modules/userspec (Files): Add lib/userspec.h.
33604         * modules/xstrto
33605
33606         Upgrade from gettext-0.13.
33607         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33608         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33609         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33610
33611 2004-06-10  Jim Meyering  <jim@meyering.net>
33612
33613         * lib/calloc.c: New file.
33614
33615 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33616
33617         * lib/getdate.y (yylex): Allow space between sign and number.
33618         Problem reported by Dan Jacobson.
33619
33620 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33621
33622         Merge from coreutils CVS.
33623
33624         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33625         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33626         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33627         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33628         xstrtol.m4: Fix copyright date and/or serial number.
33629
33630         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33631         See if we need an fchown replacement.
33632         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33633         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33634         and use the replacement function if we detect either defect.
33635
33636         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33637         gl_UTIMECMP.
33638
33639 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33640         and  Jim Meyering  <jim@meyering.net>
33641
33642         Merge from coreutils CVS.
33643
33644         * lib/stat-macros.h: New file, with contents from file-type.h
33645         and coreutils' system.h.
33646         * lib/file-type.c: Include "stat-macros.h".
33647         * lib/file-type.h (file_type): Move all macro definitions to new file,
33648         stat-macros.h.
33649
33650         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33651         Wrap old code with this conditional.
33652         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33653         function that does not dereference symlinks.
33654         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33655
33656         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33657         dependency problems.
33658         (xreadlink): Accept new arg SIZE, for efficiency.
33659         All decls and uses changed.
33660         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33661
33662         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33663         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33664
33665         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33666         sysexits.h.
33667
33668 2004-06-01  Jim Meyering  <jim@meyering.net>
33669
33670         * m4/calloc.m4: New file.
33671
33672 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33673
33674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33675         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33676         Also, fix a typo in a diagnostic.
33677
33678 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33679
33680         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33681         or AC_FUNC_REALLOC.
33682
33683 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33684
33685         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33686         macros to be defined.
33687         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33688         the allocator returns NULL because the requested size is zero.
33689
33690 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33691
33692         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33693         var.  Add comment explaining why libc still defines it.  This
33694         merges the following patch from glibc:
33695         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33696
33697 2004-05-20  Andreas Schwab  <schwab@suse.de>
33698
33699         * m4/free.m4: Replace free if it not known to work, not the other
33700         way round.
33701
33702 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33703
33704         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33705         present in glibc since revision 1.1 of this file.
33706         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33707         obstack_alignment_mask, obstack_alloc, obstack_base,
33708         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33709         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33710         obstack_grow0, obstack_init, obstack_int_grow,
33711         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33712         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33713         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33714         nonexistent functions.
33715
33716 2004-05-18  Karl Berry  <karl@gnu.org>
33717
33718         * config/srclist.txt: break link for vasnprintf.c.
33719
33720 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33721
33722         Port obstack to the AS/400, where pointers are 16 bytes wide and
33723         you cannot cast an integer to a valid pointer.  This patch is
33724         currently waiting to be integrated into glibc; see
33725         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33726
33727         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33728         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33729         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33730         (struct obstack): temp member is now a union of a pointer and
33731         an integer, instead of an integer.  All integer uses changed.
33732         This does not affect the physical layout of struct obstack,
33733         except on hosts (like the AS/400) where the size or alignment of
33734         void * is greater than that of ptrdiff_t.
33735         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33736         __STDC__)]: Store temporary in pointer member of union, not
33737         integer member.
33738         * lib/obstack.c: Include <stddef.h>, for offsetof.
33739         (struct fooalign): Remove; it doesn't need a name.
33740         (union fooround): Change double to long double, and add void *.
33741         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33742         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33743         not a macro.  Hence the values are always int; so remove all
33744         casts-to-int in uses.
33745
33746 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33747
33748         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33749         we can get this patch merged into glibc.
33750
33751 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33752             Paul Eggert  <eggert@cs.ucla.edu>
33753
33754         * m4/argp: Depend on alloca.
33755
33756 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33757             Paul Eggert  <eggert@cs.ucla.edu>
33758
33759         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33760         freecoding.
33761
33762 2004-05-17  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33765         precision that consists of a '.' followed by an empty digit string.
33766         Patch by Tor Lillqvist <tml@iki.fi>.
33767
33768 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33769
33770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33771         for backward compatibility with older code.  We need our own
33772         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33773         it under some other name, and our alloca.h will define it.
33774
33775 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33776             Derek Price  <derek@ximbiot.com>
33777
33778         * lib/alloca.c: Include <alloca.h>, to get our interface.
33779         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33780         include <alloca.h> first.  Use C89 prototype for alloca; this
33781         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33782         Use #elif for simplicity, since we can assume C89 now.
33783         Don't try to source the system alloca.h since it will not be found
33784         and to prevent recursively including its replacement.
33785         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33786         * lib/regex.c: Likewise.
33787
33788 2004-05-16  Derek Price  <derek@ximbiot.com>
33789             Paul Eggert  <eggert@cs.ucla.edu>
33790
33791         getline cleanup.  This changes the getndelim2 API: both order of
33792         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33793         no delimiter).
33794
33795         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33796         interface does that.
33797         (getline): Always use getdelim, so that we don't have two
33798         copies of this code.
33799         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33800         if available.
33801         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33802         (GETNDELIM2_MAXIMUM): New macro.
33803         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33804         instead of the old practice of delim2==0.  All callers changed.
33805         Return -1 on overflow, instead of returning junk.
33806         Do not set *linesize unless allocation succeeds.
33807         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33808         that we include sys/types.h.
33809         * lib/getnline.h: Likewise.
33810         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33811         (getndelim2): Reorder arguments.
33812         * lib/getnline.c (getnline, getndelim):
33813         Don't discard the NMAX argument.
33814         (getnline): Invoke getndelim, to avoid code duplication.
33815         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33816         of (size_t) -1 by callers of the getnline family.
33817
33818 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33819
33820         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33821         Check for gettimeofday.
33822         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33823         Check for settimeofday, stime.
33824
33825 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33826
33827         * lib/nanosleep.c (suspended): Change its type from int to
33828         sig_atomic_t volatile.
33829         (first_call): Make it private to rpl_nanosleep, and have it
33830         be zero initially as that's a bit faster.
33831         (my_usleep): Round up fractional times instead of truncating them,
33832         as this is the usual meaning for 'sleep'.
33833
33834         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33835         doesn't work.
33836         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33837         (ENOSYS): Define if not defined.
33838         (settime): Fall back on stime if it exists and settimeofday fails.
33839         But don't bother with fallbacks if a method fails with errno == EPERM.
33840
33841 2004-05-11  Jim Meyering  <jim@meyering.net>
33842
33843         Prior to this change, the save_cwd caller required read access to the
33844         current directory on most systems (ones with the fchdir function).
33845
33846         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33847         fails, try write-only, and finally, resort to using xgetcwd.
33848
33849 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33850
33851         * lib/obstack.c, obstack.h: Import changes from libc.
33852
33853 2004-04-28  Bruno Haible  <bruno@clisp.org>
33854
33855         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33856         also implicitly appends .exe to executables.
33857         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33858         accepts Windows pathnames.
33859         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33860         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33861         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33862         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33863         Reported by Derek Robert Price <derek@ximbiot.com>.
33864
33865 2004-04-21  Karl Berry  <karl@gnu.org>
33866
33867         * config/srclist.txt (localcharset.c): break sync.
33868
33869 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33870
33871         * m4/host-os.m4: Add a copyright notice.
33872
33873 2004-04-20  Jim Meyering  <jim@meyering.net>
33874
33875         Change UTILS_ to gl_ in AC_DEFINE'd names.
33876         Change utils_- and jm_-prefixed variables, too.
33877         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33878         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33880
33881         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33882         Don't emit trailing blanks.
33883         Also rename jm_-prefixed variables to have gl_ prefix.
33884
33885         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33886         Also rename jm_-prefixed variables to have gl_ prefix.
33887
33888         * m4/jm-macros.m4: Reflect the renamings.
33889         * m4/prereq.m4: Likewise.
33890
33891 2004-04-20  Jim Meyering  <jim@meyering.net>
33892
33893         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33894         memory.
33895
33896 2004-04-20  Jim Meyering  <jim@meyering.net>
33897             Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33900         memory when realloc fails.
33901
33902 2004-04-19  Jim Meyering  <jim@meyering.net>
33903
33904         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33905         now that readutmp.c may call `free (0)'.
33906
33907 2004-04-19  Bruno Haible  <bruno@clisp.org>
33908
33909         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33910         * m4/inttypes_h.m4: Likewise.
33911         * m4/stdint_h.m4: Likewise.
33912         * m4/intmax_t.m4: Likewise.
33913         * m4/uintmax_t.m4: Likewise.
33914
33915 2004-04-18  Jim Meyering  <jim@meyering.net>
33916
33917         * m4/prereq.m4: Don't forbid jm_ prefix.
33918
33919         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33920         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33921         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33922         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33923         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33924         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33925         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33926         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33927         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33928         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33929         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33930         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33931         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33932         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33933         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33934         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33935         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33936         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33937         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33938
33939 2004-04-18  Jim Meyering  <jim@meyering.net>
33940
33941         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33942         failure, don't leak memory and do call END_UTMP_ENT.
33943
33944 2004-04-16  Jim Meyering  <jim@meyering.net>
33945
33946         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33947         coreutils' stat program.
33948         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33949
33950 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33951
33952         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33953         C89.
33954         (CHAR_BIT): Remove, since we assume C89.
33955         Include <stdint.h> if available, as per current Autoconf CVS advice.
33956
33957 2004-03-31  Jim Meyering  <jim@meyering.net>
33958
33959         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33960         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33961         * m4/xalloc.m4: Likewise.
33962
33963 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33964
33965         Merge from coreutils.
33966
33967         * m4/inttostr.m4: New file.
33968         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33969         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33970         Require gl_CLOCK_TIME.
33971         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33972
33973 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33974
33975         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33976         not bool, to be more consistent with Unix conventions.
33977         Suggested by Bruno Haible.
33978
33979         Merge from coreutils.
33980
33981         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33982         * lib/umaxtostr.c: New files.
33983
33984         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33985         the usual <time.h> dance.
33986         (get_date): Change signature to support fractional time stamps.
33987         All callers changed.
33988         * lib/getdate.y: Include "getdate.h" first, as we can now
33989         assume C89 and don't need to worry about 'const'.
33990         Similarly, include "unlocked-io.h" near start, not in middle.
33991         Include <limits.h>.
33992         (textint.value): Use long int rather than int.
33993         (textint.digits): Use size_t rather than int.
33994         (BILLION, LOG10_BILLION): New constants.
33995         (parser_control): New member rel_ns.  Members day_ordinal,
33996         time_zone, month, day, hour, minutes, rel_year, rel_month,
33997         rel_day, rel_hour, rel_minutes, rel_seconds
33998         are now long int, not int.  Member seconds is now struct timespec,
33999         not int.  New member timespec_seen.  Members dates_seen, days_seen,
34000         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
34001         not int.
34002         (%union.intval): Now long int, not int.
34003         New member timespec.
34004         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
34005         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
34006         (spec): Now is a timespec or an item list.
34007         (timespec, items): New nonterminals.
34008         (time, rel, relunit, number, get_date):
34009         Add support for fractional seconds.
34010         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
34011         (gmtime, localtime, mktime): Remove decls; not needed with C89.
34012         (to_hour): First arg is now long int, not int.
34013         (to_year): Returns long int, not int.
34014         Don't treat year -70 like 70.
34015         (tm_diff): Returns long int, not int.
34016         (lookup_word): Use bool instead of int when appropriate.
34017         (yylex): Use size_t for count, not int.
34018         Detect overflow when parsing large integer constants.
34019         Add support for fractions.
34020         (get_date): Make pointers 'const' if possible.
34021         Use more-portable code to detect integer overflow.
34022         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
34023         Don't use ctime; it's not reliable if the year has >4 digits.
34024
34025         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
34026         This is for compatibility with BSD.
34027
34028         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
34029         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
34030         From coreutils' system.h.
34031
34032         * lib/userspec.c: Don't include "posixver.h".
34033         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
34034         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
34035         compatible extension.  Simplify code by removing a boolean int
34036         that was always nonzero if a string was nonnull.
34037
34038 2004-03-30  Jim Meyering  <jim@meyering.net>
34039
34040         Merge from coreutils.
34041
34042         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
34043         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
34044         on some systems one must include <grp.h> before it.
34045         Reported by Christian Krackowizer.
34046
34047 2004-03-30  Jim Meyering  <jim@meyering.net>
34048
34049         Merge from coreutils.
34050
34051         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
34052
34053         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
34054         an empty input stream.
34055
34056         * lib/readtokens.c: Include <stdbool.h>.
34057         (readtoken): Use `size_t' rather than int/long.
34058         All callers adjusted.
34059         Use `bool' rather than `int' where appropriate.
34060         Use memset rather than an explicit loop.
34061         Use x2nrealloc rather than xrealloc.
34062         Allow the use of `\0' as a delimiter.
34063         (readtokens): Likewise.
34064         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
34065
34066 2004-03-30  Jim Meyering  <jim@meyering.net>
34067
34068         * m4/realloc.m4: Remove file, since now it does no more than
34069         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
34070         the `configure.ac' section of module/realloc.
34071         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
34072
34073 2004-03-30  Bruno Haible  <bruno@clisp.org>
34074
34075         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
34076         nonnull.
34077
34078 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34079
34080         Merge changes to getloadavg.c from coreutils and Emacs.
34081
34082         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
34083         Define to an expression, not to the empty string.
34084         Include cloexec.h and xalloc.h.
34085         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
34086         Use set_cloexec_flag rather than rolling our own.
34087         * lib/cloexec.c, lib/cloexec.h: New files.
34088
34089 2004-03-29  Paul Eggert  <eggert@twinsun.com>
34090
34091         * m4/cloexec.m4: New file.
34092
34093 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34094
34095         * lib/getopt.h: Sync with libc CVS.
34096
34097 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34098             Bruno Haible  <bruno@clisp.org>
34099
34100         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
34101         mbswidth.
34102
34103 2004-03-18  Paul Eggert  <eggert@twinsun.com>
34104             Bruno Haible  <bruno@clisp.org>
34105
34106         * lib/mbswidth.h: Include <wchar.h> only if
34107         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
34108         <wchar.h>.
34109         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
34110
34111 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34112
34113         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
34114         Sync with libc CVS.
34115         * lib/getopt_int.h: New file, also synced from libc.
34116
34117 2004-03-09  Paul Eggert  <eggert@twinsun.com>
34118
34119         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
34120         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
34121         Bring back getopt.c, getopt.h, getopt1.c.
34122
34123 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34124
34125         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
34126         All uses changed.  Check for sa_sigaction member; this fixes
34127         a bug first reported by Jason Andrade in
34128         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34129
34130 2004-03-07  Paul Eggert  <eggert@twinsun.com>
34131
34132         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
34133         '#if' expressions.  Unlike the code it replaces, it does not
34134         depend on (defined _SC_PAGESIZE).  However, it does depend on
34135         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
34136         first reported by Jason Andrade in
34137         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
34138
34139 2004-02-25  Simon Josefsson  <jas@extundo.com>
34140
34141         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
34142
34143 2004-02-25  Simon Josefsson  <jas@extundo.com>
34144
34145         * lib/strdup.h: New file.
34146         * lib/strdup.c: Include it.
34147         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
34148         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
34149
34150 2004-02-23  Karl Berry  <karl@gnu.org>
34151
34152         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
34153         (from fencepost.gnu.org:/gd/gnuorg).
34154
34155 2004-02-23  Karl Berry  <karl@gnu.org>
34156
34157         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34158         * config/srclist.txt: add maintain/standards documents.
34159
34160 2004-02-18  Bruno Haible  <bruno@clisp.org>
34161
34162         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34163         Reported by Derek Robert Price <derek@ximbiot.com>.
34164
34165 2004-02-16  Karl Berry  <karl@gnu.org>
34166
34167         * config/mkinstalldirs, install-sh: update from automake.
34168
34169 2004-02-06  Karl Berry  <karl@gnu.org>
34170
34171         * m4/po.m4: update from gettext 0.14.1.
34172
34173 2004-02-06  Karl Berry  <karl@gnu.org>
34174
34175         * lib/config.charset: update from gettext 0.14.1.
34176
34177 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34178
34179         Add comments and code, prompted by suggestions from Bruno Haible
34180         for sh-quote.
34181         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34182         describing the enum quoting_style values.
34183         * lib/quotearg.c (quotearg_alloc): New function.
34184         (quotearg_buffer_restyled): Treat lone { and } as special.
34185         Treat = as special.  Work around bug with older shells
34186         that "see" a '\' that is really the 2nd byte of a multibyte char.
34187         Quote empty string with shell_quoting_style.
34188
34189 2004-02-03  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/pipe.m4: New file, from GNU gettext.
34192
34193 2004-02-03  Bruno Haible  <bruno@clisp.org>
34194
34195         * lib/pipe.h: New file, from GNU gettext.
34196         * lib/pipe.c: New file, from GNU gettext.
34197
34198 2004-01-27  Bruno Haible  <bruno@clisp.org>
34199
34200         * m4/execute.m4: New file, from GNU gettext.
34201
34202 2004-01-27  Bruno Haible  <bruno@clisp.org>
34203
34204         * lib/execute.h: New file, from GNU gettext.
34205         * lib/execute.c: New file, from GNU gettext.
34206         * lib/w32spawn.h: New file, from GNU gettext.
34207
34208 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34209
34210         Merge from diffutils.
34211
34212         * lib/file-type.c (file_type): Add typed memory objects.
34213         * lib/file-type.h (S_TYPEISTMO): New macro.
34214
34215         * lib/c-stack.h (c_stack_action): Remove argv argument.
34216         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34217         (die): Don't calculate message unless segv_action returns.
34218         (get_stack_location, min_address_from_argv, max_address_from_argv,
34219         volatile stack_base, volatile_stack_size): Remove.
34220         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34221         that every segmentation violation is a stack overflow.  (Ouch!)
34222         See Debian bug 136249 (still outstanding) for more info about why
34223         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34224
34225 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34226
34227         Exit-status fix from coreutils.
34228
34229         Use exit_failure consistently in place of EXIT_FAILURE,
34230         so that program exit statuses are consistent on failure.
34231
34232         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34233         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34234         * lib/argmatch.h: Comment fix to match the above.
34235         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34236         Now a macro referring to exit_failure, instead of a separate
34237         variable.  Include "exitfail.h" to get it.
34238         * lib/xstrtol.h: Include "exitfail.h".
34239         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34240
34241         * lib/long-options.c (parse_long_options): Use prototype
34242         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34243         for clarity.
34244
34245 2004-01-21  Jim Meyering  <jim@meyering.net>
34246
34247         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34248         so as not to conflict with a different-sized __mktime_internal
34249         function in GNU libc.
34250         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34251         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34252
34253 2004-01-20  Karl Berry  <karl@gnu.org>
34254
34255         * config/config.guess: update from config.
34256
34257         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34258
34259 2004-01-20  Bruno Haible  <bruno@clisp.org>
34260
34261         Safer stack allocation.
34262         * lib/setenv.c: Include allocsa.h.
34263         (alloca): Remove fallback definition.
34264         (freea): Remove macro.
34265         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34266         instead of freea.
34267
34268 2004-01-20  Bruno Haible  <bruno@clisp.org>
34269
34270         * m4/eealloc.m4: New file, from GNU gettext.
34271
34272 2004-01-20  Bruno Haible  <bruno@clisp.org>
34273
34274         * m4/allocsa.m4: New file, from GNU gettext.
34275
34276 2004-01-20  Bruno Haible  <bruno@clisp.org>
34277
34278         * lib/xallocsa.h: New file, from GNU gettext.
34279         * lib/xallocsa.c: New file, from GNU gettext.
34280
34281 2004-01-20  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34284
34285 2004-01-20  Bruno Haible  <bruno@clisp.org>
34286
34287         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34288         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34289         specially.
34290
34291 2004-01-20  Bruno Haible  <bruno@clisp.org>
34292
34293         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34294         patch.
34295
34296 2004-01-20  Bruno Haible  <bruno@clisp.org>
34297
34298         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34299
34300 2004-01-20  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/eealloc.h: New file.
34303
34304 2004-01-20  Bruno Haible  <bruno@clisp.org>
34305
34306         * lib/binary-io.h: Avoid warnings on Cygwin.
34307
34308 2004-01-20  Bruno Haible  <bruno@clisp.org>
34309
34310         * lib/allocsa.h: New file, from GNU gettext.
34311         * lib/allocsa.c: New file, from GNU gettext.
34312
34313 2004-01-18  Karl Berry  <karl@gnu.org>
34314
34315         * doc/gpl.texi, doc/lgpl.texi: new files.
34316
34317 2004-01-18  Karl Berry  <karl@gnu.org>
34318
34319         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34320         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34321
34322 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34323
34324         Merge from coreutils.
34325
34326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34327         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34328         (gl_DEFAULT_POSIX2_VERSION): Move
34329         the documentation from 'configure' into 'config.hin',
34330         so that 'configure --help' isn't burdened by it and
34331         we don't have to worry about its formatting there.
34332         Reword the documentation so that it's more succinct
34333         and can be run together into a single paragraph.
34334         * m4/same.m4 (gl_SAME): Check for pathconf.
34335
34336 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34337
34338         Merge from coreutils.
34339
34340         * lib/posixver.c: Include posixver.h.
34341
34342         * lib/same.c: Include <stdbool.h>, <limits.h>.
34343         (_POSIX_NAME_MAX): Define if not defined.
34344         (MIN): New macro.
34345         (same_name): If file names are silently truncated, report
34346         that the file names are the same if they are the same after
34347         the silent truncation.
34348
34349         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34350         conversion function.
34351         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34352         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34353         longer needed.
34354
34355 2004-01-15  Jim Meyering  <jim@meyering.net>
34356
34357         Merge from coreutils.
34358
34359         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34360         if no library is required.
34361         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34362         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34363         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34364         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34365         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34366         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34367         value, $ac_cv_search_crypt, if it's "none required".
34368         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34369         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34370         not gl_FUNC_GETLOADAVG.
34371         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34372         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34373
34374 2004-01-15  Jim Meyering  <jim@meyering.net>
34375
34376         Merge from coreutils.
34377
34378         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34379         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34380         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34381
34382         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34383         optional configure-time default.
34384
34385         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34386
34387         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34388
34389 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34390
34391         Merge from coreutils.
34392
34393         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34394         value, $ac_cv_search_nanosleep, if it's "none required".
34395
34396 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34397
34398         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34399         with like-named macro in fnmatch.c.
34400         (EXT): Use an internal constant instead.
34401
34402         Merge fnmatch patches from glibc.
34403         * lib/fnmatch.c (mbsinit): Remove define.
34404         Add libc_hidden_ver (__fnmatch, fnmatch).
34405         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34406         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34407
34408 2004-01-14  Karl Berry  <karl@gnu.org>
34409
34410         * config/install-sh: update from automake.
34411
34412 2004-01-13  Karl Berry  <karl@gnu.org>
34413
34414         * config/install-sh: update from automake.
34415
34416 2004-01-09  Karl Berry  <karl@gnu.org>
34417
34418         * config/install-sh: update from automake.
34419
34420 2004-01-05  Karl Berry  <karl@gnu.org>
34421
34422         * config/config.{sub,guess}: update from config.
34423
34424 2003-12-31  Karl Berry  <karl@gnu.org>
34425
34426         * config/depcomp: update from automake.
34427
34428 2003-12-14  Karl Berry  <karl@gnu.org>
34429
34430         * lib/config.charset: update from gettext-runtime.
34431
34432 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34433
34434         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34435         Bug reported by Alfred M. Szmidt.
34436
34437 2003-12-03  Bruno Haible  <bruno@clisp.org>
34438
34439         * m4/gettext.m4: Upgrade from gettext-0.13.
34440         * m4/po.m4: Upgrade from gettext-0.13.
34441         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34442         * m4/intmax.m4: New file, from gettext-0.13.
34443         * m4/printf-posix.m4: New file, from gettext-0.13.
34444
34445 2003-11-29  Karl Berry  <karl@gnu.org>
34446
34447         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34448
34449 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34450             Bruno Haible  <bruno@clisp.org>
34451
34452         * lib/printf-parse.h: Don't include sys/types.h.
34453         (ARG_NONE): New macro.
34454         (char_directive): Change type of *arg_index fields to size_t.
34455         * lib/printf-parse.c: Don't include sys/types.h.
34456         (SSIZE_MAX): Remove macro.
34457         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34458         Remove unnecessary overflow check.
34459         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34460         fields.
34461
34462 2003-11-25  Bruno Haible  <bruno@clisp.org>
34463
34464         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34465
34466 2003-11-25  Bruno Haible  <bruno@clisp.org>
34467
34468         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34469         gt_TYPE_SSIZE_T.
34470
34471 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34472
34473         * modules/alloca: Remove dependency on xalloc.
34474
34475 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34476
34477         * lib/alloca.c: Remove dependency on xalloc module.
34478         (xalloc_die): Remove.
34479         (memory_full) [!defined emacs]: New macro.
34480         [!defined emacs]: Don't include xalloc.h.
34481         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34482         address arithmetic overflows.  Change datatypes a bit to avoid
34483         unnecessary casts.
34484
34485 2003-11-22  Jim Meyering  <jim@meyering.net>
34486
34487         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34488         s/size/size_t/.
34489
34490 2003-11-21  Karl Berry  <karl@gnu.org>
34491
34492         * config/config.{sub,guess}: update from config.
34493
34494 2003-11-18  Karl Berry  <karl@gnu.org>
34495
34496         * config/config.{sub,guess}: update from config.
34497
34498         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34499
34500 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34501
34502         * README: Mention that S+T cannot overflow if S is the size of
34503         an existing object and T is sufficiently small.
34504
34505 2003-11-17  Jim Meyering  <jim@meyering.net>
34506
34507         On systems without utime and without a utimes function capable of
34508         dealing with a NULL struct utimbuf* argument, this utime replacement
34509         could -- in unusual circumstances -- leak a file descriptor.
34510         * lib/utime.c: Include <unistd.h> and <errno.h>.
34511         (utime_null): Be sure to close `fd' and to preserve errno.
34512         Reported by Geoff Collyer via Arnold Robbins.
34513
34514 2003-11-17  Bruno Haible  <bruno@clisp.org>
34515
34516         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34517         (Depends-on): Add xsize.
34518
34519 2003-11-17  Bruno Haible  <bruno@clisp.org>
34520
34521         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34522
34523 2003-11-17  Bruno Haible  <bruno@clisp.org>
34524
34525         * lib/vasnprintf.c (alloca): Remove fallback definition.
34526         (freea): Remove definition.
34527         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34528         Reported by Paul Eggert.
34529
34530 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34531             Bruno Haible  <bruno@clisp.org>
34532
34533         Protect against address arithmetic overflow.
34534         * lib/printf-args.h: Include stddef.h.
34535         (arguments): Change type of field 'count' to size_t.
34536         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34537         'unsigned int' where appropriate.
34538         * lib/printf-parse.h: Include sys/types.h.
34539         (char_directive): Change type of *arg_index fields to ssize_t.
34540         (char_directives): Change type of fields 'count', max_*_length to
34541         size_t.
34542         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34543         (SSIZE_MAX): Define fallback value.
34544         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34545         instead of 'int' where appropriate. Check a_allocated, d_allocated
34546         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34547         * lib/vasnprintf.c: Include xsize.h.
34548         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34549         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34550         overflow. Avoid wraparound when converting a width or precision from
34551         decimal to binary.
34552
34553 2003-11-16  Bruno Haible  <bruno@clisp.org>
34554
34555         Update from GNU gettext.
34556         * lib/printf-parse.c: Generalize to it can be compiled for wide
34557         strings.
34558         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34559         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34560         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34561         SNPRINTF): New macros.
34562         Don't include <alloca.h> if the file is used inside libintl.
34563         (local_wcslen): New function, for Solaris 2.5.1.
34564         (VASNPRINTF): Use it instead of wcslen.
34565
34566 2003-11-16  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/xsize.h (xmax): New function.
34569         (xsum, xsum3, xsum4): Declare as "pure" functions.
34570
34571 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34572
34573         * modules/xalloc (Files): Undo latest change, since xalloc.h
34574         no longer needs SIZE_MAX or PTRDIFF_MAX.
34575
34576 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34577
34578         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34579         gl_PTRDIFF_MAX.
34580
34581 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34582
34583         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34584         "return", to pacify some unknown compiler.  Problem reported
34585         by Joerg Schilling.
34586
34587 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34588
34589         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34590         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34591         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34592         heuristic is just as accurate as far as we know, and it removes a
34593         dependency on size_max.m4 and ptrdiff_max.m4.
34594
34595 2003-11-11  Bruno Haible  <bruno@clisp.org>
34596
34597         * modules/xsize (Files): Add m4/size_max.m4.
34598         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34599
34600 2003-11-11  Bruno Haible  <bruno@clisp.org>
34601
34602         * m4/size_max.m4: New file.
34603         * m4/ptrdiff_max.m4: New file.
34604         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34605         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34606         (gl_XALLOC): Invoke it.
34607
34608 2003-11-11  Bruno Haible  <bruno@clisp.org>
34609
34610         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34611         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34612         defined.
34613
34614 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34615
34616         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34617         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34618         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34619         From Bruno Haible.
34620         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34621         not (size_t) -1, since it's defined here.
34622
34623 2003-11-09  Karl Berry  <karl@gnu.org>
34624
34625         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34626
34627 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34628
34629         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34630         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34631         Reject sizes of exactly SIZE_MAX bytes.
34632         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34633         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34634
34635 2003-11-05  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34638         SIZE_MAX defined in <limits.h> on Solaris.
34639
34640 2003-11-04  Jim Meyering  <jim@meyering.net>
34641
34642         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34643         variable names, rather than @VAR@.
34644         * modules/poll: Likewise.
34645
34646 2003-11-04  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/xsize: New file.
34649         * modules/linebreak: Depend on xsize.
34650         * MODULES.html.sh (func_all_modules): Add xsize.
34651
34652 2003-11-04  Bruno Haible  <bruno@clisp.org>
34653
34654         * m4/xsize.m4: New file.
34655
34656 2003-11-04  Bruno Haible  <bruno@clisp.org>
34657
34658         * lib/xsize.h: New file.
34659         * lib/linebreak.c: Include xsize.h.
34660         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34661         argument for overflow.
34662         Suggested by Paul Eggert.
34663
34664 2003-11-03  Karl Berry  <karl@gnu.org>
34665
34666         * config/config.{guess,sub}: update from config.
34667
34668 2003-11-03  Jim Meyering  <jim@meyering.net>
34669
34670         * modules/userspec (lib_SOURCES): Add userspec.h.
34671         (Include): Add "userspec.h".
34672         Improve description.
34673
34674 2003-11-03  Jim Meyering  <jim@meyering.net>
34675
34676         * lib/userspec.c: Include "userspec.h".
34677         * lib/userspec.h: New file.
34678
34679 2003-11-03  Bruno Haible  <bruno@clisp.org>
34680
34681         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34682
34683 2003-11-03  Bruno Haible  <bruno@clisp.org>
34684
34685         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34686         available, to avoid (extremely rare) race condition.
34687         Suggested by Paul Eggert.
34688
34689 2003-11-02  Karl Berry  <karl@gnu.org>
34690
34691         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34692
34693 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34694
34695         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34696         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34697         (read_filesystem_list): Set and use me_type_malloced.
34698         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34699         whatever the type happens to be), for brevity and consistency.
34700         Check for size calculation overflow on Alphas running OSF/1.
34701
34702 2003-10-31  Jim Meyering  <jim@meyering.net>
34703
34704         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34705
34706         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34707
34708 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34709             Bruno Haible  <bruno@clisp.org>
34710
34711         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34712         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34713
34714 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34715
34716         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34717         netbsd*-gnu*.  Suggested by Robert Millan.
34718
34719 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34720
34721         * modules/group-member: Depend on stdbool.
34722
34723 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34724
34725         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34726
34727 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34728
34729         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34730         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34731         after the 'gnu' in these cases.  This fixes some bugs in the
34732         previous change, and is based on suggestions by Robert Millan.
34733
34734 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34735
34736         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34737         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34738         no longer needed.
34739         * lib/quotearg.c (quotearg_n_options): Use it.
34740         * lib/group-member.c: Include <stdbool.h>.
34741         (free_group_info): Arg is now const *; don't free arg.
34742         (get_group_info): Now returns bool and accepts struct group_info *,
34743         rather than returning a malloc'ed struct group_info *.
34744         All uses changed.  Check for overflow in internal size calculation.
34745
34746         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34747         rather than xmalloc/xrealloc.
34748         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34749         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34750         conformance bug: the old code used a pointer after freeing the
34751         storage that it addressed.
34752         * lib/hash.c (hash_initialize): Simplify the code by using
34753         xalloc_oversized rather than doing it by hand.
34754         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34755         the buffer preserved.  Use free and xmalloc instead.
34756         * lib/quotearg.c (quotearg_n_options): Likewise.
34757         Use a simpler test for size overflow.  Don't use xalloc_oversized
34758         because unsigned int might be wider than size_t (!); this suggests
34759         that we should switch from unsigned int to size_t for slot numbers.
34760
34761 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34762
34763         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34764         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34765         NetBSD kernels.  Requested by Richard Stallman.
34766
34767 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34768
34769         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34770         to allocate the returned structure.  Do not allocate a subarray,
34771         as x2nrealloc will do that.
34772         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34773         instead of xnrealloc.
34774         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34775
34776 2003-10-27  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/stdbool_.h: Better support for BeOS.
34779
34780 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34781
34782         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34783         now uses inline.
34784
34785 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34786
34787         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34788         callers that want to do their own size-overflow checking.  Include
34789         <stdbool.h>, since xalloc_oversized returns bool.
34790         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34791         to use xalloc_oversized.
34792
34793         Add two functions x2realloc, x2nrealloc, for programs that grow
34794         arrays dynamically by doubling their sizes.
34795         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34796         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34797         New functions.
34798
34799         Port to C99 semantics for 'inline' of external functions.
34800         Bug reported by Bruno Haible.
34801         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34802         with the old contents of xnmalloc.
34803         (xnmalloc, xmalloc): Use it.
34804         (xnrealloc_inline): New static inline function,
34805         with the old contents of xnrealloc.
34806         (xnrealloc, xrealloc): Use it.
34807
34808         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34809         that.
34810
34811 2003-10-26  Karl Berry  <karl@gnu.org>
34812
34813         * config/srclist.txt (COPYING.DOC): no longer available from
34814         /gd/gnuorg; don't know where the ultimate source is.
34815
34816 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34817
34818         Fix several address-calculation bugs in the hash modules,
34819         plus some minor code cleanup.
34820
34821         * lib/hash.h: Include <stdbool.h>, for bool.
34822         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34823         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34824         hash_get_n_entries, hash_get_max_bucket_length,
34825         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34826         hash_rehash): Use size_t rather than unsigned.
34827         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34828         hash_get_n_buckets_used, hash_get_n_entries,
34829         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34830         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34831         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34832         Likewise.
34833         (SIZE_MAX): Define if not defined.
34834         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34835         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34836         hash_print):
34837         Use const * when possible.
34838         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34839         (check_tuning): Fix bug: if tuning parameters were very close to
34840         0 or 1, rounding errors could have caused subscript violations.
34841         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34842         (hash_initialize): Add 'fail:' label
34843         to free table and return NULL, and use it to simplify code.
34844         Use calloc rather than clearing the storage ourself.
34845         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34846         buffer size calculations.
34847         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34848         Include <stddef.h>, for size_t.
34849         * lib/hash-pjw.c (hash_pjw): Likewise.
34850         Switch to method described by Bruno Haible.
34851         Include <limits.h>, for CHAR_BIT.
34852         (SIZE_BITS): New macro.
34853
34854 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34855
34856         * m4/getline.m4 (AM_FUNC_GETLINE):
34857         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34858         hosts.  Problem reported by Derek Robert Price in
34859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34860         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34861         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34862
34863 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34864
34865         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34866         ceiling the allocation at NMAX bytes rather than silently
34867         discarding input bytes before NMAX is reached.  This makes
34868         a difference only if NMAX exceeds SIZE_MAX / 2.
34869
34870         * lib/obstack.c: Merge from glibc.
34871         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34872         Add libc_hidden_def (_obstack_newchunk).
34873         (_obstack_free) [! defined _LIBC]: Remove.
34874         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34875         a clone of the function body.
34876         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34877         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34878
34879         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34880         glibc.
34881         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34882         arg to memcpy.
34883
34884         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34885         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34886         Don't use lvalue casts, as GCC plans to remove support for them
34887         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34888         was also present in the non-GCC version, indicating that this
34889         code had always been buggy and had never been widely used.
34890         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34891         Use the fast variant of each macro, rather than copying the
34892         definiens of the fast variant; that way, we'll be more likely to
34893         catch future bugs in the fast variants.
34894
34895 2003-10-20  Bruno Haible  <bruno@clisp.org>
34896
34897         * modules/wait-process: New file.
34898         * MODULES.html.sh (func_all_modules): Add wait-process.
34899
34900 2003-10-20  Bruno Haible  <bruno@clisp.org>
34901
34902         * m4/wait-process.m4: New file.
34903
34904 2003-10-20  Bruno Haible  <bruno@clisp.org>
34905
34906         * lib/wait-process.h: New file, from GNU gettext.
34907         * lib/wait-process.c: New file, from GNU gettext.
34908
34909 2003-10-19  Jim Meyering  <jim@meyering.net>
34910
34911         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34912         HPUX 10.20.
34913
34914 2003-10-18  Karl Berry  <karl@gnu.org>
34915
34916         * config/config.guess: update from config.
34917
34918 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34919
34920         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34921         (getgroups): First arg is int, not size_t.
34922         Don't let 'free' mangle errno.
34923
34924 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34925
34926         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34927
34928 2003-10-16  Karl Berry  <karl@gnu.org>
34929
34930         * config/config.{guess,sub}: update from config.
34931
34932 2003-10-16  Jim Meyering  <jim@meyering.net>
34933
34934         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34935         memcpy.
34936
34937 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34938
34939         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34940         (SIZE_MAX): Remove.
34941         (new_exclude, add_exclude_file): Initial size no longer needs to
34942         be a power of 2.
34943         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34944         our own address arithmetic overflow checking.
34945
34946         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34947         (fnmatch): Do not alloca more than 2000 wide characters;
34948         instead, use malloc for large buffers.
34949         Check for address arithmetic overflow, and return -1
34950         with errno set to ENOMEM in that case.
34951         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34952         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34953         instead, return -1.  Check for address arithmetic overflow.
34954
34955 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34956
34957         Handle invalid suffixes and overflow independently, so that
34958         callers can treat them independently as needed.  Fix some bugs in
34959         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34960         suffix for a human-readable blocksize.  The major caller-visible
34961         change is the addition of a new
34962         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34963         that both overflow and suffix chars were found.
34964
34965         * lib/human.c (humblock): Don't check separately for invalid suffix
34966         char; that is xstrtoumax's job (now that its bug is fixed).
34967         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34968         INTMAX_MAX]: New macros.
34969         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34970         TYPE_MAXIMUM): New macros.
34971         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34972         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34973         if overflow occurs, as it's what __strtol does and it's more useful
34974         in practice.
34975         (__xstrtol): If __strtol reports some error other than ERANGE,
34976         reflect it to the caller as LONGINT_INVALID.  If it reports
34977         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34978         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34979         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34980         value.
34981         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34982         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34983         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34984         [defined UINTMAX_MAX]: New macros.
34985
34986 2003-10-14  Bruno Haible  <bruno@clisp.org>
34987
34988         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34989
34990 2003-10-14  Bruno Haible  <bruno@clisp.org>
34991
34992         * m4/sig_atomic_t: New file, from GNU gettext.
34993         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34994
34995 2003-10-14  Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34998         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34999         Also use volatile where needed.
35000
35001 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35002
35003         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
35004         Change maintainer from Bruno Haible to 'all'.
35005
35006 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35007
35008         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
35009
35010 2003-10-12  Paul Eggert  <eggert@twinsun.com>
35011
35012         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
35013         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
35014         and define in terms of the other primitives.
35015         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
35016         (SIZE_MAX): Define if not already defined.
35017         (array_size_overflow): New function.
35018         (xalloc_die): Abort instead of exiting if 'error' returns.
35019         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
35020         (xmalloc, xrealloc): Use them.
35021         (xcalloc): Check for address arithmetic overflow.
35022         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
35023         a bit faster than strcpy.
35024
35025 2003-10-10  Simon Josefsson  <jas@extundo.com>
35026
35027         * modules/argp (Depends-on): Add restrict and strcase.
35028
35029 2003-10-10  Simon Josefsson  <jas@extundo.com>
35030
35031         * m4/argp.m4: Add AC_C_INLINE.
35032
35033 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35034
35035         Merge getpass from libc, plus a few fixes.
35036
35037         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
35038         Include <stdbool.h>.
35039         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
35040         __fsetlocking to empty.
35041         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
35042         do include <bits/libc-lock.h>.
35043         Do not include <fcntl.h>; not needed.
35044         [_LIBC]: Include <wchar.h>.
35045         (NOTCANCEL_MODE): New macro.
35046         (flockfile, funlockfile) [_LIBC]: New macros.
35047         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
35048         [!_LIBC]: New macros.
35049         (call_fclose): New function.
35050         (getpass): Use it.  Save tty stream separately; this simplifies the
35051         code and makes it more reliable if stdin happens to equal stdout.
35052         Invoke __fsetlocking on tty.
35053         Handle thread cancellation if needed.
35054         Namespace cleanup (use __tcgetattr, __getline).
35055         Use bool for Booleans.
35056         [USE_IN_LIBIO]: Handle wide streams.
35057         [!_LIBC]: Unconditionally do the fseek, since we don't know what
35058         stream might go where.
35059
35060         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
35061         doesn't have to include <stdio.h> before us.
35062         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
35063         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
35064         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
35065         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
35066         if not declared, so that we can use getpass.c code from libc without
35067         rewriting it.
35068         (flockfile, ftrylockfile, funlockfile): New macros.
35069
35070 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35071
35072         * modules/getpass: Depend on stdbool.
35073
35074 2003-10-08  Paul Eggert  <eggert@twinsun.com>
35075
35076         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
35077
35078 2003-10-07  Karl Berry  <karl@gnu.org>
35079
35080         * config/config.{guess,sub}: update from config.
35081
35082 2003-10-06  Jim Meyering  <jim@meyering.net>
35083             Bruno Haible  <bruno@clisp.org>
35084
35085         This lets translators provide better translations for the
35086         "Written by ..." part of --version output.
35087         * lib/version-etc.h: Include stdarg.h.
35088         (version_etc_copyright): Declare as readonly.
35089         (version_etc): Make this function variadic with a NULL-terminated list
35090         of author name strings.
35091         (version_etc_va): New declaration.
35092         * lib/version-etc.c: Include stdarg.h, stdlib.h.
35093         (version_etc_copyright): Declare as readonly.
35094         (version_etc_va): New function. Provide a different translatable string
35095         for each possible number of authors < 10. Abbreviate when there are 10
35096         authors or more.
35097         (version_etc): Make this function variadic. Call version_etc_va.
35098         Suggestion from Gary V. Vaughan.
35099
35100         * lib/long-options.h (parse_long_options): Change prototype: the
35101         authors string is moved to the end and becomes variadic.
35102         * lib/long-options.c: Include stdarg.h.
35103         (parse_long_options): Make this function variadic, too.
35104         Call version_etc_va, not version_etc.
35105
35106 2003-10-06  Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/version-etc-2: Remove file.
35109         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
35110
35111 2003-10-06  Bruno Haible  <bruno@clisp.org>
35112
35113         * modules/fatal-signal: New file.
35114         * MODULES.html.sh (func_all_modules): Add fatal-signal.
35115
35116 2003-10-06  Bruno Haible  <bruno@clisp.org>
35117
35118         * m4/fatal-signal.m4: New file.
35119         * m4/signalblocking.m4: New file, from GNU gettext.
35120
35121 2003-10-06  Bruno Haible  <bruno@clisp.org>
35122
35123         * lib/version-etc-2.h: Remove file.
35124         * lib/version-etc-2.c: Remove file.
35125
35126 2003-10-06  Bruno Haible  <bruno@clisp.org>
35127
35128         * lib/fatal-signal.h: New file, from GNU gettext.
35129         * lib/fatal-signal.c: New file, from GNU gettext.
35130
35131 2003-10-05  Paul Eggert  <eggert@twinsun.com>
35132
35133         * README: Rework advice for preventing empty .o files.
35134         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
35135         not <sys/types.h>.
35136
35137 2003-10-04  Karl Berry  <karl@gnu.org>
35138
35139         * lib/argp*: update from libc.
35140
35141 2003-10-04  Karl Berry  <karl@gnu.org>
35142
35143         * config/config.{guess,sub}: update from config.
35144
35145 2003-10-02  Bruno Haible  <bruno@clisp.org>
35146
35147         * modules/lchown (Include): Add lchown.h.
35148         * modules/time_r (Include): Use "..." syntax.
35149         * modules/xgetdomainname (Include): Add xgetdomainname.h.
35150
35151 2003-10-01  Simon Josefsson  <jas@extundo.com>
35152
35153         * MODULES.html.sh (func_all_modules): Move gethostname from section
35154         'based on' to section 'lacking' POSIX:2001.
35155
35156 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35157
35158         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35159         to output mode on the same stream.
35160
35161 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35162
35163         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35164         Fix arg typo in previous patch.
35165
35166 2003-09-28  Jim Meyering  <jim@meyering.net>
35167
35168         * lib/error.c: Correct cpp indentation.
35169
35170 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35171
35172         * modules/free: New file.
35173
35174 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35175
35176         * m4/free.m4: New file.
35177
35178 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35179
35180         * lib/minmax.h (MIN, MAX)
35181         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35182         Omit the special code that used __typeof__, since we worry that
35183         it could be more trouble than it's worth.  See:
35184         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35185         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35186
35187         * lib/free.c: New file.
35188
35189 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35190
35191         Trivial fixes to Makefile.am parts of module listings.
35192         * modules/strstr: Append strstr.h to lib_SOURCES.
35193         * modules/strcase: Likewise, for strcase.h.
35194
35195 2003-09-27  Karl Berry  <karl@gnu.org>
35196
35197         * config/mkinstalldirs: update from automake.
35198
35199 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35200
35201         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35202         (error_tail): Do not loop, reallocating temporary buffer, since
35203         the output cannot contain more wide characters than the input
35204         contains bytes, the size must be big enough already.  This avoids
35205         one potential size overflow calculation.  Check for size overflow
35206         when calculating temporary buffer size.  Free temporary buffer
35207         when done, if it was allocated with malloc; this plugs a memory
35208         leak.  Remove casts from void * to pointers, that are no longer
35209         needed now that we're assuming C89 or better.
35210
35211         Merge error changes from glibc.
35212
35213         * lib/error.c, error.h: Update copyright notice header to match glibc.
35214         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35215         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35216         Disable cancellation while printing error.
35217         * lib/error.h: Prepend __ to parameter names.
35218
35219 2003-09-26  Jim Meyering  <jim@meyering.net>
35220
35221         * lib/error.c (error_tail): Move some declarations
35222         into inner scope where the local variables are used.
35223
35224 2003-09-26  Bruno Haible  <bruno@clisp.org>
35225
35226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35227         stpncpy().
35228         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35229
35230 2003-09-26  Bruno Haible  <bruno@clisp.org>
35231
35232         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35233         (stpncpy): Define as alias for gnu_stpncpy.
35234         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35235
35236 2003-09-25  Simon Josefsson  <jas@extundo.com>
35237
35238         * lib/xgetdomainname.h: New file.
35239         * lib/xgetdomainname.c: New file.
35240
35241 2003-09-25  Simon Josefsson  <jas@extundo.com>
35242             Bruno Haible  <bruno@clisp.org>
35243
35244         * modules/getdomainname: New file.
35245         * modules/xgetdomainname: New file.
35246         * MODULES.html.sh (func_all_modules): Add getdomainname,
35247         xgetdomainname.
35248
35249 2003-09-25  Simon Josefsson  <jas@extundo.com>
35250             Bruno Haible  <bruno@clisp.org>
35251
35252         * m4/getdomainname.m4: New file.
35253
35254 2003-09-25  Simon Josefsson  <jas@extundo.com>
35255             Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/getdomainname.h: New file.
35258         * lib/getdomainname.c: New file.
35259
35260 2003-09-25  Karl Berry  <karl@gnu.org>
35261
35262         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35263
35264 2003-09-25  Karl Berry  <karl@gnu.org>
35265
35266         * config/install-sh: update from automake.
35267
35268 2003-09-25  Bruno Haible  <bruno@clisp.org>
35269
35270         * modules/version-etc-2: New file, from modules/version-etc with
35271         modifications.
35272         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35273
35274 2003-09-25  Bruno Haible  <bruno@clisp.org>
35275
35276         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35277         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35278
35279 2003-09-24  Simon Josefsson  <jas@extundo.com>
35280
35281         * modules/xgethostname: Add xgethostname.h.
35282
35283 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35284
35285         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35286         the buffer associated with the argument.  Bug reported by
35287         Simon Josefsson.
35288
35289 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35290
35291         * README: Document assumptions that 'int' is at least 32 bits
35292         wide, that integer arithmetic is 2's complement without overflow,
35293         that there are no holes in integer values, that adding sizes of
35294         two nonoverlapping objects can't overflow, and that all-bits-zero
35295         yields scalar zero.  Fix spelling and capitalization typos.
35296
35297 2003-09-19  Karl Berry  <karl@gnu.org>
35298
35299         * lib/argp.h: update from libc.
35300
35301 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35302
35303         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35304         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35305         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35306
35307 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35308
35309         * gnulib-tool: Use "test -h", not "test -L", for portability
35310         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35311         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35312         (sed_extract_prog): Issue s commands one-by-one, rather than
35313         using \| in one s command.
35314
35315 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35316
35317         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35318         input error, instead of returning NULL the next time we are called
35319         (and therefore losing track of errno).
35320
35321 2003-09-16  Bruno Haible  <bruno@clisp.org>
35322
35323         * gnulib-tool (func_create_testdir): Warn about duplicated
35324         dependencies.
35325
35326 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35327
35328         * modules/argmatch, modules/fatal, modules/obstack,
35329         modules/xalloc, modules/xgethostname: Sort dependencies by
35330         importance, not alphabetically.
35331
35332 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35333
35334         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35335         fails, so that the caller gets the proper errno.
35336
35337         * lib/readutmp.c (read_utmp): Likewise.
35338         Check for fstat error.  Close stream and free storage
35339         when failing.
35340
35341 2003-09-14  Karl Berry  <karl@gnu.org>
35342
35343         * config/srclist.txt (strdup.c): disable for c89 changes.
35344
35345 2003-09-14  Jim Meyering  <jim@meyering.net>
35346
35347         * lib/getloadavg.c: Correct cpp indentation.
35348         * lib/strdup.c: Likewise.
35349         * lib/vasnprintf.c: Likewise.
35350
35351 2003-09-14  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/fwriteerror: New file.
35354         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35355
35356 2003-09-14  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/fwriteerror.h: New file.
35359         * lib/fwriteerror.c: New file.
35360
35361 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35362
35363         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35364         modules/xgethostname, modules/xalloc: Depend on exit.
35365
35366 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35367
35368         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35369
35370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35371         and AC_MINIX, too, so that their extensions are available.
35372
35373         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35374         This macro has been superseded by gl_BACKUPFILE.
35375
35376         More patches to assume C89 or better.
35377
35378         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35379
35380         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35381         unconditionally.
35382         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35383         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35384         Include <string.h>, <stdlib.h> unconditionally.
35385         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35386         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35387         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35388         headers or for string.h.
35389         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35390         or strtoul.
35391
35392         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35393         headers.
35394         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35395         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35396         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35397         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35398         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35399         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35400         memcpy, memset.
35401         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35402         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35403         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35404         strtol.
35405         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35406         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35408         strtoul.
35409
35410 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35411
35412         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35413         * lib/obstack.c [!defined _LIBC]: Likewise.
35414         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35415         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35416         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35417
35418         More changes to assume C89 or better.
35419
35420         * lib/error.c (error_tail): Assume vprintf.
35421
35422         * lib/argmatch.c (getenv): Remove decl.
35423         * lib/progreloc.c (get_full_program_name): Define via prototype.
35424         * lib/setenv.c (clearenv): Likewise.
35425         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35426         needed.
35427         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35428         (malloc, memcpy): Remove decls.
35429         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35430         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35431         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35432         (memcpy): Remove macro.
35433         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35434         (__P): Remove.  All uses removed.
35435         (PTR): Remove.  All uses changed to void *.
35436         (CHAR_BIT, NULL): Remove.
35437         (spaces, zeros, memset_space, memset_zero)
35438         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35439         Remove.
35440         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35441         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35442         Define with prototype.
35443         Remove now-unnecessary prototype decl.
35444         (extra_args_spec): Assume ANSI C.  All uses changed.
35445         (extra_args_spec_iso): Remove.
35446         (my_strftime, emacs_strftimeu): Define via prototype.
35447         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35448         unconditionally.
35449         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35450         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35451         (strtoul, strtol): Remove decls.
35452         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35453         LONG_MAX): Remove.
35454         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35455         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35456         (LOCALE_PARAM_PROTO): New macro.
35457         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35458         (INTERNAL (strtol), strtol): Define with a prototype.
35459         (PARAMS): Remove.  All uses removed.
35460         * lib/tempname.c: Include <string.h> unconditionally.
35461         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35462         * lib/xgethostname.c (main): Define with a prototype.
35463         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35464         Include <stdlib.h> unconditionally.
35465         (calloc, malloc, realloc, free): Remove decls.
35466         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35467         Include <stdlib.h> unconditionally.  Sort include file names.
35468         (strtod): Remove.
35469         (xstrtod): Define with a prototype.
35470         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35471         (strtol, strtoul): Remove decls.
35472
35473 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35474
35475         More patches to assume C89 or better.
35476         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35477         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35478         string.h, memchr, STDC_HEADERS.
35479
35480 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35481
35482         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35483         Include <stdlib.h>, <string.h> unconditionally.
35484         Remove now-unnecessary cast to char *.
35485         * lib/strnlen.c: Include <string.h> unconditionally.
35486         * lib/yesno.c (yesno): Define with a prototype.
35487
35488 2003-09-11  Bruno Haible  <bruno@clisp.org>
35489
35490         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35491
35492 2003-09-10  Jim Meyering  <jim@meyering.net>
35493
35494         * lib/error.c: Correct indentation of cpp directives.
35495
35496 2003-09-10  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35499         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35500         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35501         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35502         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35503         <stdlib.h> and <string.h> checks.
35504         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35505         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35506
35507 2003-09-10  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/strcspn.c: Include <string.h> unconditionally.
35510         * lib/strpbrk.c: Include <string.h> unconditionally.
35511         * lib/strstr.c: Include <string.h> unconditionally.
35512         * lib/unicodeio.c: Include <string.h> unconditionally.
35513         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35514         * lib/unsetenv.c: Likewise.
35515         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35516         * lib/yesno.c: Include <stdlib.h> unconditionally.
35517         (rpmatch): Add prototype.
35518
35519 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35520
35521         More patches to assume C89 or better.
35522         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35523         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35524         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35525         or for string.h.
35526         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35527         stdlib.h.
35528         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35529         C headers.
35530         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35531         string.h.
35532         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35533         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35534         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35535         or for string.h.
35536         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35537         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35538         C headers.
35539         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35540         memcpy.
35541         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35542         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35543         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35544         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35545         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35546         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35547         string.h, free.
35548         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35549         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35550         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35551         C headers, or for string.h.
35552         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35553         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35554         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35555         headers, memory.h, stdlib.h, string.h, strings.h.
35556         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35557         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35558         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35559         strchr.
35560         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35561         headers, memory.h, string.h.
35562         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35563         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35564         free.
35565         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35566         headers.
35567         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35568         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35569         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35570         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35571         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35572
35573 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35574
35575         More K&R removal.
35576
35577         * lib/acosl.c (main): Use a prototype.
35578         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35579         tanl.c: Likewise.
35580
35581         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35582
35583         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35584         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35585         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35586         with a prototype.
35587         * lib/getopt.c (const): Remove macro.
35588         Include <string.h> unconditionally.
35589         (my_index): Remove; all uses changed to strchr.
35590         (strlen): Remove decl.
35591         (exchange): Remove forward decl; no longer needed.
35592         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35593         Define with prototype.
35594         * lib/getopt1.c (const): Remove macro.
35595         (getopt_long, getopt_long_only, main): Define with prototype.
35596
35597         * lib/getugroups.c: Include <string.h> unconditionally.
35598
35599         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35600         (getusershell, setusershell, endusershell, readname, main):
35601         Define with prototypes.
35602
35603         * lib/group-member.c: Include group-member.h first.
35604         Include <stdlib.h> unconditionally.
35605
35606         * lib/hard-locale.c: Include hard-locale.h first.
35607         Include <stdlib.h>, <string.h> unconditionally.
35608
35609         * lib/hash.c (free, malloc): Remove decls.
35610         Include <stdlib.h> unconditionally.
35611
35612         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35613         (getenv): Do not declare.
35614
35615         * lib/idcache.c: Include <string.h> unconditionally.
35616
35617         * lib/long-options.c: Include long-options.h first, to test interface.
35618         Include <stdlib.h> unconditionally.
35619
35620         * lib/makepath.c: Include makepath.h first, to test interface.
35621         Include <stdlib.h> and <string.h> unconditionally.
35622
35623         * lib/linebuffer.c: Include <stdlib.h>.
35624         (free): Remove decl.
35625
35626         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35627         stddef.h. rpl_malloc returns void *, not char *.
35628         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35629         prototype.
35630
35631         * lib/md5.h: Include <limits.h> unconditionally.
35632         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35633         (__P): Remove; all uses removed.
35634         * lib/md5.c: Include "md5.h" first.
35635         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35636         md5_buffer, md5_process_bytes, md5_process_block):
35637         Define with prototypes.
35638         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35639         * lib/sha.c: Include "sha.h" first.
35640         Include <stdlib.h>, <string.h> unconditionally.
35641
35642         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35643         * lib/memcmp.c (__ptr_t): Likewise.
35644         * lib/memrchr.c (__ptr_t): Likewise.
35645         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35646         Include <string.h> unconditionally.
35647         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35648         * lib/memchr.c: Include <stdlib.h> unconditionally.
35649         * lib/memchr.c (LONG_MAX): Remove.
35650         * lib/memrchr.c (LONG_MAX): Likewise.
35651         * lib/memchr.c (__memchr): Define via a prototype.
35652         * lib/memrchr.c (__memrchr): Likewise.
35653         * lib/memcmp.c (__P): Remove, and remove all uses.
35654         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35655         Remove forward decls; no longer needed.
35656         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35657         Use types required by C89 in prototype.
35658
35659         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35660         * lib/savedir.c: Likewise.
35661         * lib/mkdir.c (free): Remove decl.
35662         * lib/rmdir.c (rmdir): Define with a prototype.
35663         * lib/savedir.c: Include savedir.h first, to test interface.
35664
35665         * lib/mktime.c (STDC_HEADERS): Remove.
35666         Include <stdlib.h>, <string.h> unconditionally.
35667
35668         * lib/modechange.c: Include <stdlib.h> unconditionally.
35669         (malloc): Remove decl.
35670
35671         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35672         (free): Remove decl.
35673
35674         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35675         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35676         (This type really should be intptr_t, but that's a C99ism.)
35677         (_obstack_memcpy): Remove: all uses changed to memcpy.
35678         Include <string.h> unconditionally.
35679         (struct obstack): Assume __STDC__ for types of members
35680         chunkfun, freefun, extra_arg.
35681         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35682         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35683         obstack_begin, obstack_specify_allocation,
35684         obstack_specify_allocation_with_arg, obstack_chunkfun,
35685         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35686         Remove unprototyped decls and the macros that use them.
35687         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35688         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35689         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35690         (defined __STDC__ && __STDC__)]:
35691         Remove nonprototyped code.
35692         Include <stdlib.h> unconditionally.
35693         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35694         _obstack_allocated_p, _obstack_free, obstack_free,
35695         _obstack_memory_used, print_and_abort):
35696         Define using prototypes.
35697         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35698         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35699         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35700         obstack_next_free, obstack_object_size, obstack_room) [0]:
35701         Remove unused, unprototyped code.
35702
35703         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35704
35705         * lib/physmem.c (physmem_total, physmem_available, main): Define
35706         with prototypes.
35707
35708         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35709         (main): Define with a prototype.
35710
35711         * lib/posixver.c (getenv): Remove decl.
35712
35713         * lib/putenv.c (malloc): Returns void *, not char *.
35714         Include <string.h> unconditionally.
35715         (strchr, memcpy, NULL): Do not define.
35716
35717         * lib/readtokens.c: Include readtokens.h first, to test interface.
35718         Include <stdlib.h>, <string.h> unconditionally.
35719         (init_tokenbuffer): Define with a prototype.
35720
35721         * lib/regex.c (PARAMS): Remove.  All uses removed.
35722         All uses of _RE_ARGS removed, too.
35723         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35724         unconditionally.
35725         (bzero): Assume memset exists.
35726         (memcmp, memcpy, NULL): Remove.
35727         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35728         char, or assignments to local vars of type signed char.
35729         (init_syntax_once, PREFIX(extract_number_and_incr),
35730         PREFIX(print_partial_compiled_pattern),
35731         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35732         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35733         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35734         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35735         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35736         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35737         wcs_compile_range, byte_compile_range, truncate_wchar,
35738         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35739         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35740         count_mbs_length, wcs_re_match_2_internal,
35741         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35742         PREFIX(alt_match_null_string_p),
35743         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35744         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35745         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35746         now-unnecessary declaration, if any.
35747         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35748         regcomp, regexec):
35749         Remove now-unnecessary casts among pointer types.
35750         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35751
35752         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35753         (free): Remove decl.
35754
35755         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35756
35757         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35758         (free): Remove decl.
35759
35760         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35761         * lib/xgetcwd.c: Likewise.
35762
35763         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35764         (free): Remove decl.
35765
35766         * lib/strchrnul.c (strchrnul): Define with a prototype.
35767         Fix bug: c_in was not converted to char before searching.
35768
35769         The following changes are not K&R related:
35770
35771         * lib/group-member.h: Include <sys/types.h>, so that this file is
35772         self-contained.
35773         * lib/makepath.h: Likewise.
35774
35775         * lib/getusershell.c (readname, default_index, line_size, readname):
35776         Use size_t, not int, for sizes.
35777         (readname): If the size overflows, report an error instead of
35778         looping forever.
35779
35780 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35781
35782         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35783         libc.
35784
35785 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35786
35787         * README: New section: portability guidelines.
35788
35789 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35790
35791         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35792         C89 spec.
35793
35794 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35795
35796         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35797
35798 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35799
35800         Assume C89 or better; remove K&R cruft.
35801         A few of these changes were first proposed by Derek Robert Price
35802         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35803
35804         * lib/addext.c: Include <string.h> unconditionally.
35805         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35806         Don't declare getenv or malloc.
35807
35808         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35809         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35810         (NULL): Remove.
35811         (find_stack_direction, alloca): Use prototypes.
35812
35813         * lib/atexit.c (atexit): Define using a prototype.
35814
35815         * lib/basename.c, dirname.c, stripslash.c:
35816         Include <string.h> unconditionally.
35817
35818         * lib/bcopy.c: Include <stddef.h>.
35819         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35820
35821         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35822
35823         * lib/error.h (error, error_at_line, error_print_progname)
35824         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35825         * lib/error.c: Include error.h first, to check interface.
35826         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35827         (VA_START): Remove; all uses changeed to va_start.
35828         (exit, strerror): Remove decls.
35829         (error_print_progname): Prototype uncondionally.
35830         Don't include <errno.h>; no longer needed.
35831         (private_strerror): Remove.
35832         (error_tail): Always define.
35833         (error, error_at_line): Assume C89 or better; always use prototypes.
35834         * lib/fatal.c: Include "fatal.h" first, to test interface.
35835         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35836         (VA_START): Remove; all uses changed to va_start.
35837         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35838         this case.
35839         (exit): Remove decl.
35840         (fatal): Prototype unconditionally.  Assume va_start works.
35841         Abort at end, to pacify gcc.
35842
35843         * lib/euidaccess.c (main): Define with a prototype.
35844
35845         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35846
35847         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35848
35849         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35850         prototypes.
35851         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35852         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35853         (getenv): Remove decl.
35854         (fnmatch): Define using a prototype.
35855         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35856         (FCT): Define using a prototype.
35857
35858         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35859
35860         * lib/gethostname.c: Include <stddef.h>.
35861         (gethostname): Define with prototype.  Length is size_t, not int.
35862
35863 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35864
35865         Assume C89 or better; remove K&R cruft.
35866         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35867         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35868         string.h, getenv, malloc.
35869         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35870         headers.
35871         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35872         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35873         do not check for strerror.
35874         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35875         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35876         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35877         do not check for doprnt or vprintf.
35878         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35879         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35880
35881 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35882
35883         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35884         getversion.c should have been removed then, but was accidentally
35885         preserved.
35886
35887         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35888         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35889
35890 2003-09-08  Karl Berry  <karl@gnu.org>
35891
35892         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35893                 config, forget about prep.
35894
35895         * config/depcomp, missing: update from automake.
35896
35897 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35898
35899         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35900         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35901
35902 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35903
35904         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35905         copy_tm_result.  Bug reported by Simon Josefsson in
35906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35907
35908 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35909
35910         * m4/time_r.m4: New file.
35911         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35912         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35913         is. Check for timegm declaration.
35914         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35915         Do not check for gmtime_r.
35916         Replace mktime if __mktime_internal does not exist and if mktime
35917         hasn't been replaced already.
35918
35919 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35920
35921         * lib/time_r.c, lib/time_r.h: New files.
35922
35923         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35924         __localtime_r.
35925         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35926         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35927
35928         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35929         __gmtime_r.
35930         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35931         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35932         Include <time_r.h>.
35933
35934         * lib/timegm.c: Switch to glibc implementation, with the following
35935         changes:
35936         [defined HAVE_CONFIG_H]: Include <config.h>.
35937         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35938         (__mktime_internal) [!defined _LIBC]: New decl.
35939         (__gmtime_r) [!defined _LIBC]: New macro and function.
35940         (timegm): Use a prototype, since gnulib assumes C89.
35941         Do not bother declaring tmp to be const, as it's not really usefu.
35942         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35943         (timegm): Declare only if HAVE_DECL_TIMEGM.
35944
35945 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35946
35947         * MODULES.html.sh (func_all_modules): Add time_r.
35948         * modules/time_r: New file.
35949         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35950         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35951
35952 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35953
35954         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35955         Bug reported by Lute Kamstra in
35956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35957
35958         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35959         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35960         course with correspondingly smaller numbers for tomorrow and
35961         yesterday.  From Tadayoshi Funaba.  Originally installed into
35962         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35963         coreutils merge?).
35964
35965 2003-08-31  Simon Josefsson  <jas@extundo.com>
35966
35967         * modules/timegm: New file.
35968         * MODULES.html.sh (func_all_modules): Add timegm.
35969
35970 2003-08-31  Simon Josefsson  <jas@extundo.com>
35971
35972         * m4/timegm.m4: New file.
35973
35974 2003-08-31  Simon Josefsson  <jas@extundo.com>
35975
35976         * lib/timegm.h: New file.
35977         * lib/timegm.c: New file.  Based on
35978         wget-1.8.2/src/http.c:mktime_from_utc.
35979
35980 2003-08-31  Karl Berry  <karl@gnu.org>
35981
35982         * lib/argp.h: update from libc.
35983
35984 2003-08-28  Bruno Haible  <bruno@clisp.org>
35985
35986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35987         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35988         followed by '#define fnmatch fnmatch_posix' gives an error.
35989
35990 2003-08-28  Bruno Haible  <bruno@clisp.org>
35991
35992         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35993         warning on QNX, which defines O_BINARY to 000000.
35994
35995 2003-08-27  Jim Meyering  <jim@meyering.net>
35996
35997         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35998         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35999         would fail after 32.  Reported by Danny Levinson.  Details here:
36000         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
36001
36002 2003-08-24  Bruno Haible  <bruno@clisp.org>
36003
36004         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
36005         MSVC7 <stdio.h> is included later.
36006
36007 2003-08-22  Simon Josefsson  <jas@extundo.com>
36008
36009         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
36010
36011 2003-08-20  Karl Berry  <karl@gnu.org>
36012
36013         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
36014
36015 2003-08-20  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/progname: New file.
36018         * MODULES.html.sh (func_all_modules): Add progname.
36019
36020 2003-08-20  Bruno Haible  <bruno@clisp.org>
36021
36022         * lib/progname.h: New file, from GNU gettext.
36023         * lib/progname.c: New file, from GNU gettext.
36024         * lib/progreloc.c: New file, from GNU gettext.
36025
36026 2003-08-19  Jim Meyering  <jim@meyering.net>
36027
36028         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
36029         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
36030
36031 2003-08-19  Bruno Haible  <bruno@clisp.org>
36032
36033         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
36034         more.
36035
36036 2003-08-19  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/xstrdup.c: Assume <string.h> exists.
36039
36040 2003-08-18  Paul Eggert  <eggert@twinsun.com>
36041
36042         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
36043         in makefile rules.
36044
36045 2003-08-18  Jim Meyering  <jim@meyering.net>
36046
36047         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
36048         * m4/lib-ld.m4: Likewise.
36049
36050 2003-08-18  Jim Meyering  <jim@meyering.net>
36051
36052         * lib/setenv.h: Indent nested cpp directive.
36053         * lib/vasnprintf.c: Remove trailing blanks.
36054
36055 2003-08-17  Simon Josefsson  <jas@extundo.com>
36056
36057         * modules/xstrndup: New file.
36058         * MODULES.html.sh (func_all_modules): Add xstrndup.
36059
36060 2003-08-17  Simon Josefsson  <jas@extundo.com>
36061
36062         * modules/argp: Fix autoconf macro name. Add more dependencies.
36063
36064 2003-08-17  Simon Josefsson  <jas@extundo.com>
36065
36066         * m4/xstrndup.m4: New file.
36067
36068 2003-08-17  Simon Josefsson  <jas@extundo.com>
36069
36070         * m4/argp.m4: New file.
36071
36072 2003-08-17  Simon Josefsson  <jas@extundo.com>
36073             Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/xstrndup.h: New file.
36076         * lib/xstrndup.c: New file.
36077
36078 2003-08-17  Bruno Haible  <bruno@clisp.org>
36079
36080         * modules/strndup (Files, Include): Add lib/strndup.h.
36081
36082 2003-08-17  Bruno Haible  <bruno@clisp.org>
36083
36084         * modules/euidaccess (Files): Add lib/euidaccess.h.
36085
36086 2003-08-17  Bruno Haible  <bruno@clisp.org>
36087
36088         * lib/strndup.h: New file.
36089
36090 2003-08-17  Bruno Haible  <bruno@clisp.org>
36091
36092         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
36093         like AC_GNU_SOURCE.
36094         * modules/extensions (configure.ac): Comment out the invocation of
36095         gl_USE_SYSTEM_EXTENSIONS.
36096
36097 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36098
36099         Merges from coreutils, etc.
36100         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
36101         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
36102         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
36103         fixing a typo.
36104         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
36105         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
36106
36107 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36108
36109         Document merge from coreutils.
36110         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
36111         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
36112         * modules/utime: Add m4/utimes-null.m4.
36113
36114 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36115
36116         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
36117         space, undoing this 2003-08-12 change:
36118         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36119
36120 2003-08-16  Paul Eggert  <eggert@twinsun.com>
36121
36122         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
36123         strtoul.c from libc, undoing this 2003-08-12 change:
36124         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
36125
36126 2003-08-16  Jim Meyering  <jim@meyering.net>
36127
36128         Merges from coreutils.
36129         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
36130         prefix.  Adjust cache variables similarly.  Create 500 rather than
36131         just 300 files, to exercise bug on Darwin6.5, too.
36132         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
36133         $missing_dir.
36134         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
36135         AM_SYS_POSIX_TERMIOS.
36136         Reported by mkc@mathdogs.com.
36137         Also change use of $am_cv_sys_posix_termios
36138         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
36139         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
36140         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
36141         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
36142         in /proc/mounts until it finds one with matching device number.  This
36143         is unnecessary when the FILE argument *is* a mount point.  No stat call
36144         is necessary in that case.  So, disable the statvfs-testing code on
36145         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
36146         as RedHat bug# 84846.
36147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36148         to 1MB, so as not to render systems with no stack size limit (e.g.,
36149         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36150         Include <unistd.h>.  On some systems,
36151         it is required for the definition of _SC_PAGESIZE.
36152
36153 2003-08-16  Jim Meyering  <jim@meyering.net>
36154
36155         Merge from coreutils.
36156         * lib/xstrtoimax.c: #else #if -> #elif.
36157         * lib/xstrtoumax.c: Likewise.
36158
36159 2003-08-16  Jim Meyering  <jim@meyering.net>
36160
36161         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36162         * m4/utimes.m4: Removed.
36163         * m4/utimes-null.m4: Renamed from utimes.m4.
36164
36165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36166         to 1MB, so as not to render systems with no stack size limit (e.g.,
36167         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36168         Include <unistd.h>.  On some systems,
36169         it is required for the definition of _SC_PAGESIZE.
36170
36171 2003-08-16  Jim Meyering  <jim@meyering.net>
36172         and Paul Eggert  <eggert@cs.ucla.edu>
36173
36174         Merges from coreutils, etc.
36175
36176         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36177         using the latest version from cvs.  This avoids problems with #line
36178         directives using a vendor (Sun) compiler.
36179         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36180         Don't set GETGROUPS_LIB here; now it's
36181         done via getgroups.m4's wrapper function.
36182         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36183         rather than just in sh-util/configure.in, so that the
36184         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36185         same.
36186         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36187         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36188         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36189         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36190         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36191         Remove code that is now done by the newly-required macros.
36192         Append $(EXEEXT) to DF_PROG.
36193         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36194         Do not invoke or require the following here,
36195         since prereq.m4 or some gnulib .m4 now does this for us:
36196         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36197         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36198         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36199         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36200         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36201         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36202         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36203         AC_FUNC_OBSTACK.
36204         Do not replace the following functions, as this is now the job
36205         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36206         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36207         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36208         atexit getpass, strdup, getpagesize.
36209         Replace 'raise'.
36210         Do not check for the following functions, as this is now the job
36211         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36212         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36213         setregid.
36214         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36215         Check for sys/sysctl.h.
36216         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36217         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36218         of checking for ssize_t ourselves.
36219
36220         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36221         Require every macro that gnulib/modules/* suggests for us.
36222         (jm_PREREQ_ADDEXT): New macro.
36223         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36224         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36225
36226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36227         (gl_PHYSMEM): Use it.
36228         Also check for `table' function.
36229         Check for new headers and functions.
36230         Add check for sys/sysmp.h.
36231         With suggestions from Kaveh Ghazi.
36232         Ignore headers that are present but cannot be compiled.  This
36233         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36234         C 5.4.
36235
36236 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36237
36238         Document merge from coreutils.
36239         * modules/userspec: Depend on posixver.
36240         * modules/strftime: Depend on tzset.
36241
36242 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36243
36244         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36245         rather than tab, after '#' in shell-script copyright notices.
36246         Suggested by Bruno Haible.
36247
36248 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36249
36250         * config/srclist-update: Use three spaces, rather than tab, after '#'
36251         in shell-script copyright notices.  Suggested by Bruno Haible.
36252         Remove unnecessary parenthesization in regular expression.
36253
36254 2003-08-15  Jim Meyering  <jim@meyering.net>
36255
36256         Merge from coreutils.
36257         * lib/xgethostname.c: Include <stdlib.h>.
36258         (xghostname): Don't exit for anything other than memory-related
36259         failure; just return NULL.
36260         * lib/userspec.c: Include "posixver.h".
36261         (parse_user_spec): Accept `.' as a separator only
36262         in pre-POSIX-200112 mode.
36263         * lib/strtoimax.c: Use #elif rather than #else #if.
36264         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36265         Remove function, now that we can rely on a working tzset function.
36266         [!_LIBC]: Ensure that the required autoconf test has been run.
36267         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36268         Use underlying_strftime for %r.
36269         * lib/sha.c: Merge in some clean-up and optimization changes from
36270         glibc.
36271         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36272         Ensure that it is a multiple of 64.
36273         Rearrange loop exit tests so as to avoid performing an
36274         additional fread after encountering an error or EOF.
36275         * lib/realloc.c: Update copyright date.
36276
36277 2003-08-15  Jim Meyering  <jim@meyering.net>
36278         and Paul Eggert  <eggert@twinsun.com>
36279
36280         Merge from coreutils.
36281         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36282         member but strut utmpx does not.  Needed for AIX 4.3.3.
36283         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36284
36285 2003-08-15  Jim Meyering  <jim@meyering.net>
36286         and Paul Eggert  <eggert@cs.ucla.edu>
36287
36288         Merges from coreutils, etc.
36289         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36290         Require gl_FUNC_TZSET_CLOBBER.
36291         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36292         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36293         members.
36294
36295 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36296
36297         Help the merge from coreutils.
36298         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36299         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36300         * m4/tzset.m4: Use it too.
36301
36302 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36303
36304         * modules/tzset: New file.
36305
36306 2003-08-14  Jim Meyering  <jim@meyering.net>
36307
36308         Merges from coreutils.
36309         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36310         variable names, rather than @FNMATCH_H@.
36311         * modules/alloca: Likewise for $(ALLOCA_H).
36312
36313         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36314         the three copies of the literal target, `fnmatch.h'.
36315         * modules/alloca (alloca.h): Likewise.
36316
36317 2003-08-14  Jim Meyering  <jim@meyering.net>
36318
36319         Merge from coreutils.
36320         * m4/tzset.m4: New file.
36321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36322         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36323         otherwise, AIX 5.1 systems would end up using the latter.
36324         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36325         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36326         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36327         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36328
36329 2003-08-14  Jim Meyering  <jim@meyering.net>
36330
36331         Merge from coreutils.
36332         * lib/obstack.h: Whitespace changes.
36333         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36334         and xcalloc return values.
36335         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36336         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36337         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36338         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36339         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36340         error from mntctl.
36341         Use mntctl's return value to drive the entry-processing loop, since
36342         we can't rely on the value of the vmt_length member in the last
36343         entry.  On some systems doing so could result in exhausting
36344         virtual memory.  Based in part on a patch from Mike Jetzer.
36345
36346 2003-08-14  Jim Meyering  <jim@meyering.net>
36347         and Paul Eggert  <eggert@twinsun.com>
36348
36349         Merges from coreutils, plus other fixes.
36350         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36351         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36352         for credits and details.  Thanks to Kaveh Ghazi for helping
36353         to keep these files in sync.
36354         (ARRAY_SIZE): Define it.
36355         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36356         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36357         (memcasecmp): Don't assume size_t fits in unsigned int.
36358         Remove casts and duplicate code.
36359         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36360         (memcpy): Remove definition.
36361         Merge in some clean-up and optimization changes from glibc.
36362         [BLOCKSIZE]: Move definition to top of file.
36363         Ensure that it is a multiple of 64.
36364         Rearrange loop exit tests so as to avoid performing an
36365         additional fread after encountering an error or EOF.
36366         * lib/md5.h (md5_uintptr): Define.
36367         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36368         return to the initial working directory.  Preserve errno
36369         for caller.
36370         * lib/idcache.c: Include "xalloc.h".
36371         (xmalloc, xrealloc): Remove decls.
36372         (getuser): Remove casts no longer required in C89.
36373         * lib/human.c: Include stdio.h, for sprintf.
36374         * lib/group-member.c: Include "xalloc.h".
36375         (xmalloc, xrealloc): Remove decls.
36376         (get_group_info): Remove casts no longer required in C89.
36377         * lib/getusershell.c (readname): Remove casts no longer required in
36378         C89.
36379         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36380         * lib/getline.c: Whitespace fix, from coreutils.
36381
36382 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36383
36384         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36385         Check for isascii.
36386
36387         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36388         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36389         Undo previous (whitespace-only) change.
36390
36391 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36392
36393         * lib/exclude.c: Include <ctype.h>
36394         (IN_CTYPE_DOMAIN): New macro.
36395         (is_space): New fn.
36396         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36397         and empty lines.
36398
36399         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36400         Undo previous (whitespace-only) change.
36401
36402 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36403
36404         * config/srclist-update: Change update back to the old behavior,
36405         leaving whitespace alone.  Use one 'sed' command rather than a
36406         pipeline.
36407         (fixlicense): Now a variable, not a function.
36408         (remove_trailing_blanks): Remove.
36409         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36410         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36411         Undo previous (whitespace-only) change.
36412
36413 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36414
36415         Merge from coreutils.
36416         * modules/euidaccess: Add lib_SOURCES, include for new
36417         file euidaccess.h
36418
36419 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36420
36421         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36422         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36423         Normalize leading white space and remove trailing white space.
36424
36425         Merge from coreutils
36426         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36427
36428         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36429         0.12.1.  These files are now being upgraded automatically by
36430         ../config/srclist-update.
36431
36432 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36433
36434         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36435         Normalize leading white space and remove trailing white space.
36436         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36437         notice, as per ../config/srclist-update.
36438
36439         Merge from coreutils.
36440         * lib/euidaccess.h: New file.
36441         * lib/euidaccess.c: Include it.
36442         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36443         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36444         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36445
36446 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36447
36448         * config/srclist-update: Add copyright notice.
36449         (remove_id_lines, remove_trailing_blanks): New constants.
36450         (fixfile): Use them to normalize spacing a bit in copied files.
36451         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36452         Normalize leading white space and remove trailing white space.
36453
36454         * config/texinfo.tex: Sync with texinfo.
36455
36456         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36457         strtoul.c from libc, to merge coreutils whitespace changes.
36458
36459         * config/srclist.txt: Get the following m4 files from gettext:
36460         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36461         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36462         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36463         wint_t.m4.
36464
36465 2003-08-12  Karl Berry  <karl@gnu.org>
36466
36467         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36468         been made.
36469
36470 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36471
36472         * modules/gnu-source, m4/gnu-source.m4:
36473         Remove; we're assuming Autoconf 2.54 or later now.
36474         Suggested by Bruno Haible.
36475         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36476
36477 2003-08-11  Bruno Haible  <bruno@clisp.org>
36478
36479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36480
36481 2003-08-11  Bruno Haible  <bruno@clisp.org>
36482
36483         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36484         (vasnprintf): Use it instead of wcslen.
36485
36486 2003-08-11  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36489         value to ensure that _Bool promotes to int. Use #define for _Bool when
36490         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36491
36492 2003-08-10  Karl Berry  <karl@gnu.org>
36493
36494         * lib/regex.h: update from libc (whitespace fix).
36495
36496 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36497
36498         Merge some files from coreutils.  These changes were
36499         originally made by Jim Meyering.
36500         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36501         many older Unixes require this.
36502         * lib/alloca.c (alloca): Remove cast to argument of free;
36503         no longer needed in C89.
36504         * lib/alloca_.h, regex.h: Fix white space to match
36505         what GNU indent does.
36506
36507 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36508
36509         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36510         apparently Emacs's Unicode mode got confused before my 2003-08-05
36511         checkin.
36512
36513 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36514
36515         * m4/extensions.m4: New file.
36516         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36517         Require gl_USE_SYSTEM_EXTENSIONS.
36518         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36519         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36520
36521 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36522
36523         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36524         * modules/extensions, modules/gnu-source: New files.
36525         * modules/timespec, modules/unlocked-io: Depend on extensions.
36526
36527 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36528
36529         * modules/restrict: New file.
36530         * MODULES.html.sh (func_all_modules): Add restrict.
36531         * modules/regex: Depend on restrict.
36532
36533 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36534
36535         * m4/restrict.m4: New file.
36536         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36537
36538 2003-08-07  Bruno Haible  <bruno@clisp.org>
36539
36540         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36541         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36542
36543 2003-08-07  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36546         makes the module 'getndelim2' compatible with the module 'getline'.
36547
36548 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36549
36550         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36551         byte with "\201" to avoid glitches when editing that source file
36552         with multi-gnome-terminal.
36553
36554 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36555
36556         * lib/bumpalloc.h: Remove.
36557
36558 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36559
36560         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36561         * modules/bumpalloc: Remove.
36562
36563 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36564
36565         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36566         GNU coding style.
36567
36568         Merge from coreutils.
36569         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36570         1. From glibc.
36571         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36572         from Karl Berry, implemented by Jim Meyering.
36573         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36574         from Dmitry V. Levin.
36575         Remove anachronistic cast of xrealloc.
36576         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36577         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36578         type. Otherwise, it wouldn't compile with at least /bin/cc on
36579         ymp-cray-unicos9.0.2.X.
36580         Combine two mostly-identical uses of alloca into one.
36581         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36582
36583 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36584
36585         [From Emacs.]
36586
36587         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36588         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36589         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36590         obsolete NLIST_NAME_UNION.
36591         [__GNU__]: Undef BSD and FSCALE.
36592         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36593
36594 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36595
36596         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36597         an enum type, so that it's guaranteed to promote to int.  See:
36598         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36599
36600 2003-08-03  Karl Berry  <karl@gnu.org>
36601
36602         * config/depcomp: update from automake.
36603
36604 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36605
36606         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36607         (strerror): Don't assume that a printable int fits in 14 bytes.
36608
36609 2003-07-31  Bruno Haible  <bruno@clisp.org>
36610
36611         * modules/getpass-gnu: New file.
36612         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36613
36614 2003-07-31  Bruno Haible  <bruno@clisp.org>
36615
36616         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36617
36618 2003-07-24  Karl Berry  <karl@gnu.org>
36619
36620         * config/missing: update from automake.
36621
36622 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36623             Bruno Haible  <bruno@clisp.org>
36624
36625         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36626         * lib/getline.c (getline, getdelim): Likewise.
36627         Remove _GNU_SOURCE define; now it's defined in config.h through
36628         m4/getline.m4.
36629
36630 2003-07-23  Karl Berry  <karl@gnu.org>
36631
36632         * config/config.sub: update from prep.
36633
36634 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36635
36636         * modules/xalloc (Depends-on): Add exitfail.
36637         * modules/xmemcoll: Likewise.
36638
36639 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36640
36641         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36642         over-parenthesization in macros.
36643
36644         Sync with coreutils.
36645
36646         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36647         required by C99.
36648
36649         Use `exit_failure' for xalloc and xmemcoll instead of their own
36650         private exit-failure variables.
36651         * lib/xalloc.h (xalloc_exit_failure): Remove.
36652         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36653         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36654         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36655         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36656         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36657
36658 2003-07-20  Jim Meyering  <jim@meyering.net>
36659
36660         * modules/closeout (Depends-on): Add exitfail.
36661         Suggestion from Bruno Haible.
36662
36663 2003-07-19  Karl Berry  <karl@gnu.org>
36664
36665         * config/config.sub: update from prep.
36666
36667 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36668
36669         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36670         Remove.
36671         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36672         to test that it can stand by itself.  Include "exitfail.h".
36673         Clients should set exit_failure instead.
36674         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36675
36676 2003-07-18  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/getndelim2: New file.
36679         * modules/getline: Share files with module getndelim2.
36680         * modules/getnline: Depend on getndelim2 instead of sharing files with
36681         it. Add getnline.c to lib_SOURCES.
36682         * MODULES.html.sh (func_all_modules): Add getndelim2.
36683
36684 2003-07-18  Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/getndelim2.m4: New file.
36687         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36688         invoke gl_PREREQ_GETNDELIM2.
36689         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36690         gl_PREREQ_GETNDELIM2.
36691         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36692         gl_GETNDELIM2.
36693
36694 2003-07-18  Bruno Haible  <bruno@clisp.org>
36695
36696         * lib/getndelim2.h: New file.
36697         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36698         getndelim2.h.
36699         (getndelim2): Make non-static. Change return type to ssize_t.
36700         * lib/getline.h: Change argument names.
36701         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36702         * lib/getnline.c: Include getndelim2.h.
36703
36704 2003-07-18  Andreas Schwab  <schwab@suse.de>
36705
36706         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36707
36708 2003-07-17  Karl Berry  <karl@gnu.org>
36709
36710         * config/config.sub: update from prep.
36711
36712 2003-07-17  Bruno Haible  <bruno@clisp.org>
36713
36714         * modules/getnline: New file.
36715         * modules/getline: Add lib/getndelim2.c to source file list.
36716         * MODULES.html.sh (func_all_modules): Add getnline.
36717
36718 2003-07-17  Bruno Haible  <bruno@clisp.org>
36719
36720         * m4/getnline.m4: New file.
36721
36722 2003-07-17  Bruno Haible  <bruno@clisp.org>
36723
36724         * m4/Makefile.am.in: Remove file.
36725         * m4/Makefile.am: Remove file.
36726         * m4/Makefile.in: Remove file.
36727
36728 2003-07-17  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/getnline.h: New file.
36731         * lib/getnline.c: New file.
36732         * lib/getndelim2.c: New file, extracted from getline.c.
36733         (getndelim2): Renamed from getdelim2, with added nmax argument.
36734         * lib/getline.c: Include getndelim2.c.
36735         (getdelim2): Moved out to getndelim2.c.
36736         (getline, getdelim): Update.
36737
36738 2003-07-17  Bruno Haible  <bruno@clisp.org>
36739
36740         * lib/Makefile.am: Remove file.
36741         * lib/Makefile.in: Remove file.
36742
36743 2003-07-17  Bruno Haible  <bruno@clisp.org>
36744
36745         * configure.in: Remove file.
36746         * Makefile.in: Remove file.
36747
36748 2003-07-17  Bruno Haible  <bruno@clisp.org>
36749
36750         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36751
36752 2003-07-16  Karl Berry  <karl@gnu.org>
36753
36754         * config/srclist-update: was running fixlicense twice, which caused
36755                 texinfo.tex to be nullified for some reason.  Simplify,
36756                 $gplsrc is no longer needed as far as I can see?
36757
36758 2003-07-16  Jim Meyering  <jim@meyering.net>
36759
36760         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36761
36762 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36763
36764         * config/srclist.txt: Get the following files from gettext-runtime/intl
36765         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36766         ref-del.sin.  From Bruno Haible.
36767         * config/srclist-update (fixfile): Change grep pattern again, since the
36768         previous fix didn't work (there was another trailing $).  Use
36769         '[$]' to escape the $s.
36770
36771 2003-07-15  Karl Berry  <karl@gnu.org>
36772
36773         * lib/vasnprintf.c: update from gettext.
36774
36775 2003-07-15  Karl Berry  <karl@gnu.org>
36776
36777         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36778         gets expanded when surrounded by '$'.
36779
36780 2003-07-15  Jim Meyering  <jim@meyering.net>
36781
36782         * modules/save-cwd: Don't depend on error.  From Derek Price.
36783
36784 2003-07-15  Jim Meyering  <jim@meyering.net>
36785
36786         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36787
36788 2003-07-14  Simon Josefsson  <jas@extundo.com>
36789
36790         * modules/mempcpy: New file.
36791         * MODULES.html.sh (func_all_modules): Add mempcpy.
36792
36793 2003-07-14  Simon Josefsson  <jas@extundo.com>
36794
36795         * m4/mempcpy.m4: New file.
36796
36797 2003-07-14  Simon Josefsson  <jas@extundo.com>
36798
36799         * lib/mempcpy.h: New file.
36800         * lib/mempcpy.c: New file.
36801
36802 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36803
36804         * modules/getdate, modules/posixtm: Depend on mktime.
36805
36806 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36807
36808         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36809         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36810         unicodeio.c, unicodeio.h, unlocked-io.h:
36811         Switch from LGPL to GPL.
36812
36813 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36814
36815         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36816         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36817         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36818         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36819         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36820         updated automatically by ../config/srclist-update.  This changes
36821         their license from LPGL to GPL.
36822
36823 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36824
36825         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36826         assumed to refer to the root of the most recent stable gettext version.
36827         * config/srclistvars.sh: Add defaults for eggert.
36828         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36829         Match "This program" as well as "The program".  This is needed
36830         for gettext.
36831
36832 2003-07-14  Jim Meyering  <jim@meyering.net>
36833
36834         Don't emit diagnostics.  Let callers do that.
36835         * lib/save-cwd.c: Don't include "error.h".
36836         (save_cwd): Don't call error.  Ensure that errno is valid
36837         when returning nonzero.
36838
36839         * lib/save-cwd.h (restore_cwd): Update prototype.
36840         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36841         Simplify.  Don't call error upon failure.  Let callers do that.
36842         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36843         when auditing is enabled.  But don't bother updating the #if.
36844
36845 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36846
36847         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36848         it breaks C++ compilation.
36849         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36850
36851 2003-07-10  Simon Josefsson  <jas@extundo.com>
36852
36853         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36854
36855 2003-07-10  Jim Meyering  <jim@meyering.net>
36856
36857         * m4/clock_time.m4: Remove trailing blank.
36858         * m4/intmax_t.m4: Likewise.
36859
36860 2003-07-10  Jim Meyering  <jim@meyering.net>
36861
36862         * lib/vasnprintf.c: Remove trailing blanks.
36863         Make cpp indentation consistent.
36864
36865 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36866
36867         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36868         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36869         Switch from LGPL to GPL.
36870
36871 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36872
36873         * config/srclist.txt: Sort sublists.  Add
36874         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36875         that differ from gnulib for one reason or another; we'd like this list
36876         to be smaller but for now let's document what we have.
36877
36878 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36879
36880         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36881         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36882         and sweeter "eval x=$x".
36883         * config/srclist.txt: Get lib/argp* from glibc.
36884
36885 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36886
36887         * lib/mktime.c: Fix some boundary cases and remove need for floating
36888         point.
36889
36890         Issue a compile-time diagnostic if time_t is floating point, or if
36891         two's complement arithmetic is not in effect, or if arithmetic
36892         right shift does not propagate the sign.  These assumptions were
36893         all in the original code but they weren't checked.
36894
36895         (TIME_T_MIDPOINT, verify): New macros.
36896         (__isleap): Remove; it has integer overflow problems.
36897         (leapyear): New function, without those problems.
36898         (ydhms_tm_diff): Remove; splitting into two parts.
36899         (ydhms_diff): New function, containing the arithmetic part of
36900         the old ydhms_tm_diff function.  Issue a compile-time
36901         diagnostic if we are not using C99 integer division.
36902         Avoid casts when possible.
36903         (guess_time_tm): New function, containing the checking part of
36904         the old ydhms_tm_diff function.  Return the new value, rather than
36905         the difference between it and the old.  Accept a new argument T
36906         so that *T specifies the old value.  Check for overflow in the result.
36907
36908         (__mktime_internal): Use a time_t offset, not a long int offset.
36909         This undoes the 2003-06-04 change, which is no longer needed now
36910         that we have better overflow checking.
36911         (localtime_offset): Likewise.
36912
36913         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36914         and long are 64-bit but int is only 32-bit.
36915         (ydhms_diff): Use long int to store year1 and yday1.
36916         Issue a compile-time diagnostic if long int is not wide enough.
36917
36918         (__mktime_internal): Use long int to store adjusted year and yday.
36919         Use plain C rather than preprocessor commands, if that doesn't
36920         affect efficiency.
36921         Check for overflow (and try to repair) after each probe
36922         rather than checking only at the very end.  This avoids some bugs
36923         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36924         does not equal GMT offset at maximum time).
36925         Use integer to check for overflow rather than floating point; this
36926         is more portable to non-IEEE hosts, and is a tad faster.
36927         When we detect that we are oscillating between two values,
36928         don't check whether tm_isdst has the requested value, since
36929         we already know the answer.  When tm_isdst has the wrong value,
36930         use a different heuristic to find the right one, based on the
36931         extreme values actually observed in practice in tz2003a,
36932         rather than the (overly optimistic) "previous 3 calendar quarters".
36933
36934         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36935         "T const" to accommodate glibc style.
36936         (check_result): Use less-confusing report format.  "long" -> "long int.
36937         (main): Likewise.
36938         Don't loop if the iteration overflows time_t.
36939         Allow a negative step in the iteration.
36940
36941 2003-07-06  Karl Berry  <karl@gnu.org>
36942
36943         * config/depcomp: update from automake.
36944         * config/config.sub: update from prep.
36945
36946 2003-07-03  Karl Berry  <karl@gnu.org>
36947
36948         * config/config.guess: update from prep.
36949
36950 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36951
36952         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36953         xreadlink.c now includes it unconditionally.
36954
36955 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36956
36957         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36958         having it depend on HAVE_SYS_TYPES_H.
36959
36960 2003-07-01  Bruno Haible  <bruno@clisp.org>
36961
36962         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36963         <sys/types.h> should be sufficient.
36964         Reported by Paul Eggert.
36965
36966 2003-06-26  Karl Berry  <karl@gnu.org>
36967
36968         * config/depcomp: update from automake.
36969
36970 2003-06-26  Bruno Haible  <bruno@clisp.org>
36971
36972         * modules/human: Depend on module stdbool.
36973
36974 2003-06-25  Bruno Haible  <bruno@clisp.org>
36975
36976         * modules/readlink: New file.
36977         * modules/xreadlink: Depend on it.
36978         * MODULES.html.sh (func_all_modules): Add readlink.
36979
36980 2003-06-25  Bruno Haible  <bruno@clisp.org>
36981
36982         * m4/readlink.m4: New file.
36983
36984 2003-06-25  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/readlink.c: New file.
36987
36988 2003-06-22  Karl Berry  <karl@gnu.org>
36989
36990         * config/srclist.txt: update mkinstalldirs from automake.
36991         * config/mkinstalldirs: update.
36992
36993 2003-06-22  Bruno Haible  <bruno@clisp.org>
36994
36995         Portability to mingw32.
36996         * m4/ssize_t.m4: New file, from GNU gettext.
36997         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36998         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36999
37000 2003-06-22  Bruno Haible  <bruno@clisp.org>
37001
37002         * modules/safe-read: Add m4/ssize_t.m4.
37003         * modules/xreadlink: Add m4/ssize_t.m4.
37004
37005 2003-06-20  Bruno Haible  <bruno@clisp.org>
37006
37007         Assume C89, so PARAMS isn't needed.
37008         * lib/unicodeio.h (PARAMS): Remove.
37009         * lib/unicodeio.c: Don't use PARAMS.
37010
37011 2003-06-18  Karl Berry  <karl@gnu.org>
37012
37013         * config/config.{guess,sub}: update from prep.
37014
37015 2003-06-18  Jim Meyering  <jim@meyering.net>
37016
37017         Merge changes from coreutils.
37018         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
37019         Remove explicit declarations of xmalloc and realloc.
37020         Include xalloc.h.
37021         (read_utmp): Remove anachronistic cast of xmalloc.
37022
37023 2003-06-17  Paul Eggert  <eggert@twinsun.com>
37024
37025         Assume C89, so PARAMS isn't needed.
37026         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
37027         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
37028         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
37029         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
37030         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
37031         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
37032         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
37033         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
37034         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
37035         lib/xstrtod.h, lib/xstrtol.h: Likewise.
37036         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
37037         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
37038         no longer needed. Anyway, config.h should always be included before any
37039         other file.
37040
37041 2003-06-11  Simon Josefsson  <jas@extundo.com>
37042
37043         * modules/sysexits: New file.
37044         * MODULES.html.sh (func_all_modules): Add sysexits.
37045
37046 2003-06-11  Simon Josefsson  <jas@extundo.com>
37047
37048         * lib/sysexit_.h: New file.
37049
37050 2003-06-11  Derek Price  <derek@ximbiot.com>
37051
37052         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
37053         necessary.
37054
37055 2003-06-11  Bruno Haible  <bruno@clisp.org>
37056
37057         * m4/sysexits.m4: New file.
37058
37059 2003-06-10  Simon Josefsson  <jas@extundo.com>
37060
37061         * lib/argp.h: New file, from glibc.
37062         * lib/argp-ba.c: New file, from glibc.
37063         * lib/argp-eexst.c: New file, from glibc.
37064         * lib/argp-fmtstream.c: New file, from glibc.
37065         * lib/argp-fmtstream.h: New file, from glibc.
37066         * lib/argp-fs-xinl.c: New file, from glibc.
37067         * lib/argp-help.c: New file, from glibc.
37068         * lib/argp-namefrob.h: New file, from glibc.
37069         * lib/argp-parse.c: New file, from glibc.
37070         * lib/argp-pv.c: New file, from glibc.
37071         * lib/argp-pvh.c: New file, from glibc.
37072         * lib/argp-xinl.c: New file, from glibc.
37073
37074 2003-06-10  Simon Josefsson  <jas@extundo.com>
37075
37076         * modules/strchrnul: New file.
37077
37078 2003-06-10  Simon Josefsson  <jas@extundo.com>
37079
37080         * modules/argp: New file.
37081
37082 2003-06-10  Simon Josefsson  <jas@extundo.com>
37083
37084         * m4/strchrnul.m4: New file.
37085
37086 2003-06-10  Simon Josefsson  <jas@extundo.com>
37087
37088         * lib/strchrnul.h: New file.
37089         * lib/strchrnul.c: New file.
37090
37091 2003-06-10  Bruno Haible  <bruno@clisp.org>
37092
37093         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
37094
37095 2003-06-07  Karl Berry  <karl@gnu.org>
37096
37097         * config/config.{guess,sub}: update from prep.
37098
37099 2003-06-07  Jim Meyering  <jim@meyering.net>
37100
37101         * modules/strtod: Use $(...) notation, not @...@ for
37102         AC_REPLACE'd variables.
37103         * modules/localcharset: Likewise.
37104
37105 2003-06-07  Jim Meyering  <jim@meyering.net>
37106
37107         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
37108         in place of my name in the copyright comment.
37109         Remove definition and uses of __P.
37110
37111         From coreutils.
37112         * lib/stat.c: Don't declare xmalloc explicitly.
37113         Instead, include "xalloc.h".
37114         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
37115         xrealloc, and xcalloc return values.
37116         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
37117         Improve comment.
37118         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
37119
37120 2003-06-07  Bruno Haible  <bruno@clisp.org>
37121
37122         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
37123         avoid AC_CONFIG_LINKS.
37124         * modules/fnmatch (Makefile.am): Use explicit creation rule for
37125         fnmatch.h, to avoid AC_CONFIG_LINKS.
37126         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
37127
37128 2003-06-07  Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
37131         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
37132         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37133         directory.
37134         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
37135         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
37136         directory.
37137
37138 2003-06-06  Jim Meyering  <jim@meyering.net>
37139
37140         Merge from coreutils.
37141         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
37142         Consolidate declarations and initializations of *_base* locals.
37143
37144         Merge from coreutils.
37145         This avoids a core dump on systems without GNU putenv,
37146         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
37147         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
37148         (unsetenv): New static function, from GNU libc.
37149         (rpl_putenv): Use it.
37150
37151         * lib/modechange.c: Remove trailing blanks.
37152
37153         Merge from coreutils.
37154         * lib/fsusage.c: Remove declaration of statfs.
37155         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37156
37157         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37158
37159 2003-06-06  Jim Meyering  <jim@meyering.net>
37160
37161         * lib/stdbool_.h: Renamed from stdbool.h.in.
37162
37163 2003-06-06  Jim Meyering  <jim@meyering.net>
37164             Bruno Haible  <bruno@clisp.org>
37165
37166         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37167         Adjust Makefile.am snippet not to redirect directly to target.
37168         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37169
37170 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37171
37172         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37173         mismatch, look in future quarters as well as past.  This fixes a
37174         bug when processing fall-backwards gaps immediately after a long
37175         period of daylight-saving time.
37176
37177         * lib/mktime.c: Assume freestanding C89 or better.
37178         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37179         (__P): Remove; not used.
37180         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37181         (mktime, not_equal_tm, print_tm, check_result,
37182         main): Use prototypes.  Use const * where appropriate.
37183         (main): Fix typo in testing code that uncovered by above changes.
37184         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37185
37186 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37187
37188         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37189         locale.h, localeconv.  This merges changes from coreutils.
37190
37191         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37192         It can be removed after the next Autoconf is released.
37193         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37194         needed.
37195
37196 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37197
37198         * lib/mktime.c: Fix Debian bug 177940
37199         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37200         (localtime_offset): Now long int, not time_t, because we want it
37201         to be guaranteed to be signed.  All uses changed.
37202         (__mktime_internal): If overflow would occur when adding offset,
37203         don't add it.
37204
37205         Merge 'human' changes from coreutils.  Rewrite to support
37206         locale-specific notations like thousands separators.
37207         * lib/human.c: Simplify authorship notice.
37208         Include human.h immediately after config.h.
37209         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37210         <limits.h>: Do not include, since human.h does.
37211         (SIZE_MAX, UINTMAX_MAX): New macros.
37212         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37213         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37214         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37215         (power_letter): Renamed from suffixes.
37216         (generate_suffix_backwards): Remove.
37217         (adjust_value): Now takes int style (because of human.h changes)
37218         and long double value (for greater precision on some platforms).
37219         (group_number): New function.
37220         (human_readable): Use it.  Use integer options, not enum.
37221         Put the options before the sizes in the arg list.
37222         Support all the new options.
37223         The old human_readable function has been removed;
37224         use inttostr.h instead.
37225         (human_readable, default_block_size, humblock):
37226         Use uintmax_t, not int, for block sizes.
37227         (human_readable_inexact, block_size_types): Remove.
37228         (block_size_opts): New constant.
37229         (human_options): Renamed from human_block_size, with new signature
37230         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37231         * lib/human.h: Add copyright and authorship notice.
37232         Include <limits.h> and <stdbool.h> unconditionally.
37233         (PARAMS): Remove.  All uses removed.
37234         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37235         (enum human_inexact_style): Remove tag; now a nameless enum.
37236         (human_floor, human_ceiling, human_round_to_even): Now have
37237         values 2, 0, 1 rather than -1, 1, 0.
37238         (human_group_digits, human_suppress_point_zero, human_autoscale,
37239         human_base_1024, human_SI, human_B): New constants.
37240         (human_readable_inexact, human_block_size): Remove.
37241         (human_readable): Size args are now uintmax_t, not int.
37242         (human_options): New decl.
37243
37244         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37245         unnecessary now that we assume C89 or better.  This change
37246         imported from coreutils.
37247
37248         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37249         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37250         in the 2003-05-30 sync from glibc.
37251
37252         .h files should stand alone, but we shouldn't include <sys/types.h>
37253         if we can get away with just <stddef.h>.
37254
37255         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37256         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37257         rather than <sys/types.h>, as we merely need size_t.
37258         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37259         to get size_t.
37260         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37261         Include <stdio.h>, to get FILE.
37262         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37263         memcasecmp.h has included <stddef.h> and all we need is size_t.
37264         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37265         our interface, instead of including <sys/types.h>
37266
37267 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37268
37269         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37270         now, as glibc mktime is buggy on non-glibc systems.
37271
37272 2003-06-03  Karl Berry  <karl@gnu.org>
37273
37274         * config/config.sub: update from prep.
37275
37276 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37277
37278         [from coreutils]
37279         Fix some minor time-related bugs with POSIX time arguments.
37280         Some valid time stamps were being rejected (notably -1, and
37281         time stamps before 1900 on 64-bit hosts).  And some invalid
37282         time stamps were being accepted, e.g. September 31.
37283
37284         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37285         that we can return (time_t) -1 successfully.
37286         * lib/posixtm.c: Likewise.
37287         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37288         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37289         (t): Remove static var.
37290         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37291         of static var.  All uses changed.
37292         (year): Do not reject years before 1900; they can occur with
37293         64-bit time_t.
37294         (posix_time_parse): Do not check for out-of-range components;
37295         that is now the caller's responsibility, since our checks were
37296         only approximations.
37297         (posixtime): Use mktime to check for out-of-range components,
37298         since it knows them exactly.
37299         If mktime returns (time_t) -1, check whether an error actually occurred
37300         by invoking localtime on -1.
37301         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37302         posixtime failures better.
37303         Improve the test data (in comments only).
37304
37305 2003-06-02  Karl Berry  <karl@gnu.org>
37306
37307         * config/mkinstalldirs (version): new variable.
37308         (--version): new option.
37309         (usage): improve message.
37310
37311 2003-05-30  Karl Berry  <karl@gnu.org>
37312
37313         * lib/mktime.c: update from libc.
37314
37315 2003-05-30  Bruno Haible  <bruno@clisp.org>
37316
37317         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37318         * config/config.rpath: Upgrade to gettext-0.12.1.
37319
37320 2003-05-30  Bruno Haible  <bruno@clisp.org>
37321
37322         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37323         * m4/nls.m4: New file, from gettext-0.12.1.
37324         * m4/po.m4: New file, from gettext-0.12.1.
37325         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37326
37327 2003-05-30  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37330         * lib/localcharset.h: Likewise.
37331         * lib/localcharset.c: Likewise.
37332
37333 2003-05-29  Karl Berry  <karl@gnu.org>
37334
37335         * config/config.rpath: update from gettext.
37336
37337 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37338
37339         Assume the headers required for C89 freestanding compilers.
37340         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37341         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37342         * m4/human.m4 (gl_HUMAN): Likewise.
37343         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37344         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37345         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37346         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37347         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37348         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37349
37350 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37351
37352         Assume the headers required for C89 freestanding compilers.
37353         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37354         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37355         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37356         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37357         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37358         define, since <limits.h> is guaranteed to do that.
37359         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37360         * lib/exclude.c: Include <stdbool.h> unconditionally.
37361         * lib/tempname.c: Include <stddef.h> unconditionally.
37362         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37363         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37364         <stddef.h> does that.
37365         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37366         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37367         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37368         needed.
37369         * lib/xstrtol.c: Likewise.
37370         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37371         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37372
37373         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37374         warnings on some platforms.
37375
37376         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37377         arbitrarily.
37378
37379 2003-05-26  Jim Meyering  <jim@meyering.net>
37380
37381         Merge in a change from coreutils:
37382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37383         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37384         that condition, rather than `-1' which is slightly misleading.
37385         Change the name of the cache variable to have the gl_ prefix.
37386         Prompted by a patch from Richard Dawe for DJGPP.
37387
37388 2003-05-24  Karl Berry  <karl@gnu.org>
37389
37390         * config/config.guess: update from prep.
37391
37392 2003-05-22  Karl Berry  <karl@gnu.org>
37393
37394         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37395
37396 2003-05-20  Karl Berry  <karl@gnu.org>
37397
37398         * config/config.guess: update from prep.
37399
37400 2003-05-18  Karl Berry  <karl@gnu.org>
37401
37402         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37403         might actually be set by the user.
37404
37405         * config/depcomp, install-sh, mdate-sh: update from automake.
37406
37407 2003-05-17  Bruno Haible  <bruno@clisp.org>
37408
37409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37410         invalid expansion for AC_EGREP_CPP.
37411         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37412         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37413         Suggested by Akim Demaille <akim@epita.fr> in
37414         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37415
37416 2003-05-12  Jim Meyering  <jim@meyering.net>
37417
37418         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37419         the space-padded-by-default conversion specifiers, %e, %k, %l.
37420
37421 2003-05-12  Bruno Haible  <bruno@clisp.org>
37422
37423         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37424         the string is longer than 4 KB.
37425
37426 2003-05-11  Karl Berry  <karl@gnu.org>
37427
37428         * config/config.{guess,sub}: update from prep.
37429
37430 2003-05-09  Bruno Haible  <bruno@clisp.org>
37431
37432         * modules/error: Add m4/strerror_r.m4 to file list.
37433
37434 2003-05-03  Bruno Haible  <bruno@clisp.org>
37435
37436         Upgrade to Unicode-4.0.
37437         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37438         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37439         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37440         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37441         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37442         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37443         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37444         Change width of U+E0100..U+E01EF from 1 to 0.
37445
37446 2003-04-25  Jim Meyering  <jim@meyering.net>
37447
37448         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37449         of type size_t, not int.
37450
37451 2003-04-25  Bruno Haible  <bruno@clisp.org>
37452
37453         * lib/copy-file.c: Include <stddef.h>, for size_t.
37454
37455 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37456
37457         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37458         code which expansion is under static control.  Patch imported from
37459         Akim Demaille's patch to Bison; see
37460         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37461
37462 2003-04-14  Bruno Haible  <bruno@clisp.org>
37463
37464         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37465
37466 2003-04-11  Jim Meyering  <jim@meyering.net>
37467
37468         Merge changes from Coreutils.
37469
37470         2003-03-22  Jim Meyering  <jim@meyering.net>
37471
37472         * lib/strftime.c (widen): Cast alloca return value to proper type.
37473
37474         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37475
37476         From GNU libc.
37477         * lib/strftime.c (my_strftime): Handle very large width
37478         specifications for numeric values correctly.  Improve checks for
37479         overflow.
37480
37481         2003-01-19  Jim Meyering  <jim@meyering.net>
37482
37483         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37484         definitions.
37485         (nl_get_alt_digit) [! defined my_strftime]: Define.
37486         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37487         _nl_get_alt_digit and _nl_get_walt_digit.
37488
37489         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37490         libc. These changes have no effect outside of _LIBC.
37491
37492 2003-04-10  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/findprog: New file.
37495         * MODULES.html.sh (func_all_modules): Add it.
37496
37497 2003-04-10  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/findprog.m4: New file.
37500         * m4/eaccess.m4: New file.
37501
37502 2003-04-10  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/findprog.h: New file, from GNU gettext.
37505         * lib/findprog.c: New file, from GNU gettext.
37506
37507 2003-04-05  Jim Meyering  <jim@meyering.net>
37508
37509         Merge changes from Coreutils.
37510
37511         * lib/exclude.h (PARAMS): Remove definition and uses.
37512         * lib/exclude.c: Remove uses of `PARAMS'.
37513
37514         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37515         Add test-cases for DOS filenames. Declare program_name.
37516         (main): Set up program_name.  Patch by Rich Dawe.
37517
37518         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37519         error from mntctl.
37520         Use mntctl's return value to drive the entry-processing loop, since
37521         we can't rely on the value of the vmt_length member in the last
37522         entry.  On some systems doing so could result in exhausting
37523         virtual memory.  Based in part on a patch from Mike Jetzer.
37524
37525 2003-04-04  Bruno Haible  <bruno@clisp.org>
37526
37527         * modules/linebreak: New file.
37528         * MODULES.html.sh (func_all_modules): Add it.
37529
37530 2003-04-04  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/linebreak.m4: New file.
37533
37534 2003-04-04  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/linebreak.h: New file, from GNU gettext.
37537         * lib/linebreak.c: New file, from GNU gettext with slight
37538         modifications.
37539         * lib/lbrkprop.h: New file, from GNU gettext.
37540
37541 2003-04-03  Bruno Haible  <bruno@clisp.org>
37542
37543         * modules/utf8-ucs4: New file.
37544         * modules/utf16-ucs4: New file.
37545         * modules/ucs4-utf8: New file.
37546         * modules/ucs4-utf16: New file.
37547         * MODULES.html.sh (func_all_modules): Add them.
37548
37549 2003-04-03  Bruno Haible  <bruno@clisp.org>
37550
37551         * m4/utf-ucs4.m4: New file.
37552         * m4/ucs4-utf.m4: New file.
37553
37554 2003-04-03  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/utf8-ucs4.h: New file, from GNU gettext.
37557         * lib/utf16-ucs4.h: New file, from GNU gettext.
37558         * lib/ucs4-utf8.h: New file, from GNU gettext.
37559         * lib/ucs4-utf16.h: New file, from GNU gettext.
37560
37561 2003-04-02  Bruno Haible  <bruno@clisp.org>
37562
37563         * modules/binary-io: New file.
37564         * MODULES.html.sh (func_all_modules): Add it.
37565
37566 2003-04-02  Bruno Haible  <bruno@clisp.org>
37567
37568         * lib/binary-io.h: New file, from GNU gettext.
37569
37570 2003-04-01  Bruno Haible  <bruno@clisp.org>
37571
37572         * modules/pathname: New file.
37573         * MODULES.html.sh (func_all_modules): Add it.
37574
37575 2003-04-01  Bruno Haible  <bruno@clisp.org>
37576
37577         * lib/pathname.h: New file, from GNU gettext.
37578         * lib/concatpath.c: New file, from GNU gettext.
37579
37580 2003-03-30  Bruno Haible  <bruno@clisp.org>
37581
37582         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37583
37584 2003-03-30  Bruno Haible  <bruno@clisp.org>
37585
37586         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37587         function chown() doesn't exist.
37588
37589 2003-03-28  Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/copy-file: New file.
37592         * MODULES.html.sh (func_all_modules): Add it.
37593
37594 2003-03-28  Bruno Haible  <bruno@clisp.org>
37595
37596         * m4/copy-file.m4: New file.
37597
37598 2003-03-28  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/copy-file.h: New file, from GNU gettext.
37601         * lib/copy-file.c: New file, from GNU gettext.
37602
37603 2003-03-18  Jim Meyering  <jim@meyering.net>
37604
37605         * lib/quote.c (quote_n): Fix typo in comment.
37606
37607 2003-03-18  Bruno Haible  <bruno@clisp.org>
37608
37609         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37610         checking.
37611         * m4/onceonly_2_57.m4: Likewise.
37612
37613 2003-03-17  Bruno Haible  <bruno@clisp.org>
37614
37615         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37616         (m4_quote): Remove macro.
37617         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37618
37619 2003-03-14  Jim Meyering  <jim@meyering.net>
37620
37621         Merge changes from Coreutils.
37622         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37623         to be const, in order to avoid warnings.
37624         (obstack_room): Likewise.
37625         (obstack_empty_p): Likewise.
37626
37627 2003-03-14  Bruno Haible  <bruno@clisp.org>
37628
37629         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37630         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37631
37632 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37633
37634         Merge changes from Bison.
37635         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37636         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37637         when compiling Bison 1.875's `bitset bset = obstack_alloc
37638         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37639         * lib/hash.c: Include <stdbool.h> unconditionally.
37640
37641 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37642
37643         * m4/onceonly.m4 (m4_quote): New macro.
37644         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37645         Quote AC_FOREACH variable-expansions properly.
37646
37647 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37648
37649         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37650
37651 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37652
37653         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37654         Reported by Bruce Becker; see:
37655         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37656
37657 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37658             Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37661         Reported by John Hughes, see
37662         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37663
37664 2003-02-20  Bruno Haible  <bruno@clisp.org>
37665
37666         * MODULES.html.sh (func_all_modules): Add poll.
37667
37668 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37669
37670         * modules/poll: New file.
37671
37672 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37673
37674         * lib/poll_.h: New file.
37675         * lib/poll.c: New file.
37676
37677 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37678
37679         * m4/poll.m4: New file.
37680
37681 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37682
37683         * modules/mathl: New file.
37684
37685 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37686
37687         * lib/mathl.h: New file.
37688         * lib/acosl.c: New file.
37689         * lib/asinl.c: New file.
37690         * lib/atanl.c: New file.
37691         * lib/ceill.c: New file.
37692         * lib/cosl.c: New file.
37693         * lib/expl.c: New file.
37694         * lib/floorl.c: New file.
37695         * lib/frexpl.c: New file.
37696         * lib/ldexpl.c: New file.
37697         * lib/logl.c: New file.
37698         * lib/sincosl.c: New file.
37699         * lib/sinl.c: New file.
37700         * lib/sqrtl.c: New file.
37701         * lib/tanl.c: New file.
37702         * lib/trigl.c: New file.
37703         * lib/trigl.h: New file.
37704
37705 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37706
37707         * m4/mathl.m4: New file.
37708
37709 2003-02-18  Bruno Haible  <bruno@clisp.org>
37710
37711         * MODULES.html.sh (func_all_modules): Add mathl.
37712
37713 2003-02-17  Bruno Haible  <bruno@clisp.org>
37714
37715         * modules/mkdtemp: New module.
37716         * MODULES.html.sh (func_all_modules): Add it.
37717
37718 2003-02-17  Bruno Haible  <bruno@clisp.org>
37719
37720         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37721
37722 2003-02-17  Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/mkdtemp.h: New file, from GNU gettext.
37725         * lib/mkdtemp.c: New file, from GNU gettext.
37726
37727 2003-02-02  Jim Meyering  <jim@meyering.net>
37728
37729         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37730         e.g. glibc-2.2.93.
37731
37732 2003-01-31  Bruno Haible  <bruno@clisp.org>
37733
37734         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37735         'rpl_rename'.
37736         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37737         'rpl_strnlen'.
37738         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37739         'rpl_strtod'.
37740         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37741         'rpl_utime'.
37742
37743 2003-01-31  Bruno Haible  <bruno@clisp.org>
37744
37745         * lib/rename.c: #undef rename before defining rpl_rename.
37746         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37747
37748 2003-01-30  Bruno Haible  <bruno@clisp.org>
37749
37750         * modules/vasnprintf, modules/vasprintf: New modules.
37751         * MODULES.html.sh (func_all_modules): Add them.
37752
37753 2003-01-30  Bruno Haible  <bruno@clisp.org>
37754
37755         * m4/signed.m4: New file, from GNU gettext.
37756         * m4/longdouble.m4: New file, from GNU gettext.
37757         * m4/wchar_t.m4: New file, from GNU gettext.
37758         * m4/wint_t.m4: New file, from GNU gettext.
37759         * m4/vasnprintf.m4: New file.
37760         * m4/vasprintf.m4: New file.
37761
37762 2003-01-30  Bruno Haible  <bruno@clisp.org>
37763
37764         * lib/printf-args.h: New file, from GNU gettext.
37765         * lib/printf-args.c: New file, from GNU gettext.
37766         * lib/printf-parse.h: New file, from GNU gettext.
37767         * lib/printf-parse.c: New file, from GNU gettext.
37768         * lib/vasnprintf.h: New file, from GNU gettext.
37769         * lib/vasnprintf.c: New file, from GNU gettext.
37770         * lib/asnprintf.c: New file, from GNU gettext.
37771         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37772         * lib/vasprintf.c: New file, from GNU gettext.
37773         * lib/asprintf.c: New file, from GNU gettext.
37774
37775 2003-01-29  Bruno Haible  <bruno@clisp.org>
37776
37777         * modules/stpncpy: New module.
37778         * MODULES.html.sh (func_all_modules): Add it.
37779
37780 2003-01-29  Bruno Haible  <bruno@clisp.org>
37781
37782         * m4/stpncpy.m4: New file.
37783
37784 2003-01-29  Bruno Haible  <bruno@clisp.org>
37785
37786         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37787         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37788
37789 2003-01-28  Bruno Haible  <bruno@clisp.org>
37790
37791         * modules/c-ctype: New module.
37792         * MODULES.html.sh (func_all_modules): Add it.
37793
37794 2003-01-28  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37797         Paul Eggert.
37798         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37799         Paul Eggert.
37800
37801 2003-01-27  Bruno Haible  <bruno@clisp.org>
37802
37803         * modules/xsetenv: New module.
37804         * MODULES.html.sh (func_all_modules): Add it.
37805
37806 2003-01-27  Bruno Haible  <bruno@clisp.org>
37807
37808         * lib/xsetenv.h: New file, from GNU gettext.
37809         * lib/xsetenv.c: New file, from GNU gettext.
37810
37811 2003-01-23  Jim Meyering  <jim@meyering.net>
37812
37813         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37814         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37815
37816 2003-01-23  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/minmax: New module.
37819         * MODULES.html.sh (func_all_modules): Add it.
37820
37821 2003-01-23  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37824         Eggert.
37825
37826 2003-01-22  Bruno Haible  <bruno@clisp.org>
37827
37828         * modules/exit: New module.
37829         * MODULES.html.sh (func_all_modules): Add it.
37830
37831 2003-01-22  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/exit.h: New file, from GNU gettext.
37834
37835 2003-01-19  Bruno Haible  <bruno@clisp.org>
37836
37837         * gnulib-tool: Recognize option --extract-maintainer.
37838         (func_get_maintainer): New function.
37839         * modules/*: Add Maintainer entry.
37840
37841 2003-01-16  Jim Meyering  <jim@meyering.net>
37842
37843         * m4/regex.m4: The `regex' struct is both input and output.
37844         Initialize it before each use.  Patch by Tim Waugh.
37845
37846 2003-01-16  Bruno Haible  <bruno@clisp.org>
37847
37848         * MODULES.html.sh: Add a table of contents. Add the module name as
37849         leftmost column. Add hyperlinks.
37850
37851 2003-01-15  Bruno Haible  <bruno@clisp.org>
37852
37853         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37854
37855 2003-01-15  Bruno Haible  <bruno@clisp.org>
37856
37857         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37858         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37859         suffix.
37860
37861 2003-01-15  Bruno Haible  <bruno@clisp.org>
37862
37863         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37864
37865 2003-01-15  Bruno Haible  <bruno@clisp.org>
37866
37867         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37868         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37869
37870 2003-01-14  Jim Meyering  <jim@meyering.net>
37871
37872         * lib/same.c (same_name): Tweak a comment.
37873
37874 2003-01-14  Bruno Haible  <bruno@clisp.org>
37875
37876         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37877         when a string comparison is sufficient.
37878
37879 2003-01-14  Bruno Haible  <bruno@clisp.org>
37880
37881         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37882         'unsigned int'.
37883
37884 2003-01-14  Bruno Haible  <bruno@clisp.org>
37885
37886         * lib/hash-pjw.c: Add comment about low quality of this function.
37887
37888 2003-01-13  Bruno Haible  <bruno@clisp.org>
37889
37890         * modules/stpcpy: Distribute lib/stpcpy.h.
37891         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37892
37893 2003-01-13  Bruno Haible  <bruno@clisp.org>
37894
37895         * modules/*: Add a description.
37896         * modules/strpbrk: Fix Makefile.am snippet.
37897         * modules/strtoimax: Fix dependencies.
37898         * modules/strtoumax: Likewise.
37899
37900 2003-01-13  Bruno Haible  <bruno@clisp.org>
37901
37902         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37903         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37904         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37905
37906 2003-01-13  Bruno Haible  <bruno@clisp.org>
37907
37908         * gnulib-tool (func_create_testdir): Store config/* files in the main
37909         directory.
37910         * config.rpath: Move to ...
37911         * config/config.rpath: ... here.
37912         * modules/gettext: Contains config/config.rpath, not config.rpath.
37913         * modules/iconv: Likewise.
37914
37915 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37916
37917         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37918         to avoid collisions with libcurses and libreadline.
37919
37920         * m4/getstr.m4: Remove.
37921         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37922
37923 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37924
37925         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37926         to avoid collisions with libcurses and libreadline.
37927
37928         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37929         * lib/getstr.h, getstr.c: Remove.
37930         * lib/getline.c: Include "getline.h", to check interface.
37931         Move body of old getstr.c here: this defines MIN_CHUNK and
37932         declares getdelim2, which is renamed from getstr.
37933         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37934
37935         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37936         All uses changed.
37937         * lib/linebuffer.h: Likewise.
37938         (readline): Remove backward-compatibility macro.
37939
37940 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37941
37942         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37943         to avoid collisions with libcurses and libreadline.
37944         * getstr: Remove.
37945         * MODULES.html.sh: Remove getstr.
37946         * modules/getline: Depend on unlocked-io, not getstr.
37947
37948 2003-01-12  Jim Meyering  <jim@meyering.net>
37949
37950         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37951
37952 2003-01-10  Bruno Haible  <bruno@clisp.org>
37953
37954         * modules/alloca: Change Makefile.am requirements. Simplify Include
37955         requirements. Add lib/alloca_.h to file list.
37956
37957 2003-01-10  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37960
37961 2003-01-10  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/alloca_.h: New file.
37964         * lib/getdate.y: Unconditionally include alloca.h.
37965         * lib/makepath.c: Likewise.
37966         * lib/setenv.c: Likewise.
37967         * lib/userspec.c: Likewise.
37968
37969 2003-01-09  Karl Berry  <karl@gnu.org>
37970
37971         * MODULES.html.sh: include `dirname $0` in PATH, to find
37972         gnulib-tool.
37973
37974 2003-01-09  Bruno Haible  <bruno@clisp.org>
37975
37976         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37977         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37978
37979 2003-01-09  Bruno Haible  <bruno@clisp.org>
37980
37981         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37982
37983 2003-01-09  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/stdbool.h.in: New file.
37986
37987 2003-01-09  Bruno Haible  <bruno@clisp.org>
37988
37989         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37990         * MODULES.html.sh: Likewise.
37991
37992 2003-01-08  Jim Meyering  <jim@meyering.net>
37993
37994         * lib/full-write.c: Undefine and define-away `const' after inclusion
37995         of errno.h, not before.  Suggestion from Bruno Haible.
37996
37997 2003-01-08  Bruno Haible  <bruno@clisp.org>
37998
37999         * modules/full-read: Depend on full-write.
38000
38001 2003-01-08  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/safe-read.c: Include specification header first, to ensure its
38004         selfcontainedness.
38005         * lib/full-write.c: Likewise.
38006
38007 2003-01-07  Jim Meyering  <jim@meyering.net>
38008
38009         * lib/full-write.c: Rework so that it may serve to define full_read,
38010         too.
38011         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
38012
38013 2003-01-07  Bruno Haible  <bruno@clisp.org>
38014
38015         * lib/strtoimax.c: Include <stdint.h> as an alternative to
38016         <inttypes.h>.
38017         * lib/xstrtol.h: Likewise.
38018         * lib/xstrtoimax.c: Likewise.
38019         * lib/xstrtoumax.c: Likewise.
38020         * lib/human.h: Likewise.
38021
38022         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
38023         on systems that have <inttypes.h> but not <stdint.h>.
38024
38025 2003-01-07  Bruno Haible  <bruno@clisp.org>
38026
38027         * MODULES.html.sh: Add copyright notice.
38028         (missed_files): Omit CVS directory entries.
38029         (func_module): Make it work with sed-3.02.
38030         * MODULES.txt: Remove file.
38031
38032 2003-01-06  Jim Meyering  <jim@meyering.net>
38033
38034         * lib/version-etc.c: Update year in translatable copyright string.
38035
38036 2003-01-03  Karl Berry  <karl@gnu.org>
38037
38038         * config/config.{guess,sub}: update from prep.
38039
38040 2003-01-02  Karl Berry  <karl@gnu.org>
38041
38042         * doc/COPYING.DOC: belatedly updated to 1.2.
38043
38044 2003-01-01  Karl Berry  <karl@gnu.org>
38045
38046         * gnulib-tool (func_verify_module): report module name $module in
38047         error message, not $1.
38048         * gnulib-tool (create-testdir): don't complain if destdir couldn't
38049         be created, only if it doesn't exist.
38050         * gnulib-tool (last_checkin_date): don't expand the $Date here.
38051
38052 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38053
38054         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
38055
38056 2002-12-31  Paul Eggert  <eggert@twinsun.com>
38057
38058         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
38059         memcmp if strcoll doesn't work.
38060
38061 2002-12-31  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/utime.c (utime_null): No need to call ftruncate if the file was
38064         nonempty.
38065
38066 2002-12-31  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/memcoll.c (STRCOLL): New macro.
38069         (memcoll): Use it.
38070
38071 2002-12-31  Bruno Haible  <bruno@clisp.org>
38072
38073         * lib/localcharset.h: New file.
38074         * lib/localcharset.c: Include it.
38075         * lib/unicodeio.c: Likewise.
38076
38077 2002-12-31  Bruno Haible  <bruno@clisp.org>
38078
38079         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
38080         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
38081
38082 2002-12-31  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/getline.h: Include <stddef.h>, for size_t.
38085
38086         * lib/unicodeio.h: Include <stddef.h>, for size_t.
38087         * lib/unicodeio.c: Don't include <stddef.h>.
38088
38089 2002-12-31  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
38092         HAVE_TM_ZONE.
38093
38094 2002-12-24  Karl Berry  <karl@gnu.org>
38095
38096         * config/config.guess: update from prep.
38097
38098 2002-12-24  Bruno Haible  <bruno@clisp.org>
38099
38100         General infrasructure.
38101         * m4/README: Rewritten.
38102         * m4/onceonly.m4: New file.
38103         * m4/onceonly_2_57.m4: New file.
38104
38105         Module atexit.
38106         * m4/atexit.m4: New file.
38107
38108         Module strtod.
38109         * m4/strtod.m4: New file.
38110
38111         Module strtol.
38112         * m4/strtol.m4: New file.
38113
38114         Module strtoul.
38115         * m4/strtoul.m4: New file.
38116
38117         Module memchr.
38118         * m4/memchr.m4: New file.
38119
38120         Module memcmp.
38121         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
38122         (jm_FUNC_MEMCMP): Invoke it.
38123
38124         Module memcpy.
38125         * m4/memcpy.m4: New file.
38126
38127         Module memmove.
38128         * m4/memmove.m4: New file.
38129
38130         Module memset.
38131         * m4/memset.m4: New file.
38132
38133         Module strcspn.
38134         * m4/strcspn.m4: New file.
38135
38136         Module strpbrk.
38137         * m4/strpbrk.m4: New file.
38138
38139         Module strstr.
38140         * m4/strstr.m4: New file.
38141
38142         Module strerror.
38143         * m4/strerror.m4: New file.
38144
38145         Module mktime.
38146         * m4/mktime.m4: Renamed from jm-mktime.m4.
38147         (gl_PREREQ_MKTIME): New macro.
38148         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
38149
38150         Module malloc.
38151         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
38152         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
38153         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
38154
38155         Module realloc.
38156         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38157         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38158         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38159
38160         Module strftime.
38161         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38162         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38163         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38164         gl_TM_GMTOFF.
38165         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38166
38167         Module xalloc.
38168         * m4/xalloc.m4: New file.
38169
38170         Module alloca.
38171         * m4/alloca.m4: New file.
38172
38173         Module putenv.
38174         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38175         (jm_FUNC_PUTENV): Invoke it.
38176
38177         Module setenv.
38178         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38179         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38180         when invoked twice.
38181         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38182         gt_FUNC_SETENV.
38183
38184         Module memrchr.
38185         * m4/memrchr.m4: New file.
38186
38187         Module stpcpy.
38188         * m4/stpcpy.m4: New file.
38189
38190         Module strcase.
38191         * m4/strcase.m4: New file.
38192
38193         Module strdup.
38194         * m4/strdup.m4: New file.
38195
38196         Module strnlen.
38197         * m4/strnlen.m4: New file.
38198
38199         Module strndup.
38200         * m4/strndup.m4: New file.
38201
38202         Module xstrtod.
38203         * m4/xstrtod.m4: New file.
38204
38205         Module xstrtol.
38206         * m4/xstrtol.m4: New file.
38207
38208         Module getdate.
38209         * m4/getdate.m4: New file.
38210
38211         Module unlocked-io.
38212         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38213         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38214         * m4/jm-glibc-io.m4n: Remove file.
38215
38216         Module long-options.
38217         * m4/long-options.m4: New file.
38218
38219         Module md5.
38220         * m4/md5.m4: New file.
38221
38222         Module sha.
38223         * m4/sha.m4: New file.
38224
38225         Module getstr.
38226         * m4/getstr.m4: New file.
38227
38228         Module getline.
38229         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38230         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38231         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38232         simply getline. Infoke gl_PREREQ_GETLINE.
38233
38234         Module obstack.
38235         * m4/obstack.m4: New file.
38236
38237         Module hash.
38238         * m4/hash.m4: New file.
38239
38240         Module readtokens.
38241         * m4/readtokens.m4: New file.
38242
38243         Module strverscmp.
38244         * m4/strverscmp.m4: New file.
38245
38246         Module stdbool.
38247         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38248         OSF/1.
38249
38250         Module strtoll.
38251         * m4/strtoll.m4: New file.
38252
38253         Module strtoull.
38254         * m4/strtoull.m4: New file.
38255
38256         Module strtoimax.
38257         * m4/strtoimax.m4: New file.
38258
38259         Module strtoumax.
38260         * m4/strtoumax.m4: New file.
38261
38262         Module xstrtoimax.
38263         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38264         jm_AC_PREREQ_XSTRTOIMAX.
38265         Moved the strtol prerequisites to strtol.m4.
38266         Moved the strtoll prerequisites to strtoll.m4.
38267         Moved the strtoimax prerequisites to strtoimax.m4.
38268
38269         Module xstrtoumax.
38270         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38271         jm_AC_PREREQ_XSTRTOUMAX.
38272         Moved the strtoul prerequisites to strtoul.m4.
38273         Moved the strtoull prerequisites to strtoull.m4.
38274         Moved the strtoumax prerequisites to strtoumax.m4.
38275
38276         Module chown.
38277         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38278         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38279
38280         Module dup2.
38281         * m4/dup2.m4: New file.
38282
38283         Module ftruncate.
38284         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38285         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38286
38287         Module getgroups.
38288         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38289         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38290
38291         Module gettimeofday.
38292         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38293         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38294         gl_PREREQ_GETTIMEOFDAY.
38295
38296         Module mkdir.
38297         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38298         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38299
38300         Module mkstemp.
38301         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38302         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38303         jm_AC_TYPE_UINTMAX_T.
38304         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38305
38306         Module stat.
38307         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38308         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38309
38310         Module lstat.
38311         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38312         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38313
38314         Module timespec.
38315         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38316         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38317         * m4/st_mtim.m4: Indentation.
38318
38319         Module nanosleep.
38320         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38321         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38322         gl_PREREQ_NANOSLEEP.
38323
38324         Module regex.
38325         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38326         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38327         (gl_REGEX): New macro.
38328
38329         Module rename.
38330         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38331         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38332
38333         Module rmdir.
38334         * m4/rmdir.m4: New file.
38335
38336         Module utime.
38337         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38338         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38339         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38340
38341         Module dirname.
38342         * m4/dirname.m4: New file.
38343
38344         Module getopt.
38345         * m4/getopt.m4: New file.
38346
38347         Module unistd-safer.
38348         * m4/unistd-safer.m4: New file.
38349
38350         Module fnmatch.
38351         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38352         declaration.
38353         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38354         (gl_FUNC_FNMATCH_POSIX): New macro.
38355         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38356         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38357         simply fnmatch.
38358
38359         Module exclude.
38360         * m4/exclude.m4: New file.
38361
38362         Module human.
38363         * m4/human.m4: New file.
38364
38365         Module acl.
38366         * m4/acl.m4: Nop.
38367
38368         Module backupfile.
38369         * m4/backupfile.m4: New file.
38370         * m4/d-ino.m4: Indentation.
38371
38372         Module fsusage.
38373         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38374         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38375         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38376
38377         Module dirfd.
38378         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38379         requirements.
38380
38381         Module euidaccess.
38382         * m4/euidaccess.m4: New file.
38383
38384         Module file-type.
38385         * m4/file-type.m4: New file.
38386
38387         Module fileblocks.
38388         * m4/fileblocks.m4: New file.
38389
38390         Module filemode.
38391         * m4/filemode.m4: New file.
38392
38393         Module isdir.
38394         * m4/isdir.m4: New file.
38395
38396         Module lchown.
38397         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38398         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38399
38400         Module makepath.
38401         * m4/makepath.m4: New file.
38402
38403         Module modechange.
38404         * m4/modechange.m4: New file.
38405
38406         Module mountlist.
38407         * m4/mountlist.m4: New file.
38408         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38409         Indentation.
38410
38411         Module path-concat.
38412         * m4/path-concat.m4: New file.
38413
38414         Module pathmax.
38415         * m4/pathmax.m4: New file.
38416
38417         Module same.
38418         * m4/same.m4: New file.
38419
38420         Module save-cwd.
38421         * m4/save-cwd.m4: New file.
38422
38423         Module savedir.
38424         * m4/savedir.m4: New file.
38425
38426         Module xgetcwd.
38427         * m4/xgetcwd.m4: New file.
38428         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38429
38430         Module xreadlink.
38431         * m4/xreadlink.m4: New file.
38432
38433         Module safe-read.
38434         * m4/safe-read.m4: New file.
38435
38436         Module safe-write.
38437         * m4/safe-write.m4: New file.
38438
38439         Module closeout.
38440         * m4/closeout.m4: New file.
38441
38442         Module stdio-safer.
38443         * m4/stdio-safer.m4: New file.
38444
38445         Module getpass.
38446         * m4/getpass.m4: New file.
38447
38448         Module getugroups.
38449         * m4/getugroups.m4: New file.
38450
38451         Module group-member.
38452         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38453         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38454
38455         Module idcache.
38456         * m4/idcache.m4: New file.
38457
38458         Module userspec.
38459         * m4/userspec.m4: New file.
38460
38461         Module gettime.
38462         * m4/clock_time.m4: New file.
38463         * m4/gettime.m4: New file.
38464
38465         Module settime.
38466         * m4/settime.m4: New file.
38467
38468         Module posixtm.
38469         * m4/posixtm.m4: New file.
38470
38471         Module gethostname.
38472         * m4/gethostname.m4: New file.
38473
38474         Module canon-host.
38475         * m4/canon-host.m4: New file.
38476
38477         Module gettext.
38478         * m4/codeset.m4: New file, from gettext-0.11.5.
38479         * m4/gettext.m4: New file, from gettext-0.11.5.
38480         * m4/glibc21.m4: New file, from gettext-0.11.5.
38481         * m4/iconv.m4: New file, from gettext-0.11.5.
38482         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38483         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38484         * m4/inttypes.m4: New file, from gettext-0.11.5.
38485         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38486         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38487         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38488         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38489         * m4/lib-link.m4: New file, from gettext-0.11.5.
38490         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38491         * m4/progtest.m4: New file, from gettext-0.11.5.
38492         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38493         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38494         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38495
38496         Module localcharset.
38497         * m4/localcharset.m4: New file.
38498
38499         Module hard-locale.
38500         * m4/hard-locale.m4: New file.
38501
38502         Module mbswidth.
38503         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38504         onceonly macros.
38505         * m4/mbrtowc.m4: Add comment.
38506
38507         Module memcasecmp.
38508         * m4/memcasecmp.m4: New file.
38509
38510         Module memcoll.
38511         * m4/memcoll.m4: New file.
38512
38513         Module unicodeio.
38514         * m4/unicodeio.m4: New file.
38515
38516         Module rpmatch.
38517         * m4/rpmatch.m4: New file.
38518
38519         Module yesno.
38520         * m4/yesno.m4: New file.
38521
38522         Module exitfail.
38523         * m4/exitfail.m4: New file.
38524
38525         Module c-stack.
38526         * m4/c-stack.m4 (gl_C_STACK): New macro.
38527         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38528
38529         Module error.
38530         * m4/error.m4 (gl_ERROR): New macro.
38531         (jm_PREREQ_ERROR): Use onceonly macros.
38532
38533         Module fatal.
38534         * m4/fatal.m4: New file.
38535
38536         Module getloadavg.
38537         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38538         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38539
38540         Module getpagesize.
38541         * m4/getpagesize.m4: New file.
38542
38543         Module getusershell.
38544         * m4/getusershell.m4: New file.
38545
38546         Module physmem.
38547         * m4/physmem.m4: New file.
38548
38549         Module posixver.
38550         * m4/posixver.m4: New file.
38551
38552         Module quotearg.
38553         * m4/quotearg.m4: New file.
38554
38555         Module quote.
38556         * m4/quote.m4: New file.
38557
38558         Module readutmp.
38559         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38560
38561         Module sig2str.
38562         * m4/sig2str.m4: New file.
38563
38564         Other.
38565         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38566         ulonglong.m4.
38567         * m4/intmax_t.m4: New file.
38568         * m4/d-type.m4: Indentation.
38569         * m4/jm-macros.m4: Update.
38570         * m4/prereq.m4 (jm_PREREQ): Update.
38571         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38572         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38573         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38574         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38575         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38576         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38577         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38578         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38579         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38580         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38581         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38582         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38583         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38584         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38585         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38586         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38587         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38588         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38589         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38590
38591 2002-12-24  Bruno Haible  <bruno@clisp.org>
38592
38593         * MODULES.txt: Update according to m4/ changes.
38594
38595         Module gettext.
38596         * config.rpath: New file, from gettext-0.11.5.
38597
38598         * modules/*: New module descriptions.
38599         * gnulib-tool: New file.
38600         * MODULES.html.sh: New file.
38601
38602 2002-12-21  Karl Berry  <karl@gnu.org>
38603
38604         * doc/fdl.texi: update to version 1.2.
38605
38606 2002-12-19  Karl Berry  <karl@gnu.org>
38607
38608         * config/config.guess: update from prep.
38609
38610 2002-12-18  Bruno Haible  <bruno@clisp.org>
38611
38612         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38613         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38614
38615 2002-12-17  Bruno Haible  <bruno@clisp.org>
38616
38617         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38618         stdlib.h, string.h.
38619
38620 2002-12-17  Bruno Haible  <bruno@clisp.org>
38621
38622         * lib/canon-host.c (strdup): Remove unused declaration.
38623
38624         * lib/fsusage.c: Include full_read.h.
38625         (get_fs_usage): Use full_read instead of safe_read.
38626
38627         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38628
38629 2002-12-12  Karl Berry  <karl@gnu.org>
38630
38631         * config/config.guess: update from prep.
38632
38633 2002-12-11  Bruno Haible  <bruno@clisp.org>
38634
38635         * m4/setenv.m4: New file, from gettext-0.11.5.
38636
38637 2002-12-11  Bruno Haible  <bruno@clisp.org>
38638
38639         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38640         not unsetenv().
38641         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38642         modifications:
38643
38644         2002-12-11  Bruno Haible  <bruno@clisp.org>
38645
38646                 * setenv.c (alloca): Fall back to malloc.
38647                 (freea): New macro.
38648                 (setenv): Use freea() to free memory allocated with alloca().
38649
38650         2002-11-13  Bruno Haible  <bruno@clisp.org>
38651
38652                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38653                 function declarations.
38654                 * unsetenv.c (unsetenv): Likewise.
38655
38656         2002-03-04  Bruno Haible  <bruno@clisp.org>
38657
38658                 Portability to AIX 4.3.3.
38659                 * unsetenv.c: New file, extracted from setenv.c.
38660                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38661
38662         2001-12-20  Bruno Haible  <bruno@clisp.org>
38663
38664                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38665                 use malloc instead. For SunOS 4.
38666
38667         2001-12-11  Bruno Haible  <bruno@clisp.org>
38668
38669                 * setenv.c: Declare alloca.
38670                 (compar_fn_t): New typedef.
38671                 (KNOWN_VALUE, STORE_VALUE): Use it.
38672
38673         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38674         setenv.h.
38675
38676 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38677
38678         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38679         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38680         Choose values that are less likely to collide with system fnmatch
38681         options.
38682         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38683         defined (e.g., a pure POSIX system).
38684         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38685         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38686
38687 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38688
38689         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38690         a pain in practice to deal with generated m4 files.  This change
38691         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38692
38693         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38694         and jm-glibc-io.m4, as they are no longer a special case.
38695         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38696         kludge and the auto-generation stuff.  Check only whether the
38697         functions are declared, not whether they exist, since older hosts
38698         that don't declare the functions can't use the optimization anyway.
38699
38700 2002-12-06  Jim Meyering  <jim@meyering.net>
38701
38702         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38703
38704         Merge in changes from libc's misc/error.c, in preparation
38705         for the merge of gnulib's changes back into libc.
38706
38707         * lib/error.c (_): Define only if not already defined.
38708         Move definition to follow all #include directives.
38709         Include unlocked-io.h only if !_LIBC.
38710         [_LIBC]: Include <libio/libioP.h>.
38711         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38712         (fflush): Tweak definition to use INTUSE.
38713         (putc): Define.
38714
38715 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38716
38717         * lib/alloca.c [defined emacs]: Include "lisp.h".
38718         (xalloc_die) [defined emacs]: New macro.
38719         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38720         [! defined emacs]: Include <xalloc.h>.
38721         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38722         (pointer): Typedef to POINTER_TYPE *.
38723         (malloc): Remove decl; we now always use xmalloc.
38724         (alloca): Use old-style definition, since Emacs needs this.
38725         Check for arithmetic overflow when computing combined size.
38726
38727 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38728
38729         Do not generate unlocked-io.h automatically, since it's easier to
38730         maintain it by hand.
38731
38732         * lib/unlocked-io.h: New file, from GNU diffutils,
38733         but with proper copyright notice and attribution.
38734         * lib/gen-uio: Remove.
38735         * lib/Makefile.am: Add copyright notice.
38736         (libfetish_a_SOURCES): Add unlocked-io.h.
38737         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38738         (DISTCLEANFILES, io_functions): Remove macros.
38739         (EXTRA_DIST): Remove gen_uio.
38740         (unlocked-io.h): Remove rule.
38741
38742 2002-12-04  Jim Meyering  <jim@meyering.net>
38743
38744         Reflect the fact that stat.c and lstat.c are no longer generated.
38745         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38746         (DISTCLEANFILES): Likewise.
38747         (EXTRA_DIST): Likewise.
38748         (all_local): Don't depend on stat.c or lstat.c.
38749         (stat.c, lstat.c): Remove rules.
38750         (EXTRA_DIST): Remove xstat.in.
38751
38752         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38753         * lib/stat.c: New file.  Contents mostly from xstat.in.
38754         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38755         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38756
38757         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38758         too.
38759         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38760
38761 2002-12-03  Jim Meyering  <jim@meyering.net>
38762
38763         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38764         but not semantics, to minimize the differences between these two files.
38765         (safe_read): Change comment to mention SAFE_READ_ERROR.
38766
38767         * lib/safe-read.c (IS_EINTR): Define.
38768         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38769
38770 2002-12-02  Jim Meyering  <jim@meyering.net>
38771
38772         * lib/safe-read.c (EINTR): Define.
38773         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38774         (INT_MAX): Provide fallback.
38775         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38776
38777         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38778
38779 2002-12-02  Bruno Haible  <bruno@clisp.org>
38780
38781         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38782         Define, taken from safe-read.c.
38783         (INT_MAX): Provide fallback.
38784         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38785         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38786
38787         * lib/safe-read.c (EINTR): Remove definition.
38788         (safe_read): Don't use EINTR if it is absent.
38789
38790 2002-12-01  Jim Meyering  <jim@meyering.net>
38791
38792         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38793         zero.
38794         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38795
38796 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38797
38798         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38799         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38800         with `if (! (value < limit)) abort ();', for readability.
38801
38802 2002-11-26  Karl Berry  <karl@gnu.org>
38803
38804         * lib/strdup.c: copy from libc again, with jim's ok.
38805         * lib/.cppi-disable: re-add strdup.c
38806
38807 2002-11-25  Karl Berry  <karl@gnu.org>
38808
38809         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38810         instead of "strtol.c".
38811
38812 2002-11-25  Karl Berry  <karl@gnu.org>
38813
38814         * config/install-sh: update from automake for variable quoting, $0 in
38815         error msgs, etc.
38816
38817         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38818         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38819         entry.
38820
38821 2002-11-25  Jim Meyering  <jim@meyering.net>
38822
38823         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38824
38825 2002-11-24  Karl Berry  <karl@gnu.org>
38826
38827         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38828         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38829
38830 2002-11-24  Jim Meyering  <jim@meyering.net>
38831
38832         Update from coreutils:
38833
38834         * lib/mktime.c: Merge in changes from libc.
38835
38836         Avoid a link-time failure on some Linux systems.
38837         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38838         (otherwise).
38839         (__mon_yday): Declare with the STATIC attribute.
38840         (__mktime_internal): Likewise.
38841         Based on a report from Greg Schafer.
38842
38843 2002-11-23  Jim Meyering  <jim@meyering.net>
38844
38845         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38846         Use `unsigned', not `int', as type of index.
38847
38848         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38849
38850         * lib/fsusage.c: Remove unneeded parentheses around operands of
38851         `defined'.
38852
38853 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38854
38855         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38856         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38857         so that we can be included first.
38858         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38859         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38860         No need to include stddef.h or sys/types.h any more.
38861         Surround local include files with "", not "<>".
38862         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38863         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38864         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38865         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38866         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38867         (ISPRINT): Remove; no longer needed now that we assume C89.
38868
38869         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38870         Preserve errno.
38871
38872         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38873         quotearg_char): Use SIZE_MAX rather than
38874         (size_t) -1 when we are talking about "infinity".
38875
38876         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38877
38878 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38879
38880         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38881         hint that one should use `if (! x) abort ();' rather than `assert
38882         (x);', and anyway it's one less thing to worry about configuring.
38883         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38884         hash_rehash, hash_insert): Use abort rather than assert.
38885
38886 2002-11-22  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/safe-read.h: Assume C89. Add comments.
38889         (safe_read): Change return type to size_t.
38890         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38891         byte counts > SSIZE_MAX correctly.
38892         * lib/safe-write.h: New file.
38893         * lib/safe-write.c: New file.
38894         * lib/full-read.h: New file.
38895         * lib/full-read.c: New file.
38896         * lib/full-write.h: Assume C89. Add comments.
38897         * lib/full-write.c: Include safe-write.h.
38898         (full_write): Rewritten to use safe_write.
38899         Suggested by Jim Meyering and Paul Eggert.
38900
38901 2002-11-21  Jim Meyering  <jim@meyering.net>
38902
38903         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38904
38905         Merge in changes from the coreutils.
38906
38907         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38908         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38909         <stdint.h>.
38910         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38911         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38912         int.  Work more efficiently if X is the same width as uintmax_t.
38913         Do not compare X to -1, to avoid bogus compiler warning.
38914         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38915         Don't assume that f_frsize and f_bsize are the same type.
38916
38917         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38918         warning on FreeBSD.
38919
38920         * lib/makepath.c (make_path): Restore umask *before* creating the final
38921         component.
38922         (make_path): Minor reformatting.
38923
38924         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38925         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38926         HAVE_MALLOC/HAVE_REALLOC.
38927
38928         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38929         dummy ones.  At least on GNU/Linux systems, `auto' means something
38930         else.
38931         From Michael Stone.
38932
38933 2002-11-21  Bruno Haible  <bruno@clisp.org>
38934
38935         Remove case insensitive option matching.
38936         * lib/argmatch.h (argcasematch): Remove declaration.
38937         (ARGCASEMATCH): Remove macro.
38938         (__xargmatch_internal): Remove case_sensitive argument.
38939         (XARGMATCH): Update.
38940         (XARGCASEMATCH): Remove macro.
38941         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38942         case_sensitive argument.
38943         (argcasematch): Remove function.
38944         (__xargmatch_internal): Remove case_sensitive argument.
38945         (main): Use XARGMATCH instead of XARGCASEMATCH.
38946
38947         * lib/xmalloc.c: Change compile-time error message. Add comment about
38948         required autoconf version.
38949
38950 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38951
38952         Merge argmatch cleanups from Bison.  Assume C89.
38953
38954         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38955         Include stdlib.h, for EXIT_FAILURE.
38956         Always include <string.h>, since we assume C89.
38957         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38958         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38959         Include <stddef.h> instead, since it's all we need for size_t.
38960         (PARAMS): Remove.  All uses removed.
38961         (ARRAY_CARDINALITY): Do not bother to #undef.
38962         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38963         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38964         Remove unnecessary parentheses.
38965         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38966         Insert necessary parentheses.
38967         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38968         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38969
38970 2002-11-19  Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38973         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38974
38975         * lib/mbswidth.h (PARAMS): Remove macro.
38976         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38977         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38978
38979         * lib/gcd.h (PARAMS): Remove macro.
38980         (gcd): Use ANSI C function declarations.
38981         * lib/gcd.c (gcd): Likewise.
38982
38983 2002-11-15  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/strcspn.c: Include <stddef.h>.
38986         (strcspn): Use ANSI C function declaration. Change return type to
38987         size_t. Use NULL.
38988         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38989         (strpbrk): Use NULL.
38990         * lib/strpbrk.h (PARAMS): Remove macro.
38991         (strpbrk): Use ANSI C function declaration.
38992         * lib/strstr.c: Don't include <sys/types.h>.
38993         * lib/strstr.h (PARAMS): Remove macro.
38994         (strstr): Use ANSI C function declarations.
38995
38996 2002-11-14  Karl Berry  <karl@gnu.org>
38997
38998         * config/mkinstalldirs: `do' on separate line, instead of
38999         `for var; do'.
39000
39001 2002-11-06  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
39004         * lib/gcd.c (gcd): Likewise.
39005
39006 2002-11-05  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/gcd.h: New file, from gettext-0.11.5.
39009         * lib/gcd.c: New file, from gettext-0.11.5.
39010
39011 2002-11-05  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39014         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39015         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39016         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
39017
39018         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
39019         <libintl.h>.
39020         * lib/makepath.c: Include gettext.h instead of <locale.h> and
39021         <libintl.h>.
39022
39023         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
39024         * lib/human.c: Include gettext.h instead of <libintl.h>.
39025         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
39026         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
39027         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
39028         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
39029         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
39030         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
39031         (textdomain): Remove definition.
39032         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
39033
39034         * lib/long-options.c: Remove include of <libintl.h> and definition of
39035         _.
39036         * lib/same.c: Remove include of <libintl.h> and definition of _.
39037
39038 2002-11-04  Owen Taylor  <otaylor@redhat.com>
39039
39040         * lib/config.charset: A few additions for Solaris.
39041
39042 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39043
39044         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
39045         * lib/localcharset.c (locale_charset): Declare as extern "C".
39046
39047 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
39048
39049         * lib/config.charset: msdos in uk_UA uses CP1125.
39050
39051 2002-11-04  Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
39054         * lib/strcase.h: New file, from GNU gettext-0.11.5.
39055         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
39056         * lib/strstr.h: New file, from GNU gettext-0.11.5.
39057         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
39058
39059 2002-11-04  Bruno Haible  <bruno@clisp.org>
39060
39061         * lib/localcharset.c (locale_charset): Don't return an empty string.
39062
39063 2002-11-04  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
39066         aliases.
39067
39068 2002-11-04  Bruno Haible  <bruno@clisp.org>
39069
39070         * lib/config.charset: Update for newest glibc. Add canonical names
39071         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
39072
39073 2002-11-04  Bruno Haible  <bruno@clisp.org>
39074
39075         * lib/config.charset: Add support for NetBSD.
39076
39077 2002-11-04  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
39080
39081 2002-11-01  Bruno Haible  <bruno@clisp.org>
39082
39083         * configure.in: Add AC_CONFIG_AUX_DIR call.
39084         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
39085         test/Makefile.
39086         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
39087
39088 2002-09-28  Karl Berry  <karl@gnu.org>
39089
39090         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
39091         installed automake until the next release, since changes have been
39092         made.
39093
39094 2002-09-25  Karl Berry  <karl@gnu.org>
39095
39096         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
39097         * lib/getopt*: copy from libc/posix.
39098         * lib/gettext.h: copy from gettext.
39099         * lib/.cppi-disable: add strdup.c, gettext.h.
39100
39101 2002-09-25  Karl Berry  <karl@gnu.org>
39102
39103         * config/srclist.txt: enable gettext.h check.
39104         * config/config.{guess,sub}: update from prep.
39105         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
39106                 from automake 1.6.3.
39107         See srclist*.
39108
39109 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
39110
39111         * regex.c (PATFETCH): Remove the translating fetch.
39112         (PATFETCH_RAW): Rename to PATFETCH.
39113         (set_image_of_range): New fun.
39114         (SET_RANGE_TABLE_WORK_AREA): Use it.
39115         (regex_compile): Don't translate the pattern chars so eagerly.
39116         Only do it when inserting an `exactn' bytecode or when handling
39117         a char-range.
39118         (mutually_exclusive_p): Avoid empty statement.
39119
39120 2002-07-06  Jim Meyering  <meyering@lucent.com>
39121
39122         * m4/README: Don't mention Makefile.am.in.
39123         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
39124
39125 2002-07-01  Jim Meyering  <meyering@lucent.com>
39126
39127         * lib/c-stack.c: Include sys/time.h.
39128         From Volker Borchert.
39129
39130 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39131
39132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
39133
39134 2002-06-26  Paul Eggert  <eggert@twinsun.com>
39135
39136         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
39137         New macro.  Use it uniformly instead of
39138         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
39139         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
39140         reported by Vin Shelton.
39141
39142 2002-06-22  Paul Eggert  <eggert@twinsun.com>
39143
39144         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
39145         Do not assume SA_SIGINFO behavior.
39146         Bug reported by Jim Meyering on NetBSD 1.5.2.
39147
39148 2002-06-22  Jim Meyering  <meyering@lucent.com>
39149
39150         * m4/c-stack.m4: New file, from diffutils-2.8.2.
39151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
39152
39153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
39154         now that configure.ac uses AC_GNU_SOURCE.
39155         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39156         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39157
39158         Update to latest tools.  Suggestions from Paul Eggert.
39159         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39160         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39161         * m4/fnmatch.m4: Likewise.
39162         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39163         to AC_HEADER_STDBOOL
39164
39165 2002-06-22  Jim Meyering  <meyering@lucent.com>
39166
39167         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39168         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39169
39170 2002-06-22  Jim Meyering  <meyering@lucent.com>
39171
39172         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39173
39174         * lib/exitfail.c, exitfail.h: Likewise.
39175         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39176
39177         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39178         of fnmatch.h.
39179         (EXTRA_DIST): Add fnmatch_loop.c.
39180         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39181
39182         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39183         * lib/fnmatch.c: Update from diffutils-2.8.2.
39184         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39185         * lib/fnmatch.h: Remove file.
39186
39187 2002-06-21  Jim Meyering  <meyering@lucent.com>
39188
39189         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39190         * m4/mbrtowc.m4: Likewise.
39191
39192         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39193         * m4/mbswidth.m4: Reflect name change:
39194         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39195         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39196
39197         * m4/lib-link.m4: Update from gettext-0.11.2.
39198         * m4/gettext.m4: Likewise.
39199
39200         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39201         From Alfred M. Szmidt.
39202
39203 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39204
39205         * lib/file-type.h: Report an error if neither S_ISREG nor
39206         S_IFREG is defined, instead of using a test specific to glibc
39207         2.2.  This should be safe, since POSIX requires S_ISREG and
39208         Unix Version 7 had S_IFREG.  We don't need to check for
39209         <sys/types.h> since we don't use any symbols that it defines.
39210
39211 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39212
39213         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39214         $@-t, so that each temporary file name is unique and valid in the first
39215         8 characters, for operation under DOS.
39216
39217 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39218
39219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39220
39221 2002-06-15  Jim Meyering  <meyering@lucent.com>
39222
39223         Work even with DJGPP 2.03, which lacks support for symlinks.
39224         From Richard Dawe.
39225         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39226         is defined.
39227         * lib/lchown.c (S_ISLNK): Likewise.
39228
39229 2002-06-15  Jim Meyering  <meyering@lucent.com>
39230
39231         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39232         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39233         have been included before this file.
39234
39235 2002-06-14  Jim Meyering  <meyering@lucent.com>
39236
39237         * lib/file-type.h: Use the version from diffutils-2.8.2.
39238         * lib/file-type.c: Likewise.
39239
39240 2002-06-07  Jim Meyering  <meyering@lucent.com>
39241
39242         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39243         They're needed at least for NetBSD 1.5.2.
39244         ($statxfs_includes): Include those same headers.
39245         ($statxfs_includes): Include sys/vfs.h if available.
39246         ($statxfs_includes): Likewise for sys/statvfs.h.
39247         Check for the following members in both structs statfs and statvfs:
39248         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39249
39250 2002-06-01  Jim Meyering  <meyering@lucent.com>
39251
39252         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39253         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39254
39255 2002-05-28  Jim Meyering  <meyering@lucent.com>
39256
39257         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39258         Reported by Volker Borchert.
39259
39260 2002-05-27  Jim Meyering  <meyering@lucent.com>
39261
39262         Fix a problem seen only on nonconforming systems whereby ls.c's
39263         use of localtime, and then of gettimeofday would cause trouble:
39264         the localtime call used to initialize rpl_gettimeofday's save
39265         mechanism would clobber ls's current local time information so
39266         that in any long listing the first file would always be listed
39267         with date 1970-01-01.  Analysis by Volker Borchert.
39268
39269         * lib/gettimeofday.c (localtime): Undefine.
39270         (rpl_localtime): New function.
39271
39272 2002-05-27  Jim Meyering  <meyering@lucent.com>
39273
39274         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39275         localtime.
39276
39277         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39278         use the replacement function; it wouldn't resolve at link time.
39279         Reported by Volker Borchert.
39280
39281 2002-05-22  Jim Meyering  <meyering@lucent.com>
39282
39283         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39284         file-type.h.
39285         * lib/file-type.h: New file.
39286         * lib/file-type.c (file_type): New file/function.  Extracted from
39287         diffutils.
39288
39289 2002-04-30  Jim Meyering  <meyering@lucent.com>
39290
39291         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39292
39293 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39294
39295         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39296
39297 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39298
39299         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39300         Do not check for alloca.h (no longer used) or stdbool.h (was never
39301         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39302
39303 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39304
39305         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39306
39307 2002-04-29  Jim Meyering  <meyering@lucent.com>
39308
39309         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39310         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39311         Use AC_FUNC_STRNLEN here instead.
39312
39313         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39314         With autoconf-2.53a, it's part of AC_PROG_CC.
39315
39316 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39317
39318         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39319         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39320
39321 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39322
39323         * lib/sig2str.h, lib/sig2str.c: New files.
39324         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39325
39326 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39327
39328         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39329         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39330         of 127, since 64 is the largest conceivable number for ancient
39331         nonstandard hosts.
39332         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39333
39334 2002-04-28  Jim Meyering  <meyering@lucent.com>
39335
39336         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39337
39338 2002-04-24  Jim Meyering  <meyering@lucent.com>
39339
39340         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39341         (jm_PREREQ): Use it.
39342
39343         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39344         mach/mach.h fcntl.h.
39345         Check for this function: setlocale.
39346
39347 2002-04-24  Jim Meyering  <meyering@lucent.com>
39348
39349         * lib/gettext.h: New file, from Gettext.
39350         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39351         (libfetish_a_SOURCES): Add gettext.h.
39352
39353 2002-04-16  Jim Meyering  <meyering@lucent.com>
39354
39355         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39356         ut_pid, ut_id, ut_exit.
39357
39358 2002-04-16  Jim Meyering  <meyering@lucent.com>
39359
39360         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39361         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39362         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39363
39364 2002-04-12  Jim Meyering  <meyering@lucent.com>
39365
39366         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39367         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39368         existence of the getmntinfo function.  Needed for Darwin 5.3.
39369
39370         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39371         This is necessary at least on Darwin 5.3.
39372
39373         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39374         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39375         strnlen.o in the library, and that makes some versions of ranlib
39376         object.
39377
39378 2002-04-12  Jim Meyering  <meyering@lucent.com>
39379
39380         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39381
39382 2002-04-09  Jim Meyering  <meyering@lucent.com>
39383
39384         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39385         to be more precise.  Rather than saying we're checking whether the
39386         function `works', say what we're testing.
39387         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39388         Reported by Bruno Haible.
39389
39390 2002-03-10  Jim Meyering  <meyering@lucent.com>
39391
39392         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39393         Suggestion from Santiago Vila.
39394
39395 2002-03-08  Jim Meyering  <meyering@lucent.com>
39396
39397         * lib/rename.c: Mention that this wrapper is needed also on
39398         mips-dec-ultrix4.4 systems.
39399
39400 2002-03-02  Jim Meyering  <meyering@lucent.com>
39401
39402         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39403         not HAVE_CLOCK_SETTIME.
39404
39405 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39406
39407         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39408         Check for clock_settime.
39409
39410 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39411
39412         * lib/nanosleep.h: Rename to....
39413         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39414
39415         * lib/gettime.c: New file.
39416         * lib/settime.c: New file.
39417         * lib/stime.c: Remove.
39418
39419         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39420         timespec.h.  Remove nanosleep.h.
39421
39422 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39423
39424         * m4/acl.m4: New file.
39425         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39426         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39427
39428 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39429
39430         * lib/acl.c, lib/acl.h: New files.
39431         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39432
39433 2002-02-24  Jim Meyering  <meyering@lucent.com>
39434
39435         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39436         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39437         cause trouble.  Reported by Nelson Beebe.
39438
39439 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39440
39441         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39442         compilers that don't know that xalloc_die never returns.
39443
39444 2002-02-20  Jim Meyering  <meyering@lucent.com>
39445
39446         * lib/getdate.c: Regenerate using bison-1.33.
39447
39448 2002-02-17  Jim Meyering  <meyering@lucent.com>
39449
39450         * config/config.guess (main): Don't use `head -1'; it's no longer
39451         portable. Use `sed 1q' instead.
39452
39453 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39454
39455         * m4/codeset.m4: Upgrade to gettext-0.11.
39456         * m4/gettext.m4: Upgrade to gettext-0.11.
39457         * m4/glibc21.m4: Upgrade to gettext-0.11.
39458         * m4/iconv.m4: Upgrade to gettext-0.11.
39459         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39460         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39461         * m4/lib-ld.m4: New file, from gettext-0.11.
39462         * m4/lib-link.m4: New file, from gettext-0.11.
39463         * m4/lib-prefix.m4: New file, from gettext-0.11.
39464         * m4/progtest.m4: Upgrade to gettext-0.11.
39465
39466 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39467
39468         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39469         (jm_PREREQ): Use it.
39470
39471 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39472
39473         * lib/posixver.c, lib/posixver.h: New files.
39474         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39475
39476 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39477             Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39480         (fwrite_success_callback): New declaration.
39481         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39482         print_unicode_char. Call failure callback instead of error.
39483         (fwrite_success_callback): New function.
39484         (exit_failure_callback): New function.
39485         (fallback_failure_callback): New function.
39486         (print_unicode_char): Call unicode_to_mb.
39487
39488 2002-01-26  Jim Meyering  <meyering@lucent.com>
39489
39490         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39491         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39492
39493 2002-01-26  Jim Meyering  <meyering@lucent.com>
39494
39495         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39496
39497 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39498
39499         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39500
39501 2002-01-22  Jim Meyering  <meyering@lucent.com>
39502
39503         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39504         Otherwise, some versions of automake would omit the rule that makes
39505         Makefile from Makefile.in.
39506
39507 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39508
39509         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39510         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39511         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39512         (memcoll): Set errno to zero if there is no error.
39513
39514         * lib/quotearg.c (quotearg_buffer_restyled):
39515         Fix bug with quoting buffers containing NUL when backslashing escapes.
39516         This bug was exposed by the other changes in this patch.
39517         (quotearg_n_options): New arg ARGSIZE.
39518         All callers changed.
39519         (quoting_options_from_style): New function.
39520         (quotearg_n_style): Use it.
39521         (quotearg_n_style_mem): New function.
39522
39523         * lib/quotearg.h (quotearg_n_style_mem): New function.
39524
39525 2002-01-19  Jim Meyering  <meyering@lucent.com>
39526
39527         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39528         Remove useless quotes: DF_PROG="df".
39529         * m4/strnlen.m4: New file.
39530
39531 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39532
39533         * lib/backupfile.c (ISDIGIT): Comment fix.
39534         * lib/getdate.y (ISDIGIT): Likewise.
39535         * lib/posixtm.c (ISDIGIT, year): Likewise.
39536         * lib/strverscmp.c (ISDIGIT): Likewise.
39537         * lib/userspec.c (ISDIGIT): Likewise.
39538
39539 2002-01-16  Jim Meyering  <meyering@lucent.com>
39540
39541         * lib/getdate.y: Add three semicolons, each just before a closing
39542         brace. Bison (as of version 1.31) no longer papers over that mistake.
39543
39544 2002-01-05  Jim Meyering  <meyering@lucent.com>
39545
39546         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39547
39548 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39549
39550         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39551         not silently exit merely because the output buffer happens to
39552         have nothing pending.
39553
39554 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39555
39556         See the big note in ../ChangeLog.
39557         * lib/human.c (suffixes): Prefer K to k for 1024.
39558         (generate_suffix_backwards): New function.
39559         (human_readable_inexact): Use it.
39560         * lib/xstrtol.c (__xstrtol): If there is no number but there
39561         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39562         Accept 'K' as well as 'k'.
39563
39564 2001-12-15  Jim Meyering  <meyering@lucent.com>
39565
39566         * lib/regex.h (__restrict_arr): Update from libc.
39567
39568         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39569         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39570         (STREQ): Define.
39571
39572 2001-12-14  Jim Meyering  <meyering@lucent.com>
39573
39574         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39575         Suggestion from Bruno Haible.
39576
39577 2001-12-10  Jim Meyering  <meyering@lucent.com>
39578
39579         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39580         xrealloc, Instead, include "xalloc.h".
39581         (initbuffer): Don't cast xmalloc return value to char*.
39582         (readline): Reword comment.
39583         Don't cast xrealloc return value to char*
39584         Return NULL, not 0.
39585
39586 2001-12-09  Jim Meyering  <meyering@lucent.com>
39587
39588         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39589         about `signed and unsigned type in conditional expression'.
39590         * lib/posixtm.c (posix_time_parse): Likewise.
39591
39592         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39593
39594         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39595         to avoid a pedantic warning.
39596
39597         * lib/getstr.c: Don't include assert.h.
39598         (getstr): Remove warning-evoking assertions.
39599         Return -1 if offset parameter is out of bounds.
39600         Change the type of a local from int to size_t.
39601
39602         * lib/strftime.c (my_strftime_localtime_r): Include this function
39603         definition in the `#if ! HAVE_TM_GMTOFF' block.
39604
39605         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39606         Include xalloc.h instead.
39607
39608 2001-12-02  Jim Meyering  <meyering@lucent.com>
39609
39610         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39611         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39612         included.
39613
39614         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39615         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39616
39617 2001-11-30  Akim Demaille  <akim@epita.fr>
39618
39619         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39620         before being defined.
39621
39622 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39623
39624         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39625         First arg is int, not unsigned.
39626         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39627         (SIZE_MAX, UINT_MAX): New macros.
39628         (quotearg_n_options): Abort if N is negative.
39629         Avoid overflow check on hosts where size_t is 64 bits and int
39630         is 32 bits, as overflow is impossible there.
39631         Fix off-by-one typo that caused unnecessary reallocation.
39632
39633 2001-11-27  Jim Meyering  <meyering@lucent.com>
39634
39635         * lib/tempname.c: Merge with version from libc.
39636         * lib/regex.c: Likewise.
39637
39638         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39639         systems for which STDC_HEADERS is 0, it was not included, resulting in
39640         a warning about an integer-to-pointer conversion problem with getenv.
39641         Reported by Volker Borchert.
39642
39643 2001-11-26  Jim Meyering  <meyering@lucent.com>
39644
39645         * lib/gtod.h: Remove file.
39646         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39647         * lib/gettimeofday.c: Don't include gtod.h.
39648         (GTOD_init): Remove function.
39649         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39650         Suggestion from Volker Borchert.
39651
39652 2001-11-23  Jim Meyering  <meyering@lucent.com>
39653
39654         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39655         it.
39656         * lib/hash.c (struct hash_table): Define it here instead.
39657
39658 2001-11-22  Jim Meyering  <meyering@lucent.com>
39659
39660         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39661
39662 2001-11-20  Jim Meyering  <meyering@lucent.com>
39663
39664         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39665         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39666
39667 2001-11-19  Jim Meyering  <meyering@lucent.com>
39668
39669         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39670         directory.  Use "conftestXXXXXX" as the template.
39671         Suggestion from Paul Eggert.
39672
39673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39674         immediately, so the test doesn't mistakenly hit the max-open-files
39675         limit.
39676
39677 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39678
39679         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39680         (TEMPORARIES): New macro.
39681         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39682         removes an artificial limitation (e.g. HP-UX 10.20, where
39683         TMP_MAX is 17576).
39684
39685 2001-11-18  Jim Meyering  <meyering@lucent.com>
39686
39687         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39688
39689 2001-11-18  Jim Meyering  <meyering@lucent.com>
39690
39691         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39692         on SunOS 4.
39693
39694         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39695         files will be created before anything else.
39696
39697 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39698
39699         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39700         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39701
39702 2001-11-17  Jim Meyering  <meyering@lucent.com>
39703
39704         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39705         Prompted by a report from Bob Proulx.
39706
39707         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39708         Instead, require UTILS_FUNC_MKSTEMP.
39709
39710 2001-11-17  Jim Meyering  <meyering@lucent.com>
39711
39712         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39713         Now, that's done as part of AC_FUNC_STRTOD.
39714
39715 2001-11-17  Jim Meyering  <meyering@lucent.com>
39716
39717         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39718         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39719         rather than group writable.  Patch by Juan F. Codagnone.
39720
39721         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39722         xrealloc, Instead, include "xalloc.h".
39723
39724         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39725         Remove explicit declarations of xmalloc, xrealloc,
39726         and xstrdup.  Instead, include "xalloc.h".
39727
39728         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39729         unlocked-io.h.
39730         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39731         Likewise.
39732         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39733
39734         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39735         Reported by Padraig Brady.
39736
39737         * lib/mkstemp.c: #undef mkstemp.
39738         Include config.h.
39739         (rpl_mkstemp): Rename from mkstemp.
39740         Protoize.
39741
39742 2001-11-16  Jim Meyering  <meyering@lucent.com>
39743
39744         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39745         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39746         determine the amount of total physical memory, use pstat_getstatic.
39747         HPUX-11 doesn't define _SC_PHYS_PAGES.
39748         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39749         If sysconf couldn't be used to determine the amount of available
39750         physical memory, use both pstat_getstatic and pstat_getdynamic.
39751         Based on a patch from Bob Proulx.
39752
39753 2001-11-10  Jim Meyering  <meyering@lucent.com>
39754
39755         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39756         (jm_PREREQ): Use it.
39757
39758 2001-11-09  Jim Meyering  <meyering@lucent.com>
39759
39760         * m4/jm-macros.m4: Require autoconf-2.52f.
39761         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39762         Use these AC_-prefixed names, not the AM_-prefixed ones.
39763
39764         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39765
39766 2001-11-05  Jim Meyering  <meyering@lucent.com>
39767
39768         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39769
39770 2001-11-04  Jim Meyering  <meyering@lucent.com>
39771
39772         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39773         $DEFS.
39774
39775 2001-11-03  Jim Meyering  <meyering@lucent.com>
39776
39777         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39778         of AC_DEFUN.
39779
39780         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39781         know the name of the variable in the macro definition.
39782
39783 2001-11-03  Jim Meyering  <meyering@lucent.com>
39784
39785         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39786         in argmatch_to_argument call.
39787
39788         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39789         argument.
39790
39791         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39792         e.g., a fault due to an attempt to free a NULL pointer.
39793
39794 2001-11-01  Jim Meyering  <meyering@lucent.com>
39795
39796         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39797         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39798
39799 2001-11-01  Jim Meyering  <meyering@lucent.com>
39800
39801         * lib/dirfd.c, lib/dirfd.h: New files.
39802         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39803
39804         * lib/hash.c (hash_print) [TESTING]: Clean up.
39805
39806 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39807
39808         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39809         to avoid a warning if -Wall.
39810
39811 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39812
39813         * README: New file
39814         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39815         (per RMS's instructions, this is now the canonical source)
39816         * lgpl/, gpl/: New directories.
39817
39818 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39819
39820         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39821
39822 2001-10-21  Jim Meyering  <meyering@lucent.com>
39823
39824         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39825         this code would end up calling gettext even in packages built
39826         with --disable-nls.
39827         * lib/getopt.c (_): Likewise.
39828         * lib/regex.c (_): Likewise.
39829
39830 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39831
39832         * m4/error.m4 (jm_PREREQ_ERROR):
39833         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39834         AC_FUNC_STRERROR_R does that.
39835         Check for strerror declaration.
39836
39837         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39838         are supposed to have them these days.
39839         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39840         Merge changes from latest Autoconf CVS.
39841         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39842         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39843         POSIX decided to standardize on the int flavor of strerror_r.
39844
39845 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39846
39847         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39848         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39849         Use strerror_r that is only a macro, even if it is not a function.
39850         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39851         (private_strerror): Use prototypes, not old-style function definition.
39852         (print_errno_message): New function.
39853         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39854         char*-flavored one.
39855         (error_tail, error, error_at_line): Use it.
39856
39857 2001-10-11  Jim Meyering  <meyering@lucent.com>
39858
39859         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39860         and quote_n (1, ... to avoid clobbering a buffer.
39861
39862 2001-10-05  Jim Meyering  <meyering@lucent.com>
39863
39864         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39865         hash-pjw.h.
39866         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39867         * lib/hash-pjw.h: New file.
39868
39869 2001-09-30  Jim Meyering  <meyering@lucent.com>
39870
39871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39872         `struct fsstat' has the `f_fstypename' member.
39873         Use that to define FS_TYPE, which is now used to make
39874         the getfsstat link test tighter.
39875
39876 2001-09-30  Jim Meyering  <meyering@lucent.com>
39877
39878         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39879         Include <sys/ucred.h>, for Apple Darwin.
39880         Include sys/mount.h and sys/fs_types.h only if available.
39881         (FS_TYPE): Define.
39882         (read_filesystem_list): Use FS_TYPE.
39883
39884 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39885
39886         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39887         a boolean context.
39888
39889 2001-09-29  Jim Meyering  <meyering@lucent.com>
39890
39891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39892         [one-argument getmntent function]): Include stdio.h before mntent.h.
39893         SunOS 4.1.x needs it for the declaration of `FILE'.
39894         Patch by Volker Borchert.
39895
39896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39897         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39898         sys/fs_types.h, and make the link-test for getfsstat guard #include
39899         directives with appropriate #if HAVE_*_H tests so that we can
39900         detect getfsstat on Apple Darwin1.3.7 systems.
39901         Reported by Nelson Beebe.
39902         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39903
39904 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39905
39906         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39907         #defines strtoimax.  Also treat the other strto* functions
39908         like strtoimax.
39909
39910         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39911         Check for strtoul and strtoumax,
39912         as those declarations are made even in the signed case.
39913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39914         Likewise, for strtol and strtoimax.
39915
39916 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39917
39918         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39919         #defines strtoimax.  Also treat the other strto* functions
39920         like strtoimax.
39921
39922         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39923         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39924         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39925
39926 2001-09-26  Jim Meyering  <meyering@lucent.com>
39927
39928         Most macros in unlocked-io.h had the wrong number of arguments.
39929         * lib/gen-uio: New script.
39930         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39931         * lib/unlocked-io.hin: Remove file.
39932         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39933         rather than trying to embed it here.
39934         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39935         Reported by Padraig Brady.
39936
39937 2001-09-25  Volker Borchert  <bt@teknon.de>
39938
39939         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39940         `result'.
39941
39942 2001-09-24  Jim Meyering  <meyering@lucent.com>
39943
39944         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39945
39946 2001-09-23  Jim Meyering  <meyering@lucent.com>
39947
39948         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39949         instead of the mere test for existence of mntent.h.  The latter
39950         would get a false-positive on AIX 3.4 systems.
39951         In the outer getmntent if-block, don't die if neither of the getmntent
39952         tests succeeds.  Instead, just fall through and continue with the
39953         remaining tests.
39954
39955 2001-09-23  Jim Meyering  <meyering@lucent.com>
39956
39957         * lib/mountlist.c: Remove useless parentheses in #if directives.
39958         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39959         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39960
39961 2001-09-22  Jim Meyering  <meyering@lucent.com>
39962
39963         * m4/gettext.m4: New file.  From gettext.
39964         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39965         * m4/progtest.m4: Likewise
39966         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39967         * m4/glibc21.m4: Likewise.
39968
39969         * m4/libintl.m4: Remove.  No longer used.
39970
39971 2001-09-22  Jim Meyering  <meyering@lucent.com>
39972
39973         * lib/localcharset.c: Update from latest gettext.
39974         * lib/config.charset: Likewise.
39975
39976 2001-09-20  Jim Meyering  <meyering@lucent.com>
39977
39978         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39979         strtoimax.
39980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39981         strtoumax.
39982
39983 2001-09-20  Jim Meyering  <meyering@lucent.com>
39984
39985         * lib/xstrtol.c (strtoimax): Guard declaration with
39986         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39987         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39988         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39989         (strtoumax): Likewise, for completeness (it wasn't necessary).
39990
39991 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39992
39993         * lib/strtoimax.c (HAVE_LONG_LONG):
39994         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39995         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39996         to work around bug in IBM C compiler.
39997
39998 2001-09-17  Jim Meyering  <meyering@lucent.com>
39999
40000         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
40001         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
40002         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
40003         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
40004         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
40005         whenever the right hand side need not be expanded by the shell.
40006
40007 2001-09-16  Paul Eggert  <eggert@twinsun.com>
40008
40009         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
40010         library.  It's not correct, as some older glibcs are buggy.
40011         fnmatch wasn't fixed until glibc 2.2.
40012
40013         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
40014         special shell magic here.
40015
40016 2001-09-16  Jim Meyering  <meyering@lucent.com>
40017
40018         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
40019         * m4/jm-macros.m4: Require it.
40020
40021 2001-09-16  Jim Meyering  <meyering@lucent.com>
40022
40023         * lib/mkdir.c: New file.
40024
40025 2001-09-15  Jim Meyering  <meyering@lucent.com>
40026
40027         * m4/jm-macros.m4: Check for help2man.
40028
40029 2001-09-11  Jim Meyering  <meyering@lucent.com>
40030
40031         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
40032         The body, by Paul Eggert, was moved here from configure.in.
40033         * m4/jm-macros.m4: Require UTILS_HOST_OS.
40034
40035 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40036
40037         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
40038         (jm_PREREQ): Use it.
40039
40040 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40041
40042         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
40043         Use ssize_t, not int, to store result of readlink.
40044         Check for ssize_t overflow as well as size_t overflow,
40045         as POSIX says the result of readlink is implementation-defined
40046         when ssize_t overflows.
40047         Remove unnecessary cast to char*.
40048         Use free+malloc instead of realloc, as the storage doesn't need
40049         to be preserved and it's clearer and can be more efficient that way.
40050         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
40051         * lib/xreadlink.h (xreadlink): Update prototype.
40052
40053 2001-09-04  Paul Eggert  <eggert@twinsun.com>
40054
40055         * lib/xgetcwd.c: Revert some of the previous change; intead,
40056         fix the HAVE_GETCWD_NULL code to behave more like the
40057         !HAVE_GETCWD_NULL code used to.
40058
40059         Include "xalloc.h".
40060         (xgetcwd): Do not return NULL when memory is exhausted; instead,
40061         invoke xalloc_die.
40062
40063 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40064
40065         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
40066         sys/param.h, as pathmax.h includes them.
40067
40068 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40069
40070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
40071         (jm_PREREQ_XGETCWD): New macro.
40072
40073         * m4/getcwd.m4: New file.
40074
40075 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40076
40077         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
40078         like the HAVE_GETCWD_NULL code.
40079         Include pathmax.h if not HAVE_GETCWD.
40080         Do not include xalloc.h.
40081         (INITIAL_BUFFER_SIZE): New symbol.
40082         Do not use xmalloc / xrealloc, since the caller is responsible for
40083         handling errors.  Preserve errno around `free' during failure.
40084         Do not overrun buffer when using getwd.
40085
40086 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40087
40088         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
40089         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
40090         getcwd (NULL, 0).
40091
40092 2001-09-03  Paul Eggert  <eggert@twinsun.com>
40093
40094         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
40095         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
40096         spotted by Jim Meyering.
40097
40098 2001-09-03  Jim Meyering  <meyering@lucent.com>
40099
40100         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
40101         failure.
40102
40103 2001-09-02  Jim Meyering  <meyering@lucent.com>
40104
40105         * lib/error.c: Update from GNU libc.
40106
40107 2001-09-01  Jim Meyering  <meyering@lucent.com>
40108
40109         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
40110         Used by df.
40111
40112 2001-09-01  Jim Meyering  <meyering@lucent.com>
40113
40114         * lib/xreadlink.c: New file.
40115         * lib/xreadlink.h: New file.
40116         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
40117         xreadlink.h.
40118
40119         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
40120         doesn't conflict with sparc Solaris 7's definition in
40121         /usr/include/sys/int_types.h.
40122
40123         * lib/exclude.c: Use `""', not `<>' to #include non-system header
40124         files.
40125         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
40126         and strncasecmp as r-values.  Unixware didn't have declarations.
40127
40128 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40129
40130         * lib/xstrtol.h: Add copyright notice.
40131         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
40132         LONGINT_INVALID_SUFFIX_CHAR.
40133
40134 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40135
40136         * lib/xstrtol.c (strtoimax): New decl.
40137
40138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40139
40140         * lib/xgetcwd.c: Don't include pathmax.h.
40141         Include stdlib.h and unistd.h if available.
40142         Include xalloc.h.
40143         (xmalloc, xstrdup, free): Remove decls.
40144         (xgetcwd): Don't assume sizes fit in unsigned.
40145         Check for overflow when computing sizes.
40146         Simplify reallocation code.
40147
40148 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40149
40150         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
40151         a directory's st_size can have an arbitrary value, so the old
40152         usage could waste an arbitrary amount of memory.  All uses
40153         changed.
40154         * lib/savedir.h: Update prototype.
40155
40156 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40157
40158         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40159
40160         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40161         old strtoimax.c.
40162
40163         Also, make the following further changes to make this file's
40164         configuration more similar to that of strtol.c:
40165         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40166         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40167         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40168         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40169         changed to signed values.
40170
40171         And make the following changes as well:
40172         Fix copyright notice, as 1999 was missing.
40173         (verify): New macro.
40174         (strtoimax): Check sizes at compile-time, not run-time.
40175         Prefer strtol to strtoll if both work.
40176         (main): Remove; it was not that useful and was a pain to maintain.
40177
40178         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40179
40180 2001-08-31  Jim Meyering  <meyering@lucent.com>
40181
40182         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40183         Use an initial, malloc'd, buffer of length 128 rather than
40184         a statically allocated one of length 1024.
40185
40186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40187
40188         Simplify code, partly by assuming autoconf 2.52 semantics.
40189
40190         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40191
40192         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40193         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40194         All uses removed.
40195         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40196         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40197         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40198         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40199         jm_AC_HEADER_INTTYPES_H.
40200         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40201
40202         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40203
40204         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40205         Quote first arg of AC_DEFUN.
40206         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40207         since they are needed to parse the include file even if we need
40208         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40210         but with opposite signedness.
40211
40212 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40213
40214         Merge 'exclude' changes from tar 1.13.22.
40215         This fixes one or two unlikely storage allocation overflow bugs,
40216         but doesn't change user-visible behavior otherwise.
40217
40218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40219
40220         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40221         (jm_PREREQ_EXCLUDE): New macro.
40222
40223 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40224
40225         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40226         tm to be declared.
40227
40228 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40229
40230         * lib/hash.c: Remove '2001' from copyright notice.
40231
40232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40233
40234         * lib/full-write.h: New file.
40235         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40236         * lib/full-write.c: Correct credits, as cccp.c no longer
40237         exists and anyway it was so heavily changed from the old cccp
40238         code as to be unrecognizable.  Include full-write.h.
40239         (full_write) Return size_t, with short writes meaning failure.
40240         All callers changed.  This fixes a bug with large buffers
40241         on 64-bit hosts.
40242         * lib/utime.c: Include full-write.h.
40243
40244 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40245
40246         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40247         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40248         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40249         Include if available.
40250         (<xalloc.h>): Include
40251         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40252         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40253         collide with FNM macros.
40254         (struct patopts): New struct.
40255         (struct exclude): Use it, as exclude patterns now come with options.
40256         (new_exclude): Support above changes.
40257         (new_exclude, add_exclude_file):
40258         Initial size must now be a power of two to simplify overflow checking.
40259         (free_exclude, fnmatch_no_wildcards): New function.
40260         (excluded_filename): No longer requires options arg, as the options
40261         are determined by add_exclude.  Now returns bool, not int.
40262         (excluded_filename, add_exclude):
40263         Add support for the fancy new exclusion options.
40264         (add_exclude, add_exclude_file): Now takes int options arg.
40265         Check for arithmetic overflow when computing sizes.
40266         (add_exclude_file): xrealloc might modify errno, so don't
40267         realloc until after errno might be used.
40268
40269         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40270         New macros.
40271         (free_exclude): New decl.
40272         (add_exclude, add_exclude_file): Now takes int options arg.
40273         (excluded_filename): No longer requires options arg, as the options
40274         are determined by add_exclude.  Now returns bool, not int.
40275
40276 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40277
40278         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40279
40280 2001-08-27  Jim Meyering  <meyering@lucent.com>
40281
40282         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40283
40284         * lib/version-etc.c (N_): Remove definition.
40285         Revert most of last change.
40286         Instead, simply don't mark the `Copyright...' string for translation.
40287         Based on advice from Paul Eggert.
40288
40289         * lib/strtoxmax.c: Tweak comment.
40290
40291 2001-08-26  Jim Meyering  <meyering@lucent.com>
40292
40293         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40294
40295         * m4/xstrtoimax.m4: New file.
40296         * m4/xstrtoumax.m4: Add comments explaining why we
40297         AC_REPLACE_FUNCS(strtol).
40298
40299 2001-08-26  Jim Meyering  <meyering@lucent.com>
40300
40301         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40302         of copyright with `%s' so translators don't get an untranslated
40303         message in 2002.
40304         (COPYRIGHT_YEAR): Define.
40305         (version_etc): Use fprintf rather than fputs.
40306         Suggestion from Ulrich Drepper.
40307
40308         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40309
40310         * lib/strtoll.c: New file, from GNU libc.
40311         * lib/xstrtoimax.c: New file.
40312
40313         * lib/xstrtol.h: Add xstrtoimax.
40314         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40315         * lib/strtoimax.c: New file.  Likewise, but first define
40316         STRTOUXMAX_SIGNED.
40317
40318         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40319         ...
40320         * lib/strtoxmax.c: ... then renamed to this.
40321
40322 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40323
40324         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40325         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40326         (jm_AC_TYPE_INTMAX_T): New macro.
40327         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40328
40329         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40330
40331         * m4/longlong.m4: Renamed from ulonglong.m4.
40332         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40333         * m4/uintmax_t.m4: Removed.
40334
40335 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40336
40337         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40338         Port to Solaris 8, where 'sed' requires a space after the 'r'
40339         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40340         Redirect output to $tmp just once.
40341
40342 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40343
40344         * lib/addext.c (<errno.h>): Include.
40345         (errno): Declare if not defined.
40346         (addext): Work correctly when pathconf returns -1 and leaves
40347         errno alone because there is no limit.  Also, work even if
40348         pathconf returns a value greater than SIZE_MAX.
40349
40350 2001-08-12  Jim Meyering  <meyering@lucent.com>
40351
40352         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40353         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40354         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40355         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40356         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40357         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40358         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40359         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40360         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40361         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40362         utime.m4, utimes.m4, xstrtoumax.m4:
40363         Quote the first argument in each use of AC_DEFUN.
40364
40365 2001-08-12  Jim Meyering  <meyering@lucent.com>
40366
40367         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40368         Simply `return getcwd (NULL, 0);'.
40369         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40370         Use 1300 as initial value for length, not PATH_MAX.
40371
40372         * lib/pathmax.h: Clean up cpp syntax.
40373
40374 2001-08-12  Jim Meyering  <meyering@lucent.com>
40375
40376         * lib/gettimeofday.c: New file.
40377         * lib/gtod.h: New file.
40378         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40379
40380 2001-08-05  Jim Meyering  <meyering@lucent.com>
40381
40382         * m4/jm-macros.m4: Require autoconf-2.52.
40383
40384 2001-08-04  Jim Meyering  <meyering@lucent.com>
40385
40386         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40387         stmt, to get in sync with glibc.
40388
40389 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40390
40391         The following changes are from gettext 0.10.39 as maintained by
40392         Bruno Haible.
40393
40394         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40395         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40396         with inverted sense.  All uses changed.
40397
40398         * lib/mbswidth.c: Don't include <limits.h>.
40399         Include <stdlib.h> and <string.h> unconditionally.
40400         (iswcntrl, mbsinit, ISCNTRL): New macros.
40401         (mbsnwidth): Use K&R style function declarations.
40402         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40403         can optimize it when MB_CUR_MAX == 1.
40404         The width of control characters is zero, not 1.
40405
40406 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40407
40408         The following changes are from gettext 0.10.39 as maintained by
40409         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40410
40411         * m4/codeset.m4: Upgrade to serial AM1.
40412         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40413         all uses changed.  Quote first arg of AC_DEFUN.
40414         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40415
40416         * m4/iconv.m4: Upgrade to serial AM2.
40417         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40418         Add --with-libconv-prefix.
40419         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40420         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40421         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40422         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40423         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40424
40425         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40426         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40427         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40428         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40429         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40430         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40431         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40432         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40433         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40434
40435         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40436         string.h any more.
40437
40438         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40439         not the default value.
40440
40441         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40442         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40443         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40444         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40445         Also check for iswcntrl, used for wcwidth fallback.
40446         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40447         to Autoconf 2.13.
40448
40449 2001-08-03  Jim Meyering  <meyering@lucent.com>
40450
40451         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40452         as it was in the original.  Reported by Paul Eggert.
40453
40454 2001-07-16  Jim Meyering  <meyering@lucent.com>
40455
40456         * m4/gettimeofday.m4: New file.
40457         Prompted by a report from Bernhard Baehr.
40458
40459 2001-07-15  Jim Meyering  <meyering@lucent.com>
40460
40461         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40462         stuff. Now it's in ../Makefile.cfg.
40463
40464 2001-07-15  Jim Meyering  <meyering@lucent.com>
40465
40466         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40467         (BUILT_SOURCES): Add unlocked-io.h.
40468         (io_functions): Define.
40469         (unlocked-io.h): New rule.
40470         (DISTCLEANFILES): Add unlocked-io.h.
40471         (all-local): Depend on unlocked-io.h, to ensure it is created.
40472
40473         * lib/unlocked-io.hin: New file
40474
40475         * lib/regex.c: Update from glibc.
40476
40477 2001-07-05  Jim Meyering  <meyering@lucent.com>
40478
40479         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40480         recommendation.
40481         (libfetish_a_SOURCES): Put all .h files here instead.
40482         Remove a thus-exposed (better checks in automake) duplicate and
40483         two unnecessary .h files.
40484
40485 2001-07-04  Jim Meyering  <meyering@lucent.com>
40486
40487         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40488         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40489         distcheck failure.
40490
40491 2001-07-02  Jim Meyering  <meyering@lucent.com>
40492
40493         The following changes were prompted by suggestions from Bruno Haible.
40494
40495         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40496         is now generated.
40497         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40498         definition of EXTRA_DIST.
40499         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40500         ensure that the generated file is created/updated whenever the list
40501         of $(unlocked_functions) is changed.
40502         (jm-glibc-io.m4): New rule.
40503         (unlocked-io.h): New rule -- currently unused.
40504
40505 2001-06-24  Jim Meyering  <meyering@lucent.com>
40506
40507         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40508         unmatched right bracket, rather than kludging it with an extra,
40509         falsely-matching quote in a comment.  Patch by Akim Demaille.
40510
40511 2001-06-11  Jim Meyering  <meyering@lucent.com>
40512
40513         * lib/regex.c: Update from GNU libc.
40514
40515 2001-05-27  Jim Meyering  <meyering@lucent.com>
40516
40517         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40518         Check for ut_type in struct utmp.
40519
40520 2001-05-27  Jim Meyering  <meyering@lucent.com>
40521
40522         * lib/readutmp.h (UT_TYPE): Define.
40523
40524 2001-05-24  Jim Meyering  <meyering@lucent.com>
40525
40526         * lib/argmatch.c: Include "quote.h".
40527         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40528         quote function.  Reported by Göran Uddeborg.
40529
40530 2001-05-22  Jim Meyering  <meyering@lucent.com>
40531
40532         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40533         now that we use the package-supplied version unconditionally.
40534         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40535
40536 2001-05-21  Jim Meyering  <meyering@lucent.com>
40537
40538         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40539         shell syntax errors.
40540
40541 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40542
40543         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40544
40545 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40546
40547         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40548         Don't bother to check library strftime, since
40549         we'll be using our own my_strftime function anyway.
40550         Define my_strftime instead of strftime.
40551
40552 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40553
40554         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40555         which is not yet declared.
40556
40557 2001-05-15  Jim Meyering  <meyering@lucent.com>
40558
40559         * m4/regex.m4: Use proper quoting so brackets appear in the test
40560         program.
40561         Reported by, and with help from, Bruno Haible.
40562
40563 2001-05-13  Jim Meyering  <meyering@lucent.com>
40564
40565         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40566         undefined.
40567
40568 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40569
40570         dirname code cleanup.  base_name now behaves more compatibly
40571         with POSIX basename when given file names that have trailing
40572         slashes, and similarly for dir_name.  Add new primitives
40573         base_len and dir_len.  Put the directory-name-related decls
40574         into dirname.h.
40575
40576         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40577         * lib/backupfile.c (base_name): Likewise.
40578         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40579         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40580         * lib/makepath.c (strip_trailing_slashes): Likewise.
40581         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40582         ISSLASH): Likewise.
40583         * lib/rename.c (strip_trailing_slashes): Likewise.
40584         * lib/same.c (base_name): Likewise.
40585         * lib/stripslash.c (ISSLASH): Likewise.
40586
40587         * lib/addext.c: Include <dirname.h> after size_t is defined.
40588         * lib/backupfile.c: Likewise.
40589
40590         * lib/addext.c (addext): Use base_len to trim redundant
40591         trailing slashes instead of doing it ourselves.
40592         But do not trim the last slash if it is not redundant.
40593
40594         * lib/backupfile.c (find_backup_file_name,
40595         max_backup_version): Use base_len instead of rolling it ourselves.
40596         Handle the case of "" and (on DOS) "C:" correctly.
40597
40598         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40599         needed. Include <string.h>, <dirname.h>.
40600         (base_name): Allow file names ending in slashes, other than names
40601         that are all slashes.  In this case, return the basename followed
40602         by the slashes.  This is more general, and can be used in places
40603         where the original base_name purposely had an assertion failure.
40604         (base_len): New function.
40605
40606         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40607         Do not include <assert.h>; no longer needed.
40608         Include xalloc.h.
40609         (memrchr): Remove decl.
40610         (dir_name_r): Remove.
40611         (dir_len): Renamed from dirlen.  All callers changed.
40612         Rewrite in terms of base_name, for simplicity and consistency.
40613         (dir_name): Never return NULL.  All callers changed.
40614         Do not include <stdlib.h> in test program; no longer needed.
40615         return 0; is fine for test program.
40616
40617         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40618         New macros.
40619         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40620
40621         * lib/path-concat.c (path_concat): Use base_len to compute
40622         base length, not strlen; this means we cannot rely on memcpy
40623         to null-terminate.
40624
40625         * lib/same.c (STREQ): Remove.
40626         (same_name): Handle the case where the basename ends in trailing '/'.
40627
40628         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40629         a slash was stripped.  Do not strip the last slash after a
40630         file system prefix.
40631
40632 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40633
40634         * lib/Makefile.am (libfetish_a_SOURCES):
40635         Add strftime.c, since we now compile it on all hosts.
40636
40637         * lib/strftime.c (my_strftime):
40638         Define to nstrftime if emacs, but only if my_strftime is not defined.
40639         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40640         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40641         Add one more extra argument: a nanoseconds value.
40642         All uses changed.
40643         (ns): New macro.
40644         (my_strftime function): Add %N format.
40645         (emacs_strftimeu): Renamed from emacs_strftime,
40646         with extra ut argument.
40647
40648 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40649
40650         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40651
40652 2001-04-21  Jim Meyering  <meyering@lucent.com>
40653
40654         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40655         doesn't interfere.
40656
40657 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40658
40659         * m4/ftruncate.m4: Check for chsize.
40660         Link with ftruncate.o unconditionally if ftruncate is missing.
40661         This was required when cross-compiling to i586-mingw32msvc.
40662
40663 2001-04-08  Jim Meyering  <meyering@lucent.com>
40664
40665         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40666         recomputed; that's necessary when the offset spans a DST transition.
40667         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40668
40669 2001-04-02  Jim Meyering  <meyering@lucent.com>
40670
40671         * lib/regex.h, regex.c: Update from GNU libc.
40672
40673 2001-03-24  Jim Meyering  <meyering@lucent.com>
40674
40675         * m4/jm-macros.m4: Require autoconf-2.49d.
40676
40677 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40678
40679         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40680
40681 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40682
40683         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40684
40685 2001-03-17  Jim Meyering  <meyering@lucent.com>
40686
40687         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40688         now that the version in autoconf is equivalent.
40689         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40690
40691         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40692         Suggestion from Akim Demaille.
40693
40694         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40695         (jm_PREREQ_TEMPNAME): New function.
40696
40697 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40698
40699         * lib/tempname.c (uint64_t): Define to uintmax_t if
40700         not defined, and if UINT64_MAX is not defined.
40701         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40702         Reported by John David Anglin.
40703
40704 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40705
40706         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40707         resolve alias if codeset is empty.
40708         * lib/config.charset (BeOS): Use wildcard syntax.
40709
40710 2001-03-13  Jim Meyering  <meyering@lucent.com>
40711
40712         * lib/path-concat.c (path_concat)
40713         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40714         concatenating e.g., `C:' and `foo'.
40715         From Bruno Haible.
40716
40717 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40718
40719         * lib/localcharset.c (locale_charset): Don't use
40720         setlocale(LC_CTYPE,NULL). Don't return NULL.
40721         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40722
40723 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40724
40725         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40726         support for DOS/DJGPP.
40727
40728 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40729
40730         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40731         lacks mkstemp.  Compile our own tempname.c if we compile our own
40732         mkstemp.c, as mkstemp relies on tempname.
40733
40734 2001-03-01  Jim Meyering  <meyering@lucent.com>
40735
40736         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40737         AH_VERBATIM really does output its argument verbatim.
40738
40739 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40740
40741         * lib/Makefile.am (libfetish_a_SOURCES):
40742         Add dup-safer.c, fopen-safer.c.
40743         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40744
40745         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40746         * lib/unistd-safer.h: New files.
40747
40748 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40749
40750         The mkstemp replacement is taken from glibc 2.2.2, with some
40751         portability fixes for use outside glibc, as follows:
40752
40753         * lib/tempname.c (struct_stat64): New macro.
40754         (direxists, __gen_tempname): Use it.
40755         This avoids a portability problem with Solaris 8.
40756
40757         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40758         (<stddef.h>, <stdint.h>, <string.h>):
40759         Include only if STDC_HEADERS || _LIBC.
40760         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40761         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40762         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40763         (__set_errno): Define this macro if <errno.h> doesn't.
40764         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40765         Define these macros if <stdio.h> doesn't.
40766         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40767         Define these macros if <sys/stat.h>
40768         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40769         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40770         __xstat64): Define if not _LIBC.
40771         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40772         (__gen_tempname): Invoke gettimeofday only if
40773         HAVE_GETTIMEOFDAY || _LIBC;
40774         otherwise, fall back on plain "time".
40775         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40776
40777         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40778
40779         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40780
40781 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40782
40783         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40784
40785 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40786
40787         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40788         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40789         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40790         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40791
40792 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40793
40794         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40795         Remove workaround macros for hosts that have mbrtowc but not
40796         mbstate_t, as we now insist on proper declarations for both
40797         before using mbrtowc.
40798
40799 2001-02-17  Jim Meyering  <meyering@lucent.com>
40800
40801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40802         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40803         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40804         UnixWare 7.1.1.
40805
40806         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40807         rather than AC_CACHE_VAL.
40808
40809 2001-02-17  Jim Meyering  <meyering@lucent.com>
40810
40811         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40812         around included file name.
40813
40814         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40815
40816         * lib/strftime.c: Update from GNU libc (the only changes were to
40817         comments).
40818
40819 2001-02-17  Jim Meyering  <meyering@lucent.com>
40820
40821         * lib/regex.c: Update from libc.
40822
40823 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40824
40825         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40826         clash.
40827
40828 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40829
40830         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40831         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40832         Reported by Mark Hounschell via Paul Eggert.
40833
40834 2001-02-07  Jim Meyering  <meyering@lucent.com>
40835
40836         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40837
40838 2001-02-05  Jim Meyering  <meyering@lucent.com>
40839
40840         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40841         it includes the patch required for `large file' support with at least
40842         HP-UX's 10.20 /bin/cc.
40843
40844 2001-02-03  Jim Meyering  <meyering@lucent.com>
40845
40846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40847         AS_IF, now that it works once again (mysteriously).
40848         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40849
40850 2001-01-30  Jim Meyering  <meyering@lucent.com>
40851
40852         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40853         * m4/chown.m4: Rename conftestchown to conftest.chown.
40854         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40855         s/conftestdir2/conftest.d2/.
40856         * m4/utimes.m4: s/conftestdata/conftest.data/
40857         Inspired by Pavel Roskin's change in autoconf.
40858
40859 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40860
40861         * lib/config.charset: Update for FreeBSD 4.2.
40862
40863 2001-01-27  Jim Meyering  <meyering@lucent.com>
40864
40865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40866         a use of AS_IF.
40867         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40868
40869 2001-01-26  Jim Meyering  <meyering@lucent.com>
40870
40871         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40872         quotearg.c includes it.
40873
40874 2001-01-26  Jim Meyering  <meyering@lucent.com>
40875
40876         * lib/quotearg.c: Include stddef.h.
40877         * lib/quote.c: Include stddef.h.
40878         Reported by Axel Kittenberger.
40879
40880         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40881         line in double quotes so that it evokes a better diagnostic.
40882         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40883         Reported by Axel Kittenberger.
40884
40885 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40886
40887         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40888         as if it was a `charset'.
40889
40890 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40891
40892         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40893         has const.
40894
40895 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40896
40897         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40898         to avoid a warning.  Add back 'const' to inptr.
40899
40900 2001-01-20  Jim Meyering  <meyering@lucent.com>
40901
40902         Be sure that headers are checked before used in code compiled
40903         for the type checks.
40904         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40905         In place of that, invoke jm_CHECK_ALL_TYPES.
40906         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40907         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40908         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40909         The check for ssize_t was mistakenly run before the test for unistd.h.
40910
40911         The configure-time check for stdbool.h was missing.
40912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40913         (jm_PREREQ_HASH): New function.
40914
40915 2001-01-17  Jim Meyering  <meyering@lucent.com>
40916
40917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40918         for autoconf-2.49c.
40919         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40920
40921 2001-01-16  Jim Meyering  <meyering@lucent.com>
40922
40923         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40924         From Bruno Haible.
40925
40926 2001-01-14  Jim Meyering  <meyering@lucent.com>
40927
40928         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40929         foo and bar.  Create conftestdir/ in the script, not in the C code.
40930         Remove directories in the script, not in the C code.
40931         Remove conftestdir{,2} before trying to create the directory.
40932         Make the entire configure script fail if the mkdir fails.
40933
40934 2001-01-14  Jim Meyering  <meyering@lucent.com>
40935
40936         * lib/rename.c: New file.  From Volker Borchert.
40937         Include stdlib.h, string.h or strings.h, and xalloc.h.
40938         Use strip_trailing_slashes rather than open-coding it.
40939
40940 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40941
40942         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40943
40944 2001-01-03  Jim Meyering  <meyering@lucent.com>
40945
40946         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40947         of local `inptr' to avoid warning with some system declarations of
40948         iconv.
40949
40950 2001-01-02  Volker Borchert  <bt@teknon.de>
40951
40952         * m4/rename.m4: New file.
40953         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40954
40955 2001-01-01  Jim Meyering  <meyering@lucent.com>
40956
40957         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40958         even on systems with utmpx.h.  It's necessary for the declaration of
40959         utmp's ut_user member.  Reported by Andreas Jaeger.
40960
40961         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40962         available. They are required for the declarations of getgrgid and
40963         getpwuid resp.
40964         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40965         Reported by Andreas Jaeger.
40966
40967 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40968
40969         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40970         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40971         so `make install' also works in VPATH builds.
40972
40973 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40974
40975         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40976         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40977         can be used in subdirectories.
40978
40979 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40980
40981         * lib/modechange.c: Do not assume that mode_t uses the
40982         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40983         the other-execute bit of FOO even if S_IXOTH != 1.
40984
40985         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40986         WOTH, XOTH, ALLM): New macros.
40987         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40988          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40989         Use them.
40990         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40991         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40992         (mode_compile):
40993         No need to use uintmax_t; unsigned long is long enough.
40994         Don't bother to get suffix since we don't use it.
40995
40996 2000-12-26  Jim Meyering  <meyering@lucent.com>
40997
40998         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40999         better with autoheader.
41000
41001 2000-12-24  Jim Meyering  <meyering@lucent.com>
41002
41003         * lib/hash.c (is_prime): Return explicit boolean values.
41004         (hash_get_first): Return NULL to appease Irix5.6's 89.
41005         Reported by Nelson Beebe.
41006
41007 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
41008
41009         * lib/localcharset.c (locale_charset): Add support for Win32.
41010
41011 2000-12-18  Paul Eggert  <eggert@twinsun.com>
41012
41013         * lib/physmem.h, lib/physmem.c: New files.
41014
41015         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
41016         (noinst_HEADERS): Add physmem.h.
41017
41018         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
41019         't' for compatibility with Solaris 8 sort.
41020
41021 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
41022
41023         * lib/config.charset: Add support for BeOS.
41024
41025 2000-12-17  Jim Meyering  <meyering@lucent.com>
41026
41027         * m4/dos.m4 (jm_AC_DOS): New file and macro.
41028         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
41029
41030 2000-12-16  Jim Meyering  <meyering@lucent.com>
41031
41032         This bug had a serious impact on chown: `chown N:M FILE' (for integer
41033         N and M) would have treated it like `chown N:N FILE'.
41034
41035         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
41036
41037 2000-12-16  Jim Meyering  <meyering@lucent.com>
41038
41039         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
41040         SHELLS_FILE to a file name that's useful on djgpp systems.
41041         Include stdlib.h.
41042         (ADDITIONAL_DEFAULT_SHELLS): Define.
41043         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
41044         Based mostly on a patch from Prashant TR.
41045
41046 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
41047
41048         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
41049         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
41050         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
41051
41052 2000-12-08  Andreas Schwab  <schwab@suse.de>
41053
41054         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
41055         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
41056
41057 2000-12-07  Jim Meyering  <meyering@lucent.com>
41058
41059         * lib/stripslash.c (ISSLASH): Define.
41060         (strip_trailing_slashes): Use ISSLASH rather than comparing against
41061         `/'.
41062         From Prashant TR.
41063
41064         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
41065         (dir_name_r): Declare this function as static.
41066         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
41067         manifest itself on a name containing a mix of slashes and
41068         backslashes.
41069         Make this function work with names starting with a DOS-style
41070         drive letter and colon prefix.
41071         (dir_name): Append `.' if necessary.
41072         Based mostly on patches from Prashant TR and Eli Zaretskii.
41073
41074         * lib/dirname.h (dir_name_r): Remove prototype.
41075
41076 2000-12-06  Paul Eggert  <eggert@twinsun.com>
41077
41078         * m4/off_t-format.m4: Remove this file.
41079         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
41080
41081 2000-12-06  Jim Meyering  <meyering@lucent.com>
41082
41083         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
41084         replacement strtoull, we may well need the replacement strtoul, too.
41085         Check for declarations of strtoul and strtoull.
41086         Check for strtol.  Mainly as a cue to cause automake to include
41087         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
41088         Check for limits.h -- strtol.c needs it.
41089
41090 2000-12-05  Jim Meyering  <meyering@lucent.com>
41091
41092         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
41093
41094 2000-12-04  Jim Meyering  <meyering@lucent.com>
41095
41096         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
41097         Also include memory.h, stdlib.h, unistd.h if appropriate.
41098         Reported by Andreas Jaeger (conflicting declaration of malloc).
41099
41100 2000-12-02  Jim Meyering  <meyering@lucent.com>
41101
41102         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
41103         * m4/jm-macros.m4 (jm_MACROS): require it.
41104
41105 2000-12-02  Jim Meyering  <meyering@lucent.com>
41106
41107         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
41108
41109 2000-12-01  Paul Eggert  <eggert@twinsun.com>
41110
41111         * lib/memrchr.c: Include <config.h> before any system include file.
41112
41113 2000-11-30  Jim Meyering  <meyering@lucent.com>
41114
41115         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
41116
41117 2000-11-30  Jim Meyering  <meyering@lucent.com>
41118
41119         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
41120
41121 2000-11-29  Paul Eggert  <eggert@twinsun.com>
41122
41123         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
41124
41125 2000-11-26  Jim Meyering  <meyering@lucent.com>
41126
41127         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
41128
41129 2000-11-22  Paul Eggert  <eggert@twinsun.com>
41130
41131         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
41132         size of (size_t) -1; it's not portable.
41133
41134 2000-11-17  Jim Meyering  <meyering@lucent.com>
41135
41136         * lib/strstr.c: Update from GNU libc.
41137
41138 2000-11-17  Akim Demaille  <akim@epita.fr>
41139
41140         * lib/obstack.h: Formatting changes.
41141         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
41142         prevent type checking.
41143         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
41144         cast the value to (void *): assigning a `foo *' to a `void *'
41145         variable is valid.
41146         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
41147
41148 2000-11-16  Jim Meyering  <meyering@lucent.com>
41149
41150         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
41151
41152 2000-11-11  Jim Meyering  <meyering@lucent.com>
41153
41154         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41155
41156 2000-11-10  Jim Meyering  <meyering@lucent.com>
41157
41158         * lib/obstack.h: Update from GNU libc.
41159         * lib/obstack.c: Likewise.
41160
41161 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41162
41163         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41164
41165 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41166
41167         * lib/getusershell.c (setusershell): Use rewind rather than
41168         fseek/fseeko, to avoid configuration hassles with fseeko.
41169         Don't bother opening SHELLS_FILE if shellstream is NULL;
41170         it's not necessary.
41171
41172 2000-11-05  Jim Meyering  <meyering@lucent.com>
41173
41174         * lib/makepath.h (make_dir): Declare.
41175         * lib/makepath.c (make_dir): Remove `static' attribute.
41176         Tweak a comment.
41177
41178 2000-11-04  Jim Meyering  <meyering@lucent.com>
41179
41180         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41181
41182 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41183
41184         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41185         last one in a bucket, advance to the next bucket.
41186
41187 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41188
41189         * lib/fnmatch.c: Do not comment out all the code if we are using
41190         the GNU C library, because in some cases we are replacing buggy
41191         code in the GNU C library itself.
41192
41193 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41194
41195         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41196         (regex_compile): Catch bogus \(\1\).
41197
41198 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41199
41200         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41201         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41202         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41203
41204 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41205
41206         * lib/error.h, getline.h, modechange.h:
41207         Remove "2000" from Copyright line, as the file hasn't been
41208         changed this year other than in the copyright notice.
41209
41210         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41211         was changed this year.
41212
41213 2000-10-29  Jim Meyering  <meyering@lucent.com>
41214
41215         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41216         renaming.
41217         * m4/ls-mntd-fs.m4: Likewise
41218
41219 2000-10-29  Jim Meyering  <meyering@lucent.com>
41220
41221         * lib/xstat.in: Fix grammar in comment.
41222
41223 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41224
41225         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41226         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41227         doesn't define __restrict_arr.
41228
41229 2000-10-28  Jim Meyering  <meyering@lucent.com>
41230
41231         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41232         (jm_PREREQ_MEMCHR): New function.
41233
41234 2000-10-28  Jim Meyering  <meyering@lucent.com>
41235
41236         * lib/memchr.c: Update from libc.
41237         Adjust for portability:
41238         [HAVE_STDLIB_H]: Include stdlib.h.
41239         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41240         Undef __memchr, too.
41241         [!weak_alias]: Define __memchr to memchr.
41242
41243         * lib/regex.c: Update from libc.
41244         * lib/regex.h: Likewise.
41245         * lib/getopt1.c: Likewise.
41246         * lib/memcmp.c: Likewise.
41247
41248         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41249         Avoid using fseek, when possible -- it's broken by design.
41250         Patch by Ulrich Drepper.
41251
41252 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41253
41254         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41255         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41256         Giving in to popular pressure to shut up the compiler with casts.
41257
41258 2000-10-26  Jim Meyering  <meyering@lucent.com>
41259
41260         * lib/strftime.c: Update from libc.
41261
41262 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41263
41264         * regex.c: More `unsigned char' -> `re_char' changes.
41265         Also change several `int' into `re_wchar_t'.
41266         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41267         (PUSH_FAILURE_POINTER): Don't cast any more.
41268         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41269         We want GCC to complain, since this piece of code makes
41270         re_match non-reentrant, which *should* be fixed.
41271         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41272         (EXTEND_BUFFER): Use RETALLOC.
41273         (SET_LIST_BIT): Don't cast.
41274         (re_wchar_t): New type.
41275         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41276         that those two functions will always properly return.
41277         (IMMEDIATE_QUIT_CHECK): Cast to void.
41278         (analyse_first): Use recursion rather than an explicit stack.
41279         (re_compile_fastmap): Can't fail anymore.
41280         (re_search_2): Don't check re_compile_fastmap for failure.
41281         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41282         Now also sets the new value (passed in a new argument).
41283         (re_match_2_internal): Use it.
41284         Also, use a new var `reg' of type size_t when looping through regs
41285         rather than reuse the inappropriate `mcnt'.
41286
41287 2000-10-25  Jim Meyering  <meyering@lucent.com>
41288
41289         * lib/obstack.c: Update from libc.
41290
41291 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41292
41293         * regex.c (regex_compile): Change the way of handling a range from
41294         a char less than 256 to a char not less than 256.
41295
41296 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41297
41298         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41299         NT-Emacs only.
41300         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41301         so that re_search functions only quit when callers expect them to.
41302
41303 2000-10-23  Jim Meyering  <meyering@lucent.com>
41304
41305         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41306         wrong.  That set_locale call must not have any side effects.
41307         From Paul Eggert.
41308
41309 2000-10-22  Jim Meyering  <meyering@lucent.com>
41310
41311         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41312         [CYCLIC]: Remove now-unused definition.
41313
41314         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41315         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41316         Suggestion from Ulrich Drepper.
41317
41318 2000-10-21  Jim Meyering  <meyering@lucent.com>
41319
41320         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41321         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41322         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41323
41324 2000-10-21  Jim Meyering  <meyering@lucent.com>
41325
41326         * lib/dirname.c (memrchr): Declare if necessary.
41327         (dir_name): Remove the restriction that there be no
41328         trailing slashes.  Now, this code skips past them, effectively
41329         ignoring them.
41330         [TEST_DIRNAME] (main): New unit tests.
41331
41332         * lib/memrchr.c: New file from GNU libc.
41333         Undef __memrchr, too.
41334         [!weak_alias]: Define __memrchr to memrchr.
41335         Guard weak_alias use with `#ifdef weak_alias'.
41336
41337 2000-10-21  Jim Meyering  <meyering@lucent.com>
41338
41339         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41340         (dir_name): Use dir_name_r.
41341         * lib/dirname.h (dir_name_r): Declare it.
41342
41343 2000-10-17  Jim Meyering  <meyering@lucent.com>
41344
41345         * lib/quote.h (PARAMS): Define and use.
41346         Reported by Akim Demaille.
41347
41348         * lib/getopt.c: Update from libc.
41349
41350 2000-10-16  Jim Meyering  <meyering@lucent.com>
41351
41352         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41353         setlocale.
41354         From Jan Fedak.
41355
41356 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41357
41358         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41359
41360 2000-09-25  Jim Meyering  <meyering@lucent.com>
41361
41362         * lib/md5.h (rol): Define (from GnuPG).
41363
41364         * lib/sha.c: Give credit (GnuPG) where due.
41365         (M): Use rol rather than open-coding it.
41366         Add a FIXME comment.
41367
41368 2000-09-21  Jim Meyering  <meyering@lucent.com>
41369
41370         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41371         Reported by Michael Stone.
41372
41373 2000-09-20  Jim Meyering  <meyering@lucent.com>
41374
41375         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41376         (noinst_HEADERS): Add sha.h.
41377         Based on code from Scott G. Miller and from GnuPG.
41378
41379 2000-09-18  Jim Meyering  <meyering@lucent.com>
41380
41381         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41382         LIBS. Otherwise, everyone ends up linking with -lelf for some
41383         configurations.
41384         Reported by Mike Stone.
41385
41386 2000-09-15  Jim Meyering  <meyering@lucent.com>
41387
41388         * lib/regex.c: Update from libc.
41389
41390 2000-09-10  Jim Meyering  <meyering@lucent.com>
41391
41392         * lib/getopt.c (_getopt_internal): Update from glibc.
41393
41394 2000-09-09  Jim Meyering  <meyering@lucent.com>
41395
41396         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41397         think it should be used as a general replacement for isascii.
41398         * lib/fnmatch.c: Likewise.
41399         * lib/mbswidth.c: Likewise
41400         * lib/regex.c: Likewise.
41401
41402         Don't use atoi.
41403         * lib/userspec.c: Include sys/param.h and limits.h.
41404         Include xstrtol.h.
41405         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41406         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41407         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41408         UID, GID.  Check range.
41409
41410 2000-09-06  Jim Meyering  <meyering@lucent.com>
41411
41412         * lib/getopt.c (_getopt_internal): Update from glibc.
41413
41414 2000-08-30  Jim Meyering  <meyering@lucent.com>
41415
41416         * lib/strftime.c: Merge in changes from GNU libc.
41417
41418 2000-08-26  Jim Meyering  <meyering@lucent.com>
41419
41420         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41421         * m4/fpending.m4: New file.
41422
41423 2000-08-26  Jim Meyering  <meyering@lucent.com>
41424
41425         * lib/closeout.c: Include "__fpending.h".
41426         (close_stdout_status): Return right away if there's nothing to flush.
41427
41428         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41429         * lib/__fpending.c: New file.
41430         * lib/__fpending.h: New file.
41431
41432 2000-08-20  Jim Meyering  <meyering@lucent.com>
41433
41434         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41435         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41436         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41437
41438 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41439
41440         Improve fileutils installation on systems where running
41441         programs (like install) can't be unlinked.
41442         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41443         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41444
41445 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41446
41447         Standardize on "memory exhausted" instead of "Memory exhausted"
41448         or "virtual memory exhausted".
41449         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41450         "virtual memory exhausted".
41451         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41452         our own message.
41453         * lib/userspec.c (parse_user_spec): Likewise.
41454         * lib/bumpalloc.h: comment fix
41455         * lib/same.c, userspec.c: Include xalloc.h.
41456
41457         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41458         not char *const and pointing to a constant array.
41459         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41460         (xrealloc): Comment fix.
41461
41462         * lib/userspec.c (parse_user_spec):
41463         Don't translate a message until just before returning,
41464         to avoid unnecessary translation.
41465
41466 2000-08-07  Jim Meyering  <meyering@lucent.com>
41467
41468         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41469         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41470         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41471         getgroups.c, gethostname.c, getopt.h, group-member.c,
41472         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41473         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41474         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41475         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41476         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41477         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41478         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41479         yesno.c: Back out Copyright date changes for each file with no change
41480         this year.  This eases coordination with other programs using the same
41481         source code modules.  From Paul Eggert.
41482
41483 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41484
41485         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41486         not char, for compatibility with glibc 2.1.3 strftime.c.
41487
41488 2000-08-03  Greg McGary  <greg@mcgary.org>
41489
41490         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41491         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41492         (EXTEND_BUFFER): Use them.
41493
41494 2000-08-01  Jim Meyering  <meyering@lucent.com>
41495
41496         * lib/dirname.c (ISSLASH): Define.
41497         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41498         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41499         both `\' and `/' may be use as path separators.
41500         Based on a patch from Prashant TR.
41501
41502 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41503
41504         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41505         slot vector a constant, since it might get modified.
41506
41507 2000-07-31  Jim Meyering  <meyering@lucent.com>
41508
41509         * lib/xmalloc.c: Use `virtual memory exhausted', not
41510         `Memory exhausted'.
41511         * lib/obstack.c (print_and_abort): Likewise.
41512
41513 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41514
41515         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41516         buffer, so that the caller can always quote one small
41517         component of a "memory exhausted" message in slot 0.
41518         From a suggestion by Jim Meyering.
41519
41520 2000-07-30  Jim Meyering  <meyering@lucent.com>
41521
41522         * lib/makepath.c (make_path): Quote the other instance, too.
41523
41524         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41525         (STATIC_BUF_SIZE): Define.
41526         (quotearg_n_options): Use only statically allocated storage when
41527         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41528         than STATIC_BUF_SIZE.
41529
41530 2000-07-29  Jim Meyering  <meyering@lucent.com>
41531
41532         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41533         * lib/dirname.c (dir_name): Likewise.
41534
41535         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41536         `/'.
41537
41538         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41539         (dir_name): Assert that there are no trailing slashes.
41540
41541 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41542
41543         * lib/mbswidth.h (mbswidth): Add a flags argument.
41544         (mbswidth): New declaration.
41545         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41546         * lib/mbswidth.c (mbswidth): Add a flags argument.
41547         (mbsnwidth): New function.
41548
41549 2000-07-24  Jim Meyering  <meyering@lucent.com>
41550
41551         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41552
41553 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41554
41555         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41556
41557 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41558
41559         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41560         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41561         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41562         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41563         invoke multibyte primitives.
41564
41565 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41566
41567         * lib/quotearg.c:
41568         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41569         so that mbstate_t is always defined.
41570
41571         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41572         be 1 in at least one GCC installation, and this configuration
41573         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41574         performance on hosts that have mbrtowc but have only unibyte
41575         locales, but I assume these hosts are rare.
41576
41577 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41578
41579         * lib/mbswidth.c (_XOPEN_SOURCE):
41580         Don't define; this causes problems on Solaris 7.
41581         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41582
41583 2000-07-23  Jim Meyering  <meyering@lucent.com>
41584
41585         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41586         too: getgrgid, getpwuid, getuid.
41587
41588 2000-07-23  Jim Meyering  <meyering@lucent.com>
41589
41590         * lib/basename.c (base_name): Add an assertion.
41591
41592 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41593
41594         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41595         shadow its mbsinit function.
41596
41597 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41598
41599         * lib/mbswidth.h: New file.
41600         * lib/mbswidth.c: New file.
41601         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41602         (noinst_HEADERS): Add mbswidth.h.
41603
41604 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41605
41606         * lib/config.charset: Add support for FreeBSD. Improve support for
41607         HP-UX and IRIX 6.
41608
41609 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41610
41611         * m4/mbswidth.m4: New file.
41612         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41613
41614 2000-07-15  Jim Meyering  <meyering@lucent.com>
41615
41616         * lib/makepath.c: Include quote.h.
41617         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41618         corresponding argument in a `quote (...)' call.
41619         Give better diagnostics.
41620
41621         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41622         (noinst_HEADERS): Add quote.h.
41623
41624         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41625         from tar's src/misc.c.
41626         * lib/quote.h: New file.  Prototypes for same.
41627
41628 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41629
41630         From a suggestion by Bruno Haible.
41631         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41632         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41633         to decide whether to define the BeOS workaround macro;
41634         this adjusts to the change to AC_MBSTATE_T.
41635
41636 2000-07-14  Jim Meyering  <meyering@lucent.com>
41637
41638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41639         jm_AC_TYPE_UINTMAX_T.
41640
41641 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41642
41643         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41644
41645         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41646         quotearg_buffer_restyled): Add support for
41647         clocale_quoting_style.  Undo previous change to
41648         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41649         and "{RIGHT QUOTATION MARK}" msgids.
41650
41651 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41652
41653         From a suggestion by Bruno Haible.
41654         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41655         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41656         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41657         and mbstate_t, to a single-part test that simply defines mbstate_t.
41658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41659         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41660
41661 2000-07-10  Jim Meyering  <meyering@lucent.com>
41662
41663         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41664
41665         * m4/gnu-source.m4: Output to confdefs.h directly.
41666         Suggestion from Akim Demaille.
41667
41668 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41669
41670         The old behavior of quoting `like this' doesn't look good with
41671         newer, ISO-style fonts.  See:
41672         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41673
41674         Instead, quote "like this" by default.  Let the translator
41675         tailor the locale-specific quoting behavior by providing
41676         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41677
41678         * lib/quotearg.c (N_): New macro.
41679         (gettext_default): New function.
41680         (quotearg_buffer_restyled): Use
41681         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41682         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41683
41684 2000-07-09  Jim Meyering  <meyering@lucent.com>
41685
41686         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41687         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41688
41689         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41691
41692 2000-07-09  Jim Meyering  <meyering@lucent.com>
41693
41694         * lib/Most files: Update copyright dates to include 2000.
41695
41696 2000-07-08  Jim Meyering  <meyering@lucent.com>
41697
41698         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41699         if not defined.
41700         (xgethostname): Remove now-unnecessary #ifdef.
41701         Move declaration of `err' into loop where it's used.
41702
41703 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41704         and Bruno Haible  <haible@clisp.cons.org>
41705
41706         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41707         only if the test for an object-type mbstate_t fails.  This
41708         prevents us from mistakenly reporting that mbstate_t is a
41709         system object type after we "#define mbstate_t int" to work
41710         around its lack.
41711
41712 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41713         and Bruno Haible  <haible@clisp.cons.org>
41714
41715         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41716
41717 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41718
41719         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41720         to strerror_r.
41721         Include <ctype.h> for use of isalpha.
41722
41723 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41724
41725         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41726         by allocating a larger buffer. Test the gethostname return value for
41727         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41728         returns an error and ENAMETOOLONG isn't defined.
41729
41730 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41731
41732         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41733         dimension.
41734
41735 2000-07-04  Jim Meyering  <meyering@lucent.com>
41736
41737         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41738         of the deprecated AC_CHECKING.
41739
41740 2000-07-04  Jim Meyering  <meyering@lucent.com>
41741
41742         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41743         Reported by Bruno Haible.
41744
41745 2000-07-04  Jim Meyering  <meyering@lucent.com>
41746
41747         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41748         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41749         lacks mbrtowc.
41750
41751 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41752
41753         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41754         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41755
41756 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41757         and Bruno Haible  <haible@clisp.cons.org>
41758
41759         * lib/quotearg.c (mbrtowc):
41760         Assign to *pwc, and return 1 only if result is nonzero.
41761         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41762
41763 2000-07-03  Jim Meyering  <meyering@lucent.com>
41764
41765         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41766
41767 2000-07-03  Jim Meyering  <meyering@lucent.com>
41768
41769         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41770         This is necessary to get a definition of e.g., UTMP_FILE on
41771         HP-UX 10.20.
41772         From Bob Proulx.
41773
41774 2000-07-02  Jim Meyering  <meyering@lucent.com>
41775
41776         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41777
41778         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41779         AC_LIBOBJ(function_name).
41780         * m4/chown.m4: Likewise.
41781         * m4/fnmatch.m4: Likewise.
41782         * m4/ftruncate.m4: Likewise.
41783         * m4/getgroups.m4: Likewise.
41784         * m4/getline.m4: Likewise.
41785         * m4/group-member.m4: Likewise.
41786         * m4/jm-macros.m4: Likewise.
41787         * m4/lstat.m4: Likewise.
41788         * m4/malloc.m4: Likewise.
41789         * m4/memcmp.m4: Likewise.
41790         * m4/nanosleep.m4: Likewise.
41791         * m4/putenv.m4: Likewise.
41792         * m4/realloc.m4: Likewise.
41793         * m4/regex.m4: Likewise.
41794         * m4/stat.m4: Likewise.
41795         * m4/strftime.m4: Likewise.
41796
41797 2000-07-02  Jim Meyering  <meyering@lucent.com>
41798
41799         * lib/quotearg.c (mbstate_t): Don't define here.
41800
41801 2000-07-02  Jim Meyering  <meyering@lucent.com>
41802
41803         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41804
41805 2000-07-01  Jim Meyering  <meyering@lucent.com>
41806
41807         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41808
41809 2000-07-01  Jim Meyering  <meyering@lucent.com>
41810
41811         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41812         problem.
41813
41814 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41815
41816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41817         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41818
41819 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41820
41821         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41822         per change in ../m4/ls-mntd-fs.m4.
41823         (read_filesystem_list): Ignore symbolic links.
41824
41825 2000-06-29  Jim Meyering  <meyering@lucent.com>
41826
41827         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41828         for declaration of strcmp.
41829
41830         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41831
41832         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41833         Avoid warning by casting result to `char *' to remove `const'.
41834
41835 2000-06-28  Jim Meyering  <meyering@lucent.com>
41836
41837         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41838         included by quotearg.c, for which we perform this test.  From
41839         Bruno Haible.
41840
41841 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41842
41843         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41844         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41845         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41846
41847 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41848
41849         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41850
41851 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41852
41853         savedir now sets errno on failure and invokes xmalloc to get memory.
41854         Fix a couple of other minor bugs while we're at it.
41855
41856         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41857         (NAMLEN): Remove macro.
41858         (malloc, realloc): Remove decls.
41859         (stpcpy): Likewise.
41860         ("xalloc.h"): Include.
41861         (NAME_SIZE_DEFAULT): New macro.
41862         (savedir): Use xmalloc / xrealloc to allocate memory.
41863         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41864         Skip "" directory entries.
41865         Use strlen to calculate directory entry length, since the old method
41866         is rarely used these days and isn't worth supporting.
41867         Don't use a pointer after freeing it.
41868         Check for integer overflow when calculating allocation size.
41869         Use memcpy to copy entries, instead of stpcpy.
41870         Set errno properly when returning NULL.
41871         Check for readdir error.
41872
41873 2000-06-26  Jim Meyering  <meyering@lucent.com>
41874
41875         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41876
41877 2000-06-25  Jim Meyering  <meyering@lucent.com>
41878
41879         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41880         Linux header bug when _XOPEN_SOURCE is defined to 500.
41881
41882 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41883
41884         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41885         deficiency.
41886
41887 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41888
41889         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41890         Include xalloc.h.
41891         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41892
41893 2000-06-24  Jim Meyering  <meyering@lucent.com>
41894
41895         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41896         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41897         for which strerror does return char*, but which lacks a conveniently
41898         accessible declaration of the function.  If the compile-test says
41899         strerror_r doesn't work, then resort to a `run'-test that works on
41900         BeOS and segfaults on DEC Unix.
41901
41902 2000-06-24  Jim Meyering  <meyering@lucent.com>
41903
41904         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41905
41906 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41907
41908         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41910
41911 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41912
41913         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41914         (mbrtowc, mbstate_t): Define substitutes if
41915         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41916         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41917         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41918
41919 2000-06-23  Jim Meyering  <meyering@lucent.com>
41920
41921         * m4/afs.m4: Add missing AC_MSG_RESULT.
41922         Reported by Bruno Haible.
41923
41924         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41925         Suggestion from Bruno Haible.
41926
41927 2000-06-23  Jim Meyering  <meyering@lucent.com>
41928
41929         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41930
41931 2000-06-21  Jim Meyering  <meyering@lucent.com>
41932
41933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41934
41935 2000-06-21  Jim Meyering  <meyering@lucent.com>
41936
41937         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41938         (noinst_HEADERS): Add getstr.h.
41939
41940         * lib/getline.c (getstr): Move into a separate file.
41941         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41942         the following changes: new parameter, delim2; both delim[12]
41943         parameters have type `int', not `char'.  The latter would lose
41944         with 8-bit delimiters.
41945         * lib/getstr.h: New file.
41946
41947 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41948
41949         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41950         than 1024, return a memory chunk of least possible size, instead
41951         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41952         Use free/xmalloc instead of xrealloc to avoid copying for very long
41953         paths.
41954
41955 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41956
41957         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41958         the empty string.
41959
41960 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41961
41962         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41963         address, not strdup.  Include <stdlib.h> and don't declare free().
41964
41965 2000-06-19  Jim Meyering  <meyering@lucent.com>
41966
41967         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41968
41969 2000-06-18  Jim Meyering  <meyering@lucent.com>
41970
41971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41972
41973         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41974         `checking whether...' message to be consistent with that of the
41975         lstat test.
41976
41977 2000-06-18  Jim Meyering  <meyering@lucent.com>
41978
41979         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41980         Besides, these days every porting target provides a mkdir function.
41981
41982         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41983         needed. (this snippet comes from src/system.h).
41984
41985 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41986
41987         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41988
41989 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41990
41991         * lib/human.c (adjust_value): New function.
41992         (human_readable_inexact): Apply rounding style even when
41993         printing approximate values.
41994
41995 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41996
41997         * lib/human.c (human_readable_inexact): Allow an input block
41998         size that is not a multiple of the output block size, and vice versa.
41999         Reported by Piergiorgio Sartor.
42000
42001 2000-06-14  Paul Eggert  <eggert@twinsun.com>
42002
42003         * lib/getdate.y (get_date): Apply relative times after time
42004         zone indicator, not before.  Reported by Todd A. Jacobs.
42005
42006 2000-06-13  Jim Meyering  <meyering@lucent.com>
42007
42008         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
42009
42010         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
42011
42012 2000-06-12  Paul Eggert  <eggert@twinsun.com>
42013
42014         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
42015
42016 2000-06-12  Jim Meyering  <meyering@lucent.com>
42017
42018         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
42019         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
42020         optional argument.
42021         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
42022         the optional argument, `lib'.
42023
42024 2000-06-08  Jim Meyering  <meyering@lucent.com>
42025
42026         * m4/largefile.m4: Remove file (now that it's part of autoconf).
42027
42028 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42029
42030         Rewrite largefile configuration so that we don't need to run
42031         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
42032         AC_CANONICAL_HOST in configure.in -- jmm]
42033
42034         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
42035         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
42036         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
42037         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
42038         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
42039         All uses changed.
42040         Instead of inspecting the output of getconf, try to compile the
42041         test program without and with the macro definition.
42042         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
42043         for getconf.  Instead, check for the needed flags by compiling
42044         test programs.
42045
42046 2000-06-04  Paul Eggert  <eggert@twinsun.com>
42047
42048         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
42049
42050 2000-06-04  Jim Meyering  <meyering@lucent.com>
42051
42052         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
42053         SunOS 4.1.4 for which gid_t is an unsigned type.
42054
42055 2000-06-03  Jim Meyering  <meyering@lucent.com>
42056
42057         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
42058         now that autoconf requires that.
42059
42060         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
42061         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
42062         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
42063
42064 2000-06-03  Jim Meyering  <meyering@lucent.com>
42065
42066         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
42067
42068 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42069
42070         * m4/glibc21.m4: New file.
42071         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
42072
42073 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
42074
42075         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
42076         newer, don't install charset.alias.
42077         * lib/config.charset: Change the Linux/glibc rules so they become empty
42078         on glibc-2.1 or newer.
42079
42080 2000-06-02  Jim Meyering  <meyering@lucent.com>
42081
42082         * lib/mountlist.c: Back out last change.  Instead, do this...
42083         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
42084         me_dummy member using the same `ignore'-testing code.
42085         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
42086         fs_type strings.
42087         From Mark D. Roth.
42088
42089 2000-05-29  Jim Meyering  <meyering@lucent.com>
42090
42091         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
42092         mounts with the `ignore' attribute.  Based on a patch from
42093         Mark D. Roth.
42094
42095 2000-05-28  Jim Meyering  <meyering@lucent.com>
42096
42097         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
42098         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42099         * m4/stat.m4: Likewise.
42100         * m4/lstat.m4: Likewise.
42101         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
42102
42103         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
42104         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
42105
42106 2000-05-26  Jim Meyering  <meyering@lucent.com>
42107
42108         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
42109
42110 2000-05-24  Jim Meyering  <meyering@lucent.com>
42111
42112         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
42113         autoconf requires that.
42114         * m4/lib-check.m4: Likewise.
42115         * m4/jm-macros.m4: Likewise.
42116         * m4/strftime.m4: Likewise.
42117
42118         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
42119         AC_CHECK_DECLS, now that autoconf requires that.
42120
42121 2000-05-22  Jim Meyering  <meyering@lucent.com>
42122
42123         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42124         * m4/lstat.m4: Likewise.
42125
42126 2000-05-22  Jim Meyering  <meyering@lucent.com>
42127
42128         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
42129
42130 2000-05-20  Jim Meyering  <meyering@lucent.com>
42131
42132         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
42133         (jm_PREREQ): Use it.
42134
42135 2000-05-18  Jim Meyering  <meyering@lucent.com>
42136
42137         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
42138         back, too, since it may have been modified by allocate_entry.
42139         (hash_delete): Rewrite to use neither the assignment operator
42140         nor the comma operator in an if-expression.
42141
42142 2000-05-15  Paul Eggert  <eggert@twinsun.com>
42143
42144         * lib/closeout.c:
42145         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
42146         Remove; no longer needed.
42147         "quotearg.h": Add include.
42148         (file_name): Do not bother to explicitly initialize to NULL; it's less
42149         efficient on some hosts.
42150         (close_stdout_status): Remove test as to whether stdout was already
42151         closed; it breaks for the case "echo x | sort >&-".
42152         Quote file name colons.
42153         Do not assume that _("write error") lacks format strings.
42154
42155 2000-05-15  Jim Meyering  <meyering@lucent.com>
42156
42157         * lib/version-etc.c (version_etc_copyright): Update the copyright
42158         string used in all --version output.
42159
42160 2000-05-14  Jim Meyering  <meyering@lucent.com>
42161
42162         * lib/closeout.c (close_stdout_set_file_name): New function.
42163         (close_stdout_status): Use new file-scoped global.
42164         Return right away if fstat says the stdout file descriptor is invalid.
42165         * lib/closeout.h (close_stdout_set_file_name): Declare.
42166
42167 2000-05-10  Jim Meyering  <meyering@lucent.com>
42168
42169         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42170         (close_stdout_set_status): New function.
42171         * lib/closeout.h (close_stdout_set_status): Declare.
42172
42173 2000-05-09  Jim Meyering  <meyering@lucent.com>
42174
42175         * m4/gettext.m4: Rename this...
42176         * m4/libintl.m4: ...to this.
42177
42178 2000-05-08  Jim Meyering  <meyering@lucent.com>
42179
42180         * lib/long-options.c: Don't include closeout.h.
42181         (parse_long_options): Don't call close_stdout for --version.
42182
42183 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42184
42185         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42186         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42187         2.1.3 bug.  This avoids a clash when files like regex.c define
42188         _GNU_SOURCE.
42189
42190 2000-05-06  Jim Meyering  <meyering@lucent.com>
42191
42192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42193         (AC_REPLACE_FUNCS): Add strnlen.
42194
42195         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42196         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42197
42198         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42199         AC_SEARCH_LIBS call for nanosleep.
42200         (LIB_NANOSLEEP): Set and AC_SUBST.
42201
42202 2000-05-06  Jim Meyering  <meyering@lucent.com>
42203
42204         * lib/strnlen.c: Undefine __strnlen and strnlen.
42205         [!weak_alias]: Define __strnlen to strnlen.
42206
42207         * lib/atexit.c: New file, from libiberty.
42208
42209 2000-05-06  Jim Meyering  <meyering@lucent.com>
42210
42211         * lib/closeout.c (close_stdout_status): Also check for errors on the
42212         stderr stream.
42213
42214 2000-05-05  Jim Meyering  <meyering@lucent.com>
42215
42216         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42217         AC_SEARCH_LIBS call for clock_gettime.
42218         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42219
42220         * m4/search-libs.m4: Update from autoconf.
42221
42222         su doesn't work on Solaris 2.6.
42223         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42224         <shadow.h>.  Reported by Dragos Harabor.
42225
42226 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42227
42228         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42229         memcpy instead of xmalloc, xrealloc, path_concat.
42230         (locale_charset): Treat empty environment variables as absent.
42231         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42232
42233 2000-05-04  Jim Meyering  <meyering@lucent.com>
42234
42235         * lib/getopt.c: Update from glibc.
42236         * lib/obstack.c: Likewise.
42237         * lib/obstack.h: Likewise.
42238         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42239         file
42240
42241         * lib/regex.h: Likewise.
42242         * lib/strndup.c: Likewise.
42243         * lib/strnlen.c: New file, from glibc.
42244
42245 2000-05-03  Jim Meyering  <meyering@lucent.com>
42246
42247         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42248
42249 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42250
42251         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42252         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42253         compile-time test, rather than inspecting host and OS, to
42254         decide whether to define _LARGEFILE_SOURCE.
42255
42256 2000-05-01  Jim Meyering  <meyering@lucent.com>
42257
42258         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42259
42260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42261         Based on a patch from Bruno Haible.
42262
42263 2000-05-01  Jim Meyering  <meyering@lucent.com>
42264
42265         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42266
42267 2000-04-29  Jim Meyering  <meyering@lucent.com>
42268
42269         * lib/path-concat.c: Declare strdup only if it's not defined.
42270         * lib/canon-host.c: Likewise.
42271
42272 2000-04-28  Jim Meyering  <meyering@lucent.com>
42273
42274         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42275         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42276         is included first, then limits.h is included by locale.h by libintl.h.
42277         From John David Anglin.
42278
42279 2000-04-25  Jim Meyering  <meyering@lucent.com>
42280
42281         * lib/makepath.c (S_IRWXUGO): Define.
42282         (make_path): Always perform explicit chmod if MODE specifies any
42283         of the `special' permission bits.  Prompted by a bug report against
42284         install from Mate Wierdl and Joost van Baal.
42285
42286 2000-04-18  Jim Meyering  <meyering@lucent.com>
42287
42288         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42289         (jm_PREREQ): Use it.
42290
42291 2000-04-18  Jim Meyering  <meyering@lucent.com>
42292
42293         * lib/README: New file.
42294
42295         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42296         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42297
42298 2000-04-17  Jim Meyering  <meyering@lucent.com>
42299
42300         Get it right :-)
42301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42302         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42303         Suggestion from Akim Demaille.
42304
42305 2000-04-17  Jim Meyering  <meyering@lucent.com>
42306
42307         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42308         the definition of it to rpl_strftime also defined-away the system's
42309         declaration.
42310
42311 2000-04-15  Jim Meyering  <meyering@lucent.com>
42312
42313         Use `C' to denote so-called `contiguous' files, the same way
42314         that tar does.
42315         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42316         (ftypelet): Use S_ISCTG.
42317         From Michael Deutschmann.
42318
42319 2000-04-14  Jim Meyering  <meyering@lucent.com>
42320
42321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42322         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42323         clobbered.
42324
42325 2000-04-14  Jim Meyering  <meyering@lucent.com>
42326
42327         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42328
42329 2000-04-13  Jim Meyering  <meyering@lucent.com>
42330
42331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42332         AH_VERBATIM to insert required #ifndef into config.h.in.
42333         Suggestion from Akim Demaille.
42334
42335 2000-04-12  Jim Meyering  <meyering@lucent.com>
42336
42337         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42338         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42339         Christian Krackowizer.
42340
42341         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42342         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42343         (AC_SYS_LARGEFILE): Require.
42344         (AM_C_PROTOTYPES): Require.
42345
42346 2000-04-08  Jim Meyering  <meyering@lucent.com>
42347
42348         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42349         names don't conflict.  Reported by Eli Zaretskii.
42350
42351 2000-04-07  Jim Meyering  <meyering@lucent.com>
42352
42353         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42354         sys/types.h, to work around system header problems on AIX 3.2.5.
42355         From Bruno Haible.
42356
42357 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42358
42359         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42360         bug.  Deal with the different error behavior of Irix iconv.
42361
42362 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42363
42364         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42365         IRIX if the installer said otherwise.
42366
42367 2000-04-05  Jim Meyering  <meyering@lucent.com>
42368
42369         Portability tweaks required for ultrix4.3.
42370         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42371         (jm_CHECK_DECLS): Add getutent to the list of functions.
42372         (_jm_DECL_HEADERS): Add utmpx.h.
42373         From John David Anglin.
42374
42375         * m4/strftime.m4: Back out the 2000-04-02 change.
42376         Instead of that change, simply undefine putenv in the test program.
42377
42378 2000-04-05  Jim Meyering  <meyering@lucent.com>
42379
42380         Portability tweaks required for ultrix4.3.
42381         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42382         getutent.
42383         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42384         * lib/canon-host.c: Declare strdup.
42385         * lib/path-concat.c: Likewise.
42386         From John David Anglin.
42387
42388 2000-04-04  Jim Meyering  <meyering@lucent.com>
42389
42390         Be more DOS 8.3-friendly.
42391         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42392         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42393         * lib/Makefile.am: Reflect renaming.
42394         Reported by Eli Zaretskii.
42395
42396         Use a temporary file name that won't clash with `charset.alias'
42397         in the DOS 8.3 name space.
42398         * lib/Makefile.am (charset_tmp): Define.
42399         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42400         (uninstall-local): Likewise.
42401         Reported by Eli Zaretskii.
42402
42403 2000-04-03  Jim Meyering  <meyering@lucent.com>
42404
42405         * m4/gettext.m4: Fix typo in comment.
42406
42407         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42408         textutils/configure.in).  Suggestion from Paul Eggert.
42409         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42410
42411 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42412
42413         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42414         variable in the shell rather than using putenv, which isn't
42415         portable.  This avoids the configure-time inter-test dependency
42416         on the potentially-renamed putenv function.
42417
42418 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42419
42420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42421         before checking struct stat.st_blksize, so that
42422         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42423
42424 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42425
42426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42427         since strftime.c uses HAVE_STRFTIME to decide whether to use
42428         the underlying strftime.
42429
42430 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42431
42432         * lib/time/strftime.c (my_strftime): Make sure we call the system
42433         strftime, not ourselves, when invoking the underlying strftime.
42434
42435 2000-03-24  Jim Meyering  <meyering@lucent.com>
42436
42437         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42438         (charset_alias): Define.
42439         (install-exec-local): Factor out common code.
42440         (uninstall-local): Split lines longer than 80.
42441         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42442         (SUFFIXES): Define.
42443         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42444         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42445
42446 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42447
42448         * lib/config.charset: Output a line containing "Packages using this
42449         file".
42450         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42451         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42452         ref-del.sed): New rules.
42453
42454 2000-03-17  Jim Meyering  <meyering@lucent.com>
42455
42456         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42457         Otherwise, include <strings.h>
42458
42459 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42460
42461         * lib/unicodeio.c (utf8_wctomb): New function.
42462         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42463         format instead of in UCS-4 with platform dependent endianness.
42464
42465 2000-03-10  Jim Meyering  <meyering@lucent.com>
42466
42467         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42468         From Marco Franzen.
42469
42470 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42471
42472         * lib/savedir.c (savedir): Work even if directory size is
42473         negative; this can happen with some screwy NFS configurations.
42474
42475 2000-03-06  Jim Meyering  <meyering@lucent.com>
42476
42477         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42478         if it's NULL (because we ran out of memory).  From Bruno Haible.
42479
42480 2000-03-05  Jim Meyering  <meyering@lucent.com>
42481
42482         * lib/localcharset.c ("path-concat.h"): Include.
42483         (get_charset_aliases): Use path_concat instead of ANSI string
42484         concatenation.
42485
42486         * lib/unicodeio.h (PARAMS): Define.
42487         Use it to guard prototype.
42488
42489 2000-03-04  Jim Meyering  <meyering@lucent.com>
42490
42491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42492         for lib/localcharset.c.
42493
42494 2000-03-04  Jim Meyering  <meyering@lucent.com>
42495
42496         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42497         installing into it.
42498         (uninstall-local): Uncomment this rule so `make distcheck' works
42499         once again.
42500
42501         * lib/unicodeio.c (<errno.h>): Include it.
42502         (errno): Declare if not defined.
42503
42504         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42505
42506         * lib/config.charset: New version, incorporating remarks from a linux
42507         i18n mailing list.  From Bruno Haible.
42508
42509 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42510
42511         * m4/codeset.m4: New file.
42512         * m4/iconv.m4: New file.
42513         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42514
42515 2000-03-03  Jim Meyering  <meyering@lucent.com>
42516
42517         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42518
42519 2000-03-02  Jim Meyering  <meyering@lucent.com>
42520
42521         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42522         the messages come out on separate lines.
42523
42524         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42525         rather than jm_CHECK_DECLARATIONS.
42526         * m4/decl.m4: Remove now-unused file.
42527
42528         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42529         geteuid.
42530
42531 2000-03-02  Jim Meyering  <meyering@lucent.com>
42532
42533         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42534
42535 2000-03-01  Jim Meyering  <meyering@lucent.com>
42536
42537         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42538         * lib/unicodeio.c: Likewise.
42539
42540 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42541
42542         * lib/config.charset: New file.
42543         * lib/localcharset.c: New file.
42544         * lib/unicodeio.h, lib/unicodeio.c: New files.
42545         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42546         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42547         (noinst_HEADERS): Add unicodeio.h.
42548         (all-local, install-exec-local, charset.alias): New targets.
42549
42550 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42551
42552         * lib/quotearg.c (ALERT_CHAR): New macro.
42553         (quotearg_buffer_restyled): Use it.
42554
42555 2000-02-27  Jim Meyering  <meyering@lucent.com>
42556
42557         * m4/check-decl.m4: Add getenv to the list.
42558
42559 2000-02-27  Jim Meyering  <meyering@lucent.com>
42560
42561         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42562         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42563
42564         * lib/backupfile.c: Guard inclusion of stdlib.h with
42565         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42566         Declare malloc if needed.
42567
42568         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42569         `#ifndef HAVE_DECL..'
42570         now that autoconf always defines the HAVE_DECL_ symbols.
42571         * lib/human.c: Likewise.
42572         * lib/same.c: Likewise.
42573         * lib/strtoumax.c: Likewise.
42574
42575         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42576         declaration check was not run.
42577         * lib/hash.c: Likewise.
42578         * lib/human.c: Likewise.
42579         * lib/same.c: Likewise.
42580         * lib/strtoumax.c: Likewise.
42581
42582         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42583         `.', then first look up the entire `.'-containing string as a login
42584         name.
42585
42586 2000-02-23  Jim Meyering  <meyering@lucent.com>
42587
42588         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42589         in place of my hack.
42590
42591 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42592
42593         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42594         (textint): New typedef.
42595         (parser_control): Member year changed from int to textint.
42596         All uses changed.
42597         (YYSTYPE): Removed; replaced by %union with int and textint members.
42598         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42599         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42600         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42601         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42602         (date, number, to_year): Use width of number in digits, not its value,
42603         to determine whether it's a 2-digit year, or a 2-digit time.
42604         (yylex): Store number of digits of numeric tokens.
42605         Reported by John Kendall.
42606
42607         (parser_control): Changed from struct parser_control to typedef (for
42608         consistency).  All uses changed.
42609
42610         (tID): Removed; not used.
42611         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42612
42613 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42614
42615         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42616         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42617
42618 2000-02-12  Jim Meyering  <meyering@lucent.com>
42619
42620         * lib/userspec.c (ISDIGIT): Define it.
42621         (isdigit): Remove definition.
42622         (is_number): Use ISDIGIT, not isdigit.
42623         <libintl.h>: Include.
42624         (_ and N_): Define.
42625         (parse_user_spec): Mark translatable strings.
42626
42627 2000-02-10  Jim Meyering  <meyering@lucent.com>
42628
42629         With these changes, nanosleep.[ch] are finally enough like the other
42630         lib/* replacement files to compile on a few more losing systems.
42631
42632         * lib/nanosleep.h: Don't include config.h.
42633         Remove prototype from declaration of nanosleep.
42634         (PARAMS): Remove now-unneeded definition.
42635         * lib/nanosleep.c: #undef nanosleep.
42636         (rpl_nanosleep): Rename from nanosleep.
42637
42638 2000-02-10  Jim Meyering  <meyering@lucent.com>
42639
42640         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42641         gnu_nanosleep to rpl_nanosleep.
42642
42643 2000-02-09  Jim Meyering  <meyering@lucent.com>
42644
42645         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42646         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42647
42648 2000-02-08  Akim Demaille  <akim@epita.fr>
42649
42650         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42651         `[' and `]' and remove uses of `changequote'.
42652         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42653         (AC_SYS_LARGEFILE): Likewise.
42654         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42655         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42656         of changequote.
42657         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42658         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42659         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42660         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42661
42662 2000-02-05  Jim Meyering  <meyering@lucent.com>
42663
42664         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42665         Remove explicit use of AC_HEADER_TIME.  It is required by
42666         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42667         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42668         in autoconf whereby the expansion of the latter ended up preceding
42669         the expansion of its prerequisite, AC_HEADER_TIME.
42670         Reported by Volker Borchert.
42671
42672 2000-02-03  Jim Meyering  <meyering@lucent.com>
42673
42674         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42675
42676 2000-02-03  Jim Meyering  <meyering@lucent.com>
42677
42678         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42679         rather than with `#if HAVE_UTMPNAME'.
42680
42681 2000-02-02  Jim Meyering  <meyering@lucent.com>
42682
42683         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42684         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42685         Reported by Eli Zaretskii.
42686
42687 2000-02-01  Jim Meyering  <meyering@lucent.com>
42688
42689         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42690
42691 2000-01-31  Jim Meyering  <meyering@lucent.com>
42692
42693         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42694         functions.  Add the time.h and sys/time.h headers along with the
42695         AC_REQUIRE'ment of AC_HEADER_TIME.
42696
42697 2000-01-31  Jim Meyering  <meyering@lucent.com>
42698
42699         * lib/nanosleep.h (nanosleep): Guard declaration with
42700         `#if ! HAVE_DECL_NANOSLEEP'.
42701         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42702         the declaration in that vendor's sys/timers.h.
42703         Reported by Christian Krackowizer.
42704
42705         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42706         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42707         (ISPRINT): Likewise.
42708         Reported by Tom Tromey.
42709
42710 2000-01-30  Jim Meyering  <meyering@lucent.com>
42711
42712         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42713
42714         * m4/prereq.m4 (utmp_includes): Define.
42715         Check for ut_user and ut_name members in both struct utmpx
42716         and struct utmp.
42717
42718 2000-01-30  Jim Meyering  <meyering@lucent.com>
42719
42720         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42721         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42722         header files where only utmpx.ut_user is declared.
42723
42724         * lib/readutmp.h (UT_USER): Define.
42725
42726 2000-01-29  Jim Meyering  <meyering@lucent.com>
42727
42728         * m4/lib-check.m4: New file containing library-related checks from
42729         fileutils and sh-utils (textutils had none).
42730
42731 2000-01-28  Jim Meyering  <meyering@lucent.com>
42732
42733         * m4/perl.m4: Change format of warning message to look more like that
42734         from the missing script.  Suggestion from François Pinard.
42735
42736 2000-01-25  Jim Meyering  <meyering@lucent.com>
42737
42738         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42739         well as time.h in the compile check.
42740         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42741         Fix typo in cross-compiling case: s/yes/no/.
42742
42743 2000-01-23  Jim Meyering  <meyering@lucent.com>
42744
42745         * m4/jm-macros.m4: Move df-related tests here from
42746         fileutils/configure.in
42747
42748         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42749         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42750
42751         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42752         s/space/ac_fsusage_space/.
42753         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42754
42755         * m4/ftruncate.m4: New file (derived from part of
42756         fileutils/configure.in).
42757         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42758         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42759
42760         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42761         AC_SUBST these here, rather than just in sh-util/configure.in, so
42762         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42763         all the same.
42764         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42765         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42766         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42767         (AC_SUBST(POW_LIBM)): Likewise.
42768         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42769
42770 2000-01-23  Jim Meyering  <meyering@lucent.com>
42771
42772         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42773         obstack.c.
42774
42775 2000-01-22  Jim Meyering  <meyering@lucent.com>
42776
42777         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42778
42779         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42780
42781         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42782         configure.in
42783         (AC_CHECK_HEADERS): Likewise for sh-utils.
42784         (AC_CHECK_HEADERS): Likewise for textutils.
42785         Merge the three lists of headers.
42786
42787         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42788         from fileutils' configure.in.
42789
42790         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42791         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42792         check-decl.m4.
42793
42794         * m4/check-decl.m4: Use #if rather than #ifdef.
42795         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42796         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42797         (_jm_DECL_HEADERS): Define new function.
42798         (jm_CHECK_DECLARATIONS): Require it.
42799
42800 2000-01-22  Jim Meyering  <meyering@lucent.com>
42801
42802         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42803         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42804         Required for some AIX systems.  Reported by Christian Krackowizer.
42805         [TESTING] (main): New function.
42806
42807         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42808         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42809         letters.
42810
42811         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42812         iswprint.
42813
42814         * lib/strverscmp.c (ISDIGIT): Define.
42815         (strverscmp): Use ISDIGIT, not isdigit.
42816
42817 2000-01-19  Jim Meyering  <meyering@lucent.com>
42818
42819         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42820         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42821         defines `struct timespec' in <sys/time.h>
42822
42823         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42824         Thanks to Akim for explaining.
42825
42826 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42827
42828         * lib/nanosleep.c (nanosleep):
42829         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42830         POSIX.1 doesn't require SA_INTERRUPT and some systems
42831         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42832         it's been part of POSIX.1 since day 1 (in 1988).
42833
42834 2000-01-17  Jim Meyering  <meyering@lucent.com>
42835
42836         * lib/interlock: Remove unused file.  Reported by François Pinard.
42837
42838 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42839
42840         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42841         alert, backslash, formfeed, and vertical tab unnecessarily in
42842         shell quoting style.
42843
42844 2000-01-16  Jim Meyering  <meyering@lucent.com>
42845
42846         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42847         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42848         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42849         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42850
42851 2000-01-16  Jim Meyering  <meyering@lucent.com>
42852
42853         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42854         because the latter didn't work.
42855
42856 2000-01-15  Jim Meyering  <meyering@lucent.com>
42857
42858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42859         (AC_REPLACE_FUNCS): Add memcpy and memset.
42860         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42861         Add strpbrk.
42862         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42863
42864 2000-01-12  Jim Meyering  <meyering@lucent.com>
42865
42866         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42867         (jm_PREREQ): Use it.
42868         (jm_PREREQ_READUTMP): New macro.
42869         (jm_PREREQ): Use it.
42870
42871 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42872
42873         Quote multibyte characters correctly.
42874         * m4/c-bs-a.m4: New file.
42875         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42876         (jm_PREREQ): Use it.
42877
42878 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42879
42880         * m4/uintmax_t.m4: Port to autoconf 2.13.
42881
42882 2000-01-08  Jim Meyering  <meyering@ascend.com>
42883
42884         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42885         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42886
42887 2000-01-04  Jim Meyering  <meyering@ascend.com>
42888
42889         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42890         jm_STRUCT_DIRENT_D_TYPE.
42891         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42892         jm_STRUCT_DIRENT_D_INO.
42893         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42894         jm_STRUCT_UTIMBUF.
42895         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42896         renamings.
42897         * m4/utime.m4: Likewise.
42898
42899         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42900         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42901
42902 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42903
42904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42905         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42906
42907 2000-01-02  Jim Meyering  <meyering@ascend.com>
42908
42909         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42910         remember if this is necessary.
42911
42912 1999-12-26  Jim Meyering  <meyering@ascend.com>
42913
42914         * m4/jm-macros.m4: Use it here.
42915         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42916
42917 1999-12-23  Jim Meyering  <meyering@ascend.com>
42918
42919         * m4/jm-macros.m4: Check for clock_gettime (moved from
42920         fileutils/configure.in)
42921         Check for gettimeofday.
42922
42923 1999-12-20  Jim Meyering  <meyering@ascend.com>
42924
42925         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42926         autoconf-2.14a-1999-12-20.
42927
42928 1999-12-19  Jim Meyering  <meyering@ascend.com>
42929
42930         * m4/lstat-slash.m4: New file.
42931         * m4/jm-macros.m4: Use the new macro:
42932         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42933
42934 1999-12-07  Jim Meyering  <meyering@ascend.com>
42935
42936         * m4/perl.m4: Require that File::Compare be available, too.
42937         Too many systems seem to lack it.
42938
42939         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42940         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42941
42942 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42943
42944         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42945         problem with the QNX 4.25 shell, which doesn't propagate exit
42946         status of failed commands inside shell assignments.
42947
42948 1999-11-17  Jim Meyering  <meyering@ascend.com>
42949
42950         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42951
42952 1999-11-07  Jim Meyering  <meyering@ascend.com>
42953
42954         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42955
42956 1999-11-06  Jim Meyering  <meyering@ascend.com>
42957
42958         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42959         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42960
42961 1999-11-05  Jim Meyering  <meyering@ascend.com>
42962
42963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42964         configure.in of textutils, fileutils, and sh-utils into this one
42965         (shared between those packages) file.
42966         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42967         AC_STRUCT_ST_BLKSIZE.
42968
42969 1999-11-03  Jim Meyering  <meyering@ascend.com>
42970
42971         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42972         of AC_CHECK_TYPE checks includes unistd.h.
42973         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42974         Suggestion from Akim Demaille.
42975
42976 1999-10-30  Jim Meyering  <meyering@ascend.com>
42977
42978         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42979         m4-quoted string.
42980         * m4/ls-mntd-fs.m4: Likewise.
42981         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42982         * m4/jm-winsz1.m4: Likewise.
42983
42984         * m4/const.m4: Remove file, since the fix made it into the experimental
42985         version of autoconf.
42986         * m4/mktime.m4: Likewise.
42987
42988         * m4/check-type.m4: Remove file, now that the latest version of
42989         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42990
42991         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42992         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42993         AC_CHECK_TYPE.
42994
42995 1999-10-04  Jim Meyering  <meyering@ascend.com>
42996
42997         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42998
42999 1999-09-22  Paul Eggert  <eggert@twinsun.com>
43000
43001         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
43002         2.95.1 bug with HP-UX 10.20.
43003
43004 1999-09-17  Jim Meyering  <meyering@ascend.com>
43005
43006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
43007         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
43008         due to missing strdup (against sh-utils-2.0).
43009
43010 1999-08-29  Jim Meyering  <meyering@ascend.com>
43011
43012         * m4/jm-macros.m4: Require jm_BISON.
43013         * m4/bison.m4: New file.
43014
43015 1999-08-17  Paul Eggert  <eggert@twinsun.com>
43016
43017         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
43018         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
43019
43020 1999-08-05  Jim Meyering  <meyering@ascend.com>
43021
43022         * m4/getline.m4: Rename test file from conftestdata to conftest.data
43023         to avoid conflicts with `conftest' on 8+3 filesystems.
43024         Suggestion from Eli Zaretskii.
43025
43026 1999-08-04  Jim Meyering  <meyering@ascend.com>
43027
43028         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
43029         fileutils and sh-utils (textutils's getline test was inadequate).
43030         (AM_FUNC_GETLINE): Run this test.
43031         (AC_CHECK_FUNCS): Check for getdelim.
43032         Reported by Bob Proulx.
43033
43034 1999-08-02  Jim Meyering  <meyering@ascend.com>
43035
43036         * m4/jm-macros.m4: Add a comment.
43037
43038 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43039
43040         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
43041         <inttypes.h> defines strtoumax as a macro (and not as a
43042         function).
43043
43044 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43045
43046         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
43047         that we can shift, multiply and divide unsigned long long
43048         values; Ultrix cc can't do it.
43049
43050 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43051
43052         * m4/mktime.m4: New file, which is a preview of what should appear
43053         in the next public autoconf release.
43054
43055 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43056
43057         * m4/lfs.m4: Remove this file.
43058         * m4/largefile.m4: New file.  It contains the old contents of
43059         lfs.m4, except that all names with prefix AC_LFS have been
43060         changed to use the prefix AC_SYS_LARGEFILE instead, to be
43061         compatible with future autoconf versions.  Also, some minor m4
43062         quoting problems have been fixed.
43063
43064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
43065
43066         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
43067         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
43068         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
43069         and simplify the shell code.
43070
43071 1999-08-01  Jim Meyering  <meyering@ascend.com>
43072
43073         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
43074         m4.
43075
43076 1999-07-20  Jim Meyering  <meyering@ascend.com>
43077
43078         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
43079
43080 1999-07-15  Jim Meyering  <meyering@ascend.com>
43081
43082         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
43083
43084 1999-05-22  Jim Meyering  <meyering@ascend.com>
43085
43086         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
43087
43088 1999-05-20  Jim Meyering  <meyering@ascend.com>
43089
43090         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
43091         Add a colon after each `then' in case $4 is empty.
43092
43093 1999-05-16  Jim Meyering  <meyering@ascend.com>
43094
43095         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
43096
43097 1999-05-10  Jim Meyering  <meyering@ascend.com>
43098
43099         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
43100
43101         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
43102         AC_FUNC_MKTIME.
43103
43104 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
43105
43106         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
43107
43108 1999-05-04  Paul Eggert  <eggert@twinsun.com>
43109
43110         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
43111         not CPPFLAGS, so that linking works correctly in IRIX.
43112
43113 1999-04-30  Paul Eggert  <eggert@twinsun.com>
43114
43115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
43116
43117 1999-04-20  Paul Eggert  <eggert@twinsun.com>
43118
43119         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
43120         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
43121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
43122         jm_AC_TYPE_UNSIGNED_LONG_LONG.
43123         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
43124
43125         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
43126
43127 1999-04-20  Jim Meyering  <meyering@ascend.com>
43128
43129         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
43130         AC_REPLACE xstroull if necessary.  From Paul Eggert.
43131         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
43132
43133 1999-04-18  Jim Meyering  <meyering@ascend.com>
43134
43135         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
43136         * m4/jm-macros.m4: Use it.
43137
43138 1999-04-06  Jim Meyering  <meyering@ascend.com>
43139
43140         * m4/strftime.m4: Remove test for %f.
43141
43142 1999-03-29  Jim Meyering  <meyering@ascend.com>
43143
43144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
43145         superset of the AC_TYPE_* checks in the textutils, fileutils,
43146         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
43147         AC_TYPE_PID_T.
43148
43149 1999-03-28  Jim Meyering  <meyering@ascend.com>
43150
43151         * m4/jm-macros.m4: Define GNU_PACKAGE here.
43152         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
43153         replaced e.g., in the *.sh files of the sh-utils.
43154
43155 1999-03-20  Jim Meyering  <meyering@ascend.com>
43156
43157         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43158         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43159         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43160
43161 1999-03-19  Jim Meyering  <meyering@ascend.com>
43162
43163         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43164
43165 1999-03-12  Jim Meyering  <meyering@ascend.com>
43166
43167         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43168
43169 1999-03-07  Jim Meyering  <meyering@ascend.com>
43170
43171         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43172         declared.
43173
43174 1999-02-17  Jim Meyering  <meyering@ascend.com>
43175
43176         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43177         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43178
43179 1999-02-07  Jim Meyering  <meyering@ascend.com>
43180
43181         * m4/group-member.m4: New file -- extracted from sh-utils'
43182         configure.in.
43183
43184         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43185         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43186
43187 1999-02-06  Jim Meyering  <meyering@ascend.com>
43188
43189         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43190         * m4/fnmatch.m4: Likewise.
43191         * m4/getgroups.m4: Likewise.
43192         * m4/lstat.m4: Likewise.
43193         * m4/malloc.m4: Likewise.
43194         * m4/putenv.m4: Likewise.
43195         * m4/realloc.m4: Likewise.
43196         * m4/regex.m4: Likewise.
43197         * m4/stat.m4: Likewise.
43198         * m4/strftime.m4: Likewise.
43199         Suggestion from Alain Magloire.
43200
43201         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43202         * m4/fnmatch.m4: Likewise.
43203         * m4/getgroups.m4: Likewise.
43204         * m4/getline.m4: Likewise.
43205         * m4/lstat.m4: Likewise.
43206         * m4/malloc.m4: Likewise.
43207         * m4/memcmp.m4: Likewise.
43208         * m4/putenv.m4: Likewise.
43209         * m4/realloc.m4: Likewise.
43210         * m4/regex.m4: Likewise.
43211         * m4/stat.m4: Likewise.
43212         * m4/strftime.m4: Likewise.
43213         Suggestion from Alain Magloire.
43214
43215         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43216         an argument.
43217
43218         * m4/regex.m4: Add a run-time Test for proper operation of
43219         re_compile_pattern.
43220
43221 1999-01-31  Jim Meyering  <meyering@ascend.com>
43222
43223         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43224
43225 1999-01-30  Jim Meyering  <meyering@ascend.com>
43226
43227         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43228
43229         * m4/jm-mktime.m4: Make this a wrapper around the official
43230         AM_FUNC_MKTIME rather than my private copy, now that the official one
43231         is up to date.
43232         * m4/mktime.m4: Remove file.
43233
43234         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43235         * m4/uptime.m4: Likewise.
43236         * m4/uintmax_t.m4: Likewise.
43237
43238 1999-01-28  Jim Meyering  <meyering@ascend.com>
43239
43240         * m4/jm-macros.m4: Use jm_AFS.
43241         * m4/afs.m4: New file (from fileutils' configure.in).
43242
43243         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43244         * m4/chown.m4: Likewise.
43245         * m4/d-ino.m4: Likewise.
43246         * m4/d-type.m4: Likewise.
43247         * m4/fnmatch.m4: Likewise.
43248         * m4/getgroups.m4: Likewise.
43249         * m4/gettext.m4: Likewise.
43250         * m4/jm-mktime.m4: Likewise.
43251         * m4/jm-winsz2.m4: Likewise.
43252         * m4/lcmessage.m4: Likewise.
43253         * m4/ls-mntd-fs.m4: Likewise.
43254         * m4/malloc.m4: Likewise.
43255         * m4/memcmp.m4: Likewise.
43256         * m4/putenv.m4: Likewise.
43257         * m4/realloc.m4: Likewise.
43258         * m4/st_mtim.m4: Likewise.
43259         * m4/strftime.m4: Likewise.
43260
43261 1999-01-16  Jim Meyering  <meyering@ascend.com>
43262
43263         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43264         (ARGMATCH_DIE_DECL): Define.
43265
43266 1999-01-12  Jim Meyering  <meyering@ascend.com>
43267
43268         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43269         Reported by Lars Hecking.
43270
43271 1999-01-10  Jim Meyering  <meyering@ascend.com>
43272
43273         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43274         gross kludge.
43275         * m4/inttypes_h.m4: Likewise.
43276         * m4/lstat.m4: Likewise.
43277         * m4/malloc.m4: Likewise.
43278         * m4/readdir.m4: Likewise.
43279         * m4/realloc.m4: Likewise.
43280         * m4/st_dm_mode.m4: Likewise.
43281         * m4/stat.m4: Likewise.
43282         * m4/utimbuf.m4: Likewise.
43283         * m4/utimes.m4: Likewise.
43284
43285         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43286         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43287         comments in config.h.in are meaningful.
43288
43289         * m4/jm-macros.m4: Require autoconf-2.13 here.
43290
43291         * m4/regex.m4: By default, don't use the included regex.c on systems
43292         with glibc 2.  Suggestion from Uli Drepper.
43293
43294 1999-01-02  Jim Meyering  <meyering@ascend.com>
43295
43296         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43297
43298 1998-12-18  Jim Meyering  <meyering@ascend.com>
43299
43300         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43301         Based on a suggestion from Lars Hecking.
43302
43303 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43304
43305         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43306
43307 1998-11-16  Jim Meyering  <meyering@ascend.com>
43308
43309         * m4/lfs.m4: Double-quote the `uname...` expression.
43310
43311 1998-11-14  Jim Meyering  <meyering@ascend.com>
43312
43313         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43314         * m4/stat.m4: Likewise.
43315
43316 1998-11-03  Jim Meyering  <meyering@ascend.com>
43317
43318         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43319         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43320
43321 1998-10-18  Jim Meyering  <meyering@ascend.com>
43322
43323         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43324
43325 1998-10-17  Jim Meyering  <meyering@ascend.com>
43326
43327         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43328         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43329         calls for those previously hard-coded headers.  Instead, take a new
43330         parameter.
43331         (jm_CHECK_DECLARATIONS): Reflect interface change.
43332         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43333         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43334
43335         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43336
43337 1998-10-14  Jim Meyering  <meyering@ascend.com>
43338
43339         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43340         instead of "TZ=America/Vancouver".  From Paul Eggert.
43341
43342 1998-10-11  Jim Meyering  <meyering@ascend.com>
43343
43344         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43345         This adds a test for a recently added compatibility fix for mktime.c.
43346         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43347
43348 1998-09-27  Jim Meyering  <meyering@ascend.com>
43349
43350         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43351
43352         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43353         ../configure.in, including a change from Gordon Matzigkeit to allow
43354         cross-compiling for the Hurd.
43355
43356         * m4/glibc.m4: New file/macro to test for the GNU C Library
43357         versions 1 and 2.  From Gordon Matzigkeit.
43358         Indent.
43359
43360 1998-09-21  Jim Meyering  <meyering@ascend.com>
43361
43362         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43363
43364 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43365
43366         Port nanosecond-resolution times to UnixWare 2.1.2 and
43367         pedantic Solaris 2.6.
43368
43369         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43370         AC_STRUCT_ST_MTIM.
43371         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43372         Generate name of ns member, instead of just 1 or undef.
43373         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43374
43375 1998-08-15  Jim Meyering  <meyering@ascend.com>
43376
43377         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43378         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43379         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43380         instead of jm_TYPE_SSIZE_T.
43381
43382 1998-08-12  Jim Meyering  <meyering@ascend.com>
43383
43384         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43385
43386 1998-08-02  Jim Meyering  <meyering@ascend.com>
43387
43388         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43389         in acconfig.h manually.
43390
43391 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43392
43393         * m4/st_mtim.m4: New file.
43394
43395 1998-07-28  Jim Meyering  <meyering@ascend.com>
43396
43397         * m4/utimes.m4: Undef stat.
43398
43399 1998-07-25  Jim Meyering  <meyering@ascend.com>
43400
43401         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43402         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43403
43404 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43405
43406         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43407         uid and gid actually remain unchanged.
43408
43409 1998-07-07  Jim Meyering  <meyering@ascend.com>
43410
43411         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43412
43413 1998-07-04  Jim Meyering  <meyering@ascend.com>
43414
43415         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43416         to prove that this macro can be used in packages without regex.c.
43417
43418 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43419
43420         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43421         is to be used.
43422
43423 1998-07-03  Jim Meyering  <meyering@ascend.com>
43424
43425         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43426
43427         * m4/gettext.m4: New file -- from gettext-0.10.35.
43428         * m4/lcmessage.m4: Likewise.
43429         * m4/progtest.m4: Likewise.
43430
43431         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43432         * m4/jm-macros.m4: Require the new macro.
43433
43434 1998-06-29  Jim Meyering  <meyering@ascend.com>
43435
43436         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43437         for the definition of NGROUPS (used in a system header included
43438         by sys/mount.h).
43439
43440 1998-06-28  Jim Meyering  <meyering@ascend.com>
43441
43442         * m4/ls-mntd-fs.m4: New file.
43443         * m4/fstypename.m4: New file.
43444
43445         * m4/jm-macros.m4: Require the new macro.
43446         * m4/jm-glibc-io.m4: New file.
43447
43448 1998-05-19  Jim Meyering  <meyering@ascend.com>
43449
43450         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43451         * m4/lchown.m4: New file.
43452
43453         * m4/Makefile.am.in: New file.
43454         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43455
43456 1998-05-14  Jim Meyering  <meyering@ascend.com>
43457
43458         * m4/Makefile.am (EXTRA_DIST): Add them.
43459         * m4/jm-macros.m4: New file.
43460         * m4/utimbuf.m4: New file.
43461
43462 1998-05-12  Jim Meyering  <meyering@ascend.com>
43463
43464         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43465
43466 1998-05-11  Jim Meyering  <meyering@ascend.com>
43467
43468         * m4/isc-posix.m4: New file.
43469
43470 1998-05-10  Jim Meyering  <meyering@ascend.com>
43471
43472         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43473
43474 1998-05-09  Jim Meyering  <meyering@ascend.com>
43475
43476         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43477         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43478         with automake.
43479
43480         * m4/ssize_t.m4: New file.
43481         * m4/mktime.m4: Remove file -- the new automake has this now.
43482
43483 1998-04-26  Jim Meyering  <meyering@ascend.com>
43484
43485         * m4/assert.m4: New file.
43486         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43487
43488 1998-04-05  Jim Meyering  <meyering@ascend.com>
43489
43490         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43491         (jm_PREREQ): Use it here.
43492
43493 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43494
43495         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43496         in acconfig.h.
43497
43498 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43499
43500         * m4/prereq.m4: New file.
43501         * m4/error.m4: New file.
43502         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43503
43504 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43505
43506         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43507         cache-check for the same variable -- that defeated the purpose of
43508         the test; the test program was never run.  This was a problem only
43509         on systems with losing getline functions -- HP-UX 10.20 is one.
43510         Reported by Bjorn Helgaas.
43511
43512 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43513
43514         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43515
43516 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43517
43518         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43519
43520         * m4/const.m4: New file.  Use an initializer in this declaration
43521         typedef int charset[2]; const charset x;
43522         Reported by Bob Glickstein.
43523
43524 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43525
43526         * m4/chown.m4: Fix reversed types on -1 args to chown.
43527         From Kaveh Ghazi.
43528
43529 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43530
43531         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43532         Add lseek and memchr.
43533
43534         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43535         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43536         have a 20-character limit on names.
43537
43538 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43539
43540         * m4/inttypes_h.m4: New file.
43541         * m4/uintmax_t.m4: New file.
43542         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43543
43544
43545         -----
43546
43547         Local Variables:
43548         coding: utf-8
43549         End:
43550
43551         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43552
43553         Copying and distribution of this file, with or without
43554         modification, are permitted provided the copyright notice
43555         and this notice are preserved.