test-chown.h: correct a cast
[gnulib.git] / ChangeLog
1 2011-04-10  Jim Meyering  <meyering@redhat.com>
2
3         test-chown.h: correct a cast
4         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5         when the destination is a stat.st_gid.
6
7 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8
9         getaddrinfo: Fix test for sa_len member.
10         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11         include <sys/types.h> before <sys/socket.h>.
12
13 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14
15         maint: change "can not" to "cannot"
16         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17         boundaries.
18
19 2011-04-09  Jim Meyering  <meyering@redhat.com>
20
21         maint: change "a a" to "a"
22         * tests/test-lchown.h (test_lchown): s/a a/a/
23
24         maint.mk: prohibit \<the the\>
25         * top/maint.mk (sc_prohibit_the_the): New rule.
26
27         maint: fix "the the" in comment
28         * lib/count-one-bits.h: s/the the/the/
29
30         maint: change "can not" to "cannot"
31         But do not change the occurrences in maintain.texi or in
32         build-aux/po/Makefile.in.in, which I presume comes from gettext.
33         * doc/gnulib-tool.texi: s/can not/cannot/
34         * doc/posix-functions/accept.texi (accept): Likewise.
35         * doc/posix-functions/socket.texi (socket): Likewise.
36         * lib/mbrtowc.c: Likewise.
37
38         maint.mk: prohibit use of "can not"
39         * top/maint.mk (sc_prohibit_can_not): New rule.
40         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41
42 2011-04-09  Bruno Haible  <bruno@clisp.org>
43
44         careadlinkat: Guard against misuse of careadlinkatcwd.
45         * lib/careadlinkat.c: Include <stdlib.h>.
46         (careadlinkatcwd): Check that the fd argument is as expected.
47
48 2011-04-09  Bruno Haible  <bruno@clisp.org>
49
50         careadlinkat: Use common coding style.
51         * lib/careadlinkat.c: Move gnulib includes after system includes.
52
53 2011-04-09  Bruno Haible  <bruno@clisp.org>
54
55         careadlinkat: Clarify specification.
56         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57         (careadlinkatcwd): Add comment.
58         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
59
60 2011-04-09  Bruno Haible  <bruno@clisp.org>
61
62         areadlinkat: Avoid link error on many platforms.
63         * modules/areadlinkat (Depends-on): Add areadlink.
64
65 2011-04-09  Bruno Haible  <bruno@clisp.org>
66
67         allocator, careadlinkat: Fix double-inclusion guard.
68         * lib/allocator.h: Fix double-inclusion guard.
69         * lib/careadlinkat.h: Likewise.
70
71 2011-04-09  Bruno Haible  <bruno@clisp.org>
72
73         relocatable-prog-wrapper: Update after module 'areadlink' changed.
74         * lib/relocwrapper.c: Update dependencies hierarchy.
75         * build-aux/install-reloc: Update list of files to be compiled.
76         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
77         lib/allocator.[hc].
78
79 2011-04-08  Eric Blake  <eblake@redhat.com>
80
81         strftime: silence gnulib-tool warning
82         * modules/strftime-tests (Depends-on): Drop automatic dependency.
83
84 2011-04-08  Bruno Haible  <bruno@clisp.org>
85
86         verify: Fix syntax error with GCC 4.6 in C++ mode.
87         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
88         (HAVE_STATIC_ASSERT): New macro.
89         (verify_true, verify): Use 'static_assert' if it is supported and
90         '_Static_assert' is not supported.
91
92 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
93
94         allocator: New module.
95         * modules/allocator, lib/allocator.c: New files.
96         * lib/allocator.h (stdlib_allocator): New decl.
97         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
98         Remove.  Do not include <stdlib.h>.
99         (careadlinkat): Use stdlib_allocator instead of rolling our own.
100         * modules/careadlinkat (Files): Remove lib/allocator.h.
101         (Depends-on): Add allocator.
102
103         stdlib: let modules use system malloc, realloc
104         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
105         if !_GL_USE_STDLIB_ALLOC.
106         (malloc, realloc): Limit this change to a smaller scope.
107
108         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
109         (malloc, realloc): Don't #undef; no longer needed.
110         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
111         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
112         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
113         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
114         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
115         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
116         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
117         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
118
119         careadlinkat: rename members to avoid problem
120         * lib/allocator.h (struct allocator): Rename members from
121         malloc/realloc to allocate/reallocate, to avoid problems if malloc
122         and realloc are #define'd.  Reported by Eric Blake in
123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
124         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
125
126 2011-04-08  Eric Blake  <eblake@redhat.com>
127
128         nonblocking: reduce dependency
129         * tests/test-nonblocking.c: Only test sockets when in use.
130         * modules/nonblocking-tests (Depends-on): Drop socket.
131         (Makefile.am): Link even if sockets are not present.
132         * modules/pipe2-tests (Makefile.am): Likewise.
133         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
134
135         pipe2: fix O_NONBLOCK support on mingw
136         * modules/pipe2 (Depends-on): Add nonblocking.
137         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
138         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
139         * tests/test-nonblocking.c (main): Likewise.
140         * modules/pipe2-tests (Makefile.am): Avoid link failure.
141
142         fcntl-h: fix O_ACCMODE on cygwin
143         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
144         * lib/fcntl.in.h (O_ACCMODE): Fix it.
145
146         pipe-filter: drop O_NONBLOCK workarounds
147         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
148         * modules/pipe-filter-ii (Depends-on): Likewise.
149         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
150
151         nonblocking: provide O_NONBLOCK for mingw
152         * modules/nonblocking (Depends-on): Add open.
153         (configure.ac): Set new witness macro.
154         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
155         * modules/fcntl-h (Makefile.am): Substitute it.
156         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
157         nonblocking module is in use.
158         * lib/nonblocking.c: Adjust portability test.
159         * lib/open.c (open): Don't let native open see gnulib flag.
160         * tests/test-fcntl-h.c (main): Enhance test.
161         * tests/test-open.h (test_open): Likewise.
162         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
163
164         careadlinkat: fix compilation error on mingw
165         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
166         within struct allocator.
167
168 2011-04-06  Eric Blake  <eblake@redhat.com>
169
170         binary-io: relicense under LGPLv2+
171         * modules/binary-io (License): Relax to LGPLv2+.
172         Requested for libvirt, and required by pipe2.
173
174 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
175
176         verify: use _Static_assert if available
177         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
178         (verify_true, verify): Use it if available.  This generates better
179         diagnostics with GCC 4.6.0 and later.
180
181 2011-04-05  Bruno Haible  <bruno@clisp.org>
182
183         Remove leftover generated .h files after config.status changed.
184
185         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
186         GL_GENERATE_ALLOCA_H.
187         * modules/alloca-opt (Makefile.am): Remove alloca.h if
188         GL_GENERATE_ALLOCA_H evaluates to false.
189
190         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
191         GL_GENERATE_ARGZ_H.
192         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
193         evaluates to false.
194
195         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
196         GL_GENERATE_BYTESWAP_H.
197         * modules/byteswap (Makefile.am): Remove byteswap.h if
198         GL_GENERATE_BYTESWAP_H evaluates to false.
199
200         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
201         GL_GENERATE_ERRNO_H.
202         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
203         evaluates to false.
204
205         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
206         GL_GENERATE_FLOAT_H.
207         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
208         evaluates to false.
209
210         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
211         GL_GENERATE_FNMATCH_H.
212         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
213         GL_GENERATE_FNMATCH_H evaluates to false.
214
215         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
216         GL_GENERATE_GLOB_H.
217         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
218         evaluates to false.
219
220         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
221         automake conditional GL_GENERATE_ICONV_H.
222         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
223         evaluates to false.
224
225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
226         GL_GENERATE_NETINET_IN_H.
227         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
228         GL_GENERATE_NETINET_IN_H evaluates to false.
229
230         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
231         conditional GL_GENERATE_PTHREAD_H.
232         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
233         * modules/pthread (Makefile.am): Remove pthread.h if
234         GL_GENERATE_PTHREAD_H evaluates to false.
235
236         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
237         GL_GENERATE_SCHED_H.
238         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
239         evaluates to false.
240
241         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
242         conditional GL_GENERATE_SELINUX_CONTEXT_H.
243         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
244         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
245
246         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
247         GL_GENERATE_STDARG_H.
248         * modules/stdarg (Makefile.am): Remove stdarg.h if
249         GL_GENERATE_STDARG_H evaluates to false.
250
251         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
252         GL_GENERATE_STDBOOL_H.
253         * modules/stdbool (Makefile.am): Remove stdbool.h if
254         GL_GENERATE_STDBOOL_H evaluates to false.
255
256         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
257         conditional GL_GENERATE_STDDEF_H.
258         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
259         * modules/stddef (Makefile.am): Remove stddef.h if
260         GL_GENERATE_STDDEF_H evaluates to false.
261
262         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
263         GL_GENERATE_STDINT_H.
264         * modules/stdint (Makefile.am): Remove stdint.h if
265         GL_GENERATE_STDINT_H evaluates to false.
266
267         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
268         GL_GENERATE_SYSEXITS_H.
269         * modules/sysexits (Makefile.am): Remove sysexits.h if
270         GL_GENERATE_SYSEXITS_H evaluates to false.
271
272         Reported by Karl Berry and Ralf Wildenhues.
273
274 2011-04-05  Bruno Haible  <bruno@clisp.org>
275
276         Ensure to rebuild generated .h files when config.status has changed.
277         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
278         config.status.
279         * modules/ctype (Makefile.am): Likewise.
280         * modules/dirent (Makefile.am): Likewise.
281         * modules/errno (Makefile.am): Likewise.
282         * modules/fcntl-h (Makefile.am): Likewise.
283         * modules/float (Makefile.am): Likewise.
284         * modules/getopt-posix (Makefile.am): Likewise.
285         * modules/glob (Makefile.am): Likewise.
286         * modules/iconv-h (Makefile.am): Likewise.
287         * modules/inttypes (Makefile.am): Likewise.
288         * modules/langinfo (Makefile.am): Likewise.
289         * modules/locale (Makefile.am): Likewise.
290         * modules/math (Makefile.am): Likewise.
291         * modules/netdb (Makefile.am): Likewise.
292         * modules/netinet_in (Makefile.am): Likewise.
293         * modules/poll-h (Makefile.am): Likewise.
294         * modules/pthread (Makefile.am): Likewise.
295         * modules/pty (Makefile.am): Likewise.
296         * modules/sched (Makefile.am): Likewise.
297         * modules/search (Makefile.am): Likewise.
298         * modules/selinux-h (Makefile.am): Likewise.
299         * modules/signal (Makefile.am): Likewise.
300         * modules/spawn (Makefile.am): Likewise.
301         * modules/stdarg (Makefile.am): Likewise.
302         * modules/stdbool (Makefile.am): Likewise.
303         * modules/stddef (Makefile.am): Likewise.
304         * modules/stdint (Makefile.am): Likewise.
305         * modules/stdio (Makefile.am): Likewise.
306         * modules/stdlib (Makefile.am): Likewise.
307         * modules/string (Makefile.am): Likewise.
308         * modules/strings (Makefile.am): Likewise.
309         * modules/sys_file (Makefile.am): Likewise.
310         * modules/sys_ioctl (Makefile.am): Likewise.
311         * modules/sys_select (Makefile.am): Likewise.
312         * modules/sys_socket (Makefile.am): Likewise.
313         * modules/sys_stat (Makefile.am): Likewise.
314         * modules/sys_time (Makefile.am): Likewise.
315         * modules/sys_times (Makefile.am): Likewise.
316         * modules/sys_utsname (Makefile.am): Likewise.
317         * modules/sys_wait (Makefile.am): Likewise.
318         * modules/sysexits (Makefile.am): Likewise.
319         * modules/termios (Makefile.am): Likewise.
320         * modules/time (Makefile.am): Likewise.
321         * modules/unistd (Makefile.am): Likewise.
322         * modules/wchar (Makefile.am): Likewise.
323         * modules/wctype-h (Makefile.am): Likewise.
324         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
325
326 2011-04-05  Bruno Haible  <bruno@clisp.org>
327
328         pipe2: Relicense under LGPLv2+.
329         * modules/pipe2 (License): Change to LGPLv2+.
330         Requested by Eric Blake, for libvirt.
331
332 2011-04-05  Bruce Korb  <bkorb@gnu.org>
333
334         bootstrap: compute gnulib_extra_files after updating build_aux
335         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
336         change build_aux or also supply gnulib_extra_files.  Handle correctly.
337
338 2011-04-05  Eric Blake  <eblake@redhat.com>
339
340         bootstrap: preserve git whitelist item sorting
341         * build-aux/bootstrap (sort_patterns): New function.
342         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
343
344 2011-04-05  Simon Josefsson  <simon@josefsson.org>
345
346         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
347         sc_space_tab check.
348
349 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
350
351         areadlink, areadlinkat: rewrite in terms of careadlinkat
352         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
353         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
354         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
355         (malloc, realloc): Remove #undefs.
356         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
357         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
358         readlink, ssize_t, stdint, unistd.
359         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
360         areadlink, stdint.
361
362         careadlinkat: new module
363         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
364         * modules/careadlinkat: New files, written by me with
365         a review and feedback from Ben Pfaff in
366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
367
368 2011-04-01  Bruno Haible  <bruno@clisp.org>
369
370         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
371         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
372         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
373         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
374         Reported by Bruce Korb <bruce.korb@gmail.com>.
375
376 2011-04-01  Bruno Haible  <bruno@clisp.org>
377
378         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
379         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
380         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
381         * modules/wcpcpy (Depends-on): Add extensions.
382         * modules/wcpncpy (Depends-on): Likewise.
383         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
384         systems.
385         * doc/posix-functions/wcpncpy.texi: Likewise.
386         * doc/posix-functions/wcwidth.texi: Likewise.
387
388 2011-03-31  Eric Blake  <eblake@redhat.com>
389
390         nonblocking: fix mingw test failures
391         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
392         non-blocking flag on regular file.
393         (get_nonblocking_flag): Set errno on invalid fd.
394         * tests/test-nonblocking.c (main): Avoid test failure on
395         directories if fchdir is not active.
396         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
397
398 2011-03-31  Bruno Haible  <bruno@clisp.org>
399
400         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
401         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
402         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
403         Reported by Simon Josefsson <simon@josefsson.org>.
404
405 2011-03-31  Bruno Haible  <bruno@clisp.org>
406         and Eric Blake  <eblake@redhat.com>
407
408         nonblocking: new module
409         * modules/nonblocking: New module.
410         * modules/nonblocking-tests: Likewise.
411         * lib/nonblocking.h: New file.
412         * lib/nonblocking.c: Likewise.
413         * tests/test-nonblocking.c: New test.
414         * lib/ioctl.c (ioctl) [mingw]: Update comment.
415
416 2011-03-30  Bruno Haible  <bruno@clisp.org>
417
418         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
419         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
420         instead of 'printf' format for GCC >= 4.4.
421         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
422         (fprintf, printf, vfprintf, vprintf): Declare with
423         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
424         the system's vfprintf() function.
425         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
426
427 2011-03-30  Eric Blake  <eblake@redhat.com>
428
429         passfd: fix scoping bug
430         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
431         before sendmsg/recvmsg.
432
433         passfd: standardize coding conventions
434         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
435         can be learned at compile time.
436         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
437         ifdefs.
438         (sendfd, recvfd): Follow gnulib code conventions.
439
440         passfd: fix incorrect sendmsg arguments
441         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
442         incorrect msg_controllen value.
443         * modules/passfd-tests (Depends-on): Check for alarm.
444         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
445         Reported by Bastien ROUCARIES.
446
447 2011-03-30  Bruno Haible  <bruno@clisp.org>
448
449         c-strcasestr: Relicense under LGPLv2+.
450         * modules/c-strcasestr (License): Change to LGPLv2+.
451         Requested by Eric Blake, for libvirt.
452
453 2011-03-30  Simon Josefsson  <simon@josefsson.org>
454
455         * users.txt: Add libidn2.  Fix libtasn1 link.
456
457 2011-03-30  Jim Meyering  <meyering@redhat.com>
458
459         tests: readlink* ("",... fails with EINVAL on newer kernels
460         readlink and readlinkat have typically failed with ENOENT for
461         the invalid, empty file name,  "".  However, with the advent
462         of linux-2.6.39, they fail with EINVAL.
463         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
464         when operating on the empty file name.
465         * tests/test-readlink.h (test_readlink): Likewise.
466
467 2011-03-29  Bruno Haible  <bruno@clisp.org>
468
469         Relicense some modules under LGPLv2+, for libidn2.
470         * modules/array-mergesort (License): Change to LGPLv2+.
471         * modules/c-strcaseeq (License): Likewise.
472         * modules/striconveh (License): Likewise.
473         * modules/striconveha (License): Likewise.
474         * modules/uniconv/base (License): Likewise.
475         * modules/uniconv/u8-conv-from-enc (License): Likewise.
476         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
477         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
478         * modules/unictype/base (License): Likewise.
479         * modules/unictype/bidiclass-of (License): Likewise.
480         * modules/unictype/category-M (License): Likewise.
481         * modules/unictype/category-none (License): Likewise.
482         * modules/unictype/category-of (License): Likewise.
483         * modules/unictype/category-test (License): Likewise.
484         * modules/unictype/category-test-withtable (License): Likewise.
485         * modules/unictype/combining-class (License): Likewise.
486         * modules/unictype/joiningtype-of (License): Likewise.
487         * modules/unictype/scripts (License): Likewise.
488         * modules/uninorm/base (License): Likewise.
489         * modules/uninorm/canonical-decomposition (License): Likewise.
490         * modules/uninorm/composition (License): Likewise.
491         * modules/uninorm/decompose-internal (License): Likewise.
492         * modules/uninorm/decomposition-table (License): Likewise.
493         * modules/uninorm/nfc (License): Likewise.
494         * modules/uninorm/nfd (License): Likewise.
495         * modules/uninorm/u32-normalize (License): Likewise.
496         * modules/unistr/base (License): Likewise.
497         * modules/unistr/u32-cpy (License): Likewise.
498         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
499         * modules/unistr/u32-to-u8 (License): Likewise.
500         * modules/unistr/u32-uctomb (License): Likewise.
501         * modules/unistr/u8-check (License): Likewise.
502         * modules/unistr/u8-mblen (License): Likewise.
503         * modules/unistr/u8-mbtouc (License): Likewise.
504         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
505         * modules/unistr/u8-mbtoucr (License): Likewise.
506         * modules/unistr/u8-prev (License): Likewise.
507         * modules/unistr/u8-strlen (License): Likewise.
508         * modules/unistr/u8-to-u32 (License): Likewise.
509         * modules/unistr/u8-uctomb (License): Likewise.
510         * modules/unitypes (License): Likewise.
511         Requested by Simon Josefsson.
512
513 2011-03-29  Simon Josefsson  <simon@josefsson.org>
514
515         lib-symbol-visibility: Add a notice.
516         * modules/lib-symbol-visibility (Notice): New field.
517
518 2011-03-29  Bruno Haible  <bruno@clisp.org>
519
520         getaddrinfo: Doc fix.
521         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
522         section "fixed in Gnulib".
523
524 2011-03-28  Simon Josefsson  <simon@josefsson.org>
525
526         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
527         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
528
529 2011-03-26  Bruno Haible  <bruno@clisp.org>
530
531         unictype/property-byname: Reduce the number of load-time relocations.
532         * lib/unictype/pr_byname.c: Include <stdlib.h>.
533         (UC_PROPERTY_INDEX_*): New enumeration values.
534         (uc_property_byname): Convert an index from the lookup table to an
535         uc_property_t.
536         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
537         values.
538
539 2011-03-26  Bruno Haible  <bruno@clisp.org>
540
541         unictype/property-byname: Allow omitted word separators and aliases.
542         * lib/unictype/pr_byname.gperf: Add property names without word
543         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
544         for 'space'.
545
546 2011-03-26  Bruno Haible  <bruno@clisp.org>
547
548         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
549         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
550         also hyphens to space.
551         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
552         without spaces.
553         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
554
555 2011-03-26  Bruno Haible  <bruno@clisp.org>
556
557         unictype/joiningtype-byname: Recognize long names as well.
558         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
559         a long name.
560         * lib/unictype/joiningtype_byname.c: Include <string.h>,
561         unictype/joiningtype_byname.h.
562         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
563         * lib/unictype/joiningtype_byname.gperf: New file.
564         * modules/unictype/joiningtype-byname (Files): Add
565         lib/unictype/joiningtype_byname.gperf.
566         (Depends-on): Add gperf.
567         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
568         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
569         long names.
570
571         Tests for module 'unictype/joiningtype-longname'.
572         * modules/unictype/joiningtype-longname-tests: New file.
573         * tests/unictype/test-joiningtype_longname.c: New file.
574
575         New module 'unictype/joiningtype-longname'.
576         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
577         * lib/unictype/joiningtype_longname.c: New file.
578         * modules/unictype/joiningtype-longname: New file.
579         * modules/unictype/joiningtype-all (Depends-on): Add
580         unictype/joiningtype-longname.
581
582 2011-03-26  Bruno Haible  <bruno@clisp.org>
583
584         unictype/bidiclass-byname: Recognize long names as well.
585         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
586         name.
587         * lib/unictype/bidi_byname.c: Include <string.h>,
588         unictype/bidi_byname.h.
589         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
590         * lib/unictype/bidi_byname.gperf: New file.
591         * modules/unictype/bidiclass-byname (Files): Add
592         lib/unictype/bidi_byname.gperf.
593         (Depends-on): Add gperf.
594         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
595         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
596         long names.
597
598         Tests for module 'unictype/bidiclass-longname'.
599         * modules/unictype/bidiclass-longname-tests: New file.
600         * tests/unictype/test-bidi_longname.c: New file.
601
602         New module 'unictype/bidiclass-longname'.
603         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
604         * lib/unictype/bidi_longname.c: New file.
605         * modules/unictype/bidiclass-longname: New file.
606         * modules/unictype/bidiclass-all (Depends-on): Add
607         unictype/bidiclass-longname.
608
609 2011-03-26  Bruno Haible  <bruno@clisp.org>
610
611         unictype/bidi*: Rename modules.
612         * modules/unictype/bidiclass-all: Renamed from
613         modules/unictype/bidicategory-all.
614         * modules/unictype/bidiclass-name: Renamed from
615         modules/unictype/bidiclass-name.
616         (Description): Update.
617         * modules/unictype/bidiclass-name-tests: Renamed from
618         modules/unictype/bidicategory-name-tests.
619         * modules/unictype/bidiclass-byname: Renamed from
620         modules/unictype/bidicategory-byname.
621         (Description): Update.
622         * modules/unictype/bidiclass-byname-tests: Renamed from
623         modules/unictype/bidicategory-byname-tests.
624         * modules/unictype/bidiclass-of: Renamed from
625         modules/unictype/bidicategory-of.
626         (Description): Update.
627         * modules/unictype/bidiclass-of-tests: Renamed from
628         modules/unictype/bidicategory-of-tests.
629         * modules/unictype/bidiclass-test: Renamed from
630         modules/unictype/bidicategory-test.
631         (Description): Update.
632         * modules/unictype/bidiclass-test-tests: Renamed from
633         modules/unictype/bidicategory-test-tests.
634         * modules/unictype/bidicategory-all: New file, a simple redirection.
635         * modules/unictype/bidicategory-name: Likewise.
636         * modules/unictype/bidicategory-byname: Likewise.
637         * modules/unictype/bidicategory-of: Likewise.
638         * modules/unictype/bidicategory-test: Likewise.
639         * modules/unictype/property-bidi-* (Dependencies): Update.
640         * lib/unictype/bidi_*.c: Update comment.
641
642 2011-03-26  Bruno Haible  <bruno@clisp.org>
643
644         unictype/bidi*: Rename functions, part 2.
645         * modules/unictype/bidicategory-name (configure.ac): Update required
646         libunistring version.
647         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
648
649 2011-03-25  Bruno Haible  <bruno@clisp.org>
650
651         New module 'unictype/combining-class-all'.
652         * modules/unictype/combining-class-all: New file.
653
654         Tests for module 'unictype/combining-class-byname'.
655         * modules/unictype/combining-class-byname-tests: New file.
656         * tests/unictype/test-combiningclass_byname.c: New file.
657
658         New module 'unictype/combining-class-byname'.
659         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
660         * lib/unictype/combiningclass_byname.c: New file.
661         * lib/unictype/combiningclass_byname.gperf: New file.
662         * modules/unictype/combining-class-byname: New file.
663
664         Tests for module 'unictype/combining-class-longname'.
665         * modules/unictype/combining-class-longname-tests: New file.
666         * tests/unictype/test-combiningclass_longname.c: New file.
667
668         New module 'unictype/combining-class-longname'.
669         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
670         * lib/unictype/combiningclass_longname.c: New file.
671         * modules/unictype/combining-class-longname: New file.
672
673         Tests for module 'unictype/combining-class-name'.
674         * modules/unictype/combining-class-name-tests: New file.
675         * tests/unictype/test-combiningclass_name.c: New file.
676
677         New module 'unictype/combining-class-name'.
678         * lib/unictype.in.h (uc_combining_class_name): New declaration.
679         * lib/unictype/combiningclass_name.c: New file.
680         * modules/unictype/combining-class-name: New file.
681
682 2011-03-25  Bruno Haible  <bruno@clisp.org>
683
684         unictype/combining-class: Rename source files.
685         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
686         of unictype/combining.h.
687         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
688         Update.
689         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
690         * modules/unictype/combining-class (Description): Fix.
691         (Files, Makefile.am): Update.
692         * tests/unictype/test-combiningclass.c: Renamed from
693         tests/unictype/test-combining.c.
694         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
695
696 2011-03-25  Bruno Haible  <bruno@clisp.org>
697
698         unictype: Update list of canonical combining classes.
699         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
700
701 2011-03-25  Bruno Haible  <bruno@clisp.org>
702
703         unictype/category-byname: Recognize long names as well.
704         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
705         a long name.
706         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
707         unictype/categ_byname.h.
708         (UC_CATEGORY_INDEX_*): New enumeration values.
709         (uc_general_category_byname): Use uc_general_category_lookup and
710         convert from index to value.
711         * lib/unictype/categ_byname.gperf: New file.
712         * modules/unictype/category-byname (Files): Add
713         lib/unictype/categ_byname.gperf.
714         (Depends-on): Add gperf.
715         (Makefile.am): Add rule for generating unictype/categ_byname.h.
716         * tests/unictype/test-categ_byname.c (main): Test the recognition of
717         long names.
718
719         Tests for module 'unictype/category-longname'.
720         * modules/unictype/category-longname-tests: New file.
721         * tests/unictype/test-categ_longname.c: New file.
722
723         New module 'unictype/category-longname'.
724         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
725         * lib/unictype/categ_longname.c: New file.
726         * modules/unictype/category-longname: New file.
727         * modules/unictype/category-all (Depends-on): Add it.
728
729 2011-03-25  Bruno Haible  <bruno@clisp.org>
730
731         Tests for module 'unictype/category-LC'.
732         * modules/unictype/category-LC-tests: New file.
733         * tests/unictype/test-categ_LC.c: New file, automatically generated.
734
735         New module 'unictype/category-LC'.
736         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
737         (UC_CATEGORY_LC): New declaration.
738         (UC_CASED_LETTER): New macro.
739         * lib/gen-uni-tables.c (is_category_LC): New function.
740         (output_categories): Also handle category LC.
741         (UC_CATEGORY_MASK_LC): New enumeration value.
742         (general_category_byname): Also handle category LC.
743         * lib/unictype/categ_LC.c: New file.
744         * lib/unictype/categ_LC.h: New file, automatically generated.
745         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
746         category LC.
747         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
748         * modules/unictype/category-LC: New file.
749         * modules/unictype/category-byname (Depends-on): Add
750         unictype/category-LC.
751         * modules/unictype/category-all (Depends-on): Likewise.
752
753 2011-03-25  Eric Blake  <eblake@redhat.com>
754
755         xmalloc: revert yesterday's regression
756         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
757         realloc's underlying behavior (allowing allocation of zero-size
758         objects, especially if malloc-gnu is also in use).
759
760 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
761
762         maint.mk: add missing version to VC-tag
763         * top/maint.mk: git tag was missing actual tag name; add it.
764
765         valgrind: do leak checking, and exit with code 1 on error (not 0)
766         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
767         to VALGRIND.
768
769 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
770
771         posix-modules: say what it does.
772         * posix-modules: Add a line to the --help output saying what it does.
773
774 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
775
776         xmalloc: Do not leak if underlying realloc is C99 compatible.
777         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
778         This avoids a leak on C99-based systems.  See
779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
780
781 2011-03-24  Eric Blake  <eblake@redhat.com>
782
783         realloc: document portability problem
784         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
785         passing 0 size to realloc.
786
787 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
788
789         doc: update users.txt
790         * users.txt: Add cvsps, tmpwatch
791
792 2011-03-23  Matt Rice  <ratmice@gmail.com>
793
794         doc: update users.txt
795         * users.txt: Add gdb.
796
797 2011-03-23  Jim Meyering  <meyering@redhat.com>
798
799         doc: update users.txt
800         Looking through matches up to the following URL (there are still
801         several more pages), I found several projects that use gnulib:
802         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
803         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
804         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
805
806 2011-03-22  Bruno Haible  <bruno@clisp.org>
807
808         unictype/bidi*: Rename functions.
809         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
810         uc_bidi_class, uc_is_bidi_class): New declarations.
811         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
812         uc_bidi_category_byname.
813         (uc_bidi_category_byname): New function.
814         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
815         u_bidi_category_name.
816         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
817         (uc_bidi_category_name): New function.
818         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
819         uc_bidi_category.
820         (uc_bidi_category): New function.
821         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
822         uc_is_bidi_category. Invoke uc_bidi_class.
823         (uc_is_bidi_category): New function.
824         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
825         instead of uc_bidi_category_byname.
826         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
827         instead of uc_bidi_category_name.
828         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
829         uc_bidi_category.
830         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
831         instead of uc_is_bidi_category.
832
833 2011-03-21  Bruno Haible  <bruno@clisp.org>
834
835         New module 'unictype/joininggroup-all'.
836         * modules/unictype/joininggroup-all: New file.
837
838         Tests for module 'unictype/joininggroup-of'.
839         * modules/unictype/joininggroup-of-tests: New file.
840         * tests/unictype/test-joininggroup_of.c: New file.
841         * tests/unictype/test-joininggroup_of.h: New file, automatically
842         generated by gen-uni-tables.
843
844         New module 'unictype/joininggroup-of'.
845         * modules/unictype/joininggroup-of: New file.
846         * lib/unictype/joininggroup_of.c: New file.
847         * lib/unictype/joininggroup_of.h: New file, automatically generated by
848         gen-uni-tables.
849
850         Tests for module 'unictype/joininggroup-byname'.
851         * modules/unictype/joininggroup-byname-tests: New file.
852         * tests/unictype/test-joininggroup_byname.c: New file.
853
854         New module 'unictype/joininggroup-byname'.
855         * modules/unictype/joininggroup-byname: New file.
856         * lib/unictype/joininggroup_byname.c: New file.
857         * lib/unictype/joininggroup_byname.gperf: New file.
858
859         Tests for module 'unictype/joininggroup-name'.
860         * modules/unictype/joininggroup-name-tests: New file.
861         * tests/unictype/test-joininggroup_name.c: New file.
862
863         New module 'unictype/joininggroup-name'.
864         * modules/unictype/joininggroup-name: New file.
865         * lib/unictype/joininggroup_name.c: New file.
866         * lib/unictype/joininggroup_name.h: New file.
867
868         New module 'unictype/joiningtype-all'.
869         * modules/unictype/joiningtype-all: New file.
870
871         Tests for module 'unictype/joiningtype-of'.
872         * modules/unictype/joiningtype-of-tests: New file.
873         * tests/unictype/test-joiningtype_of.c: New file.
874         * tests/unictype/test-joiningtype_of.h: New file, automatically
875         generated by gen-uni-tables.
876
877         New module 'unictype/joiningtype-of'.
878         * modules/unictype/joiningtype-of: New file.
879         * lib/unictype/joiningtype_of.c: New file.
880         * lib/unictype/joiningtype_of.h: New file, automatically generated by
881         gen-uni-tables.
882
883         Tests for module 'unictype/joiningtype-byname'.
884         * modules/unictype/joiningtype-byname-tests: New file.
885         * tests/unictype/test-joiningtype_byname.c: New file.
886
887         New module 'unictype/joiningtype-byname'.
888         * modules/unictype/joiningtype-byname: New file.
889         * lib/unictype/joiningtype_byname.c: New file.
890
891         Tests for module 'unictype/joiningtype-name'.
892         * modules/unictype/joiningtype-name-tests: New file.
893         * tests/unictype/test-joiningtype_name.c: New file.
894
895         New module 'unictype/joiningtype-name'.
896         * modules/unictype/joiningtype-name: New file.
897         * lib/unictype/joiningtype_name.c: New file.
898
899         unictype: Add support for Arabic shaping properties.
900         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
901         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
902         declarations.
903         (UC_JOINING_GROUP_*): New enumeration values.
904         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
905         declarations.
906         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
907         (unicode_joining_type): New variable.
908         (UC_JOINING_GROUP_*): New enumeration values.
909         (unicode_joining_group): New variable.
910         (fill_arabicshaping, joining_type_as_c_identifier,
911         output_joining_type_test, output_joining_type,
912         joining_group_as_c_identifier, output_joining_group_test,
913         output_joining_group): New functions.
914         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
915         fill_arabicshaping and output_joining_type_test, output_joining_type,
916         output_joining_group_test, output_joining_group.
917         Reported by Simon Josefsson.
918
919 2011-03-21  Jim Meyering  <meyering@redhat.com>
920
921         strftime: fix a bug in yesterday's change
922         * lib/strftime.c (add): Accommodate width's initial value of -1.
923         Otherwise, nstrftime would copy uninitialized data into
924         the result buffer.
925
926 2011-03-21  Jim Meyering  <meyering@redhat.com>
927
928         tests: add strftime-tests module
929         * tests/test-strftime.c: New file.
930         * modules/strftime-tests: New module.
931
932 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
933
934         strftime: don't assume a byte count fits in 'int'
935         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
936         found this problem by static analysis, using gcc -Wstrict-overflow
937         (GCC 4.5.2, x86-64).  This reported an optimization that depended
938         on an integer overflow having undefined behavior, but it turns out
939         that the argument is a size, which might not fit in 'int' anyway,
940
941 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
942
943         stdio: don't require ignore_value around fwrite
944
945         This patch works around libc bug 11959
946         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
947         Without this patch, applications must often write
948         ignore_value (fwrite (...)) even though the ignore_value is
949         not helpful here.  It's common to write many objects, using
950         fwrite/printf/etc., and then use ferror to detect output error.
951
952         I considered making this patch optional, but decided against it,
953         because libc is obviously being inconsistent here: there is no
954         reason libc should insist that user code must inspect fwrite
955         return's value without also insisting that it inspect printf's,
956         putchar's, etc.  If user code wants to have a strict style where
957         all these functions' values are checked (so that ferror need not
958         be checked), we could add support for that style in a new gnulib
959         module, but in the meantime it's better to be consistent and to
960         support common usage.
961
962         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
963         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
964         that we are compiling in checking mode, and if not C++, and
965         if not already wrapping fwrite for some other reason.
966         (fwrite): #define to rpl_fwrite if the latter is defined.
967
968 2011-03-20  Bruno Haible  <bruno@clisp.org>
969
970         verror: Fix compilation error introduced on 2011-02-13.
971         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
972         instead of __attribute__.
973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
974
975 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
976             Bruno Haible  <bruno@clisp.org>
977
978         socklen: do not depend on sys_socket
979         While trying to modify Emacs to use gnulib's socklen module,
980         I discovered a circular dependency: socklen depends on sys_socket
981         and vice versa.  Emacs can use socklen, but it does not need
982         sys_socket because it has its own substitute for sys/socket.h.
983         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
984         gl_TYPE_SOCKLEN_T.
985         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
986         gl_PREREQ_SYS_H_SOCKET.
987         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
988         gl_PREREQ_SYS_H_SOCKET.
989         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
990         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
991         * modules/socklen (Depends-on): Do not depend on sys_socket.
992         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
993
994 2011-03-20  Jim Meyering  <meyering@redhat.com>
995
996         maint.mk: sort file names *after* new transformation
997         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
998         prefix would have led to an unwarranted failure in GNU parted.
999         Sort after that transformation.
1000
1001 2011-03-19  Jim Meyering  <meyering@redhat.com>
1002
1003         maint.mk: fix po-file syntax-check rule
1004         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1005         Patch by Bruno Haible.
1006
1007 2011-03-19  Bruno Haible  <bruno@clisp.org>
1008
1009         socklen: Update comment.
1010         * m4/socklen.m4: Update comment about platforms.
1011
1012 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1013             Bruno Haible  <bruno@clisp.org>
1014
1015         inet_ntop, inet_pton: Simplify.
1016         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1017         documented to provide socklen_t and we already depend on sys_socket.
1018         * modules/inet_pton (Depends-on): Likewise.
1019         * lib/arpa_inet.in.h: Adjust comment.
1020
1021 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1022             Bruno Haible  <bruno@clisp.org>
1023
1024         netdb: Simplify.
1025         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1026         documented to provide socklen_t and we already depend on sys_socket.
1027         * lib/netdb.in.h: Adjust comment.
1028
1029 2011-03-19  Bruno Haible  <bruno@clisp.org>
1030
1031         sys_socket, netdb: Document problem with socklen_t.
1032         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1033         platforms.
1034         * doc/posix-headers/netdb.texi: Likewise.
1035
1036 2011-03-18  Eric Blake  <eblake@redhat.com>
1037
1038         maint.mk: let po check work in VPATH build
1039         * top/maint.mk (po_file): Allow cfg.mk override.
1040         (sc_po_check): Allow VPATH use.
1041         Reported by Jiri Denemark.
1042
1043 2011-03-16  Jim Meyering  <meyering@redhat.com>
1044
1045         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1046         Before, you would have had to create one .x-sc_ file per rule in order
1047         to exempt offending files.  Now, you may instead use a Make variable --
1048         usually defined in cfg.mk -- whose name identifies the affected rule.
1049         * top/maint.mk (_sc_excl): Define.
1050         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1051         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1052
1053 2011-03-13  Bruno Haible  <bruno@clisp.org>
1054
1055         ignore-value tests: Avoid warnings.
1056         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1057         empty for gcc < 3.4.
1058
1059 2011-03-13  Bruno Haible  <bruno@clisp.org>
1060
1061         passfd: Fix link error on Solaris.
1062         * modules/passfd (Description): Correct.
1063         (Depends-on): Add socketlib.
1064         (Link): New section.
1065         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1066
1067 2011-03-13  Bruno Haible  <bruno@clisp.org>
1068
1069         passfd: Fix link error on AIX 5.2.
1070         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1071
1072 2011-03-13  Bruno Haible  <bruno@clisp.org>
1073
1074         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1075         * lib/sys_socket.in.h: Include <stddef.h>.
1076         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1077         CMSG_FIRSTHDR. Remove unused variable.
1078
1079 2011-03-13  Bruno Haible  <bruno@clisp.org>
1080
1081         passfd: Fix compilation error on OpenBSD.
1082         * lib/passfd.c: Include <sys/uio.h>.
1083
1084 2011-03-13  Bruno Haible  <bruno@clisp.org>
1085
1086         passfd test: Fix warnings.
1087         * tests/test-passfd.c: Include <sys/wait.h>.
1088         (main): Fix typo.
1089
1090 2011-03-13  Bruno Haible  <bruno@clisp.org>
1091
1092         passfd module, part 4, tweaks.
1093         * tests/test-passfd.c: Reorder includes.
1094         (main): Fix perror and printf calls.
1095
1096 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1097
1098         passfd module, part 4.
1099         * modules/passfd-tests: New file.
1100         * tests/test-passfd.c: New file.
1101
1102 2011-03-13  Jim Meyering  <meyering@redhat.com>
1103
1104         Makefile: rely on GNU make; derive syntax-check rule names
1105         Rather than requiring that each sc_ rule be listed as a dependent
1106         of "check", use features of GNU make to derive the list.
1107         * Makefile (syntax-check-rules): Define.
1108         (check): Depend on the new variable, not the hard-coded list.
1109
1110 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1111             Bruno Haible  <bruno@clisp.org>
1112
1113         passfd module, part 3.
1114         * lib/passfd.h (recvfd): Add a flags argument.
1115         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1116         (recvfd): Add a flags argument.
1117         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1118         exists.
1119         * modules/passfd (Depends-on): Add cloexec.
1120         Suggested by Eric Blake.
1121
1122 2011-03-13  Bruno Haible  <bruno@clisp.org>
1123
1124         passfd module, part 2, tweaks.
1125         * modules/passfd (Files): Reorder.
1126         (Depends-on): Remove errno.
1127         (Include): Remove <sys/socket.h>, <sys/un.h>.
1128         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1129         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1130         specification header. Include <sys/socket.h> always. Don't include
1131         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1132         (sendfd): Clarify that it sets errno when it fails.
1133         (recvfd): Fix specification.
1134
1135 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1136
1137         passfd module, part 2.
1138         * modules/passfd: New file.
1139         * lib/passfd.h: New file.
1140         * lib/passfd.c: New file.
1141
1142 2011-03-12  Bruno Haible  <bruno@clisp.org>
1143
1144         wcswidth, mbswidth: Avoid integer overflow.
1145         * lib/wcswidth.c: Include <limits.h>.
1146         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1147         * lib/mbswidth.c: Include <limits.h>.
1148         (mbsnwidth): Avoid 'int' overflow.
1149         Reported by Jim Meyering.
1150
1151 2011-03-12  Bruno Haible  <bruno@clisp.org>
1152
1153         futimens, utimensat: Avoid endless recursion on Solaris 10.
1154         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1155         Solaris.
1156         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1157         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1158
1159 2011-03-11  Jim Meyering  <meyering@redhat.com>
1160
1161         maint.mk: relax a regexp to accommodate other formatting styles
1162         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1163         between "ngettext" and the following "(".
1164
1165 2011-03-11  Pádraig Brady <P@draigBrady.com>
1166
1167         maint.mk: suppress a false positive warning
1168         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1169         diagnostics are marked with ngettext.
1170
1171 2011-03-10  Eric Blake  <eblake@redhat.com>
1172
1173         wchar: add explicit dependencies, for Tru64
1174         * modules/mbmemcasecoll (Depends-on): Add wchar.
1175         * modules/mbtowc (Depends-on): Likewise.
1176         * modules/vasnprintf (Depends-on): Likewise.
1177         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1178         * modules/wctomb (Depends-on): Likewise.
1179         Reported by Peter O'Gorman.
1180
1181 2011-03-08  Bruno Haible  <bruno@clisp.org>
1182
1183         passfd module, part 1, tweaks.
1184         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1185         Improve indentation. Improve AC_MSG_CHECKING messages.
1186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1187         gl_SOCKET_FAMILIES.
1188
1189 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1190
1191         passfd module, part 1.
1192         * m4/afunix.m4: New file.
1193         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1194         sockets.
1195
1196 2011-03-08  Bruno Haible  <bruno@clisp.org>
1197
1198         regex-quote: New API.
1199         * lib/regex-quote.h: Include <stdbool.h>.
1200         (struct regex_quote_spec): New type.
1201         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1202         New declarations.
1203         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1204         'const struct regex_quote_spec *' argument.
1205         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1206         (pcre_special): New constant.
1207         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1208         New functions.
1209         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1210         'const struct regex_quote_spec *' argument.
1211         * modules/regex-quote (Depends-on): Add stdbool.
1212         * tests/test-regex-quote.c (check): Update for new API. Add test for
1213         anchored results.
1214         * NEWS: Mention the API change.
1215         Reported by Reuben Thomas and Eric Blake.
1216
1217 2011-03-06  Bruno Haible  <bruno@clisp.org>
1218
1219         regex-quote: Fix creation of POSIX extended regular expressions.
1220         * lib/regex-quote.c (ere_special): Add grouping and alternation
1221         operators.
1222
1223 2011-03-05  Bruno Haible  <bruno@clisp.org>
1224
1225         doc: Improve doc regarding autopoint vs. gnulib.
1226         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1227         disable autopoint while running autoreconf.
1228         Suggested by Ralf Wildenhues.
1229
1230 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1231
1232         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1233         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1234
1235 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1236
1237         parse-duration: remove xalloc.h dependency
1238         * lib/parse-duration.c (parse_period): handle NULL return from
1239         strdup instead of calling xstrdup().
1240         * modules/parse-duration: remove "xalloc" dependency
1241
1242 2011-03-03  Matthew Booth  <mbooth@redhat.com>
1243
1244         bootstrap: honor m4_base when running aclocal
1245         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
1246
1247 2011-03-02  Jim Meyering  <meyering@redhat.com>
1248
1249         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
1250         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
1251         on request from Matt Booth.
1252
1253 2011-03-01  Eric Blake  <eblake@redhat.com>
1254
1255         test-link: work on Hurd
1256         * tests/test-link.h (test_link): Hurd rejects linking directories
1257         with EISDIR instead of the POSIX-mandated EPERM.
1258
1259 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         stdio: simplify by moving files to printf-posix, sigpipe
1262         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
1263         since this symbol is needed only if printf is replaced.
1264         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
1265         Require gl_ASM_SYMBOL_PREFIX.
1266         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
1267         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
1268         (Depends-on): Add 'raise'.
1269         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
1270         * modules/stdio (Files): Remove lib/stdio-write.c,
1271         m4/asm-underscore.m4.
1272         (Depends-on): Remove 'raise'.
1273
1274         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
1275         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
1276         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
1277         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
1278
1279 2011-02-28  Bruno Haible  <bruno@clisp.org>
1280
1281         localcharset: Assume ANSI C behaviour of free().
1282         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
1283         calling free().
1284         Suggested by Simon Josefsson <simon@josefsson.org>.
1285
1286 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
1287             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
1288             Bruno Haible  <bruno@clisp.org>  (tiny change)
1289
1290         On Cygwin, use /proc file system instead of win32 API.
1291         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
1292         Win32 file names.
1293         (DllMain): Simplify by removing Cygwin specific code.
1294         (find_shared_library_fullname): Use Linux specific implementation also
1295         for Cygwin.
1296         (get_shared_library_fullname): Update accordingly.
1297         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
1298         Win32 file names.
1299         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
1300         Cygwin specific code.
1301
1302 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
1303             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
1304
1305         Fix OpenMP flag detection for various Fortran compilers.
1306         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
1307         OpenMP-conditional compilation construct, to force compile
1308         failure with missing OpenMP flag.
1309         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
1310
1311 2011-02-25  Eric Blake  <eblake@redhat.com>
1312
1313         strstr: expand test coverage
1314         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
1315         compilation.
1316         * tests/test-memmem.c (main): Duplicate tests.
1317         * tests/test-strcasestr.c (main): Likewise.
1318         * tests/test-c-strcasestr.c (main): Likewise.
1319
1320 2011-02-25  Jim Meyering  <meyering@redhat.com>
1321
1322         maint.mk: detect missing-NL-at-EOF, too
1323         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
1324         it also detects when a file lacks a newline at EOF.
1325         (require_exactly_one_NL_at_EOF_): Renamed from
1326         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
1327         since people may well have .x-sc_... file names tied to the
1328         existing name.  Suggested by Eric Blake.
1329
1330 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1331
1332         dirname: move m4/dos.m4 functionality into lib/dosname.h
1333
1334         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
1335         extracts symbols from it, puts them into config.h; but it's much
1336         easier to use the symbols directly.  filename.h already does this,
1337         but it disagrees with dos.m4 in some respects.  This patch
1338         introduces a different include file dosname.h that packages up
1339         dos.m4, and then later we can work on merging filename.h and
1340         dosname.h.  Applications that need only the easy-to-configure
1341         symbols should consider including dosname.h rather than dirname.h.
1342         * NEWS: Mention incompatible changes.
1343         * m4/dos.m4: Remove.
1344         * lib/dosname.h, modules/dosname: New files.
1345         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
1346         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
1347         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
1348         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
1349         Include dosname.h, not dirname.h.
1350         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
1351         Include dosname.h, for definitions of symbols like ISSLASH
1352         that used to be in config.h.
1353         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
1354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1355         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1356         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1357         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
1358         * modules/rmdir (Files): Likewise.
1359         * modules/stat (Files): Likewise.
1360         * modules/unlink (Files): Likewise.
1361         * modules/dirname-lgpl (Depends-on): Add dosname.
1362         * modules/lstat (Depends-on): Likewise.
1363         * modules/openat (Depends-on): Likewise.
1364         * modules/rmdir (Depends-on): Likewise.
1365         * modules/savewd (Depends-on): Likewise.
1366         * modules/stat (Depends-on): Likewise.
1367         * modules/unlink (Depends-on): Likewise.
1368         * modules/openat (Depends-on): Remove dirname-lgpl.
1369         * modules/savewd (Depends-on): Likewise.
1370         * tests/test-dirname.c: Do not use removed symbols like
1371         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
1372         the remaining symbols, e.g., ISSLASH ('\\').
1373
1374 2011-02-25  Eric Blake  <eblake@redhat.com>
1375
1376         strstr: revert patches that introduced bug and pessimization
1377         * lib/str-two-way.h: Add another reference.
1378         (two_way_short_needle, two_way_long_needle): Revert changes from
1379         2011-02-24; they pessimize search speed.
1380         (critical_factorization): Partially revert changes from
1381         2010-06-22; they violate the requirement that the left half of the
1382         needle be smaller than the period of the needle.
1383
1384 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1385
1386         filenamecat: remove unnecessary dependency on dirname-lgpl
1387         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
1388         is no direct dependency, just an indirect one via filenamecat-lgpl.
1389
1390         remove: remove unnecessary use of m4/dos.m4
1391         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
1392         * modules/remove (FILES): Remove m4/dos.m4.
1393
1394         * lib/openat-proc.c: Don't include dirname.h; not needed.
1395
1396         backupfile: remove unnecessary use of m4/dos.m4
1397         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
1398         of its symbols are used by the backupfile code.  backupfile.c does
1399         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
1400         for the rare case of programs that want all their backup file
1401         names to live within 8+3 limits, and dos.m4 doesn't address that.
1402         * modules/backupfile (Files): Remove m4/dos.m4.
1403
1404 2011-02-24  Jim Meyering  <meyering@redhat.com>
1405
1406         strstr: fix a bug whereby strstr would mistakenly return NULL
1407         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
1408         in period calculation.
1409         (two_way_long_needle): Likewise.
1410         The original problem was reported by Mike Stump in
1411         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
1412         Ralf Wildenhues provided the short needle and haystack.
1413         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
1414         Add a more involved test to trigger the bug in two_way_long_needle.
1415
1416 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1417
1418         gnulib-tool: remove use of bold display in help screen
1419         * gnulib-tool (func_usage): Do not use bold display anymore in the
1420         help screen.  That was just meant to be a temporary emphasis for a
1421         backward-incompatible change.
1422
1423 2011-02-23  Bruno Haible  <bruno@clisp.org>
1424
1425         Fix misindentation of preprocessor directives.
1426         * lib/argp-namefrob.h: Reindent preprocessor directives.
1427         * lib/getopt_int.h (struct _getopt_data): Likewise.
1428         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
1429         * lib/vasnprintf.c (decode_long_double): Likewise.
1430         * tests/test-argmatch.c: Insert blank lines, for clarity.
1431         * tests/test-exclude.c: Likewise.
1432
1433 2011-02-22  Bruno Haible  <bruno@clisp.org>
1434
1435         ioctl: Fix for MacOS X in 64-bit mode.
1436         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
1437         value.
1438         Suggested by Eric Blake.
1439         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
1440
1441 2011-02-22  Jim Meyering  <meyering@redhat.com>
1442
1443         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
1444         * Makefile (sc_cpp_indent_check): Don't limit the check to files
1445         in lib/.
1446
1447 2011-02-22  Eric Blake  <eblake@redhat.com>
1448
1449         maint: avoid any CDPATH issue
1450         * Makefile (sc_cpp_indent_check): Anchor cd argument.
1451
1452         maint: adjust cpp indentation for my modules, as well
1453         * Makefile (sc_cpp_indent_check): Add my name.
1454         * lib/fbufmode.c: Filter through cppi.
1455         * lib/fpurge.c: Likewise.
1456         * lib/freadable.c: Likewise.
1457         * lib/freading.c: Likewise.
1458         * lib/fwritable.c: Likewise.
1459         * lib/fwriting.c: Likewise.
1460         * lib/sigaction.c: Likewise.
1461
1462 2011-02-22  Jim Meyering  <meyering@redhat.com>
1463
1464         maint: adjust cpp indentation to reflect nesting depth
1465         I.e., in a block of code that begins with an unnested "#if",
1466         put one space between the "#" in column 1 and following token.
1467         For example,
1468         -#include <sys/vfs.h>
1469         +# include <sys/vfs.h>
1470         Do this only in .c files that are part of a module I maintain.
1471         * lib/linkat.c: Filter through cppi.
1472         * lib/nanosleep.c: Likewise.
1473         * lib/openat.c: Likewise.
1474         * lib/openat-die.c: Likewise.
1475         * lib/dup3.c: Likewise.
1476         * lib/fchownat.c: Likewise.
1477         * lib/flock.c: Likewise.
1478         * lib/fsync.c: Likewise.
1479         * lib/fts.c: Likewise.
1480         * lib/getpass.c: Likewise.
1481         * lib/gettimeofday.c: Likewise.
1482         * lib/userspec.c: Likewise.
1483         * Makefile (sc_cpp_indent_check): New rule, to check this.
1484
1485 2011-02-22  Bruno Haible  <bruno@clisp.org>
1486
1487         New module 'wctomb'.
1488         * lib/stdlib.in.h (wctomb): New declaration.
1489         * lib/wctomb.c: New file.
1490         * lib/wctomb-impl.h: New file.
1491         * m4/wctomb.m4: New file.
1492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
1493         REPLACE_WCTOMB.
1494         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
1495         REPLACE_WCTOMB.
1496         * modules/wctomb: New file.
1497         * tests/test-stdlib-c++.cc: Test signature of wctomb.
1498         * doc/posix-functions/wctomb.texi: Mention the new module.
1499         * modules/wctob (Depends-on): Add wctomb.
1500
1501 2011-02-22  Bruno Haible  <bruno@clisp.org>
1502
1503         New module 'mbtowc'.
1504         * lib/stdlib.in.h (mbtowc): New declaration.
1505         * lib/mbtowc.c: New file.
1506         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
1507         * m4/mbtowc.m4: New file.
1508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
1509         REPLACE_MBTOWC.
1510         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
1511         REPLACE_MBTOWC.
1512         * modules/mbtowc: New file.
1513         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
1514         * doc/posix-functions/mbtowc.texi: Mention the new module.
1515         * modules/btowc (Depends-on): Add mbtowc.
1516
1517 2011-02-22  Bruno Haible  <bruno@clisp.org>
1518
1519         wcrtomb: Add more tests for native Windows platforms.
1520         * tests/test-wcrtomb-w32-1.sh: New file.
1521         * tests/test-wcrtomb-w32-2.sh: New file.
1522         * tests/test-wcrtomb-w32-3.sh: New file.
1523         * tests/test-wcrtomb-w32-4.sh: New file.
1524         * tests/test-wcrtomb-w32-5.sh: New file.
1525         * tests/test-wcrtomb-w32.c: New file.
1526         * modules/wcrtomb-tests (Files): Add them.
1527         (Makefile.am): Arrange to run these tests.
1528         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
1529         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
1530
1531 2011-02-20  Bruno Haible  <bruno@clisp.org>
1532
1533         wcrtomb: Enhance test.
1534         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
1535
1536 2011-02-20  Bruno Haible  <bruno@clisp.org>
1537
1538         mbrtowc: Tiny optimization.
1539         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
1540
1541 2011-02-20  Jim Meyering  <meyering@redhat.com>
1542
1543         test-exclude.c: remove unmatched #endif
1544         * tests/test-exclude.c: Remove stray #endif, left over from
1545         the change of a week ago.
1546
1547 2011-02-19  Jim Meyering  <meyering@redhat.com>
1548
1549         git-version-gen: skip "-dirty" check when appropriate
1550         * build-aux/git-version-gen: Don't run any git commands when the
1551         version string comes from .tarball-version.  Prior to this, we
1552         would run git update-index --refresh even from a just-unpacked
1553         tarball directory, and that could affect a .git/ directory in a
1554         parent of the build directory.  Reported by Mike Frysinger.
1555
1556 2011-02-19  Bruno Haible  <bruno@clisp.org>
1557
1558         unictype/property-byname: Reduce the size of the 'data' segment.
1559         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
1560
1561 2011-02-19  Bruno Haible  <bruno@clisp.org>
1562
1563         unictype/scripts: Reduce the size of the 'data' segment.
1564         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
1565         '%pic'.
1566         * lib/unictype/scripts_byname.gperf: Regenerated.
1567
1568 2011-02-19  Bruno Haible  <bruno@clisp.org>
1569
1570         stdint: Update documentation.
1571         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
1572
1573 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1574
1575         stdint: omit redundant check for wchar.h
1576         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
1577         always tests whether wchar.h exists, so remove the now-redundant test.
1578
1579 2011-02-18  Bruno Haible  <bruno@clisp.org>
1580
1581         stdint: Cut dependency to module 'wchar'.
1582         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
1583         include the necessary prerequisites.
1584         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
1585         * modules/stdint (Depends-on): Remove wchar.
1586         (Makefile.am): Substitute HAVE_WCHAR_H.
1587         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
1588
1589 2011-02-18  Eric Blake  <eblake@redhat.com>
1590
1591         longlong: skip, rather than fail, on cross-compilation
1592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
1593         when cross-compiling; regression from 2011-02-16.
1594
1595 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         * NEWS: Mention 2011-02-08 change to stdlib.
1598
1599 2011-02-17  Bruno Haible  <bruno@clisp.org>
1600
1601         getloadavg: Add comments about platforms.
1602         * m4/getloadavg.m4: Add comment.
1603         * lib/getloadavg.c: Likewise.
1604
1605 2011-02-17  Bruno Haible  <bruno@clisp.org>
1606
1607         getloadavg: Fix link error on Solaris 2.6.
1608         * modules/getloadavg (Link): New section.
1609         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
1610         linking test-getloadavg.
1611         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
1612         getloadavg.
1613
1614 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
1617         It was 'int', but this doesn't match the IRIX 6.5 manual.
1618         Suggested by Bruno Haible in
1619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
1620
1621 2011-02-17  Bruno Haible  <bruno@clisp.org>
1622
1623         havelib: Fix comments.
1624         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
1625         change.
1626
1627 2011-02-17  Bruno Haible  <bruno@clisp.org>
1628
1629         havelib: Update config.rpath.
1630         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
1631
1632 2011-02-17  Bruno Haible  <bruno@clisp.org>
1633
1634         getloadavg test: Add some plausibility checks.
1635         * tests/test-getloadavg.c (check_avg): Print a warning when the value
1636         is improbable.
1637
1638 2011-02-16  Eric Blake  <eblake@redhat.com>
1639
1640         maintainer-makefile: make syntax-check a no-op from tarballs
1641         * top/maint.mk (no-vc-detected): New rule.
1642         (local-checks-available): Use it to avoid hanging if someone tries
1643         'make syntax-check' from a tarball.  Also append to any non-syntax
1644         checks already defined in cfg.mk.
1645
1646 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         longlong: tune, particularly for common case of c99
1649
1650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
1651         or running anything if c99, or if unsigned long long int does not
1652         work.  In either case, we know the answer without further tests.
1653         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
1654         it at most once, and use its results for both long long int and
1655         unsigned long long int.  This is more likely to be efficient in
1656         the common case where the program wants to check for both long
1657         long int and unsigned long long int.
1658         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
1659         since the answer is already known.
1660
1661 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         getloadavg: set errno
1664         * lib/getloadavg.c: Set errno when returning -1.  If no other
1665         error number looks appropriate, set it to ENOSYS if the getloadavg
1666         looks like it can't possibly ever work, ENOTSUP otherwise.
1667         Suggested by Bruno Haible in
1668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
1669
1670         getloadavg: trim unused parts and speed up 'configure'
1671         * NEWS: Document this.
1672         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
1673         always compiled if getloadavg is absent.
1674         Move test code to ...
1675         * tests/test-getloadavg.c: New file, containing previous
1676         contents of test from lib/getloadavg.c.  It also contains
1677         suggestions by Bruno Haible in
1678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
1679         * modules/getloadavg-tests: New file.
1680         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
1681         Do tests in the same order as they're needed for getloadavg.c.
1682         Omit setgid-related tests that generate symbols KMEM_GROUP,
1683         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
1684         Do only the tests that are needed to see whether the system has
1685         getloadavg, moving the other tests into ...
1686         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
1687         NLIST_NAME_UNION; nobody should be using it.  Do not define
1688         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
1689         relevant, as the user of this module shouldn't care how getloadavg
1690         is implemented.
1691
1692         getloadavg: omit unused var
1693         * lib/getloadavg.c (getloadavg): Omit unused local variable.
1694
1695 2011-02-15  Jim Meyering  <meyering@redhat.com>
1696
1697         doc: update users.txt
1698         * users.txt: Update iwhd's URL.
1699
1700 2011-02-13  Bruno Haible  <bruno@clisp.org>
1701
1702         Consistent macro naming for macros that use GCC __attribute__.
1703         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
1704         _ATTRIBUTE_NONNULL_.
1705         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
1706         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
1707         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
1708         ATTRIBUTE_DEPRECATED.
1709         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
1710         ATTRIBUTE_NORETURN.
1711         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1712         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1713         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1714         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
1715         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
1716         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
1717         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
1718         ATTRIBUTE_SENTINEL.
1719         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
1720         ATTRIBUTE_RETURN_CHECK.
1721         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
1722         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
1723         ATTRIBUTE_NORETURN.
1724         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
1725         Reported by Paul Eggert.
1726
1727 2011-02-13  Bruno Haible  <bruno@clisp.org>
1728
1729         Don't interfere with a program's definition of __attribute__.
1730         * lib/argp.h (__attribute__): Remove definition.
1731         (_GL_ATTRIBUTE_FORMAT): New macro.
1732         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
1733         * lib/argp-fmtstream.h (__attribute__): Remove definition.
1734         (_GL_ATTRIBUTE_FORMAT): New macro.
1735         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
1736         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
1737         GCC 3 or newer.
1738         * lib/error.h (__attribute__): Remove definition.
1739         (_GL_ATTRIBUTE_FORMAT): New macro.
1740         (error, error_at_line): Use it.
1741         * lib/hash.h (__attribute__): Remove definition.
1742         (ATTRIBUTE_WUR): Update definition. Define always.
1743         * lib/openat.h (__attribute__): Remove definition.
1744         (ATTRIBUTE_NORETURN): Update definition. Define always.
1745         * lib/sigpipe-die.h (__attribute__): Remove definition.
1746         (ATTRIBUTE_NORETURN): Update definition. Define always.
1747         * lib/vasnprintf.h (__attribute__): Remove definition.
1748         (_GL_ATTRIBUTE_FORMAT): New macro.
1749         (asnprintf, vasnprintf): Use it.
1750         * lib/xalloc.h (__attribute__): Remove definition.
1751         (ATTRIBUTE_NORETURN): Update definition. Define always.
1752         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
1753         * lib/xmemdup0.h (__attribute__): Remove definition.
1754         (ATTRIBUTE_NORETURN): Update definition. Define always.
1755         * lib/xprintf.h (__attribute__): Remove definition.
1756         (_GL_ATTRIBUTE_FORMAT): New macro.
1757         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
1758         * lib/xstrtol.h (__attribute__): Remove definition.
1759         (ATTRIBUTE_NORETURN): Update definition. Define always.
1760         * lib/xvasprintf.h (__attribute__): Remove definition.
1761         (_GL_ATTRIBUTE_FORMAT): New macro.
1762         (xasprintf, xvasprintf): Use it.
1763         * tests/test-argmatch.c (__attribute__): Remove definition.
1764         (ATTRIBUTE_NORETURN): Update definition. Define always.
1765         * tests/test-exclude.c (__attribute__): Remove definition.
1766         (ATTRIBUTE_NORETURN): Update definition. Define always.
1767         Reported by Paul Eggert.
1768
1769 2011-02-13  Bruno Haible  <bruno@clisp.org>
1770
1771         mbrtowc: Add more tests for native Windows platforms.
1772         * tests/test-mbrtowc-w32-1.sh: New file.
1773         * tests/test-mbrtowc-w32-2.sh: New file.
1774         * tests/test-mbrtowc-w32-3.sh: New file.
1775         * tests/test-mbrtowc-w32-4.sh: New file.
1776         * tests/test-mbrtowc-w32-5.sh: New file.
1777         * tests/test-mbrtowc-w32.c: New file.
1778         * modules/mbrtowc-tests (Files): Add them.
1779         (Makefile.am): Arrange to run these tests.
1780         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
1781         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
1782
1783 2011-02-13  Bruno Haible  <bruno@clisp.org>
1784
1785         mbrtowc: Work around native Windows bug.
1786         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
1787         guess when no suitable locale for testing was found.
1788         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
1789
1790 2011-02-13  Bruno Haible  <bruno@clisp.org>
1791
1792         mbsinit: Work around mingw bug.
1793         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
1794         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
1795         Windows.
1796         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
1797
1798 2011-02-13  Bruno Haible  <bruno@clisp.org>
1799
1800         mbsinit: Don't crash for a NULL argument.
1801         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
1802         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
1803
1804 2011-02-13  Bruno Haible  <bruno@clisp.org>
1805
1806         Don't interfere with a program's definition of __attribute__.
1807         * lib/stdio.in.h (__attribute__): Remove definition.
1808         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
1809         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
1810         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
1811         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
1812         * lib/string.in.h (__attribute__): Remove definition.
1813         Reported by Paul Eggert.
1814
1815 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         stdlib: don't get in the way of non-GCC __attribute__
1818         See thread starting at
1819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
1820         Revert previous stdlib change, installing the following instead:
1821         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
1822         to get in the way of a non-GCC compiler that supports __attribute__.
1823         (_GL_ATTRIBUTE_RETURN): New macro.
1824         (_Exit): Use it instead of __attribute__.
1825
1826 2011-02-12  Bruno Haible  <bruno@clisp.org>
1827
1828         quotearg test: Avoid test failure on mingw.
1829         * tests/test-quotearg.sh: Convert the locale identifier from native
1830         Windows syntax to Unix syntax.
1831
1832 2011-02-12  Bruno Haible  <bruno@clisp.org>
1833
1834         setlocale: Prefer gnulib's override over libintl's override.
1835         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
1836         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
1837         GNULIB_defined_setlocale is set.
1838
1839 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         stdlib: support non-GCC __attribute__
1842
1843         Fix a serious and tricky problem encountered when attempting to
1844         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
1845         5.5, but it crashed due to memory corruption on Solaris 10 with
1846         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
1847         bits that are otherwise zero.  This tagging is optional inside
1848         Emacs but is preferred and is used when __attribute__ ((__aligned
1849         (8))) works, as it does with both recent-enough GCC and with Sun C
1850         5.11.  However, Sun C 5.11 is not GCC and does not #define
1851         __GNUC__ and __GNUC_MINOR__.
1852
1853         When I added the getloadavg module to Emacs, it brought in
1854         stdlib.in.h, which contained this fragment:
1855
1856            #ifndef __attribute__
1857            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
1858            #  define __attribute__(Spec)   /* empty */
1859            # endif
1860            #endif
1861
1862         When files that include <stdlib.h> were compiled with Sun C 5.11,
1863         the above code disabled __attribute__ ((__aligned (8))), which
1864         caused variables to not be properly aligned, which eventually led
1865         to the pointer corruption mentioned above.  (This was a bit hard
1866         to diagnose, unfortunately.)
1867
1868         Several "#define __attribute__(X) /* empty */" code snippets need
1869         to be eradicated from Gnulib to work with non-GCC compilers that
1870         support __attribute__.  The Autoconf way to do this is to test for
1871         each kind of attribute that we want support for, and selectively
1872         enable that in source code.
1873
1874         Fix this problem just for stdlib.h, by adding a test for the
1875         __noreturn__ attribute, and change stdlib.in.h to use that test
1876         when needed.  This technique can be easily generalized to the
1877         other *.in.h files and attributes, and a similar technique can be
1878         used for *.h and *.c files.  This patch is enough to solve the
1879         problem for Emacs + getloadavg, and I thought I'd publish it for
1880         feedback before undertaking further, similar fixes in other
1881         modules.
1882
1883         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
1884         because it's not needed for stdlib.h.  It merely substitutes the
1885         value directly into stdlib.h.  We may well need to #define it, or
1886         similar symbols, for other modules, but it's nice to also have an
1887         option to not #define it for applications like Emacs that do not
1888         need it.
1889
1890         * lib/stdlib.in.h (__attribute__): Do not #define.
1891         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
1892         be defined only if the _Exit module is also used.
1893         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
1894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
1895         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
1896         platforms.
1897         * modules/_Exit (Files): Add m4/attribute.m4.
1898         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
1899         * m4/attribute.m4: New file.
1900
1901 2011-02-12  Bruno Haible  <bruno@clisp.org>
1902
1903         wcsrtombs: Work around bug on native Windows.
1904         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
1905         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
1906         instead of len.
1907         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
1908
1909 2011-02-12  Bruno Haible  <bruno@clisp.org>
1910
1911         mbsrtowcs: Work around bug on native Windows.
1912         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
1913         against mingw bug.
1914         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
1915
1916 2011-02-12  Bruno Haible  <bruno@clisp.org>
1917
1918         Avoid setlocale bugs in tests.
1919         * modules/btowc (Dependencies): Add setlocale.
1920         * modules/c-strcase (Dependencies): Likewise.
1921         * modules/mbmemcasecmp (Dependencies): Likewise.
1922         * modules/mbmemcasecoll (Dependencies): Likewise.
1923         * modules/mbrtowc (Dependencies): Likewise.
1924         * modules/mbscasecmp (Dependencies): Likewise.
1925         * modules/mbscasestr (Dependencies): Likewise.
1926         * modules/mbschr (Dependencies): Likewise.
1927         * modules/mbscspn (Dependencies): Likewise.
1928         * modules/mbsinit (Dependencies): Likewise.
1929         * modules/mbsncasecmp (Dependencies): Likewise.
1930         * modules/mbsnrtowcs (Dependencies): Likewise.
1931         * modules/mbspbrk (Dependencies): Likewise.
1932         * modules/mbspcasecmp (Dependencies): Likewise.
1933         * modules/mbsrchr (Dependencies): Likewise.
1934         * modules/mbsrtowcs (Dependencies): Likewise.
1935         * modules/mbsspn (Dependencies): Likewise.
1936         * modules/mbsstr (Dependencies): Likewise.
1937         * modules/nl_langinfo (Dependencies): Likewise.
1938         * modules/quotearg (Dependencies): Likewise.
1939         * modules/unicase/locale-language (Dependencies): Likewise.
1940         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
1941         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
1942         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
1943         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
1944         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
1945         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
1946         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
1947         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
1948         * modules/vasnprintf-posix (Dependencies): Likewise.
1949         * modules/wcrtomb (Dependencies): Likewise.
1950         * modules/wcsnrtombs (Dependencies): Likewise.
1951         * modules/wcsrtombs (Dependencies): Likewise.
1952
1953 2011-02-12  Bruno Haible  <bruno@clisp.org>
1954
1955         setlocale: Workaround native Windows bug.
1956         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
1957         succeeds but sets LC_CTYPE to "C", report a failure.
1958         * tests/test-setlocale2.sh: New file.
1959         * tests/test-setlocale2.c: New file.
1960         * modules/setlocale-tests (Files): Add the new files.
1961         (Makefile.am): Enable test-setlocale2.sh test.
1962         * doc/posix-functions/setlocale.texi: Mention workaround.
1963
1964 2011-02-11  Bruno Haible  <bruno@clisp.org>
1965
1966         Tests for module 'setlocale'.
1967         * modules/setlocale-tests: New file.
1968         * tests/test-setlocale1.sh: New file.
1969         * tests/test-setlocale1.c: New file.
1970
1971         New module 'setlocale'.
1972         * lib/locale.in.h (setlocale): New declaration.
1973         * lib/setlocale.c: New file, based on
1974         gettext/gettext-runtime/intl/setlocale.c.
1975         * m4/setlocale.m4: New file.
1976         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1977         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1978         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1979         REPLACE_SETLOCALE.
1980         * modules/setlocale: New file.
1981         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1982         * doc/posix-functions/setlocale.texi: Mention the new module.
1983
1984 2011-02-11  Bruno Haible  <bruno@clisp.org>
1985
1986         Prepare for locale dependent tests on mingw.
1987         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1988         because it has the wrong locale encoding.
1989         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1990         French_France.1252 instead of "fr".
1991         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1992         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1993         because it has the wrong locale encoding.
1994         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1995         native Windows, try Turkish_Turkey.65001.
1996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1997         Chinese_China.54936.
1998
1999         Prepare for locale dependent tests on mingw.
2000         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2001         differently.
2002         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2003         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2004         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2005         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2006
2007 2011-02-11  Eric Blake  <eblake@redhat.com>
2008
2009         strptime: avoid compiler warnings
2010         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2011         compiler warnings about dead code.
2012         Reported by Daniel P. Berrange.
2013
2014 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2015
2016         doc: update users.txt
2017         * users.txt: Add rcs.
2018
2019 2011-02-10  John W. Eaton  <jwe@gnu.org>
2020
2021         doc: update users.txt
2022         * users.txt: Add octave.
2023
2024 2011-02-10  Jim Meyering  <meyering@redhat.com>
2025
2026         doc: update users.txt
2027         * users.txt: Add iwhd.
2028
2029 2011-02-09  Bruno Haible  <bruno@clisp.org>
2030
2031         gnulib-tool: Make copyright notice adjustment more robust.
2032         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2033         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2034         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2035         License".
2036         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2037
2038 2011-02-06  Bruno Haible  <bruno@clisp.org>
2039
2040         New module 'towctrans'.
2041         * modules/towctrans: New file.
2042         * lib/wctype.in.h (towctrans): New declaration.
2043         * lib/towctrans.c: New file.
2044         * lib/towctrans-impl.h: New file.
2045         * m4/towctrans.m4: New file.
2046         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2047         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2048         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2049         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2050         * doc/posix-functions/towctrans.texi: Mention the new module.
2051
2052 2011-02-06  Bruno Haible  <bruno@clisp.org>
2053
2054         New module 'wctrans'.
2055         * modules/wctrans: New file.
2056         * lib/wctype.in.h (wctrans): New declaration.
2057         * lib/wctrans.c: New file.
2058         * lib/wctrans-impl.h: New file.
2059         * m4/wctrans.m4: New file.
2060         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2061         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2062         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2063         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2064         * doc/posix-functions/wctrans.texi: Mention the new module.
2065
2066 2011-02-06  Bruno Haible  <bruno@clisp.org>
2067
2068         New module 'iswctype'.
2069         * modules/iswctype: New file.
2070         * lib/wctype.in.h (iswctype): New declaration.
2071         * lib/iswctype.c: New file.
2072         * lib/iswctype-impl.h: New file.
2073         * m4/iswctype.m4: New file.
2074         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2075         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2076         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2077         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2078         * doc/posix-functions/iswctype.texi: Mention the new module and the
2079         HP-UX 11.00 problem.
2080
2081 2011-02-06  Bruno Haible  <bruno@clisp.org>
2082
2083         New module 'wctype'.
2084         * modules/wctype: Change to represent the wctype() substitute.
2085         * lib/wctype.in.h (wctype): New declaration.
2086         * lib/wctype.c: New file.
2087         * lib/wctype-impl.h: New file.
2088         * m4/wctype.m4: New file.
2089         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2090         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2091         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2092         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2093         * doc/posix-functions/wctype.texi: Mention the new module and the
2094         HP-UX 11.00 problem.
2095
2096 2011-02-06  Bruno Haible  <bruno@clisp.org>
2097
2098         wctype-h: Ensure wctype_t and wctrans_t are defined.
2099         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2100         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2101         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2102         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2103         HAVE_WCTRANS_T.
2104         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2105
2106 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2107
2108         flock: fix license typo
2109
2110         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2111         omitted.
2112
2113 2011-02-08  Bruno Haible  <bruno@clisp.org>
2114
2115         Split large sed scripts, for HP-UX sed.
2116         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2117         to avoid HP-UX limit of 99 commands, in the near future.
2118         * modules/stdlib (Makefile.am): Likewise.
2119         * modules/unistd (Makefile.am): Likewise.
2120         * modules/wchar (Makefile.am): Likewise.
2121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2122         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2124
2125 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2126             Bruno Haible  <bruno@clisp.org>
2127
2128         stdlib: improve random_r modularization
2129         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2130         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2131         you also need the random_r module to get this material right.
2132         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2133         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2134         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2135
2136 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2137
2138         stdlib: don't depend on stdint
2139         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2140         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2141         be independent of whether stdint.h is needed.
2142         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2143         here, instead of ...
2144         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2145         struct random_data should be using the random_r module, not just
2146         the stdlib module (which wouldn't make sense: what package needs
2147         just struct random_data without also needing random_r?).
2148         * modules/stdlib (Depends-on): Remove stdint.
2149
2150         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2151         See the thread rooted at
2152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2153         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2154         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2155         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2156         __VMS)); previously it was always included (via fcntl--.h).
2157         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2158         hand; this is good enough for load averages.  Also, do not use
2159         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2160         flags directly if available and don't bother otherwise.  (Packages
2161         that need the extra reliability should use the modules that define
2162         these flags on older platforms that lack them.)
2163         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2164         fcntl-safer.
2165
2166 2011-02-08  Jim Meyering  <meyering@redhat.com>
2167
2168         di-set.h, ino-map.h: add multiple-inclusion guard
2169         Technically, the guard is required only for ino-map.h, due to its
2170         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2171         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2172         * lib/ino-map.h: Likewise.
2173
2174 2011-02-06  Bruno Haible  <bruno@clisp.org>
2175
2176         iswblank: Ensure declaration on glibc systems.
2177         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2178         * modules/iswblank (Dependencies): Add 'extensions'.
2179         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2180
2181 2011-02-06  Bruno Haible  <bruno@clisp.org>
2182
2183         New module 'iswblank'.
2184         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2185         * modules/iswblank: New file.
2186         * modules/wctype-h (Files): Remove lib/iswblank.c.
2187         (Makefile.am): Substitute GNULIB_ISWBLANK.
2188         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2189         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2190         (gl_WCTYPE_H_DEFAULTS): New macro.
2191         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2192         * modules/iswblank-tests: New file.
2193         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2194         * tests/test-wctype-h.c (main): Remove iswblank tests.
2195         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2196         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2197         of 'wctype-h'.
2198         * NEWS: Mention the change.
2199         * modules/mbchar (Depends-on): Add iswblank.
2200
2201 2011-02-08  Bruno Haible  <bruno@clisp.org>
2202
2203         di-set tests: Refactor.
2204         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2205         unnecessary includes.
2206         (ASSERT): Remove macro.
2207         (main): Make C90 compliant by avoiding variable declaration after
2208         statement.
2209         * modules/di-set-tests (Files): Add tests/macros.h.
2210
2211 2011-02-08  Bruno Haible  <bruno@clisp.org>
2212
2213         ino-map tests: Refactor.
2214         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2215         unnecessary includes.
2216         (ASSERT): Remove macro.
2217         (main): Make C90 compliant by avoiding variable declaration after
2218         statement.
2219         * modules/ino-map-tests (Files): Add tests/macros.h.
2220
2221 2011-02-08  Jim Meyering  <meyering@redhat.com>
2222
2223         di-set: add "const" to a cast
2224         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2225         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2226
2227 2011-02-06  Bruno Haible  <bruno@clisp.org>
2228
2229         Rename module 'wctype' to 'wctype-h'.
2230         * modules/wctype-h: Renamed from modules/wctype.
2231         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2232         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2233         (Files, Depends-on, Makefile.am): Update.
2234         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2235         (Files, Makefile.am): Update.
2236         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2237         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2238         * doc/posix-headers/wctype.texi: Update.
2239         * doc/posix-functions/iswalnum.texi: Update.
2240         * doc/posix-functions/iswalpha.texi: Update.
2241         * doc/posix-functions/iswblank.texi: Update.
2242         * doc/posix-functions/iswcntrl.texi: Update.
2243         * doc/posix-functions/iswdigit.texi: Update.
2244         * doc/posix-functions/iswgraph.texi: Update.
2245         * doc/posix-functions/iswlower.texi: Update.
2246         * doc/posix-functions/iswprint.texi: Update.
2247         * doc/posix-functions/iswpunct.texi: Update.
2248         * doc/posix-functions/iswspace.texi: Update.
2249         * doc/posix-functions/iswupper.texi: Update.
2250         * doc/posix-functions/iswxdigit.texi: Update.
2251         * doc/posix-functions/towlower.texi: Update.
2252         * doc/posix-functions/towupper.texi: Update.
2253         * NEWS: Mention the change.
2254         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
2255         * modules/mbchar (Dependencies): Likewise.
2256         * modules/mbswidth (Dependencies): Likewise.
2257         * modules/quotearg (Dependencies): Likewise.
2258         * modules/regex (Dependencies): Likewise.
2259         * modules/wcscasecmp (Dependencies): Likewise.
2260         * modules/wcsncasecmp (Dependencies): Likewise.
2261         * modules/wcwidth (Dependencies): Likewise.
2262
2263 2011-02-06  Bruno Haible  <bruno@clisp.org>
2264
2265         New module 'wcswidth'.
2266         * modules/wcswidth: New file.
2267         * lib/wchar.in.h (wcswidth): New declaration.
2268         * lib/wcswidth.c: New file.
2269         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
2270         * m4/wcswidth.m4: New file.
2271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
2272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
2273         REPLACE_WCSWIDTH.
2274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
2275         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
2276         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
2277         * doc/posix-functions/wcswidth.texi: Mention the new module.
2278
2279 2011-02-06  Bruno Haible  <bruno@clisp.org>
2280
2281         New module 'wcstok'.
2282         * modules/wcstok: New file.
2283         * lib/wchar.in.h (wcstok): New declaration.
2284         * lib/wcstok.c: New file.
2285         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
2286         * m4/wcstok.m4: New file.
2287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
2288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
2289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
2290         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
2291         * doc/posix-functions/wcstok.texi: Mention the new module.
2292
2293 2011-02-06  Bruno Haible  <bruno@clisp.org>
2294
2295         New module 'wcsstr'.
2296         * modules/wcsstr: New file.
2297         * lib/wchar.in.h (wcsstr): New declaration.
2298         * lib/wcsstr.c: New file.
2299         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
2300         * m4/wcsstr.m4: New file.
2301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
2302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
2303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
2304         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
2305         * doc/posix-functions/wcsstr.texi: Mention the new module.
2306
2307 2011-02-06  Bruno Haible  <bruno@clisp.org>
2308
2309         New module 'wcspbrk'.
2310         * modules/wcspbrk: New file.
2311         * lib/wchar.in.h (wcspbrk): New declaration.
2312         * lib/wcspbrk.c: New file.
2313         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
2314         * m4/wcspbrk.m4: New file.
2315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
2316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
2317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
2318         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
2319         * doc/posix-functions/wcspbrk.texi: Mention the new module.
2320
2321 2011-02-06  Bruno Haible  <bruno@clisp.org>
2322
2323         New module 'wcsspn'.
2324         * modules/wcsspn: New file.
2325         * lib/wchar.in.h (wcsspn): New declaration.
2326         * lib/wcsspn.c: New file.
2327         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
2328         * m4/wcsspn.m4: New file.
2329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
2330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
2331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
2332         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
2333         * doc/posix-functions/wcsspn.texi: Mention the new module.
2334
2335 2011-02-06  Bruno Haible  <bruno@clisp.org>
2336
2337         New module 'wcscspn'.
2338         * modules/wcscspn: New file.
2339         * lib/wchar.in.h (wcscspn): New declaration.
2340         * lib/wcscspn.c: New file.
2341         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
2342         * m4/wcscspn.m4: New file.
2343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
2344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
2345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
2346         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
2347         * doc/posix-functions/wcscspn.texi: Mention the new module.
2348
2349 2011-02-06  Bruno Haible  <bruno@clisp.org>
2350
2351         New module 'wcsrchr'.
2352         * modules/wcsrchr: New file.
2353         * lib/wchar.in.h (wcsrchr): New declaration.
2354         * lib/wcsrchr.c: New file.
2355         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
2356         * m4/wcsrchr.m4: New file.
2357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
2358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
2359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
2360         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
2361         * doc/posix-functions/wcsrchr.texi: Mention the new module.
2362
2363 2011-02-06  Bruno Haible  <bruno@clisp.org>
2364
2365         New module 'wcschr'.
2366         * modules/wcschr: New file.
2367         * lib/wchar.in.h (wcschr): New declaration.
2368         * lib/wcschr.c: New file.
2369         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
2370         * m4/wcschr.m4: New file.
2371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
2372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
2373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
2374         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
2375         * doc/posix-functions/wcschr.texi: Mention the new module.
2376
2377 2011-02-06  Bruno Haible  <bruno@clisp.org>
2378
2379         New module 'wcsdup'.
2380         * modules/wcsdup: New file.
2381         * lib/wchar.in.h (wcsdup): New declaration.
2382         * lib/wcsdup.c: New file.
2383         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
2384         * m4/wcsdup.m4: New file.
2385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
2386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
2387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
2388         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
2389         * doc/posix-functions/wcsdup.texi: Mention the new module.
2390
2391 2011-02-06  Bruno Haible  <bruno@clisp.org>
2392
2393         New module 'wcsxfrm'.
2394         * modules/wcsxfrm: New file.
2395         * lib/wchar.in.h (wcsxfrm): New declaration.
2396         * lib/wcsxfrm.c: New file.
2397         * lib/wcsxfrm-impl.h: New file.
2398         * m4/wcsxfrm.m4: New file.
2399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
2400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
2401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
2402         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
2403         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
2404
2405 2011-02-06  Bruno Haible  <bruno@clisp.org>
2406
2407         New module 'wcscoll'.
2408         * modules/wcscoll: New file.
2409         * lib/wchar.in.h (wcscoll): New declaration.
2410         * lib/wcscoll.c: New file.
2411         * lib/wcscoll-impl.h: New file.
2412         * m4/wcscoll.m4: New file.
2413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
2414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
2415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
2416         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
2417         * doc/posix-functions/wcscoll.texi: Mention the new module.
2418
2419 2011-02-06  Bruno Haible  <bruno@clisp.org>
2420
2421         New module 'wcsncasecmp'.
2422         * modules/wcsncasecmp: New file.
2423         * lib/wchar.in.h (wcsncasecmp): New declaration.
2424         * lib/wcsncasecmp.c: New file.
2425         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
2426         * m4/wcsncasecmp.m4: New file.
2427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
2428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
2429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
2430         HAVE_WCSNCASECMP.
2431         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
2432         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
2433
2434 2011-02-06  Bruno Haible  <bruno@clisp.org>
2435
2436         New module 'wcscasecmp'.
2437         * modules/wcscasecmp: New file.
2438         * lib/wchar.in.h (wcscasecmp): New declaration.
2439         * lib/wcscasecmp.c: New file.
2440         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
2441         * m4/wcscasecmp.m4: New file.
2442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
2443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
2444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
2445         HAVE_WCSCASECMP.
2446         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
2447         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
2448
2449 2011-02-05  Bruno Haible  <bruno@clisp.org>
2450
2451         New module 'wcsncmp'.
2452         * modules/wcsncmp: New file.
2453         * lib/wchar.in.h (wcsncmp): New declaration.
2454         * lib/wcsncmp.c: New file.
2455         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
2456         * m4/wcsncmp.m4: New file.
2457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
2458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
2459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
2460         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
2461         * doc/posix-functions/wcsncmp.texi: Mention the new module.
2462
2463 2011-02-05  Bruno Haible  <bruno@clisp.org>
2464
2465         New module 'wcscmp'.
2466         * modules/wcscmp: New file.
2467         * lib/wchar.in.h (wcscmp): New declaration.
2468         * lib/wcscmp.c: New file.
2469         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
2470         * m4/wcscmp.m4: New file.
2471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
2472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
2473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
2474         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
2475         * doc/posix-functions/wcscmp.texi: Mention the new module.
2476
2477 2011-02-05  Bruno Haible  <bruno@clisp.org>
2478
2479         New module 'wcsncat'.
2480         * modules/wcsncat: New file.
2481         * lib/wchar.in.h (wcsncat): New declaration.
2482         * lib/wcsncat.c: New file.
2483         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
2484         * m4/wcsncat.m4: New file.
2485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
2486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
2487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
2488         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
2489         * doc/posix-functions/wcsncat.texi: Mention the new module.
2490
2491 2011-02-05  Bruno Haible  <bruno@clisp.org>
2492
2493         New module 'wcscat'.
2494         * modules/wcscat: New file.
2495         * lib/wchar.in.h (wcscat): New declaration.
2496         * lib/wcscat.c: New file.
2497         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
2498         * m4/wcscat.m4: New file.
2499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
2500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
2501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
2502         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
2503         * doc/posix-functions/wcscat.texi: Mention the new module.
2504
2505 2011-02-05  Bruno Haible  <bruno@clisp.org>
2506
2507         New module 'wcpncpy'.
2508         * modules/wcpncpy: New file.
2509         * lib/wchar.in.h (wcpncpy): New declaration.
2510         * lib/wcpncpy.c: New file.
2511         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
2512         * m4/wcpncpy.m4: New file.
2513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
2514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
2515         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
2516         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
2517         * doc/posix-functions/wcpncpy.texi: Mention the new module.
2518
2519 2011-02-05  Bruno Haible  <bruno@clisp.org>
2520
2521         New module 'wcsncpy'.
2522         * modules/wcsncpy: New file.
2523         * lib/wchar.in.h (wcsncpy): New declaration.
2524         * lib/wcsncpy.c: New file.
2525         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
2526         * m4/wcsncpy.m4: New file.
2527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
2528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
2529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
2530         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
2531         * doc/posix-functions/wcsncpy.texi: Mention the new module.
2532
2533 2011-02-05  Bruno Haible  <bruno@clisp.org>
2534
2535         New module 'wcpcpy'.
2536         * modules/wcpcpy: New file.
2537         * lib/wchar.in.h (wcpcpy): New declaration.
2538         * lib/wcpcpy.c: New file.
2539         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
2540         * m4/wcpcpy.m4: New file.
2541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
2542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
2543         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
2544         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
2545         * doc/posix-functions/wcpcpy.texi: Mention the new module.
2546
2547 2011-02-05  Bruno Haible  <bruno@clisp.org>
2548
2549         New module 'wcscpy'.
2550         * modules/wcscpy: New file.
2551         * lib/wchar.in.h (wcscpy): New declaration.
2552         * lib/wcscpy.c: New file.
2553         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
2554         * m4/wcscpy.m4: New file.
2555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
2556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
2557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
2558         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
2559         * doc/posix-functions/wcscpy.texi: Mention the new module.
2560
2561 2011-02-05  Bruno Haible  <bruno@clisp.org>
2562
2563         New module 'wcsnlen'.
2564         * modules/wcsnlen: New file.
2565         * lib/wchar.in.h (wcsnlen): New declaration.
2566         * lib/wcsnlen.c: New file.
2567         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
2568         * m4/wcsnlen.m4: New file.
2569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
2570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
2571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
2572         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
2573         * doc/posix-functions/wcsnlen.texi: Mention the new module.
2574
2575 2011-02-05  Bruno Haible  <bruno@clisp.org>
2576
2577         New module 'wcslen'.
2578         * modules/wcslen: New file.
2579         * lib/wchar.in.h (wcslen): New declaration.
2580         * lib/wcslen.c: New file.
2581         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
2582         * m4/wcslen.m4: New file.
2583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
2584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
2585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
2586         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
2587         * doc/posix-functions/wcslen.texi: Mention the new module.
2588
2589 2011-02-05  Bruno Haible  <bruno@clisp.org>
2590
2591         New module 'wmemset'.
2592         * modules/wmemset: New file.
2593         * lib/wchar.in.h (wmemset): New declaration.
2594         * lib/wmemset.c: New file.
2595         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
2596         * m4/wmemset.m4: New file.
2597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
2598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
2599         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
2600         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
2601         * doc/posix-functions/wmemset.texi: Mention the new module.
2602
2603 2011-02-05  Bruno Haible  <bruno@clisp.org>
2604
2605         New module 'wmemmove'.
2606         * modules/wmemmove: New file.
2607         * lib/wchar.in.h (wmemmove): New declaration.
2608         * lib/wmemmove.c: New file.
2609         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
2610         * m4/wmemmove.m4: New file.
2611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
2612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
2613         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
2614         HAVE_WMEMMOVE.
2615         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
2616         * doc/posix-functions/wmemmove.texi: Mention the new module.
2617
2618 2011-02-05  Bruno Haible  <bruno@clisp.org>
2619
2620         New module 'wmemcpy'.
2621         * modules/wmemcpy: New file.
2622         * lib/wchar.in.h (wmemcpy): New declaration.
2623         * lib/wmemcpy.c: New file.
2624         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
2625         * m4/wmemcpy.m4: New file.
2626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
2627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
2628         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
2629         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
2630         * doc/posix-functions/wmemcpy.texi: Mention the new module.
2631
2632 2011-02-05  Bruno Haible  <bruno@clisp.org>
2633
2634         New module 'wmemcmp'.
2635         * modules/wmemcmp: New file.
2636         * lib/wchar.in.h (wmemcmp): New declaration.
2637         * lib/wmemcmp.c: New file.
2638         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
2639         * m4/wmemcmp.m4: New file.
2640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
2641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
2642         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
2643         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
2644         * doc/posix-functions/wmemcmp.texi: Mention the new module.
2645
2646 2011-02-07  Jim Meyering  <meyering@redhat.com>
2647
2648         di-set, ino-map: new modules, from coreutils
2649         * lib/di-set.c: New file.
2650         * lib/di-set.h: Likewise.
2651         * lib/ino-map.c: Likewise.
2652         * lib/ino-map.h: Likewise.
2653         * modules/di-set: Likewise.
2654         * modules/di-set-tests: Likewise.
2655         * modules/ino-map: Likewise.
2656         * modules/ino-map-tests: Likewise.
2657         * tests/test-di-set.c: Likewise.
2658         * tests/test-ino-map.c: Likewise.
2659
2660 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         getloadavg: merge minor changes from Emacs
2663
2664         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
2665         (getloadavg): Use memset, not bzero.
2666
2667         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
2668         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2669         clash (bug#86).
2670
2671 2010-11-14  Bruno Haible  <bruno@clisp.org>
2672
2673         Allow multiple gnulib generated replacements to coexist.
2674         * lib/getopt.in.h (struct option): Avoid identical redefinition.
2675         * lib/inttypes.in.h (imaxdiv_t): Likewise.
2676         * lib/langinfo.in.h (nl_item): Likewise.
2677         * lib/math.in.h (_NaN, NAN): Likewise.
2678         * lib/netdb.in.h (struct addrinfo): Likewise.
2679         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
2680         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
2681         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
2682         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
2683         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
2684         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
2685         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
2686         pthread_mutexattr_init, pthread_mutexattr_settype,
2687         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
2688         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
2689         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
2690         pthread_spin_trylock, pthread_spin_unlock): Likewise.
2691         * lib/sched.in.h (struct sched_param): Likewise.
2692         * lib/se-selinux.in.h (security_class_t, security_context_t,
2693         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
2694         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
2695         lsetfilecon, fsetfilecon, security_check_context,
2696         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
2697         Likewise.
2698         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
2699         Likewise.
2700         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
2701         _gl_function_taking_int_returning_void_t, union sigval,
2702         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
2703         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
2704         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2705         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
2706         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
2707         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
2708         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
2709         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
2710         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
2711         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
2712         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
2713         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
2714         socklen_t, rpl_fd_isset): Likewise.
2715         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
2716         * lib/sys_time.in.h (struct timeval): Likewise.
2717         * lib/sys_times.in.h (struct tms): Likewise.
2718         * lib/sys_utsname.in.h (struct utsname):
2719         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
2720         * lib/unistd.in.h (getpagesize): Likewise.
2721         * lib/wchar.in.h (mbstate_t): Likewise.
2722         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2723         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
2724         towlower, towupper): Likewise.
2725         Reported by Sam Steingold <sds@gnu.org>.
2726
2727 2011-02-05  Eric Blake  <eblake@redhat.com>
2728
2729         unsetenv: work around Haiku issues
2730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
2731         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
2732
2733 2010-12-30  Bruce Korb  <bkorb@gnu.org>
2734
2735         libposix: avoid calling error() within libposix
2736         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
2737         is defined.
2738
2739 2011-02-05  Eric Blake  <eblake@redhat.com>
2740
2741         strerror_r-posix: port to cygwin
2742         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
2743         implementation.
2744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
2745         * tests/test-strerror_r.c (main): Fix test.
2746         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2747         issue.
2748
2749 2011-02-05  Bruno Haible  <bruno@clisp.org>
2750
2751         New module 'wmemchr'.
2752         * modules/wmemchr: New file.
2753         * lib/wchar.in.h (wmemchr): New declaration.
2754         * lib/wmemchr.c: New file.
2755         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
2756         * m4/wmemchr.m4: New file.
2757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
2758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
2759         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
2760         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
2761         * doc/posix-functions/wmemchr.texi: Mention the new module.
2762
2763 2011-02-04  Eric Blake  <eblake@redhat.com>
2764
2765         fdopendir: detect FreeBSD bug
2766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
2767         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
2768
2769 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         stdbool: do not define HAVE_STDBOOL_H
2772         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
2773         AC_HEADER_STDBOOL.  All uses changed.  Do not define
2774         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
2775         imported from the latest Autoconf git.  It was motivated by Emacs,
2776         which uses gnulib but does not need HAVE_STDBOOL_H.
2777
2778 2011-02-04  Bruno Haible  <bruno@clisp.org>
2779
2780         wcsnrtombs: Prepare for new module wwcsnrtombs.
2781         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
2782         * lib/wcsnrtombs.c: Include it.
2783         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
2784
2785         wcsrtombs: Prepare for new module wwcsrtombs.
2786         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
2787         * lib/wcsrtombs.c: Include it.
2788         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
2789
2790         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
2791         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
2792         * lib/mbsnrtowcs.c: Include it.
2793         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
2794
2795         mbsrtowcs: Prepare for new module mbsrtowwcs.
2796         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
2797         * lib/mbsrtowcs.c: Include it.
2798         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
2799
2800 2011-02-04  Bruno Haible  <bruno@clisp.org>
2801
2802         vasnprintf: Reduce use of malloc for small format strings.
2803         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
2804         (arguments): Add room for the first 7 arguments.
2805         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
2806         (char_directives, u8_directives, u16_directives, u32_directives): Add
2807         room for the first 7 directives.
2808         * lib/printf-parse.c: Include <string.h>.
2809         (PRINTF_PARSE): Change memory handling code so that it uses the first
2810         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
2811         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
2812         Reported by Pádraig Brady <P@draigbrady.com>.
2813
2814 2011-01-31  Eric Blake  <eblake@redhat.com>
2815
2816         dup2: work around Haiku bug
2817         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
2818         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
2819         * doc/posix-functions/dup2.texi (dup2): Document the bug.
2820         * tests/test-dup2.c (main): Enhance test.
2821
2822 2011-01-31  Simon Josefsson  <simon@josefsson.org>
2823
2824         doc: off_t is not available in eglibc 2.11.2 stdio.h.
2825         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
2826         declared by eglibc 2.11.2.
2827         * lib/stdio.in.h: Likewise.
2828
2829 2011-01-31  Eric Blake  <eblake@redhat.com>
2830
2831         ignore-value: add missing test dependency
2832         * tests/test-ignore-value.c: Revert previous change; stdio.h
2833         provides off_t.
2834         * modules/ignore-value-tests (Depends-on): Add missing dependency.
2835
2836 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2837
2838         mktime: clarify long_int width checking
2839         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
2840         the top level, to make it clearer that the assumption about
2841         long_int width is being checked.  See
2842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
2843
2844 2011-01-30  Simon Josefsson  <simon@josefsson.org>
2845
2846         ignore-value: Fix self-test.
2847         * tests/test-ignore-value.c: Include sys/types.h for off_t.
2848
2849 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         TYPE_MAXIMUM: avoid theoretically undefined behavior
2852         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
2853         negative number, which the C Standard says has undefined behavior.
2854         In practice this is not a problem, but might as well do it by the book.
2855         Reported by Rich Felker and Eric Blake; see
2856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
2857         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
2858         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2860         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
2861         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2862         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
2863
2864         mktime: #undef mktime before #defining it
2865         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
2866
2867         mktime: systematically normalize tm_isdst comparisons
2868         * lib/mktime.c (isdst_differ): New function.
2869         (__mktime_internal): Use it systematically for all isdst comparisons.
2870         This completes the fix for libc BZ #6723, and removes the need for
2871         normalizing tm_isdst.  See
2872         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
2873         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
2874
2875         mktime: fix some integer overflow issues and sidestep the rest
2876
2877         This was prompted by a bug report by Benjamin Lindner for MinGW
2878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
2879         His bug is due to signed integer overflow (0 - INT_MIN), and I
2880         I scanned through mktime.c looking for other integer overflow
2881         problems, fixing all the bugs I found.
2882
2883         Although the C Standard says the resulting code is still not safe
2884         in the presence of integer overflow, in practice it should be good
2885         enough for all real-world two's-complement implementations, except
2886         for debugging environments that deliberately trap on integer
2887         overflow (e.g., gcc -ftrapv).
2888
2889         * lib/mktime.c (WRAPV): New macro.
2890         (SHR): Also check that long_int and time_t shift right in the
2891         usual way, before using the fast-but-unportable method.
2892         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
2893         used.  The code already assumed two's complement, so there's
2894         no need to test for alternatives.  All uses removed.
2895         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
2896         the C standard.  Problem reported by Rich Felker in
2897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
2898         (twos_complement_arithmetic): Also check long_int and time_t.
2899         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
2900         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
2901         (__mktime_internal): Avoid integer overflow with unary subtraction
2902         in two instances where -1 - X is an adequate replacement for -X,
2903         since the calculations are approximate.
2904
2905 2011-01-29  Eric Blake  <eblake@redhat.com>
2906
2907         mktime: avoid infinite loop
2908         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
2909         type; behavior is still undefined but portable to all known targets.
2910         Reported by Rich Felker.
2911
2912 2011-01-29  Simon Josefsson  <simon@josefsson.org>
2913
2914         rename, unlink, same-inode: Relicense.
2915         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
2916         * modules/unlink (License): Likewise.
2917         * modules/same-inode (License): Likewise.
2918
2919 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         mktime: avoid problems on NetBSD 5 / i386
2922         * lib/mktime.c (long_int): New type.  This works around a problem
2923         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
2924         but time_t is 64 bits, and where I expect the existing code is
2925         wrong in some cases.
2926         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
2927         (ydhms_diff): Bring back the compile-time check for wide-enough
2928         year and yday.
2929
2930         mktime: fix misspelling in comment
2931         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
2932         This merges all recent glibc changes of importance.
2933
2934 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2935
2936         move-if-change: cope with concurrent mv of identical file.
2937         * build-aux/move-if-change (CMPPROG): Accept environment
2938         variable as an override for `cmp'.
2939         (usage): Document CMPPROG.
2940         Adjust comparison to drop stdout.  Cope with failure of mv if
2941         the target file exists and is identical to the source, for
2942         parallel builds.
2943         Report from H.J. Lu against binutils in PR binutils/12283.
2944
2945 2011-01-28  Bruce Korb  <bkorb@gnu.org>
2946
2947         * users.txt: Mention sharutils.
2948
2949 2011-01-28  Simon Josefsson  <simon@josefsson.org>
2950
2951         * users.txt: Mention OATH Toolkit.
2952
2953 2011-01-27  Bruno Haible  <bruno@clisp.org>
2954
2955         Prepare for supporting FreeBSD 10.
2956         * build-aux/config.libpath: Remove handling of freebsd1*.
2957
2958 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
2959
2960         Prepare for supporting FreeBSD 10.
2961         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
2962         match FreeBSD 10.0.
2963
2964 2011-01-27  Bruno Haible  <bruno@clisp.org>
2965
2966         vma-iter, get-rusage-as: Add OpenBSD support.
2967         * modules/vma-iter (configure.ac): Test for mquery.
2968         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
2969         * lib/vma-iter.c: Include <sys/mman.h>.
2970         (vma_iterate): Add an implementation based on mquery().
2971         * lib/resource-ext.h (get_rusage_as): Update comments.
2972         * lib/get-rusage-as.c: Likewise.
2973         * lib/get-rusage-data.c: Likewise.
2974
2975 2011-01-26  Karl Berry  <karl@gnu.org>
2976
2977         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2978         variables to make it easier to override the makeinfo program used.
2979
2980 2011-01-26  Eric Blake  <eblake@redhat.com>
2981
2982         fcntl: work around Haiku F_DUPFD bugs
2983         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2984         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2985         cloexec bit on duplication.
2986         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2987
2988 2011-01-26  Bruno Haible  <bruno@clisp.org>
2989
2990         Enable memory leak tests on AIX.
2991         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2992         * tests/test-fprintf-posix3.c (main): Likewise.
2993
2994 2011-01-26  Bruno Haible  <bruno@clisp.org>
2995
2996         Tests for module 'get-rusage-data'.
2997         * modules/get-rusage-data-tests: New file.
2998         * tests/test-get-rusage-data.c: New file.
2999
3000         New module 'get-rusage-data'.
3001         * lib/resource-ext.h (get_rusage_data): New declaration.
3002         * lib/get-rusage-data.c: New file.
3003         * modules/get-rusage-data: New file.
3004
3005 2011-01-25  Bruno Haible  <bruno@clisp.org>
3006
3007         get-rusage-as: Allow for easier testing.
3008         * lib/resource-ext.h (get_rusage_as): Add comment.
3009         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3010         (main): New function for interactive testing.
3011
3012 2011-01-25  Bruno Haible  <bruno@clisp.org>
3013
3014         vma-iter: Treat Haiku like BeOS.
3015         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3016         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3017
3018 2011-01-25  Eric Blake  <eblake@redhat.com>
3019
3020         c-stack: fix regression on cygwin when libsigsegv is present
3021         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3022
3023 2011-01-24  Bruno Haible  <bruno@clisp.org>
3024
3025         vma-iter: Avoid empty intervals.
3026         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3027         on an empty interval.
3028
3029 2011-01-24  Jim Meyering  <meyering@redhat.com>
3030
3031         u64: remove unnecessary #include
3032         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3033
3034 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3035
3036         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3037         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3038
3039 2011-01-23  Bruno Haible  <bruno@clisp.org>
3040
3041         New module 'vma-iter'.
3042         * lib/vma-iter.h: New file.
3043         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3044         * modules/vma-iter: New file.
3045         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3046         for get_rusage_as_via_iterator.
3047         (vma_iterate_callback): New function.
3048         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3049         * modules/get-rusage-as (Depends-on): Add vma-iter.
3050
3051 2011-01-23  Bruno Haible  <bruno@clisp.org>
3052
3053         uninorm: Tweak includes.
3054         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3055         Reported by Jim Meyering.
3056
3057 2011-01-23  Bruno Haible  <bruno@clisp.org>
3058
3059         get-rusage-as: Improve on NetBSD.
3060         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3061         /proc, like on FreeBSD.
3062
3063 2011-01-23  Jim Meyering  <meyering@redhat.com>
3064
3065         xreadlink.h: remove unnecessary #include
3066         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3067
3068         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3069         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3070
3071 2011-01-23  Bruno Haible  <bruno@clisp.org>
3072
3073         get-rusage-as: Fix bug.
3074         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3075         original limit when aborting the first loop.
3076
3077 2011-01-23  Bruno Haible  <bruno@clisp.org>
3078
3079         wctype: Ensure valid C syntax.
3080         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3081         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3082
3083 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3084
3085         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3087         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3088         as they are needed only for configure's test case.
3089         This removes two unnecessary symbols from config.h.
3090
3091         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3092         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3094         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3095         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3096         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3097         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3098         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3099         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3100         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3101         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3102         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3103         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3104         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3105         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3106         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3107         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3108         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3109
3110 2011-01-21  Eric Blake  <eblake@redhat.com>
3111
3112         maintainer-makefile: work with older git for submodule check
3113         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3114         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3115         Reported by Matthias Bolte.
3116
3117         bootstrap: minor portability fixes
3118         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3119         (usage): Omit leading capital and trailing . on help phrases, per
3120         GNU Coding Standards.
3121         (check_versions, top level): Prefix messages with script name.
3122
3123 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3124
3125         bootstrap: support --no-git option
3126         * build-aux/bootstrap: Add --no-git option, to be used when
3127         --gnulib-srcdir points to the exact desired checkout.
3128
3129 2011-01-21  Eric Blake  <eblake@redhat.com>
3130
3131         strerror_r-posix: work with glibc 2.13
3132         * lib/strerror_r.c (strerror_r): Fix return type.
3133
3134 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3135             Bruno Haible  <bruno@clisp.org>
3136
3137         uN_strstr: New unit tests.
3138         * modules/unistr/u8-strstr-tests: New file.
3139         * modules/unistr/u16-strstr-tests: New file.
3140         * modules/unistr/u32-strstr-tests: New file.
3141         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3142         * tests/unistr/test-u8-strstr.c: New file.
3143         * tests/unistr/test-u16-strstr.c: New file.
3144         * tests/unistr/test-u32-strstr.c: New file.
3145
3146 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3147             Bruno Haible  <bruno@clisp.org>
3148
3149         Make uN_strstr functions O(n) worst-case.
3150         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3151         16-bit and 32-bit unit cases, use the unibyte algorithm from
3152         lib/mbsstr.c.
3153         * lib/unistr/u8-strstr.c: Include <string.h>.
3154         (UNIT_IS_UINT8_T): New macro.
3155         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3156         (U_STRLEN, U_STRNLEN): New macros.
3157         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3158         (U_STRLEN, U_STRNLEN): New macros.
3159         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3160         (configure.ac): Update required libunistring version.
3161         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3162         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3163         malloca.
3164         (configure.ac): Update required libunistring version.
3165         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3166         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3167         malloca.
3168         (configure.ac): Update required libunistring version.
3169
3170 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3171             Bruno Haible  <bruno@clisp.org>
3172
3173         Prepare for faster uN_strstr functions.
3174         * lib/str-kmp.h: Support definable UNITs.
3175         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3176         needle_len argument.
3177         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3178         * lib/mbscasestr.c (mbscasestr): Likewise.
3179
3180 2011-01-21  Pádraig Brady <P@draigBrady.com>
3181
3182         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3183         * tests/test-malloca.c (main): Unset the environment variable
3184         to greatly speed up the test.
3185         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3186         * modules/malloca-tests: Depend on unsetenv.
3187
3188 2011-01-21  Pádraig Brady <P@draigBrady.com>
3189
3190         ignore-value: remove stdint dependency
3191         * lib/ignore-value.h: Remove <stdint.h>
3192         * modules/ignore-value: Remove stdint dependency.
3193
3194 2011-01-21  Jim Meyering  <meyering@redhat.com>
3195
3196         maint.mk: adjust variable name to be consistent with other gl_ vars
3197         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3198         to be lower case.
3199
3200 2011-01-20  Jim Meyering  <meyering@redhat.com>
3201
3202         maint.mk: make "check" depend on public-submodule-commit by default
3203         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3204
3205 2011-01-20  Bruno Haible  <bruno@clisp.org>
3206
3207         mbfile, mbiter: Complete change from 2008-12-21.
3208         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3209         * m4/mbiter.m4 (gl_MBITER): Likewise.
3210
3211 2011-01-20  Jim Meyering  <meyering@redhat.com>
3212
3213         init.sh: insert space between each function name and "()"
3214         * tests/init.sh: Make it a little easier to see that a function's
3215         name is "warn_", and not "warn" when looking at the first part of
3216         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3217
3218 2011-01-20  Jim Meyering  <meyering@redhat.com>
3219
3220         mountlist: clean up code formatting
3221         * lib/mountlist.c (read_file_system_list): Split a long line,
3222         correct bracing style, use NULL in place of "(struct statfs *)0",
3223         don't parenthesize return value, add spaces around "=" and after
3224         ";-in-for-stmt".
3225
3226 2011-01-14  Markus Duft <mduft@gentoo.org>
3227
3228         mountlist: add support for Interix
3229         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3230         Apply statvfs to all entries of /dev/fs.
3231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3232         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3233
3234 2011-01-20  Jim Meyering  <meyering@redhat.com>
3235
3236         maint.mk: improve the public-submodule-commit rule
3237         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3238         to suppress printing of its commands... unless V=1.
3239         Add git submodule's --quiet option to suppress printing of e.g.,
3240         "Entering gnulib" output.
3241         "cd" into $(srcdir) before running git submodule.
3242
3243 2011-01-20  Bruno Haible  <bruno@clisp.org>
3244
3245         include_next: Fix bug introduced on 2011-01-18.
3246         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
3247         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
3248         ac_cv_header_... variable if the second argument is not 'check'.
3249         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
3250         gl_NEXT_HEADERS_INTERNAL.
3251
3252 2011-01-20  Bruno Haible  <bruno@clisp.org>
3253
3254         Allow the user to avoid the GNULIB_TEST_* macros.
3255         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
3256         Suggested by Paul Eggert.
3257
3258 2011-01-14  Jim Meyering  <meyering@redhat.com>
3259
3260         bootstrap: avoid failure when there is no .gitmodules file
3261         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
3262         has been assigned to, even when its value is the empty string.
3263         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
3264         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
3265         Reported by John W. Eaton <jwe@gnu.org>.
3266
3267 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         assume <ctype.h>, ..., <time.h> exist
3270         For years gnulib has been assuming the existence of the headers
3271         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
3272         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
3273         them, since they don't appear to be needed.
3274         * README (Portability guidelines): Document this.
3275         * lib/flock.c: Assume <fcntl.h> exists.
3276         * lib/regex_internal.h: Assume <locale.h> exists.
3277         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
3278         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
3279         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
3280         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
3281         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
3282         * m4/regex.m4 (gl_REGEX): Likewise.
3283         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
3284         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
3285         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
3286         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
3287         * tests/test-argp.c: Likewise.
3288         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
3289
3290         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
3291         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
3292         AA_APPLE_UNIVERSAL_BUILD.  See
3293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
3294         * NEWS: Document this.
3295
3296 2011-01-19  Eric Blake  <eblake@redhat.com>
3297
3298         c-stack: assume stack overflow if SA_SIGINFO unsupported
3299         * lib/c-stack.c (SIGACTION_WORKS): Rename...
3300         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
3301         sigaction will work.
3302         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
3303         behavior match Linux.
3304         * tests/test-c-stack.c (main): Prefer NULL for pointers.
3305
3306         stdbool-tests: accomodate Haiku
3307         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
3308
3309         binary-io: fix O_TEXT on Haiku
3310         * modules/binary-io (Depends-on): Add fcntl-h.
3311         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
3312         than blindly undefining O_TEXT.
3313         Reported by Scott McCreary.
3314
3315 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3316
3317         include_next: do not check for standard headers like stddef.h
3318
3319         I found this problem when modifying Emacs to use gnulib.
3320         I noticed that it added HAVE_STDDEF_H to config.h, even though
3321         gnulib always assumes <stddef.h> exists as per README and this
3322         symbol is unnecessary.
3323         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
3324         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
3325         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
3326         faster for headers like stddef.h that are known to exist.
3327         (gl_CHECK_NEXT_HEADERS): Use it.
3328         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
3329         rather than gl_CHECK_NEXT_HEADERS.
3330         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
3331         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
3332
3333 2011-01-18  Eric Blake  <eblake@redhat.com>
3334
3335         ansi-c++-opt: skip C++ dependency style if C++ is unused
3336         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
3337         tests when we know C++ compilation is not desired.
3338         Reported by Scott McCreary.
3339
3340 2011-01-18  Bruno Haible  <bruno@clisp.org>
3341
3342         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
3343         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
3344         (main): Perform test also when getrlimit and setrlimit don't exist or
3345         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
3346         limiting the address space size using setrlimit, compare the address
3347         space size before and after the the test.
3348         * tests/test-dprintf-posix2.c: Likewise.
3349         * tests/test-fprintf-posix3.sh: Update skip messages.
3350         * tests/test-dprintf-posix2.sh: Likewise.
3351         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
3352         * modules/dprintf-posix-tests (Depends-on): Likewise.
3353         Reported by Bruce Korb <bkorb@gnu.org> and
3354         Gary V. Vaughan <gary@gnu.org>.
3355
3356 2011-01-18  Bruno Haible  <bruno@clisp.org>
3357
3358         get-rusage-as: Improvement for Cygwin.
3359         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
3360         areas that are merely reserved.
3361
3362 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
3363
3364         strftime: remove dependencies on multibyte modules
3365
3366         strftime depended on mbrlen, mbsinit, and wchar, but these modules
3367         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
3368         only if __osf__ is defined, and I suspect OSF doesn't need these
3369         other modules.  If my guess is wrong, we'll need to come up with a
3370         variant of strftime that doesn't need the multibyte modules.
3371
3372         I discovered this problem when attempting modify Emacs to use the
3373         strftime module.  With the previous gnulib, this caused Emacs to
3374         need 31 new files, ranging from lib/config.charset to
3375         m4/wint_t.m4.  This was overkill and I expect would be offputting
3376         to the Emacs maintainers.  After this change, only 6 new files are
3377         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
3378         stdbool.m4, and tm_gmtoff.m4.
3379
3380         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
3381         Suggested by Bruno Haible in
3382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
3383         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
3384         and do not check for wchar.h.
3385         * modules/strftime (Files): Remove m4/mbstate_t.m4.
3386         (Depends-on): Remove mbrlen, mbsinit, wchar.
3387
3388 2011-01-18  Bruno Haible  <bruno@clisp.org>
3389
3390         Tests for module 'get-rusage-as'.
3391         * modules/get-rusage-as-tests: New file.
3392         * tests/test-get-rusage-as.c: New file.
3393
3394         New module 'get-rusage-as'.
3395         * modules/get-rusage-as: New file.
3396         * lib/resource-ext.h: New file.
3397         * lib/get-rusage-as.c: New file.
3398
3399 2011-01-17  Eric Blake  <eblake@redhat.com>
3400
3401         sigaction: relax license from LGPLv3+ to LGPLv2+
3402         * modules/sigaction (License): Relax to LGPLv2+.
3403
3404 2011-01-14  Bruno Haible  <bruno@clisp.org>
3405
3406         filemode: Make function declarations usable in C++ mode.
3407         * lib/filemode.h: Enclose function declarations in extern "C" block.
3408         Reported by John W. Eaton <jwe@gnu.org>.
3409
3410 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
3411
3412         save-cwd: no longer include "xgetcwd.h"
3413         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
3414         This avoids a compilation failure in projects that use save-cwd
3415         without also using the xgetcwd module.
3416
3417 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3418
3419         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
3420         This is so that a program like Emacs, which needs only dtoastr,
3421         does not have to bother with distributing and compiling ftoastr
3422         and ldtoastr.
3423         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
3424         * modules/dtoastr, modules/ldtoastr: New files.
3425         * modules/ftoastr: Now works just for 'float'.
3426         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
3427         (Makefile.am): Remove ftoastr.h (not needed and no effect),
3428         dtoastr.c, ldtoastr.c.
3429
3430 2011-01-11  Jim Meyering  <meyering@redhat.com>
3431
3432         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
3433         There is no need to work around the lack of the fchdir function,
3434         since gnulib can now provide a replacement when required.
3435         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
3436         * modules/save-cwd (Depends-on): Add fchdir.
3437
3438 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         openat, save-cwd: avoid xmalloc
3441
3442         This removes a direct (but undocumented) dependency of openat on
3443         xalloc, along with an indirect dependency via save-cwd.  It also
3444         removes a dependency of save-cwd on xgetcwd, and thereby
3445         indirectly on xalloc.  This change causes the openat substitute
3446         to fall back on save_cwd when memory is tight, and for save_cwd to
3447         fail instead of dying when memory is tight, but that's good enough.
3448         Problem and initial idea for fix reported by Bastien Roucaries in
3449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
3450
3451         * lib/openat-proc.c: Include stdlib.h (for malloc), not
3452         xalloc.h (for xmalloc).
3453         (openat_proc_name): Use malloc, not xmalloc.
3454         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
3455         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
3456
3457         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
3458         This avoids heap allocation for file names whose lengths are in
3459         the range 512..1023, with the upper bound increasing to at most
3460         4031 depending on the platform's PATH_MAX.  (We do not want
3461         pathmax.h here as it might supply a non-constant PATH_MAX.)
3462         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
3463         Perhaps they should be moved to malloca.h?
3464         (OPENAT_BUFFER_SIZE): Use them.
3465
3466 2011-01-10  Bruno Haible  <bruno@clisp.org>
3467
3468         doc: Update users.txt.
3469         * users.txt: Add recutils.
3470
3471 2011-01-09  Karl Berry  <karl@gnu.org>
3472
3473         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
3474
3475         * doc/configmake.texi: New file.
3476         * doc/gnulib.texi: Include it.
3477         * modules/configmake: Move documentation from here.
3478
3479 2011-01-09  Bruno Haible  <bruno@clisp.org>
3480
3481         Update to Unicode 6.0.0.
3482         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
3483         (get_lbp): Update for Unicode 6.0.0.
3484         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
3485         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
3486         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
3487         U+11001, U+11038..U+11046. Remove U+06DE.
3488         (uc_width): Fix bounds of planes.
3489         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3490         lib/uniwidth/width.c.
3491         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
3492         trailing whitespace removed.
3493         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
3494         without comments, but with the original copyright notice.
3495         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
3496         * lib/unicase/ignorable.h: Likewise.
3497         * lib/unicase/tocasefold.h: Likewise.
3498         * lib/unicase/tolower.h: Likewise.
3499         * lib/unicase/totitle.h: Likewise.
3500         * lib/unicase/toupper.h: Likewise.
3501         * lib/unictype/bidi_of.h: Likewise.
3502         * lib/unictype/blocks.h: Likewise.
3503         * lib/unictype/categ_C.h: Likewise.
3504         * lib/unictype/categ_Cn.h: Likewise.
3505         * lib/unictype/categ_L.h: Likewise.
3506         * lib/unictype/categ_Ll.h: Likewise.
3507         * lib/unictype/categ_Lm.h: Likewise.
3508         * lib/unictype/categ_Lo.h: Likewise.
3509         * lib/unictype/categ_Lu.h: Likewise.
3510         * lib/unictype/categ_M.h: Likewise.
3511         * lib/unictype/categ_Mc.h: Likewise.
3512         * lib/unictype/categ_Me.h: Likewise.
3513         * lib/unictype/categ_Mn.h: Likewise.
3514         * lib/unictype/categ_N.h: Likewise.
3515         * lib/unictype/categ_Nd.h: Likewise.
3516         * lib/unictype/categ_No.h: Likewise.
3517         * lib/unictype/categ_P.h: Likewise.
3518         * lib/unictype/categ_Po.h: Likewise.
3519         * lib/unictype/categ_S.h: Likewise.
3520         * lib/unictype/categ_Sc.h: Likewise.
3521         * lib/unictype/categ_Sk.h: Likewise.
3522         * lib/unictype/categ_Sm.h: Likewise.
3523         * lib/unictype/categ_So.h: Likewise.
3524         * lib/unictype/categ_of.h: Likewise.
3525         * lib/unictype/combining.h: Likewise.
3526         * lib/unictype/ctype_alnum.h: Likewise.
3527         * lib/unictype/ctype_alpha.h: Likewise.
3528         * lib/unictype/ctype_graph.h: Likewise.
3529         * lib/unictype/ctype_lower.h: Likewise.
3530         * lib/unictype/ctype_print.h: Likewise.
3531         * lib/unictype/ctype_punct.h: Likewise.
3532         * lib/unictype/ctype_upper.h: Likewise.
3533         * lib/unictype/decdigit.h: Likewise.
3534         * lib/unictype/digit.h: Likewise.
3535         * lib/unictype/numeric.h: Likewise.
3536         * lib/unictype/pr_alphabetic.h: Likewise.
3537         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3538         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3539         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3540         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3541         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3542         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3543         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3544         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3545         * lib/unictype/pr_case_ignorable.h: Likewise.
3546         * lib/unictype/pr_cased.h: Likewise.
3547         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
3548         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
3549         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
3550         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
3551         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
3552         * lib/unictype/pr_combining.h: Likewise.
3553         * lib/unictype/pr_composite.h: Likewise.
3554         * lib/unictype/pr_currency_symbol.h: Likewise.
3555         * lib/unictype/pr_decimal_digit.h: Likewise.
3556         * lib/unictype/pr_deprecated.h: Likewise.
3557         * lib/unictype/pr_format_control.h: Likewise.
3558         * lib/unictype/pr_grapheme_base.h: Likewise.
3559         * lib/unictype/pr_grapheme_extend.h: Likewise.
3560         * lib/unictype/pr_grapheme_link.h: Likewise.
3561         * lib/unictype/pr_id_continue.h: Likewise.
3562         * lib/unictype/pr_id_start.h: Likewise.
3563         * lib/unictype/pr_ideographic.h: Likewise.
3564         * lib/unictype/pr_lowercase.h: Likewise.
3565         * lib/unictype/pr_math.h: Likewise.
3566         * lib/unictype/pr_numeric.h: Likewise.
3567         * lib/unictype/pr_other_alphabetic.h: Likewise.
3568         * lib/unictype/pr_other_id_continue.h: Likewise.
3569         * lib/unictype/pr_other_math.h: Likewise.
3570         * lib/unictype/pr_punctuation.h: Likewise.
3571         * lib/unictype/pr_sentence_terminal.h: Likewise.
3572         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3573         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3574         * lib/unictype/pr_unified_ideograph.h: Likewise.
3575         * lib/unictype/pr_uppercase.h: Likewise.
3576         * lib/unictype/pr_xid_continue.h: Likewise.
3577         * lib/unictype/pr_xid_start.h: Likewise.
3578         * lib/unictype/scripts.h: Likewise.
3579         * lib/unictype/scripts_byname.gperf: Likewise.
3580         * lib/unictype/sy_java_ident.h: Likewise.
3581         * lib/unigbrk/gbrkprop.h: Likewise.
3582         * lib/unilbrk/lbrkprop1.h: Likewise.
3583         * lib/unilbrk/lbrkprop2.h: Likewise.
3584         * lib/uninorm/decomposition-table2.h: Likewise.
3585         * lib/uniwbrk/wbrkprop.h: Likewise.
3586         * tests/unicase/test-cased.c: Likewise.
3587         * tests/unicase/test-ignorable.c: Likewise.
3588         * tests/unicase/test-uc_tolower.c: Likewise.
3589         * tests/unicase/test-uc_totitle.c: Likewise.
3590         * tests/unicase/test-uc_toupper.c: Likewise.
3591         * tests/unictype/test-categ_C.c: Likewise.
3592         * tests/unictype/test-categ_Cn.c: Likewise.
3593         * tests/unictype/test-categ_L.c: Likewise.
3594         * tests/unictype/test-categ_Ll.c: Likewise.
3595         * tests/unictype/test-categ_Lm.c: Likewise.
3596         * tests/unictype/test-categ_Lo.c: Likewise.
3597         * tests/unictype/test-categ_Lu.c: Likewise.
3598         * tests/unictype/test-categ_M.c: Likewise.
3599         * tests/unictype/test-categ_Mc.c: Likewise.
3600         * tests/unictype/test-categ_Me.c: Likewise.
3601         * tests/unictype/test-categ_Mn.c: Likewise.
3602         * tests/unictype/test-categ_N.c: Likewise.
3603         * tests/unictype/test-categ_Nd.c: Likewise.
3604         * tests/unictype/test-categ_No.c: Likewise.
3605         * tests/unictype/test-categ_P.c: Likewise.
3606         * tests/unictype/test-categ_Po.c: Likewise.
3607         * tests/unictype/test-categ_S.c: Likewise.
3608         * tests/unictype/test-categ_Sc.c: Likewise.
3609         * tests/unictype/test-categ_Sk.c: Likewise.
3610         * tests/unictype/test-categ_Sm.c: Likewise.
3611         * tests/unictype/test-categ_So.c: Likewise.
3612         * tests/unictype/test-ctype_alnum.c: Likewise.
3613         * tests/unictype/test-ctype_alpha.c: Likewise.
3614         * tests/unictype/test-ctype_graph.c: Likewise.
3615         * tests/unictype/test-ctype_lower.c: Likewise.
3616         * tests/unictype/test-ctype_print.c: Likewise.
3617         * tests/unictype/test-ctype_punct.c: Likewise.
3618         * tests/unictype/test-ctype_upper.c: Likewise.
3619         * tests/unictype/test-decdigit.h: Likewise.
3620         * tests/unictype/test-digit.h: Likewise.
3621         * tests/unictype/test-numeric.h: Likewise.
3622         * tests/unictype/test-pr_alphabetic.c: Likewise.
3623         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3624         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3625         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3626         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3627         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3628         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3629         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3630         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3631         * tests/unictype/test-pr_case_ignorable.c: Likewise.
3632         * tests/unictype/test-pr_cased.c: Likewise.
3633         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
3634         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
3635         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
3636         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
3637         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
3638         * tests/unictype/test-pr_combining.c: Likewise.
3639         * tests/unictype/test-pr_composite.c: Likewise.
3640         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3641         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3642         * tests/unictype/test-pr_deprecated.c: Likewise.
3643         * tests/unictype/test-pr_format_control.c: Likewise.
3644         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3645         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3646         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3647         * tests/unictype/test-pr_id_continue.c: Likewise.
3648         * tests/unictype/test-pr_id_start.c: Likewise.
3649         * tests/unictype/test-pr_ideographic.c: Likewise.
3650         * tests/unictype/test-pr_lowercase.c: Likewise.
3651         * tests/unictype/test-pr_math.c: Likewise.
3652         * tests/unictype/test-pr_numeric.c: Likewise.
3653         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3654         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3655         * tests/unictype/test-pr_other_math.c: Likewise.
3656         * tests/unictype/test-pr_punctuation.c: Likewise.
3657         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3658         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3659         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3660         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3661         * tests/unictype/test-pr_uppercase.c: Likewise.
3662         * tests/unictype/test-pr_xid_continue.c: Likewise.
3663         * tests/unictype/test-pr_xid_start.c: Likewise.
3664         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3665         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3666         changes.
3667         * lib/unictype/categ_Cc.h: Likewise.
3668         * lib/unictype/categ_Cf.h: Likewise.
3669         * lib/unictype/categ_Co.h: Likewise.
3670         * lib/unictype/categ_Cs.h: Likewise.
3671         * lib/unictype/categ_Lt.h: Likewise.
3672         * lib/unictype/categ_Nl.h: Likewise.
3673         * lib/unictype/categ_Pc.h: Likewise.
3674         * lib/unictype/categ_Pd.h: Likewise.
3675         * lib/unictype/categ_Pe.h: Likewise.
3676         * lib/unictype/categ_Pf.h: Likewise.
3677         * lib/unictype/categ_Pi.h: Likewise.
3678         * lib/unictype/categ_Ps.h: Likewise.
3679         * lib/unictype/categ_Z.h: Likewise.
3680         * lib/unictype/categ_Zl.h: Likewise.
3681         * lib/unictype/categ_Zp.h: Likewise.
3682         * lib/unictype/categ_Zs.h: Likewise.
3683         * lib/unictype/ctype_blank.h: Likewise.
3684         * lib/unictype/ctype_cntrl.h: Likewise.
3685         * lib/unictype/ctype_digit.h: Likewise.
3686         * lib/unictype/ctype_space.h: Likewise.
3687         * lib/unictype/ctype_xdigit.h: Likewise.
3688         * lib/unictype/mirror.h: Likewise.
3689         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3690         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3691         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3692         * lib/unictype/pr_bidi_control.h: Likewise.
3693         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3694         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3695         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3696         * lib/unictype/pr_bidi_pdf.h: Likewise.
3697         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3698         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3699         * lib/unictype/pr_dash.h: Likewise.
3700         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3701         * lib/unictype/pr_diacritic.h: Likewise.
3702         * lib/unictype/pr_extender.h: Likewise.
3703         * lib/unictype/pr_hex_digit.h: Likewise.
3704         * lib/unictype/pr_hyphen.h: Likewise.
3705         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3706         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3707         * lib/unictype/pr_ignorable_control.h: Likewise.
3708         * lib/unictype/pr_iso_control.h: Likewise.
3709         * lib/unictype/pr_join_control.h: Likewise.
3710         * lib/unictype/pr_left_of_pair.h: Likewise.
3711         * lib/unictype/pr_line_separator.h: Likewise.
3712         * lib/unictype/pr_logical_order_exception.h: Likewise.
3713         * lib/unictype/pr_non_break.h: Likewise.
3714         * lib/unictype/pr_not_a_character.h: Likewise.
3715         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3716         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3717         * lib/unictype/pr_other_id_start.h: Likewise.
3718         * lib/unictype/pr_other_lowercase.h: Likewise.
3719         * lib/unictype/pr_other_uppercase.h: Likewise.
3720         * lib/unictype/pr_paired_punctuation.h: Likewise.
3721         * lib/unictype/pr_paragraph_separator.h: Likewise.
3722         * lib/unictype/pr_pattern_syntax.h: Likewise.
3723         * lib/unictype/pr_pattern_white_space.h: Likewise.
3724         * lib/unictype/pr_private_use.h: Likewise.
3725         * lib/unictype/pr_quotation_mark.h: Likewise.
3726         * lib/unictype/pr_radical.h: Likewise.
3727         * lib/unictype/pr_soft_dotted.h: Likewise.
3728         * lib/unictype/pr_space.h: Likewise.
3729         * lib/unictype/pr_titlecase.h: Likewise.
3730         * lib/unictype/pr_variation_selector.h: Likewise.
3731         * lib/unictype/pr_white_space.h: Likewise.
3732         * lib/unictype/pr_zero_width.h: Likewise.
3733         * lib/unictype/sy_c_ident.h: Likewise.
3734         * lib/unictype/sy_c_whitespace.h: Likewise.
3735         * lib/unictype/sy_java_whitespace.h: Likewise.
3736         * lib/uninorm/composition-table.gperf: Likewise.
3737         * lib/uninorm/decomposition-table1.h: Likewise.
3738         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
3739         LB8.
3740         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3741         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3742         * modules/unictype/*: Bump version number of expected libunistring
3743         version.
3744
3745 2011-01-09  Bruno Haible  <bruno@clisp.org>
3746
3747         Update to Unicode 5.2.0.
3748         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
3749         trailing whitespace removed.
3750
3751 2011-01-09  Bruno Haible  <bruno@clisp.org>
3752
3753         New Unicode character properties, from Unicode 5.2.0.
3754         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
3755         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
3756         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
3757         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
3758         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
3759         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
3760         uc_is_property_cased, uc_is_property_case_ignorable,
3761         uc_is_property_changes_when_lowercased,
3762         uc_is_property_changes_when_uppercased,
3763         uc_is_property_changes_when_titlecased,
3764         uc_is_property_changes_when_casefolded,
3765         uc_is_property_changes_when_casemapped): New declarations.
3766         * lib/unictype/pr_byname.gperf: Add the new properties.
3767         * modules/unictype/property-byname (Depends-on): Depend on the new
3768         properties modules.
3769         * modules/unictype/property-all (Depends-on): Likewise.
3770         * MODULES.html.sh (Unicode string functions): Add
3771         unictype/property-case-ignorable, unictype/property-cased,
3772         unictype/property-changes-when-casefolded,
3773         unictype/property-changes-when-casemapped,
3774         unictype/property-changes-when-lowercased,
3775         unictype/property-changes-when-titlecased,
3776         unictype/property-changes-when-uppercased.
3777
3778         New module 'unictype/property-changes-when-casemapped'.
3779         * modules/unictype/property-changes-when-casemapped: New file.
3780         * lib/unictype/pr_changes_when_casemapped.c: New file.
3781         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
3782         generated by gen-uni-tables.
3783         * modules/unictype/property-changes-when-casemapped-tests: New file.
3784         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
3785         automatically generated by gen-uni-tables.
3786
3787         New module 'unictype/property-changes-when-casefolded'.
3788         * modules/unictype/property-changes-when-casefolded: New file.
3789         * lib/unictype/pr_changes_when_casefolded.c: New file.
3790         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
3791         generated by gen-uni-tables.
3792         * modules/unictype/property-changes-when-casefolded-tests: New file.
3793         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
3794         automatically generated by gen-uni-tables.
3795
3796         New module 'unictype/property-changes-when-titlecased'.
3797         * modules/unictype/property-changes-when-titlecased: New file.
3798         * lib/unictype/pr_changes_when_titlecased.c: New file.
3799         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
3800         generated by gen-uni-tables.
3801         * modules/unictype/property-changes-when-titlecased-tests: New file.
3802         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
3803         automatically generated by gen-uni-tables.
3804
3805         New module 'unictype/property-changes-when-uppercased'.
3806         * modules/unictype/property-changes-when-uppercased: New file.
3807         * lib/unictype/pr_changes_when_uppercased.c: New file.
3808         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
3809         generated by gen-uni-tables.
3810         * modules/unictype/property-changes-when-uppercased-tests: New file.
3811         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
3812         automatically generated by gen-uni-tables.
3813
3814         New module 'unictype/property-changes-when-lowercased'.
3815         * modules/unictype/property-changes-when-lowercased: New file.
3816         * lib/unictype/pr_changes_when_lowercased.c: New file.
3817         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
3818         generated by gen-uni-tables.
3819         * modules/unictype/property-changes-when-lowercased-tests: New file.
3820         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
3821         automatically generated by gen-uni-tables.
3822
3823         New module 'unictype/property-case-ignorable'.
3824         * modules/unictype/property-case-ignorable: New file.
3825         * lib/unictype/pr_case_ignorable.c: New file.
3826         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
3827         by gen-uni-tables.
3828         * modules/unictype/property-case-ignorable-tests: New file.
3829         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
3830         generated by gen-uni-tables.
3831
3832         New module 'unictype/property-cased'.
3833         * modules/unictype/property-cased: New file.
3834         * lib/unictype/pr_cased.c: New file.
3835         * lib/unictype/pr_cased.h: New file, automatically generated by
3836         gen-uni-tables.
3837         * modules/unictype/property-cased-tests: New file.
3838         * tests/unictype/test-pr_cased.c: New file, automatically generated by
3839         gen-uni-tables.
3840
3841 2011-01-09  Bruno Haible  <bruno@clisp.org>
3842
3843         Update to Unicode 5.2.0.
3844         * lib/gen-uni-tables.c (output_predicate, output_category,
3845         output_combclass, output_bidi_category, output_decimal_digit_test,
3846         output_decimal_digit, output_digit_test, output_digit,
3847         output_numeric_test, output_numeric, output_mirror, output_scripts,
3848         output_scripts_byname, output_blocks, output_ident_category): Fix
3849         comment header.
3850         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
3851         get_wbp.
3852         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
3853         items.
3854         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
3855         Changes_When_Lowercased, Changes_When_Uppercased,
3856         Changes_When_Titlecased, Changes_When_Casefolded,
3857         Changes_When_Casemapped.
3858         (is_property_alphabetic, is_property_default_ignorable_code_point):
3859         Update for Unicode 5.2.0.
3860         (is_property_cased, is_property_case_ignorable,
3861         is_property_changes_when_lowercased,
3862         is_property_changes_when_uppercased,
3863         is_property_changes_when_titlecased,
3864         is_property_changes_when_casefolded,
3865         is_property_changes_when_casemapped): New functions.
3866         (output_properties): Output also the properties cased, case_ignorable,
3867         changes_when_lowercased, changes_when_uppercased,
3868         changes_when_titlecased, changes_when_casefolded,
3869         changes_when_casemapped.
3870         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
3871         Unicode TR#11 revision 17 -> 19.
3872         (LBP_CP): New enumeration value.
3873         (LBP_*): Adjust values accordingly.
3874         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3875         TR#14 revision 22 -> 24.
3876         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
3877         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
3878         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
3879         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
3880         is_WBP_MIDLETTER.
3881         (output_composition_tables): Allow for 24 bits instead of 16 bits in
3882         the code1 and code2 of each composition rule.
3883         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
3884         * lib/unicase/ignorable.h: Likewise.
3885         * lib/unicase/tocasefold.h: Likewise.
3886         * lib/unicase/tolower.h: Likewise.
3887         * lib/unicase/totitle.h: Likewise.
3888         * lib/unicase/toupper.h: Likewise.
3889         * lib/unictype/bidi_of.h: Likewise.
3890         * lib/unictype/blocks.h: Likewise.
3891         * lib/unictype/categ_C.h: Likewise.
3892         * lib/unictype/categ_Cf.h: Likewise.
3893         * lib/unictype/categ_Cn.h: Likewise.
3894         * lib/unictype/categ_L.h: Likewise.
3895         * lib/unictype/categ_Ll.h: Likewise.
3896         * lib/unictype/categ_Lm.h: Likewise.
3897         * lib/unictype/categ_Lo.h: Likewise.
3898         * lib/unictype/categ_Lu.h: Likewise.
3899         * lib/unictype/categ_M.h: Likewise.
3900         * lib/unictype/categ_Mc.h: Likewise.
3901         * lib/unictype/categ_Mn.h: Likewise.
3902         * lib/unictype/categ_N.h: Likewise.
3903         * lib/unictype/categ_Nd.h: Likewise.
3904         * lib/unictype/categ_Nl.h: Likewise.
3905         * lib/unictype/categ_No.h: Likewise.
3906         * lib/unictype/categ_P.h: Likewise.
3907         * lib/unictype/categ_Pd.h: Likewise.
3908         * lib/unictype/categ_Po.h: Likewise.
3909         * lib/unictype/categ_S.h: Likewise.
3910         * lib/unictype/categ_Sc.h: Likewise.
3911         * lib/unictype/categ_So.h: Likewise.
3912         * lib/unictype/categ_of.h: Likewise.
3913         * lib/unictype/combining.h: Likewise.
3914         * lib/unictype/ctype_alnum.h: Likewise.
3915         * lib/unictype/ctype_alpha.h: Likewise.
3916         * lib/unictype/ctype_graph.h: Likewise.
3917         * lib/unictype/ctype_lower.h: Likewise.
3918         * lib/unictype/ctype_print.h: Likewise.
3919         * lib/unictype/ctype_punct.h: Likewise.
3920         * lib/unictype/ctype_upper.h: Likewise.
3921         * lib/unictype/decdigit.h: Likewise.
3922         * lib/unictype/digit.h: Likewise.
3923         * lib/unictype/numeric.h: Likewise.
3924         * lib/unictype/pr_alphabetic.h: Likewise.
3925         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3926         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3927         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3928         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3929         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3930         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3931         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3932         * lib/unictype/pr_combining.h: Likewise.
3933         * lib/unictype/pr_composite.h: Likewise.
3934         * lib/unictype/pr_currency_symbol.h: Likewise.
3935         * lib/unictype/pr_dash.h: Likewise.
3936         * lib/unictype/pr_decimal_digit.h: Likewise.
3937         * lib/unictype/pr_deprecated.h: Likewise.
3938         * lib/unictype/pr_diacritic.h: Likewise.
3939         * lib/unictype/pr_extender.h: Likewise.
3940         * lib/unictype/pr_grapheme_base.h: Likewise.
3941         * lib/unictype/pr_grapheme_extend.h: Likewise.
3942         * lib/unictype/pr_grapheme_link.h: Likewise.
3943         * lib/unictype/pr_id_continue.h: Likewise.
3944         * lib/unictype/pr_id_start.h: Likewise.
3945         * lib/unictype/pr_ideographic.h: Likewise.
3946         * lib/unictype/pr_ignorable_control.h: Likewise.
3947         * lib/unictype/pr_logical_order_exception.h: Likewise.
3948         * lib/unictype/pr_lowercase.h: Likewise.
3949         * lib/unictype/pr_numeric.h: Likewise.
3950         * lib/unictype/pr_other_alphabetic.h: Likewise.
3951         * lib/unictype/pr_punctuation.h: Likewise.
3952         * lib/unictype/pr_sentence_terminal.h: Likewise.
3953         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3954         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3955         * lib/unictype/pr_unified_ideograph.h: Likewise.
3956         * lib/unictype/pr_uppercase.h: Likewise.
3957         * lib/unictype/pr_xid_continue.h: Likewise.
3958         * lib/unictype/pr_xid_start.h: Likewise.
3959         * lib/unictype/pr_zero_width.h: Likewise.
3960         * lib/unictype/scripts.h: Likewise.
3961         * lib/unictype/scripts_byname.gperf: Likewise.
3962         * lib/unictype/sy_java_ident.h: Likewise.
3963         * lib/unigbrk/gbrkprop.h: Likewise.
3964         * lib/unilbrk/lbrkprop1.h: Likewise.
3965         * lib/unilbrk/lbrkprop2.h: Likewise.
3966         * lib/unilbrk/lbrktables.h: Likewise.
3967         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
3968         LBP_CP. Implement rule LB30.
3969         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
3970         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
3971         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
3972         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
3973         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3974         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3975         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3976         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3977         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3978         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3979         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3980         bits instead of 16 bits in the code1 and code2 of each composition
3981         rule.
3982         (uc_composition): Update for Unicode 5.2.0.
3983         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3984         * lib/uninorm/decomposition-table2.h: Likewise.
3985         * lib/uniwbrk/wbrkprop.h: Likewise.
3986         * tests/unicase/test-cased.c: Likewise.
3987         * tests/unicase/test-ignorable.c: Likewise.
3988         * tests/unicase/test-uc_tolower.c: Likewise.
3989         * tests/unicase/test-uc_totitle.c: Likewise.
3990         * tests/unicase/test-uc_toupper.c: Likewise.
3991         * tests/unictype/test-categ_C.c: Likewise.
3992         * tests/unictype/test-categ_Cf.c: Likewise.
3993         * tests/unictype/test-categ_Cn.c: Likewise.
3994         * tests/unictype/test-categ_L.c: Likewise.
3995         * tests/unictype/test-categ_Ll.c: Likewise.
3996         * tests/unictype/test-categ_Lm.c: Likewise.
3997         * tests/unictype/test-categ_Lo.c: Likewise.
3998         * tests/unictype/test-categ_Lu.c: Likewise.
3999         * tests/unictype/test-categ_M.c: Likewise.
4000         * tests/unictype/test-categ_Mc.c: Likewise.
4001         * tests/unictype/test-categ_Mn.c: Likewise.
4002         * tests/unictype/test-categ_N.c: Likewise.
4003         * tests/unictype/test-categ_Nd.c: Likewise.
4004         * tests/unictype/test-categ_Nl.c: Likewise.
4005         * tests/unictype/test-categ_No.c: Likewise.
4006         * tests/unictype/test-categ_P.c: Likewise.
4007         * tests/unictype/test-categ_Pd.c: Likewise.
4008         * tests/unictype/test-categ_Po.c: Likewise.
4009         * tests/unictype/test-categ_S.c: Likewise.
4010         * tests/unictype/test-categ_Sc.c: Likewise.
4011         * tests/unictype/test-categ_So.c: Likewise.
4012         * tests/unictype/test-ctype_alnum.c: Likewise.
4013         * tests/unictype/test-ctype_alpha.c: Likewise.
4014         * tests/unictype/test-ctype_graph.c: Likewise.
4015         * tests/unictype/test-ctype_lower.c: Likewise.
4016         * tests/unictype/test-ctype_print.c: Likewise.
4017         * tests/unictype/test-ctype_punct.c: Likewise.
4018         * tests/unictype/test-ctype_upper.c: Likewise.
4019         * tests/unictype/test-decdigit.h: Likewise.
4020         * tests/unictype/test-digit.h: Likewise.
4021         * tests/unictype/test-numeric.h: Likewise.
4022         * tests/unictype/test-pr_alphabetic.c: Likewise.
4023         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4024         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4025         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4026         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4027         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4028         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4029         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4030         * tests/unictype/test-pr_combining.c: Likewise.
4031         * tests/unictype/test-pr_composite.c: Likewise.
4032         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4033         * tests/unictype/test-pr_dash.c: Likewise.
4034         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4035         * tests/unictype/test-pr_deprecated.c: Likewise.
4036         * tests/unictype/test-pr_diacritic.c: Likewise.
4037         * tests/unictype/test-pr_extender.c: Likewise.
4038         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4039         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4040         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4041         * tests/unictype/test-pr_id_continue.c: Likewise.
4042         * tests/unictype/test-pr_id_start.c: Likewise.
4043         * tests/unictype/test-pr_ideographic.c: Likewise.
4044         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4045         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4046         * tests/unictype/test-pr_lowercase.c: Likewise.
4047         * tests/unictype/test-pr_numeric.c: Likewise.
4048         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4049         * tests/unictype/test-pr_punctuation.c: Likewise.
4050         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4051         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4052         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4053         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4054         * tests/unictype/test-pr_uppercase.c: Likewise.
4055         * tests/unictype/test-pr_xid_continue.c: Likewise.
4056         * tests/unictype/test-pr_xid_start.c: Likewise.
4057         * tests/unictype/test-pr_zero_width.c: Likewise.
4058         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4059         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4060         changed behaviour: line breaking is now disallowed between a letter
4061         or '=' and '('.
4062         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4063         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4064         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4065         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4066         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4067         lib/uniwidth/width.c.
4068         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4069         without comments, but with the original copyright notice.
4070         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4071         changes.
4072         * lib/unictype/categ_Cc.h: Likewise.
4073         * lib/unictype/categ_Co.h: Likewise.
4074         * lib/unictype/categ_Cs.h: Likewise.
4075         * lib/unictype/categ_Lt.h: Likewise.
4076         * lib/unictype/categ_Me.h: Likewise.
4077         * lib/unictype/categ_Pc.h: Likewise.
4078         * lib/unictype/categ_Pe.h: Likewise.
4079         * lib/unictype/categ_Pf.h: Likewise.
4080         * lib/unictype/categ_Pi.h: Likewise.
4081         * lib/unictype/categ_Ps.h: Likewise.
4082         * lib/unictype/categ_Sk.h: Likewise.
4083         * lib/unictype/categ_Sm.h: Likewise.
4084         * lib/unictype/categ_Z.h: Likewise.
4085         * lib/unictype/categ_Zl.h: Likewise.
4086         * lib/unictype/categ_Zp.h: Likewise.
4087         * lib/unictype/categ_Zs.h: Likewise.
4088         * lib/unictype/ctype_blank.h: Likewise.
4089         * lib/unictype/ctype_cntrl.h: Likewise.
4090         * lib/unictype/ctype_digit.h: Likewise.
4091         * lib/unictype/ctype_space.h: Likewise.
4092         * lib/unictype/ctype_xdigit.h: Likewise.
4093         * lib/unictype/mirror.h: Likewise.
4094         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4095         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4096         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4097         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4098         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4099         * lib/unictype/pr_bidi_control.h: Likewise.
4100         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4101         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4102         * lib/unictype/pr_bidi_pdf.h: Likewise.
4103         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4104         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4105         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4106         * lib/unictype/pr_format_control.h: Likewise.
4107         * lib/unictype/pr_hex_digit.h: Likewise.
4108         * lib/unictype/pr_hyphen.h: Likewise.
4109         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4110         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4111         * lib/unictype/pr_iso_control.h: Likewise.
4112         * lib/unictype/pr_join_control.h: Likewise.
4113         * lib/unictype/pr_left_of_pair.h: Likewise.
4114         * lib/unictype/pr_line_separator.h: Likewise.
4115         * lib/unictype/pr_math.h: Likewise.
4116         * lib/unictype/pr_non_break.h: Likewise.
4117         * lib/unictype/pr_not_a_character.h: Likewise.
4118         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4119         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4120         * lib/unictype/pr_other_id_continue.h: Likewise.
4121         * lib/unictype/pr_other_id_start.h: Likewise.
4122         * lib/unictype/pr_other_lowercase.h: Likewise.
4123         * lib/unictype/pr_other_math.h: Likewise.
4124         * lib/unictype/pr_other_uppercase.h: Likewise.
4125         * lib/unictype/pr_paired_punctuation.h: Likewise.
4126         * lib/unictype/pr_paragraph_separator.h: Likewise.
4127         * lib/unictype/pr_pattern_syntax.h: Likewise.
4128         * lib/unictype/pr_pattern_white_space.h: Likewise.
4129         * lib/unictype/pr_private_use.h: Likewise.
4130         * lib/unictype/pr_quotation_mark.h: Likewise.
4131         * lib/unictype/pr_radical.h: Likewise.
4132         * lib/unictype/pr_soft_dotted.h: Likewise.
4133         * lib/unictype/pr_space.h: Likewise.
4134         * lib/unictype/pr_titlecase.h: Likewise.
4135         * lib/unictype/pr_variation_selector.h: Likewise.
4136         * lib/unictype/pr_white_space.h: Likewise.
4137         * lib/unictype/sy_c_ident.h: Likewise.
4138         * lib/unictype/sy_c_whitespace.h: Likewise.
4139         * lib/unictype/sy_java_whitespace.h: Likewise.
4140         * modules/uni*/*: Bump version number of expected libunistring version.
4141         Reported by Simon Josefsson.
4142
4143 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4144
4145         useless-if-before-free: fix typo in --help and make the internal,
4146         automatic version date update process work once again.
4147         --help output contained a NUL character instead of the
4148         backslash-zero that was intended.  Also, the "must lie within
4149         the first 8 lines" line is on line 9, and hence not getting
4150         automatically updated.
4151         * build-aux/useless-if-before-free: Fix the former by adding a
4152         backslash, and the latter by condensing the three lines of what-it-does
4153         to a single line, leaving one line of slack for the future.
4154
4155 2011-01-09  Bruno Haible  <bruno@clisp.org>
4156
4157         uniwidth/width: Fix width of U+1D173..U+1D17A.
4158         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4159         symbolic_width, output_width_property_test): New functions.
4160         (main): Invoke output_nonspacing_property, output_width_property_test.
4161         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4162         U+1D173..U+1D17A.
4163         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4164         1.
4165         * modules/uniwidth/*: Bump version number of expected libunistring
4166         version.
4167         * modules/unilbrk/*: Likewise.
4168
4169 2011-01-08  Bruno Haible  <bruno@clisp.org>
4170
4171         uninorm tests: Preserve copyright of Unicode data file.
4172         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4173         Mention modifications.
4174
4175 2011-01-08  Bruno Haible  <bruno@clisp.org>
4176
4177         gen-uni-tables: Prepare for Unicode 5.2.0.
4178         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4179         (debug_output_lbp, output_lbp): Update.
4180
4181 2011-01-08  Bruno Haible  <bruno@clisp.org>
4182
4183         unilbrk: Clarify gen-uni-tables.c code.
4184         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4185         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4186         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4187
4188 2011-01-07  Bruno Haible  <bruno@clisp.org>
4189
4190         strtod: Restore errno when successfully parsing Infinity or NaN.
4191         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4192         restore the original errno.
4193
4194 2011-01-07  Bruno Haible  <bruno@clisp.org>
4195
4196         remove test: Avoid failure on HP-UX 11.
4197         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4198
4199 2011-01-07  Bruno Haible  <bruno@clisp.org>
4200
4201         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4202         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4203         error code.
4204
4205 2011-01-07  Pádraig Brady <P@draigBrady.com>
4206
4207         ignore-value: fixup comments, and add Eric Blake
4208         as an author since he rewrote the macros.
4209         * lib/ignore-value.h (ignore_value):  State that
4210         we now support aggregates.  Also specify exactly
4211         when the GCC warn_unused_result feature was added.
4212
4213 2011-01-06  Eric Blake  <eblake@redhat.com>
4214
4215         ignore-value: support aggregate types
4216         * lib/ignore-value.h (ignore_value): Provide separate gcc
4217         definition.
4218         * modules/ignore-value-tests: New test module.
4219         * tests/test-ignore-value.c: New test.
4220
4221         maint.mk: improve sc_prohibit_strcmp regex
4222         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4223         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4224         definition of STRNEQ.
4225
4226         signal: work around Haiku issue with SIGBUS
4227         * lib/siglist.h: Add comment.
4228         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4229         strsignal's favoring of SIGSEGV.
4230         * tests/test-signal.c (main): Avoid test failure.
4231         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4232         Reported by Scott McCreary.
4233
4234         maint.mk: add pre-release check to ensure submodule commits are public
4235         * top/maint.mk (public-submodule-commit): New rule.
4236         (submodule-checks): New variable.
4237         (alpha beta stable): Depend on the variable.
4238
4239 2011-01-05  Pádraig Brady <P@draigBrady.com>
4240         and Jim Meyering  <meyering@redhat.com>
4241
4242         ignore-value: make ignore_value more generic; deprecate ignore_ptr
4243         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
4244         (ATTRIBUTE_DEPRECATED): Define.
4245         (_ignore_case): New function.
4246         (ignore_value): New macro, to replace the old function.
4247         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
4248         * modules/ignore-value (Depends-on): Add stdint.
4249
4250 2011-01-04  Eric Blake  <eblake@redhat.com>
4251
4252         doc: regenerate INSTALL
4253         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
4254         @firstparagraphindent support, now that autoconf dropped it.
4255         (INSTALL_PRELUDE): Reinstate old macro.
4256         * doc/install.texi: Resync from autoconf.
4257         * doc/INSTALL: Reflect recent autoconf update.
4258         * doc/INSTALL.ISO: Likewise.
4259         * doc/INSTALL.UTF-8: Likewise.
4260         Reported by Karl Berry.
4261
4262 2011-01-04  Bruce Korb  <address@hidden>
4263
4264         git-version-gen: avoid a sub-shell
4265         * build-aux/git-version-gen: Redirect stderr in `...` via
4266         "exec 2>...", rather than via an added sub-shell.
4267
4268 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
4269
4270         git-version-gen: use (...) rather than sh -c '...'
4271         * build-aux/git-version-gen: Rather than hard-coding a shell's name
4272         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
4273
4274 2011-01-03  Jim Meyering  <meyering@redhat.com>
4275
4276         git-version-gen: convert leading TABs to spaces
4277         * build-aux/git-version-gen: Expand leading TABs.
4278
4279         git-version-gen: handle failed "git rev-list"
4280         * build-aux/git-version-gen: Rather than leaking a "fatal" error
4281         from git and proceeding as if it had succeeded but printed no SHA1
4282         checksums, suppress the diagnostic and handle the failure.
4283         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
4284
4285         git-version-gen: include command name in one more diagnostic
4286         * build-aux/git-version-gen: When the required .tarball-version file
4287         was missing or unreadable, you might see the diagnostic from "cat",
4288         but no trace of the name of the invoking script.  Now, you still see
4289         the diagnostic from cat, but also get one from "git-version-gen: ".
4290         Inspired by a patch from Bruce Korb.
4291
4292         update-copyright: adjust test to match changed code
4293         * tests/test-update-copyright.sh: Change test's expected output
4294         to match new actual output.
4295
4296 2011-01-02  Bruno Haible  <bruno@clisp.org>
4297
4298         getlogin_r: Avoid test failure on HP-UX 11.
4299         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
4300         ERANGE when the second argument is zero.
4301         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
4302         portability problem.
4303
4304 2011-01-02  Bruce Korb  <bkorb@gnu.org>
4305
4306         * build-aux/update-copyright: doc Simon's changes
4307
4308 2011-01-02  Simon Josefsson  <simon@josefsson.org>
4309
4310         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
4311         environment variable.
4312
4313 2011-01-02  Bruno Haible  <bruno@clisp.org>
4314
4315         unigbrk: Avoid gcc warnings.
4316         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
4317         unused variable.
4318         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
4319         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
4320         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
4321         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
4322         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
4323         Change type of first argument to 'const char *'.
4324         (main): Remove unused variable.
4325         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
4326         type of first argument to 'const char *'.
4327         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
4328         Likewise.
4329         (main): Change type of variable 's'.
4330         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
4331         to 'int'.
4332
4333 2011-01-02  Bruno Haible  <bruno@clisp.org>
4334
4335         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
4336         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
4337         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
4338         bug.
4339         * lib/pwrite.c: Undo 2010-12-31 patch.
4340         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
4341
4342 2011-01-02  Bruno Haible  <bruno@clisp.org>
4343
4344         pread: Fix test whether it works.
4345         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
4346
4347 2011-01-02  Bruno Haible  <bruno@clisp.org>
4348
4349         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
4350         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
4351         ends in "6". Don't require a specific month name. Try also the locale
4352         names found on HP-UX 11 and Solaris 7.
4353
4354 2011-01-02  Bruno Haible  <bruno@clisp.org>
4355
4356         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4357         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
4358         C linkage.
4359         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
4360
4361 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4362
4363         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
4364         for consistency, since the "cluster" term is not used elsewhere.
4365         * lib/unigbrk.in.h: Update name.
4366         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
4367         * lib/unigbrk/u16-grapheme-next.c: Update name.
4368         * lib/unigbrk/u16-grapheme-prev.c: Update name.
4369         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
4370         * lib/unigbrk/u32-grapheme-next.c: Update name.
4371         * lib/unigbrk/u32-grapheme-prev.c: Update name.
4372         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
4373         * lib/unigbrk/u8-grapheme-next.c: Update name.
4374         * lib/unigbrk/u8-grapheme-prev.c: Update name.
4375         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
4376         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
4377         Suggested by Bruno Haible.
4378
4379 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4380
4381         Remove module 'u8-grapheme-len' as too redundant with
4382         'u8-grapheme-next'.
4383         * modules/unigbrk/u8-grapheme-len: Delete file.
4384         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
4385         * lib/unigbrk.in.h: Remove prototype for deleted function.
4386         * lib/unigbrk/u8-grapheme-len.c: Delete file.
4387         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
4388
4389         Remove module 'u16-grapheme-len' as too redundant with
4390         'u16-grapheme-next'.
4391         * modules/unigbrk/u16-grapheme-len: Delete file.
4392         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
4393         * lib/unigbrk.in.h: Remove prototype for deleted function.
4394         * lib/unigbrk/u16-grapheme-len.c: Delete file.
4395         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
4396
4397         Remove module 'u32-grapheme-len' as too redundant with
4398         'u32-grapheme-next'.
4399         * modules/unigbrk/u32-grapheme-len: Delete file.
4400         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
4401         * lib/unigbrk.in.h: Remove prototype for deleted function.
4402         * lib/unigbrk/u32-grapheme-len.c: Delete file.
4403         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
4404
4405         Suggested by Bruno Haible.
4406
4407 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
4408
4409         * unigbrk.in.h: Fix typo: "ben" => "been".
4410         Reported by Bruno Haible.
4411
4412 2011-01-01  Jim Meyering  <meyering@redhat.com>
4413
4414         maint: update almost all copyright ranges to include 2011
4415         Run the new "make update-copyright" rule.
4416
4417 2011-01-01  Jim Meyering  <meyering@redhat.com>
4418
4419         maint: update-copyright: exempt doc/INSTALL*
4420         * Makefile (update-copyright): Also exclude doc/INSTALL*,
4421         since they are generated.  Suggested by Bruno Haible.
4422
4423 2011-01-01  Jim Meyering  <meyering@redhat.com>
4424
4425         maint: refine the update-copyright rule
4426         * Makefile (update-copyright): Also exclude any file that includes
4427         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
4428         code that merely generates the comment.
4429
4430 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4431
4432         New module 'u8-grapheme-len'.
4433         * modules/unigbrk/u8-grapheme-len: New file.
4434         * modules/unigbrk/u8-grapheme-len-tests: New file.
4435         * lib/unigbrk.in.h: Add prototype for new function.
4436         * lib/unigbrk/u8-grapheme-len.c: New file.
4437         * tests/unigbrk/test-u8-grapheme-len.c: New file.
4438
4439         New module 'u16-grapheme-len'.
4440         * modules/unigbrk/u16-grapheme-len: New file.
4441         * modules/unigbrk/u16-grapheme-len-tests: New file.
4442         * lib/unigbrk.in.h: Add prototype for new function.
4443         * lib/unigbrk/u16-grapheme-len.c: New file.
4444         * tests/unigbrk/test-u16-grapheme-len.c: New file.
4445
4446         New module 'u32-grapheme-len'.
4447         * modules/unigbrk/u32-grapheme-len: New file.
4448         * modules/unigbrk/u32-grapheme-len-tests: New file.
4449         * lib/unigbrk.in.h: Add prototype for new function.
4450         * lib/unigbrk/u32-grapheme-len.c: New file.
4451         * tests/unigbrk/test-u32-grapheme-len.c: New file.
4452
4453         New module 'u8-grapheme-next'.
4454         * modules/unigbrk/u8-grapheme-next: New file.
4455         * modules/unigbrk/u8-grapheme-next-tests: New file.
4456         * lib/unigbrk.in.h: Add prototype for new function.
4457         * lib/unigbrk/u8-grapheme-next.c: New file.
4458         * tests/unigbrk/test-u8-grapheme-next.c: New file.
4459
4460         New module 'u16-grapheme-next'.
4461         * modules/unigbrk/u16-grapheme-next: New file.
4462         * modules/unigbrk/u16-grapheme-next-tests: New file.
4463         * lib/unigbrk.in.h: Add prototype for new function.
4464         * lib/unigbrk/u16-grapheme-next.c: New file.
4465         * tests/unigbrk/test-u16-grapheme-next.c: New file.
4466
4467         New module 'u32-grapheme-next'.
4468         * modules/unigbrk/u32-grapheme-next: New file.
4469         * modules/unigbrk/u32-grapheme-next-tests: New file.
4470         * lib/unigbrk.in.h: Add prototype for new function.
4471         * lib/unigbrk/u32-grapheme-next.c: New file.
4472         * tests/unigbrk/test-u32-grapheme-next.c: New file.
4473
4474         New module 'u8-grapheme-prev'.
4475         * modules/unigbrk/u8-grapheme-prev: New file.
4476         * modules/unigbrk/u8-grapheme-prev-tests: New file.
4477         * lib/unigbrk.in.h: Add prototype for new function.
4478         * lib/unigbrk/u8-grapheme-prev.c: New file.
4479         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
4480
4481         New module 'u16-grapheme-prev'.
4482         * modules/unigbrk/u16-grapheme-prev: New file.
4483         * modules/unigbrk/u16-grapheme-prev-tests: New file.
4484         * lib/unigbrk.in.h: Add prototype for new function.
4485         * lib/unigbrk/u16-grapheme-prev.c: New file.
4486         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
4487
4488         New module 'u32-grapheme-prev'.
4489         * modules/unigbrk/u32-grapheme-prev: New file.
4490         * modules/unigbrk/u32-grapheme-prev-tests: New file.
4491         * lib/unigbrk.in.h: Add prototype for new function.
4492         * lib/unigbrk/u32-grapheme-prev.c: New file.
4493         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
4494
4495         New module 'u8-grapheme-breaks'.
4496         * modules/unigbrk/u8-grapheme-breaks: New file.
4497         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
4498         * lib/unigbrk.in.h: Add prototype for new function.
4499         * lib/unigbrk/u8-grapheme-breaks.c: New file.
4500         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
4501
4502         New module 'u16-grapheme-breaks'.
4503         * modules/unigbrk/u16-grapheme-breaks: New file.
4504         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
4505         * lib/unigbrk.in.h: Add prototype for new function.
4506         * lib/unigbrk/u16-grapheme-breaks.c: New file.
4507         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
4508
4509         New module 'u32-grapheme-breaks'.
4510         * modules/unigbrk/u32-grapheme-breaks: New file.
4511         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
4512         * lib/unigbrk.in.h: Add prototype for new function.
4513         * lib/unigbrk/u32-grapheme-breaks.c: New file.
4514         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
4515
4516         New module 'ulc-grapheme-breaks'.
4517         * modules/unigbrk/ulc-grapheme-breaks: New file.
4518         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
4519         * m4/locale-ar.m4: New file.
4520         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
4521         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
4522         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
4523
4524 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
4525
4526         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
4527         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
4528         modified how this file was generated before I initially submitted
4529         the module, but failed to regenerate it.  This meant that several
4530         of the level2 entries were wrong.
4531         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
4532         Remove the division-by-2 that is folded into the table now that
4533         gbrkprop.h has been regenerated properly.  Now -1 entries are
4534         handled correctly.
4535
4536         New module 'unigbrk/uc-gbrk-prop-tests'.
4537         * modules/unigbrk/uc-gbrk-prop-tests: New file.
4538         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
4539         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
4540         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
4541
4542 2011-01-01  Bruno Haible  <bruno@clisp.org>
4543
4544         Avoid use of hexadecimal escapes.
4545         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
4546         instead of hexadecimal escapes.
4547
4548 2011-01-01  Jim Meyering  <meyering@redhat.com>
4549
4550         maint: new rule to update copyright year ranges
4551         * Makefile (update-copyright): New rule.
4552
4553         maint: indent with TABs in Makefile
4554         * Makefile: Expand leading sequences of spaces to TABs
4555
4556         version-etc: update the copyright year it reports
4557         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
4558
4559 2010-12-31  Bruno Haible  <bruno@clisp.org>
4560
4561         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
4562         * lib/isfinite.c (zerof, zerod, zerol): New variables.
4563         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
4564         zero.
4565
4566 2010-12-31  Bruno Haible  <bruno@clisp.org>
4567
4568         pwrite: Work around HP-UX 11.11 bug.
4569         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
4570         works and set REPLACE_PWRITE if not.
4571         * lib/pwrite.c (pwrite): Add an implementation that uses the system
4572         function.
4573         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
4574
4575 2010-12-31  Bruno Haible  <bruno@clisp.org>
4576
4577         pread: Work around HP-UX 11 bugs.
4578         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
4579         and set REPLACE_PREAD if not.
4580         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
4581
4582 2010-12-31  Eric Blake  <eblake@redhat.com>
4583
4584         nl_langinfo: fix YESEXPR on Irix 6.5
4585         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
4586         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
4587         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
4588         it.
4589
4590 2010-12-31  Bruno Haible  <bruno@clisp.org>
4591
4592         iconv: Document HP-UX 11 bug.
4593         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
4594
4595 2010-12-31  Bruno Haible  <bruno@clisp.org>
4596
4597         ldexpl: Fix link error on HP-UX 11.
4598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
4599         LDEXPL_LIBM, using $ISNANL_LIBM.
4600
4601 2010-12-31  Eric Blake  <eblake@redhat.com>
4602
4603         ftello: avoid compilation failure with SunStudio c89
4604         * lib/ftello.c (ftello): Use lseek, not llseek.
4605
4606         tests: avoid failing coreutils tests on cygwin
4607         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
4608         (create_exe_shims_): Return 0 when skipping.
4609
4610 2010-12-31  Bruno Haible  <bruno@clisp.org>
4611
4612         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
4613         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
4614
4615 2010-12-31  Bruno Haible  <bruno@clisp.org>
4616
4617         waitpid: Fix link error in C++ mode.
4618         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
4619
4620 2010-12-31  Bruno Haible  <bruno@clisp.org>
4621
4622         isnan: Use GCC built-ins when possible.
4623         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
4624         __builtin_isnan.
4625         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
4626         (isnan): Define using GCC built-ins for GCC >= 4.0.
4627
4628 2010-12-31  Bruno Haible  <bruno@clisp.org>
4629
4630         isnand: Fix mistake.
4631         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
4632         __builtin_isnand.
4633
4634 2010-12-31  Bruno Haible  <bruno@clisp.org>
4635
4636         open: Avoid C++ error on HP-UX 11.
4637         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
4638
4639 2010-12-31  Bruno Haible  <bruno@clisp.org>
4640
4641         time_r: Add missing declarations on HP-UX 11.
4642         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
4643         instead of HAVE_LOCALTIME_R.
4644         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
4645         HAVE_LOCALTIME_R always.
4646         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
4647         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
4648         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
4649         HAVE_LOCALTIME_R.
4650         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
4651         * doc/posix-functions/localtime_r.texi: Likewise.
4652
4653 2010-12-29  Eric Blake  <eblake@redhat.com>
4654
4655         mountlist: tweak previous commit
4656         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
4657         Reported by Paul Eggert.
4658
4659         mountlist: fix local drive detection on cygwin
4660         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
4661         that works for cygwin.
4662
4663 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4664
4665         ftoastr, snprintf: ftoastr + snprintf module
4666         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
4667         since the snprintf module now should be good enough here.
4668         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
4669         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
4670         and gl_MODULE_INDICATOR([snprintf]), but the former enables
4671         GNULIB_SNPRINTF only for the test directory, and the latter
4672         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
4673         seems to suffice by itself.
4674
4675 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
4676
4677         alloca: one step towards thread-safety
4678         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
4679         need for a static variable.  All callers changed.  This does not
4680         make the alloca replacement thread-safe, but it's one step.
4681
4682         tests: minor indenting change
4683         * tests/init.sh: Sync from coreutils housekeeping patch
4684         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
4685         to keep lines within 80 columns.
4686
4687 2010-12-28  Jim Meyering  <meyering@redhat.com>
4688
4689         regex: don't infloop on persistent failing calloc
4690         * lib/regexec.c (build_trtable): Return failure indication upon
4691         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
4692         In glibc, this was fixed for version 2.13:
4693         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
4694
4695 2010-12-28  Bruno Haible  <bruno@clisp.org>
4696             Paul Eggert <eggert@cs.ucla.edu>
4697
4698         linkat: Make implementation robust against system behaviour variations.
4699         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
4700         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
4701         way, and to -2 if it needs a generic runtime test.
4702         * lib/linkat.c (solaris_optimized_link_immediate,
4703         solaris_optimized_link_follow): New functions.
4704         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
4705         (check_same_link): Use it.
4706
4707 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
4708
4709         New module 'unigbrk/base'.
4710         * modules/unigbrk/base: New file.
4711         * lib/unigbrk.in.h: New file.
4712
4713         New module 'unigbrk/uc-gbrk-prop'.
4714         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
4715         * modules/unigbrk/uc-gbrk-prop: New file.
4716         * lib/unigbrk/gbrkprop.h: New file.
4717         * lib/unigbrk/uc-gbrk-prop.c: New file.
4718
4719         New module 'unigbrk/uc-is-grapheme-break'.
4720         * modules/unigbrk/uc-is-grapheme-break: New file.
4721         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
4722         * lib/unigbrk/uc-is-grapheme-break.c: New file.
4723         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
4724         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
4725         * tests/unigbrk/GraphemeBreakTest.txt: New file.
4726
4727         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
4728
4729 2010-12-27  Bruno Haible  <bruno@clisp.org>
4730
4731         linkat test: Avoid failure on Solaris 11 2010-11.
4732         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
4733
4734 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4735
4736         utimens: work around glibc rounding bug on more platforms
4737         * lib/utimens.c (fdutimens): Work around rounding bug even if
4738         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
4740
4741 2010-12-27  Bruno Haible  <bruno@clisp.org>
4742
4743         select tests: Improve comments.
4744         * tests/test-select.c (do_select): Add comments.
4745
4746 2010-12-27  Bruno Haible  <bruno@clisp.org>
4747
4748         select tests: Safer way of handling timeout.
4749         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
4750         at every invocation.
4751
4752 2010-12-27  Bruno Haible  <bruno@clisp.org>
4753
4754         select tests: Use 'bool' where appropriate.
4755         * tests/test-select.c (connect_to_socket): Change argument type to
4756         'bool'.
4757
4758 2010-12-27  Bruno Haible  <bruno@clisp.org>
4759
4760         select tests: Use existing modules.
4761         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
4762         (configure.ac): Don't test for unistd.h.
4763         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
4764         declared in <unistd.h>.
4765
4766 2010-12-27  Bruno Haible  <bruno@clisp.org>
4767
4768         mbrtowc: Work around a Solaris 7 bug.
4769         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
4770         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
4771         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
4772         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
4773         MBRTOWC_NULL_ARG1_BUG.
4774         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
4775         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
4776         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
4777         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
4778
4779 2010-12-27  Jim Meyering  <meyering@redhat.com>
4780
4781         read-file.c: tweak syntax
4782         * lib/read-file.c (fread_file): Remove space after "*" in function
4783         definitions.
4784
4785 2010-12-27  Bruno Haible  <bruno@clisp.org>
4786
4787         times test: Avoid gcc warnings on OSF/1.
4788         * tests/test-times.c (main): Cast printf arguments from clock_t to
4789         'long int'.
4790
4791 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
4792
4793         utimens: work around glibc rounding bug on older Linux kernels
4794         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
4795         on Linux with a glibc whose utimes might not work, then work
4796         around a longstanding glibc bug involving rounding rather than
4797         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
4798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4799
4800 2010-12-26  Bruno Haible  <bruno@clisp.org>
4801
4802         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
4803         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
4804         _GL_CXXALIAS_SYS.
4805         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4806
4807 2010-12-26  Bruno Haible  <bruno@clisp.org>
4808
4809         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
4810         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
4811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4812         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
4813         looking for the declaration.
4814         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
4815         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
4816         problem.
4817         * doc/posix-functions/inet_pton.texi: Likewise.
4818
4819 2010-12-26  Bruno Haible  <bruno@clisp.org>
4820
4821         arpa_inet: Use the common idioms with C++ support.
4822         * lib/arpa_inet.in.h: Include c++defs.h.
4823         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
4824         support.
4825         * modules/arpa_inet (Depends-on): Add c++defs.
4826         (Makefile.am): Substitute the contents of c++defs.h.
4827         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
4828         * modules/arpa_inet-c++-tests: New file.
4829         * tests/test-arpa_inet-c++.cc: New file.
4830
4831 2010-12-25  Bruno Haible  <bruno@clisp.org>
4832
4833         Fix more C++ link errors on Solaris 8.
4834         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
4835         $(LIB_EACCESS).
4836         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
4837         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
4838         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
4839         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
4840         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
4841
4842 2010-12-25  Bruno Haible  <bruno@clisp.org>
4843
4844         printf-posix: Fix link error when a non-GCC compiler is used.
4845         * lib/stdio.in.h (printf): When not using GCC, override printf
4846         correctly.
4847         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4848
4849 2010-12-25  Bruno Haible  <bruno@clisp.org>
4850
4851         strerror_r-posix: Update doc.
4852         * doc/posix-functions/strerror_r.texi: Update doc about the return
4853         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
4854
4855 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4856
4857         utimens: simplify the logic of the previous change
4858         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
4859         This should not affect whether the test succeeds or fails.
4860
4861         utimens: configure better on hosts with NFS clock skew
4862         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
4863         uses the clock of the local host.  It might use the clock of the
4864         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
4865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
4866
4867 2010-12-25  Bruno Haible  <bruno@clisp.org>
4868
4869         ptsname test: Avoid failure on Solaris.
4870         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
4871         open a pseudo-terminal; don't use BSD-style ptys.
4872         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
4873
4874 2010-12-25  Bruno Haible  <bruno@clisp.org>
4875
4876         ptsname: Avoid ERANGE failure on some systems.
4877         * lib/ptsname.c (buffer): Increase size.
4878
4879 2010-12-25  Bruno Haible  <bruno@clisp.org>
4880
4881         rename, renameat: Avoid test failures at NFS mounted locations.
4882         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
4883         so that subsequent mkdir calls succeed.
4884
4885 2010-12-25  Bruno Haible  <bruno@clisp.org>
4886
4887         iswblank: Fix C++ link error on Solaris 8.
4888         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
4889         _GL_FUNCDECL_SYS.
4890
4891 2010-12-25  Bruno Haible  <bruno@clisp.org>
4892
4893         unistd: Fix C++ link error on Solaris 8.
4894         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
4895
4896 2010-12-25  Bruno Haible  <bruno@clisp.org>
4897
4898         readlink doc: Mention an old glibc bug.
4899         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
4900
4901 2010-12-25  Bruno Haible  <bruno@clisp.org>
4902
4903         fcntl-h: Fix for use of C++ on glibc systems.
4904         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4905         also on glibc systems in C++ mode.
4906         Reported by Gary V. Vaughan <gary@gnu.org>.
4907
4908 2010-12-25  Bruno Haible  <bruno@clisp.org>
4909
4910         roundl-ieee: Make it work on OSF/1 5.1 with cc.
4911         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
4912
4913 2010-12-25  Bruno Haible  <bruno@clisp.org>
4914
4915         truncl-ieee: Make it work on OSF/1 5.1 with cc.
4916         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
4917         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
4918         test whether truncl works according to ISO C 99 with IEC 60559.
4919         * m4/truncl-ieee.m4: New file.
4920         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
4921         m4/signbit.m4.
4922         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
4923
4924 2010-12-25  Bruno Haible  <bruno@clisp.org>
4925
4926         ceill-ieee: Make it work on OSF/1 5.1 with cc.
4927         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
4928         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
4929         test whether ceill works according to ISO C 99 with IEC 60559.
4930         * m4/ceill-ieee.m4: New file.
4931         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
4932         m4/signbit.m4.
4933         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
4934
4935 2010-12-25  Bruno Haible  <bruno@clisp.org>
4936
4937         Ensure all prerequisites of <wchar.h> are included.
4938         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
4939         before <wchar.h>.
4940         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4941         gl_MBRLEN_NUL_RETVAL): Likewise.
4942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4943         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
4944         AC_FUNC_MBRTOWC): Likewise.
4945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4946         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
4947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4948         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4949         Likewise.
4950         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4951         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
4952         (gl_WCHAR_H): Improve comments.
4953         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4954
4955 2010-12-25  Bruno Haible  <bruno@clisp.org>
4956
4957         strtok_r: Fix C syntax error in autoconf macro.
4958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
4959         characters in test program.
4960
4961 2010-12-24  Bruno Haible  <bruno@clisp.org>
4962
4963         ceil, trunc, round: Fix gcc warnings.
4964         * lib/ceil.c (MIN): Undefine before redefining.
4965         * lib/trunc.c (MIN): Likewise.
4966         * lib/round.c (MIN): Likewise.
4967         Include <math.h> first.
4968
4969 2010-12-24  Bruno Haible  <bruno@clisp.org>
4970
4971         select tests: Avoid failures on OSF/1 5.1.
4972         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
4973         failure of closing the last socket; it may fail with ECONNRESET.
4974
4975 2010-12-24  Eric Blake  <eblake@redhat.com>
4976
4977         stdint: avoid HP-UX 10.20 preprocessor bug
4978         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4979         than #if.
4980         * tests/test-floor2.c (main): Likewise.
4981         Reported by Peter O'Gorman.
4982
4983         pipe: make obsoletion transition easier
4984         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4985         * modules/pipe (Files): Include revived file.
4986         (Include): Drop reference, to mirror getdate's behavior.
4987
4988 2010-12-24  Bruno Haible  <bruno@clisp.org>
4989
4990         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4991         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4992         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4993         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4994
4995 2010-12-24  Bruno Haible  <bruno@clisp.org>
4996
4997         gethostname: Ensure declaration on NonStop Kernel.
4998         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4999         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5000
5001 2010-12-24  Bruno Haible  <bruno@clisp.org>
5002
5003         sys_select: Ensure all necessary types on NonStop Kernel.
5004         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5005         include <sys/time.h>.
5006         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5007         NonStop Kernel.
5008         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5009
5010 2010-12-24  Bruno Haible  <bruno@clisp.org>
5011
5012         sys_select: Remove unneeded include.
5013         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5014         have <sys/select.h>.
5015
5016 2010-12-24  Bruno Haible  <bruno@clisp.org>
5017
5018         gethostname: Provide a fallback for HOST_NAME_MAX.
5019         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5020         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5021         instead.
5022         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5023
5024 2010-12-24  Bruno Haible  <bruno@clisp.org>
5025
5026         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5027         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5028         (SA_RESTART): Likewise.
5029         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5030
5031 2010-12-24  Bruno Haible  <bruno@clisp.org>
5032
5033         signal: Define NSIG.
5034         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5035         * tests/test-signal.c (nsig): New variable.
5036         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5037
5038 2010-12-24  Bruno Haible  <bruno@clisp.org>
5039
5040         rename, renameat: Avoid test failures on OSF/1 5.1.
5041         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5042         alternative error codes.
5043         * tests/test-renameat.c (main): Likewise.
5044
5045 2010-12-24  Bruno Haible  <bruno@clisp.org>
5046
5047         *printf: Detect large precisions bug on Solaris 10/SPARC.
5048         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5049         by Paul Eggert.
5050         * tests/test-snprintf-posix.h (test_function): Add this test code here
5051         too.
5052         * tests/test-sprintf-posix.h (test_function): Likewise.
5053         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5054         * tests/test-vasprintf-posix.c (test_function): Likewise.
5055         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5056         around by gnulib.
5057         * doc/posix-functions/printf.texi: Likewise.
5058         * doc/posix-functions/snprintf.texi: Likewise.
5059         * doc/posix-functions/sprintf.texi: Likewise.
5060         * doc/posix-functions/vfprintf.texi: Likewise.
5061         * doc/posix-functions/vprintf.texi: Likewise.
5062         * doc/posix-functions/vsnprintf.texi: Likewise.
5063         * doc/posix-functions/vsprintf.texi: Likewise.
5064         * doc/posix-functions/dprintf.texi: Undo last commit.
5065         * doc/posix-functions/vdprintf.texi: Likewise.
5066
5067 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5068
5069         tests: port test-fdutimensat.c to Solaris 8
5070         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5071         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5072         On Solaris 8, it fails with errno == ENOSYS, because there is no
5073         futimens (so it can't use the fd), and there is no lutimens (so it
5074         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5075
5076         vsnprintf: make more consistent with snprintf; doc fixes
5077
5078         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5079         the byte count return problem was promoted from the snprintf-posix
5080         to the snprintf module.
5081         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5082         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5083         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5084         * tests/test-snprintf.c (main): Check the byte count returned.
5085         * tests/test-vsnprintf.c (main): Likewise.
5086
5087 2010-12-23  Eric Blake  <eblake@redhat.com>
5088
5089         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5090         * modules/sigpipe (License): Relax license.
5091
5092 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5093
5094         doc: document Solaris printf bug with large float precisions
5095         * doc/posix-functions/dprintf.texi (dprintf):
5096         * doc/posix-functions/fprintf.texi (fprintf):
5097         * doc/posix-functions/printf.texi (printf):
5098         * doc/posix-functions/snprintf.texi (snprintf):
5099         * doc/posix-functions/sprintf.texi (sprintf):
5100         * doc/posix-functions/vdprintf.texi (vdprintf):
5101         * doc/posix-functions/vfprintf.texi (vfprintf):
5102         * doc/posix-functions/vprintf.texi (vprintf):
5103         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5104         * doc/posix-functions/vsprintf.texi (vsprintf):
5105         Mention that these functions mishandle large floating point
5106         precisions on Solaris 10.  The same bug is also present in Solaris
5107         8, and I assume earlier.  This causes "cd gnulib-tests; make
5108         check" to fail on Solaris 8 (and I assume, later) when building
5109         the latest coreutils, in test-vasprintf-posix's call to
5110         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5111         the wide flavors (e.g., wprintf) so this patch just updates the
5112         documentation for the narrow ones.
5113
5114         test-posixtm.c: add two tests
5115         * tests/test-posixtm.c: Add two tests, to highlight the
5116         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5117         around this bug; this is merely to document it.
5118
5119 2010-12-22  Bruno Haible  <bruno@clisp.org>
5120
5121         getlogin_r: Work around portability problem on OSF/1.
5122         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5123         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5124         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5125         test for a truncated result.
5126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5127         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5128         * modules/getlogin_r (Depends-on): Add memchr.
5129         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5130
5131 2010-12-22  Bruno Haible  <bruno@clisp.org>
5132
5133         ptsname: Avoid test failure on OSF/1 5.1.
5134         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5135         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5136         (same_slave): New function.
5137         (main): Use it to compare ptsname's result with the expected file name.
5138
5139 2010-12-22  Bruno Haible  <bruno@clisp.org>
5140
5141         Port extended stdio modules to HP NonStop Kernel.
5142         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5143         macros.
5144         * lib/fbufmode.c: Update comments.
5145         * lib/fflush.c: Likewise.
5146         * lib/fpurge.c: Likewise.
5147         * lib/freadable.c: Likewise.
5148         * lib/freadahead.c: Likewise.
5149         * lib/freading.c: Likewise.
5150         * lib/freadptr.c: Likewise.
5151         * lib/freadseek.c: Likewise.
5152         * lib/fseeko.c: Likewise.
5153         * lib/fseterr.c: Likewise.
5154         * lib/fwritable.c: Likewise.
5155         * lib/fwriting.c: Likewise.
5156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5157
5158 2010-12-22  Bruno Haible  <bruno@clisp.org>
5159
5160         ttyname_r: Work around bug on OSF/1 5.1.
5161         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5162         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5163         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5164         present.
5165         * lib/ttyname_r.c (ttyname_r): Update comments.
5166
5167 2010-12-22  Bruno Haible  <bruno@clisp.org>
5168
5169         round: Implement result sign according to IEEE 754.
5170         * lib/round.c (MIN, MINUS_ZERO): New macros.
5171         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5172         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5173         * tests/test-round-ieee.c (main): Likewise.
5174         * tests/test-roundl-ieee.c (main): Likewise.
5175
5176         trunc: Implement result sign according to IEEE 754.
5177         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5178         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5179         * tests/test-trunc2.c: Include minus-zero.h.
5180         (MINUS_ZERO): New macro.
5181         (trunc_reference): Keep in sync with lib/trunc.c.
5182         * tests/test-truncf2.c: Include minus-zero.h.
5183         (MINUS_ZERO): New macro.
5184         (truncf_reference): Keep in sync with lib/trunc.c.
5185         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5186         * tests/test-trunc-ieee.c (main): Likewise.
5187         * tests/test-truncl-ieee.c (main): Likewise.
5188
5189         ceil: Implement result sign according to IEEE 754.
5190         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5191         (FUNC): Return -0.0 for -1 < x < 0.
5192         * tests/test-ceil2.c: Include minus-zero.h.
5193         (MINUS_ZERO): New macro.
5194         (ceil_reference): Keep in sync with lib/ceil.c.
5195         * tests/test-ceilf2.c: Include minus-zero.h.
5196         (MINUS_ZERO): New macro.
5197         (ceilf_reference): Keep in sync with lib/ceil.c.
5198         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5199         * tests/test-ceil-ieee.c (main): Likewise.
5200         * tests/test-ceill-ieee.c (main): Likewise.
5201
5202         floor: Implement result sign according to IEEE 754.
5203         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5204         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5205         * tests/test-floorf2.c (floorf_reference): Likewise.
5206         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5207         * tests/test-floor-ieee.c (main): Likewise.
5208         * tests/test-floorl-ieee.c (main): Likewise.
5209
5210 2010-12-22  Bruno Haible  <bruno@clisp.org>
5211
5212         getaddrinfo: Update doc.
5213         * doc/posix-functions/gai_strerror.texi: Return type is also different
5214         on AIX and HP-UX.
5215
5216 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5217
5218         getaddrinfo, inet_ntop: Update doc for Solaris.
5219         * doc/posix-functions/gai_strerror.texi: Return type is also an
5220         issue on Solaris 9 and earlier.
5221         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5222         on Solaris 10 and earlier.
5223
5224 2010-12-21  Bruno Haible  <bruno@clisp.org>
5225
5226         New module 'roundl-ieee'.
5227         * modules/roundl-ieee: New file.
5228         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5229         test whether roundl works according to ISO C 99 with IEC 60559.
5230         * m4/roundl-ieee.m4: New file.
5231         * modules/roundl-ieee-tests: New file.
5232         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5233         * tests/test-roundl.c (main): Remove signbit tests.
5234         * modules/roundl-tests (Depends-on): Remove signbit.
5235         * doc/posix-functions/roundl.texi: Mention the new module.
5236
5237 2010-12-21  Bruno Haible  <bruno@clisp.org>
5238
5239         New module 'truncl-ieee'.
5240         * modules/truncl-ieee: New file.
5241         * modules/truncl-ieee-tests: New file.
5242         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
5243         * tests/test-truncl.c (main): Remove signbit tests.
5244         * modules/truncl-tests (Depends-on): Remove signbit.
5245         * doc/posix-functions/truncl.texi: Mention the new module.
5246
5247 2010-12-21  Bruno Haible  <bruno@clisp.org>
5248
5249         New module 'ceill-ieee'.
5250         * modules/ceill-ieee: New file.
5251         * modules/ceill-ieee-tests: New file.
5252         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
5253         * tests/test-ceill.c (main): Remove signbit tests.
5254         * modules/ceill-tests (Depends-on): Remove signbit.
5255         * doc/posix-functions/ceill.texi: Mention the new module.
5256
5257 2010-12-21  Bruno Haible  <bruno@clisp.org>
5258
5259         New module 'floorl-ieee'.
5260         * modules/floorl-ieee: New file.
5261         * modules/floorl-ieee-tests: New file.
5262         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
5263         * tests/test-floorl.c (main): Remove signbit tests.
5264         * modules/floorl-tests (Depends-on): Remove signbit.
5265         * doc/posix-functions/floorl.texi: Mention the new module.
5266
5267 2010-12-21  Bruno Haible  <bruno@clisp.org>
5268
5269         New module 'round-ieee'.
5270         * modules/round-ieee: New file.
5271         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
5272         whether round works according to ISO C 99 with IEC 60559.
5273         * m4/round-ieee.m4: New file.
5274         * modules/round-ieee-tests: New file.
5275         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
5276         * tests/test-round1.c (main): Remove signbit tests.
5277         * modules/round-tests (Depends-on): Remove 'signbit'.
5278         * doc/posix-functions/round.texi: Mention the new module.
5279
5280 2010-12-21  Bruno Haible  <bruno@clisp.org>
5281
5282         New module 'trunc-ieee'.
5283         * modules/trunc-ieee: New file.
5284         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
5285         whether trunc works according to ISO C 99 with IEC 60559.
5286         * m4/trunc-ieee.m4: New file.
5287         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
5288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
5289         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
5290         * modules/trunc-ieee-tests: New file.
5291         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
5292         * tests/test-trunc1.c (main): Remove signbit tests.
5293         * modules/trunc-tests (Depends-on): Remove 'signbit'.
5294         * doc/posix-functions/trunc.texi: Mention the new module.
5295
5296 2010-12-21  Bruno Haible  <bruno@clisp.org>
5297
5298         New module 'ceil-ieee'.
5299         * modules/ceil-ieee: New file.
5300         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
5301         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
5302         ISO C 99 with IEC 60559.
5303         * m4/ceil-ieee.m4: New file.
5304         * modules/ceil (Files): Add lib/ceil.c.
5305         (Depends-on): Add 'float'.
5306         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5307         * lib/math.in.h (ceil): New declaration.
5308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
5309         REPLACE_CEIL.
5310         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
5311         * modules/ceil-ieee-tests: New file.
5312         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
5313         * tests/test-math-c++.cc: Check the signature of 'ceil'.
5314         * doc/posix-functions/ceil.texi: Mention the new module.
5315
5316 2010-12-21  Bruno Haible  <bruno@clisp.org>
5317
5318         New module 'floor-ieee'.
5319         * modules/floor-ieee: New file.
5320         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
5321         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
5322         ISO C 99 with IEC 60559.
5323         * m4/floor-ieee.m4: New file.
5324         * modules/floor (Files): Add lib/floor.c.
5325         (Depends-on): Add 'float'.
5326         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5327         * lib/math.in.h (floor): New declaration.
5328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
5329         REPLACE_FLOOR.
5330         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
5331         * modules/floor-ieee-tests: New file.
5332         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
5333         * tests/test-math-c++.cc: Check the signature of 'floor'.
5334         * doc/posix-functions/floor.texi: Mention the new module.
5335
5336 2010-12-21  Bruno Haible  <bruno@clisp.org>
5337
5338         New module 'roundf-ieee'.
5339         * modules/roundf-ieee: New file.
5340         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
5341         test whether roundf works according to ISO C 99 with IEC 60559.
5342         * m4/roundf-ieee.m4: New file.
5343         * modules/roundf-ieee-tests: New file.
5344         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
5345         * tests/test-roundf1.c (main): Remove signbit tests.
5346         * modules/roundf-tests (Depends-on): Remove 'signbit'.
5347         * doc/posix-functions/roundf.texi: Mention the new module.
5348
5349 2010-12-21  Bruno Haible  <bruno@clisp.org>
5350
5351         New module 'truncf-ieee'.
5352         * modules/truncf-ieee: New file.
5353         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
5354         test whether truncf works according to ISO C 99 with IEC 60559.
5355         * m4/truncf-ieee.m4: New file.
5356         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
5357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
5358         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
5359         * modules/truncf-ieee-tests: New file.
5360         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
5361         * tests/test-truncf1.c (main): Remove signbit tests.
5362         * modules/truncf-tests (Depends-on): Remove 'signbit'.
5363         * doc/posix-functions/truncf.texi: Mention the new module.
5364
5365 2010-12-21  Bruno Haible  <bruno@clisp.org>
5366
5367         New module 'ceilf-ieee'.
5368         * modules/ceilf-ieee: New file.
5369         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
5370         test whether ceilf works according to ISO C 99 with IEC 60559.
5371         * m4/ceilf-ieee.m4: New file.
5372         * modules/ceilf-ieee-tests: New file.
5373         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
5374         * tests/test-ceilf1.c (main): Remove signbit tests.
5375         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
5376         * doc/posix-functions/ceilf.texi: Mention the new module.
5377
5378 2010-12-21  Bruno Haible  <bruno@clisp.org>
5379
5380         New module 'floorf-ieee'.
5381         * modules/floorf-ieee: New file.
5382         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
5383         test whether floorf works according to ISO C 99 with IEC 60559.
5384         * m4/floorf-ieee.m4: New file.
5385         * modules/floorf-ieee-tests: New file.
5386         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
5387         * tests/test-floorf1.c (main): Remove signbit tests.
5388         * modules/floorf-tests (Depends-on): Remove 'signbit'.
5389         * doc/posix-functions/floorf.texi: Mention the new module.
5390
5391 2010-12-21  Bruno Haible  <bruno@clisp.org>
5392
5393         Support for minus zero in autoconf macros.
5394         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
5395         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
5396         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
5397         * tests/minus-zero.h: Update comments.
5398
5399 2010-12-21  Bruno Haible  <bruno@clisp.org>
5400
5401         Tests for module 'ceil'.
5402         * modules/ceil-tests: New file.
5403         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
5404         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
5405
5406 2010-12-21  Bruno Haible  <bruno@clisp.org>
5407
5408         Tests for module 'floor'.
5409         * modules/floor-tests: New file.
5410         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
5411         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
5412
5413 2010-12-21  Bruno Haible  <bruno@clisp.org>
5414
5415         math: Fix indentation.
5416         * lib/math.in.h (floorf): Fix indentation.
5417
5418 2010-12-21  Bruno Haible  <bruno@clisp.org>
5419
5420         Fix cross-compilation guesses on Solaris.
5421         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
5422         not match "solaris2.10".
5423         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5424         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
5425         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
5426
5427 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
5428
5429         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
5430         This fixes a problem observed with the latest coreutils snapshot
5431         that caused a test to fail on Solaris 8.  src/csplit.c's call
5432         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
5433         earlier, instead of returning the number of bytes that would have
5434         been generated; this causes csplit to incorrectly report memory
5435         exhaustion.
5436         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
5437         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
5438         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
5439         comments to match.
5440         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
5441         Fix typo in matching older versions of Solaris: "solaris2.10"
5442         is matched by the shell pattern "solaris2.[0-9]*".  This matters
5443         only for guessing while cross-compiling.
5444         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
5445
5446 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         ftoastr: fix comment again
5449         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5450         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
5451         Also, simplify example a bit by using flags = 0.
5452
5453 2010-12-20  Bruno Haible  <bruno@clisp.org>
5454
5455         round*, trunc*: Update documentation regarding glibc.
5456         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
5457         * doc/posix-functions/round.texi: Likewise.
5458         * doc/posix-functions/roundl.texi: Likewise.
5459         * doc/posix-functions/truncf.texi: Likewise.
5460         * doc/posix-functions/trunc.texi: Likewise.
5461         * doc/posix-functions/truncl.texi: Likewise.
5462
5463 2010-12-20  Bruno Haible  <bruno@clisp.org>
5464
5465         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
5466         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
5467         * doc/posix-functions/round.texi: Likewise.
5468         * doc/posix-functions/roundl.texi: Likewise.
5469
5470 2010-12-20  Bruno Haible  <bruno@clisp.org>
5471
5472         ttyname_r: Add missing declaration on HP-UX 11.
5473         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
5474         HAVE_TTYNAME_R.
5475         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
5476         declared. Set HAVE_TTYNAME_R always.
5477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5478         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
5479         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
5480         HAVE_TTYNAME_R.
5481         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
5482
5483 2010-12-20  Bruno Haible  <bruno@clisp.org>
5484
5485         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
5486         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
5487         * doc/posix-functions/getlogin_r.texi: Likewise.
5488         * tests/test-getlogin.c: Include <errno.h>.
5489         (main): Avoid test failure on HP-UX 11.11.
5490         * tests/test-getlogin_r.c (main): Likewise.
5491
5492 2010-12-20  Bruno Haible  <bruno@clisp.org>
5493
5494         getlogin_r: Add missing declaration on HP-UX 11.
5495         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
5496         declared also when it exists as a function.
5497         * doc/posix-functions/getlogin_r.texi: Document this workaround.
5498
5499 2010-12-20  Bruno Haible  <bruno@clisp.org>
5500
5501         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
5502         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
5503         through wcrtomb.
5504
5505 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         ftoastr: fix comment
5508         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
5509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
5510
5511 2010-12-19  Bruno Haible  <bruno@clisp.org>
5512
5513         isnan: Ensure it is a macro.
5514         * lib/math.in.h (isnan): Define as a macro if not already a macro.
5515         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
5516         Solaris.
5517
5518 2010-12-19  Bruno Haible  <bruno@clisp.org>
5519
5520         ldexpl test: Fix link error on OSF/1 5.1.
5521         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
5522
5523 2010-12-19  Bruno Haible  <bruno@clisp.org>
5524
5525         wctype: Make it work in C++ mode on OSF/1 5.1.
5526         * lib/wctype.in.h (iswblank): Declare but not define here.
5527         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
5528         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
5529         * modules/wctype (Files): Add lib/iswblank.c.
5530
5531 2010-12-19  Bruno Haible  <bruno@clisp.org>
5532
5533         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
5534         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
5535         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
5536
5537 2010-12-19  Bruno Haible  <bruno@clisp.org>
5538
5539         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
5540         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
5541         _POSIX_PII_SOCKET.
5542         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
5543         * doc/posix-functions/recvfrom.texi: Likewise.
5544         * doc/posix-functions/send.texi: Likewise.
5545         * doc/posix-functions/sendto.texi: Likewise.
5546
5547 2010-12-19  Bruno Haible  <bruno@clisp.org>
5548
5549         tcgetsid: Add missing declaration on OSF/1 5.1.
5550         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
5551         HAVE_TCGETSID.
5552         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
5553         Don't set HAVE_TCGETSID.
5554         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
5555         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
5556         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
5557         HAVE_TCGETSID.
5558         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
5559
5560 2010-12-19  Bruno Haible  <bruno@clisp.org>
5561
5562         stdio: Fix problem with popen() declaration on OSF/1 5.1.
5563         * lib/stdio.in.h: During the include_next statement, let recursive
5564         includes of this file include only the system header file.
5565
5566 2010-12-19  Bruno Haible  <bruno@clisp.org>
5567
5568         iconv_open: Fix regression from 2010-12-04.
5569         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
5570         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
5571
5572 2010-12-19  Bruno Haible  <bruno@clisp.org>
5573
5574         stdbool test: Avoid a gcc warning.
5575         * tests/test-stdbool.c (main): Fail if e1 is false.
5576         Reported by Jim Meyering.
5577
5578 2010-12-19  Jim Meyering  <meyering@redhat.com>
5579
5580         setenv: restore to working order
5581         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
5582         mistakenly removed.
5583         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
5584         HAVE_SETENV.
5585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
5586         HAVE_SETENV.
5587
5588 2010-12-19  Bruno Haible  <bruno@clisp.org>
5589
5590         Document some different function declarations on OSF/1 5.1.
5591         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
5592         * doc/posix-functions/inet_ntop.texi: Likewise.
5593         * doc/posix-functions/gethostname.texi: Likewise.
5594         * lib/unistd.in.h (gethostname): Update comment.
5595
5596 2010-12-19  Bruno Haible  <bruno@clisp.org>
5597
5598         doc: Mention vasprintf-posix module.
5599         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
5600         the 'vasprintf-posix' module.
5601         * doc/glibc-functions/vasprintf.texi: Likewise.
5602
5603 2010-12-19  Bruno Haible  <bruno@clisp.org>
5604
5605         unsetenv: Add missing declaration on OSF/1 5.1.
5606         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
5607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
5608         Don't set HAVE_UNSETENV. In the test program, set _BSD.
5609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
5610         not HAVE_UNSETENV.
5611         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
5612         HAVE_UNSETENV.
5613         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
5614
5615 2010-12-19  Bruno Haible  <bruno@clisp.org>
5616
5617         setenv: Add missing declaration on OSF/1 5.1.
5618         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
5619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
5620         declared. Don't set HAVE_SETENV.
5621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
5622         not HAVE_SETENV.
5623         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
5624         HAVE_SETENV.
5625         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
5626
5627 2010-12-19  Bruno Haible  <bruno@clisp.org>
5628
5629         nl_langinfo tests: Avoid gcc warning.
5630         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
5631
5632 2010-12-19  Bruno Haible  <bruno@clisp.org>
5633
5634         mknod: Avoid error in C++ mode on OSF/1 with GCC.
5635         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
5636         _GL_CXXALIAS_SYS.
5637
5638 2010-12-19  Bruno Haible  <bruno@clisp.org>
5639
5640         stdbool: Relax test.
5641         * tests/test-stdbool.c (e): Don't require that casts from a variable's
5642         address to 'bool' work in static initializer, for compilers other than
5643         GCC.
5644
5645 2010-12-19  Bruno Haible  <bruno@clisp.org>
5646
5647         ftello: Add missing declaration on OSF/1 5.1.
5648         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
5649         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
5650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
5651         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
5652         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
5653
5654 2010-12-19  Bruno Haible  <bruno@clisp.org>
5655
5656         fseeko: Add missing declaration on OSF/1 5.1.
5657         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
5658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
5659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
5660         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
5661         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
5662
5663 2010-12-19  Bruno Haible  <bruno@clisp.org>
5664
5665         fchdir: Add missing declaration on OSF/1 5.1.
5666         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
5667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
5668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
5669         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
5670         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
5671
5672 2010-12-19  Bruno Haible  <bruno@clisp.org>
5673
5674         relocatable-prog-wrapper: Separate from relocatable-prog.
5675         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
5676         uninstall-relocwrapper rule here.
5677         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
5678         Reported by Ian Beckwith <ianb@erislabs.net>.
5679
5680 2010-12-19  Bruno Haible  <bruno@clisp.org>
5681
5682         unistr/u8-mbsnlen: Add missing dependency.
5683         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
5684         Reported by Ian Beckwith <ianb@erislabs.net>.
5685
5686 2010-12-19  Bruno Haible  <bruno@clisp.org>
5687
5688         iconv: Make it possible again to use this module without 'iconv-h'.
5689         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
5690         if it is not defined.
5691         Reported by Ian Beckwith <ianb@erislabs.net>.
5692
5693 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5694
5695         acl: port to Solaris 8 when copying from tmpfs to ufs
5696         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
5697         error number.  Problem observed on Solaris 8 with latest
5698         coreutils, with "mv A B", where A is on a tmpfs file system and B
5699         is on a ufs file system.  This caused coreutils' mv/part-symlink
5700         test to fail.
5701
5702         tests: set fail=0 at start
5703         * tests/init.sh (setup_): Move fail=0 initialization here ...
5704         (mktempd_): ... from here, so that tests can rely on fail being
5705         set to 0 initially.  This fixes a problem in coreutils; see:
5706         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
5707
5708 2010-12-18  Bruno Haible  <bruno@clisp.org>
5709
5710         memmem-simple: Stylistic changes.
5711         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
5712         Fix preprocessor directive indentation.
5713
5714 2010-12-15  Pádraig Brady <P@draigBrady.com>
5715
5716         memmem, memmem-simple: reorganize and expand empty needle check
5717         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
5718         functional checks to memmem-simple so that one has a fully functional
5719         memmem by using just this module.
5720         Restrict the performance only check to the memmem module.
5721         Also expand the empty needle check to ensure the correct
5722         pointer is returned, not just a non NULL pointer.
5723         * doc/glibc-functions/memmem.texi: Rearrange the portability
5724         documentation to correlate with the rearranged checks.
5725         Clarify exactly how the memmem and memmem-simple modules
5726         relate to each other.
5727
5728 2010-12-15  Pádraig Brady <P@draigBrady.com>
5729             Bruno Haible  <bruno@clisp.org>
5730
5731         Improve cross-compilation guesses for uClibc.
5732         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
5733         that uClibc does not have the glibc bug.
5734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
5735         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
5736
5737 2010-12-14  Eric Blake  <eblake@redhat.com>
5738
5739         configmake: provide fallbacks for oldest supported autotools
5740         * m4/configmake.m4: New file.
5741         * modules/configmake (Files): Ship it.
5742         (configure.ac): Use it to guarantee fallbacks.
5743
5744 2010-12-13  Pádraig Brady <P@draigBrady.com>
5745
5746         read-file: Improve handling of large files
5747         * lib/read-file.c (fread_file): Minimize realloc()s
5748         for regular files, and better manage sizes around SIZE_MAX.
5749
5750 2010-12-13  Eric Blake  <eblake@redhat.com>
5751
5752         cloexec, fcntl: relax license
5753         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
5754         consent from all contributors.
5755         * modules/fcntl (License): Likewise.
5756
5757 2010-12-10  Bruno Haible  <bruno@clisp.org>
5758
5759         Tests for module 'pipe-posix'.
5760         * modules/pipe-posix-tests: New file.
5761         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
5762
5763 2010-12-10  Bruno Haible  <bruno@clisp.org>
5764
5765         pipe-posix: Make it work in C++ mode.
5766         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
5767         (pipe): Use common idiom, not a macro definition.
5768         * lib/pipe.c: New file.
5769         * m4/pipe.m4: New file.
5770         * modules/pipe-posix (Description): Enhance.
5771         (Files): Add lib/pipe.c, m4/pipe.m4.
5772         (configure.ac): Invoke gl_FUNC_PIPE.
5773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
5774         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
5775         * tests/test-unistd-c++.cc: Check the signature of pipe.
5776
5777 2010-12-10  Bruno Haible  <bruno@clisp.org>
5778
5779         Rename module 'pipe' to 'spawn-pipe'.
5780         * modules/spawn-pipe: New file, renamed from modules/pipe.
5781         (Files, configure.ac, Makefile.am): Update.
5782         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
5783         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
5784         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
5785         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
5786         "spawn-pipe.h" instead of "pipe.h".
5787         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
5788         to gl_SPAWN_PIPE.
5789         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
5790         (Files, Makefile.am): Update.
5791         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
5792         Update.
5793         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
5794         Include "spawn-pipe.h" instead of "pipe.h".
5795         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
5796         * lib/javacomp.c: Likewise.
5797         * lib/javaversion.c: Likewise.
5798         * lib/pipe-filter-gi.c: Likewise.
5799         * lib/pipe-filter-ii.c: Likewise.
5800         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
5801         * modules/javacomp (Depends-on): Likewise.
5802         * modules/javaversion (Depends-on): Likewise.
5803         * modules/pipe-filter-gi (Depends-on): Likewise.
5804         * modules/pipe-filter-ii (Depends-on): Likewise.
5805         * MODULES.html.sh (Executing programs): Update.
5806         * NEWS: Mention the change.
5807
5808 2010-12-10  Eric Blake  <eblake@redhat.com>
5809
5810         pipe-posix: new module
5811         * modules/pipe-posix: New file.
5812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
5813         (gl_UNISTD_H): Check for declaration.
5814         * modules/unistd (Makefile.am): Substitute it.
5815         * lib/unistd.in.h (pipe): Provide it for mingw.
5816         * doc/posix-functions/pipe.texi (pipe): Update documentation.
5817         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
5818
5819 2010-12-07  Bruno Haible  <bruno@clisp.org>
5820
5821         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
5822         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
5823         u8_strcmp_gnu.
5824         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
5825
5826 2010-12-06  Bruno Haible  <bruno@clisp.org>
5827
5828         Update internal documentation.
5829         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
5830
5831 2010-12-04  Bruno Haible  <bruno@clisp.org>
5832
5833         Put more information about failed tests into the test return codes.
5834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
5835         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
5836         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
5837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5838         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5841         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5842         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
5843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5845         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5846         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5847         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5848         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
5849         returns a bit mask.
5850         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
5851         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5852         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5853         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5858         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5859         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5861         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5863         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5864         * m4/link.m4 (gl_FUNC_LINK): Likewise.
5865         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5866         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
5867         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
5868         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
5870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5871         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5873         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5874         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5875         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5876         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
5877         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5878         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5879         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
5880         gl_PRINTF_PRECISION): Likewise.
5881         * m4/regex.m4 (gl_REGEX): Likewise.
5882         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5884         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
5885         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5889         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
5890         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5892         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5893         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5894         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5895         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5896         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5897         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5898         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5899         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
5902         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
5903         enumerated value.
5904         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
5905
5906 2010-12-04  Bruno Haible  <bruno@clisp.org>
5907
5908         Update for Solaris 11 2010-11.
5909         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
5910         Express, released in November 2010.
5911
5912 2010-12-04  Bruno Haible  <bruno@clisp.org>
5913
5914         nproc: Relax license.
5915         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
5916         and Paul Eggert.
5917         Requested by Ludovic Courtès <ludo@gnu.org>.
5918
5919 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
5920
5921         utimecmp: fine-grained src to nearby coarse-grained dest
5922
5923         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
5924         and the source is on a file system with higher-resolution time
5925         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
5926         not work, and the time stamps are close together, the algorithm to
5927         determine the exact resolution from the read-back mtime was buggy:
5928         it had a "!=" where it should have had an "==".  This bug has been
5929         in the code ever since it was introduced to gnulib.
5930         Problem reported by Dan Jacobson in
5931         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
5932
5933 2010-11-30  Bruno Haible  <bruno@clisp.org>
5934
5935         strerror_r-posix: Fix autoconf test.
5936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
5937
5938 2010-11-28  Bruno Haible  <bruno@clisp.org>
5939             Paul Eggert  <eggert@cs.ucla.edu>
5940
5941         Tests for module 'getdomainname'.
5942         * modules/getdomainname-tests: New file.
5943         * tests/test-getdomainname.c: New file, based on
5944         tests/test-gethostname.c.
5945
5946 2010-11-28  Bruno Haible  <bruno@clisp.org>
5947             Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         getdomainname: Use the system function when possible.
5950         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
5951         (getdomainname): Replace if needed. Provide the declaration if it is
5952         missing. Don't use _GL_CXXALIAS_SYS_CAST.
5953         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
5954         (getdomainname): When the system has getdomainname, call the system
5955         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
5956         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5957         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
5958         found in libnsl. Look for the declaration also in <netdb.h>. Replace
5959         the function if its second argument is of type 'int' or if it is found
5960         in libnsl.
5961         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
5962         <sys/systeminfo.h> and sysinfo().
5963         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
5964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5965         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
5966         HAVE_GETDOMAINNAME.
5967         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
5968         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
5969         * doc/glibc-functions/getdomainname.texi: Document the problems with
5970         the getdomainname declaration.
5971
5972 2010-11-28  Bruno Haible  <bruno@clisp.org>
5973
5974         sys_socket: Ensure ss_family field on AIX.
5975         * lib/sys_socket.in.h (ss_family): New macro definition.
5976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5977         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5978         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5979         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5980         * modules/sys_socket (Makefile.am): Substitute
5981         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5982         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5983
5984 2010-11-27  Bruno Haible  <bruno@clisp.org>
5985
5986         readline: Improve configure output.
5987         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5988         "checking for readline..." result understandable.
5989
5990 2010-11-27  Bruno Haible  <bruno@clisp.org>
5991
5992         *printf-posix: Detect a bug on Solaris 10/x86.
5993         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5994         for floating-point output.
5995         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5996         directive.
5997         * tests/test-snprintf-posix.h (test_function): Likewise.
5998         * tests/test-sprintf-posix.h (test_function): Likewise.
5999         * tests/test-vasprintf-posix.c (test_function): Likewise.
6000         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6001         * doc/posix-functions/printf.texi: Likewise.
6002         * doc/posix-functions/snprintf.texi: Likewise.
6003         * doc/posix-functions/sprintf.texi: Likewise.
6004         * doc/posix-functions/vfprintf.texi: Likewise.
6005         * doc/posix-functions/vprintf.texi: Likewise.
6006         * doc/posix-functions/vsnprintf.texi: Likewise.
6007         * doc/posix-functions/vsprintf.texi: Likewise.
6008         * doc/glibc-functions/obstack_printf.texi: Likewise.
6009         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6010
6011 2010-11-27  Bruno Haible  <bruno@clisp.org>
6012
6013         Fix link error when module libunistring-optional is in use.
6014         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6015         * modules/striconveha-tests (Makefile.am): Likewise.
6016
6017 2010-11-27  Bruno Haible  <bruno@clisp.org>
6018
6019         regex: Mention link dependencies.
6020         * modules/regex (Link): New section.
6021         * modules/rpmatch (Link): Likewise.
6022         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6023
6024 2010-11-27  Bruno Haible  <bruno@clisp.org>
6025
6026         ftoastr: Fix compilation error on Solaris.
6027         * lib/ftoastr.c: Include <config.h>.
6028
6029 2010-11-27  Bruno Haible  <bruno@clisp.org>
6030
6031         getloadavg: Update documentation.
6032         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6033
6034 2010-11-27  Bruno Haible  <bruno@clisp.org>
6035
6036         sys_socket: Fix test whether the functions are declared.
6037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6038         not <sys/select.h>.
6039
6040 2010-11-27  Bruno Haible  <bruno@clisp.org>
6041
6042         getpass: Make sure to get system declaration on some platforms.
6043         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6044         gl_USE_SYSTEM_EXTENSIONS.
6045         * modules/getpass (Depends-on): Add extensions.
6046
6047 2010-11-26  Bruno Haible  <bruno@clisp.org>
6048
6049         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6050         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6051         'iconv' module is present.
6052         (ICONV_CONST): New macro.
6053         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6054         ICONV_CONST.
6055         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6056         set ICONV_CONST.
6057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6058         here.
6059         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6060         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6061         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6062         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6063         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6064         present.
6065
6066 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6067
6068         ftoastr: comment fix
6069         * lib/ftoastr.c: "little" -> "little or no" in comment
6070
6071 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6072
6073         stdint: port to GCC 4.3 + OSX + Octave
6074         On this platform, stdint.h is buggy and defines int64_t to long
6075         long int.  The replacement defined it to long int, causing
6076         problems with C++ style name mangling.  Instead, trust the system
6077         definition if INT64_MAX is defined, and likewise for the unsigned
6078         variant.   Problem reported by Jarno Rajahalme in
6079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6080         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6081         and don't mess with int64_t and INT64_MAX in this case.
6082         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6083
6084 2010-11-24  Bruno Haible  <bruno@clisp.org>
6085
6086         doc: Corrections regarding MacOS X 10.4 and 10.5.
6087         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6088         MacOS X.
6089         Reported by Simon Josefsson.
6090
6091 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6092
6093         Uninstall ".bin" files installed by relocwrapper.
6094         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6095         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6096         unless it is already there.
6097
6098 2010-11-21  Bruno Haible  <bruno@clisp.org>
6099
6100         Update for NetBSD 5.0.
6101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6102         NetBSD; the test fails on NetBSD 5.0.
6103         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6104         about NetBSD.
6105
6106 2010-11-21  Bruno Haible  <bruno@clisp.org>
6107
6108         Update for HP-UX 11.23 and HP-UX 11.31.
6109         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6110         HP-UX.
6111
6112 2010-11-21  Bruno Haible  <bruno@clisp.org>
6113
6114         Update for MacOS X 10.5.
6115         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6116         MacOS X; the test fails on MacOS X 10.5.8.
6117         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6118         about MacOS X.
6119
6120 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6121
6122         bootstrap: add bootstrap_sync option.
6123         See discussion at
6124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6126         * build-aux/bootstrap: Accept --bootstrap-sync to update
6127         bootstrap if it is not identical to the local gnulib's
6128         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6129         enable this by default.  Accept --no-bootstrap-sync to disable
6130         it.
6131
6132 2010-11-20  Bruno Haible  <bruno@clisp.org>
6133
6134         Ensure that <features.h> is included before __GLIBC__ is tested.
6135         * lib/printf-parse.h: Include <features.h>.
6136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6137         Reported by Mike Frysinger <vapier@gentoo.org>.
6138
6139         Ensure that <features.h> is included before __GLIBC__ is tested.
6140         * lib/wchar.in.h: Include <features.h>.
6141         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6142         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6143         Reported by Mike Frysinger <vapier@gentoo.org>.
6144
6145         Ensure that <features.h> is included before __GLIBC__ is tested.
6146         * lib/arpa_inet.in.h: Include <features.h>.
6147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6148         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6149         Reported by Mike Frysinger <vapier@gentoo.org>.
6150
6151         Ensure that <features.h> is included before __GLIBC__ is tested.
6152         * build-aux/link-warning.h: Include <features.h>.
6153         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6154         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6155         Reported by Mike Frysinger <vapier@gentoo.org>.
6156
6157         Ensure that <features.h> is included before __GLIBC__ is tested.
6158         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6159         Reported by Mike Frysinger <vapier@gentoo.org>.
6160
6161 2010-11-20  Bruno Haible  <bruno@clisp.org>
6162
6163         memmem: Fix autoconf test.
6164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6165
6166 2010-11-20  Bruno Haible  <bruno@clisp.org>
6167
6168         Port to uClibc.
6169         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6170         * lib/fcntl.in.h: Likewise.
6171         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6172         * lib/mbrtowc.c (mbrtowc): Likewise.
6173         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6174         * lib/strerror_r.c: Likewise.
6175         * lib/unistr/u8-strnlen.c: Likewise.
6176         * lib/vasnprintf.c (decimal_point_char): Likewise.
6177         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6178         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6180         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6181         * tests/test-sigaction.c (handler, main): Likewise.
6182         * lib/freading.h: Treat uClibc like a non-glibc platform.
6183         * lib/freading.c: Likewise.
6184         * lib/gettext.h: Likewise.
6185         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6186         Likewise.
6187         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6188         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6189         * lib/propername.c (proper_name_utf8): Likewise.
6190         * lib/spawn.in.h: Likewise.
6191         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6192         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6193         mem_cd_iconveh_internal): Likewise.
6194         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6195         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6196         strstr, strcasestr): Likewise.
6197         * lib/unicodeio.c (unicode_to_mb): Likewise.
6198         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6199         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6200         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6201         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6202         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6203         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6204         * lib/unistr/u8-stpncpy.c: Likewise.
6205         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6206         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6207         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6209         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6210         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6214         Likewise.
6215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6216         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6220         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6222         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6223         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6224         * tests/test-striconveha.c (main): Likewise.
6225         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6226         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6227         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6228         * doc/posix-functions/getline.texi: Likewise.
6229         Reported by Mike Frysinger <vapier@gentoo.org>.
6230
6231 2010-11-20  Bruno Haible  <bruno@clisp.org>
6232
6233         nproc: Fix condition.
6234         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6235         HAVE_PTHREAD_AFFINITY_NP.
6236
6237 2010-11-20  Bruno Haible  <bruno@clisp.org>
6238
6239         Fix a comment.
6240         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
6241
6242 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         ftoastr: don't assume snprintf
6245         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
6246         Implement a subset of snprintf here, by using sprintf safely.
6247         * modules/ftoastr (Depends-on): Remove snprintf.
6248
6249 2010-11-19  Jim Meyering  <meyering@redhat.com>
6250
6251         test-rename.h: fix compilation failure
6252         * tests/test-rename.h (test_rename): Add omitted "}".
6253
6254 2010-11-17  Jim Meyering  <meyering@redhat.com>
6255
6256         maint.mk: add a URL discussing the no-@acronym policy
6257         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
6258
6259 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6260
6261         ftoastr: depend on snprintf, improve comments
6262         * lib/ftoastr.c: Also mention Loitsch's draft.
6263         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6264         needed in the current implementation, but it might simplify
6265         speeding up the code later.
6266         * modules/ftoastr: Depend on snprintf; this improves portability.
6267         Suggested by Bruno Haible in the same email.
6268
6269         ftoastr: port to hosts lacking strtof and strtold
6270         Problem reported by Bruno Haible in
6271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
6272         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
6273         environment and strtold (and presumably strtof) are not available.
6274         * modules/ftoastr (Files): Add m4/c-strtod.m4.
6275         (configure.ac): Require gl_C99_STRTOLD.
6276
6277 2010-11-18  Bruno Haible  <bruno@clisp.org>
6278
6279         c-strtold: Avoid link error on AIX 7.
6280         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
6281         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
6282         (gl_C_STRTOLD): Test whether strtold_l exists.
6283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6284
6285 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6286
6287         intprops: new macro INT_BITS_STRLEN_BOUND
6288         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
6289         ftoastr.h.  This exposes an internal of intprops.h that was formerly
6290         not exposed.  Also, it uses a slightly tighter bound than before;
6291         though this makes no practical difference, we might as well be as
6292         tight as we easily can.
6293
6294         ftoastr: new module, for lossless conversion of floats to short strings
6295         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
6296         * modules/ftoastr: New files.
6297
6298 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         bootstrap: port to Solaris sed
6301         * build-aux/bootstrap (get_version): Port to Solaris sed.
6302         See Ralf Wildenhues's note in
6303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
6304
6305 2010-11-14  Jim Meyering  <meyering@redhat.com>
6306
6307         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
6308         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
6309         and move definition closer to sole use.
6310
6311 2010-11-13  Jim Meyering  <meyering@redhat.com>
6312
6313         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
6314         Now we require at least autoconf-2.59, which means the work-around
6315         is no longer needed.
6316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
6317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6318         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6321
6322 2010-11-13  Bruno Haible  <bruno@clisp.org>
6323
6324         rename, renameat: Avoid test failures at NFS mounted locations.
6325         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
6326         functions.
6327         (test_rename): Use assert_nonexistent.
6328         * tests/test-rename.c: Include <dirent.h>.
6329         * tests/test-renameat.c: Likewise.
6330         Reported by Gary V. Vaughan <gary@gnu.org>.
6331
6332         rename, renameat: Document Linux bug with NFS
6333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
6334         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
6335         * doc/posix-functions/renameat.texi: Likewise.
6336         Suggested by Eric Blake.
6337
6338 2010-11-13  Bruno Haible  <bruno@clisp.org>
6339
6340         rename test: Add comments.
6341         * tests/test-rename.h (test_rename): Add structure and comments.
6342
6343 2010-11-13  Eric Blake  <eblake@redhat.com>
6344
6345         maintainer-makefile: cover a few more files
6346         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
6347         scripts generated within C files, for libvirt.
6348
6349 2010-11-13  Bruno Haible  <bruno@clisp.org>
6350
6351         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
6352         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
6353         character, return the number of bytes that belong together, not always
6354         1.
6355         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6356         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6357         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6358         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
6359         number of bytes of an invalid character.
6360         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
6361         (main): Invoke it.
6362         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
6363         results.
6364         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
6365         malformed byte sequences.
6366         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
6367         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
6368         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
6369         Reported by Ben Pfaff and Paolo Bonzini.
6370
6371 2010-11-13  Bruno Haible  <bruno@clisp.org>
6372
6373         openat: Work around glibc bug with fchownat() and empty file names.
6374         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
6375         (gl_FUNC_FCHOWNAT): Invoke it.
6376         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
6377         * doc/posix-functions/fchownat.texi: Document the glibc bug.
6378         Reported by Gary V. Vaughan <gary@gnu.org>.
6379
6380 2010-11-13  Bruno Haible  <bruno@clisp.org>
6381
6382         openat: Ensure autoconf macro ordering.
6383         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
6384         gl_USE_SYSTEM_EXTENSIONS.
6385         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
6386
6387 2010-11-13  Bruno Haible  <bruno@clisp.org>
6388
6389         Update comments.
6390         * lib/unistr/u8-check.c: Update file name in comments.
6391         * lib/unistr/u8-mblen.c: Likewise.
6392         * lib/unistr/u8-prev.c: Likewise.
6393         * lib/unistr/u8-strmblen.c: Likewise.
6394         * lib/unistr/u8-strmbtouc.c: Likewise.
6395
6396 2010-11-13  Jim Meyering  <meyering@redhat.com>
6397
6398         tests: avoid test failure on Solaris 10 due to lack of PATH export
6399         * tests/test-update-copyright.sh: Don't forget to export PATH.
6400
6401         init.sh: ensure that IFS is defined, just in case...
6402         * tests/init.sh (setup_): Ensure that IFS is defined,
6403         so that saving and restoring it works as expected.  This
6404         appears to be useful at least for an old version of dash
6405         from a long time ago (RH 6).  See here for details:
6406         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
6407
6408         maint.mk: tighten "test a == b" check
6409         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
6410         test to files that contain something like #!/bin/sh.
6411         Without this, coreutils would get two false positives in
6412         the comments of C source files.
6413
6414 2010-11-12  Eric Blake  <eblake@redhat.com>
6415
6416         bootstrap: fix typo in previous attempt
6417         * build-aux/bootstrap (buildreq): Correct the grouping.
6418         Reported by Paul Eggert.
6419
6420         maintainer-makefile: prohibit test x == x
6421         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
6422         Based on a report by Matthias Bolte.
6423
6424         bootstrap: allow FreeBSD gzip
6425         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
6426         which has no '.' and goes to stderr.
6427         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
6428         Reported by Matthias Bolte.
6429
6430         maintainer-makefile: check for i18n setup
6431         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
6432         will likely work.
6433
6434 2010-11-12  Bruno Haible  <bruno@clisp.org>
6435
6436         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
6437         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
6438         * lib/nanosleep.c (nanosleep): Likewise.
6439
6440 2010-11-11  Bruno Haible  <bruno@clisp.org>
6441
6442         fcntl-h: Fix for use of C++ on glibc systems.
6443         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6444         also on glibc systems in C++ mode.
6445         Reported by Gary V. Vaughan <gary@gnu.org>.
6446
6447 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6448
6449         mknod: avoid false failure with dash
6450         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
6451
6452 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         unlink: Fix "is it should" typo in diagnostic.
6455         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
6456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
6457
6458 2010-11-11  Bruno Haible  <bruno@clisp.org>
6459
6460         Tests for module 'strerror_r-posix'.
6461         * modules/strerror_r-posix-tests: New file.
6462         * tests/test-strerror_r.c: New file.
6463         * tests/test-string-c++.cc: Check the signature of strerror_r.
6464
6465         New module 'strerror_r-posix'.
6466         * lib/string.in.h (strerror_r): New declaration.
6467         * lib/strerror_r.c: New file.
6468         * m4/strerror_r.m4: New file.
6469         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
6470         of strerror_r.
6471         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
6472         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6473         * modules/strerror_r-posix: New file.
6474         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
6475         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
6476         * doc/posix-functions/strerror_r.texi: Mention the new module and the
6477         portability problems.
6478
6479 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
6480
6481         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
6482         line is also considered for output. Quoted function name in shell
6483         command, so temporary files for functions like MyClass::operator()
6484         are removed correctly without errors.
6485
6486 2010-11-09  Bruno Haible  <bruno@clisp.org>
6487
6488         * doc/posix-functions/strerror.texi: List more failing platforms.
6489
6490         * doc/posix-functions/strerror.texi: Add a comment.
6491
6492 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6493
6494         fdopendir: fix bug on MacOS X when low on file descriptors
6495
6496         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
6497         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
6498         All callers changed.
6499         (fdopendir): Invoke save_cwd at the top level, not after using
6500         multiple dup() calls to use up file descriptors.  Then retry
6501         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
6502         less than the maximum number of open file descriptors, because
6503         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
6504         on Mac OS X 10.6.4 for tar 1.24
6505         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
6506         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
6507         and for tar 1.25
6508         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
6509
6510 2010-11-07  Bruno Haible  <bruno@clisp.org>
6511
6512         vasnprintf: Support I flag on glibc systems.
6513         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
6514         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6515         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
6516         snprintf function.
6517         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
6518         glibc systems.
6519         * tests/test-vasnprintf-posix3.c: New file.
6520         * modules/vasnprintf-posix-tests (Files): Add it.
6521         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
6522
6523 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6524
6525         [html] Fix copy/paste bug: Use unique name for compiler warnings.
6526         * MODULES.html.sh: For compiler warnings, use name
6527         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
6528
6529 2010-11-05  Eric Blake  <eblake@redhat.com>
6530
6531         ceil, floor: avoid spurious failure with icc
6532         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
6533         [denormals-as-zero] when optimizing without -mieee-fp option.
6534         * tests/test-floorf2.c (floorf_reference): Likewise.
6535         * tests/test-ceilf1.c (dummy): New function.
6536         (main): Use it to outsmart icc's optimization.
6537         * tests/test-floorf1.c (dummy, main): Likewise.
6538
6539         tests: require working signbit
6540         * modules/ceilf-tests (Depends-on): Add signbit.
6541         * modules/ceill-tests (Depends-on): Likewise.
6542         * modules/floorf-tests (Depends-on): Likewise.
6543         * modules/floorl-tests (Depends-on): Likewise.
6544         * modules/round-tests (Depends-on): Likewise.
6545         * modules/roundf-tests (Depends-on): Likewise.
6546         * modules/roundl-tests (Depends-on): Likewise.
6547         * modules/trunc-tests (Depends-on): Likewise.
6548         * modules/truncf-tests (Depends-on): Likewise.
6549         * modules/truncl-tests (Depends-on): Likewise.
6550
6551         strtod: work around icc bug
6552         * lib/strtod.c (minus_zero): Define to working value.
6553         (strtod): Use it to avoid icc bug.
6554
6555         copysign: enhance tests
6556         * modules/copysign-tests (Files): Add minus-zero.h.
6557         * tests/test-copysign.c (main): Also test zeros.
6558
6559 2010-11-04  Eric Blake  <eblake@redhat.com>
6560
6561         ceil, floor, round, trunc: enhance tests of -0
6562         * tests/test-ceilf1.c (main): Ensure correct sign of result.
6563         * tests/test-ceill.c (main): Likewise.
6564         * tests/test-floorf1.c (main): Likewise.
6565         * tests/test-floorl.c (main): Likewise.
6566         * tests/test-round1.c (main): Likewise.
6567         * tests/test-roundf1.c (main): Likewise.
6568         * tests/test-roundl.c (main): Likewise.
6569         * tests/test-trunc1.c (main): Likewise.
6570         * tests/test-truncf1.c (main): Likewise.
6571         * tests/test-truncl.c (main): Likewise.
6572
6573 2010-11-04  Eric Blake  <eblake@redhat.com>
6574
6575         frexp, tests: work around ICC bug with -zero
6576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
6577         works with more compilers.
6578         * tests/minus-zero.h: New file.
6579         * modules/ceilf-tests (Files): Include it.
6580         * modules/ceill-tests (Files): Likewise.
6581         * modules/floorf-tests (Files): Likewise.
6582         * modules/floorl-tests (Files): Likewise.
6583         * modules/frexp-nolibm-tests (Files): Likewise.
6584         * modules/frexp-tests (Files): Likewise.
6585         * modules/frexpl-nolibm-tests (Files): Likewise.
6586         * modules/frexpl-tests (Files): Likewise.
6587         * modules/isnan-tests (Files): Likewise.
6588         * modules/isnand-nolibm-tests (Files): Likewise.
6589         * modules/isnand-tests (Files): Likewise.
6590         * modules/isnanf-nolibm-tests (Files): Likewise.
6591         * modules/isnanf-tests (Files): Likewise.
6592         * modules/isnanl-nolibm-tests (Files): Likewise.
6593         * modules/isnanl-tests (Files): Likewise.
6594         * modules/round-tests (Files): Likewise.
6595         * modules/roundf-tests (Files): Likewise.
6596         * modules/roundl-tests (Files): Likewise.
6597         * modules/ldexpl-tests (Files): Likewise.
6598         * modules/signbit-tests (Files): Likewise.
6599         * modules/snprintf-posix-tests (Files): Likewise.
6600         * modules/sprintf-posix-tests (Files): Likewise.
6601         * modules/strtod-tests (Files): Likewise.
6602         * modules/trunc-tests (Files): Likewise.
6603         * modules/truncf-tests (Files): Likewise.
6604         * modules/truncl-tests (Files): Likewise.
6605         * modules/vsnprintf-posix-tests (Files): Likewise.
6606         * modules/vsprintf-posix-tests (Files): Likewise.
6607         * modules/vasnprintf-posix-tests (Files): Likewise.
6608         * modules/vasprintf-posix-tests (Files): Likewise.
6609         * tests/test-ceilf1.c (main): Use it.
6610         * tests/test-ceill.c (main): Likewise.
6611         * tests/test-floorf1.c (main): Likewise.
6612         * tests/test-floorl.c (main): Likewise.
6613         * tests/test-frexp.c (main): Likewise.
6614         * tests/test-frexpl.c (main): Likewise.
6615         * tests/test-isnan.c (main): Likewise.
6616         * tests/test-isnand.h (main): Likewise.
6617         * tests/test-isnanf.h (main): Likewise.
6618         * tests/test-isnanl.h (main): Likewise.
6619         * tests/test-ldexpl.c (main): Likewise.
6620         * tests/test-round.c (main): Likewise.
6621         * tests/test-roundf.c (main): Likewise.
6622         * tests/test-roundl.c (main): Likewise.
6623         * tests/test-signbit.c (test_signbitf, test_signbitd)
6624         (test_signbitl): Likewise.
6625         * tests/test-snprintf-posix.h (test_function): Likewise.
6626         * tests/test-sprintf-posix.h (test_function): Likewise.
6627         * tests/test-strtod.c (main): Likewise.
6628         * tests/test-trunc1.c (main): Likewise.
6629         * tests/test-truncf1.c (main): Likewise.
6630         * tests/test-truncl.c (main): Likewise.
6631
6632         isnanl: work around icc bug
6633         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
6634
6635 2010-11-03  Eric Blake  <eblake@redhat.com>
6636
6637         tests: fix compiler warnings
6638         * tests/test-getopt.h (test_getopt): Fix condition.
6639         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6640         * tests/test-pipe2.c (main): Likewise.
6641         * tests/test-quotearg-simple.c (main): Avoid icc warning.
6642
6643         utimens: fix broken m4 test
6644         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
6645
6646 2010-10-28  Bruno Haible  <bruno@clisp.org>
6647
6648         posix_spawn*, getdtablesize: Relax license.
6649         * modules/posix_spawn (License): Change to LGPLv2+.
6650         * modules/posix_spawnp (License): Likewise.
6651         * modules/posix_spawn-internal (License): Likewise.
6652         * modules/posix_spawnattr_init (License): Likewise.
6653         * modules/posix_spawnattr_getflags (License): Likewise.
6654         * modules/posix_spawnattr_setflags (License): Likewise.
6655         * modules/posix_spawnattr_getpgroup (License): Likewise.
6656         * modules/posix_spawnattr_setpgroup (License): Likewise.
6657         * modules/posix_spawnattr_getschedparam (License): Likewise.
6658         * modules/posix_spawnattr_setschedparam (License): Likewise.
6659         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
6660         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
6661         * modules/posix_spawnattr_getsigdefault (License): Likewise.
6662         * modules/posix_spawnattr_setsigdefault (License): Likewise.
6663         * modules/posix_spawnattr_getsigmask (License): Likewise.
6664         * modules/posix_spawnattr_setsigmask (License): Likewise.
6665         * modules/posix_spawnattr_destroy (License): Likewise.
6666         * modules/posix_spawn_file_actions_init (License): Likewise.
6667         * modules/posix_spawn_file_actions_addclose (License): Likewise.
6668         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
6669         * modules/posix_spawn_file_actions_addopen (License): Likewise.
6670         * modules/posix_spawn_file_actions_destroy (License): Likewise.
6671         * modules/getdtablesize (License): Likewise.
6672         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
6673
6674 2010-10-26  Bruno Haible  <bruno@clisp.org>
6675
6676         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
6677         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
6678         Cygwin and mingw.
6679         Suggested by Eric Blake.
6680
6681 2010-10-26  Bruno Haible  <bruno@clisp.org>
6682
6683         stdio: Work around compilation error due to renameat() on Solaris 10.
6684         * lib/stdio.in.h: Include <unistd.h> on Solaris.
6685         * lib/renameat.c: Don't include <unistd.h> here.
6686         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
6687         Reported by Paul Eggert and Eric Blake.
6688
6689 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6690
6691         renameat: port to Solaris 10, which declares renameat in unistd.h
6692
6693         * lib/renameat.c: Include unistd.h before stdio.h, because
6694         Solaris 10 declares renameat in unistd.h.  Problem encountered
6695         when building GNU tar 1.24 on Solaris 10.
6696
6697 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6698
6699         fdopendir: fix C89 compilation
6700         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
6701         compilers.
6702
6703 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         inttostr: simplify by removing unnecessary redundancy
6706         * lib/anytostr.c: Don't include verify.h.
6707         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
6708         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
6709         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
6710         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
6711         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
6712         Likewise.
6713         * modules/inttostr (Depends-on): Remove 'verify'.
6714
6715 2010-10-23  Bruno Haible  <bruno@clisp.org>
6716
6717         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
6718         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
6719         Reported by Eric Blake.
6720
6721 2010-10-23  Bruno Haible  <bruno@clisp.org>
6722
6723         Tests: Fix LOCALE_JA on MirBSD 10.
6724         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
6725         to an UTF-8 locale.
6726         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
6727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6728         Reported by Eric Blake.
6729
6730 2010-10-21  Bruno Haible  <bruno@clisp.org>
6731
6732         nl_langinfo test: Avoid test failure on NetBSD 5.
6733         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
6734         Reported by Eric Blake.
6735
6736 2010-10-21  Eric Blake  <eblake@redhat.com>
6737
6738         c-stack: work around libsigsegv 2.8 bug
6739         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
6740         overflow on at least PowerPC64.
6741
6742 2010-10-17  Bruno Haible  <bruno@clisp.org>
6743
6744         userspec: Drop redundant file.
6745         * modules/userspec (Files): Remove lib/inttostr.h.
6746
6747 2010-10-17  Bruno Haible  <bruno@clisp.org>
6748
6749         nl_langinfo tests: Silence some warnings.
6750         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
6751         Reported by Jim Meyering.
6752
6753 2010-10-17  Bruno Haible  <bruno@clisp.org>
6754
6755         Make use of GCC's attribute __alloc_size__.
6756         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
6757         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
6758         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
6759         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
6760         __alloc_size__.
6761         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
6762         Suggested by Jim Meyering.
6763
6764 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
6765
6766         bootstrap: anchor .gitignore entries.
6767         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
6768         with...
6769         (insert_vc_ignore): ... this new function, which prepends `/' to
6770         all .gitignore entries before passing them to
6771         insert_sorted_if_absent.
6772
6773 2010-10-16  Bruno Haible  <bruno@clisp.org>
6774
6775         nextafter: Fix configure check.
6776         * modules/nextafter (configure.ac): Correct expected prototype.
6777
6778 2010-10-16  Bruno Haible  <bruno@clisp.org>
6779
6780         termios: Update documentation.
6781         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
6782
6783 2010-10-16  Bruno Haible  <bruno@clisp.org>
6784
6785         tests: Make them compile with TinyCC.
6786         * tests/test-strstr.c (main): Remove parentheses around array
6787         initializer.
6788
6789 2010-10-15  Eric Blake  <eblake@redhat.com>
6790
6791         ignore-value: make header idempotent
6792         * lib/ignore-value.h: Add double-inclusion guards.
6793         Reported by Stefan Berger.
6794
6795 2010-10-15  Jim Meyering  <meyering@redhat.com>
6796
6797         GNUmakefile: handle "stable" target, not "major"
6798         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
6799         lists in maint.mk and announce-gen.  Without this, "make stable"
6800         would fail to ensure that $(VERSION) is up to date.
6801
6802 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
6803
6804         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
6805         & co.
6806
6807 2010-10-14  Bruno Haible  <bruno@clisp.org>
6808
6809         vasnprintf: Don't set errno to 0.
6810         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
6811         block that sets it to 0.
6812         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6813
6814 2010-10-14  Bruno Haible  <bruno@clisp.org>
6815
6816         socketlib: Fix.
6817         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
6818         gl_PREREQ_SYS_H_WINSOCK2.
6819         Reported by Ian Beckwith <ianb@erislabs.net>.
6820
6821 2010-10-13  Jim Meyering  <meyering@redhat.com>
6822
6823         test-select-stdin.c: avoid warn_unused_result warnings
6824         * tests/test-select-stdin.c: Include "macros.h".
6825         ASSERT that read and fflush succeed.
6826
6827 2010-10-13  Jim Meyering  <meyering@redhat.com>
6828
6829         git-version-gen: do require git-VC'd files in cwd
6830         * build-aux/git-version-gen: Reject a git version string
6831         if there are no commits associated with the current directory.
6832         This avoids an unlikely false-positive (unrelated dir whose parent
6833         repository also contains a tag matching v*), as pointed out
6834         by Giuseppe Scrivano in
6835         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
6836
6837 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6838
6839         argv-iter: omit nonconforming declaration
6840         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
6841         enum arg_iter_err declaration, which doesn't conform to C99.
6842         Solaris 10 cc warns about this.
6843
6844 2010-10-13  Eric Blake  <eblake@redhat.com>
6845
6846         termios: fix compilation on mingw
6847         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
6848         (gl_TERMIOS_H): Adjust it on mingw.
6849         * modules/termios (Makefile.am): Substitute new key.
6850         * lib/termios.in.h (includes): Make include_next conditional.
6851         * doc/posix-headers/termios.texi (termios.h): Update
6852         documentation.
6853         Reported by Daniel P. Berrange.
6854
6855 2010-10-13  Jim Meyering  <meyering@redhat.com>
6856
6857         git-version-gen: don't require that .git/ be in the current dir
6858         * build-aux/git-version-gen: Adjust this script so that it works
6859         when run from any working directory beneath the top-level .git/-
6860         containing directory.  Inspired by a patch from Giuseppe Scrivano,
6861         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
6862
6863         test-select: avoid warn_unused_result warnings
6864         * tests/test-select.c: Include "macros.h".
6865         ASSERT that each call to read, write, and pipe succeeds.
6866         While not technically required, also check each "close".
6867         * modules/select-tests (Files): Add tests/macros.h.
6868
6869         test-symlinkat: remove declaration of unused local
6870         * tests/test-symlinkat.c (main): Remove unused local, "buf".
6871
6872         test-inttostr: avoid shadowing warnings
6873         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
6874         and use malloc rather than the stack for the same reason as
6875         mentioned in the comment justifying the other allocation.
6876
6877 2010-10-11  Bruno Haible  <bruno@clisp.org>
6878
6879         stdlib: Allow multiple gnulib generated replacements to coexist.
6880         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
6881         Reported by Sam Steingold <sds@gnu.org>.
6882
6883 2010-10-11  Jim Meyering  <meyering@redhat.com>
6884
6885         fix a documentation typo
6886         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
6887
6888 2010-10-11  Eric Blake  <eblake@redhat.com>
6889
6890         futimens: work around Solaris 11 bug
6891         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
6892         * tests/test-futimens.h (test_futimens): Enhance, rather than
6893         weaken test.
6894         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6895
6896 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6897
6898         Indentation.
6899         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
6900         higher-level operators more to the left.
6901
6902 2010-10-11  Jim Meyering  <meyering@redhat.com>
6903
6904         test-futimens: avoid unwarranted test failure on Solaris 5.11
6905         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
6906         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
6907         because it tries to dereference the NULL name argument.
6908
6909 2010-10-11  Bruno Haible  <bruno@clisp.org>
6910
6911         Indentation.
6912         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
6913         indentation.
6914
6915 2010-10-11  Jim Meyering  <meyering@redhat.com>
6916
6917         spawn.in.h: make indentation consistent with parentheses
6918         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
6919         Make indentation consistent with parentheses.
6920
6921 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
6922
6923         Fix mismatched parens in previous commit
6924         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
6925         parens.
6926
6927 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
6930
6931         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
6932         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
6933         * lib/malloca.c: Include "verify.h".
6934         (verify1): Remove, replacing with a verify call.
6935         * lib/relocwrapper.c (verify1): Likewise.
6936         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
6937         Likewise.
6938         * modules/malloca (Depends-on): Add 'verify'.
6939         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
6940         * modules/vasnprintf (Depends-on): Add 'verify'.
6941         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6942         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6943         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6948
6949         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
6950
6951         Formerly the style was sometimes 2*X - 1, because the C standard
6952         was wrongly thought to disallow ?: in integral constant expressions.
6953         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
6954         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
6955         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6956         * lib/stdint.in.h (_verify_intmax_size): Likewise.
6957         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
6958         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
6959         verify that time_t cannot be floating.
6960
6961 2010-10-08  Eric Blake  <eblake@redhat.com>
6962
6963         time: enforce recent POSIX ruling that time_t is integral
6964         * lib/time.in.h (__time_t_must_be_integral): Detect any
6965         problematic systems, allowing the rest of gnulib to assume POSIX.
6966
6967 2010-10-08  Jim Meyering  <meyering@redhat.com>
6968
6969         fdopendir: fix a bug on systems lacking openat and /proc support
6970         OpenBSD 4.7 is one such system.  The most noticeable effect was
6971         failure of any application making nontrivial use of fts: rm, du,
6972         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
6973           ./rm: traversal failed: `a': Bad file descriptor
6974         Debugging that, you see that even though FD 6 was closed just
6975         prior to the opendir call in fd_clone_opendir, its resulting
6976         dir->dd_fd was 8, rather than the expected value of 6:
6977
6978         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6979         93                close (fd);
6980         (gdb) n
6981         94                dir = fd_clone_opendir (dupfd);
6982         (gdb) n
6983         95                saved_errno = errno;
6984         (gdb) p dir->dd_fd
6985         $11 = 8
6986
6987         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6988         The problem is that on OpenBSD, fd_clone_opendir has to resort
6989         to using the old-style save/restore CWD mechanism, due to its
6990         lack of openat/proc support, and *that* would steal the FD (6)
6991         that opendir was supposed to use.
6992
6993         The fix is to squirrel away the desired FD so that save_cwd uses a
6994         different one, and then free the dest FD right before calling opendir.
6995         That guarantees opendir will use the required file descriptor.
6996
6997         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6998
6999 2010-10-08  Bruno Haible  <bruno@clisp.org>
7000
7001         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7002         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7003
7004 2010-10-08  Bruno Haible  <bruno@clisp.org>
7005
7006         nanosleep: Make replacement POSIX compliant.
7007         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7008         is out of range.
7009         Reported by Jim Meyering.
7010
7011 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7012
7013         bootstrap: add hook for altering gnulib.mk, for Bison
7014         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7015         the Bison bootstrapping process can rewrite file names and variables
7016         in this file before later parts of 'bootstrap' use the file.
7017         Bison wants to include lib/gnulib.mk from the top-level makefile,
7018         so it needs the file names in this file to be relative to the top
7019         level, not relative to lib; plus it needs variable names to be
7020         rewritten.
7021         (slurp): Use the new function.
7022
7023         bootstrap: reformat for readability
7024         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7025
7026 2010-10-08  Eric Blake  <eblake@redhat.com>
7027
7028         docs: update cygwin progress
7029         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7030         1.7.7.
7031         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7032         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7033         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7034         * doc/posix-functions/carg.texi (carg): Likewise.
7035         * doc/posix-functions/cargf.texi (cargf): Likewise.
7036         * doc/posix-functions/casin.texi (casin): Likewise.
7037         * doc/posix-functions/casinf.texi (casinf): Likewise.
7038         * doc/posix-functions/casinh.texi (casinh): Likewise.
7039         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7040         * doc/posix-functions/catan.texi (catan): Likewise.
7041         * doc/posix-functions/catanf.texi (catanf): Likewise.
7042         * doc/posix-functions/catanh.texi (catanh): Likewise.
7043         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7044         * doc/posix-functions/ccos.texi (ccos): Likewise.
7045         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7046         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7047         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7048         * doc/posix-functions/cexp.texi (cexp): Likewise.
7049         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7050         * doc/posix-functions/cimag.texi (cimag): Likewise.
7051         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7052         * doc/posix-functions/clog.texi (clog): Likewise.
7053         * doc/posix-functions/clogf.texi (clogf): Likewise.
7054         * doc/posix-functions/conj.texi (conj): Likewise.
7055         * doc/posix-functions/conjf.texi (conjf): Likewise.
7056         * doc/posix-functions/cpow.texi (cpow): Likewise.
7057         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7058         * doc/posix-functions/cproj.texi (cproj): Likewise.
7059         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7060         * doc/posix-functions/creal.texi (creal): Likewise.
7061         * doc/posix-functions/crealf.texi (crealf): Likewise.
7062         * doc/posix-functions/csin.texi (csin): Likewise.
7063         * doc/posix-functions/csinf.texi (csinf): Likewise.
7064         * doc/posix-functions/csinh.texi (csinh): Likewise.
7065         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7066         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7067         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7068         * doc/posix-functions/ctan.texi (ctan): Likewise.
7069         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7070         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7071         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7072         * doc/posix-headers/complex.texi (complex.h): Likewise.
7073
7074 2010-10-07  Jim Meyering  <meyering@redhat.com>
7075
7076         parse-datetime: avoid compilation failure on OpenBSD 4.7
7077         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7078         This works around a compilation failure on OpenBSD 4.7:
7079         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7080
7081 2010-10-07  Eric Blake  <eblake@redhat.com>
7082
7083         docs: update cygwin progress
7084         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7085         1.7.6.
7086         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7087         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7088         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7089         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7090         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7091         Likewise.
7092         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7093         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7094         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7095         Likewise.
7096         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7097         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7098         Likewise.
7099         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7100         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7101         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7102         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7103         Likewise.
7104         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7105         Likewise.
7106         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7107
7108         docs: update parse-datetime history
7109         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7110         documentation of this function's history and alternatives.
7111
7112         cygwin: use more robust version check
7113         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7114         exclude an eventual cygwin 1.9.1.
7115         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7117         (gl_FUNC_STRCASESTR): Likewise.
7118         Reported by Bruno Haible.
7119
7120 2010-10-06  Bruno Haible  <bruno@clisp.org>
7121
7122         string, sys_select: Avoid #including large headers unless necessary.
7123         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7124         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7125         OSF/1, BeOS, Haiku.
7126         Reported by Jim Meyering.
7127
7128 2010-10-05  Eric Blake  <eblake@redhat.com>
7129
7130         memmem, strstr, strcasestr: fix bug with long periodic needle
7131         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7132         periodic needle having false positive.
7133         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7134         and cygwin 1.7.7.
7135         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7137         (gl_FUNC_STRCASESTR): Likewise.
7138         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7139         * tests/test-memmem.c (main): Expose the bug.
7140         * tests/test-strcasestr.c (main): Likewise.
7141         * tests/test-strstr.c (main): Likewise.
7142         * tests/test-c-strcasestr.c (main): Likewise.
7143         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7144         * doc/posix-functions/strstr.texi (strstr): Likewise.
7145         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7146         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7147
7148 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7149
7150         parse-datetime: do some more renaming
7151         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7152         parse_datetime, not get_date.  Mention the renaming.
7153         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7154         in comments.
7155         * m4/bison.m4: Likewise.
7156
7157 2010-10-05  Eric Blake  <eblake@redhat.com>
7158
7159         parse-datetime: better name than get_date
7160         * NEWS: Reword the deprecation notice.
7161         * modules/get_date: Rename to modules/parse-datetime.
7162         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7163         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7164         * lib/get_date.y: Rename to lib/parse-datetime.y.
7165         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7166         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7167         * doc/getdate.texi: Provide fallback wrapper.
7168         * lib/getdate.h: Move guts, and wrap...
7169         * lib/parse-datetime.h: ...new file.
7170         * lib/parse-datetime.y (get_date): Rename...
7171         (parse_datetime): ...to this.
7172         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7173         (gl_PARSE_DATETIME): ...to this.
7174         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7175         documentation.
7176         * modules/getdate (Files): Provide fallback docs and header.
7177         (Notice, Depends-on): Update references.
7178         * tests/test-parse-datetime.c: Likewise.
7179         * DEPENDENCIES: Likewise.
7180         * MODULES.html.sh (Date and time <time.h>): Likewise.
7181         * doc/parse-datetime.texi (Date input formats)
7182         (Authors of parse_datetime): Likewise.
7183         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7184         (Include): Likewise.
7185         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7186         * gnulib-tool: Likewise.
7187         * m4/bison.m4 (gl_BISON): Likewise.
7188         Suggested by Bruno Haible.
7189
7190 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7191
7192         more ports to Solaris tr, which needs [] around ranges
7193         * gnulib-tool: Solaris tr needs [] around ranges.
7194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7195         * tests/test-pipe-filter-gi1.c (main): Likewise.
7196         * tests/test-pipe-filter-ii1.c (main): Likewise.
7197
7198 2010-10-05  Eric Blake  <eblake@redhat.com>
7199
7200         bootstrap: fix Solaris regression
7201         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7202         around ranges.
7203         Reported by Pádraig Brady.
7204
7205         bootstrap: work with pkg-config
7206         * build-aux/bootstrap (check_versions): Also transliterate - in
7207         prerequisite name.
7208         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7209         prerequisites that were already found, to avoid confusion.
7210         Reported by Justin Clift.
7211
7212         faccessat: remove unused wrappers
7213         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7214         presence of these wrappers dragged in -lgen on Solaris.
7215         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7216
7217 2010-10-05  Jim Meyering  <meyering@redhat.com>
7218
7219         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7220         * Makefile (sc_pragma_columns): New syntax-check rule.
7221
7222 2010-10-04  Bruno Haible  <bruno@clisp.org>
7223
7224         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7225         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7226         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7227         Reported by Bruce Korb and Eric Blake.
7228
7229 2010-10-04  Bruno Haible  <bruno@clisp.org>
7230
7231         threadlib: Make option --with-libpth-prefix work.
7232         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7233         use $LIBPTH, not just -lpth.
7234
7235 2010-10-04  Bruno Haible  <bruno@clisp.org>
7236
7237         Avoid line length limitation from HP NonStop system header files.
7238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7239         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7240         * lib/ctype.in.h: Likewise.
7241         * lib/dirent.in.h: Likewise.
7242         * lib/errno.in.h: Likewise.
7243         * lib/fcntl.in.h: Likewise.
7244         * lib/float.in.h: Likewise.
7245         * lib/getopt.in.h: Likewise.
7246         * lib/iconv.in.h: Likewise.
7247         * lib/inttypes.in.h: Likewise.
7248         * lib/langinfo.in.h: Likewise.
7249         * lib/locale.in.h: Likewise.
7250         * lib/math.in.h: Likewise.
7251         * lib/netdb.in.h: Likewise.
7252         * lib/netinet_in.in.h: Likewise.
7253         * lib/poll.in.h: Likewise.
7254         * lib/pthread.in.h: Likewise.
7255         * lib/pty.in.h: Likewise.
7256         * lib/sched.in.h: Likewise.
7257         * lib/se-selinux.in.h: Likewise.
7258         * lib/search.in.h: Likewise.
7259         * lib/signal.in.h: Likewise.
7260         * lib/spawn.in.h: Likewise.
7261         * lib/stdarg.in.h: Likewise.
7262         * lib/stddef.in.h: Likewise.
7263         * lib/stdint.in.h: Likewise.
7264         * lib/stdio.in.h: Likewise.
7265         * lib/stdlib.in.h: Likewise.
7266         * lib/string.in.h: Likewise.
7267         * lib/strings.in.h: Likewise.
7268         * lib/sys_file.in.h: Likewise.
7269         * lib/sys_ioctl.in.h: Likewise.
7270         * lib/sys_select.in.h: Likewise.
7271         * lib/sys_socket.in.h: Likewise.
7272         * lib/sys_stat.in.h: Likewise.
7273         * lib/sys_time.in.h: Likewise.
7274         * lib/sys_times.in.h: Likewise.
7275         * lib/sys_utsname.in.h: Likewise.
7276         * lib/sys_wait.in.h: Likewise.
7277         * lib/sysexits.in.h: Likewise.
7278         * lib/termios.in.h: Likewise.
7279         * lib/time.in.h: Likewise.
7280         * lib/unistd.in.h: Likewise.
7281         * lib/wchar.in.h: Likewise.
7282         * lib/wctype.in.h: Likewise.
7283         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
7284         * modules/ctype (Makefile.am): Likewise.
7285         * modules/dirent (Makefile.am): Likewise.
7286         * modules/errno (Makefile.am): Likewise.
7287         * modules/fcntl-h (Makefile.am): Likewise.
7288         * modules/float (Makefile.am): Likewise.
7289         * modules/getopt-posix (Makefile.am): Likewise.
7290         * modules/iconv-h (Makefile.am): Likewise.
7291         * modules/inttypes (Makefile.am): Likewise.
7292         * modules/langinfo (Makefile.am): Likewise.
7293         * modules/locale (Makefile.am): Likewise.
7294         * modules/math (Makefile.am): Likewise.
7295         * modules/netdb (Makefile.am): Likewise.
7296         * modules/netinet_in (Makefile.am): Likewise.
7297         * modules/poll-h (Makefile.am): Likewise.
7298         * modules/pthread (Makefile.am): Likewise.
7299         * modules/pty (Makefile.am): Likewise.
7300         * modules/sched (Makefile.am): Likewise.
7301         * modules/search (Makefile.am): Likewise.
7302         * modules/selinux-h (Makefile.am): Likewise.
7303         * modules/signal (Makefile.am): Likewise.
7304         * modules/spawn (Makefile.am): Likewise.
7305         * modules/stdarg (Makefile.am): Likewise.
7306         * modules/stddef (Makefile.am): Likewise.
7307         * modules/stdint (Makefile.am): Likewise.
7308         * modules/stdio (Makefile.am): Likewise.
7309         * modules/stdlib (Makefile.am): Likewise.
7310         * modules/string (Makefile.am): Likewise.
7311         * modules/strings (Makefile.am): Likewise.
7312         * modules/sys_file (Makefile.am): Likewise.
7313         * modules/sys_ioctl (Makefile.am): Likewise.
7314         * modules/sys_select (Makefile.am): Likewise.
7315         * modules/sys_socket (Makefile.am): Likewise.
7316         * modules/sys_stat (Makefile.am): Likewise.
7317         * modules/sys_time (Makefile.am): Likewise.
7318         * modules/sys_times (Makefile.am): Likewise.
7319         * modules/sys_utsname (Makefile.am): Likewise.
7320         * modules/sys_wait (Makefile.am): Likewise.
7321         * modules/sysexits (Makefile.am): Likewise.
7322         * modules/termios (Makefile.am): Likewise.
7323         * modules/time (Makefile.am): Likewise.
7324         * modules/unistd (Makefile.am): Likewise.
7325         * modules/wchar (Makefile.am): Likewise.
7326         * modules/wctype (Makefile.am): Likewise.
7327
7328 2010-10-04  Bruno Haible  <bruno@clisp.org>
7329
7330         read-file tests: Avoid a test failure on NonStop Kernel.
7331         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
7332         a regular file.
7333         Reported by Joachim Schmitz <schmitz@hp.com>.
7334
7335 2010-10-03  Bruno Haible  <bruno@clisp.org>
7336
7337         gnulib-tool: Fixes for --create-testdir with --libtool.
7338         * gnulib-tool (func_get_automake_snippet): Don't augment
7339         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
7340         an executable.
7341         (func_create_testdir): Handle module 'alloca' like func_import.
7342         Reported by Bruce Korb <bruce.korb@gmail.com>.
7343
7344 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
7345
7346         Avoid some lines longer than 80 characters.
7347         * lib/stdint.in.h: Break long comment lines.
7348         * lib/math.in.h: Likewise.
7349         (_GL_NUM_UINT_WORDS): New macro, for readability.
7350         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
7351         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
7352         * lib/stdlib.in.h: Likewise.
7353         * lib/spawn.in.h: Likewise.
7354         * lib/sys_socket.in.h: Update an URL.
7355         * lib/sys_stat.in.h: Break long line.
7356
7357 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
7358
7359         Improve pmccabe2html.
7360         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
7361         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
7362         when the sources change. Remove the line in the HTML about "Used
7363         ranges" (which implied that there might be other unused ranges),
7364         rename "Resume" to "Summary" (easier to understand for more users).
7365         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
7366         styles, and some unnecessary blank lines.
7367
7368 2010-10-03  Bruno Haible  <bruno@clisp.org>
7369             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7370
7371         acl: Add support for ACLs on NonStop Kernel.
7372         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
7373         Check whether the function aclsort() exists.
7374         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
7375         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
7376         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7377         (acl_nontrivial [HAVE_ACLSORT]: New function.
7378         (file_has_acl): Implement for NonStop Kernel.
7379         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7380         (qset_acl): Implement for NonStop Kernel.
7381         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
7382         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
7383         (main): Implement for NonStop Kernel.
7384         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
7385         Kernel. Handle this flavor.
7386         * tests/test-set-mode-acl.sh: Likewise.
7387         * tests/test-copy-acl.sh: Likewise.
7388         * tests/test-copy-file.sh: Likewise.
7389
7390 2010-10-03  Bruno Haible  <bruno@clisp.org>
7391
7392         Info about ACLs on NonStop Kernel.
7393         * doc/acl-resources.txt: Add info about NonStop Kernel.
7394         References by Joachim Schmitz <schmitz@hp.com>.
7395
7396 2010-10-02  Bruno Haible  <bruno@clisp.org>
7397
7398         Define missing EDQUOT on NonStop Kernel.
7399         * lib/errno.in.h (EDQUOT): Assign a value if missing.
7400         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
7401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
7402         missing.
7403         * doc/posix-headers/errno.texi: Mention the NSK bug.
7404         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
7405         Reported by Joachim Schmitz <schmitz@hp.com>.
7406
7407 2010-10-02  Bruno Haible  <bruno@clisp.org>
7408
7409         Update doc for POSIX:2008.
7410         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
7411         Update URL of POSIX specification.
7412
7413 2010-10-02  Bruno Haible  <bruno@clisp.org>
7414
7415         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
7416         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
7417         from gnulib, not from Automake.
7418
7419 2010-10-02  Bruno Haible  <bruno@clisp.org>
7420
7421         New module 'system-posix'.
7422         * modules/system-posix: New file.
7423         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
7424         module is present.
7425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
7426         GNULIB_SYSTEM_POSIX.
7427         * modules/stdlib (Depends-on): Remove sys_wait.
7428         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
7429         * doc/posix-functions/system.texi: Mention the new module.
7430         * doc/posix-headers/stdlib.texi: Likewise.
7431         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
7432         define test_sys_wait_macros to a no-op.
7433         Reported by Sam Steingold <sds@gnu.org>.
7434
7435 2010-09-30  Bruno Haible  <bruno@clisp.org>
7436
7437         More renaming from 'getdate' to 'get_date'.
7438         * doc/get_date.texi: Renamed from doc/getdate.texi.
7439         * modules/get_date (Files): Update.
7440         * MODULES.html.sh (Date and time <time.h>): Update.
7441         * DEPENDENCIES: Update.
7442         * gnulib-tool: Update comment.
7443         * m4/bison.m4 (gl_BISON): Likewise.
7444         * m4/get_date.m4 (gl_GET_DATE): Likewise.
7445
7446 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
7447
7448         bootstrap: support ACLOCAL_FLAGS during aclocal
7449         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
7450         can add additional -I dir for third-party .m4 files.
7451
7452 2010-09-30  Eric Blake  <eblake@redhat.com>
7453
7454         bootstrap: use glibtoolize on MacOS
7455         * build-aux/bootstrap (check_versions): Convert libtool into
7456         libtoolize.
7457         (tool search): Move libtool check earlier, and look for
7458         glibtoolize for MacOS.
7459         (gnulib_tool_options): Auto-add --libtool when appropriate.
7460         Reported by Justin Clift.
7461
7462         poll: fix typo that broke test on MacOS
7463         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
7464         Reported by Justin Clift.
7465
7466         getdate: rename to get_date
7467         Note: getdate.h is not renamed, to minimize client impact.
7468         * modules/getdate: Mark obsolete.  Move old contents...
7469         * modules/get_date: ...to new module name.
7470         * modules/getdate-tests: Move...
7471         * modules/get_date-tests: ...here.
7472         * m4/getdate.m4: Move...
7473         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
7474         * lib/getdate.y: Move...
7475         * lib/get_date.y: ...here.
7476         * tests/test-getdate.c: Move...
7477         * tests/test-get_date.c: ...here.
7478         * doc/posix-functions/getdate.texi (getdate): Update name.
7479         * NEWS: Mention the change.
7480
7481 2010-09-29  Bruno Haible  <bruno@clisp.org>
7482
7483         Separate the module 'waitpid' from the module 'sys_wait'.
7484         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
7485         present.
7486         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
7487         gl_MODULE_INDICATOR_FOR_TESTS.
7488         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
7489         * modules/sys_wait (Depends-on): Remove waitpid.
7490         (Makefile.am): Substitute GNULIB_WAITPID.
7491         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
7492         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
7493         signature only if the 'waitpid' module is present.
7494         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
7495         * NEWS: Mention the change.
7496         * modules/grantpt (Depends-on): Add waitpid.
7497         * modules/wait-process (Depends-on): Likewise.
7498
7499 2010-09-29  Bruno Haible  <bruno@clisp.org>
7500
7501         More tests for module 'sys_wait'.
7502         * modules/sys_wait-c++-tests: New file.
7503         * tests/test-sys_wait-c++.cc: New file.
7504         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
7505         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7506
7507 2010-09-29  Bruno Haible  <bruno@clisp.org>
7508
7509         New module 'waitpid'.
7510         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
7511         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
7512         Don't include <process.h>.
7513         (waitpid): Declare only, using modern idiom.
7514         * m4/waitpid.m4: New file.
7515         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
7516         * modules/waitpid: New file.
7517         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
7518         (Makefile.am): Update.
7519         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7520
7521 2010-09-28  Bruno Haible  <bruno@clisp.org>
7522
7523         poll: Assume ANSI C.
7524         * lib/poll.c (poll): Use an ANSI C declaration.
7525
7526 2010-09-28  Bruno Haible  <bruno@clisp.org>
7527
7528         poll-h: Create poll.h on all platforms.
7529         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
7530         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
7531         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
7532         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
7533         (gl_REPLACE_POLL_H): Don't set POLL_H.
7534         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
7535         * modules/poll-h (Depends-on): Add include_next.
7536         (Makefile.am): Create poll.h unconditionally. Substitute also
7537         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
7538
7539 2010-09-28  Bruno Haible  <bruno@clisp.org>
7540
7541         Tests for module 'poll-h'.
7542         * modules/poll-h-c++-tests: New file.
7543         * tests/test-poll-h-c++.cc: New file.
7544
7545         Tests for module 'poll-h'.
7546         * modules/poll-h-tests: New file.
7547         * tests/test-poll-h.c: New file.
7548
7549 2010-09-28  Bruno Haible  <bruno@clisp.org>
7550
7551         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
7552         * modules/poll-h (Depends-on): Add 'extensions'.
7553
7554 2010-09-28  Bruno Haible  <bruno@clisp.org>
7555
7556         New module 'poll-h'.
7557         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
7558         (poll): Use modern idiom.
7559         * modules/poll-h: New file.
7560         * modules/poll (Files): Remove lib/poll.in.h.
7561         (Depends-on): Add poll-h.
7562         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
7563         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
7564         * m4/poll_h.m4: New file.
7565         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
7566         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
7567         and invoke gl_REPLACE_POLL_H.
7568         * lib/poll.c: Use common idiom.
7569         * tests/test-poll.c: Likewise.
7570         * doc/posix-headers/poll.texi: Mention the poll-h module.
7571         Suggested by Eric Blake.
7572
7573 2010-09-26  Bruno Haible  <bruno@clisp.org>
7574
7575         sys_wait: Implement WSTOPSIG.
7576         * lib/sys_wait.in.h (WSTOPSIG): New macro.
7577         Reported by Simon Josefsson.
7578
7579 2010-09-26  Simon Josefsson  <simon@josefsson.org>
7580
7581         stdlib, sys_wait: Avoid compilation error on mingw.
7582         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
7583
7584 2010-09-26  Bruno Haible  <bruno@clisp.org>
7585
7586         stdlib tests: Avoid code duplication.
7587         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
7588         * modules/sys_wait-tests (Files): Likewise.
7589         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
7590         * tests/test-stdlib.c: Include test-sys_wait.h.
7591         (main): Invoke test_sys_wait_macros.
7592         * tests/test-sys_wait.c: Include test-sys_wait.h.
7593         (main): Invoke test_sys_wait_macros.
7594
7595 2010-09-25  Simon Josefsson  <simon@josefsson.org>
7596
7597         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
7598         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
7599         sure Windows sockets are working before calling getaddrinfo.
7600         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
7601         * doc/gnulib.texi (Windows sockets): Fix typo.
7602
7603 2010-09-25  Bruno Haible  <bruno@clisp.org>
7604
7605         Tests for module 'regex-quote'.
7606         * modules/regex-quote-tests: New file.
7607         * tests/test-regex-quote.c: New file.
7608
7609         New module 'regex-quote'.
7610         * lib/regex-quote.h: New file.
7611         * lib/regex-quote.c: New file.
7612         * modules/regex-quote: New file.
7613         Suggested by Reuben Thomas <rrt@sc3d.org>.
7614
7615 2010-09-24  Bruno Haible  <bruno@clisp.org>
7616
7617         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
7618         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
7619
7620 2010-09-23  Bruno Haible  <bruno@clisp.org>
7621
7622         setenv: Relax license.
7623         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
7624         Blake.
7625         Requested by Eric Blake.
7626
7627 2010-09-22  Bruno Haible  <bruno@clisp.org>
7628
7629         termios: Relax license.
7630         * modules/termios (License): Change to LGPLv2+.
7631         Requested by Eric Blake.
7632
7633 2010-09-22  Bruno Haible  <bruno@clisp.org>
7634
7635         threadlib: Allow the package to change the default to 'no'.
7636         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
7637         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
7638         Reported by Paul Eggert.
7639
7640 2010-09-22  Pádraig Brady  <P@draigbrady.com>
7641             Bruno Haible  <bruno@clisp.org>
7642
7643         Fix endless loop in mbmemcasecoll.
7644         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
7645         byte.
7646         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
7647
7648 2010-09-22  Bruno Haible  <bruno@clisp.org>
7649
7650         Tests for module 'memcoll'.
7651         * modules/memcoll-tests: New file.
7652         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
7653
7654         memcoll, xmemcoll: Clarify size vs. length.
7655         * modules/memcoll.c (memcoll0): Clarify specification.
7656         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
7657         passed to collate_error.
7658
7659 2010-09-22  Bruno Haible  <bruno@clisp.org>
7660
7661         Tests for module 'memcasecmp'.
7662         * modules/memcasecmp-tests: New file.
7663         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
7664
7665 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7666
7667         * lib/pthread.in.h: Add split double-inclusion guard, and include
7668         system <pthread.h> if there is one.  Use @@-style as in other
7669         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
7670         pthread.h doesn't.
7671         (pthread_mutexattr_destroy, pthread_mutexattr_init):
7672         (pthread_mutexattr_settype, pthread_mutex_trylock):
7673         New static inline functions, if there's no system <pthread.h>.
7674         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
7675         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
7676         Approximate with mutexes if the system lacks spinlocks, as in
7677         MacOS.
7678         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
7679         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
7680         @@-style.  Check for spinlocks separately.
7681         (gl_PTHREAD_DEFAULTS): New macro.
7682         * modules/pthread: Redo to use a more typical style for in.h files.
7683
7684 2010-09-21  Eric Blake  <eblake@redhat.com>
7685
7686         net_if: enhance tests
7687         * tests/test-net_if.c (main): Move signature checks earlier.
7688         Print failures to stderr.
7689         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
7690         Document the bug that we do not yet fix.
7691
7692 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7693
7694         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
7695         about gnulib, not GSS.
7696
7697 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
7698
7699         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
7700         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
7701         for Emacs.
7702         * build-aux/pmccabe2html: Make Makefile.am example code more
7703         cut-and-paste friendly.
7704
7705 2010-09-21  Simon Josefsson  <simon@josefsson.org>
7706
7707         * tests/test-net_if.c: New file.
7708         * modules/net_if-tests: New file.
7709
7710 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
7711
7712         pthread: add pthread_spin_destroy
7713         * lib/pthread.in.h (pthread_spin_destroy): New function.
7714
7715 2010-09-19  Bruno Haible  <bruno@clisp.org>
7716
7717         gnulib-tool: Fix --help output.
7718         * gnulib-tool (func_usage): Fix help message.
7719         Reported by Reuben Thomas <rrt@sc3d.org>.
7720
7721 2010-09-18  Jim Meyering  <meyering@redhat.com>
7722
7723         maint.mk: avoid unexpanded \n in two diagnostics
7724         * top/maint.mk (sc_prohibit_always_true_header_tests):
7725         Don't use a literal \n in a halt=... assignment.  It would not be
7726         expanded, and the two \n bytes would appear in the diagnostic output
7727         rather than the desired newline.  Use halt=$$(printf ... instead.
7728         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7729
7730 2010-09-18  Bruno Haible  <bruno@clisp.org>
7731
7732         netinet_in: Doc tweak.
7733         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
7734         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7735
7736 2010-09-18  Jim Meyering  <meyering@redhat.com>
7737
7738         init.sh: correct an outdated comment
7739         * tests/init.sh (create_exe_shims_):  s/function/alias/
7740
7741         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
7742         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
7743         a file named "*.exe" is removed between the glob expansion and the
7744         processing of that oddly named file.
7745
7746 2010-09-17  Eric Blake  <eblake@redhat.com>
7747
7748         mirbsd: add some more support
7749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
7750         in BSD family.
7751         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
7752         devices as OpenBSD.
7753         * m4/host-os.m4 (mirbsd): Add MirBSD.
7754
7755         tests: fix unportable assumption on sys/wait.h
7756         * tests/test-sys_wait.c (main): Relax test.
7757         * tests/test-stdlib.c (main): Likewise.
7758
7759         init.sh: accomodate directory with no .exes
7760         * tests/init.sh: Accomodate directory containing only scripts.
7761
7762         tests: avoid compiler warning
7763         * tests/test-stdlib.c (main): Use the variable.
7764
7765         fdutimens, fdutimensat: update signature, again
7766         * lib/utimens.h (gl_futimens): Delete, and move signature...
7767         (fdutimens): ...here.
7768         (fdutimensat): Rearrange signature.
7769         (lutimensat): Rename variable for clarity.
7770         * lib/fdutimensat.c (fdutimensat): Update signature.
7771         * lib/utimens.c (fdutimens): Likewise.
7772         (gl_futimens): Delete.
7773         (utimens, lutimens): Update callers.
7774         * lib/futimens.c (futimens): Likewise.
7775         * tests/test-fdutimensat.c: Likewise.
7776         * tests/test-utimens.c: Likewise.
7777         * tests/test-futimens.h: Update comment.
7778         * NEWS: Mention this.
7779         Suggested by Paul Eggert.
7780
7781 2010-09-17  Bruno Haible  <bruno@clisp.org>
7782
7783         Take over the maintenance of some older macros from Autoconf.
7784         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
7785         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
7786         GNU Autoconf.
7787         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
7788         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
7789
7790 2010-09-17  Eric Blake  <eblake@redhat.com>
7791
7792         fdutimensat: drop atflag validation
7793         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
7794         with valid fd, to close a race scenario where futimens is
7795         unsupported and FILE was replaced by a symlink.
7796         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
7797         accordingly.
7798         Suggested by Paul Eggert.
7799
7800 2010-09-16  Bruno Haible  <bruno@clisp.org>
7801
7802         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
7803         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
7804
7805 2010-09-16  Bruno Haible  <bruno@clisp.org>
7806
7807         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
7808         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
7809         login_tty exists.
7810         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7811
7812 2010-09-16  Bruno Haible  <bruno@clisp.org>
7813
7814         login_tty: Make the replacement code work on BSD systems.
7815         * lib/login_tty.c: Include <sys/ioctl.h>.
7816         (login_tty): Use ioctl TIOCSCTTY when available.
7817         * modules/login_tty (Depends-on): Add sys_ioctl.
7818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7819
7820 2010-09-16  Bruno Haible  <bruno@clisp.org>
7821
7822         login_tty: Stricter unit test.
7823         * modules/login_tty-tests (Depends-on): Add tcgetsid.
7824         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
7825         and tcgetsid() after login_tty.
7826         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7827
7828 2010-09-16  Bruno Haible  <bruno@clisp.org>
7829
7830         New module 'tcgetsid'.
7831         * lib/tcgetsid.c: New file.
7832         * m4/tcgetsid.m4: New file.
7833         * modules/tcgetsid: New file.
7834         * modules/termios (Depends-on): Add c++defs, warn-on-use.
7835         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
7836         GNULIB_TCGETSID, HAVE_TCGETSID.
7837         * lib/termios.in.h: Include <sys/types.h>.
7838         (tcgetsid): New declaration.
7839         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
7840         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
7841         * doc/posix-functions/tcgetsid.texi: Mention the new module.
7842         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
7843
7844 2010-09-16  Bruno Haible  <bruno@clisp.org>
7845
7846         Tests for module 'termios'.
7847         * modules/termios-c++-tests: New file.
7848         * modules/termios-tests: New file.
7849         * tests/test-termios-c++.cc: New file.
7850         * tests/test-termios.c: New file.
7851
7852         New module 'termios'.
7853         * modules/termios: New file.
7854         * lib/termios.in.h: New file.
7855         * m4/termios_h.m4: New file.
7856         * doc/posix-headers/termios.texi: Mention the new module.
7857
7858 2010-09-16  Eric Blake  <eblake@redhat.com>
7859
7860         fdutimensat: add an atflag parameter
7861         * lib/fdutimensat.c (fdutimensat): Add new parameter.
7862         * lib/utimens.h (fdutimensat): Update prototype.
7863         * tests/test-fdutimensat.c: Adjust test to match.
7864         * NEWS: Document the change.
7865         Suggested by Paul Eggert.
7866
7867 2010-09-16  Bruno Haible  <bruno@clisp.org>
7868
7869         Fix typos in comments.
7870         * lib/striconveh.h: Fix typo in comment.
7871         * lib/login_tty.c (login_tty): Likewise.
7872
7873 2010-09-15  Bruno Haible  <bruno@clisp.org>
7874
7875         stdlib: clarify MirBSD WEXITSTATUS bug
7876         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
7877         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7878
7879 2010-09-15  Eric Blake  <eblake@redhat.com>
7880
7881         stdlib: work around MirBSD WEXITSTATUS bug
7882         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
7883         * modules/stdlib (Depends-on): Add sys_wait.
7884         * tests/test-sys_wait.c (main): Enhance test.
7885         * tests/test-stdlib.c (main): Likewise.
7886         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
7887
7888         docs: mention MacOS issue with WEXITSTATUS(constant)
7889         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
7890         issue.
7891         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7892
7893         strnlen: add tests
7894         * modules/strnlen-tests: New file.
7895         * tests/test-strnlen.c: Likewise.
7896
7897 2010-09-14  Bruno Haible  <bruno@clisp.org>
7898
7899         unistr/base: Avoid link errors when module 'libunistring' is also used.
7900         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
7901         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
7902         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
7903         Declare also when HAVE_LIBUNISTRING is set.
7904         Reported by Pádraig Brady <P@draigbrady.com>.
7905
7906 2010-09-14  Eric Blake  <eblake@redhat.com>
7907
7908         test-rawmemchr: make more robust
7909         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
7910         (Depends-on, configure.ac): Add needed prerequisites to use it.
7911         * modules/memchr-tests (Files, Depends-on, configure.ac):
7912         Likewise, to avoid implicit reliance on memchr module prereqs.
7913         * tests/test-memchr.c (main): Ensure proper masking.
7914         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
7915         reads.
7916
7917         memchr: detect glibc Alpha bug
7918         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
7919         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
7920         Alpha.
7921         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
7922         * tests/test-memchr.c (main): Enhance test.
7923         Reported by Nelson H. F. Beebe.
7924
7925 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         fts, getcwd, glob: audit for dirfd returning -1
7928         * lib/fts.c (opendir): Remove #define; no longer used.
7929         (opendirat): New arg PDIR_FD.  All callers changed.
7930         (fts_build, _opendir2): Use new opendirat to avoid the need for
7931         dirfd, or for checking whether dirfd returns a negative value.
7932         Don't use opendir; always use openat followed by fdopendir.
7933         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
7934         it.
7935         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
7936         returns -1 here.
7937         * modules/fts (Depends-on): Remove dirfd.
7938         * modules/getcwd (Depends-on): Likewise.
7939
7940 2010-09-13  Eric Blake  <eblake@redhat.com>
7941
7942         float: fix broken MirBSD header
7943         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
7944         * doc/posix-headers/float.texi (float.h): Document it.
7945
7946 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         fts: use O_NOFOLLOW to avoid race condition when opening a directory
7949         * lib/fts.c (opendirat): New arg extra_flags.
7950         (__opendir2): Use it to avoid following symlinks when opening
7951         a directory, if symlinks are not supposed to be followed.  See
7952         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
7953
7954         fdopendir: preserve argument fd before returning
7955         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
7956         (fdopendir_with_dup, fd_clone_opendir): New static functions.
7957         (fdopendir): Use them, arranging for FD to be open to the same
7958         directory that it was when it started.  (It might be temporarily
7959         closed while fdopendir is running, so this not thread- or
7960         signal-safe.)  Be careful to do the right thing even when file
7961         descriptors are scarce and dup fails with errno == EMFILE.  See
7962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
7963
7964 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
7965
7966         regex: Pass the system regex if its only problem is 32-bit regoff_t.
7967         * NEWS: Document change.
7968         * m4/regex.m4: Disable test for regoff_t size.
7969
7970 2010-09-13  Jim Meyering  <meyering@redhat.com>
7971
7972         fts: don't operate on an invalid file descriptor after failed dup
7973         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7974         negative file descriptor.
7975
7976 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7977
7978         savedir: add streamsavedir, deprecate fdsavedir
7979         * NEWS: Mention deprecation of fdsavedir.
7980         * lib/savedir.c (streamsavedir): New extern function, whose name
7981         ends in "savedir" to be consistent with the others.  This differs
7982         from savedirstream in that it doesn't close its argument.  The
7983         next version of GNU tar will use this instead of fdsavedir, to
7984         avoid some race conditions and conserve file descriptors.
7985         (savedirstream): Reimplement as a wrapper around streamsavedir.
7986         (fdsavedir): Add a comment deprecating this function.  As far as
7987         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7988         * lib/savedir.h (streamsavedir): New decl.
7989         (fdsavedir): Add a comment deprecating this.
7990
7991 2010-09-10  Bruno Haible  <bruno@clisp.org>
7992
7993         langinfo: Fix last commit.
7994         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7995         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7997
7998 2010-09-10  Bruno Haible  <bruno@clisp.org>
7999
8000         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8001         * lib/progreloc.c (O_EXEC): Define fallback.
8002
8003 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8004
8005         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8006         * NEWS: Document recent changes to fcntl-h.
8007         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8008         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8009         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8010         Similarly for O_SEARCH; this last was already true, but not documented.
8011         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8012         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8013         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8014         Likewise.
8015         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8016         is zero, not whether it is defined.
8017         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8018         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8019         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8020
8021 2010-09-10  Bruno Haible  <bruno@clisp.org>
8022
8023         langinfo, nl_langinfo: Fix for IRIX 5.3.
8024         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8025         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8026         HAVE_LANGINFO_YESEXPR.
8027         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8028         HAVE_LANGINFO_YESEXPR.
8029         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8030         HAVE_LANGINFO_T_FMT_AMPM is 0.
8031         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8032         HAVE_LANGINFO_YESEXPR is 0.
8033         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8034         NOEXPR.
8035         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8036         * doc/posix-functions/nl_langinfo.texi: Likewise.
8037         Reported by Eric Blake.
8038
8039 2010-09-10  Bruno Haible  <bruno@clisp.org>
8040
8041         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8042         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8043         on FreeBSD 8.0 and OpenBSD 4.6.
8044         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8045         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8046         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8047         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8048         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8049         ac_includes_default.
8050         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8051
8052 2010-09-09  Eric Blake  <eblake@redhat.com>
8053
8054         strsignal: work around NetBSD bug
8055         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8056         * lib/string.in.h (includes): Likewise.
8057         * doc/posix-functions/strsignal.texi (strsignal): Document the
8058         bug.
8059         Reported by Nelson H. F. Beebe.
8060
8061         gnulib-tool: work with NetBSD /bin/sh
8062         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8063         (func_get_description, func_get_comment, func_get_status)
8064         (func_get_notice, func_get_applicability, func_get_filelist)
8065         (func_get_dependencies, func_get_autoconf_early_snippet)
8066         (func_get_autoconf_snippet, func_get_automake_snippet)
8067         (func_get_include_directive, func_get_link_directive)
8068         (func_get_license, func_get_maintainer, func_import): Avoid
8069         shell syntax errors from parsing syntax extensions.
8070
8071 2010-09-09  Bruno Haible  <bruno@clisp.org>
8072
8073         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8074         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8075         a reliable way to determine whether the 'alias' command works.
8076
8077 2010-09-08  Jim Meyering  <meyering@redhat.com>
8078
8079         init.sh: penalize a set-x-impaired shell; don't disqualify it
8080         * tests/init.sh: Too many shells corrupt application stderr when
8081         you set -x, so we can't afford to disqualify them, since at least
8082         on Irix-6.5, that would disqualify all bourne shells.
8083         Instead, use a two-pass approach.
8084         On the first pass, try to find a shell that meets the stricter
8085         condition that set -x does not corrupt stderr.
8086         If no shell meets the stricter condition, retest each candidate
8087         shell, but without that extra condition.  Finally, when
8088         VERBOSE=yes is requested and set -x might cause trouble, simply
8089         issue a warning and refrain from enabling debug output.
8090
8091 2010-09-08  Eric Blake  <eblake@redhat.com>
8092
8093         unsetenv: fix OpenBSD bug
8094         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8095         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8096         documentation.
8097         Reported by Jim Meyering.
8098
8099         strtod: work around IRIX 6.5 bug
8100         * lib/strtod.c (strtod): Reparse number on shorter string if
8101         exponent parse was invalid.
8102         * tests/test-strtod.c (main): Add check for "0x1p 2".
8103         Reported by Tom G. Christensen.
8104
8105         getopt: optimize previous patch
8106         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8107         empty variable.  Speed up awk script.
8108         Reported by Paolo Bonzini.
8109
8110 2010-09-08  Jim Meyering  <meyering@redhat.com>
8111
8112         test.sh: disqualify shells for which set -x corrupts stderr
8113         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8114         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8115         appear in stderr output.  For example, this command:
8116             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8117         prints "P=1" on those two systems:
8118
8119 2010-09-08  Bruno Haible  <bruno@clisp.org>
8120
8121         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8122         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8123         commands, because some shells ignore redirections when there is an
8124         error in the command lookup.
8125         Reported by Eric Blake.
8126
8127 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8128
8129         * lib/regex.h: Fix a mention of `regex_compile' (should be
8130         `re_compile_pattern').
8131         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8132         (re_set_registers): Correct name of parameter in comment.
8133
8134         * doc/regex.texi: Add documentation for missing syntax flags.
8135         Remove commented-out documentation of defunct syntax option
8136         RE_NO_EMPTY_ALTS.
8137         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8138         Add documentation of re_set_registers.
8139         Document trick to re-use a pattern buffer by setting fastmap manually.
8140         Update documentation of struct re_pattern_buffer per public members.
8141         Uncomment documentation of equivalence class operators and
8142         collating symbol operators, since they are now implemented,
8143         Explain leftmost-longest matching in relation to alternatives.
8144         Tidy documentation of substring matching.
8145         Remove POSIX documentation, which is done better in
8146         glibc, and refer the reader there. Keep BSD API documentation, as
8147         that is not readily available elsewhere.
8148
8149 2010-09-07  Eric Blake  <eblake@redhat.com>
8150
8151         getopt: handle POSIXLY_CORRECT set but not exported
8152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8153         export state of POSIXLY_CORRECT, due to bash set -o posix.
8154         Reported by Dustin J. Mitchell.
8155
8156 2010-09-05  Bruno Haible  <bruno@clisp.org>
8157
8158         gnulib-tool: Highlight the changed options.
8159         * gnulib-tool (func_usage): Display the --import, --add-import,
8160         --remove-import explanations in bold font.
8161
8162 2010-09-06  Karl Berry  <karl@gnu.org>
8163
8164         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8165
8166 2010-09-05  Bruno Haible  <bruno@clisp.org>
8167
8168         uniwidth/width: Update comment.
8169         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8170         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8171
8172 2010-09-05  Bruno Haible  <bruno@clisp.org>
8173
8174         isinf, isnan: Relax license.
8175         * modules/isinf (License): Change from GPL to LGPL, with consent from
8176         Ben Pfaff.
8177         * modules/isnan (License): Likewise.
8178         Requested by Ludovic Courtès.
8179
8180 2010-09-04  Bruno Haible  <bruno@clisp.org>
8181
8182         gnulib-tool: Help migration from --import to --add-import or --update.
8183         * gnulib-tool: Emit a verbose error message when --import is used
8184         without any module name.
8185
8186 2010-09-04  Bruno Haible  <bruno@clisp.org>
8187
8188         Update doc about gnulib-tool.
8189         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8190         'gnulib-tool --update' in more detail.
8191         Reported by Eric Blake.
8192
8193 2010-09-04  Bruno Haible  <bruno@clisp.org>
8194
8195         gnulib-tool: Change --import. New options --add/remove-import.
8196         * gnulib-tool: New options --add-import, --remove-import.
8197         (func_usage): Document them.
8198         (have_associative): Define always.
8199         (func_import): In import mode, don't merge the specified settings with
8200         the cached settings. Implement remove-import mode.
8201         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8202         Explain when to use them versus --import.
8203         (Simple update): Use --add-import instead of --import.
8204         * NEWS: Mention the change.
8205
8206 2010-09-04  Bruno Haible  <bruno@clisp.org>
8207
8208         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8209         separate gnulib.mk.
8210
8211 2010-09-04  Bruno Haible  <bruno@clisp.org>
8212
8213         gnulib-tool: Don't talk about CVS any more.
8214         * gnulib-tool (func_usage, func_import): Write "version control"
8215         instead of CVS.
8216
8217 2010-09-04  Jim Meyering  <meyering@redhat.com>
8218
8219         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8220         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8221         false positives (whose names may be ill-chosen) when searching
8222         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8223         would cause a false-positive.
8224
8225         avoid coreutils "make distcheck" failure
8226         Coreutils tests with an absolute build directory name that contains
8227         a space.  Not quoting this directory name caused a failure.
8228         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8229         * tests/test-vc-list-files-cvs.sh: Likewise.
8230
8231 2010-09-04  Bruno Haible  <bruno@clisp.org>
8232
8233         gnulib-tool: Avoid error when run in a package without Makefile.am.
8234         * gnulib-tool: When collecting the m4dirs in a package that does not
8235         have a Makefile.am, eliminate those directories that contain no
8236         gnulib-cache.m4. Fix expression that counts these directories.
8237
8238 2010-09-04  Bruno Haible  <bruno@clisp.org>
8239
8240         update-copyright test: Improve output when perl is missing or too old.
8241         * tests/test-update-copyright.sh: Move test of Perl version down after
8242         the test whether Perl exists. Provide an explanation relating Perl's
8243         error message to Automake's SKIP: message.
8244
8245 2010-09-04  Bruno Haible  <bruno@clisp.org>
8246
8247         Don't augment PATH in TESTS_ENVIRONMENT.
8248         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
8249         set abs_aux_dir instead of augmenting PATH.
8250         * modules/vc-list-files-tests (Makefile.am): Likewise.
8251         * tests/test-update-copyright.sh: Augment PATH here.
8252         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
8253         path_prepend_.
8254         * tests/test-vc-list-files-git.sh: Likewise.
8255
8256 2010-09-04  Jim Meyering  <meyering@redhat.com>
8257
8258         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
8259         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
8260
8261 2010-09-04  Bruno Haible  <bruno@clisp.org>
8262
8263         strdup: Fix compilation error in C++ mode.
8264         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
8265         the macro.
8266
8267 2010-09-04  Bruno Haible  <bruno@clisp.org>
8268
8269         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
8270         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
8271         macro into a function.
8272         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8273
8274 2010-09-04  Bruno Haible  <bruno@clisp.org>
8275
8276         Set PATH_SEPARATOR the same way autoconf does.
8277         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
8278         the value of PATH_SEPARATOR the same way autoconf-generated configure
8279         scripts do.
8280         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
8281         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8282
8283 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8284
8285         Set PATH_SEPARATOR the same way autoconf does.
8286         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
8287         the same way autoconf-generated configure scripts do.
8288         * posix-modules: Likewise.
8289
8290 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         hash: fix safe_hasher const typo
8293         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
8294         const; otherwise, there is a type error later.
8295
8296 2010-09-02  Jim Meyering  <meyering@redhat.com>
8297
8298         test-update-copyright.sh: require perl 5.8.0
8299         * tests/test-update-copyright.sh: Require 5.8.0,
8300         which Tom G. Christensen has confirmed is adequate,
8301         while 5.6.1 is not.
8302
8303 2010-09-02  Eric Blake  <eblake@redhat.com>
8304
8305         tests: init.sh improvements for re-exec'ing with zsh
8306         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
8307         -vx through shell re-exec.
8308         Reported by Tom G. Christensen.
8309
8310         wctype: fix typo in previous commit
8311         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
8312         Reported by Ludovic Courtès.
8313
8314 2010-09-02  Jim Meyering  <meyering@redhat.com>
8315
8316         test-update-copyright.sh: skip test if Perl is too old
8317         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
8318         Reported by Tom G. Christensen.
8319
8320 2010-09-02  Bruno Haible  <bruno@clisp.org>
8321
8322         wctype: Avoid compilation error on IRIX 6.5.30.
8323         * lib/wctype.in.h (iswblank): Declare with a replacement if
8324         REPLACE_ISWBLANK is set.
8325         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
8326         declared. Set REPLACE_ISWBLANK.
8327         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
8328         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
8329         * doc/posix-headers/wctype.texi: Likewise.
8330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8331
8332 2010-09-01  Bruno Haible  <bruno@clisp.org>
8333
8334         New module 'socketlib'.
8335         * modules/socketlib: New file.
8336         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
8337         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
8338         * modules/sockets (Depends-on): Add socketlib.
8339         Suggested by Sam Steingold <sds@gnu.org>.
8340
8341 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8342
8343         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
8344
8345         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
8346         when one needs search access to a directory but not read access.
8347         On systems where it is available, it works in some cases where
8348         O_RDONLY does not, namely on directories that are searchable but
8349         not readable, and which need only to be searchable.  If O_SEARCH
8350         is not available, fall back to the traditional method of using
8351         O_RDONLY.
8352
8353         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
8354         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
8355         when opening a directory that needs only to be searchable.
8356         * lib/chdir-safer.c (chdir_no_follow): Likewise.
8357         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
8358         * lib/openat-proc.c (openat_proc_name): Likewise.
8359         * lib/openat.c (openat_needs_fchdir): Likewise.
8360         * lib/save-cwd.c (save_cwd): Likewise.
8361         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
8362
8363 2010-08-28  Bruno Haible  <bruno@clisp.org>
8364
8365         New module 'host-cpu-c-abi'.
8366         * modules/host-cpu-c-abi: New file.
8367         * m4/host-cpu-c-abi.m4: New file, based on part of
8368         clisp/src/m4/general.m4.
8369         Requested by Sam Steingold <sds@gnu.org>.
8370
8371 2010-08-31  Eric Blake  <eblake@redhat.com>
8372         and Jim Meyering  <meyering@redhat.com>
8373
8374         hash: factor, and guard against misbehaving hasher function
8375         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
8376         of table->hasher's return value.  Also protect against a hash value
8377         so large that adding it to table->bucket results in a NULL pointer.
8378         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
8379         Use it in place of open-coded check-and-abort.
8380
8381 2010-08-30  Bruno Haible  <bruno@clisp.org>
8382
8383         hash: silence spurious clang warning
8384         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
8385         Reported by Eric Blake.
8386
8387 2010-08-30  Eric Blake  <eblake@redhat.com>
8388
8389         strstr, memmem, strcasestr: avoid leaked shell message
8390         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
8391         FreeBSD.
8392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8394
8395         tests: silence clang warning
8396         * tests/test-malloca.c (do_allocation): Avoid dead store.
8397
8398 2010-08-29  Bruno Haible  <bruno@clisp.org>
8399
8400         gettext: Fix recent mistake.
8401         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
8402
8403 2010-08-29  Bruno Haible  <bruno@clisp.org>
8404
8405         selinux-h: Offer a --without-selinux option.
8406         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
8407         --without-selinux was specified, skip all tests and define
8408         HAVE_SELINUX_SELINUX_H to 0.
8409         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
8410         set LIB_SELINUX to empty.
8411         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
8412         gl_LIBSELINUX. If --without-selinux was specified, replace
8413         selinux/context.h.
8414         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
8415
8416 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8417             Bruno Haible  <bruno@clisp.org>
8418
8419         Make the module 'realloc-gnu' work again on AIX and OSF/1.
8420         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
8421         of HAVE_REALLOC.
8422         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
8423         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
8424         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
8425         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8426
8427 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8428             Bruno Haible  <bruno@clisp.org>
8429
8430         Make the module 'calloc-gnu' work again on AIX and OSF/1.
8431         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
8432         HAVE_CALLOC.
8433         * lib/xmalloc.c: Update accordingly.
8434         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
8435         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
8436         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8437
8438 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8439             Bruno Haible  <bruno@clisp.org>
8440
8441         Make the module 'malloc-gnu' work again on AIX and OSF/1.
8442         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
8443         HAVE_MALLOC.
8444         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
8445         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
8446         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
8447
8448 2010-08-29  Bruno Haible  <bruno@clisp.org>
8449
8450         Update modules list.
8451         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8452         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
8453         (String handling <string.h>): Add astrxfrm.
8454         (File system functions): Add readlinkat.
8455
8456 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8457
8458         Tests for module 'realloc-gnu'.
8459         * modules/realloc-gnu-tests: New file.
8460         * tests/test-realloc-gnu.c: New file.
8461
8462         Tests for module 'calloc-gnu'.
8463         * modules/calloc-gnu-tests: New file.
8464         * tests/test-calloc-gnu.c: New file.
8465
8466         Tests for module 'malloc-gnu'.
8467         * modules/malloc-gnu-tests: New file.
8468         * tests/test-malloc-gnu.c: New file.
8469
8470 2010-08-28  Bruno Haible  <bruno@clisp.org>
8471
8472         Rename module 'realloc' -> 'realloc-gnu'.
8473         * modules/realloc-gnu: New file, copied from modules/realloc.
8474         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
8475         obsolete.
8476         * modules/mgetgroups (Depends-on): Update.
8477         * doc/posix-functions/realloc.texi: Update.
8478         * NEWS: Mention the change.
8479
8480         Rename module 'calloc' -> 'calloc-gnu'.
8481         * modules/calloc-gnu: New file, copied from modules/calloc.
8482         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
8483         obsolete.
8484         * doc/posix-functions/calloc.texi: Update.
8485         * NEWS: Mention the change.
8486
8487         Rename module 'malloc' -> 'malloc-gnu'.
8488         * modules/malloc-gnu: New file, copied from modules/malloc.
8489         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
8490         obsolete.
8491         * modules/argp (Depends-on): Update.
8492         * modules/regex (Depends-on): Update.
8493         * doc/posix-functions/malloc.texi: Update.
8494         * NEWS: Mention the change.
8495
8496 2010-08-28  Eric Blake  <eblake@redhat.com>
8497
8498         pread, pwrite: add missing dependency
8499         * modules/pread (Depends-on): Add extensions.
8500         * modules/pwrite (Depends-on): Likewise.
8501
8502 2010-08-28  Bruno Haible  <bruno@clisp.org>
8503
8504         unistr/u*-strchr: Fix tests dependencies.
8505         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
8506         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
8507         Reported by Ian Beckwith <ianb@erislabs.net>.
8508
8509 2010-08-28  Bruno Haible  <bruno@clisp.org>
8510
8511         read-file: Don't occupy too much unused memory.
8512         * lib/read-file.c (fread_file): Shrink the buffer at the end.
8513
8514 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
8515             Eric Blake  <eblake@redhat.com>
8516             Bruno Haible  <bruno@clisp.org>
8517
8518         read-file: Avoid memory reallocations with regular files.
8519         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
8520         (fread_file): With regular files, use the remaining length as the
8521         initial buffer size.  Check against overflow.
8522         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
8523         sys_stat.
8524
8525 2010-08-28  Bruno Haible  <bruno@clisp.org>
8526
8527         ftello: Relax license.
8528         * modules/ftello (License): Relax to LGPLv2+.
8529         Reported by Eric Blake.
8530
8531 2010-08-28  Bruno Haible  <bruno@clisp.org>
8532
8533         Avoid relocwrapper link errors due to gnulib replacement functions.
8534         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
8535         function.
8536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8537
8538 2010-08-28  Bruno Haible  <bruno@clisp.org>
8539
8540         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
8541         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
8542         defined.
8543         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
8544         Suggested by Eric Blake.
8545
8546 2010-08-28  Bruno Haible  <bruno@clisp.org>
8547
8548         sys_socket, netdb: Ensure socklen_t gets defined.
8549         * modules/sys_socket (Depends-on): Add socklen.
8550         * modules/netdb (Depends-on): Likewise.
8551         * modules/getaddrinfo (Depends-on): Remove socklen.
8552         * modules/getsockopt (Depends-on): Likewise.
8553         * modules/setsockopt (Depends-on): Likewise.
8554         * tests/test-sys_socket.c: Check that socklen_t is defined.
8555         * tests/test-netdb.c: Likewise.
8556         * m4/socklen.m4: Update comments.
8557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8558
8559 2010-08-27  Eric Blake  <eblake@redhat.com>
8560
8561         login_tty: add missing dependency
8562         * modules/login_tty (Depends-on): Add pty.
8563
8564 2010-08-26  Eric Blake  <eblake@redhat.com>
8565
8566         lib-symbol-versions: fix m4 quoting
8567         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
8568         format for AC_LINK_IFELSE.
8569
8570         glob: fix compile test
8571         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
8572
8573         btowc: fix missing file
8574         * modules/btowc (Files): Also ship locale-fr.m4.
8575
8576         lseek: fix link test
8577         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
8578         AC_LINK_IFELSE.
8579
8580         include_next: silence autoconf 2.68 warning
8581         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
8582         AC_COMPILE_IFELSE as special.
8583         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
8584         autoconf < 2.68.
8585
8586         acl: fix compilation test
8587         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
8588         AC_COMPILE_IFELSE.
8589
8590 2010-08-26  Bruno Haible  <bruno@clisp.org>
8591
8592         Modernize AC_TRY_RUN invocations.
8593         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
8594         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8595         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
8596         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
8597         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
8598         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8601         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8602         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8604         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8605         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8606         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8608         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8609         gl_MBRLEN_NUL_RETVAL): Likewise.
8610         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8611         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8612         Likewise.
8613         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8614         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8615         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8616         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8617         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
8618         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
8619         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
8620         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8621         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
8622         Likewise.
8623         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8624         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
8625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8626         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8628         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8629         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8630         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
8631         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8633
8634 2010-08-26  Bruno Haible  <bruno@clisp.org>
8635
8636         Modernize AC_TRY_LINK invocations.
8637         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
8638         AC_TRY_LINK.
8639         * m4/argp.m4 (gl_ARGP): Likewise.
8640         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8641         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8642         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
8643         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8644         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8645         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
8646         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8647         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8648         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8649         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8650         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8651         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
8652         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
8653         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8654         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8655         * m4/hostent.m4 (gl_HOSTENT): Likewise.
8656         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8657         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
8658         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8659         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
8660         Likewise.
8661         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
8662         Likewise.
8663         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
8664         Likewise.
8665         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8666         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
8667         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
8668         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8669         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8670         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8671         * m4/servent.m4 (gl_SERVENT): Likewise.
8672         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8673         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8674         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8675         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8676         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8677         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8678         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8680         * modules/tsearch-tests (configure.ac): Likewise.
8681
8682 2010-08-26  Bruno Haible  <bruno@clisp.org>
8683
8684         Modernize AC_TRY_COMPILE invocations.
8685         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
8686         AC_TRY_COMPILE.
8687         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
8688         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
8689         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8690         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
8691         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8692         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8693         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8694         * m4/lock.m4 (gl_LOCK): Likewise.
8695         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
8696         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8697         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
8698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
8699         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8700         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
8701         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
8703         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8704         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8705         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8706         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8707         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
8708         extraneous semicolon.
8709
8710 2010-08-26  Jim Meyering  <meyering@redhat.com>
8711
8712         stat-time: relax license LGPL
8713         * modules/stat-time (License): Change from GPL to LGPL,
8714         with consent from all contributors, for use in libguile.
8715         Requested by Ludovic Courtès.
8716
8717 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
8718
8719         poll: return immediately on POLLHUP.
8720         * lib/poll.c (poll): Always set timeout before wait_timeout is
8721         computed.
8722
8723 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8724
8725         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
8726         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
8727         rmdir ("dir/.//"), unlinkat.
8728
8729 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8730
8731         stdbool: avoid spurious failure with modern xlc
8732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8733
8734 2010-08-24  Bruno Haible  <bruno@clisp.org>
8735
8736         getloadavg: simplify code
8737         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
8738         gl_have_func. Update comments.
8739
8740 2010-08-24  Eric Blake  <eblake@redhat.com>
8741
8742         getloadavg: don't define SVR4 on cygwin
8743         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
8744         only define SVR4 when -lkvm is required.
8745         Reported by Yaakov Selkowitz.
8746
8747 2010-08-24  Bruno Haible  <bruno@clisp.org>
8748
8749         priv-set: fix comment
8750         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
8751
8752 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         priv-set: fix comments
8755         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
8756         to match code, as suggested by David Bartley in:
8757         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
8758
8759 2010-08-23  Eric Blake  <eblake@redhat.com>
8760
8761         stdbool: avoid rejecting clang
8762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
8763         * tests/test-stdbool.c: Enable more tests if using the system
8764         <stdbool.h> instead of the gnulib replacement.
8765         (main): Move xlc bug test to a runtime test for all compilers.
8766         Reported by Anders Kaseorg.
8767
8768         argz: fix shell quoting issue
8769         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
8770         Reported by Charles Wilson.
8771
8772 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
8773             Erik Faye-Lund <kusmabite@gmail.com>
8774
8775         poll, select: handle ERROR_BROKEN_PIPE.
8776         * lib/poll.c (win32_compute_revents): Return POLLHUP when
8777         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8778         * lib/select.c (win32_compute_revents): Do not mark a pipe
8779         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
8780
8781 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
8782
8783         fts: allow compilation with C++
8784         * lib/fts_.h: Specify extern "C" linkage with C++.
8785
8786 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8787
8788         Fix gnulib-tool sed script de-commentation for AIX sed.
8789         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
8790         sed.
8791
8792 2010-08-17  Eric Blake  <eblake@redhat.com>
8793
8794         test-stddef: test for (some) offsetof bugs
8795         * tests/test-stddef.c: Enhance test to ensure correct type of
8796         offsetof.
8797         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
8798         that we are not fixing at this time.
8799
8800 2010-08-15  Bruno Haible  <bruno@clisp.org>
8801
8802         stpncpy: Allow stpncpy to be defined as a macro.
8803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
8804         if it's already correctly declared.
8805         * lib/string.in.h (stpncpy): Undefine before redefining.
8806         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
8807
8808 2010-08-14  Bruno Haible  <bruno@clisp.org>
8809
8810         Rename module 'memxfrm' to 'amemxfrm'.
8811         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
8812         (amemxfrm): Renamed from memxfrm.
8813         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
8814         (amemxfrm): Renamed from memxfrm.
8815         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
8816         * NEWS: Mention the change.
8817         * MODULES.html.sh (String handling <string.h>): Update.
8818         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
8819         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
8820         * lib/unicase/u16-casexfrm.c: Likewise.
8821         * lib/unicase/u32-casexfrm.c: Likewise.
8822         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
8823         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
8824         * lib/uninorm/u16-normxfrm.c: Likewise.
8825         * lib/uninorm/u32-normxfrm.c: Likewise.
8826         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
8827         memxfrm.
8828         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
8829         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
8830         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
8831         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
8832         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
8833         Suggested by Paul Eggert.
8834
8835 2010-08-14  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'astrxfrm'.
8838         * modules/astrxfrm-tests: New file.
8839         * tests/test-astrxfrm.c: New file.
8840
8841         New module 'astrxfrm'.
8842         * lib/astrxfrm.h: New file.
8843         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
8844         * modules/astrxfrm: New file.
8845
8846 2010-08-14  Reuben Thomas <rrt@sc3d.org>
8847
8848         regex: Tweak doc.
8849         * doc/regex.texi (Overview): Don't mention regex.c.
8850         (GNU Regular Expression Compiling): Likewise.
8851         (Match-end-of-line Operator): Mention 'not_eol'.
8852
8853 2010-08-14  Brian Gough  <bjg@gnu.org>
8854             Bruno Haible  <bruno@clisp.org>
8855
8856         git-merge-changelog: add doc relating to use with bzr and hg.
8857         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
8858
8859 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
8860
8861         pthread: fix pthread.h creation for srcdir != builddir
8862         * modules/pthread (Makefile.am): Fix the rule to work also in a
8863         non-srcdir build.
8864
8865 2010-08-13  Karl Berry  <karl@gnu.org>
8866
8867         * doc/regex.texi (Predefined Syntaxes): @smallexample.
8868         * doc/posix-*/*: force line break before @url of POSIX
8869         specifications.
8870         Suggested by Werner Lemberg.
8871
8872 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8873
8874         strtod: fix const diagnostic
8875         * lib/strtod.c (strtod): Don't assign const char * to char *,
8876         as this elicits a warning from GCC when warnings are enabled.
8877
8878 2010-08-10  Pádraig Brady <P@draigbrady.com>
8879         and Eric Blake  <eblake@redhat.com>
8880
8881         copy-acl: ignore ENOTSUP on HP-UX
8882         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
8883         so that it is available for HP-UX.
8884         * lib/copy-acl.c (qcopy_acl): Use it.
8885         Reported by Patrick M. Callahan.
8886
8887 2010-08-10  Eric Blake  <eblake@redhat.com>
8888
8889         open, chown: relax license
8890         * modules/open (License): Change to LGPLv2+, with consent by all
8891         authors, for use in augeas.
8892         * modules/chown (License): Likewise.
8893         * modules/lchown (Likewise): Likewise.
8894         Requested by Adam Stokes.
8895
8896 2010-08-09  Karl Berry  <karl@gnu.org>
8897
8898         * build-aux/ar-lib: new file, import from Automake.
8899         * config/srclist.txt: autocheck for updates.
8900
8901 2010-08-09  Eric Blake  <eblake@redhat.com>
8902
8903         readlinkat: adjust client modules
8904         * modules/areadlinkat (Depends-on): Use readlinkat, not
8905         symlinkat.
8906         * modules/areadlinkat-with-size (Depends-on): Likewise.
8907
8908         mknod: be more vocal about danger of running tests as root
8909         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
8910         root, since that is just asking for problems.
8911         Suggested by Bruno Haible, based on a report by Rainer Tammer.
8912
8913         readlinkat: split into its own module
8914         * modules/symlinkat: Split readlinkat...
8915         * modules/readlinkat: ...into separate module.
8916         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
8917         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
8918         * lib/symlinkat.c (readlinkat): Move...
8919         * lib/readlinkat.c: ...into new file.
8920         * modules/symlinkat-tests: Split readlinkat test...
8921         * modules/readlinkat-tests: ...into separate module.
8922         * tests/test-symlinkat.c: Split...
8923         * tests/test-readlinkat.c: ...into new file.
8924         * NEWS: Document the split.
8925         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8926         * lib/unistd.in.h (readlinkat): Likewise.
8927         Suggested by Bruno Haible.
8928
8929 2010-08-08  Bruno Haible  <bruno@clisp.org>
8930
8931         memxfrm: Speed up.
8932         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
8933         that usually only one call to strxfrm is necessary for each string
8934         part.
8935         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8936
8937 2010-08-07  Karl Berry  <karl@gnu.org>
8938
8939         * doc/posix-headers/limits.texi,
8940         * doc/posix-functions/malloc.texi,
8941         * doc/posix-functions/strsignal.texi: missing @item.
8942         * doc/ld-version-script.texi: spurious leading i.
8943         * doc/regex.texi (Interval Operators): no commas inside @var.
8944
8945 2010-08-01  Bruno Haible  <bruno@clisp.org>
8946
8947         Integrate the regex documentation.
8948         * doc/gnulib.texi: Define 'cn' index.
8949         (Regular expressions): New a chapter that includes regex.texi and
8950         regexprops-generic.texi.
8951         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
8952         syntax.
8953
8954         Whitespace cleanup.
8955         * doc/regex.texi: Remove trailing spaces.
8956
8957         Add regex documentation.
8958         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
8959         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
8960         Written by Kathy A. Hargreaves and Karl Berry.
8961
8962 2010-08-01  Bruno Haible  <bruno@clisp.org>
8963
8964         link: Update documentation.
8965         * doc/posix-functions/link.texi: Update regarding Solaris.
8966
8967 2010-07-31  Bruno Haible  <bruno@clisp.org>
8968
8969         Update modules list.
8970         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
8971         (String handling <string.h>): Add memcmp2, memxfrm.
8972         (Container data structures): Add xlist, xsublist, xoset.
8973         (Core language properties): Add alignof, unused-parameter.
8974         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8975         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8976         (Unibyte characters <ctype.h>): New section.
8977         (String handling <string.h>): New section.
8978         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8979         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8980         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8981         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8982         tan, tanh, tanl, y0, y1, yn.
8983         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8984         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8985         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8986         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8987         unlockpt, vdprintf, vdprintf-posix.
8988         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8989         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8990         xconcat-filename.
8991         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8992         getdtablesize, pipe2, pipe2-safer.
8993         (Security): New section.
8994         (Networking functions): Add accept4.
8995         (Signal handling): Add sigpipe.
8996         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8997         mbmemcasecoll.
8998         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8999         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9000         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9001         pipe-filter-ii.
9002         (Misc): Add argp-version-etc, login_tty, parse-duration.
9003
9004 2010-07-31  Bruno Haible  <bruno@clisp.org>
9005
9006         Improve doc in MODULES.html.
9007         * modules/linkat (Description): Add the word "function".
9008         * modules/mkfifo (Description): Likewise.
9009         * modules/mknod (Description): Likewise.
9010         * modules/remove (Description): Likewise.
9011         * modules/renameat (Description): Likewise.
9012         * modules/stat (Description): Likewise.
9013         * modules/symlink (Description): Likewise.
9014         * modules/unlink (Description): Likewise.
9015
9016 2010-07-31  Bruno Haible  <bruno@clisp.org>
9017
9018         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9019         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9020         option --enable/disable-c++ instead of --enable/disable-cxx.
9021         * NEWS: Mention the change.
9022
9023 2010-07-31  Bruno Haible  <bruno@clisp.org>
9024
9025         readlink, areadlink: Relax test a bit.
9026         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9027         alternative to ENOTDIR.
9028         * tests/test-areadlink.h (test_areadlink): Likewise.
9029         Reported by Rainer Tammer.
9030
9031 2010-07-31  Bruno Haible  <bruno@clisp.org>
9032
9033         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9034         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9035         character, perform the search using U_STRCHR.
9036         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9037         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9038         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9039         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9040         Suggested by Paolo Bonzini.
9041
9042 2010-07-31  Bruno Haible  <bruno@clisp.org>
9043
9044         unistr/u*-strstr: Fix dependencies.
9045         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9046         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9047         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9048
9049 2010-07-31  Bruno Haible  <bruno@clisp.org>
9050
9051         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9052         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9053         the beginning of the loop.
9054         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9055         cases in 'switch' statement.
9056
9057         unistr/u8-strchr: Fix several bugs.
9058         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9059         the string. When not found, return NULL, not a pointer near the end.
9060
9061         More tests for unistr/u8-strchr.
9062         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9063         that the function does not read past the first occurrence of the byte
9064         being searched.
9065         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9066         * tests/unistr/test-u16-strchr.c (main): New function.
9067         * tests/unistr/test-u32-strchr.c (main): New function.
9068
9069 2010-07-31  Bruno Haible  <bruno@clisp.org>
9070
9071         posix-modules: Ignore backup files of documentation files.
9072         * posix-modules: grep only through files named *.texi.
9073
9074 2010-07-31  Bruno Haible  <bruno@clisp.org>
9075
9076         symlinkat: Fix documentation.
9077         * doc/posix-functions/readlinkat.texi: Fix module name.
9078
9079 2010-07-31  Bruno Haible  <bruno@clisp.org>
9080
9081         fchownat: Replace also when chown has the trailing slash bug.
9082         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9083         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9084         introduced on 2010-04-10.
9085         Reported by Rainer Tammer.
9086
9087 2010-07-31  Bruno Haible  <bruno@clisp.org>
9088
9089         linkat: Work around AIX 7.1 bug.
9090         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9091         whether linkat handles trailing slash correctly. If not, replace linkat
9092         and define LINKAT_TRAILING_SLASH_BUG.
9093         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9094         check whether (fd1,file1) points to a directory if file1 or file2 ends
9095         in a slash. Code taken from lib/link.c.
9096         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9097         Reported by Rainer Tammer.
9098
9099 2010-07-31  Bruno Haible  <bruno@clisp.org>
9100
9101         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9102         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9103         This disables an xlc optimization that was causing wrong test results.
9104         Reported by Rainer Tammer.
9105
9106 2010-07-31  Bruno Haible  <bruno@clisp.org>
9107
9108         iconv: Work around AIX 6.1..7.1 bug.
9109         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9110         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9111         cross-compiling, guess no on all versions of AIX.
9112         Reported by Rainer Tammer.
9113
9114 2010-07-31  Bruno Haible  <bruno@clisp.org>
9115
9116         readlink: Relax test a bit.
9117         * tests/test-readlink.h (test_readlink): Allow different errno value
9118         when readlink is called with a file name that ends in / and refers to
9119         a file.
9120         Suggested by Eric Blake.
9121         Reported by Rainer Tammer.
9122
9123 2010-07-31  Bruno Haible  <bruno@clisp.org>
9124
9125         copysign: Does not require -lm on glibc systems.
9126         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9127         gl_COMMON_DOUBLE_MATHFUNC.
9128         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9129
9130 2010-07-31  Bruno Haible  <bruno@clisp.org>
9131
9132         duplocale: Work around AIX 7.1 bug.
9133         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9134         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9135         * lib/duplocale.c (rpl_duplocale): Update comment.
9136         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9137         Reported by Rainer Tammer.
9138
9139 2010-07-30  Bruno Haible  <bruno@clisp.org>
9140
9141         dirfd: Avoid link error on AIX 7.1.
9142         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9143         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9144         exist, set REPLACE_DIRFD.
9145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9146         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9147         * doc/posix-functions/dirfd.texi: Update.
9148         Reported by Rainer Tammer.
9149
9150 2010-07-30  Eric Blake  <eblake@redhat.com>
9151
9152         strtod: next round of AIX fixes
9153         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9154         exponent.
9155         * tests/test-strtod.c (main): Enhance tests.
9156         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9157         Reported by Rainer Tammer.
9158
9159         futimens: fix configure check
9160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9161         Reported by Bruno Haible.
9162
9163 2010-07-30  Bruno Haible  <bruno@clisp.org>
9164
9165         getline: Update regarding AIX.
9166         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9167         Reported by Rainer Tammer.
9168
9169 2010-07-30  Bruno Haible  <bruno@clisp.org>
9170
9171         wcwidth: Drop replacement on AIX 7.
9172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9173         AIX 7.
9174         Reported by Rainer Tammer.
9175
9176 2010-07-30  Bruno Haible  <bruno@clisp.org>
9177
9178         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9179         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9180         a 'char *'.
9181         Reported by Rainer Tammer.
9182
9183 2010-07-30  Bruno Haible  <bruno@clisp.org>
9184
9185         unlink: Update regarding AIX.
9186         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9187         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9188         Reported by Rainer Tammer.
9189
9190 2010-07-30  Bruno Haible  <bruno@clisp.org>
9191
9192         symlink: Update regarding AIX.
9193         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9194         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9195         Reported by Rainer Tammer.
9196
9197 2010-07-30  Bruno Haible  <bruno@clisp.org>
9198
9199         strndup: Update regarding AIX.
9200         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9201         AIX 7.
9202         Reported by Rainer Tammer.
9203
9204 2010-07-30  Bruno Haible  <bruno@clisp.org>
9205
9206         stat: Update regarding AIX.
9207         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9208         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9209         Reported by Rainer Tammer.
9210
9211 2010-07-30  Bruno Haible  <bruno@clisp.org>
9212
9213         truncl: Fix autoconf test.
9214         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9215         whether truncl works.
9216         Reported by Rainer Tammer.
9217
9218 2010-07-30  Bruno Haible  <bruno@clisp.org>
9219
9220         round: Update regarding AIX.
9221         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9222         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9223         Reported by Rainer Tammer.
9224
9225 2010-07-30  Bruno Haible  <bruno@clisp.org>
9226
9227         rename: Update regarding AIX.
9228         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9229         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9230         Reported by Rainer Tammer.
9231
9232 2010-07-30  Bruno Haible  <bruno@clisp.org>
9233
9234         printf.m4: Update regarding AIX.
9235         * m4/printf.m4: Update comments regarding AIX.
9236         Reported by Rainer Tammer.
9237
9238 2010-07-30  Bruno Haible  <bruno@clisp.org>
9239
9240         iconv: Update regarding AIX.
9241         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
9242         AIX 7.
9243         Reported by Rainer Tammer.
9244
9245 2010-07-30  Bruno Haible  <bruno@clisp.org>
9246
9247         getopt: Update regarding AIX.
9248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
9249         no on AIX.
9250         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
9251         Reported by Rainer Tammer.
9252
9253 2010-07-30  Bruno Haible  <bruno@clisp.org>
9254
9255         ldexpl; Update regarding AIX.
9256         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
9257         on AIX 7.
9258         Reported by Rainer Tammer.
9259
9260 2010-07-30  Bruno Haible  <bruno@clisp.org>
9261
9262         frexpl: Update regarding AIX.
9263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
9264         on AIX 7.
9265         Reported by Rainer Tammer.
9266
9267 2010-07-30  Bruno Haible  <bruno@clisp.org>
9268
9269         open, fopen: Update regarding AIX.
9270         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
9271         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9272         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
9273         * doc/posix-functions/fopen.texi: Likewise.
9274         Reported by Rainer Tammer.
9275
9276 2010-07-30  Bruno Haible  <bruno@clisp.org>
9277
9278         chown: Update doc regarding AIX.
9279         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
9280         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
9281         Reported by Rainer Tammer.
9282
9283 2010-07-30  Eric Blake  <eblake@redhat.com>
9284
9285         strtod: fix bug in replacement function on AIX
9286         * lib/strtod.c (strtod): Special case broken "0x" parse in
9287         underlying strtod.
9288         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
9289         * doc/posix-functions/strtod.texi (strtod): Likewise.
9290         Reported by Rainer Tammer.
9291
9292 2010-07-30  Bruno Haible  <bruno@clisp.org>
9293
9294         mbrlen: Fix cross-compilation guess for AIX.
9295         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
9296         guess. Leftover from 2008-12-22.
9297
9298 2010-07-30  Bruno Haible  <bruno@clisp.org>
9299
9300         mbrtowc: Fix cross-compilation guess for AIX.
9301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
9302         guess. Leftover from 2008-12-21.
9303
9304 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
9305
9306         init.sh: work around trap limitation of some shells
9307         * tests/init.sh (setup_): Move exit trap outside of shell function.
9308
9309 2010-07-29  Eric Blake  <eblake@redhat.com>
9310
9311         strtod: aid debugging
9312         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
9313         understanding why strtod is rejected.
9314
9315 2010-07-28  Bruno Haible  <bruno@clisp.org>
9316
9317         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
9318         * lib/unistr/u8-chr.c: Include <string.h>.
9319         * tests/unistr/test-u8-chr.c: Likewise.
9320         * tests/unistr/test-u16-chr.c: Likewise.
9321         * tests/unistr/test-u32-chr.c: Likewise.
9322         * tests/unistr/test-u8-strchr.c: Likewise.
9323         * tests/unistr/test-u16-strchr.c: Likewise.
9324         * tests/unistr/test-u32-strchr.c: Likewise.
9325         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
9326         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
9327         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
9328         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
9329
9330 2010-07-28  Bruno Haible  <bruno@clisp.org>
9331
9332         Use spaces for indentation, not tabs.
9333         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
9334
9335 2010-07-27  Bruno Haible  <bruno@clisp.org>
9336
9337         mbspcasecmp: Fix function specification.
9338         * lib/string.in.h (mbspcasecmp): Fix specification comment.
9339         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
9340         Reported by Eric Blake <eblake@redhat.com>.
9341
9342 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
9343
9344         timespec: use cast and not conditional, as truncation isn't possible
9345         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
9346         instead of a conditional.  Comment about the situation in more detail.
9347         This undoes most of the 2009-10-29 patch.
9348
9349 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
9350
9351         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
9352         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
9353         * lib/unistr/u8-strchr.c: Likewise.
9354         * modules/unistr/u8-chr: Depend on memchr.
9355
9356         unistr/u*-strchr: add tests
9357         * modules/unistr/u8-strchr-tests: New file.
9358         * modules/unistr/u16-strchr-tests: New file.
9359         * modules/unistr/u32-strchr-tests: New file.
9360         * tests/unistr/test-strchr.h: New file.
9361         * tests/unistr/test-u8-strchr.c: New file.
9362         * tests/unistr/test-u16-strchr.c: New file.
9363         * tests/unistr/test-u32-strchr.c: New file.
9364
9365         unistr/u*-chr: test multibyte sequences more
9366         * tests/unistr/test-chr.h: Do complete testing of the characters in the
9367         test vector.
9368         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
9369         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
9370         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
9371
9372         unistr/u*-chr: test multibyte sequences
9373         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
9374
9375         unistr/u*-chr: prepare for multibyte tests
9376         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
9377         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
9378         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
9379         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
9380         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
9381         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
9382
9383 2010-07-18  Bruno Haible  <bruno@clisp.org>
9384
9385         unistr/u8-strchr: Optimize non-ASCII argument case.
9386         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
9387         because the first byte often matches anyway.
9388         Reported by Pádraig Brady <P@draigbrady.com>.
9389
9390 2010-07-15  Karl Berry  <karl@gnu.org>
9391
9392         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
9393
9394 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
9395
9396         getcwd: on Solaris, work better if ancestors are inaccessible
9397         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
9398         buffer and size, try again with a large buffer.  This works better
9399         on Solaris, since its getcwd succeeds even if the path to the root
9400         is inaccessible, and this is helpful in common cases such as .zfs
9401         hidden directories.  Problem reported by J Chapman Flack in
9402         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
9403         Use system getcwd if it's declared, not merely if it's partly
9404         working; use the partly-working test only to avoid needless effort
9405         if the system getcwd fails.
9406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
9407         comment that was already obsolete and is now even more obsolete.
9408         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
9409         now might call strdup.
9410
9411 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
9412
9413         pthread: Add enough so that coreutils/src/sort.c compiles.
9414         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
9415         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
9416         gnulib. Include <sched.h> and <time.h>, as per POSIX.
9417         Include <sys/types.h>, in case it defines pthread_t.
9418         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9419         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
9420         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
9421         (pthread_rwlockattr_t, pthread_spinlock_t):
9422         New typedefs, if HAVE_PTHREAD_T is not defined.
9423         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
9424         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
9425         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
9426         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
9427         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
9428         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
9429         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
9430         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
9431         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
9432         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
9433         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
9434         New macros.
9435         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
9436         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
9437         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
9438         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
9439         (pthread_spin_unlock): New dummy functions.
9440         (pthread_create): Return EAGAIN; don't set errno.
9441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
9442         require AC_C_INLINE.
9443         * modules/pthread (Depends-on): Add sched, time.
9444         (pthread.h): Use AM_V_GEN.
9445
9446 2010-07-13  Bruno Haible  <bruno@clisp.org>
9447
9448         striconveh: Don't malloc memory if the result buffer is sufficient.
9449         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
9450         buffer if its size is sufficient.
9451         Reported by Ludovic Courtès <ludo@gnu.org>.
9452
9453 2010-07-13  Bruno Haible  <bruno@clisp.org>
9454
9455         strtod: Add safety check.
9456         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
9457
9458 2010-07-12  Bruno Haible  <bruno@clisp.org>
9459
9460         Unify tests that set gl_cv_func_ldexpl_no_libm.
9461         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
9462         gl_FUNC_LDEXPL.
9463         (gl_FUNC_LDEXPL): Invoke it.
9464         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9465
9466 2010-07-12  Bruno Haible  <bruno@clisp.org>
9467
9468         Unify tests that set gl_cv_func_ldexp_no_libm.
9469         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
9470         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
9471         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
9472         (configure.ac): Simply invoke gl_FUNC_LDEXP.
9473         * modules/strtod (Files): Add m4/ldexp.m4.
9474
9475 2010-07-12  Bruno Haible  <bruno@clisp.org>
9476
9477         Unify tests that set gl_cv_func_frexpl_no_libm.
9478         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
9479         gl_FUNC_FREXPL_NO_LIBM.
9480         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
9481         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9482
9483 2010-07-12  Bruno Haible  <bruno@clisp.org>
9484
9485         Unify tests that set gl_cv_func_frexp_no_libm.
9486         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
9487         gl_FUNC_FREXP_NO_LIBM.
9488         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
9489         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9490
9491 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9492
9493         memcoll: clarify sizes versus lengths, document better, and tweak perf
9494         * lib/memcoll.c (strcoll_loop, memcoll0):
9495         Improve quality of descriptive comments.  Name variables
9496         consistently as to whether they are lengths (which do not include
9497         terminating null) versus sizes (which do).
9498         * lib/xmemcoll.c (xmemcoll0): Likewise.
9499         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
9500         returned when s1size == 0; this is easier to compile and saves
9501         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
9502
9503 2010-07-12  Bruno Haible  <bruno@clisp.org>
9504
9505         Tests for module '_Exit'.
9506         * modules/_Exit-tests: New file.
9507         * tests/test-_Exit.sh: New file.
9508         * tests/test-_Exit.c: New file.
9509
9510         New module '_Exit'.
9511         * lib/stdlib.in.h (__attribute__): New macro.
9512         (_Exit): New declaration.
9513         * lib/_Exit.c: New file.
9514         * m4/_Exit.m4: New file.
9515         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9516         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
9517         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
9518         * modules/_Exit: New file.
9519         * tests/test-stdlib-c++.cc (_Exit): Check signature.
9520         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
9521
9522 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
9523
9524         strtod: make it more-accurate typically, and don't require libm
9525         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
9526         Include limits.h.  Don't include string.h.
9527         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
9528         (locale_isspace): New function, so that no casts are needed to
9529         check whether *s is a space.
9530         (ldexp): Provide an unused dummy if not available.
9531         (scale_radix_exp, parse_number, underlying_strtod): New functions.
9532         (strtod): Use them.  This implementation prefers to use the
9533         underlying strtod if available, falling back on our own code
9534         only to fix known bugs.  This is more likely to produce an
9535         accurate result.  Also, it avoids the use of libm functions.
9536         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
9537         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
9538         was absent, but it caused a test failure with coreutils.
9539         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
9540         with libm.
9541         * modules/strtod (Makefile.am, Link): libm is no longer needed.
9542         * modules/strtod-tests (Makefile.am): Likewise.
9543
9544 2010-07-11  Pádraig Brady  <P@draigBrady.com>
9545             Bruno Haible  <bruno@clisp.org>
9546
9547         unistr/u8-strchr: Optimize ASCII argument case.
9548         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
9549
9550 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9551
9552         (x)memcoll: minor tweaks
9553         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
9554         is after the type that it qualifies.
9555         (memcoll0): Likewise.
9556         * lib/memcoll.h (memcoll0): Likewise.
9557         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
9558         * lib/xmemcoll.h (xmemcoll0): Likewise.
9559         * lib/memcoll.c (memcoll0): Correct the comment.  This function
9560         differs from memcoll in that the NUL byte is part of the argument.
9561         Omit the abort-checks, as performance is a real issue here.  Plus,
9562         the checks were wrong anyway (an off-by-one error).  Omit local
9563         variable 'diff', as it's a bit clearer that way.
9564         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
9565         no longer needed.
9566
9567 2010-07-08  Chen Guo <chenguo4@yahoo.com>
9568
9569         (x)memcoll: speedup when input is known to be NUL delimited
9570         * lib/memcoll.c: Include stdlib.
9571         (memcoll0) New function.
9572         (strcoll_loop) New function, refactored for use in both memcoll
9573         and memcoll0.
9574         * lib/memcoll.h: Add prototype for memcoll0.
9575         * lib/xmemcoll.c: (xmemcoll0) New function.
9576         (collate_error) New function, refactored for use in both xmemcoll
9577         and xmemcoll0.
9578         * lib/xmemcoll.h: Add prototype for xmemcoll0.
9579         * m4/memcoll.m4: add inline invocation.
9580
9581 2010-07-06  Pádraig Brady  <P@draigBrady.com>
9582
9583         * build-aux/bootstrap: Remove any local translations
9584         from the translation project synchronization directory,
9585         so that local only translations are not distributed.
9586
9587 2010-07-04  Bruno Haible  <bruno@clisp.org>
9588
9589         fsusage: Clarify which code applies to which platforms.
9590         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
9591         platform.
9592         * lib/fsusage.c (get_fs_usage): Likewise.
9593
9594 2010-07-04  Bruno Haible  <bruno@clisp.org>
9595
9596         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
9597         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
9598         Reported by Martin Lambers <marlam@marlam.de>.
9599
9600 2010-07-04  Jim Meyering  <meyering@redhat.com>
9601
9602         hash: once again explicitly disallow insertion of NULL
9603         * lib/hash.c (hash_insert0): Reinstate just-removed test:
9604         inserting a NULL pointer cannot work with these functions.
9605         Add a comment with details.
9606         This reverts part of the 2010-07-01 commit, 5bef1a35
9607         "hash: extend module to deal with non-pointer keys".
9608
9609 2010-07-01  Bruno Haible  <bruno@clisp.org>
9610
9611         stdbool: Update doc.
9612         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
9613         Info from Christian Weisgerber <naddy@mips.inka.de>.
9614
9615 2010-07-01  Jim Meyering  <meyering@redhat.com>
9616
9617         hash: extend module to deal with non-pointer keys
9618         * lib/hash.c (hash_insert0): New interface, much like hash_insert
9619         but that allows insertion of non-pointer entries.
9620         Do not disallow an ENTRY value of NULL.
9621         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
9622         * lib/hash.h (hash_insert0): Declare.
9623
9624 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9625
9626         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
9627         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
9628         not present (i.e. with autoconf 2.59 and when using gettextize, not
9629         gnulib), require AC_GNU_SOURCE instead.
9630
9631 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
9632
9633         idpriv-drop: Fix tests.
9634         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
9635         not to the test-idpriv-droptemp program.
9636
9637 2010-06-29  Bruno Haible  <bruno@clisp.org>
9638
9639         string: Fix syntax error with g++ 2.96.
9640         * lib/string.in.h (__pure__): Remove definition.
9641         (_GL_ATTRIBUTE_PURE): New macro.
9642         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
9643         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
9644         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9645
9646 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
9647
9648         unitypes: Fix bug introduced on 2010-05-18.
9649         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
9650
9651 2010-06-22  Eric Blake  <eblake@redhat.com>
9652
9653         memmem: slight optimization
9654         * lib/str-two-way.h (critical_factorization): Update comments.
9655         Reduce work during factorization phase.
9656         Reported by Carlos Bueno <carlos@bueno.org>.
9657
9658 2010-06-21  Bruno Haible  <bruno@clisp.org>
9659
9660         Fix HAVE_CALLOC_POSIX misnomer.
9661         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
9662         !HAVE_CALLOC_POSIX.
9663         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
9664         HAVE_CALLOC_POSIX.
9665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
9666         instead of HAVE_CALLOC_POSIX.
9667         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
9668         HAVE_CALLOC_POSIX.
9669
9670         Use modern idiom for calloc() replacement.
9671         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
9672         AC_FUNC_CALLOC.
9673         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
9674         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
9675         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9676         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
9677         (gl_REPLACE_CALLOC): New macro.
9678
9679 2010-06-21  Bruno Haible  <bruno@clisp.org>
9680
9681         Fix HAVE_REALLOC_POSIX misnomer.
9682         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
9683         !HAVE_REALLOC_POSIX.
9684         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
9685         HAVE_REALLOC_POSIX.
9686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
9687         instead of HAVE_REALLOC_POSIX.
9688         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
9689         HAVE_REALLOC_POSIX.
9690
9691         Use modern idiom for realloc() replacement.
9692         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
9693         AC_FUNC_REALLOC.
9694         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
9695         Autoconf's AC_FUNC_REALLOC.
9696         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9697         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
9698         (gl_REPLACE_REALLOC): New macro.
9699         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9700
9701 2010-06-21  Bruno Haible  <bruno@clisp.org>
9702
9703         Fix HAVE_MALLOC_POSIX misnomer.
9704         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
9705         !HAVE_MALLOC_POSIX.
9706         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
9707         HAVE_MALLOC_POSIX.
9708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
9709         instead of HAVE_MALLOC_POSIX.
9710         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
9711         HAVE_MALLOC_POSIX.
9712
9713         Use modern idiom for malloc() replacement.
9714         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
9715         AC_FUNC_MALLOC.
9716         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
9717         Autoconf's AC_FUNC_MALLOC.
9718         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
9719         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
9720         (gl_REPLACE_MALLOC): New macro.
9721         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
9722
9723 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
9724
9725         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
9726         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
9727         This macro takes 3 arguments, not 4.
9728
9729 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
9730
9731         ipv6: fix detection under mingw
9732         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
9733         in6_addr.
9734
9735 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
9736
9737         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
9738         that strtod() works when cross-compiling to a glibc version known
9739         to work.
9740
9741 2010-06-15  Bruno Haible  <bruno@clisp.org>
9742
9743         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
9744
9745 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
9746
9747         select: Correct timeout.
9748         * lib/select.c (rpl_select): Compute wait_timeout correctly.
9749
9750 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9751
9752         git-version-gen: init shell var to avoid env var influence
9753         * build-aux/git-version-gen (v): Init shell var to empty.
9754
9755 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9756
9757         priv-set: Don't assume that priv.h exists merely because getppriv does.
9758         See Jan Andersen's bug report about AIX 5L in
9759         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
9760         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
9761         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
9762         * lib/priv-set.h: Likewise.
9763         * tests/test-priv-set.c: Likewise.
9764
9765 2010-06-13  Bruno Haible  <bruno@clisp.org>
9766
9767         relocatable: Make it easier to test whether to install wrappers.
9768         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
9769         RELOCATABLE_VIA_WRAPPER.
9770
9771 2010-06-13  Bruno Haible  <bruno@clisp.org>
9772
9773         gnulib-tool: Display specified modules and dependencies differently.
9774         * gnulib-tool (func_show_module_list): New function.
9775         (func_import, func_create_testdir): Invoke it.
9776         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9777
9778 2010-06-13  Bruno Haible  <bruno@clisp.org>
9779
9780         gnulib-tool: Align code of func_import and func_create_testdir.
9781         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
9782         specified_modules.
9783
9784 2010-06-12  Jim Meyering  <meyering@redhat.com>
9785
9786         test-inttostr: avoid spurious failure on Solaris 9
9787         * tests/test-inttostr.c (main): Skip the test when snprintf fails
9788         to accept "%ju".  Reported by Bruno Haible.
9789
9790 2010-06-11  Jim Meyering  <meyering@redhat.com>
9791
9792         test-sys_socket: mark variables as used more readably
9793         * tests/test-sys_socket.c (main): Mark otherwise unused variables
9794         as "used" explicitly via (void) statement casts.  This is more
9795         readable than using them in an artificial return expression.
9796         Suggestion from Bruno Haible.
9797
9798 2010-06-11  Bruno Haible  <bruno@clisp.org>
9799
9800         Avoid some more warnings from "gcc -Wwrite-strings".
9801         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
9802         to 'const char *'.
9803         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
9804         * tests/test-c-strcasestr.c (main): Likewise.
9805         * tests/test-mbscasestr1.c (main): Likewise.
9806         * tests/test-mbscasestr2.c (main): Likewise.
9807         * tests/test-memmem.c (main): Likewise.
9808         * tests/test-strstr.c (main): Likewise.
9809         * tests/test-strcasestr.c (main): Likewise.
9810
9811 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9812
9813         init.sh: change framework_failure_ to fail with status 99, not 1
9814         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
9815         automake's parallel-tests rule that this is an unexpected failure,
9816         even if the test is listed in XFAIL_TESTS.
9817
9818 2010-06-11  Jim Meyering  <meyering@redhat.com>
9819
9820         test-inttostr: avoid warnings about 4-6KB literal strings
9821         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
9822         Include "macros.h", for its definition of ASSERT.
9823         (CK): s/assert/ASSERT/
9824         * modules/inttostr-tests (Files): Add macros.h.
9825
9826         init.sh: don't use $ME_ or skip_ before they are defined
9827         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
9828         their first uses.  Also hoist their companions: warn_, fail_,
9829         framework_failure_, $stderr_fileno.  Prompted by a patch from
9830         Stefano Lattarini.
9831
9832         test-sys_socket: avoid set-but-not-used warnings from gcc
9833         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
9834         avoid warning about set-but-not-used variables.
9835
9836         test-xvasprintf: avoid 'const' discard warnings
9837         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
9838         "const" when assigning from literal strings.
9839         (test_xasprintf): Add "void" in function argument list to placate
9840         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
9841
9842         tests: avoid compilation warnings in argmatch and exclude tests...
9843         in packages that define ARGMATCH_DIE_DECL, like coreutils.
9844         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
9845         Since it always exits, declare with the "noreturn" attribute.
9846         * tests/test-argmatch.c: Likewise.
9847
9848         tests: avoid 'const' discard warnings in mbsstr tests
9849         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
9850         * tests/test-mbsstr2.c (main): Likewise.
9851
9852         test-verify: avoid warning from gcc's -Wmissing-declarations
9853         * tests/test-verify.c (function): Declare to be static.
9854
9855         test-inttostr.c: include <string.h> for use of strcmp
9856         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
9857
9858         test-linkat: avoid failed assertion on "other" architectures
9859         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
9860         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
9861         sparc: https://bugs.launchpad.net/bugs/591968
9862
9863 2010-06-11  Jim Meyering  <meyering@redhat.com>
9864
9865         printf.m4: avoid autoconf's "Expanded Before Required" warning
9866         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
9867         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
9868         autoconf warning.
9869
9870 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
9871
9872         Replacement header templates are now named with ".in", not "_".
9873         * doc/gnulib-intro.texi: Correct.
9874
9875 2010-06-10  Jim Meyering  <meyering@redhat.com>
9876
9877         inttostr-tests: depend on snprintf, not snprintf-posix
9878         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
9879         snprintf-posix, to avoid this aclocal failure:
9880           missing file gnulib-tests/vasnprintf.c
9881           configure.ac:45: error: expected source file, required through \
9882           AC_LIBSOURCES, not found
9883
9884 2010-06-10  Jim Meyering  <meyering@redhat.com>
9885
9886         inttostr: add a new function, inttostr, and tests
9887         The namesake function was not available.  The existence of the
9888         template file, inttostr.c makes its addition nontrivial.
9889         * lib/anytostr.c: Rename from inttostr.c.
9890         (anytostr): Rename from inttostr.
9891         * lib/inttostr.c: New file.
9892         * modules/inttostr (Files): Add anytostr.c.
9893         (Makefile.am): Set lib_SOURCES instead of ...
9894         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
9895         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
9896         * lib/offtostr.c: Likewise.
9897         * lib/uinttostr.c: Likewise.
9898         * lib/umaxtostr.c: Likewise.
9899         * modules/inttostr-tests: New file.
9900         * tests/test-inttostr.c: New file.  Test these functions.
9901
9902 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
9903             Bruno Haible  <bruno@clisp.org>
9904
9905         Add "Extending Gnulib" chapter to manual.
9906         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
9907         chapter.
9908         (Extending Gnulib): New chapter.
9909         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
9910         chapter.
9911
9912 2010-06-09  Bruno Haible  <bruno@clisp.org>
9913
9914         Avoid relocwrapper link errors due to gnulib replacement functions.
9915         * lib/areadlink.c: Use the system's malloc, realloc functions.
9916         (areadlink): Set errno to ENOMEM explicitly.
9917         * modules/areadlink (Depends-on): Remove malloc-posix.
9918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9919
9920 2010-06-09  Bruno Haible  <bruno@clisp.org>
9921
9922         Avoid relocwrapper link errors due to gnulib replacement functions.
9923         * lib/canonicalize-lgpl.c: Use the system's malloc function.
9924         * lib/malloca.c: Likewise.
9925         * lib/relocatable.c: Likewise.
9926         * lib/progreloc.c: Use the system's malloc, sprintf functions.
9927         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
9928         * lib/setenv.c: Use the system's malloc, realloc functions.
9929         * lib/strerror.c: Use the system's sprintf function.
9930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9931
9932 2010-06-04  Bruno Haible  <bruno@clisp.org>
9933
9934         Prefer documented low-level autoconf macro names.
9935         * m4/lib-link.m4: Use m4_translit instead of translit.
9936         * m4/environ.m4: Likewise.
9937         * m4/mathfunc.m4: Likewise.
9938         * m4/onceonly.m4: Likewise.
9939         * m4/stdint.m4: Likewise.
9940         Suggested by Eric Blake.
9941
9942 2010-06-04  Martin Lambers  <marlam@marlam.de>
9943             Bruno Haible  <bruno@clisp.org>
9944
9945         havelib: Allow library names with '+' characters.
9946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9947         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
9948
9949 2010-06-09  Bruno Haible  <bruno@clisp.org>
9950
9951         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
9952         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
9953         realloc failed.
9954
9955 2010-06-08  Peter Simons  <simons@cryp.to>
9956
9957         maint.mk: make the news-check rule more configurable
9958         * top/maint.mk (news-check-lines-spec) New variable.
9959         (news-check): Use "sed -n 1,10p" in place of "head".
9960
9961 2010-06-07  Jim Meyering  <meyering@redhat.com>
9962
9963         do-release-commit-and-tag: fix typo in --help
9964         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
9965
9966         regex: avoid new dead-code warning with gcc-4.6.0
9967         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
9968         if-block containing a while-loop.  It's been unused for at least
9969         5 years.
9970
9971 2010-06-05  Bruno Haible  <bruno@clisp.org>
9972
9973         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9974         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9975
9976 2010-06-04  Bruno Haible  <bruno@clisp.org>
9977
9978         Update to GNU gettext 0.18.1.
9979         * modules/gettext (configure.ac): Require gettext infrastructure from
9980         version 0.18.1.
9981
9982 2010-06-03  Bruno Haible  <bruno@clisp.org>
9983
9984         Don't use AC_LIBOBJ with file names in subdirectories.
9985         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9986         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9987         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9988         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9989         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9990         gl_LIBUNISTRING_LIBSOURCE.
9991         (Makefile.am): Augment lib_SOURCES here, conditionally.
9992         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9993
9994 2010-06-03  Bruno Haible  <bruno@clisp.org>
9995
9996         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9997         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9998         expansion does not end with a newline.
9999         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10000         unnecessary newline.
10001
10002 2010-06-03  Bruno Haible  <bruno@clisp.org>
10003
10004         Reduce dependencies.
10005         * tests/test-quotearg.h: New file, extracted from
10006         tests/test-quotearg.c.
10007         * tests/test-quotearg-simple.c: New file, extracted from
10008         tests/test-quotearg.c.
10009         * tests/test-quotearg.c: Don't include <ctype.h>.
10010         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10011         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10012         use_quote_double_quotes, use_quotearg_colon): Moved to
10013         tests/test-quotearg.h.
10014         (results_g, flag_results, custom_quotes, custom_results): Moved
10015         to tests/test-quotearg-simple.c.
10016         (main): Moved the part that does not depend on gettext to
10017         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10018         performed.
10019         * modules/quotearg-simple: New file.
10020         * modules/quotearg-simple-tests: New file.
10021         * modules/quotearg (Depends-on): Add quotearg-simple.
10022         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10023         (Files): Add tests/test-quotearg.h.
10024         Reported by Paolo Bonzini.
10025
10026 2010-06-03  Bruno Haible  <bruno@clisp.org>
10027
10028         Reduce dependencies.
10029         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10030
10031 2010-06-03  Bruno Haible  <bruno@clisp.org>
10032
10033         time: Undefine more broken macros.
10034         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10035         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10036         Reported by Eric Blake.
10037
10038 2010-06-03  Bruno Haible  <bruno@clisp.org>
10039
10040         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10041         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10042         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10043         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10044         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10045         Reported by Ludovic Courtès <ludo@gnu.org>.
10046
10047 2010-06-02  Eric Blake  <eblake@redhat.com>
10048
10049         time: work with mingw + pthreads-win32 library
10050         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10051         if timespec is defined only in pthread.h.
10052         * modules/time (Makefile.am): Substitute it.
10053         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10054         <pthread.h>, when needed.
10055         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10056         from the library.
10057
10058 2010-05-31  Bruno Haible  <bruno@clisp.org>
10059
10060         Avoid expanding two macros in the wrong order.
10061         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10062         gl_LIBUNISTRING if it is defined.
10063         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10064         autoconf >= 2.64.
10065         Reported by Ludovic Courtès <ludo@gnu.org>.
10066
10067 2010-05-27  Jim Meyering  <meyering@redhat.com>
10068
10069         maint.mk: also prohibit "#undef" of always-defined symbols
10070         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10071         Allow more than one space before the symbol name.
10072         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10073         the regexp uses alternation.
10074
10075 2010-05-26  Eric Blake  <eblake@redhat.com>
10076
10077         maint.mk: avoid echo -e
10078         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10079         Convert all uses of echo -* to printf.
10080         Reported by Matthias Bolte.
10081
10082 2010-05-25  Bruno Haible  <bruno@clisp.org>
10083
10084         Update to GNU gettext 0.18, part 2.
10085         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10086         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10087
10088 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10089
10090         Add missing include in test-pwrite.c.
10091         * tests/test-pwrite.c: Include string.h, for strcmp.
10092
10093 2010-05-24  Bruno Haible  <bruno@clisp.org>
10094
10095         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10096
10097 2010-05-24  Bruno Haible  <bruno@clisp.org>
10098
10099         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10100         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10101         iconveh_error argument.
10102         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10103         U_STRCONV_TO_LOCALE.
10104         * lib/unistr/u16-strcoll.c: Likewise.
10105         * lib/unistr/u32-strcoll.c: Likewise.
10106         * modules/unistr/u8-strcoll (Depends-on): Add
10107         uniconv/u8-strconv-to-enc, localcharset. Remove
10108         uniconv/u8-strconv-to-locale.
10109         (configure.ac): Bump version number.
10110         * modules/unistr/u16-strcoll (Depends-on): Add
10111         uniconv/u16-strconv-to-enc, localcharset. Remove
10112         uniconv/u16-strconv-to-locale.
10113         (configure.ac): Bump version number.
10114         * modules/unistr/u32-strcoll (Depends-on): Add
10115         uniconv/u32-strconv-to-enc, localcharset. Remove
10116         uniconv/u32-strconv-to-locale.
10117         (configure.ac): Bump version number.
10118
10119 2010-05-24  Bruno Haible  <bruno@clisp.org>
10120
10121         Avoid a test failure on NetBSD 5.0.
10122         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10123         an iconv() bug.
10124
10125 2010-05-24  Bruno Haible  <bruno@clisp.org>
10126
10127         Adjust #include directive style.
10128         * modules/regex (Includes): Recommend to write <regex.h>.
10129
10130 2010-05-24  Bruno Haible  <bruno@clisp.org>
10131
10132         regex: Don't require alloca.
10133         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10134         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10135         only inside if (0).
10136
10137 2010-05-23  Jim Meyering  <meyering@redhat.com>
10138
10139         test-renameat.c: include <sys/stat.h>
10140         * tests/test-renameat.c: Include <sys/stat.h>; required for
10141         definition of S_IS* macros.
10142
10143 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10144
10145         Update maintainer documentation for 'relocatable-prog' module.
10146         * doc/relocatable-maint.texi: Update.
10147         Comments by Bruno Haible.
10148
10149 2010-05-23  Bruno Haible  <bruno@clisp.org>
10150
10151         git-merge-changelog: Enable --split-merged-entry by default.
10152         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10153         (usage): Don't mention this option any more.
10154         Reported by Ralf Wildenhues.
10155
10156 2010-05-23  Jim Meyering  <meyering@redhat.com>
10157
10158         test-pwrite: do not leave behind a test file named "out"
10159         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10160         The trivial-looking use of init.sh is really necessary.
10161         It ensures that the temporary file, "out", is created in
10162         a temporary directory, and removed upon termination.
10163         * tests/test-pwrite.sh: Re-add file.
10164         * modules/pwrite-tests: Reference it.
10165
10166 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10167
10168         Fix output redirection buglet in init.sh.
10169         * tests/init.sh: Fix redirection of stderr.
10170
10171 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10172
10173         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10174
10175 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10176
10177         * modules/valgrind-tests: New file.
10178         * m4/valgrind-tests.m4: New file.
10179         * doc/valgrind-tests.texi: New file.
10180         * doc/gnulib.texi (Running self-tests under valgrind): New
10181         section.
10182
10183 2010-05-19  Bruno Haible  <bruno@clisp.org>
10184
10185         Clean up dead code in recent commit.
10186         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10187         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10188         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10189         Suggested by Paolo Bonzini.
10190
10191 2010-05-19  Bruno Haible  <bruno@clisp.org>
10192
10193         Avoid valgrind error reports from libunistring.
10194         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10195         * modules/libunistring (Files): Add it.
10196         * modules/libunistring-optional (Files): Likewise.
10197
10198 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10199             Bruno Haible  <bruno@clisp.org>
10200
10201         New module 'libunistring-optional'.
10202         * modules/libunistring-optional: New file.
10203         * m4/libunistring-base.m4: New file.
10204         * m4/libunistring-optional.m4: New file.
10205         * lib/unicase.in.h: Renamed from lib/unicase.h.
10206         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10207         * lib/unictype.in.h: Renamed from lib/unictype.h.
10208         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10209         * lib/uniname.in.h: Renamed from lib/uniname.h.
10210         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10211         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10212         * lib/unistr.in.h: Renamed from lib/unistr.h.
10213         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10214         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10215         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10216         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10217         gl_LIBUNISTRING. If the library was found, determine the installed
10218         version and set LIBUNISTRING_VERSION.
10219         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10220         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10221         handle a configuration option --with-included-libunistring.
10222         * modules/libunistring (Files): Add m4/absolute-header.m4.
10223         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10224         Add m4/libunistring-base.m4.
10225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10226         (Makefile.am): Build unicase.h from unicase.in.h.
10227         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10228         Add m4/libunistring-base.m4.
10229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10230         (Makefile.am): Build uniconv.h from uniconv.in.h.
10231         * modules/unictype/base (Files): Use unictype.in.h instead of
10232         unictype.h. Add m4/libunistring-base.m4.
10233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10234         (Makefile.am): Build unictype.h from unictype.in.h.
10235         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10236         Add m4/libunistring-base.m4.
10237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10238         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10239         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10240         Add m4/libunistring-base.m4.
10241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10242         (Makefile.am): Build uniname.h from uniname.in.h.
10243         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
10244         Add m4/libunistring-base.m4.
10245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10246         (Makefile.am): Build uninorm.h from uninorm.in.h.
10247         * modules/unistdio/base (Files): Use unistdio.in.h instead of
10248         unistdio.h. Add m4/libunistring-base.m4.
10249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10250         (Makefile.am): Build unistdio.h from unistdio.in.h.
10251         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
10252         Add m4/libunistring-base.m4.
10253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10254         (Makefile.am): Build unistr.h from unistr.in.h.
10255         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
10256         Add m4/libunistring-base.m4.
10257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10258         (Makefile.am): Build unitypes.h from unitypes.in.h.
10259         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
10260         Add m4/libunistring-base.m4.
10261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10262         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
10263         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
10264         uniwidth.h. Add m4/libunistring-base.m4.
10265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10266         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
10267         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
10268         instead of augmenting lib_SOURCES.
10269         * modules/unicase/empty-suffix-context: Likewise.
10270         * modules/unicase/locale-language: Likewise.
10271         * modules/unicase/tolower: Likewise.
10272         * modules/unicase/totitle: Likewise.
10273         * modules/unicase/toupper: Likewise.
10274         * modules/unicase/u8-casecmp: Likewise.
10275         * modules/unicase/u8-casecoll: Likewise.
10276         * modules/unicase/u8-casefold: Likewise.
10277         * modules/unicase/u8-casexfrm: Likewise.
10278         * modules/unicase/u8-ct-casefold: Likewise.
10279         * modules/unicase/u8-ct-tolower: Likewise.
10280         * modules/unicase/u8-ct-totitle: Likewise.
10281         * modules/unicase/u8-ct-toupper: Likewise.
10282         * modules/unicase/u8-is-cased: Likewise.
10283         * modules/unicase/u8-is-casefolded: Likewise.
10284         * modules/unicase/u8-is-lowercase: Likewise.
10285         * modules/unicase/u8-is-titlecase: Likewise.
10286         * modules/unicase/u8-is-uppercase: Likewise.
10287         * modules/unicase/u8-prefix-context: Likewise.
10288         * modules/unicase/u8-suffix-context: Likewise.
10289         * modules/unicase/u8-tolower: Likewise.
10290         * modules/unicase/u8-totitle: Likewise.
10291         * modules/unicase/u8-toupper: Likewise.
10292         * modules/unicase/u16-casecmp: Likewise.
10293         * modules/unicase/u16-casecoll: Likewise.
10294         * modules/unicase/u16-casefold: Likewise.
10295         * modules/unicase/u16-casexfrm: Likewise.
10296         * modules/unicase/u16-ct-casefold: Likewise.
10297         * modules/unicase/u16-ct-tolower: Likewise.
10298         * modules/unicase/u16-ct-totitle: Likewise.
10299         * modules/unicase/u16-ct-toupper: Likewise.
10300         * modules/unicase/u16-is-cased: Likewise.
10301         * modules/unicase/u16-is-casefolded: Likewise.
10302         * modules/unicase/u16-is-lowercase: Likewise.
10303         * modules/unicase/u16-is-titlecase: Likewise.
10304         * modules/unicase/u16-is-uppercase: Likewise.
10305         * modules/unicase/u16-prefix-context: Likewise.
10306         * modules/unicase/u16-suffix-context: Likewise.
10307         * modules/unicase/u16-tolower: Likewise.
10308         * modules/unicase/u16-totitle: Likewise.
10309         * modules/unicase/u16-toupper: Likewise.
10310         * modules/unicase/u32-casecmp: Likewise.
10311         * modules/unicase/u32-casecoll: Likewise.
10312         * modules/unicase/u32-casefold: Likewise.
10313         * modules/unicase/u32-casexfrm: Likewise.
10314         * modules/unicase/u32-ct-casefold: Likewise.
10315         * modules/unicase/u32-ct-tolower: Likewise.
10316         * modules/unicase/u32-ct-totitle: Likewise.
10317         * modules/unicase/u32-ct-toupper: Likewise.
10318         * modules/unicase/u32-is-cased: Likewise.
10319         * modules/unicase/u32-is-casefolded: Likewise.
10320         * modules/unicase/u32-is-lowercase: Likewise.
10321         * modules/unicase/u32-is-titlecase: Likewise.
10322         * modules/unicase/u32-is-uppercase: Likewise.
10323         * modules/unicase/u32-prefix-context: Likewise.
10324         * modules/unicase/u32-suffix-context: Likewise.
10325         * modules/unicase/u32-tolower: Likewise.
10326         * modules/unicase/u32-totitle: Likewise.
10327         * modules/unicase/u32-toupper: Likewise.
10328         * modules/unicase/ulc-casecmp: Likewise.
10329         * modules/unicase/ulc-casecoll: Likewise.
10330         * modules/unicase/ulc-casexfrm: Likewise.
10331         * modules/uniconv/u8-conv-from-enc: Likewise.
10332         * modules/uniconv/u8-conv-to-enc: Likewise.
10333         * modules/uniconv/u8-strconv-from-enc: Likewise.
10334         * modules/uniconv/u8-strconv-from-locale: Likewise.
10335         * modules/uniconv/u8-strconv-to-enc: Likewise.
10336         * modules/uniconv/u8-strconv-to-locale: Likewise.
10337         * modules/uniconv/u16-conv-from-enc: Likewise.
10338         * modules/uniconv/u16-conv-to-enc: Likewise.
10339         * modules/uniconv/u16-strconv-from-enc: Likewise.
10340         * modules/uniconv/u16-strconv-from-locale: Likewise.
10341         * modules/uniconv/u16-strconv-to-enc: Likewise.
10342         * modules/uniconv/u16-strconv-to-locale: Likewise.
10343         * modules/uniconv/u32-conv-from-enc: Likewise.
10344         * modules/uniconv/u32-conv-to-enc: Likewise.
10345         * modules/uniconv/u32-strconv-from-enc: Likewise.
10346         * modules/uniconv/u32-strconv-from-locale: Likewise.
10347         * modules/uniconv/u32-strconv-to-enc: Likewise.
10348         * modules/uniconv/u32-strconv-to-locale: Likewise.
10349         * modules/unictype/bidicategory-byname: Likewise.
10350         * modules/unictype/bidicategory-name: Likewise.
10351         * modules/unictype/bidicategory-of: Likewise.
10352         * modules/unictype/bidicategory-test: Likewise.
10353         * modules/unictype/block-list: Likewise.
10354         * modules/unictype/block-test: Likewise.
10355         * modules/unictype/category-C: Likewise.
10356         * modules/unictype/category-Cc: Likewise.
10357         * modules/unictype/category-Cf: Likewise.
10358         * modules/unictype/category-Cn: Likewise.
10359         * modules/unictype/category-Co: Likewise.
10360         * modules/unictype/category-Cs: Likewise.
10361         * modules/unictype/category-L: Likewise.
10362         * modules/unictype/category-Ll: Likewise.
10363         * modules/unictype/category-Lm: Likewise.
10364         * modules/unictype/category-Lo: Likewise.
10365         * modules/unictype/category-Lt: Likewise.
10366         * modules/unictype/category-Lu: Likewise.
10367         * modules/unictype/category-M: Likewise.
10368         * modules/unictype/category-Mc: Likewise.
10369         * modules/unictype/category-Me: Likewise.
10370         * modules/unictype/category-Mn: Likewise.
10371         * modules/unictype/category-N: Likewise.
10372         * modules/unictype/category-Nd: Likewise.
10373         * modules/unictype/category-Nl: Likewise.
10374         * modules/unictype/category-No: Likewise.
10375         * modules/unictype/category-P: Likewise.
10376         * modules/unictype/category-Pc: Likewise.
10377         * modules/unictype/category-Pd: Likewise.
10378         * modules/unictype/category-Pe: Likewise.
10379         * modules/unictype/category-Pf: Likewise.
10380         * modules/unictype/category-Pi: Likewise.
10381         * modules/unictype/category-Po: Likewise.
10382         * modules/unictype/category-Ps: Likewise.
10383         * modules/unictype/category-S: Likewise.
10384         * modules/unictype/category-Sc: Likewise.
10385         * modules/unictype/category-Sk: Likewise.
10386         * modules/unictype/category-Sm: Likewise.
10387         * modules/unictype/category-So: Likewise.
10388         * modules/unictype/category-Z: Likewise.
10389         * modules/unictype/category-Zl: Likewise.
10390         * modules/unictype/category-Zp: Likewise.
10391         * modules/unictype/category-Zs: Likewise.
10392         * modules/unictype/category-and: Likewise.
10393         * modules/unictype/category-and-not: Likewise.
10394         * modules/unictype/category-byname: Likewise.
10395         * modules/unictype/category-name: Likewise.
10396         * modules/unictype/category-none: Likewise.
10397         * modules/unictype/category-of: Likewise.
10398         * modules/unictype/category-or: Likewise.
10399         * modules/unictype/category-test: Likewise.
10400         * modules/unictype/combining-class: Likewise.
10401         * modules/unictype/ctype-alnum: Likewise.
10402         * modules/unictype/ctype-alpha: Likewise.
10403         * modules/unictype/ctype-blank: Likewise.
10404         * modules/unictype/ctype-cntrl: Likewise.
10405         * modules/unictype/ctype-digit: Likewise.
10406         * modules/unictype/ctype-graph: Likewise.
10407         * modules/unictype/ctype-lower: Likewise.
10408         * modules/unictype/ctype-print: Likewise.
10409         * modules/unictype/ctype-punct: Likewise.
10410         * modules/unictype/ctype-space: Likewise.
10411         * modules/unictype/ctype-upper: Likewise.
10412         * modules/unictype/ctype-xdigit: Likewise.
10413         * modules/unictype/decimal-digit: Likewise.
10414         * modules/unictype/digit: Likewise.
10415         * modules/unictype/mirror: Likewise.
10416         * modules/unictype/numeric: Likewise.
10417         * modules/unictype/property-alphabetic: Likewise.
10418         * modules/unictype/property-ascii-hex-digit: Likewise.
10419         * modules/unictype/property-bidi-arabic-digit: Likewise.
10420         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
10421         * modules/unictype/property-bidi-block-separator: Likewise.
10422         * modules/unictype/property-bidi-boundary-neutral: Likewise.
10423         * modules/unictype/property-bidi-common-separator: Likewise.
10424         * modules/unictype/property-bidi-control: Likewise.
10425         * modules/unictype/property-bidi-embedding-or-override: Likewise.
10426         * modules/unictype/property-bidi-eur-num-separator: Likewise.
10427         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
10428         * modules/unictype/property-bidi-european-digit: Likewise.
10429         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
10430         * modules/unictype/property-bidi-left-to-right: Likewise.
10431         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
10432         * modules/unictype/property-bidi-other-neutral: Likewise.
10433         * modules/unictype/property-bidi-pdf: Likewise.
10434         * modules/unictype/property-bidi-segment-separator: Likewise.
10435         * modules/unictype/property-bidi-whitespace: Likewise.
10436         * modules/unictype/property-byname: Likewise.
10437         * modules/unictype/property-combining: Likewise.
10438         * modules/unictype/property-composite: Likewise.
10439         * modules/unictype/property-currency-symbol: Likewise.
10440         * modules/unictype/property-dash: Likewise.
10441         * modules/unictype/property-decimal-digit: Likewise.
10442         * modules/unictype/property-default-ignorable-code-point: Likewise.
10443         * modules/unictype/property-deprecated: Likewise.
10444         * modules/unictype/property-diacritic: Likewise.
10445         * modules/unictype/property-extender: Likewise.
10446         * modules/unictype/property-format-control: Likewise.
10447         * modules/unictype/property-grapheme-base: Likewise.
10448         * modules/unictype/property-grapheme-extend: Likewise.
10449         * modules/unictype/property-grapheme-link: Likewise.
10450         * modules/unictype/property-hex-digit: Likewise.
10451         * modules/unictype/property-hyphen: Likewise.
10452         * modules/unictype/property-id-continue: Likewise.
10453         * modules/unictype/property-id-start: Likewise.
10454         * modules/unictype/property-ideographic: Likewise.
10455         * modules/unictype/property-ids-binary-operator: Likewise.
10456         * modules/unictype/property-ids-trinary-operator: Likewise.
10457         * modules/unictype/property-ignorable-control: Likewise.
10458         * modules/unictype/property-iso-control: Likewise.
10459         * modules/unictype/property-join-control: Likewise.
10460         * modules/unictype/property-left-of-pair: Likewise.
10461         * modules/unictype/property-line-separator: Likewise.
10462         * modules/unictype/property-logical-order-exception: Likewise.
10463         * modules/unictype/property-lowercase: Likewise.
10464         * modules/unictype/property-math: Likewise.
10465         * modules/unictype/property-non-break: Likewise.
10466         * modules/unictype/property-not-a-character: Likewise.
10467         * modules/unictype/property-numeric: Likewise.
10468         * modules/unictype/property-other-alphabetic: Likewise.
10469         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
10470         * modules/unictype/property-other-grapheme-extend: Likewise.
10471         * modules/unictype/property-other-id-continue: Likewise.
10472         * modules/unictype/property-other-id-start: Likewise.
10473         * modules/unictype/property-other-lowercase: Likewise.
10474         * modules/unictype/property-other-math: Likewise.
10475         * modules/unictype/property-other-uppercase: Likewise.
10476         * modules/unictype/property-paired-punctuation: Likewise.
10477         * modules/unictype/property-paragraph-separator: Likewise.
10478         * modules/unictype/property-pattern-syntax: Likewise.
10479         * modules/unictype/property-pattern-white-space: Likewise.
10480         * modules/unictype/property-private-use: Likewise.
10481         * modules/unictype/property-punctuation: Likewise.
10482         * modules/unictype/property-quotation-mark: Likewise.
10483         * modules/unictype/property-radical: Likewise.
10484         * modules/unictype/property-sentence-terminal: Likewise.
10485         * modules/unictype/property-soft-dotted: Likewise.
10486         * modules/unictype/property-space: Likewise.
10487         * modules/unictype/property-terminal-punctuation: Likewise.
10488         * modules/unictype/property-test: Likewise.
10489         * modules/unictype/property-titlecase: Likewise.
10490         * modules/unictype/property-unassigned-code-value: Likewise.
10491         * modules/unictype/property-unified-ideograph: Likewise.
10492         * modules/unictype/property-uppercase: Likewise.
10493         * modules/unictype/property-variation-selector: Likewise.
10494         * modules/unictype/property-white-space: Likewise.
10495         * modules/unictype/property-xid-continue: Likewise.
10496         * modules/unictype/property-xid-start: Likewise.
10497         * modules/unictype/property-zero-width: Likewise.
10498         * modules/unictype/scripts: Likewise.
10499         * modules/unictype/syntax-c-ident: Likewise.
10500         * modules/unictype/syntax-c-whitespace: Likewise.
10501         * modules/unictype/syntax-java-ident: Likewise.
10502         * modules/unictype/syntax-java-whitespace: Likewise.
10503         * modules/unilbrk/u8-possible-linebreaks: Likewise.
10504         * modules/unilbrk/u8-width-linebreaks: Likewise.
10505         * modules/unilbrk/u16-possible-linebreaks: Likewise.
10506         * modules/unilbrk/u16-width-linebreaks: Likewise.
10507         * modules/unilbrk/u32-possible-linebreaks: Likewise.
10508         * modules/unilbrk/u32-width-linebreaks: Likewise.
10509         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
10510         * modules/unilbrk/ulc-width-linebreaks: Likewise.
10511         * modules/uniname/uniname: Likewise.
10512         * modules/uninorm/canonical-decomposition: Likewise.
10513         * modules/uninorm/composition: Likewise.
10514         * modules/uninorm/decomposing-form: Likewise.
10515         * modules/uninorm/decomposition: Likewise.
10516         * modules/uninorm/filter: Likewise.
10517         * modules/uninorm/nfc: Likewise.
10518         * modules/uninorm/nfd: Likewise.
10519         * modules/uninorm/nfkc: Likewise.
10520         * modules/uninorm/nfkd: Likewise.
10521         * modules/uninorm/u8-normalize: Likewise.
10522         * modules/uninorm/u8-normcmp: Likewise.
10523         * modules/uninorm/u8-normcoll: Likewise.
10524         * modules/uninorm/u8-normxfrm: Likewise.
10525         * modules/uninorm/u16-normalize: Likewise.
10526         * modules/uninorm/u16-normcmp: Likewise.
10527         * modules/uninorm/u16-normcoll: Likewise.
10528         * modules/uninorm/u16-normxfrm: Likewise.
10529         * modules/uninorm/u32-normalize: Likewise.
10530         * modules/uninorm/u32-normcmp: Likewise.
10531         * modules/uninorm/u32-normcoll: Likewise.
10532         * modules/uninorm/u32-normxfrm: Likewise.
10533         * modules/unistdio/u8-asnprintf: Likewise.
10534         * modules/unistdio/u8-asprintf: Likewise.
10535         * modules/unistdio/u8-snprintf: Likewise.
10536         * modules/unistdio/u8-sprintf: Likewise.
10537         * modules/unistdio/u8-u8-asnprintf: Likewise.
10538         * modules/unistdio/u8-u8-asprintf: Likewise.
10539         * modules/unistdio/u8-u8-snprintf: Likewise.
10540         * modules/unistdio/u8-u8-sprintf: Likewise.
10541         * modules/unistdio/u8-u8-vasnprintf: Likewise.
10542         * modules/unistdio/u8-u8-vasprintf: Likewise.
10543         * modules/unistdio/u8-u8-vsnprintf: Likewise.
10544         * modules/unistdio/u8-u8-vsprintf: Likewise.
10545         * modules/unistdio/u8-vasnprintf: Likewise.
10546         * modules/unistdio/u8-vasprintf: Likewise.
10547         * modules/unistdio/u8-vsnprintf: Likewise.
10548         * modules/unistdio/u8-vsprintf: Likewise.
10549         * modules/unistdio/u16-asnprintf: Likewise.
10550         * modules/unistdio/u16-asprintf: Likewise.
10551         * modules/unistdio/u16-snprintf: Likewise.
10552         * modules/unistdio/u16-sprintf: Likewise.
10553         * modules/unistdio/u16-u16-asnprintf: Likewise.
10554         * modules/unistdio/u16-u16-asprintf: Likewise.
10555         * modules/unistdio/u16-u16-snprintf: Likewise.
10556         * modules/unistdio/u16-u16-sprintf: Likewise.
10557         * modules/unistdio/u16-u16-vasnprintf: Likewise.
10558         * modules/unistdio/u16-u16-vasprintf: Likewise.
10559         * modules/unistdio/u16-u16-vsnprintf: Likewise.
10560         * modules/unistdio/u16-u16-vsprintf: Likewise.
10561         * modules/unistdio/u16-vasnprintf: Likewise.
10562         * modules/unistdio/u16-vasprintf: Likewise.
10563         * modules/unistdio/u16-vsnprintf: Likewise.
10564         * modules/unistdio/u16-vsprintf: Likewise.
10565         * modules/unistdio/u32-asnprintf: Likewise.
10566         * modules/unistdio/u32-asprintf: Likewise.
10567         * modules/unistdio/u32-snprintf: Likewise.
10568         * modules/unistdio/u32-sprintf: Likewise.
10569         * modules/unistdio/u32-u32-asnprintf: Likewise.
10570         * modules/unistdio/u32-u32-asprintf: Likewise.
10571         * modules/unistdio/u32-u32-snprintf: Likewise.
10572         * modules/unistdio/u32-u32-sprintf: Likewise.
10573         * modules/unistdio/u32-u32-vasnprintf: Likewise.
10574         * modules/unistdio/u32-u32-vasprintf: Likewise.
10575         * modules/unistdio/u32-u32-vsnprintf: Likewise.
10576         * modules/unistdio/u32-u32-vsprintf: Likewise.
10577         * modules/unistdio/u32-vasnprintf: Likewise.
10578         * modules/unistdio/u32-vasprintf: Likewise.
10579         * modules/unistdio/u32-vsnprintf: Likewise.
10580         * modules/unistdio/u32-vsprintf: Likewise.
10581         * modules/unistdio/ulc-asnprintf: Likewise.
10582         * modules/unistdio/ulc-asprintf: Likewise.
10583         * modules/unistdio/ulc-fprintf: Likewise.
10584         * modules/unistdio/ulc-snprintf: Likewise.
10585         * modules/unistdio/ulc-sprintf: Likewise.
10586         * modules/unistdio/ulc-vasnprintf: Likewise.
10587         * modules/unistdio/ulc-vasprintf: Likewise.
10588         * modules/unistdio/ulc-vfprintf: Likewise.
10589         * modules/unistdio/ulc-vsnprintf: Likewise.
10590         * modules/unistdio/ulc-vsprintf: Likewise.
10591         * modules/unistr/u8-check: Likewise.
10592         * modules/unistr/u8-chr: Likewise.
10593         * modules/unistr/u8-cmp: Likewise.
10594         * modules/unistr/u8-cmp2: Likewise.
10595         * modules/unistr/u8-cpy: Likewise.
10596         * modules/unistr/u8-cpy-alloc: Likewise.
10597         * modules/unistr/u8-endswith: Likewise.
10598         * modules/unistr/u8-mblen: Likewise.
10599         * modules/unistr/u8-mbsnlen: Likewise.
10600         * modules/unistr/u8-mbtouc: Likewise.
10601         * modules/unistr/u8-mbtouc-unsafe: Likewise.
10602         * modules/unistr/u8-mbtoucr: Likewise.
10603         * modules/unistr/u8-move: Likewise.
10604         * modules/unistr/u8-next: Likewise.
10605         * modules/unistr/u8-prev: Likewise.
10606         * modules/unistr/u8-set: Likewise.
10607         * modules/unistr/u8-startswith: Likewise.
10608         * modules/unistr/u8-stpcpy: Likewise.
10609         * modules/unistr/u8-stpncpy: Likewise.
10610         * modules/unistr/u8-strcat: Likewise.
10611         * modules/unistr/u8-strchr: Likewise.
10612         * modules/unistr/u8-strcmp: Likewise.
10613         * modules/unistr/u8-strcoll: Likewise.
10614         * modules/unistr/u8-strcpy: Likewise.
10615         * modules/unistr/u8-strcspn: Likewise.
10616         * modules/unistr/u8-strdup: Likewise.
10617         * modules/unistr/u8-strlen: Likewise.
10618         * modules/unistr/u8-strmblen: Likewise.
10619         * modules/unistr/u8-strmbtouc: Likewise.
10620         * modules/unistr/u8-strncat: Likewise.
10621         * modules/unistr/u8-strncmp: Likewise.
10622         * modules/unistr/u8-strncpy: Likewise.
10623         * modules/unistr/u8-strnlen: Likewise.
10624         * modules/unistr/u8-strpbrk: Likewise.
10625         * modules/unistr/u8-strrchr: Likewise.
10626         * modules/unistr/u8-strspn: Likewise.
10627         * modules/unistr/u8-strstr: Likewise.
10628         * modules/unistr/u8-strtok: Likewise.
10629         * modules/unistr/u8-to-u16: Likewise.
10630         * modules/unistr/u8-to-u32: Likewise.
10631         * modules/unistr/u8-uctomb: Likewise.
10632         * modules/unistr/u16-check: Likewise.
10633         * modules/unistr/u16-chr: Likewise.
10634         * modules/unistr/u16-cmp: Likewise.
10635         * modules/unistr/u16-cmp2: Likewise.
10636         * modules/unistr/u16-cpy: Likewise.
10637         * modules/unistr/u16-cpy-alloc: Likewise.
10638         * modules/unistr/u16-endswith: Likewise.
10639         * modules/unistr/u16-mblen: Likewise.
10640         * modules/unistr/u16-mbsnlen: Likewise.
10641         * modules/unistr/u16-mbtouc: Likewise.
10642         * modules/unistr/u16-mbtouc-unsafe: Likewise.
10643         * modules/unistr/u16-mbtoucr: Likewise.
10644         * modules/unistr/u16-move: Likewise.
10645         * modules/unistr/u16-next: Likewise.
10646         * modules/unistr/u16-prev: Likewise.
10647         * modules/unistr/u16-set: Likewise.
10648         * modules/unistr/u16-startswith: Likewise.
10649         * modules/unistr/u16-stpcpy: Likewise.
10650         * modules/unistr/u16-stpncpy: Likewise.
10651         * modules/unistr/u16-strcat: Likewise.
10652         * modules/unistr/u16-strchr: Likewise.
10653         * modules/unistr/u16-strcmp: Likewise.
10654         * modules/unistr/u16-strcoll: Likewise.
10655         * modules/unistr/u16-strcpy: Likewise.
10656         * modules/unistr/u16-strcspn: Likewise.
10657         * modules/unistr/u16-strdup: Likewise.
10658         * modules/unistr/u16-strlen: Likewise.
10659         * modules/unistr/u16-strmblen: Likewise.
10660         * modules/unistr/u16-strmbtouc: Likewise.
10661         * modules/unistr/u16-strncat: Likewise.
10662         * modules/unistr/u16-strncmp: Likewise.
10663         * modules/unistr/u16-strncpy: Likewise.
10664         * modules/unistr/u16-strnlen: Likewise.
10665         * modules/unistr/u16-strpbrk: Likewise.
10666         * modules/unistr/u16-strrchr: Likewise.
10667         * modules/unistr/u16-strspn: Likewise.
10668         * modules/unistr/u16-strstr: Likewise.
10669         * modules/unistr/u16-strtok: Likewise.
10670         * modules/unistr/u16-to-u32: Likewise.
10671         * modules/unistr/u16-to-u8: Likewise.
10672         * modules/unistr/u16-uctomb: Likewise.
10673         * modules/unistr/u32-check: Likewise.
10674         * modules/unistr/u32-chr: Likewise.
10675         * modules/unistr/u32-cmp: Likewise.
10676         * modules/unistr/u32-cmp2: Likewise.
10677         * modules/unistr/u32-cpy: Likewise.
10678         * modules/unistr/u32-cpy-alloc: Likewise.
10679         * modules/unistr/u32-endswith: Likewise.
10680         * modules/unistr/u32-mblen: Likewise.
10681         * modules/unistr/u32-mbsnlen: Likewise.
10682         * modules/unistr/u32-mbtouc: Likewise.
10683         * modules/unistr/u32-mbtouc-unsafe: Likewise.
10684         * modules/unistr/u32-mbtoucr: Likewise.
10685         * modules/unistr/u32-move: Likewise.
10686         * modules/unistr/u32-next: Likewise.
10687         * modules/unistr/u32-prev: Likewise.
10688         * modules/unistr/u32-set: Likewise.
10689         * modules/unistr/u32-startswith: Likewise.
10690         * modules/unistr/u32-stpcpy: Likewise.
10691         * modules/unistr/u32-stpncpy: Likewise.
10692         * modules/unistr/u32-strcat: Likewise.
10693         * modules/unistr/u32-strchr: Likewise.
10694         * modules/unistr/u32-strcmp: Likewise.
10695         * modules/unistr/u32-strcoll: Likewise.
10696         * modules/unistr/u32-strcpy: Likewise.
10697         * modules/unistr/u32-strcspn: Likewise.
10698         * modules/unistr/u32-strdup: Likewise.
10699         * modules/unistr/u32-strlen: Likewise.
10700         * modules/unistr/u32-strmblen: Likewise.
10701         * modules/unistr/u32-strmbtouc: Likewise.
10702         * modules/unistr/u32-strncat: Likewise.
10703         * modules/unistr/u32-strncmp: Likewise.
10704         * modules/unistr/u32-strncpy: Likewise.
10705         * modules/unistr/u32-strnlen: Likewise.
10706         * modules/unistr/u32-strpbrk: Likewise.
10707         * modules/unistr/u32-strrchr: Likewise.
10708         * modules/unistr/u32-strspn: Likewise.
10709         * modules/unistr/u32-strstr: Likewise.
10710         * modules/unistr/u32-strtok: Likewise.
10711         * modules/unistr/u32-to-u16: Likewise.
10712         * modules/unistr/u32-to-u8: Likewise.
10713         * modules/unistr/u32-uctomb: Likewise.
10714         * modules/uniwbrk/u8-wordbreaks: Likewise.
10715         * modules/uniwbrk/u16-wordbreaks: Likewise.
10716         * modules/uniwbrk/u32-wordbreaks: Likewise.
10717         * modules/uniwbrk/ulc-wordbreaks: Likewise.
10718         * modules/uniwbrk/wordbreak-property: Likewise.
10719         * modules/uniwidth/u8-strwidth: Likewise.
10720         * modules/uniwidth/u8-width: Likewise.
10721         * modules/uniwidth/u16-strwidth: Likewise.
10722         * modules/uniwidth/u16-width: Likewise.
10723         * modules/uniwidth/u32-strwidth: Likewise.
10724         * modules/uniwidth/u32-width: Likewise.
10725         * modules/uniwidth/width: Likewise.
10726         * modules/unicase/cased-tests (Makefile.am): Link all test programs
10727         with $(LIBUNISTRING).
10728         * modules/unicase/ignorable-tests: Likewise.
10729         * modules/unicase/locale-language-tests: Likewise.
10730         * modules/unicase/tolower-tests: Likewise.
10731         * modules/unicase/totitle-tests: Likewise.
10732         * modules/unicase/toupper-tests: Likewise.
10733         * modules/unicase/u8-casecmp-tests: Likewise.
10734         * modules/unicase/u8-casecoll-tests: Likewise.
10735         * modules/unicase/u8-casefold-tests: Likewise.
10736         * modules/unicase/u8-is-cased-tests: Likewise.
10737         * modules/unicase/u8-is-casefolded-tests: Likewise.
10738         * modules/unicase/u8-is-lowercase-tests: Likewise.
10739         * modules/unicase/u8-is-titlecase-tests: Likewise.
10740         * modules/unicase/u8-is-uppercase-tests: Likewise.
10741         * modules/unicase/u8-tolower-tests: Likewise.
10742         * modules/unicase/u8-totitle-tests: Likewise.
10743         * modules/unicase/u8-toupper-tests: Likewise.
10744         * modules/unicase/u16-casecmp-tests: Likewise.
10745         * modules/unicase/u16-casecoll-tests: Likewise.
10746         * modules/unicase/u16-casefold-tests: Likewise.
10747         * modules/unicase/u16-is-cased-tests: Likewise.
10748         * modules/unicase/u16-is-casefolded-tests: Likewise.
10749         * modules/unicase/u16-is-lowercase-tests: Likewise.
10750         * modules/unicase/u16-is-titlecase-tests: Likewise.
10751         * modules/unicase/u16-is-uppercase-tests: Likewise.
10752         * modules/unicase/u16-tolower-tests: Likewise.
10753         * modules/unicase/u16-totitle-tests: Likewise.
10754         * modules/unicase/u16-toupper-tests: Likewise.
10755         * modules/unicase/u32-casecmp-tests: Likewise.
10756         * modules/unicase/u32-casecoll-tests: Likewise.
10757         * modules/unicase/u32-casefold-tests: Likewise.
10758         * modules/unicase/u32-is-cased-tests: Likewise.
10759         * modules/unicase/u32-is-casefolded-tests: Likewise.
10760         * modules/unicase/u32-is-lowercase-tests: Likewise.
10761         * modules/unicase/u32-is-titlecase-tests: Likewise.
10762         * modules/unicase/u32-is-uppercase-tests: Likewise.
10763         * modules/unicase/u32-tolower-tests: Likewise.
10764         * modules/unicase/u32-totitle-tests: Likewise.
10765         * modules/unicase/u32-toupper-tests: Likewise.
10766         * modules/unicase/ulc-casecmp-tests: Likewise.
10767         * modules/unicase/ulc-casecoll-tests: Likewise.
10768         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
10769         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
10770         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
10771         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
10772         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
10773         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
10774         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
10775         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
10776         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
10777         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
10778         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
10779         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
10780         * modules/unictype/bidicategory-byname-tests: Likewise.
10781         * modules/unictype/bidicategory-name-tests: Likewise.
10782         * modules/unictype/bidicategory-of-tests: Likewise.
10783         * modules/unictype/bidicategory-test-tests: Likewise.
10784         * modules/unictype/block-list-tests: Likewise.
10785         * modules/unictype/block-of-tests: Likewise.
10786         * modules/unictype/block-test-tests: Likewise.
10787         * modules/unictype/category-C-tests: Likewise.
10788         * modules/unictype/category-Cc-tests: Likewise.
10789         * modules/unictype/category-Cf-tests: Likewise.
10790         * modules/unictype/category-Cn-tests: Likewise.
10791         * modules/unictype/category-Co-tests: Likewise.
10792         * modules/unictype/category-Cs-tests: Likewise.
10793         * modules/unictype/category-L-tests: Likewise.
10794         * modules/unictype/category-Ll-tests: Likewise.
10795         * modules/unictype/category-Lm-tests: Likewise.
10796         * modules/unictype/category-Lo-tests: Likewise.
10797         * modules/unictype/category-Lt-tests: Likewise.
10798         * modules/unictype/category-Lu-tests: Likewise.
10799         * modules/unictype/category-M-tests: Likewise.
10800         * modules/unictype/category-Mc-tests: Likewise.
10801         * modules/unictype/category-Me-tests: Likewise.
10802         * modules/unictype/category-Mn-tests: Likewise.
10803         * modules/unictype/category-N-tests: Likewise.
10804         * modules/unictype/category-Nd-tests: Likewise.
10805         * modules/unictype/category-Nl-tests: Likewise.
10806         * modules/unictype/category-No-tests: Likewise.
10807         * modules/unictype/category-P-tests: Likewise.
10808         * modules/unictype/category-Pc-tests: Likewise.
10809         * modules/unictype/category-Pd-tests: Likewise.
10810         * modules/unictype/category-Pe-tests: Likewise.
10811         * modules/unictype/category-Pf-tests: Likewise.
10812         * modules/unictype/category-Pi-tests: Likewise.
10813         * modules/unictype/category-Po-tests: Likewise.
10814         * modules/unictype/category-Ps-tests: Likewise.
10815         * modules/unictype/category-S-tests: Likewise.
10816         * modules/unictype/category-Sc-tests: Likewise.
10817         * modules/unictype/category-Sk-tests: Likewise.
10818         * modules/unictype/category-Sm-tests: Likewise.
10819         * modules/unictype/category-So-tests: Likewise.
10820         * modules/unictype/category-Z-tests: Likewise.
10821         * modules/unictype/category-Zl-tests: Likewise.
10822         * modules/unictype/category-Zp-tests: Likewise.
10823         * modules/unictype/category-Zs-tests: Likewise.
10824         * modules/unictype/category-and-not-tests: Likewise.
10825         * modules/unictype/category-and-tests: Likewise.
10826         * modules/unictype/category-byname-tests: Likewise.
10827         * modules/unictype/category-name-tests: Likewise.
10828         * modules/unictype/category-none-tests: Likewise.
10829         * modules/unictype/category-of-tests: Likewise.
10830         * modules/unictype/category-or-tests: Likewise.
10831         * modules/unictype/category-test-withtable-tests: Likewise.
10832         * modules/unictype/combining-class-tests: Likewise.
10833         * modules/unictype/ctype-alnum-tests: Likewise.
10834         * modules/unictype/ctype-alpha-tests: Likewise.
10835         * modules/unictype/ctype-blank-tests: Likewise.
10836         * modules/unictype/ctype-cntrl-tests: Likewise.
10837         * modules/unictype/ctype-digit-tests: Likewise.
10838         * modules/unictype/ctype-graph-tests: Likewise.
10839         * modules/unictype/ctype-lower-tests: Likewise.
10840         * modules/unictype/ctype-print-tests: Likewise.
10841         * modules/unictype/ctype-punct-tests: Likewise.
10842         * modules/unictype/ctype-space-tests: Likewise.
10843         * modules/unictype/ctype-upper-tests: Likewise.
10844         * modules/unictype/ctype-xdigit-tests: Likewise.
10845         * modules/unictype/decimal-digit-tests: Likewise.
10846         * modules/unictype/digit-tests: Likewise.
10847         * modules/unictype/mirror-tests: Likewise.
10848         * modules/unictype/numeric-tests: Likewise.
10849         * modules/unictype/property-alphabetic-tests: Likewise.
10850         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
10851         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
10852         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
10853         * modules/unictype/property-bidi-block-separator-tests: Likewise.
10854         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
10855         * modules/unictype/property-bidi-common-separator-tests: Likewise.
10856         * modules/unictype/property-bidi-control-tests: Likewise.
10857         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
10858         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
10859         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
10860         * modules/unictype/property-bidi-european-digit-tests: Likewise.
10861         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
10862         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
10863         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
10864         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
10865         * modules/unictype/property-bidi-pdf-tests: Likewise.
10866         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
10867         * modules/unictype/property-bidi-whitespace-tests: Likewise.
10868         * modules/unictype/property-byname-tests: Likewise.
10869         * modules/unictype/property-combining-tests: Likewise.
10870         * modules/unictype/property-composite-tests: Likewise.
10871         * modules/unictype/property-currency-symbol-tests: Likewise.
10872         * modules/unictype/property-dash-tests: Likewise.
10873         * modules/unictype/property-decimal-digit-tests: Likewise.
10874         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
10875         * modules/unictype/property-deprecated-tests: Likewise.
10876         * modules/unictype/property-diacritic-tests: Likewise.
10877         * modules/unictype/property-extender-tests: Likewise.
10878         * modules/unictype/property-format-control-tests: Likewise.
10879         * modules/unictype/property-grapheme-base-tests: Likewise.
10880         * modules/unictype/property-grapheme-extend-tests: Likewise.
10881         * modules/unictype/property-grapheme-link-tests: Likewise.
10882         * modules/unictype/property-hex-digit-tests: Likewise.
10883         * modules/unictype/property-hyphen-tests: Likewise.
10884         * modules/unictype/property-id-continue-tests: Likewise.
10885         * modules/unictype/property-id-start-tests: Likewise.
10886         * modules/unictype/property-ideographic-tests: Likewise.
10887         * modules/unictype/property-ids-binary-operator-tests: Likewise.
10888         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
10889         * modules/unictype/property-ignorable-control-tests: Likewise.
10890         * modules/unictype/property-iso-control-tests: Likewise.
10891         * modules/unictype/property-join-control-tests: Likewise.
10892         * modules/unictype/property-left-of-pair-tests: Likewise.
10893         * modules/unictype/property-line-separator-tests: Likewise.
10894         * modules/unictype/property-logical-order-exception-tests: Likewise.
10895         * modules/unictype/property-lowercase-tests: Likewise.
10896         * modules/unictype/property-math-tests: Likewise.
10897         * modules/unictype/property-non-break-tests: Likewise.
10898         * modules/unictype/property-not-a-character-tests: Likewise.
10899         * modules/unictype/property-numeric-tests: Likewise.
10900         * modules/unictype/property-other-alphabetic-tests: Likewise.
10901         * modules/unictype/property-other-default-ignorable-code-point-tests:
10902         Likewise.
10903         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
10904         * modules/unictype/property-other-id-continue-tests: Likewise.
10905         * modules/unictype/property-other-id-start-tests: Likewise.
10906         * modules/unictype/property-other-lowercase-tests: Likewise.
10907         * modules/unictype/property-other-math-tests: Likewise.
10908         * modules/unictype/property-other-uppercase-tests: Likewise.
10909         * modules/unictype/property-paired-punctuation-tests: Likewise.
10910         * modules/unictype/property-paragraph-separator-tests: Likewise.
10911         * modules/unictype/property-pattern-syntax-tests: Likewise.
10912         * modules/unictype/property-pattern-white-space-tests: Likewise.
10913         * modules/unictype/property-private-use-tests: Likewise.
10914         * modules/unictype/property-punctuation-tests: Likewise.
10915         * modules/unictype/property-quotation-mark-tests: Likewise.
10916         * modules/unictype/property-radical-tests: Likewise.
10917         * modules/unictype/property-sentence-terminal-tests: Likewise.
10918         * modules/unictype/property-soft-dotted-tests: Likewise.
10919         * modules/unictype/property-space-tests: Likewise.
10920         * modules/unictype/property-terminal-punctuation-tests: Likewise.
10921         * modules/unictype/property-test-tests: Likewise.
10922         * modules/unictype/property-titlecase-tests: Likewise.
10923         * modules/unictype/property-unassigned-code-value-tests: Likewise.
10924         * modules/unictype/property-unified-ideograph-tests: Likewise.
10925         * modules/unictype/property-uppercase-tests: Likewise.
10926         * modules/unictype/property-variation-selector-tests: Likewise.
10927         * modules/unictype/property-white-space-tests: Likewise.
10928         * modules/unictype/property-xid-continue-tests: Likewise.
10929         * modules/unictype/property-xid-start-tests: Likewise.
10930         * modules/unictype/property-zero-width-tests: Likewise.
10931         * modules/unictype/scripts-tests: Likewise.
10932         * modules/unictype/syntax-c-ident-tests: Likewise.
10933         * modules/unictype/syntax-c-whitespace-tests: Likewise.
10934         * modules/unictype/syntax-java-ident-tests: Likewise.
10935         * modules/unictype/syntax-java-whitespace-tests: Likewise.
10936         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
10937         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
10938         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
10939         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
10940         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
10941         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
10942         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
10943         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
10944         * modules/uniname/uniname-tests: Likewise.
10945         * modules/uninorm/canonical-decomposition-tests: Likewise.
10946         * modules/uninorm/compat-decomposition-tests: Likewise.
10947         * modules/uninorm/composition-tests: Likewise.
10948         * modules/uninorm/decomposing-form-tests: Likewise.
10949         * modules/uninorm/decomposition-tests: Likewise.
10950         * modules/uninorm/filter-tests: Likewise.
10951         * modules/uninorm/nfc-tests: Likewise.
10952         * modules/uninorm/nfd-tests: Likewise.
10953         * modules/uninorm/nfkc-tests: Likewise.
10954         * modules/uninorm/nfkd-tests: Likewise.
10955         * modules/uninorm/u8-normcmp-tests: Likewise.
10956         * modules/uninorm/u8-normcoll-tests: Likewise.
10957         * modules/uninorm/u16-normcmp-tests: Likewise.
10958         * modules/uninorm/u16-normcoll-tests: Likewise.
10959         * modules/uninorm/u32-normcmp-tests: Likewise.
10960         * modules/uninorm/u32-normcoll-tests: Likewise.
10961         * modules/unistdio/u8-asnprintf-tests: Likewise.
10962         * modules/unistdio/u8-vasnprintf-tests: Likewise.
10963         * modules/unistdio/u8-vasprintf-tests: Likewise.
10964         * modules/unistdio/u8-vsnprintf-tests: Likewise.
10965         * modules/unistdio/u8-vsprintf-tests: Likewise.
10966         * modules/unistdio/u16-asnprintf-tests: Likewise.
10967         * modules/unistdio/u16-vasnprintf-tests: Likewise.
10968         * modules/unistdio/u16-vasprintf-tests: Likewise.
10969         * modules/unistdio/u16-vsnprintf-tests: Likewise.
10970         * modules/unistdio/u16-vsprintf-tests: Likewise.
10971         * modules/unistdio/u32-asnprintf-tests: Likewise.
10972         * modules/unistdio/u32-vasnprintf-tests: Likewise.
10973         * modules/unistdio/u32-vasprintf-tests: Likewise.
10974         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10975         * modules/unistdio/u32-vsprintf-tests: Likewise.
10976         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10977         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10978         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10979         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10980         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10981         * modules/unistr/u8-check-tests: Likewise.
10982         * modules/unistr/u8-chr-tests: Likewise.
10983         * modules/unistr/u8-cmp-tests: Likewise.
10984         * modules/unistr/u8-cmp2-tests: Likewise.
10985         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10986         * modules/unistr/u8-cpy-tests: Likewise.
10987         * modules/unistr/u8-mblen-tests: Likewise.
10988         * modules/unistr/u8-mbsnlen-tests: Likewise.
10989         * modules/unistr/u8-mbtouc-tests: Likewise.
10990         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10991         * modules/unistr/u8-mbtoucr-tests: Likewise.
10992         * modules/unistr/u8-move-tests: Likewise.
10993         * modules/unistr/u8-next-tests: Likewise.
10994         * modules/unistr/u8-prev-tests: Likewise.
10995         * modules/unistr/u8-set-tests: Likewise.
10996         * modules/unistr/u8-stpcpy-tests: Likewise.
10997         * modules/unistr/u8-stpncpy-tests: Likewise.
10998         * modules/unistr/u8-strcat-tests: Likewise.
10999         * modules/unistr/u8-strcmp-tests: Likewise.
11000         * modules/unistr/u8-strcoll-tests: Likewise.
11001         * modules/unistr/u8-strcpy-tests: Likewise.
11002         * modules/unistr/u8-strdup-tests: Likewise.
11003         * modules/unistr/u8-strlen-tests: Likewise.
11004         * modules/unistr/u8-strmblen-tests: Likewise.
11005         * modules/unistr/u8-strmbtouc-tests: Likewise.
11006         * modules/unistr/u8-strncat-tests: Likewise.
11007         * modules/unistr/u8-strncmp-tests: Likewise.
11008         * modules/unistr/u8-strncpy-tests: Likewise.
11009         * modules/unistr/u8-strnlen-tests: Likewise.
11010         * modules/unistr/u8-to-u16-tests: Likewise.
11011         * modules/unistr/u8-to-u32-tests: Likewise.
11012         * modules/unistr/u8-uctomb-tests: Likewise.
11013         * modules/unistr/u16-check-tests: Likewise.
11014         * modules/unistr/u16-chr-tests: Likewise.
11015         * modules/unistr/u16-cmp-tests: Likewise.
11016         * modules/unistr/u16-cmp2-tests: Likewise.
11017         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11018         * modules/unistr/u16-cpy-tests: Likewise.
11019         * modules/unistr/u16-mblen-tests: Likewise.
11020         * modules/unistr/u16-mbsnlen-tests: Likewise.
11021         * modules/unistr/u16-mbtouc-tests: Likewise.
11022         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11023         * modules/unistr/u16-mbtoucr-tests: Likewise.
11024         * modules/unistr/u16-move-tests: Likewise.
11025         * modules/unistr/u16-next-tests: Likewise.
11026         * modules/unistr/u16-prev-tests: Likewise.
11027         * modules/unistr/u16-set-tests: Likewise.
11028         * modules/unistr/u16-stpcpy-tests: Likewise.
11029         * modules/unistr/u16-stpncpy-tests: Likewise.
11030         * modules/unistr/u16-strcat-tests: Likewise.
11031         * modules/unistr/u16-strcmp-tests: Likewise.
11032         * modules/unistr/u16-strcoll-tests: Likewise.
11033         * modules/unistr/u16-strcpy-tests: Likewise.
11034         * modules/unistr/u16-strdup-tests: Likewise.
11035         * modules/unistr/u16-strlen-tests: Likewise.
11036         * modules/unistr/u16-strmblen-tests: Likewise.
11037         * modules/unistr/u16-strmbtouc-tests: Likewise.
11038         * modules/unistr/u16-strncat-tests: Likewise.
11039         * modules/unistr/u16-strncmp-tests: Likewise.
11040         * modules/unistr/u16-strncpy-tests: Likewise.
11041         * modules/unistr/u16-strnlen-tests: Likewise.
11042         * modules/unistr/u16-to-u32-tests: Likewise.
11043         * modules/unistr/u16-to-u8-tests: Likewise.
11044         * modules/unistr/u16-uctomb-tests: Likewise.
11045         * modules/unistr/u32-check-tests: Likewise.
11046         * modules/unistr/u32-chr-tests: Likewise.
11047         * modules/unistr/u32-cmp-tests: Likewise.
11048         * modules/unistr/u32-cmp2-tests: Likewise.
11049         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11050         * modules/unistr/u32-cpy-tests: Likewise.
11051         * modules/unistr/u32-mblen-tests: Likewise.
11052         * modules/unistr/u32-mbsnlen-tests: Likewise.
11053         * modules/unistr/u32-mbtouc-tests: Likewise.
11054         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11055         * modules/unistr/u32-mbtoucr-tests: Likewise.
11056         * modules/unistr/u32-move-tests: Likewise.
11057         * modules/unistr/u32-next-tests: Likewise.
11058         * modules/unistr/u32-prev-tests: Likewise.
11059         * modules/unistr/u32-set-tests: Likewise.
11060         * modules/unistr/u32-stpcpy-tests: Likewise.
11061         * modules/unistr/u32-stpncpy-tests: Likewise.
11062         * modules/unistr/u32-strcat-tests: Likewise.
11063         * modules/unistr/u32-strcmp-tests: Likewise.
11064         * modules/unistr/u32-strcoll-tests: Likewise.
11065         * modules/unistr/u32-strcpy-tests: Likewise.
11066         * modules/unistr/u32-strdup-tests: Likewise.
11067         * modules/unistr/u32-strlen-tests: Likewise.
11068         * modules/unistr/u32-strmblen-tests: Likewise.
11069         * modules/unistr/u32-strmbtouc-tests: Likewise.
11070         * modules/unistr/u32-strncat-tests: Likewise.
11071         * modules/unistr/u32-strncmp-tests: Likewise.
11072         * modules/unistr/u32-strncpy-tests: Likewise.
11073         * modules/unistr/u32-strnlen-tests: Likewise.
11074         * modules/unistr/u32-to-u16-tests: Likewise.
11075         * modules/unistr/u32-to-u8-tests: Likewise.
11076         * modules/unistr/u32-uctomb-tests: Likewise.
11077         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11078         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11079         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11080         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11081         * modules/uniwidth/u8-strwidth-tests: Likewise.
11082         * modules/uniwidth/u8-width-tests: Likewise.
11083         * modules/uniwidth/u16-strwidth-tests: Likewise.
11084         * modules/uniwidth/u16-width-tests: Likewise.
11085         * modules/uniwidth/u32-strwidth-tests: Likewise.
11086         * modules/uniwidth/u32-width-tests: Likewise.
11087         * modules/uniwidth/width-tests: Likewise.
11088
11089 2010-05-18  Richard Jones  <rjones@redhat.com>
11090
11091         doc: users.txt: list hivex
11092         * users.txt: Add hivex.
11093
11094 2010-05-18  Richard Jones  <rjones@redhat.com>
11095
11096         doc: users.txt: list febootstrap
11097         * users.txt: Add febootstrap.
11098
11099 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11100
11101         bootstrap: fix an error when gnulib is not used as a git submodule
11102         * build-aux/bootstrap (gnulib_path): If its length is zero then
11103         assign "gnulib" to it.
11104         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11105
11106 2010-05-16  Bruno Haible  <bruno@clisp.org>
11107
11108         Avoid autoconf warnings about AM_ICONV.
11109         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11110         2.64.
11111
11112 2010-05-16  Bruno Haible  <bruno@clisp.org>
11113
11114         absolute-header: Make the macro usable in more situations.
11115         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11116         from gl_ABSOLUTE_HEADER.
11117         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11118
11119 2010-05-16  James Youngman  <jay@gnu.org>
11120
11121         doc: update users.txt
11122         * users.txt: Add CSSC.
11123
11124 2010-05-16  Jim Meyering  <meyering@redhat.com>
11125
11126         init.sh: fix an error in the previous change; add more comments
11127         * tests/init.sh: Compare exit code in loop against 9, not 2.
11128         Patch by Bruno Haible.
11129         Make the two tests more similar by adding an empty "then" clause.
11130         Add comments.
11131
11132         init.sh: avoid unnecessary shell re-exec
11133         * tests/init.sh: Improve the re-exec-required check to first test the
11134         current shell.  If it passes the test, do not search for a shell that
11135         does pass, and do not re-exec.  This test is particularly contorted to
11136         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11137         of $(...) evokes a syntax error and causes immediate shell exit with
11138         status 2.  Bruno Haible reported that the re-exec made it impossible
11139         to single-step through any init.sh-using script.
11140
11141 2010-05-16  Bruno Haible  <bruno@clisp.org>
11142
11143         Fix collision between gnulib's and libintl's printf replacements.
11144         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11145         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11146         (printf): When using GNU C, map the __printf__ function to rpl_printf
11147         via __asm__. When not using GNU C, define rpl_printf instead of
11148         __printf__.
11149         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11150         commit.
11151         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11152         commit.
11153         * m4/asm-underscore.m4: New file.
11154         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11155         * modules/stdio (Files): Add m4/asm-underscore.m4.
11156         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11157         Reported by Ben Pfaff.
11158
11159 2010-05-16  Bruno Haible  <bruno@clisp.org>
11160
11161         verify: Avoid skipping the test on openSUSE 11.0.
11162         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11163
11164 2010-05-13  Bruno Haible  <bruno@clisp.org>
11165
11166         Avoid useless warnings from G++.
11167         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11168         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11170
11171 2010-05-11  Jim Meyering  <meyering@redhat.com>
11172
11173         maint.mk: tweak preceding change
11174         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11175         regexps tighter by anchoring at EOL, and make the new group "shy"
11176         for slightly decreased overhead.
11177
11178 2010-05-11  Eric Blake  <eblake@redhat.com>
11179
11180         maint.mk: gnulib doesn't guarantee NSIG
11181         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11182
11183 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11184
11185         test-pwrite.c: Remove unused variable declaration.
11186         * tests/test-pwrite.c (main): Remove read_buf declaration.
11187
11188         Remove useless test-pwrite.sh file.
11189         * tests/test-pwrite.sh: Delete file.
11190         * modules/pwrite-tests: Remove references.
11191         Reported by Bruno Haible.
11192
11193 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11194
11195         init.sh: fix a typo
11196         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11197
11198 2010-05-10  Jim Meyering  <meyering@redhat.com>
11199
11200         maint.mk: avoid using a temporary file in the always-defined-macros check
11201         * top/maint.mk (.re-defmac): Remove rule.
11202         (gl_trap_): Remove definition.
11203         (sc_prohibit_always-defined_macros): Rewrite not to create and
11204         depend on a temporary file.  Instead, depend on GNU grep's ability
11205         to read a list of regular expressions from stdin when given "-f -".
11206
11207 2010-05-09  Bruno Haible  <bruno@clisp.org>
11208
11209         Update to GNU gettext 0.18, part 1.
11210         * m4/gettext.m4: Update to GNU gettext 0.18.
11211         * m4/intl.m4: Likewise.
11212         * m4/po.m4: Likewise.
11213         * modules/gettext (Files): Add m4/fcntl-o.m4.
11214         (configure.ac): Require gettext infrastructure from version 0.18.
11215
11216 2010-05-09  Jim Meyering  <meyering@redhat.com>
11217
11218         init.sh: enable MALLOC_PERTURB_
11219         * tests/init.sh: Enable glibc's malloc-perturbing option.
11220
11221         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11222         With my recent change in init.sh from the two-line form:
11223             -#   : ${srcdir=.}
11224             -#   . "$srcdir/init.sh"; path_prepend_ .
11225             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11226         I noticed that using the one-line form would cause this test
11227         to fail with a false-positive, or to stop working altogether,
11228         depending on whether help-version changed or all the tests did.
11229         * top/maint.mk (_hv_regex): Remove this definition.
11230         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11231         (_hv_regex_strong): Use a stronger regex to check for conformance.
11232         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11233         Give a separate diagnostic for lack of conforming use.
11234
11235         maint.mk: prohibit definition of symbols defined by gnulib
11236         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11237         definition of symbols defined by gnulib.
11238
11239 2010-05-09  Bruno Haible  <bruno@clisp.org>
11240
11241         acl: Avoid test failure on Cygwin-hosted mingw.
11242         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
11243
11244 2010-05-09  Bruno Haible  <bruno@clisp.org>
11245
11246         error: Use system's fcntl function.
11247         * lib/error.c (fcntl): Undefine.
11248
11249 2010-05-09  Jim Meyering  <meyering@redhat.com>
11250
11251         verify: adjust formatting to be more consistent
11252         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
11253         argument-list '('s, and after one comma.
11254
11255 2010-05-09  Bruno Haible  <bruno@clisp.org>
11256
11257         error: More reliable output on mingw.
11258         * lib/error.c: Include <windows.h>.
11259         (is_open): New function.
11260         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
11261         defined.
11262
11263 2010-05-09  Bruno Haible  <bruno@clisp.org>
11264
11265         vasnprintf: Fix syntax errors in libintl build on mingw.
11266         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
11267         pad_ourselves and prec_ourselves after use.
11268
11269 2010-05-08  Bruno Haible  <bruno@clisp.org>
11270
11271         * lib/config.charset: Update comments for Cygwin 1.7.
11272         * lib/localcharset.c: Likewise.
11273
11274 2010-05-07  Jim Meyering  <meyering@redhat.com>
11275
11276         init.sh: improve comments
11277         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
11278         . "${srcdir=.}/init.sh"; path_prepend_ .
11279         Add a note about path_prepend_ and the alternative of using
11280         TESTS_ENVIRONMENT.
11281
11282 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11283
11284         exclude: Unescape hashed patterns in wildcard mode.
11285         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
11286         to the hash list.
11287         * tests/test-exclude8.sh: New test case.
11288         * modules/exclude-tests: Add new test.
11289
11290 2010-05-05  Eric Blake  <eblake@redhat.com>
11291
11292         verify: automate tests
11293         * modules/verify-tests: New module.
11294         * tests/test-verify.sh: New file.
11295         * tests/test-verify.c: Guard each negative test with a unique id.
11296         Also avoid warning about unused left hand of comma expressions.
11297
11298 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11299
11300         Further improvements to verify.h, suggested by Eric Blake.
11301         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
11302         the GL_* versions, to avoid collision with OpenGL.
11303         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
11304         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
11305         than testing merely whether it's defined.
11306
11307         Modify verify.h to pacify gcc -Wredundant_decls.
11308         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
11309         These use the prefix "GL_" since they're likely to be useful elsewhere.
11310         We may need to break them out into a different .h file.
11311         (__COUNTER__): Define to 0 if the compiler doesn't support it.
11312         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
11313         of verify_function__.
11314
11315 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11316
11317         Tests for module pwrite.
11318         * modules/pwrite-tests: New file.
11319         * tests/test-pwrite.sh: New file.
11320         * tests/test-pwrite.c: New file.
11321
11322         New module pwrite.
11323         * lib/unistd.in.h (pwrite): New declaration.
11324         * lib/pwrite.c: New file, from glibc with modifications.
11325         * m4/pwrite.m4: New file.
11326         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
11327         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
11328         REPLACE_PWRITE.
11329         * modules/pwrite: New file.
11330         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
11331         REPLACE_PWRITE.
11332         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
11333         * doc/posix-functions/pwrite.texi: Mention the new module.
11334
11335 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
11336
11337         pread: Update documentation.
11338         * doc/posix-functions/pread.texi: Mention the 'pread' module.
11339
11340 2010-05-04  Eric Blake  <eblake@redhat.com>
11341
11342         docs: update cygwin progress
11343         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
11344         this bug.
11345         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
11346         Added in cygwin 1.7.2.
11347         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
11348         Likewise.
11349         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
11350         Likewise.
11351         * doc/glibc-functions/dup3.texi (dup3): Likewise.
11352         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11353         * doc/glibc-functions/accept4.texi (accept4): Likewise.
11354         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
11355         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
11356         Mention nproc module.
11357         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
11358         bug in cygwin 1.7.5 addition.
11359         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
11360         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
11361         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
11362         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
11363         1.7.5.
11364         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
11365         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
11366         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
11367         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
11368         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
11369         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
11370         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
11371         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
11372         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
11373         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
11374         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
11375         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
11376         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
11377         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
11378         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
11379         Likewise.
11380         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
11381         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
11382         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
11383         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
11384         Likewise.
11385         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
11386         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
11387         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
11388         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
11389         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
11390         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
11391         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
11392         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
11393         Likewise.
11394         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
11395         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
11396         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
11397         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
11398         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
11399         Likewise.
11400         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
11401         Likewise.
11402         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
11403         Likewise.
11404         * doc/glibc-functions/xdrrec_endofrecord.texi
11405         (xdrrec_endofrecord): Likewise.
11406         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
11407         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
11408         Likewise.
11409         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
11410         Likewise.
11411
11412 2010-05-04  Jim Meyering  <meyering@redhat.com>
11413
11414         gendocs.sh: make its "-s FILE" option more useful
11415         * build-aux/gendocs.sh: When honoring the -s FILE option, update
11416         $PACKAGE to reflect the probably-different basename of "FILE".
11417
11418 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11419
11420         bootstrap: don't ignore download_po_files failure
11421         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
11422         failure.
11423
11424 2010-05-03  Jim Meyering  <meyering@redhat.com>
11425
11426         maint.mk: allow to pass options to gendocs.sh
11427         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
11428         (gendocs_options_): New overridable variable.
11429
11430         gnu-web-doc-update: don't ignore configure or build failure
11431         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
11432
11433         announce-gen: backslash-escape '@'s in --help output
11434         * build-aux/announce-gen: Fix syntax errors.
11435
11436         maint.mk, announce-gen: allow project-specific announcement mail headers
11437         * top/maint.mk (translation_project_): Define default.
11438         (announcement_Cc_, announcement_mail_headers_): Likewise.
11439         (announcement): Invoke announce-gen with new --mail-headers option.
11440         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
11441
11442         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
11443         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
11444         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
11445         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
11446         line in the "err2" output file when running "make check" in verbose
11447         mode (i.e., with set -x enabled).
11448
11449 2010-05-03  Bruno Haible  <bruno@clisp.org>
11450
11451         wctob: Fix for weird platforms.
11452         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
11453         argument value.
11454
11455 2010-05-03  Jim Meyering  <meyering@redhat.com>
11456
11457         maint.mk: prohibit unwarranted use of <strings.h>
11458         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
11459         strings.h in a file that does not also use strcasecmp, strncasecmp,
11460         ffs or ffsll.
11461
11462         maint.mk: remove obsolete comments
11463         * top/maint.mk: Remove stale, commented-out rules.
11464
11465 2010-05-02  Bruno Haible  <bruno@clisp.org>
11466
11467         wcwidth: Declare also when it's aliased.
11468         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
11469         macro.
11470
11471 2010-05-02  Bruno Haible  <bruno@clisp.org>
11472
11473         Fix regression from 2010-04-25.
11474         * gnulib-tool (func_modules_transitive_closure): Check the status of
11475         all modules, not only of the tests that are of the form foo-tests where
11476         foo is a module.
11477
11478 2010-05-02  Bruno Haible  <bruno@clisp.org>
11479
11480         wctob: Work around nasty Cygwin 1.7.2 bug.
11481         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
11482         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
11483
11484 2010-05-01  Bruno Haible  <bruno@clisp.org>
11485
11486         fpurge: Sharper test.
11487         * tests/test-fpurge.c (main): Add one more ftell check.
11488         * modules/fpurge-tests (Depends-on): Add ftell.
11489         Suggested by Eric Blake.
11490
11491 2010-05-01  Bruno Haible  <bruno@clisp.org>
11492
11493         ftello: Another test.
11494         * tests/test-ftello3.c: New file.
11495         * modules/ftello-tests (Files): Add it.
11496         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11497         MOSTLYCLEANFILES.
11498
11499         ftell: Another test.
11500         * tests/test-ftell3.c: New file.
11501         * modules/ftell-tests (Files): Add it.
11502         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
11503         MOSTLYCLEANFILES.
11504
11505 2010-05-01  Bruno Haible  <bruno@clisp.org>
11506
11507         ftell, ftello: Work around Solaris bug.
11508         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
11509         * lib/ftello.c: Include stdio-impl.h.
11510         (ftello): On Solaris, when _IOWRT is set, compute the result without
11511         looking at _IOREAD.
11512         * modules/ftello (Files): Add lib/stdio-impl.h.
11513         * doc/posix-functions/ftell.texi: Mention Solaris bug.
11514         * doc/posix-functions/ftello.texi: Likewise.
11515         Reported by Eric Blake.
11516
11517 2010-05-01  Bruno Haible  <bruno@clisp.org>
11518
11519         freading: Adapt to special meaning of _IOREAD flag on Solaris.
11520         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
11521         the _IOWRT flag is also set.
11522
11523 2010-05-01  Bruno Haible  <bruno@clisp.org>
11524
11525         Fix doc about a HP-UX stdio bug.
11526         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
11527         * doc/posix-functions/ftello.texi: Likewise.
11528
11529 2010-05-01  Bruno Haible  <bruno@clisp.org>
11530
11531         lseek test: Fix failure on Solaris.
11532         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
11533         output.
11534
11535 2010-04-30  Jim Meyering  <meyering@redhat.com>
11536
11537         bootstrap: don't ignore failure to generate po*/Makevars
11538         * build-aux/bootstrap (with_gettext): Don't ignore failure
11539         to create po/Makevars or runtime-po/Makevars.
11540
11541 2010-04-29  Eric Blake  <eblake@redhat.com>
11542
11543         headers: relax license to LGPLv2+
11544         * modules/fcntl-h (License): Relax license.
11545         * modules/getopt-posix (License): Likewise.
11546         * modules/locale (License): Likewise.
11547         * modules/math (License): Likewise.
11548         * modules/pty (License): Likewise.
11549         * modules/sched (License): Likewise.
11550         * modules/search (License): Likewise.
11551         * modules/spawn (License): Likewise.
11552         * modules/stdarg (License): Likewise.
11553         * modules/sysexits (License): Likewise.
11554
11555 2010-04-29  Jim Meyering  <meyering@redhat.com>
11556
11557         inttypes: relax license to LGPLv2+
11558         * modules/inttypes (License): Relax license.
11559
11560 2010-04-29  Simon Josefsson  <simon@josefsson.org>
11561
11562         * top/maint.mk (indent): Run twice to produce idempotent results.
11563
11564 2010-04-28  Bruno Haible  <bruno@clisp.org>
11565
11566         getdate: Generate getdate.c in the source directory.
11567         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
11568         MOSTLYCLEANFILES.
11569         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
11570
11571 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
11572
11573         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
11574         is not declared as a const *; avoid warnings in that case.
11575
11576 2010-04-28  Eric Blake  <eblake@redhat.com>
11577
11578         canonicalize-lgpl: avoid compiler warning
11579         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
11580         declaration' / 'extraneous semicolon' warning with some compilers.
11581         Reported by Andreas Gruenbacher.
11582
11583 2010-04-28  Jim Meyering  <meyering@redhat.com>
11584
11585         init.sh: ensure a more reliable exit status when exiting via trap
11586         * tests/init.sh (setup_): Don't rely on $? in signal handler.
11587         Inspired by patches from Dmitry V. Levin.
11588         Also trap on signal 3 (SIGQUIT).
11589
11590 2010-04-27  Bruno Haible  <bruno@clisp.org>
11591
11592         Update doc about utimes().
11593         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
11594         'utimens' module.
11595         Reported by Andreas Gruenbacher <agruen@suse.de>.
11596
11597 2010-04-27  Eric Blake  <eblake@redhat.com>
11598
11599         full-read, full-write: relax license
11600         * modules/full-read (License): Drop to LGPLv2+.
11601         * modules/full-write (License): Likewise.
11602         * modules/safe-read (License): Likewise.
11603         * modules/safe-write (License): Likewise.
11604
11605         pthread: mention library for linking
11606         * modules/pthread (Link): Mention $(LIB_PTHREAD).
11607
11608 2010-04-27  Jim Meyering  <meyering@redhat.com>
11609
11610         maint.mk: fix a bug introduced in last change
11611         * top/maint.mk (gl_assured_headers_): Now that all names are on
11612         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
11613         is not anchored to end of word, it should be adequate.
11614
11615         maint.mk: avoid side-effect in latest syntax-check
11616         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
11617         to run commands via $(shell...), and hence to incur cost only when
11618         the new rule is actually run.
11619
11620         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
11621         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
11622         and use that to create a regexp used to detect all #if HAVE_..._H uses.
11623         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
11624         (gl_assured_headers_, az_, AZ_): Define.
11625         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
11626
11627 2010-04-26  Jim Meyering  <jim@meyering.net>
11628             Bruno Haible  <bruno@clisp.org>
11629
11630         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
11631         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
11632         Prompted by an exchange with Gilles Espinasse.
11633
11634 2010-04-26  Jim Meyering  <meyering@redhat.com>
11635
11636         git-version-gen: aesthetic tweak
11637         * build-aux/git-version-gen: Use "$nl" rather than a literal,
11638         so that the command remains on a single line.
11639
11640 2010-04-26  Eric Blake  <eblake@redhat.com>
11641
11642         git-version-gen: allow use on EBCDIC hosts
11643         * build-aux/git-version-gen (dirty): Use literal rather than tying
11644         ourselves to ascii.
11645         Reported by Steve Goetze.
11646
11647 2010-04-25  Bruno Haible  <bruno@clisp.org>
11648
11649         netdb: Add support for GNULIB_POSIXCHECK.
11650         * lib/netdb.in.h: Include warn-on-use.h.
11651         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
11652         functions are used when GNULIB_POSIXCHECK is defined and the
11653         getaddrinfo module is not in use.
11654         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
11655         freeaddrinfo, gai_strerror, getnameinfo are declared.
11656         * modules/netdb (Depends-on): Add warn-on-use.
11657         (Makefile.am): Include warn-on-use.h in netdb.h.
11658
11659 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
11660
11661         build: avoid "make check" failure without .git/ directory
11662         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
11663         there is no .git/ directory.
11664
11665 2010-04-25  Bruno Haible  <bruno@clisp.org>
11666
11667         ptsname: Fix misuse of ttyname_r.
11668         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
11669         of errno.
11670
11671 2010-04-25  Bruno Haible  <bruno@clisp.org>
11672
11673         ttyname_r: Make it work on Solaris 10.
11674         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
11675         if the system function has the POSIX declaration. Test whether the
11676         function fails if the buffer is less than 128 bytes large.
11677         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
11678         system's ttyname_r function. Provide a reasonably large buffer.
11679         * modules/ttyname_r (Depends-on): Add extensions.
11680         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
11681
11682 2010-04-25  Bruno Haible  <bruno@clisp.org>
11683
11684         Use the 'extensions' module for some more functions on Solaris.
11685         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
11686         module.
11687         * doc/posix-functions/ctime_r.texi: Likewise.
11688         * doc/posix-functions/getgrgid_r.texi: Likewise.
11689         * doc/posix-functions/getgrnam_r.texi: Likewise.
11690         * doc/posix-functions/getpwnam_r.texi: Likewise.
11691         * doc/posix-functions/getpwuid_r.texi: Likewise.
11692         * doc/posix-functions/readdir_r.texi: Likewise.
11693         * doc/posix-functions/sigwait.texi: Likewise.
11694         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
11695         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
11696
11697 2010-04-25  Bruno Haible  <bruno@clisp.org>
11698
11699         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
11700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
11701         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
11702         * lib/ttyname_r.c: Include <limits.h>.
11703         (ttyname_r): Define using the system's ttyname_r function, if it exists
11704         and not on Solaris.
11705         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
11706         set.
11707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
11708         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
11709         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
11710         Reported by Simon Josefsson.
11711
11712 2010-04-25  Bruno Haible  <bruno@clisp.org>
11713
11714         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
11715         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
11716         * doc/posix-functions/ctime_r.texi: Likewise.
11717         * doc/posix-functions/getgrgid_r.texi: Likewise.
11718         * doc/posix-functions/getgrnam_r.texi: Likewise.
11719         * doc/posix-functions/getlogin_r.texi: Likewise.
11720         * doc/posix-functions/getpwnam_r.texi: Likewise.
11721         * doc/posix-functions/getpwuid_r.texi: Likewise.
11722         * doc/posix-functions/readdir_r.texi: Likewise.
11723         * doc/posix-functions/sigwait.texi: Likewise.
11724         * doc/posix-functions/ttyname_r.texi: Likewise.
11725         Reported by Simon Josefsson.
11726
11727 2010-04-25  Bruno Haible  <bruno@clisp.org>
11728
11729         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
11730         * gnulib-tool (func_usage): Document that --with-*-tests options apply
11731         also to --create-testdir.
11732         (func_acceptable): Don't consider the status of *-tests modules here.
11733         (func_modules_transitive_closure): Consider it here, before including a
11734         test module.
11735         (func_import, func_create_testdir): Set inc_all_direct_tests,
11736         inc_all_indirect_tests.
11737         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
11738         --create-testdir and --create-megatestdir.
11739
11740 2010-04-25  Bruno Haible  <bruno@clisp.org>
11741
11742         gnulib-tool: Add --without-*-tests options.
11743         * gnulib-tool (func_usage): Document the --without-*-tests options.
11744         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
11745         excl_unportable_tests): New variables.
11746         Fail if they are specified with --import or --update.
11747         (func_acceptable): Respect the excl_*_tests variables.
11748         (func_import): Set the excl_*_tests variables to empty.
11749
11750 2010-04-25  Simon Josefsson  <simon@josefsson.org>
11751             Bruno Haible  <bruno@clisp.org>
11752
11753         Work around a MacOS X 10.4 bug with openpty.
11754         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
11755         * tests/test-openpty.c (main): Close the master side explicitly.
11756
11757 2010-04-25  Bruno Haible  <bruno@clisp.org>
11758
11759         strnlen: Fix a C++ test error on MacOS X and Solaris.
11760         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
11761         the function is not declared.
11762         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
11763         Simon Josefsson.
11764
11765 2010-04-24  Bruno Haible  <bruno@clisp.org>
11766
11767         Avoid a gcc warning.
11768         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
11769         of correct type for %08lx directive.
11770         Reported by Eric Blake.
11771
11772 2010-04-24  Bruno Haible  <bruno@clisp.org>
11773
11774         vasnprintf: Correct errno value in case of out-of-memory.
11775         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
11776         or sprintf. Use the errno value from SNPRINTF or sprintf.
11777         Reported by Ian Beckwith <ianb@erislabs.net>.
11778
11779 2010-04-24  Bruno Haible  <bruno@clisp.org>
11780
11781         ansi-c++-opt: Find correct compiler when cross-compiling.
11782         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
11783         AC_CHECK_PROGS.
11784         Reported by Simon Josefsson.
11785
11786 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
11787
11788         vc-list-files: Add support for subversion
11789         * build-aux/vc-list-files: Use "svn list" to generate the list of
11790         files controlled by subversion.
11791
11792 2010-04-23  Jim Meyering  <meyering@redhat.com>
11793
11794         vc-list-files tests: convert to use init.sh
11795         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
11796         path_prepend_.
11797         Use Exit, not exit.
11798         Use skip_ rather than open coding it.
11799         Remove trap set-up and compare definitions.
11800         * tests/test-vc-list-files-git.sh: Likewise.
11801         * modules/vc-list-files-tests (Files): Add tests/init.sh.
11802
11803 2010-04-22  Simon Josefsson  <simon@josefsson.org>
11804
11805         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
11806         backup files.
11807
11808 2010-04-21  Simon Josefsson  <simon@josefsson.org>
11809
11810         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
11811
11812 2010-04-20  Eric Blake  <eblake@redhat.com>
11813
11814         tests: be robust to ignored SIGPIPE
11815         * tests/test-select-in.sh: Consume all output.
11816         * tests/test-lseek.sh: Check correct exit status, while avoiding
11817         EPIPE.
11818
11819 2010-04-20  Simon Josefsson  <simon@josefsson.org>
11820             Bruno Haible  <bruno@clisp.org>
11821
11822         visibility: Don't use -fvisibility if it leads to a warning.
11823         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
11824         yes, don't pretend that visibility works if it leads to a warning.
11825         Reported by Mike Gran <spk121@yahoo.com>.
11826
11827 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
11828
11829         * build-aux/bootstrap: Use "git -h" for testing for supported options
11830         instead of "git --help".  The short-form option only shows a summary,
11831         and doesn't layout the full man page.  Grep for the full option name
11832         in the summary, too.
11833
11834 2010-04-19  Bruno Haible  <bruno@clisp.org>
11835
11836         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
11837         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
11838         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
11839         mention of RELOCATABLE_STRIP.
11840         Reported by Sylvain Beucler <beuc@beuc.net>.
11841
11842 2010-04-19  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/diffseq.h: Fix typo in comment.
11845         Reported by Eric Blake.
11846
11847 2010-04-19  Bruno Haible  <bruno@clisp.org>
11848
11849         ioctl: Move autoconf macro to a .m4 file.
11850         * m4/ioctl.m4: New file, extracted from modules/ioctl.
11851         * modules/ioctl (Files): Add it.
11852         (configure.ac): Simply invoke gl_FUNC_IOCTL.
11853         Reported by Ian Beckwith <ianb@erislabs.net>.
11854
11855 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
11856             Bruno Haible  <bruno@clisp.org>
11857
11858         diffseq: Accommodate use-case with abstract arrays.
11859         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
11860         is not defined.
11861         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
11862         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
11863
11864 2010-04-18  Bruno Haible  <bruno@clisp.org>
11865
11866         * doc/posix-headers/stdbool.texi: More precise wording.
11867
11868 2010-04-17  Jim Meyering  <meyering@redhat.com>
11869
11870         maint.mk: use gnu-style indentation in an embedded perl script
11871         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
11872         Rename variable: s/two/last_two_bytes/
11873
11874 2010-04-16  Eric Blake  <eblake@redhat.com>
11875
11876         test-stdbool: skip test that fails with Solaris CC
11877         * tests/test-stdbool.c (f): Skip test that causes compilation
11878         error under buggy C++ compiler.
11879         * lib/stdbool.in.h: Document the limitation.
11880         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
11881
11882         setenv: allow compilation with C++
11883         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11884         register keyword.
11885
11886         stdint: allow test to pass with C++
11887         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
11888
11889         getopt: allow compilation with C++
11890         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
11891         struct.
11892         * lib/getopt.c (_getopt_internal_r): Use correct type.
11893         Reported by Dagobert Michelson, via Joel E. Denny.
11894
11895 2010-04-16  Bruno Haible  <bruno@clisp.org>
11896
11897         Override netdb.h always.
11898         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
11899         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
11900         Reported by Ludovic Courtès <ludo@gnu.org>.
11901
11902 2010-04-15  Bruno Haible  <bruno@clisp.org>
11903
11904         openpty: Fix mistake from 2010-03-21.
11905         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
11906         Reported by Simon Josefsson.
11907
11908 2010-04-15  Eric Blake  <eblake@redhat.com>
11909
11910         test-forkpty: fix expected signature
11911         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
11912         Reported by Simon Josefsson.
11913
11914 2010-04-15  Jim Meyering  <meyering@redhat.com>
11915
11916         maint.mk: texinfo_suffix_re_: correct the default regexp
11917         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
11918
11919         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
11920         make it configurable via texinfo_suffix_re_.
11921
11922 2010-04-14  Eric Blake  <eblake@redhat.com>
11923
11924         strtok_r: relax license to LGPLv2+
11925         * modules/strtok_r (License): Relax license.
11926         Reported by Matthias Bolte.
11927
11928 2010-04-14  Simon Josefsson  <simon@josefsson.org>
11929
11930         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
11931         version 1.4.4 by default instead of requiring the libgcrypt
11932         version used during build.  This makes it possible to use the
11933         application with older but still binary compatible libgcrypt
11934         versions.
11935
11936 2010-04-13  Eric Blake  <eblake@redhat.com>
11937
11938         getopt-gnu: match recent glibc fixes and posix ruling
11939         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
11940         '+' handling, when requesting extensions.
11941         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
11942         'W;' handling.
11943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
11944         * doc/posix-functions/getopt.texi (getopt): Document this.
11945         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11946         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11947         Likewise.
11948
11949         getopt: merge bug fixes from glibc
11950         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
11951         diagnostics.  Honor '+:' correctly.  Reject ';'.
11952
11953         getopt-posix: detect MacOS bug
11954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
11955         optind when missing a required argument.
11956         * doc/posix-functions/getopt.texi (getopt): Document the bug.
11957         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11958         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11959         Likewise.
11960
11961         getopt-posix: avoid spurious failure on Solaris
11962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
11963         an indicator that setting optind=1 is sufficient for reset.
11964
11965         getopt-posix: avoid spurious failure on FreeBSD
11966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
11967         in POSIX mode, since the m4 test uses it.
11968
11969         gnulib-tool: silence warning on BSD sh
11970         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
11971
11972 2010-04-13  Jim Meyering  <meyering@redhat.com>
11973
11974         doc: users.txt: GNU patch now uses gnulib
11975         * users.txt: Add patch.
11976
11977 2010-04-12  Jim Meyering  <meyering@redhat.com>
11978
11979         maint.mk: generate more concise timing data for syntax-check rules
11980         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11981         " done" from each line that reports a syntax-check test duration.
11982
11983 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11984
11985         git-version-gen: use "git update-index..." rather than "git status"
11986         * build-aux/git-version-gen: Use git update-index --refresh, not
11987         "git status".  With some versions of git, "git status" would fail
11988         to update the index and result in an unwarranted "-dirty" suffix.
11989
11990 2010-04-11  Jim Meyering  <meyering@redhat.com>
11991
11992         openat: correct formatting (no semantic change)
11993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11994         Suggested by Bruno Haible.
11995
11996 2010-04-11  Bruno Haible  <bruno@clisp.org>
11997
11998         Stricter declaration checking in testdirs.
11999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12000         If for_tests is true, augment AM_CPPFLAGS to define
12001         GNULIB_STRICT_CHECKING.
12002         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12003         GNULIB_STRICT_CHECKING is defined, verify that the function is
12004         declared.
12005
12006 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12007             Bruno Haible  <bruno@clisp.org>
12008
12009         libunistring: Improve configure output.
12010         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12011         Don't say "consider installing GNU libunistring" when checking again
12012         with libiconv.
12013
12014 2010-04-11  Bruno Haible  <bruno@clisp.org>
12015
12016         libunistring: Correct value of $LTLIBUNISTRING.
12017         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12018         correct the value of $LTLIBUNISTRING.
12019
12020 2010-04-11  Bruno Haible  <bruno@clisp.org>
12021
12022         havelib: Add static libraries to LIBS in the right order.
12023         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12024         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12025
12026 2010-04-11  Bruno Haible  <bruno@clisp.org>
12027
12028         libunistring: Detect libunistring also when it depends on libiconv.
12029         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12030         the second AC_LIB_HAVE_LINKFLAGS invocation.
12031
12032 2010-04-11  James Youngman  <jay@gnu.org>
12033
12034         close-stream: declare local scalars to be "const"
12035         * lib/close-stream.c (close_stream): Make boolean variables const
12036         to document the fact that we set but do not change them.
12037
12038 2010-04-11  Bruno Haible  <bruno@clisp.org>
12039
12040         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12041
12042 2010-04-11  Jim Meyering  <meyering@redhat.com>
12043
12044         maint.mk: don't include dist-check.mk
12045         * top/maint.mk: Remove bogus include directive.
12046
12047         maint.mk: improve empty-line-at-EOF check
12048         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12049         solution, rather than tail+Perl-based one.  The latter would read
12050         a few kilobytes from the end of each file, and did not handle empty
12051         files properly.
12052
12053         maint.mk: print the elapsed time for each syntax-check rule
12054         * top/maint.mk (sc_m_rules_): Save start time in a file.
12055         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12056         (local-check): Interpose the .z rules
12057
12058 2010-04-11  Jim Meyering  <meyering@redhat.com>
12059
12060         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12061         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12062         empty file with one that ends in an empty line.
12063
12064 2010-04-10  Bruno Haible  <bruno@clisp.org>
12065
12066         mkdir: Make it work on mingw64.
12067         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12068         * lib/mkdir.c: Update comment.
12069         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
12070
12071 2010-04-10  Bruno Haible  <bruno@clisp.org>
12072
12073         Don't override improved macro from newer autoconf.
12074         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12075         autoconf >= 2.62.
12076         Reported by Joel E. Denny <jdenny@clemson.edu>.
12077
12078 2010-04-10  Jim Meyering  <meyering@redhat.com>
12079
12080         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12081         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12082
12083         maint.mk: correct a diagnostic
12084         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12085         in diagnostic; now use $prohibit.
12086
12087 2010-04-10  Bruno Haible  <address@hidden>
12088
12089         fchownat: Fix a C++ test error on Solaris 8.
12090         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12091         the function does not exist.
12092
12093 2010-04-10  Bruno Haible  <bruno@clisp.org>
12094
12095         vasnprintf: Add more tests.
12096         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12097         (test_function): Test converting an invalid wide string.
12098
12099         vasnprintf: Correct handling of unconvertible wide string arguments.
12100         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12101         VASNPRINTF.
12102         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12103         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12104         smaller than the expected maximum need for the directive. Set errno to
12105         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12106         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12108         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12109         * modules/vasnprintf (Files): Add m4/printf.m4.
12110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12111
12112 2010-04-10  Bruno Haible  <bruno@clisp.org>
12113
12114         vasnprintf: Fix crash in %ls directive.
12115         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12116         string is passed as argument to %ls, with no precision and no width.
12117         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12118
12119 2010-04-10  Bruno Haible  <bruno@clisp.org>
12120
12121         vasnprintf: Fix multiple test failures on mingw.
12122         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12123         _snprintf, or snwprintf, not _snwprintf.
12124
12125 2010-04-10  Bruno Haible  <bruno@clisp.org>
12126
12127         write: Fix a C++ test error on mingw.
12128         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12129
12130 2010-04-10  Bruno Haible  <bruno@clisp.org>
12131
12132         vasnprintf test: Reduce code duplication.
12133         * tests/test-vasnprintf.c (test_function): New function, extracted from
12134         test_vasnprintf.
12135         (test_vasnprintf, test_asnprintf): Invoke it.
12136
12137 2010-04-10  Bruno Haible  <bruno@clisp.org>
12138
12139         strnlen: Fix warning in C++ mode on MacOS X.
12140         * lib/string.in.h (strnlen): Use the modern idiom.
12141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12142         defining strnlen as a macro already in <config.h>.
12143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12144         REPLACE_STRNLEN.
12145         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12146         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12147
12148 2010-04-08  James Youngman  <jay@gnu.org>
12149
12150         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12151         the example.
12152
12153 2010-04-09  Jim Meyering  <meyering@redhat.com>
12154
12155         maint.mk: print better diagnostic when there is no $(_hv_file)
12156         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12157         announce that when $(_hv_file) (aka help-version) does not exist.
12158
12159         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12160         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12161         not try to interpret its random input bytes.  Jarno Rajahalme reported
12162         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12163         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12164         (mktempd_): Likewise, just in case.
12165
12166         ftruncate: add two years to projected module removal date: 2012
12167         * m4/ftruncate.m4: Adjust comments.
12168
12169         ftruncate: mark module as obsolete; even MinGW provides it, now
12170         * modules/ftruncate (Status): Obsolete.
12171         (Notice): Say that.
12172         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12174
12175 2010-04-08  Bruno Haible  <bruno@clisp.org>
12176
12177         Fix side effects from tests-related modules.
12178         * modules/dprintf-posix (Comment): New section.
12179         * modules/fprintf-posix (Comment): Likewise.
12180         * modules/obstack-printf-posix (Comment): Likewise.
12181         * modules/printf-posix (Comment): Likewise.
12182         * modules/snprintf-posix (Comment): Likewise.
12183         * modules/sprintf-posix (Comment): Likewise.
12184         * modules/vasnprintf-posix (Comment): Likewise.
12185         * modules/vasprintf-posix (Comment): Likewise.
12186         * modules/vdprintf-posix (Comment): Likewise.
12187         * modules/vfprintf-posix (Comment): Likewise.
12188         * modules/vprintf-posix (Comment): Likewise.
12189         * modules/vsnprintf-posix (Comment): Likewise.
12190         * modules/vsprintf-posix (Comment): Likewise.
12191         * modules/xprintf-posix (Comment): Likewise.
12192         * modules/xvasprintf-posix (Comment): Likewise.
12193         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12194         * modules/floorf-tests (Depends-on): Likewise.
12195         * modules/round-tests (Depends-on): Likewise.
12196         * modules/roundf-tests (Depends-on): Likewise.
12197         * modules/trunc-tests (Depends-on): Likewise.
12198         * modules/truncf-tests (Depends-on): Likewise.
12199         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12200         'fprintf-posix' module is not present.
12201         * tests/test-floorf2.c (check): Likewise.
12202         * tests/test-trunc2.c (check): Likewise.
12203         * tests/test-truncf2.c (check): Likewise.
12204         * tests/test-round2.c (equal): Likewise.
12205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12206
12207 2010-04-07  Karl Berry  <karl@gnu.org>
12208
12209         * config/srclist.txt,
12210         * config/srclistvars.sh,
12211         * config/srclist-update: doc fixes.
12212
12213 2010-04-07  Jim Meyering  <meyering@redhat.com>
12214
12215         maint.mk: add a PATH crosschecking syntax-check rule
12216         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12217         Useful if you use a test like the one in help-version (coreutils,
12218         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12219         printed by prog --version.
12220
12221 2010-04-06  Bruno Haible  <bruno@clisp.org>
12222
12223         Fix link error on mingw.
12224         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12225         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12226
12227 2010-04-06  Bruno Haible  <bruno@clisp.org>
12228
12229         Assume rmdir exists.
12230         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12231
12232 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12233
12234         doc: update users.txt
12235         * users.txt: Add gcal.
12236
12237 2010-04-06  Jim Meyering  <meyering@redhat.com>
12238
12239         init.sh: simply unset TMPDIR rather than risking env -i
12240         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
12241         although it probably works fine on all Unix-based systems, some
12242         systems (Cygwin?) cannot tolerate a totally cleared environment.
12243         Suggestion from Eric Blake.
12244
12245 2010-04-06  Jim Meyering  <meyering@redhat.com>
12246
12247         init.sh: portability fix: use env's POSIX-specified -i option not -u
12248         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
12249         than unportable env -u.  Solaris 5.11's env lacks support for -u.
12250
12251 2010-04-05  Bruno Haible  <bruno@clisp.org>
12252
12253         btowc: Work around Cygwin 1.7.2 bug.
12254         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
12255         does not map NUL to 0.
12256         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
12257
12258 2010-04-05  Bruno Haible  <bruno@clisp.org>
12259
12260         Make the multithread modules work on Cygwin 1.7.2.
12261         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
12262         imported symbols can be declared weak, so that it returns "no" on
12263         Cygwin 1.7.2.
12264
12265 2010-04-05  Bruno Haible  <bruno@clisp.org>
12266
12267         Use the module 'strncat'.
12268         * modules/unistr/u8-strncat (Depends-on): Add strncat.
12269
12270         Tests for module 'strncat'.
12271         * modules/strncat-tests: New file.
12272         * tests/test-strncat.c: New file.
12273
12274         New module 'strncat'.
12275         * lib/string.in.h (strncat): New declaration.
12276         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
12277         * m4/strncat.m4: New file, based on m4/memchr.m4.
12278         * modules/strncat: New file.
12279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
12280         is declared.
12281         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
12282         REPLACE_STRNCAT.
12283         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
12284         REPLACE_STRNCAT.
12285         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
12286         module.
12287         * tests/test-string-c++.cc: Check signature of strncat.
12288
12289 2010-04-05  Jim Meyering  <meyering@redhat.com>
12290
12291         xstrtoumax-tests: convert to use init.sh
12292         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
12293         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12294         Use Exit, not exit.
12295         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12296
12297         xstrtoimax-tests: convert to use init.sh
12298         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
12299         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12300         Use Exit, not exit.
12301         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12302
12303 2010-04-05  Bruno Haible  <bruno@clisp.org>
12304
12305         sys_socket: Avoid #define replacements in C++ mode.
12306         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
12307         warning to the function if possible, rather than #defining the symbol
12308         to a dysfunctional alias.
12309
12310 2010-04-05  Bruno Haible  <bruno@clisp.org>
12311
12312         fseeko: Fix C++ test error on mingw.
12313         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
12314         gl_FUNC_FSEEKO.
12315         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
12316         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
12317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
12318         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
12319
12320 2010-04-05  Bruno Haible  <bruno@clisp.org>
12321
12322         duplocale: Improve test output.
12323         * tests/test-duplocale.c (main): Print reason for skipped test.
12324
12325 2010-04-05  Bruno Haible  <bruno@clisp.org>
12326
12327         Assume rmdir exists.
12328         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
12329         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
12330
12331 2010-04-05  Bruno Haible  <bruno@clisp.org>
12332
12333         Fix link error on Solaris 8 with cc.
12334         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
12335
12336 2010-04-05  Bruno Haible  <bruno@clisp.org>
12337
12338         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12339         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
12340
12341 2010-04-05  Bruno Haible  <bruno@clisp.org>
12342
12343         vasprintf: Update documentation.
12344         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
12345
12346 2010-04-05  Bruno Haible  <bruno@clisp.org>
12347
12348         ptsname: Improve test.
12349         * tests/test-ptsname.c (main): Also try the various master names of BSD
12350         systems.
12351
12352 2010-04-05  Bruno Haible  <bruno@clisp.org>
12353
12354         memchr: Avoid a possible C++ test error.
12355         * lib/string.in.h (memchr): Provide declaration if function is missing.
12356         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
12357         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
12358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
12359         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
12360
12361 2010-04-05  Bruno Haible  <bruno@clisp.org>
12362
12363         strtok_r: Improve idiom.
12364         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
12365         AC_LIBOBJ is used.
12366
12367 2010-04-05  Bruno Haible  <bruno@clisp.org>
12368
12369         strdup: Improve idiom.
12370         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
12371         AC_LIBOBJ is used.
12372         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
12373         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
12374         when AC_LIBOBJ is used.
12375
12376 2010-04-05  Bruno Haible  <bruno@clisp.org>
12377
12378         mbsinit, mbrtowc, wcrtomb: Improve idioms.
12379         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
12380         don't set REPLACE_MBSINIT to 1.
12381         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
12382         don't set REPLACE_MBRTOWC to 1.
12383         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
12384         exist, don't set REPLACE_MBSRTOWCS to 1.
12385         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
12386         exist, don't set REPLACE_MBSNRTOWCS to 1.
12387         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
12388         don't set REPLACE_WCRTOMB to 1.
12389         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
12390         exist, don't set REPLACE_WCSRTOMBS to 1.
12391         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
12392         exist, don't set REPLACE_WCSNRTOMBS to 1.
12393
12394 2010-04-05  Bruno Haible  <bruno@clisp.org>
12395
12396         ldexpl: Improve idiom.
12397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
12398         make sure to set HAVE_DECL_LDEXPL to 0.
12399
12400 2010-04-05  Jim Meyering  <meyering@redhat.com>
12401
12402         xstrtol-tests: convert to use init.sh
12403         * modules/xstrtol-tests (Files): Add tests/init.sh.
12404         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12405         Use Exit, not exit.
12406         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12407
12408         atexit-tests: convert to use init.sh
12409         * modules/atexit-tests (Files): Add tests/init.sh.
12410         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12411         Use Exit, not exit.
12412         Remove uses of $EXEEXT and "./" to run a program in the current dir.
12413
12414         init.sh: fix typo
12415         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
12416
12417         init.sh: make it easier for a test script to write to the tty, ...
12418         when using automake's parallel-tests mode.
12419         * tests/init.sh (stderr_fileno_): Define overridable variable.
12420         (warn_): New function, to use it.
12421         (fail_, skip_, framework_failure_): Use warn_.
12422
12423 2010-04-04  Bruno Haible  <bruno@clisp.org>
12424
12425         btowc: Avoid warning.
12426         * lib/btowc.c: Include <stdlib.h>.
12427         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
12428
12429 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12430             Bruno Haible  <bruno@clisp.org>
12431
12432         wchar: Port to NetBSD 1.5.
12433         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
12434         * lib/wctype.in.h (WEOF): Likewise.
12435
12436 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
12437             Bruno Haible  <bruno@clisp.org>
12438
12439         Port extended stdio to NetBSD 1.5.
12440         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
12441         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
12442         older.
12443
12444 2010-04-04  Bruno Haible  <bruno@clisp.org>
12445
12446         string: Remove unused substitution.
12447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12448         HAVE_DECL_STRERROR.
12449         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
12450
12451 2010-04-04  Bruno Haible  <bruno@clisp.org>
12452
12453         strtod: Avoid a possible C++ test error.
12454         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
12455         set REPLACE_STRTOD.
12456
12457 2010-04-04  Bruno Haible  <bruno@clisp.org>
12458
12459         strerror: Update documentation.
12460         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
12461
12462 2010-04-04  Bruno Haible  <bruno@clisp.org>
12463
12464         stdio: Fix some C++ test errors on Solaris 8 with GCC.
12465         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
12466         _GL_CXXALIAS_SYS_CAST.
12467
12468 2010-04-04  Bruno Haible  <bruno@clisp.org>
12469
12470         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
12471         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
12472         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
12473         REPLACE_FREXPL to 1.
12474         * doc/posix-functions/frexpl.texi: Update documentation.
12475
12476 2010-04-04  Bruno Haible  <bruno@clisp.org>
12477
12478         math: Fix some C++ test errors on Solaris 8 and Cygwin.
12479         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
12480
12481 2010-04-04  Bruno Haible  <bruno@clisp.org>
12482
12483         Implement nanosleep for native Windows.
12484         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
12485
12486 2010-04-04  Bruno Haible  <bruno@clisp.org>
12487
12488         math: Fix some C++ test errors on Solaris 8.
12489         * lib/math.in.h (truncf, trunc): Use simpler idiom.
12490
12491 2010-04-04  Bruno Haible  <bruno@clisp.org>
12492
12493         math: Fix some C++ test errors on Cygwin.
12494         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
12495         truncl): Provide declaration if the system does not have it.
12496         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
12497         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
12498         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
12499         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
12500         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
12501         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
12502         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
12503         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
12504         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
12505         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
12506         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
12507         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
12508         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
12509         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
12510         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
12511         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
12512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
12513         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12514         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12515         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
12516         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
12517         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
12518
12519 2010-04-04  Bruno Haible  <bruno@clisp.org>
12520
12521         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
12522         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12523         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12524         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12525         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12526         * m4/isinf.m4 (gl_ISINF): Likewise.
12527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12528
12529 2010-04-04  Bruno Haible  <bruno@clisp.org>
12530
12531         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
12532         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12533
12534 2010-04-04  Bruno Haible  <bruno@clisp.org>
12535
12536         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
12537         * modules/tmpfile (configure.ac): Update.
12538
12539         tmpfile: Fix C++ test error on mingw.
12540         * lib/stdio.in.h (tmpfile): New declaration.
12541         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
12542         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
12543         * modules/tmpfile (Depends-on): Add stdio.
12544         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12545         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
12546         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
12547         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
12548         REPLACE_TMPFILE.
12549         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
12550
12551 2010-04-04  Bruno Haible  <bruno@clisp.org>
12552
12553         ioctl: Fix C++ test error on mingw.
12554         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
12555         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
12556         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
12557
12558 2010-04-03  Bruno Haible  <bruno@clisp.org>
12559
12560         wcwidth: Fix C++ test error on mingw.
12561         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
12562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
12563         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
12564
12565 2010-04-03  Bruno Haible  <bruno@clisp.org>
12566
12567         nanosleep: Fix C++ test error on mingw.
12568         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
12569         * lib/time.in.h (nanosleep): Use modern idiom.
12570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
12571         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
12572         REPLACE_NANOSLEEP to 1.
12573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
12574         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
12575
12576 2010-04-03  Bruno Haible  <bruno@clisp.org>
12577
12578         strptime: Fix C++ test error on mingw.
12579         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
12580         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
12581         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
12582         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
12583         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
12584         not REPLACE_STRPTIME.
12585         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
12586         REPLACE_STRPTIME.
12587
12588 2010-04-03  Bruno Haible  <bruno@clisp.org>
12589
12590         timegm: Fix C++ test error on mingw.
12591         * lib/time.in.h (timegm): Use modern idiom.
12592         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
12593         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
12594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
12595         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
12596
12597 2010-04-03  Bruno Haible  <bruno@clisp.org>
12598
12599         timegm: Assume declaration if function exists.
12600         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
12601         if it exists. Don't clobber ac_cv_func_timegm.
12602
12603 2010-04-03  Bruno Haible  <bruno@clisp.org>
12604
12605         time_r: Fix C++ test error on mingw.
12606         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
12607         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
12608         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
12609         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
12610         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
12611
12612 2010-04-03  Bruno Haible  <bruno@clisp.org>
12613
12614         time_r: Minor updates.
12615         * modules/time_r (Description): Mention the provided functions.
12616         * lib/time_r.c: Don't include <string.h>.
12617         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
12618         * doc/posix-functions/localtime_r.texi: Likewise.
12619
12620 2010-04-03  Bruno Haible  <bruno@clisp.org>
12621
12622         time: Fix regression introduced on 2010-03-08.
12623         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
12624         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
12625
12626 2010-04-03  Jim Meyering  <meyering@redhat.com>
12627
12628         maint.mk: don't silently disable project-specific syntax-check rules
12629         * top/maint.mk (_prohibit_regexp): Define, to help people realize
12630         that they need to convert their project-specific syntax-check rules
12631         to use the new _sc_search_regexp.
12632
12633 2010-04-03  Bruno Haible  <bruno@clisp.org>
12634
12635         fchdir: Fix regression introduced on 2010-03-08.
12636         * lib/unistd.in.h (fchdir): Fix declaration.
12637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
12638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
12639         REPLACE_FCHDIR.
12640         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
12641         REPLACE_FCHDIR.
12642
12643 2010-04-03  Bruno Haible  <bruno@clisp.org>
12644
12645         getpagesize: Fix C++ test error on mingw.
12646         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
12647         system does not declare the function.
12648         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
12649         declared.
12650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12651         HAVE_DECL_GETPAGESIZE.
12652         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
12653
12654 2010-04-03  Bruno Haible  <bruno@clisp.org>
12655
12656         stdio: Make C++ tests work on mingw.
12657         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
12658         does not declare the function.
12659
12660 2010-04-03  Bruno Haible  <bruno@clisp.org>
12661
12662         ftello: Fix C++ test error on mingw.
12663         * lib/stdio.in.h (ftello): Use modern idiom.
12664         * lib/ftello.c (ftello): Renamed from rpl_ftello.
12665         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
12666         is missing and that it needs to be replaced.
12667         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
12668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
12669         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
12670
12671 2010-04-03  Bruno Haible  <bruno@clisp.org>
12672
12673         fseeko: Fix C++ test error on mingw.
12674         * lib/stdio.in.h (fseeko): Use modern idiom.
12675         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
12676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
12677         is missing and that it needs to be replaced.
12678         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
12679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
12680         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
12681
12682 2010-04-03  Bruno Haible  <bruno@clisp.org>
12683
12684         mkstemp: Fix C++ test error on mingw.
12685         * lib/stdlib.in.h (mkstemp): Use modern idiom.
12686         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
12687         function is missing and that it needs to be replaced.
12688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
12689         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
12690
12691 2010-04-03  Bruno Haible  <bruno@clisp.org>
12692
12693         stpncpy: Fix C++ test error on mingw.
12694         * lib/string.in.h (stpncpy): Use modern idiom.
12695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
12696         function is missing and that it needs to be replaced.
12697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12698         REPLACE_STPNCPY.
12699         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
12700
12701 2010-04-03  Bruno Haible  <bruno@clisp.org>
12702
12703         sys_stat: Fix C++ test error on mingw.
12704         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
12705         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
12706
12707 2010-04-03  Bruno Haible  <bruno@clisp.org>
12708
12709         pty: Update doc.
12710         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
12711
12712 2010-04-03  Bruno Haible  <bruno@clisp.org>
12713
12714         unistd: Fix C++ test error on mingw.
12715         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
12716
12717 2010-04-03  Bruno Haible  <bruno@clisp.org>
12718
12719         Update doc regarding mingw.
12720         * doc/glibc-functions/openpty.texi: Update regarding mingw.
12721         * doc/glibc-functions/login_tty.texi: Likewise.
12722         * doc/glibc-functions/forkpty.texi: Likewise.
12723
12724 2010-04-03  Bruno Haible  <bruno@clisp.org>
12725
12726         stdlib: Avoid compilation failure of c-strtold on mingw.
12727         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
12728
12729 2010-04-03  Bruno Haible  <bruno@clisp.org>
12730
12731         locale: Make C++ tests work on Cygwin and mingw.
12732         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
12733         cannot provide the function.
12734         Reported by Simon Josefsson.
12735
12736 2010-04-03  Bruno Haible  <bruno@clisp.org>
12737
12738         localename: Port to MacOS X 10.6.
12739         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
12740         memory layout of the locales in MacOS X 10.6 as well.
12741         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
12742
12743 2010-04-02  Bruno Haible  <bruno@clisp.org>
12744
12745         gnulib-tool: Ensure that long-running tests are executed last.
12746         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12747         running tests after the one for the other tests.
12748
12749 2010-04-02  Bruno Haible  <bruno@clisp.org>
12750
12751         gnulib-tool: Ensure the tests in the main directory are executed first.
12752         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
12753         start with the current directory.
12754
12755 2010-04-02  Bruno Haible  <bruno@clisp.org>
12756
12757         Tests for module 'havelib', moved here from GNU gettext.
12758         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
12759         modifications.
12760         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
12761         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
12762         with modifications.
12763         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
12764         modifications.
12765         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
12766         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
12767         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
12768         with modifications.
12769         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
12770         with modifications.
12771         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
12772         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
12773         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
12774         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
12775         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
12776         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
12777         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
12778         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
12779         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
12780         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
12781         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
12782         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
12783         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
12784         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
12785         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
12786         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
12787         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
12788         with modifications.
12789         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
12790         with modifications.
12791         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
12792         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
12793         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
12794         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
12795         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
12796         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
12797         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
12798         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
12799         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
12800         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
12801         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
12802         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
12803         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
12804         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
12805         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
12806         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
12807         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
12808         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
12809         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
12810         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
12811         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
12812         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
12813         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
12814         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
12815         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
12816         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
12817         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
12818         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
12819         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
12820         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
12821         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
12822         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
12823         * tests/havelib/rpathx/rpathx.c: New file, from
12824         gettext/autoconf-lib-link.
12825         * tests/havelib/rpathx/Makefile.am: New file, from
12826         gettext/autoconf-lib-link.
12827         * tests/havelib/rpathx/configure.ac: New file, from
12828         gettext/autoconf-lib-link with modifications.
12829         * tests/havelib/rpathy/rpathy.c: New file, from
12830         gettext/autoconf-lib-link.
12831         * tests/havelib/rpathy/Makefile.am: New file, from
12832         gettext/autoconf-lib-link.
12833         * tests/havelib/rpathy/configure.ac: New file, from
12834         gettext/autoconf-lib-link with modifications.
12835         * tests/havelib/rpathz/rpathz.c: New file, from
12836         gettext/autoconf-lib-link.
12837         * tests/havelib/rpathz/Makefile.am: New file, from
12838         gettext/autoconf-lib-link.
12839         * tests/havelib/rpathz/configure.ac: New file, from
12840         gettext/autoconf-lib-link with modifications.
12841         * tests/havelib/rpathlx/usex.c: New file, from
12842         gettext/autoconf-lib-link.
12843         * tests/havelib/rpathlx/Makefile.am: New file, from
12844         gettext/autoconf-lib-link.
12845         * tests/havelib/rpathlx/configure.ac: New file, from
12846         gettext/autoconf-lib-link with modifications.
12847         * tests/havelib/rpathly/usey.c: New file, from
12848         gettext/autoconf-lib-link.
12849         * tests/havelib/rpathly/Makefile.am: New file, from
12850         gettext/autoconf-lib-link.
12851         * tests/havelib/rpathly/configure.ac: New file, from
12852         gettext/autoconf-lib-link with modifications.
12853         * tests/havelib/rpathlz/usez.c: New file, from
12854         gettext/autoconf-lib-link.
12855         * tests/havelib/rpathlz/Makefile.am: New file, from
12856         gettext/autoconf-lib-link.
12857         * tests/havelib/rpathlz/configure.ac: New file, from
12858         gettext/autoconf-lib-link with modifications.
12859         * tests/havelib/rpathlyx/usey.c: New file, from
12860         gettext/autoconf-lib-link.
12861         * tests/havelib/rpathlyx/Makefile.am: New file, from
12862         gettext/autoconf-lib-link.
12863         * tests/havelib/rpathlyx/configure.ac: New file, from
12864         gettext/autoconf-lib-link with modifications.
12865         * tests/havelib/rpathlzyx/usez.c: New file, from
12866         gettext/autoconf-lib-link.
12867         * tests/havelib/rpathlzyx/Makefile.am: New file, from
12868         gettext/autoconf-lib-link.
12869         * tests/havelib/rpathlzyx/configure.ac: New file, from
12870         gettext/autoconf-lib-link with modifications.
12871         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
12872         with modifications.
12873
12874 2010-04-02  Bruno Haible  <bruno@clisp.org>
12875
12876         gnulib-tool: Create distributed built sources also for the tests.
12877         * gnulib-tool (func_create_testdir): Also generate distributed built
12878         sources in the tests directory.
12879
12880 2010-04-02  Bruno Haible  <bruno@clisp.org>
12881
12882         gnulib-tool: Obey user's environment variables.
12883         * gnulib-tool (func_create_testdir): When creating built sources,
12884         respect the environment variables for autoconf, automake, etc. given by
12885         the user.
12886
12887 2010-04-02  Bruno Haible  <bruno@clisp.org>
12888
12889         gnulib-tool: Provide the value of --m4-base to modules.
12890         * gnulib-tool (func_import, func_create_testdir): Emit a definition
12891         of gl_m4_base.
12892
12893 2010-04-02  Eric Blake  <eblake@redhat.com>
12894
12895         maint.mk: fix some fallout
12896         * NEWS: Document the incompatible change, and its effect on cfg.mk.
12897         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
12898
12899 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12900
12901         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
12902         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
12903         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
12904         (sc_cast_of_x_alloc_return_value): Likewise.
12905         (sc_cast_of_alloca_return_value): Likewise.
12906         (sc_space_tab): Likewise.
12907         (sc_prohibit_atoi_atof): Likewise.
12908         (sc_prohibit_magic_number_exit): Likewise.
12909         (sc_error_exit_success): Likewise.
12910         (sc_file_system): Likewise.
12911         (sc_prohibit_have_config_h): Likewise.
12912         (sc_require_config_h): Likewise.
12913         (sc_prohibit_HAVE_MBRTOWC): Likewise.
12914         (sc_obsolete_symbols): Likewise.
12915         (sc_changelog): Likewise.
12916         (sc_program_name): Likewise.
12917         (sc_the_the): Likewise.
12918         (sc_trailing_blank): Likewise.
12919         (sc_two_space_separator_in_usage): Likewise.
12920         (sc_useless_cpp_parens): Likewise.
12921         (sc_GPL_version): Likewise.
12922         (sc_GFDL_version): Likewise.
12923         (sc_texinfo_acronym): Likewise.
12924         (sc_prohibit_cvs_keyword): Likewise.
12925         (sc_prohibit_stat_st_blocks): Likewise.
12926         (sc_prohibit_S_IS_definition): Likewise.
12927         (sc_redundant_const): Likewise.
12928         (sc_makefile_TAB_only_indentation): Likewise.
12929         (sc_m4_quote_check): Likewise.
12930         (sc_makefile_path_separator_check): Likewise.
12931         (sc_copyright_check): Likewise.
12932         (sc_Wundef_boolean): Likewise.
12933         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12934
12935         maint.mk: match 0 or more whitespace-before-function-call '('
12936         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
12937         that have zero or two-and-more spaces between the function name
12938         and the open parenthesis.
12939         (sc_error_message_warn_fatal): Likewise.
12940         (sc_error_message_uppercase): Likewise.
12941         (sc_error_message_period): Likewise.
12942
12943 2010-03-31  Eric Blake  <eblake@redhat.com>
12944
12945         maint.mk: check for [ as well as test
12946         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
12947         Based on a libvirt report by Matthias Bolte.
12948
12949         gnumakefile: don't squelch _version output
12950         * top/GNUmakefile (_version): Create one-shot dependency rather
12951         than using $(shell) when version must be regenerated.
12952         (_autoreconf): Run verbosely, by default.
12953
12954         sys_time: avoid compiler warnings
12955         * lib/sys_time.in.h (includes): Ensure gcc pragma is
12956         unconditional, fixing regression from 2010-03-29.
12957         Reported by Simon Josefsson.
12958
12959 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
12960
12961         maint.mk: s/_header_without_use/_sc_header_without_use/
12962         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
12963         (sc_prohibit_assert_without_use): Use the new name.
12964         (sc_prohibit_close_stream_without_use): Likewise.
12965         (sc_prohibit_getopt_without_use): Likewise.
12966         (sc_prohibit_quotearg_without_use): Likewise.
12967         (sc_prohibit_quote_without_use): Likewise.
12968         (sc_prohibit_long_options_without_use): Likewise.
12969         (sc_prohibit_inttostr_without_use): Likewise.
12970         (sc_prohibit_ignore_value_without_use): Likewise.
12971         (sc_prohibit_error_without_use): Likewise.
12972         (sc_prohibit_xalloc_without_use): Likewise.
12973         (sc_prohibit_hash_without_use): Likewise.
12974         (sc_prohibit_hash_pjw_without_use): Likewise.
12975         (sc_prohibit_safe_read_without_use): Likewise.
12976         (sc_prohibit_argmatch_without_use): Likewise.
12977         (sc_prohibit_canonicalize_without_use): Likewise.
12978         (sc_prohibit_root_dev_ino_without_use): Likewise.
12979         (sc_prohibit_openat_without_use): Likewise.
12980         (sc_prohibit_c_ctype_without_use): Likewise.
12981         (sc_prohibit_signal_without_use): Likewise.
12982         (sc_prohibit_intprops_without_use): Likewise.
12983
12984 2010-03-30  Eric Blake  <eblake@redhat.com>
12985
12986         maint: improve module indicators
12987         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12988         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12989         columns, and avoid extra macro expansion.
12990
12991         fdopendir: work around FreeBSD bug
12992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12994         * modules/dirent (Makefile.am): Substitute it.
12995         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12996         declaration.
12997         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12998         fix.
12999         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13000
13001 2010-03-29  Bruno Haible  <bruno@clisp.org>
13002
13003         Emit #pragma system_header after the inclusion guard, not before.
13004         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13005         guard that spans the entire file, not before. This enables an
13006         optimization in GCC's preprocessor.
13007         * lib/ctype.in.h: Likewise.
13008         * lib/dirent.in.h: Likewise.
13009         * lib/errno.in.h: Likewise.
13010         * lib/float.in.h: Likewise.
13011         * lib/getopt.in.h: Likewise.
13012         * lib/iconv.in.h: Likewise.
13013         * lib/langinfo.in.h: Likewise.
13014         * lib/locale.in.h: Likewise.
13015         * lib/math.in.h: Likewise.
13016         * lib/netdb.in.h: Likewise.
13017         * lib/netinet_in.in.h: Likewise.
13018         * lib/pty.in.h: Likewise.
13019         * lib/sched.in.h: Likewise.
13020         * lib/se-selinux.in.h: Likewise.
13021         * lib/search.in.h: Likewise.
13022         * lib/spawn.in.h: Likewise.
13023         * lib/stdarg.in.h: Likewise.
13024         * lib/stdint.in.h: Likewise.
13025         * lib/string.in.h: Likewise.
13026         * lib/strings.in.h: Likewise.
13027         * lib/sys_file.in.h: Likewise.
13028         * lib/sys_ioctl.in.h: Likewise.
13029         * lib/sys_time.in.h: Likewise.
13030         * lib/sys_times.in.h: Likewise.
13031         * lib/sys_utsname.in.h: Likewise.
13032         * lib/sys_wait.in.h: Likewise.
13033         * lib/sysexits.in.h: Likewise.
13034         * lib/wctype.in.h: Likewise.
13035
13036 2010-03-28  James Youngman  <jay@gnu.org>
13037
13038         save-cwd: don't leak a file descriptor when the caller execs.
13039         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13040         saved file descriptor.
13041         * modules/save-cwd (Depends-on): Depend on cloexec.
13042
13043 2010-03-29  Bruno Haible  <bruno@clisp.org>
13044
13045         Remove vestiges of fts-lgpl module.
13046         * lib/fts_.h: Assume GNULIB_FTS is 1.
13047         * lib/fts.c: Likewise.
13048         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13049
13050 2010-03-28  Bruno Haible  <bruno@clisp.org>
13051
13052         Fix definition of tests witness macro.
13053         * gnulib-tool (func_import): Fix definition of witness macro.
13054
13055 2010-03-28  Bruno Haible  <bruno@clisp.org>
13056
13057         Fix ioctl's protoype on glibc systems.
13058         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13059         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13060         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13061         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13062         signature. If not, arrange to replace the ioctl function.
13063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13064         REPLACE_IOCTL.
13065         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13066         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13067         Reported by Ludovic Courtès <ludo@gnu.org>.
13068
13069 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13070
13071         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13072         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13073         made it so grep -r --include=GLOB* ... did not work.
13074
13075 2010-03-26  Jim Meyering  <meyering@redhat.com>
13076             Eric Blake  <eblake@redhat.com>
13077
13078         maint.mk: prohibit use of test's -o and -a operators
13079         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13080
13081 2010-03-28  Bruno Haible  <bruno@clisp.org>
13082
13083         Remove unused GNULIB_XYZ macro definitions.
13084         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13085         invocation.
13086
13087 2010-03-28  Bruno Haible  <bruno@clisp.org>
13088
13089         Mark privileged tests modules.
13090         * modules/idpriv-drop-tests (Status): New section.
13091         * modules/idpriv-droptemp-tests (Status): New section.
13092
13093 2010-03-28  Bruno Haible  <bruno@clisp.org>
13094
13095         Split C++ tests into separate tests modules.
13096         * modules/dirent-c++-tests: New file, extracted from
13097         modules/dirent-tests.
13098         * modules/dirent-tests: Depend on it.
13099         * modules/fcntl-h-c++-tests: New file, extracted from
13100         modules/fcntl-h-tests.
13101         * modules/fcntl-h-tests: Depend on it.
13102         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13103         * modules/glob-tests: Depend on it.
13104         * modules/iconv-h-c++-tests: New file, extracted from
13105         modules/iconv-h-tests.
13106         * modules/iconv-h-tests: Depend on it.
13107         * modules/langinfo-c++-tests: New file, extracted from
13108         modules/langinfo-tests.
13109         * modules/langinfo-tests: Depend on it.
13110         * modules/locale-c++-tests: New file, extracted from
13111         modules/locale-tests.
13112         * modules/locale-tests: Depend on it.
13113         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13114         * modules/math-tests: Depend on it.
13115         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13116         * modules/pty-tests: Depend on it.
13117         * modules/search-c++-tests: New file, extracted from
13118         modules/search-tests.
13119         * modules/search-tests: Depend on it.
13120         * modules/signal-c++-tests: New file, extracted from
13121         modules/signal-tests.
13122         * modules/signal-tests: Depend on it.
13123         * modules/spawn-c++-tests: New file, extracted from
13124         modules/spawn-tests.
13125         * modules/spawn-tests: Depend on it.
13126         * modules/stdio-c++-tests: New file, extracted from
13127         modules/stdio-tests.
13128         * modules/stdio-tests: Depend on it.
13129         * modules/stdlib-c++-tests: New file, extracted from
13130         modules/stdlib-tests.
13131         * modules/stdlib-tests: Depend on it.
13132         * modules/string-c++-tests: New file, extracted from
13133         modules/string-tests.
13134         * modules/string-tests: Depend on it.
13135         * modules/sys_ioctl-c++-tests: New file, extracted from
13136         modules/sys_ioctl-tests.
13137         * modules/sys_ioctl-tests: Depend on it.
13138         * modules/sys_select-c++-tests: New file, extracted from
13139         modules/sys_select-tests.
13140         * modules/sys_select-tests: Depend on it.
13141         * modules/sys_socket-c++-tests: New file, extracted from
13142         modules/sys_socket-tests.
13143         * modules/sys_socket-tests: Depend on it.
13144         * modules/sys_stat-c++-tests: New file, extracted from
13145         modules/sys_stat-tests.
13146         * modules/sys_stat-tests: Depend on it.
13147         * modules/sys_time-c++-tests: New file, extracted from
13148         modules/sys_time-tests.
13149         * modules/sys_time-tests: Depend on it.
13150         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13151         * modules/time-tests: Depend on it.
13152         * modules/unistd-c++-tests: New file, extracted from
13153         modules/unistd-tests.
13154         * modules/unistd-tests: Depend on it.
13155         * modules/wchar-c++-tests: New file, extracted from
13156         modules/wchar-tests.
13157         * modules/wchar-tests: Depend on it.
13158         * modules/wctype-c++-tests: New file, extracted from
13159         modules/wctype-tests.
13160         * modules/wctype-tests: Depend on it.
13161         Reported by Simon Josefsson.
13162
13163 2010-03-28  Bruno Haible  <bruno@clisp.org>
13164
13165         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13166         * gnulib-tool (func_exists_module): New function, extracted from
13167         func_verify_module.
13168         (func_verify_module): Use it.
13169         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13170         'foo' only if 'foo' exists.
13171         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13172         module.
13173
13174 2010-03-28  Bruno Haible  <bruno@clisp.org>
13175
13176         gnulib-tool: Add support for special categories of tests.
13177         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13178         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13179         (func_usage): Document them.
13180         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13181         inc_unportable_tests, inc_all_tests): New variables.
13182         (func_acceptable): Consider these variables.
13183         (func_modules_transitive_closure): Make it work when the 'Status' field
13184         consists of multiple words.
13185         (func_import): Store and restore the values of inc_cxx_tests,
13186         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13187         inc_all_tests in gnulib-comp.m4.
13188         (func_create_testdir): Set inc_all_tests to true.
13189         * doc/gnulib.texi (Extra tests modules): New section.
13190         Suggested by Jim Meyering.
13191
13192 2010-03-28  Bruno Haible  <bruno@clisp.org>
13193
13194         ansi-c++-opt: Allow turning off the C++ build by default.
13195         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13196         gl_CXX_CHOICE_DEFAULT_NO is defined.
13197         Requested by Eric Blake.
13198
13199 2010-03-28  Bruno Haible  <bruno@clisp.org>
13200
13201         unistd: Avoid #define replacements in C++ mode.
13202         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13203         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13204         setsockopt, shutdown, select): In C++, attach a warning to the function
13205         if possible, rather than #defining the symbol to a dysfunctional alias.
13206         Reported by John W. Eaton <jwe@gnu.org>.
13207
13208 2010-03-28  Bruno Haible  <bruno@clisp.org>
13209
13210         Fix link errors on mingw.
13211         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13212         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13213         $(LIBSOCKET).
13214         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13215         $(LIBSOCKET).
13216
13217 2010-03-28  Bruno Haible  <bruno@clisp.org>
13218             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13219
13220         lib-ignore: Determine different options for different compilers.
13221         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13222         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13223         Add comments.
13224         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13225         * NEWS: Mention the change.
13226
13227 2010-03-27  Bruno Haible  <bruno@clisp.org>
13228
13229         Remove unused GNULIB_XYZ macro definitions.
13230         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13231         * modules/fseek (configure.ac): Likewise.
13232         * modules/ioctl (configure.ac): Likewise.
13233         * modules/open (configure.ac): Likewise.
13234         * modules/stdlib-safer (configure.ac): Likewise.
13235
13236 2010-03-27  Bruno Haible  <bruno@clisp.org>
13237
13238         Add a remark about certain modules.
13239         * modules/malloc (Comment): New section.
13240         * modules/realloc (Comment): Likewise.
13241         * modules/sigpipe (Comment): Likewise.
13242
13243 2010-03-27  Bruno Haible  <bruno@clisp.org>
13244
13245         Resolve conflict between the two kinds of module indicators.
13246         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
13247         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
13248         * modules/canonicalize (configure.ac): Invoke
13249         gl_MODULE_INDICATOR_FOR_TESTS.
13250         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
13251         GNULIB_XYZ.
13252         * tests/test-dirent-c++.cc: Likewise.
13253         * tests/test-dirent-safer.c: Likewise.
13254         * tests/test-dup2.c: Likewise.
13255         * tests/test-fchdir.c: Likewise.
13256         * tests/test-fcntl-h-c++.cc: Likewise.
13257         * tests/test-getopt.c: Likewise.
13258         * tests/test-getopt.h: Likewise.
13259         * tests/test-langinfo-c++.cc: Likewise.
13260         * tests/test-locale-c++.cc: Likewise.
13261         * tests/test-math-c++.cc: Likewise.
13262         * tests/test-pty-c++.cc: Likewise.
13263         * tests/test-search-c++.cc: Likewise.
13264         * tests/test-signal-c++.cc: Likewise.
13265         * tests/test-spawn-c++.cc: Likewise.
13266         * tests/test-stdio-c++.cc: Likewise.
13267         * tests/test-stdlib-c++.cc: Likewise.
13268         * tests/test-string-c++.cc: Likewise.
13269         * tests/test-sys_ioctl-c++.cc: Likewise.
13270         * tests/test-sys_select-c++.cc: Likewise.
13271         * tests/test-sys_socket-c++.cc: Likewise.
13272         * tests/test-sys_stat-c++.cc: Likewise.
13273         * tests/test-sys_time-c++.cc: Likewise.
13274         * tests/test-time-c++.cc: Likewise.
13275         * tests/test-unistd-c++.cc: Likewise.
13276         * tests/test-wchar-c++.cc: Likewise.
13277         * tests/uninorm/test-u8-nfc.c: Likewise.
13278         * tests/uninorm/test-u8-nfd.c: Likewise.
13279         * tests/uninorm/test-u8-nfkc.c: Likewise.
13280         * tests/uninorm/test-u8-nfkd.c: Likewise.
13281         * tests/uninorm/test-u16-nfc.c: Likewise.
13282         * tests/uninorm/test-u16-nfd.c: Likewise.
13283         * tests/uninorm/test-u16-nfkc.c: Likewise.
13284         * tests/uninorm/test-u16-nfkd.c: Likewise.
13285         * tests/uninorm/test-u32-nfc.c: Likewise.
13286         * tests/uninorm/test-u32-nfc-big.c: Likewise.
13287         * tests/uninorm/test-u32-nfd.c: Likewise.
13288         * tests/uninorm/test-u32-nfd-big.c: Likewise.
13289         * tests/uninorm/test-u32-nfkc.c: Likewise.
13290         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
13291         * tests/uninorm/test-u32-nfkd.c: Likewise.
13292         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
13293         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13294
13295 2010-03-27  Bruno Haible  <bruno@clisp.org>
13296
13297         Distinguish two kinds of module indicators.
13298         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
13299         gl_MODULE_INDICATOR.
13300         (gl_MODULE_INDICATOR): New macro.
13301         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13302         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
13303         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13304         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13305         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13306         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13307         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13308         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13309         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13310         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13311         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13312         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13315         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13316         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13317         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13318         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13320         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13321         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13322         * modules/cloexec (configure.ac): Likewise.
13323         * modules/getopt-gnu (configure.ac): Likewise.
13324         * modules/uninorm/u8-normalize (configure.ac): Likewise.
13325         * modules/uninorm/u16-normalize (configure.ac): Likewise.
13326         * modules/uninorm/u32-normalize (configure.ac): Likewise.
13327         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
13328
13329 2010-03-27  Bruno Haible  <bruno@clisp.org>
13330
13331         New module description field 'Comment'.
13332         * gnulib-tool: New option --extract-comment.
13333         (func_usage): Document it.
13334         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
13335         (func_get_comment): New function.
13336         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
13337
13338 2010-03-27  Bruno Haible  <bruno@clisp.org>
13339
13340         Addendum to 2010-02-07 commit.
13341         * gnulib-tool (func_usage): Document --extract-applicability option.
13342
13343 2010-03-27  Bruno Haible  <bruno@clisp.org>
13344
13345         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
13346         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
13347         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
13348         rather than link errors.
13349
13350 2010-03-27  Bruno Haible  <bruno@clisp.org>
13351
13352         Avoid side effects from tests-related modules on the compilation of lib.
13353         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
13354         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
13355         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
13356         parameter. Emit into AM_CPPFLAGS a definition of the designated C
13357         macro.
13358         (func_import): Define a witness macro. Assign it a value that depends
13359         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
13360         tests-related modules.
13361         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13362         Reported by Jim Meyering.
13363
13364 2010-03-27  Bruno Haible  <bruno@clisp.org>
13365
13366         Factorize common .m4 code.
13367         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
13368         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
13369         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
13370         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
13371         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
13372         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
13373         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
13374         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
13375         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
13376         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
13377         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
13378         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
13379         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
13380         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
13381         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
13382         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
13383         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
13384         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
13385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
13386         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
13387         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
13388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
13389         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
13390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
13391         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
13392         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
13393         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
13394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
13395         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
13396         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
13397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
13398         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
13399
13400 2010-03-27  Bruno Haible  <bruno@clisp.org>
13401
13402         Fix a compilation error on Cygwin with g++ >= 4.3.
13403         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
13404         if it is undefined or if we alias it to chmod.
13405         (lstat): Don't warn about the use of this function if it is undefined
13406         or if we alias it to stat.
13407         Reported by Simon Josefsson.
13408
13409 2010-03-27  Bruno Haible  <bruno@clisp.org>
13410
13411         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
13412         * modules/getlogin (configure.ac): Update.
13413
13414         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
13415         * modules/getlogin_r (configure.ac): Update.
13416
13417         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
13418         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
13419         * modules/inet_ntop (configure.ac): Update.
13420
13421         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
13422         * modules/inet_pton (configure.ac): Update.
13423
13424         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
13425         * modules/mbslen (configure.ac): Update.
13426
13427         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
13428         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
13429         * modules/forkpty (configure.ac): Update.
13430         * modules/openpty (configure.ac): Update.
13431
13432 2010-03-26  Simon Josefsson  <simon@josefsson.org>
13433
13434         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
13435         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
13436
13437 2010-03-25  Eric Blake  <eblake@redhat.com>
13438
13439         maint: use pragma consistently across replacement headers
13440         * lib/ctype.in.h (system_header): Hoist for consistent placement.
13441         * lib/dirent.in.h (system_header): Likewise.
13442         * lib/errno.in.h (system_header): Likewise.
13443         * lib/float.in.h (system_header): Likewise.
13444         * lib/getopt.in.h (system_header): Likewise.
13445         * lib/iconv.in.h (system_header): Likewise.
13446         * lib/inttypes.in.h (system_header): Likewise.
13447         * lib/langinfo.in.h (system_header): Likewise.
13448         * lib/locale.in.h (system_header): Likewise.
13449         * lib/math.in.h (system_header): Likewise.
13450         * lib/netdb.in.h (system_header): Likewise.
13451         * lib/netinet_in.in.h (system_header): Likewise.
13452         * lib/pty.in.h (system_header): Likewise.
13453         * lib/sched.in.h (system_header): Likewise.
13454         * lib/se-selinux.in.h (system_header): Likewise.
13455         * lib/search.in.h (system_header): Likewise.
13456         * lib/spawn.in.h (system_header): Likewise.
13457         * lib/stdarg.in.h (system_header): Likewise.
13458         * lib/stdint.in.h (system_header): Likewise.
13459         * lib/string.in.h (system_header): Likewise.
13460         * lib/strings.in.h (system_header): Likewise.
13461         * lib/sys_file.in.h (system_header): Likewise.
13462         * lib/sys_ioctl.in.h (system_header): Likewise.
13463         * lib/sys_socket.in.h (system_header): Likewise.
13464         * lib/sys_times.in.h (system_header): Likewise.
13465         * lib/sys_utsname.in.h (system_header): Likewise.
13466         * lib/sys_wait.in.h (system_header): Likewise.
13467         * lib/sysexits.in.h (system_header): Likewise.
13468         * lib/unistd.in.h (system_header): Likewise.
13469         * lib/wctype.in.h (system_header): Likewise.
13470
13471         arpa/inet: fix mingw compilation warning
13472         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
13473         Reported by Matthew Bolte.
13474
13475 2010-03-25  Bruno Haible  <bruno@clisp.org>
13476
13477         Avoid collision between gnulib wrapper and libintl wrapper.
13478         * lib/printf.c (printf): Don't define if a printf wrapper is already
13479         defined in intl/printf.c.
13480         Reported by Michel Boaventura <michel@michelboaventura.com>.
13481
13482 2010-03-25  Bruno Haible  <bruno@clisp.org>
13483
13484         Use ANSI C.
13485         * lib/readutmp.h (getutent): Provide ANSI C prototype.
13486
13487 2010-03-25  Bruno Haible  <bruno@clisp.org>
13488
13489         Minor formatting changes.
13490         * lib/acosl.c: Insert space before function argument list.
13491         * lib/argz.c: Likewise.
13492         * lib/asinl.c: Likewise.
13493         * lib/expl.c: Likewise.
13494         * lib/gen-uni-tables.c: Likewise.
13495         * lib/gettext.h: Likewise.
13496         * lib/glthread/lock.h: Likewise.
13497         * lib/tanl.c: Likewise.
13498         * lib/uniname/uniname.c: Likewise.
13499         * tests/test-idpriv-drop.c: Likewise.
13500         * tests/test-idpriv-droptemp.c: Likewise.
13501         * tests/test-lock.c: Likewise.
13502         * tests/test-tls.c: Likewise.
13503         * lib/argp-help.c: Insert space before function-like macro argument
13504         list.
13505         * lib/memcmp.c: Likewise.
13506         * tests/test-base64.c: Likewise.
13507         * lib/localename.c: Insert space before sizeof's argument list.
13508         * lib/safe-alloc.h: Likewise.
13509         * lib/file-set.h: Insert space before macro argument list.
13510         * tests/test-argp.c: Likewise.
13511         * lib/argp-namefrob.h: Insert space before function parameter list.
13512         * lib/getaddrinfo.c: Likewise.
13513         * lib/netdb.in.h: Likewise.
13514         * lib/parse-duration.h: Likewise.
13515         * lib/parse-duration.c: Likewise.
13516         * lib/poll.c: Likewise.
13517         * lib/select.c: Likewise.
13518         * lib/trim.h: Likewise.
13519         * tests/test-usleep.c: Likewise.
13520         * lib/ldexpl.c: Insert space before function parameter list and before
13521         function argument list.
13522         * lib/logl.c: Likewise.
13523         * lib/sqrtl.c: Likewise.
13524         * lib/trim.c: Likewise.
13525         * lib/cosl.c: Use GNU style indentation. Insert space before function
13526         argument list.
13527         * lib/sinl.c: Likewise.
13528         * lib/tsearch.c: Insert space after 'for'.
13529         Reported by Jim Meyering.
13530
13531 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
13532
13533         * maint.mk (sc_Wundef_boolean): Check for the presence of the
13534         config header before grepping, as it's not present before
13535         autoreconf/configure are run.  Reported by Simon Josefsson.
13536
13537 2010-03-23  Bruno Haible  <bruno@clisp.org>
13538
13539         pt_chown: Make it work with automake < 1.11.
13540         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
13541         Reported by Simon Josefsson.
13542
13543 2010-03-23  Bruno Haible  <bruno@clisp.org>
13544
13545         pt_chown: Don't depend on GPLed modules.
13546         * lib/pt_chown.c: Don't include idpriv.h.
13547         (main): Don't drop privileges.
13548         * modules/pt_chown (Depends-on): Remove idpriv-drop.
13549         Reported by Simon Josefsson.
13550
13551 2010-03-24  Simon Josefsson  <simon@josefsson.org>
13552
13553         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
13554         suggestions from karl@freefriends.org (Karl Berry).
13555
13556 2010-03-22  Eric Blake  <eblake@redhat.com>
13557
13558         gethostname: further tweaks
13559         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
13560         are overriding gethostname.
13561         Suggested by Bruno Haible.
13562
13563 2010-03-21  Bruno Haible  <bruno@clisp.org>
13564
13565         Fix comments.
13566         * lib/forkpty.c (rpl_forkpty): Fix comment.
13567         * lib/openpty.c (rpl_openpty): Likewise.
13568         Reported by Eric Blake.
13569
13570 2010-03-22  Eric Blake  <eblake@redhat.com>
13571
13572         gethostname: fix build on mingw
13573         * lib/unistd.in.h (includes): Work around fact that mingw
13574         <winsock2.h> re-includes <unistd.h>, by avoiding any
13575         redeclarations if we are being included by <winsock2.h>.
13576         Reported by Matthias Bolte.
13577
13578 2010-03-21  Bruno Haible  <bruno@clisp.org>
13579
13580         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13581         * lib/forkpty.c (forkpty): New replacement function, from glibc with
13582         modifications.
13583         * lib/pty.in.h (forkpty): Update declaration. Add comments.
13584         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
13585         provide the replacement.
13586         * modules/forkpty (Depends-on): Add openpty, login_tty.
13587         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
13588         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
13589         * doc/glibc-functions/forkpty.texi: More supported platforms.
13590         * config/srclist.txt: Add forkpty.c (commented).
13591
13592 2010-03-21  Bruno Haible  <bruno@clisp.org>
13593
13594         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
13595         (Makefile.am): Verify that PTY_LIB is defined.
13596
13597         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
13598
13599 2010-03-21  Bruno Haible  <bruno@clisp.org>
13600
13601         Tests for module 'login_tty'.
13602         * modules/login_tty-tests: New file.
13603         * tests/test-login_tty.c: New file.
13604
13605         New module 'login_tty'.
13606         * lib/login_tty.c: New file.
13607         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
13608         * modules/login_tty: New file.
13609         * doc/glibc-functions/login_tty.texi: Mention the new module.
13610
13611 2010-03-21  Bruno Haible  <bruno@clisp.org>
13612
13613         login_tty: Documentation.
13614         * doc/glibc-functions/login_tty.texi: New file.
13615         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
13616
13617 2010-03-21  Bruno Haible  <bruno@clisp.org>
13618
13619         pty: Consistent macro naming.
13620         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
13621         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
13622         * modules/pty (configure.ac): Update.
13623
13624 2010-03-21  Bruno Haible  <bruno@clisp.org>
13625
13626         Tests for openpty: Make stricter.
13627         * tests/test-openpty.c (main): Add test of canonical processing and
13628         erase.
13629         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
13630
13631         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
13632         * lib/openpty.c (openpty): New replacement function.
13633         * lib/pty.in.h: Include <termios.h>.
13634         (openpty): Update declaration. Add comments.
13635         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
13636         is not declared, arrange to provide the replacement. Check for _getpty
13637         and posix_openpt.
13638         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
13639         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
13640         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
13641         * modules/pty-tests (test_pty_c___LDADD): New variable.
13642         * doc/glibc-functions/openpty.texi: More supported platforms.
13643
13644 2010-03-21  Bruno Haible  <bruno@clisp.org>
13645
13646         setenv: Tweaks.
13647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
13648         the test program.
13649         * doc/posix-functions/setenv.texi: Update platforms list.
13650
13651 2010-03-21  Bruno Haible  <bruno@clisp.org>
13652
13653         New module 'unlockpt'.
13654         * lib/unlockpt.c: New file, from glibc with modifications.
13655         * m4/unlockpt.m4: New file.
13656         * modules/unlockpt: New file.
13657         * lib/stdlib.in.h (unlockpt): New declaration.
13658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
13659         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
13660         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
13661         HAVE_UNLOCKPT.
13662         * doc/posix-functions/unlockpt.texi: Mention the new module.
13663         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
13664         * config/srclist.txt: Add unlockpt.c (commented).
13665
13666 2010-03-21  Jim Meyering  <meyering@redhat.com>
13667
13668         maint.mk: prohibit inclusion of "intprops.h" without use
13669         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
13670
13671 2010-03-21  Bruno Haible  <bruno@clisp.org>
13672
13673         New module 'grantpt'.
13674         * lib/grantpt.c: New file, from glibc with modifications.
13675         * m4/grantpt.m4: New file.
13676         * modules/grantpt: New file.
13677         * lib/stdlib.in.h (grantpt): New declaration.
13678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
13679         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
13680         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
13681         HAVE_GRANTPT.
13682         * doc/posix-functions/grantpt.texi: Mention the new module.
13683         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
13684         * config/srclist.txt: Add grantpt.c (commented).
13685
13686 2010-03-21  Bruno Haible  <bruno@clisp.org>
13687
13688         New module 'pt_chown'.
13689         * lib/pt_chown.c: New file, from glibc with modifications.
13690         * lib/pty-private.h: New file, from glibc with modifications.
13691         * modules/pt_chown: New file.
13692         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
13693
13694 2010-03-21  Bruno Haible  <bruno@clisp.org>
13695
13696         Tests for module 'ptsname'.
13697         * modules/ptsname-tests: New file.
13698         * tests/test-ptsname.c: New file.
13699
13700         New module 'ptsname'.
13701         * lib/ptsname.c: New file, from glibc with modifications.
13702         * m4/ptsname.m4: New file.
13703         * modules/ptsname: New file.
13704         * lib/stdlib.in.h (ptsname): New declaration.
13705         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
13706         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
13707         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
13708         HAVE_PTSNAME.
13709         * doc/posix-functions/ptsname.texi: Mention the new module.
13710         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
13711         * config/srclist.txt: Add ptsname.c (commented).
13712
13713 2010-03-21  Bruno Haible  <bruno@clisp.org>
13714
13715         Tests for module 'ttyname_r'.
13716         * modules/ttyname_r-tests: New file.
13717         * tests/test-ttyname_r.c: New file.
13718
13719         New module 'ttyname_r'.
13720         * lib/ttyname_r.c: New file.
13721         * m4/ttyname_r.m4: New file.
13722         * modules/ttyname_r: New file.
13723         * lib/unistd.in.h (ttyname_r): New declaration.
13724         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
13725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
13726         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
13727         HAVE_TTYNAME_R.
13728         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
13729         * doc/posix-functions/ttyname_r.texi: Mention the new module.
13730
13731 2010-03-20  Bruno Haible  <bruno@clisp.org>
13732
13733         signal: Undefine macro definitions in C++ mode.
13734         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
13735         sigfillset): Undefine macro definitions from the system header in C++
13736         mode.
13737         Reported by John W. Eaton <jwe@gnu.org>.
13738
13739 2010-03-20  Bruno Haible  <bruno@clisp.org>
13740
13741         Ensure no #include statements inside extern "C" { ... }.
13742         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
13743         contain #include statements.
13744         * lib/time.in.h: Likewise.
13745
13746 2010-03-20  Bruno Haible  <bruno@clisp.org>
13747
13748         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
13749         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
13750         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
13751         Reported by John W. Eaton <jwe@gnu.org>.
13752
13753 2010-03-20  Bruno Haible  <bruno@clisp.org>
13754
13755         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
13756         Reported by Jim Meyering.
13757
13758 2010-03-20  Bruno Haible  <bruno@clisp.org>
13759
13760         pipe: Set errno upon failure.
13761         * lib/pipe.h: Specify that when -1 is returned, errno is set.
13762         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
13763         errno value in error message.
13764
13765 2010-03-20  Bruno Haible  <bruno@clisp.org>
13766             Jim Meyering  <meyering@redhat.com>
13767
13768         lchown: Avoid "unused variable" warning.
13769         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
13770
13771 2010-03-20  Bruno Haible  <bruno@clisp.org>
13772
13773         Work around unlink() bug on MacOS X 10.5.6.
13774         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
13775         attempting to unlink a parent directory.
13776         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
13777         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
13778         activate for the replacement function.
13779         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
13780
13781 2010-03-20  Bruno Haible  <bruno@clisp.org>
13782
13783         Fix link errors on Solaris 8.
13784         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
13785         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
13786
13787 2010-03-19  Jim Meyering  <meyering@redhat.com>
13788
13789         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
13790         The _LIBC implementation of build_range_exp correctly honors the
13791         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
13792         However, the non-_LIBC implementation would ignore that syntax-bit
13793         flag and return REG_ERANGE unconditionally.
13794         This change makes it honor that flag.
13795         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
13796         Make two pointer parameters "const".
13797         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
13798         (parse_bracket_exp): Update caller.
13799
13800         regex.m4: correct the reversed range endpoint ([b-a]) test
13801         * m4/regex.m4: When requiring that [b-a] evoke failure,
13802         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
13803         test pass once again for x86-based systems.
13804
13805 2010-03-19  Bruno Haible  <bruno@clisp.org>
13806
13807         scandir: Fix link error on Solaris 8.
13808         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
13809         macros.
13810
13811 2010-03-19  Bruno Haible  <bruno@clisp.org>
13812
13813         getusershell: Fix documentation.
13814         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
13815         module.
13816         * doc/glibc-functions/setusershell.texi: Likewise.
13817
13818         getusershell: Provide declaration, missing on Solaris 9.
13819         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
13820         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
13821         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
13822         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
13823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13824         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
13825         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
13826         HAVE_GETUSERSHELL.
13827         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
13828
13829 2010-03-19  Bruno Haible  <bruno@clisp.org>
13830
13831         wctype: Provide iswblank function.
13832         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
13833         exists and is fine.
13834         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
13835         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
13836         * tests/test-wctype.c (main): Re-enable the iswblank tests.
13837         * doc/posix-functions/iswblank.texi: Update.
13838
13839 2010-03-19  Bruno Haible  <bruno@clisp.org>
13840
13841         Tests of module 'pty' in C++ mode.
13842         * modules/pty-tests: New file.
13843         * tests/test-pty-c++.cc: New file.
13844         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13845
13846 2010-03-19  Eric Blake  <eblake@redhat.com>
13847
13848         logb: fix documentation
13849         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
13850         1.5 declaration bug.
13851
13852         forkpty, openpty: prefer glibc's const-safe prototype
13853         * lib/forkpty.c (rpl_forkpty): New file.
13854         * lib/openpty.c (rpl_openpty): Likewise.
13855         * modules/forkpty (Files): Distribute it.
13856         * modules/openpty (Files): Likewise.
13857         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
13858         check...
13859         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
13860         replacement for for non-const BSD signature.
13861         * modules/pty (Makefile.am): Substitute witnesses.
13862         * lib/pty.in.h (forkpty, openpty): Declare replacements.
13863         * tests/test-forkpty.c: Update signature check.
13864         * tests/test-openpty.c: Likewise.
13865         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
13866         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13867
13868         forkpty, openpty: split functions into new modules
13869         * modules/pty (Makefile.am): Substitute new witnesses.
13870         (Libraries): Move library detection...
13871         * modules/forkpty: ...into new module.
13872         * modules/openpty: Another new module.
13873         * modules/pty-tests: Rename and split...
13874         * modules/forkpty-tests: ...to this...
13875         * modules/openpty-tests: ...and this.
13876         * tests/test-pty.c: Rename and split...
13877         * tests/test-forkpty.c: ...to this...
13878         * tests/test-openpty.c: ...and this.
13879         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
13880         (gl_PTY): Split library searching...
13881         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
13882         (gl_FORKPTY, gl_OPENPTY): New macros.
13883         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
13884         * NEWS: Mention the split.
13885         * MODULES.html.sh (Misc): Document the modules.
13886         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
13887         * doc/glibc-functions/openpty.texi (openpty): Likewise.
13888
13889         pty: improve replacement header
13890         * lib/pty.in.h: New file.
13891         * modules/pty (Files): Ship it.
13892         (Makefile.am): Always build replacement.
13893         * m4/pty.m4: Rename...
13894         * m4/pty_h.m4: ...to this.
13895         (gl_PTY): Modernize setting of witness macros; update check of
13896         forkpty to take proper advantage of cache.
13897         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
13898
13899         getopt: avoid compiler warning
13900         * lib/getopt.c (attribute_hidden): Remove unused macro.
13901
13902 2010-03-18  Bruno Haible  <bruno@clisp.org>
13903
13904         Fix link errors on Solaris 8.
13905         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
13906         * modules/search-tests (test_search_c___LDADD): Likewise.
13907         * modules/signal-tests (test_signal_c___LDADD): Likewise.
13908         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
13909         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
13910         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
13911         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
13912         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
13913         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
13914
13915 2010-03-18  Bruno Haible  <bruno@clisp.org>
13916
13917         Fix bug introduced on 2010-03-14.
13918         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
13919         (gl_SPAWN_H): Require it.
13920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
13921         Reported by Simon Josefsson.
13922
13923 2010-03-18  Bruno Haible  <bruno@clisp.org>
13924
13925         Fix typo introduced on 2009-12-31.
13926         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
13927         posix_spawn_file_actions_adddup2.
13928
13929 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
13930         and Eric Blake  <eblake@redhat.com>
13931
13932         test-vc-list-files-git: make more robust
13933         * tests/test-vc-list-files-git.sh: Unset problematic environment
13934         variables.  Chain commands together.
13935
13936 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
13937
13938         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
13939         `AC_CHECK_DECL' invocation.
13940
13941 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
13942
13943         * lib/inttostr.c (inttostr): Make sure the invocation of verify
13944         appears before executable statements. Suggested by Petr Sumbera
13945         <Petr.Sumbera@Sun.COM>.
13946
13947 2010-03-14  Bruno Haible  <bruno@clisp.org>
13948
13949         * tests/test-flock.c (test_exclusive): Comment out a test that causes
13950         portability problems. Instead use a simpler test.
13951         (main): Check that invalid arguments are rejected only on Linux.
13952
13953 2010-03-14  Bruno Haible  <bruno@clisp.org>
13954
13955         Fix bug introduced on 2009-12-31.
13956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13957         gl_PREREQ_SYS_H_WINSOCK2 always.
13958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13959         SYS_SOCKET_H variable.
13960         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
13961         Update comments.
13962         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
13963         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13964         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13965         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13966         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13967
13968 2010-03-14  Bruno Haible  <bruno@clisp.org>
13969
13970         Fix values returned by sinl, cosl.
13971         * lib/trigl.h: Add specification comments.
13972         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
13973         that combines the values from the precomputed table with the values of
13974         the Chebyshev polynomials.
13975
13976 2010-03-14  Bruno Haible  <bruno@clisp.org>
13977
13978         Fix compilation error when modules 'posix_spawn[p]' are not used.
13979         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13981
13982 2010-03-14  Bruno Haible  <bruno@clisp.org>
13983
13984         Fix compilation error on mingw when module 'time_r' is not used.
13985         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13986         is 1.
13987         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13988         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13989         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13991
13992 2010-03-14  Bruno Haible  <bruno@clisp.org>
13993
13994         Fix compilation error with Sun C.
13995         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13996         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13997         instead of GCC specific ULONG_LONG_MAX.
13998         * lib/xstrtoll.c: Likewise.
13999         * lib/xstrtoull.c: Likewise.
14000
14001 2010-03-13  Bruno Haible  <bruno@clisp.org>
14002
14003         Allow the user to disable C++ code and tests.
14004         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14005         (gl_PROG_ANSI_CXX): Require it.
14006
14007 2010-03-13  Bruno Haible  <bruno@clisp.org>
14008
14009         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14010         cases.
14011
14012 2010-03-13  Bruno Haible  <bruno@clisp.org>
14013
14014         Test that gnulib does not break the standard C++ headers.
14015         * tests/test-locale-c++2.cc: New file.
14016         * modules/locale-tests (Files): Add it.
14017         (Makefile.am): Compile it for test-locale-c++.
14018         * tests/test-math-c++2.cc: New file.
14019         * modules/math-tests (Files): Add it.
14020         (Makefile.am): Compile it for test-math-c++.
14021         * tests/test-signal-c++2.cc: New file.
14022         * modules/signal-tests (Files): Add it.
14023         (Makefile.am): Compile it for test-signal-c++.
14024         * tests/test-stdio-c++2.cc: New file.
14025         * modules/stdio-tests (Files): Add it.
14026         (Makefile.am): Compile it for test-stdio-c++.
14027         * tests/test-stdlib-c++2.cc: New file.
14028         * modules/stdlib-tests (Files): Add it.
14029         (Makefile.am): Compile it for test-stdlib-c++.
14030         * tests/test-string-c++2.cc: New file.
14031         * modules/string-tests (Files): Add it.
14032         (Makefile.am): Compile it for test-string-c++.
14033         * tests/test-time-c++2.cc: New file.
14034         * modules/time-tests (Files): Add it.
14035         (Makefile.am): Compile it for test-time-c++.
14036         Reported by John W. Eaton <jwe@gnu.org>.
14037
14038 2010-03-13  Bruno Haible  <bruno@clisp.org>
14039
14040         * gnulib-tool (func_usage): Clarify which options are available for
14041         --create-testdir and --create-megatestdir.
14042
14043 2010-03-13  Bruno Haible  <bruno@clisp.org>
14044
14045         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14046         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14047         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14048         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14049         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14050         when appropriate.
14051         Reported by Jim Meyering.
14052
14053 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14054
14055         * gnulib-tool (func_import): Explain origin of code.
14056
14057 2010-03-12  Bruno Haible  <bruno@clisp.org>
14058
14059         Fix problem with automake's definition of CXXLINK.
14060         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14061         Reported by Simon Josefsson and Ludovic Courtès.
14062
14063 2010-03-12  Bruno Haible  <bruno@clisp.org>
14064
14065         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14066         stable releases.
14067
14068 2010-03-11  Bruno Haible  <bruno@clisp.org>
14069
14070         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14071         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14072         whether the system provides one variant or multiple variants of the
14073         function.
14074         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14075         C++ compilers.
14076         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14077         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14078         Reported by Jim Meyering.
14079
14080 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14081
14082         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14083
14084 2010-03-08  Bruno Haible  <bruno@clisp.org>
14085
14086         gnulib-tool: Add support for --libtool in --create-testdir.
14087         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14088         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14089
14090 2010-03-08  Eric Blake  <eblake@redhat.com>
14091
14092         gnulib-tool.texi: mention possibility of git submodule
14093         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14094         submodules.
14095         * doc/.gitignore: Ignore another generated file.
14096
14097 2010-03-08  Karl Berry  <karl@gnu.org>
14098
14099         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14100         of committing gnulib files while skipping others.
14101
14102 2010-03-07  Bruno Haible  <bruno@clisp.org>
14103
14104         Tests of module 'wctype' in C++ mode.
14105         * tests/test-wctype-c++.cc: New file.
14106         * modules/wctype-tests (Files): Add it and tests/signature.h.
14107         (Depends-on): Add ansi-c++-opt.
14108         (Makefile.am): Arrange to compile and run test-wctype-c++.
14109
14110         Tests of module 'wchar' in C++ mode.
14111         * tests/test-wchar-c++.cc: New file.
14112         * modules/wchar-tests (Files): Add it and tests/signature.h.
14113         (Depends-on): Add ansi-c++-opt.
14114         (Makefile.am): Arrange to compile and run test-wchar-c++.
14115         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14116         gl_MODULE_INDICATOR.
14117
14118         Tests of module 'unistd' in C++ mode.
14119         * tests/test-unistd-c++.cc: New file.
14120         * modules/unistd-tests (Files): Add it and tests/signature.h.
14121         (Depends-on): Add ansi-c++-opt.
14122         (Makefile.am): Arrange to compile and run test-unistd-c++.
14123         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14124         gl_MODULE_INDICATOR.
14125
14126         Tests of module 'time' in C++ mode.
14127         * tests/test-time-c++.cc: New file.
14128         * modules/time-tests (Files): Add it and tests/signature.h.
14129         (Depends-on): Add ansi-c++-opt.
14130         (Makefile.am): Arrange to compile and run test-time-c++.
14131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14132
14133         Tests of module 'sys_time' in C++ mode.
14134         * tests/test-sys_time-c++.cc: New file.
14135         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14136         (Depends-on): Add ansi-c++-opt.
14137         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14138         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14139         gl_MODULE_INDICATOR.
14140
14141         Tests of module 'sys_stat' in C++ mode.
14142         * tests/test-sys_stat-c++.cc: New file.
14143         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14144         (Depends-on): Add ansi-c++-opt.
14145         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14147         gl_MODULE_INDICATOR.
14148
14149         Tests of module 'sys_socket' in C++ mode.
14150         * tests/test-sys_socket-c++.cc: New file.
14151         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14152         (Depends-on): Add ansi-c++-opt.
14153         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14155         gl_MODULE_INDICATOR.
14156
14157         Tests of module 'sys_select' in C++ mode.
14158         * tests/test-sys_select-c++.cc: New file.
14159         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14160         (Depends-on): Add ansi-c++-opt.
14161         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14162         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14163         gl_MODULE_INDICATOR.
14164
14165         Tests of module 'sys_ioctl' in C++ mode.
14166         * tests/test-sys_ioctl-c++.cc: New file.
14167         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14168         (Depends-on): Add ansi-c++-opt.
14169         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14171         gl_MODULE_INDICATOR.
14172
14173         Tests of module 'string' in C++ mode.
14174         * tests/test-string-c++.cc: New file.
14175         * modules/string-tests (Files): Add it and tests/signature.h.
14176         (Depends-on): Add ansi-c++-opt.
14177         (Makefile.am): Arrange to compile and run test-string-c++.
14178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14179         gl_MODULE_INDICATOR.
14180
14181         Tests of module 'stdlib' in C++ mode.
14182         * tests/test-stdlib-c++.cc: New file.
14183         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14184         (Depends-on): Add ansi-c++-opt.
14185         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14186         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14187         gl_MODULE_INDICATOR.
14188
14189         Tests of module 'stdio' in C++ mode.
14190         * tests/test-stdio-c++.cc: New file.
14191         * modules/stdio-tests (Files): Add it and tests/signature.h.
14192         (Depends-on): Add ansi-c++-opt.
14193         (Makefile.am): Arrange to compile and run test-stdio-c++.
14194         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14195         gl_MODULE_INDICATOR.
14196
14197         Tests of module 'spawn' in C++ mode.
14198         * tests/test-spawn-c++.cc: New file.
14199         * modules/spawn-tests (Files): Add it and tests/signature.h.
14200         (Depends-on): Add ansi-c++-opt.
14201         (Makefile.am): Arrange to compile and run test-spawn-c++.
14202         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14203         gl_MODULE_INDICATOR.
14204
14205         Tests of module 'signal' in C++ mode.
14206         * tests/test-signal-c++.cc: New file.
14207         * modules/signal-tests (Files): Add it and tests/signature.h.
14208         (Depends-on): Add ansi-c++-opt.
14209         (Makefile.am): Arrange to compile and run test-signal-c++.
14210         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14211         gl_MODULE_INDICATOR.
14212
14213         Tests of module 'search' in C++ mode.
14214         * tests/test-search-c++.cc: New file.
14215         * modules/search-tests (Files): Add it and tests/signature.h.
14216         (Depends-on): Add ansi-c++-opt.
14217         (Makefile.am): Arrange to compile and run test-search-c++.
14218         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14219         gl_MODULE_INDICATOR.
14220
14221         Tests of module 'math' in C++ mode.
14222         * tests/test-math-c++.cc: New file.
14223         * modules/math-tests (Files): Add it and tests/signature.h.
14224         (Depends-on): Add ansi-c++-opt.
14225         (Makefile.am): Arrange to compile and run test-math-c++.
14226         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14227
14228         Tests of module 'locale' in C++ mode.
14229         * tests/test-locale-c++.cc: New file.
14230         * modules/locale-tests (Files): Add it and tests/signature.h.
14231         (Depends-on): Add ansi-c++-opt.
14232         (Makefile.am): Arrange to compile and run test-locale-c++.
14233         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14234         gl_MODULE_INDICATOR.
14235
14236         Tests of module 'langinfo' in C++ mode.
14237         * tests/test-langinfo-c++.cc: New file.
14238         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14239         (Depends-on): Add ansi-c++-opt.
14240         (Makefile.am): Arrange to compile and run test-langinfo-c++.
14241         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
14242         gl_MODULE_INDICATOR.
14243
14244         Tests of module 'iconv-h' in C++ mode.
14245         * tests/test-iconv-h-c++.cc: New file.
14246         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
14247         (Depends-on): Add ansi-c++-opt.
14248         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
14249
14250         Tests of module 'glob' in C++ mode.
14251         * tests/test-glob-c++.cc: New file.
14252         * modules/glob-tests (Files): Add it.
14253         (Depends-on): Add ansi-c++-opt.
14254         (Makefile.am): Arrange to compile and run test-glob-c++.
14255
14256         Tests of module 'fcntl-h' in C++ mode.
14257         * tests/test-fcntl-h-c++.cc: New file.
14258         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
14259         (Depends-on): Add ansi-c++-opt.
14260         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
14261         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
14262         gl_MODULE_INDICATOR.
14263
14264         Tests of module 'dirent' in C++ mode.
14265         * tests/test-dirent-c++.cc: New file.
14266         * modules/dirent-tests (Files): Add it and tests/signature.h.
14267         (Depends-on): Add ansi-c++-opt.
14268         (Makefile.am): Arrange to compile and run test-dirent-c++.
14269         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14270         gl_MODULE_INDICATOR.
14271
14272         New module 'ansi-c++-opt'.
14273         * modules/ansi-c++-opt: New file.
14274         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
14275
14276         Document C++ namespace mode.
14277         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
14278
14279         wctype: Avoid #define replacements in C++ mode.
14280         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
14281         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
14282         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
14283         In C++, define a namespaced alias symbol.
14284         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
14285         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
14286         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
14287         rule.
14288
14289         wchar: Avoid #define replacements in C++ mode.
14290         * lib/wchar.in.h: Include c++defs.h.
14291         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
14292         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
14293         symbol.
14294         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
14295         * modules/wchar (Depends-on): Add c++defs.
14296         (Makefile.am): Update wchar.h rule.
14297
14298         unistd: Avoid #define replacements in C++ mode.
14299         * lib/unistd.in.h: Include c++defs.h.
14300         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
14301         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
14302         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
14303         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
14304         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
14305         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
14306         symbol.
14307         (environ): Update.
14308         * modules/unistd (Depends-on): Add c++defs.
14309         (Makefile.am): Update unistd.h rule.
14310
14311         time: Avoid #define replacements in C++ mode.
14312         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
14313         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
14314         define a namespaced alias symbol.
14315         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
14316         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
14317         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
14318         * modules/time (Depends-on): Add c++defs, warn-on-use.
14319         (Makefile.am): Update time.h rule.
14320         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14321         * modules/nanosleep (configure.ac): Likewise.
14322         * modules/strptime (configure.ac): Likewise.
14323         * modules/timegm (configure.ac): Likewise.
14324
14325         sys_time: Avoid #define replacements in C++ mode.
14326         * lib/sys_time.in.h: Include c++defs.h.
14327         (gettimeofday): In C++, define a namespaced alias symbol.
14328         * modules/sys_time (Depends-on): Add c++defs.
14329         (Makefile.am): Update sys/time.h rule.
14330
14331         sys_stat: Avoid #define replacements in C++ mode.
14332         * lib/sys_stat.in.h: Include c++defs.h.
14333         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
14334         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
14335         namespaced alias symbol.
14336         In C++, define a namespaced alias symbol.
14337         * modules/sys_stat (Depends-on): Add c++defs.
14338         (Makefile.am): Update sys/stat.h rule.
14339
14340         sys_socket: Avoid #define replacements in C++ mode.
14341         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
14342         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
14343         definitions also when the system has a <sys/socket.h>.
14344         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14345         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
14346         In C++, define a namespaced alias symbol.
14347         * modules/sys_socket (Depends-on): Add c++defs.
14348         (Makefile.am): Update sys/socket.h rule.
14349
14350         sys_select: Avoid #define replacements in C++ mode.
14351         * lib/sys_select.in.h: Include c++defs.h. Enable the function
14352         definitions also when the system has a <sys/select.h>.
14353         (select): In C++, define a namespaced alias symbol.
14354         * modules/sys_select (Depends-on): Add c++defs.
14355         (Makefile.am): Update sys/select.h rule.
14356
14357         sys_ioctl: Avoid #define replacements in C++ mode.
14358         * lib/sys_ioctl.in.h: Include c++defs.h.
14359         (ioctl): In C++, define a namespaced alias symbol.
14360         * modules/sys_ioctl (Depends-on): Add c++defs.
14361         (Makefile.am): Update sys/ioctl.h rule.
14362
14363         string: Avoid #define replacements in C++ mode.
14364         * lib/string.in.h: Include c++defs.h.
14365         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
14366         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14367         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14368         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
14369         strsignal, strverscmp): In C++, define a namespaced alias symbol.
14370         * modules/string (Depends-on): Add c++defs.
14371         (Makefile.am): Update string.h rule.
14372
14373         stdlib: Avoid #define replacements in C++ mode.
14374         * lib/stdlib.in.h: Include c++defs.h.
14375         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
14376         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
14377         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
14378         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
14379         symbol.
14380         * modules/stdlib (Depends-on): Add c++defs.
14381         (Makefile.am): Update stdlib.h rule.
14382
14383         stdio: Avoid #define replacements in C++ mode.
14384         * lib/stdio.in.h: Include c++defs.h.
14385         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
14386         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
14387         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
14388         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
14389         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
14390         namespaced alias symbol.
14391         * modules/stdio (Depends-on): Add c++defs.
14392         (Makefile.am): Update stdio.h rule.
14393
14394         spawn: Avoid #define replacements in C++ mode.
14395         * lib/spawn.in.h: Include c++defs.h.
14396         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14397         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14398         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14399         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14400         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14401         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14402         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14403         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14404         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14405         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14406         In C++, define a namespaced alias symbol.
14407         * modules/spawn (Depends-on): Add c++defs.
14408         (Makefile.am): Update spawn.h rule.
14409
14410         signal: Avoid #define replacements in C++ mode.
14411         * lib/signal.in.h: Include c++defs.h.
14412         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14413         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
14414         namespaced alias symbol.
14415         * modules/signal (Depends-on): Add c++defs.
14416         (Makefile.am): Update signal.h rule.
14417
14418         search: Avoid #define replacements in C++ mode.
14419         * lib/search.in.h: Include c++defs.h.
14420         (_gl_search_compar_fn, _gl_search_action_fn): New types.
14421         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
14422         symbol.
14423         * modules/search (Depends-on): Add c++defs.
14424         (Makefile.am): Update search.h rule.
14425
14426         math: Avoid #define replacements in C++ mode.
14427         * lib/math.in.h: Include c++defs.h.
14428         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
14429         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
14430         trunc, truncl): In C++, define a namespaced alias symbol.
14431         * modules/math (Depends-on): Add c++defs.
14432         (Makefile.am): Update math.h rule.
14433
14434         locale: Avoid #define replacements in C++ mode.
14435         * lib/locale.in.h: Include c++defs.h.
14436         (duplocale): In C++, define a namespaced alias symbol.
14437         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
14438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
14439         * modules/locale (Depends-on): Add c++defs.
14440         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
14441
14442         langinfo: Avoid #define replacements in C++ mode.
14443         * lib/langinfo.in.h: Include c++defs.h.
14444         (nl_langinfo): In C++, define a namespaced alias symbol.
14445         * modules/langinfo (Depends-on): Add c++defs.
14446         (Makefile.am): Update langinfo.h rule.
14447
14448         iconv-h: Avoid #define replacements in C++ mode.
14449         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
14450         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
14451         symbol.
14452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14453         whenever iconv is present.
14454         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
14455         (Makefile.am): Update iconv.h rule.
14456
14457         glob: Avoid #define replacements in C++ mode.
14458         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
14459         (_gl_glob_errfunc_fn): New type.
14460         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
14461         symbol.
14462         * modules/glob (Depends-on): Add c++defs, warn-on-use.
14463         (Makefile.am): Update glob.h rule.
14464
14465         fcntl-h: Avoid #define replacements in C++ mode.
14466         * lib/fcntl.in.h: Include c++defs.h.
14467         (fcntl, open, openat): In C++, define a namespaced alias symbol.
14468         * modules/fcntl-h (Depends-on): Add c++defs.
14469         (Makefile.am): Update fcntl.h rule.
14470
14471         dirent: Avoid #define replacements in C++ mode.
14472         * lib/dirent.in.h: Include c++defs.h.
14473         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
14474         namespaced alias symbol.
14475         (dirfd): Update declaration.
14476         * modules/dirent (Depends-on): Add c++defs.
14477         (Makefile.am): Update dirent.h rule.
14478
14479         ctype: Make it usable in C++ code.
14480         * lib/ctype.in.h: Include c++defs.h.
14481         (isblank): Declare as extern "C".
14482         * modules/ctype (Depends-on): Add c++defs.
14483         (Makefile.am): Update ctype.h rule.
14484
14485         New module 'c++defs'.
14486         * modules/c++defs: New file.
14487         * build-aux/c++defs.h: New file.
14488         Reported by John W. Eaton <jwe@gnu.org>.
14489
14490 2010-03-07  Bruno Haible  <bruno@clisp.org>
14491
14492         logb: Provide missing declaration for Cygwin.
14493         * lib/math.in.h (logb): New declaration.
14494         * m4/logb.m4: New file.
14495         * modules/logb (Files): Add m4/logb.m4.
14496         (Depends-on): Add math.
14497         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
14498         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
14499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
14500         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
14501         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
14502
14503 2010-03-07  Bruno Haible  <bruno@clisp.org>
14504
14505         Fix test-cond link error.
14506         * tests/test-cond.c: Include <stdio.h>.
14507
14508 2010-03-07  Bruno Haible  <bruno@clisp.org>
14509
14510         Fix test-dirent-safer link error.
14511         * modules/dirent-safer-tests (Makefile.am): Define
14512         test_dirent_safer_LDADD.
14513
14514 2010-03-07  Bruno Haible  <bruno@clisp.org>
14515
14516         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
14517         among default module list.
14518
14519 2010-03-07  Bruno Haible  <bruno@clisp.org>
14520
14521         Fix link error on platforms with GNU libiconv.
14522         * modules/unistr/u8-strcoll-tests (Makefile): Define
14523         test_u8_strcoll_LDADD.
14524         * modules/unistr/u16-strcoll-tests (Makefile): Define
14525         test_u16_strcoll_LDADD.
14526         * modules/unistr/u32-strcoll-tests (Makefile): Define
14527         test_u32_strcoll_LDADD.
14528
14529 2010-03-07  Bruno Haible  <bruno@clisp.org>
14530
14531         Use POSIX declarations for socket functions.
14532         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
14533         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
14534         rpl_sendto): Change declaration to match POSIX.
14535         * lib/connect.c (rpl_connect): Likewise.
14536         * lib/accept.c (rpl_accept): Likewise.
14537         * lib/bind.c (rpl_bind): Likewise.
14538         * lib/getpeername.c (rpl_getpeername): Likewise.
14539         * lib/getsockname.c (rpl_getsockname): Likewise.
14540         * lib/recv.c (rpl_recv): Likewise.
14541         * lib/send.c (rpl_send): Likewise.
14542         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14543         * lib/sendto.c (rpl_sendto): Likewise.
14544
14545 2010-03-06  Bruno Haible  <bruno@clisp.org>
14546
14547         Clarify access, euidaccess, faccessat.
14548         * doc/posix-functions/faccessat.texi: Mention security problem under
14549         "Other problems", not "Portability problems".
14550         * doc/posix-functions/access.texi: Likewise. Mention a related security
14551         problem.
14552         * doc/glibc-functions/euidaccess.texi: Mention security problems.
14553         * lib/euidaccess.c: Add comments about platforms.
14554         * lib/unistd.in.h (access, euidaccess): Add warnings.
14555
14556 2010-03-07  Bruno Haible  <bruno@clisp.org>
14557
14558         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
14559         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
14560         (POSIX_SPAWN_SETSCHEDULER): Likewise.
14561         (POSIX_SPAWN_USEVFORK): Define in a way that works when
14562         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14563         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
14564         declare when POSIX_SPAWN_SETSCHEDULER is zero.
14565         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
14566         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
14567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
14568         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
14569         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
14570         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
14571         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
14572         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
14573         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
14574         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
14575         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
14576         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
14577         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
14578         Likewise.
14579         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
14580         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
14581         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
14582         Likewise.
14583         * tests/test-spawn.c (main): Make it work when
14584         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
14585
14586 2010-03-07  Bruno Haible  <bruno@clisp.org>
14587
14588         Fix incorrect Makefile.am generation in German locale.
14589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14590         Execute sed command with character range in C locale.
14591
14592 2010-03-06  Bruno Haible  <bruno@clisp.org>
14593
14594         Tests for module 'iconv-h'.
14595         * modules/iconv-h-tests: New file.
14596         * tests/test-iconv-h.c: New file.
14597
14598         New module 'iconv-h'.
14599         * modules/iconv-h: New file.
14600         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
14601         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
14602         (configure.ac): Remove gl_ICONV_H.
14603         (Makefile.am): Remove rule for iconv.h.
14604
14605 2010-03-06  Bruno Haible  <bruno@clisp.org>
14606
14607         More consistent naming of *.m4 files.
14608         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
14609         * modules/wctype (Files): Update.
14610
14611         More consistent naming of *.m4 files.
14612         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
14613         * modules/wchar (Files): Update.
14614
14615 2010-03-06  Jim Meyering  <meyering@redhat.com>
14616
14617         euidaccess: relax license to LGPLv2+
14618         * modules/euidaccess (License): Relax to LGPLv2+.
14619
14620 2010-03-06  Bruno Haible  <bruno@clisp.org>
14621
14622         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
14623         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
14624         (Makefile.am): Augment lib_SOURCES instead.
14625
14626 2010-03-04  Jim Meyering  <meyering@redhat.com>
14627
14628         utime: remove obsolete module
14629         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
14630         unnecessary for years, and has been marked as obsolete for 10 months.
14631         * modules/utime: Remove file.
14632         * lib/utime.c: Remove file.
14633         * m4/utime.m4: Remove file.
14634         * m4/utimes-null.m4: Remove file.
14635         * doc/posix-functions/utime.texi (utime): Remove reference to
14636         the module.  Move the sole "fixed by gnulib" item into the
14637         "problems not fixed by Gnulib" list.
14638         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
14639
14640 2010-03-05  Simon Josefsson  <simon@josefsson.org>
14641
14642         * modules/exit (License): Relax license to LGPLv2+.
14643         (Status): Mark as obsolete.
14644         * NEWS: Mention deprecated 'exit' module.
14645         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
14646         of now obsolete 'exit'.
14647
14648 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14649
14650         fts-lgpl: remove unused module
14651         * modules/fts-lgpl: Remove.
14652         * MODULES.html.sh (func_all_modules): Adjust.
14653         * check-module (find_included_lib_files): Adjust.
14654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
14655
14656 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
14657
14658         copy-acl: enhance Solaris ACL error handling
14659         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
14660         * lib/set-mode-acl.c (qset_acl): Likewise.
14661
14662 2010-03-02  Bruno Haible  <bruno@clisp.org>
14663
14664         spawn: Don't override the system defined values on FreeBSD 8.
14665         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
14666         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
14667         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
14668         if HAVE_POSIX_SPAWN is 1.
14669         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
14670
14671 2010-03-01  Bruno Haible  <bruno@clisp.org>
14672
14673         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
14674         regarding Automake.
14675
14676 2010-02-25  Bruno Haible  <bruno@clisp.org>
14677
14678         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
14679         * gnulib-tool: Define 'echo' as a function only before the ksh alias
14680         setting, not afterwards.
14681         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
14682
14683 2010-02-24  Eric Blake  <eblake@redhat.com>
14684
14685         bootstrap, git-version-gen: use timestamp
14686         * build-aux/git-version-gen (scriptversion): Force UTC.
14687         * build-aux/bootstrap (scriptversion): New variable.
14688
14689         bootstrap: allow older git
14690         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
14691         older than 1.6.4.  Requested by the libvirt project.
14692
14693 2010-02-23  Eric Blake  <eblake@redhat.com>
14694
14695         warn-on-use: work with old autoconf
14696         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
14697         AS_VAR semantics of autoconf 2.60.
14698         Reported by Bruno Haible.
14699
14700         bootstrap: improve some comments
14701         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
14702         clarification comments.
14703
14704         gettimeofday: provide correct function
14705         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
14706         when replacement is declared, otherwise provide gettimeofday.
14707         Reported by Michael Goffioul.
14708
14709 2010-02-23  Jim Meyering  <meyering@redhat.com>
14710
14711         lib-ignore: relax license to "unlimited", not LGPLv2+
14712         * modules/lib-ignore (License): Relax to "unlimited".
14713
14714 2010-02-23  Jim Meyering  <meyering@redhat.com>
14715
14716         lib-ignore: relax license to LGPLv2+
14717         * modules/lib-ignore (License): Relax to LGPLv2+.
14718
14719 2010-02-22  Eric Blake  <eblake@redhat.com>
14720
14721         lseek: avoid bash 3.2 broken pipe bug
14722         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
14723         warning from bash 3.2.
14724         Reported by Ben Pfaff, with analysis from Bruno Haible.
14725
14726         bootstrap: support non-FSF copyright holder
14727         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
14728         bootstrap.conf override of COPYRIGHT_HOLDER.
14729         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
14730
14731         bootstrap: interoperate with gettext 0.14.1
14732         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
14733
14734         bootstrap: allow for alternate submodule location
14735         * build-aux/bootstrap (gnulib_path): New variable; use instead of
14736         hardcoding submodule location.
14737         (gnulib_mk): Allow direct use of Makefile.am.
14738
14739         bootstrap: use GNULIB_SRCDIR to reduce disk usage
14740         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
14741         rather than reconfiguring where the submodule points.
14742
14743         gettimeofday: restore support for platforms that lack function
14744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
14745         replacement if function is missing.
14746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
14747         * modules/sys_time (Makefile.am): Substitute it.
14748         * lib/sys_time.in.h (gettimeofday): Check it.
14749         Reported by Michael Goffioul.
14750
14751 2010-02-21  Bruno Haible  <bruno@clisp.org>
14752
14753         * lib/stdio.in.h (obstack_printf): Fix typo.
14754
14755 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
14756
14757         vc-list-files: use bzr ls's -R option
14758         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
14759         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
14760
14761 2010-02-21  Jim Meyering  <meyering@redhat.com>
14762
14763         init.sh: fix EXEEXT shims to work also for names like test-prog
14764         * tests/init.sh: Re-exec a better shell, when needed.
14765         If the current shell lacks support for posix $(...), an init.sh-using
14766         test will now try to find a shell that supports that.  If EXEEXT is
14767         nonempty, we also require support for hyphen-in-alias-name and shell
14768         substitutions like ${var#glob}.  Failure to find such a shell results
14769         in a skipped test.
14770
14771 2010-02-21  Bruno Haible  <bruno@clisp.org>
14772
14773         Really work around around "broken pipe" error message from bash 3.2.
14774         * gnulib-tool (func_reset_sigpipe): Remove function.
14775         (echo): In bash 3.2, define to a function that uses printf.
14776         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
14777
14778 2010-02-20  Bruno Haible  <bruno@clisp.org>
14779
14780         Restore support for automake 1.9.6 with autoconf 2.61.
14781         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
14782         Reported by James Youngman <jay@gnu.org>.
14783
14784 2010-02-20  Bruno Haible  <bruno@clisp.org>
14785
14786         Improve *printf warning condition.
14787         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
14788         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
14789         and the function is overridden due to SIGPIPE emulation.
14790
14791 2010-02-20  Bruno Haible  <bruno@clisp.org>
14792
14793         * lib/stdio.in.h: Tweak comments.
14794
14795 2010-02-19  Bruno Haible  <bruno@clisp.org>
14796
14797         Make it easier to find modules. New gnulib-tool option '--find'.
14798         * gnulib-tool: New option --find.
14799         (func_usage): Document it.
14800         (func_sanitize_modulelist): New function, extracted from
14801         func_all_modules.
14802         (func_all_modules): Invoke it.
14803         * doc/gnulib-tool.texi (Which modules?): New node.
14804
14805 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
14806
14807         * lib/sys_select.in.h: Provide select replacement even if
14808         sys/select.h exists on a system, for Interix.
14809
14810 2010-02-18  Jim Meyering  <meyering@redhat.com>
14811
14812         init.sh: don't use $(...) just yet
14813         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
14814         to accommodate e.g., Solaris' /bin/sh.
14815
14816 2010-02-17  Bruno Haible  <bruno@clisp.org>
14817
14818         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
14819         Reported by Ludovic Courtès <ludo@gnu.org>.
14820
14821 2010-02-16  Simon Josefsson  <simon@josefsson.org>
14822
14823         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
14824         linking with -lintl.
14825
14826 2010-02-17  Simon Josefsson  <simon@josefsson.org>
14827
14828         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14829         if not provided by the system's netdb.h.  Reported by
14830         ludo@gnu.org (Ludovic Courtès).
14831
14832 2010-02-15  Jim Meyering  <meyering@redhat.com>
14833
14834         init.sh: improve portability and efficiency
14835         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
14836         "dummy" in a for loop.
14837         Use '!', not '^' to select the complement of a character set used
14838         in a "case" statement.
14839         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
14840         Suggestions from Eric Blake.
14841
14842         init.sh: automatically accommodate programs with the .exe suffix
14843         Automatically arrange for an invocation of "prog" to execute the
14844         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
14845         may use the simpler "prog", yet still work when built on a system
14846         that requires specifying the added suffix.
14847         Do this by constructing a function named "prog" that invokes
14848         "prog.exe" for each .exe file in selected directories.
14849         * tests/init.sh (find_exe_basenames_): New function.
14850         (create_exe_shim_functions_): New function.
14851         (path_prepend_): Use it.
14852
14853         maint.mk: mark syntax-check sc_*.m rules as .PHONY
14854         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
14855         "make -t syntax-check" doesn't create a ton of sc_*.m files.
14856
14857 2010-02-14  Jim Meyering  <meyering@redhat.com>
14858
14859         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
14860         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
14861         (sc_prohibit_hash_pjw_without_use): New rule.
14862
14863         maint.mk: allow the default upload destination dir to be overridden
14864         * top/maint.mk (upload_dest_dir_): Define with a default that
14865         preserves the status quo.
14866         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
14867         Reported by Peter Simons.
14868
14869         maint.mk: prohibit inclusion of "hash.h" without_use
14870         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
14871
14872 2010-02-10  Jim Meyering  <meyering@redhat.com>
14873
14874         maint.mk: prohibit inclusion of "ignore-value.h" without_use
14875         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
14876
14877 2010-02-09  Eric Blake  <ebb9@byu.net>
14878         and Bruno Haible  <bruno@clisp.org>
14879
14880         obstack-printf-posix: ensure declaration
14881         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
14882         extracted from gl_FUNC_OBSTACK_PRINTF.
14883         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
14884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
14885         Likewise.
14886         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
14887         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
14888         0.
14889
14890 2010-02-08  Bruno Haible  <bruno@clisp.org>
14891
14892         gnulib-tool: Fix typo in 2010-02-07 commit.
14893         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
14894         Reported by Eric Blake.
14895
14896 2010-02-07  Bruno Haible  <bruno@clisp.org>
14897
14898         gnulib-tool: Fix up caching patches.
14899         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
14900         option --no-cache. Use associative arrays when supported by the shell.
14901         (sed_comments): New variable.
14902         (modcache): Renamed from do_cache.
14903         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
14904         abbreviate unnecessarily.
14905         (have_associative): New variable.
14906         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
14907         way also for ksh and zsh.
14908         (func_init_sed_convert_to_cache_statements): New function, extracted
14909         from func_cache_lookup_module. Add support for associative arrays.
14910         Don't set the c_MODULE_cached variable here. Ignore all lines before
14911         the first field header. Remove only the final newline, not all trailing
14912         newlines. Support empty fields correctly. Limit the use of 'eval' to
14913         assignments.
14914         (func_get_description, func_get_status, func_get_notice,
14915         func_get_applicability, func_get_filelist, func_get_dependencies,
14916         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
14917         func_get_automake_snippet, func_get_include_directive,
14918         func_get_link_directive, func_get_license, func_get_maintainer):
14919         Update documentation. List the unoptimized code first. Add support for
14920         associative arrays. Limit the use of 'eval' to assignments.
14921         (func_get_applicability): Undo stylistic pessimisations.
14922         (func_get_automake_snippet, func_get_include_directive): Reduce code
14923         duplication.
14924         (func_modules_transitive_closure, func_modules_add_dummy,
14925         func_modules_notice, func_modules_to_filelist, func_add_file,
14926         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
14927         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
14928         func_create_testdir, func_create_megatestdir): Update documentation.
14929
14930 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14931
14932         * gnulib-tool (func_cache_lookup_module): Store the module name
14933         belonging to the cache variable; error out if two different
14934         module names map to the same cache variable name.
14935
14936 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14937
14938         gnulib-tool: Make caching optional.
14939         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
14940         Update matching short versions of --no-changelog.
14941         (func_usage): Update.
14942         (sed_extract_cache_prog): Renamed from ...
14943         (sed_extract_prog): ... this; revert to old extraction script.
14944         (func_get_description, func_get_status)
14945         (func_get_notice, func_get_applicability, func_get_filelist)
14946         (func_get_dependencies, func_get_autoconf_early_snippet)
14947         (func_get_autoconf_snippet, func_get_automake_snippet)
14948         (func_get_include_directive, func_get_link_directive)
14949         (func_get_license, func_get_maintainer): If $do_cache is false,
14950         use old, non-caching extraction scripts.
14951         Suggestion by Bruno Haible.
14952
14953 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14954
14955         gnulib-tool: cache module metainformation.
14956         * gnulib-tool (sed_extract_prog): Match newline before each
14957         header, and rewrite header to a shell variable suffix.
14958         (func_cache_var, func_cache_lookup_module): New functions,
14959         to turn a module name into a cache variable prefix, and to
14960         look up and cache module metainformation.
14961         (func_get_description, func_get_status)
14962         (func_get_notice, func_get_applicability, func_get_filelist)
14963         (func_get_dependencies, func_get_autoconf_early_snippet)
14964         (func_get_autoconf_snippet, func_get_automake_snippet)
14965         (func_get_include_directive, func_get_link_directive)
14966         (func_get_license, func_get_maintainer): Use
14967         func_cache_lookup_module.
14968
14969 2010-02-07  Bruno Haible  <bruno@clisp.org>
14970
14971         fnctl: Fix missing dependency.
14972         * modules/fcntl (Depends-on): Add getdtablesize.
14973         Reported by John W. Eaton <jwe@gnu.org>.
14974
14975 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14976
14977         Argp: fix recognition of short alias options.
14978
14979         * lib/argp-parse.c (convert_options): Fix improper use of
14980         `|' between character values.
14981         * tests/test-argp.c (group1_option): New alias option
14982         --read (-r).
14983         (group1_parser): Special handling for 'r'.
14984         (test15): New test case.
14985         (test_fun): Add test15.
14986         * tests/test-argp-2.sh: Update expected --help and --usage
14987         outputs.
14988
14989 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14990
14991         * tests/test-argp.c: Fix indentation.
14992
14993 2010-02-04  Eric Blake  <ebb9@byu.net>
14994
14995         gettimeofday: expose type of second argument
14996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14997         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14998         * tests/test-gettimeofday.c: Use it to silence warning.
14999         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15000         the issue.
15001
15002 2010-02-03  Jim Meyering  <meyering@redhat.com>
15003
15004         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15005         * lib/regcomp.c (TYPE_SIGNED): Define.
15006         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15007
15008         regcomp.c: avoid a new -Wshadow warning
15009         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15010
15011 2010-02-01  Jim Meyering  <meyering@redhat.com>
15012
15013         removing useless parentheses in cpp #define directives
15014         For motivation, see commit c0221df4, "define STREQ(a,b)
15015         consistently, removing useless parentheses"
15016         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15017         * lib/mountlist.c (MNT_IGNORE): Likewise.
15018         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15019
15020 2010-02-01  Eric Blake  <ebb9@byu.net>
15021
15022         sys_time: use link-warning
15023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15024         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15025         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15026         * modules/sys_time (Depends-on): Add warn-on-use.
15027         (Makefile.am): Always build replacement.
15028         (configure.ac): Update substitutions.
15029         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15030         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15031         bother with SYS_TIME_H.
15032         * modules/gettimeofday (configure.ac): Declare indicator.
15033         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15034         in use.
15035
15036         closein-tests: silence compiler warning
15037         * tests/test-closein.c (main): Ignore fread result.
15038         * modules/closein-tests (Depends-on): Add ignore-value.
15039
15040         tests: silence warning about system return
15041         * tests/test-areadlink-with-size.c (main): Ignore system result.
15042         * tests/test-areadlink.c (main): Likewise.
15043         * tests/test-areadlinkat-with-size.c (main): Likewise.
15044         * tests/test-areadlinkat.c (main): Likewise.
15045         * tests/test-canonicalize-lgpl.c (main): Likewise.
15046         * tests/test-canonicalize.c (main): Likewise.
15047         * tests/test-chown.c (main): Likewise.
15048         * tests/test-fchownat.c (main): Likewise.
15049         * tests/test-fdutimensat.c (main): Likewise.
15050         * tests/test-fstatat.c (main): Likewise.
15051         * tests/test-futimens.c (main): Likewise.
15052         * tests/test-lchown.c (main): Likewise.
15053         * tests/test-link.c (main): Likewise.
15054         * tests/test-linkat.c (main): Likewise.
15055         * tests/test-lstat.c (main): Likewise.
15056         * tests/test-mkdir.c (main): Likewise.
15057         * tests/test-mkdirat.c (main): Likewise.
15058         * tests/test-mkfifo.c (main): Likewise.
15059         * tests/test-mkfifoat.c (main): Likewise.
15060         * tests/test-mknod.c (main): Likewise.
15061         * tests/test-readlink.c (main): Likewise.
15062         * tests/test-remove.c (main): Likewise.
15063         * tests/test-rename.c (main): Likewise.
15064         * tests/test-renameat.c (main): Likewise.
15065         * tests/test-rmdir.c (main): Likewise.
15066         * tests/test-symlink.c (main): Likewise.
15067         * tests/test-symlinkat.c (main): Likewise.
15068         * tests/test-unlink.c (main): Likewise.
15069         * tests/test-unlinkat.c (main): Likewise.
15070         * tests/test-utimens.c (main): Likewise.
15071         * tests/test-utimensat.c (main): Likewise.
15072         * modules/areadlink-tests (Depends-on): Add ignore-value.
15073         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15074         * modules/areadlinkat-tests (Depends-on): Likewise.
15075         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15077         * modules/canonicalize-tests (Depends-on): Likewise.
15078         * modules/chown-tests (Depends-on): Likewise.
15079         * modules/fdutimensat-tests (Depends-on): Likewise.
15080         * modules/futimens-tests (Depends-on): Likewise.
15081         * modules/lchown-tests (Depends-on): Likewise.
15082         * modules/link-tests (Depends-on): Likewise.
15083         * modules/linkat-tests (Depends-on): Likewise.
15084         * modules/lstat-tests (Depends-on): Likewise.
15085         * modules/mkdir-tests (Depends-on): Likewise.
15086         * modules/mkfifo-tests (Depends-on): Likewise.
15087         * modules/mkfifoat-tests (Depends-on): Likewise.
15088         * modules/mknod-tests (Depends-on): Likewise.
15089         * modules/openat-tests (Depends-on): Likewise.
15090         * modules/readlink-tests (Depends-on): Likewise.
15091         * modules/remove-tests (Depends-on): Likewise.
15092         * modules/rename-tests (Depends-on): Likewise.
15093         * modules/renameat-tests (Depends-on): Likewise.
15094         * modules/rmdir-tests (Depends-on): Likewise.
15095         * modules/symlink-tests (Depends-on): Likewise.
15096         * modules/symlinkat-tests (Depends-on): Likewise.
15097         * modules/unlink-tests (Depends-on): Likewise.
15098         * modules/utimens-tests (Depends-on): Likewise.
15099         * modules/utimensat-tests (Depends-on): Likewise.
15100
15101 2010-01-31  Bruno Haible  <bruno@clisp.org>
15102
15103         Perform the same test for many <math.h> functions.
15104         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15105         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15106         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15107         of gl_MATHFUNC.
15108         * modules/acos (configure.ac): Likewise.
15109         * modules/asin (configure.ac): Likewise.
15110         * modules/atan (configure.ac): Likewise.
15111         * modules/atan2 (configure.ac): Likewise.
15112         * modules/cbrt (configure.ac): Likewise.
15113         * modules/copysign (configure.ac): Likewise.
15114         * modules/cos (configure.ac): Likewise.
15115         * modules/cosh (configure.ac): Likewise.
15116         * modules/erf (configure.ac): Likewise.
15117         * modules/erfc (configure.ac): Likewise.
15118         * modules/exp (configure.ac): Likewise.
15119         * modules/fmod (configure.ac): Likewise.
15120         * modules/hypot (configure.ac): Likewise.
15121         * modules/j0 (configure.ac): Likewise.
15122         * modules/j1 (configure.ac): Likewise.
15123         * modules/jn (configure.ac): Likewise.
15124         * modules/lgamma (configure.ac): Likewise.
15125         * modules/log (configure.ac): Likewise.
15126         * modules/log10 (configure.ac): Likewise.
15127         * modules/log1p (configure.ac): Likewise.
15128         * modules/pow (configure.ac): Likewise.
15129         * modules/remainder (configure.ac): Likewise.
15130         * modules/sin (configure.ac): Likewise.
15131         * modules/sinh (configure.ac): Likewise.
15132         * modules/tan (configure.ac): Likewise.
15133         * modules/tanh (configure.ac): Likewise.
15134         * modules/y0 (configure.ac): Likewise.
15135         * modules/y1 (configure.ac): Likewise.
15136         * modules/yn (configure.ac): Likewise.
15137         Suggested by Paolo Bonzini.
15138
15139 2010-01-31  Bruno Haible  <bruno@clisp.org>
15140
15141         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15142
15143 2010-01-31  Bruno Haible  <bruno@clisp.org>
15144
15145         Work around getdelim() bug on FreeBSD 8.0.
15146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15147         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15148         not work.
15149         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15150         is 1.
15151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15152         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15153         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15154         a non-zero size.
15155         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15156
15157 2010-01-31  Bruno Haible  <bruno@clisp.org>
15158
15159         Work around getline() bug on FreeBSD 8.0.
15160         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15161         and a non-zero size.
15162         * tests/test-getline.c (main): Likewise.
15163         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15164         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15165
15166 2010-01-28  Eric Blake  <ebb9@byu.net>
15167
15168         regex: fix build failure
15169         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15170         platforms.
15171
15172 2010-01-28  Jim Meyering  <meyering@redhat.com>
15173
15174         regex: do not ignore memory allocation failure
15175         * lib/regex_internal.c (create_cd_newstate): Detect
15176         re_node_set_init_copy failure.   Extracted from glibc commit
15177         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15178
15179         regex: sync more white-space changes from libc
15180         * lib/regex_internal.c: White-space only changes.
15181         * lib/regexec.c: Likewise.
15182
15183         regex: add many uses of __attribute_warn_unused_result__
15184         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15185         * lib/regexec.c: Likewise.
15186         Extracted from a messy glibc commit.
15187
15188         regcomp.c: spelling and merge-artifact from glibc
15189         * lib/regcomp.c: Merge remainder of glibc's
15190         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15191
15192         regcomp.c: sync white-space changes from glibc
15193         * lib/regcomp.c: Merge to accommodate white space
15194         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15195
15196         regcomp.c: do not ignore internal return values
15197         * lib/regcomp.c: Do not ignore internal return values.
15198         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15199         but without its white-space changes and spelling fixes.
15200
15201         regex_internal.h: define __attribute_warn_unused_result__
15202         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15203
15204         maint: add a syntax-check rule to check for vulnerable Makefile.in
15205         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15206
15207 2010-01-27  Jim Meyering  <meyering@redhat.com>
15208
15209         ncftpput-ftp: clean up spaces
15210         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15211         Remove trailing blanks.
15212
15213 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15214
15215         * build-aux/git-version-gen: Fix copyright statement.
15216         * build-aux/gnupload: Likewise.
15217         * tests/test-arcfour.c: Likewise.
15218         * tests/test-arctwo.c: Likewise.
15219         * tests/test-count-one-bits.c: Likewise.
15220         * tests/test-crc.c: Likewise.
15221         * tests/test-des.c: Likewise.
15222         * tests/test-gc-arcfour.c: Likewise.
15223         * tests/test-gc-arctwo.c: Likewise.
15224         * tests/test-gc-des.c: Likewise.
15225         * tests/test-gc-hmac-md5.c: Likewise.
15226         * tests/test-gc-hmac-sha1.c: Likewise.
15227         * tests/test-gc-md2.c: Likewise.
15228         * tests/test-gc-md4.c: Likewise.
15229         * tests/test-gc-md5.c: Likewise.
15230         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15231         * tests/test-gc-rijndael.c: Likewise.
15232         * tests/test-gc-sha1.c: Likewise.
15233         * tests/test-gc.c: Likewise.
15234         * tests/test-gethostname.c: Likewise.
15235         * tests/test-gettimeofday.c: Likewise.
15236         * tests/test-hash.c: Likewise.
15237         * tests/test-hmac-md5.c: Likewise.
15238         * tests/test-hmac-sha1.c: Likewise.
15239         * tests/test-md2.c: Likewise.
15240         * tests/test-md4.c: Likewise.
15241         * tests/test-md5.c: Likewise.
15242         * tests/test-memchr.c: Likewise.
15243         * tests/test-memchr2.c: Likewise.
15244         * tests/test-memcmp.c: Likewise.
15245         * tests/test-memmem.c: Likewise.
15246         * tests/test-memrchr.c: Likewise.
15247         * tests/test-rawmemchr.c: Likewise.
15248         * tests/test-read-file.c: Likewise.
15249         * tests/test-rijndael.c: Likewise.
15250         * tests/test-sockets.c: Likewise.
15251         * tests/test-strchrnul.c: Likewise.
15252         * tests/test-strstr.c: Likewise.
15253         * tests/test-strtod.c: Likewise.
15254         * build-aux/ncftpput-ftp: Likewise.
15255
15256 2010-01-26  Eric Blake  <ebb9@byu.net>
15257
15258         ignore-value: update recommended header name
15259         * modules/ignore-value (Include): Only use <> for headers that
15260         exist in glibc.
15261
15262 2010-01-26  Jim Meyering  <meyering@redhat.com>
15263
15264         test-userspec.c: avoid compiler warnings
15265         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
15266         and "initialization discards qualifiers..." warnings.
15267         Put the first "uid" in its own scope, and make char* members "const".
15268
15269 2010-01-25  Bruno Haible  <bruno@clisp.org>
15270
15271         gnulib-tool: Make warning diagnostics consistent.
15272         * gnulib-tool (func_warning): New function.
15273         Use it everywhere where gnulib-tool produces output to stderr and it is
15274         not a fatal error.
15275
15276 2010-01-25  Bruno Haible  <bruno@clisp.org>
15277
15278         Fix test dependencies.
15279         * modules/xstrtol-tests (Depends-on): Add inttypes.
15280         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
15281
15282 2010-01-25 Pádraig Brady <P@draigBrady.com>
15283
15284         syntax-check: detect incorrect boolean macro values in config.h
15285         * modules/maintainer-makefile (configure.ac): Parameterize the location
15286         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
15287         The logic is from Eric Blake and the location indicated by Jim Meyering.
15288         Note the more natural CONFIG_HEADER name is prohibited by automake
15289         for backwards compatibility reasons.
15290         * top/maint.mk (sc_Wundef_boolean): New rule.
15291
15292 2010-01-25  Jim Meyering  <meyering@redhat.com>
15293
15294         bootstrap: detect MacOS 10.6's shasum, too
15295         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
15296         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
15297
15298 2010-01-23  Jim Meyering  <meyering@redhat.com>
15299
15300         xstrtoll: new module
15301         * modules/xstrtoll: New file.
15302         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
15303         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
15304         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
15305         ./configure fails if you use this module and lack "long long".
15306         * modules/xstrtoll-tests: New module.
15307         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
15308         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
15309         new init.sh-based test framework.
15310
15311 2010-01-24  Bruno Haible  <bruno@clisp.org>
15312
15313         Tests for module 'yn'.
15314         * modules/yn-tests: New file.
15315         * tests/test-yn.c: New file.
15316
15317         Tests for module 'y1'.
15318         * modules/y1-tests: New file.
15319         * tests/test-y1.c: New file.
15320
15321         Tests for module 'y0'.
15322         * modules/y0-tests: New file.
15323         * tests/test-y0.c: New file.
15324
15325         Tests for module 'tanh'.
15326         * modules/tanh-tests: New file.
15327         * tests/test-tanh.c: New file.
15328
15329         Tests for module 'tan'.
15330         * modules/tan-tests: New file.
15331         * tests/test-tan.c: New file.
15332
15333         Tests for module 'sqrt'.
15334         * modules/sqrt-tests: New file.
15335         * tests/test-sqrt.c: New file.
15336
15337         Tests for module 'sinh'.
15338         * modules/sinh-tests: New file.
15339         * tests/test-sinh.c: New file.
15340
15341         Tests for module 'sin'.
15342         * modules/sin-tests: New file.
15343         * tests/test-sin.c: New file.
15344
15345         Tests for module 'rint'.
15346         * modules/rint-tests: New file.
15347         * tests/test-rint.c: New file.
15348
15349         Tests for module 'remainder'.
15350         * modules/remainder-tests: New file.
15351         * tests/test-remainder.c: New file.
15352
15353         Tests for module 'pow'.
15354         * modules/pow-tests: New file.
15355         * tests/test-pow.c: New file.
15356
15357         Tests for module 'nextafter'.
15358         * modules/nextafter-tests: New file.
15359         * tests/test-nextafter.c: New file.
15360
15361         Tests for module 'modf'.
15362         * modules/modf-tests: New file.
15363         * tests/test-modf.c: New file.
15364
15365         Tests for module 'logb'.
15366         * modules/logb-tests: New file.
15367         * tests/test-logb.c: New file.
15368
15369         Tests for module 'log1p'.
15370         * modules/log1p-tests: New file.
15371         * tests/test-log1p.c: New file.
15372
15373         Tests for module 'log10'.
15374         * modules/log10-tests: New file.
15375         * tests/test-log10.c: New file.
15376
15377         Tests for module 'log'.
15378         * modules/log-tests: New file.
15379         * tests/test-log.c: New file.
15380
15381         Tests for module 'lgamma'.
15382         * modules/lgamma-tests: New file.
15383         * tests/test-lgamma.c: New file.
15384
15385         Tests for module 'ldexp'.
15386         * modules/ldexp-tests: New file.
15387         * tests/test-ldexp.c: New file.
15388
15389         Tests for module 'jn'.
15390         * modules/jn-tests: New file.
15391         * tests/test-jn.c: New file.
15392
15393         Tests for module 'j1'.
15394         * modules/j1-tests: New file.
15395         * tests/test-j1.c: New file.
15396
15397         Tests for module 'j0'.
15398         * modules/j0-tests: New file.
15399         * tests/test-j0.c: New file.
15400
15401         Tests for module 'hypot'.
15402         * modules/hypot-tests: New file.
15403         * tests/test-hypot.c: New file.
15404
15405         Tests for module 'fmod'.
15406         * modules/fmod-tests: New file.
15407         * tests/test-fmod.c: New file.
15408
15409         Tests for module 'fabs'.
15410         * modules/fabs-tests: New file.
15411         * tests/test-fabs.c: New file.
15412
15413         Tests for module 'exp'.
15414         * modules/exp-tests: New file.
15415         * tests/test-exp.c: New file.
15416
15417         Tests for module 'erfc'.
15418         * modules/erfc-tests: New file.
15419         * tests/test-erfc.c: New file.
15420
15421         Tests for module 'erf'.
15422         * modules/erf-tests: New file.
15423         * tests/test-erf.c: New file.
15424
15425         Tests for module 'cosh'.
15426         * modules/cosh-tests: New file.
15427         * tests/test-cosh.c: New file.
15428
15429         Tests for module 'cos'.
15430         * modules/cos-tests: New file.
15431         * tests/test-cos.c: New file.
15432
15433         Tests for module 'copysign'.
15434         * modules/copysign-tests: New file.
15435         * tests/test-copysign.c: New file.
15436
15437         Tests for module 'cbrt'.
15438         * modules/cbrt-tests: New file.
15439         * tests/test-cbrt.c: New file.
15440
15441         Tests for module 'atan2'.
15442         * modules/atan2-tests: New file.
15443         * tests/test-atan2.c: New file.
15444
15445         Tests for module 'atan'.
15446         * modules/atan-tests: New file.
15447         * tests/test-atan.c: New file.
15448
15449         Tests for module 'asin'.
15450         * modules/asin-tests: New file.
15451         * tests/test-asin.c: New file.
15452
15453         Tests for module 'acos'.
15454         * modules/acos-tests: New file.
15455         * tests/test-acos.c: New file.
15456
15457 2010-01-24  Bruno Haible  <bruno@clisp.org>
15458
15459         Fix tests for common <math.h> functions.
15460         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
15461         code snippet that references the function pointer, rather than merely
15462         calling the function. Substitute the FUNC_LIBM variable.
15463         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
15464         * modules/acos (configure.ac): Likewise.
15465         * modules/asin (configure.ac): Likewise.
15466         * modules/atan (configure.ac): Likewise.
15467         * modules/atan2 (configure.ac): Likewise.
15468         * modules/cbrt (configure.ac): Likewise.
15469         * modules/copysign (configure.ac): Likewise.
15470         * modules/cos (configure.ac): Likewise.
15471         * modules/cosh (configure.ac): Likewise.
15472         * modules/erf (configure.ac): Likewise.
15473         * modules/erfc (configure.ac): Likewise.
15474         * modules/exp (configure.ac): Likewise.
15475         * modules/fabs (configure.ac): Likewise.
15476         * modules/fmod (configure.ac): Likewise.
15477         * modules/hypot (configure.ac): Likewise.
15478         * modules/j0 (configure.ac): Likewise.
15479         * modules/j1 (configure.ac): Likewise.
15480         * modules/jn (configure.ac): Likewise.
15481         * modules/ldexp (configure.ac): Likewise.
15482         * modules/lgamma (configure.ac): Likewise.
15483         * modules/log (configure.ac): Likewise.
15484         * modules/log10 (configure.ac): Likewise.
15485         * modules/log1p (configure.ac): Likewise.
15486         * modules/logb (configure.ac): Likewise.
15487         * modules/modf (configure.ac): Likewise.
15488         * modules/nextafter (configure.ac): Likewise.
15489         * modules/pow (configure.ac): Likewise.
15490         * modules/remainder (configure.ac): Likewise.
15491         * modules/rint (configure.ac): Likewise.
15492         * modules/sin (configure.ac): Likewise.
15493         * modules/sinh (configure.ac): Likewise.
15494         * modules/tan (configure.ac): Likewise.
15495         * modules/tanh (configure.ac): Likewise.
15496         * modules/y0 (configure.ac): Likewise.
15497         * modules/y1 (configure.ac): Likewise.
15498         * modules/yn (configure.ac): Likewise.
15499
15500 2010-01-24  Bruno Haible  <bruno@clisp.org>
15501
15502         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
15503         * tests/test-acosl.c (x): New variable.
15504         (main): Store argument in x and fetch it from x.
15505         * tests/test-asinl.c (x): New variable.
15506         (main): Store argument in x and fetch it from x.
15507         * tests/test-atanl.c (x): New variable.
15508         (main): Store argument in x and fetch it from x.
15509         * tests/test-cosl.c (x): New variable.
15510         (main): Store argument in x and fetch it from x.
15511         * tests/test-expl.c (x): New variable.
15512         (main): Store argument in x and fetch it from x.
15513         * tests/test-logl.c (x): New variable.
15514         (main): Store argument in x and fetch it from x.
15515         * tests/test-sinl.c (x): New variable.
15516         (main): Store argument in x and fetch it from x.
15517         * tests/test-sqrtl.c (x): New variable.
15518         (main): Store argument in x and fetch it from x.
15519         * tests/test-tanl.c (x): New variable.
15520         (main): Store argument in x and fetch it from x.
15521
15522 2010-01-24  Bruno Haible  <bruno@clisp.org>
15523
15524         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
15525         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
15526         assignments to the initial TESTS_ENVIRONMENT.
15527         * doc/gnulib.texi (Unit test modules): Document it.
15528         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
15529         TESTS_ENVIRONMENT.
15530         * modules/btowc-tests (Makefile.am): Likewise.
15531         * modules/c-stack-tests (Makefile.am): Likewise.
15532         * modules/c-strcase-tests (Makefile.am): Likewise.
15533         * modules/copy-file-tests (Makefile.am): Likewise.
15534         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
15535         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
15536         * modules/mbrtowc-tests (Makefile.am): Likewise.
15537         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15538         * modules/mbscasestr-tests (Makefile.am): Likewise.
15539         * modules/mbschr-tests (Makefile.am): Likewise.
15540         * modules/mbscspn-tests (Makefile.am): Likewise.
15541         * modules/mbsinit-tests (Makefile.am): Likewise.
15542         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15543         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
15544         * modules/mbspbrk-tests (Makefile.am): Likewise.
15545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15546         * modules/mbsrchr-tests (Makefile.am): Likewise.
15547         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
15548         * modules/mbsspn-tests (Makefile.am): Likewise.
15549         * modules/mbsstr-tests (Makefile.am): Likewise.
15550         * modules/nl_langinfo-tests (Makefile.am): Likewise.
15551         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
15552         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15553         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15554         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15555         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15556         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
15557         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15558         * modules/wcrtomb-tests (Makefile.am): Likewise.
15559         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
15560         * modules/wcsrtombs-tests (Makefile.am): Likewise.
15561         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
15562         assignments from TESTS_ENVIRONMENT.
15563         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
15564         augmentation.
15565         * modules/argp-version-etc-tests (Makefile.am): Likewise.
15566         * modules/atexit-tests (Makefile.am): Likewise.
15567         * modules/binary-io-tests (Makefile.am): Likewise.
15568         * modules/closein-tests (Makefile.am): Likewise.
15569         * modules/dprintf-posix-tests (Makefile.am): Likewise.
15570         * modules/exclude-tests (Makefile.am): Likewise.
15571         * modules/fflush-tests (Makefile.am): Likewise.
15572         * modules/fpending-tests (Makefile.am): Likewise.
15573         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15574         * modules/freadahead-tests (Makefile.am): Likewise.
15575         * modules/freadptr-tests (Makefile.am): Likewise.
15576         * modules/freadseek-tests (Makefile.am): Likewise.
15577         * modules/fseek-tests (Makefile.am): Likewise.
15578         * modules/fseeko-tests (Makefile.am): Likewise.
15579         * modules/ftell-tests (Makefile.am): Likewise.
15580         * modules/ftello-tests (Makefile.am): Likewise.
15581         * modules/idpriv-drop-tests (Makefile.am): Likewise.
15582         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
15583         * modules/lseek-tests (Makefile.am): Likewise.
15584         * modules/parse-duration-tests (Makefile.am): Likewise.
15585         * modules/perror-tests (Makefile.am): Likewise.
15586         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
15587         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
15588         * modules/pipe-tests (Makefile.am): Likewise.
15589         * modules/pread-tests (Makefile.am): Likewise.
15590         * modules/printf-posix-tests (Makefile.am): Likewise.
15591         * modules/select-tests (Makefile.am): Likewise.
15592         * modules/sigpipe-tests (Makefile.am): Likewise.
15593         * modules/tsearch-tests (Makefile.am): Likewise.
15594         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
15595         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
15596         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15597         * modules/uniwidth/width-tests (Makefile.am): Likewise.
15598         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
15599         * modules/version-etc-tests (Makefile.am): Likewise.
15600         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15601         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15602         * modules/xalloc-die-tests (Makefile.am): Likewise.
15603         * modules/xprintf-posix-tests (Makefile.am): Likewise.
15604         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15605         * modules/xstrtol-tests (Makefile.am): Likewise.
15606         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15607         * modules/yesno-tests (Makefile.am): Likewise.
15608         Suggested by Jim Meyering.
15609
15610 2010-01-24  Bruno Haible  <bruno@clisp.org>
15611
15612         More documentation.
15613         * doc/gnulib.texi (Writing modules): New chapter.
15614         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
15615         the new chapter.
15616
15617 2010-01-24  Jim Meyering  <meyering@redhat.com>
15618
15619         maint.mk: do not prepend "./" after filtering
15620         * top/maint.mk (_prepend_srcdir_prefix): New variable
15621         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
15622         "./" when $(srcdir) is ".".
15623
15624         define STREQ(a,b) consistently, removing useless parentheses
15625         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
15626         since the only risk is that "a" or "b" contains an unparenthesized
15627         comma, but if either did that, STREQ would have 3 or more arguments.
15628         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
15629         * lib/fts.c (STREQ): Remove unnecessary parentheses.
15630         * lib/hash-triple.c (STREQ): Likewise.
15631         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
15632         * lib/getugroups.c (STREQ): Likewise.
15633
15634 2010-01-23  Jim Meyering  <meyering@redhat.com>
15635
15636         maint.mk: fix syntax-check in a non-srcdir build directory
15637         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
15638         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
15639
15640 2010-01-22  Jim Meyering  <meyering@redhat.com>
15641
15642         userspec: add unit tests
15643         * tests/test-userspec.c: New file.
15644         * modules/userspec-tests: Likewise.
15645
15646 2010-01-21  Jim Meyering  <meyering@redhat.com>
15647
15648         maint.mk: handle source file names containing "." robustly
15649         * top/maint.mk (_dot_escaped_srcdir): Define.
15650         (VC_LIST): Use it in LHS of sed substitution.
15651
15652 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
15653
15654         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
15655         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
15656         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
15657         from a non-srcdir build.
15658
15659 2010-01-20  Eric Blake  <ebb9@byu.net>
15660
15661         warn-on-use: use instead of link-warning
15662         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
15663         * modules/unistd (Depends-on, Makefile.am): Likewise.
15664         * modules/arpa_inet (Depends-on): Replace link-warning with
15665         warn-on-use.
15666         (Makefile.am): Update rules accordingly.
15667         * modules/ctype (Depends-on, Makefile.am): Likewise.
15668         * modules/dirent (Depends-on, Makefile.am): Likewise.
15669         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
15670         * modules/inttypes (Depends-on, Makefile.am): Likewise.
15671         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15672         * modules/locale (Depends-on, Makefile.am): Likewise.
15673         * modules/math (Depends-on, Makefile.am): Likewise.
15674         * modules/search (Depends-on, Makefile.am): Likewise.
15675         * modules/signal (Depends-on, Makefile.am): Likewise.
15676         * modules/spawn (Depends-on, Makefile.am): Likewise.
15677         * modules/stdlib (Depends-on, Makefile.am): Likewise.
15678         * modules/string (Depends-on, Makefile.am): Likewise.
15679         * modules/strings (Depends-on, Makefile.am): Likewise.
15680         * modules/sys_file (Depends-on, Makefile.am): Likewise.
15681         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
15682         * modules/sys_select (Depends-on, Makefile.am): Likewise.
15683         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
15684         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
15685         * modules/sys_times (Depends-on, Makefile.am): Likewise.
15686         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15687         * modules/wchar (Depends-on, Makefile.am): Likewise.
15688         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
15689         should be poisoned.
15690         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
15691         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
15692         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
15693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15695         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15696         * m4/math_h.m4 (gl_MATH_H): Likewise.
15697         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15698         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15699         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15700         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15701         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
15702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
15703         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15704         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
15705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15711         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15713         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
15714         GL_LINK_WARNING.
15715         * lib/ctype.in.h: Likewise.
15716         * lib/dirent.in.h: Likewise.
15717         * lib/fcntl.in.h: Likewise.
15718         * lib/inttypes.in.h: Likewise.
15719         * lib/langinfo.in.h: Likewise.
15720         * lib/locale.in.h: Likewise.
15721         * lib/math.in.h: Likewise.
15722         * lib/search.in.h: Likewise.
15723         * lib/signal.in.h: Likewise.
15724         * lib/spawn.in.h: Likewise.
15725         * lib/stdio.in.h: Likewise.
15726         * lib/stdlib.in.h: Likewise.
15727         * lib/string.in.h: Likewise.
15728         * lib/strings.in.h: Likewise.
15729         * lib/sys_file.in.h: Likewise.
15730         * lib/sys_ioctl.in.h: Likewise.
15731         * lib/sys_select.in.h: Likewise.
15732         * lib/sys_socket.in.h: Likewise.
15733         * lib/sys_stat.in.h: Likewise.
15734         * lib/sys_times.in.h: Likewise.
15735         * lib/sys_utsname.in.h: Likewise.
15736         * lib/unistd.in.h: Likewise.
15737         * lib/wchar.in.h: Likewise.
15738
15739 2010-01-20  Bruno Haible  <bruno@clisp.org>
15740
15741         Avoid duplicate -lm.
15742         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
15743         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
15744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
15745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
15746         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
15747         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
15748         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
15749         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
15750         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
15751         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
15752         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
15753         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15754         Reported by Paolo Bonzini.
15755
15756 2010-01-19  Bruno Haible  <bruno@clisp.org>
15757
15758         langinfo, nl_langinfo: Relicense under LGPLv2+.
15759         * modules/langinfo (License): Change to LGPLv2+.
15760         * modules/nl_langinfo (License): Likewise.
15761         Patch by David Lutterkort <lutter@redhat.com>.
15762
15763 2010-01-19  Bruno Haible  <bruno@clisp.org>
15764
15765         Avoid compilation error with cc on OSF/1 5.1.
15766         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
15767         statement, not before.
15768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15769
15770 2010-01-18  Bruno Haible  <bruno@clisp.org>
15771
15772         Avoid a link error due to the __printf__ symbol.
15773         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
15774         and 2.6.x.
15775         (__format__, __printf__): Remove definitions.
15776         * lib/argp-fmtstream.h: Likewise.
15777         * lib/argp.h: Likewise.
15778         * lib/error.h: Likewise.
15779         * lib/vasnprintf.h: Likewise.
15780         * lib/xprintf.h: Likewise.
15781         * lib/xvasprintf.h: Likewise.
15782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15783
15784 2010-01-18  Bruno Haible  <bruno@clisp.org>
15785
15786         Tests for module 'tanl'.
15787         * modules/tanl-tests: New file.
15788         * tests/test-tanl.c: New file.
15789
15790         Tests for module 'sqrtl'.
15791         * modules/sqrtl-tests: New file.
15792         * tests/test-sqrtl.c: New file.
15793
15794         Tests for module 'sinl'.
15795         * modules/sinl-tests: New file.
15796         * tests/test-sinl.c: New file.
15797
15798         Tests for module 'logl'.
15799         * modules/logl-tests: New file.
15800         * tests/test-logl.c: New file.
15801
15802         Tests for module 'expl'.
15803         * modules/expl-tests: New file.
15804         * tests/test-expl.c: New file.
15805
15806         Tests for module 'cosl'.
15807         * modules/cosl-tests: New file.
15808         * tests/test-cosl.c: New file.
15809
15810         Tests for module 'atanl'.
15811         * modules/atanl-tests: New file.
15812         * tests/test-atanl.c: New file.
15813
15814         Tests for module 'asinl'.
15815         * modules/asinl-tests: New file.
15816         * tests/test-asinl.c: New file.
15817
15818         Tests for module 'acosl'.
15819         * modules/acosl-tests: New file.
15820         * tests/test-acosl.c: New file.
15821
15822         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15823         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
15824         tanl): Use the standard gnulib idiom.
15825         * lib/cosl.c: Don't include trigl.c and sincosl.c.
15826         * lib/sinl.c: Likewise.
15827         * lib/tanl.c: Don't include trigl.c.
15828         (kernel_tanl): Make static.
15829         * lib/sincosl.c: Include trigl.h first.
15830         * lib/trigl.c: Likewise.
15831         * m4/acosl.m4: New file.
15832         * m4/asinl.m4: New file.
15833         * m4/atanl.m4: New file.
15834         * m4/cosl.m4: New file.
15835         * m4/expl.m4: New file.
15836         * m4/logl.m4: New file.
15837         * m4/sinl.m4: New file.
15838         * m4/sqrtl.m4: New file.
15839         * m4/tanl.m4: New file.
15840         * m4/mathl.m4: Remove file.
15841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
15842         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
15843         Don't initialize GNULIB_MATHL.
15844         * modules/acosl: New file.
15845         * modules/asinl: New file.
15846         * modules/atanl: New file.
15847         * modules/cosl: New file.
15848         * modules/expl: New file.
15849         * modules/logl: New file.
15850         * modules/sinl: New file.
15851         * modules/sqrtl: New file.
15852         * modules/tanl: New file.
15853         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
15854         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
15855         substitute GNULIB_MATHL.
15856         * modules/mathl: Rewritten.
15857         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
15858         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
15859         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
15860         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
15861         * doc/posix-functions/expl.texi: Mention the 'expl' module.
15862         * doc/posix-functions/logl.texi: Mention the 'logl' module.
15863         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
15864         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
15865         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
15866
15867 2010-01-18  Bruno Haible  <bruno@clisp.org>
15868
15869         sqrt: Make gl_FUNC_SQRT requirable.
15870         * m4/sqrt.m4: New file.
15871         * modules/sqrt (Files): Add it.
15872         (configure.ac): Invoke gl_FUNC_SQRT.
15873
15874 2010-01-18  Bruno Haible  <bruno@clisp.org>
15875
15876         New modules for common <math.h> functions.
15877         * m4/mathfunc.m4: New file.
15878         * modules/acos: New file.
15879         * modules/asin: New file.
15880         * modules/atan: New file.
15881         * modules/atan2: New file.
15882         * modules/cbrt: New file.
15883         * modules/copysign: New file.
15884         * modules/cos: New file.
15885         * modules/cosh: New file.
15886         * modules/erf: New file.
15887         * modules/erfc: New file.
15888         * modules/exp: New file.
15889         * modules/fabs: New file.
15890         * modules/fmod: New file.
15891         * modules/hypot: New file.
15892         * modules/j0: New file.
15893         * modules/j1: New file.
15894         * modules/jn: New file.
15895         * modules/ldexp: New file.
15896         * modules/lgamma: New file.
15897         * modules/log: New file.
15898         * modules/log10: New file.
15899         * modules/log1p: New file.
15900         * modules/logb: New file.
15901         * modules/modf: New file.
15902         * modules/nextafter: New file.
15903         * modules/pow: New file.
15904         * modules/remainder: New file.
15905         * modules/rint: New file.
15906         * modules/sin: New file.
15907         * modules/sinh: New file.
15908         * modules/sqrt: New file.
15909         * modules/tan: New file.
15910         * modules/tanh: New file.
15911         * modules/y0: New file.
15912         * modules/y1: New file.
15913         * modules/yn: New file.
15914         * doc/posix-functions/acos.texi: Mention the 'acos' module.
15915         * doc/posix-functions/asin.texi: Mention the 'asin' module.
15916         * doc/posix-functions/atan.texi: Mention the 'atan' module.
15917         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
15918         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
15919         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
15920         * doc/posix-functions/cos.texi: Mention the 'cos' module.
15921         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
15922         * doc/posix-functions/erf.texi: Mention the 'erf' module.
15923         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
15924         * doc/posix-functions/exp.texi: Mention the 'exp' module.
15925         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
15926         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
15927         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
15928         * doc/posix-functions/j0.texi: Mention the 'j0' module.
15929         * doc/posix-functions/j1.texi: Mention the 'j1' module.
15930         * doc/posix-functions/jn.texi: Mention the 'jn' module.
15931         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
15932         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
15933         * doc/posix-functions/log.texi: Mention the 'log' module.
15934         * doc/posix-functions/log10.texi: Mention the 'log10' module.
15935         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
15936         * doc/posix-functions/logb.texi: Mention the 'logb' module.
15937         * doc/posix-functions/modf.texi: Mention the 'modf' module.
15938         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
15939         * doc/posix-functions/pow.texi: Mention the 'pow' module.
15940         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
15941         * doc/posix-functions/rint.texi: Mention the 'rint' module.
15942         * doc/posix-functions/sin.texi: Mention the 'sin' module.
15943         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
15944         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
15945         * doc/posix-functions/tan.texi: Mention the 'tan' module.
15946         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
15947         * doc/posix-functions/y0.texi: Mention the 'y0' module.
15948         * doc/posix-functions/y1.texi: Mention the 'y1' module.
15949         * doc/posix-functions/yn.texi: Mention the 'yn' module.
15950
15951 2010-01-18  Jim Meyering  <meyering@redhat.com>
15952
15953         ignore-value: relax license to LGPLv2+
15954         * modules/ignore-value (License): Relax to LGPLv2+.
15955
15956         getdate: don't leak when TZ contains two or more '"'s
15957         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
15958         double quote in TZ after the first one.
15959
15960         readtokens: do not leak internal token_lengths buffer
15961         * lib/readtokens.c (readtokens): Free the local, lengths,
15962         when the supplied "token_lengths" parameter is NULL.
15963
15964 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15965
15966         Fix a couple of missing LIBTHREAD link failures on AIX.
15967         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
15968         $(LIBTHREAD).
15969         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
15970
15971         Link test-poll against INET_PTON_LIB.
15972         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
15973         for inet_pton on Solaris 10.
15974
15975 2010-01-17  Bruno Haible  <bruno@clisp.org>
15976
15977         unistdio/*-sprintf: Fix typo in module description.
15978         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15979         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15980         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15981         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15982         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15983         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15984         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15985         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15986
15987 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15988
15989         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15990         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15991         variables in shell case patterns, for AIX and HP-UX ksh.
15992
15993         Split large sed scripts, for HP-UX sed.
15994         * modules/stdio: Split sed scripts around 50 sed commands,
15995         to avoid HP-UX limit of 99 commands, in the near future.
15996         * modules/string: Likewise.
15997         * modules/unistd: Likewise.
15998
15999         gnulib-tool: avoid writing in the current directory.
16000         * gnulib-tool (func_emit_lib_Makefile_am)
16001         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16002         not in the current directory, so concurrent gnulib-tool
16003         instances do not interfere.
16004
16005 2010-01-16  Jim Meyering  <meyering@redhat.com>
16006
16007         doc: update users.txt
16008         * users.txt: Add grep.
16009         (diffutils, gzip): Update URLs.
16010
16011 2010-01-12  Bruno Haible  <bruno@clisp.org>
16012
16013         posix_spawn: Avoid test failure on Cygwin.
16014         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16015         characters.
16016         Reported by Simon Josefsson.
16017
16018 2010-01-12  Bruno Haible  <bruno@clisp.org>
16019
16020         * tests/test-cond.c (main): When skipping the test, show the reason.
16021
16022 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16023
16024         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16025
16026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16027
16028         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16029         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16030
16031 2010-01-12  Eric Blake  <ebb9@byu.net>
16032
16033         build: guarantee AS_VAR_IF
16034         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16035         (gl_AS_VAR_IF): Move...
16036         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16037         Reported by Simon Josefsson.
16038
16039 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16040
16041         * lib/stdio.in.h: Fix typo.
16042
16043 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16044
16045         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16046         libgpg-error.
16047
16048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16049
16050         * tests/test-xalloc-die.sh: Use $EXEEXT.
16051
16052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16053             Bruno Haible  <bruno@clisp.org>
16054
16055         getlogin, getlogin_r: Avoid test failure.
16056         * tests/test-getlogin.c: Include <stdio.h>.
16057         (main): Skip the test when the function fails because stdin is not a
16058         tty.
16059         * tests/test-getlogin_r.c: Include <stdio.h>.
16060         (main): Skip the test when the function fails because stdin is not a
16061         tty.
16062
16063 2010-01-11  Eric Blake  <ebb9@byu.net>
16064
16065         tests: avoid more large file warnings
16066         * tests/test-fflush.c: Avoid warning about ftell use.
16067         * tests/test-fseek.c: Avoid warning about fseek use.
16068
16069 2010-01-10  Bruno Haible  <bruno@clisp.org>
16070
16071         nproc: Work better on Linux when /proc and /sys are not mounted.
16072         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16073         as lower bound when, on glibc/Linux systems,
16074         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16075         Suggested by Pádraig Brady <P@draigbrady.com>.
16076         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16077
16078         nproc: Refactor.
16079         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16080         extracted from num_processors.
16081         (num_processors): Call it.
16082
16083 2010-01-11  Jim Meyering  <meyering@redhat.com>
16084
16085         utimecmp: avoid new warning from upcoming gcc-4.5.0
16086         * lib/utimecmp.c (BILLION): Define using #define rather than an
16087         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16088
16089 2010-01-11  Eric Blake  <ebb9@byu.net>
16090
16091         math: add portability warnings for classification macros
16092         * modules/math (Depends-on): Add warn-on-use.
16093         (Makefile.am): Provide new substitutions.
16094         * m4/math_h.m4 (gl_MATH_H): Require inline.
16095         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16096         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16097         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16098         implement warnings.
16099
16100         unistd: warn on use of environ without module
16101         * modules/unistd (Depends-on): Add warn-on-use.
16102         (Makefile.am): Provide new substitutions.
16103         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16104         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16105
16106         stdio: warn on suspicious uses
16107         * modules/stdio (Depends-on): Add warn-on-use.
16108         (Makefile.am): Provide new substitutions.
16109         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16110         fseeko.
16111         * lib/stdio.in.h (gets): Always warn on use.
16112         (fseek, ftell): Adjust when warnings are issued, and honor
16113         _GL_NO_LARGE_FILES as a way to silence the warning.
16114         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16115         any warning about large file offsets.
16116         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16117         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16118         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16119         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16120         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16121         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16122         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16123         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16124
16125         warn-on-use: new module
16126         * modules/warn-on-use: New file.
16127         * build-aux/warn-on-use.h: Likewise.
16128         * m4/warn-on-use.m4: Likewise.
16129         * MODULES.html.sh (Support for building): Mention it.
16130
16131 2010-01-10  Bruno Haible  <bruno@clisp.org>
16132
16133         Tests for module 'unistr/u32-strdup'.
16134         * modules/unistr/u32-strdup-tests: New file.
16135         * tests/unistr/test-u32-strdup.c: New file.
16136
16137         Tests for module 'unistr/u16-strdup'.
16138         * modules/unistr/u16-strdup-tests: New file.
16139         * tests/unistr/test-u16-strdup.c: New file.
16140
16141         Tests for module 'unistr/u8-strdup'.
16142         * modules/unistr/u8-strdup-tests: New file.
16143         * tests/unistr/test-u8-strdup.c: New file.
16144         * tests/unistr/test-strdup.h: New file.
16145
16146         Tests for module 'unistr/u32-strncmp'.
16147         * modules/unistr/u32-strncmp-tests: New file.
16148         * tests/unistr/test-u32-strncmp.c: New file.
16149
16150         Tests for module 'unistr/u16-strncmp'.
16151         * modules/unistr/u16-strncmp-tests: New file.
16152         * tests/unistr/test-u16-strncmp.c: New file.
16153
16154         Tests for module 'unistr/u8-strncmp'.
16155         * modules/unistr/u8-strncmp-tests: New file.
16156         * tests/unistr/test-u8-strncmp.c: New file.
16157         * tests/unistr/test-strncmp.h: New file.
16158
16159         Tests for module 'unistr/u32-strcoll'.
16160         * modules/unistr/u32-strcoll-tests: New file.
16161         * tests/unistr/test-u32-strcoll.c: New file.
16162
16163         Tests for module 'unistr/u16-strcoll'.
16164         * modules/unistr/u16-strcoll-tests: New file.
16165         * tests/unistr/test-u16-strcoll.c: New file.
16166
16167         Tests for module 'unistr/u8-strcoll'.
16168         * modules/unistr/u8-strcoll-tests: New file.
16169         * tests/unistr/test-u8-strcoll.c: New file.
16170
16171         Tests for module 'unistr/u32-strcmp'.
16172         * modules/unistr/u32-strcmp-tests: New file.
16173         * tests/unistr/test-u32-strcmp.c: New file.
16174         * tests/unistr/test-u32-strcmp.h: New file.
16175
16176         Tests for module 'unistr/u16-strcmp'.
16177         * modules/unistr/u16-strcmp-tests: New file.
16178         * tests/unistr/test-u16-strcmp.c: New file.
16179         * tests/unistr/test-u16-strcmp.h: New file.
16180
16181         Tests for module 'unistr/u8-strcmp'.
16182         * modules/unistr/u8-strcmp-tests: New file.
16183         * tests/unistr/test-u8-strcmp.c: New file.
16184         * tests/unistr/test-u8-strcmp.h: New file.
16185         * tests/unistr/test-strcmp.h: New file.
16186
16187         Tests for module 'unistr/u32-strncat'.
16188         * modules/unistr/u32-strncat-tests: New file.
16189         * tests/unistr/test-u32-strncat.c: New file.
16190
16191         Tests for module 'unistr/u16-strncat'.
16192         * modules/unistr/u16-strncat-tests: New file.
16193         * tests/unistr/test-u16-strncat.c: New file.
16194
16195         Tests for module 'unistr/u8-strncat'.
16196         * modules/unistr/u8-strncat-tests: New file.
16197         * tests/unistr/test-u8-strncat.c: New file.
16198         * tests/unistr/test-strncat.h: New file.
16199
16200         Tests for module 'unistr/u32-strcat'.
16201         * modules/unistr/u32-strcat-tests: New file.
16202         * tests/unistr/test-u32-strcat.c: New file.
16203
16204         Tests for module 'unistr/u16-strcat'.
16205         * modules/unistr/u16-strcat-tests: New file.
16206         * tests/unistr/test-u16-strcat.c: New file.
16207
16208         Tests for module 'unistr/u8-strcat'.
16209         * modules/unistr/u8-strcat-tests: New file.
16210         * tests/unistr/test-u8-strcat.c: New file.
16211         * tests/unistr/test-strcat.h: New file.
16212
16213         Tests for module 'unistr/u32-stpncpy'.
16214         * modules/unistr/u32-stpncpy-tests: New file.
16215         * tests/unistr/test-u32-stpncpy.c: New file.
16216
16217         Tests for module 'unistr/u16-stpncpy'.
16218         * modules/unistr/u16-stpncpy-tests: New file.
16219         * tests/unistr/test-u16-stpncpy.c: New file.
16220
16221         Tests for module 'unistr/u8-stpncpy'.
16222         * modules/unistr/u8-stpncpy-tests: New file.
16223         * tests/unistr/test-u8-stpncpy.c: New file.
16224         * tests/unistr/test-stpncpy.h: New file.
16225
16226         Tests for module 'unistr/u32-strncpy'.
16227         * modules/unistr/u32-strncpy-tests: New file.
16228         * tests/unistr/test-u32-strncpy.c: New file.
16229
16230         Tests for module 'unistr/u16-strncpy'.
16231         * modules/unistr/u16-strncpy-tests: New file.
16232         * tests/unistr/test-u16-strncpy.c: New file.
16233
16234         Tests for module 'unistr/u8-strncpy'.
16235         * modules/unistr/u8-strncpy-tests: New file.
16236         * tests/unistr/test-u8-strncpy.c: New file.
16237         * tests/unistr/test-strncpy.h: New file.
16238
16239         Tests for module 'unistr/u32-stpcpy'.
16240         * modules/unistr/u32-stpcpy-tests: New file.
16241         * tests/unistr/test-u32-stpcpy.c: New file.
16242
16243         Tests for module 'unistr/u16-stpcpy'.
16244         * modules/unistr/u16-stpcpy-tests: New file.
16245         * tests/unistr/test-u16-stpcpy.c: New file.
16246
16247         Tests for module 'unistr/u8-stpcpy'.
16248         * modules/unistr/u8-stpcpy-tests: New file.
16249         * tests/unistr/test-u8-stpcpy.c: New file.
16250         * tests/unistr/test-stpcpy.h: New file.
16251
16252         Tests for module 'unistr/u32-strcpy'.
16253         * modules/unistr/u32-strcpy-tests: New file.
16254         * tests/unistr/test-u32-strcpy.c: New file.
16255
16256         Tests for module 'unistr/u16-strcpy'.
16257         * modules/unistr/u16-strcpy-tests: New file.
16258         * tests/unistr/test-u16-strcpy.c: New file.
16259
16260         Tests for module 'unistr/u8-strcpy'.
16261         * modules/unistr/u8-strcpy-tests: New file.
16262         * tests/unistr/test-u8-strcpy.c: New file.
16263         * tests/unistr/test-strcpy.h: New file.
16264
16265         Tests for module 'unistr/u32-strnlen'.
16266         * modules/unistr/u32-strnlen-tests: New file.
16267         * tests/unistr/test-u32-strnlen.c: New file.
16268
16269         Tests for module 'unistr/u16-strnlen'.
16270         * modules/unistr/u16-strnlen-tests: New file.
16271         * tests/unistr/test-u16-strnlen.c: New file.
16272
16273         Tests for module 'unistr/u8-strnlen'.
16274         * modules/unistr/u8-strnlen-tests: New file.
16275         * tests/unistr/test-u8-strnlen.c: New file.
16276         * tests/unistr/test-strnlen.h: New file.
16277
16278         Tests for module 'unistr/u32-strlen'.
16279         * modules/unistr/u32-strlen-tests: New file.
16280         * tests/unistr/test-u32-strlen.c: New file.
16281
16282         Tests for module 'unistr/u16-strlen'.
16283         * modules/unistr/u16-strlen-tests: New file.
16284         * tests/unistr/test-u16-strlen.c: New file.
16285
16286         Tests for module 'unistr/u8-strlen'.
16287         * modules/unistr/u8-strlen-tests: New file.
16288         * tests/unistr/test-u8-strlen.c: New file.
16289
16290         Tests for module 'unistr/u32-prev'.
16291         * modules/unistr/u32-prev-tests: New file.
16292         * tests/unistr/test-u32-prev.c: New file.
16293
16294         Tests for module 'unistr/u16-prev'.
16295         * modules/unistr/u16-prev-tests: New file.
16296         * tests/unistr/test-u16-prev.c: New file.
16297
16298         Tests for module 'unistr/u8-prev'.
16299         * modules/unistr/u8-prev-tests: New file.
16300         * tests/unistr/test-u8-prev.c: New file.
16301
16302         Tests for module 'unistr/u32-next'.
16303         * modules/unistr/u32-next-tests: New file.
16304         * tests/unistr/test-u32-next.c: New file.
16305
16306         Tests for module 'unistr/u16-next'.
16307         * modules/unistr/u16-next-tests: New file.
16308         * tests/unistr/test-u16-next.c: New file.
16309
16310         Tests for module 'unistr/u8-next'.
16311         * modules/unistr/u8-next-tests: New file.
16312         * tests/unistr/test-u8-next.c: New file.
16313
16314         Tests for module 'unistr/u32-strmbtouc'.
16315         * modules/unistr/u32-strmbtouc-tests: New file.
16316         * tests/unistr/test-u32-strmbtouc.c: New file.
16317
16318         Tests for module 'unistr/u16-strmbtouc'.
16319         * modules/unistr/u16-strmbtouc-tests: New file.
16320         * tests/unistr/test-u16-strmbtouc.c: New file.
16321
16322         Tests for module 'unistr/u8-strmbtouc'.
16323         * modules/unistr/u8-strmbtouc-tests: New file.
16324         * tests/unistr/test-u8-strmbtouc.c: New file.
16325
16326         Tests for module 'unistr/u32-strmblen'.
16327         * modules/unistr/u32-strmblen-tests: New file.
16328         * tests/unistr/test-u32-strmblen.c: New file.
16329
16330         Tests for module 'unistr/u16-strmblen'.
16331         * modules/unistr/u16-strmblen-tests: New file.
16332         * tests/unistr/test-u16-strmblen.c: New file.
16333
16334         Tests for module 'unistr/u8-strmblen'.
16335         * modules/unistr/u8-strmblen-tests: New file.
16336         * tests/unistr/test-u8-strmblen.c: New file.
16337
16338         Tests for module 'unistr/u32-cpy-alloc'.
16339         * modules/unistr/u32-cpy-alloc-tests: New file.
16340         * tests/unistr/test-u32-cpy-alloc.c: New file.
16341
16342         Tests for module 'unistr/u16-cpy-alloc'.
16343         * modules/unistr/u16-cpy-alloc-tests: New file.
16344         * tests/unistr/test-u16-cpy-alloc.c: New file.
16345
16346         Tests for module 'unistr/u8-cpy-alloc'.
16347         * modules/unistr/u8-cpy-alloc-tests: New file.
16348         * tests/unistr/test-u8-cpy-alloc.c: New file.
16349         * tests/unistr/test-cpy-alloc.h: New file.
16350
16351         Tests for module 'unistr/u32-mbsnlen'.
16352         * modules/unistr/u32-mbsnlen-tests: New file.
16353         * tests/unistr/test-u32-mbsnlen.c: New file.
16354
16355         Tests for module 'unistr/u16-mbsnlen'.
16356         * modules/unistr/u16-mbsnlen-tests: New file.
16357         * tests/unistr/test-u16-mbsnlen.c: New file.
16358
16359         Tests for module 'unistr/u8-mbsnlen'.
16360         * modules/unistr/u8-mbsnlen-tests: New file.
16361         * tests/unistr/test-u8-mbsnlen.c: New file.
16362
16363         Tests for module 'unistr/u32-chr'.
16364         * modules/unistr/u32-chr-tests: New file.
16365         * tests/unistr/test-u32-chr.c: New file.
16366
16367         Tests for module 'unistr/u16-chr'.
16368         * modules/unistr/u16-chr-tests: New file.
16369         * tests/unistr/test-u16-chr.c: New file.
16370
16371         Tests for module 'unistr/u8-chr'.
16372         * modules/unistr/u8-chr-tests: New file.
16373         * tests/unistr/test-u8-chr.c: New file.
16374         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
16375
16376         Tests for module 'unistr/u32-cmp2'.
16377         * modules/unistr/u32-cmp2-tests: New file.
16378         * tests/unistr/test-u32-cmp2.c: New file.
16379
16380         Tests for module 'unistr/u16-cmp2'.
16381         * modules/unistr/u16-cmp2-tests: New file.
16382         * tests/unistr/test-u16-cmp2.c: New file.
16383
16384         Tests for module 'unistr/u8-cmp2'.
16385         * modules/unistr/u8-cmp2-tests: New file.
16386         * tests/unistr/test-u8-cmp2.c: New file.
16387         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
16388
16389         Tests for module 'unistr/u32-cmp'.
16390         * modules/unistr/u32-cmp-tests: New file.
16391         * tests/unistr/test-u32-cmp.c: New file.
16392
16393         Tests for module 'unistr/u16-cmp'.
16394         * modules/unistr/u16-cmp-tests: New file.
16395         * tests/unistr/test-u16-cmp.c: New file.
16396
16397         Tests for module 'unistr/u8-cmp'.
16398         * modules/unistr/u8-cmp-tests: New file.
16399         * tests/unistr/test-u8-cmp.c: New file.
16400         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
16401
16402         Tests for module 'unistr/u32-set'.
16403         * modules/unistr/u32-set-tests: New file.
16404         * tests/unistr/test-u32-set.c: New file.
16405
16406         Tests for module 'unistr/u16-set'.
16407         * modules/unistr/u16-set-tests: New file.
16408         * tests/unistr/test-u16-set.c: New file.
16409
16410         Tests for module 'unistr/u8-set'.
16411         * modules/unistr/u8-set-tests: New file.
16412         * tests/unistr/test-u8-set.c: New file.
16413         * tests/unistr/test-set.h: New file.
16414
16415         Tests for module 'unistr/u32-move'.
16416         * modules/unistr/u32-move-tests: New file.
16417         * tests/unistr/test-u32-move.c: New file.
16418
16419         Tests for module 'unistr/u16-move'.
16420         * modules/unistr/u16-move-tests: New file.
16421         * tests/unistr/test-u16-move.c: New file.
16422
16423         Tests for module 'unistr/u8-move'.
16424         * modules/unistr/u8-move-tests: New file.
16425         * tests/unistr/test-u8-move.c: New file.
16426         * tests/unistr/test-move.h: New file.
16427
16428         Tests for module 'unistr/u32-cpy'.
16429         * modules/unistr/u32-cpy-tests: New file.
16430         * tests/unistr/test-u32-cpy.c: New file.
16431
16432         Tests for module 'unistr/u16-cpy'.
16433         * modules/unistr/u16-cpy-tests: New file.
16434         * tests/unistr/test-u16-cpy.c: New file.
16435
16436         Tests for module 'unistr/u8-cpy'.
16437         * modules/unistr/u8-cpy-tests: New file.
16438         * tests/unistr/test-u8-cpy.c: New file.
16439         * tests/unistr/test-cpy.h: New file.
16440
16441 2010-01-09  Bruno Haible  <bruno@clisp.org>
16442
16443         Tests for module 'unistr/u32-uctomb'.
16444         * modules/unistr/u32-uctomb-tests: New file.
16445         * tests/unistr/test-u32-uctomb.c: New file.
16446
16447         Tests for module 'unistr/u16-uctomb'.
16448         * modules/unistr/u16-uctomb-tests: New file.
16449         * tests/unistr/test-u16-uctomb.c: New file.
16450
16451         Tests for module 'unistr/u8-uctomb'.
16452         * modules/unistr/u8-uctomb-tests: New file.
16453         * tests/unistr/test-u8-uctomb.c: New file.
16454
16455         Tests for module 'unistr/u32-mbtoucr'.
16456         * modules/unistr/u32-mbtoucr-tests: New file.
16457         * tests/unistr/test-u32-mbtoucr.c: New file.
16458
16459         Tests for module 'unistr/u16-mbtoucr'.
16460         * modules/unistr/u16-mbtoucr-tests: New file.
16461         * tests/unistr/test-u16-mbtoucr.c: New file.
16462
16463         Tests for module 'unistr/u8-mbtoucr'.
16464         * modules/unistr/u8-mbtoucr-tests: New file.
16465         * tests/unistr/test-u8-mbtoucr.c: New file.
16466
16467         Tests for module 'unistr/u32-mbtouc'.
16468         * modules/unistr/u32-mbtouc-tests: New file.
16469         * tests/unistr/test-u32-mbtouc.c: New file.
16470
16471         Tests for module 'unistr/u16-mbtouc'.
16472         * modules/unistr/u16-mbtouc-tests: New file.
16473         * tests/unistr/test-u16-mbtouc.c: New file.
16474
16475         Tests for module 'unistr/u8-mbtouc'.
16476         * modules/unistr/u8-mbtouc-tests: New file.
16477         * tests/unistr/test-u8-mbtouc.c: New file.
16478
16479         Tests for module 'unistr/u32-mbtouc-unsafe'.
16480         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
16481         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
16482         * tests/unistr/test-u32-mbtouc.h: New file.
16483
16484         Tests for module 'unistr/u16-mbtouc-unsafe'.
16485         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
16486         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
16487         * tests/unistr/test-u16-mbtouc.h: New file.
16488
16489         Tests for module 'unistr/u8-mbtouc-unsafe'.
16490         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
16491         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
16492         * tests/unistr/test-u8-mbtouc.h: New file.
16493
16494         Tests for module 'unistr/u32-mblen'.
16495         * modules/unistr/u32-mblen-tests: New file.
16496         * tests/unistr/test-u32-mblen.c: New file.
16497
16498         Tests for module 'unistr/u16-mblen'.
16499         * modules/unistr/u16-mblen-tests: New file.
16500         * tests/unistr/test-u16-mblen.c: New file.
16501
16502         Tests for module 'unistr/u8-mblen'.
16503         * modules/unistr/u8-mblen-tests: New file.
16504         * tests/unistr/test-u8-mblen.c: New file.
16505
16506         Tests for module 'unistr/u32-to-u16'.
16507         * modules/unistr/u32-to-u16-tests: New file.
16508         * tests/unistr/test-u32-to-u16.c: New file.
16509
16510         Tests for module 'unistr/u32-to-u8'.
16511         * modules/unistr/u32-to-u8-tests: New file.
16512         * tests/unistr/test-u32-to-u8.c: New file.
16513
16514         Tests for module 'unistr/u16-to-u32'.
16515         * modules/unistr/u16-to-u32-tests: New file.
16516         * tests/unistr/test-u16-to-u32.c: New file.
16517
16518         Tests for module 'unistr/u16-to-u8'.
16519         * modules/unistr/u16-to-u8-tests: New file.
16520         * tests/unistr/test-u16-to-u8.c: New file.
16521
16522         Tests for module 'unistr/u8-to-u32'.
16523         * modules/unistr/u8-to-u32-tests: New file.
16524         * tests/unistr/test-u8-to-u32.c: New file.
16525
16526         Tests for module 'unistr/u8-to-u16'.
16527         * modules/unistr/u8-to-u16-tests: New file.
16528         * tests/unistr/test-u8-to-u16.c: New file.
16529
16530         Tests for module 'unistr/u32-check'.
16531         * modules/unistr/u32-check-tests: New file.
16532         * tests/unistr/test-u32-check.c: New file.
16533
16534         Tests for module 'unistr/u16-check'.
16535         * modules/unistr/u16-check-tests: New file.
16536         * tests/unistr/test-u16-check.c: New file.
16537
16538         Tests for module 'unistr/u8-check'.
16539         * modules/unistr/u8-check-tests: New file.
16540         * tests/unistr/test-u8-check.c: New file.
16541
16542         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
16543         (category_equals): New function.
16544         (main): Add more tests.
16545         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
16546
16547         * tests/unictype/test-bidi_byname.c (main): Add more tests.
16548
16549 2010-01-10  Bruno Haible  <bruno@clisp.org>
16550
16551         unistr/u*-strcoll: Try harder to distinguish different strings.
16552         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
16553         compare s1 and s2 to see if they are different.
16554
16555 2010-01-10  Bruno Haible  <bruno@clisp.org>
16556
16557         unistr/u*-stpncpy: Fix the return value.
16558         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
16559         description of the return value consistent with stpncpy in glibc.
16560         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
16561         written non-NUL unit.
16562
16563 2010-01-10  Bruno Haible  <bruno@clisp.org>
16564
16565         unistr/u*-next: Add missing dependencies.
16566         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
16567         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
16568         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
16569
16570 2010-01-10  Bruno Haible  <bruno@clisp.org>
16571
16572         unistr/u8-mbsnlen: Fix return value for incomplete character.
16573         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
16574         u8_mblen.
16575         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
16576         Remove unistr/u8-mblen.
16577         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
16578         u16_mblen.
16579         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
16580         Remove unistr/u16-mblen.
16581
16582 2010-01-10  Bruno Haible  <bruno@clisp.org>
16583
16584         wchar: Fix compilation error when <wchar.h> is used from coreutils.
16585         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
16586         Reported by Brian Gough <bjg@gnu.org> and
16587         Chris Clayton <chris2553@googlemail.com> via
16588         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
16589
16590 2010-01-09  Bruno Haible  <bruno@clisp.org>
16591
16592         unistr/u16-to-u32: Reject invalid input.
16593         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
16594         u16_mbtouc.
16595         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
16596         Remove unistr/u16-mbtouc.
16597
16598         unistr/u16-to-u8: Reject invalid input.
16599         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
16600         u16_mbtouc.
16601         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
16602         Remove unistr/u16-mbtouc.
16603
16604         unistr/u8-to-u32: Reject invalid input.
16605         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
16606         u8_mbtouc.
16607         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
16608         Remove unistr/u8-mbtouc.
16609
16610         unistr/u8-to-u16: Reject invalid input.
16611         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
16612         u8_mbtouc.
16613         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
16614         Remove unistr/u8-mbtouc.
16615
16616 2010-01-09  Bruno Haible  <bruno@clisp.org>
16617
16618         Tests for module 'getlogin'.
16619         * modules/getlogin-tests: New file.
16620         * tests/test-getlogin.c: New file.
16621
16622         New module 'getlogin'.
16623         * lib/unistd.in.h (getlogin): New declaration.
16624         * lib/getlogin.c: New file.
16625         * m4/getlogin.m4: New file.
16626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
16627         HAVE_GETLOGIN.
16628         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
16629         HAVE_GETLOGIN.
16630         * modules/getlogin: New file.
16631         * doc/posix-functions/getlogin.texi: Mention the new module.
16632         Reported by John W. Eaton <jwe@gnu.org>.
16633
16634 2010-01-09  Bruno Haible  <bruno@clisp.org>
16635
16636         getlogin_r: Support for native Windows.
16637         * lib/getlogin_r.c: Include <windows.h>
16638         (getlogin_r): Implement for native Windows.
16639         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
16640         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
16641         via John W. Eaton <jwe@gnu.org>.
16642
16643 2010-01-09  Bruno Haible  <bruno@clisp.org>
16644
16645         getlogin_r: Small fixes.
16646         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
16647         succeeds.
16648         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
16649         before testing whether getlogin_r is declared. No need to set
16650         HAVE_DECL_GETLOGIN_R to 1.
16651         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
16652
16653 2010-01-09  Bruno Haible  <bruno@clisp.org>
16654
16655         * lib/unistd.in.h (getlogin_r): Add comment.
16656
16657 2010-01-09  Bruno Haible  <bruno@clisp.org>
16658
16659         Tests for module 'getlogin_r'.
16660         * modules/getlogin_r-tests: New file.
16661         * tests/test-getlogin_r.c: New file.
16662
16663 2010-01-09  Jim Meyering  <meyering@redhat.com>
16664
16665         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
16666         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
16667         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
16668
16669 2010-01-08  Simon Josefsson  <simon@josefsson.org>
16670
16671         * lib/dup2.c (rpl_dup2): Improve comment.
16672
16673 2010-01-08  Eric Blake  <ebb9@byu.net>
16674
16675         maint.mk: allow packages to add makefile @@ exceptions
16676         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
16677         (sc_makefile_check): Rename...
16678         (sc_makefile_at_at_check): ...to this, and use hook.
16679
16680         dup2: work around mingw bug
16681         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
16682         Reported by Simon Josefsson.
16683
16684 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
16685
16686         glob: Fix C++ compilation.
16687         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
16688         C++.
16689
16690 2010-01-07  Bruno Haible  <bruno@clisp.org>
16691
16692         Fix indentation of wctype.in.h, broken since 2007-01-06.
16693         * lib/wctype.in.h: Fix indentation of preprocessor directives.
16694
16695 2010-01-07  Bruno Haible  <bruno@clisp.org>
16696
16697         mbslen: Avoid collision with system function.
16698         * lib/string.in.h [MirBSD]: Include <wchar.h>.
16699         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
16700         * m4/mbslen.m4: New file.
16701         * modules/mbslen (Files): Add it.
16702         (configure.ac): Invoke gl_MBSLEN.
16703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
16704         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
16705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
16706         via Ian Beckwith <ianb@erislabs.net>.
16707
16708 2010-01-07  Bruno Haible  <bruno@clisp.org>
16709
16710         dirent: Document the last fix.
16711         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
16712
16713 2010-01-07  Bruno Haible  <bruno@clisp.org>
16714
16715         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
16716         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
16717         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
16718         va_list are defined.
16719         * doc/posix-headers/stdio.texi: Document the bug of missing types.
16720         Reported by Eric Blake.
16721
16722 2010-01-07  Bruno Haible  <bruno@clisp.org>
16723
16724         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
16725         * modules/xlist (Depends-on): Add 'list',
16726         * modules/xoset (Depends-on): Add 'oset'.
16727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16728
16729 2010-01-07  Bruno Haible  <bruno@clisp.org>
16730
16731         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
16732         * doc/posix-functions/strncasecmp.texi: Likewise.
16733
16734 2010-01-07  Bruno Haible  <bruno@clisp.org>
16735
16736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
16737
16738 2010-01-07  John W. Eaton  <jwe@octave.org>
16739
16740         wctype: allow C++ use
16741         * lib/wctype.in.h: Add extern "C" block for C++.
16742
16743 2010-01-06  Eric Blake  <ebb9@byu.net>
16744
16745         maint.mk: detect incorrect GFDL usage
16746         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
16747
16748 2010-01-06  Jim Meyering  <meyering@redhat.com>
16749         and Eric Blake  <ebb9@byu.net>
16750
16751         maint.mk: ignore multi-line copyright in NEWS
16752         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
16753
16754 2010-01-06  Eric Blake  <ebb9@byu.net>
16755
16756         select: add missing dependency
16757         * modules/select-tests (Depends-on): Move sockets dependency...
16758         * modules/select (Depends-on): ...here.
16759         Reported by Ian Beckwith.
16760
16761         doc: regenerate INSTALL
16762         * doc/INSTALL: Reflect recent autoconf update.
16763         * doc/INSTALL.ISO: Likewise.
16764         * doc/INSTALL.UTF-8: Likewise.
16765
16766         pread: fix compilation on glibc
16767         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
16768         Reported by Ralf Wildenhues.
16769
16770         dirent: fix test failure
16771         * lib/dirent.in.h (includes): Guarantee ino_t.
16772         Reported by Ralf Wildenhues.
16773
16774 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
16775
16776         linkat, renameat: avoid bad free
16777         * lib/at-func2.c (at_func2): Fix typo.
16778         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
16779
16780 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16781
16782         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
16783         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
16784         to avoid failure of symlink test later.
16785
16786 2010-01-06  Eric Blake  <ebb9@byu.net>
16787
16788         stdio, unistd: guarantee ssize_t
16789         * lib/unistd.in.h (includes): Ensure that types required by POSIX
16790         2008 are exposed when needed.
16791         * lib/stdio.in.h (includes): Likewise.
16792         Reported by Ralf Wildenhues.
16793
16794 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
16795
16796         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
16797         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
16798         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
16799
16800 2010-01-06  Jim Meyering  <meyering@redhat.com>
16801
16802         readtokens: this module *does* require xalloc.h
16803         It uses only functions that were omitted by the old syntax-check rule.
16804         * lib/readtokens.c: Include "xalloc.h" once again.
16805         * modules/readtokens (Depends-on): Add xalloc.
16806         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
16807
16808 2010-01-05  Eric Blake  <ebb9@byu.net>
16809
16810         maint: support 'make announcement' from a VPATH build
16811         * top/maint.mk (announcement): Look for correct NEWS file.
16812
16813 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
16814
16815         utimens (fdutimens): ignore a negative FD, per contract
16816         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
16817         when we have a valid file descriptor.  Otherwise, using a brand
16818         new glibc (with just-patched futimens that now fails with EBADF)
16819         would cause this function to fail with ENOSYS.
16820         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
16821         See also http://bugzilla.redhat.com/552320.
16822
16823 2010-01-05  Eric Blake  <ebb9@byu.net>
16824
16825         strcase: document what it provides
16826         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
16827         gnulib module.
16828         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
16829         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
16830
16831 2010-01-05  Jim Meyering  <meyering@redhat.com>
16832
16833         maint: remove useless inclusions of "xalloc.h"
16834         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
16835         * lib/readtokens.c: Likewise.
16836         * lib/same.c: Likewise.
16837         * modules/getloadavg (Depends-on): Remove xalloc.
16838         * modules/readtokens: Likewise.
16839         * modules/same: Likewise.
16840
16841         maint.mk: include 4 more function names in alloca.h-checking regexp
16842         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
16843         regexp.  Before, we would give a false-positive (saying alloca.h
16844         is included unnecessarily) when the only uses involved omitted symbols.
16845
16846         xalloc.h: use consistent formatting
16847         * lib/xalloc.h: Move declarations to start in the first column.
16848
16849 2010-01-05  Eric Blake  <ebb9@byu.net>
16850
16851         mkdir: avoid xalloc
16852         * lib/mkdir.c (includes): Drop unused header.
16853         Reported by John W. Eaton.
16854
16855 2010-01-04  Jim Meyering  <meyering@redhat.com>
16856
16857         nl_langinfo: avoid configure-time syntax error
16858         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
16859         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
16860         the empty string.  Don't let that provoke a shell syntax error.
16861
16862         regcomp, regexec, fnmatch: avoid array bounds read error
16863         * lib/regcomp.c (build_equiv_class): From glibc:
16864         Use only the low 24 bits of a findidx return value as an index
16865         into the weights array.  Patch by Ulrich Drepper:
16866         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
16867         * lib/regexec.c (check_node_accept_bytes): Likewise.
16868         * lib/fnmatch_loop.c (FCT): Likewise.
16869
16870         regcomp: skip collseq lookup when there are no rules
16871         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
16872         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
16873
16874         regcomp: recognize ill-formed { } expressions
16875         * lib/regcomp.c (parse_dup_op): From glibc:
16876         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
16877
16878         regcomp: fix typo in comment
16879         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
16880         s/satisfy/satisfies/.
16881
16882         regcomp: sync from glibc: remove dead store
16883         * lib/regcomp.c (duplicate_node_closure): Remove useless
16884         search_duplicated_node call and dead store.
16885
16886         regcomp: sync from glibc; always use nl_langinfo
16887         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
16888         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
16889         * modules/regex (Depends-on): Add nl_langinfo.
16890
16891 2010-01-04  Eric Blake  <ebb9@byu.net>
16892
16893         fdopendir: fix configure test
16894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
16895
16896 2010-01-01  Bruno Haible  <bruno@clisp.org>
16897
16898         wchar: Remove unused configure check.
16899         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
16900
16901 2010-01-01  Eric Blake  <ebb9@byu.net>
16902
16903         headers: make check of system header explicit
16904         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
16905         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
16906         ourselves.
16907         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
16910         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
16911         internals.
16912         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
16913         missing.
16914         Suggested by Bruno Haible.
16915
16916 2010-01-01  Jim Meyering  <meyering@redhat.com>
16917
16918         ChangeLog: tweak to eliminate unnecessary copyright line
16919         * ChangeLog: Remove a copyright line that was mistakenly updated
16920         by today's update-copyright run.  Reported by Eric Blake.
16921
16922         test-update-copyright: don't let envvar setting cause test failure
16923         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16924
16925 2010-01-01  Bruno Haible  <bruno@clisp.org>
16926
16927         localename: Avoid gcc warning.
16928         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
16929         function if it is not used.
16930
16931 2010-01-01  Jim Meyering  <meyering@redhat.com>
16932
16933         update nearly all FSF copyright year lists to include 2010
16934         Use the same procedure as for 2009, outlined in
16935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
16936
16937         version-etc: set COPYRIGHT_YEAR to 2010
16938         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
16939
16940 2009-12-31  Eric Blake  <ebb9@byu.net>
16941
16942         doc: correct availability of cygwin 1.5.x getopt
16943         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
16944         variables.
16945         * doc/posix-functions/opterr.texi (opterr): Likewise.
16946         * doc/posix-functions/optind.texi (optind): Likewise.
16947         * doc/posix-functions/optopt.texi (optopt): Likewise.
16948         * doc/posix-functions/tzname.texi (tzname): Likewise.
16949
16950         openat: update maintainer
16951         * modules/openat (Maintainer): Add myself.
16952
16953         utimens: avoid shadowing warning
16954         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
16955         buffers into one, to avoid shadowing, as well as avoiding a
16956         redundant stat.
16957         Reported by Jim Meyering.
16958
16959         test-dup2: avoid compiler warning
16960         * tests/test-dup2.c (is_inheritable): Only define if used.
16961
16962 2010-01-01  Bruno Haible  <bruno@clisp.org>
16963
16964         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
16965         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
16966         defined, use wctomb instead of wcrtomb.
16967
16968 2010-01-01  Bruno Haible  <bruno@clisp.org>
16969
16970         iconv: Reject native Solaris iconv.
16971         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
16972         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
16973
16974 2009-12-31  Bruno Haible  <bruno@clisp.org>
16975
16976         * tests/test-signal.c (main): Remove test of 'SIG'.
16977
16978 2009-12-31  Bruno Haible  <bruno@clisp.org>
16979
16980         spawn: Fix incomplete fix.
16981         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16982         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16983         warnings for GNULIB_POSIXCHECK again.
16984         Reported by Eric Blake.
16985
16986 2009-12-31  Bruno Haible  <bruno@clisp.org>
16987
16988         Avoid namespace pollution on glibc systems.
16989         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16990         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16991         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16992         glibc systems.
16993
16994 2009-12-31  Bruno Haible  <bruno@clisp.org>
16995
16996         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16997         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16999         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17000         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17002         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17003
17004 2009-12-31  Bruno Haible  <bruno@clisp.org>
17005
17006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17007         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17008         afterwards.
17009
17010 2009-12-31  Bruno Haible  <bruno@clisp.org>
17011
17012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17013         SYS_UTSNAME_H.
17014
17015 2009-12-31  Bruno Haible  <bruno@clisp.org>
17016
17017         spawn: Fix misapplied patch.
17018         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17019         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17020         warnings for GNULIB_POSIXCHECK.
17021
17022 2009-12-31  Bruno Haible  <bruno@clisp.org>
17023
17024         times: Update after sys_times changed.
17025         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17026         * modules/times (Files): Add it.
17027         (configure.ac): Invoke gl_FUNC_TIMES.
17028
17029 2009-12-31  Bruno Haible  <bruno@clisp.org>
17030
17031         Use AC_C_INLINE where necessary.
17032         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17033         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17035         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17036         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17037         * m4/mbiter.m4 (gl_MBITER): Likewise.
17038         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17039         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17040         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17041         * modules/u64 (configure.ac): Likewise.
17042
17043 2009-12-31  Bruno Haible  <bruno@clisp.org>
17044
17045         Use AC_C_INLINE instead of module 'inline' where possible.
17046         * modules/inline (Description): Clarify purpose.
17047         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17048         * modules/count-one-bits (Depends-on): Remove inline.
17049         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17050         * modules/openat (Depends-on): Remove inline.
17051         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17052         instead of depending on module 'inline'.
17053         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17054         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17055         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17056         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17057         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17058         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17059         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17060         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17061         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17062         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17063         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17064         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17065         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17066         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17067         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17068         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17069         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17070         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17071         Likewise.
17072         * modules/unictype/property-ascii-hex-digit (Depends-on,
17073         configure.ac): Likewise.
17074         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17075         configure.ac): Likewise.
17076         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17077         configure.ac): Likewise.
17078         * modules/unictype/property-bidi-block-separator (Depends-on,
17079         configure.ac): Likewise.
17080         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17081         configure.ac): Likewise.
17082         * modules/unictype/property-bidi-common-separator (Depends-on,
17083         configure.ac): Likewise.
17084         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17085         Likewise.
17086         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17087         configure.ac): Likewise.
17088         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17089         configure.ac): Likewise.
17090         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17091         configure.ac): Likewise.
17092         * modules/unictype/property-bidi-european-digit (Depends-on,
17093         configure.ac): Likewise.
17094         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17095         configure.ac): Likewise.
17096         * modules/unictype/property-bidi-left-to-right (Depends-on,
17097         configure.ac): Likewise.
17098         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17099         configure.ac): Likewise.
17100         * modules/unictype/property-bidi-other-neutral (Depends-on,
17101         configure.ac): Likewise.
17102         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17103         Likewise.
17104         * modules/unictype/property-bidi-segment-separator (Depends-on,
17105         configure.ac): Likewise.
17106         * modules/unictype/property-bidi-whitespace (Depends-on,
17107         configure.ac): Likewise.
17108         * modules/unictype/property-combining (Depends-on, configure.ac):
17109         Likewise.
17110         * modules/unictype/property-composite (Depends-on, configure.ac):
17111         Likewise.
17112         * modules/unictype/property-currency-symbol (Depends-on,
17113         configure.ac): Likewise.
17114         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17115         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17116         Likewise.
17117         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17118         configure.ac): Likewise.
17119         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17120         Likewise.
17121         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17122         Likewise.
17123         * modules/unictype/property-extender (Depends-on, configure.ac):
17124         Likewise.
17125         * modules/unictype/property-format-control (Depends-on, configure.ac):
17126         Likewise.
17127         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17128         Likewise.
17129         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17130         Likewise.
17131         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17132         Likewise.
17133         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17134         Likewise.
17135         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17136         Likewise.
17137         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17138         Likewise.
17139         * modules/unictype/property-id-start (Depends-on, configure.ac):
17140         Likewise.
17141         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17142         Likewise.
17143         * modules/unictype/property-ids-binary-operator (Depends-on,
17144         configure.ac): Likewise.
17145         * modules/unictype/property-ids-trinary-operator (Depends-on,
17146         configure.ac): Likewise.
17147         * modules/unictype/property-ignorable-control (Depends-on,
17148         configure.ac): Likewise.
17149         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17150         Likewise.
17151         * modules/unictype/property-join-control (Depends-on, configure.ac):
17152         Likewise.
17153         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17154         Likewise.
17155         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17156         Likewise.
17157         * modules/unictype/property-logical-order-exception (Depends-on,
17158         configure.ac): Likewise.
17159         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17160         Likewise.
17161         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17162         * modules/unictype/property-non-break (Depends-on, configure.ac):
17163         Likewise.
17164         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17165         Likewise.
17166         * modules/unictype/property-numeric (Depends-on, configure.ac):
17167         Likewise.
17168         * modules/unictype/property-other-alphabetic (Depends-on,
17169         configure.ac): Likewise.
17170         * modules/unictype/property-other-default-ignorable-code-point
17171         (Depends-on, configure.ac): Likewise.
17172         * modules/unictype/property-other-grapheme-extend (Depends-on,
17173         configure.ac): Likewise.
17174         * modules/unictype/property-other-id-continue (Depends-on,
17175         configure.ac): Likewise.
17176         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17177         Likewise.
17178         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17179         Likewise.
17180         * modules/unictype/property-other-math (Depends-on, configure.ac):
17181         Likewise.
17182         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17183         Likewise.
17184         * modules/unictype/property-paired-punctuation (Depends-on,
17185         configure.ac): Likewise.
17186         * modules/unictype/property-paragraph-separator (Depends-on,
17187         configure.ac): Likewise.
17188         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17189         Likewise.
17190         * modules/unictype/property-pattern-white-space (Depends-on,
17191         configure.ac): Likewise.
17192         * modules/unictype/property-private-use (Depends-on, configure.ac):
17193         Likewise.
17194         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17195         Likewise.
17196         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17197         Likewise.
17198         * modules/unictype/property-radical (Depends-on, configure.ac):
17199         Likewise.
17200         * modules/unictype/property-sentence-terminal (Depends-on,
17201         configure.ac): Likewise.
17202         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17203         Likewise.
17204         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17205         * modules/unictype/property-terminal-punctuation (Depends-on,
17206         configure.ac): Likewise.
17207         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17208         Likewise.
17209         * modules/unictype/property-unassigned-code-value (Depends-on,
17210         configure.ac): Likewise.
17211         * modules/unictype/property-unified-ideograph (Depends-on,
17212         configure.ac): Likewise.
17213         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17214         Likewise.
17215         * modules/unictype/property-variation-selector (Depends-on,
17216         configure.ac): Likewise.
17217         * modules/unictype/property-white-space (Depends-on, configure.ac):
17218         Likewise.
17219         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17220         Likewise.
17221         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17222         Likewise.
17223         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17224         Likewise.
17225         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17226         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17227         Likewise.
17228
17229 2009-12-31  Bruno Haible  <bruno@clisp.org>
17230
17231         Remove unnecessary AC_C_INLINE invocation.
17232         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17233         since 2009-08-21.
17234
17235 2009-12-31  Jim Meyering  <meyering@redhat.com>
17236
17237         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17238         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17239         With this change, we can all remove the gpg_key_ID = ... definition
17240         from our respective cfg.mk files.
17241
17242         maint.mk: create announcement template in ~/, not in /tmp
17243         * top/maint.mk (emit_upload_commands): Adjust.
17244         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
17245         Remove temporary file, .ci-msg.
17246
17247 2009-12-31  Eric Blake  <ebb9@byu.net>
17248
17249         link-warning: always build headers with link warnings
17250         * modules/arpa_inet (Makefile.am): Always build replacement
17251         header.
17252         * modules/ctype (Makefile.am): Likewise.
17253         * modules/dirent (Makefile.am): Likewise.
17254         * modules/inttypes (Makefile.am): Likewise.
17255         * modules/langinfo (Makefile.am): Likewise.
17256         * modules/locale (Makefile.am): Likewise.
17257         * modules/spawn (Makefile.am): Likewise.
17258         * modules/sys_file (Makefile.am): Likewise.
17259         * modules/sys_ioctl (Makefile.am): Likewise.
17260         * modules/sys_select (Makefile.am): Likewise.
17261         * modules/sys_socket (Makefile.am): Likewise.
17262         * modules/sys_times (Makefile.am): Likewise.
17263         * modules/sys_utsname (Makefile.am): Likewise.
17264         * modules/sys_wait (Makefile.am): Likewise.
17265         * modules/wchar (Makefile.am): Likewise.
17266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
17267         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
17268         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
17269         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
17270         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
17271         Likewise.
17272         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17273         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
17275         Likewise.
17276         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
17277         Likewise.
17278         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
17280         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
17281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17282         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17283         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17284         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17285         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
17286         (gl_WCHAR_H_DEFAULTS): Likewise.
17287
17288 2009-12-31  Eric Blake  <ebb9@byu.net>
17289
17290         signal, spawn: use link warnings
17291         * lib/signal.in.h (sigset_t): Make unconditional.
17292         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
17293         (sigpending, sigprocmask, sigaction): Add link warnings.
17294         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
17295         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
17296         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
17297         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
17298         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
17299         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
17300         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
17301         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
17302         (posix_spawn_file_actions_destroy)
17303         (posix_spawn_file_actions_addopen)
17304         (posix_spawn_file_actions_addclose)
17305         (posix_spawn_file_actions_adddup2): Likewise.
17306         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
17307         * tests/test-signal.c (main): Enhance test.
17308
17309         spawn: improve wrapper support
17310         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
17311         (gl_SPAWN_H_DEFAULTS): New defaults.
17312         * modules/spawn (Makefile.am): Substitute them.
17313         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
17314         Only declare if missing or broken.
17315
17316         sys_times, sys_utsname: use include_next
17317         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
17318         header.
17319         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
17320         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
17321         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
17322         * modules/sys_times (Depends-on): Add include_next.
17323         (Makefile.am): Substitute additional values.
17324         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17325         * lib/sys_times.in.h (includes): Include native header, if
17326         available.
17327         * lib/sys_utsname.in.h (includes): Likewise.
17328         * tests/test-sys_times.c (main): Enhance test.
17329
17330         fdutimensat: revert prior patch
17331         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
17332         utimens.h.
17333         Reported by Bruno Haible.
17334
17335 2009-12-30  Eric Blake  <ebb9@byu.net>
17336
17337         sys_wait: drop link-warning dependency
17338         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
17339         link-warning efforts.
17340         * lib/sys_wait.in.h: Likewise.
17341
17342         fdutimensat: remove bogus dependency
17343         * modules/fdutimensat (Depends-on): Drop inline.
17344
17345         unistd: fix typo
17346         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
17347
17348 2009-12-30  Bruno Haible  <bruno@clisp.org>
17349
17350         Fix compilation error with Solaris cc.
17351         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
17352         * lib/unicase/u16-is-invariant.c: Likewise.
17353         * lib/unicase/u32-is-invariant.c: Likewise.
17354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17355
17356 2009-12-30  Bruno Haible  <bruno@clisp.org>
17357
17358         Fix test crash.
17359         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
17360         locales.
17361         Reported by Simon Josefsson <simon@josefsson.org>.
17362
17363 2009-12-30  Bruno Haible  <bruno@clisp.org>
17364
17365         Fix compilation error on most platforms.
17366         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
17367         Reported by Simon Josefsson <simon@josefsson.org>
17368         and Nelson H. F. Beebe <beebe@math.utah.edu>.
17369
17370 2009-12-30  Eric Blake  <ebb9@byu.net>
17371
17372         futimens, utimensat: work around ntfs-3g bug
17373         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
17374         a ctime bug is present, and expand workaround to cover ntfs-3g.
17375         * lib/utimens.c (fdutimens, lutimens): Likewise.
17376         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
17377         (validate_timespec): Adjust return value.
17378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
17379         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17380         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
17381
17382 2009-12-29  Eric Blake  <ebb9@byu.net>
17383
17384         link-warning: make usage consistent
17385         * modules/ctype (Depends-on): Add link-warning.
17386         (Makefile.am): Update rules accordingly.
17387         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17388         * modules/locale (Depends-on, Makefile.am): Likewise.
17389         * modules/sys_file (Makefile.am): Likewise.
17390         * modules/getopt-posix (Makefile.am): Delete unused link warning
17391         efforts.
17392         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
17393         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
17394         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
17395         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
17396
17397         stdio: remove unused variables
17398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
17399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
17400         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17401
17402         tests: test more substitute headers
17403         * modules/ctype-tests: New file.
17404         * modules/dirent-tests: Likewise.
17405         * modules/spawn-tests: Likewise.
17406         * modules/sys_file-tests: Likewise.
17407         * modules/sys_ioctl-tests: Likewise.
17408         * modules/sys_wait-tests: Likewise.
17409         * tests/test-ctype.c: Likewise.
17410         * tests/test-dirent.c: Likewise.
17411         * tests/test-spawn.c: Likewise.
17412         * tests/test-sys_file.c: Likewise.
17413         * tests/test-sys_ioctl.c: Likewise.
17414         * tests/test-sys_wait.c: Likewise.
17415         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
17416         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
17417         whether or not flock is in use.
17418
17419         tests: remove License section from module
17420         * modules/arpa_inet-tests: Remove unneeded section.
17421         * modules/byteswap-tests: Likewise.
17422         * modules/ceilf-tests: Likewise.
17423         * modules/ceill-tests: Likewise.
17424         * modules/crypto/des-tests: Likewise.
17425         * modules/crypto/gc-arcfour-tests: Likewise.
17426         * modules/crypto/gc-arctwo-tests: Likewise.
17427         * modules/crypto/gc-des-tests: Likewise.
17428         * modules/crypto/gc-hmac-md5-tests: Likewise.
17429         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17430         * modules/crypto/gc-md2-tests: Likewise.
17431         * modules/crypto/gc-md4-tests: Likewise.
17432         * modules/crypto/gc-md5-tests: Likewise.
17433         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17434         * modules/crypto/gc-rijndael-tests: Likewise.
17435         * modules/crypto/gc-sha1-tests: Likewise.
17436         * modules/crypto/gc-tests: Likewise.
17437         * modules/crypto/md2-tests: Likewise.
17438         * modules/crypto/md4-tests: Likewise.
17439         * modules/fcntl-h-tests: Likewise.
17440         * modules/floorf-tests: Likewise.
17441         * modules/floorl-tests: Likewise.
17442         * modules/frexp-nolibm-tests: Likewise.
17443         * modules/frexp-tests: Likewise.
17444         * modules/frexpl-nolibm-tests: Likewise.
17445         * modules/frexpl-tests: Likewise.
17446         * modules/getaddrinfo-tests: Likewise.
17447         * modules/inttypes-tests: Likewise.
17448         * modules/isfinite-tests: Likewise.
17449         * modules/isinf-tests: Likewise.
17450         * modules/ldexpl-tests: Likewise.
17451         * modules/locale-tests: Likewise.
17452         * modules/math-tests: Likewise.
17453         * modules/netdb-tests: Likewise.
17454         * modules/netinet_in-tests: Likewise.
17455         * modules/printf-frexp-tests: Likewise.
17456         * modules/printf-frexpl-tests: Likewise.
17457         * modules/priv-set-tests: Likewise.
17458         * modules/random_r-tests: Likewise.
17459         * modules/round-tests: Likewise.
17460         * modules/roundf-tests: Likewise.
17461         * modules/roundl-tests: Likewise.
17462         * modules/search-tests: Likewise.
17463         * modules/select-tests: Likewise.
17464         * modules/signal-tests: Likewise.
17465         * modules/stdbool-tests: Likewise.
17466         * modules/stddef-tests: Likewise.
17467         * modules/stdint-tests: Likewise.
17468         * modules/stdio-tests: Likewise.
17469         * modules/stdlib-tests: Likewise.
17470         * modules/string-tests: Likewise.
17471         * modules/strings-tests: Likewise.
17472         * modules/sys_select-tests: Likewise.
17473         * modules/sys_socket-tests: Likewise.
17474         * modules/sys_stat-tests: Likewise.
17475         * modules/sys_time-tests: Likewise.
17476         * modules/sys_utsname-tests: Likewise.
17477         * modules/sysexits-tests: Likewise.
17478         * modules/time-tests: Likewise.
17479         * modules/trunc-tests: Likewise.
17480         * modules/truncf-tests: Likewise.
17481         * modules/truncl-tests: Likewise.
17482         * modules/tsearch-tests: Likewise.
17483         * modules/unistd-tests: Likewise.
17484         * modules/wchar-tests: Likewise.
17485         * modules/wctype-tests: Likewise.
17486
17487         tests: fix license on several tests
17488         * tests/test-des.c: Update to GPLv3+.
17489         * tests/test-flock.c: Likewise.
17490         * tests/test-fsync.c: Likewise.
17491         * tests/test-futimens.h: Likewise.
17492         * tests/test-gc-arcfour.c: Likewise.
17493         * tests/test-gc-arctwo.c: Likewise.
17494         * tests/test-gc-des.c: Likewise.
17495         * tests/test-gc-hmac-md5.c: Likewise.
17496         * tests/test-gc-hmac-sha1.c: Likewise.
17497         * tests/test-gc-md2.c: Likewise.
17498         * tests/test-gc-md4.c: Likewise.
17499         * tests/test-gc-md5.c: Likewise.
17500         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17501         * tests/test-gc-rijndael.c: Likewise.
17502         * tests/test-gc-sha1.c: Likewise.
17503         * tests/test-gc.c: Likewise.
17504         * tests/test-getcwd.c: Likewise.
17505         * tests/test-link.c: Likewise.
17506         * tests/test-link.h: Likewise.
17507         * tests/test-lutimens.h: Likewise.
17508         * tests/test-md2.c: Likewise.
17509         * tests/test-md4.c: Likewise.
17510         * tests/test-mkdir.h: Likewise.
17511         * tests/test-rename.c: Likewise.
17512         * tests/test-rename.h: Likewise.
17513         * tests/test-safe-alloc.c: Likewise.
17514         * tests/test-utimens-common.h: Likewise.
17515         * tests/test-utimens.h: Likewise.
17516
17517         maint: sync license texts
17518         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
17519         * doc/gpl-3.0.texi: Revert copyright year update.
17520         * doc/lgpl-3.0.texi: Likewise.
17521
17522 2009-12-29  Jim Meyering  <meyering@redhat.com>
17523
17524         update nearly all FSF copyright year lists to include 2009
17525         The files named by the following are exempted:
17526             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
17527               test -f "$dst" && { echo "$dst"; continue; }
17528               test -d "$dst" || continue
17529               echo "$dst"/$(basename "$src")
17530             done > exempt
17531             git ls-files tests/unictype >> exempt
17532         In the remaining files, convert to all-interval notation if
17533         - there is already at least one year interval like 2000-2003
17534         - the file is maintained by me
17535         - the file is in lib/uni*/, where that style already prevails
17536         Otherwise, use update-copyright's default.
17537
17538 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17539         and Eric Blake  <ebb9@byu.net>
17540
17541         tests: don't require debug system() to pass
17542         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
17543         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17544         * tests/test-unlink.h (test_unlink_func): Likewise.
17545         * tests/test-fstatat.c (main): ...into callers.
17546         * tests/test-lstat.c (main): Likewise.
17547         * tests/test-rmdir.c (main): Likewise.
17548         * tests/test-unlink.c (main): Likewise.
17549         * tests/test-unlinkat.c (main): Likewise.
17550         * tests/test-areadlink-with-size.c (main): Don't require a
17551         debug-only system call to pass, aiding cross-testing to mingw.
17552         * tests/test-areadlink.c (main): Likewise.
17553         * tests/test-areadlinkat-with-size.c (main): Likewise.
17554         * tests/test-areadlinkat.c (main): Likewise.
17555         * tests/test-canonicalize-lgpl.c (main): Likewise.
17556         * tests/test-canonicalize.c (main): Likewise.
17557         * tests/test-chown.c (main): Likewise.
17558         * tests/test-fchownat.c (main): Likewise.
17559         * tests/test-lchown.c (main): Likewise.
17560         * tests/test-fdutimensat.c (main): Likewise.
17561         * tests/test-futimens.c (main): Likewise.
17562         * tests/test-link.c (main): Likewise.
17563         * tests/test-linkat.c (main): Likewise.
17564         * tests/test-mkdir.c (main): Likewise.
17565         * tests/test-mkdirat.c (main): Likewise.
17566         * tests/test-mkfifo.c (main): Likewise.
17567         * tests/test-mkfifoat.c (main): Likewise.
17568         * tests/test-mknod.c (main): Likewise.
17569         * tests/test-readlink.c (main): Likewise.
17570         * tests/test-remove.c (main): Likewise.
17571         * tests/test-rename.c (main): Likewise.
17572         * tests/test-renameat.c (main): Likewise.
17573         * tests/test-symlink.c (main): Likewise.
17574         * tests/test-symlinkat.c (main): Likewise.
17575         * tests/test-utimens.c (main): Likewise.
17576         * tests/test-utimensat.c (main): Likewise.
17577
17578 2009-12-29  Simon Josefsson  <simon@josefsson.org>
17579
17580         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
17581         on $(UNUSED_PARAMETER_H) to avoid build failure.
17582
17583 2009-12-28  Jim Meyering  <meyering@redhat.com>
17584
17585         update-copyright: you may specify a max. line length other than 72
17586         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17587
17588         maint: use consistent FSF copyright line syntax
17589         * lib/posixtm.c: Add missing comma in FSF copyright line.
17590         * lib/posixtm.h: Likewise.
17591         * lib/getugroups.c: Add missing ", Inc.".
17592
17593         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
17594         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
17595         FSF copyright line.  Remove trailing blanks.
17596
17597 2009-12-28  Eric Blake  <ebb9@byu.net>
17598
17599         test-dup2: reduce dependencies
17600         * modules/cloexec (Configure.ac): Set witness.
17601         * modules/dup2-tests (Depends-on): Drop cloexec.
17602         * tests/test-dup2.c (main): Skip portion of test if cloexec module
17603         not present.
17604         Suggested by Bruno Haible.
17605
17606 2009-12-26  Bruno Haible  <bruno@clisp.org>
17607
17608         Remove an unneeded dependency.
17609         * modules/fseterr (Depends-on): Remove dup2.
17610
17611 2009-12-26  Eric Blake  <ebb9@byu.net>
17612
17613         tests: use macros.h in more places
17614         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
17615         (ASSERT_STREAM): Provide default of stderr.
17616         * tests/test-dirent-safer.c: Include macros.h, using alternate
17617         stream for assertions.
17618         * tests/test-dup-safer.c: Likewise.
17619         * tests/test-freopen-safer.c: Likewise.
17620         * tests/test-getopt.c: Likewise.
17621         * tests/test-openat-safer.c: Likewise.
17622         * tests/test-pipe.c: Likewise.
17623         * tests/test-popen-safer.c: Likewise.
17624         * modules/dirent-safer-tests (Files): Include macros.h.
17625         * modules/unistd-safer-tests (Files): Likewise.
17626         * modules/freopen-safer-tests (Files): Likewise.
17627         * modules/getopt-posix-tests (Files): Likewise.
17628         * modules/openat-safer-tests (Files): Likewise.
17629         * modules/pipe-tests (Files): Likewise.
17630
17631 2009-12-26  Bruno Haible  <bruno@clisp.org>
17632
17633         javacomp: Portability fix.
17634         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
17635         that it also works on Solaris.
17636
17637 2009-12-26  Bruno Haible  <bruno@clisp.org>
17638
17639         localename: Fix storage allocation of gl_locale_name_thread's result.
17640         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
17641         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
17642         all platforms that have 'uselocale'.
17643         (gl_locale_name_thread_unsafe): New function, extracted from
17644         gl_locale_name_thread.
17645         (gl_locale_name_thread): Call struniq on all platforms that have
17646         'uselocale'.
17647         * tests/test-localename.c (test_locale_name_thread): Check that the
17648         resulting strings are permanently allocated.
17649         * modules/localename-tests (Depends-on): Add strdup.
17650
17651 2009-12-26  Bruno Haible  <bruno@clisp.org>
17652
17653         * tests/test-localename.c (categories): Fill in the strings.
17654
17655 2009-12-26  Jim Meyering  <meyering@redhat.com>
17656
17657         isdir: complete the removal of m4/isdir.m4
17658         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
17659
17660         isdir: clean up, since at least grep still uses it
17661         * lib/isdir.c: Include "isdir.h".
17662         (S_ISDIR): Remove now-unneeded definition.
17663         * modules/isdir (Files): Add lib/isdir.h.
17664         * lib/isdir.h: New file, with declaration.
17665         * m4/isdir.m4: Remove file -- unneeded.
17666
17667 2009-12-25  Bruno Haible  <bruno@clisp.org>
17668
17669         selinux-h: Make generated .h files standalone.
17670         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
17671         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
17672         * lib/se-selinux.in.h: Likewise.
17673         * modules/selinux-h (Depends-on): Add unused-parameter.
17674         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
17675         selinux/selinux.h and selinux/context.h.
17676         Suggested by Eric Blake.
17677
17678 2009-12-25  Bruno Haible  <bruno@clisp.org>
17679
17680         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
17681         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
17682         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
17683         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
17684         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
17685
17686 2009-12-24  Bruno Haible  <bruno@clisp.org>
17687
17688         openat: Fix warning.
17689         * lib/openat-proc.c: Include <unistd.h>.
17690
17691 2009-12-24  Bruno Haible  <bruno@clisp.org>
17692
17693         New module 'unused-parameter'.
17694         * build-aux/unused-parameter.h: New file, extracted from earlier
17695         gnulib-common.m4.
17696         * modules/unused-parameter: New file.
17697         * lib/unistr.h: Include unused-parameter.h.
17698         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
17699         _GL_UNUSED.
17700         * modules/unistr/base (Depends-on): Add unused-parameter.
17701
17702 2009-12-24  Bruno Haible  <bruno@clisp.org>
17703
17704         Add missing dependencies to 'extensions' module.
17705         * m4/extensions.m4: Add comment.
17706         * modules/accept4 (Depends-on): Add extensions.
17707         * modules/dup3 (Depends-on): Likewise.
17708         * modules/fcntl (Depends-on): Likewise.
17709         * modules/futimens (Depends-on): Likewise.
17710         * modules/mknod (Depends-on): Likewise.
17711         * modules/pipe2 (Depends-on): Likewise.
17712         * modules/stat-time (Depends-on): Likewise.
17713         * modules/strcasestr-simple (Depends-on): Likewise.
17714         * modules/strsignal (Depends-on): Likewise.
17715         * modules/utimensat (Depends-on): Likewise.
17716         * modules/localcharset (Depends-on): Likewise. Needed because of
17717         gl_FCNTL_O_FLAGS.
17718         * modules/wcrtomb (Depends-on): Likewise. Needed because of
17719         AC_TYPE_MBSTATE_T.
17720         * modules/wcsnrtombs (Depends-on): Likewise.
17721         * modules/wcsrtombs (Depends-on): Likewise.
17722
17723 2009-12-24  Bruno Haible  <bruno@clisp.org>
17724
17725         binary-io: Avoid gcc warning due to SET_BINARY.
17726         * lib/binary-io.h (SET_BINARY): Cast the result to void.
17727         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
17728
17729 2009-12-24  Bruno Haible  <bruno@clisp.org>
17730
17731         Avoid future namespace pollution on glibc systems.
17732         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
17733         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
17734         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
17735         glibc systems.
17736
17737 2009-12-24  Bruno Haible  <bruno@clisp.org>
17738
17739         Refactor common macros used in tests.
17740         * tests/macros.h: New file.
17741         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
17742         and/or <stdlib.h>, if appropriate.
17743         (ASSERT, SIZEOF): Remove macros.
17744         * tests/test-areadlink-with-size.c: Likewise.
17745         * tests/test-areadlinkat.c: Likewise.
17746         * tests/test-areadlinkat-with-size.c: Likewise.
17747         * tests/test-argmatch.c: Likewise.
17748         * tests/test-argv-iter.c: Likewise.
17749         * tests/test-array-mergesort.c: Likewise.
17750         * tests/test-array_list.c: Likewise.
17751         * tests/test-array_oset.c: Likewise.
17752         * tests/test-avltree_list.c: Likewise.
17753         * tests/test-avltree_oset.c: Likewise.
17754         * tests/test-avltreehash_list.c: Likewise.
17755         * tests/test-base64.c: Likewise.
17756         * tests/test-binary-io.c: Likewise.
17757         * tests/test-bitrotate.c: Likewise.
17758         * tests/test-btowc.c: Likewise.
17759         * tests/test-byteswap.c: Likewise.
17760         * tests/test-c-ctype.c: Likewise.
17761         * tests/test-c-stack.c: Likewise.
17762         * tests/test-c-strcasecmp.c: Likewise.
17763         * tests/test-c-strcasestr.c: Likewise.
17764         * tests/test-c-strncasecmp.c: Likewise.
17765         * tests/test-c-strstr.c: Likewise.
17766         * tests/test-canonicalize-lgpl.c: Likewise.
17767         * tests/test-canonicalize.c: Likewise.
17768         * tests/test-carray_list.c: Likewise.
17769         * tests/test-ceilf1.c: Likewise.
17770         * tests/test-ceilf2.c: Likewise.
17771         * tests/test-ceill.c: Likewise.
17772         * tests/test-chown.c: Likewise.
17773         * tests/test-cloexec.c: Likewise.
17774         * tests/test-copy-acl.c: Likewise.
17775         * tests/test-copy-file.c: Likewise.
17776         * tests/test-count-one-bits.c: Likewise.
17777         * tests/test-dprintf-posix.c: Likewise.
17778         * tests/test-dup2.c: Likewise.
17779         * tests/test-dup3.c: Likewise.
17780         * tests/test-duplocale.c: Likewise.
17781         * tests/test-fbufmode.c: Likewise.
17782         * tests/test-fchdir.c: Likewise.
17783         * tests/test-fchownat.c: Likewise.
17784         * tests/test-fcntl-safer.c: Likewise.
17785         * tests/test-fcntl.c: Likewise.
17786         * tests/test-fdopendir.c: Likewise.
17787         * tests/test-fdutimensat.c: Likewise.
17788         * tests/test-fflush2.c: Likewise.
17789         * tests/test-file-has-acl.c: Likewise.
17790         * tests/test-filevercmp.c: Likewise.
17791         * tests/test-flock.c: Likewise.
17792         * tests/test-floorf1.c: Likewise.
17793         * tests/test-floorf2.c: Likewise.
17794         * tests/test-floorl.c: Likewise.
17795         * tests/test-fnmatch.c: Likewise.
17796         * tests/test-fopen.h: Likewise.
17797         * tests/test-fpending.c: Likewise.
17798         * tests/test-fprintf-posix.c: Likewise.
17799         * tests/test-fpurge.c: Likewise.
17800         * tests/test-freadable.c: Likewise.
17801         * tests/test-freadahead.c: Likewise.
17802         * tests/test-freading.c: Likewise.
17803         * tests/test-freadptr.c: Likewise.
17804         * tests/test-freadptr2.c: Likewise.
17805         * tests/test-freadseek.c: Likewise.
17806         * tests/test-freopen.c: Likewise.
17807         * tests/test-frexp.c: Likewise.
17808         * tests/test-frexpl.c: Likewise.
17809         * tests/test-fseek.c: Likewise.
17810         * tests/test-fseeko.c: Likewise.
17811         * tests/test-fstatat.c: Likewise.
17812         * tests/test-fstrcmp.c: Likewise.
17813         * tests/test-fsync.c: Likewise.
17814         * tests/test-ftell.c: Likewise.
17815         * tests/test-ftello.c: Likewise.
17816         * tests/test-func.c: Likewise.
17817         * tests/test-futimens.c: Likewise.
17818         * tests/test-fwritable.c: Likewise.
17819         * tests/test-fwriting.c: Likewise.
17820         * tests/test-getcwd.c: Likewise.
17821         * tests/test-getdate.c: Likewise.
17822         * tests/test-getdelim.c: Likewise.
17823         * tests/test-getdtablesize.c: Likewise.
17824         * tests/test-getgroups.c: Likewise.
17825         * tests/test-getline.c: Likewise.
17826         * tests/test-getndelim2.c: Likewise.
17827         * tests/test-glob.c: Likewise.
17828         * tests/test-hash.c: Likewise.
17829         * tests/test-i-ring.c: Likewise.
17830         * tests/test-iconv-utf.c: Likewise.
17831         * tests/test-iconv.c: Likewise.
17832         * tests/test-idpriv-drop.c: Likewise.
17833         * tests/test-idpriv-droptemp.c: Likewise.
17834         * tests/test-inet_ntop.c: Likewise.
17835         * tests/test-inet_pton.c: Likewise.
17836         * tests/test-isblank.c: Likewise.
17837         * tests/test-isfinite.c: Likewise.
17838         * tests/test-isinf.c: Likewise.
17839         * tests/test-isnan.c: Likewise.
17840         * tests/test-isnand.h: Likewise.
17841         * tests/test-isnanf.h: Likewise.
17842         * tests/test-isnanl.h: Likewise.
17843         * tests/test-lchown.c: Likewise.
17844         * tests/test-ldexpl.c: Likewise.
17845         * tests/test-link.c: Likewise.
17846         * tests/test-linkat.c: Likewise.
17847         * tests/test-linked_list.c: Likewise.
17848         * tests/test-linkedhash_list.c: Likewise.
17849         * tests/test-localename.c: Likewise.
17850         * tests/test-lseek.c: Likewise.
17851         * tests/test-lstat.c: Likewise.
17852         * tests/test-mbmemcasecmp.c: Likewise.
17853         * tests/test-mbmemcasecoll.c: Likewise.
17854         * tests/test-mbrtowc.c: Likewise.
17855         * tests/test-mbscasecmp.c: Likewise.
17856         * tests/test-mbscasestr1.c: Likewise.
17857         * tests/test-mbscasestr2.c: Likewise.
17858         * tests/test-mbscasestr3.c: Likewise.
17859         * tests/test-mbscasestr4.c: Likewise.
17860         * tests/test-mbschr.c: Likewise.
17861         * tests/test-mbscspn.c: Likewise.
17862         * tests/test-mbsinit.c: Likewise.
17863         * tests/test-mbsncasecmp.c: Likewise.
17864         * tests/test-mbsnrtowcs.c: Likewise.
17865         * tests/test-mbspbrk.c: Likewise.
17866         * tests/test-mbspcasecmp.c: Likewise.
17867         * tests/test-mbsrchr.c: Likewise.
17868         * tests/test-mbsrtowcs.c: Likewise.
17869         * tests/test-mbsspn.c: Likewise.
17870         * tests/test-mbsstr1.c: Likewise.
17871         * tests/test-mbsstr2.c: Likewise.
17872         * tests/test-mbsstr3.c: Likewise.
17873         * tests/test-memchr.c: Likewise.
17874         * tests/test-memchr2.c: Likewise.
17875         * tests/test-memcmp.c: Likewise.
17876         * tests/test-memmem.c: Likewise.
17877         * tests/test-memrchr.c: Likewise.
17878         * tests/test-mkdir.c: Likewise.
17879         * tests/test-mkdirat.c: Likewise.
17880         * tests/test-mkfifo.c: Likewise.
17881         * tests/test-mkfifoat.c: Likewise.
17882         * tests/test-mknod.c: Likewise.
17883         * tests/test-nanosleep.c: Likewise.
17884         * tests/test-nl_langinfo.c: Likewise.
17885         * tests/test-obstack-printf.c: Likewise.
17886         * tests/test-open.c: Likewise.
17887         * tests/test-openat.c: Likewise.
17888         * tests/test-pipe-filter-gi1.c: Likewise.
17889         * tests/test-pipe-filter-gi2-main.c: Likewise.
17890         * tests/test-pipe-filter-ii1.c: Likewise.
17891         * tests/test-pipe-filter-ii2-main.c: Likewise.
17892         * tests/test-pipe2.c: Likewise.
17893         * tests/test-popen.h: Likewise.
17894         * tests/test-posixtm.c: Likewise.
17895         * tests/test-pread.c: Likewise.
17896         * tests/test-printf-frexp.c: Likewise.
17897         * tests/test-printf-frexpl.c: Likewise.
17898         * tests/test-printf-posix.c: Likewise.
17899         * tests/test-priv-set.c: Likewise.
17900         * tests/test-quotearg.c: Likewise.
17901         * tests/test-random_r.c: Likewise.
17902         * tests/test-rawmemchr.c: Likewise.
17903         * tests/test-rbtree_list.c: Likewise.
17904         * tests/test-rbtree_oset.c: Likewise.
17905         * tests/test-rbtreehash_list.c: Likewise.
17906         * tests/test-readlink.c: Likewise.
17907         * tests/test-remove.c: Likewise.
17908         * tests/test-rename.c: Likewise.
17909         * tests/test-renameat.c: Likewise.
17910         * tests/test-rmdir.c: Likewise.
17911         * tests/test-round1.c: Likewise.
17912         * tests/test-roundf1.c: Likewise.
17913         * tests/test-roundl.c: Likewise.
17914         * tests/test-safe-alloc.c: Likewise.
17915         * tests/test-sameacls.c: Likewise.
17916         * tests/test-set-mode-acl.c: Likewise.
17917         * tests/test-setenv.c: Likewise.
17918         * tests/test-sigaction.c: Likewise.
17919         * tests/test-signbit.c: Likewise.
17920         * tests/test-sleep.c: Likewise.
17921         * tests/test-snprintf-posix.c: Likewise.
17922         * tests/test-snprintf.c: Likewise.
17923         * tests/test-sprintf-posix.c: Likewise.
17924         * tests/test-stat-time.c: Likewise.
17925         * tests/test-stat.c: Likewise.
17926         * tests/test-strcasestr.c: Likewise.
17927         * tests/test-strchrnul.c: Likewise.
17928         * tests/test-strerror.c: Likewise.
17929         * tests/test-striconv.c: Likewise.
17930         * tests/test-striconveh.c: Likewise.
17931         * tests/test-striconveha.c: Likewise.
17932         * tests/test-strsignal.c: Likewise.
17933         * tests/test-strstr.c: Likewise.
17934         * tests/test-strtod.c: Likewise.
17935         * tests/test-strverscmp.c: Likewise.
17936         * tests/test-symlink.c: Likewise.
17937         * tests/test-symlinkat.c: Likewise.
17938         * tests/test-trunc1.c: Likewise.
17939         * tests/test-trunc2.c: Likewise.
17940         * tests/test-truncf1.c: Likewise.
17941         * tests/test-truncf2.c: Likewise.
17942         * tests/test-truncl.c: Likewise.
17943         * tests/test-uname.c: Likewise.
17944         * tests/test-unlink.c: Likewise.
17945         * tests/test-unlinkat.c: Likewise.
17946         * tests/test-unsetenv.c: Likewise.
17947         * tests/test-usleep.c: Likewise.
17948         * tests/test-utimens.c: Likewise.
17949         * tests/test-utimensat.c: Likewise.
17950         * tests/test-vasnprintf-posix.c: Likewise.
17951         * tests/test-vasnprintf-posix2.c: Likewise.
17952         * tests/test-vasnprintf.c: Likewise.
17953         * tests/test-vasprintf-posix.c: Likewise.
17954         * tests/test-vasprintf.c: Likewise.
17955         * tests/test-vdprintf-posix.c: Likewise.
17956         * tests/test-vfprintf-posix.c: Likewise.
17957         * tests/test-vprintf-posix.c: Likewise.
17958         * tests/test-vsnprintf-posix.c: Likewise.
17959         * tests/test-vsnprintf.c: Likewise.
17960         * tests/test-vsprintf-posix.c: Likewise.
17961         * tests/test-wcrtomb.c: Likewise.
17962         * tests/test-wcsnrtombs.c: Likewise.
17963         * tests/test-wcsrtombs.c: Likewise.
17964         * tests/test-wctype.c: Likewise.
17965         * tests/test-wcwidth.c: Likewise.
17966         * tests/test-xfprintf-posix.c: Likewise.
17967         * tests/test-xmemdup0.c: Likewise.
17968         * tests/test-xprintf-posix.c: Likewise.
17969         * tests/test-xvasprintf.c: Likewise.
17970         * tests/unicase/test-locale-language.c: Likewise.
17971         * tests/unicase/test-mapping-part1.h: Likewise.
17972         * tests/unicase/test-predicate-part1.h: Likewise.
17973         * tests/unicase/test-u8-casecmp.c: Likewise.
17974         * tests/unicase/test-u8-casecoll.c: Likewise.
17975         * tests/unicase/test-u8-casefold.c: Likewise.
17976         * tests/unicase/test-u8-is-cased.c: Likewise.
17977         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17978         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17979         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17980         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17981         * tests/unicase/test-u8-tolower.c: Likewise.
17982         * tests/unicase/test-u8-totitle.c: Likewise.
17983         * tests/unicase/test-u8-toupper.c: Likewise.
17984         * tests/unicase/test-u16-casecmp.c: Likewise.
17985         * tests/unicase/test-u16-casecoll.c: Likewise.
17986         * tests/unicase/test-u16-casefold.c: Likewise.
17987         * tests/unicase/test-u16-is-cased.c: Likewise.
17988         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17989         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17990         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17991         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17992         * tests/unicase/test-u16-tolower.c: Likewise.
17993         * tests/unicase/test-u16-totitle.c: Likewise.
17994         * tests/unicase/test-u16-toupper.c: Likewise.
17995         * tests/unicase/test-u32-casecmp.c: Likewise.
17996         * tests/unicase/test-u32-casecoll.c: Likewise.
17997         * tests/unicase/test-u32-casefold.c: Likewise.
17998         * tests/unicase/test-u32-is-cased.c: Likewise.
17999         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18000         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18001         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18002         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18003         * tests/unicase/test-u32-tolower.c: Likewise.
18004         * tests/unicase/test-u32-totitle.c: Likewise.
18005         * tests/unicase/test-u32-toupper.c: Likewise.
18006         * tests/unicase/test-ulc-casecmp.c: Likewise.
18007         * tests/unicase/test-ulc-casecoll.c: Likewise.
18008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18009         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18010         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18011         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18012         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18013         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18014         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18015         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18016         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18017         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18018         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18019         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18020         * tests/unictype/test-bidi_byname.c: Likewise.
18021         * tests/unictype/test-bidi_name.c: Likewise.
18022         * tests/unictype/test-bidi_of.c: Likewise.
18023         * tests/unictype/test-bidi_test.c: Likewise.
18024         * tests/unictype/test-block_list.c: Likewise.
18025         * tests/unictype/test-block_of.c: Likewise.
18026         * tests/unictype/test-block_test.c: Likewise.
18027         * tests/unictype/test-categ_and.c: Likewise.
18028         * tests/unictype/test-categ_and_not.c: Likewise.
18029         * tests/unictype/test-categ_byname.c: Likewise.
18030         * tests/unictype/test-categ_name.c: Likewise.
18031         * tests/unictype/test-categ_none.c: Likewise.
18032         * tests/unictype/test-categ_of.c: Likewise.
18033         * tests/unictype/test-categ_or.c: Likewise.
18034         * tests/unictype/test-categ_test_withtable.c: Likewise.
18035         * tests/unictype/test-combining.c: Likewise.
18036         * tests/unictype/test-decdigit.c: Likewise.
18037         * tests/unictype/test-digit.c: Likewise.
18038         * tests/unictype/test-mirror.c: Likewise.
18039         * tests/unictype/test-numeric.c: Likewise.
18040         * tests/unictype/test-pr_byname.c: Likewise.
18041         * tests/unictype/test-pr_test.c: Likewise.
18042         * tests/unictype/test-predicate-part1.h: Likewise.
18043         * tests/unictype/test-scripts.c: Likewise.
18044         * tests/unictype/test-sy_c_ident.c: Likewise.
18045         * tests/unictype/test-sy_java_ident.c: Likewise.
18046         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18047         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18048         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18049         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18050         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18051         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18052         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18053         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18054         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18055         * tests/uninorm/test-compat-decomposition.c: Likewise.
18056         * tests/uninorm/test-composition.c: Likewise.
18057         * tests/uninorm/test-decomposing-form.c: Likewise.
18058         * tests/uninorm/test-decomposition.c: Likewise.
18059         * tests/uninorm/test-u8-nfc.c: Likewise.
18060         * tests/uninorm/test-u8-nfd.c: Likewise.
18061         * tests/uninorm/test-u8-nfkc.c: Likewise.
18062         * tests/uninorm/test-u8-nfkd.c: Likewise.
18063         * tests/uninorm/test-u8-normcmp.c: Likewise.
18064         * tests/uninorm/test-u8-normcoll.c: Likewise.
18065         * tests/uninorm/test-u16-nfc.c: Likewise.
18066         * tests/uninorm/test-u16-nfd.c: Likewise.
18067         * tests/uninorm/test-u16-nfkc.c: Likewise.
18068         * tests/uninorm/test-u16-nfkd.c: Likewise.
18069         * tests/uninorm/test-u16-normcmp.c: Likewise.
18070         * tests/uninorm/test-u16-normcoll.c: Likewise.
18071         * tests/uninorm/test-u32-nfc.c: Likewise.
18072         * tests/uninorm/test-u32-nfd.c: Likewise.
18073         * tests/uninorm/test-u32-nfkc.c: Likewise.
18074         * tests/uninorm/test-u32-nfkd.c: Likewise.
18075         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18076         * tests/uninorm/test-u32-normcmp.c: Likewise.
18077         * tests/uninorm/test-u32-normcoll.c: Likewise.
18078         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18079         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18080         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18081         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18082         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18083         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18084         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18085         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18086         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18087         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18088         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18089         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18090         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18091         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18092         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18093         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18094         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18095         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18096         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18097         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18098         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18099         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18100         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18101         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18102         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18103         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18104         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18105         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18106         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18107         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18108         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18109         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18110         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18111         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18112         * tests/uniwidth/test-u8-width.c: Likewise.
18113         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18114         * tests/uniwidth/test-u16-width.c: Likewise.
18115         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18116         * tests/uniwidth/test-u32-width.c: Likewise.
18117         * tests/uniwidth/test-uc_width.c: Likewise.
18118         * tests/uniwidth/test-uc_width2.c: Likewise.
18119         * modules/acl-tests (Files): Add tests/macros.h.
18120         * modules/areadlink-tests (Files): Likewise.
18121         * modules/areadlink-with-size-tests (Files): Likewise.
18122         * modules/areadlinkat-tests (Files): Likewise.
18123         * modules/areadlinkat-with-size-tests (Files): Likewise.
18124         * modules/argmatch-tests (Files): Likewise.
18125         * modules/argv-iter-tests (Files): Likewise.
18126         * modules/array-list-tests (Files): Likewise.
18127         * modules/array-mergesort-tests (Files): Likewise.
18128         * modules/array-oset-tests (Files): Likewise.
18129         * modules/avltree-list-tests (Files): Likewise.
18130         * modules/avltree-oset-tests (Files): Likewise.
18131         * modules/avltreehash-list-tests (Files): Likewise.
18132         * modules/base64-tests (Files): Likewise.
18133         * modules/binary-io-tests (Files): Likewise.
18134         * modules/bitrotate-tests (Files): Likewise.
18135         * modules/btowc-tests (Files): Likewise.
18136         * modules/byteswap-tests (Files): Likewise.
18137         * modules/c-ctype-tests (Files): Likewise.
18138         * modules/c-stack-tests (Files): Likewise.
18139         * modules/c-strcase-tests (Files): Likewise.
18140         * modules/c-strcasestr-tests (Files): Likewise.
18141         * modules/c-strstr-tests (Files): Likewise.
18142         * modules/canonicalize-lgpl-tests (Files): Likewise.
18143         * modules/canonicalize-tests (Files): Likewise.
18144         * modules/carray-list-tests (Files): Likewise.
18145         * modules/ceilf-tests (Files): Likewise.
18146         * modules/ceill-tests (Files): Likewise.
18147         * modules/chown-tests (Files): Likewise.
18148         * modules/cloexec-tests (Files): Likewise.
18149         * modules/copy-file-tests (Files): Likewise.
18150         * modules/count-one-bits-tests (Files): Likewise.
18151         * modules/dprintf-posix-tests (Files): Likewise.
18152         * modules/dup2-tests (Files): Likewise.
18153         * modules/dup3-tests (Files): Likewise.
18154         * modules/duplocale-tests (Files): Likewise.
18155         * modules/fbufmode-tests (Files): Likewise.
18156         * modules/fchdir-tests (Files): Likewise.
18157         * modules/fcntl-safer-tests (Files): Likewise.
18158         * modules/fcntl-tests (Files): Likewise.
18159         * modules/fdopendir-tests (Files): Likewise.
18160         * modules/fdutimensat-tests (Files): Likewise.
18161         * modules/fflush-tests (Files): Likewise.
18162         * modules/filevercmp-tests (Files): Likewise.
18163         * modules/flock-tests (Files): Likewise.
18164         * modules/floorf-tests (Files): Likewise.
18165         * modules/floorl-tests (Files): Likewise.
18166         * modules/fnmatch-tests (Files): Likewise.
18167         * modules/fopen-safer-tests (Files): Likewise.
18168         * modules/fopen-tests (Files): Likewise.
18169         * modules/fpending-tests (Files): Likewise.
18170         * modules/fprintf-posix-tests (Files): Likewise.
18171         * modules/fpurge-tests (Files): Likewise.
18172         * modules/freadable-tests (Files): Likewise.
18173         * modules/freadahead-tests (Files): Likewise.
18174         * modules/freading-tests (Files): Likewise.
18175         * modules/freadptr-tests (Files): Likewise.
18176         * modules/freadseek-tests (Files): Likewise.
18177         * modules/freopen-tests (Files): Likewise.
18178         * modules/frexp-nolibm-tests (Files): Likewise.
18179         * modules/frexp-tests (Files): Likewise.
18180         * modules/frexpl-nolibm-tests (Files): Likewise.
18181         * modules/frexpl-tests (Files): Likewise.
18182         * modules/fseek-tests (Files): Likewise.
18183         * modules/fseeko-tests (Files): Likewise.
18184         * modules/fstrcmp-tests (Files): Likewise.
18185         * modules/fsync-tests (Files): Likewise.
18186         * modules/ftell-tests (Files): Likewise.
18187         * modules/ftello-tests (Files): Likewise.
18188         * modules/func-tests (Files): Likewise.
18189         * modules/futimens-tests (Files): Likewise.
18190         * modules/fwritable-tests (Files): Likewise.
18191         * modules/fwriting-tests (Files): Likewise.
18192         * modules/getcwd-tests (Files): Likewise.
18193         * modules/getdate-tests (Files): Likewise.
18194         * modules/getdelim-tests (Files): Likewise.
18195         * modules/getdtablesize-tests (Files): Likewise.
18196         * modules/getgroups-tests (Files): Likewise.
18197         * modules/getline-tests (Files): Likewise.
18198         * modules/getndelim2-tests (Files): Likewise.
18199         * modules/glob-tests (Files): Likewise.
18200         * modules/hash-tests (Files): Likewise.
18201         * modules/i-ring-tests (Files): Likewise.
18202         * modules/iconv-tests (Files): Likewise.
18203         * modules/iconv_open-utf-tests (Files): Likewise.
18204         * modules/idpriv-drop-tests (Files): Likewise.
18205         * modules/idpriv-droptemp-tests (Files): Likewise.
18206         * modules/inet_ntop-tests (Files): Likewise.
18207         * modules/inet_pton-tests (Files): Likewise.
18208         * modules/isblank-tests (Files): Likewise.
18209         * modules/isfinite-tests (Files): Likewise.
18210         * modules/isinf-tests (Files): Likewise.
18211         * modules/isnan-tests (Files): Likewise.
18212         * modules/isnand-nolibm-tests (Files): Likewise.
18213         * modules/isnand-tests (Files): Likewise.
18214         * modules/isnanf-nolibm-tests (Files): Likewise.
18215         * modules/isnanf-tests (Files): Likewise.
18216         * modules/isnanl-nolibm-tests (Files): Likewise.
18217         * modules/isnanl-tests (Files): Likewise.
18218         * modules/lchown-tests (Files): Likewise.
18219         * modules/ldexpl-tests (Files): Likewise.
18220         * modules/link-tests (Files): Likewise.
18221         * modules/linkat-tests (Files): Likewise.
18222         * modules/linked-list-tests (Files): Likewise.
18223         * modules/linkedhash-list-tests (Files): Likewise.
18224         * modules/localename-tests (Files): Likewise.
18225         * modules/lseek-tests (Files): Likewise.
18226         * modules/lstat-tests (Files): Likewise.
18227         * modules/mbmemcasecmp-tests (Files): Likewise.
18228         * modules/mbmemcasecoll-tests (Files): Likewise.
18229         * modules/mbrtowc-tests (Files): Likewise.
18230         * modules/mbscasecmp-tests (Files): Likewise.
18231         * modules/mbscasestr-tests (Files): Likewise.
18232         * modules/mbschr-tests (Files): Likewise.
18233         * modules/mbscspn-tests (Files): Likewise.
18234         * modules/mbsinit-tests (Files): Likewise.
18235         * modules/mbsncasecmp-tests (Files): Likewise.
18236         * modules/mbsnrtowcs-tests (Files): Likewise.
18237         * modules/mbspbrk-tests (Files): Likewise.
18238         * modules/mbspcasecmp-tests (Files): Likewise.
18239         * modules/mbsrchr-tests (Files): Likewise.
18240         * modules/mbsrtowcs-tests (Files): Likewise.
18241         * modules/mbsspn-tests (Files): Likewise.
18242         * modules/mbsstr-tests (Files): Likewise.
18243         * modules/memchr-tests (Files): Likewise.
18244         * modules/memchr2-tests (Files): Likewise.
18245         * modules/memcmp-tests (Files): Likewise.
18246         * modules/memmem-tests (Files): Likewise.
18247         * modules/memrchr-tests (Files): Likewise.
18248         * modules/mkdir-tests (Files): Likewise.
18249         * modules/mkfifo-tests (Files): Likewise.
18250         * modules/mkfifoat-tests (Files): Likewise.
18251         * modules/mknod-tests (Files): Likewise.
18252         * modules/nanosleep-tests (Files): Likewise.
18253         * modules/nl_langinfo-tests (Files): Likewise.
18254         * modules/obstack-printf-tests (Files): Likewise.
18255         * modules/open-tests (Files): Likewise.
18256         * modules/openat-tests (Files): Likewise.
18257         * modules/pipe-filter-gi-tests (Files): Likewise.
18258         * modules/pipe-filter-ii-tests (Files): Likewise.
18259         * modules/pipe2-tests (Files): Likewise.
18260         * modules/popen-safer-tests (Files): Likewise.
18261         * modules/popen-tests (Files): Likewise.
18262         * modules/posixtm-tests (Files): Likewise.
18263         * modules/pread-tests (Files): Likewise.
18264         * modules/printf-frexp-tests (Files): Likewise.
18265         * modules/printf-frexpl-tests (Files): Likewise.
18266         * modules/printf-posix-tests (Files): Likewise.
18267         * modules/priv-set-tests (Files): Likewise.
18268         * modules/quotearg-tests (Files): Likewise.
18269         * modules/random_r-tests (Files): Likewise.
18270         * modules/rawmemchr-tests (Files): Likewise.
18271         * modules/rbtree-list-tests (Files): Likewise.
18272         * modules/rbtree-oset-tests (Files): Likewise.
18273         * modules/rbtreehash-list-tests (Files): Likewise.
18274         * modules/readlink-tests (Files): Likewise.
18275         * modules/remove-tests (Files): Likewise.
18276         * modules/rename-tests (Files): Likewise.
18277         * modules/renameat-tests (Files): Likewise.
18278         * modules/rmdir-tests (Files): Likewise.
18279         * modules/round-tests (Files): Likewise.
18280         * modules/roundf-tests (Files): Likewise.
18281         * modules/roundl-tests (Files): Likewise.
18282         * modules/safe-alloc-tests (Files): Likewise.
18283         * modules/setenv-tests (Files): Likewise.
18284         * modules/sigaction-tests (Files): Likewise.
18285         * modules/signbit-tests (Files): Likewise.
18286         * modules/sleep-tests (Files): Likewise.
18287         * modules/snprintf-posix-tests (Files): Likewise.
18288         * modules/snprintf-tests (Files): Likewise.
18289         * modules/sprintf-posix-tests (Files): Likewise.
18290         * modules/stat-tests (Files): Likewise.
18291         * modules/stat-time-tests (Files): Likewise.
18292         * modules/strcasestr-tests (Files): Likewise.
18293         * modules/strchrnul-tests (Files): Likewise.
18294         * modules/strerror-tests (Files): Likewise.
18295         * modules/striconv-tests (Files): Likewise.
18296         * modules/striconveh-tests (Files): Likewise.
18297         * modules/striconveha-tests (Files): Likewise.
18298         * modules/strsignal-tests (Files): Likewise.
18299         * modules/strstr-tests (Files): Likewise.
18300         * modules/strtod-tests (Files): Likewise.
18301         * modules/strverscmp-tests (Files): Likewise.
18302         * modules/symlink-tests (Files): Likewise.
18303         * modules/symlinkat-tests (Files): Likewise.
18304         * modules/trunc-tests (Files): Likewise.
18305         * modules/truncf-tests (Files): Likewise.
18306         * modules/truncl-tests (Files): Likewise.
18307         * modules/uname-tests (Files): Likewise.
18308         * modules/unicase/cased-tests (Files): Likewise.
18309         * modules/unicase/ignorable-tests (Files): Likewise.
18310         * modules/unicase/locale-language-tests (Files): Likewise.
18311         * modules/unicase/tolower-tests (Files): Likewise.
18312         * modules/unicase/totitle-tests (Files): Likewise.
18313         * modules/unicase/toupper-tests (Files): Likewise.
18314         * modules/unicase/u8-casecmp-tests (Files): Likewise.
18315         * modules/unicase/u8-casecoll-tests (Files): Likewise.
18316         * modules/unicase/u8-casefold-tests (Files): Likewise.
18317         * modules/unicase/u8-is-cased-tests (Files): Likewise.
18318         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
18319         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
18320         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
18321         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
18322         * modules/unicase/u8-tolower-tests (Files): Likewise.
18323         * modules/unicase/u8-totitle-tests (Files): Likewise.
18324         * modules/unicase/u8-toupper-tests (Files): Likewise.
18325         * modules/unicase/u16-casecmp-tests (Files): Likewise.
18326         * modules/unicase/u16-casecoll-tests (Files): Likewise.
18327         * modules/unicase/u16-casefold-tests (Files): Likewise.
18328         * modules/unicase/u16-is-cased-tests (Files): Likewise.
18329         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
18330         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
18331         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
18332         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
18333         * modules/unicase/u16-tolower-tests (Files): Likewise.
18334         * modules/unicase/u16-totitle-tests (Files): Likewise.
18335         * modules/unicase/u16-toupper-tests (Files): Likewise.
18336         * modules/unicase/u32-casecmp-tests (Files): Likewise.
18337         * modules/unicase/u32-casecoll-tests (Files): Likewise.
18338         * modules/unicase/u32-casefold-tests (Files): Likewise.
18339         * modules/unicase/u32-is-cased-tests (Files): Likewise.
18340         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
18341         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
18342         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
18343         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
18344         * modules/unicase/u32-tolower-tests (Files): Likewise.
18345         * modules/unicase/u32-totitle-tests (Files): Likewise.
18346         * modules/unicase/u32-toupper-tests (Files): Likewise.
18347         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
18348         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
18349         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
18350         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
18351         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
18352         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
18353         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
18354         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
18355         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
18356         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
18357         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
18358         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
18359         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
18360         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
18361         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
18362         * modules/unictype/bidicategory-name-tests (Files): Likewise.
18363         * modules/unictype/bidicategory-of-tests (Files): Likewise.
18364         * modules/unictype/bidicategory-test-tests (Files): Likewise.
18365         * modules/unictype/block-list-tests (Files): Likewise.
18366         * modules/unictype/block-of-tests (Files): Likewise.
18367         * modules/unictype/block-test-tests (Files): Likewise.
18368         * modules/unictype/category-C-tests (Files): Likewise.
18369         * modules/unictype/category-Cc-tests (Files): Likewise.
18370         * modules/unictype/category-Cf-tests (Files): Likewise.
18371         * modules/unictype/category-Cn-tests (Files): Likewise.
18372         * modules/unictype/category-Co-tests (Files): Likewise.
18373         * modules/unictype/category-Cs-tests (Files): Likewise.
18374         * modules/unictype/category-L-tests (Files): Likewise.
18375         * modules/unictype/category-Ll-tests (Files): Likewise.
18376         * modules/unictype/category-Lm-tests (Files): Likewise.
18377         * modules/unictype/category-Lo-tests (Files): Likewise.
18378         * modules/unictype/category-Lt-tests (Files): Likewise.
18379         * modules/unictype/category-Lu-tests (Files): Likewise.
18380         * modules/unictype/category-M-tests (Files): Likewise.
18381         * modules/unictype/category-Mc-tests (Files): Likewise.
18382         * modules/unictype/category-Me-tests (Files): Likewise.
18383         * modules/unictype/category-Mn-tests (Files): Likewise.
18384         * modules/unictype/category-N-tests (Files): Likewise.
18385         * modules/unictype/category-Nd-tests (Files): Likewise.
18386         * modules/unictype/category-Nl-tests (Files): Likewise.
18387         * modules/unictype/category-No-tests (Files): Likewise.
18388         * modules/unictype/category-P-tests (Files): Likewise.
18389         * modules/unictype/category-Pc-tests (Files): Likewise.
18390         * modules/unictype/category-Pd-tests (Files): Likewise.
18391         * modules/unictype/category-Pe-tests (Files): Likewise.
18392         * modules/unictype/category-Pf-tests (Files): Likewise.
18393         * modules/unictype/category-Pi-tests (Files): Likewise.
18394         * modules/unictype/category-Po-tests (Files): Likewise.
18395         * modules/unictype/category-Ps-tests (Files): Likewise.
18396         * modules/unictype/category-S-tests (Files): Likewise.
18397         * modules/unictype/category-Sc-tests (Files): Likewise.
18398         * modules/unictype/category-Sk-tests (Files): Likewise.
18399         * modules/unictype/category-Sm-tests (Files): Likewise.
18400         * modules/unictype/category-So-tests (Files): Likewise.
18401         * modules/unictype/category-Z-tests (Files): Likewise.
18402         * modules/unictype/category-Zl-tests (Files): Likewise.
18403         * modules/unictype/category-Zp-tests (Files): Likewise.
18404         * modules/unictype/category-Zs-tests (Files): Likewise.
18405         * modules/unictype/category-and-not-tests (Files): Likewise.
18406         * modules/unictype/category-and-tests (Files): Likewise.
18407         * modules/unictype/category-byname-tests (Files): Likewise.
18408         * modules/unictype/category-name-tests (Files): Likewise.
18409         * modules/unictype/category-none-tests (Files): Likewise.
18410         * modules/unictype/category-of-tests (Files): Likewise.
18411         * modules/unictype/category-or-tests (Files): Likewise.
18412         * modules/unictype/category-test-withtable-tests (Files): Likewise.
18413         * modules/unictype/combining-class-tests (Files): Likewise.
18414         * modules/unictype/ctype-alnum-tests (Files): Likewise.
18415         * modules/unictype/ctype-alpha-tests (Files): Likewise.
18416         * modules/unictype/ctype-blank-tests (Files): Likewise.
18417         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
18418         * modules/unictype/ctype-digit-tests (Files): Likewise.
18419         * modules/unictype/ctype-graph-tests (Files): Likewise.
18420         * modules/unictype/ctype-lower-tests (Files): Likewise.
18421         * modules/unictype/ctype-print-tests (Files): Likewise.
18422         * modules/unictype/ctype-punct-tests (Files): Likewise.
18423         * modules/unictype/ctype-space-tests (Files): Likewise.
18424         * modules/unictype/ctype-upper-tests (Files): Likewise.
18425         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
18426         * modules/unictype/decimal-digit-tests (Files): Likewise.
18427         * modules/unictype/digit-tests (Files): Likewise.
18428         * modules/unictype/mirror-tests (Files): Likewise.
18429         * modules/unictype/numeric-tests (Files): Likewise.
18430         * modules/unictype/property-alphabetic-tests (Files): Likewise.
18431         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
18432         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
18433         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
18434         Likewise.
18435         * modules/unictype/property-bidi-block-separator-tests (Files):
18436         Likewise.
18437         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
18438         Likewise.
18439         * modules/unictype/property-bidi-common-separator-tests (Files):
18440         Likewise.
18441         * modules/unictype/property-bidi-control-tests (Files): Likewise.
18442         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
18443         Likewise.
18444         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
18445         Likewise.
18446         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
18447         Likewise.
18448         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
18449         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
18450         Likewise.
18451         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
18452         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
18453         Likewise.
18454         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
18455         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
18456         * modules/unictype/property-bidi-segment-separator-tests (Files):
18457         Likewise.
18458         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
18459         * modules/unictype/property-byname-tests (Files): Likewise.
18460         * modules/unictype/property-combining-tests (Files): Likewise.
18461         * modules/unictype/property-composite-tests (Files): Likewise.
18462         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
18463         * modules/unictype/property-dash-tests (Files): Likewise.
18464         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
18465         * modules/unictype/property-default-ignorable-code-point-tests (Files):
18466         Likewise.
18467         * modules/unictype/property-deprecated-tests (Files): Likewise.
18468         * modules/unictype/property-diacritic-tests (Files): Likewise.
18469         * modules/unictype/property-extender-tests (Files): Likewise.
18470         * modules/unictype/property-format-control-tests (Files): Likewise.
18471         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
18472         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
18473         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
18474         * modules/unictype/property-hex-digit-tests (Files): Likewise.
18475         * modules/unictype/property-hyphen-tests (Files): Likewise.
18476         * modules/unictype/property-id-continue-tests (Files): Likewise.
18477         * modules/unictype/property-id-start-tests (Files): Likewise.
18478         * modules/unictype/property-ideographic-tests (Files): Likewise.
18479         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
18480         * modules/unictype/property-ids-trinary-operator-tests (Files):
18481         Likewise.
18482         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
18483         * modules/unictype/property-iso-control-tests (Files): Likewise.
18484         * modules/unictype/property-join-control-tests (Files): Likewise.
18485         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
18486         * modules/unictype/property-line-separator-tests (Files): Likewise.
18487         * modules/unictype/property-logical-order-exception-tests (Files):
18488         Likewise.
18489         * modules/unictype/property-lowercase-tests (Files): Likewise.
18490         * modules/unictype/property-math-tests (Files): Likewise.
18491         * modules/unictype/property-non-break-tests (Files): Likewise.
18492         * modules/unictype/property-not-a-character-tests (Files): Likewise.
18493         * modules/unictype/property-numeric-tests (Files): Likewise.
18494         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
18495         * modules/unictype/property-other-default-ignorable-code-point-tests
18496         (Files): Likewise.
18497         * modules/unictype/property-other-grapheme-extend-tests (Files):
18498         Likewise.
18499         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
18500         * modules/unictype/property-other-id-start-tests (Files): Likewise.
18501         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
18502         * modules/unictype/property-other-math-tests (Files): Likewise.
18503         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
18504         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
18505         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
18506         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
18507         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
18508         * modules/unictype/property-private-use-tests (Files): Likewise.
18509         * modules/unictype/property-punctuation-tests (Files): Likewise.
18510         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
18511         * modules/unictype/property-radical-tests (Files): Likewise.
18512         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
18513         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
18514         * modules/unictype/property-space-tests (Files): Likewise.
18515         * modules/unictype/property-terminal-punctuation-tests (Files):
18516         Likewise.
18517         * modules/unictype/property-test-tests (Files): Likewise.
18518         * modules/unictype/property-titlecase-tests (Files): Likewise.
18519         * modules/unictype/property-unassigned-code-value-tests (Files):
18520         Likewise.
18521         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
18522         * modules/unictype/property-uppercase-tests (Files): Likewise.
18523         * modules/unictype/property-variation-selector-tests (Files): Likewise.
18524         * modules/unictype/property-white-space-tests (Files): Likewise.
18525         * modules/unictype/property-xid-continue-tests (Files): Likewise.
18526         * modules/unictype/property-xid-start-tests (Files): Likewise.
18527         * modules/unictype/property-zero-width-tests (Files): Likewise.
18528         * modules/unictype/scripts-tests (Files): Likewise.
18529         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
18530         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
18531         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
18532         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
18533         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
18534         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
18535         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
18536         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
18537         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
18538         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
18539         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
18540         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
18541         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
18542         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
18543         * modules/uninorm/composition-tests (Files): Likewise.
18544         * modules/uninorm/decomposing-form-tests (Files): Likewise.
18545         * modules/uninorm/decomposition-tests (Files): Likewise.
18546         * modules/uninorm/filter-tests (Files): Likewise.
18547         * modules/uninorm/nfc-tests (Files): Likewise.
18548         * modules/uninorm/nfd-tests (Files): Likewise.
18549         * modules/uninorm/nfkc-tests (Files): Likewise.
18550         * modules/uninorm/nfkd-tests (Files): Likewise.
18551         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
18552         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
18553         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
18554         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
18555         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
18556         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
18557         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
18558         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18559         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
18560         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
18561         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
18562         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
18563         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18564         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
18565         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
18566         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
18567         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
18568         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18569         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
18570         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
18571         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
18572         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
18573         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18574         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
18575         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
18576         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
18577         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
18578         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
18579         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
18580         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
18581         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
18582         * modules/uniwidth/u8-width-tests (Files): Likewise.
18583         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
18584         * modules/uniwidth/u16-width-tests (Files): Likewise.
18585         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
18586         * modules/uniwidth/u32-width-tests (Files): Likewise.
18587         * modules/uniwidth/width-tests (Files): Likewise.
18588         * modules/unlink-tests (Files): Likewise.
18589         * modules/unsetenv-tests (Files): Likewise.
18590         * modules/usleep-tests (Files): Likewise.
18591         * modules/utimens-tests (Files): Likewise.
18592         * modules/utimensat-tests (Files): Likewise.
18593         * modules/vasnprintf-posix-tests (Files): Likewise.
18594         * modules/vasnprintf-tests (Files): Likewise.
18595         * modules/vasprintf-posix-tests (Files): Likewise.
18596         * modules/vasprintf-tests (Files): Likewise.
18597         * modules/vdprintf-posix-tests (Files): Likewise.
18598         * modules/vfprintf-posix-tests (Files): Likewise.
18599         * modules/vprintf-posix-tests (Files): Likewise.
18600         * modules/vsnprintf-posix-tests (Files): Likewise.
18601         * modules/vsnprintf-tests (Files): Likewise.
18602         * modules/vsprintf-posix-tests (Files): Likewise.
18603         * modules/wcrtomb-tests (Files): Likewise.
18604         * modules/wcsnrtombs-tests (Files): Likewise.
18605         * modules/wcsrtombs-tests (Files): Likewise.
18606         * modules/wctype-tests (Files): Likewise.
18607         * modules/wcwidth-tests (Files): Likewise.
18608         * modules/xmemdup0-tests (Files): Likewise.
18609         * modules/xprintf-posix-tests (Files): Likewise.
18610         * modules/xvasprintf-tests (Files): Likewise.
18611
18612 2009-12-24  Eric Blake  <ebb9@byu.net>
18613
18614         test-nanosleep: fix typo
18615         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
18616         patch.
18617         Reported by Bruno Haible.
18618
18619 2009-12-24  Bruno Haible  <bruno@clisp.org>
18620
18621         Reduce namespace pollution on glibc systems.
18622         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
18623         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
18624         systems.
18625         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
18626         <getopt.h> on glibc systems.
18627         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18628         systems.
18629         * lib/fcntl.c: Include <unistd.h> here instead.
18630
18631 2009-12-24  Bruno Haible  <bruno@clisp.org>
18632
18633         * lib/stdlib.in.h (includes): Fix typo in today's commit.
18634
18635 2009-12-24  Eric Blake  <ebb9@byu.net>
18636
18637         tests: add signature checks
18638         * tests/signature.h (SIGNATURE_CHECK): New file.
18639         * modules/atexit-tests (Files): Use it.
18640         * modules/btowc-tests (Files): Likewise.
18641         * modules/canonicalize-lgpl-tests (Files): Likewise.
18642         * modules/ceilf-tests (Files): Likewise.
18643         * modules/ceill-tests (Files): Likewise.
18644         * modules/chown-tests (Files): Likewise.
18645         * modules/dprintf-posix-tests (Files): Likewise.
18646         * modules/dup2-tests (Files): Likewise.
18647         * modules/dup3-tests (Files): Likewise.
18648         * modules/duplocale-tests (Files): Likewise.
18649         * modules/fchdir-tests (Files): Likewise.
18650         * modules/fcntl-tests (Files): Likewise.
18651         * modules/fdopendir-tests (Files): Likewise.
18652         * modules/fflush-tests (Files): Likewise.
18653         * modules/flock-tests (Files): Likewise.
18654         * modules/floorf-tests (Files): Likewise.
18655         * modules/floorl-tests (Files): Likewise.
18656         * modules/fnmatch-tests (Files): Likewise.
18657         * modules/fopen-tests (Files): Likewise.
18658         * modules/fprintf-posix-tests (Files): Likewise.
18659         * modules/freopen-tests (Files): Likewise.
18660         * modules/frexp-nolibm-tests (Files): Likewise.
18661         * modules/frexp-tests (Files): Likewise.
18662         * modules/frexpl-nolibm-tests (Files): Likewise.
18663         * modules/frexpl-tests (Files): Likewise.
18664         * modules/fseek-tests (Files): Likewise.
18665         * modules/fseeko-tests (Files): Likewise.
18666         * modules/fsync-tests (Files): Likewise.
18667         * modules/ftell-tests (Files): Likewise.
18668         * modules/ftello-tests (Files): Likewise.
18669         * modules/futimens-tests (Files): Likewise.
18670         * modules/getaddrinfo-tests (Files): Likewise.
18671         * modules/getcwd-tests (Files): Likewise.
18672         * modules/getdelim-tests (Files): Likewise.
18673         * modules/getdtablesize-tests (Files): Likewise.
18674         * modules/getgroups-tests (Files): Likewise.
18675         * modules/gethostname-tests (Files): Likewise.
18676         * modules/getline-tests (Files): Likewise.
18677         * modules/getopt-posix-tests (Files): Likewise.
18678         * modules/gettimeofday-tests (Files): Likewise.
18679         * modules/glob-tests (Files): Likewise.
18680         * modules/iconv-tests (Files): Likewise.
18681         * modules/inet_ntop-tests (Files): Likewise.
18682         * modules/inet_pton-tests (Files): Likewise.
18683         * modules/isblank-tests (Files): Likewise.
18684         * modules/lchown-tests (Files): Likewise.
18685         * modules/ldexpl-tests (Files): Likewise.
18686         * modules/link-tests (Files): Likewise.
18687         * modules/linkat-tests (Files): Likewise.
18688         * modules/lseek-tests (Files): Likewise.
18689         * modules/lstat-tests (Files): Likewise.
18690         * modules/mbrtowc-tests (Files): Likewise.
18691         * modules/mbsinit-tests (Files): Likewise.
18692         * modules/mbsnrtowcs-tests (Files): Likewise.
18693         * modules/mbsrtowcs-tests (Files): Likewise.
18694         * modules/memchr-tests (Files): Likewise.
18695         * modules/memcmp-tests (Files): Likewise.
18696         * modules/memmem-tests (Files): Likewise.
18697         * modules/memrchr-tests (Files): Likewise.
18698         * modules/mkdir-tests (Files): Likewise.
18699         * modules/mkfifo-tests (Files): Likewise.
18700         * modules/mkfifoat-tests (Files): Likewise.
18701         * modules/mknod-tests (Files): Likewise.
18702         * modules/nanosleep-tests (Files): Likewise.
18703         * modules/nl_langinfo-tests (Files): Likewise.
18704         * modules/obstack-printf-tests (Files): Likewise.
18705         * modules/open-tests (Files): Likewise.
18706         * modules/openat-tests (Files): Likewise.
18707         * modules/perror-tests (Files): Likewise.
18708         * modules/pipe2-tests (Files): Likewise.
18709         * modules/poll-tests (Files): Likewise.
18710         * modules/popen-tests (Files): Likewise.
18711         * modules/posix_spawn-tests (Files): Likewise.
18712         * modules/posix_spawnp-tests (Files): Likewise.
18713         * modules/pread-tests (Files): Likewise.
18714         * modules/printf-posix-tests (Files): Likewise.
18715         * modules/pty-tests (Files): Likewise.
18716         * modules/random_r-tests (Files): Likewise.
18717         * modules/rawmemchr-tests (Files): Likewise.
18718         * modules/readlink-tests (Files): Likewise.
18719         * modules/remove-tests (Files): Likewise.
18720         * modules/rename-tests (Files): Likewise.
18721         * modules/renameat-tests (Files): Likewise.
18722         * modules/rmdir-tests (Files): Likewise.
18723         * modules/round-tests (Files): Likewise.
18724         * modules/roundf-tests (Files): Likewise.
18725         * modules/roundl-tests (Files): Likewise.
18726         * modules/select-tests (Files): Likewise.
18727         * modules/setenv-tests (Files): Likewise.
18728         * modules/sigaction-tests (Files): Likewise.
18729         * modules/sleep-tests (Files): Likewise.
18730         * modules/snprintf-posix-tests (Files): Likewise.
18731         * modules/snprintf-tests (Files): Likewise.
18732         * modules/sprintf-posix-tests (Files): Likewise.
18733         * modules/stat-tests (Files): Likewise.
18734         * modules/strcasestr-tests (Files): Likewise.
18735         * modules/strchrnul-tests (Files): Likewise.
18736         * modules/strerror-tests (Files): Likewise.
18737         * modules/strsignal-tests (Files): Likewise.
18738         * modules/strstr-tests (Files): Likewise.
18739         * modules/strtod-tests (Files): Likewise.
18740         * modules/strverscmp-tests (Files): Likewise.
18741         * modules/symlink-tests (Files): Likewise.
18742         * modules/symlinkat-tests (Files): Likewise.
18743         * modules/times-tests (Files): Likewise.
18744         * modules/trunc-tests (Files): Likewise.
18745         * modules/truncf-tests (Files): Likewise.
18746         * modules/truncl-tests (Files): Likewise.
18747         * modules/tsearch-tests (Files): Likewise.
18748         * modules/uname-tests (Files): Likewise.
18749         * modules/unlink-tests (Files): Likewise.
18750         * modules/unsetenv-tests (Files): Likewise.
18751         * modules/usleep-tests (Files): Likewise.
18752         * modules/utimensat-tests (Files): Likewise.
18753         * modules/vasprintf-tests (Files): Likewise.
18754         * modules/vdprintf-posix-tests (Files): Likewise.
18755         * modules/vfprintf-posix-tests (Files): Likewise.
18756         * modules/vprintf-posix-tests (Files): Likewise.
18757         * modules/vsnprintf-posix-tests (Files): Likewise.
18758         * modules/vsnprintf-tests (Files): Likewise.
18759         * modules/vsprintf-posix-tests (Files): Likewise.
18760         * modules/wcrtomb-tests (Files): Likewise.
18761         * modules/wcsnrtombs-tests (Files): Likewise.
18762         * modules/wcsrtombs-tests (Files): Likewise.
18763         * modules/wcwidth-tests (Files): Likewise.
18764         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
18765         * tests/test-isinf.c (isinf): Likewise.
18766         * tests/test-isnan.c (isnan): Likewise.
18767         * tests/test-signbit.c (signbit): Likewise.
18768         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
18769         declaration, either as macro or with correct signature.
18770         (select): Ensure function under test is declared with correct
18771         signature in correct header.
18772         * tests/test-atexit.c (atexit): Likewise.
18773         * tests/test-btowc.c (btowc): Likewise.
18774         * tests/test-canonicalize-lgpl.c (realpath)
18775         (canonicalize_file_name): Likewise.
18776         * tests/test-ceilf1.c (ceilf): Likewise.
18777         * tests/test-ceill.c (ceill): Likewise.
18778         * tests/test-chown.c (chown): Likewise.
18779         * tests/test-dprintf-posix.c (dprintf): Likewise.
18780         * tests/test-dup2.c (dup2): Likewise.
18781         * tests/test-dup3.c (dup3): Likewise.
18782         * tests/test-duplocale.c (duplocale): Likewise.
18783         * tests/test-fchdir.c (fchdir): Likewise.
18784         * tests/test-fchownat.c (fchownat): Likewise.
18785         * tests/test-fcntl.c (fcntl): Likewise.
18786         * tests/test-fdopendir.c (fdopendir): Likewise.
18787         * tests/test-fflush.c (fflush): Likewise.
18788         * tests/test-flock.c (flock): Likewise.
18789         * tests/test-floorf1.c (floorf): Likewise.
18790         * tests/test-floorl.c (floorl): Likewise.
18791         * tests/test-fnmatch.c (fnmatch): Likewise.
18792         * tests/test-fopen.c (fopen): Likewise.
18793         * tests/test-fprintf-posix.c (fprintf): Likewise.
18794         * tests/test-freopen.c (freopen): Likewise.
18795         * tests/test-frexp.c (frexp): Likewise.
18796         * tests/test-frexpl.c (frexpl): Likewise.
18797         * tests/test-fseek.c (fseek): Likewise.
18798         * tests/test-fseeko.c (fseeko): Likewise.
18799         * tests/test-fstatat.c (fstatat): Likewise.
18800         * tests/test-fsync.c (fsync): Likewise.
18801         * tests/test-ftell.c (ftell): Likewise.
18802         * tests/test-ftello.c (ftello): Likewise.
18803         * tests/test-futimens.c (futimens): Likewise.
18804         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
18805         (gai_strerror): Likewise.
18806         * tests/test-getcwd.c (getcwd): Likewise.
18807         * tests/test-getdelim.c (getdelim): Likewise.
18808         * tests/test-getdtablesize.c (getdtablesize): Likewise.
18809         * tests/test-getgroups.c (getgroups): Likewise.
18810         * tests/test-gethostname.c (gethostname): Likewise.
18811         * tests/test-getline.c (getline): Likewise.
18812         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
18813         Likewise.
18814         * tests/test-gettimeofday.c (gettimeofday): Likewise.
18815         * tests/test-glob.c (glob, globfree): Likewise.
18816         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
18817         * tests/test-inet_ntop.c (inet_ntop): Likewise.
18818         * tests/test-inet_pton.c (inet_pton): Likewise.
18819         * tests/test-isblank.c (isblank): Likewise.
18820         * tests/test-lchown.c (lchown): Likewise.
18821         * tests/test-ldexpl.c (ldexpl): Likewise.
18822         * tests/test-link.c (link): Likewise.
18823         * tests/test-linkat.c (linkat): Likewise.
18824         * tests/test-lseek.c (lseek): Likewise.
18825         * tests/test-lstat.c (lstat): Likewise.
18826         * tests/test-mbrtowc.c (mbrtowc): Likewise.
18827         * tests/test-mbsinit.c (mbsinit): Likewise.
18828         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
18829         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
18830         * tests/test-memchr.c (memchr): Likewise.
18831         * tests/test-memcmp.c (memcmp): Likewise.
18832         * tests/test-memmem.c (memmem): Likewise.
18833         * tests/test-memrchr.c (memrchr): Likewise.
18834         * tests/test-mkdir.c (mkdir): Likewise.
18835         * tests/test-mkdirat.c (mkdirat): Likewise.
18836         * tests/test-mkfifo.c (mkfifo): Likewise.
18837         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
18838         * tests/test-mknod.c (mknod): Likewise.
18839         * tests/test-nanosleep.c (nanosleep): Likewise.
18840         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
18841         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
18842         Likewise.
18843         * tests/test-open.c (open): Likewise.
18844         * tests/test-openat.c (openat): Likewise.
18845         * tests/test-perror.c (perror): Likewise.
18846         * tests/test-pipe2.c (pipe2): Likewise.
18847         * tests/test-poll.c (poll): Likewise.
18848         * tests/test-popen.c (popen, pclose): Likewise.
18849         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
18850         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
18851         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
18852         (posix_spawn_file_actions_destroy)
18853         (posix_spawn_file_actions_addclose)
18854         (posix_spawn_file_actions_addopen)
18855         (posix_spawn_file_actions_adddup2): Likewise.
18856         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
18857         * tests/test-pread.c (pread): Likewise.
18858         * tests/test-printf-posix.c (printf): Likewise.
18859         * tests/test-pty.c (openpty, forkpty): Likewise.
18860         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
18861         (random_r): Likewise.
18862         * tests/test-rawmemchr.c (rawmemchr): Likewise.
18863         * tests/test-readlink.c (readlink): Likewise.
18864         * tests/test-remove.c (remove): Likewise.
18865         * tests/test-rename.c (rename): Likewise.
18866         * tests/test-renameat.c (renameat): Likewise.
18867         * tests/test-rmdir.c (rmdir): Likewise.
18868         * tests/test-round1.c (round): Likewise.
18869         * tests/test-roundf1.c (roundf): Likewise.
18870         * tests/test-roundl.c (roundl): Likewise.
18871         * tests/test-setenv.c (setenv): Likewise.
18872         * tests/test-sigaction.c (sigaction): Likewise.
18873         * tests/test-sleep.c (sleep): Likewise.
18874         * tests/test-snprintf.c (snprintf): Likewise.
18875         * tests/test-sprintf-posix.c (sprintf): Likewise.
18876         * tests/test-stat.c (stat): Likewise.
18877         * tests/test-stpncpy.c (stpncpy): Likewise.
18878         * tests/test-strcasestr.c (strcasestr): Likewise.
18879         * tests/test-strchrnul.c (strchrnul): Likewise.
18880         * tests/test-strerror.c (strerror): Likewise.
18881         * tests/test-strsignal.c (strsignal): Likewise.
18882         * tests/test-strstr.c (strstr): Likewise.
18883         * tests/test-strtod.c (strtod): Likewise.
18884         * tests/test-strverscmp.c (strverscmp): Likewise.
18885         * tests/test-symlink.c (symlink): Likewise.
18886         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
18887         * tests/test-times.c (times): Likewise.
18888         * tests/test-trunc1.c (trunc): Likewise.
18889         * tests/test-truncf1.c (truncf): Likewise.
18890         * tests/test-truncl.c (truncl): Likewise.
18891         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
18892         Likewise.
18893         * tests/test-uname.c (uname): Likewise.
18894         * tests/test-unlink.c (unlink): Likewise.
18895         * tests/test-unlinkat.c (unlinkat): Likewise.
18896         * tests/test-unsetenv.c (unsetenv): Likewise.
18897         * tests/test-usleep.c (usleep): Likewise.
18898         * tests/test-utimensat.c (utimensat): Likewise.
18899         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
18900         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
18901         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
18902         * tests/test-vprintf-posix.c (vprintf): Likewise.
18903         * tests/test-vsnprintf.c (vsnprintf): Likewise.
18904         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
18905         * tests/test-wcrtomb.c (wcrtomb): Likewise.
18906         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
18907         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
18908         * tests/test-wcwidth.c (wcwidth): Likewise.
18909
18910         build: pull in conditional headers during GNULIB_POSIXCHECK
18911         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
18912         definitions from any conditionally-included headers.
18913         * lib/stdlib.in.h (includes): Likewise.
18914         * lib/unistd.in.h (includes): Likewise.
18915
18916 2009-12-24  Bruno Haible  <bruno@clisp.org>
18917
18918         * tests/test-argv-iter.c: Include header file being tested immediately
18919         after config.h.
18920         * tests/test-base64.c: Likewise.
18921         * tests/test-flock.c: Likewise.
18922         * tests/test-fsync.c: Likewise.
18923         * tests/test-getdate.c: Likewise.
18924         * tests/test-getndelim2.c: Likewise.
18925         * tests/test-isfinite.c: Likewise.
18926         * tests/test-isinf.c: Likewise.
18927         * tests/test-strerror.c: Likewise.
18928         * tests/test-strsignal.c: Likewise.
18929
18930 2009-12-23  Eric Blake  <ebb9@byu.net>
18931
18932         unistd: work around cygwin bug
18933         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
18934         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
18935         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18936
18937 2009-12-23  Bruno Haible  <bruno@clisp.org>
18938
18939         localename: More tests.
18940         * tests/test-localename.c (SIZEOF): New macro.
18941         (categories): New variable.
18942         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
18943         test_locale_name_default): Add test w.r.t. thread locale.
18944         (test_locale_name_thread): New function.
18945         (main): Invoke it.
18946
18947         localename: Make aware of thread locale.
18948         * lib/localename.h (gl_locale_name_thread): New declaration.
18949         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
18950         behaviour with respect to thread locale.
18951         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
18952         <langinfo.h>, glthread/lock.h.
18953         (SIZE_BITS): New macro.
18954         (string_hash): New function.
18955         (struct hash_node): New type.
18956         (HASH_TABLE_SIZE): New macro.
18957         (struniq_hash_table, struniq_lock): New variables.
18958         (struniq): New function.
18959         (gl_locale_name_thread): New function.
18960         (gl_locale_name): Invoke it.
18961         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
18962         * modules/localename (Depends-on): Add lock.
18963         Reported by Mike Gran <spk121@yahoo.com>.
18964
18965 2009-12-23  Eric Blake  <ebb9@byu.net>
18966
18967         va-args: new module
18968         * modules/va-args: New file.
18969         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
18970         * MODULES.html.sh (Core language properties): Mention it.
18971
18972         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
18973         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18974         named alias for __attribute__((__unused__)).
18975         * lib/chown.c: Update client.
18976         * lib/fchmodat.c: Likewise.
18977         * lib/fts.c: Likewise.
18978         * lib/getdate.y: Likewise.
18979         * lib/getgroups.c: Likewise.
18980         * lib/getopt.c: Likewise.
18981         * lib/getugroups.c: Likewise.
18982         * lib/mkdir.c: Likewise.
18983         * lib/mkfifo.c: Likewise.
18984         * lib/mkfifoat.c: Likewise.
18985         * lib/mknod.c: Likewise.
18986         * lib/mknodat.c: Likewise.
18987         * lib/readlink.c: Likewise.
18988         * lib/se-context.in.h: Likewise.
18989         * lib/se-selinux.in.h: Likewise.
18990         * lib/sockets.c: Likewise.
18991         * lib/symlink.c: Likewise.
18992         * lib/symlinkat.c: Likewise.
18993         * lib/unicodeio.c: Likewise.
18994         * lib/unistr.h: Likewise.
18995         * tests/test-areadlink.c: Likewise.
18996         * tests/test-areadlinkat.c: Likewise.
18997         * tests/test-filenamecat.c: Likewise.
18998         * tests/test-fseeko.c: Likewise.
18999         * tests/test-ftello.c: Likewise.
19000         * tests/test-getdate.c: Likewise.
19001         * tests/test-getgroups.c: Likewise.
19002         * tests/test-gethostname.c: Likewise.
19003         * tests/test-quotearg.c: Likewise.
19004         * tests/test-version-etc.c: Likewise.
19005         * tests/test-xalloc-die.c: Likewise.
19006         * tests/test-xfprintf-posix.c: Likewise.
19007         * tests/test-xprintf-posix.c: Likewise.
19008         * tests/test-xvasprintf.c: Likewise.
19009
19010         tests: avoid compiler warnings
19011         * tests/test-fcntl.c (main): Delete unused parameters.
19012         * tests/test-freopen-safer.c (main): Likewise.
19013         * tests/test-xalloc-die.c (main): Mark unused parameters.
19014         * tests/test-fseeko.c (main): Likewise.
19015         * tests/test-ftello.c (main): Likewise.
19016         * tests/test-nanosleep.c (main): Avoid declaration warning.
19017         * tests/test-sleep.c (main): Likewise.
19018         * tests/test-unsetenv.c (main): Silence warning about string
19019         literal.
19020         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19021
19022 2009-12-23  Bruno Haible  <bruno@clisp.org>
19023
19024         * tests/test-localename.c (test_locale_name): New function, extracted
19025         from main. Also test mixed situations.
19026         (test_locale_name_posix, test_locale_name_environ,
19027         test_locale_name_default): New functions.
19028         (main): Invoke them all.
19029         * modules/localename-tests (configure.ac): Test for newlocale.
19030
19031 2009-12-23  Bruno Haible  <bruno@clisp.org>
19032
19033         unistd: Ensure getcwd gets declared before being overridden.
19034         * lib/unistd.in.h: Conditionally include <io.h>.
19035
19036 2009-12-22  Bruno Haible  <bruno@clisp.org>
19037
19038         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19039         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19040         (gl_WCHAR_H): Invoke it.
19041         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19042         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19043         Reported by Karl Berry <karl@freefriends.org>.
19044
19045 2009-12-22  Eric Blake  <ebb9@byu.net>
19046
19047         math, unistd: avoid redundant includes
19048         * lib/math.in.h (isnan): No need to re-include <math.h>.
19049         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19050
19051         getsubopt: work around cygwin bug
19052         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19053         avoid conflicting with system getsubopt.
19054         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19055         bug.
19056
19057         getopt: synchronize from glibc
19058         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19059         parameter order.  Adjust all callers.
19060         (_getopt_internal_r, main): Adjust quoting in error messages.
19061         Drop considerations for outdated POSIX 1003.2 error message.
19062         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19063         callers.
19064         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19065
19066         test-getopt: test stderr behavior
19067         * modules/getopt-posix-tests (Depends-on): Add dup2.
19068         * tests/test-getopt.c (ASSERT): Avoid stderr.
19069         (main): Move stderr to a temporary file.
19070         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19071         Instead, add parameter to inform caller if output occurred.
19072         (test_getopt): Adjust all existing tests to expect silence, and
19073         add new tests of leading ":".
19074         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19075         glibc shortcomings with leading "-:" or "+:" in optstring.
19076         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19077         Likewise.
19078         * doc/posix-functions/getopt.texi (getopt): Likewise.
19079
19080         test-getopt: enhance test
19081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19082         supports optind=0.
19083         * tests/test-getopt.c (OPTIND_MIN): Move...
19084         * tests/test-getopt.h (OPTIND_MIN): ...here.
19085         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19086         Require that optind=0 works, since modern BSD supports it in
19087         addition to optreset, and since coreutils expects it.
19088         (test_getopt_long_only): New test.
19089         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19090         glibc shortcomings with 'W;', and enforcement of optind=0.
19091         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19092         Likewise.
19093
19094 2009-12-21  Bruno Haible  <bruno@clisp.org>
19095
19096         localename: Improvements for MacOS X and Cygwin.
19097         * lib/localename.h (gl_locale_name_environ): New declaration.
19098         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19099         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19100         (gl_locale_name_posix): Invoke it.
19101         (gl_locale_name_default): Add comments. Use Windows native API also on
19102         Cygwin.
19103
19104 2009-12-21  Bruno Haible  <bruno@clisp.org>
19105
19106         Update list of Win32 locale ids.
19107         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19108         (LANG_SAMI): Renamed from LANG_SAAMI.
19109         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19110         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19111         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19112         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19113         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19114         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19115         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19116         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19117         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19118         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19119         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19120         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19121         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19122         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19123         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19124         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19125         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19126         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19127         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19128         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19129         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19130         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19131         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19132         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19133         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19134         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19135         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19136         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19137         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19138         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19139         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19140         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19141         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19142         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19143         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19144         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19145         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19146         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19147         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19148         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19149         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19150         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19151         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19152         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19153         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19154         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19155         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19156         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19157         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19158         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19159         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19160         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19161         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19162         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19163         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19164         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19165         Add more languages and countries for Sami, Sorbian. Add more countries
19166         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19167         for Pashto. Change country for Syriac, Tswana.
19168
19169 2009-12-21  Eric Blake  <ebb9@byu.net>
19170
19171         test-utimens: avoid spurious failure
19172         * tests/test-chown.h (nap): Factor...
19173         * tests/nap.h: ...into new file.
19174         * tests/test-lchown.h (nap): Avoid duplication.
19175         * tests/test-utimens-common.h (nap): Use shared implementation,
19176         necessary on file systems with 1-second resolution.
19177         * modules/chown-tests (Files): Include new file.
19178         * modules/fdutimensat-tests (Files): Likewise.
19179         * modules/futimens-tests (Files): Likewise.
19180         * modules/lchown-tests (Files): Likewise.
19181         * modules/openat-tests (Files): Likewise.
19182         * modules/utimens-tests (Files): Likewise.
19183         * modules/utimensat-tests (Files): Likewise.
19184
19185 2009-12-19  Eric Blake  <ebb9@byu.net>
19186
19187         futimens, utimensat: work around Linux bug
19188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19189         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19190         * lib/utimensat.c (rpl_utimensat): Work around it.
19191         * lib/futimens.c (rpl_futimens): Adjust comment.
19192
19193         utimens: work around Linux ctime bug
19194         * lib/utimens.c (detect_ctime_bug): New helper function.
19195         (update_timespec): Differentiate between workaround needed for
19196         this bug vs. what is needed for systems that lack utimensat.
19197         (fdutimens, lutimens): Work around bug.
19198
19199         utimens: check for ctime update
19200         * tests/test-utimens-common.h (check_ctime): Define.
19201         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19202         * tests/test-futimens.h (test_futimens): Likewise.
19203         * tests/test-lutimens.h (test_lutimens): Likewise.
19204         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19206
19207 2009-12-19  Bruno Haible  <bruno@clisp.org>
19208
19209         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19210         * tests/test-dprintf-posix2.sh: New file.
19211         * tests/test-dprintf-posix2.c: New file.
19212         * modules/dprintf-posix-tests (Files): Add them.
19213         (configure.ac): Check for getrlimit and setrlimit.
19214         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19215
19216 2009-12-19  Bruno Haible  <bruno@clisp.org>
19217
19218         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19219         * tests/test-fprintf-posix3.sh: New file.
19220         * tests/test-fprintf-posix3.c: New file.
19221         * modules/fprintf-posix-tests (Files): Add them.
19222         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19223
19224 2009-12-19  Eric Blake  <ebb9@byu.net>
19225
19226         dirfd: fix prototype
19227         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19228         * lib/dirfd.c (dirfd): Likewise.
19229
19230         canonicalize: reduce memory usage
19231         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19232         allocation to size.
19233         Reported by Solar Designer <solar@openwall.com>.
19234
19235 2009-12-19  Bruno Haible  <bruno@clisp.org>
19236
19237         New module attribute 'Applicability'.
19238         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19239         * gnulib-tool: New option --extract-applicability.
19240         (func_usage): Document it.
19241         (sed_extract_prog): Recognize it.
19242         (func_get_applicability): New function.
19243         (func_import): Generalize handling of 'link-warning' module.
19244         * modules/link-warning (Applicability): New section.
19245         * modules/arg-nonnull (Applicability): New section.
19246         Repoted by Simon Josefsson <simon@josefsson.org>.
19247
19248 2009-12-19  Bruno Haible  <bruno@clisp.org>
19249
19250         fflush: tweak
19251         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
19252         * lib/fseeko.c (rpl_fseeko): Likewise.
19253
19254 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
19255
19256         * lib/gl_list.h: Fix typo in comment.
19257
19258 2009-12-16  Eric Blake  <ebb9@byu.net>
19259
19260         fcntl: use to simplify other modules
19261         * modules/cloexec (Depends-on): Add fcntl.
19262         * modules/fchdir (Depends-on): Likewise.
19263         * modules/fd-safer-flag (Depends-on): Likewise.
19264         * modules/unistd-safer (Depends-on): Likewise.
19265         * modules/dup3 (configure.ac): Set module indicator.
19266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
19267         missing.
19268         * lib/fchdir.c (_gl_register_dup): Fix comment.
19269         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
19270         * lib/dup-safer.c (dup_safer): Likewise.
19271         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
19272         * lib/dup3.c (dup3): Likewise.
19273         * tests/test-fchdir.c (main): Enhance test.
19274         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
19275
19276         fcntl: port portions of fcntl to mingw
19277         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
19278         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
19279         replacement for mingw.
19280         * modules/fcntl (Description): Update.
19281         (Depends-on): Add dup2.
19282         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
19283         * modules/fcntl-h (Makefile.am): Substitute it.
19284         * lib/fcntl.in.h (fcntl): Update declaration.
19285         (F_DUPFD, F_GETFD): New macros, when needed.
19286         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19287         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
19288         * tests/test-fcntl.c (check_flags, main): Enhance test for items
19289         we now guarantee.
19290
19291         fcntl: work around cygwin bug in F_DUPFD
19292         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
19293         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
19294         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
19295         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
19296         * doc/posix-functions/fcntl.texi (fcntl): Document it.
19297
19298         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
19299         * modules/fcntl (Files): List new files.
19300         (configure.ac): Run a test.
19301         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
19302         * lib/fcntl.c (rpl_fcntl): Likewise.
19303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
19304         (gl_FCNTL_H): Always replace fcntl.h.
19305         * modules/fcntl-h (Makefile.am): Substitute witnesses.
19306         * lib/fcntl.in.h (fcntl): Declare replacement.
19307         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
19308         needed, plus a witness.
19309         * doc/posix-functions/fcntl.texi (fcntl): Document this.
19310         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19311         * tests/test-fcntl.c: New file.
19312         * modules/fcntl-tests: Likewise.
19313
19314         binary-io: avoid potential compilation warning
19315         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
19316         directives.
19317
19318         fflush: avoid compilation error on NetBSD
19319         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
19320         between off_t and fpos_t, since the latter is sometimes a struct.
19321         * lib/fseeko.c (rpl_fseeko): Likewise.
19322         Reported by Alexander Nasonov <alnsn@yandex.ru>.
19323
19324 2009-12-15  Eric Blake  <ebb9@byu.net>
19325
19326         fcntl-h, stdio, sys_ioctl: fix declarations
19327         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
19328         function must not take arguments.
19329         * lib/sys_ioctl.in.h (ioctl): Likewise.
19330         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
19331         (open): Add a link warning.
19332
19333 2009-12-15  Jim Meyering  <meyering@redhat.com>
19334
19335         areadlink, areadlink-with-size: relax license to LGPLv2+
19336         * modules/areadlink (License): Relax to LGPLv2+.
19337         * modules/areadlink-with-size (License): Likewise.
19338
19339 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
19340             Bruno Haible  <bruno@clisp.org>
19341
19342         *printf: Fix memory leak.
19343         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
19344         * lib/vfprintf.c (vfprintf): Likewise.
19345         * lib/dprintf.c (dprintf): Likewise.
19346         * lib/vdprintf.c (vdprintf): Likewise.
19347
19348 2009-12-14  Eric Blake  <ebb9@byu.net>
19349
19350         accept4: adjust module dependencies
19351         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
19352
19353         utimens: one more try at avoiding compiler warning
19354         * lib/utimens.c (lutimens): Lower scope of result.
19355
19356 2009-12-13  Bruno Haible  <bruno@clisp.org>
19357
19358         Move the malloc checking from module 'list' to new module 'xlist'.
19359         * modules/xlist: New file.
19360         * lib/gl_xlist.h: New file.
19361         * lib/gl_xlist.c: New file.
19362         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
19363         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
19364         gl_list_add_last, gl_list_add_before, gl_list_add_after,
19365         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
19366         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
19367         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
19368         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
19369         gl_sortedlist_nx_add): New declarations.
19370         (struct gl_list_implementation): Rename and change methods accordingly.
19371         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
19372         (gl_list_nx_create): Renamed from gl_list_create.
19373         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19374         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19375         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19376         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19377         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19378         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19379         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19380         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19381         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
19382         gl_list_create_empty.
19383         (gl_list_nx_create): Renamed from gl_list_create.
19384         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
19385         (gl_list_nx_set_at): Renamed from gl_list_set_at.
19386         (gl_list_nx_add_first): Renamed from gl_list_add_first.
19387         (gl_list_nx_add_last): Renamed from gl_list_add_last.
19388         (gl_list_nx_add_before): Renamed from gl_list_add_before.
19389         (gl_list_nx_add_after): Renamed from gl_list_add_after.
19390         (gl_list_nx_add_at): Renamed from gl_list_add_at.
19391         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
19392         * lib/gl_array_list.c: Don't include xalloc.h.
19393         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
19394         NULL upon out-of-memory.
19395         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
19396         out-of-memory.
19397         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
19398         Change return type to 'int'.
19399         (gl_array_nx_set_at): Renamed from gl_array_set_at.
19400         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19401         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
19402         upon out-of-memory.
19403         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
19404         upon out-of-memory.
19405         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
19406         upon out-of-memory.
19407         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
19408         upon out-of-memory.
19409         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
19410         out-of-memory.
19411         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
19412         Update.
19413         (gl_array_list_implementation): Update.
19414         * lib/gl_carray_list.c: Don't include xalloc.h.
19415         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
19416         Return NULL upon out-of-memory.
19417         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
19418         out-of-memory.
19419         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
19420         Change return type to 'int'.
19421         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
19422         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
19423         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
19424         upon out-of-memory.
19425         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
19426         upon out-of-memory.
19427         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
19428         out-of-memory.
19429         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
19430         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
19431         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
19432         Update.
19433         (gl_carray_list_implementation): Update.
19434         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
19435         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
19436         gl_linked_create_empty. Return NULL upon out-of-memory.
19437         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
19438         out-of-memory.
19439         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
19440         Change return type to 'int'. Return -1 upon out-of-memory.
19441         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
19442         out-of-memory.
19443         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
19444         upon out-of-memory.
19445         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
19446         upon out-of-memory.
19447         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
19448         NULL upon out-of-memory.
19449         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
19450         upon out-of-memory.
19451         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
19452         out-of-memory.
19453         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
19454         Update.
19455         * lib/gl_linked_list.c: Don't include xalloc.h.
19456         (gl_linked_list_implementation): Update.
19457         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
19458         (add_to_bucket): Change return type to 'int'.
19459         (gl_linkedhash_list_implementation): Update.
19460         * lib/gl_anytree_list1.h (free_subtree): New function.
19461         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
19462         gl_tree_create_empty. Return NULL upon out-of-memory.
19463         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
19464         Change return type to 'int'. Return -1 upon out-of-memory.
19465         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
19466         out-of-memory.
19467         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
19468         (gl_tree_remove_node): New function, moved here from
19469         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
19470         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
19471         Update.
19472         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
19473         malloc, not xmalloc. Return NULL upon out-of-memory.
19474         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19475         out-of-memory.
19476         (gl_tree_remove_node_from_tree): New function, extracted from
19477         gl_tree_remove_node.
19478         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19479         upon out-of-memory.
19480         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19481         out-of-memory.
19482         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19483         upon out-of-memory.
19484         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19485         upon out-of-memory.
19486         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19487         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
19488         not xmalloc. Return NULL upon out-of-memory.
19489         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
19490         out-of-memory.
19491         (gl_tree_remove_node_from_tree): New function, extracted from
19492         gl_tree_remove_node.
19493         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
19494         upon out-of-memory.
19495         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
19496         out-of-memory.
19497         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
19498         upon out-of-memory.
19499         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
19500         upon out-of-memory.
19501         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
19502         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
19503         gl_anytree_list1.h before gl_anyavltree_list2.h.
19504         (gl_avltree_list_implementation): Update.
19505         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
19506         gl_anytree_list1.h before gl_anyavltree_list2.h.
19507         (gl_rbtree_list_implementation): Update.
19508         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
19509         Change return type to 'int'. Return -1 upon out-of-memory. Use
19510         __builtin_expect.
19511         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
19512         (gl_avltreehash_list_implementation): Update.
19513         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
19514         (gl_rbtreehash_list_implementation): Update.
19515         * modules/array-list (Depends-on): Remove xalloc.
19516         * modules/carray-list (Depends-on): Likewise.
19517         * modules/linked-list (Depends-on): Likewise.
19518         * modules/linkedhash-list (Depends-on): Likewise.
19519         * modules/avltree-list (Depends-on): Likewise.
19520         * modules/rbtree-list (Depends-on): Likewise.
19521         * modules/avltreehash-list (Depends-on): Likewise.
19522         * modules/rbtreehash-list (Depends-on): Likewise.
19523
19524         * modules/xsublist: New file.
19525         * lib/gl_xsublist.h: New file.
19526         * lib/gl_xsublist.c: New file.
19527         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
19528         (gl_sublist_nx_create): New declaration.
19529         * lib/gl_sublist.c: Don't include xalloc.h.
19530         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
19531         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
19532         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
19533         Change return type to 'int'. Return -1 upon out-of-memory.
19534         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
19535         upon out-of-memory.
19536         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
19537         NULL upon out-of-memory.
19538         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
19539         upon out-of-memory.
19540         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
19541         NULL upon out-of-memory.
19542         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
19543         NULL upon out-of-memory.
19544         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
19545         upon out-of-memory.
19546         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
19547         (gl_sublist_list_implementation): Update.
19548         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
19549         upon out-of-memory.
19550         * modules/sublist (Depends-on): Remove xalloc.
19551
19552         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
19553         * tests/test-carray_list.c: Likewise.
19554         * tests/test-linked_list.c: Likewise.
19555         * tests/test-linkedhash_list.c: Likewise.
19556         * tests/test-avltree_list.c: Likewise.
19557         * tests/test-rbtree_list.c: Likewise.
19558         * tests/test-avltreehash_list.c: Likewise.
19559         * tests/test-rbtreehash_list.c: Likewise.
19560         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
19561         * modules/carray-list-tests (Makefile.am): Likewise.
19562         * modules/linked-list-tests (Makefile.am): Likewise.
19563         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19564         * modules/avltree-list-tests (Makefile.am): Likewise.
19565         * modules/rbtree-list-tests (Makefile.am): Likewise.
19566         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19567         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19568
19569         * NEWS: Mention the changes.
19570
19571         * lib/clean-temp.c: Include gl_xlist.h.
19572         * modules/clean-temp (Depends-on): Add xlist.
19573
19574         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
19575         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
19576
19577         * tests/test-array_oset.c: Include gl_xlist.h.
19578         * modules/array-oset-tests (Depends-on): Add xlist.
19579
19580         Reported by José E. Marchesi <jemarch@gnu.org>.
19581
19582 2009-12-13  Bruno Haible  <bruno@clisp.org>
19583
19584         Move the malloc checking from module 'oset' to new module 'xoset'.
19585         * modules/xoset: New file.
19586         * lib/gl_xoset.h: New file.
19587         * lib/gl_xoset.c: New file.
19588         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
19589         declarations.
19590         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
19591         (struct gl_oset_implementation): Rename and change methods accordingly.
19592         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
19593         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19594         'int'. Mark as __warn_unused_result__.
19595         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
19596         gl_oset_create_empty.
19597         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
19598         'int'.
19599         * lib/gl_array_oset.c: Don't include xalloc.h.
19600         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
19601         malloc, not xmalloc.
19602         (grow): Change return type to 'int'. Don't call xalloc_die.
19603         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
19604         to 'int'.
19605         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
19606         'int'.
19607         (gl_array_oset_implementation): Update.
19608         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
19609         gl_tree_create_empty.
19610         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
19611         'int'.
19612         * lib/gl_avltree_oset.c: Don't include xalloc.h.
19613         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19614         xmalloc.
19615         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19616         not xmalloc.
19617         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19618         xmalloc.
19619         (gl_avltree_oset_implementation): Update.
19620         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
19621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
19622         xmalloc.
19623         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
19624         not xmalloc.
19625         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
19626         xmalloc.
19627         (gl_rbtree_oset_implementation): Update.
19628         * modules/array-oset (Depends-on): Remove xalloc.
19629         * modules/avltree-oset (Depends-on): Likewise.
19630         * modules/rbtree-oset (Depends-on): Likewise.
19631         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
19632         * tests/test-avltree_oset.c: Likewise.
19633         * tests/test-rbtree_oset.c: Likewise.
19634         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19635         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
19636         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19637         * NEWS: Mention the change.
19638
19639 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
19640
19641         maint.mk: allow a project to override release-prep commands
19642         * top/maint.mk (alpha, beta, stable): Move release-preparatory
19643         commands into a new rule.
19644         (release-prep): New rule.
19645         (release-prep-hook): New overridable variable.
19646
19647 2009-12-13  Bruno Haible  <bruno@clisp.org>
19648
19649         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
19650
19651 2009-12-13  Jim Meyering  <meyering@redhat.com>
19652
19653         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
19654         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
19655
19656 2009-12-12  Bruno Haible  <bruno@clisp.org>
19657
19658         duplocale: Tweak.
19659         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
19660
19661 2009-12-12  Karl Berry  <karl@gnu.org>
19662
19663         * config/srclist.txt (strtoll.c): tab changes, no more sync.
19664
19665 2009-12-12  Bruno Haible  <bruno@clisp.org>
19666
19667         * m4/po.m4: Undo incorrect untabification.
19668
19669 2009-12-12  Bruno Haible  <bruno@clisp.org>
19670
19671         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
19672         * modules/c-strtod (Depends-on): Add locale.
19673         * modules/c-strtold (Depends-on): Likewise.
19674
19675 2009-12-12  Bruno Haible  <bruno@clisp.org>
19676
19677         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
19678
19679 2009-12-11  Eric Blake  <ebb9@byu.net>
19680
19681         setenv: relax requirement in light of POSIX ruling
19682         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
19683         not NULL.
19684         * tests/test-setenv.c (main): Relax test.
19685         * tests/test-unsetenv.c (main): Likewise.
19686         * doc/posix-functions/setenv.texi (setenv): Document this.
19687         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19688
19689 2009-12-11  Bruno Haible  <bruno@clisp.org>
19690
19691         New module 'fd-safer-flag'.
19692         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
19693         * lib/dup-safer.c (dup_safer_flag): Remove function.
19694         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
19695         * lib/fd-safer.c (fd_safer_flag): Remove function.
19696         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
19697         * modules/cloexec (configure.ac): Drop indicator macro.
19698         * modules/fd-safer-flag: New file.
19699         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
19700         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
19701         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
19702
19703 2009-12-11  Bruno Haible  <bruno@clisp.org>
19704
19705         Tests for module 'nl_langinfo'.
19706         * modules/nl_langinfo-tests: New file.
19707         * tests/test-nl_langinfo.sh: New file.
19708         * tests/test-nl_langinfo.c: New file.
19709
19710         New module 'nl_langinfo'.
19711         * lib/nl_langinfo.c: New file.
19712         * m4/nl_langinfo.m4: New file.
19713         * modules/nl_langinfo: New file.
19714         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
19715
19716 2009-12-11  Bruno Haible  <bruno@clisp.org>
19717
19718         Tests for module 'langinfo'.
19719         * modules/langinfo-tests: New file.
19720         * tests/test-langinfo.c: New file.
19721
19722         New module 'langinfo'.
19723         * lib/langinfo.in.h: New file.
19724         * m4/langinfo_h.m4: New file.
19725         * modules/langinfo: New file.
19726         * doc/posix-headers/langinfo.texi: Mention the new module.
19727
19728 2009-12-11  Bruno Haible  <bruno@clisp.org>
19729
19730         * lib/config.charset: Untabify.
19731
19732 2009-12-11  Bruno Haible  <bruno@clisp.org>
19733
19734         * modules/unistd-safer (configure.ac): Drop indicator macro.
19735
19736 2009-12-11  Bruno Haible  <bruno@clisp.org>
19737
19738         Move pipe2-safer code to its own file.
19739         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
19740         * lib/pipe-safer.c (pipe2_safer): Remove function.
19741         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
19742         (Makefile.am): Add it to lib_SOURCES.
19743
19744 2009-12-10  Bruno Haible  <bruno@clisp.org>
19745
19746         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
19747
19748 2009-12-10  Bruno Haible  <bruno@clisp.org>
19749
19750         Declare which arguments expect non-NULL values, for GCC and clang.
19751         * build-aux/arg-nonnull.h: New file.
19752         * modules/arg-nonnull: New file.
19753         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
19754         (inet_ntop, inet_pton): Use it.
19755         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
19756         (closedir, dirfd, opendir, scandir, alphasort): Use it.
19757         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
19758         (open, openat): Use it.
19759         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
19760         (fnmatch): Use it.
19761         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
19762         (getopt, getopt_long, getopt_long_only): Use it.
19763         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
19764         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
19765         Use it.
19766         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
19767         (iconv_open): Use it.
19768         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
19769         (strtoimax, strtoumax): Use it.
19770         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
19771         (duplocale): Use it.
19772         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
19773         (frexp, frexpl): Use it.
19774         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
19775         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
19776         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
19777         (tsearch, tfind, tdelete, twalk): Use it.
19778         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
19779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19780         sigpending): Use it.
19781         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
19782         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19783         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19784         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19785         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19786         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19787         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19788         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19789         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19790         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19791         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19792         Use it.
19793         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
19794         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
19795         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
19796         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
19797         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
19798         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
19799         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
19800         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
19801         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
19802         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
19803         strtoull, unsetenv): Use it.
19804         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
19805         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19806         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19807         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19808         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19809         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
19810         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
19811         (strcasecmp, strncasecmp): Use it.
19812         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
19813         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
19814         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
19815         rpl_setsockopt): Use it.
19816         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
19817         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
19818         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
19819         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
19820         (gettimeofday): Use it.
19821         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
19822         (times): Use it.
19823         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
19824         (uname): Use it.
19825         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
19826         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
19827         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
19828         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
19829         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
19830         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
19831         unlinkat, write): Use it.
19832         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
19833         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
19834         * lib/argv-iter.h: Include arg-nonnull.h.
19835         (_ATTRIBUTE_NONNULL_): Remove macro.
19836         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
19837         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
19838         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
19839         optimization.
19840         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
19841         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
19842         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
19843         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
19844         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
19845         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
19846         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
19847         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
19848         * modules/arpa_inet (Depends-on): Add arg-nonnull.
19849         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
19850         * modules/dirent (Depends-on): Add arg-nonnull.
19851         (Makefile.am): Insert arg-nonnull.h into dirent.h.
19852         * modules/fcntl-h (Depends-on): Add arg-nonnull.
19853         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
19854         * modules/fnmatch (Depends-on): Add arg-nonnull.
19855         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
19856         * modules/getopt-posix (Depends-on): Add arg-nonnull.
19857         (Makefile.am): Insert arg-nonnull.h into getopt.h.
19858         * modules/glob (Depends-on): Add arg-nonnull.
19859         (Makefile.am): Insert arg-nonnull.h into glob.h.
19860         * modules/iconv_open (Depends-on): Add arg-nonnull.
19861         (Makefile.am): Insert arg-nonnull.h into iconv.h.
19862         * modules/inttypes (Depends-on): Add arg-nonnull.
19863         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
19864         * modules/locale (Depends-on): Add arg-nonnull.
19865         (Makefile.am): Insert arg-nonnull.h into locale.h.
19866         * modules/math (Depends-on): Add arg-nonnull.
19867         (Makefile.am): Insert arg-nonnull.h into math.h.
19868         * modules/netdb (Depends-on): Add arg-nonnull.
19869         (Makefile.am): Insert arg-nonnull.h into netdb.h.
19870         * modules/search (Depends-on): Add arg-nonnull.
19871         (Makefile.am): Insert arg-nonnull.h into search.h.
19872         * modules/signal (Depends-on): Add arg-nonnull.
19873         (Makefile.am): Insert arg-nonnull.h into signal.h.
19874         * modules/spawn (Depends-on): Add arg-nonnull.
19875         (Makefile.am): Insert arg-nonnull.h into spawn.h.
19876         * modules/stdio (Depends-on): Add arg-nonnull.
19877         (Makefile.am): Insert arg-nonnull.h into stdio.h.
19878         * modules/stdlib (Depends-on): Add arg-nonnull.
19879         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
19880         * modules/string (Depends-on): Add arg-nonnull.
19881         (Makefile.am): Insert arg-nonnull.h into string.h.
19882         * modules/strings (Depends-on): Add arg-nonnull.
19883         (Makefile.am): Insert arg-nonnull.h into strings.h.
19884         * modules/sys_socket (Depends-on): Add arg-nonnull.
19885         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
19886         * modules/sys_stat (Depends-on): Add arg-nonnull.
19887         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
19888         * modules/sys_time (Depends-on): Add arg-nonnull.
19889         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
19890         * modules/sys_times (Depends-on): Add arg-nonnull.
19891         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
19892         * modules/sys_utsname (Depends-on): Add arg-nonnull.
19893         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
19894         * modules/time (Depends-on): Add arg-nonnull.
19895         (Makefile.am): Insert arg-nonnull.h into time.h.
19896         * modules/unistd (Depends-on): Add arg-nonnull.
19897         (Makefile.am): Insert arg-nonnull.h into unistd.h.
19898         * modules/wchar (Depends-on): Add arg-nonnull.
19899         (Makefile.am): Insert arg-nonnull.h into wchar.h.
19900         * modules/argv-iter (Depends-on): Add arg-nonnull.
19901         * tests/test-canonicalize.c (null_ptr): New function.
19902         (main): Use it.
19903         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
19904         (main): Use it.
19905         * tests/test-memmem.c (null_ptr): New function.
19906         (main): Use it.
19907         Reported by Jim Meyering.
19908
19909 2009-12-10  Bruno Haible  <bruno@clisp.org>
19910
19911         Use spaces for indentation, not tabs.
19912         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19913         * m4/*.m4: Untabify.
19914         * build-aux/*.h: Untabify.
19915         * tests/**/*.[hc]: Untabify.
19916         * README: New section "Indent with spaces, not TABs", based on
19917         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
19918         * NEWS: Mention the change.
19919
19920 2009-12-10  Bruno Haible  <bruno@clisp.org>
19921
19922         pty test: Fix link error.
19923         * modules/pty-tests (Makefile.am): Add the default LDADD value to
19924         test_pty_LDADD.
19925
19926 2009-12-07  Simon Josefsson  <simon@josefsson.org>
19927
19928         * modules/pty: New file.
19929         * modules/pty-tests: New file.
19930         * m4/pty.m4: New file.
19931         * tests/test-pty.c: New file.
19932         * doc/glibc-headers/pty.texi: Modified.
19933         * doc/glibc-functions/forkpty.texi: Modified.
19934         * doc/glibc-functions/openpty.texi: Modified.
19935
19936 2009-12-10  Bruno Haible  <bruno@clisp.org>
19937
19938         Avoid syntax error in C++ mode.
19939         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
19940
19941 2009-12-10  Bruno Haible  <bruno@clisp.org>
19942
19943         Use sed with option -e.
19944         * gnulib-tool (func_version, func_emit_copyright_notice,
19945         func_emit_initmacro_end, func_import, func_create_testdir): Pass
19946         option -e to sed.
19947         * modules/link-warning (Makefile.am): Likewise.
19948
19949 2009-12-10  Jim Meyering  <meyering@redhat.com>
19950
19951         mgetgroups: do not write bytes beyond end of malloc'd buffer
19952         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
19953         username, we call getgroups with a one-element-shorter buffer,
19954         but still told it the length was original, max_n_groups.
19955
19956 2009-12-09  Eric Blake  <ebb9@byu.net>
19957
19958         cloexec: relax license
19959         * modules/cloexec (Maintainer): Add myself.
19960         (License): Use LGPL, not GPL.
19961
19962         link-warning: optimize generation
19963         * modules/link-warning (Makefile.am): Reduce process usage.
19964
19965 2009-12-09  Bruno Haible  <bruno@clisp.org>
19966
19967         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
19968         workaround was added on 2009-11-17.
19969
19970 2009-12-09  Jim Meyering  <meyering@redhat.com>
19971             Bruno Haible  <bruno@clisp.org>
19972
19973         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19974         * modules/link-warning (Makefile.am): Make the comment-removing sed
19975         command more robust in the face of bootstrap-prepended comment lines.
19976
19977 2009-12-09  Bruno Haible  <bruno@clisp.org>
19978
19979         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19980         most one group.
19981
19982 2009-12-09  Simon Josefsson <simon@josefsson.org>
19983             Bruno Haible  <bruno@clisp.org>
19984
19985         * build-aux/link-warning.h: Add copyright notice.
19986         * modules/link-warning (Makefile.am): Generate link-warning.h from
19987         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19988         * NEWS: Mention change in link-warning module.
19989         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19990         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19991         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19992         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19993         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19994         * modules/math (Makefile.am): Add dependency to math.h.
19995         * modules/search (Makefile.am): Add dependency to search.h.
19996         * modules/signal (Makefile.am): Add dependency to signal.h.
19997         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19998         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19999         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20000         * modules/string (Makefile.am): Add dependency to string.h.
20001         * modules/strings (Makefile.am): Add dependency to strings.h.
20002         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20003         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20004         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20005         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20006         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20007         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20008         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20009         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20010         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20011
20012 2009-12-09  Bruno Haible  <bruno@clisp.org>
20013
20014         fchdir: Optimize away rpl_fstat when possible.
20015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20016         REPLACE_OPEN_DIRECTORY.
20017         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20018
20019 2009-12-09  Bruno Haible  <bruno@clisp.org>
20020
20021         * lib/fchdir.c: Update comment.
20022
20023 2009-12-09  Bruno Haible  <bruno@clisp.org>
20024
20025         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20026
20027 2009-12-08  Eric Blake  <ebb9@byu.net>
20028
20029         fchdir: avoid memory leak on re-registration.
20030         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20031
20032 2009-12-08  Jim Meyering  <meyering@redhat.com>
20033
20034         init.sh: avoid Solaris 10 /bin/sh portability problem
20035         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20036         sourced script:
20037           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20038           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20039           bar
20040         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20041         and two tests used that idiom.
20042         * tests/init.sh: Update suggested usage comments.
20043         (path_prepend_): New function, to be used in place
20044         of the --src-path=DIR option.
20045         (setup_): Move PATH-prepending code into path_prepend_.
20046         * tests/test-pread.sh: Adapt to new usage.
20047         * tests/test-xalloc-die.sh: Likewise.
20048
20049 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20050
20051         * doc/gnulib.texi (Glibc pty.h): Add.
20052         * doc/glibc-functions/forkpty.texi: Add.
20053         * doc/glibc-functions/openpty.texi: Add.
20054         Suggested by Bruno Haible.
20055
20056 2009-12-08  Eric Blake  <ebb9@byu.net>
20057
20058         fchdir: fix logic bugs
20059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20060         * tests/test-fchdir.c (main): Enhance test.
20061         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20062         is in use.
20063
20064         dup2: fix logic bugs
20065         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20066         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20067         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20068         exists.
20069         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20070
20071 2009-12-07  Eric Blake  <ebb9@byu.net>
20072
20073         unlink: fix m4 detection
20074         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20075
20076         unistd-safer: add unit test
20077         * modules/unistd-safer-tests: New file.
20078         * tests/test-dup-safer.c: Likewise.
20079         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20080         * tests/test-dup2.c (setmode): Likewise.
20081         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20082
20083         cloexec: preserve text vs. binary across dup_cloexec
20084         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20085         mode.
20086         * modules/dup2-tests (Depends-on): Add binary-io.
20087         * modules/cloexec-tests (Depends-on): Likewise.
20088         * tests/test-dup2.c (setmode, is_mode): New helpers.
20089         (main): Add tests that translation mode is preserved.
20090         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20091         Reported by Bruno Haible.
20092
20093         mgetgroups: reduce duplicate listings
20094         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20095         resulting array.
20096         * tests/test-chown.h (test_chown): Simplify client.
20097         * tests/test-lchown.h (test_lchown): Likewise.
20098
20099 2009-12-06  Bruno Haible  <bruno@clisp.org>
20100
20101         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20102         value.
20103
20104 2009-12-06  Bruno Haible  <bruno@clisp.org>
20105
20106         * lib/progname.c: Include stdio.h, stdlib.h.
20107         (set_program_name): Reject a NULL argument.
20108
20109 2009-12-05  Eric Blake  <ebb9@byu.net>
20110
20111         pipe2-safer: new module
20112         * modules/pipe2-safer: New file.
20113         * lib/unistd-safer.h (pipe2_safer): New prototype.
20114         * lib/unistd--.h (pipe2): New wrapper.
20115         * lib/pipe-safer.c (pipe2_safer): New function.
20116         * modules/pipe (Depends-on): Add pipe2-safer.
20117         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20118
20119         stdlib-safer: preserve cloexec flag for mkostemp[s]
20120         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20121         fd_safer_flag.
20122
20123         unistd-safer: allow preservation of cloexec status via flag
20124         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20125         prototypes.
20126         * lib/dup-safer.c (dup_safer_flag): New function.
20127         * lib/fd-safer.c (fd_safer_flag): Likewise.
20128         * modules/cloexec (configure.ac): Set witness.
20129
20130         test-dup2: enhance test
20131         * modules/dup2-tests (Depends-on): Add cloexec.
20132         * tests/test-dup2.c (main): Enhance test.
20133
20134         cloexec: add dup_cloexec
20135         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20136         header and comments.
20137         * lib/cloexec.c (set_cloexec_flag): Add comments.
20138         (dup_cloexec): New function, with mingw implementation borrowed
20139         from...
20140         * lib/w32spawn.h (dup_noinherit): ...here.
20141         * modules/execute (Depends-on): Add cloexec.
20142         * modules/pipe (Depends-on): Likewise.
20143         * modules/cloexec (Depends-on): Add dup2.
20144         * modules/cloexec-tests (Files): New file.
20145         * tests/test-cloexec.c: Likewise.
20146
20147         test-xalloc-die: fix test for mingw
20148         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20149         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20150         directory and .exe suffix off argv[0] output.
20151
20152         test-fseeko: fix test for mingw
20153         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20154         than undefining fseek, so test will pass on mingw.
20155
20156 2009-12-05  Bruno Haible  <bruno@clisp.org>
20157
20158         * lib/progname.h (set_program_name): Clarify specification.
20159         * lib/progname.c (set_program_name): Likewise.
20160         Reported by Jim Meyering.
20161
20162 2009-12-05  Jim Meyering  <meyering@redhat.com>
20163
20164         maint.mk: backslash-escape parens in default regexp
20165         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20166         backslash-escape the literal parentheses.
20167
20168         maint.mk: news-date-check: use grep -E
20169         * top/maint.mk (today): Define a Make variable, not a...
20170         (news-date-check): ...shell variable.
20171         (news-date-regexp): Use the Make variable.
20172         Use grep's -E option.  Change the failing diagnostic to mention
20173         the variable, $(news-date-regexp).
20174
20175 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20176
20177         maintainer-makefile: allow customization of NEWS entry format
20178         * top/maint.mk (news-date-regexp): New overridable variable.
20179         (news-date-check): Use it.
20180
20181 2009-12-04  Eric Blake  <ebb9@byu.net>
20182
20183         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20184         * lib/mgetgroups.h (xgetgroups): New prototype.
20185         * lib/mgetgroups.c (xgetgroups): New wrapper.
20186         (mgetgroups): Handle ENOSYS.
20187         * modules/mgetgroups (Depends-on): Add realloc.
20188         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20189
20190         mgetgroups: avoid argument promotion issues with -1
20191         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20192         for invalid gid_t.
20193         * tests/test-chown.h (getegid, test_chown): Likewise.
20194         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20195
20196 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20197
20198         exclude: Fix header file problems.
20199         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20200
20201 2009-12-01  Jim Meyering  <meyering@redhat.com>
20202
20203         fts: fts_open: do not let an empty string cause immediate failure
20204         This is required in support of GNU rm, for which the command
20205         "rm A '' B" must process and remove both A and B, in spite of
20206         the empty string argument.
20207         * lib/fts.c (fts_open): Do not let the presence of an empty string
20208         cause fts_open to fail immediately.  Most fts-using tools must be
20209         able to process all arguments, in order, and can be expected to
20210         diagnose such arguments themselves.
20211
20212 2009-11-30  Eric Blake  <ebb9@byu.net>
20213
20214         utimens: fix compilation error
20215         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20216         Declare variable at right scope.
20217
20218 2009-11-29  Jim Meyering  <meyering@redhat.com>
20219
20220         bootstrap: handle perl-5.11's changed --version output
20221         * build-aux/bootstrap (get_version): Handle perl separately,
20222         since perl-5.11's --version output is different.
20223
20224 2009-11-28  Jim Meyering  <meyering@redhat.com>
20225
20226         userspec: depend on the inttostr module, too
20227         * modules/userspec (Depends-on): Add inttostr.
20228
20229         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20230         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20231         number of MAXUID when it evaluates to (uid_t) -1.
20232         Likewise for group ID.  Reported by Matt McCutchen in
20233         <http://savannah.gnu.org/bugs/?28113>
20234
20235         userspec: reformat to use spaces, not TABs
20236         * lib/userspec.c: Expand TABs to spaces.
20237         Add Emacs' "indent-tabs-mode: nil" hint.
20238
20239 2009-11-27  Eric Blake  <ebb9@byu.net>
20240
20241         getopt-gnu: flush out another BSD bug
20242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
20243         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
20244         flush out BSD bug.
20245         * tests/test-getopt.h (test_getopt): End lists with NULL.
20246         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20247         (test_getopt_long_posix): Enhance test.
20248         * modules/getopt-posix-tests (Depends-on): Add stdbool.
20249         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
20250         getopt-gnu.
20251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20252         Likewise.
20253
20254 2009-11-27  Simon Josefsson  <simon@josefsson.org>
20255
20256         * modules/idpriv-droptemp-tests (Notice): Fix text.
20257
20258 2009-11-27  Jim Meyering  <meyering@redhat.com>
20259
20260         test-xalloc-die: avoid spurious failure due to libtool argv difference
20261         In a libtool-enabled project, this test would fail due to a difference
20262         in the emitted program name, e.g.,
20263         -test-xalloc-die: memory exhausted
20264         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
20265         Use program to avoid that.
20266         * modules/xalloc-die-tests (Depends-on): Add progname.
20267         * tests/test-xalloc-die.c: Include progname.h".
20268         (program_name): Remove decl.
20269         (main): Call set_program_name.
20270         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
20271
20272 2009-11-26  Richard Jones  <rjones@redhat.com>
20273
20274         w32sock: leave win32 error in place.
20275         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
20276
20277 2009-11-26  Eric Blake  <ebb9@byu.net>
20278
20279         init.sh: suggest to use skip_ and fail_ functions in comments
20280         * tests/init.sh: Add a sentence.
20281
20282 2009-11-25  Bruno Haible  <bruno@clisp.org>
20283
20284         init.sh: add documentation in comments
20285         * tests/init.sh: Add some developer and user documentation.
20286
20287 2009-11-26  Jim Meyering  <meyering@redhat.com>
20288
20289         init.sh: accommodate even those who specify bogus srcdir manually
20290         * tests/init.sh: Normally, srcdir is guaranteed by automake and
20291         configure-time tests to be sanitized, so that there is no need to
20292         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
20293         (with no double quotes) suffices.  However, since tests may be
20294         invoked manually, and since you may explicitly set srcdir to the
20295         name of a directory containing spaces, do quote its uses here.
20296         * tests/test-pread.sh: Likewise.
20297         Suggested by Bruno Haible.
20298
20299         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
20300         * tests/test-pread.sh: Write no data into the pipe, because
20301         test-pread actually reads none.  This avoids a diagnostic,
20302         "bash: echo: write error: Broken pipe", that arises in the unusual
20303         event something is ignoring SIGPIPE, and might be interpreted
20304         as some sort of failure.  Reported by Bruno Haible.
20305
20306 2009-11-25  Jim Meyering  <meyering@redhat.com>
20307
20308         test-pread: cover failure with ESPIPE and EINVAL
20309         * tests/test-pread.c (main): Test for failure, too.
20310         * tests/test-pread.sh: Invoke with stdin on a pipe.
20311         Suggested by Eric Blake.
20312
20313         pread: improvement and fix
20314         * modules/pread (Depends-on): Depend on lseek, for portability to
20315         e.g., mingw.  Suggested by Eric Blake.
20316         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
20317
20318         unistd.in.h: correct declaration of pread
20319         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
20320         Reported by Richard W.M. Jones.
20321
20322         test-pread.sh: distribute the test script
20323         * modules/pread-tests (Files): Include test-pread.sh.
20324
20325         test-pread.sh: clean up
20326         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
20327         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
20328         That is unnecessary, since it's always ".".
20329         Suggestion from Eric Blake.
20330
20331         test-pread.sh: make executable
20332         * tests/test-pread.sh: Set executable bit.
20333         Reported by Eric Blake.
20334
20335         correct typo in test-pread.sh
20336         * tests/test-pread.sh: Add #! line.
20337
20338         test pread
20339         * tests/test-pread.c: New file.
20340         * tests/test-pread.sh: Likewise.
20341         * modules/pread-tests: Likewise.
20342
20343         pread: new module
20344         * modules/pread: New file.
20345         * lib/unistd.in.h (pread): Define/declare.
20346         * lib/pread.c (pread): New file.
20347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
20348         * modules/unistd (Makefile.am): Substitute witnesses.
20349         * doc/posix-functions/pread.texi (pread): Update.
20350         * MODULES.html.sh: Add pread.
20351
20352 2009-11-25  Jim Meyering  <meyering@redhat.com>
20353
20354         tests/init.sh: new file to be used via most *.sh tests
20355         * tests/init.sh: New file.
20356
20357 2009-11-25  Eric Blake  <ebb9@byu.net>
20358
20359         utimens: work around older Linux failure with symlinks
20360         * lib/utimens.c (lutimensat_works_really): New variable.
20361         (fdutimens, lutimens): Use it to manage kernels that support
20362         nanosecond times on files, but not on symlinks.
20363         Reported by OndÅ™ej Vašík.
20364
20365         utimes: fix configure grammar
20366         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
20367
20368 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
20369
20370         regex: Fix fastmap for multibyte character ranges.
20371         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
20372         characters when a multibyte character range is included.
20373
20374 2009-11-22  Andy Wingo  <wingo@pobox.com>
20375
20376         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
20377         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
20378
20379 2009-11-24  Bruno Haible  <bruno@clisp.org>
20380
20381         doc: Most *_l functions exist in MacOS X 10.5.
20382         * doc/posix-functions/duplocale.texi: Update platforms list.
20383         * doc/posix-functions/freelocale.texi: Likewise.
20384         * doc/posix-functions/newlocale.texi: Likewise.
20385         * doc/posix-functions/uselocale.texi: Likewise.
20386         * doc/posix-functions/isalnum_l.texi: Likewise.
20387         * doc/posix-functions/isalpha_l.texi: Likewise.
20388         * doc/posix-functions/isblank_l.texi: Likewise.
20389         * doc/posix-functions/iscntrl_l.texi: Likewise.
20390         * doc/posix-functions/isdigit_l.texi: Likewise.
20391         * doc/posix-functions/isgraph_l.texi: Likewise.
20392         * doc/posix-functions/islower_l.texi: Likewise.
20393         * doc/posix-functions/isprint_l.texi: Likewise.
20394         * doc/posix-functions/ispunct_l.texi: Likewise.
20395         * doc/posix-functions/isspace_l.texi: Likewise.
20396         * doc/posix-functions/isupper_l.texi: Likewise.
20397         * doc/posix-functions/iswalnum_l.texi: Likewise.
20398         * doc/posix-functions/iswalpha_l.texi: Likewise.
20399         * doc/posix-functions/iswblank_l.texi: Likewise.
20400         * doc/posix-functions/iswcntrl_l.texi: Likewise.
20401         * doc/posix-functions/iswctype_l.texi: Likewise.
20402         * doc/posix-functions/iswdigit_l.texi: Likewise.
20403         * doc/posix-functions/iswgraph_l.texi: Likewise.
20404         * doc/posix-functions/iswlower_l.texi: Likewise.
20405         * doc/posix-functions/iswprint_l.texi: Likewise.
20406         * doc/posix-functions/iswpunct_l.texi: Likewise.
20407         * doc/posix-functions/iswspace_l.texi: Likewise.
20408         * doc/posix-functions/iswupper_l.texi: Likewise.
20409         * doc/posix-functions/iswxdigit_l.texi: Likewise.
20410         * doc/posix-functions/isxdigit_l.texi: Likewise.
20411         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
20412         * doc/posix-functions/strcasecmp_l.texi: Likewise.
20413         * doc/posix-functions/strcoll_l.texi: Likewise.
20414         * doc/posix-functions/strfmon_l.texi: Likewise.
20415         * doc/posix-functions/strftime_l.texi: Likewise.
20416         * doc/posix-functions/strncasecmp_l.texi: Likewise.
20417         * doc/posix-functions/strxfrm_l.texi: Likewise.
20418         * doc/posix-functions/tolower_l.texi: Likewise.
20419         * doc/posix-functions/toupper_l.texi: Likewise.
20420         * doc/posix-functions/towctrans_l.texi: Likewise.
20421         * doc/posix-functions/towlower_l.texi: Likewise.
20422         * doc/posix-functions/towupper_l.texi: Likewise.
20423         * doc/posix-functions/wcscoll_l.texi: Likewise.
20424         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
20425         * doc/posix-functions/wctrans_l.texi: Likewise.
20426         * doc/posix-functions/wctype_l.texi: Likewise.
20427         * doc/glibc-functions/strptime_l.texi: Likewise.
20428         * doc/glibc-functions/strtod_l.texi: Likewise.
20429         * doc/glibc-functions/strtof_l.texi: Likewise.
20430         * doc/glibc-functions/strtol_l.texi: Likewise.
20431         * doc/glibc-functions/strtold_l.texi: Likewise.
20432         * doc/glibc-functions/strtoll_l.texi: Likewise.
20433         * doc/glibc-functions/strtoul_l.texi: Likewise.
20434         * doc/glibc-functions/strtoull_l.texi: Likewise.
20435         * doc/glibc-functions/wcsftime_l.texi: Likewise.
20436         * doc/glibc-functions/wcstod_l.texi: Likewise.
20437         * doc/glibc-functions/wcstof_l.texi: Likewise.
20438         * doc/glibc-functions/wcstol_l.texi: Likewise.
20439         * doc/glibc-functions/wcstold_l.texi: Likewise.
20440         * doc/glibc-functions/wcstoll_l.texi: Likewise.
20441         * doc/glibc-functions/wcstoul_l.texi: Likewise.
20442         * doc/glibc-functions/wcstoull_l.texi: Likewise.
20443
20444 2009-11-24  Bruno Haible  <bruno@clisp.org>
20445
20446         duplocale: Fix logic bug.
20447         * lib/duplocale.c: Don't include <langinfo.h>.
20448         (_NL_LOCALE_NAME): Remove macro.
20449         (rpl_duplocale): Use setlocale instead of nl_langinfo.
20450         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
20451
20452 2009-11-23  Jim Meyering  <meyering@redhat.com>
20453
20454         test-update-copyright: don't hard-code /usr/bin/perl
20455         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
20456         perl to print the current year.  Gilles Espinasse reported that
20457         the replaced use of perl was hard-coded as /usr/bin/perl.
20458
20459 2009-11-23  Bruno Haible  <bruno@clisp.org>
20460
20461         duplocale: Add support for glibc 2.3.x.
20462         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
20463
20464 2009-11-22  Bruno Haible  <bruno@clisp.org>
20465
20466         vasnprintf: Tiny optimization.
20467         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
20468         MacOS X.
20469
20470 2009-11-22  Bruno Haible  <bruno@clisp.org>
20471
20472         Tests for module 'duplocale'.
20473         * modules/duplocale-tests: New file.
20474         * tests/test-duplocale.c: New file.
20475
20476         New module 'duplocale'.
20477         * m4/duplocale.m4: New file.
20478         * lib/locale.in.h (duplocale): New declaration.
20479         * lib/duplocale.c: New file.
20480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
20481         gl_LOCALE_H_DEFAULTS): New macros.
20482         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
20483         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
20484         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
20485         REPLACE_DUPLOCALE.
20486         * modules/duplocale: New file.
20487         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
20488
20489 2009-11-22  Bruno Haible  <bruno@clisp.org>
20490
20491         * modules/locale-tests (configure.ac): Test for newlocale function.
20492         * tests/test-locale.c: When the system has extended locale functions,
20493         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
20494
20495         locale: Make locale_t available when possible.
20496         * lib/locale.in.h: Include <xlocale.h> when it exists.
20497         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
20498         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
20499         * modules/locale (Depends-on): Add extensions.
20500         (Makefile.am): Also substitute HAVE_XLOCALE_H.
20501         * doc/posix-headers/locale.texi: Document the problem with locale_t.
20502
20503 2009-11-22  Bruno Haible  <bruno@clisp.org>
20504
20505         Add comments.
20506         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
20507         invocation.
20508         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
20509         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20510         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20511
20512 2009-11-22  Bruno Haible  <bruno@clisp.org>
20513
20514         error: account for the possibility of freopen (stdout).
20515         * lib/error.c: Include <unistd.h>.
20516         (flush_stdout): New function, extracted from error and error_at_line.
20517         Determine stdout's fd dynamically.
20518         (error, error_at_line): Invoke flush_stdout.
20519         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
20520         * modules/error (Depends-on): Add unistd.
20521
20522 2009-11-22  Bruno Haible  <bruno@clisp.org>
20523
20524         diffseq: Add comment.
20525         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
20526
20527 2009-11-22  Jim Meyering  <meyering@redhat.com>
20528
20529         c-stack: avoid defining an unused static function
20530         * lib/c-stack.c (find_stack_direction): Do not define this function
20531         when it will not be used.
20532
20533         diffseq: avoid spurious gcc warnings
20534         * lib/diffseq.h (IF_LINT2): Define.
20535         (compareseq): Use it to initialize two members of "part".
20536         This avoids two used-uninitialized warnings.
20537
20538 2009-11-21  Jim Meyering  <meyering@redhat.com>
20539
20540         c-stack: avoid "ignoring return value of `write'" warning
20541         * lib/c-stack.c: Include "ignore-value.h".
20542         (die): Explicitly ignore each write return value.
20543         * modules/c-stack (Depends-on): Add ignore-value.
20544
20545 2009-11-21  Bruno Haible  <bruno@clisp.org>
20546
20547         diffseq: reduce scope of variable 'best'.
20548         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
20549         variable, earlier used for two different purposes.
20550
20551 2009-11-21  Jim Meyering  <meyering@redhat.com>
20552
20553         diffseq: remove useless assignment to "best"
20554         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
20555         assignment.  At that point "best" is already guaranteed to be zero.
20556
20557 2009-11-20  Eric Blake  <ebb9@byu.net>
20558
20559         build: mention ftp redirector in release announcements
20560         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
20561         values that used to come from cfg.mk; mention FTP redirect URL.
20562         * build-aux/announce-gen: Mention the mirror list.
20563         Suggested by Karl Berry.
20564
20565         nanosleep: improve port to mingw
20566         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
20567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
20568         LIB_NANOSLEEP, but only when needed.
20569         * modules/select (Link): Document LIBSOCKET.
20570         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
20571         enough.
20572
20573         nanosleep: work around cygwin bug
20574         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
20575         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
20576         bug.
20577         (getnow): Delete, not needed.
20578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
20579         LIB_CLOCK_GETTIME.
20580         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
20581         clock-time, gettime.
20582         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
20583         bug.
20584         * modules/nanosleep-tests: New test.
20585         * tests/test-nanosleep.c: New file.
20586
20587         sleep: work around cygwin bug
20588         * lib/sleep.c (rpl_sleep): Work around the bug.
20589         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
20590         (gl_PREREQ_SLEEP): Delete unused macro.
20591         * modules/sleep (Depends-on): Add verify.
20592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20593         * modules/unistd (Makefile.am): Substitute witness.
20594         * lib/unistd.in.h (sleep): Update prototype.
20595         * doc/posix-functions/sleep.texi (sleep): Document the bug.
20596         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
20597         * modules/sleep-tests (Depends-on): Check for alarm.
20598
20599 2009-11-20  Jim Meyering  <meyering@redhat.com>
20600
20601         maint.mk: improve sc_prohibit_magic_number_exit
20602         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
20603         so it does not match uses like System.exit(1).
20604         Add comments showing how to correct all offenders.
20605
20606 2009-11-19  Eric Blake  <ebb9@byu.net>
20607
20608         xalloc-die-tests: add missing library
20609         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
20610
20611         test-xvasprintf: silence compiler warnings
20612         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
20613         empty string from gcc.
20614
20615 2009-11-19  Jim Meyering  <meyering@redhat.com>
20616
20617         xfreopen: new module, from coreutils
20618         * modules/xfreopen: New module.
20619         * lib/xfreopen.c: New file.
20620         * lib/xfreopen.h: New file.
20621         * MODULES.html.sh (File stream based Input/Output"): Add it.
20622
20623 2009-11-19  Eric Blake  <ebb9@byu.net>
20624
20625         manywarnings: depend on warnings
20626         * modules/manywarnings (Depends-on): Add warnings.
20627
20628         build: avoid compiler warnings
20629         * lib/select.c (rpl_select): Delete unused variable.
20630         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
20631
20632 2009-11-18  Eric Blake  <ebb9@byu.net>
20633
20634         tests: avoid false negative with --with-packager
20635         * tests/test-version-etc.sh: Discard packager information.
20636         * tests/test-argp-version-etc-1.sh: Likewise.
20637         Reported by Mike Frysinger.
20638
20639         utimens: fix regression on Solaris
20640         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
20641         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
20642         can only change fd timestamps via futimesat.  Instead, use an
20643         additional witness macro to avoid BSD bug.
20644         Reported by Jim Meyering.
20645
20646 2009-11-17  Eric Blake  <ebb9@byu.net>
20647
20648         usleep: use it to simplify tests
20649         * modules/stat-time-tests (Depends-on): Add usleep.
20650         (configure.ac): Drop usleep check.
20651         * modules/chown-tests (Depends-on, configure.ac): Likewise.
20652         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
20653         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
20654         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
20655         * modules/openat-tests (Depends-on, configure.ac): Likewise.
20656         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
20657         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
20658         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
20659         Likewise.
20660         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
20661         * tests/test-lchown.h (nap): Likewise.
20662         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
20663         * tests/test-stat-time.c (nap): Likewise.
20664         * tests/test-utimens-common.h (nap): Update comments.
20665
20666         usleep: new module
20667         * modules/usleep: New file.
20668         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
20669         * lib/usleep.c (usleep): Likewise.
20670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20671         * modules/unistd (Makefile.am): Substitute witnesses.
20672         * lib/unistd.in.h (usleep): Add declaration.
20673         * doc/pastposix-functions/usleep.texi (usleep): Document this.
20674         * MODULES.html.sh (Date and time): Likewise.
20675         * modules/usleep-tests (Depends-on): New test.
20676         * tests/test-usleep.c: New file.
20677
20678         chown: work around OpenBSD bug
20679         * lib/chown.c (rpl_chown): Work around the bug.
20680         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
20681         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
20682         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
20683         * modules/chown (Depends-on): Add stdbool.
20684         * modules/lchown (Depends-on): Likewise.
20685         * doc/posix-functions/chown.texi (chown): Document the bug.
20686         * doc/posix-functions/lchown.texi (lchown): Likewise.
20687         * tests/test-lchown.h (test_chown): Relax test.
20688
20689         mkstemp: avoid conflict with C++ keyword template
20690         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
20691         * lib/mkostemp.c (mkostemp): Likewise.
20692         * lib/mkostemps.c (mkostemps): Likewise.
20693         * lib/mkstemp.c (mkstemp): Likewise.
20694         * lib/mkstemps.c (mkstemps): Likewise.
20695
20696         xalloc-die-tests: optimize
20697         * tests/test-xalloc-die.sh: Reduce number of processes.
20698
20699 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20700
20701         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
20702         patch from ludo@gnu.org (Ludovic Courtès).
20703
20704 2009-11-17  Jim Meyering  <meyering@redhat.com>
20705
20706         version-etc: use proper license string
20707         * modules/version-etc (License): Use LGPL, not LGPLv3+.
20708         * modules/version-etc-fsf: Likewise.
20709
20710 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20711
20712         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
20713         printed to stdout.  Deal with EOL differences.
20714
20715 2009-11-17  Eric Blake  <ebb9@byu.net>
20716
20717         unsetenv: work around Solaris bug
20718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
20719         * lib/unsetenv.c (rpl_unsetenv): Work around it.
20720         Reported by Jim Meyering.
20721
20722         vasnprintf: avoid compiler warnings
20723         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
20724         variables.
20725         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
20726
20727 2009-11-17  Simon Josefsson  <simon@josefsson.org>
20728
20729         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
20730         settings since xalloc-die is no longer the self test,
20731         xalloc-die.sh is.
20732
20733 2009-11-17  Jim Meyering  <meyering@redhat.com>
20734
20735         test-xalloc-die.sh: make the code agree with the commit log
20736         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
20737         at the end, just in case you happen to have a test-xalloc-die
20738         program in some other PATH directory.
20739
20740         test-xalloc-die.sh: fix a portability bug
20741         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
20742         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
20743         Otherwise, argv[0] (as often seen in diagnostics) would be too
20744         system-dependent, sometimes with, and sometimes without the leading "./".
20745
20746         version-etc-fsf: relax license to LGPLv3+
20747         * modules/version-etc-fsf (License): Relax license.
20748
20749 2009-11-16  Eric Blake  <ebb9@byu.net>
20750
20751         xalloc-die-tests: avoid printing null pointer
20752         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
20753         shell script.
20754         * tests/test-xalloc-die.c (program_name): Declare.
20755         * tests/test-xalloc-die.sh (tmpfiles): New file.
20756
20757         setenv, unsetenv: work around various bugs
20758         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
20759         (setenv) [HAVE_SETENV]: Work around bugs.
20760         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
20761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
20762         for bugs.
20763         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
20764         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
20765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
20766         * modules/stdlib (Makefile.am): Update substitutions.
20767         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
20768         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
20769         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20770         * modules/setenv-tests: New test.
20771         * modules/unsetenv-tests: Likewise.
20772         * tests/test-setenv.c: New file.
20773         * tests/test-unsetenv.c: Likewise.
20774
20775 2009-11-16  Jim Meyering  <meyering@redhat.com>
20776
20777         version-etc: relax license to LGPLv3+
20778         * modules/version-etc (License): Relax license.
20779
20780         better AC_REQUIRE expanded-before-required-warning avoidance
20781         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
20782         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
20783         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
20784         which is no longer needed.
20785
20786 2009-11-16  Eric Blake  <ebb9@byu.net>
20787
20788         test-freading: clean up temporary file
20789         * tests/test-freading.c (main): Remove file on success, and use
20790         ASSERT more liberally.
20791         Reported by Jim Meyering.
20792
20793 2009-11-16  Jim Meyering  <meyering@redhat.com>
20794
20795         avoid new AC_REQUIRE expanded-before-required warnings
20796         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
20797         merely using it.
20798         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
20799         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
20800
20801 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20802
20803         * tests/test-xalloc-die.c: New file.
20804         * modules/xalloc-die-tests: New file.
20805         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
20806         XFAIL_TESTS so it can be appended by modules.
20807
20808 2009-11-15  Simon Josefsson  <simon@josefsson.org>
20809
20810         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
20811         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
20812
20813 2009-11-14  Eric Blake  <ebb9@byu.net>
20814
20815         fnmatch: avoid compiler warning
20816         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
20817         to silence compiler warning about mismatch signedness in ?:.
20818         Reported by Robert Millan.
20819
20820         intprops: add double-inclusion guard
20821         * lib/intprops.h: Allow idempotent includes.
20822         Suggested by Bruce Korb.
20823
20824         openat: detect Solaris fchownat bug
20825         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
20826         penalizing glibc chownat when only lchownat is broken.
20827         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
20828         trailing slash bugs.
20829         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
20830         * modules/openat-tests (Files): Include more files.
20831         (Depends-on): Add mgetgroups, sleep, stat-time.
20832         (configure.ac): Add additional checks.
20833         (Makefile.am): Build new test.
20834         * tests/test-fchownat.c: New file.
20835
20836         lchown: detect Solaris and FreeBSD bug
20837         * lib/lchown.c (rpl_lchown): Work around bug.
20838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
20839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20840         * modules/unistd (Makefile.am): Populate it.
20841         * lib/unistd.in.h (lchown): Update declaration.
20842         * doc/posix-functions/lchown.texi (lchown): Document the bug.
20843         * modules/lchown-tests: New file.
20844         * tests/test-lchown.h (test_lchown): Likewise.
20845         * tests/test-lchown.c (main): Likewise.
20846
20847         chown: detect Solaris and FreeBSD bug
20848         * lib/chown.c (rpl_chown): Work around bug.
20849         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
20850         (gl_PREREQ_CHOWN): Delete.
20851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20852         * modules/unistd (Makefile.am): Populate it.
20853         * lib/unistd.in.h (chown): Update declaration.
20854         * lib/lchown.c (chown): Update client.
20855         * modules/lchown (Depends-on): Add lstat.
20856         * doc/posix-functions/chown.texi (chown): Document the bug.
20857         * doc/posix-functions/getgroups.texi (getgroups): Document
20858         getgroups pitfall.
20859         * modules/chown-tests: New file.
20860         * tests/test-chown.h (test_chown): Likewise.
20861         * tests/test-chown.c (main): Likewise.
20862
20863 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
20864
20865         gnulib-tool: correctly detect absence of m4 directories
20866         * gnulib-tool: Avoid extra newline on data passed to wc -l.
20867
20868 2009-11-14  Jim Meyering  <meyering@redhat.com>
20869
20870         maint.mk: Prohibit inclusion of "xalloc.h" without use.
20871         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20872
20873 2009-11-14  John W. Eaton  <jwe@gnu.org>
20874
20875         strftime.h: wrap funtion declaration in extern "C" block
20876         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
20877
20878 2009-11-13  Eric Blake  <ebb9@byu.net>
20879
20880         getgroups: avoid compiler warning
20881         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
20882
20883         getgroups: work around FreeBSD bug
20884         * lib/getgroups.c (rpl_getgroups): Work around the bug.
20885         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
20886         * doc/posix-functions/getgroups.texi (getgroups): Document it.
20887         * tests/test-getgroups.c (main): Fix buffer overrun.
20888
20889         getgroups: avoid compilation failure
20890         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
20891         * modules/getgroups (Depends-on): Add stdint.
20892
20893 2009-11-13  Jim Meyering  <meyering@redhat.com>
20894
20895         test-getgroups: avoid compilation failure
20896         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
20897
20898 2009-11-13  Eric Blake  <ebb9@byu.net>
20899
20900         mgetgroups: new module, taken from coreutils
20901         * modules/mgetgroups: New file.
20902         * lib/mgetgroups.h: Likewise.
20903         * lib/mgetgroups.c (mgetgroups): Likewise.
20904         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
20905         * MODULES.html.sh (Users and groups): Mention it.
20906
20907         getgroups: don't expose GETGROUPS_T to user
20908         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
20909         an element at a time if GETGROUPS_T is wrong size.
20910         * lib/getugroups.h (getugroups): Change signature.
20911         * lib/unistd.in.h (getgroups): Likewise.
20912         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
20913         signature needs fixing.
20914         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
20915         AC_TYPE_GETGROUPS.
20916         * modules/group-member (Depends-on): Add getgroups.
20917         * lib/group-member.c (group_info, get_group_info): Use gid_t.
20918         (group_member): Rely on getgroups replacement.
20919         * lib/getugroups.c (getugroups): Use gid_t.
20920         * tests/test-getgroups.c (main): Likewise.
20921         * NEWS: Mention the signature change.
20922         * doc/posix-functions/getgroups.texi (getgroups): Mention the
20923         problem with signature.
20924         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
20925         GETGROUPS_T is still useful for setgroups.
20926
20927         getgroups, getugroups: provide stubs for mingw
20928         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
20929         * lib/getugroups.c (getugroups): Likewise.
20930         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
20931         function.  Modernize replacement scheme.
20932         (gl_PREREQ_GETGROUPS): Delete.
20933         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
20934         * modules/getgroups (configure.ac): Declare witness.
20935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
20936         * modules/unistd (Depends-on): Substitute witness.
20937         * lib/unistd.in.h (getgroups): Declare replacement.
20938
20939         getgroups: avoid calling exit
20940         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
20941         drop xalloc.
20942         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
20943         dependencies.
20944         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
20945         exiting, in the rare case of malloc failure.
20946
20947         getgroups: fix logic error
20948         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
20949         has more than 20 groups.
20950         * modules/getgroups-tests: New test.
20951         * tests/test-getgroups.c: New file.
20952
20953 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20954
20955         * tests/test-base64.c: Improve.
20956
20957 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20958
20959         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
20960         Blake <ebb9@byu.net>.
20961
20962 2009-11-13  Simon Josefsson  <simon@josefsson.org>
20963
20964         * tests/test-xvasprintf.c: Add %s%s related checks.
20965
20966 2009-11-12  Eric Blake  <ebb9@byu.net>
20967
20968         version-etc: match standards.texi style
20969         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
20970         and use <> only for URLs.
20971
20972 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
20973
20974         fts: do not fail on a submount during traversal
20975         * lib/fts.c (fts_build): Read the stat info again after opening
20976         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20977         Original report at http://bugzilla.redhat.com/501848.
20978
20979 2009-11-12  Jim Meyering  <meyering@redhat.com>
20980
20981         bootstrap: sync from coreutils
20982         * build-aux/bootstrap (bootstrap_epilogue): New function.
20983         Use git_modules_config in one more place.  This make bootstrap's
20984         --gnulib-srcdir option more useful for testing.
20985
20986         bootstrap: generalize autoheader check
20987         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20988         AC_CONFIG_HEADERS.
20989
20990 2009-11-11  Eric Blake  <ebb9@byu.net>
20991
20992         mkfifoat: use new modules for Solaris and BSD bugs
20993         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20994         * lib/mkfifoat.c (mknodat): Split...
20995         * lib/mknodat.c (mknodat): ...into new file.
20996         * modules/mkfifoat (Files): Ship new file.
20997         (Depends-on): Add mkfifo, mknod.
20998         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20999         (Depends-on): Add symlink.
21000         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21001         redundant with test_mkfifo.h.
21002         (do_mkfifoat, do_mknodat): New helpers.
21003
21004         mknod: new module
21005         * modules/mknod: New file.
21006         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21007         * lib/mknod.c (mknod): Likewise.
21008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21009         defaults.
21010         * modules/sys_stat (Makefile.am): Substitute them.
21011         * lib/sys_stat.in.h (mknod): Declare replacement.
21012         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21013         Document it.
21014         * doc/posix-functions/mknod.texi (mknod): Likewise.
21015         * modules/mknod-tests: New test.
21016         * tests/test-mknod.c: Likewise.
21017
21018         mkfifo: new module
21019         * modules/mkfifo: New file.
21020         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21021         * lib/mkfifo.c (mkfifo): Likewise.
21022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21023         defaults.
21024         * modules/sys_stat (Makefile.am): Substitute them.
21025         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21026         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21027         Document it.
21028         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21029         * modules/mkfifo-tests: New test.
21030         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21031         from test-mkfifoat.c.
21032         * tests/test-mkfifo.c: New file.
21033
21034         readlink: detect FreeBSD bug
21035         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21036         slash on symlink.
21037         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21038         * tests/test-readlink.h (test_readlink): Enhance test.
21039
21040         symlink: detect FreeBSD bug
21041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21042         slash on symlink.
21043         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21044         * tests/test-symlink.h (test_symlink): Enhance test.
21045
21046 2009-11-10  Eric Blake  <ebb9@byu.net>
21047
21048         link: detect FreeBSD bug
21049         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21050         symlink.
21051         * doc/posix-functions/link.texi (link): Document the bug.
21052         * tests/test-link.h (test_link): Enhance test.
21053         * tests/test-linkat.c (main): Update caller.
21054
21055         unlink, remove: detect FreeBSD bug
21056         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21057         slash on symlink.
21058         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21059         * doc/posix-functions/remove.texi (remove): Likewise.
21060         * tests/test-unlink.h (test_unlink): Enhance test.
21061         * tests/test-remove.c (main): Likewise.
21062
21063 2009-11-09  Eric Blake  <ebb9@byu.net>
21064
21065         rename: detect FreeBSD bug
21066         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21067         slash on symlink.
21068         * modules/renameat-tests (Depends-on): Add filenamecat.
21069         * tests/test-rename.h (test_rename): Allow one more errno.
21070         * tests/test-renameat.c (main): Likewise.
21071         * doc/posix-functions/rename.texi (rename): Document the bug.
21072
21073         open: detect FreeBSD bug
21074         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21075         symlink.
21076         * doc/posix-functions/open.texi (open): Document the bug.
21077         * doc/posix-functions/utimes.texi (utimes): Likewise.
21078         * tests/test-open.h (test_open): Add parameters, and test symlink
21079         handling.
21080         * tests/test-open.c (main): Adjust caller.
21081         * tests/test-fcntl-safer.c (main): Likewise.
21082         * modules/open-tests (Depends-on): Add stdbool, symlink.
21083         * modules/fcntl-safer-tests (Depends-on): Likewise.
21084         * tests/test-openat.c (main): Add test-open tests.
21085
21086         stat: detect FreeBSD bug
21087         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21088         symlink.
21089         * doc/posix-functions/stat.texi (stat): Document the bug.
21090         * tests/test-stat.h (test_stat_func): Add argument.
21091         * tests/test-stat.c (main): Adjust caller.
21092         * tests/test-fstatat.c (main): Likewise.
21093         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21094         Reported by Jim Meyering.
21095
21096 2009-11-09  James Youngman  <jay@gnu.org>
21097
21098         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21099         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21100
21101 2009-11-08  Jim Meyering  <meyering@redhat.com>
21102
21103         utimens: remove invalid futimesat call
21104         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21105         It used the file descriptor of the target file as the DIR_FD
21106         parameter and NULL as the file name.  That caused failure with
21107         errno == EFAULT on FreeBSD-8.0-rc2
21108
21109 2009-11-07  Eric Blake  <ebb9@byu.net>
21110
21111         fflush, freadseek: use fseeko, not fseek
21112         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21113         (clear_ungetc_buffer): Avoid potential problems on large files.
21114         * lib/freadseek.c (freadseek): Likewise.
21115         * modules/freadseek (Depends-on): Add fseeko.
21116         * modules/fseek (configure.ac): Set a witness.
21117         * tests/test-fflush.c (main): Use fseeko.
21118         * tests/test-fpurge.c (fseek): Disable link warning.
21119         * tests/test-freadable.c (fseek): Likewise.
21120         * tests/test-freading.c (fseek): Likewise.
21121         * tests/test-fseeko.c (fseek): Likewise.
21122         * tests/test-ftell.c (fseek): Likewise.
21123         * tests/test-ftello.c (fseek): Likewise.
21124         * tests/test-fwritable.c (fseek): Likewise.
21125         * tests/test-fwriting.c (fseek): Likewise.
21126
21127 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21128
21129         * modules/memchr (Depends-on): Drop getpagesize dependency.
21130
21131 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21132
21133         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21134         Reported by Ludovic Courtès.
21135         * build-aux/pmccabe2html: Improve example usage.
21136         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21137
21138 2009-11-06  Jim Meyering  <meyering@redhat.com>
21139
21140         do-release-commit-and-tag: New module.
21141         Automate the release-commit and tag process.
21142         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21143         * modules/do-release-commit-and-tag: New file.
21144         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21145
21146 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21147
21148         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21149         because test-select.c uses inet_pton.
21150
21151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21152
21153         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21154         GETADDRINFO_LIB.  Bump serial number.
21155         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21156         Suggested by Eric Blake <ebb9@byu.net>.
21157
21158 2009-11-05  Eric Blake  <ebb9@byu.net>
21159
21160         strtod: detect darwin bug
21161         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21162         Reported by Leo Davis.
21163
21164         freopen-safer: new module
21165         * modules/freopen-safer: New module.
21166         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21167         * lib/freopen-safer.c (freopen_safer): New file.
21168         * lib/stdio-safer.h (freopen_safer): New declaration.
21169         * lib/stdio--.h (freopen): New override.
21170         * MODULES.html.sh (File stream based Input/Output): Mention it.
21171         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21172         freopen-safer module.
21173         * doc/posix-functions/stderr.texi (stderr): Likewise.
21174         * doc/posix-functions/stdin.texi (stdin): Likewise.
21175         * doc/posix-functions/stdout.texi (stdout): Likewise.
21176         * modules/freopen-safer-tests: New test.
21177         * tests/test-reopen-safer.c: New file.
21178
21179 2009-11-05  Jim Meyering  <meyering@redhat.com>
21180
21181         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21182         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21183
21184 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21185
21186         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21187
21188 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21189
21190         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21191
21192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21193
21194         Fix link error.
21195         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21196         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21197
21198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21199
21200         * tests/test-func.c: Also test value of __func__.
21201
21202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21203
21204         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21205         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21206
21207 2009-11-05  Bruno Haible  <bruno@clisp.org>
21208
21209         Fix link error.
21210         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21211         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21212         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21213
21214 2009-11-05  Bruno Haible  <bruno@clisp.org>
21215
21216         Tests for module 'inet_pton'.
21217         * modules/inet_pton-tests: New file.
21218         * tests/test-inet_pton.c: New file.
21219
21220 2009-11-05  Bruno Haible  <bruno@clisp.org>
21221
21222         Tests for module 'inet_ntop'.
21223         * modules/inet_ntop-tests: New file.
21224         * tests/test-inet_ntop.c: New file.
21225
21226 2009-11-04  Eric Blake  <ebb9@byu.net>
21227
21228         stdlib-safer: wrap all mkstemp variants
21229         * modules/mkostemp (configure.ac): Set witness.
21230         * modules/mkostemps (configure.ac): Likewise.
21231         * modules/mkstemps (configure.ac): Likewise.
21232         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21233         (mkstemps_safer): Wrap more functions.
21234         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21235         wrapping.
21236         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21237         (mkstemps_safer): Implement the wrappers.
21238
21239         mkstemps, mkostemps: new modules
21240         * modules/mkostemps: New module.
21241         * modules/mkstemps: Likewise.
21242         * lib/mkostemps.c (mkostemps): New file.
21243         * lib/mkstemps.c (mkstemps): Likewise.
21244         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
21245         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
21246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
21247         * modules/stdlib (Makefile.am): Substitute them.
21248         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
21249         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
21250         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21251         * doc/gnulib.texi (Glibc stdlib.h): Include them.
21252         * MODULES.html.sh (File system functions): Mention them.
21253
21254         tempname: resync from glibc
21255         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
21256         same values for __GT_FILE as glibc.  Abort even when assertions
21257         are disabled.
21258         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
21259         match its value otherwise.  Allow idempotent inclusion.
21260         * lib/mkdtemp.c (mkdtemp): Adjust caller.
21261         * lib/mkostemp.c (mkostemp): Likewise.
21262         * lib/mkstemp.c (mkstemp): Likewise.
21263         * lib/tmpfile.c (tmpfile): Likewise.
21264         * NEWS: Document this.
21265
21266         utimens: fix use of futimens on older Linux
21267         * lib/utimens.c (fdutimens): Use updated, rather than original,
21268         timespec to avoid bug in older Linux kernel.
21269         Reported by Simon Josefsson.
21270
21271 2009-11-04  Bruno Haible  <bruno@clisp.org>
21272
21273         Make num_processors more flexible and consistent.
21274         * lib/nproc.h (enum nproc_query): New type.
21275         (num_processors): Add a 'query' argument.
21276         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
21277         (num_processors): Add a 'query' argument. Test the value of the
21278         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
21279         mingw, count the number of CPUs available for the current process.
21280         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
21281         Check for sched_getaffinity and sched_getaffinity_np.
21282         * modules/nproc (Depends-on): Add c-ctype, extensions.
21283         * NEWS: Mention the change.
21284
21285 2009-11-03  Bruno Haible  <bruno@clisp.org>
21286
21287         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
21288
21289 2009-11-03  Jim Meyering  <meyering@redhat.com>
21290
21291         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
21292         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
21293         if it is defined.
21294
21295 2009-11-02  Eric Blake  <ebb9@byu.net>
21296
21297         mktime, timegm: share common declaration
21298         * lib/mktime-internal.h: New file.
21299         * lib/mktime.c: Use it rather than open-coding a declaration.
21300         * lib/timegm.c: Likewise.
21301         * modules/mktime (Files): Ship it.
21302         * modules/timegm (Files): Likewise.
21303         Suggested by Bruno Haible.
21304
21305         test-update-copyright: update test to match script changes
21306         * tests/test-update-copyright.sh: Avoid hard-coding perl
21307         location.  Don't update *.bak created by earlier runs.
21308
21309 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21310             Simon Josefsson  <simon@josefsson.org>
21311             Bruno Haible  <bruno@clisp.org>
21312
21313         Fix link error on Solaris 8.
21314         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
21315         also in libnsl. Define also INET_PTON_LIB.
21316         * modules/inet_pton (Link): New section.
21317
21318 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21319             Bruno Haible  <bruno@clisp.org>
21320
21321         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
21322         * modules/inet_ntop (Link): New section.
21323         Reported by Boyan Kasarov <bkasarov@gmail.com>.
21324
21325 2009-11-02  Eric Blake  <ebb9@byu.net>
21326
21327         maint: avoid compiler warnings in m4 macros
21328         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
21329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
21330
21331 2009-11-02  Simon Josefsson  <simon@josefsson.org>
21332
21333         * m4/pmccabe2html.m4: Remove file.
21334         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
21335         function.  Change maintainer.
21336         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
21337         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
21338         Courtès).
21339
21340 2009-10-31  Eric Blake  <ebb9@byu.net>
21341
21342         fseeko: fix m4 regression
21343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
21344         regression from 2009-10-27.
21345         Reported by Ralf Wildenhues.
21346
21347 2009-10-31  Jim Meyering  <meyering@redhat.com>
21348
21349         inttostr: aesthetics and improved (compile-time) safety
21350         Define inttype_is_signed rather than inttype_is_unsigned,
21351         since the sole use is via "#if inttype_is_signed".
21352         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
21353         inttype_is_unsigned.
21354         * lib/offtostr.c (inttype_is_signed): Likewise.
21355         * lib/uinttostr.c (inttype_is_signed): Likewise.
21356         * lib/umaxtostr.c (inttype_is_signed): Likewise.
21357         * lib/inttostr.c (inttostr): Use verify to cross-check the
21358         inttype_is_signed value and the signedness of the actual type.
21359         * modules/inttostr (Depends-on): Add verify.
21360
21361 2009-10-30  Eric Blake  <ebb9@byu.net>
21362
21363         build: avoid compiler warnings
21364         * lib/fchmodat.c (lchmod): Mark unused variables.
21365         * lib/getopt.c (_getopt_initialize): Likewise.
21366         * lib/mktime.c (__mktime_internal): Provide prototype.
21367         * lib/inttostr.c (inttostr): Avoid compiler warning even with
21368         older gcc that do not understand #pragma GCC diagnostic.
21369         * lib/uinttostr.c (inttype_is_unsigned): Define.
21370         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
21371
21372 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21373
21374         stat: fix compilation on AIX
21375         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
21376         only see struct stat64.
21377
21378 2009-10-30  Eric Blake  <ebb9@byu.net>
21379
21380         exclude: make more robust
21381         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
21382         rather than masking a coding bug.
21383         Suggested by Bruno Haible.
21384
21385 2009-10-30  Jim Meyering  <meyering@redhat.com>
21386
21387         perl scripts: remove #!/usr/bin/perl in favor of more portable...
21388         Rather than putting #!/usr/bin/perl on the first line,
21389         start with a variant of what's recommended by "man perlrun" that
21390         invokes the first "perl" program from your shell's search path.
21391         * build-aux/gitlog-to-changelog: Replace #!... as above.
21392         Add a "Local Variables" perl mode setting.
21393         Prompted by a patch from Ludovic Courtès.
21394         Improved by Eric Blake.
21395         * build-aux/useless-if-before-free: Likewise.
21396         * build-aux/announce-gen: Likewise.
21397         * build-aux/update-copyright: Likewise.
21398
21399 2009-10-29  Eric Blake  <ebb9@byu.net>
21400
21401         filenamecat-lgpl: adjust clients
21402         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
21403         filenamecat.
21404         * modules/renameat (Depends-on): Likewise.
21405
21406         filenamecat: split into filenamecat-lgpl
21407         * modules/filenamecat-lgpl: New module.
21408         * modules/filenamecat (Files): Move library-safe files into
21409         filenamecat-lgpl.
21410         (Depends-on): Add filenamecat-lgpl.
21411         (configure.ac): Declare witness.
21412         * lib/filenamecat.h (file_name_concat): Only declare when using
21413         GPL module.
21414         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
21415         Move...
21416         * lib/filenamecat-lgpl.c: ...into new file.
21417         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
21418         (gl_FILE_NAME_CONCAT): Use it.
21419         * MODULES.html.sh (File system functions): Mention new module.
21420
21421         argp: avoid memory leak
21422         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
21423         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
21424         base_name, since the latter malloc()s and can call exit().
21425         Leak introduced 2006-07-03.
21426
21427         dirname-lgpl: adjust clients that don't need full dirname
21428         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
21429         * modules/filenamecat (Depends-on): Likewise.
21430         * modules/linkat (Depends-on): Likewise.
21431         * modules/mkancesdirs (Depends-on): Likewise.
21432         * modules/mkdir (Depends-on): Likewise.
21433         * modules/openat (Depends-on): Likewise.
21434         * modules/savewd (Depends-on): Likewise.
21435         * modules/rename (Depends-on): Likewise.
21436         (License): Relax license.
21437         * modules/mkdir-tests (Depends-on): Drop progname.
21438         (Makefile.am): Delete unneeded LDADD.
21439         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
21440
21441         dirname: split into dirname-lgpl
21442         * modules/dirname-lgpl: New module.
21443         * modules/dirname (Files): Move library-safe files into
21444         dirname-lgpl.
21445         (Depends-on): Add dirname-lgpl.
21446         (configure.ac): Declare witness.
21447         * modules/double-slash-root (License): Relax license.
21448         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
21449         module.
21450         * lib/dirname.c (dir_len, mdir_name): Move...
21451         * lib/dirname-lgpl.c: ...into new file.
21452         * lib/basename.c (last_component, base_len): Move...
21453         * lib/basename-lgpl.c: ...into new file.
21454         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
21455         (gl_DIRNAME): Use it.
21456         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
21457         Mention new module.
21458         * modules/dirname-tests (Depends-on): Add progname.
21459         * tests/test-dirname.c (program_name): Delete.
21460
21461         mkdir: make safe for libraries
21462         * modules/mkdir (Depends-on): Drop xalloc.
21463         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
21464         exit.
21465
21466         tests: avoid some compiler warnings
21467         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
21468         literals.
21469         * tests/test-memchr.c (main): Avoid type mismatch.
21470         * tests/test-arpa_inet.c (main): Avoid unused parameters.
21471         * tests/test-base64.c (main): Likewise.
21472         * tests/test-getdelim.c (main): Likewise.
21473         * tests/test-gethostname.c (main): Likewise.
21474         * tests/test-getline.c (main): Likewise.
21475         * tests/test-netinet_in.c (main): Likewise.
21476         * tests/test-select.c (open_server_socket, main): Likewise.
21477         * tests/test-select-stdin.c (main): Likewise.
21478         * tests/test-sockets.c (main): Likewise.
21479         * tests/test-strsignal.c (main): Likewise.
21480         * tests/test-sys_select.c (main): Likewise.
21481         * tests/test-sys_socket.c (main): Likewise.
21482         * tests/test-u64.c (main): Likewise.
21483         * tests/test-xfprintf-posix.c (main): Likewise.
21484         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
21485
21486         sockets: avoid compiler warning
21487         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
21488
21489         maint: detect usage(1) and other suspicious exits
21490         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
21491
21492 2009-10-29  Jim Meyering  <meyering@redhat.com>
21493
21494         timespec: long-to-int truncation could make timespec_cmp malfunction
21495         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
21496         a multiple of 2^32 nanoseconds as no difference.
21497
21498 2009-10-28  Jim Meyering  <meyering@redhat.com>
21499
21500         fprintftime: wrap macro code argument in "do {...} while(0)"
21501         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
21502         cpy macro must be a statement that can be followed by a semicolon.
21503         Now that the else clause contains a comment and is hence longer
21504         than one line, I require curly braces.  That in turn requires
21505         that we wrap this code block in the standard do...while(0).
21506
21507         fprintftime: remove stray semicolon from previous change
21508         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
21509
21510         fprintftime: avoid a warning about ignored fwrite return value
21511         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
21512         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
21513         that is unsafe.
21514         * modules/fprintftime (Depends-on): Add ignore-value.
21515
21516         exclude: avoid an unwarranted warning
21517         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
21518
21519 2009-10-27  Eric Blake  <ebb9@byu.net>
21520
21521         fseek: avoid compilation failure when fflush is replaced
21522         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
21523         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
21524         module is in use.
21525         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
21526         module is not in use; since REPLACE_FSEEK worked otherwise.
21527         (GNULIB_FTELLO): Likewise for ftell.
21528         Reported by Ian Beckwith and others.
21529
21530 2009-10-27  Bruno Haible  <bruno@clisp.org>
21531
21532         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
21533         Reported by Jim Meyering.
21534
21535 2009-10-27  Jim Meyering  <jim@meyering.net>
21536             Bruno Haible  <bruno@clisp.org>
21537
21538         Avoid warning despite dropping the return value of fwrite.
21539         * lib/unicodeio.c: Include ignore-value.h.
21540         (fwrite_success_callback): Explicitly ignore fwrite's return value.
21541         * modules/unicodeio (Depends-on): Add ignore-value.
21542
21543 2009-10-26  Eric Blake  <ebb9@byu.net>
21544
21545         areadlinkat: fix fallback path
21546         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
21547         pointer and zero.
21548
21549 2009-10-22  Pádraig Brady  <P@draigBrady.com>
21550
21551         Use a better IO block size for modern systems
21552         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
21553         * lib/md2.c: Likewise.
21554         * lib/md4.c: Likewise.
21555         * lib/md5.c: Likewise.
21556         * lib/sha1.c: Likewise.
21557         * lib/sha256.c: Likewise.
21558         * lib/sha512.c: Likewise.
21559
21560 2009-10-22  Eric Blake  <ebb9@byu.net>
21561
21562         tests: avoid several compiler warnings
21563         * tests/test-getcwd.c (main): Avoid buffer underflow.
21564         * tests/test-getdate.c (main): String literals are not safe with
21565         putenv, so use setenv.  Declare unused argument.
21566         * modules/getdate-tests (Depends-on): Add setenv.
21567         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
21568         problems with string literals in char *.
21569         * tests/test-hash.c (main): Avoid shadowing declaration.
21570         (insert_new): Treat string literals as char const *.
21571         * tests/test-getopt.h (test_getopt): Likewise.
21572         (getopt_loop): Alter types to minimize casting elsewhere.
21573         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
21574         (test_getopt_long_posix): Likewise.
21575         (do_getopt_long): Add wrapper to minimize casting.
21576         * tests/test-atexit.c (clear_temp_file): Use void.
21577         * tests/test-areadlink-with-size.c (main): Declare unused
21578         arguments.
21579         * tests/test-areadlink.c (main): Likewise.
21580         * tests/test-areadlinkat-with-size.c (main): Likewise.
21581         * tests/test-areadlinkat.c (main): Likewise.
21582         * tests/test-canonicalize-lgpl.c (main): Likewise.
21583         * tests/test-canonicalize.c (main): Likewise.
21584         * tests/test-dirent-safer.c (main): Likewise.
21585         * tests/test-dirname.c (main): Likewise.
21586         * tests/test-dup2.c (main): Likewise.
21587         * tests/test-fchdir.c (main): Likewise.
21588         * tests/test-fcntl-h.c (main): Likewise.
21589         * tests/test-fcntl-safer.c (main): Likewise.
21590         * tests/test-fdopendir.c (main): Likewise.
21591         * tests/test-fdutimensat.c (main): Likewise.
21592         * tests/test-fflush.c (main): Likewise.
21593         * tests/test-filenamecat.c (main): Likewise.
21594         * tests/test-filevercmp.c (main): Likewise.
21595         * tests/test-fopen-safer.c (main): Likewise.
21596         * tests/test-fopen.c (main): Likewise.
21597         * tests/test-fpending.c (main): Likewise.
21598         * tests/test-fpurge.c (main): Likewise.
21599         * tests/test-freading.c (main): Likewise.
21600         * tests/test-fstatat.c (main): Likewise.
21601         * tests/test-fsync.c (main): Likewise.
21602         * tests/test-futimens.c (main): Likewise.
21603         * tests/test-getndelim2.c (main): Likewise.
21604         * tests/test-gettimeofday.c (main): Likewise.
21605         * tests/test-getopt.c (main): Likewise.
21606         * tests/test-i-ring.c (main): Likewise.
21607         * tests/test-inttypes.c (main): Likewise.
21608         * tests/test-link.c (main): Likewise.
21609         * tests/test-lstat.c (main): Likewise.
21610         * tests/test-math.c (main): Likewise.
21611         * tests/test-md5.c (main): Likewise.
21612         * tests/test-memchr2.c (main): Likewise.
21613         * tests/test-memrchr.c (main): Likewise.
21614         * tests/test-mkdir.c (main): Likewise.
21615         * tests/test-mkdirat.c (main): Likewise.
21616         * tests/test-mkfifoat.c (main): Likewise.
21617         * tests/test-open.c (main): Likewise.
21618         * tests/test-openat-safer.c (main): Likewise.
21619         * tests/test-openat.c (main): Likewise.
21620         * tests/test-quotearg.c (main): Likewise.
21621         * tests/test-rawmemchr.c (main): Likewise.
21622         * tests/test-readlink.c (main): Likewise.
21623         * tests/test-remove.c (main): Likewise.
21624         * tests/test-rename.c (main): Likewise.
21625         * tests/test-renameat.c (main): Likewise.
21626         * tests/test-rmdir.c (main): Likewise.
21627         * tests/test-sha1.c (main): Likewise.
21628         * tests/test-signal.c (main): Likewise.
21629         * tests/test-sigaction.c (main): Likewise.
21630         * tests/test-stat.c (main): Likewise.
21631         * tests/test-stat-time.c (main): Likewise.
21632         * tests/test-stddef.c (main): Likewise.
21633         * tests/test-stdint.c (main): Likewise.
21634         * tests/test-stdio.c (main): Likewise.
21635         * tests/test-stdlib.c (main): Likewise.
21636         * tests/test-strchrnul.c (main): Likewise.
21637         * tests/test-strerror.c (main): Likewise.
21638         * tests/test-string.c (main): Likewise.
21639         * tests/test-strtod.c (main): Likewise.
21640         * tests/test-strverscmp.c (main): Likewise.
21641         * tests/test-symlink.c (main): Likewise.
21642         * tests/test-symlinkat.c (main): Likewise.
21643         * tests/test-sys_stat.c (main): Likewise.
21644         * tests/test-sys_time.c (main): Likewise.
21645         * tests/test-time.c (main): Likewise.
21646         * tests/test-unistd.c (main): Likewise.
21647         * tests/test-unlink.c (main): Likewise.
21648         * tests/test-unlinkat.c (main): Likewise.
21649         * tests/test-utimens.c (main): Likewise.
21650         * tests/test-utimensat.c (main): Likewise.
21651         * tests/test-version-etc.c (main): Likewise.
21652         * tests/test-wchar.c (main): Likewise.
21653         * tests/test-wctype.c (main): Likewise.
21654         * tests/test-xprintf-posix.c (main): Likewise.
21655         * tests/test-posixtm.c (main): Likewise.
21656         (STREQ): Delete unused macro.
21657         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
21658         shadowed variables.
21659         * tests/test-memchr.c (main): Likewise.
21660
21661 2009-10-21  Eric Blake  <ebb9@byu.net>
21662
21663         areadlinkat: avoid failure on older glibc
21664         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
21665         rather than mis-comparing 0 against FUNC_RESULT of char*.
21666
21667 2009-10-21  Bruno Haible  <bruno@clisp.org>
21668
21669         * modules/stpncpy (License): Relicense under LGPLv2+.
21670         Reported by David Lutterkort <lutter@redhat.com>.
21671
21672 2009-10-20  Eric Blake  <ebb9@byu.net>
21673
21674         utimensat: work around Solaris 9 bug
21675         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
21676         has trailing slash bugs.
21677         * tests/test-lutimens.h (test_lutimens): Enhance test.
21678         * tests/test-utimens.h (test_utimens): Likewise.
21679         * doc/posix-functions/utime.texi (utime): Enhance documentation.
21680         * doc/posix-functions/utimes.texi (utimes): Likewise.
21681         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21682         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
21683         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
21684         * doc/posix-functions/futimens.texi (futimens): Likewise.
21685
21686         fdutimensat: new module
21687         * modules/fdutimensat: New file.
21688         * lib/fdutimensat.c (fdutimensat): Likewise.
21689         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
21690         * MODULES.html.sh (File system functions): Mention module.
21691         * modules/fdutimensat-tests: New test.
21692         * tests/test-fdutimensat.c: Likewise.
21693
21694         doc: regenerate INSTALL
21695         * doc/INSTALL: Reflect recent autoconf update.
21696         * doc/INSTALL.ISO: Likewise.
21697         * doc/INSTALL.UTF-8: Likewise.
21698
21699 2009-10-20  Pádraig Brady  <P@draigBrady.com>
21700
21701         acl: warn if ACL support is not detected
21702         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
21703
21704 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
21705
21706         * lib/nproc.h: Add extern "C" block for C++.
21707
21708 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
21709             Bruno Haible  <bruno@clisp.org>
21710
21711         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
21712         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
21713         * doc/posix-functions/isalpha.texi: Likewise.
21714         * doc/posix-functions/isblank.texi: Likewise.
21715         * doc/posix-functions/iscntrl.texi: Likewise.
21716         * doc/posix-functions/isdigit.texi: Likewise.
21717         * doc/posix-functions/isgraph.texi: Likewise.
21718         * doc/posix-functions/islower.texi: Likewise.
21719         * doc/posix-functions/isprint.texi: Likewise.
21720         * doc/posix-functions/ispunct.texi: Likewise.
21721         * doc/posix-functions/isspace.texi: Likewise.
21722         * doc/posix-functions/isupper.texi: Likewise.
21723         * doc/posix-functions/isxdigit.texi: Likewise.
21724
21725 2009-10-18  Bruno Haible  <bruno@clisp.org>
21726
21727         Tests for module 'isblank'.
21728         * modules/isblank-tests: New file.
21729         * tests/test-isblank.c: New file.
21730
21731         New module 'isblank'.
21732         * lib/isblank.c: New file.
21733         * m4/isblank.m4: New file.
21734         * modules/isblank: New file.
21735         * doc/posix-functions/isblank.texi: Mention the new module.
21736
21737 2009-10-18  Bruno Haible  <bruno@clisp.org>
21738
21739         New module 'ctype'.
21740         * lib/ctype.in.h: New file.
21741         * m4/ctype.m4: New file.
21742         * modules/ctype: New file.
21743         * doc/posix-headers/ctype.texi: Mention the new module.
21744
21745 2009-10-18  Jim Meyering  <meyering@redhat.com>
21746
21747         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
21748         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
21749         right after its initialization, rather than farther down.
21750         Keeping these in close proximity makes it easier to ensure
21751         that each such variable is initialized.  E.g.,
21752
21753             LIB_CLOCK_GETTIME=
21754             AC_SUBST([LIB_CLOCK_GETTIME])
21755
21756         This change also increments these serial numbers.
21757         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
21758         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21760
21761 2009-10-18  Bruno Haible  <bruno@clisp.org>
21762
21763         Don't let environment variables perturb build.
21764         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
21765         (gl_PREREQ_GETHRXTIME): ... not here.
21766
21767 2009-10-18  Bruno Haible  <bruno@clisp.org>
21768
21769         Avoid symlink attack in localcharset module.
21770         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
21771         (O_NOFOLLOW): Define fallback.
21772         (get_charset_aliases): Don't open the file if it is a symbolic link.
21773         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
21774         gl_FCNTL_H.
21775         (gl_FCNTL_H): Require it.
21776         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
21777         * modules/localcharset (Files): Add m4/fcntl_h.m4.
21778         Reported by Fergal Glynn <fglynn@veracode.com>.
21779
21780 2009-10-18  Bruno Haible  <bruno@clisp.org>
21781
21782         Implement nproc for mingw.
21783         * lib/nproc.c: Include <windows.h>
21784         (num_processors): On native Windows platforms, try GetSystemInfo.
21785
21786 2009-10-18  Bruno Haible  <bruno@clisp.org>
21787
21788         Implement nproc for IRIX.
21789         * lib/nproc.c: Include <sys/sysmp.h>.
21790         (num_processors): On IRIX systems, try sysmp.
21791         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
21792
21793 2009-10-18  Bruno Haible  <bruno@clisp.org>
21794
21795         Implement nproc for HP-UX.
21796         * lib/nproc.c: Include <sys/pstat.h>
21797         (num_processors): On HP-UX systems, try pstat_getdynamic.
21798         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
21799         pstat_getdynamic.
21800
21801 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
21802             Bruno Haible  <bruno@clisp.org>
21803
21804         Implement nproc for NetBSD, OpenBSD.
21805         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
21806         (ARRAY_SIZE): New macro.
21807         (num_processors): On BSD systems, try sysctl of HW_NCPU.
21808         * m4/nproc.m4: New file.
21809         * modules/nproc (Files): Add m4/nproc.m4.
21810         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
21811         (Makefile.am): Instead, augment lib_SOURCES.
21812
21813 2009-10-18  Bruno Haible  <bruno@clisp.org>
21814
21815         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
21816         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
21817         sys/param.h.
21818
21819 2009-10-16  Eric Blake  <ebb9@byu.net>
21820
21821         utimensat: new module
21822         * modules/utimensat: New file.
21823         * lib/utimensat.c (utimensat): Likewise.
21824         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21825         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
21826         so we can work around Linux bugs.
21827         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21828         * modules/sys_stat (Makefile.am): Substitute them.
21829         * lib/sys_stat.in.h (utimensat): Declare it.
21830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21831         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21832         * modules/utimensat-tests: New test.
21833         * tests/test-utimensat.c: Likewise.
21834
21835         utimens: let lutimens work on non-symlinks
21836         * lib/utimens.c (lutimens): Fall back to utimens rather than
21837         failing with ENOSYS, when file is not a symlink.
21838         (utimens): Reduce redirection.
21839         * tests/test-lutimens.h (test_lutimens): Update test to cover
21840         non-symlinks.
21841         * tests/test-utimens.h (test_utimens): Update test to cover
21842         symlinks.
21843         * tests/test-utimens.c (main): Update caller.
21844
21845         utimens: cache whether utimensat syscall works
21846         * lib/utimens.c (utimensat_works_really): New cache variable.
21847         (fdutimens, lutimens): Use it to avoid failing syscall.
21848
21849         test-stat-time, test-utimens: improve portability
21850         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
21851         ext4 on alpha, and for cygwin.
21852         * tests/test-utimens-common.h: New file.
21853         (nap): Factor delays into single function.
21854         * tests/test-lutimens.h (test_lutimens): Use new header.
21855         * tests/test-futimens.h (test_futimens): Likewise.
21856         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
21857         timestamps to occur from same machine, as was done previously for
21858         test_utimens.
21859         * modules/utimens-tests (Files): Ship new file.
21860         * modules/futimens-tests (Files): Likewise.
21861         Reported in part by Jim Meyering.
21862
21863         sys_stat: sort replacement declarations
21864         * lib/sys_stat.in.h: Sort declarations.
21865         * lib/futimens.c (futimens): Fix typo.
21866
21867 2009-10-15  Jim Meyering  <meyering@redhat.com>
21868
21869         don't let environment settings perturb build
21870         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
21871         could cause a configure-time and/or build-time malfunction.
21872         Typically, a configure-time function-in-library test is performed
21873         via code like this:
21874
21875           LIB_VAR=
21876           AC_SUBST([LIB_VAR])
21877           prefix_saved_LIBS=$LIBS
21878             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
21879                        [test "$ac_cv_search_FUNC" = "none required" ||
21880                         LIB_VAR=$ac_cv_search_FUNC])
21881           LIBS=$prefix_saved_LIBS
21882
21883         However, in each of the files affected by this change, the LIB_VAR=
21884         initialization was omitted.  Thus, when set in the environment, its
21885         value would propagate into generated Makefiles when FUNC is not found
21886         in LIB_NAME.
21887         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
21888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21890
21891 2009-10-14  Eric Blake  <ebb9@byu.net>
21892
21893         fchdir: avoid infinite recursion in mingw
21894         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
21895         recursing.
21896
21897         test-stat-time: port to mingw
21898         * tests/test-stat-time.c (force_unlink): Return a value.
21899         (test_ctime) [W32]: Fix compilation error.
21900         (nap): Don't call usleep with too large an argument.  Use
21901         force_unlink.
21902         * doc/pastposix-functions/usleep.texi (usleep): Document the
21903         portability issue.
21904
21905 2009-10-13  Jim Meyering  <meyering@redhat.com>
21906
21907         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
21908         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
21909         * modules/pipe-filter-ii: Likewise.
21910         * modules/sys_socket-tests: Likewise.
21911         * modules/tsearch-tests: Likewise.
21912         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
21913         (check): Depend on it.
21914
21915 2009-10-12  Eric Blake  <ebb9@byu.net>
21916
21917         utimens-tests: port to NFS file systems
21918         * tests/test-utimens.h (test_utimens): Refactor utimecmp
21919         comparisons to avoid spurious failures from timestamp drift
21920         between NFS machines.
21921
21922 2009-10-12  Eric Blake  <ebb9@byu.net>
21923
21924         stat-time-tests: minor cleanups
21925         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
21926         * tests/test-stat-time.c (nap): Separate assignment from call.
21927         Suggested by Paolo Bonzini and Bruno Haible.
21928
21929         sys_stat: guarantee struct timespec
21930         * lib/sys_stat.in.h (includes): Always include <time.h>
21931         * modules/sys_stat (Depends-on): Add time.
21932         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
21933         mode_t permission values.
21934         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
21935         get at subsecond timestamps.
21936
21937 2009-10-10  Eric Blake  <ebb9@byu.net>
21938
21939         futimens: new module
21940         * modules/futimens: New file.
21941         * lib/futimens.c (futimens): Likewise.
21942         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
21943         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
21944         we can work around Linux bugs.
21945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21946         * modules/sys_stat (Makefile.am): Substitute them.
21947         * lib/sys_stat.in.h (futimens): Declare it.
21948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21949         * doc/posix-functions/futimens.texi (futimens): Likewise.
21950         * modules/futimens-tests: New test.
21951         * tests/test-futimens.c: Likewise.
21952
21953         utimens: introduce fdutimens
21954         * lib/utimens.h (fdutimens): New prototype.
21955         * lib/utimens.c (gl_futimens): Move guts...
21956         (fdutimens): ...to new interface.
21957         * tests/test-utimens.c (do_fdutimens): Use it.
21958
21959         utimens: add UTIME_NOW and UTIME_OMIT support
21960         * lib/utimens.c (validate_timespec, update_timespec): New helper
21961         functions.
21962         (gl_futimens, lutimens): Use them.
21963         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
21964         stdbool, sys_stat.
21965         (Link): Mention resulting library dependency.
21966         * modules/utimecmp (Link): Likewise.
21967         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
21968         (Makefile.am): Pick up library dependency.
21969         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
21970         definition.
21971         * tests/test-sys_stat.c: Test the definitions.
21972         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
21973         * NEWS: Document library dependency.
21974
21975         utimecmp: support symlink timestamps
21976         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21977         hashing when possible.  Use pathconf when available.
21978         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21979         * modules/utimecmp (Depends-on): Add lstat.
21980
21981         utimens: add lutimens interface
21982         * lib/utimens.c (lutimens): New function.
21983         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21984         * lib/utimens.h (lutimens): Declare new interface.
21985         * tests/test-utimens.c (main): Enhance test.
21986         * tests/test-lutimens.h (test_lutimens): New file.
21987         * modules/utimens-tests (Files): Distribute it.
21988         (Depends-on): Add symlink.
21989         (configure.ac): Check for usleep.
21990
21991         utimens: validate futimens usage
21992         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21993         fewer syscalls on failure later on.  Avoid compiler warning on
21994         mingw.
21995         * modules/utimens (Depends-on): Add dup2.
21996
21997         utimens: add test
21998         * modules/utimens-tests: New test.
21999         * tests/test-utimens.h: New file.
22000         * tests/test-futimens.h: Likewise.
22001         * tests/test-utimens.c: Likewise.
22002
22003         doc: mention timestamp portability issues
22004         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22005         instead.
22006         * doc/posix-functions/utime.texi (utime): Likewise.
22007         * doc/posix-functions/utimes.texi (utimes): Likewise.
22008         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22009         instead.
22010         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22011         module.
22012         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22013         Mention weakness with symlink timestamps.
22014         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22015         to utimensat/futimens instead.
22016         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22017
22018         test-dup2: enhance test
22019         * tests/test-dup2.c (main): Also check AT_FDCWD.
22020
22021         test-stat-time: avoid more spurious failures
22022         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22023         xfs; and avoid race if the two timestamps cross quantization edge.
22024
22025         relocatable: prefer 'file system' over 'filesystem'
22026         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22027         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22028         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22029         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22030         * lib/relocatable.c (compute_curr_prefix): Likewise.
22031
22032 2009-10-10  Jim Meyering  <meyering@redhat.com>
22033
22034         stat-time-tests: check for the usleep function
22035         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22036
22037 2009-10-10  Bruno Haible  <bruno@clisp.org>
22038
22039         * modules/xnanosleep: Put the Link section after the Include section.
22040
22041 2009-10-09  Eric Blake  <ebb9@byu.net>
22042
22043         dup2: work around FreeBSD 6.1 bug
22044         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22045         * doc/posix-functions/dup2.texi (dup2): Document it.
22046         Reported by Nelson H. F. Beebe and Jim Meyering.
22047
22048         test-stat-time: port to buggy NFS clients
22049         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22050         (test_ctime): Also skip test if mtime and ctime are skewed.
22051
22052         maint: prefer 'file system' over 'filesystem'
22053         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22054         * doc/posix-functions/lstat.texi (lstat): Likewise.
22055         * lib/file-has-acl.c (file_has_acl): Likewise.
22056         * lib/fwriteerror.c [TEST]: Likewise.
22057         * tests/test-areadlink.h (test_areadlink): Likewise.
22058         * tests/test-areadlinkat-with-size.c (main): Likewise.
22059         * tests/test-areadlinkat.c (main): Likewise.
22060         * tests/test-canonicalize-lgpl.c (main): Likewise.
22061         * tests/test-canonicalize.c (main): Likewise.
22062         * tests/test-fstatat.c (main): Likewise.
22063         * tests/test-linkat.c (main): Likewise.
22064         * tests/test-lstat.h (test_lstat_func): Likewise.
22065         * tests/test-mkdir.h (test_mkdir): Likewise.
22066         * tests/test-readlink.h (test_readlink): Likewise.
22067         * tests/test-remove.c (main): Likewise.
22068         * tests/test-rename.h (test_rename): Likewise.
22069         * tests/test-renameat.c (main): Likewise.
22070         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22071         * tests/test-symlink.h (test_symlink): Likewise.
22072         * tests/test-symlinkat.c (main): Likewise.
22073         * tests/test-unlink.h (test_unlink_func): Likewise.
22074         * tests/test-unlinkat.c (main): Likewise.
22075
22076         maint: make realtime library usage explicit
22077         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22078         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22079         * modules/settime (Link): Likewise.
22080         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22081
22082         test-stat-time: speed up execution
22083         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22084         warning on mingw.
22085         (nap): New helper function.
22086         (prepare_test): Use it to reduce sleep time.
22087         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22088         execution.
22089         * modules/stat-time-tests (configure.ac): Check for usleep.
22090
22091 2009-10-09  Jim Meyering  <meyering@redhat.com>
22092
22093         selinux-h: always use getfilecon wrappers
22094         * lib/getfilecon.c: New file.
22095         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22096         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22097         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22098         (fgetfilecon): Provide a stub.
22099         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22100         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22101         file unconditionally.
22102         When <selinux/selinux.h> is found, arrange to use wrappers.
22103         * modules/selinux-h (Files): Add getfilecon.c.
22104         (Makefile.am): Substitute include-next-related bits
22105         into the now-always-generated selinux/selinux.h file.
22106         * doc/glibc-functions/lgetfilecon.texi: New file.
22107         * doc/glibc-functions/fgetfilecon.texi: New file.
22108         * doc/glibc-functions/getfilecon.texi: New file.
22109         * doc/glibc-functions/getfilecon-desc.texi: New file.
22110         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22111         which to pull in the new files.
22112         * MODULES.html.sh (Misc): Add selinux-h.
22113
22114 2009-10-08  Jim Meyering  <meyering@redhat.com>
22115
22116         unistd: fix comment typo
22117         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22118
22119 2009-10-08  Eric Blake  <ebb9@byu.net>
22120
22121         areadlink: use SIZE_MAX consistently
22122         * modules/areadlink (Depends-on): Add stdint.
22123         * modules/areadlink-with-size (Depends-on): Likewise.
22124         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22125         gives NULL; drop sys/types, since unistd gives size_t; and add
22126         stdint for SIZE_MAX.
22127         (SIZE_MAX): Rely on headers.
22128         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22129         and add stdint.
22130         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22131         (SIZE_MAX): Likewise.
22132         (INITIAL_BUF_SIZE): Turn into enum.
22133         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22134
22135 2009-10-08  Jim Meyering  <meyering@redhat.com>
22136
22137         areadlinkat: avoid compilation failure
22138         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22139         Fix typo in comment.
22140
22141 2009-10-07  Eric Blake  <ebb9@byu.net>
22142
22143         areadlinkat-with-size: new module
22144         * modules/areadlinkat-with-size: New module.
22145         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22146         * lib/areadlink.h (areadlinkat): Declare it.
22147         * MODULES.html.sh (File system functions): Mention it.
22148         * modules/areadlinkat-with-size-tests: New test.
22149         * tests/test-areadlinkat-with-size.c: New file.
22150
22151         xreadlinkat: new module
22152         * modules/xreadlinkat: New module.
22153         * lib/xreadlinkat.c (xreadlinkat): New file.
22154         * lib/xreadlink.h (xreadlinkat): Declare it.
22155         * MODULES.html.sh (File system functions): Mention it.
22156
22157         areadlinkat: new module
22158         * lib/at-func.c (FUNC_FAIL): New define.
22159         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22160         * modules/areadlinkat: New module.
22161         * lib/linkat.c (areadlinkat): Move...
22162         * lib/areadlinkat.c (areadlinkat): ...to new file.
22163         * lib/areadlink.h (areadlinkat): Declare it.
22164         * modules/linkat (Depends-on): Add areadlinkat.
22165         * MODULES.html.sh (File system functions): Mention it.
22166         * modules/areadlinkat-tests: New test.
22167         * tests/test-areadlinkat.c: New file.
22168
22169         areadlink, areadlink-with-size: add tests
22170         * modules/areadlink-tests: New test.
22171         * modules/areadlink-with-size-tests: Likewise.
22172         * tests/test-areadlink.h: New file.
22173         * tests/test-areadlink.c: Likewise.
22174         * tests/test-areadlink-with-size.c: Likewise.
22175
22176         maint: minor cleanups
22177         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22178         _UNUSED_PARAMETER_ instead.
22179         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22180         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22181         * modules/linkat-tests (Files): Distribute test-link.h.
22182
22183         openat, utimens: whitespace cleanup
22184         * lib/openat.c: Prefer space throughout, rather than mix of 8
22185         spaces vs. tabs.
22186         * lib/at-func.c: Likewise.
22187         * lib/utimens.c: Likewise.
22188
22189         openat: avoid using wrong fd
22190         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22191         working directory chooses same fd.
22192         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22193
22194         mkdir, mkdirat: fix cygwin 1.5.x bug
22195         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22196         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22197         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22198         bug.
22199         (gl_PREREQ_MKDIR): Delete unused macro.
22200         * modules/mkdir (Files): Track file rename.
22201         (configure.ac): Update macro name.
22202         * modules/openat (Depends-on): Add mkdir.
22203         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22204
22205         mkdir, mkdirat: add tests
22206         * modules/mkdir-tests: New test.
22207         * tests/test-mkdir.h: New file.
22208         * tests/test-mkdir.c: Likewise.
22209         * tests/test-mkdirat.c: Likewise.
22210         * modules/openat-tests (Files): Add new files.
22211         (Makefile.am): Run new test.
22212
22213 2009-10-06  Eric Blake  <ebb9@byu.net>
22214
22215         doc: tweak *at function documentation
22216         * doc/posix-functions/faccessat.texi (faccessat): Mention
22217         known issue with replacement.
22218         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22219         * doc/posix-functions/linkat.texi (linkat): Likewise.
22220         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22221         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22222         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22223         * doc/posix-functions/renameat.texi (renameat): Likewise.
22224         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22225
22226         openat: fix GNU/Hurd bug in unlinkat
22227         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22228         broken.
22229         * doc/posix-functions/unlink.texi (unlink): Document this.
22230         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22231
22232         fdopendir: fix GNU/Hurd bug
22233         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22234         allowing non-directory fds.
22235         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22237         * modules/dirent (Makefile.am): Substitute it.
22238         * lib/dirent.in.h (fdopendir): Declare replacement.
22239         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22240         * tests/test-fdopendir.c (main): Test something other than
22241         /dev/null, since on Hurd that behaves like a directory.
22242
22243         test-symlink: port to GNU/Hurd
22244         * tests/test-symlink.h (test_symlink): Relax expected errno.
22245
22246         doc: tweak more cygwin information
22247         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
22248         now compatible with glibc.
22249         * doc/posix-functions/getopt.texi (getopt): Likewise.
22250
22251         getopt-gnu: add another test
22252         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
22253         guarantee behavior relied on by m4.
22254         * tests/test-getopt.c (main): Use it.
22255         * modules/getopt-posix-tests (Depends-on): Add setenv.
22256         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
22257
22258         getopt: fix compilation on darwin
22259         * lib/getopt.in.h (includes): Leave breadcrumbs during system
22260         include.
22261         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
22262         Reported by Ludovic Courtès.
22263
22264 2009-10-06  Bruno Haible  <bruno@clisp.org>
22265
22266         * modules/size_max (Description): Discourage its use.
22267         Reported by Simon Josefsson.
22268
22269 2009-10-06  Jim Meyering  <meyering@redhat.com>
22270
22271         linkat: avoid compilation failure
22272         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
22273
22274 2009-10-05  Eric Blake  <ebb9@byu.net>
22275
22276         linkat: support Linux 2.6.17
22277         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
22278         linkat on Linux, but allow cache variable override.
22279         * lib/linkat.c (rpl_linkat): Define override.
22280         * modules/linkat (Depends-on): Add symlinkat.
22281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
22282         * modules/unistd (Makefile.am): Substitute it.
22283         * lib/unistd.in.h (linkat): Declare replacement.
22284         Reported by Pádraig Brady.
22285
22286         quotearg: port test to systems with C.UTF-8 locale
22287         * tests/test-quotearg.c (struct result_strings): Add another
22288         member, differentiating between C.ASCII and C.UTF-8 handling.
22289         (compare_strings): Add parameter.
22290         (main): Adjust all callers.
22291
22292         getopt: avoid clash with FreeBSD _getopt_internal
22293         * lib/getopt.in.h (_getopt_internal): Override the name.
22294         * lib/getopt_int.h (includes): Pick up any overrides.
22295         Reported by Reuben Thomas.
22296
22297         hash: allow C89 compilation
22298         * lib/hash.c (check_tuning): Move declaration before statement.
22299         Reported by Reuben Thomas.
22300
22301 2009-10-05  Karl Berry  <karl@gnu.org>
22302
22303         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
22304
22305 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
22306             Bruno Haible  <bruno@clisp.org>
22307
22308         * lib/uname.c (uname): Use a table-driven algorithm to compute
22309         Windows NT versions.
22310
22311 2009-10-04  Bruno Haible  <bruno@clisp.org>
22312
22313         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
22314         program_invocation_short_name.
22315         * modules/progname (configure.ac): Test for presence of
22316         program_invocation_short_name.
22317         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22318
22319 2009-10-04  Bruno Haible  <bruno@clisp.org>
22320
22321         * lib/progname.c (set_program_name): Fix comment.
22322         Reported by Jim Meyering.
22323
22324 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22325             Bruno Haible  <bruno@clisp.org>
22326
22327         * lib/uname.c: Include <string.h>.
22328         (uname): Do only one call to GetVersionEx in the common case.
22329
22330 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
22331             Bruno Haible  <bruno@clisp.org>
22332
22333         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
22334         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
22335         (uname): Add support for Windows CE and various non-x86 CPU types.
22336
22337 2009-10-03  Bruno Haible  <bruno@clisp.org>
22338
22339         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
22340         invocation to tests/configure.ac.
22341         Reported by Ian Beckwith <ianb@erislabs.net>.
22342
22343 2009-10-02  Eric Blake  <ebb9@byu.net>
22344
22345         fchdir: avoid compiler warning
22346         * lib/fchdir.c (canonicalize_file_name)
22347         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
22348
22349         test-open: support mingw errno values
22350         * tests/test-open.h (test_open): Relax test.
22351         * tests/test-fopen.h (test_fopen): Likewise.
22352         * tests/test-openat-safer.c (main): Likewise.
22353
22354         open: fix opening directory on mingw
22355         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
22356
22357         test-open: on GNU/Hurd, /dev/null is a directory
22358         * tests/test-fopen.h (main): Rename...
22359         (test_fopen): ...to this.  Use a guaranteed non-directory when
22360         confirming open behavior on trailing slash.
22361         * tests/test-openat-safer.c (main): Likewise.
22362         * tests/test-open.h (main): Likewise....
22363         (test_open): ...to this.
22364         * tests/test-fopen.c (main): Adjust caller.
22365         * tests/test-fopen-safer.c (main): Likewise.
22366         * tests/test-open.c (main): Likewise.
22367         * tests/test-fcntl-safer.c (main): Likewise.
22368         Reported by Samuel Thibault.
22369
22370         rename, fchdir: don't ignore chdir failure
22371         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
22372         * lib/rename.c (rpl_rename) [W32]: Likewise.
22373         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
22374         an empty destination directory if source cannot be renamed,
22375         although there is still possibility for failure.
22376         * doc/posix-functions/rename.texi (rename): Document the race.
22377         Reported by Jim Meyering.
22378
22379         maint: cleanup whitespace in recent commits
22380         * lib/rename.c (rpl_rename): Remove tabs.
22381         * tests/test-link.h (test_link): Likewise.
22382         * lib/fchdir.c (get_name): Likewise.
22383         Reported by Jim Meyering.
22384
22385 2009-10-02  Ben Pfaff  <blp@gnu.org>
22386
22387         relocatable-prog-wrapper: Add missing dependency on
22388         double-slash-root.
22389         * modules/relocatable-prog-wrapper: Add dependency.
22390         Reported by Ian Beckwith <ianb@erislabs.net>.
22391
22392 2009-10-02  Eric Blake  <ebb9@byu.net>
22393
22394         renameat: fix Solaris bugs
22395         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
22396         needed fixing.
22397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
22398         * modules/stdio (Makefile.am): Substitute it.
22399         * lib/stdio.in.h (renameat): Declare replacement.
22400         * lib/renameat.c (rpl_renameat): Implement fix.
22401
22402         renameat: new module
22403         * modules/renameat: New file.
22404         * lib/renameat.c (renameat): Likewise.
22405         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
22406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22407         * modules/stdio (Makefile.am): Substitute them.
22408         * lib/stdio.in.h (renameat): Declare it.
22409         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22410         * doc/posix-functions/renameat.texi (renameat): Likewise.
22411         * modules/renameat-tests: New test.
22412         * tests/test-renameat.c: Likewise.
22413
22414         rename: fix mingw bugs
22415         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
22416         directory overwrite bugs.
22417
22418         rename: fix another cygwin 1.5 bug
22419         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
22420         checks.
22421         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
22422         unnecessary cygwin workarounds.  Also work around bug with moving
22423         full directory onto an empty one.
22424         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
22425
22426         rename-dest-slash: merge into rename module
22427         * modules/rename-dest-slash (Status): Mark obsolete.
22428         (Depends-on): Add rename.
22429         (Files): Let rename do it all.
22430         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
22431         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
22432         * m4/rename-dest-slash.m4: ...so this file can be deleted.
22433         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
22434         * lib/rename.c (rpl_rename): Update comments.
22435
22436         rename: fix cygwin 1.5.x bugs
22437         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
22438         * lib/rename.c (rpl_rename): Work around them.
22439         * modules/rename (Depends-on): Add same-inode.
22440
22441         rename: fix Solaris 10 bug
22442         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22443         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
22444         was the only bug.
22445
22446         rename: fix Solaris 9 bug
22447         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
22448         on non-directory.  Avoid calling exit.
22449         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
22450         strdup.
22451         * modules/rename-tests (Depends-on): Drop lstat.
22452         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
22453         (gl_PREREQ_RENAME): Delete unused macro.
22454
22455         rename-dest-slash: fix NetBSD bug
22456         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
22457         links.
22458         * modules/rename-dest-slash (Depends-on): Add same-inode.
22459
22460         rename-tests: new test, exposes several platform bugs
22461         * modules/rename-tests: New file.
22462         * tests/test-rename.h: Likewise.
22463         * tests/test-rename.c: Likewise.
22464         * doc/posix-functions/rename.texi (rename): Improve documentation,
22465         including bugs that will eventually be fixed in gnulib.
22466
22467 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
22468
22469         * lib/uname.c: Include <stdlib.h>
22470         (uname): Assume version info is available.
22471
22472 2009-10-02  Jim Meyering  <meyering@redhat.com>
22473
22474         gnu-web-doc-update: correct --help output
22475         * build-aux/gnu-web-doc-update: Make --help output relevant.
22476
22477         gnu-web-doc-update: add standard options
22478         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
22479
22480         gnu-web-doc-update: New module.
22481         Use this script to automatically update the on-line web documentation
22482         for your GNU project at http://www.gnu.org/software/$pkg/manual/
22483         * modules/gnu-web-doc-update: New file, from coreutils.
22484         * build-aux/gnu-web-doc-update: New script.
22485
22486 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
22487
22488         link: LoadLibrary is not needed.
22489         * lib/link.c: Use GetModuleHandle.
22490
22491 2009-10-01  Eric Blake  <ebb9@byu.net>
22492
22493         getopt: bump serial number
22494         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
22495         change.
22496
22497         tests: tighten link, rmdir, and remove tests
22498         * tests/test-link.h (includes): No need to use <config.h> here.
22499         Clean up if directory hard link was created, otherwise test for
22500         trailing '.'.
22501         * tests/test-linkat.c (main): Simplify.
22502         * tests/test-remove.c (main): Enhance test for trailing '.'.
22503         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22504
22505 2009-10-01  Jim Meyering  <meyering@redhat.com>
22506
22507         maint.mk: requiring "make major" was annoying, for a "minor" release.
22508         What is intended is "stable", to contrast with alpha and beta,
22509         so require "make stable", not "make major".
22510         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
22511         (get_tool_versions): Likewise.
22512         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
22513
22514 2009-09-30  Ben Pfaff  <blp@gnu.org>
22515
22516         Fix broken build of replacement for Windows tmpfile().
22517         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
22518         flags argument added along with the 'mkostemp' module.
22519
22520 2009-09-28  Bruno Haible  <bruno@clisp.org>
22521
22522         Avoid identifier clash with POSIX function 'remove' defined as a macro.
22523         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
22524         to 'remove_elt'.
22525         (gl_list_remove): Update.
22526         * lib/gl_list.c (gl_list_remove): Update.
22527         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
22528         to 'remove_elt'.
22529         (gl_oset_remove): Update.
22530         * lib/gl_list.c (gl_oset_remove): Update.
22531         Reported by Eric Blake.
22532
22533 2009-09-28  Eric Blake  <ebb9@byu.net>
22534
22535         doc: mention yet more cygwin 1.7 status
22536         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
22537         cygwin.
22538         * doc/glibc-functions/execvpe.texi (execvpe): New file.
22539         * doc/gnulib.texi (Glibc unistd.h): Mention it.
22540
22541         argp: fix test failure
22542         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
22543         that are not upper-case.  Pass correct range to tolower.
22544
22545 2009-09-27  Jim Meyering  <meyering@redhat.com>
22546
22547         test-yesno: work around sparc-dash here-document infelicity
22548         Without this change, the literal \177 byte in a here document
22549         would make dash 0.5.5.1-3 access uninitialized memory.
22550         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
22551         Instead, use a marker, "@", and filter through tr to create the desired
22552         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
22553
22554 2009-09-27  Bruno Haible  <bruno@clisp.org>
22555
22556         Disable untested support for new flavours of ACLs on AIX.
22557         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
22558         progress.
22559         * lib/set-mode-acl.c (qset_acl): Likewise.
22560
22561 2008-12-07  Bruno Haible  <bruno@clisp.org>
22562
22563         Add support for new flavours of ACLs on AIX. (Untested.)
22564         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
22565         (file_has_acl): Add support for newer AIX.
22566         * lib/set-mode-acl.c (qset_acl): Likewise.
22567         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
22568         Rainer Tammer <tammer@tammer.net>.
22569
22570 2009-09-26  Eric Blake  <ebb9@byu.net>
22571
22572         argp: fix compilation of getopt
22573         * lib/getopt.in.h (includes): Use different guard than glibc.
22574         Reported by Sergey Poznyakoff.
22575
22576         doc: mention more cygwin 1.7 status
22577         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
22578         bug.
22579         * doc/posix-functions/execl.texi (execl): Likewise.
22580         * doc/posix-functions/execle.texi (execle): Likewise.
22581         * doc/posix-functions/execlp.texi (execlp): Likewise.
22582         * doc/posix-functions/execv.texi (execv): Likewise.
22583         * doc/posix-functions/execve.texi (execve): Likewise.
22584         * doc/posix-functions/execvp.texi (execvp): Likewise.
22585         * doc/glibc-functions/canonicalize_file_name.texi
22586         (canonicalize_file_name): Cygwin 1.7 now provides this.
22587         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
22588         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
22589         on AT_SYMLINK_NOFOLLOW.
22590
22591 2009-09-24  Eric Blake  <ebb9@byu.net>
22592
22593         test-linkat: make test more robust
22594         * tests/test-linkat.c (main): Avoid collision with EEXIST.
22595
22596         getopt: fix inclusion guards for cygwin
22597         * modules/getopt-posix (Depends-on): Add include-next.
22598         (Makefile.am): Substitute more items in replacement header.
22599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
22600         <getopt.h>.
22601         * lib/getopt.in.h (includes): Use split inclusion guard, and
22602         prefer <getopt.h> over include <unistd.h> when one is present.
22603         (option): Also override name of 'struct option'.
22604
22605         same-inode: revert prior change; it is not yet ready
22606         * NEWS: Undo mention of this change.
22607         * lib/same-inode.h (same-inode.h): Undo tri-state change.
22608         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22609         * lib/cycle-check.c (cycle_check): Likewise.
22610         * lib/same.c (same_name): Likewise.
22611         * lib/at-func2.c (at_func2): Likewise.
22612
22613 2009-09-23  Eric Blake  <ebb9@byu.net>
22614
22615         linkat: new module
22616         * modules/linkat: New file.
22617         * lib/at-func2.c (at_func2): Likewise.
22618         * lib/linkat.c (linkat): Likewise.
22619         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22620         * lib/openat-priv.h (at_func2): Add declaration.
22621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22622         * modules/unistd (Makefile.am): Substitute them.
22623         * lib/unistd.in.h (linkat): Declare it.
22624         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22625         * doc/posix-functions/linkat.texi (linkat): Likewise.
22626         * doc/posix-functions/link.texi (link): Tweak wording.
22627         * tests/test-link.c (main): Move guts...
22628         * tests/test-link.h (test_link): ...into new file.
22629         * modules/linkat-tests: New test.
22630         * tests/test-linkat.c: Likewise.
22631         * modules/link-tests (Files): Ship new file.
22632         (Depends-on): Add stdbool.
22633
22634         dirname: add library-safe mdir_name
22635         * lib/dirname.h (mdir_name): New prototype.
22636         * lib/dirname.c (dir_name): Move guts...
22637         (mdir_name): ...to new function that avoids xalloc_die.
22638
22639         fchdir: another mingw fix
22640         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
22641         * lib/fchdir.c (get_name): New helper method; skips canonicalize
22642         on mingw (where it has not yet been ported), and make it optional
22643         elsewhere.
22644         (_gl_register_fd): Use it.
22645
22646         same-inode: make SAME_INODE tri-state, to port to mingw
22647         * NEWS: Mention this change.
22648         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
22649         st_ino always being 0.
22650         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
22651         * lib/cycle-check.c (cycle_check): Likewise.
22652         * lib/same.c (same_name): Likewise.
22653
22654         lstat: avoid mingw compilation error
22655         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
22656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
22657         lstat ourselves.
22658         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
22659         was adequate.
22660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
22661         the checks for lstat.
22662         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
22663
22664         link: fix test failure on Solaris 9
22665         * lib/link.c (rpl_link): Don't assume link will catch bogus
22666         trailing slash on source.
22667
22668         test-symlinkat: enhance test
22669         * tests/test-readlink.c (main): Move guts...
22670         * tests/test-readlink.h (test_readlink): ...into new file.
22671         * tests/test-symlink.c (main): Move guts...
22672         * tests/test-symlink.h (test_symlink): ...into new file.
22673         * tests/test-symlinkat.c (main): Use new files for further
22674         coverage.
22675         (do_symlink, do_readlink): New helper functions.
22676         * modules/symlink-tests (Files): Ship new file.
22677         (Depends-on): Add stdbool.
22678         * modules/readlink-tests (Files): Ship new file.
22679         (Depends-on): Add stdbool.
22680         * modules/symlinkat-tests (Files): Use new files.
22681
22682 2009-09-23  Eric Blake  <ebb9@byu.net>
22683
22684         readlink: document portability issue with symlink length
22685         * doc/posix-functions/lstat.texi (lstat): Mention that some file
22686         systems have bogus st_size on symlinks, and mention the
22687         areadlink-with-size module.
22688         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22689         * doc/posix-functions/readlink.texi (readlink): Mention the
22690         areadlink module, and ERANGE failure.
22691         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22692         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
22693
22694         readlink: fix Solaris 9 bug with trailing slash
22695         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
22696         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
22697         * doc/posix-functions/readlink.texi (readlink): Document this.
22698         * modules/readlink-tests: New test.
22699         * tests/test-readlink.c: Likewise.
22700
22701         readlink: fix cygwin 1.5.x bug with return type
22702         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
22703         * lib/unistd.in.h (readlink): Use ssize_t.
22704         * lib/readlink.c (readlink): Likewise.
22705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22706         * modules/unistd (Makefile.am): Substitute it.
22707         * lib/unistd.in.h (readlink): Declare replacement.
22708         * doc/posix-functions/readlink.texi (readlink): Document this.
22709
22710         symlink: use throughout gnulib
22711         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
22712         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
22713         symlink is not used.
22714         * modules/symlinkat (Depends-on): Add symlink.
22715         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22716         * modules/canonicalize-tests (Depends-on): Likewise.
22717         * modules/lstat-tests (Depends-on): Likewise.
22718         * modules/openat-tests (Depends-on): Likewise.
22719         * modules/remove-tests (Depends-on): Likewise.
22720         * modules/rmdir-tests (Depends-on): Likewise.
22721         * modules/unlink-tests (Depends-on): Likewise.
22722         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
22723         * tests/test-canonicalize.c (symlink): Likewise.
22724         * tests/test-fstatat.c (symlink): Likewise.
22725         * tests/test-lstat.c (symlink): Likewise.
22726         * tests/test-remove.c (symlink): Likewise.
22727         * tests/test-rmdir.c (symlink): Likewise.
22728         * tests/test-unlink.c (symlink): Likewise.
22729         * tests/test-unlinkat.c (symlink): Likewise.
22730
22731         symlink: new module, for Solaris 9 bug
22732         * modules/symlink: New file.
22733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22734         * lib/symlink.c: Likewise.
22735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22736         * modules/unistd (Makefile.am): Substitute them.
22737         * lib/unistd.in.h (symlink): Declare replacement.
22738         * MODULES.html.sh (File system functions): Mention it.
22739         * doc/posix-functions/symlink.texi (symlink): Likewise.
22740         * modules/symlink-tests: New test.
22741         * tests/test-symlink.c: Likewise.
22742
22743 2009-09-23  Bruno Haible  <bruno@clisp.org>
22744
22745         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
22746         when needed.
22747         Test case: gnulib-tool --import --with-tests atexit inttypes.
22748         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
22749
22750 2009-09-23  Bruno Haible  <bruno@clisp.org>
22751
22752         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
22753         subcommand, not in a subshell.
22754
22755 2009-09-22  Eric Blake  <ebb9@byu.net>
22756
22757         unistd: sort replacement declarations
22758         * lib/unistd.in.h: Sort declarations.
22759
22760         open, openat: minor optimization
22761         * lib/open.c (open): If open succeeded, len is non-zero.
22762         * lib/openat.c (rpl_openat): Likewise.
22763
22764         link-follow: ensure correct result
22765         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
22766         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
22767         distinguish between possible failures.
22768
22769 2009-09-21  Eric Blake  <ebb9@byu.net>
22770
22771         fts: avoid compiler warning
22772         * lib/fts.c (dirent_inode_sort_may_be_useful)
22773         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
22774
22775 2009-09-19  Bruno Haible  <bruno@clisp.org>
22776
22777         * lib/progreloc.c (canonicalize_file_name): New declaration.
22778
22779 2009-09-19  Eric Blake  <ebb9@byu.net>
22780
22781         link: fix quoting
22782         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
22783
22784         openat: fix openat bugs on Solaris 9
22785         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
22786         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
22787         * modules/openat (Depends-on): Add open.
22788         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
22789         * modules/fcntl-h (Makefile.am): Substitute it.
22790         * lib/fcntl.in.h (openat): Declare replacement.
22791         * doc/posix-functions/openat.texi (openat): Document this.
22792
22793         openat: move fstatat and unlinkat into correct files
22794         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
22795         compiled.
22796         * lib/openat.c (fstatat, unlinkat): Move...
22797         * lib/fstatat.c (fstatat): ...into correct files.
22798         * lib/unlinkat.c (unlinkat): Likewise.
22799
22800         openat: fix unlinkat bugs on Solaris 9
22801         * lib/unlinkat.c (unlinkat): New file.
22802         * modules/openat (Depends-on): Add unlink.
22803         (Files): Distribute it.
22804         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
22805         trailing slash behavior is broken.
22806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22807         * modules/unistd (Makefile.am): Substitute it.
22808         * lib/unistd.in.h (unlinkat): Declare replacement.
22809         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
22810
22811         openat: fix fstatat bugs on Solaris 9
22812         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
22813         stat.
22814         * doc/posix-functions/fstatat.texi (fstatat): Document this.
22815
22816         test-unlinkat: enhance test, to expose Solaris 9 bug
22817         * tests/test-unlink.c (main): Factor guts...
22818         * tests/test-unlink.h (test_rmdir_func): ...into new file.
22819         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
22820         * tests/test-rmdir.c (main): Adjust caller.
22821         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
22822         (unlinker): New helper function.
22823         (rmdirat): Enhance check.
22824         * modules/rmdir-tests (Depends-on): Add stdbool.
22825         * modules/unlink-tests (Depends-on): Likewise.
22826         (Files): Add test-unlink.h.
22827         * modules/openat-tests (Files): Likewise.
22828         (Depends-on): Add unlinkdir.
22829
22830         test-fstatat: new test, to expose Solaris 9 bugs
22831         * tests/test-stat.c (main): Factor guts...
22832         * tests/test-stat.h (test_stat_func): ...into new file.
22833         * tests/test-lstat.c (main): Factor guts...
22834         * tests/test-lstat.h (test_lstat_func): ...into new file.
22835         * tests/test-fstatat.c: New file.
22836         * modules/stat-tests (Files): Add test-stat.h.
22837         * modules/lstat-tests (Files): Add test-lstat.h.
22838         (Depends-on): Add stdbool.
22839         * modules/openat-tests (Depends-on): Add pathmax.
22840         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
22841         (Makefile.am): Run new test.
22842
22843         remove: new module, for mingw and Solaris 9 bugs
22844         * modules/remove: New file.
22845         * lib/remove.c: Likewise.
22846         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
22847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
22848         * modules/stdio (Makefile.am): Use them.
22849         * lib/stdio.in.h (remove): Declare replacement.
22850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22851         * doc/posix-functions/remove.texi (remove): Likewise.
22852         * modules/remove-tests: New test.
22853         * tests/test-remove.c: Likewise.
22854
22855         unlink: new module, for Solaris 9 bug
22856         * modules/unlink: New file.
22857         * lib/unlink.c: Likewise.
22858         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22860         * modules/unistd (Makefile.am): Use them.
22861         * lib/unistd.in.h (stat): Declare replacement.
22862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22863         * doc/posix-functions/unlink.texi (unlink): Likewise.
22864         * modules/unlink-tests: New test.
22865         * tests/test-unlink.c: Likewise.
22866
22867         lstat: fix Solaris 9 bug
22868         * lib/lstat.c (lstat): Also check for trailing slash on
22869         non-symlink, non-directories.  Use stat module to simplify logic.
22870         * doc/posix-functions/lstat.texi (lstat): Document it.
22871         * modules/lstat-tests (Depends-on): Add errno, same-inode.
22872         (configure.ac): Check for symlink.
22873         * tests/test-lstat.c (main): Add more tests.
22874
22875         stat: add as dependency to other modules
22876         * modules/chown (Depends-on): Add stat.
22877         * modules/euidaccess (Depends-on): Likewise.
22878         * modules/fchdir (Depends-on): Likewise.
22879         * modules/isdir (Depends-on): Likewise.
22880         * modules/link (Depends-on): Likewise.
22881         * modules/lstat (Depends-on): Likewise.
22882         * modules/mkdir-p (Depends-on): Likewise.
22883         * modules/modechange (Depends-on): Likewise.
22884         * modules/open (Depends-on): Likewise.
22885         * modules/readlink (Depends-on): Likewise.
22886         * modules/same (Depends-on): Likewise.
22887
22888         stat: fix Solaris 9 bug
22889         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
22890         slash.
22891         * lib/stat.c (rpl_stat): Work around it.
22892         * doc/posix-functions/stat.texi (stat): Update documentation.
22893
22894         stat: new module, for mingw bug
22895         * modules/stat: New file.
22896         * lib/stat.c: Likewise.
22897         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22899         * modules/sys_stat (Makefile.am): Use them.
22900         * lib/sys_stat.in.h (stat): Declare replacement.
22901         * lib/openat.c (fstatat): Deal with lstat and stat being function
22902         macros.
22903         * modules/openat (Depends-on): Add inline.
22904         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22905         * doc/posix-functions/stat.texi (stat): Likewise.
22906         * modules/stat-tests: New test.
22907         * tests/test-stat.c: Likewise.
22908
22909 2009-09-19  Jim Meyering  <meyering@redhat.com>
22910
22911         syntax-check: detect unnecessary inclusion of canonicalize.h
22912         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
22913
22914 2009-09-19  Eric Blake  <ebb9@byu.net>
22915
22916         canonicalize-lgpl: adjust clients to use correct header
22917         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22918         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
22919         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
22920         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
22921         * lib/progreloc.c (includes): Likewise.
22922
22923 2009-09-19  Jim Meyering  <meyering@redhat.com>
22924
22925         test-posixtm.c: correct a comment
22926         * tests/test-posixtm.c: Correct first-line comment.
22927         Spotted by Eric Blake.
22928
22929 2009-09-16  Jim Meyering  <meyering@redhat.com>
22930
22931         posixtm-tests: make T const-correct; add a test case
22932         * tests/test-posixtm.c (T): Declare const.
22933         Add a test for -(2^31+1).
22934         Remove useless can-succeed-only-in-2002 test.
22935
22936         posixtm-tests: adjust the sole failing test
22937         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
22938         expected output matches what mktime now produces.  Cross-checked via
22939         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
22940
22941         posixtm: move #ifdef'd tests into a new module
22942         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
22943         * tests/test-posixtm.c: ... this new file.
22944         * modules/posixtm-tests: New module.
22945
22946 2009-09-19  Eric Blake  <ebb9@byu.net>
22947
22948         openat: simplify use of at-func.c
22949         * lib/at-func.c (includes): Include prerequisites here, to
22950         simplify requirements on client files.
22951         * lib/openat-priv.h: Add double-inclusion guard.
22952         * lib/faccessat.c (includes): Simplify.
22953         * lib/fchmodat.c (includes): Likewise.
22954         * lib/fchownat.c (includes): Likewise.
22955         * lib/mkdirat.c (includes): Likewise.
22956         * lib/mkfifoat.c (includes): Likewise.
22957         * lib/symlinkat.c (includes): Likewise.
22958
22959         openat: allow return of fd 0
22960         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
22961         * modules/save-cwd (Depends-on): Replace fcntl-safer with
22962         unistd-safer.
22963         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
22964         <fcntl.h>; this module does not leak fds.
22965         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
22966         must be allowed to return 0, leaving openat_safer to add the
22967         safety.
22968         (openat_permissive): Avoid writing to just-opened fd 2 if
22969         restoring the current directory fails.
22970         * lib/openat-die.c (openat_restore_fail): Add comment.
22971         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
22972         (save_cwd): Guarantee safe fd, but without use of open_safer.
22973         * tests/test-openat.c: New test.
22974         * modules/openat-tests (Files, Makefile.am): Distribute and build
22975         new file.
22976
22977         relocatable-prog-wrapper: fix build
22978         * modules/relocatable-prog-wrapper (Files): Update name of
22979         canonicalize m4 file, broken on 2009-09-17.
22980         Reported by emad hajjar <aleppos@hotmail.com>.
22981
22982 2009-09-19  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22985         * lib/safe-alloc.c: Likewise.
22986         Reported by Ian Beckwith <ianb@erislabs.net>.
22987
22988 2009-09-18  Bruno Haible  <bruno@clisp.org>
22989
22990         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22991         Reported by <erobles@sensacd.com.mx>.
22992
22993 2009-09-17  Eric Blake  <ebb9@byu.net>
22994
22995         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22996         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22997         slashes when checking if last component is missing.
22998         * tests/test-canonicalize.c (main): Test this.
22999
23000         canonicalize, canonicalize-lgpl: honor // if distinct from /
23001         * modules/canonicalize (Files): Add double-slash-root.m4.
23002         * modules/canonicalize-lgpl (Files): Likewise.
23003         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23004         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23005         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23006         fallback definition.
23007         (canonicalize_filename_mode): Use it to protect //.
23008         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23009         (__realpath): Likewise.
23010         * tests/test-canonicalize.c (main): Test this.
23011         * tests/test-canonicalize-lgpl.c (main): Likewise.
23012         * modules/canonicalize-tests (Depends-on): Add same-inode.
23013         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23014
23015         canonicalize-lgpl: fix glibc bug with trailing slash
23016         * m4/canonicalize-lgpl.m4: Move contents...
23017         * m4/canonicalize.m4: ...here.
23018         (gl_CANONICALIZE_LGPL): Factor realpath check...
23019         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23020         glibc 2.3.5 bug, fixed 2005-04-27.
23021         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23022         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23023         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23024         * modules/canonicalize-lgpl (Files): Manage file rename.
23025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23026         * modules/stdlib (Makefile.am): Substitute witness.
23027         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23028         is needed.
23029         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23030         replacement is required.
23031         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23032         * doc/glibc-functions/canonicalize_file_name.texi
23033         (canonicalize_file_name): Document this.
23034         * doc/posix-functions/realpath.texi (realpath): Likewise.
23035
23036         canonicalize-lgpl: reject non-directory with trailing slash
23037         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23038         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23039         catches failures in glibc 2.3.5.
23040         * tests/test-canonicalize.c (main): Likewise.
23041
23042         canonicalize-lgpl: use native realpath if it works
23043         * lib/canonicalize-lgpl.c (realpath): Guard with
23044         FUNC_REALPATH_WORKS.
23045         * lib/stdlib.in.h (realpath): Make declaration optional based on
23046         HAVE_REALPATH.
23047         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23048         native realpath works.
23049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23050         * modules/stdlib (Makefile.am): Substitute witness.
23051
23052         canonicalize, canonicalize-lgpl: use <stdlib.h>
23053         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23054         (Include): Mention <stdlib.h>.
23055         (configure.ac): Mention functions we provide.
23056         * modules/canonicalize (configure.ac): Likewise.
23057         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23058         realpath if canonicalize_file_name is missing.
23059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23060         * modules/stdlib (Makefile.am): Substitute witnesses.
23061         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23062         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23063         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23064         * NEWS: Document this.
23065         * doc/glibc-functions/canonicalize_file_name.texi
23066         (canonicalize_file_name): Likewise.
23067         * doc/posix-functions/realpath.texi (realpath): Likewise.
23068         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23069
23070         test-canonicalize: consolidate into single C program
23071         * tests/test-canonicalize.sh: Delete; move setup into...
23072         * tests/test-canonicalize.c (main): ...the program, making it
23073         easier to run in debugger.  Add some tests.
23074         * modules/canonicalize-tests (Files): Remove unused file.
23075         (Depends-on): Add progname.
23076         (configure.ac, Makefile.am): Simplify.
23077
23078         test-canonicalize-lgpl: consolidate into single C program
23079         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23080         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23081         easier to run in debugger.  Add some tests.
23082         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23083         (configure.ac, Makefile.am): Simplify.
23084
23085         canonicalize: avoid resolvepath
23086         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23087         unnecessary checks.
23088         * lib/canonicalize.c (includes): Simplify.
23089         (canonicalize_file_name): Drop resolvepath implementation.
23090         * modules/canonicalize (Depends-on): Drop filenamecat.
23091
23092         canonicalize: don't lose errno
23093         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23094         over calls to free.
23095
23096         canonicalize: simplify errno handling
23097         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23098         assignment.
23099
23100         canonicalize, canonicalize-lgpl: update module dependencies
23101         * modules/canonicalize (Depends-on): Add extensions, lstat,
23102         pathmax, stdlib.
23103         (Files): Drop pathmax.h.
23104         (configure.ac): Adjust macro name.
23105         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23106         lstat, stdlib, sys_stat.
23107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23108         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23109         extensions.
23110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23111         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23112         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23113         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23114         declaration, if available.
23115         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23116         we can rely on the readlink module.
23117         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23118         (includes): Use <unistd.h> unconditionally.
23119
23120 2009-09-17  Eric Blake  <ebb9@byu.net>
23121
23122         maint: make Include sections of modules consistent
23123         * modules/alloca: Use only header name; no need to list #include.
23124         * modules/alloca-opt: Likewise.
23125         * modules/arpa_inet: Likewise.
23126         * modules/canon-host: Likewise.
23127         * modules/configmake: Likewise.
23128         * modules/dirent: Likewise.
23129         * modules/eealloc: Likewise.
23130         * modules/environ: Likewise.
23131         * modules/fchdir: Likewise.
23132         * modules/fcntl: Likewise.
23133         * modules/fcntl-h: Likewise.
23134         * modules/gethrxtime: Likewise.
23135         * modules/gettime: Likewise.
23136         * modules/ignore-value: Likewise.
23137         * modules/inet_ntop: Likewise.
23138         * modules/inet_pton: Likewise.
23139         * modules/inttypes: Likewise.
23140         * modules/isnand-nolibm: Likewise.
23141         * modules/isnanf-nolibm: Likewise.
23142         * modules/mbchar: Likewise.
23143         * modules/mbfile: Likewise.
23144         * modules/mbiter: Likewise.
23145         * modules/mbuiter: Likewise.
23146         * modules/netdb: Likewise.
23147         * modules/netinet_in: Likewise.
23148         * modules/nproc: Likewise.
23149         * modules/pagealign_alloc: Likewise.
23150         * modules/poll: Likewise.
23151         * modules/printf-frexp: Likewise.
23152         * modules/pthread: Likewise.
23153         * modules/putenv: Likewise.
23154         * modules/random_r: Likewise.
23155         * modules/relocatable-prog: Likewise.
23156         * modules/search: Likewise.
23157         * modules/select: Likewise.
23158         * modules/selinux-h: Likewise.
23159         * modules/settime: Likewise.
23160         * modules/signal: Likewise.
23161         * modules/size_max: Likewise.
23162         * modules/socklen: Likewise.
23163         * modules/ssize_t: Likewise.
23164         * modules/stdarg: Likewise.
23165         * modules/stdbool: Likewise.
23166         * modules/stddef: Likewise.
23167         * modules/stdint: Likewise.
23168         * modules/stdio: Likewise.
23169         * modules/stdlib: Likewise.
23170         * modules/string: Likewise.
23171         * modules/strings: Likewise.
23172         * modules/sys_file: Likewise.
23173         * modules/sys_ioctl: Likewise.
23174         * modules/sys_select: Likewise.
23175         * modules/sys_socket: Likewise.
23176         * modules/sys_stat: Likewise.
23177         * modules/sys_time: Likewise.
23178         * modules/sys_times: Likewise.
23179         * modules/sys_utsname: Likewise.
23180         * modules/sys_wait: Likewise.
23181         * modules/sysexits: Likewise.
23182         * modules/time: Likewise.
23183         * modules/times: Likewise.
23184         * modules/tmpfile: Likewise.
23185         * modules/trim: Likewise.
23186         * modules/unistd: Likewise.
23187         * modules/wchar: Likewise.
23188         * modules/wctype: Likewise.
23189
23190 2009-09-17  Bruno Haible  <bruno@clisp.org>
23191
23192         Make getdate.y compile on QNX and NetBSD 5 / i386.
23193         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23194         TIME_T_FITS_IN_LONG_INT.
23195         * lib/getdate.y (long_time_t): New type.
23196         (relative_time): Change type of 'seconds' field to long_time_t.
23197         (get_date): Update types of local variables. Check against overflow
23198         during conversion from long_time_t to time_t.
23199         Reported by Matt Kraai <kraai@ftbfs.org>
23200         and Hasso Tepper <hasso@netbsd.org>.
23201
23202 2009-09-17  Bruno Haible  <bruno@clisp.org>
23203
23204         * modules/COPYING: Update copyright years.
23205         * modules/README: Likeiwse.
23206         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23207         Reported by Ian Beckwith <ianb@erislabs.net>.
23208
23209 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23210
23211         * users.txt: Update references for gnuit package.
23212
23213 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23214
23215         * m4/getdelim.m4: Fix typo in copyright line.
23216
23217 2009-09-17  Bruno Haible  <bruno@clisp.org>
23218
23219         * lib/atoll.c: Use the standard header with GPL copyright.
23220         * lib/argz.in.h: Likewise.
23221         * lib/glob.c: Likewise.
23222         * lib/glob-libc.h: Likewise.
23223         * lib/random_r.c: Likewise.
23224         * lib/siglist.h: Likewise.
23225         * lib/strsignal.c: Likewise.
23226         Reported by Ian Beckwith <ianb@erislabs.net>.
23227
23228 2009-09-17  Eric Blake  <ebb9@byu.net>
23229
23230         rmdir: ensure correct dependency order
23231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23232
23233 2009-09-17  Bruno Haible  <bruno@clisp.org>
23234
23235         Disable assertion that fails on NetBSD 5 / i386.
23236         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23237         Reported by Sam Steingold <sds@gnu.org>
23238         and Hasso Tepper <hasso@netbsd.org>.
23239
23240 2009-09-16  Eric Blake  <ebb9@byu.net>
23241
23242         unlinkdir: port to mingw
23243         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
23244         on which no one can unlink a directory.
23245
23246         stdlib: sort witness names
23247         * modules/stdlib (Makefile.am): Sort replacements.
23248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23249         * lib/stdlib.in.h: Likewise.
23250
23251         parse-duration-tests: avoid link failure
23252         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
23253         LIBINTL.
23254         Reported by Tom G. Christensen.
23255
23256         openat-tests: ensure unlinkat behaves like rmdir
23257         * tests/test-rmdir.c (main): Factor guts...
23258         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
23259         * modules/rmdir-tests (Files): Ship new file.
23260         * modules/openat-tests: New test.
23261         * tests/test-unlinkat.c: Likewise.
23262
23263         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
23264         * modules/rmdir-errno (Status, Notice): Now obsolete.
23265
23266         rmdir: work around cygwin 1.5.x and mingw bugs
23267         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
23268         * lib/rmdir.c (rmdir): Work around it.
23269         * modules/rmdir (Status, Notice): No longer obsolete.
23270         (Files): Add dos.m4.
23271         (Depends-on): Add unistd.
23272         (configure.ac): Set witnesses.
23273         (License): Relax to LGPLv2+.
23274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
23275         * modules/unistd (Makefile.am): Substitute witnesses.
23276         * lib/unistd.in.h (rmdir): Declare replacement.
23277         * doc/posix-functions/rmdir.texi (rmdir): Document this.
23278         * modules/rmdir-tests: New tests.
23279         * tests/test-rmdir.c: Likewise.
23280
23281 2009-09-15  Eric Blake  <ebb9@byu.net>
23282
23283         fchdir: improve use of replacement functions
23284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
23285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
23286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
23287         REPLACE_CLOSEDIR.
23288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
23289         * modules/sys_stat (Makefile.am): Substitute correct witness.
23290         * modules/dirent (Makefile.am): Likewise.
23291         * modules/unistd (Makefile.am): Likewise.
23292         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
23293         * lib/unistd.in.h (dup): Likewise.
23294         * lib/sys_stat.in.h (fstat): Likewise.
23295
23296         maint: ignore gnulib-tool temp files
23297         * .gitignore: Ignore files created during gnulib-tool --test.
23298
23299 2009-09-13  Jim Meyering  <meyering@redhat.com>
23300
23301         posixtm: don't reject a time that specify "60" as the number of seconds
23302         * lib/posixtm.c (posixtime): The code to reject invalid dates
23303         would also reject a time specified with the .60 suffix.
23304         But POSIX allows that, in order to accommodate leap seconds.
23305         So don't reject it.
23306         (main): Adjust tests accordingly.
23307         * modules/posixtm (Depends-on): Add stpcpy.
23308
23309 2009-09-11  Jim Meyering  <meyering@redhat.com>
23310
23311         announce-gen: include [$release_type] in emitted Subject:
23312         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
23313         e.g., [stable] in the emitted Subject: line.
23314
23315 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23316
23317         Remove obsolete macros from several modules.
23318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
23319         obsolete Autoconf macros with their modern counterparts.
23320         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
23321         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
23322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
23325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23327         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23328         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23329         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
23330         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23332         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
23333         * m4/sockets.m4 (gl_SOCKETS): Likewise.
23334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
23335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
23336         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23337         * m4/time_r.m4 (gl_TIME_R): Likewise.
23338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23339         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
23340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23341
23342         Fix copyright header in build-aux scripts.
23343         * build-aux/git-version-gen: Fix copyright header to match GPLv3
23344         recommendation.
23345         * build-aux/ncftpput-ftp: Likewise.
23346         * build-aux/update-copyright: Likewise.
23347
23348 2009-09-09  Eric Blake  <ebb9@byu.net>
23349
23350         test-link: allow Linux choice of errno
23351         * tests/test-link.c (main): Relax test for alternate error.
23352
23353         strndup: fix improper m4 caching
23354         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
23355         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
23356         (gl_PREREQ_STRNDUP): Delete.
23357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
23358         * modules/string (Makefile.am): Substitute it.
23359         * lib/string.in.h (strndup): Modernize prototype.
23360
23361         getcwd: port to mingw
23362         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
23363         different from the POSIX assumptions made throughout the getcwd
23364         module; fortunately, the mingw getcwd does not need replacement.
23365         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
23366         * modules/getcwd-tests: New test.
23367         * tests/test-getcwd.c: Likewise.
23368
23369         link: fix platform bugs
23370         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
23371         * lib/link.c (link): Work around them.  Fix related mingw bug.
23372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
23373         * modules/unistd (Makefile.am): Substitute it.
23374         * lib/unistd.in.h (link): Declare replacement.
23375         * doc/posix-functions/link.texi (link): Document this.
23376         * modules/link (Depends-on): Add strdup-posix, sys_stat.
23377
23378         test-link: consolidate into single C program, test more cases
23379         * tests/test-link.sh: Delete.
23380         * tests/test-link.c: Test more error conditions.  Exposes bugs on
23381         at least Cygwin and Solaris.
23382         * modules/link-tests (Files): Remove unused file.
23383         (Depends-on): Add errno, sys_stat.
23384         (Makefile.am): Simplify.
23385
23386 2009-09-08  Bruno Haible  <bruno@clisp.org>
23387
23388         Work around towlower, towupper bug on mingw.
23389         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
23390         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
23391         * doc/posix-functions/towlower.texi: Mention the mingw bug.
23392         * doc/posix-functions/towupper.texi: Likewise.
23393         Reported by Eric Blake.
23394
23395 2009-09-08  Jim Meyering  <meyering@redhat.com>
23396
23397         build: don't try to run autoheader if we don't use it
23398         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
23399         is not used in configure.ac.
23400
23401 2009-09-08  Eric Blake  <ebb9@byu.net>
23402
23403         euidaccess: fix compilation error
23404         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
23405
23406         rawmemchr: relax license
23407         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
23408         okay.
23409         Reported by Jim Meyering.
23410
23411         mkfifoat: new module
23412         * modules/mkfifoat: New file.
23413         * lib/mkfifoat.c: Likewise.
23414         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
23415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23416         * modules/sys_stat (Makefile.am): Use them.
23417         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
23418         * MODULES.html.sh (File system functions): Mention module.
23419         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23420         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23421         * modules/mkfifoat-tests: New test.
23422         * tests/test-mkfifoat.c: Likewise.
23423
23424         strchrnul: relax license
23425         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
23426         okay.
23427         Reported by Jim Meyering.
23428
23429 2009-09-08  Eric Blake  <ebb9@byu.net>
23430
23431         fstatat: fix compilation on Solaris
23432         * lib/fstatat.c (includes): Add fcntl.h.
23433         Reported by Pádraig Brady.
23434
23435 2009-09-07  Eric Blake  <ebb9@byu.net>
23436
23437         rename: modernize replacement
23438         * modules/rename (Depends-on): Add stdio.
23439         (configure.ac): Declare witness.
23440         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
23441         stdio take care of replacement.
23442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23443         * modules/stdio (Makefile.am): Substitute them.
23444         * lib/stdio.in.h (rename): Declare replacement.
23445         * lib/rename.c (includes): Allow cross-compilation to non-windows
23446         machines.
23447         * doc/posix-functions/rename.texi (rename): Improve
23448         documentation.
23449
23450         stdio: sort witness names
23451         * modules/stdio (Makefile.am): Sort replacements.
23452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23453         * lib/stdio.in.h: Likewise.
23454
23455         getcwd: minor cleanups
23456         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
23457         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
23458
23459         openat: provide more convenience names
23460         * modules/faccessat (configure.ac): Add C witness.
23461         * lib/unistd.in.h (readlinkat): Fix typo.
23462         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
23463         convenience wrappers.
23464         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
23465         wrappers in syntax checks.
23466
23467 2009-09-06  Eric Blake  <ebb9@byu.net>
23468
23469         doc: fix comments in recent patches
23470         * lib/faccessat.c: Mention correct function.
23471         * lib/fchmodat.c: Likewise.
23472         * lib/fchownat.c: Likewise.
23473         * lib/symlinkat.c: Likewise.
23474         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
23475         constants.
23476
23477         faccessat, symlinkat: continue cleanup of previous patch
23478         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
23479         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23480         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
23481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
23482         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
23483         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
23484         set.
23485
23486 2009-09-06  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
23489         (fstatat): Declare if GNULIB_FSTATAT is set.
23490         (mkdirat): Declare if GNULIB_MKDIRAT is set.
23491         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
23492         (unlinkat): Declare if GNULIB_UNLINKAT is set.
23493         * modules/fcntl-h (Files): Remove m4/openat.m4.
23494         * modules/sys_stat (Files): Remove m4/openat.m4.
23495         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
23496         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
23497         * modules/unistd (Files): Remove m4/openat.m4.
23498         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
23499         GNULIB_OPENAT.
23500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
23501         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
23502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23503         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
23504         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
23505         gl_OPENAT_DEFAULTS.
23506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
23507         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
23508         Don't require gl_OPENAT_DEFAULTS.
23509         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
23510         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
23511         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
23512         (gl_OPENAT_DEFAULTS): Remove macro.
23513
23514 2009-09-06  Bruno Haible  <bruno@clisp.org>
23515
23516         * modules/openat (configure.ac): Remove unneeded witness.
23517
23518 2009-09-06  Bruno Haible  <bruno@clisp.org>
23519
23520         Set errno to ENOSYS when a function is entirely unsupported.
23521         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
23522         EOPNOTSUPP.
23523         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23524         * modules/chown (Depends-on): Remove errno.
23525
23526 2009-09-06  Bruno Haible  <bruno@clisp.org>
23527
23528         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
23529
23530 2009-09-06  Bruno Haible  <bruno@clisp.org>
23531
23532         * lib/sys_stat.in.h: Fix preprocessor command indentation.
23533
23534 2009-09-06  Ben Pfaff  <blp@gnu.org>
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         Work around a glibc bug in strtok_r.
23538         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
23539         Undefine if UNDEFINE_STRTOK_R is set.
23540         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
23541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23542         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
23543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
23544         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
23545         UNDEFINE_STRTOK_R.
23546         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
23547
23548 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23549
23550         exclude: minor fix
23551         * lib/exclude.c: Include wctype.h
23552
23553 2009-09-06  Akim Demaille  <demaille@gostai.com>
23554
23555         bootstrap: improve error message
23556         * build-aux/bootstrap (find_tool): Upon failure, report the list
23557         of candidates.
23558         Honor the initial value of the envvar.
23559
23560 2009-09-05  Eric Blake  <ebb9@byu.net>
23561
23562         symlinkat: new module
23563         * modules/symlinkat: New file.
23564         * lib/symlinkat.c: Likewise.
23565         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23567         * modules/unistd (Makefile.am): Use them.
23568         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
23569         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
23570         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
23571         * MODULES.html.sh (File system functions): Mention module.
23572         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23574         * modules/symlinkat-tests: New test.
23575         * tests/test-symlinkat.c: Likewise.
23576
23577         test-openat-safer: add more checks
23578         * tests/test-openat-safer.c (main): Check more code paths.
23579
23580 2009-09-05  Jim Meyering  <meyering@redhat.com>
23581
23582         syntax-check: detect unnecessary inclusion of openat.h
23583         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
23584
23585 2009-09-05  Bruno Haible  <bruno@clisp.org>
23586
23587         Support towlower, towupper.
23588         * doc/posix-functions/towlower.texi: Mention module wctype.
23589         * doc/posix-functions/towupper.texi: Likewise.
23590         * lib/wctype.in.h (towlower, towupper): New functions.
23591         * tests/test-wctype.c: Include stdio.h, stdlib.h.
23592         (ASSERT): New macro.
23593         (e): New variable.
23594         (main): Test also towlower, towupper. Test WEOF argument.
23595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23596
23597 2009-09-05  Bruno Haible  <bruno@clisp.org>
23598
23599         Fix conversion behaviour when the input is invalid.
23600         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
23601         mark occurring in first pass of indirect conversion.
23602         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
23603         input.
23604         Found by clang's static analyzer.
23605
23606 2009-09-05  Bruno Haible  <bruno@clisp.org>
23607
23608         * tests/test-striconveh.c (main): Test indirect conversion on platforms
23609         where direct conversion is possible.
23610
23611 2009-09-04  Eric Blake  <ebb9@byu.net>
23612
23613         openat: fail with ENOENT on empty name
23614         * lib/openat-proc.c (openat_proc_name): Special-case the empty
23615         buffer.
23616
23617         link-follow: fix logic bug in prior patch
23618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
23619         reversed sense of yes and no in prior patch.  Avoid confusing
23620         compilation failure with desired semantics.
23621
23622         link-follow: accomodate mingw and cross-compilation
23623         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
23624         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
23625         cross-compilation results to -1, to make linkat easier to
23626         implement when cross-compiling.  Trivially support mingw.
23627         * modules/link-follow (configure.ac): Call new name.
23628         * NEWS: Mention this.
23629
23630 2009-09-03  Eric Blake  <ebb9@byu.net>
23631
23632         faccessat: compile replacement
23633         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
23634         needed.
23635
23636         fts: fix compilation error
23637         * lib/fts.c (includes): Re-add "openat.h", for
23638         openat_needs_fchdir.
23639
23640         faccessat: new module
23641         * modules/faccessat: New file.
23642         * lib/faccessat.c: Likewise.
23643         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
23644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23645         * modules/unistd (Makefile.am): Use it.
23646         * lib/unistd.in.h (faccessat): Declare it.
23647         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
23648         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
23649         * MODULES.html.sh (File system functions): Mention it.
23650         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
23651         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23652
23653         euidaccess: prefer POSIX over non-standard implementation
23654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
23655         * lib/euidaccess.c (euidaccess): Use it if available.
23656
23657         openat: make template easier to use
23658         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
23659         AT_FUNC_F2 to be undefined.
23660         (VALIDATE_FLAG): New macro; use it to reject bad flags.
23661         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
23662         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
23663         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
23664         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
23665         Likewise.
23666         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
23667         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
23668         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
23669         Likewise.
23670
23671         openat: declare in POSIX headers
23672         * NEWS: Mention this.
23673         * modules/openat (configure.ac): Declare witnesses.
23674         (Depends-on): Add fcntl-h, sys_stat, unistd.
23675         (Include): Mention correct headers.
23676         * modules/fcntl-h (Depends-on): Add link-warning.
23677         (Files): Add openat.m4.
23678         (Makefile.am): Substitute witnesses.
23679         * modules/sys_stat (Files, Makefile.am): Likewise.
23680         * modules/unistd (Files, Makefile.am): Likewise.
23681         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
23682         (gl_OPENAT_DEFAULTS): New macro.
23683         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
23684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
23685         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
23686         (SYS_STAT_H): Remove unused variable.
23687         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
23688         * lib/fcntl--.h (includes): Remove unneeded header.
23689         * lib/openat-safer.c (includes): Likewise.
23690         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
23691         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
23692         appropriate headers.
23693         (__OPENAT_PREFIX): Delete.
23694         * lib/fcntl.in.h (openat): Provide declaration.
23695         (AT_FDCWD): Fix Solaris bug.
23696         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
23697         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
23698         * lib/fchmodat.c (includes):  Adjust to find declaration.
23699         * lib/fchownat.c (includes): Likewise.
23700         * lib/mkdirat.c (includes): Likewise.
23701         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
23702         still visible.
23703
23704 2009-09-02  Eric Blake  <ebb9@byu.net>
23705
23706         errno: use consistently
23707         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
23708         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
23709         * lib/canonicalize.c (ELOOP): Likewise.
23710         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
23711         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
23712         * lib/lchown.c (EOPNOTSUPP): Likewise.
23713         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
23714         * lib/savewd.c (ESTALE): Likewise.
23715         * lib/settime.c (ENOSYS): Likewise.
23716         * lib/utimens.c (ENOSYS): Likewise.
23717         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
23718         * lib/chdir-safer.c (ELOOP): Likewise.
23719         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
23720         * modules/c-stack (Depends-on): Add errno.
23721         * modules/canonicalize (Depends-on): Likewise.
23722         * modules/chdir-safer (Depends-on): Likewise.
23723         * modules/fdopendir (Depends-on): Likewise.
23724         * modules/inet_ntop (Depends-on): Likewise.
23725         * modules/inet_pton (Depends-on): Likewise.
23726         * modules/lchown (Depends-on): Likewise.
23727         * modules/openat (Depends-on): Likewise.
23728         * modules/savewd (Depends-on): Likewise.
23729         * modules/settime (Depends-on): Likewise.
23730         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
23731
23732         fts: avoid leaking fds
23733         * modules/fts (Depends-on): Add cloexec.
23734         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
23735         flag.
23736
23737         fts: make directory fds more robust
23738         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
23739         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
23740
23741         backupfile, chdir-long, fts, savedir: make safer
23742         * lib/backupfile.c (includes): Use "dirent--.h", since
23743         numbered_backup can write to stderr during readdir.
23744         * lib/savedir.c (includes): Likewise.
23745         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
23746         emulation can write to stderr on failure.
23747         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
23748         * lib/getcwd.c: Document why opendir_safer is unused.
23749         * lib/glob.c: Likewise.
23750         * lib/scandir.c: Likewise.
23751         * lib/openat-proc.c: Likewise, for open_safer.
23752         * modules/backupfile (Depends-on): Add dirent-safer.
23753         * modules/savedir (Depends-on): Likewise.
23754         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
23755         * modules/chdir-long (Depends-on): Add openat-safer.
23756
23757         openat-safer: new module
23758         * modules/openat-safer: New file.
23759         * lib/openat-safer.c: Likewise.
23760         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
23761         * lib/fcntl-safer.h (openat_safer): Declare.
23762         * lib/fcntl--.h (openat): Override.
23763         * MODULES.html.sh (File descriptor based I/O): Mention it.
23764         * lib/openat.h: Add double-inclusion guards.
23765         * lib/openat.c (includes): Only include "fcntl-safer.h", not
23766         "fcntl--.h", so we can implement openat.
23767         * modules/openat-safer-tests: New test.
23768         * tests/test-openat-safer.c: New file.
23769
23770         dirent-safer: new module
23771         * modules/dirent-safer: New file.
23772         * lib/dirent--.h: Likewise.
23773         * lib/dirent-safer.h: Likewise.
23774         * lib/opendir-safer.c: Likewise.
23775         * m4/dirent-safer.m4: Likewise.
23776         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23777         * modules/dirent-safer-tests: New test.
23778         * tests/test-dirent-safer.c: New file.
23779         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
23780
23781         fdopendir: optimize on mingw
23782         * lib/unistd.in.h (_gl_directory_name): New prototype.
23783         * lib/fchdir.c (_gl_directory_name): Implement it.
23784         (fchdir): Use it to simplify implementation.
23785         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
23786         fchdir, when available, to avoid calling [f]chdir().
23787
23788         fdopendir: split into its own module
23789         * lib/openat.c (fdopendir): Move...
23790         * lib/fdopendir.c: ...into new file.
23791         * modules/fdopendir: New module.
23792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
23793         * modules/openat (Depends-on): Add fdopendir.
23794         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
23795         fdopendir here.
23796         * modules/savedir (Depends-on): Only need fdopendir, not full
23797         openat.
23798         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
23799         * lib/openat.h (fdopendir): Drop prototype.
23800         * lib/dirent.in.h (fdopendir): Provide prototype.
23801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
23802         * modules/dirent (Makefile.am): Substitute them.
23803         * MODULES.html.sh (File system functions): Mention it.
23804         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
23805         * modules/fdopendir-tests: New file.
23806         * tests/test-fdopendir.c: Likewise.
23807
23808         fchdir: use more consistent macro convention
23809         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
23810         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
23811         REPLACE_FCHDIR, rather than relying on config.h macros.
23812         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
23813         inside a single make-time REPLACE_FCHDIR block, rather than using
23814         the config.h FCHDIR_REPLACEMENT.
23815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
23816         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
23817         Manage fstat replacement.
23818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
23819         REPLACE_FCHDIR.
23820         * modules/sys_stat (Files): Add m4/unistd_h.m4.
23821         (Makefile.am): Substitute REPLACE_FCHDIR.
23822         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
23823         FCHDIR_REPLACEMENT.
23824         * lib/dup-safer.c (dup_safer): Likewise.
23825         * lib/dup2.c (rpl_dup2): Likewise.
23826         * lib/dup3.c (rpl_dup3): Likewise.
23827         * lib/open.c (rpl_open): Likewise.
23828
23829         fchdir: simplify error handling, and support dup3
23830         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
23831         stdbool, malloc-posix, realloc-posix.
23832         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
23833         (ensure_dirs_slot): Return false on allocation failure.
23834         (rpl_dup2): Delete.
23835         (_gl_register_dup): New function.
23836         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
23837         (_gl_register_fd): Close fd on allocation failure.
23838         * lib/fcntl.in.h (_gl_register_fd): Update signature.
23839         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
23840         prototype.
23841         (rpl_dup2_fchdir): Delete prototype.
23842         * lib/open.c (open): Update caller.
23843         * lib/dup2.c (dup2): Track fchdir metadata.
23844         * lib/dup3.c (dup3): Likewise.
23845         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
23846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
23847
23848 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23849
23850         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
23851         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
23852         don't pass arguments to AC_OUTPUT.
23853
23854 2009-09-02  Bruno Haible  <bruno@clisp.org>
23855
23856         * modules/mkdtemp (License): Relicense under LGPLv2+.
23857         Reported by Paolo Bonzini.
23858
23859 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23860
23861         Replace uses of obsolete autoconf macros in Jim's modules.
23862         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
23863         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
23864         can evoke a warning from autoconf when run with -Wobsolete
23865         enabled.  They were declared obsolete for good reasons (see
23866         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
23867         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
23868         should not continue using the deprecated macros.
23869         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23870         obsolete Autoconf macros with modern counterparts.
23871         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23872         * m4/dos.m4 (gl_AC_DOS): Likewise.
23873         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
23874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23875         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
23876         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
23877         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
23878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23879         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
23880         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
23881         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23882         Likewise.
23883         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23884         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23885         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
23886         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
23887         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23888         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23889
23890 2009-09-01  Eric Blake  <ebb9@byu.net>
23891
23892         fchdir: fix off-by-one bug in previous patch
23893         * lib/fchdir.c (rpl_fstat): Use correct bounds.
23894         (_gl_unregister_fd): Delete useless if.
23895
23896 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
23897
23898         maint.mk: sort the list of syntax-check rules
23899         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
23900         easier to get a sense of progress when the rules are run sequentially
23901         and take a long time.
23902
23903 2009-09-01  Simon Josefsson  <simon@josefsson.org>
23904
23905         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
23906         * modules/netinet_in: Likewise.
23907         * modules/sys_file: Likewise.
23908         * modules/sys_ioctl: Likewise.
23909         * modules/sys_select: Likewise.
23910         * modules/sys_socket: Likewise.
23911         * modules/sys_stat: Likewise.
23912         * modules/sys_time: Likewise.
23913         * modules/sys_times: Likewise.
23914         * modules/sys_utsname: Likewise.
23915         * modules/sys_wait: Likewise.
23916
23917 2009-09-01  Jim Meyering  <meyering@redhat.com>
23918
23919         fts: help ensure that return values are not ignored
23920         * lib/fts_.h (__GNUC_PREREQ): Define.
23921         (__attribute_warn_unused_result__): Define.
23922         (fts_children, fts_close, fts_open, fts_read): Declare with
23923         __attribute_warn_unused_result__.
23924
23925         fts: fts_close now fails also when closing a dir file descriptor fails
23926         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
23927         and propagate to caller, along with errno.
23928
23929         announce-gen: correct formatting in --help output
23930         * build-aux/announce-gen (usage): Move the one-line description in
23931         --help output "up", to where it belongs, just after Usage:.
23932
23933 2009-08-31  Eric Blake  <ebb9@byu.net>
23934
23935         fchdir: port to mingw
23936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
23937         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
23938         opened, then use a substitute.
23939         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
23940         replacement.
23941         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
23942         (_gl_register_fd): No need to check stat if open already filters
23943         all directories.
23944         (fchdir): Fix error condition to match POSIX.
23945         * modules/fchdir (Depends-on): Add sys_stat.
23946         * doc/posix-functions/open.texi (open): Document the limitation.
23947         * modules/fchdir-tests: New file.
23948         * tests/test-fchdir.c: Likewise.
23949
23950         canonicalize: allow cross-testing from cygwin to mingw
23951         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
23952         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
23953         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
23954         Likewise.
23955         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
23956         target does not support symlinks.
23957         * tests/test-canonicalize-lgpl.sh: Likewise.
23958
23959         chown: avoid compilation warning on mingw
23960         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
23961         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
23962         mingw.
23963         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
23964         * modules/chown (Depends-on): Add errno.
23965
23966 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23967
23968         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
23969         command.
23970
23971 2009-08-31  Jim Meyering  <meyering@redhat.com>
23972
23973         canonicalize: remove useless initialization
23974         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23975         initialization of local, "end".
23976
23977 2009-08-30  Bruno Haible  <bruno@clisp.org>
23978
23979         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23980         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23981         ENOSYS.
23982
23983 2009-08-30  Bruno Haible  <bruno@clisp.org>
23984
23985         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23986         /usr/xpg4/bin/tr when it exists.
23987         * tests/test-pipe-filter-gi1.sh: Likewise.
23988
23989 2009-08-30  Bruno Haible  <bruno@clisp.org>
23990
23991         Work around deficient /usr/bin/id program on Solaris.
23992         * tests/test-file-has-acl.sh (ID): New variable.
23993         * tests/test-set-mode-acl.sh (ID): Likewise.
23994         * tests/test-copy-acl.sh (ID): Likewise.
23995         * tests/test-copy-file.sh (ID): Likewise.
23996
23997 2009-08-30  Bruno Haible  <bruno@clisp.org>
23998
23999         New module 'xstriconveh'.
24000         * lib/xstriconveh.h: New file.
24001         * lib/xstriconveh.c: New file.
24002         * modules/xstriconveh: New file.
24003
24004 2009-08-30  Bruno Haible  <bruno@clisp.org>
24005
24006         Make it easier to use mem_cd_iconveh.
24007         * lib/striconveh.h (iconveh_t): New type.
24008         (iconveh_open, iconveh_close): New declarations.
24009         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24010         with a single 'const iconveh_t *' argument.
24011         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24012         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24013         with a single 'const iconveh_t *' argument.
24014         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24015         * tests/test-striconveh.c (main): Update.
24016         * NEWS: Mention the change.
24017
24018 2009-08-30  Bruno Haible  <bruno@clisp.org>
24019
24020         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24021         problem.
24022
24023 2009-08-30  Bruno Haible  <bruno@clisp.org>
24024
24025         Work around iconv_open problem on Solaris.
24026         * lib/iconv_open-solaris.gperf: New file.
24027         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24029         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24030         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24031         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24032         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24033
24034 2009-08-29  Jim Meyering  <meyering@redhat.com>
24035
24036         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24037         * top/maint.mk (cvs-check): Remove target; it was just an alias
24038         to the better-named vc-diff-check.
24039         (maintainer-distcheck): Remove rule.  It was used only from
24040         the (alpha/beta/major) target, and all of its commands but one
24041         were coreutils-specific.
24042         (vc-dist): Remove rule.
24043         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24044         Run vc-diff-check, not vc-dist.
24045         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24046
24047 2009-08-27  Bruno Haible  <bruno@clisp.org>
24048
24049         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24050         of 0.
24051
24052 2009-08-27  Bruno Haible  <bruno@clisp.org>
24053
24054         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24055         compilers.
24056         * doc/func.texi: Document the SunPRO C bug.
24057
24058 2009-08-27  Bruno Haible  <bruno@clisp.org>
24059
24060         Fix link error on Solaris.
24061         * tests/test-parse-duration.c (xstrdup): Remove function.
24062
24063 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24064
24065         ignore-value: handle pointer types, too
24066         * lib/ignore-value.h (__attribute__): Remove definition.
24067         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24068         of a more concise and more-often effective "(void) i" statement.
24069         (ignore_ptr): New function to suppress warnings from functions that
24070         return pointers, and to make it explicit that one function doesn't
24071         handle all cases.
24072
24073 2009-08-25  Bruno Haible  <bruno@clisp.org>
24074
24075         dup2: work around a Linux bug.
24076         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24077         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24078         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24079         Reported by Simon Josefsson.
24080
24081 2009-08-25  Jim Meyering  <meyering@redhat.com>
24082
24083         libguestfs uses gnulib
24084         * users.txt: Add libguestfs.
24085
24086 2009-08-24  Eric Blake  <ebb9@byu.net>
24087
24088         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24089         * lib/pipe2.c (includes): Add binary-io.h.
24090         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24091
24092 2009-08-24  Bruno Haible  <bruno@clisp.org>
24093
24094         Tolerate declared but missing accept4 syscall.
24095         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24096         available.
24097         * lib/sys_socket.in.h (accept4): If the function is already present,
24098         override it.
24099         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24100         * modules/accept4 (Makefile.am): Compile accept4.c always.
24101         Reported by Paolo Bonzini and Eric Blake.
24102
24103 2009-08-23  Bruno Haible  <bruno@clisp.org>
24104
24105         New module 'accept4'.
24106         * lib/sys_socket.in.h (accept4): New declaration.
24107         * lib/accept4.c: New file.
24108         * m4/accept4.m4: New file.
24109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24110         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24111         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24112         HAVE_ACCEPT4.
24113         * modules/accept4: New file.
24114         * doc/glibc-functions/accept4.texi: Mention the new module.
24115
24116 2009-08-24  Jim Meyering  <meyering@redhat.com>
24117
24118         progname: also set global program_invocation_name, when possible
24119         Before this change, a libtool-enabled program that calls glibc's
24120         error function would report the program name as
24121         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24122         * modules/progname (configure.ac): Check for a declaration of
24123         program_invocation_name.
24124         * lib/progname.c:  Include <errno.h>.
24125         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24126         Set program_invocation_name.
24127
24128 2009-08-23  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/dup3.c: Include <string.h>.
24131
24132 2009-08-23  Bruno Haible  <bruno@clisp.org>
24133
24134         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24135         * lib/pipe2.c (pipe2): Likewise.
24136         Suggested by Eric Blake.
24137
24138 2009-08-23  Bruno Haible  <bruno@clisp.org>
24139
24140         Tolerate declared but missing dup3 syscall.
24141         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24142         * lib/unistd.in.h (dup3): If the function is already present,
24143         override it.
24144         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24145         * modules/dup3 (Makefile.am): Compile dup3.c always.
24146         Reported by Paolo Bonzini.
24147
24148 2009-08-23  Bruno Haible  <bruno@clisp.org>
24149
24150         Tolerate declared but missing pipe2 syscall.
24151         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24152         available.
24153         * lib/unistd.in.h (pipe2): If the function is already present,
24154         override it.
24155         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24156         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24157         Reported by Paolo Bonzini.
24158
24159 2009-08-23  Bruno Haible  <bruno@clisp.org>
24160
24161         * lib/pipe2.c (pipe2): Move #ifs inside function.
24162
24163 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24164
24165         quotearg: document limitations of quote_these_too
24166         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24167         those limitations are created.
24168         * lib/quotearg.h (set_char_quoting): Document that digits and
24169         letters that are special after backslash are not permitted.
24170         (quotearg_char): Cross-reference set_char_quoting documentation.
24171
24172 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24173
24174         quotearg: implement custom_quoting_style
24175         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24176         right_quote fields.
24177         (set_custom_quoting): New public function.
24178         (quotearg_buffer_restyled): Add left_quote and right_quote
24179         arguments, handle them very much like locale quoting, and update
24180         all uses.
24181         (quotearg_n_custom): New public function.
24182         (quotearg_n_custom_mem): New public function.
24183         (quotearg_custom): New public function.
24184         (quotearg_custom_mem): New public function.
24185         * lib/quotearg.h: Prototype and document new public functions.
24186         (enum quoting_style): For escape_quoting_style and
24187         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24188         ignored even though they're otherwise like c_quoting_style.
24189         Add custom_quoting_style member and document with comparison to
24190         clocale_quoting_style.
24191         * tests/test-quotearg.c (custom_quotes): New array.
24192         (custom_results): New array.
24193         (main): Extend to test custom quoting.
24194
24195 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24196
24197         quotearg: fix right quote escaping when it's in quote_these_too
24198         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24199         quote, be sure to prepend only one backslash.
24200         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24201         (main): Test it.
24202
24203 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24204
24205         quotearg-tests: test escaping of embedded locale quotes
24206         * tests/test-quotearg.c (struct result_strings): Add member for
24207         new input.
24208         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24209         (inputs): Add new input.
24210         (results_g): Add expected results.
24211         (flag_results): Likewise.
24212         (locale_results): Likewise.
24213         (compare_strings): Check those.
24214
24215 2009-08-23  Bruno Haible  <bruno@clisp.org>
24216
24217         Tests for module 'dup3'.
24218         * modules/dup3-tests: New file.
24219         * tests/test-dup3.c: New file.
24220
24221         New module 'dup3'.
24222         * lib/unistd.in.h (dup3): New declaration.
24223         * lib/dup3.c: New file.
24224         * m4/dup3.m4: New file.
24225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24226         HAVE_DUP3.
24227         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24228         * modules/dup3: New file.
24229         * doc/glibc-functions/dup3.texi: Mention the new module.
24230
24231 2009-08-23  Bruno Haible  <bruno@clisp.org>
24232
24233         Tweak the dup2 test.
24234         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24235         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24236         the test file is still empty. Fix argument order of lseek.
24237
24238 2009-08-23  Bruno Haible  <bruno@clisp.org>
24239
24240         Avoid test link errors when the modules getopt-gnu, gettext are used.
24241         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
24242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24243
24244 2009-08-23  Bruno Haible  <bruno@clisp.org>
24245
24246         Fix getdtablesize() on mingw.
24247         * lib/getdtablesize.c (getdtablesize): Implement differently.
24248         * lib/unistd.in.h (getdtablesize): Improve comment.
24249
24250 2009-08-23  Bruno Haible  <bruno@clisp.org>
24251
24252         New module 'mkostemp'.
24253         Based on Ulrich Drepper's 2007-08-10 change in glibc.
24254         * lib/stdlib.in.h (mksotemp): New declaration.
24255         * lib/mkostemp.c: New file, from glibc with modifications.
24256         * lib/tempname.h (GT_FILE): Remove outdated comment.
24257         (gen_tempname): Add flags argument.
24258         * lib/tempname.c (__GT_BIGFILE): Remove macro.
24259         (__GT_FILE): Map to 1.
24260         (small_open, large_open): Remove macros.
24261         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
24262         * lib/mkstemp.c (mkstemp): Update.
24263         * lib/mkdtemp.c (mkdtemp): Likewise.
24264         * m4/mkostemp.m4: New file.
24265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
24266         HAVE_MKOSTEMP.
24267         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
24268         HAVE_MKOSTEMP.
24269         * modules/mkostemp: New file, based on modules/mkstemp.
24270         * doc/glibc-functions/mkostemp.texi: Mention the new module.
24271         * NEWS: Mention the change.
24272
24273 2009-08-23  Bruno Haible  <bruno@clisp.org>
24274
24275         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
24276         Reported by Eric Blake.
24277
24278 2009-08-23  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
24281         Reported by Eric Blake.
24282
24283 2009-08-23  Bruno Haible  <bruno@clisp.org>
24284
24285         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
24286         * modules/pipe2 (Depends-on): Likewise.
24287
24288 2009-08-23  Eric Blake  <ebb9@byu.net>
24289
24290         fcntl-h: add O_TTY_INIT support
24291         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
24292         * tests/test-fcntl-h.c (o): Test it.
24293         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24294
24295         fcntl-h: rename from fcntl, in preparation for fcntl(2)
24296         * modules/fcntl: Move <fcntl.h> header replacement...
24297         * modules/fcntl-h: ...to new name, so as not to collide with
24298         like-named function.
24299         * tests/test-fcntl.c: Rename...
24300         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
24301         * modules/fcntl-tests: Rename...
24302         * modules/fcntl-h-tests: ...to this.  Update test file name.
24303         * modules/chdir-long (Depends-on): Update clients.
24304         * modules/chdir-safer (Depends-on): Likewise.
24305         * modules/fcntl-safer (Depends-on): Likewise.
24306         * modules/fts (Depends-on): Likewise.
24307         * modules/mkancesdirs (Depends-on): Likewise.
24308         * modules/mkdir-p (Depends-on): Likewise.
24309         * modules/open (Depends-on): Likewise.
24310         * modules/savewd (Depends-on): Likewise.
24311         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
24312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24313
24314 2009-08-22  Bruno Haible  <bruno@clisp.org>
24315
24316         * modules/binary-io (License): Relicense under LGPL.
24317         * modules/pipe2 (License): Likewise.
24318
24319 2009-08-22  Bruno Haible  <bruno@clisp.org>
24320
24321         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
24322         return value.
24323         * lib/pipe-filter-gi.c (filter_init): Likewise.
24324         Reported by Eric Blake.
24325
24326 2009-08-22  Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
24329         * modules/pipe (Depends-on): Add pipe2.
24330
24331 2009-08-22  Bruno Haible  <bruno@clisp.org>
24332
24333         Tests for module 'pipe2'.
24334         * modules/pipe2-tests: New file.
24335         * tests/test-pipe2.c: New file.
24336
24337         New module 'pipe2'.
24338         * lib/unistd.in.h (pipe2): New declaration.
24339         * lib/pipe2.c: New file.
24340         * m4/pipe2.m4: New file.
24341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
24342         HAVE_PIPE2.
24343         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
24344         * modules/pipe2: New file.
24345         * doc/glibc-functions/pipe2.texi: Mention the new module.
24346
24347 2009-08-22  Bruno Haible  <bruno@clisp.org>
24348
24349         Reference some new glibc functions.
24350         * doc/glibc-functions/accept4.texi: New file.
24351         * doc/glibc-functions/dup3.texi: New file.
24352         * doc/glibc-functions/mkostemp.texi: New file.
24353         * doc/glibc-functions/pipe2.texi: New file.
24354         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
24355         (Glibc sys/socket.h): Refer to accept4.
24356         (Glibc unistd.h): Refer to dup3, pipe2.
24357         Reported by Eric Blake.
24358
24359 2009-08-22  Jim Meyering  <meyering@redhat.com>
24360             Bruno Haible  <bruno@clisp.org>
24361
24362         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
24363         This makes it so packages using automake-1.11's silent-rules option
24364         can print e.g., a single "GEN    configmake.h" line, rather than
24365         the 30+ statements that perform the job.  If you want to see the
24366         actual commands, you can still run "make V=1".
24367         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
24368         so that make output is abbreviated when those variables are defined
24369         appropriately.
24370         * modules/argz: Likewise.
24371         * modules/arpa_inet: Likewise.
24372         * modules/byteswap: Likewise.
24373         * modules/configmake: Likewise.
24374         * modules/dirent: Likewise.
24375         * modules/errno: Likewise.
24376         * modules/fcntl: Likewise.
24377         * modules/float: Likewise.
24378         * modules/fnmatch: Likewise.
24379         * modules/getopt-posix: Likewise.
24380         * modules/glob: Likewise.
24381         * modules/iconv_open: Likewise.
24382         * modules/inttypes: Likewise.
24383         * modules/localcharset: Likewise.
24384         * modules/locale: Likewise.
24385         * modules/math: Likewise.
24386         * modules/netdb: Likewise.
24387         * modules/netinet_in: Likewise.
24388         * modules/poll: Likewise.
24389         * modules/posix_spawnp-tests: Likewise.
24390         * modules/sched: Likewise.
24391         * modules/search: Likewise.
24392         * modules/selinux-h: Likewise.
24393         * modules/signal: Likewise.
24394         * modules/spawn: Likewise.
24395         * modules/stdarg: Likewise.
24396         * modules/stdbool: Likewise.
24397         * modules/stddef: Likewise.
24398         * modules/stdint: Likewise.
24399         * modules/stdio: Likewise.
24400         * modules/stdlib: Likewise.
24401         * modules/string: Likewise.
24402         * modules/strings: Likewise.
24403         * modules/sys_file: Likewise.
24404         * modules/sys_ioctl: Likewise.
24405         * modules/sys_select: Likewise.
24406         * modules/sys_socket: Likewise.
24407         * modules/sys_stat: Likewise.
24408         * modules/sys_time: Likewise.
24409         * modules/sys_times: Likewise.
24410         * modules/sys_utsname: Likewise.
24411         * modules/sys_wait: Likewise.
24412         * modules/sysexits: Likewise.
24413         * modules/time: Likewise.
24414         * modules/unistd: Likewise.
24415         * modules/wchar: Likewise.
24416         * modules/wctype: Likewise.
24417
24418 2009-08-22  Jim Meyering  <meyering@redhat.com>
24419
24420         announce-gen: detect write failure
24421         * build-aux/announce-gen: Add Coda at end.
24422         Remove equivalent-but-more-verbose block at top.
24423
24424 2009-08-19  Akim Demaille  <demaille@gostai.com>
24425
24426         bootstrap: --help to stdout.
24427         * bootstrap (usage): Don't send --help to stderr.
24428         Use a here doc instead of a long string.
24429
24430 2009-08-21  Eric Blake  <ebb9@byu.net>
24431
24432         test-popen-safer: split from test-popen
24433         * tests/test-popen.c (main): Move...
24434         * tests/test-popen.h: ...into new file.
24435         * tests/test-popen-safer2.c: New file.
24436         * modules/popen-tests (Files): Add test-popen.h.
24437         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
24438         Suggested by Bruno Haible.
24439
24440         test-fcntl-safer: split from test-open
24441         * tests/test-open.c (main): Move...
24442         * tests/test-open.h: ...into new file.
24443         * tests/test-fcntl-safer.c: New file.
24444         * modules/open-tests (Files): Add test-open.h.
24445         * modules/fcntl-safer-tests: New file.
24446         Suggested by Bruno Haible.
24447
24448         test-fopen-safer: split from test-fopen
24449         * tests/test-fopen.c (main): Move...
24450         * tests/test-fopen.h: ...into new file.
24451         * tests/test-fopen-safer.c: New file.
24452         * modules/fopen-tests (Files): Add test-fopen.h.
24453         * modules/fopen-safer-tests: New file.
24454         Suggested by Bruno Haible.
24455
24456 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24457
24458         popen-safer: test O_CLOEXEC at run-time.
24459         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
24460
24461 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
24462
24463         fcntl: move more flags to the header
24464         * lib/cloexec.c: Do not define FD_CLOEXEC here.
24465         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
24466         * lib/fcntl.in.h: Do both things here.
24467
24468 2009-08-21  Jim Meyering  <meyering@redhat.com>
24469
24470         consistently remove $@-t before redirecting to it
24471         * modules/argz: Remove $@-t and $@ before redirecting to the former.
24472         * modules/alloca-opt: Likewise.
24473         * modules/byteswap: Likewise.
24474         * modules/fnmatch: Likewise.
24475         * modules/getopt-posix: Likewise.
24476         * modules/glob: Likewise.
24477         * modules/poll: Likewise.
24478         * modules/posix_spawnp-tests: Likewise.
24479         * modules/sys_socket: Likewise.
24480         * modules/sysexits: Likewise.
24481
24482 2009-08-21  Eric Blake  <ebb9@byu.net>
24483
24484         popen: simplify access to original popen
24485         * lib/popen.c (rpl_popen): No need to worry about popen being a
24486         macro.
24487         Reported by Bruno Haible.
24488
24489 2009-08-20  Eric Blake  <ebb9@byu.net>
24490
24491         build: avoid some compiler warnings
24492         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
24493         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
24494         type.
24495         (new_exclude_segment, excluded_file_pattern_p)
24496         (excluded_file_name_p): Reduce scope.
24497         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
24498         old-style declaration.
24499
24500 2009-08-20  Simon Josefsson  <simon@josefsson.org>
24501
24502         * tests/test-exclude1.sh: Handle Windows EOL.
24503         * tests/test-exclude2.sh: Likewise.
24504         * tests/test-exclude3.sh: Likewise.
24505         * tests/test-exclude4.sh: Likewise.
24506         * tests/test-exclude5.sh: Likewise.
24507         * tests/test-exclude6.sh: Likewise.
24508         * tests/test-exclude7.sh: Likewise.
24509
24510 2009-08-19  Akim Demaille  <demaille@gostai.com>
24511
24512         bootstrap: find sha1sum when named gsha1sum.
24513         * bootstrap (find_tool): New.
24514         ($SHA1SUM): New.
24515         Use it.
24516
24517 2009-08-20  Jim Meyering  <meyering@redhat.com>
24518
24519         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
24520         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
24521         expression that converts "." in a file name to "\." in the resulting
24522         regexp.  Start with a dummy statement, so that prior shell variable
24523         definitions are expanded portably.  Reported by Simon Josefsson.
24524
24525 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
24526
24527         Fix polling for writeability of a screen buffer.
24528         * lib/poll.c: Distinguish input and screen buffers for the
24529         Win32 implementation.
24530         * lib/select.c: Likewise.
24531
24532 2009-08-19  Eric Blake  <ebb9@byu.net>
24533
24534         popen-safer: prevent popen from clobbering std descriptors
24535         * modules/popen-safer: New file.
24536         * lib/popen-safer.c: Likewise.
24537         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
24538         * lib/stdio--.h (popen): Provide override.
24539         * lib/stdio-safer.h (popen_safer): Provide declaration.
24540         * tests/test-popen.c (includes): Partially test this.
24541         * modules/popen-safer-tests: New file, for more tests.
24542         * tests/test-popen-safer.c: Likewise.
24543         * MODULES.html.sh (file stream based Input/Output): Mention it.
24544
24545         tests: test some of the *-safer modules
24546         * modules/fopen-safer (Depends-on): Add fopen.
24547         * modules/fcntl-safer (Depends-on): Add fcntl.
24548         * modules/stdlib-safer (Depends-on): Add stdlib.
24549         (configure.ac): Set indicator.
24550         * modules/unistd-safer (configure.ac): Likewise.
24551         * modules/tmpfile-safer (configure.ac): Likewise.
24552         (Depends-on): Add tmpfile.
24553         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
24554         active.
24555         * tests/test-fopen.c (includes): Test safer versions when they are
24556         in use.
24557         * tests/test-open.c (includes): Likewise.
24558
24559         popen: fix cygwin 1.5 bug when stdin closed
24560         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
24561         * modules/popen: New file.
24562         * modules/popen-tests: Likewise.
24563         * tests/test-popen.c: Likewise.
24564         * m4/popen.m4: Likewise.
24565         * lib/popen.c: Likewise.
24566         * lib/stdio.in.h (popen): New declaration.
24567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
24568         * modules/stdio (Makefile.am): Likewise.
24569         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
24570
24571 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
24572
24573         maint.mk: give full control over update-copyright exclusions
24574         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
24575         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
24576         (update-copyright): Don't force inclusion of top-level
24577         ChangeLog.  Don't force exclusion of all COPYING files, but make
24578         them the default exclusion instead.
24579
24580 2009-08-16  Bruno Haible  <bruno@clisp.org>
24581
24582         Fix test failures on Solaris 10.
24583         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
24584         tests when Solaris iconv() is used.
24585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24586         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24587         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24588         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24589         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24590
24591 2009-08-16  Bruno Haible  <bruno@clisp.org>
24592
24593         Fix test failures on Solaris 10.
24594         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
24595         'tr' program and pass it as first argument.
24596         * tests/test-pipe-filter-gi1.sh: Likewise.
24597         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
24598         program as first argument.
24599         * tests/test-pipe-filter-gi1.c (main): Likewise.
24600
24601 2009-08-16  Eric Blake  <ebb9@byu.net>
24602
24603         fpurge: fix previous commits
24604         * modules/fpurge (Makefile.am): Make replacement conditional,
24605         partially reverting 2007-04-29 change; missed in previous
24606         attempt.
24607         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
24608         is missing.
24609
24610 2009-08-16  Bruno Haible  <bruno@clisp.org>
24611
24612         Clarify fpurge's effect on the file position.
24613         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
24614         * tests/test-fpurge.c (main): Make a second pass for checking the file
24615         position.
24616
24617 2009-08-16  Bruno Haible  <bruno@clisp.org>
24618
24619         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
24620         declaration of fpurge is missing.
24621         * tests/test-fpurge.c (main): Check that the file has not more contents
24622         than expected. Close the file before removing it.
24623
24624 2009-08-15  Eric Blake  <ebb9@byu.net>
24625
24626         fpurge: don't wrap working cygwin implementation
24627         * lib/fpurge.c (fpurge): Fix comment typo.
24628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
24629         1.7 to avoid replacement.
24630         * tests/test-fpurge.c (main): Enhance test.
24631
24632 2009-08-15  Eric Blake  <ebb9@byu.net>
24633         and Jim Meyering  <meyering@redhat.com>
24634
24635         test-update-copyright: skip if perl is insufficient
24636         * tests/test-update-copyright.sh: Failure to run maintainer tool
24637         should not cause testsuite failure on cygwin 1.5.
24638
24639 2009-08-14  Eric Blake  <ebb9@byu.net>
24640
24641         doc: mention more functions added in cygwin 1.7.0
24642         * doc/posix-headers/limits.texi (limits.h): Update for recent
24643         cygwin additions.
24644         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
24645         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
24646         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
24647         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
24648         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
24649
24650 2009-08-14  Eric Blake  <ebb9@byu.net>
24651
24652         maint.mk: simplify update-copyright rule
24653         * top/maint.mk (update-copyright-local): Delete, and document how
24654         to do it in cfg.mk instead.
24655         (update-copyright-exclude-regexp): Delete, and document how to do
24656         it in .x-update-copyright instead.
24657         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
24658         exclude ChangeLog.
24659
24660 2009-08-14  Bruno Haible  <bruno@clisp.org>
24661
24662         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
24663
24664 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24665
24666         maint.mk: support update-copyright-env
24667         * top/maint.mk (update-copyright-env): Define place-holder.
24668         (update-copyright): Expand $(update-copyright-env) before
24669         invoking update-copyright.
24670
24671 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24672
24673         update-copyright: implement forced reformatting
24674         * build-aux/update-copyright: Implement and document
24675         UPDATE_COPYRIGHT_FORCE.
24676         * tests/test-update-copyright.sh: Test it.
24677
24678 2009-08-14  Eric Blake  <ebb9@byu.net>
24679         and Bruno Haible  <bruno@clisp.org>
24680
24681         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
24682         * tests/test-locale.c: Revert previous patch related to NULL.
24683         * tests/test-stdio.c: Likewise.
24684         * tests/test-stdlib.c: Likewise.
24685         * tests/test-string.c: Likewise.
24686         * tests/test-unistd.c: Likewise.
24687         * modules/time-tests (Depends-on): Add verify.
24688         * modules/wchar-tests (Depends-on): Likewise.
24689         * tests/test-time.c: Test for NULL compliance.
24690         * tests/test-wchar.c: Likewise.
24691         * modules/locale (Depends-on): Add stddef.
24692         * modules/stdio (Depends-on): Likewise.
24693         * modules/stdlib (Depends-on): Likewise.
24694         * modules/string (Depends-on): Likewise.
24695         * modules/time (Depends-on): Likewise.
24696         * modules/unistd (Depends-on): Likewise.
24697         * modules/wchar (Depends-on): Likewise.
24698         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
24699         * lib/stdlib.in.h (includes): Likewise.
24700         * lib/string.in.h (includes): Likewise.
24701         * lib/time.in.h (includes): Likewise.
24702         * lib/unistd.in.h (includes): Likewise.
24703         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
24704         replaced.
24705         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24706         * m4/stddef_h.m4: New file.
24707         * modules/stddef: Likewise.
24708         * lib/stddef.in.h: Likewise.
24709         * modules/stddef-tests: Likewise.
24710         * tests/test-stddef.c: Likewise.
24711         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
24712         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
24713         * doc/posix-headers/locale.texi (locale.h): Likewise.
24714         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
24715         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24716         * doc/posix-headers/string.texi (string.h): Likewise.
24717         * doc/posix-headers/time.texi (time.h): Likewise.
24718         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
24719         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
24720
24721 2009-08-14  Eric Blake  <ebb9@byu.net>
24722
24723         doc: improve git diff of texinfo files
24724         * .gitattributes: Add rule for *.texi files, with hint on how to
24725         use it.
24726         Copied from m4, and based on a report by Bruno Haible.
24727
24728 2009-08-14  Bruno Haible  <bruno@clisp.org>
24729
24730         Disable multithread support by default on Cygwin 1.5.x for real.
24731         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
24732
24733 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
24734
24735         update-copyright: much ado about intervals
24736         * build-aux/update-copyright: Implement and document
24737         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
24738         of copyright year intervals.
24739         Also, document UPDATE_COPYRIGHT_YEAR.
24740         * tests/test-update-copyright.sh: Test it.
24741
24742         update-copyright: convert 2-digit to 4-digit years
24743         * build-aux/update-copyright: Implement and document.
24744         * tests/test-update-copyright.sh: Update.
24745
24746 2009-08-14  Jim Meyering  <meyering@redhat.com>
24747
24748         test-exclude: avoid coreutils "make check" failure
24749         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
24750         just as in test-argmatch.c.
24751
24752 2009-08-13  Eric Blake  <ebb9@byu.net>
24753
24754         test-dup2: fix bad assumption
24755         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
24756         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
24757
24758         test-version-etc: fix CRLF portability issue
24759         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
24760         recognize \r.
24761         * tests/test-argp-version-etc-1.sh: Likewise.
24762
24763         getopt: update client modules
24764         * modules/argp (Depends-on): Use getopt-gnu.
24765         * modules/git-merge-changelog (Depends-on): Likewise.
24766         * modules/long-options (Depends-on): Likewise.
24767         * modules/xstrtol (Depends-on): Likewise.
24768
24769 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24770
24771         * tests/test-version-etc.sh: Don't fail on different
24772         project/version.  Don't fail on CRLF differences.  Rewrite to use
24773         multiple -e instead of multiple sed forks, suggested by Eric Blake
24774         <ebb9@byu.net>.
24775         * tests/test-argp-version-etc-1.sh: Likewise.
24776
24777 2009-08-13  Simon Josefsson  <simon@josefsson.org>
24778
24779         * tests/test-version-etc.sh: Don't fail on different
24780         project/version.
24781
24782 2009-08-12  Bruno Haible  <bruno@clisp.org>
24783
24784         Tests for modules 'getopt-posix', 'getopt-gnu'.
24785         * modules/getopt-posix-tests: New file.
24786         * tests/test-getopt.c: New file.
24787         * tests/test-getopt.h: New file.
24788         * tests/test-getopt_long.h: New file.
24789
24790         New modules 'getopt-posix', 'getopt-gnu'.
24791         * modules/getopt-gnu: New file, renamed from modules/getopt.
24792         * modules/getopt-posix: New file.
24793         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
24794         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
24795         (gl_GETOPT): Remove macro.
24796         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
24797         Disable the test against BSD systems that declare optreset. Test
24798         against mingw bug. Test against lack of support of optional arguments
24799         on many platforms.
24800         * doc/glibc-headers/getopt.texi: Update module name and list of
24801         relevant platforms.
24802         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
24803         'getopt-gnu' and more portability problems.
24804         * NEWS: Mention the changes.
24805
24806 2009-08-12  Bruno Haible  <bruno@clisp.org>
24807
24808         Ensure that optarg etc. get declared by <unistd.h>.
24809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
24810         AC_USE_SYSTEM_EXTENSIONS.
24811         * modules/getopt (Depends-on): Add 'extensions'.
24812
24813 2009-08-12  Bruno Haible  <bruno@clisp.org>
24814
24815         Avoid test link errors.
24816         * modules/pipe-filter-ii-tests (Makefile.am): Define
24817         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
24818         * modules/pipe-filter-gi-tests (Makefile.am): Define
24819         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
24820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24821
24822 2009-08-12  Bruno Haible  <bruno@clisp.org>
24823
24824         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
24825         gl_GETOPT_SUBSTITUTE before.
24826         (gl_GETOPT): Use it.
24827         * m4/argp.m4 (gl_ARGP): Update.
24828         Reported by Sergey Poznyakoff.
24829
24830         * m4/getopt.m4: Reorder macros.
24831         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
24832         (gl_GETOPT_SUBSTITUTE): Remove macro.
24833
24834 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24835
24836         Minor improvement in gitlog-to-changelog
24837
24838         * build-aux/gitlog-to-changelog: New option `--format' makes
24839         output format string configurable.
24840
24841 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24842
24843         Optimize exclude: use hash tables for non-wildcard patterns.
24844
24845         * lib/exclude.c: Include hash.h and mbuiter.h
24846         (struct exclude_pattern, exclude_segment): New data types.
24847         (struct exclude): Rewrite.
24848         (fnmatch_pattern_has_wildcards): New function.
24849         (new_exclude_segment, free_exclude_segment): New functions.
24850         (excluded_file_pattern_p, excluded_file_name_p): New functions.
24851         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
24852         * lib/exclude.h (is_fnmatch_pattern): New prototype.
24853         * modules/exclude: Depend on hash and mbuiter.
24854
24855         * modules/exclude-tests: New file.
24856         * tests/test-exclude.c: New file.
24857         * tests/test-exclude1.sh: New file.
24858         * tests/test-exclude2.sh: New file.
24859         * tests/test-exclude3.sh: New file.
24860         * tests/test-exclude4.sh: New file.
24861         * tests/test-exclude5.sh: New file.
24862         * tests/test-exclude6.sh: New file.
24863         * tests/test-exclude7.sh: New file.
24864
24865 2009-08-12  Bruno Haible  <bruno@clisp.org>
24866
24867         Ensure that getopt() gets declared by <unistd.h>.
24868         * lib/unistd.in.h: Conditionally include getopt.h.
24869         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
24870         Set GNULIB_UNISTD_H_GETOPT.
24871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24872         GNULIB_UNISTD_H_GETOPT.
24873         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
24874
24875 2009-08-12  Bruno Haible  <bruno@clisp.org>
24876
24877         Clarify logic.
24878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
24879         gl_replace_getopt instead of GETOPT_H.
24880
24881 2009-08-12  Bruno Haible  <bruno@clisp.org>
24882
24883         * m4/getopt.m4: Add comments.
24884
24885 2009-08-12  Bruno Haible  <bruno@clisp.org>
24886
24887         Disable multithread support by default on Cygwin 1.5.x.
24888         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
24889         set gl_use_threads=no if not specified otherwise.
24890
24891 2009-08-11  Bruno Haible  <bruno@clisp.org>
24892
24893         Avoid compilation error on NetBSD 5.0.
24894         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
24895         * tests/test-stdio.c: Likewise.
24896         * tests/test-stdlib.c: Likewise.
24897         * tests/test-string.c: Likewise.
24898         * tests/test-unistd.c: Likewise.
24899         Reported by Greg Troxel <gdt@ir.bbn.com>
24900         at <https://savannah.gnu.org/support/?106973>.
24901
24902 2009-08-11  Bruno Haible  <bruno@clisp.org>
24903
24904         * modules/dup2-tests (Depends-on): Remove close.
24905
24906         Undo 2009-07-19 commit.
24907         * modules/acl-tests (Depends-on): Remove close.
24908         * modules/binary-io-tests (Depends-on): Likewise.
24909         * modules/closein-tests (Depends-on): Likewise.
24910         * modules/flock-tests (Depends-on): Likewise.
24911         * modules/fsync-tests (Depends-on): Likewise.
24912         * modules/lseek-tests (Depends-on): Likewise.
24913         * modules/pipe-tests (Depends-on): Likewise.
24914         * modules/posix_spawn-tests (Depends-on): Likewise.
24915         * modules/posix_spawnp-tests (Depends-on): Likewise.
24916         * modules/stat-time-tests (Depends-on): Likewise.
24917         * modules/yesno-tests (Depends-on): Likewise.
24918
24919 2009-08-10  Bruno Haible  <bruno@clisp.org>
24920
24921         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
24922
24923 2009-08-10  Bruno Haible  <bruno@clisp.org>
24924
24925         Fix a gcc warning.
24926         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
24927
24928 2009-08-10  Bruno Haible  <bruno@clisp.org>
24929
24930         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
24931         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
24932         not only the first time.
24933         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
24934         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
24935         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
24936         is 1, not only the the first time.
24937
24938 2009-08-10  Bruno Haible  <bruno@clisp.org>
24939
24940         Make it possible to use module 'gethostname' without module 'close'.
24941         * lib/unistd.in.h (close): Evoke a link error only if
24942         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24944         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24945         * modules/unistd (Makefile.am): Substitute
24946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24947         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
24948         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
24949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24950         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24951         * modules/sys_ioctl (Makefile.am): Substitute
24952         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24953         * modules/socket (configure.ac): On native Windows, set
24954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
24955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
24956         Reported by Sam Steingold <sds@gnu.org>.
24957
24958 2009-08-10  Bruno Haible  <bruno@clisp.org>
24959
24960         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
24961         * modules/ioctl (configure.ac): Likewise.
24962
24963 2009-08-10  Bruno Haible  <bruno@clisp.org>
24964
24965         Avoid collision between gnulib wrapper and libintl wrapper.
24966         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
24967         already defined in intl/printf.c.
24968         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
24969         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
24970
24971 2009-08-09  Bruno Haible  <bruno@clisp.org>
24972
24973         Make <sys/select.h> really self-contained, also on Solaris 10.
24974         * lib/sys_select.in.h: Include <string.h>.
24975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24976         Solaris 10 problem.
24977         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24978         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24979         Reported by Jim Meyering.
24980
24981 2009-08-09  Bruno Haible  <bruno@clisp.org>
24982
24983         Avoid warnings from 'aclocal' that are due to a use of macro name
24984         AM_XGETTEXT_OPTION that is not defined in automake.
24985         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24986         automake.
24987         * modules/error (configure.ac): Likewise.
24988         * modules/propername (configure.ac): Likewise.
24989         * modules/vasprintf (configure.ac): Likewise.
24990         * modules/verror (configure.ac): Likewise.
24991         * modules/xprintf (configure.ac): Likewise.
24992         * modules/xvasprintf (configure.ac): Likewise.
24993
24994 2009-08-08  Bruno Haible  <bruno@clisp.org>
24995
24996         Avoid compilation error in C++ mode.
24997         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24998         Reported by Sam Steingold <sds@gnu.org>.
24999
25000 2009-08-08  Bruno Haible  <bruno@clisp.org>
25001
25002         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25003         for the various Unix platforms.
25004         * doc/posix-headers/limits.texi: Update platforms list regarding
25005         HOST_NAME_MAX.
25006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25007
25008 2009-08-07  Jim Meyering  <meyering@redhat.com>
25009
25010         selinux-at: fix typo in a comment
25011         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25012         Spotted by Paolo Bonzini.
25013
25014         selinux-at: remove redundant m4 code, add documentation
25015         * modules/selinux-at (configure.ac): Remove redundant code.
25016         LIB_SELINUX is already set via the dependent module, selinux-h.
25017         (Include): Add quotes around selinux-at.h.
25018         * lib/selinux-at.h: Add documentation.
25019         Reported by Bruno Haible in
25020         http://marc.info/?l=gnulib-bug&m=124958988300749
25021
25022 2009-08-07  Bruno Haible  <bruno@clisp.org>
25023
25024         Avoid link error on MacOS X 10.3 and 10.4.
25025         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25026         on non-ELF systems.
25027         * lib/argp-pv.c (argp_program_version): Likewise.
25028         Reported by Simon Josefsson.
25029
25030 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25031
25032         * tests/test-version-etc.sh: Use $EXEEXT.
25033
25034 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25035
25036         update-copyright: update documentation to point to maint.mk
25037         * build-aux/update-copyright: Here.
25038
25039 2009-08-06  Jim Meyering  <meyering@redhat.com>
25040
25041         maint.mk: support update-copyright-local
25042         * top/maint.mk (update-copyright-local): Define place-holder.
25043         (update-copyright): Depend on $(update-copyright-local).
25044
25045 2009-08-06  Jim Meyering  <meyering@redhat.com>
25046
25047         selinux-at: new module
25048         Initially written for coreutils, this module will soon be
25049         used by findutils, too.
25050         * MODULES.html.sh [Misc]: Add selinux-at.
25051         * lib/selinux-at.h: New file, from coreutils.
25052         * lib/selinux-at.c: Likewise.
25053         * modules/selinux-at: Likewise.
25054         (License): Change from LGPL to GPL, since it depends
25055         on the GPL'd openat module.
25056
25057         doc: update README
25058         * README: Remove references to cogito.
25059         Remove cvs-repo-updating instructions from 2007.
25060         Don't imply that CVS is better if you have limited disk space.
25061
25062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25063
25064         update-copyright: support C-style comments
25065         * build-aux/update-copyright: Implement and document.
25066         * tests/test-update-copyright.sh: Test.
25067
25068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25069
25070         update-copyright: support omitted "(C)"
25071         * build-aux/update-copyright: Implement and document.  Also,
25072         allow variable whitespace before "(C)".
25073         * tests/test-update-copyright.sh: Test.
25074
25075 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25076
25077         update-copyright: don't trip on non-FSF copyright statements
25078         * build-aux/update-copyright: Fix so that the first correctly
25079         formatted FSF copyright statement is recognized no matter what
25080         appears before it.  Update documentation.
25081         * tests/test-update-copyright.sh: Test that.
25082
25083 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25084
25085         update-copyright: clean up code a little
25086         * build-aux/update-copyright: Append "_re" to the name of any
25087         variable holding a regular expression.
25088         Replace "old" and "new" with "stmt" in variable names.
25089         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25090         handled correctly.
25091         Format code more consistently.
25092
25093 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25094
25095         update-copyright-tests: improve portability
25096         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25097         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25098
25099 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25100
25101         update-copyright: support @copyright{} and &copy;
25102         * build-aux/update-copyright: Implement and document.
25103         * tests/test-update-copyright.sh: Test.
25104
25105 2009-08-04  Jim Meyering  <meyering@redhat.com>
25106
25107         update-copyright-tests: correctly test EOL=\r\n handling
25108         * tests/test-update-copyright.sh: Put \r at the end of some lines
25109         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25110
25111         maint.mk: make update-copyright exclusion list more configurable
25112         * top/maint.mk (update-copyright): Default to excluding COPYING,
25113         but allow an override, in case someone does want to update that file.
25114
25115         maint.mk: don't update copyright date in COPYING
25116         * top/maint.mk (update-copyright): Exclude COPYING.
25117
25118         maint.mk: add a copyright-updating rule
25119         * top/maint.mk (update-copyright): New rule.
25120         Derived from coreutils/Makefile.am.
25121
25122         update-copyright: rename some variables
25123         * build-aux/update-copyright: Rename a few variables for clarity.
25124         Tweak syntax.  List Joel E. Denny as coauthor.
25125
25126 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25127
25128         update-copyright: fix bug for 2-digit last year and add tests
25129         * build-aux/update-copyright: Fix bug.
25130         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25131         specified.
25132         * modules/update-copyright-tests: New
25133         * tests/test-update-copyright.sh: New.
25134
25135 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25136
25137         update-copyright: handle leading tabs in line prefix
25138         * build-aux/update-copyright: Count leading tabs as 8 spaces
25139         when computing margin.  This helps with the formatting of
25140         ChangeLogs, for example.
25141         Fix documentation a little.
25142
25143 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25144
25145         update-copyright: support EOL=\r\n
25146         * build-aux/update-copyright: Implement that.
25147
25148 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25149
25150         update-copyright: automatically format copyright statements
25151         * build-aux/update-copyright: Implement that.
25152         Also, be a little more predictable and safer by always failing
25153         when the full copyright format is not perfectly recognized as an
25154         unbroken whole.  Discussed at
25155         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25156         Rewrite documentation.
25157
25158 2009-08-03  Bruno Haible  <bruno@clisp.org>
25159
25160         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25161
25162 2009-08-02  Bruno Haible  <bruno@clisp.org>
25163
25164         Tests for module 'uname'.
25165         * modules/uname-tests: New file.
25166         * tests/test-uname.c: New file.
25167
25168         New module 'uname'.
25169         * lib/uname.c: New file.
25170         * m4/uname.m4: New file.
25171         * modules/uname: New file.
25172         * doc/posix-functions/uname.texi: Mention the new module.
25173
25174 2009-08-02  Bruno Haible  <bruno@clisp.org>
25175
25176         Tests for module 'sys_utsname'.
25177         * modules/sys_utsname-tests: New file.
25178         * tests/test-sys_utsname.c: New file.
25179
25180         New module 'sys_utsname'.
25181         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25182         * m4/sys_utsname_h.m4: New file.
25183         * modules/sys_utsname: New file.
25184         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25185
25186 2009-08-02  Bruno Haible  <bruno@clisp.org>
25187
25188         Implicitly initialize the sockets library.
25189         * lib/gethostname.c: Include sockets.h.
25190         (rpl_gethostname): Invoke gl_sockets_startup.
25191         * lib/socket.c: Include sockets.h.
25192         (rpl_socket): Invoke gl_sockets_startup.
25193         * modules/gethostname (Depends-on): Add sockets.
25194         * modules/socket (Depends-on): Likewise.
25195         * tests/test-poll.c: Don't include sockets.h.
25196         (main): Don't invoke gl_sockets_startup.
25197         * tests/test-select.c: Don't include sockets.h.
25198         (main): Don't invoke gl_sockets_startup.
25199
25200 2009-08-02  Bruno Haible  <bruno@clisp.org>
25201
25202         Allow multiple calls to gl_sockets_startup.
25203         * lib/sockets.c (initialized_sockets_version): New variable.
25204         (gl_sockets_startup): Do nothing if already called for this or a higher
25205         version.
25206         (gl_sockets_cleanup): Reset initialized_sockets_version.
25207
25208 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25209
25210         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25211         different project/version.
25212
25213 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25214             Bruno Haible  <bruno@clisp.org>
25215
25216         Tests for module 'pipe-filter-gi'.
25217         * modules/pipe-filter-gi-tests: New file.
25218         * tests/test-pipe-filter-gi1.sh: New file.
25219         * tests/test-pipe-filter-gi1.c: New file.
25220         * tests/test-pipe-filter-gi2.sh: New file.
25221         * tests/test-pipe-filter-gi2-main.c: New file.
25222         * tests/test-pipe-filter-gi2-child.c: New file.
25223
25224         New module 'pipe-filter-gi'.
25225         * lib/pipe-filter-gi.c: New file.
25226         * modules/pipe-filter-gi: New file.
25227
25228 2009-08-02  Bruno Haible  <bruno@clisp.org>
25229             Paolo Bonzini  <bonzini@gnu.org>
25230
25231         Tests for module 'pipe-filter-ii'.
25232         * modules/pipe-filter-ii-tests: New file.
25233         * tests/test-pipe-filter-ii1.sh: New file.
25234         * tests/test-pipe-filter-ii1.c: New file.
25235         * tests/test-pipe-filter-ii2.sh: New file.
25236         * tests/test-pipe-filter-ii2-main.c: New file.
25237         * tests/test-pipe-filter-ii2-child.c: New file.
25238
25239         New module 'pipe-filter-ii'.
25240         * lib/pipe-filter.h: New file.
25241         * lib/pipe-filter-ii.c: New file.
25242         * lib/pipe-filter-aux.h: New file.
25243         * modules/pipe-filter-ii: New file.
25244
25245 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25246
25247         * lib/gc-libgcrypt.c: Change copyright to FSF.
25248         * lib/gc-gnulib.c: Likewise.
25249
25250 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
25251
25252         * lib/gethostname.c: Include limits.h.
25253
25254 2009-08-02  Simon Josefsson  <simon@josefsson.org>
25255             Bruno Haible  <bruno@clisp.org>
25256
25257         Ensure HOST_NAME_MAX as part of the gethostname module.
25258         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
25259         define also HOST_NAME_MAX.
25260         * tests/test-gethostname.c: Include <limits.h>.
25261         (main): Check also HOST_NAME_MAX.
25262         * doc/posix-headers/limits.texi: Document the mingw problem.
25263
25264 2009-08-02  Bruno Haible  <bruno@clisp.org>
25265
25266         * lib/gethostname.c (gethostname): Fix handling of large len argument.
25267         Add comments.
25268
25269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25270
25271         * lib/gethostname.c: Add Windows wrapper.
25272         * m4/gethostname.m4: Look for gethostname in -lws2_32.
25273         * modules/gethostname: Depend on sys_socket & errno, for also
25274         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
25275         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
25276
25277 2009-07-31  Jim Meyering  <meyering@redhat.com>
25278
25279         getloadavg: fix symbol name in comment
25280         * lib/getloadavg.c: Correct a typo I introduced when adding
25281         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
25282         Matt Kraai spotted the problem.
25283
25284 2009-07-29  Matt Kraai  <mkraai@beckman.com>
25285
25286         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
25287         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
25288         code also if ! defined N_NAME_POINTER.
25289         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
25290         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
25291         but the n_name member is a 12-byte array.
25292
25293 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
25294
25295         update-copyright: generalize comment handling
25296         * build-aux/update-copyright: Handle copyright statements
25297         within more comment styles.
25298         Document usage.
25299         Report any file with an external copyright holder or parse failure.
25300
25301 2009-07-29  Jim Meyering  <meyering@redhat.com>
25302
25303         mktime: correct setting of REPLACE_MKTIME
25304         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
25305
25306         update-copyright: new module
25307         * modules/update-copyright: New file.
25308         * build-aux/update-copyright: New file.
25309         * MODULES.html.sh (maint+release support): Add update-copyright.
25310
25311 2009-07-27  Bruno Haible  <bruno@clisp.org>
25312
25313         Fix compilation error when <ctime> is used and mktime is replaced.
25314         * lib/time.in.h (mktime): New declaration.
25315         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
25316         REPLACE_MKTIME instead of defining mktime in config.h.
25317         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
25318         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
25319         Reported by Ross McFarland <rwmcfa1@neces.com>.
25320
25321 2009-07-27  Bruno Haible  <bruno@clisp.org>
25322
25323         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
25324         Reported by Matt Kraai <mkraai@beckman.com>.
25325
25326 2009-07-25  Jim Meyering  <meyering@redhat.com>
25327
25328         maint.mk: avoid warnings about missing files
25329         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
25330         diagnostic when .prev-version does not exist.
25331         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
25332         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
25333         nonexistent cfg.mk.
25334         Suggestions from Simon Josefsson.
25335
25336 2009-07-25  Bruno Haible  <bruno@clisp.org>
25337
25338         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
25339         defined as macros. Needed on QNX 6.4.1.
25340         Reported by Matt Kraai <mkraai@beckman.com>.
25341
25342 2009-07-23  Jim Meyering  <meyering@redhat.com>
25343
25344         maint.mk: invoke "make dist" with a working value of XZ_OPT
25345         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
25346
25347 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
25348
25349         Make fseeko.c compile on QNX.
25350         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
25351
25352 2009-07-22  Peter Simons  <simons@cryp.to>
25353
25354         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
25355         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
25356         * lib/md4.h: Likewise.
25357         * lib/md5.h: Likewise.
25358         * lib/sha1.h: Likewise.
25359         * lib/sha256.h: Likewise.
25360         * lib/sha512.h: Likewise.
25361
25362         tests-sha1: don't assign literal string to 'char *' variable
25363         * tests/test-sha1.c (main): Declare locals with "const" to match
25364         attributes of the right hand side.
25365
25366 2009-07-21  Eric Blake  <ebb9@byu.net>
25367
25368         dup2: fix more mingw problems
25369         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
25370         fd to itself.
25371         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25372         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
25373         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
25374         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
25375         care of mingw bugs.
25376
25377 2009-07-21  Jim Meyering  <meyering@redhat.com>
25378
25379         vc-list-files: avoid failure when /bin/sh is dash
25380         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
25381         On some Debian based systems, /bin/sh is a symlink to dash, and running
25382         this command would omit the "/" following each 'tests' prefix:
25383           dash -x build-aux/vc-list-files -C . tests
25384         That is because bash and dash work differently:
25385           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
25386           bash ok
25387           dash odd
25388
25389 2009-07-21  Eric Blake  <ebb9@byu.net>
25390
25391         dup2-tests: test previous patch
25392         * modules/dup2-tests: New file.
25393         * tests/test-dup2.c: Likewise.
25394         * tests/test-open.c (main): Avoid unspecified behavior.
25395         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
25396         test.
25397
25398         dup2: work around mingw and cygwin 1.5 bug
25399         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
25400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25401         * modules/unistd (Makefile.am): Substitute it.
25402         * lib/unistd.in.h (dup2): Declare the replacement.
25403         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
25404         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
25405         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
25406         * modules/execute (Depends-on): Add dup2.
25407         * modules/fseterr (Depends-on): Likewise.
25408         * modules/pipe (Depends-on): Likewise.
25409         * modules/posix_spawn-internal (Depends-on): Likewise.
25410
25411 2009-07-21  Bruno Haible  <bruno@clisp.org>
25412
25413         * modules/.gitattributes: New file.
25414
25415 2009-07-20  Bruno Haible  <bruno@clisp.org>
25416
25417         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
25418         (main): Use it.
25419
25420 2009-07-20  Eric Blake  <ebb9@byu.net>
25421
25422         test-pipe: make a bit more robust.
25423         * tests/test-pipe.c (myerr): Allow error messages regardless of
25424         what we do to stderr.
25425         (test_pipe): Rearrange to avoid deadlock.
25426         (child_main): Try a larger read, to ensure we avoided deadlock.
25427         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
25428         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
25429         if misused.
25430
25431 2009-07-19  Jim Meyering  <meyering@redhat.com>
25432
25433         fts: avoid false-positive cycle-detection
25434         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
25435         for each new command line argument.
25436
25437 2009-07-19  Bruno Haible  <bruno@clisp.org>
25438
25439         Fix build error on mingw with the modules sys_select and unistd.
25440         * modules/acl-tests (Depends-on): Add close.
25441         * modules/binary-io-tests (Depends-on): Likewise.
25442         * modules/closein-tests (Depends-on): Likewise.
25443         * modules/flock-tests (Depends-on): Likewise.
25444         * modules/fsync-tests (Depends-on): Likewise.
25445         * modules/lseek-tests (Depends-on): Likewise.
25446         * modules/pipe-tests (Depends-on): Likewise.
25447         * modules/posix_spawn-tests (Depends-on): Likewise.
25448         * modules/posix_spawnp-tests (Depends-on): Likewise.
25449         * modules/stat-time-tests (Depends-on): Likewise.
25450         * modules/yesno-tests (Depends-on): Likewise.
25451
25452 2009-07-19  Bruno Haible  <bruno@clisp.org>
25453
25454         Unify conditionals.
25455         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
25456         macros, not at the compiler macros.
25457         * lib/pipe.c: Likewise.
25458         * lib/execute.c: Likewise.
25459         * lib/spawni.c: Likewise.
25460
25461 2009-07-19  Bruno Haible  <bruno@clisp.org>
25462
25463         Fix handling of closed stdin/stdout/stderr on mingw.
25464         * lib/w32spawn.h: Include unistd.h.
25465         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
25466         file descriptor with O_NOINHERIT flag.
25467         (fd_safer_noinherit): New function, based on fd-safer.c.
25468         (dup_safer_noinherit): New function, based on dup-safer.c.
25469         (undup_safer_noinherit): New function.
25470         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
25471         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
25472         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
25473         instead of fd_safer.
25474         * tests/test-pipe.c: Include <windows.h>.
25475         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
25476
25477         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
25478         from main.
25479         (test_pipe): Pass an extra argument for disambiguation.
25480         (main): Invoke parent_main or child_main.
25481
25482         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
25483         consistently.
25484
25485 2009-07-18  Eric Blake  <ebb9@byu.net>
25486
25487         test-pipe: fix mingw build
25488         * tests/test-pipe.c (main): Avoid fcntl on mingw.
25489
25490 2009-07-18  Bruno Haible  <bruno@clisp.org>
25491
25492         * modules/pipe-tests (Makefile.am): Fix typo.
25493
25494 2009-07-18  Eric Blake  <ebb9@byu.net>
25495
25496         error: fix mingw build
25497         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
25498         Reported by Bruno Haible.
25499
25500         error: avoid undefined use of stdout
25501         * lib/error.c (error, error_at_line): Check that fd 1 is open
25502         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
25503         is handling faults and the close_stdout module wants to report the
25504         detection of closed stdout as an error.
25505
25506 2009-07-17  Eric Blake  <ebb9@byu.net>
25507
25508         pipe: be robust in face of closed fds
25509         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
25510         should cause child to misbehave.
25511         * modules/pipe-tests: New module.
25512         * tests/test-pipe.c: New file.
25513         * tests/test-pipe.sh: New file.
25514         Reported by Akim Demaille.
25515
25516 2009-07-14  Bruno Haible  <bruno@clisp.org>
25517
25518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
25519         Reported by anonymous kc.
25520
25521 2009-07-07  Jim Meyering  <meyering@redhat.com>
25522
25523         maint.mk: don't look for translatable strings in *.m4 or *.mk
25524         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
25525         when searching for translatable strings.
25526
25527 2009-07-05  Jim Meyering  <meyering@redhat.com>
25528
25529         remove superfluous parentheses in STREQ definition
25530         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
25531         * lib/getugroups.c (STREQ): Likewise.
25532         * lib/fnmatch.c (STREQ): Likewise.
25533         Spotted by Bruno Haible.
25534
25535 2009-07-04  Jim Meyering  <meyering@redhat.com>
25536
25537         argv-iter: new module
25538         * MODULES.html.sh: Add argv-iter.
25539         * lib/argv-iter.c, lib/argv-iter.h: New files.
25540         * modules/argv-iter: New file.
25541         * modules/argv-iter-tests: New file.
25542         * tests/test-argv-iter.c: Test it.
25543
25544 2009-07-04  Bruno Haible  <bruno@clisp.org>
25545
25546         Fix assertion.
25547         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
25548         contains more exact copies of a given entry than file2, leave the extra
25549         copies unpaired rather than aborting.
25550         Reported by Eric Blake.
25551
25552 2009-07-02  Bruno Haible  <bruno@clisp.org>
25553
25554         Speedup git-merge-changelog for git cherry-pick.
25555         * lib/git-merge-changelog.c (struct entries_mapping): New type.
25556         (entries_mapping_get): New function, extracted from compute_mapping.
25557         (entries_mapping_reverse_get): New function.
25558         (compute_mapping): Add a 'full' argument. Return the result in a
25559         'struct entries_mapping'.
25560         (main): Update. Access the mappings through entries_mapping_get.
25561         Reported by Eric Blake.
25562
25563 2009-07-02  Bruno Haible  <bruno@clisp.org>
25564
25565         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
25566         best_i.
25567
25568 2009-07-02  Bruno Haible  <bruno@clisp.org>
25569
25570         Speed up approximate search for matching ChangeLog entries.
25571         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
25572         argument. Call fstrcmp_bounded instead of fstrcmp.
25573         (compute_mapping, try_split_merged_entry, main): Update callers.
25574
25575 2009-07-02  Bruno Haible  <bruno@clisp.org>
25576
25577         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
25578
25579 2009-06-30  Bruno Haible  <bruno@clisp.org>
25580
25581         Reduce the number of uc_is_cased calls.
25582         * lib/unicase.h (casing_suffix_context_t): Add
25583         'first_char_except_ignorable' field.
25584         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
25585         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
25586         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
25587         Update initializer.
25588         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
25589         case-ignorable characters.
25590         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
25591         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
25592         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
25593         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
25594         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
25595
25596 2009-06-30  Bruno Haible  <bruno@clisp.org>
25597
25598         Tests for module 'unicase/ignorable'.
25599         * modules/unicase/ignorable-tests: New file.
25600         * tests/unicase/test-ignorable.c: New file, generated by
25601         gen-uni-tables.
25602
25603         Tests for module 'unicase/cased'.
25604         * modules/unicase/cased-tests: New file.
25605         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
25606         * tests/unicase/test-predicate-part1.h: New file, derived from
25607         tests/unictype/test-predicate-part1.h.
25608         * tests/unicase/test-predicate-part2.h: New file, same as
25609         tests/unictype/test-predicate-part2.h.
25610
25611         Fix evaluation of "Before C" condition of FINAL_SIGMA.
25612         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
25613         (output_casing_properties): New function.
25614         (main): Call it.
25615         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
25616         * lib/unicase/cased.c: Include unictype/bitmap.h.
25617         (uc_is_cased): Define through a bitmap lookup.
25618         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
25619         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
25620         (uc_is_case_ignorable): Define through a bitmap lookup.
25621         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
25622         lib/unictype/bitmap.h.
25623         (Depends-on): Add inline. Clean up.
25624         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
25625         lib/unictype/bitmap.h.
25626         (Depends-on): Add inline. Clean up.
25627         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
25628         recognition.
25629         * tests/unicase/test-u16-tolower.c (main): Likewise.
25630         * tests/unicase/test-u32-tolower.c (main): Likewise.
25631
25632 2009-06-30  Bruno Haible  <bruno@clisp.org>
25633
25634         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
25635         * lib/unicase/u16-casemap.c: Likewise.
25636         * lib/unicase/u32-casemap.c: Likewise.
25637
25638 2009-06-29  Bruno Haible  <bruno@clisp.org>
25639
25640         Define u32_casefold as a wrapper around u32_ct_casefold.
25641         * lib/unicase/u32-casefold.c: Update.
25642         * modules/unicase/u32-casefold (Depends-on): Add
25643         unicase/u32-ct-casefold, unicase/empty-prefix-context,
25644         unicase/empty-suffix-context. Clean up.
25645
25646         Define u16_casefold as a wrapper around u16_ct_casefold.
25647         * lib/unicase/u16-casefold.c: Update.
25648         * modules/unicase/u16-casefold (Depends-on): Add
25649         unicase/u16-ct-casefold, unicase/empty-prefix-context,
25650         unicase/empty-suffix-context. Clean up.
25651
25652         Define u8_casefold as a wrapper around u8_ct_casefold.
25653         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
25654         * lib/unicase/u8-casefold.c: Update.
25655         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
25656         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25657
25658         Define u32_totitle as a wrapper around u32_ct_totitle.
25659         * lib/unicase/u32-totitle.c: Update.
25660         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
25661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25662
25663         Define u16_totitle as a wrapper around u16_ct_totitle.
25664         * lib/unicase/u16-totitle.c: Update.
25665         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
25666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25667
25668         Define u8_totitle as a wrapper around u8_ct_totitle.
25669         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
25670         functions.
25671         (FUNC): Delegate to U_CT_TOTITLE.
25672         * lib/unicase/u8-totitle.c: Update.
25673         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
25674         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
25675
25676         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
25677         invocation.
25678         * modules/unicase/u32-tolower (Depends-on): Add
25679         unicase/empty-prefix-context, unicase/empty-suffix-context.
25680
25681         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
25682         invocation.
25683         * modules/unicase/u16-tolower (Depends-on): Add
25684         unicase/empty-prefix-context, unicase/empty-suffix-context.
25685
25686         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
25687         * modules/unicase/u8-tolower (Depends-on): Add
25688         unicase/empty-prefix-context, unicase/empty-suffix-context.
25689
25690         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
25691         invocation.
25692         * modules/unicase/u32-toupper (Depends-on): Add
25693         unicase/empty-prefix-context, unicase/empty-suffix-context.
25694
25695         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
25696         invocation.
25697         * modules/unicase/u16-toupper (Depends-on): Add
25698         unicase/empty-prefix-context, unicase/empty-suffix-context.
25699
25700         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
25701         * modules/unicase/u8-toupper (Depends-on): Add
25702         unicase/empty-prefix-context, unicase/empty-suffix-context.
25703
25704         New module 'unicase/u32-ct-casefold'.
25705         * lib/unicase/u32-ct-casefold.c: New file.
25706         * modules/unicase/u32-ct-casefold: New file.
25707
25708         New module 'unicase/u16-ct-casefold'.
25709         * lib/unicase/u16-ct-casefold.c: New file.
25710         * modules/unicase/u16-ct-casefold: New file.
25711
25712         New module 'unicase/u8-ct-casefold'.
25713         * lib/unicase/u8-ct-casefold.c: New file.
25714         * lib/unicase/u-ct-casefold.h: New file, derived from
25715         lib/unicase/u-casefold.h.
25716         * modules/unicase/u8-ct-casefold: New file.
25717
25718         New module 'unicase/u32-ct-totitle'.
25719         * lib/unicase/u32-ct-totitle.c: New file.
25720         * modules/unicase/u32-ct-totitle: New file.
25721
25722         New module 'unicase/u16-ct-totitle'.
25723         * lib/unicase/u16-ct-totitle.c: New file.
25724         * modules/unicase/u16-ct-totitle: New file.
25725
25726         New module 'unicase/u8-ct-totitle'.
25727         * lib/unicase/u8-ct-totitle.c: New file.
25728         * lib/unicase/u-ct-totitle.h: New file, derived from
25729         lib/unicase/u-totitle.h.
25730         * modules/unicase/u8-ct-totitle: New file.
25731
25732         New module 'unicase/u32-ct-tolower'.
25733         * lib/unicase/u32-ct-tolower.c: New file.
25734         * modules/unicase/u32-ct-tolower: New file.
25735
25736         New module 'unicase/u16-ct-tolower'.
25737         * lib/unicase/u16-ct-tolower.c: New file.
25738         * modules/unicase/u16-ct-tolower: New file.
25739
25740         New module 'unicase/u8-ct-tolower'.
25741         * lib/unicase/u8-ct-tolower.c: New file.
25742         * modules/unicase/u8-ct-tolower: New file.
25743
25744         New module 'unicase/u32-ct-toupper'.
25745         * lib/unicase/u32-ct-toupper.c: New file.
25746         * modules/unicase/u32-ct-toupper: New file.
25747
25748         New module 'unicase/u16-ct-toupper'.
25749         * lib/unicase/u16-ct-toupper.c: New file.
25750         * modules/unicase/u16-ct-toupper: New file.
25751
25752         New module 'unicase/u8-ct-toupper'.
25753         * lib/unicase/u8-ct-toupper.c: New file.
25754         * modules/unicase/u8-ct-toupper: New file.
25755
25756         Add context arguments to u*_casemap functions.
25757         * lib/unicase/unicasemap.h: Include unicase.h.
25758         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
25759         suffix_context arguments.
25760         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
25761         functions.
25762         (FUNC): Add prefix_context and suffix_context arguments. Use
25763         uc_is_cased and uc_is_case_ignorable.
25764         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
25765         * lib/unicase/u16-casemap.c: Likewise.
25766         * lib/unicase/u32-casemap.c: Likewise.
25767         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
25768         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25769         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
25770         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25771         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
25772         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
25773
25774         New module 'unicase/u32-suffix-context'.
25775         * lib/unicase/u32-suffix-context.c: New file.
25776         * modules/unicase/u32-suffix-context: New file.
25777
25778         New module 'unicase/u16-suffix-context'.
25779         * lib/unicase/u16-suffix-context.c: New file.
25780         * modules/unicase/u16-suffix-context: New file.
25781
25782         New module 'unicase/u8-suffix-context'.
25783         * lib/unicase/u8-suffix-context.c: New file.
25784         * lib/unicase/u-suffix-context.h: New file.
25785         * modules/unicase/u8-suffix-context: New file.
25786
25787         New module 'unicase/empty-suffix-context'.
25788         * lib/unicase/empty-suffix-context.c: New file.
25789         * modules/unicase/empty-suffix-context: New file.
25790
25791         New module 'unicase/u32-prefix-context'.
25792         * lib/unicase/u32-prefix-context.c: New file.
25793         * modules/unicase/u32-prefix-context: New file.
25794
25795         New module 'unicase/u16-prefix-context'.
25796         * lib/unicase/u16-prefix-context.c: New file.
25797         * modules/unicase/u16-prefix-context: New file.
25798
25799         New module 'unicase/u8-prefix-context'.
25800         * lib/unicase/u8-prefix-context.c: New file.
25801         * lib/unicase/u-prefix-context.h: New file.
25802         * lib/unicase/context.h: New file.
25803         * modules/unicase/u8-prefix-context: New file.
25804
25805         New module 'unicase/empty-prefix-context'.
25806         * lib/unicase/empty-prefix-context.c: New file.
25807         * modules/unicase/empty-prefix-context: New file.
25808
25809         New module 'unicase/ignorable'.
25810         * lib/unicase/ignorable.c: New file.
25811         * modules/unicase/ignorable: New file.
25812
25813         New module 'unicase/cased'.
25814         * lib/unicase/caseprop.h: New file.
25815         * lib/unicase/cased.c: New file.
25816         * modules/unicase/cased: New file.
25817
25818         New functions for case mapping of substrings.
25819         * lib/unicase.h (casing_prefix_context_t): New type.
25820         (unicase_empty_prefix_context): New variable.
25821         (u8_casing_prefix_context, u16_casing_prefix_context,
25822         u32_casing_prefix_context, u8_casing_prefixes_context,
25823         u16_casing_prefixes_context, u32_casing_prefixes_context): New
25824         declarations.
25825         (casing_suffix_context_t): New type.
25826         (unicase_empty_suffix_context): New variable.
25827         (u8_casing_suffix_context, u16_casing_suffix_context,
25828         u32_casing_suffix_context, u8_casing_suffixes_context,
25829         u16_casing_suffixes_context, u32_casing_suffixes_context,
25830         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
25831         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
25832         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
25833         declarations.
25834
25835 2009-06-28  Jim Meyering  <meyering@redhat.com>
25836
25837         boostrap: indent only with spaces
25838         * build-aux/bootstrap: Indent only with spaces, never TABs.
25839
25840         bootstrap: split long lines
25841         * build-aux/bootstrap: Keep line length < 80.
25842
25843         bootstrap: sync from coreutils
25844         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
25845         just as autoreconf does.  Verify a list of prerequisite
25846         package-name,version-number pairs if defined in bootstrap.conf.
25847         Refer to README-prereq, if prerequisites are not satisfied.
25848
25849 2009-06-27  Eric Blake  <ebb9@byu.net>
25850
25851         tests: add test for bogus NULL definition
25852         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
25853         * tests/test-stdlib.c: Likewise.
25854         * tests/test-string.c: Likewise.
25855         * tests/test-locale.c: Likewise.
25856         * tests/test-unistd.c: Likewise.
25857         * modules/stdio-tests (Depends-on): Add verify.
25858         * modules/stdlib-tests (Depends-on): Likewise.
25859         * modules/string-tests (Depends-on): Likewise.
25860         * modules/locale-tests (Depends-on): Likewise.
25861         * modules/unistd-tests (Depends-on): Likewise.
25862
25863 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
25864
25865         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
25866         self-explaining comment.
25867         * m4/selinux-selinux-h: Update serial.
25868         (gl_LIBSELINUX): New macro, adding a warning for missing development
25869         packages to code extracted from...
25870         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
25871         Add warning for missing development packages here, too.
25872
25873 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
25874
25875         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
25876
25877 2009-06-25  Eric Blake  <ebb9@byu.net>
25878
25879         version-etc: fix regression
25880         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
25881         gcc.
25882         (version_etc): Use it, to catch bugs with trailing NULL.
25883         * lib/version-etc.c (version_etc_arn): Delete unused argument.
25884         (version_etc_va): Fix logic bug.
25885         * modules/version-etc-tests: Add test.
25886         * tests/test-version-etc.c: New file.
25887         * tests/test-version-etc.sh: Likewise.
25888
25889 2009-06-25  Sam Steingold  <sds@gnu.org>
25890
25891         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
25892         mbtowc declaration.
25893
25894 2009-06-25  Eric Blake  <ebb9@byu.net>
25895
25896         fpurge: migrate into <stdio.h>
25897         * lib/fpurge.h: Delete...
25898         * lib/stdio.in.h (fpurge): ...and declare here, instead.
25899         * lib/fpurge.c (fpurge): Change declaring header.
25900         * modules/fpurge (Files): Drop deleted file.
25901         (Depends-on): Add stdio.
25902         (configure.ac): Set witness.
25903         * modules/stdio (Makefile.am): Support fpurge macros.
25904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
25906         * lib/fflush.c: Update client.
25907         * tests/test-fpurge.c: Likewise.
25908         * NEWS: Mention the change.
25909
25910 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25911
25912         * lib/argp-version-etc.c (program_authors): Add const
25913         qualifier.
25914         * lib/version-etc.c: Fix typos in the comments.
25915         * modules/argp-version-etc: Depends on version-etc.
25916
25917 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25918
25919         argp-version-etc: new module.
25920
25921         * lib/argp-version-etc.c: New file.
25922         * lib/argp-version-etc.h: New file.
25923         * modules/argp-version-etc: New file.
25924         * modules/argp-version-etc-tests: New file.
25925         * tests/test-argp-version-etc.c: New test.
25926         * tests/test-argp-version-etc-1.sh: New test.
25927
25928 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25929
25930         Provide additional interfaces and documentation for version-etc
25931         module.
25932
25933         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
25934         interfaces.
25935         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
25936         prototypes.
25937
25938 2009-06-24  Bruno Haible  <bruno@clisp.org>
25939
25940         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
25941         HAVE_LIB${NAME} macro.
25942         Reported by Sam Steingold <sds@gnu.org>.
25943
25944 2009-06-23  Simon Josefsson  <simon@josefsson.org>
25945
25946         * modules/hash-tests (test_hash_LDADD): Link to libintl when
25947         needed.
25948
25949 2009-06-21  Bruno Haible  <bruno@clisp.org>
25950
25951         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
25952         work.
25953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
25954         together with LIB${NAME}, LTLIB${NAME}.
25955         Reported by Sam Steingold <sds@gnu.org>.
25956
25957 2009-06-20  Jim Meyering  <meyering@redhat.com>
25958
25959         tests: make sc_require_test_exit_idiom more generic
25960         * top/maint.mk (Exit_witness_file): New overridable variable.
25961         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
25962         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
25963
25964 2009-06-19  Jim Meyering  <meyering@redhat.com>
25965
25966         hash: reverse order of src/dst parameters in an internal interface
25967         * lib/hash.c (transfer_entries): Reverse order of parameters to
25968         put DST before SRC.  Adjust callers.
25969
25970         tests: test-hash: avoid wholesale duplication
25971         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
25972         Instead, use a loop and add a single conditional.
25973
25974         tests: test-hash: allow seed selection via a command line argument
25975         * tests/test-hash.c (get_seed): New function.
25976         (main): Use it.
25977
25978 2009-06-19  Eric Blake  <ebb9@byu.net>
25979
25980         hash: avoid memory leak on allocation failure
25981         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25982         failure.  Factor repeated algorithm...
25983         (transfer_entries): ...into new helper routine.
25984         (hash_delete): React to hash_rehash return value.
25985
25986         hash: reduce memory pressure in hash_rehash no-op case
25987         * lib/hash.c (next_prime): Avoid overflow.
25988         (hash_initialize): Factor bucket size computation...
25989         (compute_bucket_size): ...into new helper function.
25990         (hash_rehash): Use new function and open coding to reduce memory
25991         pressure, and avoid a memory leak in USE_OBSTACK code.
25992         Reported by Jim Meyering.
25993
25994 2009-06-18  Eric Blake  <ebb9@byu.net>
25995
25996         hash: make rotation more obvious
25997         * modules/hash (Depends-on): Add bitrotate and stdint.
25998         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25999         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26000         (SIZE_MAX): Rely on headers for definition.
26001         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26002         (raw_hasher): Use rotr_sz.
26003         Suggested by Jim Meyering.
26004
26005         hash: fix memory leak in last patch
26006         * lib/hash.c (hash_rehash): Avoid memory leak.
26007
26008         hash: avoid no-op rehashing
26009         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26010
26011         hash: provide default callback functions
26012         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26013         (hash_initialize): Use them as defaults.
26014         * tests/test-hash.c (main): Test this.
26015
26016         hash: minor optimization
26017         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26018         when possible.
26019         (hash_initialize): Document this promise.
26020         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26021         * tests/test-hash.c (hash_compare_strings): Test this.
26022
26023 2009-06-18  Bruno Haible  <bruno@clisp.org>
26024
26025         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26026         going to be replaced anyway.
26027
26028 2009-06-18  Bruno Haible  <bruno@clisp.org>
26029
26030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26031         in one place.
26032         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26033         be replaced anyway.
26034
26035 2009-06-18  Eric Blake  <ebb9@byu.net>
26036
26037         hash: check for resize before insertion
26038         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26039         threshold before insertion, so that a pathological hash_rehash
26040         that fills every bucket can still trigger another rehash.
26041
26042 2009-06-18  Jim Meyering  <meyering@redhat.com>
26043
26044         hash-tests: add a loop around the small tests
26045         * tests/test-hash.c (main): Repeat small tests with selected
26046         small initial table sizes.
26047
26048 2009-06-17  Eric Blake  <ebb9@byu.net>
26049
26050         hash: minor cleanups
26051         * lib/hash.h (hash_entry): Make opaque, by moving...
26052         * lib/hash.c (hash_entry): ...here.
26053         (hash_insert): Clarify restrictions on what can be inserted.
26054         (hash_get_next): Clarify when it is safe to remove an element
26055         during traversal.
26056         (check_tuning): Skip verification when tuning is known safe.
26057         (hash_initialize): Clarify restrictions on tuning.
26058
26059 2009-06-17  Jim Meyering  <jim@meyering.net>
26060         and Eric Blake  <ebb9@byu.net>
26061
26062         hash-tests: new module
26063         * modules/hash-tests: New file.
26064         * tests/test-hash.c: New file.
26065
26066 2009-06-17  Eric Blake  <ebb9@byu.net>
26067
26068         strstr-simple: document new module
26069         * MODULES.html.sh: Document new module.
26070
26071         strstr, strcasestr: replace on platforms with broken memchr
26072         * modules/strstr: Split into...
26073         * modules/strstr-simple: ...new module that does not care about
26074         performance, but does care about glibc bug.
26075         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26076         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26077         if platform memchr is broken, per Debian bug 521737.
26078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26079         memchr.
26080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26081         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26082         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26083         * modules/mountlist (Depends-on): Add strstr-simple.
26084         * modules/gen-uni-tables (Depends-on): Likewise.
26085         * modules/argz (Depends-on): Add strstr.
26086
26087 2009-06-17  Bruno Haible  <bruno@clisp.org>
26088
26089         * modules/posix_spawn-internal (Depends-on): Add errno.
26090
26091 2009-06-17  Bruno Haible  <bruno@clisp.org>
26092
26093         Define missing ESTALE on Interix 3.5.
26094         * lib/errno.in.h (ESTALE): Assign a value if missing.
26095         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26096         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26097         missing.
26098         * doc/posix-headers/errno.texi: Mention the Interix bug.
26099         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26100
26101 2009-06-15  Eric Blake  <ebb9@byu.net>
26102
26103         memchr, memchr2: add valgrind exception
26104         * lib/memchr.valgrind: New file.
26105         * lib/memchr2.valgrind: New file.
26106         * modules/memchr (Files): Distribute valgrind file.
26107         * modules/memchr2 (Files): Likewise.
26108
26109         docs: memchr is no longer obsolete
26110         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26111         * lib/string.in.h (memchr): Simplify logic.
26112
26113 2009-06-14  Jim Meyering  <meyering@redhat.com>
26114
26115         link-follow: fix the "checking..." message to not mention trailing slash
26116         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26117         never considered trailing slashes.
26118
26119 2009-06-14  Bruno Haible  <bruno@clisp.org>
26120
26121         * m4/memchr.m4: Mention also the bug on IA-64.
26122         * doc/posix-functions/memchr.texi: Likewise.
26123
26124 2009-06-12  Eric Blake  <ebb9@byu.net>
26125
26126         memchr: detect broken x86_64 and alpha implementations
26127         * modules/memchr-tests (Depends-on): Move mmap detection...
26128         * modules/memchr (Depends-on): ...here.
26129         (configure.ac): Set indicator.
26130         * lib/string.in.h (memchr): Declare replacement.
26131         * modules/string (Makefile.am): Trigger replacement.
26132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26134         bugs.
26135         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26136         * modules/getpagesize (License): Relax license.
26137
26138 2009-06-11  Bruno Haible  <bruno@clisp.org>
26139
26140         * lib/idpriv.h: Add more references.
26141
26142 2009-06-08  Bruno Haible  <bruno@clisp.org>
26143
26144         Tests for module 'idpriv-droptemp'.
26145         * modules/idpriv-droptemp-tests: New file.
26146         * tests/test-idpriv-droptemp.sh: New file.
26147         * tests/test-idpriv-droptemp.su.sh: New file.
26148         * tests/test-idpriv-droptemp.c: New file.
26149
26150         New module 'idpriv-droptemp'.
26151         * lib/idpriv-droptemp.c: New file.
26152         * modules/idpriv-droptemp: New file.
26153
26154 2009-06-08  Bruno Haible  <bruno@clisp.org>
26155
26156         Tests for module 'idpriv-drop'.
26157         * modules/idpriv-drop-tests: New file.
26158         * tests/test-idpriv-drop.sh: New file.
26159         * tests/test-idpriv-drop.su.sh: New file.
26160         * tests/test-idpriv-drop.c: New file.
26161
26162         New module 'idpriv-drop'.
26163         * lib/idpriv.h: New file.
26164         * lib-idpriv-drop.c: New file.
26165         * m4/idpriv.m4: New file.
26166         * modules/idpriv-drop: New file.
26167
26168 2009-06-08  Bruno Haible  <bruno@clisp.org>
26169
26170         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26177
26178 2009-06-08  Eric Blake  <ebb9@byu.net>
26179
26180         test-strstr: use memory fence, when possible
26181         * tests/test-strstr.c (main): Use memory fence, in order to be
26182         more likely to trigger Debian bug 521737.
26183         * modules/strstr-tests (Files): Pull in additional files.
26184
26185         memchr: no longer obsolete, for wider field testing
26186         * modules/memchr (Status, Notice): Delete, this module is no
26187         longer obsolete.
26188         * modules/vasnprintf (Depends-on): Add memchr.
26189
26190 2009-06-07  Jim Meyering  <meyering@redhat.com>
26191
26192         hash: declare some functions with the warn_unused_result attribute
26193         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26194
26195 2009-06-07  Bruno Haible  <bruno@clisp.org>
26196
26197         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26198         Reported by Eric Blake.
26199
26200 2009-06-06  Eric Blake  <ebb9@byu.net>
26201
26202         test-alignof: fix typo with long double
26203         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26204         compiler error.
26205
26206 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26207
26208         Escape non-texinfo { and }s.
26209         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26210         markup error.
26211
26212 2009-06-04  Jim Meyering  <meyering@redhat.com>
26213
26214         gitlog-to-changelog: don't infloop on an empty commit log
26215         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26216         Reported by Boris Petersen <transacid@centerim.org>.
26217
26218 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26219
26220         version-etc: extend for packagers
26221         Add three new configure options, intended for packagers:
26222           --with-packager="packager name"
26223           --with-packager-version="packager-specific version"
26224           --with-packager-bug-reports="packager bug reporting"
26225         An example with coreutils:
26226           $ ./configure \
26227             --with-packager=Gentoo \
26228             --with-packager-bug-report=http://bugs.gentoo.org/ \
26229             --with-packager-version="patchset 1.6"
26230           $ ./src/ls --version | head -n2
26231           ls (GNU coreutils) 7.1-dirty
26232           Packaged by Gentoo (patchset 1.6)
26233         Note that the bug reporting info via --help doesn't show up because
26234         coreutils uses its own custom emit_bug_reporting_address() implementation
26235         in src/system.h.  If it didn't, it'd look like:
26236           $ ./src/ls --help | tail -n4
26237           Report bugs to <bug-coreutils@gnu.org>.
26238           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26239           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26240           General help using GNU software: <http://www.gnu.org/gethelp/>.
26241         * lib/version-etc.c: Print new information, if provided.
26242         * m4/version-etc.m4: New file.
26243         * modules/version-etc (Files): Add m4/version-etc.m4.
26244         (configure.ac): Add gl_VERSION_ETC.
26245
26246 2009-05-31  Bruno Haible  <bruno@clisp.org>
26247
26248         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
26249         and 'int64_t'.
26250         * modules/alignof-tests (Dependencies): Add stdint.
26251         Reported by Eric Blake.
26252
26253 2009-05-31  Bruno Haible  <bruno@clisp.org>
26254
26255         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
26256         restriction due to compiler bugs.
26257         Reported by Eric Blake.
26258
26259 2009-05-31  Simon Josefsson  <simon@josefsson.org>
26260             Bruno Haible  <bruno@clisp.org>
26261
26262         Fix test-alignof failure.
26263         * lib/alignof.h (alignof_slot): New macro.
26264         (alignof_type): New macro, with the same semantics as the previous
26265         'alignof'.
26266         (alignof): Alias to alignof_slot.
26267         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
26268         check that the results are usable as constant expressions.
26269
26270 2009-05-31  Bruno Haible  <bruno@clisp.org>
26271
26272         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
26273         * tests/test-memchr.c (main): Check that memchr does not read past the
26274         first occurrence of the byte.
26275         * tests/test-strstr.c (main): Update comment.
26276         Suggested by Eric Blake.
26277
26278 2009-05-30  Bruno Haible  <bruno@clisp.org>
26279
26280         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
26281         detail how to use dumpbin.
26282         Reported by David Byron <dbyron@dbyron.com>.
26283
26284 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26285
26286         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
26287
26288 2009-06-02  Simon Josefsson  <simon@josefsson.org>
26289
26290         * m4/manywarnings.m4: Add GCC 4.4 warnings.
26291
26292 2009-05-28  Bruno Haible  <bruno@clisp.org>
26293
26294         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
26295         build-aux/ files.
26296
26297 2009-05-28  Simon Josefsson  <simon@josefsson.org>
26298
26299         * gnulib-tool (func_import): Transform license on build-aux/ files too.
26300
26301 2009-05-27  Simon Josefsson  <simon@josefsson.org>
26302
26303         * gnulib-tool (sed_transform_main_lib_file)
26304         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
26305         regexps.
26306
26307 2009-05-26  Simon Josefsson  <simon@josefsson.org>
26308
26309         * tests/test-strstr.c: Add another self-test.
26310         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
26311         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
26312
26313 2009-05-23  Bruno Haible  <bruno@clisp.org>
26314
26315         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
26316         change.
26317
26318 2009-05-21  Bruno Haible  <bruno@clisp.org>
26319
26320         Simplify use of mode_t varargs.
26321         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
26322         uses 'mode_t' or 'int'.
26323         * lib/openat.c (openat): Likewise.
26324         * lib/open-safer.c (open_safer): Likewise.
26325         * m4/mode_t.m4: New file.
26326         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
26327         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
26328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
26329         * modules/open (Files): Add m4/mode_t.m4.
26330         * modules/openat (Files): Likewise.
26331         * modules/fcntl-safer (Files): Likewise.
26332         Suggested by Eric Blake.
26333
26334 2009-05-21  Pádraig Brady  <P@draigbrady.com>
26335
26336         * doc/glibc-functions/fallocate.texi: New file.
26337         * doc/gnulib.texi: Include it.
26338
26339 2009-05-21  Eric Blake  <ebb9@byu.net>
26340             Bruno Haible  <bruno@clisp.org>
26341
26342         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
26343         invocations.
26344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26345
26346 2009-05-21  Eric Blake  <ebb9@byu.net>
26347             Bruno Haible  <bruno@clisp.org>
26348
26349         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
26350         include_next. Fix of 2008-11-20 commit.
26351         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
26352         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
26353         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
26354         NEXT_MATH_H.
26355         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
26356         instead of NEXT_MATH_H.
26357
26358 2009-05-21  Bruno Haible  <bruno@clisp.org>
26359
26360         Avoid redefinition warnings for SIZE_MAX.
26361         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
26362         Reported by Simon Josefsson.
26363
26364 2009-05-21  Bruno Haible  <bruno@clisp.org>
26365
26366         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
26367         AC_CACHE_VAL.
26368
26369 2009-05-20  Bruno Haible  <bruno@clisp.org>
26370
26371         Make zeroptr.h work on mingw.
26372         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
26373         mprotect.
26374         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
26375         * modules/memchr2-tests (configure.ac): Likewise.
26376         * modules/memcmp-tests (configure.ac): Likewise.
26377         * modules/memmem-tests (configure.ac): Likewise.
26378         * modules/memrchr-tests (configure.ac): Likewise.
26379         Reported by Simon Josefsson.
26380
26381 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26382
26383         * tests/test-glob.c: Include string.h for strcmp prototype.
26384
26385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26386
26387         * modules/getdelim (Depends-on): Add explicit stdint, although it
26388         was implicitly already pulled in via realloc-posix.
26389         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
26390
26391 2009-05-20  Simon Josefsson  <simon@josefsson.org>
26392
26393         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
26394         G. Christensen" <tgc@jupiterrise.com>.
26395         * m4/sys_socket_h.m4: Check for sa_family_t.
26396         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
26397         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
26398         * tests/test-sys_socket.c: Check that sa_family_t works.
26399
26400 2009-05-18  Eric Blake  <ebb9@byu.net>
26401
26402         maint.mk: allow gnulib_dir in VPATH build
26403         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
26404
26405 2009-05-15  Jim Meyering  <meyering@redhat.com>
26406
26407         maint.mk: Give gnulib_dir a default definition.
26408         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
26409         Thus, most packages no longer need to specify this variable in cfg.mk
26410
26411 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
26412
26413         rename.m4: fix typos that would make non-mingw cross-configure fail
26414         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
26415
26416 2009-05-13  Eric Blake  <ebb9@byu.net>
26417
26418         mmap-anon: avoid out-of-order autoconf expansion
26419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
26420         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
26421         * modules/memchr-tests (Depends-on): Add extensions.
26422         * modules/memchr2-tests (Depends-on): Add extensions.
26423         * modules/memcmp-tests (Depends-on): Add extensions.
26424         * modules/memmem-tests (Depends-on): Add extensions.
26425         * modules/memrchr-tests (Depends-on): Add extensions.
26426
26427 2009-05-13  Bruno Haible  <bruno@clisp.org>
26428
26429         Make some tests ISO C 99 compliant.
26430         * tests/zerosize-ptr.h: New file.
26431         * tests/test-memchr.c: Include zerosize-ptr.h.
26432         (main): Use a zero-size object pointer instead of NULL.
26433         * tests/test-memchr2.c: Include zerosize-ptr.h.
26434         (main): Use a zero-size object pointer instead of NULL.
26435         * tests/test-memcmp.c: Include zerosize-ptr.h.
26436         (main): Use a zero-size object pointer instead of NULL.
26437         * tests/test-memmem.c: Include zerosize-ptr.h.
26438         (main): Use a zero-size object pointer instead of NULL.
26439         * tests/test-memrchr.c: Include zerosize-ptr.h.
26440         (main): Use a zero-size object pointer instead of NULL.
26441         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
26442         m4/mmap-anon.m4.
26443         (Depends-on): Add getpagesize.
26444         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26445         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
26446         m4/mmap-anon.m4.
26447         (Depends-on): Add getpagesize.
26448         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26449         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
26450         m4/mmap-anon.m4.
26451         (Depends-on): Add getpagesize.
26452         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26453         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
26454         m4/mmap-anon.m4.
26455         (Depends-on): Add getpagesize.
26456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26457         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
26458         m4/mmap-anon.m4.
26459         (Depends-on): Add getpagesize.
26460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
26461
26462 2009-05-12  Bruno Haible  <bruno@clisp.org>
26463
26464         Tests for module 'alignof'.
26465         * modules/alignof-tests: New file.
26466         * tests/test-alignof.c: New file.
26467
26468 2009-05-12  Bruno Haible  <bruno@clisp.org>
26469
26470         Fix alignof macro.
26471         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
26472         vendor compilers that are always correct.
26473
26474 2009-05-12  Bruno Haible  <bruno@clisp.org>
26475
26476         Make the MAP_ANONYMOUS detection work on HP-UX 11.
26477         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
26478         not whether its fully works.
26479
26480 2009-05-12  Bruno Haible  <bruno@clisp.org>
26481
26482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
26483
26484 2009-05-12  Jim Meyering  <meyering@redhat.com>
26485
26486         * top/maint.mk: Adjust backslash alignment.
26487
26488 2009-05-11  Simon Josefsson  <simon@josefsson.org>
26489
26490         * top/maint.mk: Make $(srcdir)/build-aux configurable.
26491
26492 2009-05-11  Eric Blake  <ebb9@byu.net>
26493
26494         argp: avoid undefined behavior
26495         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
26496         macros.
26497
26498 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26499
26500         * tests/test-vc-list-files-git.sh: Do git config of user.email and
26501         user.name to prevent git commit from complaining.
26502
26503 2009-05-10  Bruno Haible  <bruno@clisp.org>
26504
26505         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
26506         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
26507         it rewrites every file name only once.
26508         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
26509
26510 2009-05-08  Bruno Haible  <bruno@clisp.org>
26511
26512         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
26513         instead of 'max'.
26514
26515 2009-05-08  Simon Josefsson  <simon@josefsson.org>
26516
26517         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
26518         sockaddr_storage test.
26519
26520 2009-05-07  Simon Josefsson  <simon@josefsson.org>
26521
26522         * modules/sys_socket (Makefile.am): Substitute
26523         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
26524         * m4/sys_socket_h.m4: Check for sockaddr_storage.
26525         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
26526         * tests/test-sys_socket.c: Check sockaddr_storage.
26527
26528 2009-05-08  Bruno Haible  <bruno@clisp.org>
26529
26530         New module 'alignof'.
26531         * lib/alignof.h: New file.
26532         * modules/alignof: New file.
26533
26534 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26535             Bruno Haible  <bruno@clisp.org>
26536
26537         Fix test-file-has-acl on FreeBSD.
26538         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
26539         mask is implicitly added.
26540         * tests/test-file-has-acl.c: Include <signal.h>.
26541         (main): Terminate the test after 5 seconds.
26542         * modules/acl-tests (configure.ac): Check for alarm function.
26543
26544 2009-05-04  Bruno Haible  <bruno@clisp.org>
26545
26546         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
26547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
26548         * modules/errno (configure.ac): Drop AC_REQUIRE.
26549         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
26550         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
26551
26552 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26553
26554         * modules/glob-tests: New module.
26555         * tests/test-glob.c: Add.
26556
26557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26558
26559         * modules/fnmatch-tests: New module.
26560         * tests/test-fnmatch.c: Add.
26561
26562 2009-05-04  Eric Blake  <ebb9@byu.net>
26563
26564         maint: make the new no-submodule-changes rule VPATH-safe
26565         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
26566
26567 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26568             Bruno Haible  <bruno@clisp.org>
26569
26570         acl: Fix infinite loop on FreeBSD.
26571         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
26572         of return value from acl_get_entry.
26573         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
26574         Likewise.
26575
26576 2009-05-03  Bruno Haible  <bruno@clisp.org>
26577
26578         * lib/acl-internal.h (acl_entries): Clarify return value.
26579         * lib/acl_entries.c (acl_entries): Likewise.
26580
26581 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26582
26583         Bug fix in acl module.
26584         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
26585
26586 2009-05-03  Bruno Haible  <bruno@clisp.org>
26587
26588         Create gperf-generated file in the source dir, not in the build dir.
26589         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
26590         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
26591         * modules/unicase/locale-language (unicase/locale-languages.h):
26592         Likewise.
26593         * modules/unicase/special-casing (unicase/special-casing-table.h):
26594         Likewise.
26595         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
26596         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
26597         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
26598         Reported by Ralf Wildenhues.
26599
26600 2009-05-03  Bruno Haible  <bruno@clisp.org>
26601
26602         * modules/fnmatch (Description, configure.ac): Taken from
26603         fnmatch-posix.
26604         * modules/fnmatch-posix: Turn into a symbolic reference to the
26605         'fnmatch' module, and deprecate.
26606         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
26607
26608 2009-05-03  Bruno Haible  <bruno@clisp.org>
26609
26610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
26611         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
26612         Reported by Ralf Wildenhues.
26613
26614 2009-05-04  Simon Josefsson  <simon@josefsson.org>
26615
26616         * m4/fnmatch.m4: Fix fnmatch re-define.
26617
26618 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
26619
26620         priv-set: new module and tests; adapt write-any-file
26621         * lib/priv-set.c: New file.
26622         * lib/priv-set.h: New file.
26623         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
26624         * lib/write-any-file.c: Simplify by using priv-set module.
26625         * m4/priv-set.m4: New file.
26626         * modules/priv-set: New file.
26627         * modules/unlinkdir: Add dependency on priv-set module.
26628         * modules/write-any-file: Likewise.
26629
26630         Tests for module 'priv-set'.
26631         * modules/priv-set-tests: New file.
26632         * tests/test-priv-set.c: New file.
26633
26634 2009-05-03  Jim Meyering  <meyering@redhat.com>
26635             Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
26638         use the converted UTF-8 variant of the name instead.
26639
26640 2009-05-03  Jim Meyering  <meyering@redhat.com>
26641
26642         tests: tighten some getdate tests
26643         * tests/test-getdate.c (main): Tighten tests: require equality,
26644         not just greater than.  Set TZ envvar to UTC0.
26645
26646 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26647
26648         getdate: correctly interpret "next monday" when run on a Monday
26649         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
26650         that e.g., "next tues" (when run on a tuesday) results in a date
26651         that is one week in the future, and not today's date.
26652         I.e., add a week when the wday is the same as the current one.
26653         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
26654         and earlier by Martin Bernreuther and Jan Minář.
26655         * tests/test-getdate.c (main): Check that "next DAY" is always in
26656         the future and that "last DAY" is always in the past.
26657
26658 2009-05-02  Jim Meyering  <meyering@redhat.com>
26659
26660         build: ensure that a release build fails when a submodule is unclean
26661         * top/maint.mk (no-submodule-changes): New rule.
26662         (alpha beta major): Depend on it.
26663
26664 2009-05-02  Bruno Haible  <bruno@clisp.org>
26665
26666         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
26667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
26668         shell variable gl_fnmatch_required to detect which variant is
26669         requested.
26670         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
26671         gl_FUNC_FNMATCH_POSIX.
26672         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
26673         exclude fnmatch-posix.
26674
26675 2009-05-02  Bruno Haible  <bruno@clisp.org>
26676
26677         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
26678         * modules/mbsrtowcs (License): Change to LGPLv2+.
26679         * modules/strnlen1 (License): Likewise.
26680         Reported by Simon Josefsson.
26681
26682 2009-05-02  Bruno Haible  <bruno@clisp.org>
26683
26684         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
26685         "cross".
26686         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
26687         gnulib-tool was called with option --source-base=lib.
26688
26689 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26690
26691         Use automake *-local hooks without commands, for extensibility.
26692         * modules/localcharset (Makefile.am): Rename install-exec-local
26693         rule to install-exec-localcharset, and make it a prerequisite of
26694         install-exec-local.  Likewise, rename the uninstall-local rule to
26695         uninstall-localcharset, and make it a prerequisite of the former.
26696
26697 2009-05-01  Bruno Haible  <bruno@clisp.org>
26698
26699         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
26700         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26701         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
26702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
26703         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
26704         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26705         m4/locale-zh.m4, m4/codeset.m4.
26706
26707         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
26708         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
26709         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
26710         m4/locale-zh.m4.
26711
26712         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
26713         REPLACE_WCRTOMB if mbstate_t must be replaced.
26714         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
26715         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
26716
26717 2009-05-01  Bruno Haible  <bruno@clisp.org>
26718
26719         Avoid compiler warnings when redefining macros defined by <libintl.h>.
26720         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
26721         dngettext, dcngettext, textdomain, bindtextdomain,
26722         bind_textdomain_codeset): Undefine before redefining.
26723
26724 2009-04-30  Bruno Haible  <bruno@clisp.org>
26725
26726         Fix bug introduced on 2009-04-25.
26727         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
26728         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
26729         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
26730         is defined.
26731         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
26732         is defined.
26733         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
26734         is defined.
26735         Reported by Elbert_Pol <elbert.pol@gmail.com>.
26736
26737 2009-04-28  Bruno Haible  <bruno@clisp.org>
26738
26739         Comment tweaks.
26740         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
26741         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
26742         * lib/unicase.h (u*_casexfrm): Likewise.
26743         Reported by Paolo Bonzini.
26744
26745 2009-04-28  Bruno Haible  <bruno@clisp.org>
26746
26747         Fix a compilation error.
26748         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
26749         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26750         Reported by Jim Meyering.
26751
26752 2009-04-27  Bruno Haible  <bruno@clisp.org>
26753
26754         New module 'libunistring'.
26755         * modules/libunistring: New file.
26756         * m4/libunistring.m4: New file.
26757         * MODULES.html.sh (Unicode string functions): Add it.
26758
26759 2009-04-27  Eric Blake  <ebb9@byu.net>
26760
26761         maint.mk: allow package-specific header to provide <config.h>
26762         * top/maint.mk (sc_require_config_h): New variable.
26763         (sc_require_config_h, sc_require_config_h_first): Use it.
26764
26765 2009-04-27  Simon Josefsson  <simon@josefsson.org>
26766
26767         * top/maint.mk (sc_avoid_if_before_free): Except
26768         useless-if-before-free script.
26769
26770 2009-04-27  Eric Blake  <ebb9@byu.net>
26771
26772         maintainer-makefile: depend on all required helper scripts
26773         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
26774         useless-if-before-free.
26775         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
26776         version, rather than assuming gnulib checkout is available.
26777         Reported by Simen Josefsson.
26778
26779 2009-04-26  Bruno Haible  <bruno@clisp.org>
26780
26781         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
26782         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
26783         "../" or "..".
26784
26785 2009-04-26  Bruno Haible  <bruno@clisp.org>
26786
26787         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
26788         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
26789         AC_LIB_HAVE_LINKFLAGS.
26790
26791 2009-04-26  Bruno Haible  <bruno@clisp.org>
26792
26793         Simplify calling convention of u*_conv_from_encoding.
26794         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
26795         u32_conv_from_encoding): Expect a resultbuf argument and return the
26796         result directly as a pointer.
26797         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
26798         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
26799         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
26800         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
26801         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
26802         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26803         Update.
26804         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
26805         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
26806         * lib/vasnprintf.c (VASNPRINTF): Update.
26807         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
26808         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
26809         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
26810         * NEWS: Mention the change.
26811
26812 2009-04-26  Bruno Haible  <bruno@clisp.org>
26813
26814         Simplify calling convention of u*_conv_to_encoding.
26815         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26816         u32_conv_to_encoding): Expect a resultbuf argument and return the
26817         result directly as a pointer.
26818         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26819         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
26820         freeing scaled_offsets if mem_iconveha failed.
26821         * lib/unicase/u-casexfrm.h (FUNC): Update.
26822         * lib/uninorm/u-normxfrm.h (FUNC): Update.
26823         * lib/vasnprintf.c (VASNPRINTF): Update.
26824         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
26825         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
26826         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
26827         * NEWS: Mention the change.
26828
26829 2009-04-26  Bruno Haible  <bruno@clisp.org>
26830
26831         Avoid test failures on AIX and OSF/1.
26832         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
26833         malloc(0).
26834         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26835         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
26836         Likewise.
26837         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
26838         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
26839         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
26840         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
26841         * doc/posix-functions/malloc.texi: Document the portability problem
26842         related to malloc(0).
26843
26844 2009-04-26  Bruno Haible  <bruno@clisp.org>
26845
26846         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
26847         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
26848         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
26849
26850 2009-04-25  Bruno Haible  <bruno@clisp.org>
26851
26852         Avoid link error when creating a namespace clean library.
26853         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
26854         as macro with arguments if already defined as an alias.
26855         * lib/signbitf.c (gl_signbitf): Don't undefine.
26856         * lib/signbitd.c (gl_signbitd): Don't undefine.
26857         * lib/signbitl.c (gl_signbitl): Don't undefine.
26858
26859 2009-04-25  Jim Meyering  <meyering@redhat.com>
26860
26861         vc-list-files: fix another quoting bug
26862         * build-aux/vc-list-files: Avoid sed backslash expansion
26863         of pathological directory names.
26864
26865 2009-04-25  Eric Blake  <ebb9@byu.net>
26866
26867         vc-list-files: fix shell quoting error
26868         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
26869         timestamp.
26870
26871 2009-04-25  Jim Meyering  <meyering@redhat.com>
26872
26873         vc-list-files: restore lost functionality with subdir argument
26874         * build-aux/vc-list-files: When given a non-"." sub-directory
26875         argument, substitute the $dir/ prefix back onto each resulting name.
26876         Otherwise, coreutils' root_tests check would fail.
26877
26878 2009-04-24  Eric Blake  <ebb9@byu.net>
26879
26880         vc-list-files: ignore git symlinks
26881         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
26882         than ls-files, to ignore git symlinks.
26883
26884         maint.mk: import improvements from m4
26885         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
26886         (move_if_change): Delete unused macro.
26887         (news-date-check, vc-diff-check): Support VPATH builds.
26888         (announcement): Likewise.  Split --bootstrap-tools list...
26889         (boostrap-tools): ...into separate list, which can be overridden
26890         in cfg.mk.
26891         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
26892         requiring dependency on useless-if-before-free module.
26893         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
26894         Support VPATH builds.
26895
26896 2009-04-24  Jim Meyering  <meyering@redhat.com>
26897
26898         maint.mk: remove coreutils-specific rules and variables
26899         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
26900         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
26901         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
26902
26903         maint.mk: remove obsolete rule
26904         * top/maint.mk (rel-check): Remove rule.
26905         (WGET, WGETFLAGS): Remove now-unused variables.
26906
26907 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26908
26909         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
26910         consistency.
26911
26912         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
26913         '$(PATH_SEPARATOR)' instead of ':'.
26914
26915 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26916
26917         * lib/getopt1.c (main): Use 'const' for static array.
26918
26919 2009-04-24  Simon Josefsson  <simon@josefsson.org>
26920
26921         * top/maint.mk: Sync with coreutils.
26922         * NEWS: Explain incompatibilities.
26923
26924 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26925             Bruno Haible  <bruno@clisp.org>
26926
26927         Fix cross-compilation results.
26928         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
26929         statement, as third argument of AC_TRY_RUN.
26930         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26931         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26932         Likewise.
26933         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26934         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26935         Likewise.
26936         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26937         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
26938         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
26939
26940 2009-04-20  Bruno Haible  <bruno@clisp.org>
26941
26942         Avoid test failure on mingw.
26943         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
26944
26945 2009-04-20  Bruno Haible  <bruno@clisp.org>
26946
26947         Avoid compilation error on mingw.
26948         * modules/localename-tests (Depends-on): Add locale.
26949
26950 2009-04-19  Bruno Haible  <bruno@clisp.org>
26951
26952         Support for building a shared library on Windows platforms.
26953         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
26954         (main): Test the presence of UNINORM_NFC here.
26955         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
26956         (main): Test the presence of UNINORM_NFD here.
26957         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
26958         (main): Test the presence of UNINORM_NFKC here.
26959         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
26960         (main): Test the presence of UNINORM_NFKD here.
26961
26962 2009-04-19  Bruno Haible  <bruno@clisp.org>
26963
26964         Avoid a compiler warning.
26965         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
26966         Change type of variable 'sequence'.
26967
26968 2009-04-19  Bruno Haible  <bruno@clisp.org>
26969
26970         * modules/configmake (Makefile.am): When the contents of configmake.h
26971         does not change, arrange to preserve its modification time.
26972
26973 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26974
26975         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26976         gettext domain.
26977
26978 2009-04-16  Jim Meyering  <meyering@redhat.com>
26979
26980         useless-if-before-free: improve conversion code
26981         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26982         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26983
26984 2009-04-14  Bruno Haible  <bruno@clisp.org>
26985
26986         * modules/fcntl (Depends-on): Add extensions.
26987         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26988
26989 2009-04-12  Ben Pfaff  <blp@gnu.org>
26990
26991         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26992         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26993
26994 2009-03-20  Ben Pfaff  <blp@gnu.org>
26995
26996         Make rename replace existing destinations on Windows.
26997         * m4/rename.m4: Add test for Mingw.
26998         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26999         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27000         * doc/posix-functions/rename.texi: Document.
27001
27002 2009-04-10  Bruno Haible  <bruno@clisp.org>
27003
27004         New include file "iconveh.h".
27005         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27006         * lib/striconveh.h: Include it.
27007         (enum iconv_ilseq_handler): Remove definition.
27008         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27009         striconveh.h.
27010         * lib/striconveha.c: Include striconveh.h.
27011         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27012         * modules/striconveh (Files): Add lib/iconveh.h.
27013         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27014         lib/striconveh.h.
27015
27016 2009-04-10  Bruno Haible  <bruno@clisp.org>
27017
27018         * lib/uniconv.h: Update comment.
27019
27020 2009-04-10  Bruno Haible  <bruno@clisp.org>
27021
27022         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27023         always.
27024         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27025         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27026         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27027         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27028         "unistring-notinline.h", so that the function gets defined always.
27029         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27030         * lib/unistr/u8-uctomb.c: Likewise.
27031         * lib/unistr/u16-mbtouc.c: Likewise.
27032         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27033         * lib/unistr/u16-uctomb.c: Likewise.
27034         * lib/unistr/u32-mbtouc.c: Likewise.
27035         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27036         * lib/unistr/u32-uctomb.c: Likewise.
27037
27038 2009-04-10  Bruno Haible  <bruno@clisp.org>
27039
27040         Mark 'utime' obsolete.
27041         * modules/utime (Status, Notice): New sections.
27042         Suggested by Jim Meyering.
27043
27044         Fix cross-compile guess for utime test.
27045         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27046         autoconf.
27047         * doc/posix-functions/utime.texi: Give more precisions.
27048         Reported by Jan <ipif@ymail.com>.
27049
27050 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27051
27052         filevercmp: correct today's change
27053         * lib/filevercmp.c: Also handle coreutils' test inputs.
27054         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27055
27056         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27057         for reporting it.
27058         * lib/filevercmp.c: Special handle for "", "." and "..".
27059         * tests/test-filevercmp.c: Enlarge the set suite.
27060
27061 2009-04-07  Jim Meyering  <meyering@redhat.com>
27062
27063         useless-if-before-free: show how to remove braced useless free, too
27064         * build-aux/useless-if-before-free: still only in a comment, though.
27065
27066 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27067
27068         maint.mk: import changes to syntax-check macros from coreutils
27069         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27070         Use them in the relevant macros.
27071
27072 2009-04-06  Bruno Haible  <bruno@clisp.org>
27073
27074         Fix unportable use of bit-fields.
27075         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27076         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27077         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27078
27079 2009-04-06  Bruno Haible  <bruno@clisp.org>
27080
27081         Avoid test failures on AIX and OSF/1.
27082         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27083         that malloc(0) = NULL.
27084         * tests/unicase/test-u8-tolower.c (check): Likewise.
27085         * tests/unicase/test-u8-totitle.c (check): Likewise.
27086         * tests/unicase/test-u8-toupper.c (check): Likewise.
27087         * tests/unicase/test-u16-casefold.c (check): Likewise.
27088         * tests/unicase/test-u16-tolower.c (check): Likewise.
27089         * tests/unicase/test-u16-totitle.c (check): Likewise.
27090         * tests/unicase/test-u16-toupper.c (check): Likewise.
27091         * tests/unicase/test-u32-casefold.c (check): Likewise.
27092         * tests/unicase/test-u32-tolower.c (check): Likewise.
27093         * tests/unicase/test-u32-totitle.c (check): Likewise.
27094         * tests/unicase/test-u32-toupper.c (check): Likewise.
27095         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27096         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27097         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27098         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27099         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27100         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27101         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27102         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27103         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27104         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27105         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27106         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27107
27108 2009-04-05  Bruno Haible  <bruno@clisp.org>
27109
27110         Work around an autoconf limitation.
27111         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27112         comment line if it would be longer than 3 KB.
27113
27114 2009-04-05  Bruno Haible  <bruno@clisp.org>
27115
27116         Avoid test failure with libiconv-1.13.
27117         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27118         of the expected test results.
27119
27120 2009-04-05  Bruno Haible  <bruno@clisp.org>
27121
27122         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27123         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27124         that it should be installed.
27125
27126 2009-04-05  Bruno Haible  <bruno@clisp.org>
27127
27128         * gnulib-tool: New option --copy-file.
27129         (func_usage): Document it.
27130         (func_dest_tmpfilename): Moved out of func_import.
27131         (func_add_file, func_update_file): New functions, extracted from
27132         func_import.
27133         (func_import): Update.
27134
27135 2009-04-05  Karl Berry  <karl@gnu.org>
27136
27137         * README: prominently mention gnulib-tool.
27138         Rearrange sections so getting the code is near the top.
27139
27140 2009-04-05  Bruno Haible  <bruno@clisp.org>
27141
27142         * lib/unicase.h: Mention u*_cmp2.
27143         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27144         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27145         * lib/unicase/ulc-casecmp.c: Likewise.
27146         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27147         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27148         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27149         unistr/u8-cmp.
27150         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27151         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27152         unistr/u16-cmp.
27153         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27154         unistr/u32-cmp.
27155
27156         * lib/uninorm.h: Mention u*_cmp2.
27157         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27158         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27159         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27160         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27161         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27162         unistr/u8-cmp.
27163         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27164         unistr/u16-cmp.
27165         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27166         unistr/u32-cmp.
27167
27168         New module 'unistr/u32-cmp2'.
27169         * lib/unistr/u32-cmp2.c: New file.
27170         * modules/unistr/u32-cmp2: New file.
27171
27172         New module 'unistr/u16-cmp2'.
27173         * lib/unistr/u16-cmp2.c: New file.
27174         * modules/unistr/u16-cmp2: New file.
27175
27176         New module 'unistr/u8-cmp2'.
27177         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27178         * lib/unistr/u8-cmp2.c: New file.
27179         * lib/unistr/u-cmp2.h: New file.
27180         * modules/unistr/u8-cmp2: New file.
27181
27182 2009-04-05  Bruno Haible  <bruno@clisp.org>
27183
27184         * lib/unictype.h (uc_property_is_valid): New macro.
27185         * tests/unictype/test-pr_byname.c (main): Use it.
27186
27187         * lib/unistr.h: Doc fixes.
27188         * lib/uniconv.h: Doc fixes.
27189         * lib/unictype.h: Doc fixes.
27190
27191 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27192
27193         Port coreutils 7.2 to Solaris 8.
27194
27195         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27196         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27197         for Solaris 8.  This is a bit of a hack, as it means it's the
27198         caller's responsibility to add -lnsl if needed, but most likely it
27199         won't be needed since only getaddrinfo uses this and getaddrinfo
27200         isn't needed on Solaris 8.
27201
27202         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27203         problem to Solaris 8 encountered with coreutils 7.2, which
27204         resulted in a message "fnmatch.c:292: warning: passing argument 4
27205         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27206         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27207
27208 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27209
27210         * m4/ld-version-script.m4: Add FIXME comment.
27211
27212 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27213
27214         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27215         SOVERSION variable.
27216
27217 2009-04-02  Bruno Haible  <bruno@clisp.org>
27218
27219         * Makefile (info, html, dvi, pdf): Combine the rules.
27220         Suggested by Jim Meyering.
27221
27222 2009-04-01  Bruno Haible  <bruno@clisp.org>
27223
27224         * Makefile (info, html, dvi, pdf): New targets.
27225         Reported by Reuben Thomas <rrt@sc3d.org>.
27226
27227 2009-04-01  Bruno Haible  <bruno@clisp.org>
27228
27229         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27230         can be put into PATH.
27231         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27232
27233 2009-04-01  Bruno Haible  <bruno@clisp.org>
27234
27235         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27236
27237 2009-04-01  Bruno Haible  <bruno@clisp.org>
27238
27239         Rename module 'visibility'.
27240         * modules/lib-symbol-visibility: Renamed from modules/visibility.
27241         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
27242         * doc/gnulib.texi: Update.
27243         * MODULES.html.sh (Misc): Update.
27244         * NEWS: Mention the change.
27245
27246 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27247
27248         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
27249         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
27250         Eric Blake <ebb9@byu.net> for review.
27251         * MODULES.html.sh: Add lib-msvc-compat.
27252         * doc/gnulib.texi: Link to new section.
27253         * m4/ld-output-def.m4: New file.
27254         * doc/ld-output-def.texi: New file.
27255
27256 2009-04-01  Simon Josefsson  <simon@josefsson.org>
27257
27258         Rename ld-version-script to lib-symbol-versions.  Suggested by
27259         Bruno Haible <bruno@clisp.org>.
27260         * modules/ld-version-script: Renamed to lib-symbol-versions.
27261         * doc/ld-version-script.texi: Fix module name.
27262         * MODULES.html.sh: Add lib-symbol-versions.
27263
27264 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27265
27266         * modules/u64-tests: New file.
27267         * tests/test-u64.c: New file.
27268
27269 2009-03-04  Simon Josefsson  <simon@josefsson.org>
27270
27271         * MODULES.html.sh: Mention u64.
27272         * modules/u64: New module.
27273         * modules/crypto/sha512: Depend on u64 module instead of providing
27274         u64.h.
27275
27276 2009-03-27  Eric Blake  <ebb9@byu.net>
27277
27278         test-strerror: make debugging EAI_SYSTEM easier
27279         * modules/getaddrinfo-tests (Depends-on): Add strerror.
27280         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
27281         failure was EAI_SYSTEM.
27282
27283 2009-03-25  Bruno Haible  <bruno@clisp.org>
27284
27285         Fix a problem with --enable-relocatable on Solaris 7.
27286         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
27287         since 2008-02-24.
27288
27289 2009-03-25  Eric Blake  <ebb9@byu.net>
27290
27291         test-sockets: avoid gcc warning
27292         * tests/test-sockets.c (main): Silence compiler warning.
27293
27294 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27295
27296         New modules nproc, pthread, contributed by Glen Lenker.
27297
27298         * MODULES.html.sh: Add pthread, nproc.
27299         * lib/nproc.c: New file.
27300         * lib/nproc.h: New file.
27301         * lib/pthread.in.h: New file.
27302         * m4/pthread.m4: New file.
27303         * modules/nproc: New file.
27304         * modules/pthread: New file.
27305
27306 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27307
27308         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
27309         New variable.
27310
27311 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
27312
27313         filevercmp: handle simple~ and numbered.~3~ backup suffixes
27314         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
27315         * tests/test-filevercmp.c: Add tests for backup suffixes.
27316
27317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27318
27319         * modules/stdlib (Depends-on): Add stdint, needed when defining
27320         struct random_data on, for example, HP-UX 10.20.  Reported by
27321         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27322
27323 2009-03-24  Simon Josefsson  <simon@josefsson.org>
27324
27325         * lib/readline.c (readline): Call fflush on stdout after printing
27326         prompt.
27327
27328 2009-03-20  Bruno Haible  <bruno@clisp.org>
27329
27330         Remove dependency from 'close' module to -lws2_32 on native Windows.
27331         * lib/close-hook.h: New file.
27332         * lib/close-hook.c: New file.
27333         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
27334         w32sock.h.
27335         (_gl_close_fd_maybe_socket): Remove function.
27336         (rpl_close): Invoke execute_all_close_hooks instead of
27337         _gl_close_fd_maybe_socket.
27338         * lib/sockets.c: Include close-hook.h, w32sock.h.
27339         (close_fd_maybe_socket): New function, essentially from lib/close.c.
27340         (close_sockets_hook): New variable.
27341         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
27342         (gl_sockets_cleanup): Unregister it.
27343         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
27344         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
27345         * modules/close-hook: New file.
27346         * modules/close (Files): Remove lib/w32sock.h.
27347         (Depends-on): Add close-hook.
27348         (Link): Remove section.
27349         * modules/sockets (Files): Add lib/w32sock.h.
27350         (Depends-on): Add close-hook.
27351         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
27352         invocation.
27353         * NEWS: Mention that LIB_CLOSE is gone.
27354
27355 2009-03-23  Eric Blake  <ebb9@byu.net>
27356
27357         signal-tests: test previous patch
27358         * tests/test-signal.c: New file.
27359         * modules/signal-tests: Likewise.
27360
27361         signal.h: always support 'volatile sig_atomic_t'
27362         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
27363         (gl_SIGNAL_H_DEFAULTS): Add a default.
27364         * modules/signal (Makefile.am): Substitute if needed.
27365         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
27366         users can blindly add volatile.
27367         * doc/posix-headers/signal.texi (signal.h): Document it.
27368         Reported by Matthew Woehlke.
27369
27370 2009-03-23  Jim Meyering  <meyering@redhat.com>
27371
27372         pathmax: PATH_MAX: use pathconf only when available
27373         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
27374         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
27375         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
27376         This avoids a link failure in a PSP cross-compilation environment
27377         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
27378
27379         * lib/vasnprintf.c (divide): Fix typo in comment.
27380
27381 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27382
27383         * gnulib-tool (func_filter_filelist): Fix comment.
27384
27385 2009-03-20  Bruno Haible  <bruno@clisp.org>
27386
27387         Make sockets.h self-contained.
27388         * lib/sockets.c: Include sockets.h first.
27389         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
27390
27391 2009-03-19  Eric Blake  <ebb9@byu.net>
27392
27393         doc: mention more functions added in cygwin 1.7.0
27394         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
27395         addition.
27396         * doc/posix-functions/log2f.texi: Likewise.
27397
27398 2009-03-19  Jim Meyering  <meyering@redhat.com>
27399
27400         fsusage: avoid syntax error due to statement-before-declaration
27401         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
27402         after all declarations.  Reported by Matthew Woehlke in
27403         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
27404
27405 2009-03-18  Eric Blake  <ebb9@byu.net>
27406
27407         build-aux/compile: sync from automake
27408         * build-aux/compile: New file, from automake.
27409         * config/srclist.txt: Mention build-aux/compile.
27410
27411 2009-03-17  Bruno Haible  <bruno@clisp.org>
27412
27413         * lib/git-merge-changelog.c: Fix typo in comment.
27414         Reported by Reuben Thomas <rrt@sc3d.org>.
27415
27416 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
27417
27418         * m4/regex.m4: update and improve help for
27419         --without-included-regex.
27420
27421 2009-03-17  Simon Josefsson  <simon@josefsson.org>
27422
27423         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
27424         failure on missing include files.
27425
27426 2009-03-17  Eric Blake  <ebb9@byu.net>
27427
27428         doc: mention more functions added in cygwin 1.7.0
27429         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
27430         addition.
27431         * doc/posix-functions/fwscanf.texi: Likewise.
27432         * doc/posix-functions/swprintf.texi: Likewise.
27433         * doc/posix-functions/swscanf.texi: Likewise.
27434         * doc/posix-functions/vfwprintf.texi: Likewise.
27435         * doc/posix-functions/vfwscanf.texi: Likewise.
27436         * doc/posix-functions/vswprintf.texi: Likewise.
27437         * doc/posix-functions/vswscanf.texi: Likewise.
27438         * doc/posix-functions/vwprintf.texi: Likewise.
27439         * doc/posix-functions/vwscanf.texi: Likewise.
27440         * doc/posix-functions/wcscasecmp.texi: Likewise.
27441         * doc/posix-functions/wcsdup.texi: Likewise.
27442         * doc/posix-functions/wcsftime.texi: Likewise.
27443         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27444         * doc/posix-functions/wprintf.texi: Likewise.
27445         * doc/posix-functions/wscanf.texi: Likewise.
27446         * doc/glibc-functions/gethostbyname2.texi: Likewise.
27447
27448 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449
27450         maint.mk: really add $(AM_MAKEFLAGS)
27451         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
27452         was inadvertently omitted in the last commit.
27453         Spotted by Bruno Haible.
27454
27455         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
27456         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
27457         $(AM_MAKEFLAGS)' rather than plain `make'.
27458
27459         gnulib-tool: execute $MAKE not make
27460         * gnulib-tool: Default $MAKE to 'make'.
27461         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
27462         than make.  Initialize $MAKE in the do-autobuild script.
27463
27464         gnulib-tool: use $MAKE not make in generated files
27465         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
27466         make, in generated files.  Initialize $MAKE in the do-autobuild
27467         script.
27468
27469         * top/GNUmakefile (_have-git-version-gen): Fix typo.
27470
27471         GNUmakefile: disable parallelism only for multiple, recursive targets
27472         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
27473         additions in the Makefile.
27474         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
27475         by Automake.
27476         (.NOTPARALLEL): Only disable parallel builds if multiple targets
27477         are listed on the command line and at least one of them is
27478         listed in $(ALL_RECURSIVE_TARGETS).
27479
27480 2009-03-14  Bruno Haible  <bruno@clisp.org>
27481
27482         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
27483         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
27484         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
27485         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
27486         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
27487         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
27488         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
27489         unistr/u8-uctomb.
27490         * modules/unistr/u8-strchr (Depends-on): Likewise.
27491         * modules/unistr/u8-strrchr (Depends-on): Likewise.
27492         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
27493         unistr/u16-uctomb.
27494         * modules/unistr/u16-strchr (Depends-on): Likewise.
27495         * modules/unistr/u16-strrchr (Depends-on): Likewise.
27496
27497 2009-03-12  Bruno Haible  <bruno@clisp.org>
27498
27499         Work around select() bug on Interix 3.5.
27500         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
27501         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
27502         * m4/select.m4: New file.
27503         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
27504         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
27505         * modules/select (Files): Add m4/select.m4.
27506         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
27507         * modules/nanosleep (Depends-on): Add select.
27508         * modules/poll (Depends-on): Likewise.
27509         * doc/posix-functions/select.texi: Mention the Interix bug.
27510         Reported by Markus Duft <mduft@gentoo.org>.
27511
27512         * lib/select.c: Renamed from lib/winsock-select.c.
27513         * modules/select (Files): Add lib/select.c, remove
27514         lib/winsock-select.c.
27515         (configure.ac): Update.
27516
27517 2009-03-12  Jim Meyering  <meyering@redhat.com>
27518
27519         avoid gcc warnings about unused macro definitions
27520         * lib/readtokens.c (STREQ): Remove unused definition.
27521         * lib/xmalloc.c (SIZE_MAX): Likewise.
27522         * lib/openat-die.c (N_): Likewise.
27523         * lib/mountlist.c (SIZE_MAX): Remove definition.
27524         Instead, include <stdint.h>.
27525         * lib/readutmp.c: Likewise.
27526         * modules/readutmp (Depends-on): Add stdint.
27527         * modules/mountlist (Depends-on): Add stdint.
27528         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
27529
27530 2009-03-10  Bruno Haible  <bruno@clisp.org>
27531
27532         Tests for module 'mbmemcasecoll'.
27533         * modules/mbmemcasecoll-tests: New file.
27534         * tests/test-mbmemcasecoll1.sh: New file.
27535         * tests/test-mbmemcasecoll2.sh: New file.
27536         * tests/test-mbmemcasecoll3.sh: New file.
27537         * tests/test-mbmemcasecoll.c: New file.
27538
27539         New module 'mbmemcasecoll'.
27540         * lib/mbmemcasecoll.h: New file.
27541         * lib/mbmemcasecoll.c: New file.
27542         * modules/mbmemcasecoll: New file.
27543
27544         * tests/test-mbmemcasecmp.h: New file, extracted from
27545         tests/test-mbmemcasecmp.c.
27546         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
27547         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
27548         (main): Update.
27549         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
27550
27551 2009-03-09  Bruno Haible  <bruno@clisp.org>
27552
27553         Tests for module 'mbmemcasecmp'.
27554         * modules/mbmemcasecmp-tests: New file.
27555         * tests/test-mbmemcasecmp1.sh: New file.
27556         * tests/test-mbmemcasecmp2.sh: New file.
27557         * tests/test-mbmemcasecmp3.sh: New file.
27558         * tests/test-mbmemcasecmp.c: New file.
27559
27560         New module 'mbmemcasecmp'.
27561         * lib/mbmemcasecmp.h: New file.
27562         * lib/mbmemcasecmp.c: New file.
27563         * modules/mbmemcasecmp: New file.
27564
27565 2009-03-09  Bruno Haible  <bruno@clisp.org>
27566
27567         Tests for module 'unicase/ulc-casecoll'.
27568         * modules/unicase/ulc-casecoll-tests: New file.
27569         * tests/unicase/test-ulc-casecoll1.sh: New file.
27570         * tests/unicase/test-ulc-casecoll2.sh: New file.
27571         * tests/unicase/test-ulc-casecoll.c: New file.
27572
27573         New module 'unicase/ulc-casecoll'.
27574         * lib/unicase.h (ulc_casecoll): New declaration.
27575         * lib/unicase/ulc-casecoll.c: New file.
27576         * modules/unicase/ulc-casecoll: New file.
27577
27578         New module 'unicase/ulc-casexfrm'.
27579         * lib/unicase.h (ulc_casexfrm): New declaration.
27580         * lib/unicase/ulc-casexfrm.c: New file.
27581         * modules/unicase/ulc-casexfrm: New file.
27582
27583 2009-03-09  Bruno Haible  <bruno@clisp.org>
27584
27585         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
27586         invocations.
27587
27588         * m4/mbscasecmp.m4: Remove file.
27589         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
27590         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
27591
27592         * m4/mbscasestr.m4: Remove file.
27593         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
27594         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
27595
27596         * m4/mbschr.m4: Remove file.
27597         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
27598         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
27599
27600         * m4/mbscspn.m4: Remove file.
27601         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
27602         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
27603
27604         * m4/mbslen.m4: Remove file.
27605         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
27606         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
27607
27608         * m4/mbsncasecmp.m4: Remove file.
27609         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
27610         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
27611
27612         * m4/mbsnlen.m4: Remove file.
27613         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
27614         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
27615
27616         * m4/mbspbrk.m4: Remove file.
27617         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
27618         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
27619
27620         * m4/mbspcasecmp.m4: Remove file.
27621         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
27622         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
27623
27624         * m4/mbsrchr.m4: Remove file.
27625         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
27626         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
27627
27628         * m4/mbssep.m4: Remove file.
27629         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
27630         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
27631
27632         * m4/mbsspn.m4: Remove file.
27633         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
27634         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
27635
27636         * m4/mbsstr.m4: Remove file.
27637         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
27638         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
27639
27640         * m4/mbstok_r.m4: Remove file.
27641         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
27642         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
27643
27644         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
27645
27646         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
27647         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
27648
27649         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
27650
27651 2009-03-08  Bruno Haible  <bruno@clisp.org>
27652
27653         Tests for module 'unicase/ulc-casecmp'.
27654         * modules/unicase/ulc-casecmp-tests: New file.
27655         * tests/unicase/test-ulc-casecmp1.sh: New file.
27656         * tests/unicase/test-ulc-casecmp2.sh: New file.
27657         * tests/unicase/test-ulc-casecmp.c: New file.
27658
27659         New module 'unicase/ulc-casecmp'.
27660         * lib/unicase.h (ulc_casecmp): New declaration.
27661         * lib/unicase/ulc-casecmp.c: New file.
27662         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
27663         'const SRC_UNIT *'.
27664         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
27665         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
27666         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
27667         * modules/unicase/ulc-casecmp: New file.
27668
27669         Tests for module 'unicase/u32-is-cased'.
27670         * modules/unicase/u32-is-cased-tests: New file.
27671         * tests/unicase/test-u32-is-cased.c: New file.
27672
27673         Tests for module 'unicase/u16-is-cased'.
27674         * modules/unicase/u16-is-cased-tests: New file.
27675         * tests/unicase/test-u16-is-cased.c: New file.
27676
27677         Tests for module 'unicase/u8-is-cased'.
27678         * modules/unicase/u8-is-cased-tests: New file.
27679         * tests/unicase/test-u8-is-cased.c: New file.
27680         * tests/unicase/test-is-cased.h: New file.
27681
27682         New module 'unicase/u32-is-cased'.
27683         * lib/unicase/u32-is-cased.c: New file.
27684         * modules/unicase/u32-is-cased: New file.
27685
27686         New module 'unicase/u16-is-cased'.
27687         * lib/unicase/u16-is-cased.c: New file.
27688         * modules/unicase/u16-is-cased: New file.
27689
27690         New module 'unicase/u8-is-cased'.
27691         * lib/unicase/u8-is-cased.c: New file.
27692         * lib/unicase/u-is-cased.h: New file.
27693         * modules/unicase/u8-is-cased: New file.
27694
27695         Tests for module 'unicase/u32-is-casefolded'.
27696         * modules/unicase/u32-is-casefolded-tests: New file.
27697         * tests/unicase/test-u32-is-casefolded.c: New file.
27698
27699         Tests for module 'unicase/u16-is-casefolded'.
27700         * modules/unicase/u16-is-casefolded-tests: New file.
27701         * tests/unicase/test-u16-is-casefolded.c: New file.
27702
27703         Tests for module 'unicase/u8-is-casefolded'.
27704         * modules/unicase/u8-is-casefolded-tests: New file.
27705         * tests/unicase/test-u8-is-casefolded.c: New file.
27706         * tests/unicase/test-is-casefolded.h: New file.
27707
27708         New module 'unicase/u32-is-casefolded'.
27709         * lib/unicase/u32-is-casefolded.c: New file.
27710         * modules/unicase/u32-is-casefolded: New file.
27711
27712         New module 'unicase/u16-is-casefolded'.
27713         * lib/unicase/u16-is-casefolded.c: New file.
27714         * modules/unicase/u16-is-casefolded: New file.
27715
27716         New module 'unicase/u8-is-casefolded'.
27717         * lib/unicase/u8-is-casefolded.c: New file.
27718         * modules/unicase/u8-is-casefolded: New file.
27719
27720         Tests for module 'unicase/u32-is-titlecase'.
27721         * modules/unicase/u32-is-titlecase-tests: New file.
27722         * tests/unicase/test-u32-is-titlecase.c: New file.
27723
27724         Tests for module 'unicase/u16-is-titlecase'.
27725         * modules/unicase/u16-is-titlecase-tests: New file.
27726         * tests/unicase/test-u16-is-titlecase.c: New file.
27727
27728         Tests for module 'unicase/u8-is-titlecase'.
27729         * modules/unicase/u8-is-titlecase-tests: New file.
27730         * tests/unicase/test-u8-is-titlecase.c: New file.
27731         * tests/unicase/test-is-titlecase.h: New file.
27732
27733         New module 'unicase/u32-is-titlecase'.
27734         * lib/unicase/u32-is-titlecase.c: New file.
27735         * modules/unicase/u32-is-titlecase: New file.
27736
27737         New module 'unicase/u16-is-titlecase'.
27738         * lib/unicase/u16-is-titlecase.c: New file.
27739         * modules/unicase/u16-is-titlecase: New file.
27740
27741         New module 'unicase/u8-is-titlecase'.
27742         * lib/unicase/u8-is-titlecase.c: New file.
27743         * modules/unicase/u8-is-titlecase: New file.
27744
27745         Tests for module 'unicase/u32-is-lowercase'.
27746         * modules/unicase/u32-is-lowercase-tests: New file.
27747         * tests/unicase/test-u32-is-lowercase.c: New file.
27748
27749         Tests for module 'unicase/u16-is-lowercase'.
27750         * modules/unicase/u16-is-lowercase-tests: New file.
27751         * tests/unicase/test-u16-is-lowercase.c: New file.
27752
27753         Tests for module 'unicase/u8-is-lowercase'.
27754         * modules/unicase/u8-is-lowercase-tests: New file.
27755         * tests/unicase/test-u8-is-lowercase.c: New file.
27756         * tests/unicase/test-is-lowercase.h: New file.
27757
27758         New module 'unicase/u32-is-lowercase'.
27759         * lib/unicase/u32-is-lowercase.c: New file.
27760         * modules/unicase/u32-is-lowercase: New file.
27761
27762         New module 'unicase/u16-is-lowercase'.
27763         * lib/unicase/u16-is-lowercase.c: New file.
27764         * modules/unicase/u16-is-lowercase: New file.
27765
27766         New module 'unicase/u8-is-lowercase'.
27767         * lib/unicase/u8-is-lowercase.c: New file.
27768         * modules/unicase/u8-is-lowercase: New file.
27769
27770         Tests for module 'unicase/u32-is-uppercase'.
27771         * modules/unicase/u32-is-uppercase-tests: New file.
27772         * tests/unicase/test-u32-is-uppercase.c: New file.
27773
27774         Tests for module 'unicase/u16-is-uppercase'.
27775         * modules/unicase/u16-is-uppercase-tests: New file.
27776         * tests/unicase/test-u16-is-uppercase.c: New file.
27777
27778         Tests for module 'unicase/u8-is-uppercase'.
27779         * modules/unicase/u8-is-uppercase-tests: New file.
27780         * tests/unicase/test-u8-is-uppercase.c: New file.
27781         * tests/unicase/test-is-uppercase.h: New file.
27782
27783         New module 'unicase/u32-is-uppercase'.
27784         * lib/unicase/u32-is-uppercase.c: New file.
27785         * modules/unicase/u32-is-uppercase: New file.
27786
27787         New module 'unicase/u16-is-uppercase'.
27788         * lib/unicase/u16-is-uppercase.c: New file.
27789         * modules/unicase/u16-is-uppercase: New file.
27790
27791         New module 'unicase/u8-is-uppercase'.
27792         * lib/unicase/u8-is-uppercase.c: New file.
27793         * modules/unicase/u8-is-uppercase: New file.
27794
27795         New module 'unicase/u32-is-invariant'.
27796         * lib/unicase/u32-is-invariant.c: New file.
27797         * modules/unicase/u32-is-invariant: New file.
27798
27799         New module 'unicase/u16-is-invariant'.
27800         * lib/unicase/u16-is-invariant.c: New file.
27801         * modules/unicase/u16-is-invariant: New file.
27802
27803         New module 'unicase/u8-is-invariant'.
27804         * lib/unicase/u8-is-invariant.c: New file.
27805         * lib/unicase/invariant.h: New file.
27806         * lib/unicase/u-is-invariant.h: New file.
27807         * modules/unicase/u8-is-invariant: New file.
27808
27809         Tests for module 'unicase/u32-casecoll'.
27810         * modules/unicase/u32-casecoll-tests: New file.
27811         * tests/unicase/test-u32-casecoll.c: New file.
27812
27813         Tests for module 'unicase/u16-casecoll'.
27814         * modules/unicase/u16-casecoll-tests: New file.
27815         * tests/unicase/test-u16-casecoll.c: New file.
27816
27817         Tests for module 'unicase/u8-casecoll'.
27818         * modules/unicase/u8-casecoll-tests: New file.
27819         * tests/unicase/test-u8-casecoll.c: New file.
27820
27821         New module 'unicase/u32-casecoll'.
27822         * lib/unicase/u32-casecoll.c: New file.
27823         * modules/unicase/u32-casecoll: New file.
27824
27825         New module 'unicase/u16-casecoll'.
27826         * lib/unicase/u16-casecoll.c: New file.
27827         * modules/unicase/u16-casecoll: New file.
27828
27829         New module 'unicase/u8-casecoll'.
27830         * lib/unicase/u8-casecoll.c: New file.
27831         * lib/unicase/u-casecoll.h: New file.
27832         * modules/unicase/u8-casecoll: New file.
27833
27834         New module 'unicase/u32-casexfrm'.
27835         * lib/unicase/u32-casexfrm.c: New file.
27836         * modules/unicase/u32-casexfrm: New file.
27837
27838         New module 'unicase/u16-casexfrm'.
27839         * lib/unicase/u16-casexfrm.c: New file.
27840         * modules/unicase/u16-casexfrm: New file.
27841
27842         New module 'unicase/u8-casexfrm'.
27843         * lib/unicase/u8-casexfrm.c: New file.
27844         * lib/unicase/u-casexfrm.h: New file.
27845         * modules/unicase/u8-casexfrm: New file.
27846
27847         Tests for module 'unicase/u32-casecmp'.
27848         * modules/unicase/u32-casecmp-tests: New file.
27849         * tests/unicase/test-u32-casecmp.c: New file.
27850
27851         Tests for module 'unicase/u16-casecmp'.
27852         * modules/unicase/u16-casecmp-tests: New file.
27853         * tests/unicase/test-u16-casecmp.c: New file.
27854
27855         Tests for module 'unicase/u8-casecmp'.
27856         * modules/unicase/u8-casecmp-tests: New file.
27857         * tests/unicase/test-u8-casecmp.c: New file.
27858         * tests/unicase/test-casecmp.h: New file.
27859
27860         New module 'unicase/u32-casecmp'.
27861         * lib/unicase/u32-casecmp.c: New file.
27862         * modules/unicase/u32-casecmp: New file.
27863
27864         New module 'unicase/u16-casecmp'.
27865         * lib/unicase/u16-casecmp.c: New file.
27866         * modules/unicase/u16-casecmp: New file.
27867
27868         New module 'unicase/u8-casecmp'.
27869         * lib/unicase/u8-casecmp.c: New file.
27870         * lib/unicase/u-casecmp.h: New file.
27871         * modules/unicase/u8-casecmp: New file.
27872
27873         Tests for module 'unicase/u32-casefold'.
27874         * modules/unicase/u32-casefold-tests: New file.
27875         * tests/unicase/test-u32-casefold.c: New file.
27876
27877         Tests for module 'unicase/u16-casefold'.
27878         * modules/unicase/u16-casefold-tests: New file.
27879         * tests/unicase/test-u16-casefold.c: New file.
27880
27881         Tests for module 'unicase/u8-casefold'.
27882         * modules/unicase/u8-casefold-tests: New file.
27883         * tests/unicase/test-u8-casefold.c: New file.
27884
27885         New module 'unicase/u32-casefold'.
27886         * lib/unicase/u32-casefold.c: New file.
27887         * modules/unicase/u32-casefold: New file.
27888
27889         New module 'unicase/u16-casefold'.
27890         * lib/unicase/u16-casefold.c: New file.
27891         * modules/unicase/u16-casefold: New file.
27892
27893         New module 'unicase/u8-casefold'.
27894         * lib/unicase/u8-casefold.c: New file.
27895         * lib/unicase/u-casefold.h: New file.
27896         * modules/unicase/u8-casefold: New file.
27897
27898         New module 'unicase/tocasefold'.
27899         * lib/unicase/casefold.h: New file.
27900         * lib/unicase/tocasefold.c: New file.
27901         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
27902         * modules/unicase/tocasefold: New file.
27903
27904         Tests for module 'unicase/u32-totitle'.
27905         * modules/unicase/u32-totitle-tests: New file.
27906         * tests/unicase/test-u32-totitle.c: New file.
27907
27908         Tests for module 'unicase/u16-totitle'.
27909         * modules/unicase/u16-totitle-tests: New file.
27910         * tests/unicase/test-u16-totitle.c: New file.
27911
27912         Tests for module 'unicase/u8-totitle'.
27913         * modules/unicase/u8-totitle-tests: New file.
27914         * tests/unicase/test-u8-totitle.c: New file.
27915
27916         New module 'unicase/u32-totitle'.
27917         * lib/unicase/u32-totitle.c: New file.
27918         * modules/unicase/u32-totitle: New file.
27919
27920         New module 'unicase/u16-totitle'.
27921         * lib/unicase/u16-totitle.c: New file.
27922         * modules/unicase/u16-totitle: New file.
27923
27924         New module 'unicase/u8-totitle'.
27925         * lib/unicase/u8-totitle.c: New file.
27926         * lib/unicase/u-totitle.h: New file.
27927         * modules/unicase/u8-totitle: New file.
27928
27929         Tests for module 'unicase/u32-tolower'.
27930         * modules/unicase/u32-tolower-tests: New file.
27931         * tests/unicase/test-u32-tolower.c: New file.
27932
27933         Tests for module 'unicase/u16-tolower'.
27934         * modules/unicase/u16-tolower-tests: New file.
27935         * tests/unicase/test-u16-tolower.c: New file.
27936
27937         Tests for module 'unicase/u8-tolower'.
27938         * modules/unicase/u8-tolower-tests: New file.
27939         * tests/unicase/test-u8-tolower.c: New file.
27940
27941         New module 'unicase/u32-tolower'.
27942         * lib/unicase/u32-tolower.c: New file.
27943         * modules/unicase/u32-tolower: New file.
27944
27945         New module 'unicase/u16-tolower'.
27946         * lib/unicase/u16-tolower.c: New file.
27947         * modules/unicase/u16-tolower: New file.
27948
27949         New module 'unicase/u8-tolower'.
27950         * lib/unicase/u8-tolower.c: New file.
27951         * modules/unicase/u8-tolower: New file.
27952
27953         Tests for module 'unicase/u32-toupper'.
27954         * modules/unicase/u32-toupper-tests: New file.
27955         * tests/unicase/test-u32-toupper.c: New file.
27956
27957         Tests for module 'unicase/u16-toupper'.
27958         * modules/unicase/u16-toupper-tests: New file.
27959         * tests/unicase/test-u16-toupper.c: New file.
27960
27961         Tests for module 'unicase/u8-toupper'.
27962         * modules/unicase/u8-toupper-tests: New file.
27963         * tests/unicase/test-u8-toupper.c: New file.
27964
27965         New module 'unicase/u32-toupper'.
27966         * lib/unicase/u32-toupper.c: New file.
27967         * modules/unicase/u32-toupper: New file.
27968
27969         New module 'unicase/u16-toupper'.
27970         * lib/unicase/u16-toupper.c: New file.
27971         * modules/unicase/u16-toupper: New file.
27972
27973         New module 'unicase/u8-toupper'.
27974         * lib/unicase/u8-toupper.c: New file.
27975         * modules/unicase/u8-toupper: New file.
27976
27977         New module 'unicase/u32-casemap'.
27978         * lib/unicase/u32-casemap.c: New file.
27979         * modules/unicase/u32-casemap: New file.
27980
27981         New module 'unicase/u16-casemap'.
27982         * lib/unicase/u16-casemap.c: New file.
27983         * modules/unicase/u16-casemap: New file.
27984
27985         New module 'unicase/u8-casemap'.
27986         * lib/unicase/unicasemap.h: New file.
27987         * lib/unicase/u8-casemap.c: New file.
27988         * lib/unicase/u-casemap.h: New file.
27989         * modules/unicase/u8-casemap: New file.
27990
27991         New module 'unicase/special-casing'.
27992         * lib/unicase/special-casing.h: New file.
27993         * lib/unicase/special-casing.c: New file.
27994         * lib/unicase/special-casing-table.gperf: New file, generated by
27995         gen-uni-tables.c.
27996         * modules/unicase/special-casing: New file.
27997
27998         Tests for module 'unicase/locale-language'.
27999         * modules/unicase/locale-language-tests: New file.
28000         * tests/unicase/test-locale-language.sh: New file.
28001         * tests/unicase/test-locale-language.c: New file.
28002
28003         New module 'unicase/locale-language'.
28004         * lib/unicase/locale-language.c: New file.
28005         * lib/unicase/locale-languages.gperf: New file.
28006         * modules/unicase/locale-language: New file.
28007
28008         Generate more tables for case conversion and case folding.
28009         * lib/gen-uni-tables.c (SCC_*): New enum items.
28010         (struct special_casing_rule): New type.
28011         (casing_rules, num_casing_rules, allocated_casing_rules): New
28012         variables.
28013         (add_casing_rule, fill_casing_rules): New functions.
28014         (struct casefold_rule): New type.
28015         (casefolding_rules, num_casefolding_rules,
28016         allocated_casefolding_rules): New variables.
28017         (fill_casefolding_rules): New function.
28018         (unicode_casefold): New variable.
28019         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28020         sort_casing_rules, output_casing_rules): New functions.
28021         (main): Accept to more arguments: SpecialCasing.txt and
28022         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28023         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28024         Output mapping for casefolding.
28025
28026         * lib/unicase.h: Include stdbool.h, uninorm.h.
28027         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28028         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28029         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28030         arguments.
28031         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28032         resultp arguments.
28033         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28034         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28035         resultp arguments.
28036         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28037         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28038         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28039         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28040         declarations.
28041         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28042
28043 2009-03-08  Bruno Haible  <bruno@clisp.org>
28044
28045         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28046         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28047         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28048         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28049
28050 2009-03-07  Bruno Haible  <bruno@clisp.org>
28051
28052         Adjust u*_normcmp, u*_normcoll API.
28053         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28054         u16_normcoll, u32_normcoll): Change failure conventions.
28055         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28056         errno and return -1.
28057         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28058
28059 2009-03-07  Bruno Haible  <bruno@clisp.org>
28060
28061         Tests for module 'uninorm/u32-normcoll'.
28062         * modules/uninorm/u32-normcoll-tests: New file.
28063         * tests/uninorm/test-u32-normcoll.c: New file.
28064
28065         Tests for module 'uninorm/u16-normcoll'.
28066         * modules/uninorm/u16-normcoll-tests: New file.
28067         * tests/uninorm/test-u16-normcoll.c: New file.
28068
28069         Tests for module 'uninorm/u8-normcoll'.
28070         * modules/uninorm/u8-normcoll-tests: New file.
28071         * tests/uninorm/test-u8-normcoll.c: New file.
28072
28073 2009-03-07  Bruno Haible  <bruno@clisp.org>
28074
28075         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28076         tests/uninorm/test-u32-normcmp.c.
28077         * tests/uninorm/test-u32-normcmp.c: Include it.
28078         (test_nonascii): New function, extracted from main. Add some more
28079         tests.
28080         (main): Invoke test_ascii and test_nonascii.
28081         * modules/uninorm/u32-normcmp-tests (Files): Add
28082         tests/uninorm/test-u32-normcmp.h.
28083         (Depends-on): Remove uninorm/u32-normcmp.
28084
28085         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28086         tests/uninorm/test-u16-normcmp.c.
28087         * tests/uninorm/test-u16-normcmp.c: Include it.
28088         (test_nonascii): New function, extracted from main. Add some more
28089         tests.
28090         (main): Invoke test_ascii and test_nonascii.
28091         * modules/uninorm/u16-normcmp-tests (Files): Add
28092         tests/uninorm/test-u16-normcmp.h.
28093         (Depends-on): Remove uninorm/u16-normcmp.
28094
28095         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28096         tests/uninorm/test-u8-normcmp.c.
28097         * tests/uninorm/test-u8-normcmp.c: Include it.
28098         (test_nonascii): New function, extracted from main. Add some more
28099         tests.
28100         (main): Invoke test_ascii and test_nonascii.
28101         * modules/uninorm/u8-normcmp-tests (Files): Add
28102         tests/uninorm/test-u8-normcmp.h.
28103         (Depends-on): Remove uninorm/u8-normcmp.
28104
28105 2009-03-07  Bruno Haible  <bruno@clisp.org>
28106
28107         New module 'uninorm/u32-normcoll'.
28108         * lib/uninorm/u32-normcoll.c: New file.
28109         * modules/uninorm/u32-normcoll: New file.
28110
28111         New module 'uninorm/u16-normcoll'.
28112         * lib/uninorm/u16-normcoll.c: New file.
28113         * modules/uninorm/u16-normcoll: New file.
28114
28115         New module 'uninorm/u8-normcoll'.
28116         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28117         declarations.
28118         * lib/uninorm/u8-normcoll.c: New file.
28119         * lib/uninorm/u-normcoll.h: New file.
28120         * modules/uninorm/u8-normcoll: New file.
28121
28122         New module 'uninorm/u32-normxfrm'.
28123         * lib/uninorm/u32-normxfrm.c: New file.
28124         * modules/uninorm/u32-normxfrm: New file.
28125
28126         New module 'uninorm/u16-normxfrm'.
28127         * lib/uninorm/u16-normxfrm.c: New file.
28128         * modules/uninorm/u16-normxfrm: New file.
28129
28130         New module 'uninorm/u8-normxfrm'.
28131         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28132         declarations.
28133         * lib/uninorm/u8-normxfrm.c: New file.
28134         * lib/uninorm/u-normxfrm.h: New file.
28135         * modules/uninorm/u8-normxfrm: New file.
28136
28137 2009-03-07  Bruno Haible  <bruno@clisp.org>
28138
28139         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28140         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28141         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28142
28143 2009-03-07  Bruno Haible  <bruno@clisp.org>
28144
28145         New module 'memxfrm'.
28146         * lib/memxfrm.h: New file.
28147         * lib/memxfrm.c: New file.
28148         * modules/memxfrm: New file.
28149
28150 2009-03-07  Bruno Haible  <bruno@clisp.org>
28151
28152         New module 'memcmp2'.
28153         * lib/memcmp2.h: New file.
28154         * lib/memcmp2.c: New file.
28155         * modules/memcmp2: New file.
28156
28157 2009-03-07  Bruno Haible  <bruno@clisp.org>
28158
28159         Tests for module 'uninorm/decomposing-form'.
28160         * modules/uninorm/decomposing-form-tests: New file.
28161         * tests/uninorm/test-decomposing-form.c: New file.
28162
28163         New module 'uninorm/decomposing-form'.
28164         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28165         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28166         Add 'decomposing_variant' field.
28167         * lib/uninorm/decomposing-form.c: New file.
28168         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28169         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28170         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28171         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28172         * modules/uninorm/decomposing-form: New file.
28173         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28174         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28175
28176 2009-03-07  Bruno Haible  <bruno@clisp.org>
28177
28178         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28179         strings.
28180
28181 2009-03-06  Bruno Haible  <bruno@clisp.org>
28182
28183         Tests for module 'uninorm/u32-normcmp'.
28184         * tests/uninorm/test-u32-normcmp.c: New file.
28185         * modules/uninorm/u32-normcmp-tests: New file.
28186
28187         Tests for module 'uninorm/u16-normcmp'.
28188         * tests/uninorm/test-u16-normcmp.c: New file.
28189         * modules/uninorm/u16-normcmp-tests: New file.
28190
28191         Tests for module 'uninorm/u8-normcmp'.
28192         * tests/uninorm/test-u8-normcmp.c: New file.
28193         * modules/uninorm/u8-normcmp-tests: New file.
28194
28195         New module 'uninorm/u32-normcmp'.
28196         * lib/uninorm/u32-normcmp.c: New file.
28197         * modules/uninorm/u32-normcmp: New file.
28198
28199         New module 'uninorm/u16-normcmp'.
28200         * lib/uninorm/u16-normcmp.c: New file.
28201         * modules/uninorm/u16-normcmp: New file.
28202
28203         New module 'uninorm/u8-normcmp'.
28204         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28205         declarations.
28206         * lib/uninorm/u8-normcmp.c: New file.
28207         * lib/uninorm/u-normcmp.h: New file.
28208         * modules/uninorm/u8-normcmp: New file.
28209
28210 2009-03-06  Bruno Haible  <bruno@clisp.org>
28211
28212         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28213         Reported by Eric Blake.
28214
28215 2009-03-06  Eric Blake  <ebb9@byu.net>
28216             Bruno Haible  <bruno@clisp.org>
28217
28218         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28219         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28220         condition.
28221         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28222         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28223         condition.
28224         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28225
28226 2009-03-06  Eric Blake  <ebb9@byu.net>
28227
28228         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28229         to avoid compiler warnings.
28230         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28231
28232 2009-03-05  Bruno Haible  <bruno@clisp.org>
28233
28234         * tests/test-ftell.c (main): Disable test beyond end of file on
28235         FreeMiNT.
28236         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28237
28238 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28239
28240         * lib/filevercmp.c: Move hidden files up in ordering.
28241         * tests/test-filevercmp.c: Add tests for hidden files.
28242
28243 2009-03-04  Bruno Haible  <bruno@clisp.org>
28244
28245         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
28246         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
28247         AM_CFLAGS.
28248         Reported by Simon Josefsson.
28249
28250 2009-03-03  Bruno Haible  <bruno@clisp.org>
28251
28252         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
28253         Reported by Simon Josefsson.
28254
28255         * doc/ld-version-script.texi: Update node reference.
28256
28257 2009-03-03  Bruno Haible  <bruno@clisp.org>
28258
28259         * modules/visibility (License): Change to 'unlimited'.
28260         Suggested by Simon Josefsson.
28261
28262 2009-03-03  Jim Meyering  <meyering@redhat.com>
28263
28264         unlinkdir: cannot_unlink_dir may modify process state
28265         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
28266         it's neither thread-safe nor appropriate for use in a library.
28267
28268 2009-03-03  Eric Blake  <ebb9@byu.net>
28269
28270         test-closein: silence test under Darwin
28271         * tests/test-closein.sh: Ignore stderr from cat, since we don't
28272         care if it dies from EPIPE or EBADF.
28273
28274 2009-03-03  Bruno Haible  <bruno@clisp.org>
28275
28276         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
28277         earlier.
28278         * doc/visibility.texi: Fix @node and @section.
28279
28280 2009-03-03  Simon Josefsson  <simon@josefsson.org>
28281
28282         * doc/gnulib.texi: Link to sections for ld version script and
28283         visibility.
28284         * doc/visibility.texi: Add @node and @section.
28285         * modules/ld-version-script: New module.
28286         * m4/ld-version-script.m4: New file.
28287         * doc/ld-version-script.texi: New file.
28288
28289 2009-03-02  David Lutterkort  <lutter@redhat.com>
28290
28291         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
28292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28293
28294 2009-03-02  Bruno Haible  <bruno@clisp.org>
28295
28296         * doc/visibility.texi: Mention libtool's -export-symbols option.
28297
28298 2009-03-02  Jim Meyering  <meyering@redhat.com>
28299
28300         announce-gen: new option: --no-print-checksums
28301         * build-aux/announce-gen (usage): Describe it.
28302         (print_checksums): Print a newline here, not in the [*] footnote.
28303         (main): Honor it.
28304
28305 2009-03-01  Bruno Haible  <bruno@clisp.org>
28306
28307         Use socklen_t in the native Windows replacements prototypes.
28308         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
28309         instead of 'int'.
28310         * lib/getsockopt.c (rpl_getsockopt): Likewise.
28311         * lib/setsockopt.c (rpl_setsockopt): Likewise.
28312         * modules/getsockopt (Depends-on): Add socklen.
28313         * modules/setsockopt (Depends-on): Add socklen.
28314
28315 2009-03-01  Bruno Haible  <bruno@clisp.org>
28316
28317         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
28318         least 4.2.
28319
28320 2009-03-01  Eric Blake  <ebb9@byu.net>
28321             Bruno Haible  <bruno@clisp.org>
28322
28323         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
28324         error messages.
28325         * lib/wait-process.c (wait_subprocess): Omit error message about
28326         deadly signal sent to the child of termsigp != NULL.
28327
28328 2009-03-01  Eric Blake  <ebb9@byu.net>
28329
28330         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
28331
28332 2009-03-01  Bruno Haible  <bruno@clisp.org>
28333
28334         Avoid a gcc warning.
28335         * tests/test-sched.c (b): Make global.
28336         Reported by Eric Blake.
28337
28338 2009-01-19  Martin Lambers  <marlam@marlam.de>
28339
28340         Provide POSIX semantics for socket timeout options on W32.
28341         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
28342         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
28343         * modules/setsockopt: Depend on sys_time module for struct timeval.
28344         * modules/getsockopt: Depend on sys_time module for struct timeval.
28345
28346 2009-03-01  Simon Josefsson  <simon@josefsson.org>
28347
28348         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
28349         __USE_GNU, for consistency with netdb.in.h.
28350         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28351
28352 2009-03-01  Bruno Haible  <bruno@clisp.org>
28353
28354         More support for FreeMiNT.
28355         * lib/fseeko.c (rpl_fseeko): Complete last commit.
28356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28357
28358 2009-03-01  Bruno Haible  <bruno@clisp.org>
28359
28360         More support for FreeMiNT.
28361         * lib/fpurge.c (fpurge): Correct last commit.
28362         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28363
28364 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28365
28366         Fix unportable awk script in vc-list-files.
28367         * build-aux/vc-list-files: In the replacement awk script, use
28368         substr with a second argument of 1, not zero.
28369         Report by Simon Josefsson.
28370
28371 2009-02-28  Bruno Haible  <bruno@clisp.org>
28372
28373         More support for FreeMiNT.
28374         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
28375         to FreeMiNT today.
28376         * lib/fwriting.c (fwriting): Likewise.
28377         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
28378
28379 2009-02-28  Bruno Haible  <bruno@clisp.org>
28380
28381         * tests/test-freadseek.c (main): Disable test beyond end of file on
28382         FreeMiNT.
28383         * tests/test-ftello.c (main): Likewise.
28384         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28385
28386 2009-02-28  Bruno Haible  <bruno@clisp.org>
28387
28388         Add tentative support for FreeMiNT.
28389         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
28390         * lib/fpurge.c (fpurge): Likewise.
28391         * lib/freadable.c (freadable): Likewise.
28392         * lib/freading.c (freading): Likewise.
28393         * lib/freadptr.c (freadptr): Likewise.
28394         * lib/freadseek.c (freadptrinc): Likewise.
28395         * lib/fseeko.c (rpl_fseeko): Likewise.
28396         * lib/fseterr.c (fseterr): Likewise.
28397         * lib/fwritable.c (fwritable): Likewise.
28398         * lib/fwriting.c (fwriting): Likewise.
28399         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
28400         Hourihane.
28401         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28402
28403 2009-02-28  Bruno Haible  <bruno@clisp.org>
28404
28405         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
28406         SIGCHLD.
28407         Reported by Jim Meyering.
28408
28409 2009-02-28  Bruno Haible  <bruno@clisp.org>
28410
28411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
28412         Mention the results of these tests on various platforms.
28413         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
28414         order.
28415         * doc/posix-functions/printf.texi: Likewise.
28416         * doc/posix-functions/snprintf.texi: Likewise.
28417         * doc/posix-functions/sprintf.texi: Likewise.
28418         * doc/posix-functions/vfprintf.texi: Likewise.
28419         * doc/posix-functions/vprintf.texi: Likewise.
28420         * doc/posix-functions/vsnprintf.texi: Likewise.
28421         * doc/posix-functions/vsprintf.texi: Likewise.
28422         * doc/glibc-functions/obstack_printf.texi: Likewise.
28423         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28424
28425 2009-02-28  Bruno Haible  <bruno@clisp.org>
28426
28427         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
28428         Reported by Loïc Minier <lool@dooz.org>.
28429
28430 2009-02-27  Bruno Haible  <bruno@clisp.org>
28431
28432         * gnulib-tool (func_import): Make the sed expression used to create the
28433         sed script for updating the .gitignore file POSIX compliant.
28434         Reported by Eric Blake.
28435
28436 2009-02-27  Bruno Haible  <bruno@clisp.org>
28437
28438         * gnulib-tool (sed): Don't alias as "sed --posix".
28439         Reported by Eric Blake.
28440
28441 2009-02-27  Bruno Haible  <bruno@clisp.org>
28442
28443         Avoid test link errors.
28444         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
28445         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
28446         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
28447         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
28448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28449
28450 2009-02-27  Bruno Haible  <bruno@clisp.org>
28451
28452         Avoid spurious "(cached)" in configure output.
28453         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
28454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
28455         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28460         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28461         Reported by Eric Blake.
28462
28463 2009-02-27  Eric Blake  <ebb9@byu.net>
28464
28465         printf: fix regression in previous patch
28466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
28467
28468 2009-02-27  Bruno Haible  <bruno@clisp.org>
28469
28470         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
28471         value.
28472         * lib/stdint.in.h: Likewise.
28473         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
28474
28475 2009-02-27  Eric Blake  <ebb9@byu.net>
28476
28477         doc: mention more functions added in cygwin 1.7.0
28478         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
28479         addition.
28480         * doc/posix-functions/open_wmemstream.texi: Likewise.
28481         * doc/posix-functions/wcsnlen.texi: Likewise.
28482         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28483         * doc/posix-functions/wcstod.texi: Likewise.
28484         * doc/posix-functions/wcstof.texi: Likewise.
28485         * doc/posix-functions/wcstoimax.texi: Likewise.
28486         * doc/posix-functions/wcstok.texi: Likewise.
28487         * doc/posix-functions/wcstoumax.texi: Likewise.
28488
28489         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
28490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
28491         * doc/posix-functions/fprintf.texi: Update.
28492         * doc/posix-functions/printf.texi: Update.
28493         * doc/posix-functions/snprintf.texi: Update.
28494         * doc/posix-functions/sprintf.texi: Update.
28495         * doc/posix-functions/vfprintf.texi: Update.
28496         * doc/posix-functions/vprintf.texi: Update.
28497         * doc/posix-functions/vsnprintf.texi: Update.
28498         * doc/posix-functions/vsprintf.texi: Update.
28499         * doc/glibc-functions/obstack_printf.texi: Update.
28500         * doc/glibc-functions/obstack_vprintf.texi: Update.
28501
28502 2009-02-26  Eric Blake  <ebb9@byu.net>
28503
28504         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
28505         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
28506         compilation bug by using runtime conversion.
28507         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28508         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
28509         * modules/ceill-tests (Files): Use nan.h.
28510         * modules/floorl-tests (Files): Likewise.
28511         * modules/frexpl-tests (Files): Likewise.
28512         * modules/isnanl-tests (Files): Likewise.
28513         * modules/ldexpl-tests (Files): Likewise.
28514         * modules/roundl-tests (Files): Likewise.
28515         * modules/truncl-tests (Files): Likewise.
28516         * tests/test-ceill.c (main): Use a working NaN.
28517         * tests/test-floorl.c (main): Likewise.
28518         * tests/test-frexpl.c (main): Likewise.
28519         * tests/test-isnan.c (test_long_double): Likewise.
28520         * tests/test-isnanl.h (main): Likewise.
28521         * tests/test-ldexpl.h (main): Likewise.
28522         * tests/test-roundl.h (main): Likewise.
28523         * tests/test-truncl.h (main): Likewise.
28524         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
28525
28526 2009-02-26  Eric Blake  <ebb9@byu.net>
28527             Bruno Haible  <bruno@clisp.org>
28528
28529         Work around a *printf bug with %ls on Solaris.
28530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
28531         precision is specified, sprintf stops converting the wide string
28532         argument when the number of bytes that have been produced by this
28533         conversion equals or exceeds the precision.
28534         * doc/posix-functions/fprintf.texi: Update.
28535         * doc/posix-functions/printf.texi: Update.
28536         * doc/posix-functions/snprintf.texi: Update.
28537         * doc/posix-functions/sprintf.texi: Update.
28538         * doc/posix-functions/vfprintf.texi: Update.
28539         * doc/posix-functions/vprintf.texi: Update.
28540         * doc/posix-functions/vsnprintf.texi: Update.
28541         * doc/posix-functions/vsprintf.texi: Update.
28542         * doc/glibc-functions/obstack_printf.texi: Update.
28543         * doc/glibc-functions/obstack_vprintf.texi: Update.
28544
28545 2009-02-26  Eric Blake  <ebb9@byu.net>
28546
28547         stdlib: favor compiler check of random.h
28548         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
28549         to avoid an ObjC random.h installed by Swarm.
28550
28551 2009-02-26  Bruno Haible  <bruno@clisp.org>
28552
28553         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
28554         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
28555         Reported by Gary V. Vaughan <gary@gnu.org>.
28556
28557 2009-02-26  Bruno Haible  <bruno@clisp.org>
28558
28559         Fix *printf behaviour regarding the %ls directive.
28560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
28561         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
28562         NEED_PRINTF_DIRECTIVE_LS.
28563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
28564         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28566         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
28567         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
28568         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
28569         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28574         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
28575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28578         * doc/posix-functions/fprintf.texi: Update.
28579         * doc/posix-functions/printf.texi: Update.
28580         * doc/posix-functions/snprintf.texi: Update.
28581         * doc/posix-functions/sprintf.texi: Update.
28582         * doc/posix-functions/vfprintf.texi: Update.
28583         * doc/posix-functions/vprintf.texi: Update.
28584         * doc/posix-functions/vsnprintf.texi: Update.
28585         * doc/posix-functions/vsprintf.texi: Update.
28586         * doc/glibc-functions/obstack_printf.texi: Update.
28587         * doc/glibc-functions/obstack_vprintf.texi: Update.
28588         Reported by Eric Blake.
28589
28590 2009-02-25  Bruno Haible  <bruno@clisp.org>
28591
28592         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
28593         with known value.
28594         Reported by Gary V. Vaughan <gary@gnu.org>.
28595
28596 2009-02-25  Bruno Haible  <bruno@clisp.org>
28597
28598         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
28599         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
28600         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
28601         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
28602         Reported by Gary V. Vaughan <gary@gnu.org>.
28603
28604 2009-02-25  Bruno Haible  <bruno@clisp.org>
28605
28606         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
28607         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
28608         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
28609         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
28610         Reported by Gary V. Vaughan <gary@gnu.org>.
28611
28612 2009-02-25  Eric Blake  <ebb9@byu.net>
28613
28614         tests: skip fseek/ftell tests if ungetc is broken
28615         * m4/ungetc.m4: New file.
28616         * modules/fseek-tests: Split test, so ungetc dependency is
28617         separate from rest of test.
28618         * modules/fseeko-tests: Likewise.
28619         * modules/ftell-tests: Likewise.
28620         * modules/ftello-tests: Likewise.
28621         * tests/test-fseek.c (main): Isolate ungetc dependency.
28622         * tests/test-fseeko.c (main): Likewise.
28623         * tests/test-ftell.c (main): Likewise.
28624         * tests/test-ftello.c (main): Likewise.
28625         * tests/test-fseek2.sh: New file.
28626         * tests/test-fseeko2.sh: Likewise.
28627         * tests/test-ftell2.sh: Likewise.
28628         * tests/test-ftello2.sh: Likewise.
28629
28630 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
28631
28632         test-getaddrinfo: fix usage of skip return code 77
28633         * tests/test-gettaddrinfo.c: Return skip code 77 only
28634         for first occurance of skip (4x77 is not 77)
28635
28636 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
28637
28638         strtod: avoid C99 decl-after-statement
28639         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
28640
28641 2009-02-24  Eric Blake  <ebb9@byu.net>
28642
28643         strtod: detect HP-UX 11.31 bug
28644         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
28645         Reported by Gary V. Vaughan.
28646
28647 2009-02-23  Bruno Haible  <bruno@clisp.org>
28648
28649         Fix invalid read past end of memory block.
28650         * lib/vasnprintf.c (DCHAR_SET): Define.
28651         (local_wcslen): Define only when needed.
28652         (local_strnlen, local_wcsnlen): New functions.
28653         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
28654         directives that involve a conversion ourselves.
28655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
28656         wcsnlen, mbrtowc, wcrtomb.
28657         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
28658         * tests/test-vasprintf-posix.c (test_function): Likewise.
28659         * tests/test-snprintf-posix.h (test_function): Likewise.
28660         * tests/test-sprintf-posix.h (test_function): Likewise.
28661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28662
28663 2009-02-22  Bruno Haible  <bruno@clisp.org>
28664
28665         Implement new clarified decomposition of Hangul syllables.
28666         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
28667         of type LTV, return only a pairwise decomposition.
28668         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
28669         Likewise.
28670         * tests/uninorm/test-decomposition.c (main): Updated expected result.
28671         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
28672         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
28673
28674 2009-02-22  Bruno Haible  <bruno@clisp.org>
28675
28676         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
28677         zero-length results and shrink excess allocated memory.
28678         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
28679         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
28680         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
28681         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
28682         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
28683         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
28684         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
28685         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
28686         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
28687         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
28688         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
28689         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
28690
28691 2009-02-21  Bruno Haible  <bruno@clisp.org>
28692
28693         * doc/gnulib.texi: Include safe-alloc.texi earlier.
28694         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
28695         spaces after a period. Put a space between a macro name and its
28696         argument list. Trivial rewordings.
28697         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
28698         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
28699         (main): Return 0 explicitly.
28700
28701 2009-02-21  Bruno Haible  <bruno@clisp.org>
28702
28703         Tests for module 'uninorm/filter'.
28704         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
28705         * modules/uninorm/filter-tests: New file.
28706
28707         New module 'uninorm/filter'.
28708         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
28709         uninorm_filter_flush, uninorm_filter_free): New declarations.
28710         * lib/uninorm/uninorm-filter.c: New file.
28711         * modules/uninorm/filter: New file.
28712
28713 2009-02-21  Bruno Haible  <bruno@clisp.org>
28714
28715         Tests for module 'uninorm/nfkc'.
28716         * tests/uninorm/test-nfkc.c: New file.
28717         * tests/uninorm/test-u8-nfkc.c: New file.
28718         * tests/uninorm/test-u16-nfkc.c: New file.
28719         * tests/uninorm/test-u32-nfkc.c: New file.
28720         * tests/uninorm/test-u32-nfkc-big.sh: New file.
28721         * tests/uninorm/test-u32-nfkc-big.c: New file.
28722         * modules/uninorm/nfkc-tests: New file.
28723
28724         New module 'uninorm/nfkc'.
28725         * lib/uninorm/nfkc.c: New file.
28726         * modules/uninorm/nfkc: New file.
28727
28728         Tests for module 'uninorm/nfkd'.
28729         * tests/uninorm/test-nfkd.c: New file.
28730         * tests/uninorm/test-u8-nfkd.c: New file.
28731         * tests/uninorm/test-u16-nfkd.c: New file.
28732         * tests/uninorm/test-u32-nfkd.c: New file.
28733         * tests/uninorm/test-u32-nfkd-big.sh: New file.
28734         * tests/uninorm/test-u32-nfkd-big.c: New file.
28735         * modules/uninorm/nfkd-tests: New file.
28736
28737         New module 'uninorm/nfkd'.
28738         * lib/uninorm/nfkd.c: New file.
28739         * modules/uninorm/nfkd: New file.
28740
28741         Tests for module 'uninorm/nfc'.
28742         * tests/uninorm/test-nfc.c: New file.
28743         * tests/uninorm/test-u8-nfc.c: New file.
28744         * tests/uninorm/test-u16-nfc.c: New file.
28745         * tests/uninorm/test-u32-nfc.c: New file.
28746         * tests/uninorm/test-u32-nfc-big.sh: New file.
28747         * tests/uninorm/test-u32-nfc-big.c: New file.
28748         * modules/uninorm/nfc-tests: New file.
28749
28750         New module 'uninorm/nfc'.
28751         * lib/uninorm/nfc.c: New file.
28752         * modules/uninorm/nfc: New file.
28753
28754         Tests for module 'uninorm/nfd'.
28755         * tests/uninorm/test-nfd.c: New file.
28756         * tests/uninorm/test-u8-nfd.c: New file.
28757         * tests/uninorm/test-u16-nfd.c: New file.
28758         * tests/uninorm/test-u32-nfd.c: New file.
28759         * tests/uninorm/test-u32-nfd-big.sh: New file.
28760         * tests/uninorm/test-u32-nfd-big.c: New file.
28761         * tests/uninorm/test-u32-normalize-big.h: New file.
28762         * tests/uninorm/test-u32-normalize-big.c: New file.
28763         * tests/uninorm/NormalizationTest.txt: New file, created from
28764         Unicode 5.1.0 NormalizationTest.txt.
28765         * modules/uninorm/nfd-tests: New file.
28766
28767         New module 'uninorm/nfd'.
28768         * lib/uninorm/nfd.c: New file.
28769         * modules/uninorm/nfd: New file.
28770
28771         New module 'uninorm/u32-normalize'.
28772         * lib/uninorm/u32-normalize.c: New file.
28773         * modules/uninorm/u32-normalize: New file.
28774
28775         New module 'uninorm/u16-normalize'.
28776         * lib/uninorm/u16-normalize.c: New file.
28777         * modules/uninorm/u16-normalize: New file.
28778
28779         New module 'uninorm/u8-normalize'.
28780         * lib/uninorm/u8-normalize.c: New file.
28781         * lib/uninorm/normalize-internal.h: New file.
28782         * lib/uninorm/u-normalize-internal.h: New file.
28783         * modules/uninorm/u8-normalize: New file.
28784
28785         New module 'uninorm/decompose-internal'.
28786         * lib/uninorm/decompose-internal.c: New file.
28787         * modules/uninorm/decompose-internal: New file.
28788
28789         Tests for module 'uninorm/composition'.
28790         * tests/uninorm/test-composition.c: New file.
28791         * modules/uninorm/composition-tests: New file.
28792
28793         New module 'uninorm/composition'.
28794         * lib/uninorm/composition.c: New file.
28795         * lib/uninorm/composition-table.gperf: New file, generated by
28796         gen-uni-tables.
28797         * modules/uninorm/composition: New file.
28798
28799         Tests for module 'uninorm/compat-decomposition'.
28800         * tests/uninorm/test-compat-decomposition.c: New file.
28801         * modules/uninorm/compat-decomposition-tests: New file.
28802
28803         New module 'uninorm/compat-decomposition'.
28804         * lib/uninorm/decompose-internal.h: New file.
28805         * lib/uninorm/compat-decomposition.c: New file.
28806         * modules/uninorm/compat-decomposition: New file.
28807
28808         Tests for module 'uninorm/canonical-decomposition'.
28809         * tests/uninorm/test-canonical-decomposition.c: New file.
28810         * modules/uninorm/canonical-decomposition-tests: New file.
28811
28812         New module 'uninorm/canonical-decomposition'.
28813         * lib/uninorm/canonical-decomposition.c: New file.
28814         * modules/uninorm/canonical-decomposition: New file.
28815
28816         Tests for module 'uninorm/decomposition'.
28817         * tests/uninorm/test-decomposition.c: New file.
28818         * modules/uninorm/decomposition-tests: New file.
28819
28820         New module 'uninorm/decomposition'.
28821         * lib/uninorm/decomposition.c: New file.
28822         * modules/uninorm/decomposition: New file.
28823
28824         New module 'uninorm/decomposition-table'.
28825         * lib/uninorm/decomposition-table.h: New file.
28826         * lib/uninorm/decomposition-table.c: New file.
28827         * lib/uninorm/decomposition-table1.h: New file, generated by
28828         gen-uni-tables.
28829         * lib/uninorm/decomposition-table2.h: New file, generated by
28830         gen-uni-tables.
28831         * modules/uninorm/decomposition-table: New file.
28832
28833         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
28834         (UC_DECOMP_*): New enumeration items.
28835         (get_decomposition): New function.
28836         (struct decomp_table): New type.
28837         (output_decomposition, output_decomposition_tables): New functions.
28838         (unicode_composition_exclusions): New variable.
28839         (fill_composition_exclusions, debug_output_composition_tables): New
28840         functions.
28841         (main): Accept one more argument. Invoke fill_composition_exclusions.
28842         Output decomposition and composition tables.
28843
28844         New module 'uninorm/base'.
28845         * lib/uninorm.h: New file.
28846         * lib/unictype.h: Update comment.
28847         * modules/uninorm/base: New file.
28848
28849 2009-02-21  David Lutterkort  <lutter@redhat.com>
28850
28851         Tests for module 'safe-alloc'.
28852         * tests/test-safe-alloc.c: New file.
28853         * modules/safe-alloc-tests: New file.
28854
28855         New module 'safe-alloc'.
28856         * lib/safe-alloc.h: New file.
28857         * lib/safe-alloc.c: New file.
28858         * m4/safe-alloc.m4: New file.
28859         * modules/safe-alloc: New file.
28860         * doc/safe-alloc.texi: New file.
28861         * doc/gnulib.texi: Include it.
28862         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28863         safe-alloc.
28864
28865 2009-02-18  Bruno Haible  <bruno@clisp.org>
28866
28867         Fix link error on non-glibc systems.
28868         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
28869         variable.
28870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28871
28872 2009-02-18  Jim Meyering  <meyering@redhat.com>
28873
28874         fts: avoid used-uninitialized error due to recent change
28875         * lib/fts.c (fts_read): Guard uses of the new member,
28876         parent->fts_n_dirs_remaining, since it's not relevant for
28877         the parent of a directory specified on the command-line.
28878
28879 2009-02-17  James Youngman  <jay@gnu.org>
28880             Bruno Haible  <bruno@clisp.org>
28881
28882         * m4/include_next.m4: Reformulate comment.
28883
28884 2009-02-16  Jim Meyering  <meyering@redhat.com>
28885
28886         fts: add #if guards so that the fts_lgpl module still builds
28887         * lib/fts.c: Guard just-added hash-table-using parts with
28888         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
28889         Reported by Simon Josefsson.
28890
28891 2009-02-15  Bruno Haible  <bruno@clisp.org>
28892
28893         * modules/array-mergesort-tests: New file.
28894         * tests/test-array-mergesort.c: New file.
28895
28896         New module 'array-mergesort'.
28897         * modules/array-mergesort: New file.
28898         * lib/array-mergesort.h: New file.
28899
28900 2009-02-15  Bruno Haible  <bruno@clisp.org>
28901
28902         Fix 2009-02-07 commit.
28903         * lib/gen-uni-tables.c (output_predicate, output_category,
28904         output_combclass, output_bidi_category, output_decimal_digit,
28905         output_digit, output_numeric, output_mirror, output_scripts,
28906         output_ident_category, output_simple_mapping): Fix format directives.
28907         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
28908
28909 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
28910
28911         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
28912         fixes are available from IBM.
28913
28914 2009-02-13  Jim Meyering  <meyering@redhat.com>
28915
28916         fts: arrange not to stat non-directories in more cases
28917         This makes GNU find (when it doesn't need to stat each file)
28918         *much* more efficient at traversing reiserfs file systems.
28919         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
28920         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
28921         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
28922         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
28923         (leaf_optimization_applies): New function.
28924         (LCO_hash, LCO_compare): New helper functions.
28925         (link_count_optimize_ok): New function.
28926         (fts_stat): Initialize new member (if dir).
28927         (fts_read): Decrement parent's fts_n_dirs_remaining count if
28928         we've just stat'ed a directory.  Skip the stat call when possible.
28929         ---
28930         Note this AFS-related exchange:
28931         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
28932         and note find's pioctl call in find/fstype.c.
28933         But that is necessary only if you want to enable the
28934         optimization for AFS, and for now, I don't.
28935
28936         fts: move a function definition "up" (no semantic change)
28937         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
28938         "up" to precede upcoming use of a related function.
28939
28940 2009-02-11  Jim Meyering  <meyering@redhat.com>
28941
28942         fts: correct internal computation of nlinks (optimization-related)
28943         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
28944         whether the current entry is a directory, so don't test it.
28945
28946 2009-02-10  Bruno Haible  <bruno@clisp.org>
28947
28948         Tests for module 'uniwbrk/ulc-wordbreaks'.
28949         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
28950         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
28951         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
28952
28953         Tests for module 'uniwbrk/u32-wordbreaks'.
28954         * modules/uniwbrk/u32-wordbreaks-tests: New file.
28955         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
28956
28957         Tests for module 'uniwbrk/u16-wordbreaks'.
28958         * modules/uniwbrk/u16-wordbreaks-tests: New file.
28959         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
28960
28961         Tests for module 'uniwbrk/u8-wordbreaks'.
28962         * modules/uniwbrk/u8-wordbreaks-tests: New file.
28963         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
28964
28965 2009-02-10  Bruno Haible  <bruno@clisp.org>
28966
28967         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
28968         property.
28969         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
28970         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
28971         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
28972
28973 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28974
28975         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28976         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28977
28978 2009-02-10  Bruno Haible  <bruno@clisp.org>
28979
28980         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28981         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28982         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28983         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28984         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28985         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28986
28987 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28988
28989         * lib/sockets.h (gl_fd_to_handle): New function.
28990
28991         * tests/test-sockets.c: Call gl_fd_to_handle.
28992
28993 2009-02-09  Bruno Haible  <bruno@clisp.org>
28994
28995         * doc/havelib.texi: Document the conventions on bi-arch systems.
28996
28997 2009-02-08  Bruno Haible  <bruno@clisp.org>
28998
28999         Document the AC_LIB_LINKFLAGS macro.
29000         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29001         * doc/gnulib.texi: Include it.
29002
29003 2009-02-08  Bruno Haible  <bruno@clisp.org>
29004
29005         Fix wrong order of sections, compared to TOC.
29006         * doc/gnulib.texi: Include relocatable-maint.texi after the
29007         "Regular expressions" node, not before.
29008
29009 2009-02-08  Bruno Haible  <bruno@clisp.org>
29010
29011         Tests for module 'unicase/totitle'.
29012         * modules/unicase/totitle-tests: New file.
29013
29014         Tests for module 'unicase/tolower'.
29015         * modules/unicase/tolower-tests: New file.
29016
29017         Tests for module 'unicase/toupper'.
29018         * modules/unicase/toupper-tests: New file.
29019         * tests/unicase/test-mapping-part1.h: New file.
29020         * tests/unicase/test-mapping-part2.h: New file.
29021
29022         New module 'unicase/totitle'.
29023         * modules/unicase/totitle: New file.
29024         * lib/unicase/totitle.c: New file.
29025
29026         New module 'unicase/tolower'.
29027         * modules/unicase/tolower: New file.
29028         * lib/unicase/tolower.c: New file.
29029
29030         New module 'unicase/toupper'.
29031         * modules/unicase/toupper: New file.
29032         * lib/unicase/toupper.c: New file.
29033         * lib/unicase/simple-mapping.h: New file.
29034
29035         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29036         (mapping_table): New structure.
29037         (output_simple_mapping): New function.
29038         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29039         * modules/gen-uni-tables (Description): Update.
29040         * lib/unicase/toupper.h: New file, automatically generated by
29041         gen-uni-tables.
29042         * lib/unicase/tolower.h: New file, automatically generated by
29043         gen-uni-tables.
29044         * lib/unicase/totitle.h: New file, automatically generated by
29045         gen-uni-tables.
29046         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29047         gen-uni-tables.
29048         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29049         gen-uni-tables.
29050         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29051         gen-uni-tables.
29052
29053         New module 'unicase/base'.
29054         * modules/unicase/base: New file.
29055         * lib/unicase.h: New file.
29056
29057 2009-02-08  Bruno Haible  <bruno@clisp.org>
29058
29059         New module 'uniwbrk/ulc-wordbreaks'.
29060         * modules/uniwbrk/ulc-wordbreaks: New file.
29061         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29062
29063         New module 'uniwbrk/u32-wordbreaks'.
29064         * modules/uniwbrk/u32-wordbreaks: New file.
29065         * lib/uniwbrk/u32-wordbreaks.c: New file.
29066
29067         New module 'uniwbrk/u16-wordbreaks'.
29068         * modules/uniwbrk/u16-wordbreaks: New file.
29069         * lib/uniwbrk/u16-wordbreaks.c: New file.
29070
29071         New module 'uniwbrk/u8-wordbreaks'.
29072         * modules/uniwbrk/u8-wordbreaks: New file.
29073         * lib/uniwbrk/u8-wordbreaks.c: New file.
29074         * lib/uniwbrk/u-wordbreaks.h: New file.
29075
29076         New module 'uniwbrk/table'.
29077         * modules/uniwbrk/table: New file.
29078         * lib/uniwbrk/wbrktable.h: New file.
29079         * lib/uniwbrk/wbrktable.c: New file.
29080
29081         New module 'uniwbrk/wordbreak-property'.
29082         * modules/uniwbrk/wordbreak-property: New file.
29083         * lib/uniwbrk/wordbreak-property.c: New file.
29084
29085         * lib/gen-uni-tables.c (WBP_*): New enum items.
29086         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29087         (unicode_org_wbp): New variable.
29088         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29089         New functions.
29090         (wbp_table): New structure.
29091         (output_wbp, output_wbrk_tables): New functions.
29092         (main): Accept additional argument. Invoke fill_org_wbp,
29093         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29094         output_wbrk_tables.
29095         * modules/gen-uni-tables (Description): Update.
29096         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29097         gen-uni-tables.
29098
29099         New module 'uniwbrk/base'.
29100         * modules/uniwbrk/base: New file.
29101         * lib/uniwbrk.h: New file.
29102
29103 2009-02-08  Bruno Haible  <bruno@clisp.org>
29104
29105         Update to Unicode 5.1.0.
29106         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29107         U+2185..U+2188.
29108         (is_property_default_ignorable_code_point): Don't include characters
29109         of category Cc or Cs and not-a-characters.
29110         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29111         U+0D79, U+109E, U+109F, U+A60C.
29112         * lib/unictype/bidi_of.h: Regenerated.
29113         * lib/unictype/blocks.h: Regenerated.
29114         * lib/unictype/categ_C.h: Regenerated.
29115         * lib/unictype/categ_Cf.h: Regenerated.
29116         * lib/unictype/categ_Cn.h: Regenerated.
29117         * lib/unictype/categ_L.h: Regenerated.
29118         * lib/unictype/categ_Ll.h: Regenerated.
29119         * lib/unictype/categ_Lm.h: Regenerated.
29120         * lib/unictype/categ_Lo.h: Regenerated.
29121         * lib/unictype/categ_Lu.h: Regenerated.
29122         * lib/unictype/categ_M.h: Regenerated.
29123         * lib/unictype/categ_Mc.h: Regenerated.
29124         * lib/unictype/categ_Me.h: Regenerated.
29125         * lib/unictype/categ_Mn.h: Regenerated.
29126         * lib/unictype/categ_N.h: Regenerated.
29127         * lib/unictype/categ_Nd.h: Regenerated.
29128         * lib/unictype/categ_Nl.h: Regenerated.
29129         * lib/unictype/categ_No.h: Regenerated.
29130         * lib/unictype/categ_P.h: Regenerated.
29131         * lib/unictype/categ_Pd.h: Regenerated.
29132         * lib/unictype/categ_Pe.h: Regenerated.
29133         * lib/unictype/categ_Pf.h: Regenerated.
29134         * lib/unictype/categ_Pi.h: Regenerated.
29135         * lib/unictype/categ_Po.h: Regenerated.
29136         * lib/unictype/categ_Ps.h: Regenerated.
29137         * lib/unictype/categ_S.h: Regenerated.
29138         * lib/unictype/categ_Sk.h: Regenerated.
29139         * lib/unictype/categ_Sm.h: Regenerated.
29140         * lib/unictype/categ_So.h: Regenerated.
29141         * lib/unictype/categ_of.h: Regenerated.
29142         * lib/unictype/combining.h: Regenerated.
29143         * lib/unictype/ctype_alnum.h: Regenerated.
29144         * lib/unictype/ctype_alpha.h: Regenerated.
29145         * lib/unictype/ctype_graph.h: Regenerated.
29146         * lib/unictype/ctype_lower.h: Regenerated.
29147         * lib/unictype/ctype_print.h: Regenerated.
29148         * lib/unictype/ctype_punct.h: Regenerated.
29149         * lib/unictype/ctype_upper.h: Regenerated.
29150         * lib/unictype/decdigit.h: Regenerated.
29151         * lib/unictype/digit.h: Regenerated.
29152         * lib/unictype/mirror.h: Regenerated.
29153         * lib/unictype/numeric.h: Regenerated.
29154         * lib/unictype/pr_alphabetic.h: Regenerated.
29155         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29156         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29157         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29158         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29159         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29160         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29161         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29162         * lib/unictype/pr_combining.h: Regenerated.
29163         * lib/unictype/pr_dash.h: Regenerated.
29164         * lib/unictype/pr_decimal_digit.h: Regenerated.
29165         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29166         * lib/unictype/pr_deprecated.h: Regenerated.
29167         * lib/unictype/pr_diacritic.h: Regenerated.
29168         * lib/unictype/pr_extender.h: Regenerated.
29169         * lib/unictype/pr_format_control.h: Regenerated.
29170         * lib/unictype/pr_grapheme_base.h: Regenerated.
29171         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29172         * lib/unictype/pr_grapheme_link.h: Regenerated.
29173         * lib/unictype/pr_id_continue.h: Regenerated.
29174         * lib/unictype/pr_id_start.h: Regenerated.
29175         * lib/unictype/pr_ideographic.h: Regenerated.
29176         * lib/unictype/pr_ignorable_control.h: Regenerated.
29177         * lib/unictype/pr_lowercase.h: Regenerated.
29178         * lib/unictype/pr_math.h: Regenerated.
29179         * lib/unictype/pr_numeric.h: Regenerated.
29180         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29181         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29182         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29183         * lib/unictype/pr_other_id_continue.h: Regenerated.
29184         * lib/unictype/pr_other_lowercase.h: Regenerated.
29185         * lib/unictype/pr_other_math.h: Regenerated.
29186         * lib/unictype/pr_punctuation.h: Regenerated.
29187         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29188         * lib/unictype/pr_soft_dotted.h: Regenerated.
29189         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29190         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29191         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29192         * lib/unictype/pr_uppercase.h: Regenerated.
29193         * lib/unictype/pr_xid_continue.h: Regenerated.
29194         * lib/unictype/pr_xid_start.h: Regenerated.
29195         * lib/unictype/pr_zero_width.h: Regenerated.
29196         * lib/unictype/scripts.h: Regenerated.
29197         * lib/unictype/scripts_byname.gperf: Regenerated.
29198         * lib/unictype/sy_java_ident.h: Regenerated.
29199         * lib/unilbrk/lbrkprop1.h: Regenerated.
29200         * lib/unilbrk/lbrkprop2.h: Regenerated.
29201         * tests/unictype/test-categ_C.c: Regenerated.
29202         * tests/unictype/test-categ_Cf.c: Regenerated.
29203         * tests/unictype/test-categ_Cn.c: Regenerated.
29204         * tests/unictype/test-categ_L.c: Regenerated.
29205         * tests/unictype/test-categ_Ll.c: Regenerated.
29206         * tests/unictype/test-categ_Lm.c: Regenerated.
29207         * tests/unictype/test-categ_Lo.c: Regenerated.
29208         * tests/unictype/test-categ_Lu.c: Regenerated.
29209         * tests/unictype/test-categ_M.c: Regenerated.
29210         * tests/unictype/test-categ_Mc.c: Regenerated.
29211         * tests/unictype/test-categ_Me.c: Regenerated.
29212         * tests/unictype/test-categ_Mn.c: Regenerated.
29213         * tests/unictype/test-categ_N.c: Regenerated.
29214         * tests/unictype/test-categ_Nd.c: Regenerated.
29215         * tests/unictype/test-categ_Nl.c: Regenerated.
29216         * tests/unictype/test-categ_No.c: Regenerated.
29217         * tests/unictype/test-categ_P.c: Regenerated.
29218         * tests/unictype/test-categ_Pd.c: Regenerated.
29219         * tests/unictype/test-categ_Pe.c: Regenerated.
29220         * tests/unictype/test-categ_Pf.c: Regenerated.
29221         * tests/unictype/test-categ_Pi.c: Regenerated.
29222         * tests/unictype/test-categ_Po.c: Regenerated.
29223         * tests/unictype/test-categ_Ps.c: Regenerated.
29224         * tests/unictype/test-categ_S.c: Regenerated.
29225         * tests/unictype/test-categ_Sk.c: Regenerated.
29226         * tests/unictype/test-categ_Sm.c: Regenerated.
29227         * tests/unictype/test-categ_So.c: Regenerated.
29228         * tests/unictype/test-ctype_alnum.c: Regenerated.
29229         * tests/unictype/test-ctype_alpha.c: Regenerated.
29230         * tests/unictype/test-ctype_graph.c: Regenerated.
29231         * tests/unictype/test-ctype_lower.c: Regenerated.
29232         * tests/unictype/test-ctype_print.c: Regenerated.
29233         * tests/unictype/test-ctype_punct.c: Regenerated.
29234         * tests/unictype/test-ctype_upper.c: Regenerated.
29235         * tests/unictype/test-decdigit.h: Regenerated.
29236         * tests/unictype/test-digit.h: Regenerated.
29237         * tests/unictype/test-numeric.h: Regenerated.
29238         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29239         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29240         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
29241         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
29242         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
29243         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
29244         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
29245         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
29246         * tests/unictype/test-pr_combining.c: Regenerated.
29247         * tests/unictype/test-pr_dash.c: Regenerated.
29248         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
29249         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
29250         * tests/unictype/test-pr_deprecated.c: Regenerated.
29251         * tests/unictype/test-pr_diacritic.c: Regenerated.
29252         * tests/unictype/test-pr_extender.c: Regenerated.
29253         * tests/unictype/test-pr_format_control.c: Regenerated.
29254         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
29255         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
29256         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
29257         * tests/unictype/test-pr_id_continue.c: Regenerated.
29258         * tests/unictype/test-pr_id_start.c: Regenerated.
29259         * tests/unictype/test-pr_ideographic.c: Regenerated.
29260         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
29261         * tests/unictype/test-pr_lowercase.c: Regenerated.
29262         * tests/unictype/test-pr_math.c: Regenerated.
29263         * tests/unictype/test-pr_numeric.c: Regenerated.
29264         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
29265         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
29266         Regenerated.
29267         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
29268         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
29269         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
29270         * tests/unictype/test-pr_other_math.c: Regenerated.
29271         * tests/unictype/test-pr_punctuation.c: Regenerated.
29272         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
29273         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
29274         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
29275         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
29276         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
29277         * tests/unictype/test-pr_uppercase.c: Regenerated.
29278         * tests/unictype/test-pr_xid_continue.c: Regenerated.
29279         * tests/unictype/test-pr_xid_start.c: Regenerated.
29280         * tests/unictype/test-pr_zero_width.c: Regenerated.
29281
29282         Update to Unicode 5.1.0.
29283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
29284         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
29285         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
29286         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
29287         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
29288         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
29289         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
29290         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
29291         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
29292         (nonspacing_table_ind): Update.
29293         * tests/uniwidth/test-uc_width2.sh: Update expected result.
29294
29295         Update to Unicode 5.1.0.
29296         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
29297         code transform.
29298         * lib/uniname/uniname.c (unicode_character_name,
29299         unicode_name_character): Add the range 0x1Fxxx to the code transform.
29300         * lib/uniname/uninames.h: Regenerated.
29301         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
29302
29303 2009-02-07  Bruno Haible  <bruno@clisp.org>
29304
29305         Merge gen-ctype and gen-lbrk into a single program.
29306         * lib/gen-uni-tables.c: New file, incorporating
29307         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
29308         Add directory prefixes to the names of the generated files.
29309         * lib/unictype/gen-ctype.c: Remove file.
29310         * lib/unilbrk/gen-lbrk.c: Remove file.
29311         * modules/gen-uni-tables: New file.
29312         * modules/unictype/gen-ctype: Remove file.
29313         * modules/unilbrk/gen-lbrk: Remove file.
29314
29315 2009-02-07  Bruno Haible  <bruno@clisp.org>
29316
29317         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
29318
29319         New module 'unistr/u32-strcoll'.
29320         * modules/unistr/u32-strcoll: New file.
29321         * lib/unistr/u32-strcoll.c: New file.
29322
29323         New module 'unistr/u16-strcoll'.
29324         * modules/unistr/u16-strcoll: New file.
29325         * lib/unistr/u16-strcoll.c: New file.
29326
29327         New module 'unistr/u8-strcoll'.
29328         * modules/unistr/u8-strcoll: New file.
29329         * lib/unistr/u8-strcoll.c: New file.
29330         * lib/unistr/u-strcoll.h: New file.
29331
29332 2009-02-07  Bruno Haible  <bruno@clisp.org>
29333
29334         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
29335         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29336         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
29337         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
29338         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
29339         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
29340
29341 2009-02-07  Bruno Haible  <bruno@clisp.org>
29342
29343         Make 64-bit clean.
29344         * lib/unictype/gen-ctype.c (output_predicate, output_category,
29345         output_combclass, output_bidi_category, output_decimal_digit,
29346         output_digit, output_numeric, output_mirror, output_scripts,
29347         output_ident_category): Use proper width specifier in format strings.
29348
29349 2009-02-07  Bruno Haible  <bruno@clisp.org>
29350
29351         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
29352         failure behaviour.
29353
29354 2009-02-07  Jim Meyering  <meyering@redhat.com>
29355
29356         regex: avoid compilation failure with upcoming gcc-4.4
29357         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
29358         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
29359         "... error: integer overflow in preprocessor expression".
29360
29361 2009-02-05  Ben Pfaff  <blp@gnu.org>
29362
29363         Fix link errors on Windows when close module is used.
29364         * modules/close: Add $(LIB_CLOSE) to Link section.
29365         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
29366         $(LIB_CLOSE) on Windows.
29367
29368 2009-02-05  Jim Meyering  <meyering@redhat.com>
29369
29370         still avoid unused-parameter warnings, but do it cleanly
29371         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
29372         (get_fs_usage): Cast to void instead.
29373         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
29374         (dev_from_mount_options, read_file_system_list): Cast to void.
29375         Prompted by Bruno Haible.
29376
29377 2009-02-04  Jim Meyering  <meyering@redhat.com>
29378
29379         fsusage.c: correct copyright year
29380         * lib/fsusage.c: Reflect year in which the change is pushed into
29381
29382         avoid misc. warnings
29383         * lib/fsusage.c (UNUSED_PARAM): Define.
29384         (get_fs_usage): Mark parameter "disk" as unused.
29385         * lib/getugroups.c (getgrent): Use "void" in prototype.
29386         * lib/mountlist.c: Mark unused parameters.
29387         (read_file_system_list): Declare a local with "const".
29388         * lib/nanosleep.c (getnow): Declare static.
29389         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
29390
29391         dirfd: set errno upon failure
29392         * lib/dirfd.c: Include <errno.h>.
29393         Set errno to ENOTSUP when returning -1.
29394         * modules/dirfd (Depends-on): Add errno.
29395         Suggested by John Kodis <kodis@comcast.net>.
29396
29397 2009-02-01  Bruno Haible  <bruno@clisp.org>
29398
29399         Don't assume sizeof (long) >= sizeof (void *).
29400         * lib/memcmp.c: Include stdint.h.
29401         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
29402         srcp2 to 'const byte *'.
29403         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
29404         types to uintptr_t.
29405         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
29406         * modules/memcmp (Depends-on): Add stdint.
29407         Reported by Ozkan Sezer <sezeroz@gmail.com>.
29408
29409 2009-01-30  Eric Blake  <ebb9@byu.net>
29410
29411         fix more require-before-expand issues
29412         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
29413         expand, AC_PROG_AWK.
29414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
29415
29416 2009-01-28  Eric Blake  <ebb9@byu.net>
29417
29418         version-etc: use consistent URL formatting
29419         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
29420         Improve formatting.  Use fputs for string without %.
29421
29422 2009-01-28  Jim Meyering  <meyering@redhat.com>
29423
29424         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
29425         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
29426         "underquoted definition of NAME" from autoconf-2.59.
29427
29428 2009-01-28  Bruno Haible  <bruno@clisp.org>
29429
29430         * doc/gnulib.texi: Add "Obsolete modules" to index.
29431
29432 2009-01-28  Jim Meyering  <meyering@redhat.com>
29433
29434         useless-if-before-free: recognize more variants
29435         * build-aux/useless-if-before-free: Also recognize e.g.,
29436         if (NULL != p) free (p);
29437
29438 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
29439
29440         test-getaddrinfo: skip (don't fail) this test when there's no network
29441         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
29442         on the presumption that it means you lack network access.
29443
29444 2009-01-26  Jim Meyering  <meyering@redhat.com>
29445
29446         fflush: avoid warnings on modern systems
29447         * lib/fflush.c (rpl_fflush): Move declarations of locals,
29448         pos and result, into scopes where they're used.
29449
29450 2009-01-26  Eric Blake  <ebb9@byu.net>
29451
29452         Silence warning reintroduced by recent extensions patch.
29453         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
29454         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
29455         autoconf.
29456
29457         Backport improved autoconf semantics of AC_DEFUN_ONCE.
29458         * m4/00gnulib.m4: New file.
29459         * gnulib-tool (func_get_filelist): Always use it.
29460         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
29461         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
29462
29463 2009-01-25  Bruno Haible  <bruno@clisp.org>
29464
29465         Make test-quotearg work on MacOS X and AIX.
29466         * tests/test-quotearg.sh: New file.
29467         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
29468         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
29469         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
29470         include <libintl.h>.
29471         (fake_locale): Remove variable.
29472         (gettext, dgettext, dcgettext): Remove functions.
29473         (main): Instead of setting a fake locale, set a real locale. Call
29474         textdomain and bindtextdomain.
29475         * modules/quotearg-tests (Files): Add the new files.
29476         (Depends-on): Add gettext, setenv, unsetenv.
29477         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29478         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
29479         Augment TESTS_ENVIRONMENT.
29480
29481 2009-01-25  Bruno Haible  <bruno@clisp.org>
29482
29483         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
29484         fr_FR.ISO8859-1 locale on MacOS X.
29485         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
29486         ja_JP.eucJP locale on MacOS X.
29487         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
29488         zh_CN.GB18030 locale on MacOS X.
29489
29490 2009-01-25  Bruno Haible  <bruno@clisp.org>
29491
29492         Avoid link errors on MacOS X 10.3.
29493         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
29494         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29495
29496 2009-01-25  Bruno Haible  <bruno@clisp.org>
29497
29498         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29499         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
29500         * modules/pipe (Files): Remove m4/posix_spawn.m4.
29501         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29502         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
29503         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29504         posix_spawnattr_init, posix_spawnattr_setsigmask,
29505         posix_spawnattr_setflags, posix_spawnattr_destroy.
29506
29507         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
29508         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
29509         * modules/execute (Files): Remove m4/posix_spawn.m4.
29510         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
29511         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
29512         posix_spawnattr_init, posix_spawnattr_setsigmask,
29513         posix_spawnattr_setflags, posix_spawnattr_destroy.
29514
29515 2009-01-25  Bruno Haible  <bruno@clisp.org>
29516
29517         * lib/glthread/threadlib.c: Include <stdlib.h>.
29518
29519 2009-01-25  Bruno Haible  <bruno@clisp.org>
29520
29521         * lib/glthread/threadlib.c (dummy): New declaration.
29522
29523 2009-01-25  Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
29526         multibyte characters also for the GB18030 encoding. Don't crash when
29527         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
29528
29529 2009-01-25  Bruno Haible  <bruno@clisp.org>
29530
29531         Avoid redefining 'struct random_data' on OSF/1 5.1.
29532         * lib/stdlib.in.h: Include <random.h> if it exists.
29533         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
29534         HAVE_RANDOM_H. Include <random.h> when testing whether
29535         'struct random_data' exists.
29536         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
29537
29538 2009-01-25  Bruno Haible  <bruno@clisp.org>
29539
29540         Don't install charset.alias on MacOS X >= 10.3.
29541         * lib/localcharset.c (DARWIN7): New macro.
29542         (get_charset_aliases): Hardcode the result for Darwin7.
29543         * modules/localcharset (install-exec-local): Don't install
29544         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
29545
29546 2009-01-25  Bruno Haible  <bruno@clisp.org>
29547
29548         Don't install charset.alias on mingw and Cygwin.
29549         * modules/localcharset (install-exec-local): Don't install
29550         charset.alias on mingw and Cygwin, if the file does not yet exist.
29551         The result for these platforms is hardcoded in localcharset.c.
29552
29553 2009-01-25  Bruno Haible  <bruno@clisp.org>
29554
29555         Make it possible again to use AC_GNU_SOURCE together with gnulib.
29556         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
29557         before requiring AC_USE_SYSTEM_EXTENSIONS.
29558
29559 2009-01-25  Jim Meyering  <meyering@redhat.com>
29560
29561         c-strtod: avoid warnings
29562         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
29563         "assignment discards qualifiers from pointer target type" warnings.
29564
29565 2009-01-24  Bruno Haible  <bruno@clisp.org>
29566
29567         Add support for non-UTF-8 locales on MacOS X.
29568         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
29569         canonical encodings. For Darwin 7 and newer, don't map traditional
29570         encodings to UTF-8.
29571         Reported by Vincent Lefevre <vincent@vinc17.org>
29572         at <http://savannah.gnu.org/bugs/?25235>.
29573
29574 2009-01-24  Bruno Haible  <bruno@clisp.org>
29575
29576         * doc/gnulib.texi (Obsolete modules): New section.
29577         Reported by Mike Frysinger <vapier@gentoo.org>.
29578
29579 2009-01-24  Bruno Haible  <bruno@clisp.org>
29580
29581         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
29582         (%.dvi): New rule.
29583
29584 2009-01-24  Bruno Haible  <bruno@clisp.org>
29585
29586         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
29587         Reported by Eric Blake.
29588
29589 2009-01-24  Bruno Haible  <bruno@clisp.org>
29590
29591         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
29592         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
29593         Reported by Gary V. Vaughan <gary@gnu.org>.
29594
29595 2009-01-24  Bruno Haible  <bruno@clisp.org>
29596
29597         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
29598
29599 2009-01-23  Bruno Haible  <bruno@clisp.org>
29600
29601         Make c-strtod, c-strtold usable in libraries.
29602         * lib/c-strtod.c: Include string.h instead of xalloc.h.
29603         (C_STRTOD): Call strdup instead of xstrdup.
29604         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
29605         * modules/c-strtold (Depends-on): Likewise.
29606         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
29607         * NEWS: Mention the change.
29608         Reported by Michael Gold <mgold@ncf.ca>.
29609
29610 2009-01-23  Jim Meyering  <meyering@redhat.com>
29611
29612         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
29613         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
29614         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
29615
29616 2009-01-23  Simon Josefsson  <simon@josefsson.org>
29617
29618         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
29619         GNU CoreUtils.
29620         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
29621         * modules/version-etc (Description): Update.
29622
29623 2009-01-22  Bruno Haible  <bruno@clisp.org>
29624
29625         Cache the C locale object.
29626         * lib/c-strtod.c (c_locale_cache): New variable.
29627         (c_locale): New function.
29628         (C_STRTOD): Use it, and don't call freelocale.
29629         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
29630         Suggested by Paolo Bonzini.
29631
29632 2009-01-21  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
29635         conditions other than overflow.
29636
29637 2009-01-21  Bruno Haible  <bruno@clisp.org>
29638
29639         * lib/c-strtod.c: Include errno.h.
29640         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
29641         value from STRTOD_L and STRTOD.
29642
29643 2009-01-21  Bruno Haible  <bruno@clisp.org>
29644         and Jim Meyering  <meyering@redhat.com>
29645
29646         nanosleep: skip configure test (fail it) for apple universal builds
29647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
29648         universal builds, assume that nanosleep does not work.
29649         * modules/nanosleep (Depends-on): Add multiarch.
29650
29651         mktime: skip configure test (fail it) for apple universal builds
29652         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
29653         universal builds, assume that mktime does not work.
29654         * modules/mktime (Depends-on): Add multiarch.
29655
29656 2009-01-21  Eric Blake  <ebb9@byu.net>
29657
29658         multiarch: avoid expand-before-require warning
29659         * modules/multiarch (configure.ac): Require, rather than expand,
29660         gl_MULTIARCH.
29661         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
29662         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
29663         enforce that all clients require it.  Partial reversion of
29664         2008-12-29 patch.
29665
29666         error: avoid expand-before-require warning
29667         * modules/errno (configure.ac): Require, rather than expand,
29668         gl_HEADER_ERRNO_H.
29669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
29670         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
29671         enforce that all clients require it.
29672
29673         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
29674         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
29675         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
29676         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
29677
29678 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
29679
29680         Revert:
29681         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29682
29683         regex: do not depend on obsolete modules.
29684         * modules/regex: Remove memcmp and memmove.
29685
29686 2009-01-20  Bruno Haible  <bruno@clisp.org>
29687
29688         Make the 'link' module link on Windows NT 4.
29689         * lib/link.c (_WIN32_WINNT): Don't define.
29690         (CreateHardLinkFuncType): New type.
29691         (CreateHardLinkFunc, initialized): New variables.
29692         (initialize): New function.
29693         (link): Invoke CreateHardLink indirectly through the function pointer.
29694
29695 2009-01-20  Bruno Haible  <bruno@clisp.org>
29696
29697         Fix compilation failure on mingw.
29698         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
29699
29700 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
29701
29702         * doc/c-strtod.texi: Mention a couple of restrictions.
29703
29704 2009-01-20  Jim Meyering  <meyering@redhat.com>
29705
29706         gettimeofday: move more declarations out of functions
29707         * lib/gettimeofday.c: Move extern declarations of tzset and
29708         gmtime out of containing functions.  Prompted by Bruno Haible.
29709
29710 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29711
29712         regex: do not depend on obsolete modules.
29713         * modules/regex: Remove memcmp and memmove.
29714
29715 2009-01-19  Bruno Haible  <bruno@clisp.org>
29716
29717         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29718         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
29719         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29720         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
29721         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
29722
29723 2009-01-19  Bruno Haible  <bruno@clisp.org>
29724
29725         * tests/test-link.c: Include <errno.h>.
29726         (main): Exit with code 77 when a hard link cannot be created due to
29727         the file system.
29728         * tests/test-link.sh: Skip test when a hard link cannot be created due
29729         to the file system.
29730         Suggested by Eric Blake.
29731
29732 2009-01-19  Martin Lambers  <marlam@marlam.de>
29733
29734         * modules/link-tests: New file.
29735         * tests/test-link.sh: New file.
29736         * tests/test-link.c: New file.
29737
29738 2009-01-19  Eric Blake  <ebb9@byu.net>
29739
29740         doc: mention another function added in cygwin 1.7.0
29741         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
29742         Another new function in cygwin 1.7.
29743
29744 2009-01-19  Bruno Haible  <bruno@clisp.org>
29745
29746         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
29747         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
29748         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
29749         gl_BIGENDIAN, not AC_C_BIGENDIAN.
29750         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29751         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29753         * m4/md4.m4 (gl_MD4): Likewise.
29754         * m4/md5.m4 (gl_MD5): Likewise.
29755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
29756         * m4/sha1.m4 (gl_SHA1): Likewise.
29757         * m4/sha256.m4 (gl_SHA256): Likewise.
29758         * m4/sha512.m4 (gl_SHA512): Likewise.
29759
29760 2009-01-19  Bruno Haible  <bruno@clisp.org>
29761
29762         * modules/uniname/uniname-tests (Depends-on): Add progname.
29763         * tests/uniname/test-uninames.c: Include progname.h.
29764         (main): Call set_program_name.
29765
29766         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
29767         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
29768         (main): Call set_program_name.
29769
29770         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
29771         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
29772         (main): Call set_program_name.
29773
29774         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
29775         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
29776         (main): Call set_program_name.
29777
29778         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
29779         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
29780         (main): Call set_program_name.
29781
29782         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
29783         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
29784         (main): Call set_program_name.
29785
29786         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
29787         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
29788         (main): Call set_program_name.
29789
29790         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
29791         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
29792         (main): Call set_program_name.
29793
29794         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
29795         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
29796         (main): Call set_program_name.
29797
29798 2009-01-19  Eric Blake  <ebb9@byu.net>
29799
29800         test-unistd: test previous patch
29801         * tests/test-unistd.c: Test *_FILENO macros.
29802
29803         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
29804         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29805         Guarantee a definition.
29806         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
29807         * modules/unistd-safer (Depends-on): Add dependency on unistd.
29808         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
29809         * lib/dup-safer.c (STDERR_FILENO): Likewise.
29810         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29811         Likewise.
29812         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
29813         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
29814         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
29815         Likewise.
29816         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
29817         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
29818         (STDERR_FILENO): Likewise.
29819         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
29820         (STDERR_FILENO): Likewise.
29821         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
29822         (STDERR_FILENO): Likewise.
29823         Reported by Elbert Pol.
29824
29825 2009-01-19  Eric Blake  <ebb9@byu.net>
29826
29827         doc: mention more functions added in cygwin 1.7.0
29828         * doc/posix-functions/abort.texi (abort): Update wording related
29829         to cygwin.
29830         * doc/posix-functions/daylight.texi (daylight): Likewise.
29831         * doc/posix-functions/optarg.texi (optarg): Likewise.
29832         * doc/posix-functions/optarg.texi (opterr): Likewise.
29833         * doc/posix-functions/optarg.texi (optind): Likewise.
29834         * doc/posix-functions/optarg.texi (optopt): Likewise.
29835         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
29836         worked in 1.5.x, and was withdrawn in 1.7.
29837         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
29838         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
29839         cygwin versions.
29840         * doc/posix-functions/perror.texi (perror): Likewise.
29841         * doc/posix-functions/printf.texi (printf): Likewise.
29842         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
29843         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
29844         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
29845         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
29846         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29847         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
29848         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29849         Likewise.
29850         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29851         Likewise.
29852         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
29853         this function.
29854         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
29855         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
29856         Likewise.
29857         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
29858         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
29859         * doc/posix-functions/confstr.texi (confstr): Likewise.
29860         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
29861         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
29862         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
29863         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
29864         * doc/posix-functions/fputws.texi (fputws): Likewise.
29865         * doc/posix-functions/fwide.texi (fwide): Likewise.
29866         * doc/posix-functions/getwc.texi (getwc): Likewise.
29867         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
29868         * doc/posix-functions/putwc.texi (putwc): Likewise.
29869         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
29870         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
29871         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
29872         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
29873         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
29874         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
29875         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
29876         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
29877         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
29878         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
29879         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
29880
29881 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29882
29883         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
29884         * lib/ioctl.c: Include <sys/ioctl.h>.
29885
29886 2009-01-19  Simon Josefsson  <simon@josefsson.org>
29887
29888         * modules/getdate-tests (Depends-on): Add progname.
29889         * tests/test-getdate.c: Use progname module, to avoid link errors
29890         on non-glibc systems.
29891
29892 2009-01-18  Simon Josefsson  <simon@josefsson.org>
29893
29894         * modules/filenamecat-tests (Depends-on): Add progname.
29895         * modules/fstrcmp-tests (Depends-on): Likewise.
29896
29897         * tests/test-filenamecat.c: Use progname module, to avoid link
29898         errors on non-glibc systems.
29899         * tests/test-fstrcmp.c: Likewise.
29900
29901 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
29902
29903         gettimeofday: avoid warning: nested extern declaration of 'localtime'
29904         * lib/gettimeofday.c: Move extern declaration out of function.
29905
29906 2009-01-18  Bruno Haible  <bruno@clisp.org>
29907
29908         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
29909         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
29910         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
29911
29912 2009-01-18  Bruno Haible  <bruno@clisp.org>
29913
29914         * lib/strftime.c (MEMPCPY): Remove unused macro.
29915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
29916
29917 2009-01-18  Martin Lambers  <marlam@marlam.de>
29918
29919         New module 'link'.
29920         * lib/unistd.in.h (link): New declaration.
29921         * lib/link.c: New file.
29922         * m4/link.m4: New file.
29923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
29924         HAVE_LINK.
29925         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
29926         * modules/link: New file.
29927         * doc/posix-functions/link.texi: Mention the new module.
29928
29929 2009-01-18  Bruno Haible  <bruno@clisp.org>
29930
29931         * tests/test-avltree_list.c (main): Call set_program_name.
29932         * tests/test-avltree_oset.c (main): Likewise.
29933         * tests/test-obstack-printf.c: Include progname.h.
29934         (main): Call set_program_name.
29935         * tests/test-quotearg.c: Include progname.h.
29936         (main): Call set_program_name.
29937         * tests/test-xmemdup0.c: Include progname.h.
29938         (main): Call set_program_name.
29939
29940 2009-01-18  Bruno Haible  <bruno@clisp.org>
29941
29942         New module 'alphasort'.
29943         * lib/dirent.in.h (alphasort): New declaration.
29944         * lib/alphasort.c: New file, from glibc with modifications.
29945         * m4/alphasort.m4: New file.
29946         * modules/alphasort: New file.
29947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
29948         HAVE_ALPHASORT.
29949         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
29950         HAVE_ALPHASORT.
29951         * doc/posix-functions/alphasort.texi: Mention the new module and the
29952         portability problems.
29953
29954 2009-01-18  Bruno Haible  <bruno@clisp.org>
29955
29956         New module 'scandir'.
29957         * lib/dirent.in.h (scandir): New declaration.
29958         * lib/scandir.c: New file, from glibc with modifications.
29959         * m4/scandir.m4: New file.
29960         * modules/scandir: New file.
29961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
29962         HAVE_SCANDIR.
29963         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
29964         HAVE_SCANDIR.
29965         * doc/posix-functions/scandir.texi: Mention the new module and the
29966         portability problems.
29967
29968 2009-01-17  Bruno Haible  <bruno@clisp.org>
29969
29970         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
29971         Update documentation.
29972         (func_remove_suffix): Escape all dots in the suffix. Update
29973         documentation.
29974         (func_filter_filelist): Update documentation.
29975         Reported by Ralf Wildenhues.
29976
29977 2009-01-17  Bruno Haible  <bruno@clisp.org>
29978
29979         * modules/dprintf-posix-tests: New file.
29980         * tests/test-dprintf-posix.sh: New file.
29981         * tests/test-dprintf-posix.c: New file.
29982
29983         New modules 'dprintf', 'dprintf-posix'.
29984         * lib/stdio.in.h (dprintf): New declaration.
29985         * lib/dprintf.c: New file.
29986         * m4/dprintf.m4: New file.
29987         * m4/dprintf-posix.m4: New file.
29988         * modules/dprintf: New file.
29989         * modules/dprintf-posix: New file.
29990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29991         HAVE_DPRINTF, REPLACE_DPRINTF.
29992         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29993         HAVE_DPRINTF, REPLACE_DPRINTF.
29994         * doc/posix-functions/dprintf.texi: Mention the new modules.
29995
29996 2009-01-17  Bruno Haible  <bruno@clisp.org>
29997
29998         * modules/vdprintf-posix-tests: New file.
29999         * tests/test-vdprintf-posix.sh: New file.
30000         * tests/test-vdprintf-posix.c: New file.
30001
30002         New modules 'vdprintf', 'vdprintf-posix'.
30003         * lib/stdio.in.h (vdprintf): New declaration.
30004         * lib/vdprintf.c: New file.
30005         * m4/vdprintf.m4: New file.
30006         * m4/vdprintf-posix.m4: New file.
30007         * modules/vdprintf: New file.
30008         * modules/vdprintf-posix: New file.
30009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30010         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30011         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30012         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30013         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30014
30015 2009-01-17  Bruno Haible  <bruno@clisp.org>
30016
30017         Fix replacement of fopen on mingw.
30018         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30019         mingw.
30020
30021 2009-01-17  Bruno Haible  <bruno@clisp.org>
30022
30023         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30024         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30025
30026 2009-01-17  Bruno Haible  <bruno@clisp.org>
30027
30028         Avoid test-fflush2.sh failure on mingw.
30029         * tests/test-fflush2.c: Include binary-io.h.
30030         (main): Put standard input into binary mode.
30031         * modules/fflush-tests (Depends-on): Add binary-io.
30032
30033 2009-01-17  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/wchar.in.h: In another particular situation, include only the
30036         system's <wchar.h> file.
30037         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30038         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30039         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30040
30041 2009-01-17  Bruno Haible  <bruno@clisp.org>
30042
30043         Support for stripping executables in --enable-relocatable.
30044         * build-aux/install-reloc: Expect one more argument, or an environment
30045         variable RELOC_STRIP_PROG. If set, strip the destination program and
30046         its wrapper.
30047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30048         RELOC_STRIP_PROG.
30049         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30050         to set RELOCATABLE_STRIP.
30051         * NEWS: Mention the new Makefile requirement.
30052
30053 2009-01-17  Bruno Haible  <bruno@clisp.org>
30054
30055         * build-aux/install-reloc: Remove debugging information left over by
30056         C compiler on MacOS X.
30057
30058 2009-01-17  Bruno Haible  <bruno@clisp.org>
30059
30060         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30061         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30062         _NSGetExecutablePath.
30063
30064 2009-01-16  Jim Meyering  <meyering@redhat.com>
30065
30066         strerror: avoid warnings about discarding "const"
30067         * lib/strerror.c (rpl_strerror): Instead of returning a const
30068         string from each and every "case", use a variable, and add a single
30069         cast after the switch.
30070
30071 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30072
30073         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30074
30075 2009-01-16  Bruno Haible  <bruno@clisp.org>
30076
30077         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30078         array initializer syntax that also works in C++ mode.
30079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30080
30081 2009-01-16  Jim Meyering  <meyering@redhat.com>
30082
30083         poll: suppress a warning
30084         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30085         to ignore "...unsigned expression < 0 is always false" warnings.
30086
30087 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30088
30089         poll: remove declarations of unused variables
30090         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30091         sockbuf and optlen.
30092
30093 2009-01-15  Bruno Haible  <bruno@clisp.org>
30094
30095         Make fflush-after-ungetc POSIX compliant on BSD systems.
30096         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30097         (clear_ungetc_buffer): Implement also for other systems.
30098         (rpl_fflush): On glibc systems, invoke
30099         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30100         clear_ungetc_buffer after fetching the stream's position, not before.
30101
30102 2009-01-15  Bruno Haible  <bruno@clisp.org>
30103
30104         Make fflush-after-ungetc POSIX compliant on glibc systems.
30105         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30106         after ungetc.
30107         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30108         (rpl_fflush): On glibc systems, simply call the system's fflush
30109         function after clearing the ungetc buffer.
30110         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30111         Instead, lseek only to the end of file, then use the system's fseeko
30112         for the rest. On glibc systems, reset the EOF indicator bit.
30113
30114 2009-01-15  Jim Meyering  <meyering@redhat.com>
30115
30116         openmp.m4: revert quote-adding change, for portability to older autoconf
30117         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30118         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30119         Simon Josefsson noticed the problem when using autoconf-2.61.
30120
30121 2009-01-15  Bruno Haible  <bruno@clisp.org>
30122
30123         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30124         * tests/test-fflush2.c (ASSERT): Always fail.
30125         (main): Add two tests for fflush() after ungetc(), taking into account
30126         the Austin Group's clarification.
30127         Suggested by Eric Blake.
30128
30129 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30130
30131         mktime.m4: remove K&R-style function prototypes
30132         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30133         for the Sun C++ compiler.
30134
30135 2009-01-14  Bruno Haible  <bruno@clisp.org>
30136
30137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30138         while including <wchar.h>.
30139         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30140         the system's <wchar.h> file.
30141         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30142
30143 2009-01-14  Bruno Haible  <bruno@clisp.org>
30144
30145         * m4/csharp.m4: Don't mention gettext on the serial number line.
30146         * m4/csharpexec.m4: Likewise.
30147         * m4/eaccess.m4: Likewise.
30148         * m4/javaexec.m4: Likewise.
30149         * m4/sig_atomic_t.m4: Likewise.
30150         * m4/tmpdir.m4: Likewise.
30151         * m4/intldir.m4: Bump gettext version.
30152         * m4/lib-ld.m4: Likewise.
30153
30154 2009-01-14  Bruno Haible  <bruno@clisp.org>
30155
30156         * lib/progname.c (set_program_name): Add more comments.
30157         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30158
30159 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30160
30161         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30162         were sys/stat.h does not define it.
30163
30164 2009-01-14  Jim Meyering  <meyering@redhat.com>
30165
30166         many *.m4 files: improve m4 quoting
30167         99% of this change was performed by running the following commands:
30168         git ls-files | grep '\.m4$' | xargs perl -pi \
30169           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30170           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30171           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30172           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30173         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30174         The remainder were to add Copyright dates, increment serial numbers,
30175         undo some changes in comments, exclude m4/intl.m4, and add quotes
30176         around the "1" in ",1" where the unusual spacing prohibited the
30177         above regexps from doing the job.  For more details, see
30178         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30179         * m4/acl.m4: Modified.
30180         * m4/afs.m4: Likewise.
30181         * m4/alloca.m4: Likewise.
30182         * m4/argp.m4: Likewise.
30183         * m4/argz.m4: Likewise.
30184         * m4/atexit.m4: Likewise.
30185         * m4/bison-i18n.m4: Likewise.
30186         * m4/bison.m4: Likewise.
30187         * m4/byteswap.m4: Likewise.
30188         * m4/c-stack.m4: Likewise.
30189         * m4/c-strtod.m4: Likewise.
30190         * m4/calloc.m4: Likewise.
30191         * m4/canonicalize-lgpl.m4: Likewise.
30192         * m4/chown.m4: Likewise.
30193         * m4/clock_time.m4: Likewise.
30194         * m4/codeset.m4: Likewise.
30195         * m4/copy-file.m4: Likewise.
30196         * m4/csharp.m4: Likewise.
30197         * m4/csharpcomp.m4: Likewise.
30198         * m4/csharpexec.m4: Likewise.
30199         * m4/d-ino.m4: Likewise.
30200         * m4/d-type.m4: Likewise.
30201         * m4/dirfd.m4: Likewise.
30202         * m4/double-slash-root.m4: Likewise.
30203         * m4/eaccess.m4: Likewise.
30204         * m4/eealloc.m4: Likewise.
30205         * m4/environ.m4: Likewise.
30206         * m4/errno_h.m4: Likewise.
30207         * m4/euidaccess.m4: Likewise.
30208         * m4/execute.m4: Likewise.
30209         * m4/fatal-signal.m4: Likewise.
30210         * m4/fchdir.m4: Likewise.
30211         * m4/fcntl_h.m4: Likewise.
30212         * m4/fileblocks.m4: Likewise.
30213         * m4/filenamecat.m4: Likewise.
30214         * m4/findprog.m4: Likewise.
30215         * m4/flexmember.m4: Likewise.
30216         * m4/fnmatch.m4: Likewise.
30217         * m4/fopen.m4: Likewise.
30218         * m4/fpending.m4: Likewise.
30219         * m4/fprintf-posix.m4: Likewise.
30220         * m4/free.m4: Likewise.
30221         * m4/frexp.m4: Likewise.
30222         * m4/frexpl.m4: Likewise.
30223         * m4/fsusage.m4: Likewise.
30224         * m4/ftruncate.m4: Likewise.
30225         * m4/gc-camellia.m4: Likewise.
30226         * m4/gc-random.m4: Likewise.
30227         * m4/gc.m4: Likewise.
30228         * m4/getaddrinfo.m4: Likewise.
30229         * m4/getcwd-abort-bug.m4: Likewise.
30230         * m4/getcwd-path-max.m4: Likewise.
30231         * m4/getdate.m4: Likewise.
30232         * m4/getdomainname.m4: Likewise.
30233         * m4/getgroups.m4: Likewise.
30234         * m4/gethostname.m4: Likewise.
30235         * m4/gethrxtime.m4: Likewise.
30236         * m4/getline.m4: Likewise.
30237         * m4/getloadavg.m4: Likewise.
30238         * m4/getndelim2.m4: Likewise.
30239         * m4/getpass.m4: Likewise.
30240         * m4/gettext.m4: Likewise.
30241         * m4/gettime.m4: Likewise.
30242         * m4/gettimeofday.m4: Likewise.
30243         * m4/gnulib-common.m4: Likewise.
30244         * m4/group-member.m4: Likewise.
30245         * m4/host-os.m4: Likewise.
30246         * m4/iconv.m4: Likewise.
30247         * m4/iconv_open.m4: Likewise.
30248         * m4/inet_ntop.m4: Likewise.
30249         * m4/inet_pton.m4: Likewise.
30250         * m4/inline.m4: Likewise.
30251         * m4/intldir.m4: Likewise.
30252         * m4/intlmacosx.m4: Likewise.
30253         * m4/intmax.m4: Likewise.
30254         * m4/intmax_t.m4: Likewise.
30255         * m4/inttypes.m4: Likewise.
30256         * m4/inttypes_h.m4: Likewise.
30257         * m4/inttypes-pri.m4: Likewise.
30258         * m4/isapipe.m4: Likewise.
30259         * m4/isnand.m4: Likewise.
30260         * m4/isnanf.m4: Likewise.
30261         * m4/isnanl.m4: Likewise.
30262         * m4/javacomp.m4: Likewise.
30263         * m4/javaexec.m4: Likewise.
30264         * m4/jm-winsz1.m4: Likewise.
30265         * m4/jm-winsz2.m4: Likewise.
30266         * m4/lchown.m4: Likewise.
30267         * m4/lcmessage.m4: Likewise.
30268         * m4/ldexpl.m4: Likewise.
30269         * m4/lib-ld.m4: Likewise.
30270         * m4/lib-link.m4: Likewise.
30271         * m4/libsigsegv.m4: Likewise.
30272         * m4/link-follow.m4: Likewise.
30273         * m4/localcharset.m4: Likewise.
30274         * m4/locale-fr.m4: Likewise.
30275         * m4/locale-ja.m4: Likewise.
30276         * m4/locale-tr.m4: Likewise.
30277         * m4/locale-zh.m4: Likewise.
30278         * m4/lock.m4: Likewise.
30279         * m4/longlong.m4: Likewise.
30280         * m4/ls-mntd-fs.m4: Likewise.
30281         * m4/lstat.m4: Likewise.
30282         * m4/malloc.m4: Likewise.
30283         * m4/mathl.m4: Likewise.
30284         * m4/mbrtowc.m4: Likewise.
30285         * m4/mbstate_t.m4: Likewise.
30286         * m4/mbswidth.m4: Likewise.
30287         * m4/memchr.m4: Likewise.
30288         * m4/memcmp.m4: Likewise.
30289         * m4/memcpy.m4: Likewise.
30290         * m4/memmem.m4: Likewise.
30291         * m4/memmove.m4: Likewise.
30292         * m4/mempcpy.m4: Likewise.
30293         * m4/memrchr.m4: Likewise.
30294         * m4/memset.m4: Likewise.
30295         * m4/minmax.m4: Likewise.
30296         * m4/mkdir-slash.m4: Likewise.
30297         * m4/mkdtemp.m4: Likewise.
30298         * m4/mktime.m4: Likewise.
30299         * m4/mmap-anon.m4: Likewise.
30300         * m4/mountlist.m4: Likewise.
30301         * m4/nanosleep.m4: Likewise.
30302         * m4/nls.m4: Likewise.
30303         * m4/nocrash.m4: Likewise.
30304         * m4/open.m4: Likewise.
30305         * m4/openat.m4: Likewise.
30306         * m4/openmp.m4: Likewise.
30307         * m4/pathmax.m4: Likewise.
30308         * m4/perl.m4: Likewise.
30309         * m4/physmem.m4: Likewise.
30310         * m4/pipe.m4: Likewise.
30311         * m4/po.m4: Likewise.
30312         * m4/poll.m4: Likewise.
30313         * m4/posixtm.m4: Likewise.
30314         * m4/posixver.m4: Likewise.
30315         * m4/printf-frexp.m4: Likewise.
30316         * m4/printf-frexpl.m4: Likewise.
30317         * m4/printf-posix.m4: Likewise.
30318         * m4/printf-posix-rpl.m4: Likewise.
30319         * m4/printf.m4: Likewise.
30320         * m4/progtest.m4: Likewise.
30321         * m4/putenv.m4: Likewise.
30322         * m4/readline.m4: Likewise.
30323         * m4/readlink.m4: Likewise.
30324         * m4/readutmp.m4: Likewise.
30325         * m4/realloc.m4: Likewise.
30326         * m4/regex.m4: Likewise.
30327         * m4/relocatable.m4: Likewise.
30328         * m4/relocatable-lib.m4: Likewise.
30329         * m4/rename-dest-slash.m4: Likewise.
30330         * m4/rename.m4: Likewise.
30331         * m4/rmdir-errno.m4: Likewise.
30332         * m4/rmdir.m4: Likewise.
30333         * m4/roundf.m4: Likewise.
30334         * m4/roundl.m4: Likewise.
30335         * m4/rpmatch.m4: Likewise.
30336         * m4/save-cwd.m4: Likewise.
30337         * m4/selinux-selinux-h.m4: Likewise.
30338         * m4/setenv.m4: Likewise.
30339         * m4/settime.m4: Likewise.
30340         * m4/sig2str.m4: Likewise.
30341         * m4/sig_atomic_t.m4: Likewise.
30342         * m4/signalblocking.m4: Likewise.
30343         * m4/signbit.m4: Likewise.
30344         * m4/sigpipe.m4: Likewise.
30345         * m4/sockets.m4: Likewise.
30346         * m4/sockpfaf.m4: Likewise.
30347         * m4/st_dm_mode.m4: Likewise.
30348         * m4/stat-time.m4: Likewise.
30349         * m4/stdbool.m4: Likewise.
30350         * m4/stdint.m4: Likewise.
30351         * m4/stdint_h.m4: Likewise.
30352         * m4/stpcpy.m4: Likewise.
30353         * m4/stpncpy.m4: Likewise.
30354         * m4/strcase.m4: Likewise.
30355         * m4/strchrnul.m4: Likewise.
30356         * m4/strcspn.m4: Likewise.
30357         * m4/strdup.m4: Likewise.
30358         * m4/strftime.m4: Likewise.
30359         * m4/strndup.m4: Likewise.
30360         * m4/strnlen.m4: Likewise.
30361         * m4/strpbrk.m4: Likewise.
30362         * m4/strptime.m4: Likewise.
30363         * m4/strsep.m4: Likewise.
30364         * m4/strtod.m4: Likewise.
30365         * m4/strtoimax.m4: Likewise.
30366         * m4/strtok_r.m4: Likewise.
30367         * m4/strtol.m4: Likewise.
30368         * m4/strtoll.m4: Likewise.
30369         * m4/strtoul.m4: Likewise.
30370         * m4/strtoull.m4: Likewise.
30371         * m4/strtoumax.m4: Likewise.
30372         * m4/strverscmp.m4: Likewise.
30373         * m4/threadlib.m4: Likewise.
30374         * m4/timegm.m4: Likewise.
30375         * m4/tm_gmtoff.m4: Likewise.
30376         * m4/tmpdir.m4: Likewise.
30377         * m4/tmpfile.m4: Likewise.
30378         * m4/tzset.m4: Likewise.
30379         * m4/uintmax_t.m4: Likewise.
30380         * m4/unlinkdir.m4: Likewise.
30381         * m4/unlocked-io.m4: Likewise.
30382         * m4/uptime.m4: Likewise.
30383         * m4/userspec.m4: Likewise.
30384         * m4/utimbuf.m4: Likewise.
30385         * m4/utime.m4: Likewise.
30386         * m4/utimes-null.m4: Likewise.
30387         * m4/utimes.m4: Likewise.
30388         * m4/vararrays.m4: Likewise.
30389         * m4/vasnprintf.m4: Likewise.
30390         * m4/vfprintf-posix.m4: Likewise.
30391         * m4/vprintf-posix.m4: Likewise.
30392         * m4/wait-process.m4: Likewise.
30393         * m4/wchar_t.m4: Likewise.
30394         * m4/wint_t.m4: Likewise.
30395         * m4/write-any-file.m4: Likewise.
30396         * m4/yield.m4: Likewise.
30397
30398 2009-01-13  Bruno Haible  <bruno@clisp.org>
30399
30400         Avoid test-copy-file.sh failures when ACL support insufficient.
30401         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
30402         TESTS_ENVIRONMENT.
30403         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
30404         Reported by Jim Meyering.
30405
30406 2009-01-13  Bruno Haible  <bruno@clisp.org>
30407
30408         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
30409         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
30410         * modules/unistdio/u8-printf-parse (Files): Likewise.
30411         * modules/unistdio/u32-printf-parse (Files): Likewise.
30412         * modules/unistdio/ulc-printf-parse (Files): Likewise.
30413
30414 2009-01-13  Simon Josefsson  <simon@josefsson.org>
30415
30416         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
30417         and m4/inttypes_h.m4 too.
30418
30419 2009-01-12  Eric Blake  <ebb9@byu.net>
30420
30421         tests: IRIX 6.2 cc can't compile -0.0 into .data
30422         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
30423         rather than at compile-time.
30424         * tests/test-floorl.c (minus_zero): Likewise.
30425         * tests/test-frexpl.c (minus_zero): Likewise.
30426         * tests/test-isnan.c (minus_zerol): Likewise.
30427         * tests/test-isnanl.h (minus_zero): Likewise.
30428         * tests/test-ldexpl.c (minus_zero): Likewise.
30429         * tests/test-roundl.c (minus_zero): Likewise.
30430         * tests/test-signbit.c (minus_zerol): Likewise.
30431         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30432         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30433         * tests/test-truncl.c (minus_zero): Likewise.
30434         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30435         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30436         Reported by Tom G. Christensen and Nelson H. F. Beebe.
30437
30438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30439
30440         regex: fix glibc bug 9697
30441         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
30442         handling.
30443
30444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30445
30446         regex: fix glibc bug 697
30447         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
30448         being NULL also if there are no backreferences.
30449
30450 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
30451
30452         regex: merge glibc changes
30453         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
30454         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
30455         re_string_skip_chars, re_string_reconstruct): Likewise.
30456         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
30457
30458 2009-01-07  Jim Meyering  <meyering@redhat.com>
30459
30460         poll: filter through cppi
30461         * lib/poll.c: Indent cpp directives to reflect nesting.
30462
30463 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
30464
30465         poll: don't return uninitialized
30466         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
30467
30468 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
30469
30470         avoid compile failure on AIX 6.1
30471         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
30472         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
30473
30474 2009-01-04  Jim Meyering  <meyering@redhat.com>
30475
30476         remove duplicate inclusion of <stdio.h>
30477         * tests/test-fprintf-posix.c: Likewise.
30478         * tests/test-printf-posix.c: Likewise.
30479         * tests/test-snprintf-posix.c: Likewise.
30480         * tests/test-sprintf-posix.c: Likewise.
30481         * tests/test-vasprintf-posix.c: Likewise.
30482         * tests/test-vfprintf-posix.c: Likewise.
30483         * tests/test-vprintf-posix.c: Likewise.
30484         * tests/test-vsnprintf-posix.c: Likewise.
30485         * tests/test-vsprintf-posix.c: Likewise.
30486
30487 2009-01-03  Jim Meyering  <meyering@redhat.com>
30488
30489         gnulib-tool: fix sed-based filtering
30490         * gnulib-tool (func_filter_filelist): Remove extra backslash
30491         in sed_fff_filter definition.
30492
30493 2009-01-02  Jim Meyering  <meyering@redhat.com>
30494
30495         strftime: avoid compilation failure on Solaris 2.6
30496         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
30497         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
30498         Don't #define mbrlen or mbsinit, since now they're guaranteed to
30499         be available.  Reported by Tom G. Christensen.  Details in
30500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
30501
30502 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30503             Bruno Haible  <bruno@clisp.org>
30504
30505         Speed up gnulib-tool by doing more string processing through shell
30506         built-ins.
30507         * gnulib-tool (fast_func_append): New variable.
30508         (func_remove_prefix, func_remove_suffix): New functions.
30509         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
30510         (func_filter_filelist): New function.
30511         (func_get_dependencies): Use func_remove_suffix instead of sed.
30512         (func_get_automake_snippet): Use func_filter_filelist instead of a
30513         subshell and sed invocation.
30514
30515 2009-01-01  Bruno Haible  <bruno@clisp.org>
30516
30517         Fix a security bug.
30518         * gnulib-tool (func_import, import, update): Don't allow the characters
30519         '"', '$', '`', '\' in macro arguments that become part of commands that
30520         are evaluated.
30521
30522 2009-01-01  Bruno Haible  <bruno@clisp.org>
30523
30524         * gnulib-tool (func_reset_sigpipe): Add more comments.
30525
30526 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30527
30528         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
30529         func_emit_tests_Makefile_am, func_import): Abort loops early if we
30530         already know the answer.
30531
30532 2009-01-01  Jim Meyering  <meyering@redhat.com>
30533
30534         * lib/version-etc.c (version_etc_va): Update copyright year.
30535
30536 2008-12-30  Bruno Haible  <bruno@clisp.org>
30537
30538         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
30539         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
30540         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
30541
30542 2008-12-29  Eric Blake  <ebb9@byu.net>
30543
30544         multiarch: avoid autoconf AC_REQUIRE bug
30545         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
30546         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
30547         2.63 and older.
30548         Reported by Bruno Haible, and analyzed in
30549         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
30550
30551 2008-12-29  Bruno Haible  <bruno@clisp.org>
30552
30553         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
30554         files in subdirectories correctly.
30555         Reported by Ralf Wildenhues.
30556
30557 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30558
30559         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
30560         rather than 'join FILE -', for Solaris join.
30561
30562 2008-12-29  Bruno Haible  <bruno@clisp.org>
30563
30564         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
30565         quoting.
30566         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30567         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
30568         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
30569         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
30570         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30571         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30572         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30573         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30574         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30575         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30576         * m4/nls.m4 (AM_NLS): Likewise.
30577         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
30578         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30579         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30580         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30581         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30582         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30583         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
30584         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30585         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30586         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30587         * m4/xsize.m4 (gl_XSIZE): Likewise.
30588         Suggested by Jim Meyering.
30589
30590 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30591
30592         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
30593         * lib/parse-duration.c: use a switch instead of cascading if's.
30594
30595 2008-12-29  Eric Blake  <ebb9@byu.net>
30596
30597         wchar.h: supply WEOF on Irix 5.3
30598         * lib/wchar.in.h (wint_t): Also supply WEOF.
30599         * lib/wctype.in.h (wint_t): Likewise.
30600         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
30601         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
30602         Reported by Tom G. Christensen.
30603
30604 2008-12-26  Bruno Haible  <bruno@clisp.org>
30605
30606         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
30607         i486, i586, i686.
30608
30609 2008-12-26  Bruno Haible  <bruno@clisp.org>
30610
30611         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
30612
30613 2008-12-26  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
30616         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
30617         not __STDC_CONSTANT_MACROS.
30618         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30619
30620 2008-12-25  Bruno Haible  <bruno@clisp.org>
30621
30622         Add support for universal builds to vasnprintf.
30623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
30624         universal builds, guess no.
30625         * modules/vasnprintf-posix (Depends-on): Add multiarch.
30626         * modules/vasprintf-posix (Depends-on): Likewise.
30627         * modules/fprintf-posix (Depends-on): Likewise.
30628         * modules/vfprintf-posix (Depends-on): Likewise.
30629         * modules/snprintf-posix (Depends-on): Likewise.
30630         * modules/vsnprintf-posix (Depends-on): Likewise.
30631         * modules/sprintf-posix (Depends-on): Likewise.
30632         * modules/vsprintf-posix (Depends-on): Likewise.
30633         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30634         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30635         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30636         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30637         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30638         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30639         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30640
30641         Add support for universal builds to <inttypes.h>.
30642         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
30643         _SCNu64_PREFIX): In Apple
30644         universal builds, define directly, using _LP64.
30645         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
30646         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
30647         * modules/inttypes (Depends-on): Add multiarch.
30648         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30649
30650         Add support for universal builds to <stdint.h>.
30651         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
30652         universal builds, define directly, using _LP64.
30653         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
30654         Apple universal builds, don't test for the size and suffix of ptrdiff_t
30655         and size_t.
30656         * modules/stdint (Depends-on): Add multiarch.
30657         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
30658
30659         New module 'multiarch'.
30660         * modules/multiarch: New file.
30661         * m4/multiarch.m4: New file.
30662
30663 2008-12-25  Bruno Haible  <bruno@clisp.org>
30664
30665         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
30666
30667 2008-12-25  Bruno Haible  <bruno@clisp.org>
30668
30669         * modules/btowc (License): Relicense under LGPLv2+.
30670         * modules/mbsinit (License): Likewise.
30671         * modules/mbrtowc (License): Likewise.
30672         * modules/wcrtomb (License): Likewise.
30673         * modules/streq (License): Likewise.
30674         Reported by David Lutterkort <lutter@redhat.com>.
30675
30676 2008-12-23  Bruno Haible  <bruno@clisp.org>
30677
30678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
30679
30680 2008-12-23  Bruno Haible  <bruno@clisp.org>
30681
30682         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
30683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
30684         GETADDRINFO_LIB, not in LIBS.
30685         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
30686         * modules/canon-host (Link): Likewise.
30687         * NEWS: Mention the change.
30688         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
30689         GETADDRINFO_LIB.
30690
30691 2008-12-22  Bruno Haible  <bruno@clisp.org>
30692
30693         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
30694         * doc/posix-functions/iswalpha_l.texi: Likewise.
30695         * doc/posix-functions/iswblank_l.texi: Likewise.
30696         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30697         * doc/posix-functions/iswctype_l.texi: Likewise.
30698         * doc/posix-functions/iswdigit_l.texi: Likewise.
30699         * doc/posix-functions/iswgraph_l.texi: Likewise.
30700         * doc/posix-functions/iswlower_l.texi: Likewise.
30701         * doc/posix-functions/iswprint_l.texi: Likewise.
30702         * doc/posix-functions/iswpunct_l.texi: Likewise.
30703         * doc/posix-functions/iswspace_l.texi: Likewise.
30704         * doc/posix-functions/iswupper_l.texi: Likewise.
30705         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30706         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
30707         * doc/posix-functions/open_wmemstream.texi: Likewise.
30708         * doc/posix-functions/swscanf.texi: Likewise.
30709         * doc/posix-functions/towctrans_l.texi: Likewise.
30710         * doc/posix-functions/towlower.texi: Likewise.
30711         * doc/posix-functions/towlower_l.texi: Likewise.
30712         * doc/posix-functions/towupper.texi: Likewise.
30713         * doc/posix-functions/towupper_l.texi: Likewise.
30714         * doc/posix-functions/vfwprintf.texi: Likewise.
30715         * doc/posix-functions/vfwscanf.texi: Likewise.
30716         * doc/posix-functions/vswscanf.texi: Likewise.
30717         * doc/posix-functions/vwprintf.texi: Likewise.
30718         * doc/posix-functions/vwscanf.texi: Likewise.
30719         * doc/posix-functions/wcpcpy.texi: Likewise.
30720         * doc/posix-functions/wcpncpy.texi: Likewise.
30721         * doc/posix-functions/wcscasecmp.texi: Likewise.
30722         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
30723         * doc/posix-functions/wcscoll_l.texi: Likewise.
30724         * doc/posix-functions/wcsdup.texi: Likewise.
30725         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30726         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
30727         * doc/posix-functions/wcsnlen.texi: Likewise.
30728         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30729         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30730         * doc/posix-functions/wctrans_l.texi: Likewise.
30731         * doc/posix-functions/wctype_l.texi: Likewise.
30732         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
30733         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
30734         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
30735         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
30736         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
30737         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
30738         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
30739         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
30740         * doc/glibc-functions/wcschrnul.texi: Likewise.
30741         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30742         * doc/glibc-functions/wcstod_l.texi: Likewise.
30743         * doc/glibc-functions/wcstof_l.texi: Likewise.
30744         * doc/glibc-functions/wcstol_l.texi: Likewise.
30745         * doc/glibc-functions/wcstold_l.texi: Likewise.
30746         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30747         * doc/glibc-functions/wcstoq.texi: Likewise.
30748         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30749         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30750         * doc/glibc-functions/wcstouq.texi: Likewise.
30751         * doc/glibc-functions/wmempcpy.texi: Likewise.
30752
30753 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
30754             Eric Blake  <ebb9@byu.net>
30755             Paolo Bonzini  <bonzini@gnu.org>
30756             Bruno Haible  <bruno@clisp.org>
30757
30758         Make c-stack work on Haiku.
30759         * lib/c-stack.c (SA_ONSTACK): Define fallback.
30760         (c_stack_action): Use SA_ONSTACK flag.
30761
30762 2008-12-22  Bruno Haible  <bruno@clisp.org>
30763
30764         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
30765
30766 2008-12-22  Bruno Haible  <bruno@clisp.org>
30767
30768         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
30769         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
30770         being overridden.
30771         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
30772         New macros.
30773         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
30774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
30775         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
30776         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
30777
30778 2008-12-22  Bruno Haible  <bruno@clisp.org>
30779
30780         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
30781         from test code.
30782
30783 2008-12-22  Eric Blake  <ebb9@byu.net>
30784
30785         Avoid gcc warnings on cygwin.
30786         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
30787         Avoid unused variable.
30788         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
30789         Likewise.
30790
30791 2008-12-22  Bruno Haible  <bruno@clisp.org>
30792
30793         Remove HAVE_MBRTOWC conditionals.
30794         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
30795         (mbscasecmp): Assume mbrtowc function.
30796         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
30797         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
30798         * lib/mbschr.c: Include mbuiter.h unconditionally.
30799         (mbschr): Assume mbrtowc function.
30800         * lib/mbscspn.c: Include mbuiter.h unconditionally.
30801         (mbscspn): Assume mbrtowc function.
30802         * lib/mbslen.c: Include mbuiter.h unconditionally.
30803         (mbslen): Assume mbrtowc function.
30804         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
30805         (mbsncasecmp): Assume mbrtowc function.
30806         * lib/mbsnlen.c: Include mbiter.h unconditionally.
30807         (mbsnlen): Assume mbrtowc function.
30808         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
30809         (mbspbrk): Assume mbrtowc function.
30810         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
30811         (mbspcasecmp): Assume mbrtowc function.
30812         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
30813         (mbsrchr): Assume mbrtowc function.
30814         * lib/mbssep.c: Include mbuiter.h unconditionally.
30815         (mbssep): Assume mbrtowc function.
30816         * lib/mbsspn.c: Include mbuiter.h unconditionally.
30817         (mbsspn): Assume mbrtowc function.
30818         * lib/mbsstr.c: Include mbuiter.h unconditionally.
30819         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
30820         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
30821         (mbstok_r): Assume mbrtowc function.
30822         * lib/propername.c: Include mbuiter.h unconditionally.
30823         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
30824         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
30825         (trim2): Assume mbrtowc function.
30826         * lib/mbswidth.c (mbsinit): Remove fallback definition.
30827         (mbsnwidth): Assume mbrtowc function.
30828         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
30829         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
30830         fallback definitions.
30831         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
30832
30833 2008-12-22  Bruno Haible  <bruno@clisp.org>
30834
30835         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
30836
30837 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
30838
30839         * modules/regex: Request emulations for the mb*/wc* functions we need.
30840         * m4/regex.m4: Don't look for those functions here.
30841         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
30842
30843 2008-12-22  Bruno Haible  <bruno@clisp.org>
30844
30845         * modules/fnmatch (Depends-on): Remove duplicated dependency.
30846
30847 2008-12-21  Bruno Haible  <bruno@clisp.org>
30848
30849         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
30850         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
30851         (Include): Remove conditionalization.
30852         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
30853         (Include): Remove conditionalization.
30854         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
30855         (Include): Remove conditionalization.
30856         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
30857         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30858         * NEWS: Mention the change.
30859         Reported by Alan Hourihane <alanh@fairlite.co.uk>
30860         via Sergey Poznyakoff <gray@gnu.org.ua>.
30861
30862 2008-12-21  Bruno Haible  <bruno@clisp.org>
30863
30864         * MODULES.html.sh (Extended multibyte and wide character utilities
30865         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
30866         wcrtomb, wcsrtombs.
30867         (Support for systems lacking POSIX:2008): Add accept, bind, close,
30868         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
30869         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
30870         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
30871
30872 2008-12-21  Bruno Haible  <bruno@clisp.org>
30873
30874         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
30875
30876 2008-12-21  Bruno Haible  <bruno@clisp.org>
30877
30878         * modules/wcsnrtombs-tests: New file.
30879         * tests/test-wcsnrtombs1.sh: New file.
30880         * tests/test-wcsnrtombs2.sh: New file.
30881         * tests/test-wcsnrtombs3.sh: New file.
30882         * tests/test-wcsnrtombs4.sh: New file.
30883         * tests/test-wcsnrtombs.c: New file.
30884
30885         New module 'wcsnrtombs'.
30886         * lib/wchar.in.h (wcsnrtombs): New declaration.
30887         * lib/wcsnrtombs.c: New file.
30888         * lib/wcsrtombs-state.c: New file.
30889         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
30890         (internal_state): Remove variable.
30891         * m4/wcsnrtombs.m4: New file.
30892         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
30893         compilation units.
30894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
30895         HAVE_WCSNRTOMBS.
30896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
30897         HAVE_WCSNRTOMBS.
30898         * modules/wcsnrtombs: New file.
30899         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
30900         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
30901
30902 2008-12-21  Bruno Haible  <bruno@clisp.org>
30903
30904         * modules/wcsrtombs-tests: New file.
30905         * tests/test-wcsrtombs1.sh: New file.
30906         * tests/test-wcsrtombs2.sh: New file.
30907         * tests/test-wcsrtombs3.sh: New file.
30908         * tests/test-wcsrtombs4.sh: New file.
30909         * tests/test-wcsrtombs.c: New file.
30910
30911         New module 'wcsrtombs'.
30912         * lib/wchar.in.h (wcsrtombs): New declaration.
30913         * lib/wcsrtombs.c: New file.
30914         * m4/wcsrtombs.m4: New file.
30915         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
30916         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
30918         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
30919         * modules/wcsrtombs: New file.
30920         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
30921         bugs.
30922
30923 2008-12-21  Bruno Haible  <bruno@clisp.org>
30924
30925         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
30926         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
30927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
30928         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
30929         if not correct.
30930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
30931         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
30932         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30933         m4/locale-zh.m4, m4/codeset.m4.
30934         * doc/posix-functions/wcrtomb.texi: Document the bug.
30935
30936 2008-12-21  Bruno Haible  <bruno@clisp.org>
30937
30938         Work around a btowc() bug on IRIX 6.5.
30939         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
30940         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
30941         REPLACE_WTOBC if not.
30942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
30943         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
30944         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
30945
30946 2008-12-21  Bruno Haible  <bruno@clisp.org>
30947
30948         * modules/wcrtomb-tests: New file.
30949         * tests/test-wcrtomb.sh: New file.
30950         * tests/test-wcrtomb.c: New file.
30951
30952         New module 'wcrtomb'.
30953         * lib/wchar.in.h (wcrtomb): New declaration.
30954         * lib/wcrtomb.c: New file.
30955         * m4/wcrtomb.m4: New file.
30956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
30957         HAVE_WCRTOMB.
30958         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
30959         HAVE_WCRTOMB.
30960         * modules/wcrtomb: New file.
30961         * doc/posix-functions/wcrtomb.texi: Mention the new module.
30962
30963 2008-12-21  Bruno Haible  <bruno@clisp.org>
30964
30965         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
30966         * modules/mbsrtowcs (Files): Likewise.
30967         * modules/wctob (Files): Likewise.
30968         * modules/c-strcase-tests (Files): Likewise.
30969         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30970         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30971         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30972         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30973         * modules/vasnprintf-posix-tests (Files): Likewise.
30974
30975 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30976
30977         gitlog-to-changelog: pass all command-line arguments to git-log
30978         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30979         it is sometimes convenient to filter the commits in various ways.
30980         gitlog-to-changelog only allows --since to specify a start date,
30981         but git-log itself supports many other filtering mechanisms.
30982         At the moment, I want to filter by branch name.  Rather than
30983         adding a --branch option to gitlog-to-changelog, it seems more
30984         flexible to simply pass all options directly to git-log and let
30985         git do the work.  Notice that this effectively makes --since a
30986         redundant option for gitlog-to-changelog, but removing it would
30987         require current usage to change since calls would then require
30988         an additional '--'.
30989
30990 2008-12-21  Bruno Haible  <bruno@clisp.org>
30991
30992         * modules/mbsnrtowcs-tests: New file.
30993         * tests/test-mbsnrtowcs1.sh: New file.
30994         * tests/test-mbsnrtowcs2.sh: New file.
30995         * tests/test-mbsnrtowcs3.sh: New file.
30996         * tests/test-mbsnrtowcs4.sh: New file.
30997         * tests/test-mbsnrtowcs.c: New file.
30998
30999         New module 'mbsnrtowcs'.
31000         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31001         * lib/mbsnrtowcs.c: New file.
31002         * lib/mbsrtowcs-state.c: New file.
31003         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31004         (internal_state): Remove variable.
31005         * m4/mbsnrtowcs.m4: New file.
31006         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31007         compilation units.
31008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31009         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31010         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31011         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31012         * modules/mbsnrtowcs: New file.
31013         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31014         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31015         portability problem.
31016
31017 2008-12-21  Bruno Haible  <bruno@clisp.org>
31018
31019         Work around mbsrtowcs bug.
31020         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31021         (gl_FUNC_MBSRTOWCS): Invoke it.
31022         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31023         m4/locale-zh.m4.
31024         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31025
31026 2008-12-21  Bruno Haible  <bruno@clisp.org>
31027
31028         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31029
31030 2008-12-21  Bruno Haible  <bruno@clisp.org>
31031
31032         Update doc for AIX.
31033         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31034         16-bit wchar_t type.
31035         * doc/posix-functions/btowc.texi: Likewise.
31036         * doc/posix-functions/fgetwc.texi: Likewise.
31037         * doc/posix-functions/fgetws.texi: Likewise.
31038         * doc/posix-functions/fputwc.texi: Likewise.
31039         * doc/posix-functions/fputws.texi: Likewise.
31040         * doc/posix-functions/fwide.texi: Likewise.
31041         * doc/posix-functions/fwprintf.texi: Likewise.
31042         * doc/posix-functions/fwscanf.texi: Likewise.
31043         * doc/posix-functions/getwchar.texi: Likewise.
31044         * doc/posix-functions/getwc.texi: Likewise.
31045         * doc/posix-functions/iswalnum.texi: Likewise.
31046         * doc/posix-functions/iswalpha.texi: Likewise.
31047         * doc/posix-functions/iswblank.texi: Likewise.
31048         * doc/posix-functions/iswcntrl.texi: Likewise.
31049         * doc/posix-functions/iswctype.texi: Likewise.
31050         * doc/posix-functions/iswdigit.texi: Likewise.
31051         * doc/posix-functions/iswgraph.texi: Likewise.
31052         * doc/posix-functions/iswlower.texi: Likewise.
31053         * doc/posix-functions/iswprint.texi: Likewise.
31054         * doc/posix-functions/iswpunct.texi: Likewise.
31055         * doc/posix-functions/iswspace.texi: Likewise.
31056         * doc/posix-functions/iswupper.texi: Likewise.
31057         * doc/posix-functions/iswxdigit.texi: Likewise.
31058         * doc/posix-functions/mbrtowc.texi: Likewise.
31059         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31060         * doc/posix-functions/mbstowcs.texi: Likewise.
31061         * doc/posix-functions/mbtowc.texi: Likewise.
31062         * doc/posix-functions/putwchar.texi: Likewise.
31063         * doc/posix-functions/putwc.texi: Likewise.
31064         * doc/posix-functions/swprintf.texi: Likewise.
31065         * doc/posix-functions/tolower.texi: Likewise.
31066         * doc/posix-functions/toupper.texi: Likewise.
31067         * doc/posix-functions/towctrans.texi: Likewise.
31068         * doc/posix-functions/ungetwc.texi: Likewise.
31069         * doc/posix-functions/vswprintf.texi: Likewise.
31070         * doc/posix-functions/wcrtomb.texi: Likewise.
31071         * doc/posix-functions/wcscat.texi: Likewise.
31072         * doc/posix-functions/wcschr.texi: Likewise.
31073         * doc/posix-functions/wcscmp.texi: Likewise.
31074         * doc/posix-functions/wcscoll.texi: Likewise.
31075         * doc/posix-functions/wcscpy.texi: Likewise.
31076         * doc/posix-functions/wcscspn.texi: Likewise.
31077         * doc/posix-functions/wcsftime.texi: Likewise.
31078         * doc/posix-functions/wcslen.texi: Likewise.
31079         * doc/posix-functions/wcsncat.texi: Likewise.
31080         * doc/posix-functions/wcsncmp.texi: Likewise.
31081         * doc/posix-functions/wcsncpy.texi: Likewise.
31082         * doc/posix-functions/wcspbrk.texi: Likewise.
31083         * doc/posix-functions/wcsrchr.texi: Likewise.
31084         * doc/posix-functions/wcsrtombs.texi: Likewise.
31085         * doc/posix-functions/wcsspn.texi: Likewise.
31086         * doc/posix-functions/wcsstr.texi: Likewise.
31087         * doc/posix-functions/wcstod.texi: Likewise.
31088         * doc/posix-functions/wcstof.texi: Likewise.
31089         * doc/posix-functions/wcstoimax.texi: Likewise.
31090         * doc/posix-functions/wcstok.texi: Likewise.
31091         * doc/posix-functions/wcstold.texi: Likewise.
31092         * doc/posix-functions/wcstoll.texi: Likewise.
31093         * doc/posix-functions/wcstol.texi: Likewise.
31094         * doc/posix-functions/wcstombs.texi: Likewise.
31095         * doc/posix-functions/wcstoull.texi: Likewise.
31096         * doc/posix-functions/wcstoul.texi: Likewise.
31097         * doc/posix-functions/wcstoumax.texi: Likewise.
31098         * doc/posix-functions/wcswidth.texi: Likewise.
31099         * doc/posix-functions/wcsxfrm.texi: Likewise.
31100         * doc/posix-functions/wctob.texi: Likewise.
31101         * doc/posix-functions/wctomb.texi: Likewise.
31102         * doc/posix-functions/wctrans.texi: Likewise.
31103         * doc/posix-functions/wctype.texi: Likewise.
31104         * doc/posix-functions/wcwidth.texi: Likewise.
31105         * doc/posix-functions/wmemchr.texi: Likewise.
31106         * doc/posix-functions/wmemcmp.texi: Likewise.
31107         * doc/posix-functions/wmemcpy.texi: Likewise.
31108         * doc/posix-functions/wmemmove.texi: Likewise.
31109         * doc/posix-functions/wmemset.texi: Likewise.
31110         * doc/posix-functions/wprintf.texi: Likewise.
31111         * doc/posix-functions/wscanf.texi: Likewise.
31112
31113 2008-12-21  Bruno Haible  <bruno@clisp.org>
31114
31115         Update doc for HP-UX 11.11.
31116         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31117         in HP-UX version 11.00, not in all versions of HP-UX 11.
31118         * doc/posix-functions/fwide.texi: Likewise.
31119         * doc/posix-functions/fwprintf.texi: Likewise.
31120         * doc/posix-functions/fwscanf.texi: Likewise.
31121         * doc/posix-functions/inet_ntop.texi: Likewise.
31122         * doc/posix-functions/inet_pton.texi: Likewise.
31123         * doc/posix-functions/mbrlen.texi: Likewise.
31124         * doc/posix-functions/mbrtowc.texi: Likewise.
31125         * doc/posix-functions/mbsinit.texi: Likewise.
31126         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31127         * doc/posix-functions/swprintf.texi: Likewise.
31128         * doc/posix-functions/swscanf.texi: Likewise.
31129         * doc/posix-functions/towctrans.texi: Likewise.
31130         * doc/posix-functions/vfwprintf.texi: Likewise.
31131         * doc/posix-functions/vswprintf.texi: Likewise.
31132         * doc/posix-functions/vwprintf.texi: Likewise.
31133         * doc/posix-functions/wcrtomb.texi: Likewise.
31134         * doc/posix-functions/wcsrtombs.texi: Likewise.
31135         * doc/posix-functions/wcsstr.texi: Likewise.
31136         * doc/posix-functions/wctob.texi: Likewise.
31137         * doc/posix-functions/wctrans.texi: Likewise.
31138         * doc/posix-functions/wmemchr.texi: Likewise.
31139         * doc/posix-functions/wmemcmp.texi: Likewise.
31140         * doc/posix-functions/wmemcpy.texi: Likewise.
31141         * doc/posix-functions/wmemmove.texi: Likewise.
31142         * doc/posix-functions/wmemset.texi: Likewise.
31143         * doc/posix-functions/wprintf.texi: Likewise.
31144         * doc/posix-functions/wscanf.texi: Likewise.
31145
31146 2008-12-21  Bruno Haible  <bruno@clisp.org>
31147
31148         Work around a portability problem.
31149         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31150         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31151
31152 2008-12-20  Bruno Haible  <bruno@clisp.org>
31153
31154         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31155         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31156         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31157         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31158         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31159
31160         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31161         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31162         set.
31163         (GNULIB_defined_mbstate_t): New macro.
31164         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31165         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31166         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31167         reuses the system's mbrtowc function but works around the bugs.
31168         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31170         macros.
31171         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31172         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31173         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31174         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31175         REPLACE_MBSINIT if mbsinit needs to be overridden.
31176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31177         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31178         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31179         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31180         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31181         m4/locale-zh.m4.
31182         (Depends): Add mbsinit.
31183         * modules/mbsinit (Depends): Add mbrtowc.
31184         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31185
31186 2008-12-20  Bruno Haible  <bruno@clisp.org>
31187
31188         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31189         so that there are no conversion errors on AIX.
31190         * tests/test-mbsrtowcs.c (main): LIkewise.
31191
31192 2008-12-20  Bruno Haible  <bruno@clisp.org>
31193
31194         Work around wctob bug on Solaris <= 9.
31195         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31196         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31198         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31199         * modules/wctob (Files): Add m4/locale-fr.m4.
31200         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31201
31202 2008-12-20  Bruno Haible  <bruno@clisp.org>
31203
31204         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31205         /dev/null.
31206         * tests/test-select-in.sh: Likewise.
31207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31208
31209 2008-12-20  Bruno Haible  <bruno@clisp.org>
31210
31211         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31212         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31213         Cygwin 1.5.x.
31214
31215 2008-12-20  Bruno Haible  <bruno@clisp.org>
31216
31217         Ensure mbstate_t is defined on HP-UX 11.11.
31218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31219         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31221         AC_USE_SYSTEM_EXTENSIONS.
31222         * modules/fnmatch (Depends-on): Add extensions.
31223         * modules/mbrlen (Depends-on): Likewise.
31224         * modules/mbrtowc (Depends-on): Likewise.
31225         * modules/mbsinit (Depends-on): Likewise.
31226         * modules/mbsrtowcs (Depends-on): Likewise.
31227         * modules/mbswidth (Depends-on): Likewise.
31228         * modules/quotearg (Depends-on): Likewise.
31229         * modules/strftime (Depends-on): Likewise.
31230
31231 2008-12-20  Bruno Haible  <bruno@clisp.org>
31232
31233         Ensure wctob is declared on IRIX 6.5.
31234         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31235         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31236         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31238         of HAVE_WCTOB.
31239         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31240         HAVE_WCTOB.
31241         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
31242
31243 2008-12-19  Bruno Haible  <bruno@clisp.org>
31244
31245         * modules/mbsrtowcs-tests: New file.
31246         * tests/test-mbsrtowcs1.sh: New file.
31247         * tests/test-mbsrtowcs2.sh: New file.
31248         * tests/test-mbsrtowcs3.sh: New file.
31249         * tests/test-mbsrtowcs4.sh: New file.
31250         * tests/test-mbsrtowcs.c: New file.
31251
31252         New module 'mbsrtowcs'.
31253         * lib/wchar.in.h (mbsrtowcs): New declaration.
31254         * lib/mbsrtowcs.c: New file.
31255         * m4/mbsrtowcs.m4: New file.
31256         * modules/mbsrtowcs: New file.
31257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
31258         HAVE_MBSRTOWCS.
31259         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
31260         HAVE_MBSRTOWCS.
31261         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
31262
31263 2008-12-19  Bruno Haible  <bruno@clisp.org>
31264
31265         New module 'mbrlen'.
31266         * lib/wchar.in.h (mbrlen): New declaration.
31267         * lib/mbrlen.c: New file.
31268         * m4/mbrlen.m4: New file.
31269         * modules/mbrlen: New file.
31270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
31271         HAVE_MBRLEN.
31272         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
31273         HAVE_MBRLEN.
31274         * doc/posix-functions/mbrlen.texi: Document the new module.
31275
31276 2008-12-19  Bruno Haible  <bruno@clisp.org>
31277
31278         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
31279         * modules/mbrtowc (Depends-on): Add verify.
31280         Suggested by Paul Eggert.
31281
31282 2008-12-18  Bruno Haible  <bruno@clisp.org>
31283
31284         * modules/mbsinit-tests: New file.
31285         * tests/test-mbsinit.sh: New file.
31286         * tests/test-mbsinit.c: New file.
31287
31288 2008-12-18  Bruno Haible  <bruno@clisp.org>
31289
31290         * modules/mbrtowc-tests: New file.
31291         * tests/test-mbrtowc1.sh: New file.
31292         * tests/test-mbrtowc2.sh: New file.
31293         * tests/test-mbrtowc3.sh: New file.
31294         * tests/test-mbrtowc4.sh: New file.
31295         * tests/test-mbrtowc.c: New file.
31296
31297         New module 'mbrtowc'.
31298         * lib/wchar.in.h (mbstate_t): Override when the system does not have
31299         mbsinit and mbrtowc.
31300         (mbrtowc): New declaration.
31301         * lib/mbrtowc.c: New file.
31302         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
31303         * modules/mbrtowc: New file.
31304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
31305         HAVE_MBRTOWC.
31306         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
31307         HAVE_MBRTOWC.
31308         * doc/posix-functions/mbrtowc.texi: Document the new module.
31309
31310 2008-12-18  Bruno Haible  <bruno@clisp.org>
31311
31312         New module 'wctob'.
31313         * lib/wchar.in.h (wctob): New declaration.
31314         * lib/wctob.c: New file.
31315         * m4/wctob.m4: New file.
31316         * modules/wctob: New file.
31317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
31318         HAVE_WCTOB.
31319         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
31320         * doc/posix-functions/wctob.texi: Document the new module.
31321
31322 2008-12-18  Bruno Haible  <bruno@clisp.org>
31323
31324         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
31325         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
31326
31327 2008-12-18  Simon Josefsson  <simon@josefsson.org>
31328
31329         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
31330         G. Christensen" <tgc@jupiterrise.com>.
31331
31332         * lib/flock.c: Need to include errno.h.  Reported by "Tom
31333         G. Christensen" <tgc@jupiterrise.com>.
31334
31335         * lib/flock.c: Need to include string.h.  Reported by "Tom
31336         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
31337         <ebb9@byu.net>.
31338
31339 2008-12-18  Bruno Haible  <bruno@clisp.org>
31340
31341         * m4/locale-ja.m4: New file, from GNU gettext.
31342
31343 2008-12-17  Bruno Haible  <bruno@clisp.org>
31344
31345         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
31346         Suggested by Eric Blake.
31347
31348 2008-12-17  Bruno Haible  <bruno@clisp.org>
31349
31350         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
31351
31352 2008-12-17  Bruno Haible  <bruno@clisp.org>
31353
31354         * lib/mbsinit.c: Include verify.h. Verify an assumption.
31355         * modules/mbsinit (Depends-on): Add verify.
31356         Suggested by Paul Eggert.
31357
31358 2008-12-17  Bruno Haible  <bruno@clisp.org>
31359
31360         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
31361         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
31362         gl_FUNC_MBRTOWC.
31363         * m4/mbiter.m4 (gl_MBITER): LIkewise.
31364         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
31365         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
31366         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
31367         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
31368         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
31369         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
31370         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
31371         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
31372         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
31373         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
31374         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
31375         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
31376         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
31377         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
31378         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31379         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
31380         * modules/trim (configure.ac): Likewise.
31381
31382 2008-12-17  Bruno Haible  <bruno@clisp.org>
31383
31384         * modules/btowc-tests: New file.
31385         * tests/test-btowc1.sh: New file.
31386         * tests/test-btowc2.sh: New file.
31387         * tests/test-btowc.c: New file.
31388
31389         New module 'btowc'.
31390         * lib/wchar.in.h (btowc): New declaration.
31391         * lib/btowc.c: New file.
31392         * m4/btowc.m4: New file.
31393         * modules/btowc: New file.
31394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
31395         HAVE_BTOWC.
31396         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
31397         * doc/posix-functions/btowc.texi: Document the new module.
31398
31399 2008-12-17  Bruno Haible  <bruno@clisp.org>
31400
31401         New module 'mbsinit'.
31402         * lib/wchar.in.h (mbsinit): New declaration.
31403         * lib/mbsinit.c: New file.
31404         * m4/mbsinit.m4: New file.
31405         * modules/mbsinit: New file.
31406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
31407         HAVE_MBSINIT.
31408         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
31409         HAVE_MBSINIT.
31410         * doc/posix-functions/mbsinit.texi: Document the new module.
31411
31412 2008-12-16  Bruno Haible  <bruno@clisp.org>
31413
31414         * lib/unistd.in.h: Add comment.
31415         * tests/test-environ.c: Don't include <stdlib.h>.
31416
31417 2008-12-16  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/parse-duration.h (parse_duration): Document return value
31420         convention.
31421         * lib/parse-duration.c: Include specification header first. Add
31422         comments.
31423         (_): Remove macro.
31424         (parse_year_month_day, parse_hour_minute_second): Move side effects
31425         outside of strchr call.
31426         (parse_non_iso8601): Move side effects outside of isspace call.
31427         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
31428         call.
31429
31430 2008-12-16  Bruno Haible  <bruno@clisp.org>
31431
31432         * tests/test-parse-duration.sh: Produce no output when the test
31433         succeeds.
31434
31435 2008-12-16  Bruno Haible  <bruno@clisp.org>
31436
31437         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
31438         expressions.
31439
31440 2008-12-15  Bruno Haible  <bruno@clisp.org>
31441
31442         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
31443         * doc/glibc-functions/flistxattr.texi: Likewise.
31444         * doc/glibc-functions/fopencookie.texi: Likewise.
31445         * doc/glibc-functions/fremovexattr.texi: Likewise.
31446         * doc/glibc-functions/fsetxattr.texi: Likewise.
31447         * doc/glibc-functions/getxattr.texi: Likewise.
31448         * doc/glibc-functions/lgetxattr.texi: Likewise.
31449         * doc/glibc-functions/listxattr.texi: Likewise.
31450         * doc/glibc-functions/llistxattr.texi: Likewise.
31451         * doc/glibc-functions/lremovexattr.texi: Likewise.
31452         * doc/glibc-functions/lsetxattr.texi: Likewise.
31453         * doc/glibc-functions/removexattr.texi: Likewise.
31454         * doc/glibc-functions/setxattr.texi: Likewise.
31455         * doc/posix-functions/open_memstream.texi: Likewise.
31456
31457 2008-12-15  Eric Blake  <ebb9@byu.net>
31458
31459         Update doc for cygwin 1.7.
31460         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
31461         functions.
31462         * doc/posix-functions/fchmodat.texi: Likewise.
31463         * doc/posix-functions/fchownat.texi: Likewise.
31464         * doc/posix-functions/fdopendir.texi: Likewise.
31465         * doc/posix-functions/fmemopen.texi: Likewise.
31466         * doc/posix-functions/freeaddrinfo.texi: Likewise.
31467         * doc/posix-functions/fstatat.texi: Likewise.
31468         * doc/posix-functions/futimens.texi: Likewise.
31469         * doc/posix-functions/gai_strerror.texi: Likewise.
31470         * doc/posix-functions/getaddrinfo.texi: Likewise.
31471         * doc/posix-functions/getnameinfo.texi: Likewise.
31472         * doc/posix-functions/if_freenameindex.texi: Likewise.
31473         * doc/posix-functions/if_indextoname.texi: Likewise.
31474         * doc/posix-functions/if_nameindex.texi: Likewise.
31475         * doc/posix-functions/if_nametoindex.texi: Likewise.
31476         * doc/posix-functions/insque.texi: Likewise.
31477         * doc/posix-functions/linkat.texi: Likewise.
31478         * doc/posix-functions/llrint.texi: Likewise.
31479         * doc/posix-functions/llrintf.texi: Likewise.
31480         * doc/posix-functions/llrintl.texi: Likewise.
31481         * doc/posix-functions/lockf.texi: Likewise.
31482         * doc/posix-functions/lrintl.texi: Likewise.
31483         * doc/posix-functions/mkdirat.texi: Likewise.
31484         * doc/posix-functions/mkfifoat.texi: Likewise.
31485         * doc/posix-functions/mknodat.texi: Likewise.
31486         * doc/posix-functions/mq_close.texi: Likewise.
31487         * doc/posix-functions/mq_getattr.texi: Likewise.
31488         * doc/posix-functions/mq_notify.texi: Likewise.
31489         * doc/posix-functions/mq_open.texi: Likewise.
31490         * doc/posix-functions/mq_receive.texi: Likewise.
31491         * doc/posix-functions/mq_send.texi: Likewise.
31492         * doc/posix-functions/mq_setattr.texi: Likewise.
31493         * doc/posix-functions/mq_timedreceive.texi: Likewise.
31494         * doc/posix-functions/mq_timedsend.texi: Likewise.
31495         * doc/posix-functions/mq_unlink.texi: Likewise.
31496         * doc/posix-functions/open_memstream.texi: Likewise.
31497         * doc/posix-functions/openat.texi: Likewise.
31498         * doc/posix-functions/posix_fadvise.texi: Likewise.
31499         * doc/posix-functions/posix_fallocate.texi: Likewise.
31500         * doc/posix-functions/posix_madvise.texi: Likewise.
31501         * doc/posix-functions/posix_memalign.texi: Likewise.
31502         * doc/posix-functions/posix_openpt.texi: Likewise.
31503         * doc/posix-functions/readlinkat.texi: Likewise.
31504         * doc/posix-functions/remque.texi: Likewise.
31505         * doc/posix-functions/renameat.texi: Likewise.
31506         * doc/posix-functions/rintl.texi: Likewise.
31507         * doc/posix-functions/sem_unlink.texi: Likewise.
31508         * doc/posix-functions/shm_open.texi: Likewise.
31509         * doc/posix-functions/shm_unlink.texi: Likewise.
31510         * doc/posix-functions/signgam.texi: Likewise.
31511         * doc/posix-functions/sigset.texi: Likewise.
31512         * doc/posix-functions/stpcpy.texi: Likewise.
31513         * doc/posix-functions/stpncpy.texi: Likewise.
31514         * doc/posix-functions/strerror.texi: Likewise.
31515         * doc/posix-functions/strtod.texi: Likewise.
31516         * doc/posix-functions/symlinkat.texi: Likewise.
31517         * doc/posix-functions/unlinkat.texi: Likewise.
31518         * doc/posix-functions/utimensat.texi: Likewise.
31519         * doc/glibc-functions/bindresvport.texi: Likewise.
31520         * doc/glibc-functions/dn_expand.texi: Likewise.
31521         * doc/glibc-functions/exp10.texi: Likewise.
31522         * doc/glibc-functions/exp10f.texi: Likewise.
31523         * doc/glibc-functions/fgetxattr.texi: Likewise.
31524         * doc/glibc-functions/flistxattr.texi: Likewise.
31525         * doc/glibc-functions/fopencookie.texi: Likewise.
31526         * doc/glibc-functions/freeifaddrs.texi: Likewise.
31527         * doc/glibc-functions/fremovexattr.texi: Likewise.
31528         * doc/glibc-functions/fsetxattr.texi: Likewise.
31529         * doc/glibc-functions/getifaddrs.texi: Likewise.
31530         * doc/glibc-functions/getxattr.texi: Likewise.
31531         * doc/glibc-functions/lgetxattr.texi: Likewise.
31532         * doc/glibc-functions/listxattr.texi: Likewise.
31533         * doc/glibc-functions/llistxattr.texi: Likewise.
31534         * doc/glibc-functions/lremovexattr.texi: Likewise.
31535         * doc/glibc-functions/lsetxattr.texi: Likewise.
31536         * doc/glibc-functions/pow10.texi: Likewise.
31537         * doc/glibc-functions/pow10f.texi: Likewise.
31538         * doc/glibc-functions/rcmd_af.texi: Likewise.
31539         * doc/glibc-functions/removexattr.texi: Likewise.
31540         * doc/glibc-functions/res_init.texi: Likewise.
31541         * doc/glibc-functions/res_mkquery.texi: Likewise.
31542         * doc/glibc-functions/res_query.texi: Likewise.
31543         * doc/glibc-functions/res_querydomain.texi: Likewise.
31544         * doc/glibc-functions/res_send.texi: Likewise.
31545         * doc/glibc-functions/rresvport_af.texi: Likewise.
31546         * doc/glibc-functions/setxattr.texi: Likewise.
31547         * doc/glibc-functions/strcasestr.texi: Likewise.
31548
31549 2008-12-15  Bruno Haible  <bruno@clisp.org>
31550
31551         Fix compilation error on OSF/1 4.0.
31552         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
31553         <sys/time.h>, simply delegate to the system header.
31554         Reported by Daniel Richard G. <oss@teragram.com>.
31555
31556 2008-12-15  Bruno Haible  <bruno@clisp.org>
31557
31558         * doc/posix-functions/openat.texi: Mention the 'openat' module.
31559         * doc/posix-functions/fchmodat.texi: Likewise.
31560         * doc/posix-functions/fchownat.texi: Likewise.
31561         * doc/posix-functions/fdopendir.texi: Likewise.
31562         * doc/posix-functions/fstatat.texi: Likewise.
31563         * doc/posix-functions/mkdirat.texi: Likewise.
31564         * doc/posix-functions/unlinkat.texi: Likewise.
31565
31566 2008-12-14  Bruno Haible  <bruno@clisp.org>
31567
31568         Update doc for POSIX:2008.
31569         * doc/posix-functions/faccessat.texi: New file.
31570         * doc/posix-functions/fchmodat.texi: New file.
31571         * doc/posix-functions/fchownat.texi: New file.
31572         * doc/posix-functions/fdopendir.texi: New file.
31573         * doc/posix-functions/fstatat.texi: New file.
31574         * doc/posix-functions/futimens.texi: New file.
31575         * doc/posix-functions/linkat.texi: New file.
31576         * doc/posix-functions/mkdirat.texi: New file.
31577         * doc/posix-functions/mkfifoat.texi: New file.
31578         * doc/posix-functions/mknodat.texi: New file.
31579         * doc/posix-functions/open_wmemstream.texi: New file.
31580         * doc/posix-functions/openat.texi: New file.
31581         * doc/posix-functions/psiginfo.texi: New file.
31582         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
31583         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
31584         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
31585         * doc/posix-functions/readlinkat.texi: New file.
31586         * doc/posix-functions/renameat.texi: New file.
31587         * doc/posix-functions/strerror_l.texi: New file.
31588         * doc/posix-functions/symlinkat.texi: New file.
31589         * doc/posix-functions/unlinkat.texi: New file.
31590         * doc/posix-functions/utimensat.texi: New file.
31591         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31592
31593 2008-12-14  Bruno Haible  <bruno@clisp.org>
31594
31595         Update doc for POSIX:2008.
31596         * doc/posix-functions/alphasort.texi: Renamed from
31597         doc/glibc-functions/alphasort.texi.
31598         * doc/posix-functions/dirfd.texi: Renamed from
31599         doc/glibc-functions/dirfd.texi.
31600         * doc/posix-functions/dprintf.texi: Renamed from
31601         doc/glibc-functions/dprintf.texi.
31602         * doc/posix-functions/duplocale.texi: Renamed from
31603         doc/glibc-functions/duplocale.texi.
31604         * doc/posix-functions/fexecve.texi: Renamed from
31605         doc/glibc-functions/fexecve.texi.
31606         * doc/posix-functions/fmemopen.texi: Renamed from
31607         doc/glibc-functions/fmemopen.texi.
31608         * doc/posix-functions/freelocale.texi: Renamed from
31609         doc/glibc-functions/freelocale.texi.
31610         * doc/posix-functions/getdate_err.texi: Renamed from
31611         doc/glibc-functions/getdate_err.texi.
31612         * doc/posix-functions/isalnum_l.texi: Renamed from
31613         doc/glibc-functions/isalnum_l.texi.
31614         * doc/posix-functions/isalpha_l.texi: Renamed from
31615         doc/glibc-functions/isalpha_l.texi.
31616         * doc/posix-functions/isblank_l.texi: Renamed from
31617         doc/glibc-functions/isblank_l.texi.
31618         * doc/posix-functions/iscntrl_l.texi: Renamed from
31619         doc/glibc-functions/iscntrl_l.texi.
31620         * doc/posix-functions/isdigit_l.texi: Renamed from
31621         doc/glibc-functions/isdigit_l.texi.
31622         * doc/posix-functions/isgraph_l.texi: Renamed from
31623         doc/glibc-functions/isgraph_l.texi.
31624         * doc/posix-functions/islower_l.texi: Renamed from
31625         doc/glibc-functions/islower_l.texi.
31626         * doc/posix-functions/isprint_l.texi: Renamed from
31627         doc/glibc-functions/isprint_l.texi.
31628         * doc/posix-functions/ispunct_l.texi: Renamed from
31629         doc/glibc-functions/ispunct_l.texi.
31630         * doc/posix-functions/isspace_l.texi: Renamed from
31631         doc/glibc-functions/isspace_l.texi.
31632         * doc/posix-functions/isupper_l.texi: Renamed from
31633         doc/glibc-functions/isupper_l.texi.
31634         * doc/posix-functions/iswalnum_l.texi: Renamed from
31635         doc/glibc-functions/iswalnum_l.texi.
31636         * doc/posix-functions/iswalpha_l.texi: Renamed from
31637         doc/glibc-functions/iswalpha_l.texi.
31638         * doc/posix-functions/iswblank_l.texi: Renamed from
31639         doc/glibc-functions/iswblank_l.texi.
31640         * doc/posix-functions/iswcntrl_l.texi: Renamed from
31641         doc/glibc-functions/iswcntrl_l.texi.
31642         * doc/posix-functions/iswctype_l.texi: Renamed from
31643         doc/glibc-functions/iswctype_l.texi.
31644         * doc/posix-functions/iswdigit_l.texi: Renamed from
31645         doc/glibc-functions/iswdigit_l.texi.
31646         * doc/posix-functions/iswgraph_l.texi: Renamed from
31647         doc/glibc-functions/iswgraph_l.texi.
31648         * doc/posix-functions/iswlower_l.texi: Renamed from
31649         doc/glibc-functions/iswlower_l.texi.
31650         * doc/posix-functions/iswprint_l.texi: Renamed from
31651         doc/glibc-functions/iswprint_l.texi.
31652         * doc/posix-functions/iswpunct_l.texi: Renamed from
31653         doc/glibc-functions/iswpunct_l.texi.
31654         * doc/posix-functions/iswspace_l.texi: Renamed from
31655         doc/glibc-functions/iswspace_l.texi.
31656         * doc/posix-functions/iswupper_l.texi: Renamed from
31657         doc/glibc-functions/iswupper_l.texi.
31658         * doc/posix-functions/iswxdigit_l.texi: Renamed from
31659         doc/glibc-functions/iswxdigit_l.texi.
31660         * doc/posix-functions/isxdigit_l.texi: Renamed from
31661         doc/glibc-functions/isxdigit_l.texi.
31662         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
31663         doc/glibc-functions/mbsnrtowcs.texi.
31664         * doc/posix-functions/mkdtemp.texi: Renamed from
31665         doc/glibc-functions/mkdtemp.texi.
31666         * doc/posix-functions/newlocale.texi: Renamed from
31667         doc/glibc-functions/newlocale.texi.
31668         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
31669         doc/glibc-functions/nl_langinfo_l.texi.
31670         * doc/posix-functions/open_memstream.texi: Renamed from
31671         doc/glibc-functions/open_memstream.texi.
31672         * doc/posix-functions/opterr.texi: Renamed from
31673         doc/glibc-functions/opterr.texi.
31674         * doc/posix-functions/optind.texi: Renamed from
31675         doc/glibc-functions/optind.texi.
31676         * doc/posix-functions/optopt.texi: Renamed from
31677         doc/glibc-functions/optopt.texi.
31678         * doc/posix-functions/psignal.texi: Renamed from
31679         doc/glibc-functions/psignal.texi.
31680         * doc/posix-functions/scandir.texi: Renamed from
31681         doc/glibc-functions/scandir.texi.
31682         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
31683         doc/glibc-functions/sched_get_priority_min.texi.
31684         * doc/posix-functions/signgam.texi: Renamed from
31685         doc/glibc-functions/signgam.texi.
31686         * doc/posix-functions/stpcpy.texi: Renamed from
31687         doc/glibc-functions/stpcpy.texi.
31688         * doc/posix-functions/stpncpy.texi: Renamed from
31689         doc/glibc-functions/stpncpy.texi.
31690         * doc/posix-functions/strcasecmp_l.texi: Renamed from
31691         doc/glibc-functions/strcasecmp_l.texi.
31692         * doc/posix-functions/strcoll_l.texi: Renamed from
31693         doc/glibc-functions/strcoll_l.texi.
31694         * doc/posix-functions/strfmon_l.texi: Renamed from
31695         doc/glibc-functions/strfmon_l.texi.
31696         * doc/posix-functions/strftime_l.texi: Renamed from
31697         doc/glibc-functions/strftime_l.texi.
31698         * doc/posix-functions/strncasecmp_l.texi: Renamed from
31699         doc/glibc-functions/strncasecmp_l.texi.
31700         * doc/posix-functions/strndup.texi: Renamed from
31701         doc/glibc-functions/strndup.texi.
31702         * doc/posix-functions/strnlen.texi: Renamed from
31703         doc/glibc-functions/strnlen.texi.
31704         * doc/posix-functions/strsignal.texi: Renamed from
31705         doc/glibc-functions/strsignal.texi.
31706         * doc/posix-functions/strxfrm_l.texi: Renamed from
31707         doc/glibc-functions/strxfrm_l.texi.
31708         * doc/posix-functions/timer_gettime.texi: Renamed from
31709         doc/glibc-functions/timer_gettime.texi.
31710         * doc/posix-functions/tolower_l.texi: Renamed from
31711         doc/glibc-functions/tolower_l.texi.
31712         * doc/posix-functions/toupper_l.texi: Renamed from
31713         doc/glibc-functions/toupper_l.texi.
31714         * doc/posix-functions/towctrans_l.texi: Renamed from
31715         doc/glibc-functions/towctrans_l.texi.
31716         * doc/posix-functions/towlower_l.texi: Renamed from
31717         doc/glibc-functions/towlower_l.texi.
31718         * doc/posix-functions/towupper_l.texi: Renamed from
31719         doc/glibc-functions/towupper_l.texi.
31720         * doc/posix-functions/uselocale.texi: Renamed from
31721         doc/glibc-functions/uselocale.texi.
31722         * doc/posix-functions/vdprintf.texi: Renamed from
31723         doc/glibc-functions/vdprintf.texi.
31724         * doc/posix-functions/wcpcpy.texi:
31725         Renamed from doc/glibc-functions/wcpcpy.texi.
31726         * doc/posix-functions/wcpncpy.texi: Renamed from
31727         doc/glibc-functions/wcpncpy.texi.
31728         * doc/posix-functions/wcscasecmp.texi: Renamed from
31729         doc/glibc-functions/wcscasecmp.texi.
31730         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
31731         doc/glibc-functions/wcscasecmp_l.texi.
31732         * doc/posix-functions/wcscoll_l.texi: Renamed from
31733         doc/glibc-functions/wcscoll_l.texi.
31734         * doc/posix-functions/wcsdup.texi: Renamed from
31735         doc/glibc-functions/wcsdup.texi.
31736         * doc/posix-functions/wcsncasecmp.texi: Renamed from
31737         doc/glibc-functions/wcsncasecmp.texi.
31738         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
31739         doc/glibc-functions/wcsncasecmp_l.texi.
31740         * doc/posix-functions/wcsnlen.texi: Renamed from
31741         doc/glibc-functions/wcsnlen.texi.
31742         * doc/posix-functions/wcsnrtombs.texi: Renamed from
31743         doc/glibc-functions/wcsnrtombs.texi.
31744         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
31745         doc/glibc-functions/wcsxfrm_l.texi.
31746         * doc/posix-functions/wctrans_l.texi: Renamed from
31747         doc/glibc-functions/wctrans_l.texi.
31748         * doc/posix-functions/wctype_l.texi: Renamed from
31749         doc/glibc-functions/wctype_l.texi.
31750         * doc/gnulib.texi (Function Substitutes): Add these subsections.
31751         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
31752         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
31753         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
31754         these subsections.
31755         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
31756         Remove sections.
31757
31758 2008-12-14  Bruno Haible  <bruno@clisp.org>
31759
31760         Update doc for POSIX:2008.
31761         * doc/posix-functions/*.texi: Update URL of POSIX specification.
31762
31763 2008-12-14  Bruno Haible  <bruno@clisp.org>
31764
31765         Update doc for POSIX:2008.
31766         * doc/pastposix-functions/bcmp.texi: Renamed from
31767         doc/posix-functions/bcmp.texi.
31768         * doc/pastposix-functions/bcopy.texi: Renamed from
31769         doc/posix-functions/bcopy.texi.
31770         * doc/pastposix-functions/bsd_signal.texi: Renamed from
31771         doc/posix-functions/bsd_signal.texi.
31772         * doc/pastposix-functions/bzero.texi: Renamed from
31773         doc/posix-functions/bzero.texi.
31774         * doc/pastposix-functions/ecvt.texi: Renamed from
31775         doc/posix-functions/ecvt.texi.
31776         * doc/pastposix-functions/fcvt.texi: Renamed from
31777         doc/posix-functions/fcvt.texi.
31778         * doc/pastposix-functions/ftime.texi: Renamed from
31779         doc/posix-functions/ftime.texi.
31780         * doc/pastposix-functions/gcvt.texi: Renamed from
31781         doc/posix-functions/gcvt.texi.
31782         * doc/pastposix-functions/getcontext.texi: Renamed from
31783         doc/posix-functions/getcontext.texi.
31784         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
31785         doc/posix-functions/gethostbyaddr.texi.
31786         * doc/pastposix-functions/gethostbyname.texi: Renamed from
31787         doc/posix-functions/gethostbyname.texi.
31788         * doc/pastposix-functions/getwd.texi: Renamed from
31789         doc/posix-functions/getwd.texi.
31790         * doc/pastposix-functions/h_errno.texi: Renamed from
31791         doc/posix-functions/h_errno.texi.
31792         * doc/pastposix-functions/index.texi: Renamed from
31793         doc/posix-functions/index.texi.
31794         * doc/pastposix-functions/makecontext.texi: Renamed from
31795         doc/posix-functions/makecontext.texi.
31796         * doc/pastposix-functions/mktemp.texi: Renamed from
31797         doc/posix-functions/mktemp.texi.
31798         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
31799         doc/posix-functions/pthread_attr_getstackaddr.texi.
31800         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
31801         doc/posix-functions/pthread_attr_setstackaddr.texi.
31802         * doc/pastposix-functions/rindex.texi: Renamed from
31803         doc/posix-functions/rindex.texi.
31804         * doc/pastposix-functions/scalb.texi: Renamed from
31805         doc/posix-functions/scalb.texi.
31806         * doc/pastposix-functions/setcontext.texi: Renamed from
31807         doc/posix-functions/setcontext.texi.
31808         * doc/pastposix-functions/swapcontext.texi: Renamed from
31809         doc/posix-functions/swapcontext.texi.
31810         * doc/pastposix-functions/ualarm.texi: Renamed from
31811         doc/posix-functions/ualarm.texi.
31812         * doc/pastposix-functions/usleep.texi: Renamed from
31813         doc/posix-functions/usleep.texi.
31814         * doc/pastposix-functions/vfork.texi: Renamed from
31815         doc/posix-functions/vfork.texi.
31816         * doc/pastposix-functions/wcswcs.texi: Renamed from
31817         doc/posix-functions/wcswcs.texi.
31818         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
31819         (Function Substitutes): Update.
31820
31821 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31822
31823         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
31824         m4/strerror.m4.
31825
31826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31827             Bruno Haible  <bruno@clisp.org>
31828
31829         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
31830
31831 2008-12-13  Bruno Haible  <bruno@clisp.org>
31832
31833         * modules/strtoull (Depends-on): Remove unistd.
31834
31835 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31836
31837         * modules/strtoull (Depends-on): Add stdlib.
31838
31839 2008-12-11  Simon Josefsson  <simon@josefsson.org>
31840
31841         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
31842
31843 2008-12-10  Jim Meyering  <meyering@redhat.com>
31844
31845         gl_ASSERT: don't say assertions are disabled when they're not
31846         * m4/assert.m4 (gl_ASSERT): Do not make configure report
31847         "checking whether to enable assertions... no", when they are in
31848         fact enabled.  This is solely a bug in the output of configure.
31849         In spite of saying "no", NDEBUG was not defined in that case.
31850         Also, as noted by Eric Blake, leave assertions enabled upon
31851         --enable-assert=INVALID.
31852
31853 2008-12-10  Bruno Haible  <bruno@clisp.org>
31854
31855         Change MODULES.html to refer to POSIX:2008 where possible.
31856         * MODULES.html.sh (POSIX2008_URL): New variable.
31857         (posix_headers): Remove sys/timeb, ucontext.
31858         (posix2001_headers): New variable.
31859         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
31860         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
31861         index, makecontext, mktemp, pthread_attr_getstackaddr,
31862         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
31863         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
31864         (posix2001_functions): New variable.
31865         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
31866         otherwise.
31867
31868 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31869
31870         add missing include to parse-duration.c
31871         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
31872         * modules/parse-duration (Depends-on): Add xalloc.
31873
31874         fix sed script reading maint.mk
31875         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
31876         (syntax-check-rules): Use it.
31877
31878 2008-12-09  Bruno Haible  <bruno@clisp.org>
31879
31880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
31881         MacOS X 10.4/PowerPC.
31882         Reported by Simon Josefsson.
31883
31884 2008-12-08  Jim Meyering  <meyering@redhat.com>
31885
31886         work around mingw's lack of some S_IF definitions
31887         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
31888         Reported by Simon Josefsson.
31889
31890 2008-12-08  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
31893         applied to variables. Needed on MacOS X 10.4/PowerPC.
31894         Reported by Simon Josefsson.
31895
31896 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
31897         and Eric Blake  <ebb9@byu.net>
31898
31899         assert: honor --enable-assert
31900         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
31901         order to honor --enable-assert, rather than treating it as a
31902         synonym for --disable-assert.
31903
31904 2008-12-08  Jim Meyering  <meyering@redhat.com>
31905
31906         * lib/posixtm.c: Remove now-useless declaration of mktime.
31907
31908         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
31909
31910 2008-12-07  Bruno Haible  <bruno@clisp.org>
31911
31912         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
31913         test_once): Mark functions as static.
31914         * tests/test-tls.c (test_tls): Likewise.
31915
31916 2008-12-07  Bruno Haible  <bruno@clisp.org>
31917
31918         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
31919         iconv_register_autodetect.
31920
31921 2008-12-07  Jim Meyering  <meyering@redhat.com>
31922
31923         posixtm.c: avoid a warning
31924         * lib/posixtm.c (posixtime): Don't initialize tm0.
31925         It's no longer needed to placate gcc4's -Wuninitialized,
31926         and the attempt to placate would elicit a new warning.
31927
31928         unicodeio.c: mark unused parameters
31929         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31930         (fallback_failure_callback): Likewise.
31931
31932 2008-12-07  Bruno Haible  <bruno@clisp.org>
31933
31934         * gnulib-tool (func_create_testdir): When building the tests
31935         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
31936         Reported by Simon Josefsson.
31937
31938 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31939
31940         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
31941
31942 2008-12-06  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
31945         Suggested by Eric Blake.
31946
31947 2008-12-06  Bruno Haible  <bruno@clisp.org>
31948
31949         Fix a c-stack test failure on MacOS X.
31950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
31951         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
31952         handler for SIGBUS as well.
31953         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
31954         install a signal handler for SIGBUS as well.
31955         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
31956
31957 2008-12-06  Bruno Haible  <bruno@clisp.org>
31958
31959         Advocacy documentation.
31960         * doc/gnulib-intro.texi (Benefits): New section.
31961         * doc/gnulib.texi: Update.
31962
31963 2008-12-06  Bruno Haible  <bruno@clisp.org>
31964
31965         Document the 'manywarnings' module.
31966         * doc/manywarnings.texi: New file.
31967         * doc/gnulib.texi: Include it.
31968
31969 2008-12-05  Eric Blake  <ebb9@byu.net>
31970
31971         tests: silence some gcc warnings
31972         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
31973         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31974         type mismatches.
31975
31976 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31977             Bruno Haible  <bruno@clisp.org>
31978
31979         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31980
31981 2008-11-29  Jim Meyering  <meyering@redhat.com>
31982
31983         unicodeio.c: mark unused parameters
31984         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31985         (fallback_failure_callback): Likewise.
31986
31987         fts: fix a thinko
31988         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31989         (set_stat_type): Return S_IF*-valued "type" directly.
31990         Prompted by James Youngman's spotting a related bug.
31991         Confirmed by further testing through find.
31992
31993         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31994         * lib/fts.c (D_TYPE): Define.
31995         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31996         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31997         (s_ifmt_shift_bits): New function.
31998         (set_stat_type): New function.
31999         (fts_build): When not calling fts_stat, call set_stat_type
32000         to propagate dirent.d_type info to fts_read caller.
32001         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32002         fts_statp->st_mode type information may be valid.
32003
32004 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32005
32006         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32007         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32008         <sds@gnu.org>.
32009
32010 2008-11-20  Bruno Haible  <bruno@clisp.org>
32011
32012         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32013         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32014         INCLUDE_NEXT.
32015         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32016         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32017         * modules/math (Makefile.am): Substitute
32018         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32020
32021 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32022             Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/stdint.in.h: Define all type macros so that their expansion is
32025         a single typedef'ed token. Fixes a compilation failure in Boost which
32026         does "using ::int8_t;".
32027
32028 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32029
32030         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32031         gl_MANYWARN_ALL_GCC.
32032         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32033         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32034         * modules/manywarnings: New file.
32035         * MODULES.html.sh: Mention manywarnings module.
32036
32037 2008-11-18  Bruno Haible  <bruno@clisp.org>
32038
32039         * doc/gnulib-tool.texi (Unit tests): New section.
32040
32041 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32042
32043         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32044         paths like 'lib/po/foo.po'.
32045
32046 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32047
32048         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32049         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32050
32051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32052
32053         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32054         parameter works.
32055
32056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32057
32058         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32059
32060 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32061
32062         * modules/parse-duration-tests: New file.
32063         * tests/test-parse-duration.sh: New file.
32064         * tests/test-parse-duration.c: New file.
32065
32066         New module 'parse-duration'.
32067         * lib/parse-duration.h: New file.
32068         * lib/parse-duration.c: New file.
32069         * modules/parse-duration: New file.
32070
32071 2008-11-17  Bruno Haible  <bruno@clisp.org>
32072
32073         * tests/test-select-out.sh: Comment out the first pipe test.
32074         Reported by Simon Josefsson.
32075
32076 2008-11-17  Bruno Haible  <bruno@clisp.org>
32077
32078         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32080         gl_HOSTENT.
32081
32082 2008-11-17  Bruno Haible  <bruno@clisp.org>
32083
32084         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32085         -lnetwork and -lnet. Needed for Haiku and BeOS.
32086
32087 2008-11-16  Bruno Haible  <bruno@clisp.org>
32088
32089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32090
32091 2008-11-16  Bruno Haible  <bruno@clisp.org>
32092
32093         Avoid test failure on Haiku.
32094         * tests/test-fsync.c: Include <errno.h>.
32095         (main): Don't require that fsync (0) fails.
32096
32097 2008-11-15  Bruno Haible  <bruno@clisp.org>
32098
32099         New module 'hostent'.
32100         * modules/hostent: New file.
32101         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32102
32103 2008-11-15  Bruno Haible  <bruno@clisp.org>
32104
32105         New module 'servent'.
32106         * modules/servent: New file.
32107         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32108
32109 2008-11-15  Bruno Haible  <bruno@clisp.org>
32110
32111         Avoid generating same test program with two different rules.
32112         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32113         test-frexp to test-frexp-nolibm.
32114         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32115         test-frexpl to test-frexpl-nolibm.
32116
32117 2008-11-15  Bruno Haible  <bruno@clisp.org>
32118
32119         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32120         $(FREXPL_LIBM).
32121
32122 2008-11-15  Bruno Haible  <bruno@clisp.org>
32123
32124         * lib/netdb.in.h: Activate the definitions also when the system's
32125         <netdb.h> has 'struct addrinfo'.
32126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32127         EAI_OVERFLOW or AI_NUMERICSERV.
32128         * doc/posix-headers/netdb.texi: Document the problem.
32129
32130 2008-11-15  Bruno Haible  <bruno@clisp.org>
32131
32132         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32133
32134         Make the 'sched' module work on platforms where <sched.h> exists but
32135         is incomplete (such as Haiku).
32136         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32137         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32138         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32139         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32140         HAVE_STRUCT_SCHED_PARAM.
32141         * modules/sched (Depends-on): Add include_next.
32142         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32143         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32144         * doc/posix-headers/sched.texi: Document the issue.
32145
32146 2008-11-13  Jim Meyering  <meyering@redhat.com>
32147
32148         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32149         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32150         test would fail due to the difference in the Report bugs to ...
32151         line.  The expected address is empty, "<>", while the actual
32152         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32153
32154 2008-11-12  Bruno Haible  <bruno@clisp.org>
32155
32156         lstat: don't compile lstat.c on systems lacking lstat
32157         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32158         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32159         Reported by Daniel P. Berrange via Jim Meyering.
32160
32161 2008-11-12  Jim Meyering  <meyering@redhat.com>
32162
32163         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32164
32165 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32166
32167         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32168         instead.
32169
32170 2008-11-12  Bruno Haible  <bruno@clisp.org>
32171
32172         * lib/unicodeio.c: Include unistr.h.
32173         (utf8_wctomb): Remove function.
32174         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32175
32176 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32177
32178         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32179         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32180         <bruno@clisp.org>.
32181         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32182
32183 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32184
32185         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32186         * doc/gnulib.texi: Add section for warnings.
32187
32188 2008-11-11  Bruno Haible  <bruno@clisp.org>
32189
32190         * lib/sockets.h: Add a comment.
32191
32192 2008-11-11  Karl Berry  <karl@gnu.org>
32193
32194         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32195
32196 2008-11-11  Eric Blake  <ebb9@byu.net>
32197
32198         fdl.texi: avoid git symlinks
32199         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32200
32201 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32202
32203         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32204
32205 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32206
32207         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32208         (gl_WARN_ADD): Substitute $2 if literal.
32209
32210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32211
32212         * m4/warning.m4: Remove.
32213
32214 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32215
32216         * m4/warnings.m4: Almost complete rewrite. :-)
32217
32218 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32219
32220         * modules/warnings: New module.
32221         * m4/warnings.m4: New file.
32222         * MODULES.html.sh: Mention warnings module.
32223         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32224         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32225
32226 2008-11-10  Eric Blake  <ebb9@byu.net>
32227
32228         fdl.texi: make a symlink to the latest version
32229         * doc/standards.texi: Revert today's earlier change.
32230         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32231         * doc/fdl.texi: ...and replace this with a symlink to the newer
32232         fdl-1.3.texi.
32233
32234 2008-11-10  Bruno Haible  <bruno@clisp.org>
32235
32236         * tests/test-select-fd.c (main): Accept the result file name as fourth
32237         argument.
32238         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32239         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32240
32241 2008-11-10  Bruno Haible  <bruno@clisp.org>
32242
32243         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
32244         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
32245         as autoconf-substituted macros.
32246         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
32247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
32248         gl_NETDB_H_DEFAULTS. Set these variables.
32249         * modules/netdb (Makefile.am): Substitute these variables.
32250
32251 2008-11-10  Eric Blake  <ebb9@byu.net>
32252
32253         standards.texi: include correct file for FDL 1.3
32254         * doc/standards.texi (GNU Free Documentation License): Change
32255         include file to pull in FDL 1.3, not 1.2.
32256
32257         fdl.texi: revert accidental change to license
32258         * doc/fdl.texi: This is FDL 1.2, not 1.3.
32259
32260 2008-11-10  Bruno Haible  <bruno@clisp.org>
32261
32262         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
32263         cross-compiling guesses also when the native compile gives no result.
32264
32265 2008-11-10  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/spawni.c (__spawni): Force variable into the stack.
32268
32269 2008-11-10  Bruno Haible  <bruno@clisp.org>
32270
32271         Add support for Haiku.
32272         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
32273         glibc and BeOS, but also on Haiku.
32274         * lib/fpurge.c (fpurge): Likewise.
32275         * lib/freadable.c (freadable): Likewise.
32276         * lib/freadahead.c (freadahead): Likewise.
32277         * lib/freading.c (freading): Likewise.
32278         * lib/freadptr.c (freadptr): Likewise.
32279         * lib/freadseek.c (freadptrinc): Likewise.
32280         * lib/fseeko.c (rpl_fseeko): Likewise.
32281         * lib/fseterr.c (fseterr): Likewise.
32282         * lib/fwritable.c (fwritable): Likewise.
32283         * lib/fwriting.c (fwriting): Likewise.
32284         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
32285
32286 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32287
32288         * lib/config.charset: Treat Haiku like BeOS.
32289
32290 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
32291
32292         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
32293         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
32294
32295 2008-11-08  Bruno Haible  <bruno@clisp.org>
32296
32297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
32298         AC_CACHE_CHECK.
32299
32300 2008-11-08  Bruno Haible  <bruno@clisp.org>
32301
32302         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
32303
32304 2008-11-08  Bruno Haible  <bruno@clisp.org>
32305
32306         * tests/test-select-fd.c: New file.
32307         * tests/test-select-in.sh: New file.
32308         * tests/test-select-out.sh: New file.
32309         * tests/test-select-stdin.c: New file.
32310         * modules/select-tests (Files): Add the new files.
32311         (Depends-on): Add gettimeofday.
32312         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
32313         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
32314         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
32315
32316 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
32317             Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
32320
32321 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
32322
32323         * build-aux/pmccabe2html: Added support for C++ source files.
32324
32325 2008-11-05  Ben Pfaff  <blp@gnu.org>
32326
32327         Fix lib/close.c build on Windows.
32328         * modules/close (Files): Add lib/w32sock.h.
32329
32330 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
32331
32332         Accept Bison's NEWS format.
32333         * build-aux/announce-gen (print_news_deltas): Tweak
32334         $re_prefix.
32335
32336 2008-11-04  Bruno Haible  <bruno@clisp.org>
32337
32338         * modules/random_r (Maintainer): Add glibc.
32339
32340 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32341
32342         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
32343         by karl@freefriends.org (Karl Berry).
32344         * doc/alloca.texi: Likewise.
32345         * doc/c-ctype.texi: Likewise.
32346         * doc/c-strcase.texi: Likewise.
32347         * doc/c-strcaseeq.texi: Likewise.
32348         * doc/c-strcasestr.texi: Likewise.
32349         * doc/c-strstr.texi: Likewise.
32350         * doc/c-strtod.texi: Likewise.
32351         * doc/c-strtold.texi: Likewise.
32352         * doc/ctime.texi: Likewise.
32353         * doc/error.texi: Likewise.
32354         * doc/fdl.texi: Likewise.
32355         * doc/gcd.texi: Likewise.
32356         * doc/getdate.texi: Likewise.
32357         * doc/gnulib-intro.texi: Likewise.
32358         * doc/gnulib-tool.texi: Likewise.
32359         * doc/gnulib.texi: Likewise.
32360         * doc/inet_ntoa.texi: Likewise.
32361         * doc/maintain.texi: Likewise.
32362         * doc/make-stds.texi: Likewise.
32363         * doc/quote.texi: Likewise.
32364         * doc/regexprops-generic.texi: Likewise.
32365         * doc/standards.texi: Likewise.
32366         * doc/verify.texi: Likewise.
32367         * doc/visibility.texi: Likewise.
32368         * doc/gnulib.texi (GNU Free Documentation License): Include
32369         fdl-1.3.texi instead of fdl.texi.
32370
32371 2008-11-04  Simon Josefsson  <simon@josefsson.org>
32372
32373         * doc/fdl-1.3.texi: New file, from
32374         <http://www.gnu.org/licenses/fdl-1.3.texi>.
32375         * modules/fdl-1.3: Add.
32376         * MODULES.html.sh: Add fdl-1.3.
32377
32378 2008-11-03  Bruno Haible  <bruno@clisp.org>
32379
32380         Make determination of absolute name of header file work with AIX xlc.
32381         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
32382         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
32383         preprocessing.
32384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32385         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32386
32387 2008-11-03  Simon Josefsson  <simon@josefsson.org>
32388
32389         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
32390         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
32391         <ludo@gnu.org>.
32392
32393 2008-11-02  Bruno Haible  <bruno@clisp.org>
32394
32395         Mark 'strpbrk' obsolete.
32396         * modules/strpbrk (Status, Notice): New sections.
32397         * modules/strtok_r (Depends-on): Add strpbrk.
32398
32399 2008-11-02  Bruno Haible  <bruno@clisp.org>
32400
32401         Mark 'strdup' obsolete.
32402         * modules/strdup (Status, Notice): New sections.
32403         * modules/findprog (Depends-on): Add strdup.
32404         * modules/getaddrinfo (Depends-on): Likewise.
32405         * modules/localename (Depends-on): Likewise.
32406         * modules/relocatable-lib (Depends-on): Likewise.
32407         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
32408         * modules/relocatable-prog (Depends-on): Likewise.
32409         * modules/trim (Depends-on): Likewise.
32410         * modules/unictype/gen-ctype (Depends-on): Likewise.
32411         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32412
32413 2008-11-02  Bruno Haible  <bruno@clisp.org>
32414
32415         Mark 'strcspn' obsolete.
32416         * modules/strcspn (Status, Notice): New sections.
32417
32418 2008-11-02  Bruno Haible  <bruno@clisp.org>
32419
32420         Mark 'rmdir' obsolete.
32421         * modules/rmdir (Status, Notice): New sections.
32422         * modules/clean-temp (Depends-on): Add rmdir.
32423         * modules/openat (Depends-on): Likewise.
32424
32425 2008-11-02  Bruno Haible  <bruno@clisp.org>
32426
32427         Mark 'raise' obsolete.
32428         * modules/raise (Status, Notice): New sections.
32429         (Include): Specify <signal.h>.
32430         * modules/stdio (Depends-on): Add raise.
32431         * modules/write (Depends-on): Likewise.
32432
32433 2008-11-02  Bruno Haible  <bruno@clisp.org>
32434
32435         Mark 'memset' obsolete.
32436         * modules/memset (Status, Notice): New sections.
32437
32438 2008-11-02  Bruno Haible  <bruno@clisp.org>
32439
32440         Mark 'memmove' obsolete.
32441         * modules/memmove (Status, Notice): New sections.
32442         * modules/argp (Depends-on): Add memmove.
32443         * modules/argz (Depends-on): Likewise.
32444         * modules/canonicalize (Depends-on): Likewise.
32445         * modules/canonicalize-lgpl (Depends-on): Likewise.
32446         * modules/fts (Depends-on): Likewise.
32447         * modules/getcwd (Depends-on): Likewise.
32448         * modules/human (Depends-on): Likewise.
32449         * modules/regex (Depends-on): Likewise.
32450         * modules/striconveh (Depends-on): Likewise.
32451         * modules/trim (Depends-on): Likewise.
32452         * modules/unistr/u8-move (Depends-on): Likewise.
32453         * modules/unistr/u16-move (Depends-on): Likewise.
32454         * modules/unistr/u32-move (Depends-on): Likewise.
32455
32456 2008-11-02  Bruno Haible  <bruno@clisp.org>
32457
32458         Mark 'memcpy' obsolete.
32459         * modules/memcpy (Status, Notice): New sections.
32460
32461 2008-11-02  Bruno Haible  <bruno@clisp.org>
32462
32463         Mark 'memcmp' obsolete.
32464         * modules/memcmp (Status, Notice): New sections.
32465         * modules/argmatch (Depends-on): Add memchr.
32466         * modules/backupfile (Depends-on): Likewise.
32467         * modules/c-strcasestr (Depends-on): Likewise.
32468         * modules/crypto/des (Depends-on): Likewise.
32469         * modules/csharpcomp (Depends-on): Likewise.
32470         * modules/fnmatch (Depends-on): Likewise.
32471         * modules/git-merge-changelog (Depends-on): Likewise.
32472         * modules/isnand (Depends-on): Likewise.
32473         * modules/isnand-nolibm (Depends-on): Likewise.
32474         * modules/isnanf (Depends-on): Likewise.
32475         * modules/isnanf-nolibm (Depends-on): Likewise.
32476         * modules/isnanl (Depends-on): Likewise.
32477         * modules/isnanl-nolibm (Depends-on): Likewise.
32478         * modules/mbchar (Depends-on): Likewise.
32479         * modules/memcoll (Depends-on): Likewise.
32480         * modules/quotearg (Depends-on): Likewise.
32481         * modules/regex (Depends-on): Likewise.
32482         * modules/relocatable-prog (Depends-on): Likewise.
32483         * modules/same (Depends-on): Likewise.
32484         * modules/signbit (Depends-on): Likewise.
32485         * modules/strcasestr-simple (Depends-on): Likewise.
32486         * modules/unictype/gen-ctype (Depends-on): Likewise.
32487         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
32488         * modules/uniname/uniname (Depends-on): Likewise.
32489         * modules/unistr/u8-cmp (Depends-on): Likewise.
32490
32491 2008-11-02  Bruno Haible  <bruno@clisp.org>
32492
32493         Mark 'memchr' obsolete.
32494         * modules/memchr (Status, Notice): New sections.
32495         * modules/argp (Depends-on): Add memchr.
32496         * modules/base64 (Depends-on): Likewise.
32497         * modules/c-strcasestr (Depends-on): Likewise.
32498         * modules/chdir-long (Depends-on): Likewise.
32499         * modules/fnmatch (Depends-on): Likewise.
32500         * modules/getsubopt (Depends-on): Likewise.
32501         * modules/git-merge-changelog (Depends-on): Likewise.
32502         * modules/glob (Depends-on): Likewise.
32503         * modules/strcasestr-simple (Depends-on): Likewise.
32504         * modules/strnlen (Depends-on): Likewise.
32505
32506 2008-11-02  Bruno Haible  <bruno@clisp.org>
32507
32508         Mark 'atexit' obsolete.
32509         * modules/atexit (Status, Notice): New sections.
32510         * modules/chdir-long (Depends-on): Add atexit.
32511         * modules/wait-process (Depends-on): Likewise.
32512
32513 2008-11-02  Bruno Haible  <bruno@clisp.org>
32514
32515         * gnulib-tool: New option --with-obsolete.
32516         (func_usage): Document it.
32517         (func_modules_transitive_closure): Drop obsolete dependencies if
32518         incobsolete is not true.
32519         (func_import): Read and save the incobsolete variable to the cache.
32520
32521 2008-11-02  Bruno Haible  <bruno@clisp.org>
32522
32523         * modules/TEMPLATE-EXTENDED: New field 'Status'.
32524         * gnulib-tool: New option --extract-status.
32525         (func_usage): Document it.
32526         (sed_extract_prog): Recognize it.
32527         (func_get_status): New function.
32528
32529 2008-10-30  Simon Josefsson  <simon@josefsson.org>
32530
32531         * modules/sockets (License): Change from LGPL to LGPLv2+.
32532
32533 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32534
32535         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
32536
32537 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32538
32539         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32540         Mention times and sys_times.
32541         * modules/sys_times, modules/sys_times-tests: New modules.
32542         * modules/times, modules/times-tests: Likewise
32543         * m4/sys_times_h.m4: New file.
32544         * lib/sys_times.in.h: Likewise
32545         * lib/times.c: Likewise.
32546         * tests/test-sys_times.c: Likewise.
32547         * tests/test-times.c: Likewise.
32548         * doc/posix-headers/sys_times.texi: Update.
32549         * doc/posix-functions/times.texi: Update.
32550
32551 2008-10-28  Jim Meyering  <meyering@redhat.com>
32552
32553         * modules/tempname (Depends-on): Add lstat.
32554
32555         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
32556
32557 2008-10-28  Simon Josefsson  <simon@josefsson.org>
32558
32559         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
32560         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
32561         using idiom used elsewhere in gnulib.
32562
32563 2008-10-27  Jim Meyering  <meyering@redhat.com>
32564
32565         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
32566
32567 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32568
32569         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
32570         TESTS_ENVIRONMENT, for shell scripts that needs to call built
32571         programs.
32572         * tests/test-argp-2.sh: Use $EXEEXT when needed.
32573
32574 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32575
32576         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
32577
32578 2008-10-27  Bruno Haible  <bruno@clisp.org>
32579
32580         * tests/test-lstat.c: Include <stdio.h>.
32581
32582 2008-10-27  Simon Josefsson  <simon@josefsson.org>
32583
32584         * modules/lstat-tests: New module.
32585         * tests/test-lstat.c: New file.
32586
32587 2008-10-26  Jim Meyering  <meyering@redhat.com>
32588
32589         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
32590
32591 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32592             Bruno Haible  <bruno@clisp.org>
32593
32594         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
32595         * modules/configmake (Include): Add a note that the include must come
32596         after all system headers.
32597         * lib/javaversion.c: Include configmake.h after all other includes.
32598
32599 2008-10-26  Bruno Haible  <bruno@clisp.org>
32600
32601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
32602         HAVE_STRUCT_RANDOM_DATA to 1.
32603         (gl_STDLIB_H): Simplify.
32604
32605 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32606
32607         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
32608         substitute HAVE_STRUCT_RANDOM_DATA.
32609         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
32610         random_data.
32611         * modules/stdlib (Makefile.am): Substitute
32612         HAVE_STRUCT_RANDOM_DATA.
32613
32614 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32615
32616         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
32617         * doc/gnulib-intro.texi (Copyright): Likewise.
32618
32619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
32620
32621         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
32622         findings.
32623
32624 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
32625             Bruno Haible  <bruno@clisp.org>
32626
32627         * lib/unistd.in.h: Include <winsock2.h>.
32628         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
32629         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
32630         Provide dummy declarations.
32631         (gethostname): Override.
32632         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
32633         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
32634         gl_PREREQ_SYS_H_WINSOCK2.
32635         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
32636         * doc/posix-functions/gethostname.texi: More details.
32637
32638 2008-10-25  Bruno Haible  <bruno@clisp.org>
32639
32640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32641         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
32642         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
32643
32644         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
32645         here ...
32646         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
32647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
32648         gl_UNISTD_H_DEFAULTS.
32649
32650 2008-10-25  Eric Blake  <ebb9@byu.net>
32651
32652         signbit: avoid spurious compiler failure
32653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
32654         declarations inside function.
32655
32656 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32657             Bruno Haible  <bruno@clisp.org>
32658
32659         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
32660         * modules/random_r (Depends-on): Add stdint.
32661
32662 2008-10-24  Bruno Haible  <bruno@clisp.org>
32663
32664         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
32665         Eggert.
32666         * modules/strerror (License): Likewise.
32667
32668 2008-10-24  Jim Meyering  <meyering@redhat.com>
32669
32670         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
32671         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
32672
32673 2008-10-24  Eric Blake  <ebb9@byu.net>
32674
32675         getgroups: fix compilation when getgroups is available
32676         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
32677         but with <config.h> override of getgroups disabled.
32678
32679 2008-10-24  Simon Josefsson  <simon@josefsson.org>
32680
32681         * doc/gnulib.texi (Header files): Add note about C++ problems.
32682         Explained by Bruno Haible <bruno@clisp.org>.
32683
32684 2008-10-23  Bruno Haible  <bruno@clisp.org>
32685
32686         Define a dummy SA_NODEFER macro on Interix.
32687         * lib/signal.in.h (SA_NODEFER): Define fallback.
32688         Reported by Aleksey Cheusov <cheusov@tut.by> via
32689         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
32690
32691 2008-10-23  Bruno Haible  <bruno@clisp.org>
32692
32693         * modules/freadahead (License): Change to LGPLv2+.
32694         Suggested by Simon Josefsson.
32695
32696 2008-10-23  Jim Meyering  <meyering@redhat.com>
32697
32698         random_r: new module
32699         * modules/random_r: New file.
32700         * m4/random_r.m4: New file.
32701         * lib/random_r.c: New file, from glibc.
32702         * modules/random_r-tests: New file.
32703         * tests/test-random_r.c: New file.
32704         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
32705          Declare.
32706         (RAND_MAX): Define.
32707         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
32708         * modules/stdlib: Substitute them, too.
32709         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
32710         * doc/glibc-functions/initstate_r.texi: Mention the new module.
32711         * doc/glibc-functions/random_r.texi: Likewise.
32712         * doc/glibc-functions/setstate_r.texi: Likewise.
32713         * doc/glibc-functions/srandom_r.texi: Likewise.
32714         * config/srclist.txt: Mention it.
32715
32716 2008-10-23  David Lutterkort  <lutter@redhat.com>
32717
32718         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
32719         link requirement
32720
32721 2008-10-23  Jim Meyering  <meyering@redhat.com>
32722
32723         selinux-h: mark parameters of stub functions as intentionally unused
32724         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
32725         * lib/se-context.in.h: Likewise.
32726
32727 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32728
32729         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
32730
32731 2008-10-22  Simon Josefsson  <simon@josefsson.org>
32732
32733         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
32734
32735 2008-10-22  Eric Blake  <ebb9@byu.net>
32736
32737         glthread/thread: avoid compiler warning
32738         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
32739         Add unreachable abort to silence compiler.
32740
32741 2008-10-22  Eric Blake  <ebb9@byu.net>
32742
32743         netdb: also supply struct addrinfo for cygwin 1.5.x
32744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
32745         older cygwin.
32746         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
32747         cygwin.
32748         * doc/posix-headers/netdb.texi (netdb.h): Document this.
32749
32750 2008-10-22  Bruno Haible  <bruno@clisp.org>
32751
32752         * users.txt: Update entry about pspp.
32753
32754 2008-10-21  Bruno Haible  <bruno@clisp.org>
32755
32756         Simplification.
32757         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
32758         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
32759
32760         Simplification.
32761         * lib/ioctl.c (ioctl): Don't undefine.
32762         * lib/socket.c (socket): Don't undefine.
32763
32764         Remove unused module indicator macros.
32765         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
32766         GNULIB_$1 as a C macro.
32767
32768         * doc/posix-functions/close.texi: Undo last change.
32769         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
32770         Windows platforms.
32771
32772 2008-10-21  Bruno Haible  <bruno@clisp.org>
32773
32774         Add gethostname() declaration to <unistd.h>.
32775         * lib/unistd.in.h (gethostname): New declaration.
32776         * lib/gethostname.c: Include <unistd.h>.
32777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
32778         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
32779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
32780         and HAVE_GETHOSTNAME.
32781         * modules/gethostname (Depends-on): Add unistd.
32782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32783         (Include): Specify <unistd.h>.
32784         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
32785         HAVE_GETHOSTNAME.
32786         * tests/test-gethostname.c: Include <unistd.h> first.
32787
32788 2008-10-21  Bruno Haible  <bruno@clisp.org>
32789
32790         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
32791         * modules/select-tests (Depends-on): Likewise.
32792         Reported by Simon Josefsson.
32793
32794 2008-10-21  Simon Josefsson  <simon@josefsson.org>
32795
32796         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
32797         * lib/accept.c: New file, based on winsock.c.
32798         * lib/bind.c: New file, based on winsock.c.
32799         * lib/connect.c: New file, based on winsock.c.
32800         * lib/getpeername.c: New file, based on winsock.c.
32801         * lib/getsockname.c: New file, based on winsock.c.
32802         * lib/getsockopt.c: New file, based on winsock.c.
32803         * lib/ioctl.c: New file, based on winsock.c.
32804         * lib/listen.c: New file, based on winsock.c.
32805         * lib/recv.c: New file, based on winsock.c.
32806         * lib/recvfrom.c: New file, based on winsock.c.
32807         * lib/send.c: New file, based on winsock.c.
32808         * lib/sendto.c: New file, based on winsock.c.
32809         * lib/setsockopt.c: New file, based on winsock.c.
32810         * lib/shutdown.c: New file, based on winsock.c.
32811         * lib/socket.c: New file, based on winsock.c.
32812         * lib/w32sock.h: New file, based on winsock.c.
32813         * lib/winsock.c: Remove file.
32814         * modules/accept: Likewise.
32815         * modules/bind: Likewise.
32816         * modules/connect: Likewise.
32817         * modules/getpeername: Likewise.
32818         * modules/getsockname: Likewise.
32819         * modules/getsockopt: Likewise.
32820         * modules/ioctl: Likewise.
32821         * modules/listen: Likewise.
32822         * modules/recv: Likewise.
32823         * modules/recvfrom: Likewise.
32824         * modules/send: Likewise.
32825         * modules/sendto: Likewise.
32826         * modules/setsockopt: Likewise.
32827         * modules/shutdown: Likewise.
32828         * modules/socket: Use socket.c instead of winsock.c.
32829         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
32830         * doc/posix-functions/accept.texi: Doc fix.
32831         * doc/posix-functions/bind.texi: Doc fix.
32832         * doc/posix-functions/close.texi: Doc fix.
32833         * doc/posix-functions/connect.texi: Doc fix.
32834         * doc/posix-functions/getpeername.texi: Doc fix.
32835         * doc/posix-functions/getsockname.texi: Doc fix.
32836         * doc/posix-functions/getsockopt.texi: Doc fix.
32837         * doc/posix-functions/ioctl.texi: Doc fix.
32838         * doc/posix-functions/listen.texi: Doc fix.
32839         * doc/posix-functions/recv.texi: Doc fix.
32840         * doc/posix-functions/recvfrom.texi: Doc fix.
32841         * doc/posix-functions/send.texi: Doc fix.
32842         * doc/posix-functions/sendto.texi: Doc fix.
32843         * doc/posix-functions/setsockopt.texi: Doc fix.
32844         * doc/posix-functions/shutdown.texi: Doc fix.
32845         * doc/posix-functions/socket.texi: Doc fix.
32846
32847 2008-10-20  Bruno Haible  <bruno@clisp.org>
32848
32849         Take into account the role of SIGABRT_COMPAT on Windows 2008.
32850         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
32851         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
32852         as an alias for SIGABRT.
32853         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
32854         (sigaction): Map it to SIGABRT.
32855         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
32856
32857 2008-10-20  Bruno Haible  <bruno@clisp.org>
32858
32859         * lib/fts.c: Don't include lstat.h.
32860         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
32861
32862         Move the lstat() declaration to <sys/stat.h>.
32863         * lib/lstat.h: Remove file.
32864         * lib/sys_stat.in.h: Add special invocation convention.
32865         (lstat): New declaration.
32866         * lib/lstat.c (orig_lstat): New function.
32867         (rpl_lstat): Use orig_lstat instead of lstat.
32868         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
32869         AC_C_INLINE. Set REPLACE_LSTAT.
32870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
32871         and REPLACE_LSTAT.
32872         * modules/lstat (Files): Remove lib/lstat.h.
32873         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32874         (Include): Specify <sys/stat.h> instead of lstat.h.
32875         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
32876         REPLACE_LSTAT.
32877         * NEWS: Mention the change.
32878
32879 2008-10-20  Bruno Haible  <bruno@clisp.org>
32880
32881         * modules/posix_spawn-tests: New file.
32882         * tests/test-posix_spawn3.c: New file.
32883
32884 2008-10-20  Bruno Haible  <bruno@clisp.org>
32885
32886         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
32887         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32888         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
32889         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
32890         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
32891
32892 2008-10-20  Bruno Haible  <bruno@clisp.org>
32893
32894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
32895         of posix_spawn on AIX 5.3.
32896
32897 2008-10-20  Bruno Haible  <bruno@clisp.org>
32898
32899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
32900
32901 2008-10-20  Bruno Haible  <bruno@clisp.org>
32902
32903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
32904         of AC_LANG_PROGRAM.
32905
32906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32907
32908         * lib/netdb.in.h: Don't define GNU specific constants until they
32909         are supported or needed.  Reported by Bruno Haible
32910         <bruno@clisp.org>.
32911
32912 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32913
32914         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
32915
32916 2008-10-20  Simon Josefsson  <simon@josefsson.org>
32917
32918         * lib/getaddrinfo.h: Remove file.
32919         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
32920         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
32921         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
32922         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
32923         * modules/netdb: Substitute GNULIB_GETADDRINFO.
32924         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
32925         * tests/test-getaddrinfo.c: Likewise.
32926         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
32927         * NEWS: Mention change.
32928
32929 2008-10-19  Bruno Haible  <bruno@clisp.org>
32930
32931         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
32932
32933 2008-10-19  Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/wait-process.c: Include simply <sys/wait.h>.
32936         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
32937         WIFSTOPPED): Remove fallback definitions.
32938         * modules/wait-process (Depends-on): Add sys_wait.
32939
32940         New module 'sys_wait'.
32941         * modules/sys_wait: New file.
32942         * lib/sys_wait.in.h: New file, partially copied from
32943         lib/wait-process.c.
32944         * m4/sys_wait_h.m4: New file.
32945         * doc/posix-headers/sys_wait.texi: Mention the new module.
32946
32947 2008-10-19  Bruno Haible  <bruno@clisp.org>
32948
32949         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
32950
32951 2008-10-19  Bruno Haible  <bruno@clisp.org>
32952
32953         Assume that waitpid() fills an 'int' status, not a 'union wait'.
32954         * lib/wait-process.c (WAIT_T): Remove type.
32955         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
32956         (wait_subprocess): Update.
32957
32958 2008-10-19  Bruno Haible  <bruno@clisp.org>
32959
32960         New module 'atoll'.
32961         * modules/atoll: New file.
32962         * lib/stdlib.in.h (atoll): New declaration.
32963         * lib/atoll.c: New file, from glibc with modifications.
32964         * m4/atoll.m4: New file.
32965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
32966         HAVE_ATOLL.
32967         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
32968         * doc/posix-functions/atoll.texi: Mention the new module.
32969
32970 2008-10-19  Bruno Haible  <bruno@clisp.org>
32971
32972         Add strtoull() declaration to <stdlib.h>.
32973         * lib/stdlib.in.h (strtoull): New declaration.
32974         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32975         Set HAVE_STRTOULL.
32976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32977         HAVE_STRTOULL.
32978         * modules/strtoull (Depends-on): Add stdlib.
32979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32980         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32981         HAVE_STRTOULL.
32982
32983 2008-10-19  Bruno Haible  <bruno@clisp.org>
32984
32985         Add strtoll() declaration to <stdlib.h>.
32986         * lib/stdlib.in.h (strtoll): New declaration.
32987         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32988         Set HAVE_STRTOLL.
32989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32990         HAVE_STRTOLL.
32991         * modules/strtoll (Depends-on): Add stdlib.
32992         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32993         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32994
32995 2008-10-19  Bruno Haible  <bruno@clisp.org>
32996
32997         * modules/bcopy (Depends-on): Add strings.
32998         (Include): Specify <strings.h>.
32999
33000 2008-10-19  Bruno Haible  <bruno@clisp.org>
33001
33002         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33003
33004 2008-10-19  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33007         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33008         mingw.
33009
33010 2008-10-19  Bruno Haible  <bruno@clisp.org>
33011
33012         * lib/atanl.c: Don't include isnanl.h.
33013         * lib/cosl.c: Likewise.
33014         * lib/ldexpl.c: Likewise.
33015         * lib/logl.c: Likewise.
33016         * lib/sinl.c: Likewise.
33017         * lib/sqrtl.c: Likewise.
33018         * lib/tanl.c: Likewise.
33019
33020         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33021         * lib/isnanf.h: Remove file.
33022         * lib/isnand.h: Remove file.
33023         * lib/isnanl.h: Remove file.
33024         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33025         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33026         macros.
33027         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33028         HAVE_ISNANF, don't define it as a C macro.
33029         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33030         HAVE_ISNAND, don't define it as a C macro.
33031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33032         HAVE_ISNANL, don't define it as a C macro.
33033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33034         HAVE_ISNAN[FDL].
33035         * modules/isnanf (Files): Remove lib/isnanf.h.
33036         (Depends-on): Add math.
33037         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33038         (Include): Specify <math.h> instead of isnanf.h.
33039         * modules/isnand (Files): Remove lib/isnand.h.
33040         (Depends-on): Add math.
33041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33042         (Include): Specify <math.h> instead of isnand.h.
33043         * modules/isnanl (Files): Remove lib/isnanl.h.
33044         (Depends-on): Add math.
33045         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33046         (Include): Specify <math.h> instead of isnanl.h.
33047         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33048         HAVE_ISNAN[FDL].
33049         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33050         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33051         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33052         * NEWS: Mention the change.
33053
33054 2008-10-18  Bruno Haible  <bruno@clisp.org>
33055
33056         Add getusershell(), setusershell(), endusershell() declarations to
33057         <unistd.h>.
33058         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33059         declarations.
33060         * lib/getusershell.c: Include unistd.h.
33061         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33062         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33063         HAVE_GETUSERSHELL.
33064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33065         and HAVE_GETUSERSHELL.
33066         * modules/getusershell (Depends-on): Add unistd, extensions.
33067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33068         (Include): Specify <unistd.h>.
33069         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33070         HAVE_GETUSERSHELL.
33071
33072 2008-10-18  Bruno Haible  <bruno@clisp.org>
33073
33074         Add a getloadavg() declaration to <stdlib.h>.
33075         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33076         getloadavg declaration.
33077         (getloadavg): New declaration.
33078         * lib/getloadavg.c: Include <stdlib.h> first.
33079         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33080         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33081         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33083         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33084         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33086         (Include): Specify <stdlib.h>.
33087         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33089
33090 2008-10-18  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/dirchownmod.c: Don't include lchmod.h.
33093
33094         Move the lchmod() declaration to <sys/stat.h>.
33095         * lib/lchmod.h: Remove file.
33096         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33097         (lchmod): New declaration, moved here from lib/lchown.h.
33098         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33099         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33101         and HAVE_LCHMOD.
33102         * modules/lchmod (Files): Remove lib/lchmod.h.
33103         (Depends-on): Add sys_stat, extensions.
33104         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33105         (Include): Specify <sys/stat.h> instead of lchmod.h.
33106         * modules/sys_stat (Depends-on): Add link-warning.
33107         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33108         definition of GL_LINK_WARNING.
33109         * NEWS: Mention the change.
33110
33111 2008-10-18  Bruno Haible  <bruno@clisp.org>
33112
33113         * lib/fchdir.c: Don't include dirfd.h.
33114         * lib/fts.c: Likewise.
33115         * lib/getcwd.c: Likewise.
33116         * lib/glob.c: Likewise.
33117
33118         Move the dirfd() declaration to <dirent.h>.
33119         * lib/dirfd.h: Remove file.
33120         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33121         (dirfd): New declaration.
33122         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33123         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33124         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33125         HAVE_DECL_DIRFD.
33126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33127         HAVE_DECL_DIRFD.
33128         * modules/dirfd (Files): Remove lib/dirfd.h.
33129         (Depends-on): Add dirent, extensions.
33130         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33131         (Include): Specify <dirent.h> instead of dirfd.h.
33132         * modules/dirent (Depends-on): Add link-warning.
33133         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33134         definition of GL_LINK_WARNING.
33135         * NEWS: Mention the change.
33136
33137 2008-10-18  Bruno Haible  <bruno@clisp.org>
33138
33139         Move the euidaccess() declaration to <unistd.h>.
33140         * lib/euidaccess.h: Remove file.
33141         * lib/unistd.in.h (euidaccess): New declaration.
33142         * lib/euidaccess.c: Don't include euidaccess.h.
33143         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33144         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33146         and HAVE_EUIDACCESS.
33147         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33148         (Depends-on): Add unistd.
33149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33150         (Include): Specify <unistd.h> instead of euidaccess.h.
33151         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33152         HAVE_EUIDACCESS.
33153         * NEWS: Mention the change.
33154
33155 2008-10-18  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33158
33159         Move the getdomainname() declaration to <unistd.h>.
33160         * lib/getdomainname.h: Remove file.
33161         * lib/unistd.in.h (getdomainname): New declaration.
33162         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33163         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33164         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33165         HAVE_GETDOMAINNAME.
33166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33167         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33168         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33169         (Depends-on): Add unistd, extensions.
33170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33171         (Includes): Specify <unistd.h> instead of getdomainname.h.
33172         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33173         HAVE_GETDOMAINNAME.
33174         * NEWS: Mention the change.
33175
33176 2008-10-18  Bruno Haible  <bruno@clisp.org>
33177
33178         * modules/dirent: New file.
33179         * m4/dirent_h.m4: New file.
33180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33181         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33182         * modules/fchdir (Files): Remove lib/dirent.in.h.
33183         (Depends-on): Add dirent.
33184         (Makefile.am): Move rules to modules/dirent.
33185         * doc/posix-headers/dirent.texi: Mention the new module.
33186
33187 2008-10-18  Bruno Haible  <bruno@clisp.org>
33188
33189         Avoid -Wunused-parameter warnings in public gnulib header files.
33190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33191         macro.
33192         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33193
33194 2008-10-18  Bruno Haible  <bruno@clisp.org>
33195
33196         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33197         * doc/glibc-functions/error.texi: Mention the module 'error'.
33198         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33199         * doc/glibc-functions/getdomainname.texi: Mention the module
33200         'getdomainname'.
33201         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33202         * doc/glibc-functions/getpagesize.texi: Mention the module
33203         'getpagesize'.
33204         * doc/glibc-functions/getusershell.texi: Mention the module
33205         'getusershell'.
33206         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33207         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33208         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33209         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33210         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33211         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33212         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33213         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33214         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33215         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33216         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33217         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33218         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33219         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33220
33221 2008-10-17  Bruno Haible  <bruno@clisp.org>
33222
33223         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33224         HP-UX and IRIX, use -0.0L.
33225         * tests/test-ceill.c (minus_zero): Likewise.
33226         * tests/test-floorl.c (minus_zero): Likewise.
33227         * tests/test-frexpl.c (minus_zero): Likewise.
33228         * tests/test-isnan.c (minus_zerol): Likewise.
33229         * tests/test-isnanl.h (minus_zero): Likewise.
33230         * tests/test-ldexpl.c (minus_zero): Likewise.
33231         * tests/test-roundl.c (minus_zero): Likewise.
33232         * tests/test-signbit.c (minus_zerol): Likewise.
33233         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33234         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33235         * tests/test-truncl.c (minus_zero): Likewise.
33236         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33237         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33238         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33239         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33240
33241 2008-10-17  Bruno Haible  <bruno@clisp.org>
33242
33243         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
33244         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
33245         that it gets activated only for gcc >= 3.0.
33246         * lib/dirent.in.h: Likewise.
33247         * lib/errno.in.h: Likewise.
33248         * lib/fcntl.in.h: Likewise.
33249         * lib/float.in.h: Likewise.
33250         * lib/iconv.in.h: Likewise.
33251         * lib/inttypes.in.h: Likewise.
33252         * lib/locale.in.h: Likewise.
33253         * lib/math.in.h: Likewise.
33254         * lib/netdb.in.h: Likewise.
33255         * lib/netinet_in.in.h: Likewise.
33256         * lib/search.in.h: Likewise.
33257         * lib/signal.in.h: Likewise.
33258         * lib/spawn.in.h: Likewise.
33259         * lib/stdarg.in.h: Likewise.
33260         * lib/stdint.in.h: Likewise.
33261         * lib/stdio.in.h: Likewise.
33262         * lib/stdlib.in.h: Likewise.
33263         * lib/string.in.h: Likewise.
33264         * lib/strings.in.h: Likewise.
33265         * lib/sys_file.in.h: Likewise.
33266         * lib/sys_ioctl.in.h: Likewise.
33267         * lib/sys_select.in.h: Likewise.
33268         * lib/sys_socket.in.h: Likewise.
33269         * lib/sys_stat.in.h: Likewise.
33270         * lib/sys_time.in.h: Likewise.
33271         * lib/sysexits.in.h: Likewise.
33272         * lib/time.in.h: Likewise.
33273         * lib/unistd.in.h: Likewise.
33274         * lib/wchar.in.h: Likewise.
33275         * lib/wctype.in.h: Likewise.
33276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33277
33278 2008-10-17  Jim Meyering  <meyering@redhat.com>
33279
33280         ignore-value: don't depend on inline module
33281         * modules/ignore-value (Depends-on): Remove 'inline'.
33282         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
33283         Suggestion from Bruno Haible.
33284
33285 2008-10-17  Bruno Haible  <bruno@clisp.org>
33286
33287         New implementation of condition variables for Win32.
33288         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
33289         (gl_linked_waitqueue_t): New type.
33290         (gl_cond_t): Use it.
33291         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
33292         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
33293         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
33294         (glthread_cond_init_func, glthread_cond_wait_func,
33295         glthread_cond_timedwait_func, glthread_cond_signal_func,
33296         glthread_cond_broadcast_func, glthread_cond_destroy_func):
33297         Reimplemented on the basis of gl_linked_waitqueue_t.
33298         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
33299         gl_waitqueue_t.
33300         (gl_rwlock_t): Update.
33301         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
33302
33303 2008-10-17  Simon Josefsson  <simon@josefsson.org>
33304
33305         * modules/recvfrom (Depends-on): Add dependency on getpeername.
33306         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33307
33308 2008-10-17  Jim Meyering  <meyering@redhat.com>
33309
33310         ignore-value: new module
33311         * modules/ignore-value: New file.
33312         * lib/ignore-value.h: New file.
33313         * MODULES.html.sh (Compiler warning management): New section,
33314         just for this module.  More to come.
33315
33316 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33317
33318         open-safer.c: avoid 'signed and unsigned in conditional...' warning
33319         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
33320         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
33321
33322 2008-10-16  Jim Meyering  <meyering@redhat.com>
33323
33324         openat-die.c: avoid 'no previous prototype' warning
33325         * lib/openat-die.c: Include "openat.h".
33326         Reported by Reuben Thomas <rrt@sc3d.org>.
33327
33328 2008-10-16  Simon Josefsson  <simon@josefsson.org>
33329
33330         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
33331         * lib/netdb.in.h: Fix typo.
33332         Reported by Bruno Haible  <bruno@clisp.org>
33333
33334         * lib/netdb.in.h: Include sys/socket.h for platforms without
33335         netdb.h, to get structures like hostent on MinGW.
33336         * modules/netdb (Depends-on): Add sys_socket.
33337
33338 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33339
33340         * modules/netdb, modules/netdb-tests: New file.
33341         * m4/netdb_h.m4: New file.
33342         * lib/netdb.in.h: Add, currently just an empty file pending
33343         definitions.
33344         * tests/test-netdb.c: New file.
33345         * doc/posix-headers/netdb.texi: Mention that we replace it if
33346         needed.
33347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33348         netdb.
33349
33350 2008-10-15  Simon Josefsson  <simon@josefsson.org>
33351
33352         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
33353         with code.
33354
33355 2008-10-13  Bruno Haible  <bruno@clisp.org>
33356
33357         * lib/glthread/cond.c (glthread_cond_wait_func,
33358         glthread_cond_timedwait_func): Add a comment.
33359
33360 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33361
33362         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
33363         * tests/test-select.c: Likewise,
33364
33365 2008-10-13  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/glthread/cond.c (glthread_cond_wait_func,
33368         glthread_cond_timedwait_func): Fix variable name.
33369         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33370
33371 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
33372
33373         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
33374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
33375         struct sockaddr.sa_len.
33376         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
33377
33378 2008-10-13  Simon Josefsson  <simon@josefsson.org>
33379
33380         * build-aux/pmccabe2html: Add css and css_url parameters.
33381
33382 2008-10-12  Bruno Haible  <bruno@clisp.org>
33383
33384         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
33385         calling aclx_get.
33386         Reported by Rainer Tammer <tammer@tammer.net>.
33387
33388 2008-10-12  Bruno Haible  <bruno@clisp.org>
33389
33390         Use msvcrt aware primitives for creation/termination of Win32 threads.
33391         * lib/glthread/thread.c: Include <process.h>.
33392         (glthread_create_func): Use _beginthreadex instead of CreateThread.
33393         (wrapper_func): Update signature.
33394         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
33395
33396 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
33397             Bruno Haible  <bruno@clisp.org>
33398
33399         Provide a Win32 implementation of the 'cond' module.
33400         * lib/glthread/cond.h [USE_WIN32]: New implementation.
33401         * lib/glthread/cond.c (glthread_cond_init_func,
33402         glthread_cond_wait_func, glthread_cond_timedwait_func,
33403         glthread_cond_signal_func, glthread_cond_broadcast_func,
33404         glthread_cond_destroy_func) [USE_WIN32]: New functions.
33405         * modules/cond (Dependencies): Add gettimeofday.
33406
33407 2008-10-11  Bruno Haible  <bruno@clisp.org>
33408
33409         Make sleep work on older versions of mingw.
33410         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
33411         only whether it exists.
33412         * doc/posix-functions/sleep.texi: Mention the problem with older
33413         versions of mingw.
33414
33415 2008-10-11  Bruno Haible  <bruno@clisp.org>
33416
33417         New module 'shutdown'.
33418         * modules/shutdown: New file.
33419         * lib/sys_socket.in.h (shutdown): New declaration.
33420         * lib/winsock.c (shutdown): New function.
33421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33422         GNULIB_SHUTDOWN.
33423         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
33424         * doc/posix-functions/shutdown.texi: Document the new module.
33425
33426 2008-10-11  Jim Meyering  <meyering@redhat.com>
33427
33428         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
33429
33430 2008-10-11  Bruno Haible  <bruno@clisp.org>
33431
33432         New module 'fclose'.
33433         * modules/fclose: New file.
33434         * lib/stdio.in.h (fclose): New declaration.
33435         * lib/fclose.c: New file.
33436         * m4/fclose.m4: New file.
33437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
33438         REPLACE_FCLOSE.
33439         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
33440         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
33441         REPLACE_FCLOSE.
33442         * modules/close (Depends-on): fclose.
33443         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
33444
33445 2008-10-11  Bruno Haible  <bruno@clisp.org>
33446
33447         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
33448         set errno and don't call _close.
33449
33450 2008-10-10  Bruno Haible  <bruno@clisp.org>
33451
33452         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
33453         ACL, not afterwards. Fixes test failure on Cygwin.
33454
33455 2008-10-09  Ben Pfaff  <blp@gnu.org>
33456
33457         * build-aux/announce-gen: Fix gnulib version related part of usage
33458         message.  Die with a useful error message if no tarballs are
33459         found.
33460
33461 2008-10-10  Jim Meyering  <meyering@redhat.com>
33462
33463         bootstrap: use git's --depth=N option only if it's supported
33464         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
33465         recognize the --depth option.  Reported by Pádraig Brady.
33466
33467 2008-10-09  Bruno Haible  <bruno@clisp.org>
33468
33469         New module 'ioctl'.
33470         * modules/ioctl: New file.
33471         * lib/sys_socket.in.h (ioctl): Remove declaration.
33472         * lib/winsock.c: Include <sys/ioctl.h>.
33473         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
33474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33475         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
33476         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
33477         * doc/posix-functions/ioctl.texi: Mention the new module.
33478
33479 2008-10-09  Bruno Haible  <bruno@clisp.org>
33480
33481         New module 'sys_ioctl'.
33482         * lib/sys_ioctl.in.h: New file.
33483         * m4/sys_ioctl_h.m4: New file.
33484         * modules/sys_ioctl: New file.
33485         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
33486
33487 2008-10-09  Bruno Haible  <bruno@clisp.org>
33488
33489         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
33490         * lib/winsock.c: Include <stdarg.h>.
33491         (rpl_ioctl): Change to second argument 'int' and then varargs.
33492
33493 2008-10-09  Bruno Haible  <bruno@clisp.org>
33494
33495         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
33496         when the sys_socket module is present and the system has <winsock2.h>.
33497
33498 2008-10-09  Bruno Haible  <bruno@clisp.org>
33499
33500         * doc/posix-functions/close.texi: Mention module 'close' instead of
33501         module 'sys_socket'.
33502
33503 2008-10-09  Bruno Haible  <bruno@clisp.org>
33504
33505         * doc/glibc-headers/sys_ioctl.texi: New file.
33506         * doc/gnulib.texi: Include it.
33507
33508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33509             Bruno Haible  <bruno@clisp.org>
33510
33511         Combine the two replacements of 'close'.
33512         * lib/sys_socket.in.h (close): Define to a reminder to include
33513         <unistd.h>.
33514         (_gl_close_fd_maybe_socket): New declaration.
33515         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
33516         * lib/winsock.c (close): Remove undefinition.
33517         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
33518         needed for the gnulib module 'close'.
33519         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
33520         define to an error symbol or to a warning, if suitable.
33521         * lib/close.c: Include <sys/socket.h>.
33522         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
33523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
33524         UNISTD_H_HAVE_WINSOCK2_H.
33525         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
33526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33527         UNISTD_H_HAVE_WINSOCK2_H.
33528         * modules/sys_socket (Files): Add m4/unistd_h.m4.
33529         (configure.ac): Set a module indicator.
33530         (Makefile.am): Substitute GNULIB_CLOSE.
33531         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
33532         * modules/poll-tests (Depends-on): Add close.
33533         * modules/select-tests (Depends-on): Likewise.
33534
33535 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33536             Bruno Haible  <bruno@clisp.org>
33537
33538         New module 'close'.
33539         * modules/close: New file.
33540         * lib/unistd.in.h (close): Move declaration out of the
33541         FCHDIR_REPLACEMENT scope.
33542         (_gl_unregister_fd): New declaration.
33543         * lib/close.c: New file.
33544         * lib/fchdir.c (rpl_close): Remove function.
33545         * m4/close.m4: New file.
33546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33547         close.
33548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
33549         REPLACE_CLOSE.
33550         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
33551         REPLACE_CLOSE.
33552         * modules/fchdir (Depends-on): Add close.
33553
33554 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33555             Bruno Haible  <bruno@clisp.org>
33556
33557         * lib/fcntl.in.h (open): Simplify conditionals.
33558         (_gl_register_fd): New declaration.
33559         * lib/fchdir.c (rpl_open): Remove function.
33560         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
33561         also.
33562         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
33563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
33564         open.
33565
33566 2008-10-09  Jim Meyering  <meyering@redhat.com>
33567
33568         GNUmakefile: use the more name-space-friendly "_version"
33569         * top/GNUmakefile (_dummy): Update.
33570         (_version): Rename from "version".
33571
33572 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33573             Bruno Haible  <bruno@clisp.org>
33574
33575         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
33576         rpl_close.
33577         (_gl_register_fd): New function, extracted from rpl_open.
33578         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
33579         (rpl_open, rpl_opendir): Use _gl_register_fd.
33580
33581 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
33582
33583         Fix organization of 'open' replacement.
33584         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
33585         (gl_FUNC_OPEN): Use it.
33586         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
33587
33588 2008-10-08  Bruno Haible  <bruno@clisp.org>
33589
33590         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
33591
33592 2008-10-08  Simon Josefsson  <simon@josefsson.org>
33593
33594         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
33595         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
33596         listen).
33597
33598 2008-10-08  Eric Blake  <ebb9@byu.net>
33599
33600         GNUmakefile: add 'make version' target
33601         * top/GNUmakefile (_curr-ver): Split version update rules...
33602         (version): ...into a target.
33603
33604 2008-10-07  Bruno Haible  <bruno@clisp.org>
33605
33606         Use a more portable replacement expression for -0.0L.
33607         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
33608         instead of -0.0L. Fix m4 quotation.
33609
33610         * tests/test-signbit.c: Include <float.h>.
33611         (minus_zero): New variable.
33612         (test_signbitl): Use minus_zero instead of -zero.
33613         * modules/signbit-tests (Depends-on): Add float.
33614
33615         * tests/test-ceill.c: Include <float.h>.
33616         (zero): Remove variable.
33617         (minus_zero): New variable.
33618         (main): Use minus_zero instead of -zero.
33619         * modules/ceill-tests (Depends-on): Add float.
33620
33621         * tests/test-floorl.c: Include <float.h>.
33622         (zero): Remove variable.
33623         (minus_zero): New variable.
33624         (main): Use minus_zero instead of -zero.
33625         * modules/floorl-tests (Depends-on): Add float.
33626
33627         * tests/test-roundl.c: Include <float.h>.
33628         (zero): Remove variable.
33629         (minus_zero): New variable.
33630         (main): Use minus_zero instead of -zero.
33631         * modules/roundl-tests (Depends-on): Add float.
33632
33633         * tests/test-truncl.c: Include <float.h>.
33634         (zero): Remove variable.
33635         (minus_zero): New variable.
33636         (main): Use minus_zero instead of -zero.
33637         * modules/truncl-tests (Depends-on): Add float.
33638
33639         * tests/test-frexpl.c (zero): Remove variable.
33640         (minus_zero): New variable.
33641         (main): Use minus_zero instead of -zero.
33642         * modules/frexpl-tests (Depends-on): Add float.
33643
33644         * tests/test-isnan.c (zerol): Remove variable.
33645         (minus_zerol): New variable.
33646         (test_long_double): Use minus_zerol instead of -zerol.
33647         * modules/isnan-tests (Depends-on): Add float.
33648
33649         * tests/test-isnanl.h (zero): Remove variable.
33650         (minus_zero): New variable.
33651         (main): Use minus_zero instead of -zero.
33652         * modules/isnanl-nolibm-tests (Depends-on): Add float.
33653         * modules/isnanl-tests (Depends-on): Add float.
33654
33655         * tests/test-ldexpl.c (zero): Remove variable.
33656         (minus_zero): New variable.
33657         (main): Use minus_zero instead of -zero.
33658         * modules/ldexpl-tests (Depends-on): Add float.
33659
33660         * tests/test-snprintf-posix.h (zerol): Remove variable.
33661         (minus_zerol): New variable.
33662         (test_function): Use minus_zerol instead of -zerol.
33663         * modules/snprintf-posix-tests (Depends-on): Add float.
33664         * modules/vsnprintf-posix-tests (Depends-on): Add float.
33665
33666         * tests/test-sprintf-posix.h (zerol): Remove variable.
33667         (minus_zerol): New variable.
33668         (test_function): Use minus_zerol instead of -zerol.
33669         * modules/sprintf-posix-tests (Depends-on): Add float.
33670         * modules/vsprintf-posix-tests (Depends-on): Add float.
33671
33672         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
33673         (minus_zerol): New variable.
33674         (test_function): Use minus_zerol instead of -zerol.
33675         * modules/vasnprintf-posix-tests (Depends-on): Add float.
33676
33677         * tests/test-vasprintf-posix.c (zerol): Remove variable.
33678         (minus_zerol): New variable.
33679         (test_function): Use minus_zerol instead of -zerol.
33680         * modules/vasprintf-posix-tests (Depends-on): Add float.
33681
33682 2008-10-07  Simon Josefsson  <simon@josefsson.org>
33683
33684         * MODULES.html.sh (Support for building documentation): Mention
33685         pmccabe2html.  Sort entries.
33686
33687         Add pmccabe2html module, from gnupdf.
33688         * build-aux/pmccabe.css: New file.
33689         * build-aux/pmccabe2html: New file.
33690         * m4/pmccabe2html.m4: New file.
33691         * modules/pmccabe2html: New file.
33692
33693 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
33694
33695         flock: new module
33696         * MODULES.html.sh: Add to list of modules.
33697         * lib/flock.c: flock implementation for Windows and Unix systems
33698         which have fcntl.
33699         * doc/glibc-functions/flock.texi: Update documentation.
33700         * lib/sys_file.in.h: <sys/file.h> header file.
33701         * m4/flock.m4: M4 macros.
33702         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
33703         * modules/flock: flock module.
33704         * modules/flock-tests: flock tests module.
33705         * modules/sys_file: sys/file.h module.
33706         * tests/test-flock.c: test suite for flock.
33707
33708 2008-10-06  Jim Meyering  <meyering@redhat.com>
33709
33710         bootstrap: check for LT_INIT more portably still ;-)
33711         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
33712         Spotted by Bruno Haible.
33713
33714 2008-10-06  Eric Blake  <ebb9@byu.net>
33715
33716         test-signbit: avoid tripping Irix cc bug on -0.0L
33717         * tests/test-signbit.c (minus_zerol): Delete, and replace with
33718         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
33719         entire testsuite consistent and avoids an Irix 6.2 bug.
33720
33721 2008-10-05  Bruno Haible  <bruno@clisp.org>
33722             Jim Meyering  <jim@meyering.net>
33723
33724         Add an option for ignoring EPIPE during close_stdout.
33725         * lib/closeout.h: Include <stdbool.h>.
33726         (close_stdout_set_ignore_EPIPE): New declaration.
33727         * lib/closeout.c: Include <stdbool.h>.
33728         (ignore_EPIPE): New variable.
33729         (close_stdout_set_ignore_EPIPE): New function.
33730         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
33731         * lib/close-stream.c (close_stream): Mention the possible EPIPE
33732         failure.
33733         * modules/closeout (Depends-on): Add stdbool.
33734
33735 2008-10-05  Bruno Haible  <bruno@clisp.org>
33736
33737         * modules/accept: New file.
33738         * modules/bind: New file.
33739         * modules/connect: New file.
33740         * modules/getpeername: New file.
33741         * modules/getsockname: New file.
33742         * modules/getsockopt: New file.
33743         * modules/listen: New file.
33744         * modules/recv: New file.
33745         * modules/recvfrom: New file.
33746         * modules/send: New file.
33747         * modules/sendto: New file.
33748         * modules/setsockopt: New file.
33749         * modules/socket: New file.
33750         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
33751         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33752         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
33753         the particular module is requested. Add a link warning when the
33754         particular module is not requested.
33755         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
33756         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
33757         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
33758         the particular module is requested.
33759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
33760         gl_SYS_SOCKET_H_DEFAULTS): New macros.
33761         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
33762         * modules/sys_socket (Depends-on): Add link-warning.
33763         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
33764         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
33765         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
33766         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
33767         GL_LINK_WARNING.
33768         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
33769         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
33770         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
33771         * doc/posix-functions/getpeername.texi: Mention the new module
33772         'getpeername'.
33773         * doc/posix-functions/getsockname.texi: Mention the new module
33774         'getsockname'.
33775         * doc/posix-functions/getsockopt.texi: Mention the new module
33776         'getsockopt'.
33777         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
33778         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
33779         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
33780         * doc/posix-functions/send.texi: Mention the new module 'send'.
33781         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
33782         * doc/posix-functions/setsockopt.texi: Mention the new module
33783         'setsockopt'.
33784         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
33785         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
33786         listen, connect, accept.
33787         * modules/select-tests (Depends-on): Likewise.
33788
33789 2008-10-05  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/winsock.c (strerror): Remove unused #undef.
33792         (rpl_close): Remove unused local variable.
33793
33794         * modules/sys_socket (Depends-on); Add errno.
33795
33796 2008-10-05  Bruno Haible  <bruno@clisp.org>
33797
33798         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
33799         (select): Add a link warning when the 'select' module is not used.
33800         * modules/sys_select (Depends-on): Add link-warning.
33801         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
33802         Suggested by Paolo Bonzini.
33803
33804 2008-10-05  Jim Meyering  <meyering@redhat.com>
33805
33806         bootstrap: check for LT_INIT more portably
33807         * build-aux/bootstrap: Avoid using grep -E, since it's not
33808         portable enough.  Suggestion from Bruno Haible.
33809
33810 2008-10-05  Bruno Haible  <bruno@clisp.org>
33811
33812         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
33813         as being fixed by gnulib.
33814
33815 2008-10-05  Bruno Haible  <bruno@clisp.org>
33816
33817         * modules/select-tests: New file, mostly copied from
33818         modules/sys_select-tests.
33819         * tests/test-select.c: New file, mostly copied from
33820         tests/test-sys_select.c.
33821         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
33822         * modules/sys_select-tests (Depends-on): Remove all dependencies.
33823         (Makefile.am): Remove test_sys_select_LDADD.
33824
33825         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
33826         to an undefined symbol, for an error message.
33827         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
33828         (gl_SYS_SELECT_H_DEFAULTS): New macro.
33829         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
33830         winsock-select.c here.
33831         * modules/sys_select (Files): Remove lib/winsock-select.c.
33832         (Depends-on): Remove alloca.
33833         (Makefile.am): Substitute GNULIB_SELECT.
33834         * modules/select: New file.
33835         * doc/posix-functions/select.texi: Update.
33836
33837 2008-10-05  Bruno Haible  <bruno@clisp.org>
33838
33839         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
33840         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
33841         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
33842         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
33843         getdtablesize.
33844         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
33845         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
33846
33847 2008-10-05  Bruno Haible  <bruno@clisp.org>
33848
33849         * modules/getdtablesize-tests: New file.
33850         * tests/test-getdtablesize.c: New file.
33851
33852         New module 'getdtablesize'.
33853         * lib/unistd.in.h (getdtablesize): New declaration.
33854         * lib/getdtablesize.c: New file.
33855         * m4/getdtablesize.m4: New file.
33856         * modules/getdtablesize: New file.
33857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33858         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
33859         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
33860         HAVE_GETDTABLESIZE.
33861         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
33862
33863 2008-10-05  Bruno Haible  <bruno@clisp.org>
33864
33865         * modules/sched (Makefile.am): Fix typo.
33866         Reported by Simon Josefsson.
33867
33868 2008-10-05  Jim Meyering  <meyering@redhat.com>
33869
33870         bootstrap: check for LT_INIT, too
33871         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
33872         are deprecated.  Suggestion from Ralf Wildenhues.
33873
33874 2008-10-05  Bruno Haible  <bruno@clisp.org>
33875
33876         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
33877         overriding them by ours.
33878         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
33879
33880 2008-10-05  Jim Meyering  <meyering@redhat.com>
33881
33882         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
33883         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
33884         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
33885
33886 2008-10-04  Bruno Haible  <bruno@clisp.org>
33887
33888         * modules/dup2 (License): Change to LGPLv2+.
33889         * modules/sleep (License): Likewise.
33890         * modules/perror (License): Likewise.
33891         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
33892         Blake.
33893         * modules/signal (License): Likewise.
33894         * modules/sigprocmask (License): Likewise.
33895         * modules/raise (License): Change to LGPLv2+, with approval by Jim
33896         Meyering.
33897
33898 2008-10-04  Bruno Haible  <bruno@clisp.org>
33899
33900         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
33901         Reported by Rainer Tammer <tammer@tammer.net>.
33902
33903 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
33904             Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
33907         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
33908         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
33909
33910 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
33911
33912         filevercmp: new module
33913         * lib/filevercmp.h: New function filevercmp comparing version strings.
33914         * lib/filevercmp.c: Implementation of filevercmp function.
33915         * modules/filevercmp: Module metadata.
33916         * tests/test-filevercmp.c: Unit test for new module.
33917         * modules/filevercmp-tests: Unit test metadata.
33918         * MODULES.html.sh: Add filevercmp module.
33919
33920 2008-10-03  Bruno Haible  <bruno@clisp.org>
33921
33922         * lib/c-ctype.h: Add comment.
33923         Reported by Jim Meyering.
33924
33925 2008-10-02  Bruno Haible  <bruno@clisp.org>
33926
33927         * modules/posix_spawn-internal (Depends-on): Add 'open'.
33928
33929 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33930
33931         * build-aux/bootstrap: Allow renaming bootstrap, and change the
33932         name of bootstrap.conf accordingly.
33933
33934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33935
33936         * build-aux/bootstrap: Install git-merge-changelog configuration
33937         items into .gitconfig if needed.
33938
33939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
33940
33941         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
33942         git repository, and initialize/update it accordingly.
33943
33944 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
33945
33946         * modules/fsync-tests: New file.
33947         * tests/test-fsync.c: New file.
33948
33949         New module 'fsync'.
33950         * lib/fsync.c: New file.
33951         * m4/fsync.m4: New file.
33952         * modules/fsync: New file.
33953         * lib/unistd.in.h (fsync): New declaration.
33954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
33955         GNULIB_FSYNC and HAVE_FSYNC.
33956         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
33957         * MODULES.html.sh (posix_functions): Add fsync.
33958         * doc/posix-functions/fsync.texi: Mention the new module.
33959
33960 2008-10-02  Jim Meyering  <meyering@redhat.com>
33961
33962         fts.c: sync with similar code from coreutils' remove.c
33963         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
33964         Guard also with "#if defined __linux__", since for now at least,
33965         this code is Linux-kernel-specific.
33966
33967 2008-10-02  Jim Meyering  <meyering@redhat.com>
33968
33969         fts: bug fixes
33970         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
33971         Include <sys/vfs.h>, not <sys/statfs.h>.
33972
33973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33974         Include <sys/vfs.h>, not <sys/statfs.h>.
33975
33976 2008-10-01  Bruno Haible  <bruno@clisp.org>
33977
33978         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33980         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33981         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33982         * doc/posix-functions/posix_spawnp.texi: Likewise.
33983         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33984         whether posix_spawn actually works.
33985         * m4/pipe.m4 (gl_PIPE): Likewise.
33986         * modules/execute (Files): Add m4/posix_spawn.m4.
33987         * modules/pipe (Files): Add m4/posix_spawn.m4.
33988         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33989
33990 2008-10-01  Jim Meyering  <meyering@redhat.com>
33991
33992         remove trailing spaces
33993         * NEWS: Likewise.
33994         * lib/poll.c (poll): Likewise.
33995         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33996         * lib/winsock.c (rpl_close): Likewise.
33997         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33998         * modules/yield: Likewise.
33999         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34000         * tests/test-sys_select.c (connect_to_socket): Likewise.
34001
34002         fts.c: adjust a new interface to be more generally useful
34003         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34004         (fts_build): Adjust caller.
34005
34006 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34007
34008         * modules/cond-tests: New file.
34009         * tests/test-cond.c: New file.
34010
34011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34012             Bruno Haible  <bruno@clisp.org>
34013
34014         * modules/cond (Dependencies): Add errno, time.
34015         * lib/glthread/cond.h: Include <time.h>.
34016         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34017         across platforms.
34018
34019 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34020             Bruno Haible  <bruno@clisp.org>
34021
34022         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34023
34024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34025             Bruno Haible  <bruno@clisp.org>
34026
34027         * modules/tls-tests (Depends-on): Add thread, yield.
34028         (configure.ac): Remove all checks.
34029         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34030         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34031         gl_thread_self): Remove definitions. Include glthread/thread.h and
34032         glthread/yield.h instead.
34033         (test_tls): Pass an additional NULL argument to gl_thread_join.
34034
34035 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34036             Bruno Haible  <bruno@clisp.org>
34037
34038         * modules/lock-tests (Depends-on): Add thread, yield.
34039         (configure.ac): Remove all checks.
34040         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34041         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34042         gl_thread_self): Remove definitions. Include glthread/thread.h and
34043         glthread/yield.h instead.
34044         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34045         additional NULL argument to gl_thread_join.
34046
34047 2008-09-30  Bruno Haible  <bruno@clisp.org>
34048
34049         Fix the Win32 implementation of the 'thread' module.
34050         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34051         pointer type.
34052         (gl_thread_self): Invoke gl_thread_self_func.
34053         (gl_thread_self_func): New declaration.
34054         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34055         (do_init_self_key, init_self_key): New functions.
34056         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34057         Remove some fields.
34058         (running_threads, running_lock): Remove variables.
34059         (get_current_thread_handle): New function.
34060         (gl_thread_self_func, wrapper_func, glthread_create_func,
34061         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34062         simplified.
34063
34064 2008-09-30  Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34067         files.
34068
34069 2008-09-30  Jim Meyering  <meyering@redhat.com>
34070
34071         fts.m4: correct the test for statfs.f_type
34072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34073         when checking for statfs.f_type.
34074
34075 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34076
34077         tests: avoid some compiler warnings
34078         * tests/test-memchr.c (main): Pass NULL indirectly.
34079         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34080
34081 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
34082
34083         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34084         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34085         exactly specified dayshifts.
34086         (dayshift): New rule.
34087         (rel): Add dayshift.
34088         (relative_time_table) [tomorrow, yesterday, today, now]:
34089         Use tDAY_SHIFT in place of tDAY_UNIT.
34090         * tests/test-getdate.c: Add tests for now-disallowed countable
34091         dayshifts, e.g., "4 yesterday ago".
34092
34093 2008-09-29  Bruno Haible  <bruno@clisp.org>
34094
34095         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34096         * tests/test-posix_spawn1.in.sh: Renamed from
34097         tests/test-posix_spawn.in.sh.
34098         * tests/test-posix_spawn2.c: New file.
34099         * tests/test-posix_spawn2.in.sh: New file.
34100         * modules/posix_spawnp-tests (Files): Update.
34101         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34102
34103 2008-09-29  Bruno Haible  <bruno@clisp.org>
34104
34105         Propagate effects of putenv/setenv/unsetenv to child processes.
34106         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34107         * lib/pipe.c (create_pipe): Likewise.
34108
34109 2008-09-29  Bruno Haible  <bruno@clisp.org>
34110
34111         Enable use of shell scripts as executables in mingw.
34112         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34113         run the program as a shell script.
34114         * lib/pipe.c (create_pipe): Likewise.
34115         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34116         resulting array.
34117
34118 2008-09-29  Eric Blake  <ebb9@byu.net>
34119
34120         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34121
34122 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34123
34124         * doc/posix-functions/accept.texi: Update mingw problems.
34125         * doc/posix-functions/bind.texi: Update mingw problems.
34126         * doc/posix-functions/close.texi: Update mingw problems.
34127         * doc/posix-functions/connect.texi: Update mingw problems.
34128         * doc/posix-functions/getpeername.texi: Update mingw problems.
34129         * doc/posix-functions/getsockname.texi: Update mingw problems.
34130         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34131         * doc/posix-functions/ioctl.texi: Update mingw problems.
34132         * doc/posix-functions/listen.texi: Update mingw problems.
34133         * doc/posix-functions/recv.texi: Update mingw problems.
34134         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34135         * doc/posix-functions/select.texi: Update mingw problems.
34136         * doc/posix-functions/send.texi: Update mingw problems.
34137         * doc/posix-functions/sendto.texi: Update mingw problems.
34138         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34139         * doc/posix-functions/socket.texi: Update mingw problems.
34140
34141 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34142             Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/sys_select.in.h: Include sys/time.h.
34145         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34146         * modules/sys_select: Depend on sys_time.
34147         * tests/test-sys_select.c: Test that sys/select.h defines struct
34148         timeval fully.
34149
34150 2008-09-29  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34153         * lib/sys_select.in.h: Likewise.
34154
34155 2008-09-29  Bruno Haible  <bruno@clisp.org>
34156
34157         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34158
34159 2008-09-29  Bruno Haible  <bruno@clisp.org>
34160
34161         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34162         Set LIBSOCKET instead of augmenting LIBS.
34163         * modules/sockets (Link): New section.
34164         * modules/sockets-tests (test_sockets_LDADD): New variable.
34165         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34166         * modules/poll-tests (test_poll_LDADD): New variable.
34167         * NEWS: Document the change.
34168
34169 2008-09-29  Bruno Haible  <bruno@clisp.org>
34170
34171         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34172         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34173         ARPA_INET_H directly.
34174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34175
34176 2008-09-28  Bruno Haible  <bruno@clisp.org>
34177
34178         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34179         from gl_HEADER_SYS_SOCKET.
34180         (gl_HEADER_SYS_SOCKET): Invoke it.
34181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34182
34183 2008-09-28  Bruno Haible  <bruno@clisp.org>
34184
34185         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34186         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34187         Needed on OSF/1 4.0.
34188
34189 2008-09-28  Bruno Haible  <bruno@clisp.org>
34190
34191         Override open more carefully.
34192         * lib/open.c (orig_open): New function.
34193         (rpl_open): Use orig_open instead of open.
34194         * lib/fcntl.in.h: Add special invocation convention.
34195         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34196         (gl_FUNC_OPEN): Invoke it.
34197
34198         Override freopen more carefully.
34199         * lib/freopen.c (orig_freopen): New function.
34200         (rpl_freopen): Use orig_freopen instead of freopen.
34201         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34202         (gl_FUNC_FREOPEN): Invoke it.
34203
34204         Override fopen more carefully.
34205         * lib/fopen.c (orig_fopen): New function.
34206         (rpl_fopen): Use orig_fopen instead of fopen.
34207         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34208         (gl_FUNC_FOPEN): Invoke it.
34209         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34210
34211 2008-09-28  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34214         SIGPIPE.
34215
34216 2008-09-28  Bruno Haible  <bruno@clisp.org>
34217
34218         * tests/test-sigaction.c (handler, main): Disable the check whether
34219         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34220         glibc systems with LinuxThreads.
34221
34222 2008-09-28  Bruno Haible  <bruno@clisp.org>
34223
34224         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34225
34226         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34227         with AIX xlc.
34228         * lib/fcntl.in.h (open): Likewise.
34229         Reported by Rainer Tammer <tammer@tammer.net>.
34230
34231 2008-09-28  Bruno Haible  <bruno@clisp.org>
34232
34233         * modules/posix_spawnp-tests: New file.
34234         * tests/test-posix_spawn.c: New file.
34235         * tests/test-posix_spawn.in.sh: New file.
34236
34237         New module 'posix_spawnp'.
34238         * modules/posix_spawnp: New file.
34239         * lib/spawnp.c: New file, from GNU libc with modifications.
34240         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
34241
34242         New module 'posix_spawn'.
34243         * modules/posix_spawn: New file.
34244         * lib/spawn.c: New file, from GNU libc with modifications.
34245         * doc/posix-functions/posix_spawn.texi: Mention the new module.
34246
34247         New module 'posix_spawnattr_destroy'.
34248         * modules/posix_spawnattr_destroy: New file.
34249         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
34250         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
34251         module.
34252
34253         New module 'posix_spawnattr_setsigmask'.
34254         * modules/posix_spawnattr_setsigmask: New file.
34255         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
34256         modifications.
34257         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
34258         new module.
34259
34260         New module 'posix_spawnattr_getsigmask'.
34261         * modules/posix_spawnattr_getsigmask: New file.
34262         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
34263         modifications.
34264         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
34265         new module.
34266
34267         New module 'posix_spawnattr_setsigdefault'.
34268         * modules/posix_spawnattr_setsigdefault: New file.
34269         * lib/spawnattr_setdefault.c: New file, from GNU libc with
34270         modifications.
34271         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
34272         new module.
34273
34274         New module 'posix_spawnattr_getsigdefault'.
34275         * modules/posix_spawnattr_getsigdefault: New file.
34276         * lib/spawnattr_getdefault.c: New file, from GNU libc with
34277         modifications.
34278         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
34279         new module.
34280
34281         New module 'posix_spawnattr_setschedpolicy'.
34282         * modules/posix_spawnattr_setschedpolicy: New file.
34283         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
34284         modifications.
34285         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
34286         new module.
34287
34288         New module 'posix_spawnattr_getschedpolicy'.
34289         * modules/posix_spawnattr_getschedpolicy: New file.
34290         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
34291         modifications.
34292         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
34293         new module.
34294
34295         New module 'posix_spawnattr_setschedparam'.
34296         * modules/posix_spawnattr_setschedparam: New file.
34297         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
34298         modifications.
34299         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
34300         new module.
34301
34302         New module 'posix_spawnattr_getschedparam'.
34303         * modules/posix_spawnattr_getschedparam: New file.
34304         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
34305         modifications.
34306         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
34307         new module.
34308
34309         New module 'posix_spawnattr_setpgroup'.
34310         * modules/posix_spawnattr_setpgroup: New file.
34311         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
34312         modifications.
34313         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
34314         module.
34315
34316         New module 'posix_spawnattr_getpgroup'.
34317         * modules/posix_spawnattr_getpgroup: New file.
34318         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
34319         modifications.
34320         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
34321         module.
34322
34323         New module 'posix_spawnattr_setflags'.
34324         * modules/posix_spawnattr_setflags: New file.
34325         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
34326         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
34327         module.
34328
34329         New module 'posix_spawnattr_getflags'.
34330         * modules/posix_spawnattr_getflags: New file.
34331         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
34332         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
34333         module.
34334
34335         New module 'posix_spawnattr_init'.
34336         * modules/posix_spawnattr_init: New file.
34337         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
34338         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
34339         module.
34340
34341         New module 'posix_spawn_file_actions_destroy'.
34342         * modules/posix_spawn_file_actions_destroy: New file.
34343         * lib/spawn_faction_destroy.c: New file, from GNU libc with
34344         modifications.
34345         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
34346         the new module.
34347
34348         New module 'posix_spawn_file_actions_addopen'.
34349         * modules/posix_spawn_file_actions_addopen: New file.
34350         * lib/spawn_faction_addopen.c: New file, from GNU libc with
34351         modifications.
34352         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
34353         the new module.
34354
34355         New module 'posix_spawn_file_actions_adddup2'.
34356         * modules/posix_spawn_file_actions_adddup2: New file.
34357         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
34358         modifications.
34359         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
34360         the new module.
34361
34362         New module 'posix_spawn_file_actions_addclose'.
34363         * modules/posix_spawn_file_actions_addclose: New file.
34364         * lib/spawn_faction_addclose.c: New file, from GNU libc with
34365         modifications.
34366         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
34367         the new module.
34368
34369         New module 'posix_spawn_file_actions_init'.
34370         * modules/posix_spawn_file_actions_init: New file.
34371         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
34372         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
34373         new module.
34374
34375         New module 'posix_spawn-internal'.
34376         * modules/posix_spawn-internal: New file.
34377         * lib/spawn_int.h: New file, from GNU libc with modifications.
34378         * lib/spawni.c: New file, from GNU libc with modifications.
34379         * m4/posix_spawn.m4: New file.
34380
34381         New module 'spawn'.
34382         * modules/spawn: New file.
34383         * lib/spawn.in.h: New file, from GNU libc with modifications.
34384         * m4/spawn_h.m4: New file.
34385         * doc/posix-headers/spawn.texi: Mention the new module.
34386
34387 2008-09-28  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/sched-tests: New file.
34390         * tests/test-sched.c: New file.
34391
34392         New module 'sched'.
34393         * modules/sched: New file.
34394         * lib/sched.in.h: New file.
34395         * m4/sched_h.m4: New file.
34396         * doc/posix-headers/sched.texi: Mention the new module.
34397
34398 2008-09-27  Eric Blake  <ebb9@byu.net>
34399
34400         Fix previous patch, and tweak references to $0.
34401         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
34402         (func_version, func_gnulib_dir): Don't call this program
34403         gnulib-tool.
34404         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
34405         with using $0 in function.
34406         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
34407         (func_fatal_error): Reuse the name the user invoked us with.
34408
34409 2008-09-27  Bruno Haible  <bruno@clisp.org>
34410
34411         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
34412         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
34413         (gl_ICONV_H): Not here.
34414         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34415         instead of assigning ICONV_H directly.
34416
34417         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
34418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
34419         WCHAR_H directly.
34420
34421 2008-09-27  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
34424         * modules/arpa_inet (Depends-on): Add link-warning.
34425         (Makefile.am): Insert the definition of GL_LINK-WARNING.
34426         * modules/unistd (Makefile.am): Likewise.
34427
34428 2008-09-26  Bruno Haible  <bruno@clisp.org>
34429
34430         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
34431         variables.
34432         (func_version): Essentially copied from gnulib-tool.
34433         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
34434         func_readlink): Copied from gnulib-tool.
34435
34436 2008-09-26  Bruno Haible  <bruno@clisp.org>
34437
34438         * gnulib-tool (func_version): Change directory to $gnulib_dir before
34439         invoking git-version-gen.
34440
34441 2008-09-26  Bruno Haible  <bruno@clisp.org>
34442
34443         * posix-modules: Update to directory names changed on 2008-01-19.
34444         Remove commas in output before splitting into words. No more need to
34445         avoid 'ftruncate' since 2007-02-19.
34446
34447 2008-09-26  Bruno Haible  <bruno@clisp.org>
34448
34449         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
34450
34451 2008-09-26  Bruno Haible  <bruno@clisp.org>
34452
34453         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
34454         * modules/fwriteerror (Depends-on): Add errno.
34455
34456 2008-09-26  Bruno Haible  <bruno@clisp.org>
34457
34458         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
34459         * tests/test-vc-list-files-cvs.sh: Likewise.
34460
34461 2008-09-26  Bruno Haible  <bruno@clisp.org>
34462
34463         * doc/posix-headers/sys_resource.texi: Reorder items.
34464
34465 2008-09-26  Jim Meyering  <meyering@redhat.com>
34466
34467         fts: tweak inode comparison function
34468         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
34469         inode numbers, as documented.
34470
34471         fts: sort dirent entries on inode number before traversing
34472         This avoids a quadratic, seek-related performance penalty when
34473         operating on a directory containing many entries (measurable at 10k;
34474         3.5 hours at 2 million entries with a cold cache) on certain types
34475         of file systems, including ext3 and ext4, but not tmpfs.
34476         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
34477         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
34478         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
34479         (fs_handles_readdir_ordered_dirents_efficiently): New function.
34480         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34481         (fts_build): Set the stat.st_ino member from D_INO.
34482         If it is likely to be useful, sort dirent entries on inode number.
34483
34484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
34485         and the struct statfs.f_type member.
34486         * modules/fts (Depends-on): Add d-ino.
34487
34488 2008-09-26  Bruno Haible  <bruno@clisp.org>
34489
34490         * modules/sigpipe-die (Depends-on): Add sigpipe.
34491
34492         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
34493         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
34494         and GNULIB_STDIO_H_SIGPIPE are set.
34495         * lib/stdio-write.c: New file.
34496         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
34497         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34498         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34499         REPLACE_STDIO_WRITE_FUNCS.
34500         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
34501         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34502         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34503         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34504         * modules/stdio (Files): Add lib/stdio-write.c.
34505         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
34506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
34507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
34508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
34509         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
34510         REPLACE_FPRINTF_POSIX.
34511         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
34512         REPLACE_PRINTF_POSIX.
34513         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
34514         REPLACE_VFPRINTF_POSIX.
34515         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
34516         REPLACE_VPRINTF_POSIX.
34517         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
34518         SIGPIPE issue.
34519         * doc/posix-functions/fputc.texi: Likewise.
34520         * doc/posix-functions/fputs.texi: Likewise.
34521         * doc/posix-functions/fwrite.texi: Likewise.
34522         * doc/posix-functions/printf.texi: Likewise.
34523         * doc/posix-functions/putc.texi: Likewise.
34524         * doc/posix-functions/putchar.texi: Likewise.
34525         * doc/posix-functions/puts.texi: Likewise.
34526         * doc/posix-functions/vfprintf.texi: Likewise.
34527         * doc/posix-functions/vprintf.texi: Likewise.
34528
34529         * modules/safe-write (Depends-on): Add write.
34530
34531         * modules/sigpipe-tests: New file.
34532         * tests/test-sigpipe.c: New file.
34533         * tests/test-sigpipe.sh: New file.
34534
34535         * modules/write: New file.
34536         * lib/unistd.in.h: Include <sys/types.h>.
34537         (write): New declaration.
34538         * lib/write.c: New file.
34539         * m4/write.m4: New file.
34540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34541         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
34542         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
34543         GNULIB_WRITE, REPLACE_WRITE.
34544         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
34545         and the SIGPIPE issue.
34546
34547         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
34548         (raise): New declaration.
34549         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
34550         (ext_signal): New function.
34551         (rpl_raise): New function.
34552         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34553         GNULIB_SIGNAL_H_SIGPIPE.
34554         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
34555         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
34556
34557         * modules/sigpipe: New file.
34558         * m4/sigpipe.m4: New file.
34559
34560 2008-09-25  Derek Price  <derek@ximbiot.com>
34561             Bruno Haible  <bruno@clisp.org>
34562
34563         * gnulib-tool (func_import): Report all license incompatibilities, not
34564         just the first one.
34565
34566 2008-09-25  Bruno Haible  <bruno@clisp.org>
34567
34568         * gnulib-tool (func_import): When computing the edits, consider not
34569         only the Makefile.ams that exist but also those that will be generated.
34570
34571 2008-09-25  Simon Josefsson  <simon@josefsson.org>
34572
34573         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
34574         fixes gnulib-tool --test warning about duplicate dependency.
34575
34576 2008-09-25  Bruno Haible  <bruno@clisp.org>
34577
34578         * gnulib-tool: Don't ask the user to perform edits in the generated
34579         Makefile.ams.
34580         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
34581         apply to the Makefile.am being generated.
34582         (func_emit_tests_Makefile_am): Execute edits that apply to the
34583         Makefile.am being generated.
34584         (func_import): Setup list of Makefile.am edits before emitting the
34585         Makefile.ams, not at the end.
34586         (func_create_testdir): Update.
34587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34588
34589 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34590
34591         * gnulib-tool (func_import): Store the --tests-base option in the
34592         comment in gnulib-cache.m4.
34593
34594 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
34595
34596         * NEWS: Document increased portability that sys_select now provides.
34597
34598         * lib/sys_select.in.h: Install select wrapper.
34599         * lib/sys_socket.in.h: Use more descriptive name when there is no
34600         select wrapper.
34601         * lib/winsock-select.c: New.
34602         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
34603         Require gl_HEADER_SYS_SOCKET.
34604         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
34605         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
34606         * tests/test-sys_select.c: Add functional tests.
34607
34608 2008-09-24  Eric Blake  <ebb9@byu.net>
34609
34610         open, fopen: close fd leak in last patch
34611         * lib/open.c (rpl_open): Close fd before returning error.
34612         * lib/fopen.c (rpl_fopen): Close fd before returning error.
34613         * doc/posix-functions/open.texi (open): Document that Irix also
34614         has the bug.
34615         * doc/posix-functions/fopen.texi (fopen): Likewise.
34616         Reported by Paolo Bonzini.
34617
34618 2008-09-24  Bruno Haible  <bruno@clisp.org>
34619
34620         Ensure that a filename ending in a slash cannot be used to access a
34621         non-directory.
34622         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
34623         to check whether it's really a directory.
34624         * lib/fopen.c: Include fcntl.h, unistd.h.
34625         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
34626         and fdopen().
34627         * modules/fopen (Depends-on): Add unistd.
34628         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
34629         * tests/test-fopen.c (main): Likewise.
34630         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
34631         * doc/posix-functions/fopen.texi: Likewise.
34632         Reported by Eric Blake.
34633
34634 2008-09-23  Eric Blake  <ebb9@byu.net>
34635
34636         c-stack: avoid compiler optimizations when provoking overflow
34637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
34638         recursion harder to optimize, to ensure a stack overflow occurs.
34639         * tests/test-c-stack.c (recurse): Likewise.
34640         Borrowed from libsigsegv.
34641
34642         c-stack: work around Irix sigaltstack bug
34643         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
34644         whether sigaltstack uses wrong end of stack_t (copied in part from
34645         libsigsegv).
34646         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
34647         Irix bug, without requiring an over-allocation.
34648         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
34649         bug.
34650
34651         fopen: document mingw bug on directories
34652         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
34653         not allowing a stream visiting a directory, even though reading
34654         from such a stream is not portable.
34655
34656 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34657
34658         * lib/poll.c: Rewrite.
34659         * modules/poll: Depend on alloca.
34660
34661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34662
34663         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
34664         instead define prototypes for a full set of wrappers.  Ensure
34665         that Cygwin does not use the compatibility code, which is only
34666         for MinGW.
34667         * lib/winsock.c: New.
34668         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
34669         * modules/sys_socket: Add lib/winsock.c.
34670
34671         * modules/poll-tests: Add errno and perror.
34672         * tests/test-poll.c: Use ioctl, not ioctlsocket.
34673
34674 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
34675
34676         * tests/test-poll.c: Downgrade minimum needed Winsock version.
34677
34678 2008-09-23  Bruno Haible  <bruno@clisp.org>
34679
34680         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
34681         * doc/glibc-functions/*: Likewise.
34682
34683 2008-09-23  Simon Josefsson  <simon@josefsson.org>
34684
34685         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
34686         success.
34687
34688 2008-09-22  Eric Blake  <ebb9@byu.net>
34689             Bruno Haible  <bruno@clisp.org>
34690
34691         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
34692         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
34693         supply %A but mishandle pseudo-NaN.
34694         Reported by Simon Josefsson.
34695
34696 2008-09-21  Bruno Haible  <bruno@clisp.org>
34697
34698         * tests/test-lock.c (main): Tweak skip message.
34699         * tests/test-tls.c (main): Likewise.
34700
34701 2008-09-21  Bruno Haible  <bruno@clisp.org>
34702
34703         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
34704         whether 'struct sigaction' has sa_sigaction here...
34705         (gl_PREREQ_SIG_HANDLER_H): ... not here.
34706         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
34707
34708 2008-09-21  Bruno Haible  <bruno@clisp.org>
34709
34710         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
34711         section.
34712         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
34713         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
34714         the new section.
34715         (Support for obsolete systems lacking POSIX:2001): New section.
34716         (String handling <string.h>): Move strdup to the new section.
34717         Suggested by Simon Josefsson and Paolo Bonzini.
34718
34719 2008-09-21  Bruno Haible  <bruno@clisp.org>
34720
34721         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
34722         exponents in %e and %g results on 'long double'. Needed for mingw's
34723         improved *printf functions.
34724         * tests/test-vasprintf-posix.c (test_function): Likewise.
34725         * tests/test-snprintf-posix.h (test_function): Likewise.
34726         * tests/test-sprintf-posix.h (test_function): Likewise.
34727         Reported by Eric Blake.
34728
34729 2008-09-21  Bruno Haible  <bruno@clisp.org>
34730
34731         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
34732         * tests/test-sprintf-posix.h (test_function): Likewise.
34733
34734 2008-09-21  Bruno Haible  <bruno@clisp.org>
34735
34736         * modules/getpass (Depends-on): Add strdup-posix.
34737
34738         New module 'strdup-posix'.
34739         * modules/strdup-posix: New file.
34740         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
34741         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
34742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34743         REPLACE_STRDUP.
34744         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
34745         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
34746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34747         strdup-posix.
34748
34749         * modules/strdup (Depends-on): Remove malloc-posix.
34750
34751 2008-09-20  Bruno Haible  <bruno@clisp.org>
34752
34753         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
34754         Wildenhues.
34755
34756 2008-09-20  Bruno Haible  <bruno@clisp.org>
34757
34758         Ensure that wint_t gets defined on IRIX 5.3.
34759         * lib/wchar.in.h (wint_t): Define if not defined by the system.
34760         * lib/wctype.in.h (wint_t): Likewise.
34761         (__wctype_wint_t): Remove type.
34762         (isw*): Use wint_t instead of __wctype_wint_t.
34763         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
34764         * modules/wchar (Files): Add m4/wint_t.m4.
34765         (Makefile.am): Substitute HAVE_WINT_T.
34766         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
34767         * tests/test-wctype.c: Check that wint_t is defined.
34768         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
34769         * doc/posix-headers/wctype.texi: Likewise.
34770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34771
34772 2008-09-18  Bruno Haible  <bruno@clisp.org>
34773
34774         * gnulib-tool (func_exit): Update comment.
34775
34776 2008-09-18  Simon Josefsson  <simon@josefsson.org>
34777
34778         * modules/getaddrinfo (Depends-on): Remove strdup, this module
34779         assumes strdup exists and does not depend on strdup to return
34780         ENOMEM on out of memory conditions.
34781
34782 2008-09-18  Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
34785         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
34786         digits for the exponent.
34787
34788 2008-09-18  Jim Meyering  <meyering@redhat.com>
34789             Bruno Haible  <bruno@clisp.org>
34790
34791         * lib/vasnprintf.c (decimal_point_char): Define also if
34792         NEED_PRINTF_INFINITE_LONG_DOUBLE.
34793
34794 2008-09-16  Bruno Haible  <bruno@clisp.org>
34795         and Eric Blake  <ebb9@byu.net>
34796
34797         vasnprintf: support Irix 5.3
34798         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
34799         that mishandle long double infinity.
34800         Reported by Tom G. Christensen.
34801
34802 2008-09-16  Bruno Haible  <bruno@clisp.org>
34803
34804         * doc/glibc-functions/scandir.texi: Mention the function is missing on
34805         Solaris 9.
34806         * doc/glibc-functions/alphasort.texi: Likewise.
34807         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
34808
34809 2008-09-16  Jim Meyering  <meyering@redhat.com>
34810
34811         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
34812         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
34813         a umask modification leak out of a subshell.  Otherwise, the
34814         opensolaris /bin/sh would be accepted and thus cause unwarranted
34815         failures in the coreutils test suite.
34816
34817 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
34818
34819         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
34820         to succeed.
34821
34822 2008-09-16  Jim Meyering  <meyering@redhat.com>
34823
34824         avoid spurious test failure when library is built without ACL support
34825         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
34826         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
34827         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
34828         * tests/test-copy-acl.sh: Likewise.
34829
34830 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34831
34832         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
34833         based on character occurrence counts.
34834
34835 2008-09-15  Eric Blake  <ebb9@byu.net>
34836
34837         tests: avoid some compiler warnings
34838         * tests/test-memchr.c (main): Pass NULL indirectly.
34839         * tests/test-closein.c (main): Avoid unused variable.
34840
34841 2008-09-15  Bruno Haible  <bruno@clisp.org>
34842
34843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
34844         are missing on OpenBSD 4.0 individually.
34845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34846
34847 2008-09-15  Bruno Haible  <bruno@clisp.org>
34848
34849         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
34850         * doc/posix-functions/strerror.texi: Mention also Cygwin.
34851         * doc/posix-functions/perror.texi: Likewise.
34852         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
34853         is missing.
34854         Reported by Eric Blake.
34855
34856         * lib/errno.in.h: Use replacement values >= 2000.
34857         Reported by Eric Blake.
34858
34859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34860
34861         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
34862         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
34863         limit.
34864         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
34865         compareseq was aborted.
34866
34867 2008-09-14  Bruno Haible  <bruno@clisp.org>
34868
34869         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
34870         yvec_edit_count.
34871         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
34872         (fstrcmp_bounded): Simplify result computation accordingly.
34873
34874 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34875
34876         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
34877         (fstrcmp): Define in terms of fstrcmp_bounded.
34878         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
34879         lower_bound argument.
34880         Return quickly if the result is certainly < lower_bound.
34881         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
34882
34883 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34884
34885         * lib/diffseq.h (EARLY_ABORT): New macro.
34886         (compareseq): Change return type to bool. Return true when EARLY_ABORT
34887         evaluates to true.
34888
34889 2008-09-14  Bruno Haible  <bruno@clisp.org>
34890
34891         * modules/perror-tests: New file.
34892         * tests/test-perror.sh: New file.
34893         * tests/test-perror.c: New file.
34894
34895         New module 'perror'.
34896         * lib/stdio.in.h (perror): New declaration.
34897         * lib/perror.c: New file.
34898         * m4/perror.m4: New file.
34899         * modules/perror: New file.
34900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34901         * doc/posix-functions/perror.texi: Mention the perror module.
34902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
34903         REPLACE_PERROR.
34904         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
34905         REPLACE_PERROR.
34906
34907 2008-09-14  Bruno Haible  <bruno@clisp.org>
34908
34909         * modules/stdio (Makefile.am): Reorder to match the order in
34910         lib/stdio.in.h.
34911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34912
34913 2008-09-13  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
34916
34917 2008-09-13  Bruno Haible  <bruno@clisp.org>
34918
34919         Extend strerror to cover the added errno values.
34920         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
34921         (rpl_strerror): Provide error messages for the added errno values and
34922         for the WSA* values.
34923         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
34924         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
34925         strerror.
34926         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
34927         * modules/strerror (Depends-on): Add errno.
34928         * doc/posix-functions/strerror.texi: Document the change.
34929         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
34930         and EOVERFLOW.
34931
34932 2008-09-13  Bruno Haible  <bruno@clisp.org>
34933
34934         * modules/EOVERFLOW: Remove file.
34935         * m4/eoverflow.m4: Remove file.
34936         * modules/EOVERFLOW-tests: Remove file.
34937         * tests/test-EOVERFLOW.c: Remove file.
34938         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
34939         * modules/ftell (Depends-on): Likewise.
34940         * modules/getdelim (Depends-on): Likewise.
34941         * modules/getugroups (Depends-on): Likewise.
34942         * modules/poll (Depends-on): Likewise.
34943         * modules/snprintf (Depends-on): Likewise.
34944         * modules/sprintf-posix (Depends-on): Likewise.
34945         * modules/vasnprintf (Depends-on): Likewise.
34946         * modules/vasprintf (Depends-on): Likewise.
34947         * modules/vfprintf-posix (Depends-on): Likewise.
34948         * modules/vsnprintf (Depends-on): Likewise.
34949         * modules/vsprintf-posix (Depends-on): Likewise.
34950         * modules/xvasprintf (Depends-on): Likewise.
34951         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34952         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
34953         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
34954         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
34955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34956         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
34957         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
34958         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
34959         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34960         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
34961         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
34962         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
34963         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34964         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
34965         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
34966         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
34967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34968         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
34969         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
34970         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
34971         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34972         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
34973         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34974         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34975         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34977         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34978         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34979         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34980         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34981         * MODULES.html.sh: Remove EOVERFLOW.
34982         * NEWS: Mention the change.
34983
34984 2008-09-13  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/errno-tests: New file.
34987         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34988
34989         * lib/errno.in.h: New file.
34990         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34991         * modules/errno: New file.
34992         * doc/posix-headers/errno.texi: Update documentation.
34993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34994
34995 2008-09-13  Bruno Haible  <bruno@clisp.org>
34996
34997         * tests/test-poll.c: Use #if for native Windows, rather than testing
34998         __MSVCRT__.
34999
35000 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35001             Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/glob.c: Don't include <pwd.h> on native Windows.
35004         (WINDOWS32): New macro.
35005         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35006
35007 2008-09-13  Bruno Haible  <bruno@clisp.org>
35008
35009         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35010         (ETIMEDOUT): Remove macro.
35011         (glthread_cond_timedwait_multithreaded): New declaration.
35012         (glthread_cond_timedwait): Use it.
35013         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35014         (glthread_cond_timedwait_multithreaded): New function.
35015
35016 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35017
35018         * modules/poll-tests: Do not check for io.h.
35019         * tests/test-poll.c: Check for __MSVCRT__ instead.
35020
35021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35022
35023         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35024         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35025         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35026
35027 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35028
35029         * modules/poll-tests: New.
35030         * tests/test-poll.c: New.
35031
35032 2008-09-12  Eric Blake  <ebb9@byu.net>
35033
35034         frexp: test for NetBSD failure on -0.0
35035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35036         not all, bugs from NetBSD 3.0 have been fixed.
35037         * doc/posix-functions/frexp.texi (frexp): Document bug.
35038         Reported by Thomas Klausner.
35039
35040         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35041         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35042         literal -0.0.
35043         Reported by Jonathan C. Patschke <jp@centtech.com>.
35044
35045 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35046
35047         * lib/glthread/cond.h: Use dummy implementation also if
35048         USE_WIN32_THREADS.
35049
35050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35051
35052         * modules/fnmatch-posix (License): Change to LGPLv2+.
35053         * modules/fnmatch-gnu (License): Likewise.
35054
35055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35056
35057         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35058
35059 2008-09-11  Jim Meyering  <meyering@redhat.com>
35060
35061         * users.txt: Add gtk-vnc.
35062
35063 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35064
35065         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35066         rotate amounts.
35067
35068         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35069         required for 16-bit and 8-bit rotates.
35070         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35071         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35072         UINT8_MAX instead of hard-coded constants.
35073         Suggested by Paul Eggert.
35074
35075 2008-09-07  Bruno Haible  <bruno@clisp.org>
35076
35077         * tests/test-striconveh.c (main): Check behaviour when converting from
35078         UTF-7.
35079
35080         Make striconveh work better with stateful encodings.
35081         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35082         that iconv does not increment the inptr when returning -1/EINVAL.
35083
35084 2008-09-07  Bruno Haible  <bruno@clisp.org>
35085
35086         * build-aux/config.rpath: Update according to libtool-2.2.6.
35087         * build-aux/config.libpath: Likewise.
35088
35089 2008-09-06  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35092         * lib/freadptr.c (freadptr): Likewise.
35093         * lib/freadseek.c (freadptrinc): Likewise.
35094         Reported by Simon Josefsson.
35095
35096 2008-09-06  Bruno Haible  <bruno@clisp.org>
35097
35098         * modules/freadptr (License): Change to LGPLv2+.
35099         * modules/freadseek (License): Likewise.
35100         Suggested by Eric Blake.
35101
35102         * modules/memchr2 (License): Change to LGPLv2+.
35103         Approved by Eric Blake.
35104
35105 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35106             Bruno Haible  <bruno@clisp.org>
35107
35108         Make gnulib-tool work with native 'sed' on AIX.
35109         * gnulib-tool (sed_noop): New variable.
35110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35111         func_add_or_update, func_create_testdir): Use it to initialize sed
35112         script variables.
35113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35114
35115 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35116             Bruno Haible  <bruno@clisp.org>
35117
35118         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35119         also works after #include directives.
35120
35121 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
35122
35123         getdate.y: reject an out-of-range timezone value
35124         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35125         the range [-24...+24].  When specified with only one or two digits,
35126         * tests/test-getdate.c: Tests for the fix.
35127         * doc/getdate.texi: Document this change.
35128
35129 2008-09-03  Bruno Haible  <bruno@clisp.org>
35130
35131         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35132
35133 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35134
35135         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35136         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35137         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35138         Blake <ebb9@byu.net>.
35139
35140         * tests/test-bitrotate.c: Add more test vectors.
35141
35142 2008-09-02  Eric Blake  <ebb9@byu.net>
35143
35144         vasnprintf-posix: handle large precision via %.*d
35145         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35146         when handling it ourselves.
35147         * tests/test-vasnprintf-posix.c (test_function): Add test.
35148         * tests/test-snprintf-posix.h (test_function): Likewise.
35149         * tests/test-sprintf-posix.h (test_function): Likewise.
35150         * tests/test-vasprintf-posix.c (test_function): Likewise.
35151         Reported by Alain Guibert.
35152
35153 2008-09-01  Eric Blake  <ebb9@byu.net>
35154
35155         c-stack: make configure-time check more robust
35156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35157         successful sigaction call.
35158         Reported by Tom G. Christensen.
35159
35160 2008-09-01  Bruno Haible  <bruno@clisp.org>
35161
35162         New module 'findprog-lgpl'.
35163         * modules/findprog-lgpl: New file.
35164         * lib/findprog-lgpl.c: New file.
35165         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35166         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35167         to decide whether to use strdup or xstrdup, concatenated_filename or
35168         xconcatenated_filename.
35169
35170 2008-09-01  Bruno Haible  <bruno@clisp.org>
35171
35172         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35173         'xconcat-filename' (GPL).
35174         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35175         (License): Change to LGPLv2+.
35176         * modules/xconcat-filename: New file.
35177         * lib/concat-filename.h (concatenated_filename): Change specification.
35178         (xconcatenated_filename): New declaration.
35179         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35180         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35181         memory situations.
35182         * lib/xconcat-filename.c: New file.
35183         * NEWS: Mention the change.
35184         * lib/findprog.c: Include concat-filename.h, not filename.h.
35185         (find_in_path): Use xconcatenated_filename instead of
35186         concatenated_filename.
35187         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35188         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35189         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35190         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35191         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35192         instead of concatenated_filename.
35193         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35194         (execute_java_class): Use xconcatenated_filename instead of
35195         concatenated_filename.
35196         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35197         * modules/javacomp (Depends-on): Likewise.
35198         * modules/javaexec (Depends-on): Likewise.
35199
35200 2008-09-01  Bruno Haible  <bruno@clisp.org>
35201
35202         Split module 'filename' into 'filename' and 'concat-filename'.
35203         * modules/filename: Keep only lib/filename.h.
35204         (License): Change to LGPLv2+.
35205         * modules/concat-filename: New file, extracted from modules/filename.
35206         * lib/filename.h (concatenated_filename): Remove declaration.
35207         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35208         * lib/concat-filename.c: Include concat-filename.h.
35209         * NEWS: Mention the change.
35210
35211 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35212
35213         * lib/bitrotate.h (rotl8, rotr8): Add.
35214
35215         * modules/bitrotate (configure.ac): Need
35216         AC_REQUIRE([AC_C_INLINE]).
35217         (Description): Mention stdint.h.  Reported by Bruno Haible
35218         <bruno@clisp.org>.
35219
35220         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35221         Paolo Bonzini <bonzini@gnu.org>.
35222
35223 2008-08-31  Bruno Haible  <bruno@clisp.org>
35224
35225         Assume Solaris specific bi-arch conventions on Solaris systems.
35226         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35227         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35229         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35230         like acl_libdirstem.
35231         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35232         acl_libdirstem.
35233         * NEWS: Mention the change.
35234         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35235
35236 2008-08-31  Jim Meyering  <meyering@redhat.com>
35237
35238         * lib/strftime.h: Add comments describing the two added arguments.
35239
35240         remove duplicate #include directives
35241         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
35242         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
35243
35244 2008-08-31  Bruno Haible  <bruno@clisp.org>
35245
35246         New module 'sigpipe-die'.
35247         * modules/sigpipe-die: New file.
35248         * lib/sigpipe-die.h: New file.
35249         * lib/sigpipe-die.c: New file.
35250         * MODULES.html.sh (Signal handling): Add sigpipe-die.
35251
35252 2008-08-31  Bruno Haible  <bruno@clisp.org>
35253
35254         Don't override previously installed signal handlers.
35255         * lib/fatal-signal.c (saved_sigactions): New variable.
35256         (uninstall_handlers): Reset the signal to the saved handler, not
35257         to SIG_DFL (except when ignored).
35258         (install_handlers): Save the previous handlers.
35259
35260 2008-08-30  Bruno Haible  <bruno@clisp.org>
35261
35262         * gnulib-tool (func_reset_sigpipe): New function.
35263         (func_get_automake_snippet, func_modules_transitive_closure,
35264         func_import): Invoke it before a join command that reads from stdin,
35265         to avoid "echo: write error: Broken pipe" error messages on stderr.
35266         Reported by Sam Steingold <sds@gnu.org>.
35267
35268 2008-08-30  Bruno Haible  <bruno@clisp.org>
35269
35270         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
35271         Code copied from m4/open.m4.
35272         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
35273         access and the filename ends in a slash. Code copied from lib/open.c.
35274         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
35275         * tests/test-fopen.c (main): Check against bug with trailing slash.
35276
35277 2008-08-29  Bruno Haible  <bruno@clisp.org>
35278
35279         Avoid some "gcc -pedantic" warnings.
35280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
35281         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
35282         * lib/dirent.in.h: Likewise.
35283         * lib/fcntl.in.h: Likewise.
35284         * lib/float.in.h: Likewise.
35285         * lib/iconv.in.h: Likewise.
35286         * lib/inttypes.in.h: Likewise.
35287         * lib/locale.in.h: Likewise.
35288         * lib/math.in.h: Likewise.
35289         * lib/netinet_in.in.h: Likewise.
35290         * lib/search.in.h: Likewise.
35291         * lib/signal.in.h: Likewise.
35292         * lib/stdarg.in.h: Likewise.
35293         * lib/stdint.in.h: Likewise.
35294         * lib/stdio.in.h: Likewise.
35295         * lib/stdlib.in.h: Likewise.
35296         * lib/string.in.h: Likewise.
35297         * lib/strings.in.h: Likewise.
35298         * lib/sys_select.in.h: Likewise.
35299         * lib/sys_socket.in.h: Likewise.
35300         * lib/sys_stat.in.h: Likewise.
35301         * lib/sys_time.in.h: Likewise.
35302         * lib/sysexits.in.h: Likewise.
35303         * lib/time.in.h: Likewise.
35304         * lib/unistd.in.h: Likewise.
35305         * lib/wchar.in.h: Likewise.
35306         * lib/wctype.in.h: Likewise.
35307         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
35308         * modules/fchdir (Makefile.am): Likewise.
35309         * modules/fcntl (Makefile.am): Likewise.
35310         * modules/float (Makefile.am): Likewise.
35311         * modules/iconv_open (Makefile.am): Likewise.
35312         * modules/inttypes (Makefile.am): Likewise.
35313         * modules/locale (Makefile.am): Likewise.
35314         * modules/math (Makefile.am): Likewise.
35315         * modules/netinet_in (Makefile.am): Likewise.
35316         * modules/search (Makefile.am): Likewise.
35317         * modules/signal (Makefile.am): Likewise.
35318         * modules/stdarg (Makefile.am): Likewise.
35319         * modules/stdint (Makefile.am): Likewise.
35320         * modules/stdio (Makefile.am): Likewise.
35321         * modules/stdlib (Makefile.am): Likewise.
35322         * modules/string (Makefile.am): Likewise.
35323         * modules/strings (Makefile.am): Likewise.
35324         * modules/sys_select (Makefile.am): Likewise.
35325         * modules/sys_socket (Makefile.am): Likewise.
35326         * modules/sys_stat (Makefile.am): Likewise.
35327         * modules/sys_time (Makefile.am): Likewise.
35328         * modules/sysexits (Makefile.am): Likewise.
35329         * modules/time (Makefile.am): Likewise.
35330         * modules/unistd (Makefile.am): Likewise.
35331         * modules/wchar (Makefile.am): Likewise.
35332         * modules/wctype (Makefile.am): Likewise.
35333         Reported by Reuben Thomas <rrt@sc3d.org>.
35334
35335 2008-08-29  Bruno Haible  <bruno@clisp.org>
35336
35337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
35338         any more.
35339
35340 2008-08-29  Simon Josefsson  <simon@josefsson.org>
35341
35342         * MODULES.html.sh (Misc): Add bitrotate.
35343
35344         * modules/bitrotate: New file.
35345
35346         * lib/bitrotate.h: New file.
35347
35348         * modules/bitrotate-tests: New file.
35349
35350         * tests/test-bitrotate.c: New file.
35351
35352         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
35353         on the bitrotate module.
35354
35355         * lib/arctwo.c: Use new bitrotate module.
35356
35357 2008-08-29  Jim Meyering  <meyering@redhat.com>
35358
35359         bootstrap: merge changes from coreutils
35360         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
35361         of copied files.  Remove a kludge, now that this is fixed.
35362         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
35363         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
35364         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
35365
35366 2008-08-29  Bruno Haible  <bruno@clisp.org>
35367
35368         * MODULES.html.sh: Remove --cvs-urls option.
35369
35370 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
35371
35372         maint.mk: adjust to file name change
35373         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
35374
35375 2008-08-28  Jim Meyering  <meyering@redhat.com>
35376
35377         * modules/getndelim2 (License): Relicense to LGPLv2+.
35378         Approved by Richard Stallman for the version of 1995, and by
35379         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
35380
35381 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
35382
35383         * lib/getdelim.c (flockfile, funlockfile): Make all of them
35384         dummy if one is not available.  Do not touch them if
35385         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
35386         (getc_maybe_unlocked): New.
35387         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
35388
35389 2008-08-26  Eric Blake  <ebb9@byu.net>
35390
35391         doc/INSTALL: resync from autoconf
35392         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
35393         (INSTALL_PRELUDE): Delete; this is done more efficiently by
35394         moving...
35395         * install.texi [!autoconf]: ...here.  Resync from autoconf.
35396         * INSTALL: Regenerate.
35397         * INSTALL.ISO: New file.
35398         * INSTALL.UTF-8: Likewise.
35399
35400 2008-08-26  Jim Meyering  <meyering@redhat.com>
35401
35402         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
35403         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
35404         these definitions conditional, so that they may be overridden, too.
35405
35406 2008-08-26  Bruno Haible  <bruno@clisp.org>
35407
35408         Generate INSTALL file variants with prettier quotes.
35409         * doc/Makefile (INSTALL_PRELUDE): New macro.
35410         (INSTALL): Use it.
35411         (INSTALL.ISO, INSTALL.UTF-8): New rules.
35412
35413 2008-08-26  Bruno Haible  <bruno@clisp.org>
35414
35415         Run makeinfo in an English locale.
35416         * doc/Makefile (MAKEINFO): New variable.
35417
35418 2008-08-26  Bruno Haible  <bruno@clisp.org>
35419
35420         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
35421         Suggested by Eric Blake.
35422
35423 2008-08-25  Bruno Haible  <bruno@clisp.org>
35424
35425         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
35426
35427 2008-08-25  Eric Blake  <ebb9@byu.net>
35428
35429         c-stack: test that stack overflow can be caught
35430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
35431         that platform allows handling stack overflow; at least OS/2 EMX
35432         has sigaltstack, but crashes before transferring control to
35433         handler on stack overflow.
35434         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
35435         check for HAVE_STACK_OVERFLOW_HANDLING.
35436         Reported by Elbert Pol.
35437
35438 2008-08-25  Bruno Haible  <bruno@clisp.org>
35439
35440         * doc/posix-functions/strftime.texi: Fix description of strftime
35441         module.
35442
35443 2008-08-24  Bruno Haible  <bruno@clisp.org>
35444
35445         * tests/uniwidth/test-uc_width2.c: New file.
35446         * tests/uniwidth/test-uc_width2.sh: New file.
35447         * modules/uniwidth/width-tests (Files): Add the new files.
35448         (TESTS): Add uniwidth/test-uc_width2.sh.
35449         (TESTS_ENVIRONMENT): New variable.
35450         (check_PROGRAMS): Add test-uc_width2.
35451         (test_uc_width2_SOURCES): New variable.
35452
35453         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
35454         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
35455         not 0x00AB.
35456         Reported by Alexander V. Lukyanov <lav@netis.ru>.
35457
35458 2008-08-22  Eric Blake  <ebb9@byu.net>
35459
35460         test-lock, test-tls: mention why a test is skipped
35461         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
35462         skipped.
35463         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
35464
35465         count-one-bits: relax license
35466         * modules/count-one-bits (License): Relicense to LGPLv2+.
35467         Suggested by Ludovic Courtès, approved by Ben Pfaff.
35468
35469 2008-08-22  Andreas Schwab  <schwab@suse.de>
35470
35471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35472         Remove spurious space in assignment.
35473
35474 2008-08-21  Simon Josefsson  <simon@josefsson.org>
35475
35476         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
35477         Paul Eggert <eggert@CS.UCLA.EDU>.
35478
35479 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
35480
35481         * modules/gettext: Add m4/threadlib.m4.
35482
35483 2008-08-19  Eric Blake  <ebb9@byu.net>
35484
35485         test-c-stack: fix compilation failure on FreeBSD 5.0
35486         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
35487         headers before <sys/resource.h>.
35488         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
35489         the bug.
35490         Reported by Nelson H. F. Beebe.
35491
35492         strverscmp: migrate from "strverscmp.h" to <string.h>
35493         * modules/string (Makefile.am): Add new hooks.
35494         * modules/strverscmp (Files): Remove strverscmp.h.
35495         (Depends-on): Add string.
35496         (configure.ac): Add indicator.
35497         (Include): Mention new header.
35498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
35499         defaults.
35500         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
35501         results.
35502         * lib/strverscmp.h: Delete.
35503         * lib/string.in.h (strverscmp): Provide declaration, when needed.
35504         * tests/test-strverscmp.c (includes): Adjust client.
35505         * lib/check-version.c (includes): Likewise.
35506         * NEWS: Document the change.
35507
35508         strverscmp: add unit test
35509         * modules/strverscmp-tests: New file.
35510         * tests/test-strverscmp.c: Likewise.
35511
35512 2008-08-19  Simon Josefsson  <simon@josefsson.org>
35513
35514         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
35515         regarding Windows crypto stuff, from Mono.
35516
35517 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
35518
35519         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
35520         if present, for intel RND.  Return error on failures.
35521
35522 2008-08-18  Ben Pfaff  <blp@gnu.org>
35523
35524         gitlog-to-changelog: give better diagnostic for failed pipe-open
35525         * build-aux/gitlog-to-changelog: Improve error message: suggest
35526         that the version of Git may be too old.
35527
35528 2008-08-18  Simon Josefsson  <simon@josefsson.org>
35529
35530         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
35531         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
35532
35533 2008-08-18  Bruno Haible  <bruno@clisp.org>
35534
35535         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
35536         pthread_in_use().
35537
35538 2008-08-18  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/glthread/threadlib.c: Include <pthread.h>.
35541
35542 2008-08-18  Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
35545         glthread_recursive_lock_* macros.
35546         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
35547         Fix syntax error.
35548
35549 2008-08-18  Bruno Haible  <bruno@clisp.org>
35550
35551         * lib/glthread/thread.c: Avoid forcing a context switch right after
35552         thread creation.
35553
35554 2008-08-17  Bruno Haible  <bruno@clisp.org>
35555
35556         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
35557         * lib/glthread/thread.h: Provide Win32 specific implementation.
35558         * modules/thread (Files): Add lib/glthread/thread.c.
35559         (Depends-on): Add lock.
35560         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
35561
35562 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35563
35564         New module 'yield'.
35565         * modules/yield: New file.
35566         * lib/glthread/yield.h: New file.
35567         * m4/yield.m4: New file.
35568         * MODULES.html.sh (Multithreading): Add yield.
35569
35570 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35571
35572         New module 'thread'.
35573         * modules/thread: New file.
35574         * lib/glthread/thread.h: New file.
35575         * m4/thread.m4: New file.
35576         * MODULES.html.sh (Multithreading): Add thread.
35577
35578 2008-08-17  Bruno Haible  <bruno@clisp.org>
35579
35580         * lib/glthread/lock.h: Include <stdlib.h> always.
35581         * lib/glthread/tls.h: Likewise.
35582         * lib/glthread/cond.h: Likewise.
35583
35584 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35585
35586         New module 'cond'.
35587         * modules/cond: New file.
35588         * lib/glthread/cond.h: New file.
35589         * lib/glthread/cond.c: New file.
35590         * m4/cond.m4: New file.
35591         * MODULES.html.sh (Multithreading): Add cond.
35592
35593 2008-08-16  Eric Blake  <ebb9@byu.net>
35594
35595         c-stack: fix regression on Irix 5.3 from 2008-06-21
35596         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
35597         sa_sigaction...
35598         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
35599         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
35600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
35601         * modules/signal (Makefile.am): Use the value.
35602         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
35603         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
35604         * doc/posix-headers/signal.texi (signal.h): Document this
35605         portability issue.
35606         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
35607         Reported by Tom G. Christensen.
35608
35609 2008-08-17  Bruno Haible  <bruno@clisp.org>
35610
35611         New module 'threadlib'.
35612         * modules/threadlib: New file.
35613         * lib/glthread/threadlib.c: New file, extracted from
35614         lib/glthread/lock.c.
35615         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
35616         functions.
35617         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
35618         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
35619         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
35620         macros.
35621         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
35622         (gl_DISABLE_THREADS): Remove macro.
35623         * modules/lock (Files): Remove build-aux/config.rpath.
35624         (Depends-on): Remove havelib. Add threadlib.
35625         (configure.ac-early): Remove section.
35626         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
35627         * modules/tls (Depends-on): Remove lock. Add threadlib.
35628         (Link): New section, copied from threadlib.
35629         * MODULES.html.sh (Multithreading): Add threadlib.
35630
35631 2008-08-14  Bruno Haible  <bruno@clisp.org>
35632
35633         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
35634         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
35635         glthread_rwlock_unlock, glthread_rwlock_destroy,
35636         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
35637         glthread_recursive_lock_destroy): Define as macros always.
35638         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
35639         glthread_lock_lock.
35640         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
35641         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
35642         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
35643         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
35644         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
35645         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
35646         (glthread_recursive_lock_lock_func): Renamed from
35647         glthread_recursive_lock_lock.
35648         (glthread_recursive_lock_unlock_func): Renamed from
35649         glthread_recursive_lock_unlock.
35650         (glthread_recursive_lock_destroy_func): Renamed from
35651         glthread_recursive_lock_destroy.
35652
35653 2008-08-14  Bruno Haible  <bruno@clisp.org>
35654
35655         * lib/glthread/lock.h: Renamed from lib/lock.h.
35656         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
35657         * lib/glthread/tls.h: Renamed from lib/tls.h.
35658         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
35659         * lib/fstrcmp.c: Update includes.
35660         * lib/strsignal.c: Update includes.
35661         * modules/lock (Files, Makefile.am): Update.
35662         (Include): Change to "glthread/lock.h".
35663         * modules/tls (Files, Makefile.am): Update.
35664         (Include): Change to "glthread/tls.h".
35665         * tests/test-lock.c: Update includes.
35666         * tests/test-tls.c: Update includes.
35667         * NEWS: Mention the renamed header files.
35668
35669 2008-08-11  Jim Meyering  <meyering@redhat.com>
35670
35671         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
35672
35673 2008-08-11  Eric Blake  <ebb9@byu.net>
35674
35675         test-c-stack: avoid C99-ism
35676         * tests/test-c-stack.c (main): Fix whitespace, move declaration
35677         before statement.
35678         Reported by Alain Guibert.
35679
35680 2008-08-10  Jim Meyering  <meyering@redhat.com>
35681
35682         ensure that return value of uinttostr et al are not ignored
35683         * lib/inttostr.h (__GNUC_PREREQ): Define.
35684         (__attribute_warn_unused_result__): Define.
35685         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
35686
35687 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
35688
35689         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
35690         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
35691
35692 2008-08-07  Jim Meyering  <meyering@redhat.com>
35693
35694         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
35695
35696         * modules/mkstemp (License): Relicense under LGPLv2+.
35697         * modules/tempname (License): Likewise.
35698
35699 2008-08-06  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/poll.c (poll): Further micro-optimization.
35702
35703 2008-08-06  Jim Meyering  <meyering@redhat.com>
35704
35705         inet_pton.c: use locale-independent tolower
35706         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
35707         (inet_pton6): Use c_tolower rather than tolower.
35708         * modules/inet_pton (Depends-on): Add c-ctype.
35709
35710 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
35711
35712         * lib/poll.c (poll): Avoid division when timeout is 0, cache
35713         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
35714
35715 2008-08-06  Jim Meyering  <meyering@redhat.com>
35716
35717         * modules/inet_pton (License): Relicense under LGPLv2+.
35718
35719 2008-08-03  Bruno Haible  <bruno@clisp.org>
35720
35721         Additional non-aborting API for lock and tls.
35722         * lib/lock.h: Include <errno.h>.
35723         (glthread_lock_init): New macro/function.
35724         (gl_lock_init): Define as wrapper around glthread_lock_init.
35725         (glthread_lock_lock): New macro/function.
35726         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
35727         (glthread_lock_unlock): New macro/function.
35728         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
35729         (glthread_lock_destroy): New macro/function.
35730         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
35731         (glthread_rwlock_init): New macro/function.
35732         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
35733         (glthread_rwlock_rdlock): New macro/function.
35734         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
35735         (glthread_rwlock_wrlock): New macro/function.
35736         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
35737         (glthread_rwlock_unlock): New macro/function.
35738         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
35739         (glthread_rwlock_destroy): New macro/function.
35740         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
35741         (glthread_recursive_lock_init): New macro/function.
35742         (gl_recursive_lock_init): Define as wrapper around
35743         glthread_recursive_lock_init.
35744         (glthread_recursive_lock_lock): New macro/function.
35745         (gl_recursive_lock_lock): Define as wrapper around
35746         glthread_recursive_lock_lock.
35747         (glthread_recursive_lock_unlock): New macro/function.
35748         (gl_recursive_lock_unlock): Define as wrapper around
35749         glthread_recursive_lock_unlock.
35750         (glthread_recursive_lock_destroy): New macro/function.
35751         (gl_recursive_lock_destroy): Define as wrapper around
35752         glthread_recursive_lock_destroy.
35753         (glthread_once): New macro/function.
35754         (gl_once): Define as wrapper around glthread_once.
35755         Update function declarations.
35756         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
35757         glthread_rwlock_init. Return error code.
35758         (glthread_rwlock_rdlock_multithreaded): Renamed from
35759         glthread_rwlock_rdlock. Return error code.
35760         (glthread_rwlock_wrlock_multithreaded): Renamed from
35761         glthread_rwlock_wrlock. Return error code.
35762         (glthread_rwlock_unlock_multithreaded): Renamed from
35763         glthread_rwlock_unlock. Return error code.
35764         (glthread_rwlock_destroy_multithreaded): Renamed from
35765         glthread_rwlock_destroy. Return error code.
35766         (glthread_recursive_lock_init_multithreaded): Renamed from
35767         glthread_recursive_lock_init. Return error code.
35768         (glthread_recursive_lock_lock_multithreaded): Renamed from
35769         glthread_recursive_lock_lock. Return error code.
35770         (glthread_recursive_lock_unlock_multithreaded): Renamed from
35771         glthread_recursive_lock_unlock. Return error code.
35772         (glthread_recursive_lock_destroy_multithreaded): Renamed from
35773         glthread_recursive_lock_destroy. Return error code.
35774         (glthread_once_call): Make static.
35775         (glthread_once_multithreaded): Renamed from glthread_once.
35776         * lib/tls.h: Include <errno.h>.
35777         (glthread_tls_key_init): New macro/function.
35778         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
35779         (glthread_tls_set): New macro/function.
35780         (gl_tls_set): Define as wrapper around glthread_tls_set.
35781         (glthread_tls_key_destroy): New macro/function.
35782         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
35783         Update function declarations.
35784         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
35785         glthread_tls_get.
35786         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35787
35788 2008-08-04  Eric Blake  <ebb9@byu.net>
35789
35790         gnumakefile: use space, not TAB, outside of targets
35791         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
35792
35793 2008-08-02  Jim Meyering  <meyering@redhat.com>
35794
35795         getdate.y: avoid locale-dependent date parsing failure
35796         In Turkish locales, getdate would fail to recognize keywords
35797         containing a lowercase "i".  The solution is not to rely on
35798         locale-sensitive case-conversion.
35799         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
35800         (lookup_word): Use c_toupper in place of toupper.
35801         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
35802         Reported by Vefa Bicakci <bicave@superonline.com> in
35803         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
35804         * modules/getdate (Depends-on): Add c-ctype.
35805
35806 2008-08-02  Bruno Haible  <bruno@clisp.org>
35807
35808         * gnulib-tool (func_import): When updating or creating a .gitignore
35809         file, prepend each added line with a slash, and ignore leading slashes
35810         from the existing lines.
35811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35812
35813 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35814
35815         Portability fix for GNU make 3.79.1.
35816         * top/GNUmakefile: Avoid 'else COND', which older GNU make
35817         versions do not understand.
35818
35819 2008-08-01  Bruno Haible  <bruno@clisp.org>
35820
35821         Work around bug of HP-UX 10.20 cc with -0.0 literal.
35822         * tests/test-isnanf.h (zero): New variable.
35823         (main): Avoid literal -0.0f.
35824         * tests/test-isnand.h (zero): New variable.
35825         (main): Avoid literal -0.0.
35826         * tests/test-isnanl.h (zero): New variable.
35827         (main): Avoid literal -0.0L.
35828         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
35829         (test_float, test_double, test_long_double): Avoid literals -0.0f,
35830         -0.0, -0.0L.
35831         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
35832         (test_signbitd): Avoid literal -0.0.
35833         (test_signbitl): Avoid literal -0.0L.
35834         * tests/test-ceilf1.c (zero): New variable.
35835         (main): Avoid literal -0.0f.
35836         * tests/test-ceill.c (zero): New variable.
35837         (main): Avoid literal -0.0L.
35838         * tests/test-floorf1.c (zero): New variable.
35839         (main): Avoid literal -0.0f.
35840         * tests/test-floorl.c (zero): New variable.
35841         (main): Avoid literal -0.0L.
35842         * tests/test-roundf1.c (zero): New variable.
35843         (main): Avoid literal -0.0f.
35844         * tests/test-round1.c (zero): New variable.
35845         (main): Avoid literal -0.0.
35846         * tests/test-roundl.c (zero): New variable.
35847         (main): Avoid literal -0.0L.
35848         * tests/test-truncf1.c (zero): New variable.
35849         (main): Avoid literal -0.0f.
35850         * tests/test-trunc1.c (zero): New variable.
35851         (main): Avoid literal -0.0.
35852         * tests/test-truncl.c (zero): New variable.
35853         (main): Avoid literal -0.0L.
35854         * tests/test-frexp.c (zero): New variable.
35855         (main): Avoid literal -0.0.
35856         * tests/test-frexpl.c (zero): New variable.
35857         (main): Avoid literal -0.0L.
35858         * tests/test-ldexpl.c (zero): New variable.
35859         (main): Avoid literal -0.0L.
35860         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35861         (zerod, zerol): New variables.
35862         (test_function): Avoid literals -0.0, -0.0L.
35863         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
35864         (zerod, zerol): New variables.
35865         (test_function): Avoid literals -0.0, -0.0L.
35866         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35867         (zerod, zerol): New variables.
35868         (test_function): Avoid literals -0.0, -0.0L.
35869         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
35870         (zerod, zerol): New variables.
35871         (test_function): Avoid literals -0.0, -0.0L.
35872         * tests/test-strtod.c (zero): New variable.
35873         (main): Avoid literal -0.0.
35874         Reported by Jonathan C. Patschke <jp@centtech.com>.
35875
35876 2008-07-31  Jim Meyering  <meyering@redhat.com>
35877
35878         sha256.h: correct definition of SHA224_DIGEST_SIZE
35879         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
35880         Reported by Paulie Pena IV <paulie4@gmail.com>.
35881         Define as 224 / 8, rather than as a literal.
35882         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
35883         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
35884         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
35885
35886 2008-07-31  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
35889         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
35890         Reported by Jonathan Patschke <jp@centtech.com>.
35891
35892 2008-07-31  Bruno Haible  <bruno@clisp.org>
35893
35894         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
35895         Reported by Paolo Bonzini <bonzini@gnu.org>.
35896
35897 2008-07-30  Eric Blake  <ebb9@byu.net>
35898
35899         test-strtod: allow compilation without -lm
35900         * tests/test-strtod.c (main): Avoid link dependence on fabs.
35901         Reported by Dennis Clarke <blastwave@gmail.com>.
35902
35903 2008-07-28  Jim Meyering  <meyering@redhat.com>
35904
35905         bootstrap: work also when there are no .po files in po/
35906         * build-aux/bootstrap (update_po_files): Complete the change
35907         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
35908
35909 2008-07-27  Jim Meyering  <meyering@redhat.com>
35910
35911         * users.txt: Add zile.
35912
35913 2008-07-26  Ben Pfaff  <blp@gnu.org>
35914
35915         Add missing dependencies on new m4/exponent[fdl].m4 files.
35916         * modules/isnanf-nolibm: Add m4/exponentf.m4.
35917         * modules/isnand-nolibm: Add m4/exponentd.m4.
35918         * modules/isnanl-nolibm: Add m4/exponentl.m4.
35919         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
35920         m4/isnan[fdl].m4, because the macros actually used moved.
35921         Reported by Jim Meyering.
35922
35923 2008-07-14  Ben Pfaff  <blp@gnu.org>
35924
35925         Add isinf module.
35926         * lib/isinf.c: New file.
35927         * lib/math.in.h: Define isinf macro if we have decided to replace
35928         it.
35929         * m4/isinf.m4: New file.
35930         * m4/math_h.m4: Initialize and substitute variables for isinf
35931         module.
35932         * modules/isinf: New file.
35933         * modules/isinf-tests: New file.
35934         * modules/math: Add substitutions for new module.
35935         * tests/test-isinf.c: New file.
35936         * doc/posix-functions/isinf.texi: Mention new module.
35937         * MODULES.html.sh: Mention new module.
35938
35939 2008-07-14  Ben Pfaff  <blp@gnu.org>
35940
35941         Factor out some macros for use by additional modules.
35942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
35943         exponentf.m4.
35944         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
35945         exponentd.m4.
35946         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
35947         file exponentl.m4.
35948         * m4/exponentf.m4: New file.
35949         * m4/exponentd.m4: New file.
35950         * m4/exponentl.m4: New file.
35951         * modules/isnanf: Use new file m4/exponentf.m4.
35952         * modules/isnand: Use new file m4/exponentd.m4.
35953         * modules/isnanl: Use new file m4/exponentl.m4.
35954
35955 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
35956
35957         mktime.c: normalize tp->tm_isdst value to -1/0/1.
35958         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
35959         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
35960         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
35961
35962         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
35963         readlink on platforms without PATH_MAX.
35964
35965 2008-07-21  Eric Blake  <ebb9@byu.net>
35966
35967         Warn, not fail, on stale version.
35968         * top/GNUmakefile (_curr-ver): Tone down previous patch.
35969
35970         Don't allow installation with stale devel version number.
35971         * top/GNUmakefile (_is-install-target): New macro.
35972         (_curr-ver): Forbid installation with stale version number.
35973
35974 2008-07-20  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35977         TESTS_ENVIRONMENT.
35978         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35979
35980 2008-07-20  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/c-stack.h (c_stack_action): Add documentation.
35983         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35984
35985 2008-07-20  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35988         * modules/readlink (License): Likewise.
35989
35990 2008-07-17  Eric Blake  <ebb9@byu.net>
35991
35992         * modules/c-stack (Link): Fix typo.
35993
35994         Make c-stack use libsigsegv, when available.
35995         * modules/c-stack (Depends-on): Add libsigsegv.
35996         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35997         needed.
35998         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35999         (segv_handler, overflow_handler, c_stack_action)
36000         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36001         implementation when libsigsegv is available, but only when using
36002         the library is necessary.
36003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36004         comment, explaining why XSI check fails on Linux.
36005         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36006         * tests/test-c-stack2.sh: Tweak skip message.
36007         * NEWS: Document new link-time requirements.
36008
36009 2008-07-16  Eric Blake  <ebb9@byu.net>
36010
36011         c-stack: Expose false positives when not using libsigsegv.
36012         * modules/c-stack-tests (Files): Expand test.
36013         * tests/test-c-stack.c (main): Add means to conditionally trigger
36014         non-overflow SIGSEGV.
36015         * tests/test-c-stack2.sh: New file.
36016
36017 2008-07-14  Bruno Haible  <bruno@clisp.org>
36018
36019         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36020         Reported by Eric Blake.
36021
36022 2008-07-14  Sam Steingold  <sds@gnu.org>
36023             Bruno Haible  <bruno@clisp.org>
36024
36025         New module libsigsegv.
36026         * modules/libsigsegv: New file.
36027         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36028         modifications.
36029         * MODULES.html.sh (Signal handling): New section.
36030
36031 2008-07-14  Bruno Haible  <bruno@clisp.org>
36032
36033         * modules/unictype/ctype-* (Description): Add the word "function".
36034         Improves the resulting doc in MODULES.html.
36035
36036 2008-07-12  Ben Pfaff  <blp@gnu.org>
36037
36038         Add longlong module.
36039         * modules/longlong: New file.
36040
36041 2008-07-12  Bruno Haible  <bruno@clisp.org>
36042
36043         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36044         to empty.
36045
36046 2008-07-10  Ben Pfaff  <blp@gnu.org>
36047
36048         Add isnan module.
36049         * doc/posix-functions/isnan.texi: Mention new module.
36050         * lib/math.in.h: Define isnan macro if we have decided to replace
36051         it.
36052         * m4/isnan.m4: New file.
36053         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36054         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36055         also.
36056         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36057         redundancy.
36058         * m4/math_h.m4: Initialize and substitute variables for isnan
36059         module.
36060         * modules/isnan: New file.
36061         * modules/isnan-tests: New file.
36062         * modules/math: Add substitutions for new module.
36063         * tests/test-isnan.c: New file.
36064         * MODULES.html.sh: Mention new module.
36065
36066 2008-07-10  Ben Pfaff  <blp@gnu.org>
36067
36068         Add isnanf module.
36069         * lib/isnanf.m4: New file.
36070         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36071         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36072         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36073         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36074         * modules/isnanf: New file.
36075         * modules/isnanf-tests: New file.
36076         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36077         files.
36078         * tests/test-isnanf-nolibm.c: factored most of its contents into
36079         new file tests/test-isnanf.h.
36080         * tests/test-isnanf.h: New file.
36081         * tests/test-isnanf.c: New file.
36082         * MODULES.html.sh: Mention new module.
36083         * doc/glibc-functions/isnanf.texi: Mention new module.
36084
36085 2008-07-10  Ben Pfaff  <blp@gnu.org>
36086
36087         Add isnand module.
36088         * lib/isnand.h: New file.
36089         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36090         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36091         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36092         functionality also.
36093         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36094         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36095         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36096         * modules/isnand: New file.
36097         * modules/isnand-tests: New file.
36098         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36099         files.
36100         * tests/test-isnand-nolibm.c: factored most of its contents into
36101         new file tests/test-isnand.h.
36102         * tests/test-isnand.h: New file.
36103         * tests/test-isnand.c: New file.
36104         * MODULES.html.sh: Mention new module.
36105
36106 2008-07-10  Ben Pfaff  <blp@gnu.org>
36107
36108         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36109         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36110         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36111         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36112         * modules/isnanf-nolibm: Update references to renamed files.
36113         * modules/isnand-nolibm: Likewise.
36114         * modules/isnanf-nolibm-tests: Likewise.
36115         * modules/isnand-nolibm-tests: Likewise.
36116         * lib/frexp.c: Likewise.
36117         * lib/isfinite.c: Likewise.
36118         * lib/signbitd.c: Likewise.
36119         * lib/signbitf.c: Likewise.
36120         * lib/vasnprintf.c: Likewise.
36121         * tests/test-ceilf1.c: Likewise.
36122         * tests/test-ceilf2.c: Likewise.
36123         * tests/test-floorf1.c: Likewise.
36124         * tests/test-floorf2.c: Likewise.
36125         * tests/test-frexp.c: Likewise.
36126         * tests/test-round1.c: Likewise.
36127         * tests/test-round2.c: Likewise.
36128         * tests/test-roundf1.c: Likewise.
36129         * tests/test-strtod.c: Likewise.
36130         * tests/test-trunc1.c: Likewise.
36131         * tests/test-trunc2.c: Likewise.
36132         * tests/test-truncf1.c: Likewise.
36133         * tests/test-truncf2.c: Likewise.
36134         * NEWS: Mention the renamed header files.
36135
36136 2008-07-11  Jim Meyering  <meyering@redhat.com>
36137
36138         vc-list-files: make the last-resort awk code more portable
36139         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36140         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36141         does not support it.
36142
36143 2008-07-10  Eric Blake  <ebb9@byu.net>
36144
36145         Work with tar's bootstrap.
36146         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36147         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36148         an m4 comment.
36149
36150 2008-07-09  Jim Meyering  <meyering@redhat.com>
36151
36152         posix-shell.m4: fix typo that made this test malfunction
36153         * m4/posix-shell.m4: Remove capitalization in variable name.
36154
36155 2008-07-08  Bruno Haible  <bruno@clisp.org>
36156
36157         * m4/onceonly.m4: Update comments.
36158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36159
36160 2008-07-04  Jim Meyering  <meyering@redhat.com>
36161
36162         * users.txt: Add vc-dwim.
36163         (bison, coreutils): Use the gitweb URL.
36164
36165 2008-07-03  Jim Meyering  <meyering@redhat.com>
36166
36167         * users.txt: Add libffcall.  From Sam Steingold.
36168
36169 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
36170
36171         getdate.y: do not ignore TZ with relative day, month or year offset
36172         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36173         relative-date-handling, since otherwise, the latter would clobber the
36174         sole output (an updated Start value) of the tz-handling block.
36175         * tests/test-getdate.c: Tests for the fix
36176
36177 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36178
36179         Recognize 'foo_LIBRARIES += libgnu.a'.
36180         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36181         makefile snippet has already specified an installation location,
36182         also using '+='.
36183
36184 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
36185
36186         getdate.y: factor out common actions
36187         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36188         Use them in place of open-coded actions.
36189
36190 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36191
36192         Add self-test for getdate module.
36193         * modules/getdate-tests: New file.
36194         * tests/test-getdate.c: New file.
36195
36196 2008-06-29  Bruno Haible  <bruno@clisp.org>
36197
36198         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36199         .gitignore.
36200         Reported by Sylvain Beucler <beuc@beuc.net>.
36201
36202 2008-06-29  Bruno Haible  <bruno@clisp.org>
36203
36204         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36205         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36206
36207 2008-06-29  Bruno Haible  <bruno@clisp.org>
36208
36209         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36210         EXTRA_DIST.
36211         Reported by Sylvain Beucler <beuc@beuc.net>.
36212
36213 2008-06-26  Jim Meyering  <meyering@redhat.com>
36214
36215         make several modules depend on the "open" module
36216         This provides slightly increased consistency when opening-for-write
36217         the name of a non-directory spelled with a trailing slash.
36218         * modules/chdir-safer: Likewise.
36219         * modules/chown: Likewise.
36220         * modules/clean-temp: Likewise.
36221         * modules/copy-file: Likewise.
36222         * modules/fchdir: Likewise.
36223         * modules/fcntl-safer: Likewise.
36224         * modules/pipe: Likewise.
36225         * modules/utime: Likewise.
36226         Prompted by Eric Blake and Bruno Haible.
36227
36228 2008-06-24  Andreas Schwab  <schwab@suse.de>
36229
36230         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36231         literals can be used as initializers for global variables.
36232
36233 2008-06-23  Eric Blake  <ebb9@byu.net>
36234
36235         Make gnulib-cache.m4 easier to diff.
36236         * gnulib-tool (func_import): Allow newlines when reading cached
36237         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36238
36239 2008-06-23  Bruno Haible  <bruno@clisp.org>
36240
36241         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
36242         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
36243         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
36244         m4/signalblocking.m4.
36245         (gl_PREREQ_SIGACTION): Don't invoke it.
36246         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
36247         gl_PREREQ_SIG_HANDLER_H.
36248         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36249         Don't check for sigaction here.
36250
36251 2008-06-23  Bruno Haible  <bruno@clisp.org>
36252
36253         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
36254         (install_handlers): Don't set the SA_RESETHAND flag.
36255
36256 2008-06-23  Bruno Haible  <bruno@clisp.org>
36257
36258         * m4/sigaction.m4: Comment fixes.
36259         * lib/signal.in.h: Likewise.
36260
36261 2008-06-23  Eric Blake  <ebb9@byu.net>
36262
36263         Fix typo.
36264         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
36265
36266         Avoid SA_ namespace.
36267         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
36268         Reported by Ralf Wildenhues.
36269
36270         Avoid test failure due to SA_RESTORER.
36271         * tests/test-sigaction.c (SA_MASK): New macro.
36272         (main): Avoid failing due to extension flags being set.
36273         Reported by Jim Meyering.
36274
36275         Revert use of sig-handler.h in sigprocmask.c.
36276         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
36277         it requires the existence of struct sigaction.
36278         * lib/sigprocmask.c (handler_t): Restore typedef.
36279         (rpl_signal, old_handlers): Use local type.
36280
36281 2008-06-22  Bruno Haible  <bruno@clisp.org>
36282
36283         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
36284         conditionally.
36285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36286
36287 2008-06-22  Bruno Haible  <bruno@clisp.org>
36288
36289         * doc/posix-functions/siginterrupt.texi: Move note.
36290
36291         * lib/signal.in.h (SA_RESTART): New macro.
36292         * lib/sigaction.c: Update comment.
36293
36294         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
36295
36296         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
36297         (gl_PREREQ_SIGPROCMASK): Invoke it.
36298         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
36299
36300         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
36301
36302         * lib/sigprocmask.c: Update a comment.
36303
36304 2008-06-21  Eric Blake  <ebb9@byu.net>
36305
36306         Use sigaction module rather than signal().
36307         * modules/c-stack (Depends-on): Add sigaction.
36308         * modules/fatal-signal (Depends-on): Likewise.
36309         * modules/nanosleep (Depends-on): Likewise.
36310         * modules/sigprocmask (Files): Add sig-handler.h.
36311         * modules/sigaction (Files): Likewise.
36312         * lib/sig-handler.h (get_handler): New file, suggested by Paul
36313         Eggert.
36314         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
36315         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
36316         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
36317         (init_fatal_signals): Likewise.
36318         * lib/nanosleep.c (rpl_nanosleep): Likewise.
36319         (siginterrupt): Delete fallback.
36320         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
36321         instead.
36322         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
36323         siginterrupt.
36324
36325         New module sigaction, for mingw.
36326         * modules/sigaction: New module...
36327         * modules/sigaction-tests: ...and its test.
36328         * m4/sigaction.m4: New file.
36329         * lib/sigaction.c: Likewise.
36330         * tests/test-sigaction.c: Likewise.
36331         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
36332         * modules/signal (Makefile.am): Likewise.
36333         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
36334         needed.
36335         * doc/posix-headers/signal.texi (signal.h): Mention provided
36336         types.
36337         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
36338         that sigaction is preferable.
36339         * doc/posix-functions/sigaction.texi (sigaction): Mention new
36340         module.
36341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36342         sigaction.
36343
36344         Improve robustness of sigprocmask by overriding signal.
36345         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
36346         is in use.
36347         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
36348         (SIGKILL, SIGSTOP): Provide fallbacks.
36349         (rpl_signal): Implement.
36350         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
36351         signal can be called inside handlers.
36352
36353         Fix nanosleep module on mingw.
36354         * modules/nanosleep (Depends-on): Add sys_select.
36355         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
36356
36357         Fix licensing of sigprocmask.
36358         * modules/raise (License): Relicense as LGPL.
36359
36360 2008-06-21  Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/propername.c (proper_name_utf8): Don't use the transliterated
36363         result if it contains question marks.
36364         Reported by Michael Geng <linux@michaelgeng.de>.
36365
36366 2008-06-19  Bruno Haible  <bruno@clisp.org>
36367
36368         Fix CVS-ism.
36369         * doc/gnulib.texi: Include updated-stamp.texi.
36370         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
36371         (updated-stamp.texi): New rule.
36372         (gnulib.info): Depend on it.
36373         * doc/.gitignore: Add updated-stamp.texi.
36374         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
36375
36376 2008-06-19  Bruno Haible  <bruno@clisp.org>
36377
36378         * doc/Makefile (gnulib.info): Update and simplify dependencies.
36379         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36380
36381 2008-06-19  Eric Blake  <ebb9@byu.net>
36382
36383         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
36384         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
36385         Reported by Stepan Kasal.
36386
36387 2008-06-18  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/fatal-signal.c (init_fatal_signals): Add comment.
36390         Reported by Eric Blake.
36391
36392 2008-06-18  Eric Blake  <ebb9@byu.net>
36393
36394         Work around cygwin 1.5.25 strsignal bug.
36395         * tests/test-strsignal.c: Allow for const char *.
36396         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
36397
36398 2008-06-18  Simon Josefsson  <simon@josefsson.org>
36399
36400         * users.txt: Update URL to article and add author/date
36401         information.
36402
36403 2008-06-17  Bruno Haible  <bruno@clisp.org>
36404
36405         New macro gl_DISABLE_THREADS.
36406         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
36407         if the user did not pass --enable-threads or --disable-threads option.
36408         (gl_DISABLE_THREADS): New macro.
36409         Reported by Eric Blake <ebb9@byu.net>.
36410
36411 2008-06-17  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
36414         when the macro ignores it.
36415         Based on a patch by Eric Blake <ebb9@byu.net>.
36416
36417 2008-06-17  Bruno Haible  <bruno@clisp.org>
36418
36419         * modules/tls (License): Change to LGPLv2+.
36420         Reported by Eric Blake.
36421
36422 2008-06-17  Eric Blake  <ebb9@byu.net>
36423
36424         Simplify c-stack prerequisites.
36425         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
36426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
36427         no longer requires <ucontext.h> to exist.  Optimize setrlimit
36428         check.
36429         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
36430         <sys/resource.h>.
36431
36432         Move c-stack test into testsuite.
36433         * modules/c-stack-tests: New file.
36434         * lib/c-stack.c [DEBUG]: Move test program...
36435         * tests/test-c-stack.c: ...into this new file.  Skip rather than
36436         fail test if sigaltstack is lacking.
36437         * tests/test-c-stack.sh: New driver file.
36438
36439 2008-06-16  Eric Blake  <ebb9@byu.net>
36440
36441         Use raise module consistently.
36442         * modules/fatal-signal (Depends-on): Add raise.
36443         * modules/sigprocmask (Depends-on): Likewise.
36444         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
36445         * lib/sigprocmask.c (sigprocmask): Likewise.
36446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36447         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
36448
36449         Fix compliance bug in sigpending.
36450         * lib/sigprocmask.c (sigpending): Return pending array via
36451         parameter, not return value.
36452
36453 2008-06-14  Eric Blake  <ebb9@byu.net>
36454
36455         Improve obstack-printf test code.
36456         * tests/test-obstack-printf.c (test_function): Fix comment, and
36457         simplify usage of obstack_* in macros.  Add a test for coverage.
36458         Reported by Bruno Haible.
36459
36460 2008-06-14  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
36463         array size as a constant, not as a const variable.
36464         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
36465         AC_USE_SYSTEM_EXTENSIONS.
36466         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36467         Test whether the obstack_printf function actually exists.
36468         * modules/obstack-printf (Depends-on): Add extensions.
36469         (Include): Remove obstack.h.
36470         * modules/obstack-printf-posix (Depends-on): Add extensions.
36471         (Include): Remove obstack.h.
36472
36473 2008-06-13  Eric Blake  <ebb9@byu.net>
36474
36475         Add obstack-printf and obstack-printf-posix modules.
36476         * modules/obstack-printf: New file.
36477         * modules/obstack-printf-posix: Likewise.
36478         * MODULES.html.sh (Misc): Mention them.
36479         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36480         Likewise.
36481         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36482         Likewise.
36483         * modules/stdio (Makefile.am): Accomodate new modules.
36484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36485         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
36486         Declare.
36487         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
36488         functions.
36489         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
36490         (gl_REPLACE_OBSTACK_PRINTF): New macros
36491         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
36492         * tests/test-obstack-printf.c: New file.
36493         * modules/obstack-printf-tests: Likewise.
36494         * modules/obstack-printf-posix-tests: Likewise.
36495
36496 2008-06-11  Bruno Haible  <bruno@clisp.org>
36497
36498         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
36499         * lib/open.c: Include errno.h.
36500         (open): Fail when attempting to write to a file that has a trailing
36501         slash.
36502         * tests/test-open.c (main): Test against trailing slash bug.
36503         * doc/posix-functions/open.texi: Mention the trailing slash bug.
36504
36505 2008-06-10  Bruno Haible  <bruno@clisp.org>
36506
36507         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36508         for $? to work inside the trap command, with various /bin/sh-s.
36509         * tests/test-vc-list-files-cvs.sh: Likewise.
36510
36511 2008-06-10  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/acl-internal.h: Don't include gettext.h here.
36514         * lib/set-mode-acl.c: Include gettext.h here.
36515         * lib/copy-acl.c: Likewise.
36516
36517 2008-06-10  Bruno Haible  <bruno@clisp.org>
36518
36519         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
36520         * lib/wait-process.c (wait_subprocess): Likewise.
36521         * lib/execute.h (execute): Add termsigp argument.
36522         * lib/execute.c (execute): Likewise.
36523         * lib/csharpcomp.c (compile_csharp_using_pnet,
36524         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
36525         * lib/csharpexec.c (execute_csharp_using_pnet,
36526         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
36527         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
36528         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
36529         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
36530         is_jikes_present): Update.
36531         * lib/javaexec.c (execute_java_class): Update.
36532         * lib/javaversion.c (execute_and_read_line): Update.
36533         * NEWS: Document the changes.
36534         Reported by Eric Blake.
36535
36536 2008-06-10  Eric Blake  <ebb9@byu.net>
36537
36538         Add missing include.
36539         * tests/test-strstr.c (includes): Add <signal.h>.
36540         * tests/test-strcasestr.c (includes): Likewise.
36541         * tests/test-memmem.c (includes): Likewise.
36542
36543 2008-06-10  Bruno Haible  <bruno@clisp.org>
36544
36545         * lib/wait-process.c (wait_subprocess): Add an assertion.
36546
36547 2008-06-10  Bruno Haible  <bruno@clisp.org>
36548
36549         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
36550
36551 2008-06-10  Bruno Haible  <bruno@clisp.org>
36552
36553         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
36554         using alarm().
36555         * tests/test-strcasestr.c (main): Likewise.
36556         * tests/test-strstr.c (main): Likewise.
36557
36558 2008-06-09  Bruno Haible  <bruno@clisp.org>
36559
36560         Work around the Solaris 10 ACE ACLs ABI change.
36561         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
36562         declare if ACL_NO_TRIVIAL is present.
36563         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
36564         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
36565         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
36566         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
36567         define if ACL_NO_TRIVIAL is present.
36568         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
36569         and use the current ABI.
36570         (file_has_acl): Use same #if condition as elsewhere.
36571         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
36572         in use, and use the current ABI.
36573         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
36574         Reported by Jim Meyering.
36575
36576 2008-06-09  Eric Blake  <ebb9@byu.net>
36577
36578         Work around environments that (stupidly) ignore SIGALRM.
36579         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
36580         before using alarm().
36581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36583         Reported by Ian Beckwith <ianb@erislabs.net>.
36584
36585         Produce autobuild blurb earlier in log.
36586         * modules/autobuild (configure.ac-early): Move AB_INIT here.
36587
36588 2008-06-09  Jim Meyering  <meyering@redhat.com>
36589         and OndÅ™ej Vašík  <ovasik@redhat.com>
36590
36591         utimens.c: correct kernel bug work-around
36592         OndÅ™ej Vašík found that the invalid return value of 280 indicates
36593         failure, not success, and the kernel bug we're trying to work
36594         around affects not just the utimensat call, but also the fallback
36595         futimens call.
36596         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
36597         not success.
36598         [HAVE_FUTIMENS]: Use the same work-around, here.
36599
36600 2008-06-09  Jim Meyering  <meyering@redhat.com>
36601
36602         add more guards around definition of ACE_-related code
36603         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
36604         ALLOW and ACE_OWNER are also defined.
36605
36606 2008-06-08  Bruno Haible  <bruno@clisp.org>
36607
36608         * lib/acl-internal.h: Add me as co-author.
36609         * lib/file-has-acl.c: Likewise.
36610         * lib/set-mode-acl.c: Likewise.
36611         * lib/copy-acl.c: Likewise.
36612
36613 2008-06-08  Bruno Haible  <bruno@clisp.org>
36614
36615         Add support for AIX ACLs.
36616         * lib/acl-internal.h (acl_nontrivial): New declaration.
36617         * lib/file-has-acl.c (acl_nontrivial): New function.
36618         (file_has_acl): Add implementation using AIX 4 ACL API.
36619         * lib/set-mode-acl.c (qset_acl): Likewise.
36620         * lib/copy-acl.c (qcopy_acl): Likewise.
36621
36622 2008-06-08  Bruno Haible  <bruno@clisp.org>
36623
36624         Add support for HP-UX ACLs.
36625         * lib/acl-internal.h (acl_nontrivial): New declaration.
36626         * lib/file-has-acl.c (acl_nontrivial): New function.
36627         (file_has_acl): Add implementation using HP-UX 11 ACL API.
36628         * lib/set-mode-acl.c (qset_acl): Likewise.
36629         * lib/copy-acl.c (qcopy_acl): Likewise.
36630
36631 2008-06-08  Bruno Haible  <bruno@clisp.org>
36632
36633         Add support for Cygwin ACLs.
36634         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
36635         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
36636         the chmod_or_fchmod call.
36637         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
36638
36639 2008-06-08  Bruno Haible  <bruno@clisp.org>
36640
36641         Fix bug with setuid modes in Solaris 10+ code.
36642         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
36643         succeeded, when the mode contains some special bits.
36644
36645 2008-06-08  Bruno Haible  <bruno@clisp.org>
36646
36647         Add support for Solaris 7..10 ACLs.
36648         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
36649         declarations.
36650         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
36651         functions.
36652         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
36653         * lib/set-mode-acl.c (qset_acl): Likewise.
36654         * lib/copy-acl.c (qcopy_acl): Likewise.
36655
36656 2008-06-08  Bruno Haible  <bruno@clisp.org>
36657
36658         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
36659         declaration.
36660         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
36661         (acl_access_nontrivial): Remove MacOS X case.
36662         (file_has_acl): Use acl_extended_nontrivial.
36663         * lib/copy-acl.c (qcopy_acl): Likewise.
36664
36665 2008-06-08  Bruno Haible  <bruno@clisp.org>
36666
36667         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
36668
36669 2008-06-08  Jim Meyering  <meyering@redhat.com>
36670
36671         * modules/acl (Maintainer): Add Bruno Haible.
36672
36673 2008-06-07  Bruno Haible  <bruno@clisp.org>
36674
36675         Improve support for Tru64 ACLs.
36676         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
36677         ACL on OSF/1.
36678
36679 2008-06-07  Bruno Haible  <bruno@clisp.org>
36680
36681         Add support for MacOS X ACLs.
36682         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
36683         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
36684         * lib/set-mode-acl.c (qset_acl): Likewise.
36685         * lib/copy-acl.c (qcopy_acl): Likewise.
36686
36687 2008-06-07  Bruno Haible  <bruno@clisp.org>
36688
36689         Fix memory leak introduced on 2008-05-22.
36690         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
36691         use.
36692
36693 2008-06-07  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
36696         to construct an empty ACL.
36697
36698 2008-06-07  Bruno Haible  <bruno@clisp.org>
36699
36700         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
36701         precisely.
36702         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
36703
36704 2008-06-07  Bruno Haible  <bruno@clisp.org>
36705
36706         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
36707         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
36708
36709 2008-06-07  Bruno Haible  <bruno@clisp.org>
36710
36711         * doc/posix-functions/_setjmp.texi: Explain the use of this function
36712         regardless of POSIX.
36713         * doc/posix-functions/_longjmp.texi: Likewise.
36714         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
36715         SystemV platform in this case.
36716
36717 2008-06-06  Eric Blake  <ebb9@byu.net>
36718
36719         Document abort() bugs.
36720         * doc/posix-functions/abort.texi (abort): Mention anomalies.
36721
36722         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
36723         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
36724         sigsetjmp.
36725         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
36726         siglongjmp, but only as a macro.
36727         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
36728         is obsolete.
36729         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
36730
36731         Tweak documentation to cover cygwin argz bugs.
36732         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
36733         argz bug fix; no code change needed since no cygwin releases
36734         occurred between the last fix and the bug being tested.
36735         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
36736         module and recently fixed cygwin bugs.
36737         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
36738         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
36739         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
36740         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
36741         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
36742         Likewise.
36743         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36744         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
36745         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
36746         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
36747         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
36748         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
36749         Likewise.
36750
36751         Avoid gcc warning on cygwin.
36752         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
36753         !ACL_NO_TRIVIAL]: Avoid unused variable.
36754
36755 2008-06-05  Eric Blake  <ebb9@byu.net>
36756
36757         Be tolerant of UNKNOWN version in gnulib-tool test dir.
36758         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
36759         git-version-gen fails to come up with a version.
36760         Reported by Simon Josefsson.
36761
36762 2008-06-05  Jim Meyering  <meyering@redhat.com>
36763             Paul Eggert  <eggert@cs.ucla.edu>
36764
36765         utimens.c: work around a probable Linux kernel bug
36766         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
36767         appears to be a kernel bug that causes utimensat to return 280
36768         instead of 0, indicating success.
36769
36770 2008-06-04  Bruno Haible  <bruno@clisp.org>
36771
36772         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
36773         2008-06-01 commit.
36774
36775 2008-06-04  Bruno Haible  <bruno@clisp.org>
36776
36777         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
36778         * lib/file-has-acl.c (acl_access_nontrivial): New function.
36779         (file_has_acl): Use it. Save errno afterwards.
36780         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
36781
36782 2008-06-03  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
36785         draft code. Simplify #ifs.
36786         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
36787         Put Solaris code after POSIX-draft code. Fix comments regarding
36788         Solaris 10, HP-UX. Mention Cygwin.
36789         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
36790
36791 2008-06-03  Eric Blake  <ebb9@byu.net>
36792
36793         Provide fallback for older kernels.
36794         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
36795         Provide runtime fallback if kernel lacks support.
36796         Reported by Mike Frysinger.
36797
36798 2008-06-02  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
36801         it exists.
36802
36803 2008-06-02  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
36806         * lib/copy-acl.c (qcopy_acl): Update comment.
36807
36808 2008-06-02  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
36811         like ACL APIs.
36812
36813 2008-06-02  Bruno Haible  <bruno@clisp.org>
36814
36815         * tests/test-file-has-acl.sh: Use different code for Cygwin.
36816         * tests/test-set-mode-acl.sh: Likewise.
36817         * tests/test-copy-acl.sh: Likewise.
36818         * tests/test-copy-file.sh: Likewise.
36819
36820 2008-06-02  Bruno Haible  <bruno@clisp.org>
36821
36822         * tests/test-file-has-acl.sh: Remove unused code.
36823
36824 2008-06-01  Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
36827         (copy_acl): Just a wrapper around qcopy_acl that emits the error
36828         messages.
36829         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
36830
36831 2008-06-01  Bruno Haible  <bruno@clisp.org>
36832
36833         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
36834         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
36835         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
36836         APIs.
36837         * modules/acl-tests (configure.ac): Remove tests now contained in
36838         m4/acl.m4.
36839
36840 2008-06-02  Jim Meyering  <meyering@redhat.com>
36841
36842         announce-gen: use a better key-server host name
36843         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
36844         it may be more consistently reliable.  Suggested by Werner Koch
36845         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
36846
36847 2008-06-01  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
36850         Reported by Voroskoi Andras <voroskoi@gmail.com>.
36851
36852 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
36853
36854         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
36855
36856 2008-06-01  Bruno Haible  <bruno@clisp.org>
36857
36858         New ACL tests.
36859         * tests/test-file-has-acl.sh: New file.
36860         * tests/test-file-has-acl.c: New file.
36861         * tests/test-set-mode-acl.sh: New file.
36862         * tests/test-set-mode-acl.c: New file.
36863         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
36864         * tests/test-copy-acl.c: New file.
36865         * modules/acl-tests: New file, based on modules/copy-file-tests.
36866         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
36867         (Depends-on): Add acl-tests.
36868         (configure.ac): Remove checks.
36869         (Makefile.am): Don't create test-sameacls program here any more.
36870
36871 2008-06-01  Bruno Haible  <bruno@clisp.org>
36872
36873         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
36874         * tests/test-sameacls.c: Include progname.h.
36875         (main): Invoke set_program_name. Portability fixes for MacOS X,
36876         Solaris, HP-UX.
36877
36878 2008-06-01  Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
36881         function.
36882         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
36883
36884 2008-06-01  Bruno Haible  <bruno@clisp.org>
36885
36886         * modules/rpmatch (Depends-on): Add strdup.
36887
36888 2008-06-01  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/pipe.c: Include unistd-safer.h.
36891         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
36892         * modules/pipe (Depends-on): Add unistd-safer.
36893
36894 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36895
36896         * modules/autobuild (configure.ac): Call AB_INIT.
36897
36898 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36899
36900         * tests/test-getaddrinfo.c: Don't print debug messages by default.
36901         Suggested by Bruno Haible <bruno@clisp.org>.
36902
36903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
36904
36905         * tests/test-base64.c: Cast size_t to unsigned long when invoking
36906         printf.  Use %lu instead of %d.  Reported by Bruno Haible
36907         <bruno@clisp.org>.
36908
36909 2008-05-29  Eric Blake  <ebb9@byu.net>
36910
36911         Prefer new POSIX 200x interfaces over futimesat.
36912         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
36913         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
36914         when available.
36915         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
36916
36917 2008-05-28  Bruno Haible  <bruno@clisp.org>
36918
36919         * modules/stpcpy (License): Change to LGPLv2+.
36920         Requested by David Lutterkort <dlutter@redhat.com>.
36921
36922 2008-05-27  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
36925         current mingw.
36926         Reported by Jose E. Marchesi <jemarch@gnu.org>.
36927
36928 2008-05-27  Bruno Haible  <bruno@clisp.org>
36929
36930         * modules/iconv_open (Link): New section, from module 'iconv'.
36931         * modules/striconv (Link): Likewise.
36932         * modules/striconveh (Link): Likewise.
36933         * modules/xstriconv (Link): Likewise.
36934         * modules/unicodeio (Link): Likewise.
36935         * modules/propername (Link): Likewise.
36936         Reported by Jim Meyering.
36937
36938 2008-05-26  Jim Meyering  <meyering@redhat.com>
36939
36940         sha256: do not artificially restrict buffer length to be < 2^32
36941         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
36942         uint32_t to size_t.
36943         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
36944         to match.
36945
36946         avoid unaligned access errors, e.g., on sparc
36947         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
36948         direct access through a possibly-unaligned uint64* pointer.
36949         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
36950         direct access through a possibly-unaligned uint32* pointer.
36951         Prompted by this patch from Tom "spot" Callaway:
36952         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
36953
36954         sha512.c: fix typo in comment
36955         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
36956
36957 2008-05-25  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/set-mode-acl.c: Renamed from lib/acl.c.
36960         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
36961         (Makefile.am): Update lib_SOURCES.
36962
36963 2008-05-25  Bruno Haible  <bruno@clisp.org>
36964
36965         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
36966
36967 2008-05-25  Jim Meyering  <meyering@redhat.com>
36968
36969         useless-if-before-free: freed expr may have white-space differences
36970         * build-aux/useless-if-before-free: Recognize cases in which the
36971         freed expression differs from the tested one in embedded white
36972         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
36973         $1 was used, so we can't make any regexp shy.  Improved tests now
36974         detect this.
36975
36976         useless-if-before-free: accept white space in the expression.
36977         * build-aux/useless-if-before-free: For now, any white space
36978         in the expression must be identical in the free argument.
36979
36980         useless-if-before-free: efficiency tweak
36981         * build-aux/useless-if-before-free: Make the expression-matching
36982         regexp "shy".
36983         Make the *outer* regexp shy, not the expr-matching one.
36984
36985         update code-in-comment to accept cast of free arg
36986         * build-aux/useless-if-before-free: Update regexp.
36987
36988 2008-05-25  Bruno Haible  <bruno@clisp.org>
36989
36990         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36991         * modules/copy-file-tests (Files, Makefile.am): Update.
36992         * tests/test-copy-file.c (func_test_copy): Update.
36993
36994 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36995
36996         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36997
36998 2008-05-23  Bruno Haible  <bruno@clisp.org>
36999
37000         Improve support for ACLs on OSF/1.
37001         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37002         Remove fallback for unknown flavors of ACLs.
37003
37004 2008-05-22  Bruno Haible  <bruno@clisp.org>
37005
37006         Add support for ACLs on OSF/1.
37007         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37008         replacements.
37009         (acl_free_text): New macro fallback.
37010         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37011         acl_free.
37012         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37013         acl_free_text function. Require AC_C_INLINE.
37014
37015 2008-05-22  Bruno Haible  <bruno@clisp.org>
37016
37017         Make copy_acl work on MacOS X 10.5.
37018         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37019         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37020         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37021         If MODE_INSIDE_ACL, don't assume that every system has the same text
37022         representation for ACLs as FreeBSD.
37023         * lib/copy-acl.c (copy_acl): Add support for platforms with
37024         !MODE_INSIDE_ACL.
37025         * lib/file-has-acl.c (file_has_acl): Likewise.
37026         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37027         FreeBSD, MacOS X, or IRIX, respectively.
37028
37029 2008-05-22  Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/acl.h: Don't include <sys/acl.h>.
37032         (GETACLCNT): Move fallback to lib/acl-internal.h.
37033         * lib/acl-internal.h: Include <sys/acl.h> here.
37034         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37035
37036 2008-05-22  Bruno Haible  <bruno@clisp.org>
37037
37038         Split off copy_acl function to separate file.
37039         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37040         * lib/acl.c (copy_acl): Moved function to separate file.
37041         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37042         * modules/acl (Files): Add lib/copy-acl.c.
37043         (Makefiles.am): Augment lib_SOURCES.
37044
37045 2008-05-22  Bruno Haible  <bruno@clisp.org>
37046
37047         * modules/copy-file-tests: New file.
37048         * tests/test-copy-file.sh: New file.
37049         * tests/test-copy-file.c: New file.
37050         * tests/test-copy-file-sameacls.c: New file.
37051
37052 2008-05-22  Eric Blake  <ebb9@byu.net>
37053
37054         Avoid gcc warning.
37055         * tests/test-memcmp.c (main): Pass NULL indirectly.
37056
37057 2008-05-21  Bruno Haible  <bruno@clisp.org>
37058
37059         Add reference doc about ACLs.
37060         * doc/acl-resources.txt: New file.
37061         * doc/acl-cygwin.txt: New file.
37062
37063 2008-05-21  Bruno Haible  <bruno@clisp.org>
37064
37065         Avoid one more warning from gcc.
37066         * lib/vasnprintf.c (IF_LINT): Update comments.
37067         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37068
37069 2008-05-21  Jim Meyering  <meyering@redhat.com>
37070
37071         avoid a warning from gcc
37072         * lib/vasnprintf.c (IF_LINT): Define.
37073         (scale10_round_decimal_long_double):
37074         Use it to avoid a "may be used uninitialized" warning.
37075         (scale10_round_decimal_double): Likewise.
37076
37077 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37078
37079         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37080         declared.
37081
37082 2008-05-20  Bruno Haible  <bruno@clisp.org>
37083
37084         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37085         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37086
37087 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37088
37089         * modules/memcmp-tests: New file.
37090         * tests/test-memcmp.c: New file.
37091
37092 2008-05-19  Bruno Haible  <bruno@clisp.org>
37093
37094         * modules/propername (Notice, configure.ac): Put quoted "..." into
37095         --keyword option.
37096         * lib/propername.h: Update comments accordingly.
37097         Reported by Eric Blake.
37098
37099 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37100
37101         * modules/getpass-gnu (Depends-on): Add fseeko.
37102
37103 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37104
37105         * modules/base64-tests: New file.
37106
37107 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37108
37109         * lib/base64.c (base64_decode_ctx): If a decode context structure
37110         was passed in use it to ignore newlines.  If a context structure
37111         was _not_ passed in, continue to treat newlines as garbage (this
37112         is the historical behavior).  Formerly base64_decode.
37113         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37114         takes a decode context structure.
37115         * lib/base64.h (base64_decode): Macro for four-argument calls.
37116         (base64_decode_alloc): Likewise.
37117         * lib/base64.c (base64_decode_ctx): If a decode context structure
37118         was passed in use it to ignore newlines.  If a context structure
37119         was _not_ passed in, continue to treat newlines as garbage (this
37120         is the historical behavior).  Formerly base64_decode.
37121         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37122         takes a decode context structure.
37123         * lib/base64.h (base64_decode): Macro for four-argument calls.
37124         (base64_decode_alloc): Likewise.
37125
37126 2008-05-19  Jim Meyering  <meyering@redhat.com>
37127
37128         avoid a warning from gcc
37129         * lib/trim.c (IF_LINT): Define.
37130         (trim2): Use it to avoid a "may be used uninitialized" warning.
37131
37132         Fix doc typo.
37133         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37134
37135 2008-05-19  Bruno Haible  <bruno@clisp.org>
37136
37137         * doc/glibc-functions/getpass.texi: Document limits of other
37138         implementations.
37139
37140 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37141             Bruno Haible <bruno@clisp.org>
37142
37143         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37144
37145 2008-05-18  Bruno Haible  <bruno@clisp.org>
37146
37147         * modules/propername: New file, from GNU gettext.
37148         * lib/propername.h: New file, from GNU gettext.
37149         * lib/propername.c: New file, from GNU gettext.
37150         * MODULES.html.sh (Internationalization functions): Add propername.
37151
37152 2008-05-16  Jim Meyering  <meyering@redhat.com>
37153             Bruno Haible  <bruno@clisp.org>
37154
37155         Avoid some warnings from "gcc -Wshadow".
37156         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37157
37158 2008-05-15  Eric Blake  <ebb9@byu.net>
37159
37160         Extend previous patch to cygwin 1.7.0.
37161         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37162         fast implementation in cygwin >= 1.7.0.
37163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37165
37166 2008-05-15  Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37169         implementation in glibc >= 2.9.
37170         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37172
37173 2008-05-15  Bruno Haible  <bruno@clisp.org>
37174
37175         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37176         (Unicode string functions): Add unilbrk/*.
37177         Reported by Karl Berry.
37178
37179 2008-05-15  Eric Blake  <ebb9@byu.net>
37180
37181         Fix violation of <stdbool.h> replacement in regex.
37182         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37183         * lib/regexec.c (re_search_internal): Likewise.
37184         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37185
37186 2008-05-15  Jim Meyering  <meyering@redhat.com>
37187
37188         avoid distracting test output when git or cvs is not found
37189         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37190         * tests/test-vc-list-files-git.sh: Likewise.
37191
37192 2008-05-15  Eric Blake  <ebb9@byu.net>
37193
37194         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37195         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37196         glibc version.
37197         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37198         * doc/posix-functions/strstr.texi (strstr): Likewise.
37199         * lib/str-two-way.h (MAX): Sychronize with glibc.
37200
37201 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37202
37203         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37204         opr.ctx_type.
37205         (calc_first): Initialize constraint field.
37206         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37207         Fix grammar.
37208         (duplicate_node): Merge constraint field for all node types.
37209         (calc_eclosure_iter): Look at constraint field for all node types.
37210         * lib/regex_internal.c (create_cd_newstate): Don't look at
37211         opr.ctx_type.
37212
37213 2008-05-14  Bruno Haible  <bruno@clisp.org>
37214
37215         Help GCC to do better code generation.
37216         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37217         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37218         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37219         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37220         Declare with attribute 'malloc' if supported.
37221
37222 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37223
37224         use "echo STR|wc -c" rather than unportable "expr length STR"
37225         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37226         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37227
37228 2008-05-14  Jim Meyering  <meyering@redhat.com>
37229
37230         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37231         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37232         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37233         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37234         via Collin Lasse.
37235
37236 2008-05-14  Eric Blake  <ebb9@byu.net>
37237
37238         Avoid quadratic growth in gl_LIBSOURCES.
37239         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37240         Suggested by Bruno Haible.
37241
37242         Test xmemdup0.
37243         * modules/xmemdup0-tests: New file.
37244         * tests/test-xmemdup0.c: Likewise.
37245
37246 2008-05-13  Eric Blake  <ebb9@byu.net>
37247
37248         Split xmemdup0 into its own module.
37249         * modules/xmemdup0: New file.
37250         * lib/xmemdup0.h: Likewise.
37251         * lib/xmemdup0.c: Likewise.
37252         * MODULES.html.sh (Memory management functions): Add xmemdup0.
37253         * lib/xalloc.h (xmemdup0): Remove.
37254         * lib/xmalloc.c (xmemdup0): Likewise.
37255
37256 2008-05-13  Eric Blake  <ebb9@byu.net>
37257             Bruno Haible  <bruno@clisp.org>
37258
37259         Reduce number of forks required during autoconf.
37260         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
37261         and gl_LIBSOURCES_DIR.
37262         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
37263         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
37264         m4_syscmd per file.
37265         <m4_foreach_w>: Move...
37266         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
37267
37268 2008-05-13  Eric Blake  <ebb9@byu.net>
37269
37270         * gnulib-tool: Fix various comment typos.
37271
37272 2008-05-12  Bruno Haible  <bruno@clisp.org>
37273
37274         Tailor the linebreaking algorithm.
37275         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
37276
37277 2008-05-12  Bruno Haible  <bruno@clisp.org>
37278
37279         Update to Unicode 5.0.0.
37280         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37281         LBP_JV, LBP_JT. Redistribute values.
37282         (unilbrk_table): Change size.
37283         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
37284         Unicode TR#14 rev. 22.
37285         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
37286         LBP_JV, LBP_JT. Redistribute values.
37287         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
37288         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
37289         Update.
37290         * lib/unilbrk/lbrkprop1.h: Regenerated.
37291         * lib/unilbrk/lbrkprop2.h: Regenerated.
37292         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
37293         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
37294         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
37295         Likewise.
37296         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
37297         Likewise.
37298         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
37299         result.
37300         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37301         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37302         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37303         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
37304         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
37305         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
37306
37307 2008-05-11  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
37310
37311 2008-05-11  Bruno Haible  <bruno@clisp.org>
37312
37313         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
37314         * modules/unilbrk/gen-lbrk: New file.
37315
37316 2008-05-11  Bruno Haible  <bruno@clisp.org>
37317
37318         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
37319         * m4/sha512.m4 (gl_SHA512): Likewise.
37320
37321 2008-05-11  Jim Meyering  <meyering@redhat.com>
37322
37323         New modules: crypto/sha256, crypto/sha512 (from coreutils)
37324         * modules/crypto/sha256: New file.
37325         * modules/crypto/sha512: Likewise.
37326         * lib/sha256.c: Likewise.
37327         * lib/sha256.h: Likewise.
37328         * lib/sha512.c: Likewise.
37329         * lib/sha512.h: Likewise.
37330         * lib/u64.h: Likewise.
37331         * m4/sha256.m4: Likewise.
37332         * m4/sha512.m4: Likewise.
37333         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
37334
37335 2008-05-10  Bruno Haible  <bruno@clisp.org>
37336
37337         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
37338         (Input/Output <stdio.h>): Add xprintf.
37339         (Signal handling <signal.h>): Add strsignal.
37340         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
37341         (Core language properties): Add func.
37342         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
37343         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
37344         strings.
37345         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
37346         (Input/output): New section.
37347         (File system functions): Add openat-die, stat-macros.
37348         (Networking functions): Add sockets.
37349         (Unicode string functions): Add unictype/*.
37350         (Support for building libraries and executables): Add gperf.
37351         (Support for building documentation): Add agpl-3.0.
37352         (Misc): Add nocrash.
37353
37354 2008-05-10  Bruno Haible  <bruno@clisp.org>
37355
37356         * modules/unictype/gen-ctype: New file.
37357
37358 2008-05-10  Jim Meyering  <meyering@redhat.com>
37359
37360         Make chdir-safer.c more efficient on a system with no symlinks.
37361         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
37362         also if ELOOP is zero.  Suggested by Bruno Haible.
37363
37364         Make chdir-safer.c slightly safer.
37365         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
37366         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
37367
37368         Avoid compile failure on systems without ELOOP (like mingw).
37369         * lib/chdir-safer.c (ELOOP): Define if not already defined.
37370         Reported by Bruno Haible.
37371
37372 2008-05-10  Bruno Haible  <bruno@clisp.org>
37373
37374         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
37375         (is_utf8_encoding): Use a case-insensitive comparison.
37376         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
37377         streq.
37378
37379 2008-05-10  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
37382         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
37383         * lib/unilbrk/ulc-common.h (iconv_string_length,
37384         iconv_string_keeping_offsets): Remove declarations.
37385         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
37386         Don't include <iconv.h>, streq.h, xsize.h.
37387         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
37388         conversion.
37389         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
37390         <iconv.h>, streq.h, xsize.h.
37391         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
37392         conversion.
37393         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
37394         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
37395         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
37396         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
37397
37398 2008-05-10  Bruno Haible  <bruno@clisp.org>
37399
37400         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
37401         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
37402
37403         * modules/unilbrk/u32-width-linebreaks-tests: New file.
37404         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
37405
37406         * modules/unilbrk/u16-width-linebreaks-tests: New file.
37407         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
37408
37409         * modules/unilbrk/u8-width-linebreaks-tests: New file.
37410         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
37411
37412         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
37413         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
37414
37415         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
37416         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
37417
37418         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
37419         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
37420
37421         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
37422         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
37423
37424 2008-05-10  Bruno Haible  <bruno@clisp.org>
37425
37426         Split up 'linebreak' module.
37427         * lib/unilbrk.h: New file, based on lib/linebreak.h.
37428         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
37429         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
37430         modifications.
37431         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
37432         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
37433         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
37434         lib/linebreak.c.
37435         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
37436         lib/linebreak.c.
37437         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
37438         lib/linebreak.c.
37439         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
37440         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
37441         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
37442         lib/linebreak.c.
37443         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
37444         lib/linebreak.c.
37445         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
37446         lib/linebreak.c.
37447         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
37448         lib/linebreak.c.
37449         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
37450         lib/linebreak.c.
37451         * modules/unilbrk/base: New file.
37452         * modules/unilbrk/tables: New file.
37453         * modules/unilbrk/u8-possible-linebreaks: New file.
37454         * modules/unilbrk/u16-possible-linebreaks: New file.
37455         * modules/unilbrk/u32-possible-linebreaks: New file.
37456         * modules/unilbrk/ulc-common: New file.
37457         * modules/unilbrk/ulc-possible-linebreaks: New file.
37458         * modules/unilbrk/u8-width-linebreaks: New file.
37459         * modules/unilbrk/u16-width-linebreaks: New file.
37460         * modules/unilbrk/u32-width-linebreaks: New file.
37461         * modules/unilbrk/ulc-width-linebreaks: New file.
37462         * lib/linebreak.h: Remove file.
37463         * lib/linebreak.c: Remove file.
37464         * m4/linebreak.m4: Remove file.
37465         * modules/linebreak: Remove file.
37466         * NEWS: Mention the changes.
37467
37468 2008-05-09  Eric Blake  <ebb9@byu.net>
37469
37470         Add xmemdup0.
37471         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
37472         implementation.
37473         * lib/xmalloc.c (xmemdup0): New C implementation.
37474
37475 2008-05-08  Bruno Haible  <bruno@clisp.org>
37476
37477         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
37478
37479 2008-05-07  Eric Blake  <ebb9@byu.net>
37480
37481         Support cross-compilation of <wctype.h>.
37482         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
37483         AC_CACHE_CHECK.
37484
37485 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
37486
37487         * build-aux/vc-list-files: Add support for bzr.
37488
37489 2008-05-03  Jim Meyering  <meyering@redhat.com>
37490
37491         avoid failed assertion with tight malloc
37492         * tests/test-getndelim2.c: Correct an off-by-one assertion.
37493
37494 2008-05-03  Simon Josefsson  <simon@josefsson.org>
37495
37496         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
37497         are needed from arpa/inet.h.
37498         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
37499         Reported by Bruno Haible.
37500
37501 2008-05-02  Jim Meyering  <meyering@redhat.com>
37502
37503         avoid compilation error on FreeBSD 6
37504         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
37505
37506 2008-05-01  Jim Meyering  <meyering@redhat.com>
37507
37508         useless-if-before-free: correct --help's exit status description
37509         * build-aux/useless-if-before-free (usage): Like grep, exit 0
37510         for one or more matches, etc.  Reported by Bruno Haible.
37511
37512         vc-list-files: make the stand-alone gnulib test work
37513         * modules/vc-list-files-tests (configure.ac):
37514         Define and AC_SUBST abs_aux_dir.
37515         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
37516         $(abs_top_srcdir) to each script and having each of them
37517         duplicate the work of setting PATH, set PATH here, using
37518         the new variable, abs_aux_dir instead.
37519         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
37520         * tests/test-vc-list-files-git.sh: Likewise.
37521         Reported by Bruno Haible.
37522
37523 2008-05-01  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/getndelim2.c (getndelim2): Fix newsize computation during
37526         reallocation. Rename 'done' to 'found_delimiter'.
37527
37528 2008-05-01  Jim Meyering  <meyering@redhat.com>
37529
37530         vc-list-files: accommodate /bin/sh like the one from Solaris 10
37531         * build-aux/vc-list-files: Use `...`, not $(...).
37532
37533 2008-04-30  Jim Meyering  <meyering@redhat.com>
37534
37535         add tests for vc-list-files
37536         * modules/vc-list-files-tests: New module.
37537         * tests/test-vc-list-files-cvs.sh: New file.
37538         * tests/test-vc-list-files-git.sh: New file.
37539
37540         avoid a warning from gcc
37541         * lib/getndelim2.c (IF_LINT): Define.
37542         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
37543
37544         vc-list-files: work properly with build-aux/cvsu, too
37545         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
37546         to all cvs-based clauses.
37547
37548         vc-list-files: work properly in the CVS+awk case, too
37549         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
37550
37551         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
37552         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
37553         take more than one file argument, so .  Add quotes, just in case $dir
37554         ever contains a shell meta-character.  Prompted by Soren Hansen in
37555         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
37556
37557 2008-04-29  Eric Blake  <ebb9@byu.net>
37558
37559         Optimize getndelim2 to use block operations when possible.
37560         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
37561         freadseek, and memchr2.
37562         * lib/getndelim2.c (getndelim2): Use them for block reads.
37563
37564 2008-04-29  Bruno Haible  <bruno@clisp.org>
37565
37566         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
37567         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37568         * modules/inet_ntop (Depends-on): Add extensions.
37569         * modules/inet_pton (Depends-on): Likewise.
37570         Reported by Simon Josefsson.
37571
37572 2008-04-29  Jim Meyering  <meyering@redhat.com>
37573
37574         When the is more than one match in a block, match all of them.
37575         * build-aux/useless-if-before-free: Iterate through each block
37576         until there are no more matches.
37577
37578         Fix broken useless-if-before-free script.
37579         * build-aux/useless-if-before-free: Fix typo: missing "?" after
37580         the expression to match cast of argument to free-like function.
37581
37582 2008-04-29  Eric Blake  <ebb9@byu.net>
37583
37584         Use new header.
37585         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
37586
37587 2008-04-29  Jim Meyering  <meyering@redhat.com>
37588
37589         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
37590         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
37591         by gnulib to exist and to declare e.g., inet_ntop.
37592         Don't include "inet_ntop.h", now removed.
37593
37594         * m4/arpa_inet_h.m4: Remove trailing blanks.
37595
37596 2008-04-29  Eric Blake  <ebb9@byu.net>
37597
37598         Silence valgrind on safe reads beyond potential array bounds.
37599         * lib/rawmemchr.valgrind: New file.
37600         * lib/strchrnul.valgrind: Likewise.
37601         * modules/rawmemchr (Files): Distribute new file.
37602         * modules/strchrnul (Files): Likewise.
37603         Suggested by Bruno Haible.
37604
37605 2008-04-29  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
37608         (inet_ntop, inet_pton): Change portability warning's wording.
37609         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
37610         Invoke gl_CHECK_NEXT_HEADERS.
37611         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
37612         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
37613         set ARPA_INET_H.
37614         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37615         * modules/arpa_inet (Description): No longer only for systems that
37616         lack it.
37617         (Depends-on): Add include_next.
37618         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
37619         HAVE_ARPA_INET_H.
37620
37621 2008-04-29  Jim Meyering  <meyering@redhat.com>
37622
37623         * modules/mkdir (License): Re-license as LGPLv2+.
37624
37625 2008-04-29  Bruno Haible  <bruno@clisp.org>
37626
37627         * modules/rawmemchr (Maintainer): Set to Eric.
37628         * modules/strchrnul (Maintainer): Likewise.
37629
37630 2008-04-29  Simon Josefsson  <simon@josefsson.org>
37631
37632         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
37633         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
37634
37635         * modules/arpa_inet (arpa/inet.h): Use them.
37636
37637 2008-04-28  Eric Blake  <ebb9@byu.net>
37638
37639         Test getndelim2.
37640         * modules/getndelim2-tests: New file.
37641         * tests/test-getndelim2.c: Likewise.
37642         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
37643         stream.
37644         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
37645
37646         * MODULES.html.sh: Document new module.
37647
37648 2008-04-20  Bruno Haible  <bruno@clisp.org>
37649
37650         * lib/c-stack.c (die): Use raise.
37651         * modules/c-stack (Depends-on): Add raise.
37652
37653 2008-04-28  Bruno Haible  <bruno@clisp.org>
37654
37655         Expect rpmatch to be declared.
37656         * lib/yesno.c (rpmatch): Remove declaration.
37657
37658         Declare rpmatch.
37659         * lib/stdlib.in.h (rpmatch): New declaration.
37660         * lib/rpmatch.c: Include <stdlib.h> first.
37661         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
37662         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
37663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
37664         HAVE_RPMATCH.
37665         * modules/rpmatch (Depends-on): Add stdlib, extensions.
37666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37667         (Include): Set to <stdlib.h>.
37668         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
37669         HAVE_RPMATCH.
37670         * NEWS: Document the change.
37671
37672 2008-04-28  Bruno Haible  <bruno@clisp.org>
37673
37674         Change rpmatch to use nl_langinfo when appropriate.
37675         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
37676         (N_): New macro.
37677         (localized_pattern): New function/macro.
37678         (try): Remove match, nomatch arguments. Copy the pattern into safe
37679         memory before caching it.
37680         (rpmatch): Use localized_pattern. Add translator comments.
37681         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
37682         Suggested by Eric Blake.
37683         * modules/rpmatch (Depends-on): Add stdbool.
37684
37685 2008-04-28  Eric Blake  <ebb9@byu.net>
37686
37687         Add rawmemchr module, matching glibc.
37688         * modules/string (Makefile.am): New indicator.
37689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
37690         * lib/string.in.h (rawmemchr): Declare when appropriate.
37691         * modules/rawmemchr: New file.
37692         * m4/rawmemchr.m4: Likewise.
37693         * lib/rawmemchr.c: Likewise.
37694         * modules/rawmemchr-tests: Likewise.
37695         * tests/test-rawmemchr.c: Likewise.
37696         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
37697         module.
37698         * modules/strchrnul (Depends-on): Add rawmemchr.
37699         * lib/strchrnul.c (strchrnul): Optimize a corner case.
37700
37701         Whitespace cleanup.
37702         * tests/test-strchrnul.c: Reindent.
37703         * lib/strchrnul.c: Likewise.
37704
37705         Optimize and test strchrnul.
37706         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
37707         * modules/strchrnul-tests: New file.
37708         * tests/test-strchrnul.c: Likewise.
37709
37710         Remove intprops dependency.
37711         * modules/memchr (Depends-on): Remove intprops.
37712         * modules/memrchr (Depends-on): Likewise.
37713         * modules/memchr2 (Depends-on): Likewise.
37714         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
37715         * lib/memrchr.c (__memrchr): Likewise.
37716         * lib/memrchr2.c (memchr2): Likewise.
37717         Reported by Simon Josefsson.
37718
37719 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37720
37721         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
37722         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37723
37724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37725
37726         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
37727
37728         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
37729
37730         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
37731
37732         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
37733         declarations.
37734         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
37735
37736         * m4/inet_pton.m4: Don't check for header files.
37737
37738         * m4/inet_ntop.m4: Don't check for header files.
37739
37740 2008-04-28  Simon Josefsson  <simon@josefsson.org>
37741
37742         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
37743         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
37744         trigger for cygwin).
37745         Reported by Bruno Haible  <bruno@clisp.org>.
37746
37747 2008-04-28  Bruno Haible  <bruno@clisp.org>
37748
37749         * doc/posix-functions/strdup.texi: Mention mingw problem.
37750
37751 2008-04-27  Bruno Haible  <bruno@clisp.org>
37752
37753         * modules/stat-time-tests (Depends-on): Add sleep.
37754         * tests/test-stat-time.c (force_unlink): New function.
37755         (cleanup): Use it.
37756         (test_mtime): Remove the ctime related tests.
37757         (test_ctime): New function, containing the ctime related tests.
37758         (main): Call test_ctime, except on native Windows platforms.
37759
37760 2008-04-27  Bruno Haible  <bruno@clisp.org>
37761
37762         * lib/rpmatch.c (rpmatch): Add some comments.
37763         Reported by James Youngman <jay@gnu.org>.
37764
37765 2008-04-27  Bruno Haible  <bruno@clisp.org>
37766
37767         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
37768         quiet NaNs.
37769
37770 2008-04-27  Bruno Haible  <bruno@clisp.org>
37771
37772         Make test-yesno.sh work on mingw.
37773         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
37774         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
37775         (main): Set stdin to binary mode.
37776         * modules/yesno-tests (Depends-on): Add binary-io.
37777
37778 2008-04-27  Bruno Haible  <bruno@clisp.org>
37779
37780         Fix 'isfinite' on x86, x86_64, ia64 platforms.
37781         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
37782         argument that lie outside the IEEE 854 domain.
37783         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
37784         (gl_ISFINITE): Use it.
37785         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
37786
37787 2008-04-27  Bruno Haible  <bruno@clisp.org>
37788
37789         Allow local renaming in config.h.
37790         * lib/memrchr.c (memrchr): Don't undefine outside libc.
37791
37792 2008-04-27  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/memchr.c (__memchr): Change type of 'i'.
37795         * lib/memchr2.c (memchr2): Likewise.
37796
37797 2008-04-26  Eric Blake  <ebb9@byu.net>
37798         and Bruno Haible  <bruno@clisp.org>
37799
37800         Optimize and test memrchr.
37801         * modules/memrchr (Depends-on): Add intprops.
37802         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
37803         * modules/memrchr-tests: New file.
37804         * tests/test-memrchr.c: New file.
37805
37806 2008-04-26  Bruno Haible  <bruno@clisp.org>
37807
37808         Add tentative support for DragonFly BSD.
37809         * lib/stdio-impl.h: Add macros for DragonFly BSD.
37810         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
37811         fp.
37812         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37813         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
37814         * lib/fpurge.c (fpurge): Likewise.
37815         * lib/freadable.c (freaadable): Likewise.
37816         * lib/freadahead.c (freadahead): Likewise.
37817         * lib/freading.c (freading): Likewise.
37818         * lib/freadptr.c (freadptr): Likewise.
37819         * lib/freadseek.c (freadptrinc): Likewise.
37820         * lib/fseeko.c (fseeko): Likewise.
37821         * lib/fseterr.c (fseterr): Likewise.
37822         * lib/fwritable.c (fwritable): Likewise.
37823         * lib/fwriting.c (fwriting): Likewise.
37824
37825 2008-04-26  Bruno Haible  <bruno@clisp.org>
37826
37827         * lib/stdio-impl.h: New file.
37828         * lib/fbufmode.c: Include stdio-impl.h.
37829         (fbufmode): Use fp_, remove redundant #defines.
37830         * lib/fflush.c: Include stdio-impl.h.
37831         (clear_ungetc_buffer): Remove redundant #defines.
37832         * lib/fpurge.c: Include stdio-impl.h.
37833         (fpurge): Remove redundant #defines.
37834         * lib/freadable.c: Include stdio-impl.h.
37835         (freadable): Remove redundant #defines.
37836         * lib/freadahead.c: Include stdio-impl.h.
37837         (freadahead): Remove redundant #defines.
37838         * lib/freading.c: Include stdio-impl.h.
37839         (freading): Remove redundant #defines.
37840         * lib/freadptr.c: Include stdio-impl.h.
37841         (freadptr): Remove redundant #defines.
37842         * lib/freadseek.c: Include stdio-impl.h.
37843         (freadptrinc): Remove redundant #defines.
37844         * lib/fseeko.c: Include stdio-impl.h.
37845         (rpl_fseeko): Remove redundant #defines.
37846         * lib/fseterr.c: Include stdio-impl.h.
37847         (fseterr): Remove redundant #defines.
37848         * lib/fwritable.c: Include stdio-impl.h.
37849         (fwritable: Remove redundant #defines.
37850         * lib/fwriting.c: Include stdio-impl.h.
37851         (fwriting): Remove redundant #defines.
37852         * modules/fbufmode (Files): Add lib/stdio-impl.h.
37853         * modules/fflush (Files): Likewise.
37854         * modules/fpurge (Files): Likewise.
37855         * modules/freadable (Files): Likewise.
37856         * modules/freadahead (Files): Likewise.
37857         * modules/freading (Files): Likewise.
37858         * modules/freadptr (Files): Likewise.
37859         * modules/freadseek (Files): Likewise.
37860         * modules/fseeko (Files): Likewise.
37861         * modules/fseterr (Files): Likewise.
37862         * modules/fwritable (Files): Likewise.
37863         * modules/fwriting (Files): Likewise.
37864
37865 2008-04-26  Bruno Haible  <bruno@clisp.org>
37866
37867         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
37868         restore_seek_optimization, update_fpos_cache): New functions, extracted
37869         from rpl_fflush.
37870         (rpl_fflush): Use them.
37871         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
37872         (gl_REPLACE_FFLUSH): Use it.
37873
37874 2008-04-26  Bruno Haible  <bruno@clisp.org>
37875
37876         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
37877         on Solaris.
37878         * tests/test-xstrtoimax.sh: Likewise.
37879         * tests/test-xstrtoumax.sh: Likewise.
37880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37881
37882 2008-04-26  Bruno Haible  <bruno@clisp.org>
37883
37884         * modules/memchr-tests: New file.
37885         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
37886
37887 2008-04-26  Eric Blake  <ebb9@byu.net>
37888             Bruno Haible  <bruno@clisp.org>
37889
37890         * lib/memchr.c: Include intprops.h.
37891         (__memchr): Optimize parallel detection of matching bytes. Rename local
37892         variables. Add explanatory comments.
37893
37894 2008-04-26  Bruno Haible  <bruno@clisp.org>
37895
37896         Fix module 'memchr', broken since 2000-10-28.
37897         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
37898
37899 2008-04-26  Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
37902         comments.
37903
37904 2008-04-25  Eric Blake  <ebb9@byu.net>
37905
37906         Use native fstatat on cygwin 1.7.0.
37907         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
37908         first.
37909
37910 2008-04-23  Eric Blake  <ebb9@byu.net>
37911
37912         Improve memchr2 performance.
37913         * lib/memchr2.c (memchr2): Further optimize parallel detection of
37914         NUL bytes.
37915         * modules/memchr2 (Depends-on): Use intprops.h.
37916
37917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37918
37919         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
37920         an inline function instead of a CPP macro.  Patch by Ben Pfaff
37921         <blp@cs.stanford.edu>.
37922
37923 2008-04-23  Simon Josefsson  <simon@josefsson.org>
37924
37925         * lib/arpa_inet.in.h: New file.
37926
37927         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
37928         (Makefile.am): Sed in substitute header file.
37929
37930         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
37931         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
37932
37933         * modules/inet_ntop (configure.ac): Use
37934         gl_ARPA_INET_MODULE_INDICATOR.
37935
37936         * modules/inet_pton (configure.ac): Use
37937         gl_ARPA_INET_MODULE_INDICATOR.
37938
37939 2008-04-22  Jim Meyering  <meyering@redhat.com>
37940
37941         * modules/verify (License): Re-license as LGPLv2+.
37942
37943 2008-04-22  Simon Josefsson  <simon@josefsson.org>
37944
37945         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
37946         parameter to void* as per POSIX standard (MinGW uses char*).
37947
37948 2008-04-21  Bruno Haible  <bruno@clisp.org>
37949
37950         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37951         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37952         Define to replacements if REPLACE_ISWCNTRL is 1.
37953         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
37954         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
37955         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
37956         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
37957         what it fixes.
37958         * doc/posix-functions/iswalpha.texi: Likewise.
37959         * doc/posix-functions/iswblank.texi: Likewise.
37960         * doc/posix-functions/iswcntrl.texi: Likewise.
37961         * doc/posix-functions/iswdigit.texi: Likewise.
37962         * doc/posix-functions/iswgraph.texi: Likewise.
37963         * doc/posix-functions/iswlower.texi: Likewise.
37964         * doc/posix-functions/iswprint.texi: Likewise.
37965         * doc/posix-functions/iswpunct.texi: Likewise.
37966         * doc/posix-functions/iswspace.texi: Likewise.
37967         * doc/posix-functions/iswupper.texi: Likewise.
37968         * doc/posix-functions/iswxdigit.texi: Likewise.
37969         Reported by Alain Guibert.
37970
37971 2008-04-21  Bruno Haible  <bruno@clisp.org>
37972
37973         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37974         Patch by Alain Guibert.
37975
37976 2008-04-21  Bruno Haible  <bruno@clisp.org>
37977
37978         Fix test failures on mingw.
37979         * tests/test-xstrtol.c (print_no_progname): New function.
37980         (main): Install it in error_print_progname hook.
37981         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37982         * tests/test-xstrtoimax.sh: Likewise.
37983         * tests/test-xstrtoumax.sh: Likewise.
37984
37985 2008-04-21  Bruno Haible  <bruno@clisp.org>
37986
37987         Fix test failure on mingw.
37988         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37989
37990 2008-04-21  Bruno Haible  <bruno@clisp.org>
37991
37992         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37993         Actually assign a value.
37994
37995 2008-04-20  Bruno Haible  <bruno@clisp.org>
37996
37997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37998         take 2.
37999         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38000         'canonicalize-lgpl' module is also used.
38001         * lib/canonicalize-lgpl.c: Undo last change.
38002         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38003
38004 2008-04-20  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38007         config.h. Provide _mkdir based fallback for mingw.
38008         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38009         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38010         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38011         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38012         rather than defining mkdir in config.h.
38013         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38014         (gl_SYS_STAT_H_DEFAULTS): New macro.
38015         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38016         HAVE_IO_H any more.
38017         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38018         HAVE_DECL_MKDIR and HAVE_IO_H.
38019
38020 2008-04-20  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/isapipe.c: Port to native Windows platforms.
38023
38024 2008-04-20  Bruno Haible  <bruno@clisp.org>
38025
38026         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38027
38028 2008-04-21  Eric Blake  <ebb9@byu.net>
38029
38030         Work around preprocessors that don't handle UINTMAX_MAX.
38031         * lib/memchr2.c (memchr2): Avoid embedded #if.
38032         Reported by Alain Guibert, fix suggested by Bruno Haible.
38033
38034 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38035
38036         * doc/posix-functions/strftime.texi (strftime): Explain better
38037         Windows incompatibility.  Suggested by Micah Cowan
38038         <micah@cowan.name>.
38039
38040 2008-04-20  Bruno Haible  <bruno@clisp.org>
38041
38042         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38043         unistr/u8-mblen.
38044
38045 2008-04-20  Bruno Haible  <bruno@clisp.org>
38046
38047         Fix test failure on platforms with non-GNU iconv.
38048         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38049         (U_TO_U8): Use it, rather than u16_to_u8.
38050         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38051         units at the end of the input string.
38052         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38053
38054 2008-04-20  Bruno Haible  <bruno@clisp.org>
38055
38056         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38057         when the resulting length is 0.
38058         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38059
38060 2008-04-20  Bruno Haible  <bruno@clisp.org>
38061
38062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38063         works.
38064         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38065
38066 2008-04-20  Bruno Haible  <bruno@clisp.org>
38067
38068         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38069         * modules/tsearch-tests (configure.ac): Test for initstate function.
38070
38071 2008-04-20  Bruno Haible  <bruno@clisp.org>
38072
38073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38074         for nlink_t if missing.
38075         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38076
38077 2008-04-19  Bruno Haible  <bruno@clisp.org>
38078
38079         Work around snprintf bug on Linux libc5.
38080         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38082         gl_SNPRINTF_SIZE1.
38083         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38084         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38085         that test failed.
38086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38087         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38088         * modules/snprintf (Files): Add m4/printf.m4.
38089         * modules/vsnprintf (Files): Likewise.
38090         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38091         * doc/posix-functions/vsnprintf.texi: Likewise.
38092
38093 2008-04-19  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38096         from 0.0058 to less than 10^-7.
38097
38098 2008-04-19  Bruno Haible  <bruno@clisp.org>
38099
38100         Fix rounding when a precision is given.
38101         * lib/vasnprintf.c (is_borderline): New function.
38102         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38103         9...9x.
38104         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38105         %e, %g.
38106         * tests/test-vasprintf-posix.c (test_function): Likewise.
38107         * tests/test-snprintf-posix.h (test_function): Likewise.
38108         * tests/test-sprintf-posix.h (test_function): Likewise.
38109         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38110         * tests/test-printf-posix.h (test_function): Likewise.
38111         * tests/test-printf-posix.output: Update.
38112         Reported by John Darrington <john@darrington.wattle.id.au> via
38113         Ben Pfaff <blp@cs.stanford.edu>.
38114
38115 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38116
38117         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38118         Suggested by Bruno Haible <bruno@clisp.org>.
38119
38120 2008-04-17  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38123         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38124         implementation.
38125         Patch by Bruce Merry <bmerry@gmail.com>.
38126
38127 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38128
38129         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38130         doesn't work under Windows.
38131
38132 2008-04-16  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38135         New macros.
38136         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38137         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38138         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38139         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38140         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38141         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38142         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38143         macros.
38144         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38145         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38146         Northern Sotho, Uighur.
38147
38148 2008-04-16  Bruno Haible  <bruno@clisp.org>
38149
38150         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38151         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38152         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38153         Reported by Daniel Bergström <daniel@octocode.com>.
38154
38155 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38156             Bruno Haible  <bruno@clisp.org>
38157
38158         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38159         function.
38160         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38161         New functions, mostly extracted from gl_locale_name_default.
38162         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38163
38164 2008-04-16  Eric Blake  <ebb9@byu.net>
38165
38166         Adjust strtod detection to catch glibc 2.7 bug.
38167         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38168         Reported by John Gatewood Ham.
38169
38170 2008-04-16  Bruno Haible  <bruno@clisp.org>
38171
38172         Add tentative support for Linux libc5.
38173         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38174         * lib/fpurge.c (fpurge): Likewise.
38175         * lib/freadable.c (freadable): Likewise.
38176         * lib/freadahead.c (freadahead): Likewise.
38177         * lib/freading.c (freading): Likewise.
38178         * lib/freadptr.c (freadptr): Likewise.
38179         * lib/freadseek.c (freadptrinc): Likewise.
38180         * lib/fseeko.c (rpl_fseeko): Likewise.
38181         * lib/fseterr.c (fseterr): Likewise.
38182         * lib/fwritable.c (fwritable): Likewise.
38183         * lib/fwriting.c (fwriting): Likewise.
38184         Reported by Alain Guibert <alguibert+bts@free.fr>.
38185
38186 2008-04-15  Bruno Haible  <bruno@clisp.org>
38187
38188         * modules/mathl (configure.ac): Define module indicator.
38189
38190 2008-04-15  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/logl.c (logl): Remove unused variables.
38193
38194 2008-04-15  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38197         fails.
38198
38199 2008-04-15  Bruno Haible  <bruno@clisp.org>
38200
38201         * lib/trim.c (trim2): Fix argument of isspace() macro.
38202
38203 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38204
38205         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38206         to 0.
38207         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38208
38209 2008-04-14  Bruno Haible  <bruno@clisp.org>
38210
38211         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38212         AC_LANG_PROGRAM argument.
38213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38214         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38216         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38217         * m4/math_h.m4 (gl_MATH_H): Likewise.
38218         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38220         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38221         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38222         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38223         * m4/regex.m4 (gl_REGEX): Likewise.
38224         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38225         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38232
38233 2008-04-14  Jim Meyering  <meyering@redhat.com>
38234
38235         test-strtod: fix typos: s/abs/fabs/
38236         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38237
38238 2008-04-13  Bruno Haible  <bruno@clisp.org>
38239
38240         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
38241         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
38242         module is also used and while not building the reloc-wrapper.
38243
38244 2008-04-13  Bruno Haible  <bruno@clisp.org>
38245
38246         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
38247
38248 2008-04-13  Bruno Haible  <bruno@clisp.org>
38249
38250         Fix AIX compilation failure introduced on 2008-04-02.
38251         * tests/test-frexp.c (exp): Undefine before redefining.
38252         * tests/test-frexpl.c (exp): Likewise.
38253
38254 2008-04-13  Bruno Haible  <bruno@clisp.org>
38255
38256         Work around a HP-UX stdio bug.
38257         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
38258         * tests/test-ftello.c (main): Likewise.
38259         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
38260         * doc/posix-functions/ftello.texi: Likewise.
38261
38262 2008-04-13  Bruno Haible  <bruno@clisp.org>
38263
38264         Make test-signbit pass on HP-UX/hppa.
38265         * tests/test-signbit.c (minus_zerol): New variable.
38266         (test_signbitl): Use it.
38267
38268 2008-04-13  Bruno Haible  <bruno@clisp.org>
38269
38270         Make truncl work on OSF/1 4.0.
38271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
38272         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38273         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
38274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
38275         HAVE_DECL_TRUNCL.
38276         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
38277         HAVE_DECL_TRUNCL.
38278         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
38279
38280 2008-04-13  Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/unictype.h: Remove trailing comma from enumeration definitions.
38283
38284 2008-04-13  Bruno Haible  <bruno@clisp.org>
38285
38286         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
38287         expression, so as to avoid HP-UX 11 cc compiler bug.
38288
38289 2008-04-13  Bruno Haible  <bruno@clisp.org>
38290
38291         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
38292
38293 2008-04-13  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/git-merge-changelog.c: Remove empty declaration outside of
38296         functions.
38297
38298 2008-04-13  Bruno Haible  <bruno@clisp.org>
38299
38300         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
38301
38302 2008-04-13  Bruno Haible  <bruno@clisp.org>
38303
38304         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
38305         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
38306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
38307         also if it exists but lacks definitions of the SHUT_* macros.
38308         * modules/sys_socket (Description): Update.
38309         Reported by Elbert Pol <e.pol@chello.nl>.
38310
38311 2008-04-13  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/localcharset.c (OS2): Don't redefine if already defined.
38314         Reported by Elbert Pol <e.pol@chello.nl>.
38315
38316 2008-04-13  Bruno Haible  <bruno@clisp.org>
38317
38318         * lib/binary-io.h [__EMX__]: Include <io.h>.
38319         Reported by Elbert Pol <e.pol@chello.nl>.
38320
38321 2008-04-12  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/fpucw.h: Enable the definitions also for x86_64.
38324         Needed for NetBSD/x86_64.
38325         Reported by Thomas Klausner <tk@giga.or.at>.
38326
38327 2008-04-12  Bruno Haible  <bruno@clisp.org>
38328
38329         * tests/test-strtod.c: Include isnand.h.
38330         (main): Use isnand instead of isnan.
38331         Reported by Jim Meyering.
38332
38333 2008-04-12  Bruno Haible  <bruno@clisp.org>
38334
38335         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
38336         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38337
38338 2008-04-12  Jim Meyering  <meyering@redhat.com>
38339
38340         * m4/math_h.m4 (gl_MATH_H): Fix typos.
38341
38342 2008-04-12  Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
38345         Reported by Elbert Pol <e.pol@chello.nl>.
38346
38347 2008-04-12  Eric Blake  <ebb9@byu.net>
38348
38349         Work around Solaris 10 math.h bug.
38350         * m4/math_h.m4 (gl_MATH_H): Check for bug.
38351         (gl_MATH_H_DEFAULTS): Set up default.
38352         * modules/math (Makefile.am): Replace new indicators.
38353         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
38354         * tests/test-math.c (main): Test this.
38355         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
38356         * doc/posix-headers/math.texi (math.h): Mention bug.
38357         Reported by Nelson H. F. Beebe and Jim Meyering.
38358
38359 2008-04-11  Bruno Haible  <bruno@clisp.org>
38360
38361         Adapt to future versions of Apple GCC.
38362         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
38363         Reported by Peter O'Gorman <peter@pogma.com>.
38364
38365 2008-04-11  Bruno Haible  <bruno@clisp.org>
38366
38367         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
38368
38369 2008-04-11  Bruno Haible  <bruno@clisp.org>
38370
38371         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
38372
38373         * modules/getaddrinfo-tests (Makefile.am): Define
38374         test_getaddrinfo_LDADD.
38375
38376 2008-04-11  Bruno Haible  <bruno@clisp.org>
38377
38378         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
38379         (init): Fix syntax error.
38380         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
38381         is declared.
38382
38383 2008-04-11  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
38386         * modules/glob (Depends-on): Add stdbool.
38387
38388 2008-04-11  Bruno Haible  <bruno@clisp.org>
38389
38390         * lib/trim.c: Include <string.h>.
38391
38392 2008-04-11  Eric Blake  <ebb9@byu.net>
38393
38394         Avoid compile failure on OS/2.
38395         * lib/regex_internal.h (internal_function): Disable optimization
38396         on OS/2 (__EMX__), where it caused compiler error.
38397         Reported by Elbert Pol.
38398
38399 2008-04-11  Bruno Haible  <bruno@clisp.org>
38400
38401         Flush the standard error stream before aborting. Needed on mingw.
38402         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
38403         * tests/test-array_list.c (ASSERT): Likewise.
38404         * tests/test-array_oset.c (ASSERT): Likewise.
38405         * tests/test-avltree_list.c (ASSERT): Likewise.
38406         * tests/test-avltree_oset.c (ASSERT): Likewise.
38407         * tests/test-avltreehash_list.c (ASSERT): Likewise.
38408         * tests/test-binary-io.c (ASSERT): Likewise.
38409         * tests/test-byteswap.c (ASSERT): Likewise.
38410         * tests/test-c-ctype.c (ASSERT): Likewise.
38411         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
38412         * tests/test-c-strcasestr.c (ASSERT): Likewise.
38413         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
38414         * tests/test-c-strstr.c (ASSERT): Likewise.
38415         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
38416         * tests/test-canonicalize.c (ASSERT): Likewise.
38417         * tests/test-carray_list.c (ASSERT): Likewise.
38418         * tests/test-ceilf1.c (ASSERT): Likewise.
38419         * tests/test-ceilf2.c (ASSERT): Likewise.
38420         * tests/test-ceill.c (ASSERT): Likewise.
38421         * tests/test-count-one-bits.c (ASSERT): Likewise.
38422         * tests/test-fbufmode.c (ASSERT): Likewise.
38423         * tests/test-fflush2.c (ASSERT): Likewise.
38424         * tests/test-floorf1.c (ASSERT): Likewise.
38425         * tests/test-floorf2.c (ASSERT): Likewise.
38426         * tests/test-floorl.c (ASSERT): Likewise.
38427         * tests/test-fopen.c (ASSERT): Likewise.
38428         * tests/test-fpending.c (ASSERT): Likewise.
38429         * tests/test-fprintf-posix.c (ASSERT): Likewise.
38430         * tests/test-fpurge.c (ASSERT): Likewise.
38431         * tests/test-freadable.c (ASSERT): Likewise.
38432         * tests/test-freadahead.c (ASSERT): Likewise.
38433         * tests/test-freading.c (ASSERT): Likewise.
38434         * tests/test-freadptr.c (ASSERT): Likewise.
38435         * tests/test-freadptr2.c (ASSERT): Likewise.
38436         * tests/test-freadseek.c (ASSERT): Likewise.
38437         * tests/test-freopen.c (ASSERT): Likewise.
38438         * tests/test-frexp.c (ASSERT): Likewise.
38439         * tests/test-frexpl.c (ASSERT): Likewise.
38440         * tests/test-fseek.c (ASSERT): Likewise.
38441         * tests/test-fseeko.c (ASSERT): Likewise.
38442         * tests/test-fstrcmp.c (ASSERT): Likewise.
38443         * tests/test-ftell.c (ASSERT): Likewise.
38444         * tests/test-ftello.c (ASSERT): Likewise.
38445         * tests/test-func.c (ASSERT): Likewise.
38446         * tests/test-fwritable.c (ASSERT): Likewise.
38447         * tests/test-fwriting.c (ASSERT): Likewise.
38448         * tests/test-getdelim.c (ASSERT): Likewise.
38449         * tests/test-getline.c (ASSERT): Likewise.
38450         * tests/test-i-ring.c (ASSERT): Likewise.
38451         * tests/test-iconv-utf.c (ASSERT): Likewise.
38452         * tests/test-iconv.c (ASSERT): Likewise.
38453         * tests/test-isfinite.c (ASSERT): Likewise.
38454         * tests/test-isnand.c (ASSERT): Likewise.
38455         * tests/test-isnanf.c (ASSERT): Likewise.
38456         * tests/test-isnanl.h (ASSERT): Likewise.
38457         * tests/test-ldexpl.c (ASSERT): Likewise.
38458         * tests/test-linked_list.c (ASSERT): Likewise.
38459         * tests/test-linkedhash_list.c (ASSERT): Likewise.
38460         * tests/test-localename.c (ASSERT): Likewise.
38461         * tests/test-lseek.c (ASSERT): Likewise.
38462         * tests/test-mbscasecmp.c (ASSERT): Likewise.
38463         * tests/test-mbscasestr1.c (ASSERT): Likewise.
38464         * tests/test-mbscasestr2.c (ASSERT): Likewise.
38465         * tests/test-mbscasestr3.c (ASSERT): Likewise.
38466         * tests/test-mbscasestr4.c (ASSERT): Likewise.
38467         * tests/test-mbschr.c (ASSERT): Likewise.
38468         * tests/test-mbscspn.c (ASSERT): Likewise.
38469         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
38470         * tests/test-mbspbrk.c (ASSERT): Likewise.
38471         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
38472         * tests/test-mbsrchr.c (ASSERT): Likewise.
38473         * tests/test-mbsspn.c (ASSERT): Likewise.
38474         * tests/test-mbsstr1.c (ASSERT): Likewise.
38475         * tests/test-mbsstr2.c (ASSERT): Likewise.
38476         * tests/test-mbsstr3.c (ASSERT): Likewise.
38477         * tests/test-memchr2.c (ASSERT): Likewise.
38478         * tests/test-memmem.c (ASSERT): Likewise.
38479         * tests/test-open.c (ASSERT): Likewise.
38480         * tests/test-printf-frexp.c (ASSERT): Likewise.
38481         * tests/test-printf-frexpl.c (ASSERT): Likewise.
38482         * tests/test-printf-posix.c (ASSERT): Likewise.
38483         * tests/test-quotearg.c (ASSERT): Likewise.
38484         * tests/test-rbtree_list.c (ASSERT): Likewise.
38485         * tests/test-rbtree_oset.c (ASSERT): Likewise.
38486         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
38487         * tests/test-round1.c (ASSERT): Likewise.
38488         * tests/test-roundf1.c (ASSERT): Likewise.
38489         * tests/test-roundl.c (ASSERT): Likewise.
38490         * tests/test-signbit.c (ASSERT): Likewise.
38491         * tests/test-sleep.c (ASSERT): Likewise.
38492         * tests/test-snprintf-posix.c (ASSERT): Likewise.
38493         * tests/test-snprintf.c (ASSERT): Likewise.
38494         * tests/test-sprintf-posix.c (ASSERT): Likewise.
38495         * tests/test-stat-time.c (ASSERT): Likewise.
38496         * tests/test-strcasestr.c (ASSERT): Likewise.
38497         * tests/test-strerror.c (ASSERT): Likewise.
38498         * tests/test-striconv.c (ASSERT): Likewise.
38499         * tests/test-striconveh.c (ASSERT): Likewise.
38500         * tests/test-striconveha.c (ASSERT): Likewise.
38501         * tests/test-strsignal.c (ASSERT): Likewise.
38502         * tests/test-strstr.c (ASSERT): Likewise.
38503         * tests/test-strtod.c (ASSERT): Likewise.
38504         * tests/test-trunc1.c (ASSERT): Likewise.
38505         * tests/test-trunc2.c (ASSERT): Likewise.
38506         * tests/test-truncf1.c (ASSERT): Likewise.
38507         * tests/test-truncf2.c (ASSERT): Likewise.
38508         * tests/test-truncl.c (ASSERT): Likewise.
38509         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
38510         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
38511         * tests/test-vasnprintf.c (ASSERT): Likewise.
38512         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
38513         * tests/test-vasprintf.c (ASSERT): Likewise.
38514         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
38515         * tests/test-vprintf-posix.c (ASSERT): Likewise.
38516         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
38517         * tests/test-vsnprintf.c (ASSERT): Likewise.
38518         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
38519         * tests/test-wcwidth.c (ASSERT): Likewise.
38520         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
38521         * tests/test-xprintf-posix.c (ASSERT): Likewise.
38522         * tests/test-xvasprintf.c (ASSERT): Likewise.
38523         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
38524         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
38525         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
38526         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
38527         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
38528         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
38529         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
38530         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
38531         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
38532         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
38533         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
38534         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
38535         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
38536         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
38537         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
38538         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
38539         * tests/unictype/test-block_list.c (ASSERT): Likewise.
38540         * tests/unictype/test-block_of.c (ASSERT): Likewise.
38541         * tests/unictype/test-block_test.c (ASSERT): Likewise.
38542         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
38543         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
38544         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
38545         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
38546         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
38547         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
38548         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
38549         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
38550         * tests/unictype/test-combining.c (ASSERT): Likewise.
38551         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
38552         * tests/unictype/test-digit.c (ASSERT): Likewise.
38553         * tests/unictype/test-mirror.c (ASSERT): Likewise.
38554         * tests/unictype/test-numeric.c (ASSERT): Likewise.
38555         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
38556         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
38557         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
38558         * tests/unictype/test-scripts.c (ASSERT): Likewise.
38559         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
38560         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
38561         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
38562         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
38563         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
38564         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
38565         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
38566         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
38567         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
38568         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
38569         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
38570         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
38571         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
38572         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
38573         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
38574         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
38575         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
38576         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
38577         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
38578         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
38579         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
38580         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
38581         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
38582         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
38583         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
38584         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
38585         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
38586         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
38587         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
38588         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
38589         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
38590         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
38591         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
38592         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
38593         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
38594         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
38595         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
38596         Reported by Eric Blake.
38597
38598 2008-04-11  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/wchar.in.h: Tweak comment.
38601
38602 2008-04-11  Bruno Haible  <bruno@clisp.org>
38603
38604         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
38605         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
38606         gl_COMMON.
38607         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
38608
38609 2008-04-11  Bruno Haible  <bruno@clisp.org>
38610
38611         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
38612
38613 2008-04-11  Simon Josefsson  <simon@josefsson.org>
38614
38615         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
38616         of attempting to use non-existing /dev/*random.  Based on patch
38617         from Adam Strzelecki <ono@java.pl> in
38618         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
38619
38620 2008-04-08  Bruno Haible  <bruno@clisp.org>
38621
38622         Add tentative support for emx+gcc.
38623         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
38624         * lib/fpurge.c (fpurge): Likewise.
38625         * lib/freadable.c (freadable): Likewise.
38626         * lib/freadahead.c (freadahead): Likewise.
38627         * lib/freading.c (freading): Likewise.
38628         * lib/freadptr.c (freadptr): Likewise.
38629         * lib/freadseek.c (freadptrinc): Likewise.
38630         * lib/fseeko.c (rpl_fseeko): Likewise.
38631         * lib/fseterr.c (fseterr): Likewise.
38632         * lib/fwritable.c (fwritable): Likewise.
38633         * lib/fwriting.c (fwriting): Likewise.
38634         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
38635
38636 2008-04-09  Eric Blake  <ebb9@byu.net>
38637
38638         Avoid some autoconf warnings.
38639         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
38640         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
38641         * m4/afs.m4 (gl_AFS): Likewise.
38642         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
38643         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
38644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38645         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
38646         (gl_INTEGER_TYPE_SUFFIX): Likewise.
38647         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
38648         (AC_CHECK_DECLS_ONCE): Likewise.
38649         Rename file...
38650         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
38651         gnulib-tool requires autoconf 2.59 or better.
38652         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
38653
38654 2008-04-08  Eric Blake  <ebb9@byu.net>
38655
38656         Use 'git describe --match' if present (added in git 1.5.5).
38657         * build-aux/git-version-gen: Limit result to tags that match 'v*'
38658         if possible.
38659
38660 2008-04-08  Bruno Haible  <bruno@clisp.org>
38661
38662         Add tentative support for OpenServer.
38663         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
38664         _ptr, _cnt.
38665         * lib/fpurge.c (fpurge): Likewise.
38666         * lib/freadable.c (freadable): Likewise.
38667         * lib/freadahead.c (freadahead): Likewise.
38668         * lib/freading.c (freading): Likewise.
38669         * lib/freadptr.c (freadptr): Likewise.
38670         * lib/freadseek.c (freadptrinc): Likewise.
38671         * lib/fseeko.c (rpl_fseeko): Likewise.
38672         * lib/fseterr.c (fseterr): Likewise.
38673         * lib/fwritable.c (fwritable): Likewise.
38674         * lib/fwriting.c (fwriting): Likewise.
38675         Reported by Roger Cornelius <rac@tenzing.org> and
38676         Brian K. White <brian@aljex.com>.
38677
38678 2008-04-06  Jim Meyering  <meyering@redhat.com>
38679
38680         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
38681
38682 2008-04-06  Bruno Haible  <bruno@clisp.org>
38683
38684         Avoid possible error with non-ASCII bytes in UTF-8 locales.
38685         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
38686         * tests/test-printf-posix.sh: Likewise.
38687         * tests/test-vfprintf-posix.sh: Likewise.
38688         * tests/test-vprintf-posix.sh: Likewise.
38689         * tests/test-xprintf-posix.sh: Likewise.
38690
38691 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38692
38693         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
38694         hide error from 'ls', needed on OS/2.
38695         Report by Elbert Pol <elbert.pol@gmail.com>.
38696
38697 2008-04-04  Eric Blake  <ebb9@byu.net>
38698
38699         Make test-fseeko.c failures meaningful.
38700         * tests/test-fseeko.c: Print line number on failure.
38701         * tests/test-fseek.c: Likewise.
38702         Reported by Nelson H. F. Beebe.
38703
38704         Improve strtod bug detection check.
38705         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
38706         required for Solaris 10.
38707         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
38708
38709 2008-04-04  Bruno Haible  <bruno@clisp.org>
38710
38711         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
38712         by m4/setenv.m4.
38713
38714 2008-04-03  Eric Blake  <ebb9@byu.net>
38715
38716         Ensure sane .version contents.
38717         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
38718         version string.
38719         * build-aux/git-version-gen: Improve documentation.
38720
38721         Make GNU make output nicer.
38722         * top/GNUmakefile [!_have-Makefile]: Add dependency on
38723         MAKECMDGOALS to enforce message for all command line targets.  Set
38724         srcdir for use in maint.mk.
38725
38726         Another maintainer tweak.
38727         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
38728         a target that regenerates version.
38729
38730 2008-04-03  Jim Meyering  <meyering@redhat.com>
38731
38732         vc-list-files: don't cause coreutils "make po-check" failure
38733         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38734
38735 2008-04-03  Eric Blake  <ebb9@byu.net>
38736
38737         Allow VPATH usage of vc-list-files.
38738         * build-aux/vc-list-files (scriptversion): Add timestamp.
38739         (options): Add --help, --version, -C.
38740         (CVS): Support installed cvsu.
38741
38742 2008-04-02  Bruno Haible  <bruno@clisp.org>
38743
38744         Avoid some "statement with no effect" warnings from gcc.
38745         * tests/test-wctype.c (main): Explicitly ignore unused values.
38746         Reported by Jim Meyering.
38747
38748 2008-04-02  Jim Meyering  <meyering@redhat.com>
38749
38750         Avoid some warnings from "gcc -Wshadow".
38751         * tests/test-frexp.c (exp): Define to a different identifier.
38752         * tests/test-frexpl.c (exp): Likewise.
38753
38754 2008-04-03  Jim Meyering  <meyering@redhat.com>
38755
38756         bootstrap: remove dangling *.[ch] symlinks from lib
38757         * build-aux/bootstrap [dangling symlink removal]: Move find's
38758         -depth option to precede all others, to avoid a warning.
38759         Remove *.[ch] files too, and from "$source_base" (usually lib/).
38760
38761 2008-04-02  Bruno Haible  <bruno@clisp.org>
38762
38763         Avoid some warnings from "gcc -Wshadow".
38764         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
38765         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
38766         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
38767         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
38768         Reported by Jim Meyering.
38769
38770 2008-04-01  Bruno Haible  <bruno@clisp.org>
38771
38772         Fix test to work on IRIX 6.5 with cc.
38773         * tests/test-math.c (numeric_equal): New function.
38774         (main): Use it.
38775
38776 2008-04-01  Bruno Haible  <bruno@clisp.org>
38777
38778         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
38779
38780 2008-04-01  Bruno Haible  <bruno@clisp.org>
38781
38782         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
38783         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38784         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
38785         (Depends-on): Remove math.
38786
38787         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
38788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38789         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
38790         (Depends-on): Remove math.
38791
38792         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
38793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38794         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
38795         (Depends-on): Remove math.
38796         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
38797         (Depends-on): Remove math.
38798
38799         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
38800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
38801         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
38802         (Depends-on): Remove math.
38803         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
38804         (Depends-on): Remove math.
38805
38806         * tests/test-round1.c: Include nan.h.
38807         (main): Use NaNd instead of NAN.
38808         * modules/round-tests (Files): Add tests/nan.h.
38809
38810         * tests/test-trunc1.c: Include nan.h.
38811         (main): Use NaNd instead of NAN.
38812         * modules/trunc-tests (Files): Add tests/nan.h.
38813
38814         * tests/test-roundf1.c: Include nan.h.
38815         (main): Use NaNf instead of NAN.
38816         * modules/roundf-tests (Files): Add tests/nan.h.
38817
38818         * tests/test-truncf1.c: Include nan.h.
38819         (main): Use NaNf instead of NAN.
38820         * modules/truncf-tests (Files): Add tests/nan.h.
38821
38822         * tests/test-ceilf1.c: Include nan.h.
38823         (main): Use NaNf instead of NAN.
38824         * modules/ceilf-tests (Files): Add tests/nan.h.
38825
38826         * tests/test-floorf1.c: Include nan.h.
38827         (main): Use NaNf instead of NAN.
38828         * modules/floorf-tests (Files): Add tests/nan.h.
38829
38830         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
38831         (main): Use NaNf instead of NAN.
38832         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
38833
38834         * tests/test-isnand.c: Include nan.h instead of <math.h>.
38835         (main): Use NaNd instead of NAN.
38836         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
38837
38838         * tests/test-frexp.c: Include nan.h.
38839         (main): Use NaNd instead of NAN.
38840         * modules/frexp-tests (Files): Add tests/nan.h.
38841
38842         * lib/isnan.c: Don't include <math.h>.
38843         (FUNC): Don't use NAN macro.
38844         * modules/isnand-nolibm (Depends-on): Remove math.
38845         * modules/isnanf-nolibm (Depends-on): Remove math.
38846         * modules/isnanl (Depends-on): Remove math.
38847         * modules/isnanl-nolibm (Depends-on): Remove math.
38848
38849         * tests/nan.h: New file.
38850
38851 2008-04-01  Eric Blake  <ebb9@byu.net>
38852
38853         Fix typos.
38854         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
38855         values to be the right type.
38856
38857         For now, cater to gnulib strtod inaccuracies.
38858         * tests/test-strtod.c (main): Allow 1-ulp error on expected
38859         fractional results.  While not as nice from a QoI perspective, it
38860         is a quicker patch than correctly implementing decimal to binary
38861         rounding.
38862
38863 2008-03-31  Eric Blake  <ebb9@byu.net>
38864
38865         Guarantee a definition of NAN.
38866         * lib/math.in.h (NAN): Define if missing.
38867         * tests/test-math.c (main): Test it.
38868         * doc/posix-headers/math.texi (math.h): Document this.
38869         * lib/isnan.c (rpl_isnand): Use it.
38870         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
38871         * tests/test-floorf1.c (NaN): Likewise.
38872         * tests/test-frexp.c (NaN): Likewise.
38873         * tests/test-isnand.c (NaN): Likewise.
38874         * tests/test-isnanf.c (NaN): Likewise.
38875         * tests/test-round1.c (NaN): Likewise.
38876         * tests/test-roundf1.c (NaN): Likewise.
38877         * tests/test-snprintf-posix.h (NaN): Likewise.
38878         * tests/test-sprintf-posix.h (NaN): Likewise.
38879         * tests/test-trunc1.c (NaN): Likewise.
38880         * tests/test-truncf1.c (NaN): Likewise.
38881         * tests/test-vasnprintf-posix.c (NaN): Likewise.
38882         * tests/test-vasprintf-posix.c (NaN): Likewise.
38883         * modules/isnand-nolibm (Depends-on): Add math.
38884         * modules/isnanf-nolibm (Depends-on): Likewise.
38885         * modules/isnanl (Depends-on): Likewise.
38886         * modules/isnanl-nolibm (Depends-on): Likewise.
38887         * modules/snprintf-posix-tests (Depends-on): Likewise.
38888         * modules/sprintf-posix-tests (Depends-on): Likewise.
38889         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
38890         * modules/vsprintf-posix-tests (Depends-on): Likewise.
38891         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
38892         * modules/vasprintf-posix-tests (Depends-on): Likewise.
38893
38894 2008-03-31  Bruno Haible  <bruno@clisp.org>
38895
38896         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
38897         * doc/posix-functions/strtod.texi: Likewise.
38898
38899 2008-03-31  Bruno Haible  <bruno@clisp.org>
38900
38901         * tests/test-strtod.c (main): Don't use C99 syntax.
38902
38903 2008-03-31  Bruno Haible  <bruno@clisp.org>
38904
38905         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
38906         Reported by Eric Blake.
38907
38908 2008-03-31  Jim Meyering  <meyering@redhat.com>
38909
38910         Don't compare actual signbit return values.
38911         * tests/test-strtod.c (main): Rather, compare only their
38912         zero/non-zero nature.
38913
38914 2008-03-31  Eric Blake  <ebb9@byu.net>
38915
38916         More strtod documentation.
38917         * doc/posix-functions/strtod.texi (strtod): Interpret more test
38918         failures as distinct bugs.
38919
38920 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
38921
38922         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
38923         Problem reported by Erik Benada in
38924         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
38925
38926 2008-03-30  Bruno Haible  <bruno@clisp.org>
38927
38928         * tests/test-strtod.c: Add comments about which assertion fails on which
38929         platform.
38930         * doc/posix-functions/strtod.texi: Add info about many more platforms.
38931
38932 2008-03-30  Eric Blake  <ebb9@byu.net>
38933
38934         Test signbit behavior on zeros.
38935         * tests/test-signbit.c (test_signbitf): Add tests for zero.
38936         (test_signbitd, test_signbitl): Likewise.
38937
38938         More strtod touchups.
38939         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
38940         sign of negative underflow, for now.  Use .5, not .1.
38941         * doc/posix-functions/strtod.texi (strtod): Mention these
38942         limitations.
38943         Reported by Jim Meyering.
38944
38945 2008-03-30  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
38948         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
38949
38950 2008-03-30  Bruno Haible  <bruno@clisp.org>
38951
38952         Avoid failure when attempting to return empty iconv results on some
38953         platforms.
38954         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
38955         allocation, don't report ENOMEM when the resulting string is empty.
38956
38957 2008-03-30  Bruno Haible  <bruno@clisp.org>
38958
38959         Fix buffer overrun.
38960         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
38961         Don't consider the width for tmp_length. Check count against tmp_length
38962         before doing the padding. Ensure enough allocation during padding.
38963
38964 2008-03-30  Eric Blake  <ebb9@byu.net>
38965
38966         strtod touchups.
38967         * lib/strtod.c (strtod): Avoid compiler warnings.
38968         Reported by Jim Meyering.
38969
38970 2008-03-30  Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
38973         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38974         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38975         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38976         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38977         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38978         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38980
38981         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38982         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38983         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38984         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38985         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38986         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38987         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38988         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38989
38990         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38991         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38992         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38993         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38994         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38995         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38996         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38997         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38998
38999         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39000         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39001
39002         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39003         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39004
39005         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39006         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39007
39008         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39009         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39010         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39011
39012         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39014         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39015
39016         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39018         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39019
39020         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39022         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39023
39024         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39025         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39027         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39028         (Depends-on): Add EOVERFLOW.
39029         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39030         (Depends-on): Add EOVERFLOW.
39031         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39032         (Depends-on): Add EOVERFLOW.
39033         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39034         (Depends-on): Add EOVERFLOW.
39035         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39036         (Depends-on): Add EOVERFLOW.
39037         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39038         (Depends-on): Add EOVERFLOW.
39039         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39040         (Depends-on): Add EOVERFLOW.
39041         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39042         (Depends-on): Add EOVERFLOW.
39043
39044         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39046         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39047
39048         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39050         * modules/snprintf (Depends-on): Add EOVERFLOW.
39051
39052         * lib/poll.c (EOVERFLOW): Remove fallback.
39053         * modules/poll (Depends-on): Add EOVERFLOW.
39054
39055         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39056         * modules/getugroups (Depends-on): Add EOVERFLOW.
39057
39058         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39059         * modules/getdelim (Depends-on): Add EOVERFLOW.
39060
39061         * lib/ftell.c (EOVERFLOW): Remove fallback.
39062         * modules/ftell (Depends-on): Add EOVERFLOW.
39063
39064         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39066         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39067
39068         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39069
39070         * modules/EOVERFLOW-tests: New file.
39071         * tests/test-EOVERFLOW.c: New file.
39072
39073         * modules/EOVERFLOW: New file.
39074         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39075
39076 2008-03-30  Bruno Haible  <bruno@clisp.org>
39077
39078         Fix bug introduced on 2007-06-10.
39079         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39080         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39081
39082 2008-03-30  Bruno Haible  <bruno@clisp.org>
39083
39084         Improve freadseek's efficiency after ungetc.
39085         * lib/freadseek.c: Include freadahead.h.
39086         (freadptrinc): New function, extracted from freadseek.
39087         (freadseek): Use it in a loop. Use freadahead to determine the number
39088         of loop iterations.
39089         * modules/freadseek (Depends-on): Add freadahead.
39090         (configure.ac): Require AC_C_INLINE.
39091
39092 2008-03-30  Bruno Haible  <bruno@clisp.org>
39093
39094         * lib/freadseek.c (freadseek): Don't ignore the return value of
39095         freadptr.
39096
39097 2008-03-29  Eric Blake  <ebb9@byu.net>
39098
39099         Add hex float support.
39100         * modules/strtod (Depends-on): Add c-ctype.
39101         (Link): Mention POW_LIB.
39102         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39103         whitespace between 'e' and exponent.
39104         * tests/test-strtod.c (main): Enable hex float tests.
39105         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39106         now provides.
39107
39108         Document various strtod bugs, with some fixes.
39109         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39110         "-0x", "inf", "nan", and hex constants.
39111         * doc/posix-functions/atof.texi (atof): Likewise.
39112         * modules/stdlib (Makefile.am): Support strtod.
39113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39114         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39115         detect additional strtod bugs.
39116         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39117         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39118         bool where appropriate.  Parse 'inf' and 'nan'.
39119         * tests/test-strtod.c: New file.
39120         * modules/strtod (Depends-on): Add stdbool, stdlib.
39121         (configure.ac): Turn on module indicator.
39122         * modules/strtod-tests: New module.
39123
39124 2008-03-29  Eric Blake  <ebb9@byu.net>
39125
39126         Fix ftell on mingw.
39127         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39128         * modules/ftell-tests (Depends-on): Add binary-io.
39129         * modules/ftello-tests (Depends-on): Likewise.
39130         * tests/test-ftell.c (main): Enhance test to cover behavior after
39131         ungetc.  Enforce binary mode.
39132         * tests/test-ftello.c (main): Likewise.
39133
39134         Pass test-freadseek on cygwin.
39135         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39136         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39137         ungetc buffer.
39138
39139         * tests/test-fflush2.c (main): Fix typo.
39140
39141 2008-03-29  Bruno Haible  <bruno@clisp.org>
39142
39143         * tests/test-fflush2.c (main): Temporarily disable the contents of
39144         this test.
39145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39146         Reported by Eric Blake.
39147
39148 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39149
39150         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39151         (GC_SHA224_DIGEST_SIZE): Add.
39152
39153         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39154         (gc_hash_digest_length): Likewise.
39155         (gc_hash_buffer): Likewise.
39156
39157 2008-03-25  Bruno Haible  <bruno@clisp.org>
39158
39159         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39160         detail which gettext release to use.
39161         Reported by Simon Josefsson.
39162
39163 2008-03-26  Jim Meyering  <meyering@redhat.com>
39164
39165         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39166         * modules/gnumakefile (clean-GNUmakefile): Also, use
39167         test ... && ... || : syntax rather than if-then ... fi.
39168
39169         gnumakefile: Don't double-quote-expand $(VPATH) value.
39170         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39171
39172 2008-03-24  Eric Blake  <ebb9@byu.net>
39173
39174         Alter GNUmakefile to install into top directory.
39175         * modules/maintainer-makefile: Split, and add dependency...
39176         * modules/gnumakefile: to this new module.
39177         * build-aux/GNUmakefile: Move...
39178         * top/GNUmakefile: ...here.
39179         * build-aux/maint.mk: Move...
39180         * top/maint.mk: ...here.
39181         * MODULES.html.sh (Support for maintaining...): Document new
39182         module.
39183
39184 2008-03-23  Bruno Haible  <bruno@clisp.org>
39185
39186         * gnulib-tool: New options --vc-files, --no-vc-files.
39187         (func_usage): Document them.
39188         (vc_files): New variable.
39189         (func_import): Consider vc_files.
39190         (func_create_testdir): Set vc_files to empty.
39191         Suggested by Jim Meyering and Karl Berry.
39192
39193 2008-03-23  Bruno Haible  <bruno@clisp.org>
39194
39195         Fix regex compilation error on HP-UX 11.
39196         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39197         * modules/regex (Files): Add m4/mbstate_t.m4.
39198         Reported by Ton Voon <ton.voon@altinity.com>.
39199
39200 2008-03-23  Bruno Haible  <bruno@clisp.org>
39201
39202         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39203
39204 2008-03-23  Eric Blake  <ebb9@byu.net>
39205             Bruno Haible  <bruno@clisp.org>
39206
39207         Install files from top/ in the destination directory.
39208         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39209         augmentation also for the files from top/.
39210         (func_import, func_create_testdir): Rewrite file names:
39211         top/filename -> filename.
39212
39213 2008-03-23  Bruno Haible  <bruno@clisp.org>
39214
39215         Tweak "gnulib --version" output.
39216         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39217
39218 2008-03-23  Bruno Haible  <bruno@clisp.org>
39219
39220         Tweak "gnulib --version" output.
39221         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39222         rather than contents of ChangeLog, when possible.
39223
39224 2008-03-21  Eric Blake  <ebb9@byu.net>
39225
39226         More --version tweaks.
39227         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39228         date of last ChangeLog entry.
39229
39230 2008-03-21  Jim Meyering  <meyering@redhat.com>
39231
39232         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39233
39234 2008-03-20  Eric Blake  <ebb9@byu.net>
39235
39236         VPATH fix.
39237         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39238
39239 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39240
39241         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
39242         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
39243
39244 2008-03-20  Eric Blake  <ebb9@byu.net>
39245
39246         Sync GNUmakefile with coreutils.
39247         * build-aux/GNUmakefile (have-Makefile): Rename...
39248         (_have-Makefile): ...to this, for namespace consideration.
39249         (GNUmakefile.cfg): Include, if present.
39250         (_autoreconf): Define a default.
39251         (_is-dist-target): New rule for rebuilds to pick up intra-release
39252         version.
39253         (maint-cfg.mk): Rename...
39254         (cfg.mk): ...to this.
39255
39256 2008-03-18  Jim Meyering  <meyering@redhat.com>
39257
39258         New script and module: mktempd
39259         * MODULES.html.sh (maint+release support): Add mktempd.
39260         * build-aux/mktempd: New file.
39261         * modules/mktempd: New file.
39262
39263 2008-03-15  Jim Meyering  <meyering@redhat.com>
39264
39265         Undo last change.
39266         * lib/sha1.c, lib/md5.c: 63 != ~63.
39267         Reported by Andreas Schwab.
39268
39269         sha1.c, md5.c: Hoist a redundant expression.
39270         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
39271         "ctx->buflen" only once, before calling *_process_block.
39272         * lib/md5.c (md5_process_bytes): Likewise.
39273
39274 2008-03-14  Eric Blake  <ebb9@byu.net>
39275
39276         Bump copyright year in files generated by gnulib-tool.
39277         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
39278         gnulib-tool, rather than hard-coding it.
39279
39280         Fix 'gnulib-tool --version' output to work with git.
39281         * gnulib-tool (func_gnulib_dir): New function, extracted from...
39282         (startup): ...here.
39283         (func_version): Use it to invoke git-version-gen, rather than
39284         relying on CVS keyword expansion.  Modernize wording.
39285         (cvsdatestamp, last_checkin_date, version): Kill unused
39286         variables.
39287
39288 2008-03-12  Jim Meyering  <meyering@redhat.com>
39289
39290         Recognize optional cast of the argument to free.
39291         * build-aux/useless-if-before-free: Update regexps.
39292
39293         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
39294
39295 2008-03-11  Bruno Haible  <bruno@clisp.org>
39296
39297         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
39298         by a single package.
39299         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
39300         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
39301         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
39302         Reported by Sam Steingold <sds@gnu.org>.
39303
39304 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39305
39306         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
39307         repositories.
39308
39309 2008-03-11  Bruno Haible  <bruno@clisp.org>
39310
39311         Avoid conflicts between local macro definitions.
39312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39313         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
39314
39315 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
39316             Bruno Haible  <bruno@clisp.org>
39317
39318         Make va_copy work with some version of xlc on AIX 5.1.
39319         * lib/stdarg.in.h: New file.
39320         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
39321         On AIX, use a <stdarg.h> file substitute.
39322         * modules/stdarg (Files): Add lib/stdarg.in.h.
39323         (Depends-on): Add include_next.
39324         (Makefile.am): Build a stdarg.h substitute if requested.
39325         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
39326
39327 2008-03-10  Bruno Haible  <bruno@clisp.org>
39328
39329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
39330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39331         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39332
39333 2008-03-10  Bruno Haible  <bruno@clisp.org>
39334
39335         * modules/stdlib (Depends-on): Add include_next, remove
39336         absolute-header.
39337
39338 2008-03-09  Bruno Haible  <bruno@clisp.org>
39339
39340         * lib/freadahead.h (freadahead): Document more precisely.
39341         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
39342         the sum of both buffer sizes.
39343         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
39344         * NEWS: Document the change.
39345
39346 2008-03-09  Bruno Haible  <bruno@clisp.org>
39347
39348         Extend freadptr to return also the buffer size.
39349         * lib/freadptr.h (freadptr): Add sizep argument.
39350         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
39351         (freadptr): Add sizep argument. Determine buffer size like freadahead
39352         does.
39353         * tests/test-freadptr.c: Don't include freadahead.h.
39354         (main): Adapt for new calling convention of freadptr.
39355         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
39356         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
39357         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
39358         tests/test-freadptr2.sh.
39359         (Depends): Remove freadahead.
39360         (TESTS): Add test-freadptr2.sh.
39361         (check_PROGRAMS): Add test-freadptr2.
39362
39363 2008-03-09  Bruno Haible  <bruno@clisp.org>
39364
39365         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
39366         Report and solution by Simon Josefsson.
39367
39368 2008-03-06  Bruno Haible  <bruno@clisp.org>
39369
39370         Make fflush after ungetc work on BSD platforms.
39371         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
39372         * tests/test-fflush2.c: New file.
39373         * tests/test-fflush2.sh: New file.
39374         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
39375         tests/test-fflush2.c.
39376         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
39377         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
39378
39379 2008-03-06  Eric Blake  <ebb9@byu.net>
39380
39381         Likewise for ftello.
39382         * modules/ftello (Dependencies): Add extensions.
39383         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
39384
39385 2008-03-06  Bruno Haible  <bruno@clisp.org>
39386
39387         * modules/fseeko (Dependencies): Add extensions.
39388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
39389         Needed on glibc systems.
39390
39391 2008-03-06  Bruno Haible  <bruno@clisp.org>
39392
39393         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
39394         email address.
39395         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39396
39397 2008-03-06  Bruno Haible  <bruno@clisp.org>
39398
39399         * users.txt: Add libgnupdf.
39400
39401 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39402
39403         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
39404         (Header File Substitutes, Function Substitutes,
39405         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
39406         (Build robot for gnulib): Fix typo.
39407
39408 2008-03-06  Bruno Haible  <bruno@clisp.org>
39409
39410         * doc/gnulib-tool.texi (VCS Issues): Small updates.
39411         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39412
39413 2008-03-06  Bruno Haible  <bruno@clisp.org>
39414
39415         * doc/func.texi: New file, extracted from doc/gnulib.texi.
39416         * doc/gnulib.texi: Include it.
39417
39418 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39419
39420         * modules/func (License): Change license to unlimited; there was
39421         no LGPL parts in the module anyway.
39422
39423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39424
39425         * modules/__func__: Renamed to modules/func.
39426         * modules/__func__-tests: Renamed to modules/func-tests.
39427         * tests/test-__func__.c: Renamed to tests/test-func.c.
39428         * m4/__func__.m4: Renamed to m4/func.m4.
39429         * doc/gnulib.texi (__func__): Section renamed to func.
39430         Suggested by Eric Blake <ebb9@byu.net>.
39431
39432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39433
39434         * doc/gnulib.texi (__func__): Use C99 terminology when talking
39435         about __func__.  Make example self-contained.  Suggested by Eric
39436         Blake <ebb9@byu.net>.
39437
39438         * tests/test-__func__.c (main): Avoid extraneous () around __func.
39439         Suggested by Eric Blake <ebb9@byu.net>.
39440
39441 2008-03-06  Simon Josefsson  <simon@josefsson.org>
39442
39443         * modules/__func__: New file.
39444         * modules/__func__-tests: New file.
39445         * tests/test-__func__.c: New file.
39446         * m4/__func__.m4: New file.
39447         * doc/gnulib.texi (__func__): Document __func__ module.
39448
39449 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39450
39451         * modules/byteswap (License): Re-license as LGPLv2+.
39452
39453 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39454
39455         * doc/Makefile: Add pdf target.
39456
39457 2008-03-05  Simon Josefsson  <simon@josefsson.org>
39458
39459         * modules/inline (License): Use 'unlimited', since there are only
39460         *.m4 files in this module.
39461
39462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39463             Bruno Haible  <bruno@clisp.org>
39464
39465         Add support for HP C 7.1 on OpenVMS 8.3.
39466         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
39467
39468 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
39469
39470         Update VMS specifics.
39471         * lib/getopt.c [VMS]: Remove include of unixlib.h.
39472
39473 2008-03-02  Jim Meyering  <meyering@redhat.com>
39474
39475         Remove the last dependency on the "free" module.
39476         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
39477         Reported by Bob Proulx.
39478
39479         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
39480
39481         Remove useless "if" tests before free.  Deprecate "free" module.
39482         * doc/posix-functions/free.texi: Mention that this
39483         module is no longer useful.
39484         * modules/free (Notice): Say this module is obsolete.
39485         * modules/readutmp (Depends-on): Remove free.
39486         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
39487         * lib/putenv.c (putenv): Likewise.
39488         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
39489         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
39490         * tests/test-c-strcasestr.c (main): Likewise.
39491         * tests/test-c-strstr.c (main): Likewise.
39492         * tests/test-mbscasestr1.c (main): Likewise.
39493         * tests/test-mbscasestr2.c (main): Likewise.
39494         * tests/test-mbsstr1.c (main): Likewise.
39495         * tests/test-mbsstr2.c (main): Likewise.
39496         * tests/test-memmem.c (main): Likewise.
39497         * tests/test-strcasestr.c (main): Likewise.
39498         * tests/test-striconv.c (main): Likewise.
39499         * tests/test-striconveh.c (main): Likewise.
39500         * tests/test-striconveha.c (main): Likewise.
39501         * tests/test-strstr.c (main): Likewise.
39502
39503         * build-aux/git-version-gen: Adjust a comment and the Usage string.
39504
39505         bootstrap: sync from coreutils again
39506         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
39507
39508 2008-03-01  Jim Meyering  <meyering@redhat.com>
39509
39510         bootstrap: sync from coreutils
39511         * build-aux/bootstrap (update_po_files): Copy a .po file into place
39512         also when the target doesn't exist.
39513
39514 2008-03-01  Eric Blake  <ebb9@byu.net>
39515
39516         Fix bugs in last patch.
39517         * lib/memchr2.c (memchr2): Fix typo.
39518         * tests/test-memchr2.c: Test previous bug, and don't use GNU
39519         extension.
39520         Reported by Bruce Korb.
39521
39522         New module 'memchr2'.
39523         * modules/memchr2: New file.
39524         * modules/memchr2-tests: Likewise.
39525         * lib/memchr2.h: Likewise.
39526         * lib/memchr2.c: Likewise, based on memchr.c.
39527         * tests/test-memchr2.c: New test.
39528         * MODULES.html.sh (String handling): Add memchr2.
39529
39530 2008-02-29  Bruno Haible  <bruno@clisp.org>
39531
39532         * modules/freadseek-tests: New file.
39533         * tests/test-freadseek.sh: New file.
39534         * tests/test-freadseek.c: New file.
39535
39536         New module 'freadseek'.
39537         * modules/freadseek: New file.
39538         * lib/freadseek.h: New file.
39539         * lib/freadseek.c: New file.
39540         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
39541
39542 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
39543
39544         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
39545         wydawca.
39546
39547         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
39548         program_invocation_name and program_invocation_short_name are
39549         present.
39550
39551 2008-02-28  Bruno Haible  <bruno@clisp.org>
39552
39553         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
39554         * tests/test-freadptr.sh: Also test non-seekable stdin.
39555
39556 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
39557
39558         * build-aux/bootstrap (source_base, m4_base)
39559         (doc_base, tests_base): New variables.
39560         (gnulib_tool_options): Do not hardcode base directories, use
39561         the above variables instead.
39562
39563 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
39564
39565         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
39566
39567 2008-02-28  Bruno Haible  <bruno@clisp.org>
39568
39569         * modules/freadptr-tests: New file.
39570         * tests/test-freadptr.sh: New file.
39571         * tests/test-freadptr.c: New file.
39572
39573         New module 'freadptr'.
39574         * modules/freadptr: New file.
39575         * lib/freadptr.h: New file.
39576         * lib/freadptr.c: New file.
39577         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
39578
39579 2008-02-26  Karl Berry  <karl@freefriends.org>
39580
39581         Sync from Libtool:
39582         * libltdl/argz.c (argz_add, argz_count): New functions.
39583         * libltdl/argz.in.h: Declare them.
39584         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
39585
39586 2008-02-22  Bruno Haible  <bruno@clisp.org>
39587
39588         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
39589         is a pointer type.  Needed for HP-UX 10.
39590         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
39591         * doc/posix-functions/gmtime_r.texi: Likewise.
39592         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
39593
39594 2008-02-24  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/environ-tests: New file.
39597         * tests/test-environ.c: New file.
39598
39599         New module 'environ'.
39600         * modules/environ: New file.
39601         * lib/unistd.in.h (environ): New declaration.
39602         * m4/environ.m4: New file.
39603         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
39604         after use.
39605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
39606         HAVE_DECL_ENVIRON.
39607         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
39608         HAVE_DECL_ENVIRON.
39609         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
39610         wrong claim that 'environ' is missing on some systems.
39611         * modules/execute (Depends-on): Add environ.
39612         * lib/execute.c (environ): Remove fallback declaration.
39613         * modules/pipe (Depends-on): Add environ.
39614         * lib/pipe.c (environ): Remove fallback declaration.
39615         * modules/setenv (Depends-on): Add environ.
39616         * lib/setenv.c (environ): Remove fallback declaration.
39617         * modules/unsetenv (Depends-on): Add environ.
39618         * lib/unsetenv.c (environ): Remove fallback declaration.
39619         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
39620         m4/environ.m4.
39621         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
39622         (gl_PREREQ_UNSETENV): Likewise.
39623
39624 2008-02-24  Bruno Haible  <bruno@clisp.org>
39625
39626         * doc/posix-functions/environ.texi: Document the MacOS X problem.
39627
39628 2008-02-20  Bob Proulx  <bob@proulx.com>
39629
39630         Enable use of older two part flavor 'git describe'.
39631         * build-aux/git-version-gen: If using the older two part flavor of
39632         git version then recreate the third part now present in the
39633         newer three part flavor of git describe.
39634
39635 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
39636
39637         * lib/fts.c (fts_build): Typo correction to comment.
39638
39639 2008-02-17  Bruno Haible  <bruno@clisp.org>
39640
39641         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
39642         generating no-op conflicts.
39643
39644 2008-02-17  Bruno Haible  <bruno@clisp.org>
39645
39646         Speed up by 10%.
39647         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
39648         result_entries, rather than an index-based loop.
39649
39650 2008-02-17  Bruno Haible  <bruno@clisp.org>
39651
39652         Speed up by 25%.
39653         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
39654         'hashcode_cached'.
39655         (entry_create): New function.
39656         (entry_hashcode): Use the cached hashcode if possible.
39657         (read_changelog_file, try_split_merged_entry): Use entry_create.
39658
39659 2008-02-17  Bruno Haible  <bruno@clisp.org>
39660
39661         Speed up from O(n^2) to O(n) for long ChangeLog files.
39662         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
39663         (read_changelog_file): Change implementation of entries_reversed list
39664         to rbtreehash.
39665         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
39666
39667 2008-02-17  Bruno Haible  <bruno@clisp.org>
39668
39669         New option --split-merged-entry.
39670         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
39671         (find_paragraph_end, try_split_merged_entry): New functions.
39672         (long_options): Add option --split-merged-entry.
39673         (usage): Document option --split-merged-entry.
39674         (main): Implement option --split-merged-entry.
39675         Reported by Eric Blake.
39676
39677 2008-02-17  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/git-merge-changelog.c: Include c-strstr.h.
39680         (main): Support the "git pull --rebase" situation.
39681         * modules/git-merge-changelog (Depends-on): Add c-strstr.
39682         Reported by Eric Blake.
39683
39684 2008-02-16  Eric Blake  <ebb9@byu.net>
39685
39686         Avoid doubling \ in common case of "c-maybe" quoting style.
39687         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
39688         eliding outer quotes.
39689         * lib/quotearg.h: Document this.
39690         * tests/test-quotearg.c (result_strings, inputs, results_g)
39691         (flag_results, locale_results): Test it by adding a new string to
39692         each test group.
39693         (compare_strings): Test new string.
39694
39695 2008-02-13  Eric Blake  <ebb9@byu.net>
39696
39697         Avoid trigraph quoting in default output.
39698         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
39699         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
39700         unless explicitly requested.
39701         * tests/test-quotearg.c (flag_results, main): Add additional tests.
39702
39703 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
39704
39705         Don't rely on signed integer overflowing to negative value.
39706         * lib/getugroups.c (getugroups): Include <limits.h>.
39707         Instead, compare against INT_MAX, and increment only if the test passes.
39708
39709 2008-02-13  Jim Meyering  <meyering@redhat.com>
39710         and Eric Blake  <ebb9@byu.net>
39711
39712         Avoid shadowing warning and compile errors on Linux.
39713         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
39714         forwarding macros on Linux.
39715         (dcgettext): Define a stub, for Linux.
39716         (results_g, main): Avoid warnings.
39717
39718 2008-02-12  Eric Blake  <ebb9@byu.net>
39719
39720         Silence warning in last patch.
39721         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
39722
39723         Quotearg part 4: add tests, fix c-maybe colon quoting.
39724         * lib/quotearg.h: Improve documentation.
39725         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
39726         escapes when adding outer quotes.  When quoting trigraphs, use
39727         valid C notation.  When quoting NUL, omit extra characters if next
39728         character is not digit.  Alter prototype.
39729         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
39730         callers.
39731         * modules/quotearg-tests: New module.
39732         * tests/test-quotearg.c: New test.
39733
39734 2008-02-07  Eric Blake  <ebb9@byu.net>
39735
39736         Quotearg part 3: add flag to control outer quote elision.
39737         * lib/quotearg.h (c_maybe_quoting_style): New style.
39738         (enum quoting_flags): Better documentation of flags.
39739         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
39740         c-maybe style.
39741         (quotearg_buffer_restyled): Handle new flag to elide outer
39742         quotes.
39743
39744         Quotearg part 2: add flag that can control NUL elision.
39745         * lib/quotearg.h (set_quoting_flags): New prototype.
39746         * lib/quotearg.c (struct quoting_options): Add flag field.
39747         (set_quoting_flags): New function.
39748         (quotearg_buffer_restyled): Add flags parameter.
39749         (quotearg_alloc_mem): Set the flag if length cannot be returned.
39750         (quotearg_n_options): Set the flag, since length cannot be
39751         returned.
39752         (quoting_options_from_style): Default flags correctly.
39753
39754         Quotearg part 1: more wrappers, restore quotearg_char state.
39755         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
39756         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
39757         (quotearg_colon_mem): New wrappers.
39758         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
39759         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
39760         functions.
39761         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
39762         (quotearg_colon_mem): New functions.
39763
39764 2008-02-11  Bruno Haible  <bruno@clisp.org>
39765
39766         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
39767         library in the current directory: it does not work with parallel make.
39768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39769
39770 2008-02-11  Bruno Haible  <bruno@clisp.org>
39771
39772         * .gitattributes: New file.
39773
39774 2008-02-11  Jim Meyering  <meyering@redhat.com>
39775
39776         useless-if-before-free: Fix reversed exit values.
39777         * build-aux/useless-if-before-free: Use correct values
39778         for EXIT_MATCH and EXIT_NO_MATCH.
39779
39780         * build-aux/useless-if-before-free: Close stdout carefully.
39781
39782 2008-02-10  Bruno Haible  <bruno@clisp.org>
39783
39784         New module 'git-merge-changelog'.
39785         * modules/git-merge-changelog: New file.
39786         * lib/git-merge-changelog.c: New file.
39787
39788 2008-02-10  Jim Meyering  <meyering@redhat.com>
39789
39790         useless-if-before-free: New option: --list (-l).
39791
39792         useless-if-before-free: Don't exit immediately upon open failure.
39793         * build-aux/useless-if-before-free: Exit 2 for errors.
39794         Upon failure to open a file, don't exit immediately.
39795         Rather, just warn and continue with any remaining files.
39796
39797 2008-02-10  Bruno Haible  <bruno@clisp.org>
39798
39799         New abstract list operation 'node_set_value'.
39800         * lib/gl_list.h (gl_list_node_set_value): New function.
39801         (struct gl_list_implementation): New field node_set_value.
39802         * lib/gl_list.c (gl_list_node_set_value): New function.
39803         * lib/gl_array_list.c (gl_array_node_set_value): New function.
39804         (gl_array_list_implementation): Update.
39805         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
39806         (gl_carray_list_implementation): Update.
39807         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
39808         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39809         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39810         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
39811         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39812         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39813         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39814         Update.
39815         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39816         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
39817         (gl_sublist_list_implementation): Update.
39818
39819 2008-02-10  Bruno Haible  <bruno@clisp.org>
39820
39821         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
39822         Needed when ELEMENT is #defined to 'some_type *'.
39823
39824 2008-02-10  Jim Meyering  <meyering@redhat.com>
39825
39826         New script and module: useless-if-before-free
39827         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
39828         * build-aux/useless-if-before-free: New file.
39829         * modules/useless-if-before-free: New file.
39830
39831         * build-aux/gitlog-to-changelog: Use committer date, not author date.
39832
39833         xstrtol_error: Fix typo.
39834         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
39835         s/exit_failure/exit_status/.
39836
39837 2008-02-09  Jim Meyering  <meyering@redhat.com>
39838
39839         New script and module: gitlog-to-changelog
39840         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
39841         * modules/gitlog-to-changelog: New file.
39842         * build-aux/gitlog-to-changelog: New file.
39843
39844 2008-02-08  Jim Meyering  <meyering@redhat.com>
39845
39846         Avoid two "parameter unused" warnings.
39847         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
39848         Mark "st" as used.
39849
39850         Use "git COMMAND", not "git-COMMAND".
39851         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
39852         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
39853         * build-aux/git-version-gen: Use "git status", not "git-status".
39854
39855 2008-02-07  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
39858         Avoids a crash on Windows Vista.
39859         Reported by Adam Strzelecki <ono@java.pl> via
39860         Simon Josefsson <simon@josefsson.org>.
39861
39862 2008-02-06  Bruno Haible  <bruno@clisp.org>
39863
39864         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
39865         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
39866         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
39867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
39868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39870         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
39871         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
39872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39879         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
39880         left-adjust flag.
39881         * tests/test-snprintf-posix.h (test_function): Likewise.
39882         * tests/test-sprintf-posix.h (test_function): Likewise.
39883         * tests/test-vasprintf-posix.c (test_function): Likewise.
39884         * doc/posix-functions/fprintf.texi: Update.
39885         * doc/posix-functions/printf.texi: Update.
39886         * doc/posix-functions/snprintf.texi: Update.
39887         * doc/posix-functions/sprintf.texi: Update.
39888         * doc/posix-functions/vfprintf.texi: Update.
39889         * doc/posix-functions/vprintf.texi: Update.
39890         * doc/posix-functions/vsnprintf.texi: Update.
39891         * doc/posix-functions/vsprintf.texi: Update.
39892         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39893
39894 2008-02-06  Bruno Haible  <bruno@clisp.org>
39895
39896         Fix bug introduced on 2008-01-26.
39897         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
39898
39899 2008-02-06  Bruno Haible  <bruno@clisp.org>
39900
39901         Fix bug introduced on 2007-06-10.
39902         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
39903         !NEED_PRINTF_FLAG_ZERO.
39904
39905 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
39906
39907         getloadavg: use libperfstat on AIX5
39908         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
39909
39910 2008-02-03  Bruno Haible  <bruno@clisp.org>
39911
39912         * lib/diffseq.h: Add comments about required #includes.
39913         Reported by Michael Biggs <gnulib@doubleplum.net>.
39914
39915 2008-02-01  Bruno Haible  <bruno@clisp.org>
39916
39917         * users.txt: Add gnuit.
39918
39919 2008-01-31  Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/md4.c (set_uint32): Mark as inline.
39922         * lib/md5.c (set_uint32): Likewise.
39923         * lib/sha1.c (set_uint32): Likewise.
39924         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
39925         * m4/md5.m4 (gl_MD5): Likewise.
39926         * m4/sha1.m4 (gl_SHA1): Likewise.
39927
39928 2008-01-31  Jim Meyering  <meyering@redhat.com>
39929
39930         Use "sizeof VAR", rather than a literal "4".
39931         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
39932         * lib/md4.c (md4_read_ctx): Likewise.
39933         * lib/sha1.c (sha1_read_ctx): Likewise.
39934
39935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39936
39937         * tests/test-sha1.c: New file, based on test-md5.c.
39938
39939         * modules/crypto/sha1-tests: New file.
39940
39941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39942
39943         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
39944
39945 2008-01-31  Jim Meyering  <meyering@redhat.com>
39946
39947         Prefer "sizeof v" over the equivalent "4".
39948         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
39949         * lib/md5.c (set_uint32): Likewise.
39950         * lib/sha1.c (set_uint32): Likewise.
39951
39952 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39953
39954         * lib/sha1.c (set_uint32): Mark function as static.
39955
39956 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39957
39958         md2: clarify comments to say that alignment is not required.
39959         * lib/md2.h: Remove warning about alignment in comment.
39960         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
39961         never been required.
39962
39963 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39964
39965         md4: adapt alignment constraint fix from sha1.
39966         * lib/md4.c (set_uint32): New function, from sha1.c
39967         (md4_read_ctx): Use it.
39968         (md4_finish_ctx): Doc fix.
39969         * lib/md4.h: Doc fix.
39970
39971 2008-01-31  Simon Josefsson  <simon@josefsson.org>
39972
39973         md5: adapt alignment constraint fix from sha1.
39974         * lib/md5.c (set_uint32): New function, from sha1.c
39975         (md5_read_ctx): Use it.
39976         (md5_finish_ctx): Doc fix.
39977         * lib/md5.h: Doc fix.
39978
39979 2008-01-30  Peter Palfrader  <weasel@debian.org>
39980
39981         sha1: remove the result buffer alignment constraint
39982         * lib/sha1.c (set_uint32): New function.
39983         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39984         constraint.
39985         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39986         * lib/sha1.h: Likewise.
39987
39988 2008-01-30  Andreas Schwab  <schwab@suse.de>
39989             Bruno Haible  <bruno@clisp.org>
39990
39991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39992         correct definition of LDBL_MIN_EXP.
39993
39994 2008-01-30  Karl Berry  <karl@gnu.org>
39995
39996         * config/srclist-update: try to preserve x bit on updates.
39997         * config/srclistvars.sh: update for karl.
39998
39999 2008-01-29  Jim Meyering  <meyering@redhat.com>
40000
40001         vasnprintf.c: Avoid warning about unused label
40002         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40003         "overflow" label definition and associated code with the
40004         same cpp condition that guards the sole use of that label.
40005
40006 2008-01-26  Bruno Haible  <bruno@clisp.org>
40007
40008         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40009         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40010         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40011         * lib/isnanl-nolibm.h (isnanl): Likewise.
40012         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40013
40014 2008-01-26  Bruno Haible  <bruno@clisp.org>
40015
40016         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40017         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40018
40019 2008-01-26  Bruno Haible  <bruno@clisp.org>
40020
40021         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40022         GCC >= 4.0 built-in.
40023         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40024
40025 2008-01-26  Bruno Haible  <bruno@clisp.org>
40026
40027         Rename isnan, applicable to 'double' only, to isnand.
40028         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40029         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40030         (configure.ac): Update.
40031         (Include): Replace "isnan.h" with "isnand.h".
40032         * m4/isnand.m4: Renamed from m4/isnan.m4.
40033         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40034         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40035         instead of isnan.c.
40036         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40037         instead of HAVE_ISNAN_IN_LIBC.
40038         (isnand): Renamed from isnan.
40039         * lib/isnand.c: New file.
40040         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40041         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40042         (Makefile.am): Update.
40043         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40044         Include isnand.h instead of isnan.h.
40045         (main): Test isnand instead of isnan.
40046         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40047         isnan-nolibm.
40048         * modules/frexp (Depends-on): Likewise.
40049         * modules/frexp-tests (Depends-on): Likewise.
40050         * modules/frexp-nolibm (Depends-on): Likewise.
40051         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40052         * modules/isfinite (Depends-on): Likewise.
40053         * modules/round-tests (Depends-on): Likewise.
40054         * modules/signbit (Depends-on): Likewise.
40055         * modules/signbit-tests (Depends-on): Likewise.
40056         * modules/snprintf-posix (Depends-on): Likewise.
40057         * modules/sprintf-posix (Depends-on): Likewise.
40058         * modules/trunc-tests (Depends-on): Likewise.
40059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40066         * modules/vasnprintf-posix (Depends-on): Likewise.
40067         * modules/vasprintf-posix (Depends-on): Likewise.
40068         * modules/vfprintf-posix (Depends-on): Likewise.
40069         * modules/vsnprintf-posix (Depends-on): Likewise.
40070         * modules/vsprintf-posix (Depends-on): Likewise.
40071         * lib/frexp.c: Include isnand.h instead of isnan.h.
40072         (ISNAN): Set to isnand instead of isnan.
40073         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40074         (gl_isfinited): Use isnand instead of isnan.
40075         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40076         (gl_signbitd): Use isnand instead of isnan.
40077         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40078         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40079         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40080         (main): Use isnand instead of isnan.
40081         * tests/test-round1.c: Include isnand.h.
40082         (main): Use isnand instead of isnan.
40083         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40084         (ISNAN): Set to isnand instead of isnan.
40085         * tests/test-trunc1.c: Include isnand.h.
40086         (main): Use isnand instead of isnan.
40087         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40088         (equal): Use isnand instead of isnan.
40089         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40090         isnand-nolibm.
40091         * NEWS: Mention the change.
40092
40093 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40094             Bruno Haible  <bruno@clisp.org>
40095
40096         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40097         the GCC builtins for signbits are present and set
40098         REPLACE_SIGNBIT_USING_GCC if so.
40099         * lib/math.in.h (signbit): Define using GCC builtins if
40100         REPLACE_SIGNBIT_USING_GCC is set.
40101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40102         REPLACE_SIGNBIT_USING_GCC.
40103         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40104
40105 2008-01-25  Jim Meyering  <meyering@redhat.com>
40106
40107         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40108         * lib/poll.c: Include <config.h>, not "config.h".
40109         * tests/test-getaddrinfo.c: Likewise.
40110
40111 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40112
40113         * modules/sockets-tests: New file.
40114
40115 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40116
40117         * modules/sockets: New module, can be used to call WSA_Startup and
40118         WSA_Cleanup when needed.
40119
40120         * lib/sockets.h, lib/sockets.c: New files.
40121
40122         * m4/sockets.m4: New file.
40123
40124         * tests/test-sockets.c: New file.
40125
40126 2008-01-19  Bruno Haible  <bruno@clisp.org>
40127
40128         * doc/posix-headers: Renamed from doc/headers.
40129         * doc/posix-functions: Renamed from doc/functions.
40130         * doc/gnulib.texi: Update.
40131
40132 2008-01-19  Bruno Haible  <bruno@clisp.org>
40133
40134         * doc/glibc-functions/strcasestr.texi: Include contents of
40135         doc/functions/strcasestr.texi, fixing the list of platforms.
40136         * doc/functions/strcasestr.texi: Remove file.
40137
40138 2008-01-19  Bruno Haible  <bruno@clisp.org>
40139
40140         * doc/glibc-functions/memmem.texi: Include contents of
40141         doc/functions/memmem.texi.
40142         * doc/functions/memmem.texi: Remove file.
40143
40144 2008-01-18  Bruno Haible  <bruno@clisp.org>
40145
40146         * doc/glibc-functions/*.texi: New files.
40147         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40148         to use the new files.
40149
40150 2008-01-17  Bruno Haible  <bruno@clisp.org>
40151
40152         * tests/test-gethostname.c (main): Fix printf statement.
40153
40154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40155
40156         * modules/gethostname-tests: New file.
40157
40158         * tests/test-gethostname.c: New file.
40159
40160 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40161
40162         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40163         used by the UNAME case.  Reported by Bruno Haible
40164         <bruno@clisp.org>.
40165
40166 2008-01-17  Eric Blake  <ebb9@byu.net>
40167
40168         Convert c-strcasestr to be more efficient.
40169         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40170         (Depends-on): Add c-strcase, remove malloca, strnlen.
40171         * tests/test-c-strcasestr.c (main): Enhance test.
40172         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40173
40174 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40175
40176         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40177         Use it in creating po/Makevars.
40178
40179 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40180
40181         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40182         Applications that requires it should initialize libgcrypt
40183         manually.
40184
40185 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40186
40187         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40188
40189 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40190
40191         Fix problem with getdate on mingw32 reported by Simon Josefsson
40192         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40193         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40194         tzname", when deciding whether to declare tzname.
40195         * lib/strftime.c (tzname): Likewise.
40196
40197 2008-01-15  Bruno Haible  <bruno@clisp.org>
40198
40199         Work around a MacOS X 10.5 bug in frexpl().
40200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40201         * doc/functions/frexpl.texi: Document the bug.
40202         Reported by Elias Pipping <pipping@gentoo.org>.
40203
40204 2008-01-14  Eric Blake  <ebb9@byu.net>
40205
40206         Touch up previous patch.
40207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40208         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40209
40210         Convert strcasestr module to use Two-Way algorithm.
40211         * modules/strcasestr-simple: New module, based on the old
40212         strcasestr, but with Two-Way rather than KMP.
40213         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40214         * lib/string.in.h (rpl_strcasestr): Declare.
40215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40216         performance.
40217         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40218         * modules/string (Makefile.am): Support strcasestr.
40219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40220         * modules/strcasestr-tests (Depends-on): Check for alarm.
40221         * tests/test-strcasestr.c: Augment test.
40222         * lib/str-two-way.h: Clean up stray macro.
40223         * NEWS: Document new module.
40224         * MODULES.html.sh (string handling): Likewise.
40225         * doc/functions/strcasestr.texi: New file.
40226         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40227         here, since it is not a POSIX function.
40228
40229 2008-01-14  Colin Watson  <cjwatson@debian.org>
40230             Bruno Haible  <bruno@clisp.org>
40231
40232         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40233         works fine; if not, set REPLACE_STRSIGNAL.
40234         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40236         REPLACE_STRSIGNAL.
40237         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40238         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40239         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40240
40241 2008-01-14  Bruno Haible  <bruno@clisp.org>
40242
40243         * modules/strsignal (Include): Change to <string.h>.
40244
40245 2008-01-14  Colin Watson  <cjwatson@debian.org>
40246
40247         * modules/argp (Notice): Add a notice recommending to change
40248         XGETTEXT_OPTIONS.
40249         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
40250
40251 2008-01-13  Colin Watson  <cjwatson@debian.org>
40252
40253         * modules/strsignal-tests: New file.
40254         * tests/test-strsignal.c: New file.
40255
40256         * lib/strsignal.c: New file, from glibc with modifications.
40257         * lib/siglist.h: New file, from glibc with modifications.
40258         * lib/string.in.h (strsignal): New declaration.
40259         * m4/strsignal.m4: New file.
40260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40261         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
40262         * modules/strsignal: New file.
40263         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
40264         HAVE_DECL_STRSIGNAL.
40265
40266 2008-01-13  Bruno Haible  <bruno@clisp.org>
40267
40268         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
40269         locale encoding is not ASCII. Needed for OpenBSD 4.0.
40270         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40271         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40272
40273 2008-01-13  Bruno Haible  <bruno@clisp.org>
40274
40275         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
40276         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
40277         * lib/argp.h (__attribute__): Likewise.
40278         * lib/c-stack.c (__attribute__): Likewise.
40279         * lib/error.h (__attribute__): Likewise.
40280         * lib/fts.c (__attribute__): Likewise.
40281         * lib/openat.h (__attribute__): Likewise.
40282         * lib/stdio.in.h (__attribute__): Likewise.
40283         * lib/string.in.h (__attribute__): Likewise.
40284         * lib/utimens.c (__attribute__): Likewise.
40285         * lib/vasnprintf.h (__attribute__): Likewise.
40286         * lib/xalloc.h (__attribute__): Likewise.
40287         * lib/xprintf.h (__attribute__): Likewise.
40288         * lib/xstrtol.h (__attribute__): Likewise.
40289         * lib/xvasprintf.h (__attribute__): Likewise.
40290
40291 2008-01-12  Bruno Haible  <bruno@clisp.org>
40292
40293         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
40294         * doc/glibc-headers/a.out.texi: New file.
40295         * doc/glibc-headers/aliases.texi: New file.
40296         * doc/glibc-headers/alloca.texi: New file.
40297         * doc/glibc-headers/ar.texi: New file.
40298         * doc/glibc-headers/argp.texi: New file.
40299         * doc/glibc-headers/argz.texi: New file.
40300         * doc/glibc-headers/byteswap.texi: New file.
40301         * doc/glibc-headers/crypt.texi: New file.
40302         * doc/glibc-headers/endian.texi: New file.
40303         * doc/glibc-headers/envz.texi: New file.
40304         * doc/glibc-headers/err.texi: New file.
40305         * doc/glibc-headers/error.texi: New file.
40306         * doc/glibc-headers/execinfo.texi: New file.
40307         * doc/glibc-headers/fpu_control.texi: New file.
40308         * doc/glibc-headers/fstab.texi: New file.
40309         * doc/glibc-headers/fts.texi: New file.
40310         * doc/glibc-headers/getopt.texi: New file.
40311         * doc/glibc-headers/ieee754.texi: New file.
40312         * doc/glibc-headers/ifaddrs.texi: New file.
40313         * doc/glibc-headers/libintl.texi: New file.
40314         * doc/glibc-headers/mcheck.texi: New file.
40315         * doc/glibc-headers/mntent.texi: New file.
40316         * doc/glibc-headers/obstack.texi: New file.
40317         * doc/glibc-headers/paths.texi: New file.
40318         * doc/glibc-headers/printf.texi: New file.
40319         * doc/glibc-headers/pty.texi: New file.
40320         * doc/glibc-headers/resolv.texi: New file.
40321         * doc/glibc-headers/shadow.texi: New file.
40322         * doc/glibc-headers/sysexits.texi: New file.
40323         * doc/glibc-headers/ttyent.texi: New file.
40324
40325 2008-01-12  Jim Meyering  <meyering@redhat.com>
40326
40327         announce-gen: emit Gnulib's git-based version string.
40328         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
40329         New option --gnulib-version=V, where V is expected to be
40330         the output of running git describe in the gnulib directory.
40331         (get_tool_versions): Request feedback on xdelta.  I suspect it's
40332         not useful, and plan to stop publishing an xdelta file with each
40333         coreutils release.
40334
40335         * build-aux/announce-gen: Also check for lzma-compressed files.
40336
40337 2008-01-11  Bruno Haible  <bruno@clisp.org>
40338
40339         * tests/test-memmem.c (main): Increase maximum allowed time.
40340         * tests/test-strstr.c (main): Likewise.
40341
40342 2008-01-11  Bruno Haible  <bruno@clisp.org>
40343
40344         * doc/functions/memmem.texi: Add more precisions about platforms.
40345         * doc/functions/strstr.texi: Likewise.
40346
40347 2008-01-10  Eric Blake  <ebb9@byu.net>
40348
40349         * m4/strstr.m4: Delete cruft from copy-n-paste.
40350         Reported by Bruno Haible.
40351
40352 2008-01-10  Bruno Haible  <bruno@clisp.org>
40353
40354         Make c-strstr rely on strstr.
40355         * lib/c-strstr.c: Don't include str-kmp.h.
40356         (c_strstr): Define in terms of strstr.
40357         * modules/c-strstr (Files): Remove lib/str-kmp.h.
40358         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
40359
40360 2008-01-10  Bruno Haible  <bruno@clisp.org>
40361
40362         * doc/gnulib.texi (String Functions in C Locale): New section.
40363         * doc/c-ctype.texi: New file.
40364         * doc/c-strcase.texi: New file.
40365         * doc/c-strcaseeq.texi: New file.
40366         * doc/c-strcasestr.texi: New file.
40367         * doc/c-strstr.texi: New file.
40368         * doc/c-strtod.texi: New file.
40369         * doc/c-strtold.texi: New file.
40370
40371 2008-01-10  Eric Blake  <ebb9@byu.net>
40372
40373         * lib/relocatable.h: Fix a comment.
40374
40375 2008-01-10  Eric Blake  <ebb9@byu.net>
40376
40377         Share two-way algorithm.
40378         * lib/str-two-way.h: New file, merged from...
40379         * lib/memmem.c: ...here...
40380         * lib/strstr.c: ...and here.
40381         * modules/memmem (Files): Use it.
40382         * modules/strstr (Files): Likewise.
40383
40384         Avoid quadratic strstr implementations.
40385         * lib/strstr.c: New file.
40386         * m4/strstr.m4: Likewise.
40387         * modules/strstr: Likewise.
40388         * modules/strstr-tests: Likewise.
40389         * tests/test-strstr.c: Likewise.
40390         * lib/string.in.h (rpl_strstr): Declare.
40391         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
40392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
40393         * modules/string (Makefile.am): Likewise.
40394         * MODULES.html.sh (string handling): Mention new module.
40395         * doc/functions/strstr.texi (strstr): Document the bug.
40396
40397 2008-01-10  Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/relocatable.h (relocate): State whether result is freshly
40400         allocated or not.
40401         * lib/relocatable.c (relocate): Return a freshly allocated string
40402         instead of a pointer to a privately held string.
40403         Reported by Sylvain Beucler <beuc@gnu.org>.
40404
40405 2008-01-10  Colin Watson  <cjwatson@debian.org>
40406
40407         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
40408         s/S_ISNLK/S_ISLNK/.
40409
40410 2008-01-09  Bruno Haible  <bruno@clisp.org>
40411
40412         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
40413         and other files.
40414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
40415         if it's only a guess.
40416         * modules/memmem: Simplify by depending on memmem-simple.
40417
40418 2008-01-09  Bruno Haible  <bruno@clisp.org>
40419
40420         Work around OpenBSD 4.0 tdelete() bug.
40421         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
40422         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
40423         macros and don't redefine the enum values.
40424         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
40425         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
40426         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
40427
40428 2008-01-09  Bruno Haible  <bruno@clisp.org>
40429
40430         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
40431         (main): Don't perform the tests if setlocale did not install a UTF-8
40432         locale. Needed on OpenBSD 4.0.
40433         * modules/wcwidth-tests (Depends-on): Add localcharset.
40434
40435 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
40436
40437         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
40438         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
40439         * NEWS: announce this.
40440         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
40441
40442 2008-01-09  Simon Josefsson  <simon@josefsson.org>
40443         and Eric Blake  <ebb9@byu.net>
40444
40445         Add memmem-simple module.
40446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
40447         (gl_FUNC_MEMMEM): Separate performance from presence checks.
40448         * modules/memmem-simple: New file.
40449         * modules/memmem (Description): Tweak.
40450         * MODULES.html.sh (string handling): Mention new module.
40451         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
40452         addressed by memmem-simple.
40453         * NEWS: Document the difference.
40454
40455 2008-01-09  Eric Blake  <ebb9@byu.net>
40456
40457         Give gcc some memmem optimization hints.
40458         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
40459         (strcasestr): Declare as pure.
40460         * modules/memmem (Maintainer): Claim my implementation.
40461
40462 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40463
40464         Support AIX 6.1 and higher.
40465         * build-aux/config.libpath: Likewise.
40466         * build-aux/config.rpath: Likewise.
40467
40468 2008-01-08  Jim Meyering  <meyering@redhat.com>
40469             Bruno Haible  <bruno@clisp.org>
40470
40471         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
40472         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
40473         Reported by Peter Fales in
40474         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
40475
40476 2008-01-08  Bruno Haible  <bruno@clisp.org>
40477
40478         * modules/unictype/category-of (Depends-on): Add
40479         unictype/category-none.
40480         * modules/unictype/category-and-tests (Depends-on): Add
40481         unictype/category-{L,N,Lu,Nd}.
40482         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
40483         * modules/unictype/category-or-tests (Depends-on): Add
40484         unictype/category-{L,N}.
40485         * modules/unictype/category-name-tests (Depends-on): Add
40486         unictype/category-{Z,Nl}.
40487         Reported by Simon Josefsson.
40488
40489 2008-01-08  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
40492         convention better.
40493         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
40494         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
40495         Reported by Peter Miller <millerp@canb.auug.org.au>.
40496
40497 2008-01-08  Eric Blake  <ebb9@byu.net>
40498
40499         Rewrite memmem to guarantee linear complexity without malloc.
40500         * lib/memmem.c (memmem): Use Two-Way rather than
40501         Knuth-Morris-Pratt, to allow O(1) space usage.
40502         (critical_factorization, two_way_short_needle)
40503         (two_way_long_needle): New functions.
40504         (knuth_morris_pratt): Delete.
40505         * modules/memmem (Depends-on): No longer need malloca or stdbool.
40506         Add stdint.
40507         * tests/test-memmem.c (main): Add tests for periodic needle and
40508         sublinear performance.
40509         * doc/functions/memmem.texi (memmem): Document other deficiencies
40510         in cygwin and older glibc.
40511
40512 2008-01-08  Bruno Haible  <bruno@clisp.org>
40513
40514         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
40515         augmentation.
40516
40517 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
40518
40519         Add a configure time option: --disable-acl.
40520         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
40521         AC_ARG_ENABLE(acl).
40522
40523 2008-01-06  Simon Josefsson  <simon@josefsson.org>
40524
40525         * tests/test-localename.c: Don't include obsolete "setenv.h".
40526
40527         * modules/localename-tests (Depends-on): Need unsetenv.
40528
40529 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40530
40531         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
40532
40533 2008-01-06  Colin Watson  <cjwatson@debian.org>
40534
40535         * users.txt: Add man-db.
40536
40537 2008-01-07  Bruno Haible  <bruno@clisp.org>
40538
40539         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
40540         previous section name.
40541
40542 2008-01-07  Bruno Haible  <bruno@clisp.org>
40543
40544         * lib/progname.c (set_program_name): Don't strip off a leading
40545         "lt-" prefix outside a .libs directory.
40546         Suggested by Paul Eggert.
40547
40548 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
40549             Bruno Haible  <bruno@clisp.org>
40550
40551         Improve memory cleanup in 'relocatable' module.
40552         * lib/relocatable.h (compute_curr_prefix): Change return type to
40553         'char *'.
40554         * lib/relocatable.c (compute_curr_prefix): Change return type to
40555         'char *'. Free curr_installdir after use.
40556         (relocate): Free curr_prefix_better after use.
40557         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
40558
40559 2008-01-01  Bruno Haible  <bruno@clisp.org>
40560
40561         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
40562         failure on older glibc systems.
40563         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40564
40565 2008-01-05  Eric Blake  <ebb9@byu.net>
40566
40567         Avoid quadratic system memmem.
40568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
40569         Reported by Ralf Wildenhues.
40570
40571         Fix memmem test for mingw.
40572         * modules/memmem-tests (configure.ac): Check for alarm.
40573         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
40574         it.
40575         * doc/functions/memmem.texi: New file.
40576         * doc/gnulib.texi (Function Substitutes): Add memmem.
40577         Reported by Bruno Haible.
40578
40579 2008-01-04  Bruno Haible  <bruno@clisp.org>
40580
40581         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
40582         Require gl_HEADER_STRINGS_H_DEFAULTS, not
40583         gl_HEADER_STRING_H_DEFAULTS.
40584
40585 2008-01-04  Eric Blake  <ebb9@byu.net>
40586
40587         Shorten duration of memmem test.
40588         * tests/test-memmem.c (main): Use alarm to declare failure if test
40589         is taking too long.
40590         Reported by Ralf Wildenhues.
40591
40592 2007-12-21  Simon Josefsson  <simon@josefsson.org>
40593
40594         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
40595         string, needed by strerror.
40596
40597 2008-01-03  Colin Watson  <cjwatson@debian.org>
40598             Bruno Haible  <bruno@clisp.org>
40599
40600         * doc/gnulib-tool.texi (Localization): New section.
40601
40602 2008-01-02  Bruno Haible  <bruno@clisp.org>
40603
40604         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
40605         variables to 'unsigned char *' type.
40606         Reported by Paul Eggert.
40607
40608 2008-01-02  Jim Meyering  <jim@meyering.net>
40609
40610         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
40611
40612 2007-12-31  Jim Meyering  <jim@meyering.net>
40613
40614         Avoid use of private FTS type name.
40615         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
40616
40617 2007-12-30  Karl Berry  <karl@gnu.org>
40618
40619         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
40620         work around defect in Texinfo and/or the standalone Info browser.
40621
40622 2007-12-30  Bruno Haible  <bruno@clisp.org>
40623
40624         Unify 5 copies of the KMP code.
40625         * lib/str-kmp.h: New file.
40626         * lib/c-strcasestr.c: Include str-kmp.h.
40627         (knuth_morris_pratt): Remove function.
40628         (c_strcasestr): Update.
40629         * lib/c-strstr.c: Include str-kmp.h.
40630         (knuth_morris_pratt): Remove function.
40631         (c_strcasestr): Update.
40632         * lib/mbscasestr.c: Include str-kmp.h.
40633         (knuth_morris_pratt_unibyte): Remove function.
40634         * lib/mbsstr.c: Include str-kmp.h.
40635         (knuth_morris_pratt_unibyte): Remove function.
40636         * lib/strcasestr.c: Include str-kmp.h.
40637         (knuth_morris_pratt): Remove function.
40638         (strcasestr): Update.
40639         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
40640         * modules/c-strstr (Files): Likewise.
40641         * modules/mbscasestr (Files): Likewise.
40642         * modules/mbsstr (Files): Likewise.
40643         * modules/strcasestr (Files): Likewise.
40644         Suggested by Paul Eggert.
40645
40646 2007-12-30  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
40649         defined.
40650
40651 2007-12-30  Bruno Haible  <bruno@clisp.org>
40652
40653         * lib/xmalloca.h: Include xalloc.h.
40654         (xnmalloca): New macro.
40655
40656 2007-12-30  Bruno Haible  <bruno@clisp.org>
40657
40658         * lib/malloca.h (nmalloca): New macro.
40659         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
40660         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
40661         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
40662         knuth_morris_pratt_multibyte): Likewise.
40663         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
40664         knuth_morris_pratt_multibyte): Likewise.
40665         * lib/memmem.c (knuth_morris_pratt): Likewise.
40666         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
40667
40668 2007-12-25  Bruno Haible  <bruno@clisp.org>
40669
40670         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
40671         * lib/glob.c: Don't include openat.h.
40672         (link_exists2_p): Add back the code that deals with the
40673         !GLOB_ALTDIRFUNC case.
40674         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
40675         let it do the filename concatenation.
40676         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
40677         * modules/glob (Depends-on): Remove openat.
40678
40679 2007-12-31  Bruno Haible  <bruno@clisp.org>
40680
40681         * modules/dirfd (License): Change to LGPLv2+.
40682         Approved by Jim Meyering.
40683
40684 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40685
40686         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
40687         when multiplying M by sizeof (size_t).
40688
40689 2007-12-10  Martin Lambers  <marlam@marlam.de>
40690
40691         Override getpagesize on mingw.
40692         * lib/getpagesize.c: New file.
40693         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
40694         * modules/getpagesize (Files): Add lib/getpagesize.c.
40695         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
40696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40697         REPLACE_GETPAGESIZE.
40698         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
40699
40700 2007-12-25  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/localcharset (Notice): New field.
40703         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
40704         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40705
40706 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40707             Bruno Haible  <bruno@clisp.org>
40708
40709         Avoid using the syntax symbol() in formatted documentation.
40710         * MODULES.html.sh (func_module): When replacing symbol() with a
40711         hyperlink, remove the parentheses. Show an error if some remain.
40712         Recognize and render the '...' syntax.
40713         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
40714         Rework. Add paragraph about GCC's inlining.
40715         * doc/alloca.texi: Likewise.
40716         * doc/error.texi: Remove parentheses from symbol reference.
40717         * doc/gnulib-intro.texi: Likewise.
40718         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
40719         * modules/fnmatch (Description): Reword to say "the ... function".
40720         * modules/full-read (Description): Likewise.
40721         * modules/full-write (Description): Likewise.
40722         * modules/safe-read (Description): Likewise.
40723         * modules/safe-write (Description): Likewise.
40724         * modules/strchrnul (Description): Likewise.
40725         * modules/trim (Description): Likewise.
40726         * modules/error (Description): Remove parentheses from symbol
40727         references.
40728         * modules/verror (Description): Likewise.
40729         Reported by Karl Berry.
40730
40731 2007-12-25  Bruno Haible  <bruno@clisp.org>
40732
40733         Fixup after 2007-10-16 commit.
40734         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
40735
40736 2007-12-24  Bruno Haible  <bruno@clisp.org>
40737
40738         Make --enable-relocatable work with DESTDIR.
40739         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
40740         to compute installdir from destprog.
40741         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
40742         also set the RELOC_DESTDIR variable.
40743         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40744
40745 2007-12-24  Bruno Haible  <bruno@clisp.org>
40746
40747         Fix link error due to xalloc_die().
40748         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
40749         of xreadlink.
40750         * lib/relocwrapper.c: Update comments.
40751         * build-aux/install-reloc: Remove xreadlink.c from file list.
40752         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
40753         xreadlink.c.
40754         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40755
40756 2007-12-24  Bruno Haible  <bruno@clisp.org>
40757
40758         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
40759         * lib/setenv.h: Remove file.
40760         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
40761         lib/setenv.h.
40762         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
40763         (Depends-on): Add stdlib.
40764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
40765         gl_FUNC_UNSETENV.
40766         (Include): Replace setenv.h with <stdlib.h>.
40767         * modules/unsetenv: New file.
40768         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
40769         * lib/unsetenv.c: Include <stdlib.h> first.
40770         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
40771         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
40772         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
40773         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
40774         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
40775         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
40777         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
40778         * doc/functions/unsetenv.texi: Update.
40779         * modules/xsetenv (Depends-on): Add unsetenv.
40780         * modules/getdate (Depends-on): Likewise.
40781         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
40782         * lib/xsetenv.c: Don't include setenv.h.
40783         * lib/getdate.y: Likewise.
40784         * lib/relocwrapper.c: Likewise.
40785         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
40786         (Depends-on): Add stdlib.
40787         * NEWS: Mention the changes.
40788         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
40789
40790 2007-12-23  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/memmem.c (memmem): Use lowercase variable names. Tab
40793         indentation.
40794
40795 2007-12-23  Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/c-strcasestr.c: Add more comments.
40798         * lib/c-strstr.c: Likewise.
40799         * lib/mbscasestr.c: Likewise.
40800         * lib/mbsstr.c: Likewise.
40801         * lib/strcasestr.c: Likewise.
40802         * lib/memmem.c: Likewise.
40803
40804 2007-12-23  Bruno Haible  <bruno@clisp.org>
40805
40806         * tests/test-memmem.c: Include <string.h> first.
40807
40808 2007-12-22  Bruno Haible  <bruno@clisp.org>
40809
40810         * gnulib-tool (func_create_testdir): Change $auxdir while generating
40811         the contents of $testsbase.
40812         Reported by Ralf Wildenhues.
40813
40814 2007-12-22  Bruno Haible  <bruno@clisp.org>
40815
40816         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
40817         two variables local_ldadd_before, local_ldadd_last.
40818
40819 2007-12-20  Eric Blake  <ebb9@byu.net>
40820
40821         Work around circular library issue when cross-compiling.
40822         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
40823         that progname.o does not need to pull in rpl_memcmp.
40824
40825 2007-12-19  Eric Blake  <ebb9@byu.net>
40826
40827         Fix memmem to avoid O(n^2) worst-case complexity.
40828         * lib/memmem.c (knuth_morris_pratt): New function.
40829         (memmem): Use it if first few naive iterations fail.
40830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
40831         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
40832         * modules/memchr (License): Likewise.
40833         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
40834         malloca.
40835         * tests/test-memmem.c: Rewrite, borrowing ideas from
40836         test-mbsstr1.c; the old version wouldn't even compile!
40837         * modules/memmem-tests: New file.
40838         * lib/string.in.h (rpl_memmem): Add declaration.
40839         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
40840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
40841         REPLACE_MEMMEM.
40842
40843 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40844
40845         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
40846         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
40847         before any system include files, and undef after them all.  This
40848         should fix a problem on VMS reported by John E. Malmberg in
40849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
40850
40851 2007-12-17  Eric Blake  <ebb9@byu.net>
40852
40853         Revert addition of verify, for BSD/OS.
40854         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
40855         can't handle large files, for the sake of obsolete platforms.
40856         * modules/fseeko (Depends-on): Remove verify.
40857         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
40858         * doc/functions/ftello.texi (ftello): Likewise.
40859         * doc/functions/fgetpos.texi (fgetpos): Likewise.
40860         Reported by Larry Jones.
40861
40862 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
40863
40864         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
40865         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
40866
40867 2007-12-17  Jim Meyering  <meyering@redhat.com>
40868
40869         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
40870         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
40871         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
40872         * modules/getcwd (Depends-on): Add openat.
40873         Reported by Petr Salinger.
40874
40875 2007-12-17  Bruno Haible  <bruno@clisp.org>
40876
40877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
40878         avoid a segmentation fault of the configure test on x86_64 systems.
40879
40880 2007-12-15  Jim Meyering  <meyering@redhat.com>
40881
40882         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
40883
40884 2007-12-13  Eric Blake  <ebb9@byu.net>
40885
40886         Another fseek test.
40887         * tests/test-fseek.c (main): Also test ungetc handling.
40888         * tests/test-fseeko.c (main): Likewise.
40889         * modules/fseeko (Depends-on): Add verify.
40890         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
40891         large.
40892         Reported by Larry Jones.
40893
40894         Fix fseeko on mingw.
40895         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
40896         seek.
40897
40898         Beef up fseek tests.
40899         * tests/test-fseek.c (main): Also test eof handling.
40900         * tests/test-fseeko.c (main): Likewise.
40901         Reported by Larry Jones.
40902
40903 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
40904
40905         Fix fseeko on BSD-based platforms.
40906         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
40907         successful seek.
40908
40909 2007-12-12  Eric Blake  <ebb9@byu.net>
40910
40911         Allow circular dependency of separate libtests.a
40912         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
40913         when use_libtests.
40914
40915 2007-12-11  Eric Blake  <ebb9@byu.net>
40916
40917         Fix bug with -0.0L in previous patch.
40918         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
40919         * tests/test-isnan.c (main): Also test on zeroes.
40920         * tests/test-isnanf.c (main): Likewise.
40921         * tests/test-isnanl.h (main): Likewise.
40922
40923         Detect pseudo-denormals on x86 even when cross-compiling.
40924         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
40925         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
40926         invalid bit patterns that happen to satisfy ==.
40927
40928         Avoid link failures with separate libtests.a.
40929         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
40930         last, to satisfy circular dependencies.
40931
40932 2007-12-11  Eric Blake  <ebb9@byu.net>
40933         and Bruno Haible  <bruno@clisp.org>
40934
40935         Fix OpenBSD 4.0 <float.h> handling of long double.
40936         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
40937         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
40938         * doc/headers/float.texi (float.h): Document OpenBSD bug.
40939
40940 2007-12-11  Jim Meyering  <meyering@redhat.com>
40941
40942         * users.txt: Add libvirt.
40943
40944         Support versions of autoconf prior to 2.59c.
40945         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
40946         if it is not already defined.
40947
40948 2007-12-09  Bruno Haible  <bruno@clisp.org>
40949
40950         Let 'gnulib-tool --import' collect sources needed for the tests in
40951         tests/ rather than in lib/.
40952         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
40953         argument. If true, add rules to generate libtests.a, and put libtests.a
40954         into $(LDADD). Consider source files in subdirectories and set
40955         uses_subdirs.
40956         (func_emit_initmacro_start, func_emit_initmacro_end,
40957         func_emit_initmacro_done): Pass all arguments explicitly.
40958         (func_import): Determine two module lists main_modules,
40959         testsrelated_modules. Determine use_libtests. Determine two variables
40960         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
40961         instead of just sed_transform_lib_file. Determine two variables
40962         main_files and testsrelated_files. Compute 'files' as the union of
40963         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
40964         func_add_or_update. In the generated gnulib-comp.m4, collect the
40965         object files for tests/ in different variables than those for lib/.
40966         Substitute LIBTESTS_LIBDEPS.
40967         (func_create_testdir): Combine the uses_subdirs results from
40968         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
40969
40970 2007-12-09  Bruno Haible  <bruno@clisp.org>
40971
40972         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
40973         the build-aux directory.
40974
40975 2007-12-09  Bruno Haible  <bruno@clisp.org>
40976
40977         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40978         introduced on 2006-09-09.
40979
40980 2007-12-07  Jim Meyering  <meyering@redhat.com>
40981
40982         Let these macros work also with autoconf-2.59.
40983         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40984         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40985         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40986
40987 2007-12-06  Jim Meyering  <meyering@redhat.com>
40988
40989         Avoid a configure-time syntax error in gl_FUNC_ACL.
40990         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40991         function in each branch, before testing the cache variable.
40992
40993 2007-12-04  Eric Blake  <ebb9@byu.net>
40994
40995         Make scripts executable.
40996         * build-aux/config.guess: Add execute permissions.
40997         * build-aux/config.sub: Likewise.
40998         * build-aux/gendocs.sh: Likewise.
40999
41000         Fix frexp on mingw.
41001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41002         cross-compiling.
41003         * doc/functions/frexp.texi (frexp): Document the bug.
41004
41005         Make cygwin fseeko check more reliable.
41006         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41007         version numbers, rather than unrelated feature check.
41008         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41009         * doc/functions/ftello.texi (ftello): Likewise.
41010         Reported by Bruno Haible.
41011
41012         * m4/strerror.m4: Bump version number.
41013
41014 2007-12-03  Bruno Haible  <bruno@clisp.org>
41015
41016         * doc/functions/mprotect.texi: Mention the mingw problem.
41017
41018 2007-12-03  Eric Blake  <ebb9@byu.net>
41019
41020         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41021         REPLACE_STRERROR is initialized before this macro.
41022
41023 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41024
41025         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41026         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41027         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41028         put -lsec in even for programs other than 'ls'.  This fixes a problem
41029         for gettext reported by Bruno Haible in
41030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41031         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41032         Add support for Solaris 10.  This isn't efficient, but should get the
41033         job done for now.
41034
41035 2007-12-03  James Youngman  <jay@gnu.org>
41036
41037         * doc/regexprops-generic.texi: change "an close-group" to "a
41038         close-group" and "illegal" to "not allowed".
41039
41040 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41041
41042         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41043         pr_byname.h. Needed for the rare case when the maintainer has done
41044         "make maintainer-clean" in the source directory and then attempts a
41045         build outside the source directory.
41046         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41047         scripts_byname.h.
41048
41049 2007-12-02  Martin Lambers <marlam@marlam.de>
41050             Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/getpagesize.h: Remove file.
41053         * lib/unistd.in.h: Include declaration of getpagesize here.
41054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41055         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41056         HAVE_SYS_PARAM_H.
41057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41059         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41060         (Depends-on): Add unistd.
41061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41062         (Include): Use <unistd.h> instead of getpagesize.h.
41063         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41064         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41065         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41066         gl_GETPAGESIZE invocation, already handled by module dependency.
41067         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41068
41069 2007-12-02  Bruno Haible  <bruno@clisp.org>
41070
41071         * modules/strings-tests: New file.
41072         * tests/test-strings.c: New file.
41073
41074         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41075         * lib/strings.in.h: New file.
41076         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41077         * m4/strings_h.m4: New file.
41078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41079         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41080         * modules/strings: New file.
41081         * modules/string (Makefile.am): Update.
41082         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41083         Reported by Karl Berry.
41084
41085 2007-12-01  Eric Blake  <ebb9@byu.net>
41086
41087         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41088         accomodate fix in cygwin 1.5.25.
41089
41090 2007-12-01  Jim Meyering  <meyering@redhat.com>
41091
41092         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41093         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41094         that would inhibit utf8-optimization of a regexp containing line-
41095         or buffer-anchors, e.g., `^', `$'.
41096
41097 2007-11-30  Bruno Haible  <bruno@clisp.org>
41098
41099         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41100         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41101         glthread_recursive_lock_init.
41102         * lib/lock.c (glthread_recursive_lock_init)
41103         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41105
41106 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41107
41108         New function qset_acl, like set_acl but with syscall semantics.
41109         * lib/acl.h (qset_acl): New decl.
41110         * lib/acl.c (qset_acl): New function.
41111         (set_acl): Use new function.  Use more-consistent diagnostics.
41112
41113 2007-11-28  Jim Meyering  <meyering@redhat.com>
41114
41115         * modules/physmem (License): Change from GPL to LGPLv2+.
41116
41117 2007-11-26  Bruno Haible  <bruno@clisp.org>
41118
41119         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41120         'long double' type has excess precision.
41121         Reported by Jim Meyering in
41122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41123
41124 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41125
41126         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41127         Sync from <http://gnu.org/licenses>.
41128         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41129         with license text from same location.
41130         * doc/maintain.texi, doc/standards.texi:  Sync from
41131         <http://savannah.gnu.org/projects/gnustandards>.
41132
41133 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
41134         and Jim Meyering  <meyering@redhat.com>
41135
41136         Adjust getdate' grammar to accept a slightly more regular language.
41137         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41138         Before, the former was rejected.
41139         * lib/getdate.y (digits_to_date_time): New function, factored
41140         out of ...
41141         (number): ...here.  Just call digits_to_date_time.
41142         (hybrid): New non-terminal to handle an <unsigned number,
41143         signed relative offset> sequence consistently.
41144
41145 2007-11-18  Jim Meyering  <meyering@redhat.com>
41146
41147         Pull my changes from coreutils:
41148         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41149         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41150         use of $gnulib_tool_option_extras, so that it's separated from the
41151         preceding argument.
41152
41153         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41154         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41155         parent destination directories before copying a file into place.
41156
41157 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41158
41159         bootstrap: work also with 4-argument variant of AC_INIT
41160         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41161
41162 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41163
41164         Port test-getaddrinfo to Solaris.
41165         Problem reported by Bruno Haible in
41166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41167         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41168         explanation of setting 'hints'.
41169         Don't reject an implementation merely because it returns EAI_SERVICE.
41170         (EAI_SERVICE): Define to 0 if not defined.
41171
41172 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41173
41174         The license of gnu-make and posix-shell is now "GPLed build tool".
41175         * modules/gnu-make (License): Likewise.
41176         * modules/posix-shell (License): Likewise.
41177
41178         New module posix-shell, for determining a POSIX shell
41179         or perhaps something that is close enough to a POSIX shell.
41180         * m4/posix-shell.m4: New file.
41181         * modules/posix-shell: New file.
41182
41183         * MODULES.html.sh: Mention new module.
41184
41185         New module gnu-make, for determining whether we're using GNU Make.
41186         * m4/gnu-make.m4: New file.
41187         * modules/gnu-make: New file.
41188         * MODULES.html.sh: Mention new module.
41189
41190 2007-11-14  Jim Meyering  <meyering@redhat.com>
41191
41192         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41193         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41194         use this macro to create a function _definition_.
41195         Remove useless "#undef ARGMATCH_DIE".
41196
41197 2007-11-14  Bruno Haible  <bruno@clisp.org>
41198
41199         * lib/config.charset: Update for OpenBSD 4.1.
41200         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41201
41202 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41203
41204         Document 64-bit #if problems in stdint.texi.
41205         * doc/headers/stdint.texi (stdint.h): Mention problems with
41206         64-bit-#if, and how to work around them.
41207
41208         Don't insist on 'long long int' support in the preprocessor.  It
41209         breaks too many things.  For example, PRIdMAX still uses a 'long
41210         long int' format with the latest Sun compiler, even though
41211         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41212         preprocessor problem.  This causes the latest coreutils to dump
41213         core on Solaris 10 sparc with the Sun C compiler.
41214         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41215         the troublesome expressions at configure-time, not at #if-time.
41216         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41217         preprocessor.
41218         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41219         compile-time C checks, done at 'configure'-time.
41220         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41221         * modules/inttypes (Makefile): Substitute the new symbols that
41222         gl_INTTYPES_H now generates.
41223         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41224
41225 2007-11-12  Bruno Haible  <bruno@clisp.org>
41226
41227         Tests for Unicode character classification functions.
41228
41229         * modules/unictype/bidicategory-byname-tests: New file.
41230         * modules/unictype/bidicategory-name-tests: New file.
41231         * modules/unictype/bidicategory-of-tests: New file.
41232         * modules/unictype/bidicategory-test-tests: New file.
41233         * modules/unictype/block-list-tests: New file.
41234         * modules/unictype/block-of-tests: New file.
41235         * modules/unictype/block-test-tests: New file.
41236         * modules/unictype/category-C-tests: New file.
41237         * modules/unictype/category-Cc-tests: New file.
41238         * modules/unictype/category-Cf-tests: New file.
41239         * modules/unictype/category-Cn-tests: New file.
41240         * modules/unictype/category-Co-tests: New file.
41241         * modules/unictype/category-Cs-tests: New file.
41242         * modules/unictype/category-L-tests: New file.
41243         * modules/unictype/category-Ll-tests: New file.
41244         * modules/unictype/category-Lm-tests: New file.
41245         * modules/unictype/category-Lo-tests: New file.
41246         * modules/unictype/category-Lt-tests: New file.
41247         * modules/unictype/category-Lu-tests: New file.
41248         * modules/unictype/category-M-tests: New file.
41249         * modules/unictype/category-Mc-tests: New file.
41250         * modules/unictype/category-Me-tests: New file.
41251         * modules/unictype/category-Mn-tests: New file.
41252         * modules/unictype/category-N-tests: New file.
41253         * modules/unictype/category-Nd-tests: New file.
41254         * modules/unictype/category-Nl-tests: New file.
41255         * modules/unictype/category-No-tests: New file.
41256         * modules/unictype/category-P-tests: New file.
41257         * modules/unictype/category-Pc-tests: New file.
41258         * modules/unictype/category-Pd-tests: New file.
41259         * modules/unictype/category-Pe-tests: New file.
41260         * modules/unictype/category-Pf-tests: New file.
41261         * modules/unictype/category-Pi-tests: New file.
41262         * modules/unictype/category-Po-tests: New file.
41263         * modules/unictype/category-Ps-tests: New file.
41264         * modules/unictype/category-S-tests: New file.
41265         * modules/unictype/category-Sc-tests: New file.
41266         * modules/unictype/category-Sk-tests: New file.
41267         * modules/unictype/category-Sm-tests: New file.
41268         * modules/unictype/category-So-tests: New file.
41269         * modules/unictype/category-Z-tests: New file.
41270         * modules/unictype/category-Zl-tests: New file.
41271         * modules/unictype/category-Zp-tests: New file.
41272         * modules/unictype/category-Zs-tests: New file.
41273         * modules/unictype/category-and-not-tests: New file.
41274         * modules/unictype/category-and-tests: New file.
41275         * modules/unictype/category-byname-tests: New file.
41276         * modules/unictype/category-name-tests: New file.
41277         * modules/unictype/category-none-tests: New file.
41278         * modules/unictype/category-of-tests: New file.
41279         * modules/unictype/category-or-tests: New file.
41280         * modules/unictype/category-test-withtable-tests: New file.
41281         * modules/unictype/combining-class-tests: New file.
41282         * modules/unictype/ctype-alnum-tests: New file.
41283         * modules/unictype/ctype-alpha-tests: New file.
41284         * modules/unictype/ctype-blank-tests: New file.
41285         * modules/unictype/ctype-cntrl-tests: New file.
41286         * modules/unictype/ctype-digit-tests: New file.
41287         * modules/unictype/ctype-graph-tests: New file.
41288         * modules/unictype/ctype-lower-tests: New file.
41289         * modules/unictype/ctype-print-tests: New file.
41290         * modules/unictype/ctype-punct-tests: New file.
41291         * modules/unictype/ctype-space-tests: New file.
41292         * modules/unictype/ctype-upper-tests: New file.
41293         * modules/unictype/ctype-xdigit-tests: New file.
41294         * modules/unictype/decimal-digit-tests: New file.
41295         * modules/unictype/digit-tests: New file.
41296         * modules/unictype/mirror-tests: New file.
41297         * modules/unictype/numeric-tests: New file.
41298         * modules/unictype/property-alphabetic-tests: New file.
41299         * modules/unictype/property-ascii-hex-digit-tests: New file.
41300         * modules/unictype/property-bidi-arabic-digit-tests: New file.
41301         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
41302         * modules/unictype/property-bidi-block-separator-tests: New file.
41303         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
41304         * modules/unictype/property-bidi-common-separator-tests: New file.
41305         * modules/unictype/property-bidi-control-tests: New file.
41306         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
41307         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
41308         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
41309         * modules/unictype/property-bidi-european-digit-tests: New file.
41310         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
41311         * modules/unictype/property-bidi-left-to-right-tests: New file.
41312         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
41313         * modules/unictype/property-bidi-other-neutral-tests: New file.
41314         * modules/unictype/property-bidi-pdf-tests: New file.
41315         * modules/unictype/property-bidi-segment-separator-tests: New file.
41316         * modules/unictype/property-bidi-whitespace-tests: New file.
41317         * modules/unictype/property-byname-tests: New file.
41318         * modules/unictype/property-combining-tests: New file.
41319         * modules/unictype/property-composite-tests: New file.
41320         * modules/unictype/property-currency-symbol-tests: New file.
41321         * modules/unictype/property-dash-tests: New file.
41322         * modules/unictype/property-decimal-digit-tests: New file.
41323         * modules/unictype/property-default-ignorable-code-point-tests: New file.
41324         * modules/unictype/property-deprecated-tests: New file.
41325         * modules/unictype/property-diacritic-tests: New file.
41326         * modules/unictype/property-extender-tests: New file.
41327         * modules/unictype/property-format-control-tests: New file.
41328         * modules/unictype/property-grapheme-base-tests: New file.
41329         * modules/unictype/property-grapheme-extend-tests: New file.
41330         * modules/unictype/property-grapheme-link-tests: New file.
41331         * modules/unictype/property-hex-digit-tests: New file.
41332         * modules/unictype/property-hyphen-tests: New file.
41333         * modules/unictype/property-id-continue-tests: New file.
41334         * modules/unictype/property-id-start-tests: New file.
41335         * modules/unictype/property-ideographic-tests: New file.
41336         * modules/unictype/property-ids-binary-operator-tests: New file.
41337         * modules/unictype/property-ids-trinary-operator-tests: New file.
41338         * modules/unictype/property-ignorable-control-tests: New file.
41339         * modules/unictype/property-iso-control-tests: New file.
41340         * modules/unictype/property-join-control-tests: New file.
41341         * modules/unictype/property-left-of-pair-tests: New file.
41342         * modules/unictype/property-line-separator-tests: New file.
41343         * modules/unictype/property-logical-order-exception-tests: New file.
41344         * modules/unictype/property-lowercase-tests: New file.
41345         * modules/unictype/property-math-tests: New file.
41346         * modules/unictype/property-non-break-tests: New file.
41347         * modules/unictype/property-not-a-character-tests: New file.
41348         * modules/unictype/property-numeric-tests: New file.
41349         * modules/unictype/property-other-alphabetic-tests: New file.
41350         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
41351         * modules/unictype/property-other-grapheme-extend-tests: New file.
41352         * modules/unictype/property-other-id-continue-tests: New file.
41353         * modules/unictype/property-other-id-start-tests: New file.
41354         * modules/unictype/property-other-lowercase-tests: New file.
41355         * modules/unictype/property-other-math-tests: New file.
41356         * modules/unictype/property-other-uppercase-tests: New file.
41357         * modules/unictype/property-paired-punctuation-tests: New file.
41358         * modules/unictype/property-paragraph-separator-tests: New file.
41359         * modules/unictype/property-pattern-syntax-tests: New file.
41360         * modules/unictype/property-pattern-white-space-tests: New file.
41361         * modules/unictype/property-private-use-tests: New file.
41362         * modules/unictype/property-punctuation-tests: New file.
41363         * modules/unictype/property-quotation-mark-tests: New file.
41364         * modules/unictype/property-radical-tests: New file.
41365         * modules/unictype/property-sentence-terminal-tests: New file.
41366         * modules/unictype/property-soft-dotted-tests: New file.
41367         * modules/unictype/property-space-tests: New file.
41368         * modules/unictype/property-terminal-punctuation-tests: New file.
41369         * modules/unictype/property-test-tests: New file.
41370         * modules/unictype/property-titlecase-tests: New file.
41371         * modules/unictype/property-unassigned-code-value-tests: New file.
41372         * modules/unictype/property-unified-ideograph-tests: New file.
41373         * modules/unictype/property-uppercase-tests: New file.
41374         * modules/unictype/property-variation-selector-tests: New file.
41375         * modules/unictype/property-white-space-tests: New file.
41376         * modules/unictype/property-xid-continue-tests: New file.
41377         * modules/unictype/property-xid-start-tests: New file.
41378         * modules/unictype/property-zero-width-tests: New file.
41379         * modules/unictype/scripts-tests: New file.
41380         * modules/unictype/syntax-c-ident-tests: New file.
41381         * modules/unictype/syntax-c-whitespace-tests: New file.
41382         * modules/unictype/syntax-java-ident-tests: New file.
41383         * modules/unictype/syntax-java-whitespace-tests: New file.
41384         * tests/unictype/test-bidi_byname.c: New file.
41385         * tests/unictype/test-bidi_name.c: New file.
41386         * tests/unictype/test-bidi_of.c: New file.
41387         * tests/unictype/test-bidi_test.c: New file.
41388         * tests/unictype/test-block_list.c: New file.
41389         * tests/unictype/test-block_of.c: New file.
41390         * tests/unictype/test-block_test.c: New file.
41391         * tests/unictype/test-categ_and.c: New file.
41392         * tests/unictype/test-categ_and_not.c: New file.
41393         * tests/unictype/test-categ_byname.c: New file.
41394         * tests/unictype/test-categ_name.c: New file.
41395         * tests/unictype/test-categ_none.c: New file.
41396         * tests/unictype/test-categ_of.c: New file.
41397         * tests/unictype/test-categ_or.c: New file.
41398         * tests/unictype/test-categ_test_withtable.c: New file.
41399         * tests/unictype/test-combining.c: New file.
41400         * tests/unictype/test-decdigit.c: New file.
41401         * tests/unictype/test-digit.c: New file.
41402         * tests/unictype/test-mirror.c: New file.
41403         * tests/unictype/test-numeric.c: New file.
41404         * tests/unictype/test-pr_byname.c: New file.
41405         * tests/unictype/test-pr_test.c: New file.
41406         * tests/unictype/test-predicate-part1.h: New file.
41407         * tests/unictype/test-predicate-part2.h: New file.
41408         * tests/unictype/test-scripts.c: New file.
41409         * tests/unictype/test-sy_c_ident.c: New file.
41410         * tests/unictype/test-sy_java_ident.c: New file.
41411
41412         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
41413         for Unicode 5.0.0.
41414         * tests/unictype/test-categ_Cc.c: Likewise.
41415         * tests/unictype/test-categ_Cf.c: Likewise.
41416         * tests/unictype/test-categ_Cn.c: Likewise.
41417         * tests/unictype/test-categ_Co.c: Likewise.
41418         * tests/unictype/test-categ_Cs.c: Likewise.
41419         * tests/unictype/test-categ_L.c: Likewise.
41420         * tests/unictype/test-categ_Ll.c: Likewise.
41421         * tests/unictype/test-categ_Lm.c: Likewise.
41422         * tests/unictype/test-categ_Lo.c: Likewise.
41423         * tests/unictype/test-categ_Lt.c: Likewise.
41424         * tests/unictype/test-categ_Lu.c: Likewise.
41425         * tests/unictype/test-categ_M.c: Likewise.
41426         * tests/unictype/test-categ_Mc.c: Likewise.
41427         * tests/unictype/test-categ_Me.c: Likewise.
41428         * tests/unictype/test-categ_Mn.c: Likewise.
41429         * tests/unictype/test-categ_N.c: Likewise.
41430         * tests/unictype/test-categ_Nd.c: Likewise.
41431         * tests/unictype/test-categ_Nl.c: Likewise.
41432         * tests/unictype/test-categ_No.c: Likewise.
41433         * tests/unictype/test-categ_P.c: Likewise.
41434         * tests/unictype/test-categ_Pc.c: Likewise.
41435         * tests/unictype/test-categ_Pd.c: Likewise.
41436         * tests/unictype/test-categ_Pe.c: Likewise.
41437         * tests/unictype/test-categ_Pf.c: Likewise.
41438         * tests/unictype/test-categ_Pi.c: Likewise.
41439         * tests/unictype/test-categ_Po.c: Likewise.
41440         * tests/unictype/test-categ_Ps.c: Likewise.
41441         * tests/unictype/test-categ_S.c: Likewise.
41442         * tests/unictype/test-categ_Sc.c: Likewise.
41443         * tests/unictype/test-categ_Sk.c: Likewise.
41444         * tests/unictype/test-categ_Sm.c: Likewise.
41445         * tests/unictype/test-categ_So.c: Likewise.
41446         * tests/unictype/test-categ_Z.c: Likewise.
41447         * tests/unictype/test-categ_Zl.c: Likewise.
41448         * tests/unictype/test-categ_Zp.c: Likewise.
41449         * tests/unictype/test-categ_Zs.c: Likewise.
41450         * tests/unictype/test-ctype_alnum.c: Likewise.
41451         * tests/unictype/test-ctype_alpha.c: Likewise.
41452         * tests/unictype/test-ctype_blank.c: Likewise.
41453         * tests/unictype/test-ctype_cntrl.c: Likewise.
41454         * tests/unictype/test-ctype_digit.c: Likewise.
41455         * tests/unictype/test-ctype_graph.c: Likewise.
41456         * tests/unictype/test-ctype_lower.c: Likewise.
41457         * tests/unictype/test-ctype_print.c: Likewise.
41458         * tests/unictype/test-ctype_punct.c: Likewise.
41459         * tests/unictype/test-ctype_space.c: Likewise.
41460         * tests/unictype/test-ctype_upper.c: Likewise.
41461         * tests/unictype/test-ctype_xdigit.c: Likewise.
41462         * tests/unictype/test-decdigit.h: Likewise.
41463         * tests/unictype/test-digit.h: Likewise.
41464         * tests/unictype/test-numeric.h: Likewise.
41465         * tests/unictype/test-pr_alphabetic.c: Likewise.
41466         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
41467         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
41468         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
41469         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
41470         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
41471         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
41472         * tests/unictype/test-pr_bidi_control.c: Likewise.
41473         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
41474         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
41475         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
41476         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
41477         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
41478         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
41479         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
41480         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
41481         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
41482         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
41483         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
41484         * tests/unictype/test-pr_combining.c: Likewise.
41485         * tests/unictype/test-pr_composite.c: Likewise.
41486         * tests/unictype/test-pr_currency_symbol.c: Likewise.
41487         * tests/unictype/test-pr_dash.c: Likewise.
41488         * tests/unictype/test-pr_decimal_digit.c: Likewise.
41489         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
41490         * tests/unictype/test-pr_deprecated.c: Likewise.
41491         * tests/unictype/test-pr_diacritic.c: Likewise.
41492         * tests/unictype/test-pr_extender.c: Likewise.
41493         * tests/unictype/test-pr_format_control.c: Likewise.
41494         * tests/unictype/test-pr_grapheme_base.c: Likewise.
41495         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
41496         * tests/unictype/test-pr_grapheme_link.c: Likewise.
41497         * tests/unictype/test-pr_hex_digit.c: Likewise.
41498         * tests/unictype/test-pr_hyphen.c: Likewise.
41499         * tests/unictype/test-pr_id_continue.c: Likewise.
41500         * tests/unictype/test-pr_id_start.c: Likewise.
41501         * tests/unictype/test-pr_ideographic.c: Likewise.
41502         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
41503         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
41504         * tests/unictype/test-pr_ignorable_control.c: Likewise.
41505         * tests/unictype/test-pr_iso_control.c: Likewise.
41506         * tests/unictype/test-pr_join_control.c: Likewise.
41507         * tests/unictype/test-pr_left_of_pair.c: Likewise.
41508         * tests/unictype/test-pr_line_separator.c: Likewise.
41509         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
41510         * tests/unictype/test-pr_lowercase.c: Likewise.
41511         * tests/unictype/test-pr_math.c: Likewise.
41512         * tests/unictype/test-pr_non_break.c: Likewise.
41513         * tests/unictype/test-pr_not_a_character.c: Likewise.
41514         * tests/unictype/test-pr_numeric.c: Likewise.
41515         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
41516         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
41517         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
41518         * tests/unictype/test-pr_other_id_continue.c: Likewise.
41519         * tests/unictype/test-pr_other_id_start.c: Likewise.
41520         * tests/unictype/test-pr_other_lowercase.c: Likewise.
41521         * tests/unictype/test-pr_other_math.c: Likewise.
41522         * tests/unictype/test-pr_other_uppercase.c: Likewise.
41523         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
41524         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
41525         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
41526         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
41527         * tests/unictype/test-pr_private_use.c: Likewise.
41528         * tests/unictype/test-pr_punctuation.c: Likewise.
41529         * tests/unictype/test-pr_quotation_mark.c: Likewise.
41530         * tests/unictype/test-pr_radical.c: Likewise.
41531         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
41532         * tests/unictype/test-pr_soft_dotted.c: Likewise.
41533         * tests/unictype/test-pr_space.c: Likewise.
41534         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
41535         * tests/unictype/test-pr_titlecase.c: Likewise.
41536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
41537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
41538         * tests/unictype/test-pr_uppercase.c: Likewise.
41539         * tests/unictype/test-pr_variation_selector.c: Likewise.
41540         * tests/unictype/test-pr_white_space.c: Likewise.
41541         * tests/unictype/test-pr_xid_continue.c: Likewise.
41542         * tests/unictype/test-pr_xid_start.c: Likewise.
41543         * tests/unictype/test-pr_zero_width.c: Likewise.
41544         * tests/unictype/test-sy_c_whitespace.c: Likewise.
41545         * tests/unictype/test-sy_java_whitespace.c: Likewise.
41546
41547 2007-11-12  Bruno Haible  <bruno@clisp.org>
41548
41549         Unicode character classification functions.
41550         * lib/unictype.h: New file.
41551         * modules/unictype/base: New file.
41552         * modules/unictype/category-L: New file.
41553         * modules/unictype/category-Lu: New file.
41554         * modules/unictype/category-Ll: New file.
41555         * modules/unictype/category-Lt: New file.
41556         * modules/unictype/category-Lm: New file.
41557         * modules/unictype/category-Lo: New file.
41558         * modules/unictype/category-M: New file.
41559         * modules/unictype/category-Mn: New file.
41560         * modules/unictype/category-Mc: New file.
41561         * modules/unictype/category-Me: New file.
41562         * modules/unictype/category-N: New file.
41563         * modules/unictype/category-Nd: New file.
41564         * modules/unictype/category-Nl: New file.
41565         * modules/unictype/category-No: New file.
41566         * modules/unictype/category-P: New file.
41567         * modules/unictype/category-Pc: New file.
41568         * modules/unictype/category-Pd: New file.
41569         * modules/unictype/category-Ps: New file.
41570         * modules/unictype/category-Pe: New file.
41571         * modules/unictype/category-Pi: New file.
41572         * modules/unictype/category-Pf: New file.
41573         * modules/unictype/category-Po: New file.
41574         * modules/unictype/category-S: New file.
41575         * modules/unictype/category-Sm: New file.
41576         * modules/unictype/category-Sc: New file.
41577         * modules/unictype/category-Sk: New file.
41578         * modules/unictype/category-So: New file.
41579         * modules/unictype/category-Z: New file.
41580         * modules/unictype/category-Zs: New file.
41581         * modules/unictype/category-Zl: New file.
41582         * modules/unictype/category-Zp: New file.
41583         * modules/unictype/category-C: New file.
41584         * modules/unictype/category-Cc: New file.
41585         * modules/unictype/category-Cf: New file.
41586         * modules/unictype/category-Cs: New file.
41587         * modules/unictype/category-Co: New file.
41588         * modules/unictype/category-Cn: New file.
41589         * modules/unictype/category-or: New file.
41590         * modules/unictype/category-of: New file.
41591         * modules/unictype/category-test: New file.
41592         * modules/unictype/category-test-withtable: New file.
41593         * modules/unictype/category-byname: New file.
41594         * modules/unictype/category-none: New file.
41595         * modules/unictype/category-and: New file.
41596         * modules/unictype/category-and-not: New file.
41597         * modules/unictype/category-name: New file.
41598         * modules/unictype/combining-class: New file.
41599         * modules/unictype/category-all: New file.
41600         * modules/unictype/bidicategory-all: New file.
41601         * modules/unictype/bidicategory-byname: New file.
41602         * modules/unictype/bidicategory-name: New file.
41603         * modules/unictype/bidicategory-of: New file.
41604         * modules/unictype/bidicategory-test: New file.
41605         * modules/unictype/decimal-digit: New file.
41606         * modules/unictype/digit: New file.
41607         * modules/unictype/numeric: New file.
41608         * modules/unictype/mirror: New file.
41609         * modules/unictype/property-white-space: New file.
41610         * modules/unictype/property-alphabetic: New file.
41611         * modules/unictype/property-other-alphabetic: New file.
41612         * modules/unictype/property-not-a-character: New file.
41613         * modules/unictype/property-default-ignorable-code-point: New file.
41614         * modules/unictype/property-other-default-ignorable-code-point: New
41615         file.
41616         * modules/unictype/property-deprecated: New file.
41617         * modules/unictype/property-logical-order-exception: New file.
41618         * modules/unictype/property-variation-selector: New file.
41619         * modules/unictype/property-private-use: New file.
41620         * modules/unictype/property-unassigned-code-value: New file.
41621         * modules/unictype/property-uppercase: New file.
41622         * modules/unictype/property-other-uppercase: New file.
41623         * modules/unictype/property-lowercase: New file.
41624         * modules/unictype/property-other-lowercase: New file.
41625         * modules/unictype/property-titlecase: New file.
41626         * modules/unictype/property-soft-dotted: New file.
41627         * modules/unictype/property-id-start: New file.
41628         * modules/unictype/property-other-id-start: New file.
41629         * modules/unictype/property-id-continue: New file.
41630         * modules/unictype/property-other-id-continue: New file.
41631         * modules/unictype/property-xid-start: New file.
41632         * modules/unictype/property-xid-continue: New file.
41633         * modules/unictype/property-pattern-white-space: New file.
41634         * modules/unictype/property-pattern-syntax: New file.
41635         * modules/unictype/property-join-control: New file.
41636         * modules/unictype/property-grapheme-base: New file.
41637         * modules/unictype/property-grapheme-extend: New file.
41638         * modules/unictype/property-other-grapheme-extend: New file.
41639         * modules/unictype/property-grapheme-link: New file.
41640         * modules/unictype/property-bidi-control: New file.
41641         * modules/unictype/property-bidi-left-to-right: New file.
41642         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
41643         * modules/unictype/property-bidi-arabic-right-to-left: New file.
41644         * modules/unictype/property-bidi-european-digit: New file.
41645         * modules/unictype/property-bidi-eur-num-separator: New file.
41646         * modules/unictype/property-bidi-eur-num-terminator: New file.
41647         * modules/unictype/property-bidi-arabic-digit: New file.
41648         * modules/unictype/property-bidi-common-separator: New file.
41649         * modules/unictype/property-bidi-block-separator: New file.
41650         * modules/unictype/property-bidi-segment-separator: New file.
41651         * modules/unictype/property-bidi-whitespace: New file.
41652         * modules/unictype/property-bidi-non-spacing-mark: New file.
41653         * modules/unictype/property-bidi-boundary-neutral: New file.
41654         * modules/unictype/property-bidi-pdf: New file.
41655         * modules/unictype/property-bidi-embedding-or-override: New file.
41656         * modules/unictype/property-bidi-other-neutral: New file.
41657         * modules/unictype/property-hex-digit: New file.
41658         * modules/unictype/property-ascii-hex-digit: New file.
41659         * modules/unictype/property-ideographic: New file.
41660         * modules/unictype/property-unified-ideograph: New file.
41661         * modules/unictype/property-radical: New file.
41662         * modules/unictype/property-ids-binary-operator: New file.
41663         * modules/unictype/property-ids-trinary-operator: New file.
41664         * modules/unictype/property-zero-width: New file.
41665         * modules/unictype/property-space: New file.
41666         * modules/unictype/property-non-break: New file.
41667         * modules/unictype/property-iso-control: New file.
41668         * modules/unictype/property-format-control: New file.
41669         * modules/unictype/property-dash: New file.
41670         * modules/unictype/property-hyphen: New file.
41671         * modules/unictype/property-punctuation: New file.
41672         * modules/unictype/property-line-separator: New file.
41673         * modules/unictype/property-paragraph-separator: New file.
41674         * modules/unictype/property-quotation-mark: New file.
41675         * modules/unictype/property-sentence-terminal: New file.
41676         * modules/unictype/property-terminal-punctuation: New file.
41677         * modules/unictype/property-currency-symbol: New file.
41678         * modules/unictype/property-math: New file.
41679         * modules/unictype/property-other-math: New file.
41680         * modules/unictype/property-paired-punctuation: New file.
41681         * modules/unictype/property-left-of-pair: New file.
41682         * modules/unictype/property-combining: New file.
41683         * modules/unictype/property-composite: New file.
41684         * modules/unictype/property-decimal-digit: New file.
41685         * modules/unictype/property-numeric: New file.
41686         * modules/unictype/property-diacritic: New file.
41687         * modules/unictype/property-extender: New file.
41688         * modules/unictype/property-ignorable-control: New file.
41689         * modules/unictype/property-test: New file.
41690         * modules/unictype/property-byname: New file.
41691         * modules/unictype/property-all: New file.
41692         * modules/unictype/scripts: New file.
41693         * modules/unictype/scripts-all: New file.
41694         * modules/unictype/block-of: New file.
41695         * modules/unictype/block-test: New file.
41696         * modules/unictype/block-list: New file.
41697         * modules/unictype/block-all: New file.
41698         * modules/unictype/syntax-c-whitespace: New file.
41699         * modules/unictype/syntax-java-whitespace: New file.
41700         * modules/unictype/syntax-c-ident: New file.
41701         * modules/unictype/syntax-java-ident: New file.
41702         * modules/unictype/ctype-alnum: New file.
41703         * modules/unictype/ctype-alpha: New file.
41704         * modules/unictype/ctype-cntrl: New file.
41705         * modules/unictype/ctype-digit: New file.
41706         * modules/unictype/ctype-graph: New file.
41707         * modules/unictype/ctype-lower: New file.
41708         * modules/unictype/ctype-print: New file.
41709         * modules/unictype/ctype-punct: New file.
41710         * modules/unictype/ctype-space: New file.
41711         * modules/unictype/ctype-upper: New file.
41712         * modules/unictype/ctype-xdigit: New file.
41713         * modules/unictype/ctype-blank: New file.
41714         * lib/unictype/bidi_byname.c: New file.
41715         * lib/unictype/bidi_name.c: New file.
41716         * lib/unictype/bidi_of.c: New file.
41717         * lib/unictype/bidi_test.c: New file.
41718         * lib/unictype/bitmap.h: New file.
41719         * lib/unictype/block_test.c: New file.
41720         * lib/unictype/blocks.c: New file.
41721         * lib/unictype/categ_C.c: New file.
41722         * lib/unictype/categ_Cc.c: New file.
41723         * lib/unictype/categ_Cf.c: New file.
41724         * lib/unictype/categ_Cn.c: New file.
41725         * lib/unictype/categ_Co.c: New file.
41726         * lib/unictype/categ_Cs.c: New file.
41727         * lib/unictype/categ_L.c: New file.
41728         * lib/unictype/categ_Ll.c: New file.
41729         * lib/unictype/categ_Lm.c: New file.
41730         * lib/unictype/categ_Lo.c: New file.
41731         * lib/unictype/categ_Lt.c: New file.
41732         * lib/unictype/categ_Lu.c: New file.
41733         * lib/unictype/categ_M.c: New file.
41734         * lib/unictype/categ_Mc.c: New file.
41735         * lib/unictype/categ_Me.c: New file.
41736         * lib/unictype/categ_Mn.c: New file.
41737         * lib/unictype/categ_N.c: New file.
41738         * lib/unictype/categ_Nd.c: New file.
41739         * lib/unictype/categ_Nl.c: New file.
41740         * lib/unictype/categ_No.c: New file.
41741         * lib/unictype/categ_P.c: New file.
41742         * lib/unictype/categ_Pc.c: New file.
41743         * lib/unictype/categ_Pd.c: New file.
41744         * lib/unictype/categ_Pe.c: New file.
41745         * lib/unictype/categ_Pf.c: New file.
41746         * lib/unictype/categ_Pi.c: New file.
41747         * lib/unictype/categ_Po.c: New file.
41748         * lib/unictype/categ_Ps.c: New file.
41749         * lib/unictype/categ_S.c: New file.
41750         * lib/unictype/categ_Sc.c: New file.
41751         * lib/unictype/categ_Sk.c: New file.
41752         * lib/unictype/categ_Sm.c: New file.
41753         * lib/unictype/categ_So.c: New file.
41754         * lib/unictype/categ_Z.c: New file.
41755         * lib/unictype/categ_Zl.c: New file.
41756         * lib/unictype/categ_Zp.c: New file.
41757         * lib/unictype/categ_Zs.c: New file.
41758         * lib/unictype/categ_and.c: New file.
41759         * lib/unictype/categ_and_not.c: New file.
41760         * lib/unictype/categ_byname.c: New file.
41761         * lib/unictype/categ_name.c: New file.
41762         * lib/unictype/categ_none.c: New file.
41763         * lib/unictype/categ_of.c: New file.
41764         * lib/unictype/categ_or.c: New file.
41765         * lib/unictype/categ_test.c: New file.
41766         * lib/unictype/combining.c: New file.
41767         * lib/unictype/ctype_alnum.c: New file.
41768         * lib/unictype/ctype_alpha.c: New file.
41769         * lib/unictype/ctype_blank.c: New file.
41770         * lib/unictype/ctype_cntrl.c: New file.
41771         * lib/unictype/ctype_digit.c: New file.
41772         * lib/unictype/ctype_graph.c: New file.
41773         * lib/unictype/ctype_lower.c: New file.
41774         * lib/unictype/ctype_print.c: New file.
41775         * lib/unictype/ctype_punct.c: New file.
41776         * lib/unictype/ctype_space.c: New file.
41777         * lib/unictype/ctype_upper.c: New file.
41778         * lib/unictype/ctype_xdigit.c: New file.
41779         * lib/unictype/decdigit.c: New file.
41780         * lib/unictype/digit.c: New file.
41781         * lib/unictype/identsyntaxmap.h: New file.
41782         * lib/unictype/mirror.c: New file.
41783         * lib/unictype/numeric.c: New file.
41784         * lib/unictype/pr_alphabetic.c: New file.
41785         * lib/unictype/pr_ascii_hex_digit.c: New file.
41786         * lib/unictype/pr_bidi_arabic_digit.c: New file.
41787         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
41788         * lib/unictype/pr_bidi_block_separator.c: New file.
41789         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
41790         * lib/unictype/pr_bidi_common_separator.c: New file.
41791         * lib/unictype/pr_bidi_control.c: New file.
41792         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
41793         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
41794         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
41795         * lib/unictype/pr_bidi_european_digit.c: New file.
41796         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
41797         * lib/unictype/pr_bidi_left_to_right.c: New file.
41798         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
41799         * lib/unictype/pr_bidi_other_neutral.c: New file.
41800         * lib/unictype/pr_bidi_pdf.c: New file.
41801         * lib/unictype/pr_bidi_segment_separator.c: New file.
41802         * lib/unictype/pr_bidi_whitespace.c: New file.
41803         * lib/unictype/pr_byname.c: New file.
41804         * lib/unictype/pr_byname.gperf: New file.
41805         * lib/unictype/pr_combining.c: New file.
41806         * lib/unictype/pr_composite.c: New file.
41807         * lib/unictype/pr_currency_symbol.c: New file.
41808         * lib/unictype/pr_dash.c: New file.
41809         * lib/unictype/pr_decimal_digit.c: New file.
41810         * lib/unictype/pr_default_ignorable_code_point.c: New file.
41811         * lib/unictype/pr_deprecated.c: New file.
41812         * lib/unictype/pr_diacritic.c: New file.
41813         * lib/unictype/pr_extender.c: New file.
41814         * lib/unictype/pr_format_control.c: New file.
41815         * lib/unictype/pr_grapheme_base.c: New file.
41816         * lib/unictype/pr_grapheme_extend.c: New file.
41817         * lib/unictype/pr_grapheme_link.c: New file.
41818         * lib/unictype/pr_hex_digit.c: New file.
41819         * lib/unictype/pr_hyphen.c: New file.
41820         * lib/unictype/pr_id_continue.c: New file.
41821         * lib/unictype/pr_id_start.c: New file.
41822         * lib/unictype/pr_ideographic.c: New file.
41823         * lib/unictype/pr_ids_binary_operator.c: New file.
41824         * lib/unictype/pr_ids_trinary_operator.c: New file.
41825         * lib/unictype/pr_ignorable_control.c: New file.
41826         * lib/unictype/pr_iso_control.c: New file.
41827         * lib/unictype/pr_join_control.c: New file.
41828         * lib/unictype/pr_left_of_pair.c: New file.
41829         * lib/unictype/pr_line_separator.c: New file.
41830         * lib/unictype/pr_logical_order_exception.c: New file.
41831         * lib/unictype/pr_lowercase.c: New file.
41832         * lib/unictype/pr_math.c: New file.
41833         * lib/unictype/pr_non_break.c: New file.
41834         * lib/unictype/pr_not_a_character.c: New file.
41835         * lib/unictype/pr_numeric.c: New file.
41836         * lib/unictype/pr_other_alphabetic.c: New file.
41837         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
41838         * lib/unictype/pr_other_grapheme_extend.c: New file.
41839         * lib/unictype/pr_other_id_continue.c: New file.
41840         * lib/unictype/pr_other_id_start.c: New file.
41841         * lib/unictype/pr_other_lowercase.c: New file.
41842         * lib/unictype/pr_other_math.c: New file.
41843         * lib/unictype/pr_other_uppercase.c: New file.
41844         * lib/unictype/pr_paired_punctuation.c: New file.
41845         * lib/unictype/pr_paragraph_separator.c: New file.
41846         * lib/unictype/pr_pattern_syntax.c: New file.
41847         * lib/unictype/pr_pattern_white_space.c: New file.
41848         * lib/unictype/pr_private_use.c: New file.
41849         * lib/unictype/pr_punctuation.c: New file.
41850         * lib/unictype/pr_quotation_mark.c: New file.
41851         * lib/unictype/pr_radical.c: New file.
41852         * lib/unictype/pr_sentence_terminal.c: New file.
41853         * lib/unictype/pr_soft_dotted.c: New file.
41854         * lib/unictype/pr_space.c: New file.
41855         * lib/unictype/pr_terminal_punctuation.c: New file.
41856         * lib/unictype/pr_test.c: New file.
41857         * lib/unictype/pr_titlecase.c: New file.
41858         * lib/unictype/pr_unassigned_code_value.c: New file.
41859         * lib/unictype/pr_unified_ideograph.c: New file.
41860         * lib/unictype/pr_uppercase.c: New file.
41861         * lib/unictype/pr_variation_selector.c: New file.
41862         * lib/unictype/pr_white_space.c: New file.
41863         * lib/unictype/pr_xid_continue.c: New file.
41864         * lib/unictype/pr_xid_start.c: New file.
41865         * lib/unictype/pr_zero_width.c: New file.
41866         * lib/unictype/scripts.c: New file.
41867         * lib/unictype/sy_c_ident.c: New file.
41868         * lib/unictype/sy_c_whitespace.c: New file.
41869         * lib/unictype/sy_java_ident.c: New file.
41870         * lib/unictype/sy_java_whitespace.c: New file.
41871
41872         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
41873         Unicode 5.0.0.
41874         * lib/unictype/blocks.h: Likewise.
41875         * lib/unictype/categ_C.h: Likewise.
41876         * lib/unictype/categ_Cc.h: Likewise.
41877         * lib/unictype/categ_Cf.h: Likewise.
41878         * lib/unictype/categ_Cn.h: Likewise.
41879         * lib/unictype/categ_Co.h: Likewise.
41880         * lib/unictype/categ_Cs.h: Likewise.
41881         * lib/unictype/categ_L.h: Likewise.
41882         * lib/unictype/categ_Ll.h: Likewise.
41883         * lib/unictype/categ_Lm.h: Likewise.
41884         * lib/unictype/categ_Lo.h: Likewise.
41885         * lib/unictype/categ_Lt.h: Likewise.
41886         * lib/unictype/categ_Lu.h: Likewise.
41887         * lib/unictype/categ_M.h: Likewise.
41888         * lib/unictype/categ_Mc.h: Likewise.
41889         * lib/unictype/categ_Me.h: Likewise.
41890         * lib/unictype/categ_Mn.h: Likewise.
41891         * lib/unictype/categ_N.h: Likewise.
41892         * lib/unictype/categ_Nd.h: Likewise.
41893         * lib/unictype/categ_Nl.h: Likewise.
41894         * lib/unictype/categ_No.h: Likewise.
41895         * lib/unictype/categ_P.h: Likewise.
41896         * lib/unictype/categ_Pc.h: Likewise.
41897         * lib/unictype/categ_Pd.h: Likewise.
41898         * lib/unictype/categ_Pe.h: Likewise.
41899         * lib/unictype/categ_Pf.h: Likewise.
41900         * lib/unictype/categ_Pi.h: Likewise.
41901         * lib/unictype/categ_Po.h: Likewise.
41902         * lib/unictype/categ_Ps.h: Likewise.
41903         * lib/unictype/categ_S.h: Likewise.
41904         * lib/unictype/categ_Sc.h: Likewise.
41905         * lib/unictype/categ_Sk.h: Likewise.
41906         * lib/unictype/categ_Sm.h: Likewise.
41907         * lib/unictype/categ_So.h: Likewise.
41908         * lib/unictype/categ_Z.h: Likewise.
41909         * lib/unictype/categ_Zl.h: Likewise.
41910         * lib/unictype/categ_Zp.h: Likewise.
41911         * lib/unictype/categ_Zs.h: Likewise.
41912         * lib/unictype/categ_of.h: Likewise.
41913         * lib/unictype/combining.h: Likewise.
41914         * lib/unictype/ctype_alnum.h: Likewise.
41915         * lib/unictype/ctype_alpha.h: Likewise.
41916         * lib/unictype/ctype_blank.h: Likewise.
41917         * lib/unictype/ctype_cntrl.h: Likewise.
41918         * lib/unictype/ctype_digit.h: Likewise.
41919         * lib/unictype/ctype_graph.h: Likewise.
41920         * lib/unictype/ctype_lower.h: Likewise.
41921         * lib/unictype/ctype_print.h: Likewise.
41922         * lib/unictype/ctype_punct.h: Likewise.
41923         * lib/unictype/ctype_space.h: Likewise.
41924         * lib/unictype/ctype_upper.h: Likewise.
41925         * lib/unictype/ctype_xdigit.h: Likewise.
41926         * lib/unictype/decdigit.h: Likewise.
41927         * lib/unictype/digit.h: Likewise.
41928         * lib/unictype/mirror.h: Likewise.
41929         * lib/unictype/numeric.h: Likewise.
41930         * lib/unictype/pr_alphabetic.h: Likewise.
41931         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
41932         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
41933         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
41934         * lib/unictype/pr_bidi_block_separator.h: Likewise.
41935         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
41936         * lib/unictype/pr_bidi_common_separator.h: Likewise.
41937         * lib/unictype/pr_bidi_control.h: Likewise.
41938         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
41939         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
41940         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
41941         * lib/unictype/pr_bidi_european_digit.h: Likewise.
41942         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
41943         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
41944         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
41945         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
41946         * lib/unictype/pr_bidi_pdf.h: Likewise.
41947         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
41948         * lib/unictype/pr_bidi_whitespace.h: Likewise.
41949         * lib/unictype/pr_combining.h: Likewise.
41950         * lib/unictype/pr_composite.h: Likewise.
41951         * lib/unictype/pr_currency_symbol.h: Likewise.
41952         * lib/unictype/pr_dash.h: Likewise.
41953         * lib/unictype/pr_decimal_digit.h: Likewise.
41954         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
41955         * lib/unictype/pr_deprecated.h: Likewise.
41956         * lib/unictype/pr_diacritic.h: Likewise.
41957         * lib/unictype/pr_extender.h: Likewise.
41958         * lib/unictype/pr_format_control.h: Likewise.
41959         * lib/unictype/pr_grapheme_base.h: Likewise.
41960         * lib/unictype/pr_grapheme_extend.h: Likewise.
41961         * lib/unictype/pr_grapheme_link.h: Likewise.
41962         * lib/unictype/pr_hex_digit.h: Likewise.
41963         * lib/unictype/pr_hyphen.h: Likewise.
41964         * lib/unictype/pr_id_continue.h: Likewise.
41965         * lib/unictype/pr_id_start.h: Likewise.
41966         * lib/unictype/pr_ideographic.h: Likewise.
41967         * lib/unictype/pr_ids_binary_operator.h: Likewise.
41968         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
41969         * lib/unictype/pr_ignorable_control.h: Likewise.
41970         * lib/unictype/pr_iso_control.h: Likewise.
41971         * lib/unictype/pr_join_control.h: Likewise.
41972         * lib/unictype/pr_left_of_pair.h: Likewise.
41973         * lib/unictype/pr_line_separator.h: Likewise.
41974         * lib/unictype/pr_logical_order_exception.h: Likewise.
41975         * lib/unictype/pr_lowercase.h: Likewise.
41976         * lib/unictype/pr_math.h: Likewise.
41977         * lib/unictype/pr_non_break.h: Likewise.
41978         * lib/unictype/pr_not_a_character.h: Likewise.
41979         * lib/unictype/pr_numeric.h: Likewise.
41980         * lib/unictype/pr_other_alphabetic.h: Likewise.
41981         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41982         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41983         * lib/unictype/pr_other_id_continue.h: Likewise.
41984         * lib/unictype/pr_other_id_start.h: Likewise.
41985         * lib/unictype/pr_other_lowercase.h: Likewise.
41986         * lib/unictype/pr_other_math.h: Likewise.
41987         * lib/unictype/pr_other_uppercase.h: Likewise.
41988         * lib/unictype/pr_paired_punctuation.h: Likewise.
41989         * lib/unictype/pr_paragraph_separator.h: Likewise.
41990         * lib/unictype/pr_pattern_syntax.h: Likewise.
41991         * lib/unictype/pr_pattern_white_space.h: Likewise.
41992         * lib/unictype/pr_private_use.h: Likewise.
41993         * lib/unictype/pr_punctuation.h: Likewise.
41994         * lib/unictype/pr_quotation_mark.h: Likewise.
41995         * lib/unictype/pr_radical.h: Likewise.
41996         * lib/unictype/pr_sentence_terminal.h: Likewise.
41997         * lib/unictype/pr_soft_dotted.h: Likewise.
41998         * lib/unictype/pr_space.h: Likewise.
41999         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42000         * lib/unictype/pr_titlecase.h: Likewise.
42001         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42002         * lib/unictype/pr_unified_ideograph.h: Likewise.
42003         * lib/unictype/pr_uppercase.h: Likewise.
42004         * lib/unictype/pr_variation_selector.h: Likewise.
42005         * lib/unictype/pr_white_space.h: Likewise.
42006         * lib/unictype/pr_xid_continue.h: Likewise.
42007         * lib/unictype/pr_xid_start.h: Likewise.
42008         * lib/unictype/pr_zero_width.h: Likewise.
42009         * lib/unictype/scripts.h: Likewise.
42010         * lib/unictype/scripts_byname.gperf: Likewise.
42011         * lib/unictype/sy_c_ident.h: Likewise.
42012         * lib/unictype/sy_c_whitespace.h: Likewise.
42013         * lib/unictype/sy_java_ident.h: Likewise.
42014         * lib/unictype/sy_java_whitespace.h: Likewise.
42015
42016         * lib/unictype/Makefile: New file.
42017         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42018         glibc.
42019         * lib/unictype/3level.h: New file, copied from glibc.
42020         * lib/unictype/3levelbit.h: New file.
42021
42022 2007-11-11  Bruno Haible  <bruno@clisp.org>
42023
42024         * modules/gperf: New file.
42025         * modules/iconv_open (Depends-on): Add it.
42026         (Makefile.am): Remove the GPERF definition.
42027
42028 2007-11-11  Bruno Haible  <bruno@clisp.org>
42029
42030         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42031         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42032
42033 2007-11-11  Bruno Haible  <bruno@clisp.org>
42034
42035         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42036         (usage): Remove function.
42037
42038 2007-11-11  Bruno Haible  <bruno@clisp.org>
42039
42040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42041         gl_FUNC_CEILF_LIBS.
42042         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42043         gl_FUNC_CEIL_LIBS.
42044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42045         gl_FUNC_CEILL_LIBS.
42046         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42047         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42048         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42049
42050 2007-11-11  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42053         roundf were declared but do not exist on functions.
42054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42055         roundl were declared but do not exist on functions.
42056         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42057         HAVE_FLOORL_AND_CEILL, respectively.
42058         Needed for Sun C on Solaris 10.
42059
42060 2007-11-11  Bruno Haible  <bruno@clisp.org>
42061
42062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42063         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42064         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42065         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42067         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42068         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42069         HAVE_DECL_ROUNDF.
42070         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42071         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42073         of HAVE_DECL_ROUND*.
42074         * modules/math (Makefile.am): Update.
42075
42076 2007-11-10  Bruno Haible  <bruno@clisp.org>
42077
42078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42079         ptrdiff_t as m4/intl.m4.
42080
42081 2007-11-10  Jim Meyering  <meyering@redhat.com>
42082
42083         Avoid link failure for the argmatch test.
42084         * tests/test-argmatch.c (usage): Define function to avoid a link
42085         failure: argmatch_die requires a usage function.
42086
42087 2007-11-09  Bruno Haible  <bruno@clisp.org>
42088
42089         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42090         * doc/functions/vsnprintf.texi: Likewise.
42091         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42092         with a size argument < 2.
42093
42094 2007-11-09  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42097         buffer. Fixes an inefficiency introduced on 2007-11-03.
42098
42099 2007-11-09  Bruno Haible  <bruno@clisp.org>
42100
42101         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42102         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42103
42104 2007-11-08  Jim Meyering  <meyering@redhat.com>
42105
42106         Change cache variable name prefix "jm_" to "gl_" everywhere.
42107         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42108         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42109         * m4/uptime.m4: s/gl_/jm_/
42110
42111 2007-11-07  Bruno Haible  <bruno@clisp.org>
42112
42113         Update to GNU gettext 0.17.
42114         * m4/intl.m4: Update to GNU gettext 0.17.
42115         * m4/po.m4: Likewise.
42116         * modules/gettext (Files): Remove m4/ulonglong.m4.
42117         (configure.ac): Require gettext infrastructure from version 0.17.
42118
42119 2007-11-06  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42122         symbolic values are not defined in a public header.
42123         * lib/freadable.c (freadable) [QNX]: Likewise.
42124         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42125         * lib/freading.c (freading) [QNX]: Likewise.
42126         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42127         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42128         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42129         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42130         Reported by Alain Magloire.
42131
42132         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42133
42134 2007-11-05  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42137         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42138         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42139         Reported by Eric Blake.
42140
42141 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42142             Bruno Haible  <bruno@clisp.org>
42143
42144         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42145         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42146         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42147         (malloc): Undefine also before including <stdlib.h>.
42148         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42149         Needed on OSF/1 4.0.
42150
42151 2007-11-05  Jim Meyering  <meyering@redhat.com>
42152
42153         git-version-gen: sync from coreutils.
42154         * build-aux/git-version-gen: Add comments.
42155         Change the first '-' to '.' in the snapshot version string,
42156         e.g., 6.9-377-08144 -> 6.9.377-08144
42157         Remove first parameter.
42158         Don't declare a version "-dirty" merely because a time
42159         stamp has changed.
42160
42161 2007-11-04  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/lock.h: Protect all macro definitions containing an 'if'
42164         statement through a "do { ... } while (0)".
42165         * lib/tls.h: Likewise.
42166
42167 2007-11-04  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42170
42171 2007-11-04  Bruno Haible  <bruno@clisp.org>
42172
42173         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42174         * modules/fprintf-posix (Depends-on): Add nocrash.
42175         * modules/snprintf-posix (Depends-on): Likewise.
42176         * modules/sprintf-posix (Depends-on): Likewise.
42177         * modules/vasnprintf-posix (Depends-on): Likewise.
42178         * modules/vasprintf-posix (Depends-on): Likewise.
42179         * modules/vfprintf-posix (Depends-on): Likewise.
42180         * modules/vsnprintf-posix (Depends-on): Likewise.
42181         * modules/vsprintf-posix (Depends-on): Likewise.
42182         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42184         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42186         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42187         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42189
42190 2007-11-04  Bruno Haible  <bruno@clisp.org>
42191
42192         * modules/nocrash: New file.
42193         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42194         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42195
42196 2007-11-04  Bruno Haible  <bruno@clisp.org>
42197
42198         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42199         precision handling.
42200         * tests/test-vasprintf-posix.c (test_function): Likewise.
42201         * tests/test-snprintf-posix.h (test_function): Likewise.
42202         * tests/test-sprintf-posix.h (test_function): Likewise.
42203
42204         Fix *printf behaviour for large precisions on mingw and BeOS.
42205         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42206         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42208         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42210         gl_PRINTF_PRECISION and test its result. Invoke
42211         gl_PREREQ_VASNPRINTF_PRECISION.
42212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42219         * doc/functions/fprintf.texi: Update.
42220         * doc/functions/printf.texi: Update.
42221         * doc/functions/snprintf.texi: Update.
42222         * doc/functions/sprintf.texi: Update.
42223         * doc/functions/vfprintf.texi: Update.
42224         * doc/functions/vprintf.texi: Update.
42225         * doc/functions/vsnprintf.texi: Update.
42226         * doc/functions/vsprintf.texi: Update.
42227
42228 2007-11-04  Bruno Haible  <bruno@clisp.org>
42229
42230         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42231
42232 2007-11-04  Bruno Haible  <bruno@clisp.org>
42233
42234         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42235         Reported by Sylvain Beucler <beuc@gnu.org>.
42236
42237 2007-11-03  Bruno Haible  <bruno@clisp.org>
42238
42239         * tests/test-fprintf-posix2.sh: New file.
42240         * tests/test-fprintf-posix2.c: New file.
42241         * modules/fprintf-posix-tests (Files): Add them.
42242         (TESTS): Add test-fprintf-posix2.sh.
42243         (configure.ac): Check for getrlimit and setrlimit.
42244         (check_PROGRAMS): Add test-fprintf-posix2.
42245
42246         * tests/test-printf-posix2.sh: New file.
42247         * tests/test-printf-posix2.c: New file.
42248         * modules/printf-posix-tests (Files): Add them.
42249         (TESTS): Add test-printf-posix2.sh.
42250         (configure.ac): Check for getrlimit and setrlimit.
42251         (check_PROGRAMS): Add test-printf-posix2.
42252
42253         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
42254         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
42255         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
42256         (decode_double): New function, copied from decode_long_double.
42257         (scale10_round_decimal_decoded): New function, extracted from
42258         scale10_round_decimal_long_double.
42259         (scale10_round_decimal_long_double): Use it.
42260         (scale10_round_decimal_double): New function.
42261         (floorlog10): New function.
42262         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
42263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
42264         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42266         gl_PRINTF_ENOMEM and test its result. Invoke
42267         gl_PREREQ_VASNPRINTF_ENOMEM.
42268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42275         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
42276         * modules/snprintf-posix (Depends-on): Likewise.
42277         * modules/sprintf-posix (Depends-on): Likewise.
42278         * modules/vasnprintf-posix (Depends-on): Likewise.
42279         * modules/vasprintf-posix (Depends-on): Likewise.
42280         * modules/vfprintf-posix (Depends-on): Likewise.
42281         * modules/vsnprintf-posix (Depends-on): Likewise.
42282         * modules/vsprintf-posix (Depends-on): Likewise.
42283         * doc/functions/fprintf.texi: Update.
42284         * doc/functions/printf.texi: Update.
42285         * doc/functions/snprintf.texi: Update.
42286         * doc/functions/sprintf.texi: Update.
42287         * doc/functions/vfprintf.texi: Update.
42288         * doc/functions/vprintf.texi: Update.
42289         * doc/functions/vsnprintf.texi: Update.
42290         * doc/functions/vsprintf.texi: Update.
42291
42292 2007-11-03  Bruno Haible  <bruno@clisp.org>
42293
42294         * modules/frexp-nolibm-tests: New file.
42295
42296         * modules/frexp-nolibm: New file.
42297         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
42298
42299 2007-11-03  Bruno Haible  <bruno@clisp.org>
42300
42301         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
42302         value is C99 compliant.
42303         Needed for OSF/1 5.1.
42304
42305 2007-11-03  Bruno Haible  <bruno@clisp.org>
42306
42307         Fix out-of-memory handling of vasnprintf.
42308         * lib/printf-parse.c: Include <errno.h>.
42309         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
42310         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
42311         is already set.
42312
42313 2007-11-02  Eric Blake  <ebb9@byu.net>
42314
42315         Fix tests on cygwin.
42316         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
42317
42318 2007-11-01  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
42321         warning.
42322         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
42323         needed for POSIX compatibility.
42324
42325 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42326
42327         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
42328         for compatibility with GNU.
42329
42330 2007-11-01  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
42333         (putenv): Renamed from rpl_putenv. Change argument type from
42334         'const char *' to 'char *'.
42335         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
42336         of defining putenv in config.h, just set REPLACE_PUTENV.
42337         * modules/putenv (Depends-on): Add stdlib.
42338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42339         (Include): Use <stdlib.h>.
42340         * lib/stdlib.in.h (putenv): New declaration.
42341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
42342         REPLACE_PUTENV.
42343         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
42344         REPLACE_PUTENV.
42345         Needed for MacOS X 10.5.0.
42346         Reported by Peter O'Gorman <peter@pogma.com>.
42347
42348 2007-11-01  Jim Meyering  <meyering@redhat.com>
42349
42350         Treat an empty date string exactly like "0".
42351         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
42352         if the remaining date string (to be parsed) is empty, use "0".
42353         Reported by Mischa Molhoek and discussed in this thread:
42354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
42355
42356 2007-10-31  Bruno Haible  <bruno@clisp.org>
42357
42358         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
42359         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
42360         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
42361         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
42362         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
42363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
42364
42365 2007-10-31  Bruno Haible  <bruno@clisp.org>
42366
42367         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
42368         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
42369         (AC_TYPE_LONG_LONG_INT): Use it.
42370         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
42371         it as well.
42372         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
42373         to m4/longlong.m4.
42374         * modules/stdint (Files): Remove m4/ulonglong.m4.
42375         * modules/strtoull (Files): Use m4/longlong.m4 instead of
42376         m4/ulonglong.m4.
42377         * modules/strtoumax (Files): Likewise.
42378
42379 2007-10-30  Bruno Haible  <bruno@clisp.org>
42380
42381         * modules/xvasprintf-posix: New file.
42382         Suggested by Eric Blake.
42383
42384 2007-10-30  Bruno Haible  <bruno@clisp.org>
42385
42386         * modules/xprintf-posix-tests: New file.
42387         * tests/test-xprintf-posix.sh: New file.
42388         * tests/test-xprintf-posix.c: New file.
42389         * tests/test-xfprintf-posix.c: New file.
42390
42391         * modules/xprintf-posix: New file.
42392
42393 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42394
42395         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
42396         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
42397         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
42398
42399 2007-10-29  Bruno Haible  <bruno@clisp.org>
42400
42401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
42402         contain the special marker '_cv_'.
42403         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42404         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42405         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42406         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
42407         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42408         Reported by Ralf Wildenhues.
42409
42410 2007-10-29  Bruno Haible  <bruno@clisp.org>
42411
42412         * gnulib-tool (func_import): When --lgpl is not specified, set
42413         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
42414         GPLv3.
42415         Reported by Simon Josefsson.
42416
42417 2007-10-28  Bruno Haible  <bruno@clisp.org>
42418
42419         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
42420         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
42421         HAVE_DECL_ISFINITE.
42422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42423         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
42424         HAVE_DECL_ISFINITE.
42425
42426 2007-10-28  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
42429         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
42430
42431 2007-10-28  Bruno Haible  <bruno@clisp.org>
42432
42433         Fix link errors with Sun C 5.0 on Solaris 10.
42434         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
42435         function is declared but not present in the compiler's libm.
42436         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42437         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42438         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
42439         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
42440         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
42441         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
42442         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
42443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
42444         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
42445         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
42446         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
42447         HAVE_DECL_FLOORL.
42448
42449 2007-10-28  Bruno Haible  <bruno@clisp.org>
42450
42451         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
42452         gl_FUNC_FLOORL. Cache the result.
42453         (gl_FUNC_FLOORL): Use it.
42454         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
42455         gl_FUNC_CEILL. Cache the result.
42456         (gl_FUNC_CEILL): Use it.
42457
42458         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
42459         gl_FUNC_FLOOR. Cache the result.
42460         (gl_FUNC_FLOOR): Use it.
42461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
42462         gl_FUNC_CEIL. Cache the result.
42463         (gl_FUNC_CEIL): Use it.
42464
42465         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
42466         gl_FUNC_FLOORF. Cache the result.
42467         (gl_FUNC_FLOORF): Use it.
42468         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
42469         gl_FUNC_CEILF. Cache the result.
42470         (gl_FUNC_CEILF): Use it.
42471
42472 2007-10-28  Bruno Haible  <bruno@clisp.org>
42473
42474         * gnulib-tool: Allow specifying the LGPL version number through
42475         --lgpl=2 or --lgpl=3.
42476         (func_usage): Document --lgpl with argument.
42477         Handle --lgpl=... arguments.
42478         (func_import): Recognize also gl_LGPL calls with an argument. When
42479         --lgpl=2 is used and the module's license is just LGPL, report an
42480         error. Set sed_transform_lib_file according to the lgpl variable. In
42481         the generated files, use --lgpl or gl_LGPL invocations with argument,
42482         if necessary.
42483         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
42484         an LGPv2+ license.
42485         * doc/gnulib-tool.texi (Modified imports): Update explanation of
42486         gl_LGPL macro.
42487
42488 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42489             Bruno Haible  <bruno@clisp.org>
42490
42491         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
42492         (u16_uctomb_aux): Likewise.
42493         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
42494         !HAVE_INLINE.
42495         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
42496
42497 2007-10-28  Bruno Haible  <bruno@clisp.org>
42498
42499         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
42500         Invoke AM_GETTEXT_OPTION if it exists.
42501         * modules/vasprintf: Likewise.
42502         * modules/verror: Likewise.
42503         * modules/xprintf: Likewise.
42504         * modules/xvasprintf: Likewise.
42505
42506 2007-10-27  Ben Pfaff  <blp@gnu.org>
42507
42508         * lib/math.in.h: Define isfinite macro and prototypes for
42509         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
42510         implementations.
42511         * m4/math_h.m4: New substitutions for isfinite module.
42512         * lib/isfinite.c: New file.
42513         * m4/isfinite.m4: New file.
42514         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
42515         * modules/isfinite: New file.
42516         * modules/isfinite-tests: New file.
42517         * tests/tests-isfinite.c: New file.
42518         * doc/functions/isfinite.texi: Mention isfinite module.
42519         * MODULES.html.sh: Mention new module.
42520
42521 2007-10-27  Ben Pfaff  <blp@gnu.org>
42522
42523         Ralf Wildenhues reported that Tru64 4.0D declares the round
42524         functions but does not have definitions.
42525         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
42526         cannot be found in any library, set the output variable to
42527         "missing" instead of "".
42528         * m4/round.m4: Also use our substitute if we cannot find round in
42529         any library, even if it is declared.
42530         * m4/roundf.m4: Likewise for roundf.
42531         * m4/roundl.m4: Likewise for roundl.
42532         * lib/math.in.h: Undefine roundf, round, roundl before defining
42533         their replacements, to allow for hypothetical systems where these
42534         may be defined as macros but not available in libraries.
42535
42536 2007-10-27  Bruno Haible  <bruno@clisp.org>
42537
42538         * doc/gnulib.texi: Invoke @firstparagraphindent.
42539         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
42540         changes in gnulib.
42541         (Source changes): New section.
42542
42543 2007-10-26  Bruno Haible  <bruno@clisp.org>
42544
42545         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
42546         borrowed from autoconf.
42547
42548 2007-10-26  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
42551         strerror returned the empty string. Needed on HP-UX 11.00.
42552
42553 2007-10-24  Micah Cowan  <micah@cowan.name>
42554
42555         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
42556         * build-aux/bootstrap: Remove support for now-unnecessary option,
42557         --cvs-user, and envvars CVS_USER, CVS_RSH.
42558
42559 2007-10-24  Jim Meyering  <meyering@redhat.com>
42560
42561         Avoid diagnostics from sha1sum when there is no cached checksum.
42562         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
42563         if the po.s1 file hasn't been created yet.
42564
42565         * build-aux/bootstrap: Sync from coreutils:
42566         2007-10-24  Jim Meyering  <meyering@redhat.com>
42567         Get gnulib from the git repository, not from an obsolete cvs one.
42568         * build-aux/bootstrap: Suggestion from Micah Cowan.
42569         2007-10-04  Jim Meyering  <jim@meyering.net>
42570         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
42571         (update_po_files): Work also when there are no .po files in po/.
42572
42573 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42574
42575         * README: Append ".git" to git and cg examples.
42576         Problem reported by Benoit Sigoure.
42577
42578 2007-10-23  Micah Cowan  <micah@cowan.name>
42579
42580         * users.txt: Add wget.
42581
42582 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42583
42584         Fix linking of some unistdio tests on FreeBSD.
42585         * modules/unistdio/u16-vsnprintf-tests
42586         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
42587         * modules/unistdio/u16-vsprintf-tests
42588         (test_u16_vsnprintf1_LDADD): Likewise.
42589         * modules/unistdio/u32-vsnprintf-tests
42590         (test_u32_vsnprintf1_LDADD): Likewise.
42591         * modules/unistdio/u32-vsprintf-tests
42592         (test_u32_vsprintf1_LDADD): Likewise.
42593         * modules/unistdio/u8-vsnprintf-tests
42594         (test_u8_vsnprintf1_LDADD): Likewise.
42595         * modules/unistdio/u8-vsprintf-tests
42596         (test_u8_vsprintf1_LDADD): Likewise.
42597         * modules/unistdio/ulc-vsnprintf-tests
42598         (test_ulc_vsnprintf1_LDADD): Likewise.
42599         * modules/unistdio/ulc-vsprintf-tests
42600         (test_ulc_vsprintf1_LDADD): Likewise.
42601
42602         Fix linking of some uniconv tests on FreeBSD.
42603         * modules/uniconv/u16-conv-from-enc-tests
42604         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
42605         * modules/uniconv/u16-conv-to-enc-tests
42606         (test_u16_conv_to_enc_LDADD): Likewise.
42607         * modules/uniconv/u16-strconv-from-enc-tests
42608         (test_u16_strconv_from_enc_LDADD): Likewise.
42609         * modules/uniconv/u16-strconv-to-enc-tests
42610         (test_u16_strconv_to_enc_LDADD): Likewise.
42611         * modules/uniconv/u32-conv-from-enc-tests
42612         (test_u32_conv_from_enc_LDADD): Likewise.
42613         * modules/uniconv/u32-conv-to-enc-tests
42614         (test_u32_conv_to_enc_LDADD): Likewise.
42615         * modules/uniconv/u32-strconv-from-enc-tests
42616         (test_u32_strconv_from_enc_LDADD): Likewise.
42617         * modules/uniconv/u32-strconv-to-enc-tests
42618         (test_u32_strconv_to_enc_LDADD): Likewise.
42619         * modules/uniconv/u8-conv-from-enc-tests
42620         (test_u8_conv_from_enc_LDADD): Likewise.
42621         * modules/uniconv/u8-conv-to-enc-tests
42622         (test_u8_conv_to_enc_LDADD): Likewise.
42623         * modules/uniconv/u8-strconv-from-enc-tests
42624         (test_u8_strconv_from_enc_LDADD): Likewise.
42625         * modules/uniconv/u8-strconv-to-enc-tests
42626         (test_u8_strconv_to_enc_LDADD): Likewise.
42627
42628 2007-10-22  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
42631         size.
42632
42633 2007-10-22  Eric Blake  <ebb9@byu.net>
42634
42635         Tweak x*printf documentation.
42636         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
42637         variable name and comments.
42638         Suggested by Bruno Haible.
42639
42640 2007-10-22  Bruno Haible  <bruno@clisp.org>
42641
42642         * lib/acl.c (copy_acl): Fix file name in comment.
42643
42644 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42645
42646         Fix Tru64 problem with stdbool.h.
42647         * lib/stdbool.in.h (false, true):
42648         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
42649         Don't declare as an enum in this situation; it runs afoul of Tru64.
42650         Problem reported by Steven M. Schweda in
42651         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
42652
42653 2007-10-22  Eric Blake  <ebb9@byu.net>
42654
42655         Also wrap vf?printf.
42656         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
42657         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
42658         (xvprintf, xvfprintf): New functions.
42659
42660 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42661
42662         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
42663         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
42664
42665         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
42666         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
42667
42668 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42669
42670         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
42671         by Bruno Haible.
42672
42673 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42674
42675         * lib/getloadavg.c
42676         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
42677         Undef `sys' after including sys/table.h, for Tru64 4.0D.
42678
42679         * tests/test-i-ring.c: Work for C89.
42680
42681 2007-10-22  Bruno Haible  <bruno@clisp.org>
42682
42683         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
42684         -1u, in preprocessor expression, so that we don't test for the bug
42685         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
42686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
42687
42688 2007-10-22  Eric Blake  <ebb9@byu.net>
42689
42690         * tests/test-yesno.sh: Silence stderr during test.
42691
42692 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42693
42694         * modules/crypto/gc-camellia: New file.
42695
42696         * m4/gc-camellia.m4: New file.
42697
42698         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
42699
42700         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
42701
42702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42703
42704         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
42705         --help to stdout.  Reported by sms@antinode.org (Steven
42706         M. Schweda).
42707
42708 2007-10-22  Simon Josefsson  <simon@josefsson.org>
42709
42710         * users.txt: Fix link to libksba.
42711
42712 2007-10-21  Ben Pfaff  <blp@gnu.org>
42713
42714         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
42715         round.c roundf implementation that depends on floorf and ceilf to
42716         be tested unconditionally.
42717
42718 2007-10-21  Ben Pfaff  <blp@gnu.org>
42719
42720         * m4/check-libm-func.m4: Removed.
42721         * m4/check-math-lib.m4: New file.
42722         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
42723         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
42724         definition and lack of AC_LIBOBJ([roundf]).
42725         * m4/roundl.m4: Ditto, and similarly for roundl.
42726         * modules/round: Reference new m4 file.
42727         * modules/roundf: Ditto.
42728         * modules/roundl: Ditto.
42729         * tests/test-round2.c (main): Use ROUND instead of round.
42730         Bug report from Bruno Haible.
42731
42732 2007-10-21  Bruno Haible  <bruno@clisp.org>
42733
42734         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
42735         context.
42736
42737 2007-10-21  Bruno Haible  <bruno@clisp.org>
42738
42739         * tests/test-wcwidth.c (main): Allow negative result for some control
42740         characters.
42741
42742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
42743         Needed on OSF/1 5.1.
42744
42745 2007-10-21  Bruno Haible  <bruno@clisp.org>
42746
42747         * tests/test-floorf1.c: Include isnanf.h.
42748         (main): Use isnanf() instead of isnan().
42749         * tests/test-ceilf1.c: Include isnanf.h.
42750         (main): Use isnanf() instead of isnan().
42751         * tests/test-truncf1.c: Include isnanf.h.
42752         (main): Use isnanf() instead of isnan().
42753         * tests/test-roundf1.c: Include isnanf.h.
42754         (main): Use isnanf() instead of isnan().
42755
42756 2007-10-21  Eric Blake  <ebb9@byu.net>
42757
42758         * users.txt: Update URL for m4.
42759
42760 2007-10-21  Bruno Haible  <bruno@clisp.org>
42761
42762         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
42763
42764 2007-10-21  Bruno Haible  <bruno@clisp.org>
42765
42766         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
42767         Git's management files if the CVS files are not present.
42768
42769 2007-10-20  Bruno Haible  <bruno@clisp.org>
42770
42771         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
42772         gcc-3.4.x.
42773
42774 2007-10-20  Ben Pfaff  <blp@gnu.org>
42775
42776         * lib/math.in.h: Declare round, roundf, roundl if we are providing
42777         implementations.
42778         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
42779         * lib/round.c: New file.
42780         * lib/roundf.c: New file.
42781         * lib/roundl.c: New file.
42782         * m4/round.m4: New file.
42783         * m4/roundf.m4: New file.
42784         * m4/roundl.m4: New file.
42785         * m4/check-libm-func-m4: New file.
42786         * modules/math: Replace round, roundf, roundl related @VARS@ in
42787         math.in.h.
42788         * modules/round: New file.
42789         * modules/round-tests: New file.
42790         * modules/roundf: New file.
42791         * modules/roundf-tests: New file.
42792         * modules/roundl: New file.
42793         * modules/roundl-tests: New file.
42794         * tests/test-round1.c: New file.
42795         * tests/test-round2.c: New file.
42796         * tests/test-roundf1.c: New file.
42797         * tests/test-roundf2.c: New file.
42798         * tests/test-roundl.c: New file.
42799         * doc/functions/round.texi: Mention round module.
42800         * doc/functions/roundf.texi: Mention roundf module.
42801         * doc/functions/roundl.texi: Mention roundl module.
42802         * MODULES.html.sh: Mention new modules.
42803         Thanks to Bruno Haible for suggestions.
42804
42805 2007-10-20  Jim Meyering  <meyering@redhat.com>
42806
42807         * lib/xprintf.c: Include <config.h> unconditionally.
42808
42809         Change xprintf's license to GPL.
42810         * modules/xprintf (License): s/LGPL/GPL/, since this module
42811         depends on modules (exit and exitfail) which are GPL.
42812         Suggestion from Bruno Haible.
42813
42814         xprintf fixes.
42815         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
42816         Use a clearer diagnostic.
42817         Patch from Bruno Haible.
42818
42819 2007-10-20  Bruno Haible  <bruno@clisp.org>
42820
42821         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
42822         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
42823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42824
42825 2007-10-20  Bruno Haible  <bruno@clisp.org>
42826
42827         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
42828         precision in the comparison result > x - 1 or similar.
42829         * tests/test-ceilf2.c (correct_result_p): Likewise.
42830         * tests/test-truncf2.c (correct_result_p): Likewise.
42831         * tests/test-trunc2.c (correct_result_p): Likewise.
42832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42833
42834 2007-10-20  Bruno Haible  <bruno@clisp.org>
42835
42836         * modules/ceil: New file.
42837         * m4/ceil.m4: New file.
42838         * doc/functions/ceil.texi: Mention the 'ceil' module.
42839
42840 2007-10-20  Bruno Haible  <bruno@clisp.org>
42841
42842         * modules/floor: New file.
42843         * m4/floor.m4: New file.
42844         * doc/functions/floor.texi: Mention the 'floor' module.
42845
42846 2007-10-20  Bruno Haible  <bruno@clisp.org>
42847
42848         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
42849         of %a.
42850         * modules/floorf-tests (Depends-on): Likewise.
42851         * modules/truncf-tests (Depends-on): Likewise.
42852         * modules/trunc-tests (Depends-on): Likewise.
42853         Reported by Ben Pfaff.
42854
42855 2007-10-19  Jim Meyering  <meyering@redhat.com>
42856
42857         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
42858         Don't bother testing specific errno values.  Just test ferror.
42859
42860         New module: xprintf
42861         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
42862
42863 2007-10-19  Bruno Haible  <bruno@clisp.org>
42864
42865         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
42866         syntax.
42867         * modules/javaexec (Makefile.am): Likewise.
42868         * modules/relocatable-prog (Makefile.am): Likewise.
42869         Suggested by Jim Meyering.
42870
42871 2007-10-18  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
42874         Reported by Jim Meyering.
42875
42876 2007-10-18  Eric Blake  <ebb9@byu.net>
42877
42878         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
42879
42880 2007-10-18  Bruno Haible  <bruno@clisp.org>
42881
42882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
42883         the format string into writable memory. Needed in Fortify conditions.
42884
42885 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
42886             Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
42889         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
42890         * modules/trim (Depends-on): Add mbchar.
42891         (configure.ac): Add gl_FUNC_MBRTOWC.
42892         (Makefile.am): Augment lib_SOURCES.
42893
42894 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42895
42896         Modify glob.c to use fstatat and dirfd, to simplify it.
42897         Suggested by Eric Blake.
42898         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
42899         Don't include <stdbool.h>; not used.
42900         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
42901         (link_exists_p): Simplify implementation, since we can now assume
42902         dirfd and fstatat.
42903         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
42904
42905 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42906
42907         * gnulib-tool (func_get_dependencies): Fix sed script to
42908         match only tests.
42909
42910 2007-10-17  Bruno Haible  <bruno@clisp.org>
42911
42912         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
42913         allow locale names without encoding suffix.
42914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42916
42917 2007-10-16  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
42920         * lib/getgroups.c (getgroups): Likewise.
42921         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
42922
42923 2007-10-16  Bruno Haible  <bruno@clisp.org>
42924
42925         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
42926         * modules/malloc-posix (License): Likewise.
42927         * modules/realloc-posix (License): Likewise.
42928         * modules/calloc-posix (License): Likewise.
42929         * modules/intprops (License): Change from GPL to LGPL, with
42930         Paul Eggert's approval.
42931
42932 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         Merge glibc changes into lib/glob.c.
42935
42936         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
42937         2007-10-15 04:59:03 UTC.  Here are the changes:
42938
42939         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
42940
42941         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
42942
42943         * lib/glob.c: Add some branch prediction throughout.
42944
42945         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
42946
42947         [BZ #5103]
42948         * lib/glob.c (glob): Recognize patterns starting \/.
42949
42950         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
42951
42952         [BZ #3996]
42953         * lib/glob.c (attribute_hidden): Define if not defined.
42954         (glob): Unescape dirname, filename or username when needed and not
42955         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
42956         is NULL.  Handle unescaped [ in pattern without closing ].
42957         Don't pass GLOB_CHECK down to recursive glob for directories.
42958         (__glob_pattern_type): New function.
42959         (__glob_pattern_p): Implement using __glob_pattern_type.
42960         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
42961         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
42962         Remove unreachable code.
42963
42964         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
42965
42966         * lib/glob.c (glob_in_dir): Add some comments and asserts to
42967         explain why there are no leaks.
42968
42969         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
42970
42971         [BZ #3253]
42972         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
42973         time, rather allocate increasingly bigger arrays of pointers, if
42974         possible with alloca, if too large with malloc.
42975
42976 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42977
42978         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42979         Problem reported by H.Merijn Brand in
42980         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42981         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42982         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42983
42984 2007-10-15  Bruno Haible  <bruno@clisp.org>
42985
42986         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42987         with explicit rpl_ prefix.
42988         * lib/fopen.c (fopen): Likewise.
42989         * lib/freopen.c (freopen): Likewise.
42990         * lib/iconv.c (iconv): Likewise.
42991         * lib/iconv_close.c (iconv_close): Likewise.
42992
42993 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42994
42995         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42996
42997 2007-10-15  Bruno Haible  <bruno@clisp.org>
42998
42999         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43000         <stddef.h> instead of <stdlib.h> since we only need NULL.
43001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43002
43003 2007-10-15  Bruno Haible  <bruno@clisp.org>
43004
43005         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43006         Replace paragraph talking about LIBOBJS.
43007         Reported by Colin Watson <cjwatson@debian.org>.
43008
43009 2007-10-15  Bruno Haible  <bruno@clisp.org>
43010
43011         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43012         <stdlib.h> before using NULL.
43013
43014 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43015
43016         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43017         Reported by Albert Chin <china@thewrittenword.com>.
43018
43019 2007-10-14  Bruno Haible  <bruno@clisp.org>
43020
43021         * modules/iconv_open-utf-tests: New file.
43022         * tests/test-iconv-utf.c: New file.
43023
43024         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43025         * modules/iconv_open-utf: New file.
43026         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43027         (iconv, iconv_close): New declarations.
43028         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43029         be defined.
43030         (iconv_open): Add special handling of conversion between UTF-8 and
43031         UTF-{16,32}{BE,LE}.
43032         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43033         * lib/iconv_close.c: New file.
43034         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43035         gl_FUNC_ICONV_OPEN.
43036         (gl_FUNC_ICONV_OPEN): Use it.
43037         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43038         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43039         and REPLACE_ICONV_UTF.
43040         * modules/iconv_open (Depends-on): Add c-strcase.
43041         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43042         ICONV_CONST.
43043         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43044
43045 2007-10-13  Albert Chin  <china@thewrittenword.com>
43046             Bruno Haible  <bruno@clisp.org>
43047
43048         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43049         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43050
43051 2007-10-13  Bruno Haible  <bruno@clisp.org>
43052
43053         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43054         defined, use the ISO C99 inline semantics.
43055         * lib/argp.h (ARGP_EI): Likewise.
43056
43057 2007-10-13  Bruno Haible  <bruno@clisp.org>
43058
43059         Handle 'inline' change in gcc 4.3.0.
43060         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43061         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43062         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43063         argp_fmtstream_point): Disable 'extern' declaration if the function
43064         definition is going to be provided inline.
43065         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43066         semantics, not the ISO C99 inline semantics.
43067         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43068         'extern' declaration if the function definition is going to be provided
43069         inline.
43070         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43071         the GNU C inline semantics, not the ISO C99 inline semantics. With
43072         GCC 4.2, avoid a warning.
43073
43074 2007-10-13  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/freading.h (freading): Enable the use of __freading for
43077         glibc >= 2.7.
43078         * lib/freading.c (freading): Likewise.
43079
43080 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43081
43082         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43083         "warning: C99 inline functions are not supported; using GNU89".
43084
43085 2007-10-12  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43088         of 2.
43089         * tests/test-ceilf2.c: New file.
43090         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43091
43092         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43093         * modules/ceilf-tests: Update.
43094
43095 2007-10-12  Bruno Haible  <bruno@clisp.org>
43096
43097         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43098         of 2.
43099         * tests/test-floorf2.c: New file.
43100         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43101
43102         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43103         * modules/floorf-tests: Update.
43104
43105 2007-10-12  Bruno Haible  <bruno@clisp.org>
43106
43107         * tests/test-trunc2.c: New file.
43108         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43109
43110         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43111         * modules/trunc-tests: Update.
43112
43113 2007-10-12  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43116         of 2.
43117         * tests/test-truncf2.c: New file.
43118         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43119
43120         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43121         * modules/truncf-tests: Update.
43122
43123 2007-10-11  Eric Blake  <ebb9@byu.net>
43124
43125         Don't claim strerror is broken on Interix.
43126         * doc/functions/strerror.texi (strerror): Known broken systems are
43127         now Solaris 8, and not Interix.
43128         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43129         Interix on cross-compile.
43130         Reported by Martin Koeppe in
43131         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43132
43133 2007-10-11  Bruno Haible  <bruno@clisp.org>
43134
43135         * modules/i-ring-tests: New file.
43136         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43137         instead of assert.
43138
43139 2007-10-11  Bruno Haible  <bruno@clisp.org>
43140
43141         * modules/filenamecat-tests: New file.
43142         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43143         * lib/filenamecat.c: Remove test code.
43144
43145 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43148
43149         * lib/strerror.c: Include <string.h> always, to test interface,
43150         and to remove the need for the dummy.
43151         Include intprops.h to compute width instead of doing it ourselves
43152         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43153         (strerror): Define it to return NULL if there's no system strerror.
43154         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43155         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43156         ancient pre-strerror Unix systems well any more.  Saying "unknown
43157         system error" is enough.
43158         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43159         simpler strerror.c implementation.
43160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43161         Simplify the tests to reflect the simpler strerror implementation.
43162         * modules/strerror (Depends-on): Add intprops.
43163
43164 2007-10-09  Eric Blake  <ebb9@byu.net>
43165
43166         Silence test-fpending.
43167         * modules/fpending-tests (Files): Add wrapper script.
43168         * tests/test-fpending.sh: New file.
43169
43170 2007-10-09  Bruno Haible  <bruno@clisp.org>
43171
43172         * MODULES.html.sh (func_module): Don't create a hyperlink for
43173         function names like 'printf_frexp'.
43174         (Misc): Add crc, memxor.
43175         (Characteristics of floating types): New section.
43176         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43177         isnanf-nolibm, signbit, trunc, truncf, truncl.
43178         (Enhancements for ISO C 99 functions): New subsection Input/output.
43179         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43180         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43181         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43182         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43183         (Enhancements for POSIX:2001 functions): Add chdir-long.
43184         (File system functions): Add areadlink, chdir-safer, read-file.
43185         Remove cycle-check.
43186         (File system as inode set): New section.
43187         (Date and time): Add gethrxtime.
43188         (Multithreading): Add openmp.
43189         (Internationalization functions): Add localename.
43190         (Unicode string functions): Add unistr/u*-mbsnlen.
43191         (Support for maintaining and releasing projects): Add git-version-gen.
43192         (Lone files): Remove directories.
43193
43194 2007-10-08  Ben Pfaff  <blp@gnu.org>
43195
43196         * lib/xmalloca.h: Fix typo in comment.
43197
43198 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43199
43200         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43201         when avoiding problems with integer overflow.  Use a portable test
43202         instead.
43203
43204 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43205
43206         * modules/dummy (License): Change to LGPLv2+.
43207         * modules/float (License): Likewise
43208         * modules/realloc (License): Likewise
43209         * modules/stdlib (License): Likewise
43210
43211 2007-10-07  Bruno Haible  <bruno@clisp.org>
43212
43213         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43214         * floor.c (TWO_MANT_DIG): Likewise.
43215         * ceil.c (TWO_MANT_DIG): Likewise.
43216         Reported by Ben Pfaff.
43217
43218 2007-10-07  Bruno Haible  <bruno@clisp.org>
43219
43220         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43221         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43222         * lib/frexp.c (FUNC): Likewise.
43223         * lib/printf-frexp.h (printf_frexp): Likewise.
43224         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43225         * lib/printf-frexp.c (FUNC): Likewise.
43226         Suggested by Jim Meyering.
43227
43228 2007-10-07  Jim Meyering  <meyering@redhat.com>
43229
43230         Make xnanosleep's integer overflow test more robust.
43231         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43232         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43233
43234 2007-10-07  Bruno Haible  <bruno@clisp.org>
43235
43236         * NEWS: Mention the license change.
43237
43238         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43239         abbreviations in the modules files.
43240
43241         Change copyright notice from GPLv2+ to GPLv3+.
43242         * README: Change copyright notice.
43243         * MODULES.html.sh: Likewise.
43244         * build-aux/bootstrap.conf: Likewise.
43245         * build-aux/config.libpath: Likewise.
43246         * build-aux/csharpcomp.sh.in: Likewise.
43247         * build-aux/csharpexec.sh.in: Likewise.
43248         * build-aux/install-reloc: Likewise.
43249         * build-aux/javacomp.sh.in: Likewise.
43250         * build-aux/javaexec.sh.in: Likewise.
43251         * build-aux/ldd.sh.in: Likewise.
43252         * build-aux/reloc-ldflags: Likewise.
43253         * build-aux/relocatable.sh.in: Likewise.
43254         * build-aux/x-to-1.in: Likewise.
43255         * check-module: Likewise.
43256         * config/srclistvars.sh: Likewise.
43257         * gnulib-tool: Likewise.
43258         * lib/acl-internal.h: Likewise.
43259         * lib/acl.c: Likewise.
43260         * lib/acl.h: Likewise.
43261         * lib/acl_entries.c: Likewise.
43262         * lib/areadlink-with-size.c: Likewise.
43263         * lib/areadlink.c: Likewise.
43264         * lib/areadlink.h: Likewise.
43265         * lib/argmatch.c: Likewise.
43266         * lib/argmatch.h: Likewise.
43267         * lib/argp-ba.c: Likewise.
43268         * lib/argp-eexst.c: Likewise.
43269         * lib/argp-fmtstream.c: Likewise.
43270         * lib/argp-fmtstream.h: Likewise.
43271         * lib/argp-fs-xinl.c: Likewise.
43272         * lib/argp-help.c: Likewise.
43273         * lib/argp-namefrob.h: Likewise.
43274         * lib/argp-parse.c: Likewise.
43275         * lib/argp-pin.c: Likewise.
43276         * lib/argp-pv.c: Likewise.
43277         * lib/argp-pvh.c: Likewise.
43278         * lib/argp-xinl.c: Likewise.
43279         * lib/argp.h: Likewise.
43280         * lib/at-func.c: Likewise.
43281         * lib/atanl.c: Likewise.
43282         * lib/backupfile.c: Likewise.
43283         * lib/backupfile.h: Likewise.
43284         * lib/basename.c: Likewise.
43285         * lib/binary-io.h: Likewise.
43286         * lib/byteswap.in.h: Likewise.
43287         * lib/c-stack.c: Likewise.
43288         * lib/c-stack.h: Likewise.
43289         * lib/c-strcasestr.c: Likewise.
43290         * lib/c-strcasestr.h: Likewise.
43291         * lib/c-strstr.c: Likewise.
43292         * lib/c-strstr.h: Likewise.
43293         * lib/c-strtod.c: Likewise.
43294         * lib/calloc.c: Likewise.
43295         * lib/canon-host.c: Likewise.
43296         * lib/canon-host.h: Likewise.
43297         * lib/canonicalize-lgpl.c: Likewise.
43298         * lib/canonicalize.c: Likewise.
43299         * lib/canonicalize.h: Likewise.
43300         * lib/ceil.c: Likewise.
43301         * lib/ceilf.c: Likewise.
43302         * lib/ceill.c: Likewise.
43303         * lib/chdir-long.c: Likewise.
43304         * lib/chdir-long.h: Likewise.
43305         * lib/chdir-safer.c: Likewise.
43306         * lib/chdir-safer.h: Likewise.
43307         * lib/chown.c: Likewise.
43308         * lib/classpath.c: Likewise.
43309         * lib/classpath.h: Likewise.
43310         * lib/clean-temp.c: Likewise.
43311         * lib/clean-temp.h: Likewise.
43312         * lib/cloexec.c: Likewise.
43313         * lib/close-stream.c: Likewise.
43314         * lib/closein.c: Likewise.
43315         * lib/closein.h: Likewise.
43316         * lib/closeout.c: Likewise.
43317         * lib/closeout.h: Likewise.
43318         * lib/concat-filename.c: Likewise.
43319         * lib/copy-file.c: Likewise.
43320         * lib/copy-file.h: Likewise.
43321         * lib/count-one-bits.h: Likewise.
43322         * lib/crc.c: Likewise.
43323         * lib/crc.h: Likewise.
43324         * lib/creat-safer.c: Likewise.
43325         * lib/csharpcomp.c: Likewise.
43326         * lib/csharpcomp.h: Likewise.
43327         * lib/csharpexec.c: Likewise.
43328         * lib/csharpexec.h: Likewise.
43329         * lib/cycle-check.c: Likewise.
43330         * lib/cycle-check.h: Likewise.
43331         * lib/diacrit.c: Likewise.
43332         * lib/diacrit.h: Likewise.
43333         * lib/diffseq.h: Likewise.
43334         * lib/dirchownmod.c: Likewise.
43335         * lib/dirent.in.h: Likewise.
43336         * lib/dirfd.c: Likewise.
43337         * lib/dirfd.h: Likewise.
43338         * lib/dirname.c: Likewise.
43339         * lib/dirname.h: Likewise.
43340         * lib/dummy.c: Likewise.
43341         * lib/dup-safer.c: Likewise.
43342         * lib/dup2.c: Likewise.
43343         * lib/eealloc.h: Likewise.
43344         * lib/error.c: Likewise.
43345         * lib/error.h: Likewise.
43346         * lib/euidaccess.c: Likewise.
43347         * lib/exclude.c: Likewise.
43348         * lib/exclude.h: Likewise.
43349         * lib/execute.c: Likewise.
43350         * lib/execute.h: Likewise.
43351         * lib/exitfail.c: Likewise.
43352         * lib/exitfail.h: Likewise.
43353         * lib/expl.c: Likewise.
43354         * lib/fatal-signal.c: Likewise.
43355         * lib/fatal-signal.h: Likewise.
43356         * lib/fbufmode.c: Likewise.
43357         * lib/fbufmode.h: Likewise.
43358         * lib/fchdir.c: Likewise.
43359         * lib/fchmodat.c: Likewise.
43360         * lib/fchownat.c: Likewise.
43361         * lib/fcntl--.h: Likewise.
43362         * lib/fcntl-safer.h: Likewise.
43363         * lib/fcntl.in.h: Likewise.
43364         * lib/fd-safer.c: Likewise.
43365         * lib/fflush.c: Likewise.
43366         * lib/file-has-acl.c: Likewise.
43367         * lib/file-set.c: Likewise.
43368         * lib/file-type.c: Likewise.
43369         * lib/file-type.h: Likewise.
43370         * lib/fileblocks.c: Likewise.
43371         * lib/filemode.c: Likewise.
43372         * lib/filemode.h: Likewise.
43373         * lib/filename.h: Likewise.
43374         * lib/filenamecat.c: Likewise.
43375         * lib/filenamecat.h: Likewise.
43376         * lib/findprog.c: Likewise.
43377         * lib/findprog.h: Likewise.
43378         * lib/float.in.h: Likewise.
43379         * lib/floor.c: Likewise.
43380         * lib/floorf.c: Likewise.
43381         * lib/floorl.c: Likewise.
43382         * lib/fopen-safer.c: Likewise.
43383         * lib/fopen.c: Likewise.
43384         * lib/fpending.c: Likewise.
43385         * lib/fpending.h: Likewise.
43386         * lib/fprintf.c: Likewise.
43387         * lib/fprintftime.h: Likewise.
43388         * lib/fpucw.h: Likewise.
43389         * lib/fpurge.c: Likewise.
43390         * lib/fpurge.h: Likewise.
43391         * lib/freadable.c: Likewise.
43392         * lib/freadable.h: Likewise.
43393         * lib/freadahead.c: Likewise.
43394         * lib/freadahead.h: Likewise.
43395         * lib/freading.c: Likewise.
43396         * lib/freading.h: Likewise.
43397         * lib/free.c: Likewise.
43398         * lib/freopen.c: Likewise.
43399         * lib/frexp.c: Likewise.
43400         * lib/frexpl.c: Likewise.
43401         * lib/fseek.c: Likewise.
43402         * lib/fseterr.c: Likewise.
43403         * lib/fseterr.h: Likewise.
43404         * lib/fstatat.c: Likewise.
43405         * lib/fstrcmp.c: Likewise.
43406         * lib/fstrcmp.h: Likewise.
43407         * lib/fsusage.c: Likewise.
43408         * lib/fsusage.h: Likewise.
43409         * lib/ftell.c: Likewise.
43410         * lib/ftello.c: Likewise.
43411         * lib/fts-cycle.c: Likewise.
43412         * lib/fts.c: Likewise.
43413         * lib/fts_.h: Likewise.
43414         * lib/full-read.c: Likewise.
43415         * lib/full-read.h: Likewise.
43416         * lib/full-write.c: Likewise.
43417         * lib/full-write.h: Likewise.
43418         * lib/fwritable.c: Likewise.
43419         * lib/fwritable.h: Likewise.
43420         * lib/fwriteerror.c: Likewise.
43421         * lib/fwriteerror.h: Likewise.
43422         * lib/fwriting.c: Likewise.
43423         * lib/fwriting.h: Likewise.
43424         * lib/gcd.c: Likewise.
43425         * lib/gcd.h: Likewise.
43426         * lib/getcwd.c: Likewise.
43427         * lib/getdate.h: Likewise.
43428         * lib/getdate.y: Likewise.
43429         * lib/getdomainname.c: Likewise.
43430         * lib/getdomainname.h: Likewise.
43431         * lib/getgroups.c: Likewise.
43432         * lib/gethostname.c: Likewise.
43433         * lib/gethrxtime.c: Likewise.
43434         * lib/gethrxtime.h: Likewise.
43435         * lib/getloadavg.c: Likewise.
43436         * lib/getndelim2.c: Likewise.
43437         * lib/getndelim2.h: Likewise.
43438         * lib/getnline.c: Likewise.
43439         * lib/getnline.h: Likewise.
43440         * lib/getopt.c: Likewise.
43441         * lib/getopt.in.h: Likewise.
43442         * lib/getopt1.c: Likewise.
43443         * lib/getopt_int.h: Likewise.
43444         * lib/getpagesize.h: Likewise.
43445         * lib/getsubopt.c: Likewise.
43446         * lib/gettime.c: Likewise.
43447         * lib/getugroups.c: Likewise.
43448         * lib/getugroups.h: Likewise.
43449         * lib/getusershell.c: Likewise.
43450         * lib/gl_anyavltree_list1.h: Likewise.
43451         * lib/gl_anyavltree_list2.h: Likewise.
43452         * lib/gl_anyhash_list1.h: Likewise.
43453         * lib/gl_anyhash_list2.h: Likewise.
43454         * lib/gl_anylinked_list1.h: Likewise.
43455         * lib/gl_anylinked_list2.h: Likewise.
43456         * lib/gl_anyrbtree_list1.h: Likewise.
43457         * lib/gl_anyrbtree_list2.h: Likewise.
43458         * lib/gl_anytree_list1.h: Likewise.
43459         * lib/gl_anytree_list2.h: Likewise.
43460         * lib/gl_anytree_oset.h: Likewise.
43461         * lib/gl_anytreehash_list1.h: Likewise.
43462         * lib/gl_anytreehash_list2.h: Likewise.
43463         * lib/gl_array_list.c: Likewise.
43464         * lib/gl_array_list.h: Likewise.
43465         * lib/gl_array_oset.c: Likewise.
43466         * lib/gl_array_oset.h: Likewise.
43467         * lib/gl_avltree_list.c: Likewise.
43468         * lib/gl_avltree_list.h: Likewise.
43469         * lib/gl_avltree_oset.c: Likewise.
43470         * lib/gl_avltree_oset.h: Likewise.
43471         * lib/gl_avltreehash_list.c: Likewise.
43472         * lib/gl_avltreehash_list.h: Likewise.
43473         * lib/gl_carray_list.c: Likewise.
43474         * lib/gl_carray_list.h: Likewise.
43475         * lib/gl_linked_list.c: Likewise.
43476         * lib/gl_linked_list.h: Likewise.
43477         * lib/gl_linkedhash_list.c: Likewise.
43478         * lib/gl_linkedhash_list.h: Likewise.
43479         * lib/gl_list.c: Likewise.
43480         * lib/gl_list.h: Likewise.
43481         * lib/gl_oset.c: Likewise.
43482         * lib/gl_oset.h: Likewise.
43483         * lib/gl_rbtree_list.c: Likewise.
43484         * lib/gl_rbtree_list.h: Likewise.
43485         * lib/gl_rbtree_oset.c: Likewise.
43486         * lib/gl_rbtree_oset.h: Likewise.
43487         * lib/gl_rbtreehash_list.c: Likewise.
43488         * lib/gl_rbtreehash_list.h: Likewise.
43489         * lib/gl_sublist.c: Likewise.
43490         * lib/gl_sublist.h: Likewise.
43491         * lib/group-member.c: Likewise.
43492         * lib/group-member.h: Likewise.
43493         * lib/hard-locale.c: Likewise.
43494         * lib/hard-locale.h: Likewise.
43495         * lib/hash-pjw.c: Likewise.
43496         * lib/hash-pjw.h: Likewise.
43497         * lib/hash-triple.c: Likewise.
43498         * lib/hash.c: Likewise.
43499         * lib/hash.h: Likewise.
43500         * lib/human.c: Likewise.
43501         * lib/human.h: Likewise.
43502         * lib/i-ring.c: Likewise.
43503         * lib/i-ring.h: Likewise.
43504         * lib/idcache.c: Likewise.
43505         * lib/imaxabs.c: Likewise.
43506         * lib/imaxdiv.c: Likewise.
43507         * lib/inet_pton.c: Likewise.
43508         * lib/inet_pton.h: Likewise.
43509         * lib/intprops.h: Likewise.
43510         * lib/inttostr.c: Likewise.
43511         * lib/inttostr.h: Likewise.
43512         * lib/inttypes.in.h: Likewise.
43513         * lib/isapipe.c: Likewise.
43514         * lib/isdir.c: Likewise.
43515         * lib/isnan.c: Likewise.
43516         * lib/isnan.h: Likewise.
43517         * lib/isnanf.c: Likewise.
43518         * lib/isnanf.h: Likewise.
43519         * lib/isnanl-nolibm.h: Likewise.
43520         * lib/isnanl.c: Likewise.
43521         * lib/isnanl.h: Likewise.
43522         * lib/javacomp.c: Likewise.
43523         * lib/javacomp.h: Likewise.
43524         * lib/javaexec.c: Likewise.
43525         * lib/javaexec.h: Likewise.
43526         * lib/javaversion.c: Likewise.
43527         * lib/javaversion.h: Likewise.
43528         * lib/javaversion.java: Likewise.
43529         * lib/lbrkprop.h: Likewise.
43530         * lib/lchmod.h: Likewise.
43531         * lib/lchown.c: Likewise.
43532         * lib/ldexpl.c: Likewise.
43533         * lib/linebreak.c: Likewise.
43534         * lib/linebreak.h: Likewise.
43535         * lib/linebuffer.c: Likewise.
43536         * lib/linebuffer.h: Likewise.
43537         * lib/locale.in.h: Likewise.
43538         * lib/logl.c: Likewise.
43539         * lib/long-options.c: Likewise.
43540         * lib/long-options.h: Likewise.
43541         * lib/lstat.c: Likewise.
43542         * lib/lstat.h: Likewise.
43543         * lib/math.in.h: Likewise.
43544         * lib/mbchar.c: Likewise.
43545         * lib/mbchar.h: Likewise.
43546         * lib/mbfile.h: Likewise.
43547         * lib/mbiter.h: Likewise.
43548         * lib/mbscasecmp.c: Likewise.
43549         * lib/mbscasestr.c: Likewise.
43550         * lib/mbschr.c: Likewise.
43551         * lib/mbscspn.c: Likewise.
43552         * lib/mbslen.c: Likewise.
43553         * lib/mbsncasecmp.c: Likewise.
43554         * lib/mbsnlen.c: Likewise.
43555         * lib/mbspbrk.c: Likewise.
43556         * lib/mbspcasecmp.c: Likewise.
43557         * lib/mbsrchr.c: Likewise.
43558         * lib/mbssep.c: Likewise.
43559         * lib/mbsspn.c: Likewise.
43560         * lib/mbsstr.c: Likewise.
43561         * lib/mbstok_r.c: Likewise.
43562         * lib/mbswidth.c: Likewise.
43563         * lib/mbswidth.h: Likewise.
43564         * lib/mbuiter.h: Likewise.
43565         * lib/memcasecmp.c: Likewise.
43566         * lib/memcasecmp.h: Likewise.
43567         * lib/memchr.c: Likewise.
43568         * lib/memcmp.c: Likewise.
43569         * lib/memcoll.c: Likewise.
43570         * lib/memcoll.h: Likewise.
43571         * lib/memcpy.c: Likewise.
43572         * lib/memrchr.c: Likewise.
43573         * lib/mkancesdirs.c: Likewise.
43574         * lib/mkdir-p.c: Likewise.
43575         * lib/mkdir-p.h: Likewise.
43576         * lib/mkdir.c: Likewise.
43577         * lib/mkdirat.c: Likewise.
43578         * lib/mkdtemp.c: Likewise.
43579         * lib/mkstemp-safer.c: Likewise.
43580         * lib/mkstemp.c: Likewise.
43581         * lib/modechange.c: Likewise.
43582         * lib/modechange.h: Likewise.
43583         * lib/mountlist.c: Likewise.
43584         * lib/mountlist.h: Likewise.
43585         * lib/mpsort.c: Likewise.
43586         * lib/nanosleep.c: Likewise.
43587         * lib/obstack.c: Likewise.
43588         * lib/obstack.h: Likewise.
43589         * lib/open-safer.c: Likewise.
43590         * lib/open.c: Likewise.
43591         * lib/openat-die.c: Likewise.
43592         * lib/openat-priv.h: Likewise.
43593         * lib/openat-proc.c: Likewise.
43594         * lib/openat.c: Likewise.
43595         * lib/openat.h: Likewise.
43596         * lib/pagealign_alloc.c: Likewise.
43597         * lib/pagealign_alloc.h: Likewise.
43598         * lib/physmem.c: Likewise.
43599         * lib/physmem.h: Likewise.
43600         * lib/pipe-safer.c: Likewise.
43601         * lib/pipe.c: Likewise.
43602         * lib/pipe.h: Likewise.
43603         * lib/posixtm.c: Likewise.
43604         * lib/posixtm.h: Likewise.
43605         * lib/posixver.c: Likewise.
43606         * lib/printf-frexp.c: Likewise.
43607         * lib/printf-frexp.h: Likewise.
43608         * lib/printf-frexpl.c: Likewise.
43609         * lib/printf-frexpl.h: Likewise.
43610         * lib/printf.c: Likewise.
43611         * lib/progname.c: Likewise.
43612         * lib/progname.h: Likewise.
43613         * lib/progreloc.c: Likewise.
43614         * lib/putenv.c: Likewise.
43615         * lib/quote.c: Likewise.
43616         * lib/quote.h: Likewise.
43617         * lib/quotearg.c: Likewise.
43618         * lib/quotearg.h: Likewise.
43619         * lib/raise.c: Likewise.
43620         * lib/readline.c: Likewise.
43621         * lib/readline.h: Likewise.
43622         * lib/readlink.c: Likewise.
43623         * lib/readtokens.c: Likewise.
43624         * lib/readtokens.h: Likewise.
43625         * lib/readtokens0.c: Likewise.
43626         * lib/readtokens0.h: Likewise.
43627         * lib/readutmp.c: Likewise.
43628         * lib/readutmp.h: Likewise.
43629         * lib/realloc.c: Likewise.
43630         * lib/relocwrapper.c: Likewise.
43631         * lib/rename-dest-slash.c: Likewise.
43632         * lib/rename.c: Likewise.
43633         * lib/rmdir.c: Likewise.
43634         * lib/rpmatch.c: Likewise.
43635         * lib/safe-read.c: Likewise.
43636         * lib/safe-read.h: Likewise.
43637         * lib/safe-write.c: Likewise.
43638         * lib/safe-write.h: Likewise.
43639         * lib/same-inode.h: Likewise.
43640         * lib/same.c: Likewise.
43641         * lib/same.h: Likewise.
43642         * lib/save-cwd.c: Likewise.
43643         * lib/save-cwd.h: Likewise.
43644         * lib/savedir.c: Likewise.
43645         * lib/savedir.h: Likewise.
43646         * lib/savewd.c: Likewise.
43647         * lib/savewd.h: Likewise.
43648         * lib/search.in.h: Likewise.
43649         * lib/setenv.c: Likewise.
43650         * lib/setenv.h: Likewise.
43651         * lib/settime.c: Likewise.
43652         * lib/sh-quote.c: Likewise.
43653         * lib/sh-quote.h: Likewise.
43654         * lib/sig2str.c: Likewise.
43655         * lib/sig2str.h: Likewise.
43656         * lib/signal.in.h: Likewise.
43657         * lib/signbitd.c: Likewise.
43658         * lib/signbitf.c: Likewise.
43659         * lib/signbitl.c: Likewise.
43660         * lib/sigprocmask.c: Likewise.
43661         * lib/sincosl.c: Likewise.
43662         * lib/sleep.c: Likewise.
43663         * lib/sprintf.c: Likewise.
43664         * lib/sqrtl.c: Likewise.
43665         * lib/stat-time.h: Likewise.
43666         * lib/stdio--.h: Likewise.
43667         * lib/stdio-safer.h: Likewise.
43668         * lib/stdlib--.h: Likewise.
43669         * lib/stdlib-safer.h: Likewise.
43670         * lib/stdlib.in.h: Likewise.
43671         * lib/stpcpy.c: Likewise.
43672         * lib/stpncpy.c: Likewise.
43673         * lib/strchrnul.c: Likewise.
43674         * lib/strcspn.c: Likewise.
43675         * lib/strerror.c: Likewise.
43676         * lib/strftime.c: Likewise.
43677         * lib/strftime.h: Likewise.
43678         * lib/striconveh.c: Likewise.
43679         * lib/striconveh.h: Likewise.
43680         * lib/striconveha.c: Likewise.
43681         * lib/striconveha.h: Likewise.
43682         * lib/stripslash.c: Likewise.
43683         * lib/strnlen1.c: Likewise.
43684         * lib/strnlen1.h: Likewise.
43685         * lib/strtod.c: Likewise.
43686         * lib/strtoimax.c: Likewise.
43687         * lib/strtok_r.c: Likewise.
43688         * lib/strtol.c: Likewise.
43689         * lib/strtoll.c: Likewise.
43690         * lib/strtoul.c: Likewise.
43691         * lib/strtoull.c: Likewise.
43692         * lib/sysexits.in.h: Likewise.
43693         * lib/tempname.c: Likewise.
43694         * lib/tempname.h: Likewise.
43695         * lib/timespec.h: Likewise.
43696         * lib/tls.c: Likewise.
43697         * lib/tls.h: Likewise.
43698         * lib/tmpdir.c: Likewise.
43699         * lib/tmpdir.h: Likewise.
43700         * lib/tmpfile-safer.c: Likewise.
43701         * lib/tmpfile.c: Likewise.
43702         * lib/trigl.c: Likewise.
43703         * lib/trigl.h: Likewise.
43704         * lib/trim.c: Likewise.
43705         * lib/trim.h: Likewise.
43706         * lib/trunc.c: Likewise.
43707         * lib/truncf.c: Likewise.
43708         * lib/truncl.c: Likewise.
43709         * lib/tsearch.c: Likewise.
43710         * lib/unicodeio.c: Likewise.
43711         * lib/unicodeio.h: Likewise.
43712         * lib/unistd--.h: Likewise.
43713         * lib/unistd-safer.h: Likewise.
43714         * lib/unistdio/ulc-fprintf.c: Likewise.
43715         * lib/unistdio/ulc-vfprintf.c: Likewise.
43716         * lib/unlinkdir.c: Likewise.
43717         * lib/unlinkdir.h: Likewise.
43718         * lib/unlocked-io.h: Likewise.
43719         * lib/unsetenv.c: Likewise.
43720         * lib/userspec.c: Likewise.
43721         * lib/utime.c: Likewise.
43722         * lib/utimecmp.c: Likewise.
43723         * lib/utimecmp.h: Likewise.
43724         * lib/utimens.c: Likewise.
43725         * lib/verify.h: Likewise.
43726         * lib/verror.c: Likewise.
43727         * lib/verror.h: Likewise.
43728         * lib/version-etc-fsf.c: Likewise.
43729         * lib/version-etc.c: Likewise.
43730         * lib/version-etc.h: Likewise.
43731         * lib/vfprintf.c: Likewise.
43732         * lib/vprintf.c: Likewise.
43733         * lib/vsprintf.c: Likewise.
43734         * lib/w32spawn.h: Likewise.
43735         * lib/wait-process.c: Likewise.
43736         * lib/wait-process.h: Likewise.
43737         * lib/wcwidth.c: Likewise.
43738         * lib/write-any-file.c: Likewise.
43739         * lib/xalloc-die.c: Likewise.
43740         * lib/xalloc.h: Likewise.
43741         * lib/xasprintf.c: Likewise.
43742         * lib/xgetcwd.c: Likewise.
43743         * lib/xgetcwd.h: Likewise.
43744         * lib/xgetdomainname.c: Likewise.
43745         * lib/xgetdomainname.h: Likewise.
43746         * lib/xgethostname.c: Likewise.
43747         * lib/xmalloc.c: Likewise.
43748         * lib/xmalloca.c: Likewise.
43749         * lib/xmalloca.h: Likewise.
43750         * lib/xmemcoll.c: Likewise.
43751         * lib/xnanosleep.c: Likewise.
43752         * lib/xreadlink.c: Likewise.
43753         * lib/xreadlink.h: Likewise.
43754         * lib/xsetenv.c: Likewise.
43755         * lib/xsetenv.h: Likewise.
43756         * lib/xstriconv.c: Likewise.
43757         * lib/xstriconv.h: Likewise.
43758         * lib/xstrndup.c: Likewise.
43759         * lib/xstrndup.h: Likewise.
43760         * lib/xstrtod.c: Likewise.
43761         * lib/xstrtod.h: Likewise.
43762         * lib/xstrtol-error.c: Likewise.
43763         * lib/xstrtol.c: Likewise.
43764         * lib/xstrtol.h: Likewise.
43765         * lib/xtime.h: Likewise.
43766         * lib/xvasprintf.c: Likewise.
43767         * lib/xvasprintf.h: Likewise.
43768         * lib/yesno.c: Likewise.
43769         * lib/yesno.h: Likewise.
43770         * posix-modules: Likewise.
43771         * tests/test-alloca-opt.c: Likewise.
43772         * tests/test-arcfour.c: Likewise.
43773         * tests/test-arctwo.c: Likewise.
43774         * tests/test-argmatch.c: Likewise.
43775         * tests/test-argp-2.sh: Likewise.
43776         * tests/test-argp.c: Likewise.
43777         * tests/test-arpa_inet.c: Likewise.
43778         * tests/test-array_list.c: Likewise.
43779         * tests/test-array_oset.c: Likewise.
43780         * tests/test-atexit.c: Likewise.
43781         * tests/test-avltree_list.c: Likewise.
43782         * tests/test-avltree_oset.c: Likewise.
43783         * tests/test-avltreehash_list.c: Likewise.
43784         * tests/test-base64.c: Likewise.
43785         * tests/test-binary-io.c: Likewise.
43786         * tests/test-byteswap.c: Likewise.
43787         * tests/test-c-ctype.c: Likewise.
43788         * tests/test-c-strcasecmp.c: Likewise.
43789         * tests/test-c-strcasestr.c: Likewise.
43790         * tests/test-c-strncasecmp.c: Likewise.
43791         * tests/test-c-strstr.c: Likewise.
43792         * tests/test-canonicalize-lgpl.c: Likewise.
43793         * tests/test-canonicalize.c: Likewise.
43794         * tests/test-carray_list.c: Likewise.
43795         * tests/test-ceilf.c: Likewise.
43796         * tests/test-ceill.c: Likewise.
43797         * tests/test-count-one-bits.c: Likewise.
43798         * tests/test-crc.c: Likewise.
43799         * tests/test-dirname.c: Likewise.
43800         * tests/test-fbufmode.c: Likewise.
43801         * tests/test-fcntl.c: Likewise.
43802         * tests/test-fflush.c: Likewise.
43803         * tests/test-floorf.c: Likewise.
43804         * tests/test-floorl.c: Likewise.
43805         * tests/test-fopen.c: Likewise.
43806         * tests/test-fprintf-posix.c: Likewise.
43807         * tests/test-fprintf-posix.h: Likewise.
43808         * tests/test-fpurge.c: Likewise.
43809         * tests/test-freadable.c: Likewise.
43810         * tests/test-freadahead.c: Likewise.
43811         * tests/test-freading.c: Likewise.
43812         * tests/test-freopen.c: Likewise.
43813         * tests/test-frexp.c: Likewise.
43814         * tests/test-frexpl.c: Likewise.
43815         * tests/test-fseek.c: Likewise.
43816         * tests/test-fseeko.c: Likewise.
43817         * tests/test-fseterr.c: Likewise.
43818         * tests/test-fstrcmp.c: Likewise.
43819         * tests/test-ftell.c: Likewise.
43820         * tests/test-ftello.c: Likewise.
43821         * tests/test-fwritable.c: Likewise.
43822         * tests/test-fwriting.c: Likewise.
43823         * tests/test-getaddrinfo.c: Likewise.
43824         * tests/test-getpass.c: Likewise.
43825         * tests/test-gettimeofday.c: Likewise.
43826         * tests/test-hmac-md5.c: Likewise.
43827         * tests/test-hmac-sha1.c: Likewise.
43828         * tests/test-iconv.c: Likewise.
43829         * tests/test-iconvme.c: Likewise.
43830         * tests/test-inttypes.c: Likewise.
43831         * tests/test-isnan.c: Likewise.
43832         * tests/test-isnanf.c: Likewise.
43833         * tests/test-isnanl-nolibm.c: Likewise.
43834         * tests/test-isnanl.c: Likewise.
43835         * tests/test-isnanl.h: Likewise.
43836         * tests/test-ldexpl.c: Likewise.
43837         * tests/test-linked_list.c: Likewise.
43838         * tests/test-linkedhash_list.c: Likewise.
43839         * tests/test-locale.c: Likewise.
43840         * tests/test-localename.c: Likewise.
43841         * tests/test-lock.c: Likewise.
43842         * tests/test-lseek.c: Likewise.
43843         * tests/test-malloca.c: Likewise.
43844         * tests/test-math.c: Likewise.
43845         * tests/test-mbscasecmp.c: Likewise.
43846         * tests/test-mbscasestr1.c: Likewise.
43847         * tests/test-mbscasestr2.c: Likewise.
43848         * tests/test-mbscasestr3.c: Likewise.
43849         * tests/test-mbscasestr4.c: Likewise.
43850         * tests/test-mbschr.c: Likewise.
43851         * tests/test-mbscspn.c: Likewise.
43852         * tests/test-mbsncasecmp.c: Likewise.
43853         * tests/test-mbspbrk.c: Likewise.
43854         * tests/test-mbspcasecmp.c: Likewise.
43855         * tests/test-mbsrchr.c: Likewise.
43856         * tests/test-mbsspn.c: Likewise.
43857         * tests/test-mbsstr1.c: Likewise.
43858         * tests/test-mbsstr2.c: Likewise.
43859         * tests/test-mbsstr3.c: Likewise.
43860         * tests/test-md5.c: Likewise.
43861         * tests/test-memmem.c: Likewise.
43862         * tests/test-netinet_in.c: Likewise.
43863         * tests/test-open.c: Likewise.
43864         * tests/test-printf-frexp.c: Likewise.
43865         * tests/test-printf-frexpl.c: Likewise.
43866         * tests/test-printf-posix.c: Likewise.
43867         * tests/test-printf-posix.h: Likewise.
43868         * tests/test-rbtree_list.c: Likewise.
43869         * tests/test-rbtree_oset.c: Likewise.
43870         * tests/test-rbtreehash_list.c: Likewise.
43871         * tests/test-read-file.c: Likewise.
43872         * tests/test-rijndael.c: Likewise.
43873         * tests/test-search.c: Likewise.
43874         * tests/test-signbit.c: Likewise.
43875         * tests/test-sleep.c: Likewise.
43876         * tests/test-snprintf-posix.c: Likewise.
43877         * tests/test-snprintf-posix.h: Likewise.
43878         * tests/test-snprintf.c: Likewise.
43879         * tests/test-sprintf-posix.c: Likewise.
43880         * tests/test-sprintf-posix.h: Likewise.
43881         * tests/test-stat-time.c: Likewise.
43882         * tests/test-stdbool.c: Likewise.
43883         * tests/test-stdint.c: Likewise.
43884         * tests/test-stdio.c: Likewise.
43885         * tests/test-stdlib.c: Likewise.
43886         * tests/test-stpncpy.c: Likewise.
43887         * tests/test-strcasestr.c: Likewise.
43888         * tests/test-striconv.c: Likewise.
43889         * tests/test-striconveh.c: Likewise.
43890         * tests/test-striconveha.c: Likewise.
43891         * tests/test-string.c: Likewise.
43892         * tests/test-sys_select.c: Likewise.
43893         * tests/test-sys_socket.c: Likewise.
43894         * tests/test-sys_stat.c: Likewise.
43895         * tests/test-sys_time.c: Likewise.
43896         * tests/test-sysexits.c: Likewise.
43897         * tests/test-time.c: Likewise.
43898         * tests/test-tls.c: Likewise.
43899         * tests/test-trunc.c: Likewise.
43900         * tests/test-truncf.c: Likewise.
43901         * tests/test-truncl.c: Likewise.
43902         * tests/test-unistd.c: Likewise.
43903         * tests/test-vasnprintf-posix.c: Likewise.
43904         * tests/test-vasnprintf-posix2.c: Likewise.
43905         * tests/test-vasnprintf.c: Likewise.
43906         * tests/test-vasprintf-posix.c: Likewise.
43907         * tests/test-vasprintf.c: Likewise.
43908         * tests/test-verify.c: Likewise.
43909         * tests/test-vfprintf-posix.c: Likewise.
43910         * tests/test-vprintf-posix.c: Likewise.
43911         * tests/test-vsnprintf-posix.c: Likewise.
43912         * tests/test-vsnprintf.c: Likewise.
43913         * tests/test-vsprintf-posix.c: Likewise.
43914         * tests/test-wchar.c: Likewise.
43915         * tests/test-wctype.c: Likewise.
43916         * tests/test-wcwidth.c: Likewise.
43917         * tests/test-xstrtol.c: Likewise.
43918         * tests/test-xvasprintf.c: Likewise.
43919         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
43920         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
43921         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43922         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43923         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43924         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
43925         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43926         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43927         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43928         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
43929         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43930         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43931         * tests/uniname/test-uninames.c: Likewise.
43932         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
43933         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
43934         * tests/unistdio/test-u16-printf1.h: Likewise.
43935         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
43936         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
43937         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
43938         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
43939         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
43940         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
43941         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
43942         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
43943         * tests/unistdio/test-u32-printf1.h: Likewise.
43944         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
43945         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
43946         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
43947         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
43948         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
43949         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
43950         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
43951         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
43952         * tests/unistdio/test-u8-printf1.h: Likewise.
43953         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
43954         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
43955         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
43956         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
43957         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
43958         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
43959         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
43960         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
43961         * tests/unistdio/test-ulc-printf1.h: Likewise.
43962         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
43963         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
43964         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
43965         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
43966         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
43967         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
43968         * tests/uniwidth/test-u16-strwidth.c: Likewise.
43969         * tests/uniwidth/test-u16-width.c: Likewise.
43970         * tests/uniwidth/test-u32-strwidth.c: Likewise.
43971         * tests/uniwidth/test-u32-width.c: Likewise.
43972         * tests/uniwidth/test-u8-strwidth.c: Likewise.
43973         * tests/uniwidth/test-u8-width.c: Likewise.
43974         * tests/uniwidth/test-uc_width.c: Likewise.
43975         * config/srclist-update: Likewise.
43976         (fixlicense): Update to GPLv3+.
43977
43978         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43979         * tests/test-tsearch.c: Change copyright notice.
43980
43981         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43982         * lib/c-strcaseeq.h: Change copyright notice.
43983         * lib/streq.h: Likewise.
43984         * lib/uniconv.h: Likewise.
43985         * lib/uniconv/u-conv-from-enc.h: Likewise.
43986         * lib/uniconv/u-conv-to-enc.h: Likewise.
43987         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43988         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43989         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43990         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43991         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43992         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43993         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43994         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43995         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43996         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43997         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43998         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43999         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44000         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44001         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44002         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44003         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44004         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44005         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44006         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44007         * lib/uniname.h: Likewise.
44008         * lib/uniname/uniname.c: Likewise.
44009         * lib/unistdio.h: Likewise.
44010         * lib/unistdio/u-asnprintf.h: Likewise.
44011         * lib/unistdio/u-asprintf.h: Likewise.
44012         * lib/unistdio/u-printf-args.c: Likewise.
44013         * lib/unistdio/u-printf-args.h: Likewise.
44014         * lib/unistdio/u-printf-parse.h: Likewise.
44015         * lib/unistdio/u-snprintf.h: Likewise.
44016         * lib/unistdio/u-sprintf.h: Likewise.
44017         * lib/unistdio/u-vasprintf.h: Likewise.
44018         * lib/unistdio/u-vsnprintf.h: Likewise.
44019         * lib/unistdio/u-vsprintf.h: Likewise.
44020         * lib/unistdio/u16-asnprintf.c: Likewise.
44021         * lib/unistdio/u16-asprintf.c: Likewise.
44022         * lib/unistdio/u16-printf-parse.c: Likewise.
44023         * lib/unistdio/u16-snprintf.c: Likewise.
44024         * lib/unistdio/u16-sprintf.c: Likewise.
44025         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44026         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44027         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44028         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44029         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44030         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44031         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44032         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44033         * lib/unistdio/u16-vasnprintf.c: Likewise.
44034         * lib/unistdio/u16-vasprintf.c: Likewise.
44035         * lib/unistdio/u16-vsnprintf.c: Likewise.
44036         * lib/unistdio/u16-vsprintf.c: Likewise.
44037         * lib/unistdio/u32-asnprintf.c: Likewise.
44038         * lib/unistdio/u32-asprintf.c: Likewise.
44039         * lib/unistdio/u32-printf-parse.c: Likewise.
44040         * lib/unistdio/u32-snprintf.c: Likewise.
44041         * lib/unistdio/u32-sprintf.c: Likewise.
44042         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44043         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44044         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44045         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44046         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44047         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44048         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44049         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44050         * lib/unistdio/u32-vasnprintf.c: Likewise.
44051         * lib/unistdio/u32-vasprintf.c: Likewise.
44052         * lib/unistdio/u32-vsnprintf.c: Likewise.
44053         * lib/unistdio/u32-vsprintf.c: Likewise.
44054         * lib/unistdio/u8-asnprintf.c: Likewise.
44055         * lib/unistdio/u8-asprintf.c: Likewise.
44056         * lib/unistdio/u8-printf-parse.c: Likewise.
44057         * lib/unistdio/u8-snprintf.c: Likewise.
44058         * lib/unistdio/u8-sprintf.c: Likewise.
44059         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44060         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44061         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44062         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44063         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44064         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44065         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44066         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44067         * lib/unistdio/u8-vasnprintf.c: Likewise.
44068         * lib/unistdio/u8-vasprintf.c: Likewise.
44069         * lib/unistdio/u8-vsnprintf.c: Likewise.
44070         * lib/unistdio/u8-vsprintf.c: Likewise.
44071         * lib/unistdio/ulc-asnprintf.c: Likewise.
44072         * lib/unistdio/ulc-asprintf.c: Likewise.
44073         * lib/unistdio/ulc-printf-parse.c: Likewise.
44074         * lib/unistdio/ulc-snprintf.c: Likewise.
44075         * lib/unistdio/ulc-sprintf.c: Likewise.
44076         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44077         * lib/unistdio/ulc-vasprintf.c: Likewise.
44078         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44079         * lib/unistdio/ulc-vsprintf.c: Likewise.
44080         * lib/unistr.h: Likewise.
44081         * lib/unistr/u-cpy-alloc.h: Likewise.
44082         * lib/unistr/u-cpy.h: Likewise.
44083         * lib/unistr/u-endswith.h: Likewise.
44084         * lib/unistr/u-move.h: Likewise.
44085         * lib/unistr/u-set.h: Likewise.
44086         * lib/unistr/u-startswith.h: Likewise.
44087         * lib/unistr/u-stpcpy.h: Likewise.
44088         * lib/unistr/u-stpncpy.h: Likewise.
44089         * lib/unistr/u-strcat.h: Likewise.
44090         * lib/unistr/u-strcpy.h: Likewise.
44091         * lib/unistr/u-strcspn.h: Likewise.
44092         * lib/unistr/u-strdup.h: Likewise.
44093         * lib/unistr/u-strlen.h: Likewise.
44094         * lib/unistr/u-strncat.h: Likewise.
44095         * lib/unistr/u-strncpy.h: Likewise.
44096         * lib/unistr/u-strnlen.h: Likewise.
44097         * lib/unistr/u-strpbrk.h: Likewise.
44098         * lib/unistr/u-strspn.h: Likewise.
44099         * lib/unistr/u-strstr.h: Likewise.
44100         * lib/unistr/u-strtok.h: Likewise.
44101         * lib/unistr/u16-check.c: Likewise.
44102         * lib/unistr/u16-chr.c: Likewise.
44103         * lib/unistr/u16-cmp.c: Likewise.
44104         * lib/unistr/u16-cpy-alloc.c: Likewise.
44105         * lib/unistr/u16-cpy.c: Likewise.
44106         * lib/unistr/u16-endswith.c: Likewise.
44107         * lib/unistr/u16-mblen.c: Likewise.
44108         * lib/unistr/u16-mbsnlen.c: Likewise.
44109         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44110         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44111         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44112         * lib/unistr/u16-mbtouc.c: Likewise.
44113         * lib/unistr/u16-mbtoucr.c: Likewise.
44114         * lib/unistr/u16-move.c: Likewise.
44115         * lib/unistr/u16-next.c: Likewise.
44116         * lib/unistr/u16-prev.c: Likewise.
44117         * lib/unistr/u16-set.c: Likewise.
44118         * lib/unistr/u16-startswith.c: Likewise.
44119         * lib/unistr/u16-stpcpy.c: Likewise.
44120         * lib/unistr/u16-stpncpy.c: Likewise.
44121         * lib/unistr/u16-strcat.c: Likewise.
44122         * lib/unistr/u16-strchr.c: Likewise.
44123         * lib/unistr/u16-strcmp.c: Likewise.
44124         * lib/unistr/u16-strcpy.c: Likewise.
44125         * lib/unistr/u16-strcspn.c: Likewise.
44126         * lib/unistr/u16-strdup.c: Likewise.
44127         * lib/unistr/u16-strlen.c: Likewise.
44128         * lib/unistr/u16-strmblen.c: Likewise.
44129         * lib/unistr/u16-strmbtouc.c: Likewise.
44130         * lib/unistr/u16-strncat.c: Likewise.
44131         * lib/unistr/u16-strncmp.c: Likewise.
44132         * lib/unistr/u16-strncpy.c: Likewise.
44133         * lib/unistr/u16-strnlen.c: Likewise.
44134         * lib/unistr/u16-strpbrk.c: Likewise.
44135         * lib/unistr/u16-strrchr.c: Likewise.
44136         * lib/unistr/u16-strspn.c: Likewise.
44137         * lib/unistr/u16-strstr.c: Likewise.
44138         * lib/unistr/u16-strtok.c: Likewise.
44139         * lib/unistr/u16-to-u32.c: Likewise.
44140         * lib/unistr/u16-to-u8.c: Likewise.
44141         * lib/unistr/u16-uctomb-aux.c: Likewise.
44142         * lib/unistr/u16-uctomb.c: Likewise.
44143         * lib/unistr/u32-check.c: Likewise.
44144         * lib/unistr/u32-chr.c: Likewise.
44145         * lib/unistr/u32-cmp.c: Likewise.
44146         * lib/unistr/u32-cpy-alloc.c: Likewise.
44147         * lib/unistr/u32-cpy.c: Likewise.
44148         * lib/unistr/u32-endswith.c: Likewise.
44149         * lib/unistr/u32-mblen.c: Likewise.
44150         * lib/unistr/u32-mbsnlen.c: Likewise.
44151         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44152         * lib/unistr/u32-mbtouc.c: Likewise.
44153         * lib/unistr/u32-mbtoucr.c: Likewise.
44154         * lib/unistr/u32-move.c: Likewise.
44155         * lib/unistr/u32-next.c: Likewise.
44156         * lib/unistr/u32-prev.c: Likewise.
44157         * lib/unistr/u32-set.c: Likewise.
44158         * lib/unistr/u32-startswith.c: Likewise.
44159         * lib/unistr/u32-stpcpy.c: Likewise.
44160         * lib/unistr/u32-stpncpy.c: Likewise.
44161         * lib/unistr/u32-strcat.c: Likewise.
44162         * lib/unistr/u32-strchr.c: Likewise.
44163         * lib/unistr/u32-strcmp.c: Likewise.
44164         * lib/unistr/u32-strcpy.c: Likewise.
44165         * lib/unistr/u32-strcspn.c: Likewise.
44166         * lib/unistr/u32-strdup.c: Likewise.
44167         * lib/unistr/u32-strlen.c: Likewise.
44168         * lib/unistr/u32-strmblen.c: Likewise.
44169         * lib/unistr/u32-strmbtouc.c: Likewise.
44170         * lib/unistr/u32-strncat.c: Likewise.
44171         * lib/unistr/u32-strncmp.c: Likewise.
44172         * lib/unistr/u32-strncpy.c: Likewise.
44173         * lib/unistr/u32-strnlen.c: Likewise.
44174         * lib/unistr/u32-strpbrk.c: Likewise.
44175         * lib/unistr/u32-strrchr.c: Likewise.
44176         * lib/unistr/u32-strspn.c: Likewise.
44177         * lib/unistr/u32-strstr.c: Likewise.
44178         * lib/unistr/u32-strtok.c: Likewise.
44179         * lib/unistr/u32-to-u16.c: Likewise.
44180         * lib/unistr/u32-to-u8.c: Likewise.
44181         * lib/unistr/u32-uctomb.c: Likewise.
44182         * lib/unistr/u8-check.c: Likewise.
44183         * lib/unistr/u8-chr.c: Likewise.
44184         * lib/unistr/u8-cmp.c: Likewise.
44185         * lib/unistr/u8-cpy-alloc.c: Likewise.
44186         * lib/unistr/u8-cpy.c: Likewise.
44187         * lib/unistr/u8-endswith.c: Likewise.
44188         * lib/unistr/u8-mblen.c: Likewise.
44189         * lib/unistr/u8-mbsnlen.c: Likewise.
44190         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44191         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44192         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44193         * lib/unistr/u8-mbtouc.c: Likewise.
44194         * lib/unistr/u8-mbtoucr.c: Likewise.
44195         * lib/unistr/u8-move.c: Likewise.
44196         * lib/unistr/u8-next.c: Likewise.
44197         * lib/unistr/u8-prev.c: Likewise.
44198         * lib/unistr/u8-set.c: Likewise.
44199         * lib/unistr/u8-startswith.c: Likewise.
44200         * lib/unistr/u8-stpcpy.c: Likewise.
44201         * lib/unistr/u8-stpncpy.c: Likewise.
44202         * lib/unistr/u8-strcat.c: Likewise.
44203         * lib/unistr/u8-strchr.c: Likewise.
44204         * lib/unistr/u8-strcmp.c: Likewise.
44205         * lib/unistr/u8-strcpy.c: Likewise.
44206         * lib/unistr/u8-strcspn.c: Likewise.
44207         * lib/unistr/u8-strdup.c: Likewise.
44208         * lib/unistr/u8-strlen.c: Likewise.
44209         * lib/unistr/u8-strmblen.c: Likewise.
44210         * lib/unistr/u8-strmbtouc.c: Likewise.
44211         * lib/unistr/u8-strncat.c: Likewise.
44212         * lib/unistr/u8-strncmp.c: Likewise.
44213         * lib/unistr/u8-strncpy.c: Likewise.
44214         * lib/unistr/u8-strnlen.c: Likewise.
44215         * lib/unistr/u8-strpbrk.c: Likewise.
44216         * lib/unistr/u8-strrchr.c: Likewise.
44217         * lib/unistr/u8-strspn.c: Likewise.
44218         * lib/unistr/u8-strstr.c: Likewise.
44219         * lib/unistr/u8-strtok.c: Likewise.
44220         * lib/unistr/u8-to-u16.c: Likewise.
44221         * lib/unistr/u8-to-u32.c: Likewise.
44222         * lib/unistr/u8-uctomb-aux.c: Likewise.
44223         * lib/unistr/u8-uctomb.c: Likewise.
44224         * lib/unitypes.h: Likewise.
44225         * lib/uniwidth.h: Likewise.
44226         * lib/uniwidth/cjk.h: Likewise.
44227         * lib/uniwidth/u16-strwidth.c: Likewise.
44228         * lib/uniwidth/u16-width.c: Likewise.
44229         * lib/uniwidth/u32-strwidth.c: Likewise.
44230         * lib/uniwidth/u32-width.c: Likewise.
44231         * lib/uniwidth/u8-strwidth.c: Likewise.
44232         * lib/uniwidth/u8-width.c: Likewise.
44233         * lib/uniwidth/width.c: Likewise.
44234
44235 2007-10-07  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44238         The file is still under LGPL (see modules/inttypes).
44239
44240 2007-10-06  Bruno Haible  <bruno@clisp.org>
44241
44242         * modules/trunc (Dependencies): Add 'extensions'.
44243         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
44244         Reported by Ben Pfaff <blp@gnu.org>.
44245
44246 2007-10-06  Bruno Haible  <bruno@clisp.org>
44247
44248         * modules/freopen-tests: New file.
44249         * tests/test-freopen.c: New file.
44250
44251         * modules/fopen-tests: New file.
44252         * tests/test-fopen.c: New file.
44253
44254         * modules/fopen: New file.
44255         * lib/fopen.c: New file.
44256         * m4/fopen.m4: New file.
44257         * modules/freopen: New file.
44258         * lib/freopen.c: New file.
44259         * m4/freopen.m4: New file.
44260         * lib/stdio.in.h (fopen, freopen): New declarations.
44261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
44262         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44263         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
44264         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
44265         * doc/functions/fopen.texi: Mention the 'fopen' module.
44266         * doc/functions/freopen.texi: Mention the 'freopen' module.
44267
44268 2007-10-06  Bruno Haible  <bruno@clisp.org>
44269
44270         * modules/open-tests: New file.
44271         * tests/test-open.c: New file.
44272
44273         * modules/open: New file.
44274         * lib/open.c: New file.
44275         * m4/open.m4: New file.
44276         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
44277         lib/open.c does.
44278         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
44279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
44280         macros.
44281         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
44282         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
44283         REPLACE_OPEN.
44284         * doc/functions/open.texi: Mention the 'open' module.
44285
44286 2007-10-04  Bruno Haible  <bruno@clisp.org>
44287
44288         * modules/ceill-tests: New file.
44289         * tests/test-ceill.c: New file.
44290
44291         * modules/ceill: New file.
44292         * lib/ceill.c: Replace entire file.
44293         * m4/ceill.m4: New file.
44294         * lib/math.in.h (ceill): Replace declaration.
44295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
44296         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
44297         * doc/functions/ceill.texi: Mention the 'ceill' module.
44298         * modules/mathl (Files): Remove lib/ceill.c.
44299         (Depends-on): Add ceill.
44300
44301 2007-10-04  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/ceilf-tests: New file.
44304         * tests/test-ceilf.c: New file.
44305
44306         * modules/ceilf: New file.
44307         * lib/ceil.c: New file.
44308         * lib/ceilf.c: New file.
44309         * m4/ceilf.m4: New file.
44310         * lib/math.in.h (ceilf): New declaration.
44311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
44312         HAVE_DECL_CEILF.
44313         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
44314         HAVE_DECL_CEILF.
44315         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
44316
44317 2007-10-04  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/floorl-tests: New file.
44320         * tests/test-floorl.c: New file.
44321
44322         * modules/floorl: New file.
44323         * lib/floorl.c: Replace entire file.
44324         * m4/floorl.m4: New file.
44325         * lib/math.in.h (floorl): Replace declaration.
44326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
44327         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
44328         * doc/functions/floorl.texi: Mention the 'floorl' module.
44329         * modules/mathl (Files): Remove lib/floorl.c.
44330         (Depends-on): Add floorl.
44331
44332 2007-10-04  Bruno Haible  <bruno@clisp.org>
44333
44334         * modules/floorf-tests: New file.
44335         * tests/test-floorf.c: New file.
44336
44337         * modules/floorf: New file.
44338         * lib/floor.c: New file.
44339         * lib/floorf.c: New file.
44340         * m4/floorf.m4: New file.
44341         * lib/math.in.h (floorf): New declaration.
44342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
44343         HAVE_DECL_FLOORF.
44344         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
44345         HAVE_DECL_FLOORF.
44346         * doc/functions/floorf.texi: Mention the 'floorf' module.
44347
44348 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
44349             Bruno Haible  <bruno@clisp.org>
44350
44351         Advertise for the Git server instead of the CVS server.
44352         * doc/gnulib-intro.texi (Steady Development): Mention the Git
44353         repository instead of the CVS one.
44354         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
44355         about all VCS systems generically.
44356         * doc/gnulib.texi (Introduction): Capitalize `Git'.
44357
44358 2007-10-04  Bruno Haible  <bruno@clisp.org>
44359
44360         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
44361         means.
44362         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
44363
44364 2007-10-04  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/truncl-tests: New file.
44367         * tests/test-truncl.c: New file.
44368
44369         * modules/truncl: New file.
44370         * lib/truncl.c: New file.
44371         * m4/truncl.m4: New file.
44372         * lib/math.in.h (truncl): New declaration.
44373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
44374         HAVE_DECL_TRUNCL.
44375         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
44376         HAVE_DECL_TRUNCL.
44377         * doc/functions/truncl.texi: Mention the 'truncl' module.
44378
44379 2007-10-04  Bruno Haible  <bruno@clisp.org>
44380
44381         * modules/truncf-tests: New file.
44382         * tests/test-truncf.c: New file.
44383
44384         * modules/truncf: New file.
44385         * lib/trunc.c: Make paramerizable through USE_* macros.
44386         * lib/truncf.c: New file.
44387         * m4/truncf.m4: New file.
44388         * lib/math.in.h (truncf): New declaration.
44389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
44390         HAVE_DECL_TRUNCF.
44391         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
44392         HAVE_DECL_TRUNCF.
44393         * doc/functions/truncf.texi: Mention the 'truncf' module.
44394
44395 2007-10-03  Bruno Haible  <bruno@clisp.org>
44396
44397         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44398         augmentation also for tests modules.
44399         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
44400         * modules/atexit-tests (Makefile.am): Likewise.
44401         * modules/binary-io-tests (Makefile.am): Likewise.
44402         * modules/c-strcase-tests (Makefile.am): Likewise.
44403         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
44404         * modules/canonicalize-tests (Makefile.am): Likewise.
44405         * modules/closein-tests (Makefile.am): Likewise.
44406         * modules/fprintf-posix-tests (Makefile.am): Likewise.
44407         * modules/freadahead-tests (Makefile.am): Likewise.
44408         * modules/fseek-tests (Makefile.am): Likewise.
44409         * modules/fseeko-tests (Makefile.am): Likewise.
44410         * modules/ftell-tests (Makefile.am): Likewise.
44411         * modules/ftello-tests (Makefile.am): Likewise.
44412         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
44413         * modules/isnanl-tests (Makefile.am): Likewise.
44414         * modules/lseek-tests (Makefile.am): Likewise.
44415         * modules/mbscasecmp-tests (Makefile.am): Likewise.
44416         * modules/mbscasestr-tests (Makefile.am): Likewise.
44417         * modules/mbschr-tests (Makefile.am): Likewise.
44418         * modules/mbscspn-tests (Makefile.am): Likewise.
44419         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
44420         * modules/mbspbrk-tests (Makefile.am): Likewise.
44421         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
44422         * modules/mbsrchr-tests (Makefile.am): Likewise.
44423         * modules/mbsspn-tests (Makefile.am): Likewise.
44424         * modules/mbsstr-tests (Makefile.am): Likewise.
44425         * modules/printf-posix-tests (Makefile.am): Likewise.
44426         * modules/snprintf-posix-tests (Makefile.am): Likewise.
44427         * modules/sprintf-posix-tests (Makefile.am): Likewise.
44428         * modules/tsearch-tests (Makefile.am): Likewise.
44429         * modules/uniname/uniname-tests (Makefile.am): Likewise.
44430         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
44431         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
44432         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
44433         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
44434         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
44435         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
44436         * modules/vprintf-posix-tests (Makefile.am): Likewise.
44437         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
44438         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
44439         * modules/xstrtoimax-tests (Makefile.am): Likewise.
44440         * modules/xstrtol-tests (Makefile.am): Likewise.
44441         * modules/xstrtoumax-tests (Makefile.am): Likewise.
44442         * modules/yesno-tests (Makefile.am): Likewise.
44443
44444 2007-10-03  Bruno Haible  <bruno@clisp.org>
44445
44446         * modules/trunc-tests: New file.
44447         * tests/test-trunc.c: New file.
44448
44449         * modules/trunc: New file.
44450         * lib/trunc.c: New file.
44451         * m4/trunc.m4: New file.
44452         * lib/math.in.h (trunc): New declaration.
44453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
44454         HAVE_DECL_TRUNC.
44455         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
44456         HAVE_DECL_TRUNC.
44457         * doc/functions/trunc.texi: Mention the 'trunc' module.
44458
44459 2007-10-03  Bruno Haible  <bruno@clisp.org>
44460
44461         * tests/test-fpending.c: New file, mostly copied
44462         from coreutils/lib/t-fpending.c.
44463         * modules/fpending-tests: New file.
44464
44465 2007-10-03  Bruno Haible  <bruno@clisp.org>
44466
44467         Port the stdio extensions to QNX (untested).
44468         * lib/fseterr.c (fseterr): Add support for QNX.
44469         * lib/fbufmode.c (fbufmode): Likewise.
44470         * lib/freadable.c (freadable): Likewise.
44471         * lib/fwritable.c (fwritable): Likewise.
44472         * lib/freading.c (freading): Likewise.
44473         * lib/fwriting.c (fwriting): Likewise.
44474         * lib/freadahead.c (freadahed): Likewise.
44475         * lib/fpurge.c (fpurge): Likewise.
44476         * lib/fseeko.c (rpl_fseeko): Likewise.
44477
44478 2007-10-03  Bruno Haible  <bruno@clisp.org>
44479             Jim Meyering  <jim@meyering.net>
44480             Eric Blake  <ebb9@byu.net>
44481
44482         * doc/relocatable.texi: Use @command instead of @program.
44483
44484 2007-10-02  Jim Meyering  <jim@meyering.net>
44485
44486         Perform one more "_.h" -> ".in.h" substitution.
44487         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
44488         instead of unistd_.h here, too.
44489
44490 2007-10-01  Bruno Haible  <bruno@clisp.org>
44491
44492         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
44493         Needed for the alloca-opt module.
44494
44495 2007-09-30  Bruno Haible  <bruno@clisp.org>
44496
44497         * lib/alloca.in.h: Renamed from lib/alloca_.h.
44498         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
44499         alloca_.h.
44500         * lib/argz.in.h: Renamed from lib/argz_.h.
44501         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
44502         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
44503         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
44504         byteswap_.h.
44505         * lib/dirent.in.h: Renamed from lib/dirent_.h.
44506         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
44507         dirent_.h.
44508         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
44509         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
44510         fcntl_.h.
44511         * lib/float.in.h: Renamed from lib/float_.h.
44512         * modules/float (Files, Makefile.am): Use float.in.h instead of
44513         float_.h.
44514         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
44515         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
44516         fnmatch_.h.
44517         * lib/getopt.in.h: Renamed from lib/getopt_.h.
44518         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
44519         getopt_.h.
44520         * lib/glob.in.h: Renamed from lib/glob_.h.
44521         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
44522         * lib/iconv.in.h: Renamed from lib/iconv_.h.
44523         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
44524         iconv_.h.
44525         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
44526         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
44527         inttypes_.h.
44528         * lib/locale.in.h: Renamed from lib/locale_.h.
44529         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
44530         locale_.h.
44531         * lib/math.in.h: Renamed from lib/math_.h.
44532         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
44533         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
44534         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
44535         of netinet_in_.h. Add dependency.
44536         * lib/poll.in.h: Renamed from lib/poll_.h.
44537         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
44538         * lib/search.in.h: Renamed from lib/search_.h.
44539         * modules/search (Files, Makefile.am): Use search.in.h instead of
44540         search_.h.
44541         * lib/signal.in.h: Renamed from lib/signal_.h.
44542         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
44543         _signal.h.
44544         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
44545         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
44546         stdbool_.h.
44547         * lib/stdint.in.h: Renamed from lib/stdint_.h.
44548         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
44549         stdint_.h.
44550         * lib/stdio.in.h: Renamed from lib/stdio_.h.
44551         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
44552         stdio_.h.
44553         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
44554         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
44555         stdlib_.h.
44556         * lib/string.in.h: Renamed from lib/string_.h.
44557         * modules/string (Files, Makefile.am): Use string.in.h instead of
44558         string_.h.
44559         * doc/gnulib-tool.texi (Initial import): Update.
44560         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
44561         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
44562         of sys_select_.h. Add dependency.
44563         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
44564         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
44565         of sys_socket_.h.
44566         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
44567         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
44568         sys_stat_.h.
44569         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
44570         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
44571         sys_time_.h.
44572         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
44573         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
44574         sysexits_.h.
44575         * lib/time.in.h: Renamed from lib/time_.h.
44576         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
44577         * lib/unistd.in.h: Renamed from lib/unistd_.h.
44578         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
44579         unistd_.h.
44580         * lib/wchar.in.h: Renamed from lib/wchar_.h.
44581         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
44582         wchar_.h.
44583         * lib/wctype.in.h: Renamed from lib/wctype_.h.
44584         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
44585         wctype_.h.
44586         * build-aux/bootstrap (slurp): Update.
44587         * lib/.cppi-disable: Update.
44588
44589 2007-09-30  Bruno Haible  <bruno@clisp.org>
44590
44591         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
44592         Needed on BeOS.
44593
44594 2007-09-30  Bruno Haible  <bruno@clisp.org>
44595
44596         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
44597
44598 2007-09-29  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
44601
44602 2007-09-29  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
44605         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
44606         * build-aux/install-reloc: Compile also areadlink.c.
44607         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
44608
44609 2007-09-29  Bruno Haible  <bruno@clisp.org>
44610
44611         * gnulib-tool (func_emit_initmacro_done): Indentation.
44612
44613 2007-09-29  Bruno Haible  <bruno@clisp.org>
44614
44615         * README: Add CVS checkout update instructions.
44616         Info from Bob Proulx <bob@proulx.com>.
44617
44618 2007-09-28  Eric Blake  <ebb9@byu.net>
44619
44620         Provide move-if-change.
44621         * build-aux/move-if-change: New file, based on best practice
44622         rather than any canonical upstream location.
44623
44624 2007-09-28  Jim Meyering  <jim@meyering.net>
44625
44626         Fix canonicalize loop-detection corner case.
44627         Do not attempt to stat the symlink values stored via seen_triple.
44628         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
44629         on linux-2.6.18, (but not 2.6.22).
44630         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
44631         triple_compare.  The former compares dev,ino,filename, while the latter
44632         would actually stat dirname(filename) when dev and ino were equal.
44633         * lib/hash-triple.c: Install <string.h>.
44634         (STREQ): Define.
44635         (triple_compare_ino_str): New function.
44636         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
44637
44638 2007-09-28  Eric Blake  <ebb9@byu.net>
44639
44640         Enforce that AC_REPLACE_FUNCS files exist.
44641         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
44642         override check for typos.
44643
44644         Fix test-closein on Solaris 10.
44645         * tests/test-closein.c (main): Don't assume stdin can be inherited
44646         closed on all systems.
44647         * tests/test-closein.sh: Likewise.
44648         Reported by Piotr Tarnowski.
44649
44650 2007-09-28  Jim Meyering  <jim@meyering.net>
44651
44652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
44653
44654 2007-09-27  Jim Meyering  <jim@meyering.net>
44655
44656         canonicalize: Avoid a false-positive cycle failure.
44657         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
44658         Sort.  Remove cycle-check.
44659         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
44660         not cycle-check.h.
44661         (seen_triple): New function.
44662         (canonicalize_filename_mode): Use it instead of cycle-check.
44663         * tests/test-canonicalize.c: Add a test for this bug.
44664         * tests/test-canonicalize.sh: Set up and run the test.
44665
44666         New module, file-set, from coreutils.
44667         * modules/file-set: Define it.
44668         * lib/file-set.c, lib/file-set.h: Implement.
44669
44670         New module, hash-triple, from coreutils.
44671         * modules/hash-triple: Define it.
44672         * lib/hash-triple.c, lib/hash-triple.h: Implement.
44673
44674 2007-09-25  Eric Blake  <ebb9@byu.net>
44675
44676         Fix strerror on Interix.
44677         * lib/string_.h (strerror): Declare replacement.
44678         * doc/functions/strerror.texi (strerror): Document the Interix
44679         shortcoming.
44680         * modules/string (Makefile.am): Support new hooks.
44681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
44682         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
44683         gl_FUNC_STRERROR_SEPARATE.
44684         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
44685         * lib/strerror.c (rpl_strerror): Provide replacement.
44686         * modules/strerror (Depends-on): Add string.
44687         (configure.ac): Detect use of module.
44688         * tests/test-strerror.c: New file.
44689         * modules/strerror-tests: New test module.
44690         * modules/argp (Depends-on): Add strerror.
44691         * modules/error (Depends-on): Likewise.
44692         Reported by Martin Koeppe.
44693
44694 2007-09-24  Bruno Haible  <bruno@clisp.org>
44695
44696         * README: Update git instructions.
44697
44698 2007-09-24  Eric Blake  <ebb9@byu.net>
44699
44700         Revert fpending breakage from 2007-09-08.
44701         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
44702         __fpending.c.
44703
44704 2007-09-24  Jim Meyering  <jim@meyering.net>
44705
44706         filenamecat.c: Add a test.
44707         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
44708         showing how the function works when DIR is the empty string.
44709
44710 2007-09-21  Simon Josefsson  <simon@josefsson.org>
44711
44712         * tests/test-canonicalize.sh: Turn on executable bit.
44713
44714 2007-09-19  Eric Blake  <ebb9@byu.net>
44715
44716         * README: Update CVS instructions.
44717
44718 2007-09-18  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/areadlink: New file.
44721         * lib/areadlink.h (areadlink): New declaration.
44722         * lib/areadlink.c: New file, based on lib/xreadlink.c.
44723
44724 2007-09-17  Jim Meyering  <jim@meyering.net>
44725
44726         * lib/savewd.c (ESTALE) [!defined]: Define.
44727         Reported to be required on Interix by Martin Koeppe.
44728
44729 2007-09-17  Bruno Haible  <bruno@clisp.org>
44730
44731         * gnulib-tool (func_version): Use $version.
44732
44733 2007-09-16  Bruno Haible  <bruno@clisp.org>
44734
44735         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
44736         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
44737         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
44738         Reported by Greg Schafer <gschafer@zip.com.au>.
44739
44740 2007-09-15  Bruno Haible  <bruno@clisp.org>
44741
44742         * gnulib-tool (sed): Try a little harder to make bash understand the
44743         alias.
44744         Reported by Bruce Korb <bruce.korb@gmail.com>.
44745
44746 2007-09-13  Eric Blake  <ebb9@byu.net>
44747
44748         * ChangeLog: Remove conflict markers.
44749
44750 2007-09-13  Simon Josefsson  <simon@josefsson.org>
44751
44752         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
44753         Reported by Bruno Haible <bruno@clisp.org>.
44754
44755 2007-09-12  Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
44758         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
44759         is not defined.
44760
44761 2007-09-12  Eric Blake  <ebb9@byu.net>
44762
44763         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
44764         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
44765         Autoconf definition.
44766         * modules/euidaccess (Depends-on): Add extensions, for
44767         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
44768         * modules/fnmatch (Depends-on): Likewise.
44769         * modules/getaddrinfo (Depends-on): Likewise.
44770         * modules/getdelim (Depends-on): Likewise.
44771         * modules/getline (Depends-on): Likewise.
44772         * modules/getsubopt (Depends-on): Likewise.
44773         * modules/gettext (Depends-on): Likewise.
44774         * modules/group-member (Depends-on): Likewise.
44775         * modules/mbchar (Depends-on): Likewise.
44776         * modules/memmem (Depends-on): Likewise.
44777         * modules/mempcpy (Depends-on): Likewise.
44778         * modules/memrchr (Depends-on): Likewise.
44779         * modules/pagealign_alloc (Depends-on): Likewise.
44780         * modules/readutmp (Depends-on): Likewise.
44781         * modules/stpcpy (Depends-on): Likewise.
44782         * modules/stpncpy (Depends-on): Likewise.
44783         * modules/strchrnul (Depends-on): Likewise.
44784         * modules/strndup (Depends-on): Likewise.
44785         * modules/strsep (Depends-on): Likewise.
44786         * modules/strverscmp (Depends-on): Likewise.
44787         * modules/vasprintf (Depends-on): Likewise.
44788         * modules/wcwidth (Depends-on): Likewise.
44789         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
44790         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
44791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
44792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
44793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44794         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44795         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
44796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44797         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
44798         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
44799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44801         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
44803         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
44804         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44805         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44806         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44808         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44810         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44811         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44812         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
44813         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
44814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
44816         so that lock.m4 can be used in gettext without extensions module.
44817
44818 2007-09-11  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/isc-posix.m4: Remove file.
44821         Suggested by Eric Blake.
44822
44823 2007-09-11  Eric Blake  <ebb9@byu.net>
44824
44825         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
44826
44827 2007-09-10  Bruno Haible  <bruno@clisp.org>
44828
44829         * posix-modules: Fix typo in error message.
44830         Reported by Matt <mkraai@beckman.com>.
44831
44832 2007-09-09  Bruno Haible  <bruno@clisp.org>
44833
44834         * doc/functions/getdelim.texi: Update list of platforms lacking the
44835         function.
44836         * doc/functions/getline.texi: Likewise.
44837
44838 2007-09-09  Jim Meyering  <jim@meyering.net>
44839
44840         * lib/hash.c (hash_initialize): Detect calloc failure.
44841         Reported by Bruno Haible.
44842
44843 2007-09-09  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
44846         malloc or realloc fails.
44847
44848 2007-09-09  Bruno Haible  <bruno@clisp.org>
44849
44850         * modules/getcwd (Depends-on): Add malloc-posix.
44851         * modules/glob (Depends-on): Likewise.
44852         * modules/putenv (Depends-on): Likewise.
44853         * modules/strdup (Depends-on): Likewise.
44854         * modules/getdelim (Depends-on): Add realloc-posix.
44855         * modules/read-file (Depends-on): Likewise.
44856
44857 2007-09-09  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
44860         (gl_FUNC_MALLOC_POSIX): Require it.
44861         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
44862         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
44863         * modules/realloc (Files): Add m4/malloc.m4.
44864         * modules/calloc (Files): Likewise.
44865
44866 2007-09-09  Bruno Haible  <bruno@clisp.org>
44867
44868         * modules/malloc-posix: New file.
44869         * modules/malloc (Depends-on): Add malloc-posix.
44870         * lib/malloc.c: Include errno.h.
44871         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
44872         and a POSIX-compatible malloc into a single function. Set ENOMEM
44873         when returning NULL.
44874         * m4/malloc.m4: New file.
44875         * doc/functions/malloc.texi: Mention the malloc-posix module.
44876         * lib/stdlib_.h (malloc): New declaration.
44877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44878         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
44879         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
44880         and HAVE_MALLOC_POSIX.
44881
44882 2007-09-09  Bruno Haible  <bruno@clisp.org>
44883
44884         * modules/realloc-posix: New file.
44885         * modules/realloc (Depends-on): Add realloc-posix.
44886         * lib/realloc.c: Include errno.h.
44887         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
44888         and a POSIX-compatible realloc into a single function. Set ENOMEM
44889         when returning NULL.
44890         * m4/realloc.m4: New file.
44891         * doc/functions/realloc.texi: Mention the realloc-posix module.
44892         * lib/stdlib_.h (realloc): New declaration.
44893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44894         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
44895         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
44896         and HAVE_REALLOC_POSIX.
44897
44898 2007-09-09  Bruno Haible  <bruno@clisp.org>
44899
44900         * modules/calloc-posix: New file.
44901         * modules/calloc (Depends-on): Add calloc-posix.
44902         * lib/calloc.c: Include errno.h.
44903         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
44904         and a POSIX-compatible calloc into a single function. Set ENOMEM
44905         when returning NULL.
44906         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
44907         * doc/functions/calloc.texi: Mention the calloc-posix module.
44908         * lib/stdlib_.h (calloc): New declaration.
44909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44910         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
44911         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
44912         and HAVE_CALLOC_POSIX.
44913
44914 2007-09-09  Bruno Haible  <bruno@clisp.org>
44915
44916         Allow for modules to show an arbitrary notice.
44917         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
44918         * gnulib-tool: New option --extract-notice.
44919         (func_usage): Document it.
44920         (sed_extract_prog): Update.
44921         (func_get_notice): New function.
44922         (func_modules_notice): New function.
44923         (func_import, func_create_testdir): Invoke it.
44924         Suggested by Jim Meyering.
44925
44926 2007-09-09  Bruno Haible  <bruno@clisp.org>
44927
44928         * gnulib-tool: New options --verbose, --quiet.
44929         (func_usage): Document them.
44930         (verbose): New variable.
44931         (func_execute_command): New function.
44932         (func_import): Don't show the module list and the file list if
44933         $verbose < 0.
44934         (func_create_testdir): Likewise. Use func_execute_command.
44935         (func_create_megatestdir): Use func_execute_command.
44936
44937 2007-09-08  Bruno Haible  <bruno@clisp.org>
44938
44939         * gnulib-tool (func_import): Prefer rsync over wget when available,
44940         for fetching the PO files.
44941
44942 2007-09-08  Bruno Haible  <bruno@clisp.org>
44943
44944         * posix-modules: New file. Portions copied from gnulib-tool.
44945         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
44946
44947 2007-09-08  Jim Meyering  <jim@meyering.net>
44948
44949         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
44950         * lib/fpending.h: Rename from __fpending.h.
44951         * lib/fpending.c: Rename from __fpending.c.
44952         Include "fpending.h", not "__fpending.h".
44953         * lib/__fpending.h, lib/__fpending.c: Remove files.
44954         * modules/fpending (Files): Reflect new file names.
44955         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
44956
44957 2007-09-08  Bruno Haible  <bruno@clisp.org>
44958
44959         * m4/inttypes-h.m4: Remove stub file.
44960
44961 2007-09-07  Simon Josefsson  <simon@josefsson.org>
44962
44963         * doc/headers/stdint.texi: Discuss #include_next issue.
44964
44965 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44966
44967         * build-aux/bootstrap: Remove obsolete comment about wget --help.
44968
44969 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44970
44971         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
44972         in variable name.
44973
44974 2007-09-03  Jim Meyering  <jim@meyering.net>
44975
44976         New module: git-version-gen.
44977         * modules/git-version-gen: New file.
44978
44979         Import changes from coreutils for bootstrap script.
44980
44981         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44982
44983         bootstrap: uses rsync to download the .po files
44984         * build-aux/bootstrap (po_download_command_format): New global.
44985         (download_po_files): Use rsync.
44986         (update_po_files): Don't remove .po files after download,
44987         so future rsync runs can take advantage of the copies.
44988
44989         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44990
44991         Solve the unnecessary-.po-file-regeneration problem once and for all.
44992         * build-aux/bootstrap (download_po_files): New function, renamed from
44993         get_translations.  Now, downloads, but doesn't update LINGUAS.
44994         (update_po_files): New function.
44995
44996         bootstrap: Ignore more.
44997         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44998         uniwidth to e.g., lib/.gitignore.
44999         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45000
45001         * build-aux/bootstrap: New setting: vc_ignore.
45002         (insert_sorted_if_absent): Create $file if absent.
45003         Adapt to new, possibly empty, list: $vc_ignore.
45004
45005         bootstrap: generate more ignorable names
45006         * build-aux/bootstrap (slurp): When generating ignorable names,
45007         also map .sin to .sed, .gperf to .c, and .y to .c.
45008
45009 2007-09-03  Jim Meyering  <jim@meyering.net>
45010
45011         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45012         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45013
45014 2007-09-02  Bruno Haible  <bruno@clisp.org>
45015
45016         Fix mis-recognition of 'mcs' on QNX 6.
45017         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45018         output contains the string "Mono".
45019         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45020         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45021
45022 2007-09-01  Bruno Haible  <bruno@clisp.org>
45023
45024         Fix collision between uniwidth/* and linebreak modules.
45025         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45026         u32_width): Remove declarations.
45027         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45028         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45029         streq3, streq2, streq1, streq0): Remove functions.
45030         (STREQ): Remove macro.
45031         (is_cjk_encoding): Remove function.
45032         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45033         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45034         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45035         * NEWS: Document the change.
45036
45037 2007-09-01  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/streq.h: Add double-inclusion guard.
45040
45041 2007-09-01  Karl Berry  <karl@gnu.org>
45042
45043         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45044
45045 2007-08-28  Jim Meyering  <jim@meyering.net>
45046
45047         Rename mreadlink_with_size to areadlink_with_size.
45048         * NEWS: Document the change.
45049         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45050         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45051         * lib/mreadlink.h: Rename this to...
45052         * lib/areadlink.h: ...this.
45053         * modules/mreadlink-with-size: Rename this to...
45054         * modules/areadlink-with-size: ...this.
45055         * lib/canonicalize.c: Reflect the renaming.
45056         * modules/canonicalize: Likewise.
45057
45058 2007-08-26  Bruno Haible  <bruno@clisp.org>
45059
45060         * gnulib-tool (func_import): When deciding which files to remove,
45061         consider also dangling symbolic links.
45062         Reported by Eric Blake.
45063
45064 2007-08-26  Bruno Haible  <bruno@clisp.org>
45065
45066         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45067
45068 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45069
45070         * lib/readline.c: Don't include getline.h, the prototype is now
45071         found in stdio.h.
45072
45073 2007-08-23  Jim Meyering  <jim@meyering.net>
45074
45075         Getdelim touchup.
45076         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45077         around the funlockfile call, since funlockfile never sets errno.
45078         Don't set errno upon failed realloc.
45079
45080 2007-08-22  Eric Blake  <ebb9@byu.net>
45081
45082         Getline touchups.
45083         * lib/getdelim.c (getdelim): Revert regression that required *n to
45084         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45086         getdelim, rather than whether implementation is missing.
45087         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45088         * lib/stdio_.h (getline): Also declare if replacement is
45089         required.
45090         * doc/functions/getdelim.texi: New file.
45091         * doc/functions/getline.texi: Likewise.
45092         * doc/gnulib.texi (Function Substitutes): Add new files.
45093         Reported by Bruno Haible.
45094
45095 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45096
45097         * users.txt: Add Guile.
45098
45099 2007-08-22  Eric Blake  <ebb9@byu.net>
45100
45101         * tests/test-getdelim.c (main): Use remove, not unlink.
45102         * tests/test-getline.c (main): Likewise.
45103
45104         Move getline and getdelim into stdio.h, per POSIX 200x.
45105         * modules/getline (Files): Remove getline.h.
45106         (Depends-on): Add stdio.
45107         (configure.ac): Add module indicator.
45108         * modules/getdelim (Files): Remove getdelim.h.
45109         (Depends-on): Add stdio.
45110         (configure.ac): Add module indicator.
45111         * modules/stdio (Makefile.am): Work with new indicators.
45112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45115         * lib/getdelim.h: Delete.
45116         * lib/getline.h: Delete.
45117         * lib/stdio_.h (getdelim, getline): Declare.
45118         * modules/getdelim-tests: New module.
45119         * modules/getline-tests: Likewise.
45120         * tests/test-getdelim.c: New file.
45121         * tests/test-getline.c: Likewise.
45122         * NEWS: Document the change.
45123         * lib/getline.c: Update choice of header.
45124         * lib/csharpcomp.c: Likewise.
45125         * lib/getpass.c: Likewise.
45126         * lib/javacomp.c: Likewise.
45127         * lib/javaversion.c: Likewise.
45128         * lib/yesno.c: Likewise.
45129         * lib/getdelim.c: Likewise.
45130         (getdelim): Set errno on failure, and avoid memory leak.
45131
45132 2007-08-19  Bruno Haible  <bruno@clisp.org>
45133
45134         * modules/closein (Depends-on): Add freadahead.
45135         * lib/closein.c: Include freadahead.h.
45136         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45137         is zero.
45138
45139 2007-08-19  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/freadahead-tests: New file.
45142         * tests/test-freadahead.sh: New file.
45143         * tests/test-freadahead.c: New file.
45144
45145         * modules/freadahead: New file.
45146         * lib/freadahead.h: New file.
45147         * lib/freadahead.c: New file.
45148         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45149         fbufmode, fpurge, freadable, fwritable.
45150
45151 2007-08-19  Eric Blake  <ebb9@byu.net>
45152
45153         Test yesno in combination with closein.
45154         * lib/yesno.c (yesno): Document use of stdin.
45155         * modules/yesno-tests (Files): New module.
45156         * tests/test-yesno.c (main): New file.
45157         * tests/test-yesno.sh: Likewise.
45158
45159 2007-08-19  Bruno Haible  <bruno@clisp.org>
45160
45161         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45162         * lib/fseeko.c (rpl_fseeko): Likewise.
45163         * lib/fseterr.c (fseterr): Likewise.
45164
45165 2007-08-19  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/test-lseek.c (main): Disable a test for BeOS.
45168         * doc/functions/lseek.texi: Document the BeOS bug.
45169
45170 2007-08-19  Bruno Haible  <bruno@clisp.org>
45171             Eric Blake  <ebb9@byu.net>
45172
45173         * lib/lseek.c: Include <sys/stat.h>.
45174         (rpl_lseek): Add workaround code also for Unix platforms.
45175         Needed for BeOS.
45176         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45177         * doc/functions/lseek.texi: Document BeOS definiency.
45178
45179 2007-08-18  Bruno Haible  <bruno@clisp.org>
45180
45181         * modules/fstrcmp-tests: New file.
45182         * tests/test-fstrcmp.c: New file.
45183
45184 2007-08-18  Bruno Haible  <bruno@clisp.org>
45185
45186         * modules/fstrcmp: New file, from GNU gettext with modifications.
45187         * lib/fstrcmp.h: New file, from GNU gettext.
45188         * lib/fstrcmp.c: New file, from GNU gettext.
45189         * MODULES.html.sh (String handling): Add fstrcmp.
45190
45191 2007-08-18  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45194         'bool'.
45195         (diag, compareseq): Remove const from the ctxt argument.
45196         (USE_HEURISTIC): Undefine at the end.
45197
45198 2007-08-18  Jim Meyering  <jim@meyering.net>
45199
45200         New file: lib/idcache.h
45201         * NEWS: Mention the addition.
45202         * modules/idcache (Files): Add lib/idcache.h
45203         * lib/idcache.c: Include "idcache.h".
45204         Don't include <sys/types.h>.
45205         Add a FIXME comment.
45206         Move file-scoped "static" declarations to the top.
45207         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45208
45209 2007-08-17  Bruno Haible  <bruno@clisp.org>
45210         and Paul Eggert  <eggert@cs.ucla.edu>
45211
45212         * MODULES.html.sh: Add diffseq.
45213         * modules/diffseq: New file.
45214         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45215         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45216
45217 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45218
45219         Import changes from coreutils for bootstrap script.
45220
45221         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45222
45223         * build-aux/bootstrap (slurp): Work even in environments where
45224         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45225         current code does not slurp files whose names start with ".", and
45226         this looks like it might be a troublesome area.
45227
45228         2007-07-11  Jim Meyering  <jim@meyering.net>
45229
45230         If there's a GPL vN copyright comment, require that N == 3.
45231
45232         2007-07-08  Jim Meyering  <jim@meyering.net>
45233
45234         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45235         * build-aux/bootstrap (mam_template): Move definition out of loop.
45236
45237         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45238
45239         * build-aux/bootstrap (symlink_to_dir): Rename function from
45240         symlink_to_gnulib.  Add a directory parameter.  Update all
45241         callers.
45242         (cp_mark_as_generated): Also check for -- and link to -- files in
45243         gl/.
45244
45245         2007-07-08  Jim Meyering  <jim@meyering.net>
45246
45247         Adapt to deeper hierarchy in gnulib.
45248         * build-aux/bootstrap (symlink_to_dir): If the destination
45249         directory doesn't exist, create it. This is required at least for
45250         "lib/uniwidth/cjk.h".
45251
45252         2007-05-15  Jim Meyering  <jim@meyering.net>
45253
45254         * build-aux/bootstrap: Now that generated Makefile.am files
45255         are no longer under version control, they must be created at
45256         bootstrap time.
45257
45258 2007-08-14  Ben Pfaff  <blp@gnu.org>
45259
45260         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
45261
45262 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45263
45264         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
45265         given the changes below.
45266         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
45267         even on hosts that have padding bits beyond the supported 64.
45268
45269 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45270
45271         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
45272         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
45273         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
45274         depends on it.
45275         (xstrtol_error): Remove.
45276         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
45277         but with a different signature.
45278         (ATTRIBUTE_NORETURN, __attribute__): New macros.
45279         * lib/xstrtol-error.c: Include exitfail.h.
45280         (xstrtol_fatal): New function, with a different signature from the
45281         old xstrtol_error, so that the caller need not worry about passing
45282         in an exit status, or about storage management of the option argument.
45283         (xstrtol_error): Now a static function.  Redo signature to
45284         implement xstrtol_fatal.  Output the correct number of hyphens in
45285         front of the option so that the caller need not worry about
45286         storage management.
45287         (N_): New macro.
45288         (_): Remove; not used now.
45289         * modules/xstrtol: Depend on getopt.
45290         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
45291         of old STRTOL_FATAL_ERROR macro.
45292         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
45293         of test program.
45294         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
45295         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
45296
45297 2007-08-08  Eric Blake  <ebb9@byu.net>
45298
45299         * lib/xstrtol-error.c: Add missing include.
45300
45301         Move xstrtol messages into gnulib domain, when --pobase is used.
45302         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
45303         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
45304         * modules/xstrtol (Files): Distribute new file.
45305         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
45306         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
45307         * tests/test-xstrtol.c: ...into new file.
45308         * tests/test-xstrtoul.c: Also test xstrtoul.
45309         * tests/test-xstrtoimax.c: Also test xstrtoimax.
45310         * tests/test-xstrtoumax.c: Also test xstrtoumax.
45311         * tests/test-xstrtol.sh: Drive the tests.
45312         * tests/test-xstrtoimax.sh: Likewise.
45313         * tests/test-xstrtoumax.sh: Likewise.
45314         * modules/xstrtol-tests: New module.
45315         * modules/xstrtoimax-tests: Likewise.
45316         * modules/xstrtoumax-tests: Likewise.
45317
45318 2007-08-08  Jim Meyering  <jim@meyering.net>
45319
45320         New function: mfile_name_concat.
45321         * lib/filenamecat.c (mfile_name_concat): New function, just like
45322         file_name_concat, but return NULL upon failure rather than exiting
45323         with a diagnostic.
45324         * lib/filenamecat.h: Declare it.
45325
45326 2007-08-07  Bruno Haible  <bruno@clisp.org>
45327
45328         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
45329         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
45330         warning from gcc.
45331         Reported by Eric Blake.
45332
45333 2007-08-07  Simon Josefsson  <simon@josefsson.org>
45334
45335         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
45336         * modules/crypto/arcfour (License): Likewise.
45337         * modules/crypto/des-tests (License): Likewise.
45338         * modules/crypto/gc-arctwo-tests (License): Likewise.
45339         * modules/crypto/gc-des-tests (License): Likewise.
45340         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
45341         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
45342         * modules/crypto/gc-md2-tests (License): Likewise.
45343         * modules/crypto/gc-md4-tests (License): Likewise.
45344         * modules/crypto/gc-md5-tests (License): Likewise.
45345         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
45346         * modules/crypto/gc-rijndael-tests (License): Likewise.
45347         * modules/crypto/gc-sha1-tests (License): Likewise.
45348         * modules/crypto/gc-tests (License): Likewise.
45349         * modules/crypto/hmac-md5 (License): Likewise.
45350         * modules/crypto/hmac-sha1 (License): Likewise.
45351         * modules/crypto/md2-tests (License): Likewise.
45352         * modules/crypto/md4-tests (License): Likewise.
45353         * modules/crypto/md5 (License): Likewise.
45354         * modules/crypto/rijndael (License): Likewise.
45355         * modules/crypto/sha1 (License): Likewise.
45356         * modules/memxor (License): Likewise.
45357
45358 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
45359         and Bruno Haible  <bruno@clisp.org>
45360
45361         * NEWS: Describe interface changes to human, xstrtol.
45362         * lib/human.h: Include <xstrtol.h>.
45363         (human_options): Return enum strtol_error, not int.  Remove
45364         bool arg; take int * instead.
45365         * lib/human.c: Don't include "gettext.h".
45366         (_): Remove; no longer used.
45367         Don't include <xstrtol.h>, since human.h does it.
45368         (human_options): Adjust to abovementioned interface changes.
45369         Do not report error to stderr; that's now the caller's
45370         responsibility.
45371         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
45372         interface change.
45373         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
45374         Str, Argument_type_string.  All uses changed.  Put " argument"
45375         in diagnostics to make them clearer.  Change wording of suffix
45376         message for clarity.
45377         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
45378         Argument_type_string.
45379         (STRTOL_FATAL_WARN): Remove; no longer used.
45380         * modules/human (Depends-on): Remove gettext-h.
45381
45382 2007-08-06  Simon Josefsson  <simon@josefsson.org>
45383
45384         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
45385
45386 2007-07-31  Bruno Haible  <bruno@clisp.org>
45387
45388         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
45389         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
45390         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
45391
45392 2007-07-31  Bruno Haible  <bruno@clisp.org>
45393
45394         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
45395         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
45396
45397 2007-07-30  Bruno Haible  <bruno@clisp.org>
45398
45399         * modules/base64 (License): Use the synonymous term "LGPLv2+".
45400         * modules/c-ctype (License): Likewise.
45401         * modules/c-strcase (License): Likewise.
45402         * modules/check-version (License): Likewise.
45403         * modules/iconv (License): Likewise.
45404         * modules/iconv_open (License): Likewise.
45405         * modules/read-file (License): Likewise.
45406         * modules/striconv (License): Likewise.
45407         * modules/strverscmp (License): Likewise.
45408         * modules/vasprintf (License): Likewise.
45409         * modules/crypto/des (License): Likewise.
45410         * modules/crypto/gc (License): Likewise.
45411         * modules/crypto/gc-arcfour (License): Likewise.
45412         * modules/crypto/gc-arctwo (License): Likewise.
45413         * modules/crypto/gc-des (License): Likewise.
45414         * modules/crypto/gc-hmac-md5 (License): Likewise.
45415         * modules/crypto/gc-hmac-sha1 (License): Likewise.
45416         * modules/crypto/gc-md2 (License): Likewise.
45417         * modules/crypto/gc-md4 (License): Likewise.
45418         * modules/crypto/gc-md5 (License): Likewise.
45419         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
45420         * modules/crypto/gc-random (License): Likewise.
45421         * modules/crypto/gc-rijndael (License): Likewise.
45422         * modules/crypto/gc-sha1 (License): Likewise.
45423         * modules/crypto/md2 (License): Likewise.
45424         * modules/crypto/md4 (License): Likewise.
45425
45426 2007-07-30  Jim Meyering  <jim@meyering.net>
45427
45428         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
45429         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
45430         it has valid stat data.  This bug would cause du not to count the
45431         sizes of inaccessible directories.
45432         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
45433         in <http://bugzilla.redhat.com/250077>.
45434
45435 2007-07-25  Peter O'Gorman  <peter@pogma.com>
45436             Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
45439         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
45440         #include_next, gives a diagnostic about it, but reports no error in
45441         the exit code.
45442         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45443
45444 2007-07-24  Ben Pfaff  <blp@gnu.org>
45445
45446         Improve name: "count-one-bits" is better than "popcount".
45447         * MODULES.html.sh: Update name.
45448         * lib/popcount.h: Renamed lib/count-one-bits.h.
45449         (popcount): Renamed count_one_bits.
45450         (popcountl): Renamed count_one_bits_l.
45451         (popcountll): Renamed count_one_bits_ll.
45452         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
45453         * modules/popcount: Renamed module/count-one-bits.
45454         * modules/popcount-tests: Renamed module/count-one-bits-tests.
45455         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
45456
45457 2007-07-23  Ben Pfaff  <blp@gnu.org>
45458
45459         * lib/popcount.h (popcount32): Reduce size of constants, to allow
45460         better code generation, and add U to large constants to avoid
45461         warnings, in non-GCC case.
45462         Suggested by Bruno Haible.
45463
45464 2007-07-23  Ben Pfaff  <blp@gnu.org>
45465
45466         * lib/popcount.h: Use verify_true instead of if...abort.
45467         * modules/popcount: Depend on verify module.
45468         Suggested by Jim Meyering.
45469
45470 2007-07-23  Bruno Haible  <bruno@clisp.org>
45471
45472         * gnulib-tool (func_import): Create a .cvsignore file also when the
45473         directory is not yet in CVS but the toplevel directory is. When
45474         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
45475         Reported by Karl Berry.
45476
45477 2007-07-22  Ben Pfaff  <blp@gnu.org>
45478
45479         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
45480         case.
45481         Suggested by Eric Blake.
45482
45483 2007-07-22  Ben Pfaff  <blp@gnu.org>
45484
45485         New module: popcount.
45486         * MODULES.html.sh: Add popcount.
45487         * modules/popcount: New file.
45488         * modules/popcount-tests: New file.
45489         * tests/test-popcount.c: New file.
45490         * lib/popcount.h: New file.
45491         * m4/popcount.m4: New file.
45492
45493 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45494
45495         * build-aux/announce-gen: Update to GPLv3.
45496
45497         * build-aux/config.guess: Update from config.
45498
45499 2007-07-21  Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
45502         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
45503
45504 2007-07-20  Jim Meyering  <jim@meyering.net>
45505
45506         * check-module: Diagnose a self-dependency.
45507
45508 2007-07-19  Bruno Haible  <bruno@clisp.org>
45509
45510         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
45511         empty.
45512         Reported by Eric Blake.
45513
45514 2007-07-18  Bruno Haible  <bruno@clisp.org>
45515
45516         * gnulib-tool: New options --po-base, --po-domain.
45517         (func_usage): Document them.
45518         (pobase, po_domain): New variables.
45519         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
45520         DEFAULT_TEXT_DOMAIN.
45521         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
45522         (func_import): Consider pobase and po_domain. Create a po/ directory.
45523         (func_create_testdir): Set pobase and po_domain to empty.
45524         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
45525         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
45526
45527 2007-07-18  Bruno Haible  <bruno@clisp.org>
45528
45529         * gnulib-tool (func_get_automake_snippet): Synthesize also an
45530         EXTRA_DIST augmentation for files in build-aux/.
45531
45532 2007-07-16  Bruno Haible  <bruno@clisp.org>
45533
45534         * modules/lseek (License): Use the synonymous term "LGPLv2+".
45535         * modules/getdelim (License): Likewise.
45536
45537 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45538
45539         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
45540         * modules/d-type (License): Likewise.
45541         * modules/extensions (License): Likewise.
45542         * modules/fnmatch (License): Likewise.
45543         * modules/fseeko (License): Likewise.
45544         * modules/getaddrinfo (License): Likewise.
45545         * modules/getline (License): Likewise.
45546         * modules/getlogin_r (License): Likewise.
45547         * modules/getpass (License): Likewise.
45548         * modules/gettimeofday (License): Likewise.
45549         * modules/glob (License): Likewise.
45550         * modules/inet_ntop (License): Likewise.
45551         * modules/malloc (License): Likewise.
45552         * modules/malloca (License): Likewise.
45553         * modules/memmem (License): Likewise.
45554         * modules/mempcpy (License): Likewise.
45555         * modules/memset (License): Likewise.
45556         * modules/minmax (License): Likewise.
45557         * modules/mktime (License): Likewise.
45558         * modules/netinet_in (License): Likewise.
45559         * modules/pathmax (License): Likewise.
45560         * modules/poll (License): Likewise.
45561         * modules/regex (License): Likewise.
45562         * modules/snprintf (License): Likewise.
45563         * modules/stdbool (License): Likewise.
45564         * modules/stdint (License): Likewise.
45565         * modules/stdio (License): Likewise.
45566         * modules/strcase (License): Likewise.
45567         * modules/strcasestr (License): Likewise.
45568         * modules/strdup (License): Likewise.
45569         * modules/string (License): Likewise.
45570         * modules/strndup (License): Likewise.
45571         * modules/strnlen (License): Likewise.
45572         * modules/strpbrk (License): Likewise.
45573         * modules/strptime (License): Likewise.
45574         * modules/strsep (License): Likewise.
45575         * modules/sys_select (License): Likewise.
45576         * modules/sys_socket (License): Likewise.
45577         * modules/sys_stat (License): Likewise.
45578         * modules/sys_time (License): Likewise.
45579         * modules/time (License): Likewise.
45580         * modules/time_r (License): Likewise.
45581         * modules/timegm (License): Likewise.
45582         * modules/unistd (License): Likewise.
45583         * modules/vsnprintf (License): Likewise.
45584         * modules/wctype (License): Likewise.
45585
45586 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45587
45588         * modules/argz (License): LGPLv2+.
45589
45590 2007-07-15  Karl Berry  <karl@gnu.org>
45591
45592         * doc/gnulib.texi: revise node structure per new fdl.texi.
45593
45594 2007-07-14  Bruno Haible  <bruno@clisp.org>
45595
45596         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
45597         the output file.
45598         * lib/uniname/uninames.h: Regenerated.
45599
45600 2007-07-14  Karl Berry  <karl@gnu.org>
45601
45602         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
45603         omitting sectioning and index commands.
45604
45605 2007-07-13  Bruno Haible  <bruno@clisp.org>
45606
45607         New gnulib-tool option --more-symlinks.
45608         * gnulib-tool (func_usage): Document --more-symlinks.
45609         (do_copyrights): New variable.
45610         Recognize option --more-symlinks.
45611         (func_import): Don't add a copyright notice transform to
45612         sed_transform_lib_file if do_copyrights is empty.
45613
45614 2007-07-13  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/vasnprintf.c (decimal_point_char): Define also if
45617         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
45618         && !NEED_PRINTF_DIRECTIVE_A.
45619         Reported by Clemens Koller <clemens.koller@anagramm.de> via
45620         Gary V. Vaughan <gary@gnu.org>.
45621
45622 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
45623
45624         * lib/inttypes_.h: Undo previous change, since it was fixed
45625         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
45626
45627 2007-07-13  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
45630         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
45631
45632 2007-07-13  Jim Meyering  <jim@meyering.net>
45633
45634         df: Don't fail for Tru64's "file-on-file mount".
45635         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
45636         so we fall through and use statfs instead.  Details here:
45637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45638         Reported by Albert Chin.
45639
45640 2007-07-13  Bruno Haible  <bruno@clisp.org>
45641
45642         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
45643         * modules/configmake (License): Likewise.
45644         * modules/gettext (License): Likewise.
45645         * modules/gettext-h (License): Likewise.
45646         * modules/include_next (License): Likewise.
45647         * modules/link-warning (License): Likewise.
45648         * modules/localcharset (License): Likewise.
45649         * modules/localename (License): Likewise.
45650         * modules/lock (License): Likewise.
45651         * modules/relocatable-lib-lgpl (License): Likewise.
45652         * modules/size_max (License): Likewise.
45653         * modules/vasnprintf (License): Likewise.
45654         * modules/wchar (License): Likewise.
45655         * modules/xsize (License): Likewise.
45656
45657 2007-07-13  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
45660         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
45661
45662 2007-07-12  Bruno Haible  <bruno@clisp.org>
45663
45664         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
45665         in the modules files.
45666
45667 2007-07-11  Karl Berry  <karl@gnu.org>
45668
45669         * MODULES.html.sh (func_module): use
45670          sed -e '\|^'"${includefile}"'$|d'
45671          instead of /.../d, to avoid errors on $includefile's containing /.
45672
45673 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45674
45675         * gnulib-tool (func_import): Avoid duplication of --avoid
45676         statements
45677         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
45678         names to `_' in variable names.
45679
45680 2007-07-10  Eric Blake  <ebb9@byu.net>
45681
45682         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
45683         * NEWS: Document this change.
45684
45685 2007-07-08  Bruno Haible  <bruno@clisp.org>
45686
45687         Update to Unicode 5.0.
45688         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
45689         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
45690         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
45691         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
45692         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
45693         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
45694         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
45695         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
45696         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
45697         U+10A3F, U+1D242..U+1D244.
45698         (nonspacing_table_ind): Update.
45699         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
45700         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
45701
45702 2007-07-08  Bruno Haible  <bruno@clisp.org>
45703
45704         Update to Unicode 5.0.
45705         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
45706         code transform. Extend the name index field of unicode_name_to_code and
45707         unicode_code_to_name from 16 to 24 bits.
45708         * lib/uniname/uniname.c (unicode_character_name,
45709         unicode_name_character): Add the range 0x12xxx to the code transform.
45710         * lib/uniname/uninames.h: Regenerated.
45711         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
45712
45713 2007-07-07  Bruno Haible  <bruno@clisp.org>
45714
45715         * modules/wcwidth-tests: New file.
45716         * tests/test-wcwidth.c: New file.
45717
45718         Work around MacOS X wcwidth() bug.
45719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
45720         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
45721         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
45722         original wcwidth in non-UTF-8 locales.
45723         * modules/wcwidth (Depends-on): Add localcharset, streq,
45724         uniwidth/width.
45725         * doc/functions/wcwidth.texi: Update.
45726
45727 2007-07-07  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
45730         (wcwidth): New declaration.
45731         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
45732         macros.
45733         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
45734         here. Prepare for creating <wchar.h> unconditionally.
45735         * modules/wchar (Depends-on): Add link-warning.
45736         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
45737         REPLACE_WCWIDTH, and GL_LINK_WARNING.
45738         * lib/wcwidth.h: Remove file.
45739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
45740         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
45741         * modules/wcwidth (Files): Remove lib/wcwidth.h.
45742         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
45743         (Include): Replace wcwidth.h with <wchar.h>.
45744         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
45745         * lib/mbchar.h: Don't include wcwidth.h.
45746         * lib/mbswidth.c: Likewise.
45747         * NEWS: Mention the change.
45748
45749 2007-07-07  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
45752         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
45753         definition with an external declaration.
45754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
45755         defined as a function. Remove AC_C_INLINE requirement.
45756         * modules/wcwidth (Files): Add lib/wcwidth.c.
45757         (Makefile.am): Remove redundant statement.
45758
45759 2007-07-07  Bruno Haible  <bruno@clisp.org>
45760
45761         * MODULES.html.sh (Unicode string functions): Add the new modules.
45762
45763         * tests/uniwidth/test-u32-strwidth.c: New file.
45764         * modules/uniwidth/u32-strwidth-tests: New file.
45765
45766         * lib/uniwidth/u32-strwidth.c: New file.
45767         * modules/uniwidth/u32-strwidth: New file.
45768
45769         * tests/uniwidth/test-u16-strwidth.c: New file.
45770         * modules/uniwidth/u16-strwidth-tests: New file.
45771
45772         * lib/uniwidth/u16-strwidth.c: New file.
45773         * modules/uniwidth/u16-strwidth: New file.
45774
45775         * tests/uniwidth/test-u8-strwidth.c: New file.
45776         * modules/uniwidth/u8-strwidth-tests: New file.
45777
45778         * lib/uniwidth/u8-strwidth.c: New file.
45779         * modules/uniwidth/u8-strwidth: New file.
45780
45781         * tests/uniwidth/test-u32-width.c: New file.
45782         * modules/uniwidth/u32-width-tests: New file.
45783
45784         * lib/uniwidth/u32-width.c: New file.
45785         * modules/uniwidth/u32-width: New file.
45786
45787         * tests/uniwidth/test-u16-width.c: New file.
45788         * modules/uniwidth/u16-width-tests: New file.
45789
45790         * lib/uniwidth/u16-width.c: New file.
45791         * modules/uniwidth/u16-width: New file.
45792
45793         * tests/uniwidth/test-u8-width.c: New file.
45794         * modules/uniwidth/u8-width-tests: New file.
45795
45796         * lib/uniwidth/u8-width.c: New file.
45797         * modules/uniwidth/u8-width: New file.
45798
45799         * tests/uniwidth/test-uc_width.c: New file.
45800         * modules/uniwidth/width-tests: New file.
45801
45802         * lib/uniwidth/width.c: New file, from GNU libiconv.
45803         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
45804         * modules/uniwidth/width: New file.
45805
45806         * lib/uniwidth.h: New file, from GNU libiconv.
45807         * modules/uniwidth/base: New file.
45808
45809 2007-07-07  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/uniname.h: New file, from GNU gettext.
45812         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
45813         * lib/uniname/uninames.h: New file, from GNU gettext.
45814         * lib/uniname/uniname.c: New file, from GNU gettext.
45815         * tests/uniname/test-uninames.sh: New file.
45816         * tests/uniname/test-uninames.c: New file, from GNU gettext.
45817         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
45818         * modules/uniname/base: New file.
45819         * modules/uniname/uniname: New file.
45820         * modules/uniname/uniname-tests: New file.
45821         * MODULES.html.sh (Unicode string functions): Add the new modules.
45822
45823 2007-07-06  Bruno Haible  <bruno@clisp.org>
45824
45825         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
45826
45827 2007-07-06  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
45830         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
45831         includes <cygwin/sys_time.h> which includes <sys/select.h> which
45832         include <sys/time.h>.
45833         Reported by Eric Blake.
45834
45835 2007-07-06  Eric Blake  <ebb9@byu.net>
45836
45837         Fix testing canonicalize on cygwin.
45838         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45839         Revert patch from 2007-06-19.
45840         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
45841         canonicalize module is also in use.
45842         * tests/test-canonicalize.c: New file.
45843         * tests/test-canonicalize.sh: Likewise.
45844         * modules/canonicalize-tests: Likewise.
45845
45846 2007-07-06  Jim Meyering  <jim@meyering.net>
45847
45848         * lib/getugroups.c (getugroups): Detect getgrent failure.
45849         Adjust comment to reflect reality: this function may return -1.
45850
45851 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
45852
45853         * build-aux/bootstrap (TP_URL,get_translations): Update to use
45854         the new TP address.
45855         (usage): Fix typo
45856         (gnulib_mk): New variable.
45857
45858 2007-07-05  Jim Meyering  <jim@meyering.net>
45859
45860         Don't let endgrent clobber errno, no matter how improbable.
45861         * lib/getugroups.c (getugroups): Save and restore errno around
45862         endgrent call.
45863
45864         Close the group DB even when failing with 2^31 or more members.
45865         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
45866
45867 2007-07-04  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/getugroups.h: New file.
45870         * lib/getugroups.c: Include "getugroups.h".
45871         Remove uses of "register" keyword.
45872         Move local variable, "cp", down into scope where used.
45873         Give "username" parameter the "const" attribute.
45874         * modules/getugroups (Files): Add lib/getugroups.h
45875
45876 2007-07-04  Karl Berry  <karl@gnu.org>
45877
45878         * MODULES.html.sh (func_all_modules): Complete rename of
45879         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
45880
45881 2007-07-02  Bruno Haible  <bruno@clisp.org>
45882
45883         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
45884         mode, when inttypes.h comes from gnulib.
45885         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45886
45887 2007-07-02  Simon Josefsson  <simon@josefsson.org>
45888
45889         * NEWS: Mention lgpl module name change.
45890
45891         * modules/lgpl-2.1: Renamed from lgpl.
45892
45893         * NEWS: Mention gpl module name change.
45894
45895         * modules/gpl-3.0: New file, based on gpl-2.0.
45896
45897         * modules/gpl-2.0: Renamed from gpl.
45898
45899         * modules/gpl: Fix filename, doc/gpl.texi is now found at
45900         doc/gpl-2.0.texi.
45901
45902 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45903
45904         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
45905         #define __STDC_LIMIT_MACROS temporarily while including
45906         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
45907         Problem reported by Joel E. Denny in
45908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
45909
45910 2007-07-01  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/unistdio.h: New file.
45913         * lib/unistdio/u-asnprintf.h: New file.
45914         * lib/unistdio/u-asprintf.h: New file.
45915         * lib/unistdio/u-printf-args.c: New file.
45916         * lib/unistdio/u-printf-args.h: New file.
45917         * lib/unistdio/u-printf-parse.h: New file.
45918         * lib/unistdio/u-snprintf.h: New file.
45919         * lib/unistdio/u-sprintf.h: New file.
45920         * lib/unistdio/u-vasprintf.h: New file.
45921         * lib/unistdio/u-vsnprintf.h: New file.
45922         * lib/unistdio/u-vsprintf.h: New file.
45923         * lib/unistdio/ulc-asnprintf.c: New file.
45924         * lib/unistdio/ulc-asprintf.c: New file.
45925         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
45926         * lib/unistdio/ulc-printf-parse.c: New file.
45927         * lib/unistdio/ulc-snprintf.c: New file.
45928         * lib/unistdio/ulc-sprintf.c: New file.
45929         * lib/unistdio/ulc-vasnprintf.c: New file.
45930         * lib/unistdio/ulc-vasprintf.c: New file.
45931         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
45932         * lib/unistdio/ulc-vsnprintf.c: New file.
45933         * lib/unistdio/ulc-vsprintf.c: New file.
45934         * lib/unistdio/u8-asnprintf.c: New file.
45935         * lib/unistdio/u8-asprintf.c: New file.
45936         * lib/unistdio/u8-printf-parse.c: New file.
45937         * lib/unistdio/u8-snprintf.c: New file.
45938         * lib/unistdio/u8-sprintf.c: New file.
45939         * lib/unistdio/u8-vasnprintf.c: New file.
45940         * lib/unistdio/u8-vasprintf.c: New file.
45941         * lib/unistdio/u8-vsnprintf.c: New file.
45942         * lib/unistdio/u8-vsprintf.c: New file.
45943         * lib/unistdio/u8-u8-asnprintf.c: New file.
45944         * lib/unistdio/u8-u8-asprintf.c: New file.
45945         * lib/unistdio/u8-u8-snprintf.c: New file.
45946         * lib/unistdio/u8-u8-sprintf.c: New file.
45947         * lib/unistdio/u8-u8-vasnprintf.c: New file.
45948         * lib/unistdio/u8-u8-vasprintf.c: New file.
45949         * lib/unistdio/u8-u8-vsnprintf.c: New file.
45950         * lib/unistdio/u8-u8-vsprintf.c: New file.
45951         * lib/unistdio/u16-asnprintf.c: New file.
45952         * lib/unistdio/u16-asprintf.c: New file.
45953         * lib/unistdio/u16-printf-parse.c: New file.
45954         * lib/unistdio/u16-snprintf.c: New file.
45955         * lib/unistdio/u16-sprintf.c: New file.
45956         * lib/unistdio/u16-vasnprintf.c: New file.
45957         * lib/unistdio/u16-vasprintf.c: New file.
45958         * lib/unistdio/u16-vsnprintf.c: New file.
45959         * lib/unistdio/u16-vsprintf.c: New file.
45960         * lib/unistdio/u16-u16-asnprintf.c: New file.
45961         * lib/unistdio/u16-u16-asprintf.c: New file.
45962         * lib/unistdio/u16-u16-snprintf.c: New file.
45963         * lib/unistdio/u16-u16-sprintf.c: New file.
45964         * lib/unistdio/u16-u16-vasnprintf.c: New file.
45965         * lib/unistdio/u16-u16-vasprintf.c: New file.
45966         * lib/unistdio/u16-u16-vsnprintf.c: New file.
45967         * lib/unistdio/u16-u16-vsprintf.c: New file.
45968         * lib/unistdio/u32-asnprintf.c: New file.
45969         * lib/unistdio/u32-asprintf.c: New file.
45970         * lib/unistdio/u32-printf-parse.c: New file.
45971         * lib/unistdio/u32-snprintf.c: New file.
45972         * lib/unistdio/u32-sprintf.c: New file.
45973         * lib/unistdio/u32-vasnprintf.c: New file.
45974         * lib/unistdio/u32-vasprintf.c: New file.
45975         * lib/unistdio/u32-vsnprintf.c: New file.
45976         * lib/unistdio/u32-vsprintf.c: New file.
45977         * lib/unistdio/u32-u32-asnprintf.c: New file.
45978         * lib/unistdio/u32-u32-asprintf.c: New file.
45979         * lib/unistdio/u32-u32-snprintf.c: New file.
45980         * lib/unistdio/u32-u32-sprintf.c: New file.
45981         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45982         * lib/unistdio/u32-u32-vasprintf.c: New file.
45983         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45984         * lib/unistdio/u32-u32-vsprintf.c: New file.
45985         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45986         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45987         * tests/unistdio/test-ulc-printf1.h: New file.
45988         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45989         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45990         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45991         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45992         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45993         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45994         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45995         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45996         * tests/unistdio/test-u8-asnprintf1.c: New file.
45997         * tests/unistdio/test-u8-asnprintf1.h: New file.
45998         * tests/unistdio/test-u8-printf1.h: New file.
45999         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46000         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46001         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46002         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46003         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46004         * tests/unistdio/test-u8-vasprintf1.c: New file.
46005         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46006         * tests/unistdio/test-u8-vsprintf1.c: New file.
46007         * tests/unistdio/test-u16-asnprintf1.c: New file.
46008         * tests/unistdio/test-u16-asnprintf1.h: New file.
46009         * tests/unistdio/test-u16-printf1.h: New file.
46010         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46011         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46012         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46013         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46014         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46015         * tests/unistdio/test-u16-vasprintf1.c: New file.
46016         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46017         * tests/unistdio/test-u16-vsprintf1.c: New file.
46018         * tests/unistdio/test-u32-asnprintf1.c: New file.
46019         * tests/unistdio/test-u32-asnprintf1.h: New file.
46020         * tests/unistdio/test-u32-printf1.h: New file.
46021         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46022         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46023         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46024         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46025         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46026         * tests/unistdio/test-u32-vasprintf1.c: New file.
46027         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46028         * tests/unistdio/test-u32-vsprintf1.c: New file.
46029         * modules/unistdio/base: New file.
46030         * modules/unistdio/u-printf-args: New file.
46031         * modules/unistdio/ulc-asnprintf: New file.
46032         * modules/unistdio/ulc-asprintf: New file.
46033         * modules/unistdio/ulc-fprintf: New file.
46034         * modules/unistdio/ulc-printf-parse: New file.
46035         * modules/unistdio/ulc-snprintf: New file.
46036         * modules/unistdio/ulc-sprintf: New file.
46037         * modules/unistdio/ulc-vasnprintf: New file.
46038         * modules/unistdio/ulc-vasprintf: New file.
46039         * modules/unistdio/ulc-vfprintf: New file.
46040         * modules/unistdio/ulc-vsnprintf: New file.
46041         * modules/unistdio/ulc-vsprintf: New file.
46042         * modules/unistdio/u8-asnprintf: New file.
46043         * modules/unistdio/u8-asprintf: New file.
46044         * modules/unistdio/u8-printf-parse: New file.
46045         * modules/unistdio/u8-snprintf: New file.
46046         * modules/unistdio/u8-sprintf: New file.
46047         * modules/unistdio/u8-vasnprintf: New file.
46048         * modules/unistdio/u8-vasprintf: New file.
46049         * modules/unistdio/u8-vsnprintf: New file.
46050         * modules/unistdio/u8-vsprintf: New file.
46051         * modules/unistdio/u8-u8-asnprintf: New file.
46052         * modules/unistdio/u8-u8-asprintf: New file.
46053         * modules/unistdio/u8-u8-snprintf: New file.
46054         * modules/unistdio/u8-u8-sprintf: New file.
46055         * modules/unistdio/u8-u8-vasnprintf: New file.
46056         * modules/unistdio/u8-u8-vasprintf: New file.
46057         * modules/unistdio/u8-u8-vsnprintf: New file.
46058         * modules/unistdio/u8-u8-vsprintf: New file.
46059         * modules/unistdio/u16-asnprintf: New file.
46060         * modules/unistdio/u16-asprintf: New file.
46061         * modules/unistdio/u16-printf-parse: New file.
46062         * modules/unistdio/u16-snprintf: New file.
46063         * modules/unistdio/u16-sprintf: New file.
46064         * modules/unistdio/u16-vasnprintf: New file.
46065         * modules/unistdio/u16-vasprintf: New file.
46066         * modules/unistdio/u16-vsnprintf: New file.
46067         * modules/unistdio/u16-vsprintf: New file.
46068         * modules/unistdio/u16-u16-asnprintf: New file.
46069         * modules/unistdio/u16-u16-asprintf: New file.
46070         * modules/unistdio/u16-u16-snprintf: New file.
46071         * modules/unistdio/u16-u16-sprintf: New file.
46072         * modules/unistdio/u16-u16-vasnprintf: New file.
46073         * modules/unistdio/u16-u16-vasprintf: New file.
46074         * modules/unistdio/u16-u16-vsnprintf: New file.
46075         * modules/unistdio/u16-u16-vsprintf: New file.
46076         * modules/unistdio/u32-asnprintf: New file.
46077         * modules/unistdio/u32-asprintf: New file.
46078         * modules/unistdio/u32-printf-parse: New file.
46079         * modules/unistdio/u32-snprintf: New file.
46080         * modules/unistdio/u32-sprintf: New file.
46081         * modules/unistdio/u32-vasnprintf: New file.
46082         * modules/unistdio/u32-vasprintf: New file.
46083         * modules/unistdio/u32-vsnprintf: New file.
46084         * modules/unistdio/u32-vsprintf: New file.
46085         * modules/unistdio/u32-u32-asnprintf: New file.
46086         * modules/unistdio/u32-u32-asprintf: New file.
46087         * modules/unistdio/u32-u32-snprintf: New file.
46088         * modules/unistdio/u32-u32-sprintf: New file.
46089         * modules/unistdio/u32-u32-vasnprintf: New file.
46090         * modules/unistdio/u32-u32-vasprintf: New file.
46091         * modules/unistdio/u32-u32-vsnprintf: New file.
46092         * modules/unistdio/u32-u32-vsprintf: New file.
46093         * modules/unistdio/ulc-asnprintf-tests: New file.
46094         * modules/unistdio/ulc-vasnprintf-tests: New file.
46095         * modules/unistdio/ulc-vasprintf-tests: New file.
46096         * modules/unistdio/ulc-vsnprintf-tests: New file.
46097         * modules/unistdio/ulc-vsprintf-tests: New file.
46098         * modules/unistdio/u8-asnprintf-tests: New file.
46099         * modules/unistdio/u8-vasnprintf-tests: New file.
46100         * modules/unistdio/u8-vasprintf-tests: New file.
46101         * modules/unistdio/u8-vsnprintf-tests: New file.
46102         * modules/unistdio/u8-vsprintf-tests: New file.
46103         * modules/unistdio/u16-asnprintf-tests: New file.
46104         * modules/unistdio/u16-vasnprintf-tests: New file.
46105         * modules/unistdio/u16-vasprintf-tests: New file.
46106         * modules/unistdio/u16-vsnprintf-tests: New file.
46107         * modules/unistdio/u16-vsprintf-tests: New file.
46108         * modules/unistdio/u32-asnprintf-tests: New file.
46109         * modules/unistdio/u32-vasnprintf-tests: New file.
46110         * modules/unistdio/u32-vasprintf-tests: New file.
46111         * modules/unistdio/u32-vsnprintf-tests: New file.
46112         * modules/unistdio/u32-vsprintf-tests: New file.
46113         * MODULES.html.sh (Unicode string functions): Add the new modules.
46114
46115 2007-07-01  Bruno Haible  <bruno@clisp.org>
46116
46117         * lib/sprintf.c (sprintf): Limit the available length estimation,
46118         to avoid address wraparound.
46119         * lib/vsprintf.c (vsprintf): Likewise.
46120         * modules/sprintf-posix (Dependencies): Add stdint.
46121         * modules/vsprintf-posix (Dependencies): Likewise.
46122
46123 2007-07-01  Bruno Haible  <bruno@clisp.org>
46124
46125         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46126         Windows PATH as well. Conservative double-quoting. Comments.
46127
46128 2007-07-01  Bruno Haible  <bruno@clisp.org>
46129             Eric Blake  <ebb9@byu.net>
46130             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46131
46132         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46133         empty components in $PATH, denoting '.'.
46134
46135 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46136
46137         * gnulib-tool: Fix indentation.
46138         (func_create_megatestdir): Likewise.
46139         Report by Bruno Haible.
46140
46141 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46142
46143         Sync from Automake.
46144         * build-aux/gnupload: Fix shell portability issues with for loops.
46145         Report by Karl Berry.
46146
46147 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46148
46149         * build-aux/maint.mk (POURL): Use translationproject.org.
46150
46151 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46152             Bruno Haible  <bruno@clisp.org>
46153
46154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46155         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46156         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46157         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46158         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46159
46160 2007-06-27  Bruno Haible  <bruno@clisp.org>
46161
46162         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46163         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46164
46165 2007-06-26  Karl Berry  <karl@gnu.org>
46166
46167         * MODULES.html.sh: remove xreadlink-with-size.
46168
46169 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46170
46171         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46172         method that I hope also handles the double-include problem noted
46173         by Bruno Haible in
46174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46175
46176 2007-06-23  Bruno Haible  <bruno@clisp.org>
46177
46178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46179         Don't let the 'mostlyclean' target fail if the last subdirectory could
46180         not be removed.
46181         Reported by Karl Berry.
46182
46183 2007-06-23  Bruno Haible  <bruno@clisp.org>
46184
46185         * gnulib-tool (echo): Add a speedier workaround for ksh.
46186         * tests/test-echo.sh: Likewise.
46187
46188 2007-06-23  Bruno Haible  <bruno@clisp.org>
46189
46190         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46191         * tests/test-echo.sh: Likewise.
46192
46193 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46194
46195         * gnulib-tool (IFS): Initialize early, so we don't set it to
46196         empty later.
46197         (self_abspathname): Rewrite algorithm to set it, reindent.
46198         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46199         (func_create_megatestdir): Merge some sed scripts.
46200
46201 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46202
46203         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46204         exposed by Sun Studio 11 cc on Solaris 8.
46205
46206 2007-06-22  Bruno Haible  <bruno@clisp.org>
46207
46208         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46209         backslashes.
46210         * tests/test-echo.sh: New file.
46211
46212 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46213
46214         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46215         simplify `sed_replace_build_aux' scripts, they are portable but
46216         echoing them with `echo' is not.
46217         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46218
46219 2007-06-21  Karl Berry  <karl@gnu.org>
46220
46221         * config/srclist.txt: guess we can't handle the licenses via
46222         srclist at the moment.
46223
46224 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46225
46226         * MODULES.html.sh: Add include_next.
46227         * modules/include_next: New file.
46228
46229 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46230
46231         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46232         INCLUDE_NEXT.
46233         (gl_CHECK_NEXT_HEADERS): New macro.
46234         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46235         the obsolescent gl_ABSOLUTE_HEADER.
46236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46237         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46238         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46240         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
46241         * m4/math_h.m4 (gl_MATH_H): Likewise.
46242         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46243         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
46244         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
46247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
46248         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
46249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46251         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46252         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
46253         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46254         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46255         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46256         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46257         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46258         * m4/inttypes.m4 (gl_INTTYPES_H): Define
46259         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
46260         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
46261         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
46262         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
46263         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
46264         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
46265         * lib/float_.h: Likewise.
46266         * lib/inttypes_.h: Likewise.
46267         * lib/math_.h: Likewise.
46268         * lib/search_.h: Likewise.
46269         * lib/signal_.h: Likewise.
46270         * lib/stdint_.h: Likewise.
46271         * lib/stdio_.h: Likewise.
46272         * lib/stdlib_.h: Likewise.
46273         * lib/string_.h: Likewise.
46274         * lib/sys_stat_.h: Likewise.
46275         * lib/sys_time_.h: Likewise.
46276         * lib/time_.h: Likewise.
46277         * lib/unistd_.h: Likewise.
46278         * lib/wchar_.h: Likewise.
46279         * lib/wctype_.h: Likewise.
46280         * lib/dirent_.h: Likewise.
46281         * lib/iconv_.h: Likewise.
46282         * lib/locale_.h: Likewise.
46283         * lib/netinet_in_.h: Likewise.
46284         * lib/sys_select_.h: Likewise.
46285         * lib/sys_socket_.h: Likewise.
46286         * lib/sysexits_.h: Likewise.
46287         * modules/fcntl (Depends-on): Depend on include_next, not
46288         absolute_header.
46289         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
46290         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
46291         * modules/fchdir: Likewise.
46292         * modules/float: Likewise.
46293         * modules/iconv_open: Likewise.
46294         * modules/inttypes: Likewise.
46295         * modules/locale: Likewise.
46296         * modules/math: Likewise.
46297         * modules/netinet_in: Likewise.
46298         * modules/search: Likewise.
46299         * modules/signal: Likewise.
46300         * modules/stdint: Likewise.
46301         * modules/stdio: Likewise.
46302         * modules/stdlib: Likewise.
46303         * modules/string: Likewise.
46304         * modules/sys_select: Likewise.
46305         * modules/sys_socket: Likewise.
46306         * modules/sys_stat: Likewise.
46307         * modules/sys_time: Likewise.
46308         * modules/sysexits: Likewise.
46309         * modules/time: Likewise.
46310         * modules/unistd: Likewise.
46311         * modules/wchar: Likewise.
46312         * modules/wctype: Likewise.
46313         * modules/sys_stat: Change maintainer to "all".
46314         * modules/unistd: Likewise.
46315
46316 2007-06-20  Karl Berry  <karl@gnu.org>
46317
46318         * config/srclist.txt: track www changes in license files.
46319
46320 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
46321
46322         * build-aux/bootstrap: Remove stray dot.
46323         Make sure build_aux settings are honored when linking
46324         gnulib_extra_files.
46325
46326 2007-06-19  Eric Blake  <ebb9@byu.net>
46327
46328         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46329         Allow compilation on cygwin.
46330
46331 2007-06-19  Jim Meyering  <jim@meyering.net>
46332
46333         xreadlink-with-size: Remove module.  No longer used.
46334         Ex-callers now use xreadlink or mreadlink-with-size.
46335         * modules/xreadlink-with-size: Remove module.
46336         * lib/xreadlink-with-size.c: Remove file.
46337         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
46338         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
46339         just before the function definition *is* accurate.
46340
46341         Eliminate one way canonicalize_filename_mode could exit.
46342         * lib/canonicalize.c (canonicalize_filename_mode):
46343         Use mreadlink_with_size, not xreadlink_with_size.
46344
46345 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
46346
46347         Detect porting problems to FreeBSD/arm, which has time_t wider than
46348         long int.  Original problem reported for GNU diff by Xin Li in
46349         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
46350         * modules/getdate (Depends-on): Add intprops, verify.
46351         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
46352         is an integer type no wider than long int.
46353
46354 2007-06-18  Jim Meyering  <jim@meyering.net>
46355
46356         New module: mreadlink-with-size.
46357         * MODULES.html.sh: Add mreadlink-with-size.
46358         * modules/mreadlink-with-size: New module
46359         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
46360         not xreadlink-with-size.
46361         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
46362
46363 2007-06-16  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
46366         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
46367         Reported by Gary V. Vaughan <gary@gnu.org>.
46368
46369 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
46370
46371         Revamp lchown so that it lives in unistd.h where it belongs.
46372         * lib/lchown.h: Remove.
46373         * lib/dirchownmod.c: Don't include lib/lchown.h.
46374         * lib/fchownat.c: Likewise.
46375         * lib/openat.c: Likewise.
46376         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
46377         does not follow symlinks.
46378         (EOPNOTSUPP): Define if not defined.
46379         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
46380         is defined to 0.
46381         (lchown): New decl.
46382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
46383         Do not check for lchown decl.
46384         Set REPLACE_LCHOWN.
46385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
46386         REPLACE_LCHOWN.
46387         * modules/chown: Make it clear it follows symlinks.
46388         * modules/lchown: Make it clear it doesn't follow symlinks.
46389         (Files): Remove lib/lchown.h
46390         (Depends-on): Add unistd.
46391         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
46392         (Include): Include <unistd.h>, not "lchown.h".
46393         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
46394         REPLACE_LCHOWN.
46395
46396 2007-06-15  Jim Meyering  <jim@meyering.net>
46397
46398         Change license (GPL to LGPL) of fsusage and dependents.
46399         * modules/fsusage (License): Change to LGPL.
46400         * modules/full-read (License): Likewise.
46401         * modules/full-write (License): Likewise.
46402         * modules/safe-read (License): Likewise.
46403         * modules/safe-write (License): Likewise.
46404
46405 2007-06-14  Ben Pfaff  <blp@gnu.org>
46406
46407         Missing part of allocsa -> malloca transition.
46408         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
46409         gl_MALLOCA.
46410
46411 2007-06-12  Bruno Haible  <bruno@clisp.org>
46412
46413         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
46414         to ia64, x86_64, i386.
46415         Reported by Eric Blake.
46416
46417 2007-06-12  Bruno Haible  <bruno@clisp.org>
46418
46419         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
46420         cross-compiling to x86_64.
46421
46422 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
46423
46424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
46425         glitch reported by Ralf Wildenhues in
46426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
46427
46428         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
46429         Vin Shelton.
46430
46431 2007-06-11  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
46434         replacement string.
46435         Reported by Eric Blake.
46436
46437 2007-06-10  Bruno Haible  <bruno@clisp.org>
46438
46439         Prepare vasnprintf code for use with Unicode strings.
46440         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
46441         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
46442         TYPE_U32_STRING.
46443         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
46444         a_u32_string variants.
46445         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46446         * lib/printf-args.c: Don't include config.h and the specification
46447         header if PRINTF_FETCHARGS is already defined.
46448         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
46449         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
46450         TYPE_U16_STRING, TYPE_U32_STRING.
46451         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
46452         u16_directive, u16_directives, u32_directive, u32_directives): New
46453         types.
46454         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
46455         New declarations.
46456         * lib/printf-parse.c: Don't include config.h and the specification
46457         header if PRINTF_PARSE is already defined. Eliminate the set of
46458         parameters for WIDE_CHAR_VERSION; the user of this file must provide
46459         them now. Include c-ctype.h.
46460         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
46461         directive and CHAR_T_ONLY_ASCII.
46462         * lib/vasnprintf.c: Don't include config.h and the specification header
46463         if VASNPRINTF is already defined.
46464         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
46465         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
46466         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
46467         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
46468         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
46469         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
46470         code accordingly.
46471         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
46472         pad_ourselves also in this case, with the 'c' and 's' directives, and
46473         with a different notion of "width".
46474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
46475
46476 2007-06-10  Bruno Haible  <bruno@clisp.org>
46477
46478         * modules/unistr/u32-mbsnlen: New file.
46479         * lib/unistr/u32-mbsnlen.c: New file.
46480
46481         * modules/unistr/u16-mbsnlen: New file.
46482         * lib/unistr/u16-mbsnlen.c: New file.
46483
46484         * modules/unistr/u8-mbsnlen: New file.
46485         * lib/unistr/u8-mbsnlen.c: New file.
46486
46487         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
46488         declarations.
46489
46490 2007-06-10  Bruno Haible  <bruno@clisp.org>
46491
46492         * lib/string_.h (mbsnlen): New declaration.
46493         * lib/mbsnlen.c: New file.
46494         * m4/mbsnlen.m4: New file.
46495         * modules/mbsnlen: New file.
46496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
46497         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
46498         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
46499
46500 2007-06-10  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
46503
46504 2007-06-10  Bruno Haible  <bruno@clisp.org>
46505
46506         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
46507         * lib/mbuiter.h: Likewise.
46508
46509 2007-06-10  Bruno Haible  <bruno@clisp.org>
46510
46511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
46512         declaration.
46513
46514 2007-06-10  Karl Berry  <karl@gnu.org>
46515
46516         * config/srclist.txt: remove gettext entries, Bruno prefers
46517         to update individually.
46518
46519 2007-06-10  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
46522         'maxlen'. Ensure only length + width bytes are allocated, not
46523         length + 1 + width.
46524
46525 2007-06-09  Bruno Haible  <bruno@clisp.org>
46526
46527         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
46528         (CHAR_T): Remove macro.
46529         (VASNPRINTF): Update.
46530
46531 2007-06-09  Bruno Haible  <bruno@clisp.org>
46532
46533         * MODULES.html.sh (Unicode string functions): Add the new modules.
46534
46535         * modules/uniconv/u32-conv-to-enc: New file.
46536         * lib/uniconv/u32-conv-to-enc.c: New file.
46537         * modules/uniconv/u32-conv-to-enc-tests: New file.
46538         * tests/uniconv/test-u32-conv-to-enc.c: New file.
46539
46540         * modules/uniconv/u16-conv-to-enc: New file.
46541         * lib/uniconv/u16-conv-to-enc.c: New file.
46542         * lib/uniconv/u-conv-to-enc.h: New file.
46543         * modules/uniconv/u16-conv-to-enc-tests: New file.
46544         * tests/uniconv/test-u16-conv-to-enc.c: New file.
46545
46546         * modules/uniconv/u8-conv-to-enc: New file.
46547         * lib/uniconv/u8-conv-to-enc.c: New file.
46548         * modules/uniconv/u8-conv-to-enc-tests: New file.
46549         * tests/uniconv/test-u8-conv-to-enc.c: New file.
46550
46551         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46552         u32_conv_to_encoding): New declarations.
46553
46554 2007-06-09  Bruno Haible  <bruno@clisp.org>
46555
46556         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
46557
46558 2007-06-09  Bruno Haible  <bruno@clisp.org>
46559
46560         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
46561         * modules/malloca: Renamed from modules/allocsa, updated.
46562         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
46563         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
46564         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
46565         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
46566         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
46567         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
46568         * modules/xmalloca: Renamed from modules/xallocsa, updated.
46569         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
46570         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
46571         * modules/c-strcasestr (Depends-on): Update.
46572         * lib/c-strcasestr.c: Update.
46573         * modules/c-strstr (Depends-on): Update.
46574         * lib/c-strstr.c: Update.
46575         * modules/canonicalize-lgpl (Depends-on): Update.
46576         * lib/canonicalize-lgpl.c: Update.
46577         * modules/clean-temp (Depends-on): Update.
46578         * lib/clean-temp.c: Update.
46579         * modules/csharpcomp (Depends-on): Update.
46580         * lib/csharpcomp.c: Update.
46581         * modules/csharpexec (Depends-on): Update.
46582         * lib/csharpexec.c: Update.
46583         * modules/javacomp (Depends-on): Update.
46584         * lib/javacomp.c: Update.
46585         * modules/javaexec (Depends-on): Update.
46586         * lib/javaexec.c: Update.
46587         * modules/mbscasestr (Depends-on): Update.
46588         * lib/mbscasestr.c: Update.
46589         * modules/mbsstr (Depends-on): Update.
46590         * lib/mbsstr.c: Update.
46591         * modules/setenv (Depends-on): Update.
46592         * lib/setenv.c: Update.
46593         * modules/strcasestr (Depends-on): Update.
46594         * lib/strcasestr.c: Update.
46595         * modules/striconveha (Depends-on): Update.
46596         * lib/striconveha.c: Update.
46597         * modules/relocatable-prog-wrapper (Files): Update.
46598         * lib/relocwrapper.c: Update.
46599         * build-aux/install-reloc: Update.
46600         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
46601
46602 2007-06-08  Bruno Haible  <bruno@clisp.org>
46603
46604         Port to uClibc.
46605         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
46606         * lib/fpurge.c (fpurge): Likewise.
46607         * lib/freading.c (freading): Likewise.
46608         * lib/fseeko.c (rpl_fseeko): Likewise.
46609         * lib/fseterr.c (fseterr): Likewise.
46610         * lib/fwriting.c (fwriting): Likewise.
46611         * tests/test-fflush.c (main): Avoid a failure on uClibc.
46612
46613 2007-06-08  Bruno Haible  <bruno@clisp.org>
46614
46615         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
46616         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
46617         * modules/gettext (Files): Add m4/intlmacosx.m4.
46618
46619 2007-06-07  Bruno Haible  <bruno@clisp.org>
46620
46621         * modules/localename-tests: New file.
46622         * tests/test-localename.c: New file.
46623
46624         New module 'localename'.
46625         * lib/localename.h: New file.
46626         * lib/localename.c: New file, from GNU gettext.
46627         * m4/localename.m4: New file.
46628         * modules/localename: New file.
46629
46630 2007-06-07  Bruno Haible  <bruno@clisp.org>
46631
46632         Work around the lack of <wchar.h> on some builds of uClibc.
46633         * doc/headers/wchar.texi: Update.
46634         * lib/wchar_.h: Include <wchar.h> only if it exists.
46635         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
46636         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
46637         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
46638         doesn't exist.
46639         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
46640         * modules/mbfile (Depends-on): Add wchar.
46641         * modules/mbiter (Depends-on): Likewise.
46642         * modules/mbuiter (Depends-on): Likewise.
46643         Reported by Simon Josefsson.
46644
46645 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         Work around problem reported by Steven M. Schweda in
46648         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
46649         Tru64 5.1B with the Compaq compiler environment installed declares
46650         an 'isblank' function but does not define it in the C library.
46651         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
46652         * lib/regex_internal.h (isblank): Likewise.
46653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
46654         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46655
46656 2007-06-05  Bruno Haible  <bruno@clisp.org>
46657
46658         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
46659         ia64.
46660         * modules/printf-safe: New file.
46661         * modules/fprintf-posix (Depends-on): Add printf-safe.
46662         * modules/printf-posix (Depends-on): Likewise.
46663         * modules/snprintf-posix (Depends-on): Likewise.
46664         * modules/sprintf-posix (Depends-on): Likewise.
46665         * modules/vasnprintf-posix (Depends-on): Likewise.
46666         * modules/vasprintf-posix (Depends-on): Likewise.
46667         * modules/vfprintf-posix (Depends-on): Likewise.
46668         * modules/vprintf-posix (Depends-on): Likewise.
46669         * modules/vsnprintf-posix (Depends-on): Likewise.
46670         * modules/vsprintf-posix (Depends-on): Likewise.
46671         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46672         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
46673         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
46674         "no" on i386, x86_64, ia64.
46675         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
46676         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46677         on i386, x86_64, ia64.
46678         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
46679         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46680         on i386, x86_64, ia64.
46681         * tests/test-vasnprintf-posix.c: Include float.h.
46682         (LDBL80_WORDS): New macro.
46683         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46684         on i386, x86_64, ia64.
46685         * tests/test-vasprintf-posix.c: Include float.h.
46686         (LDBL80_WORDS): New macro.
46687         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
46688         on i386, x86_64, ia64.
46689         * tests/test-snprintf-posix.c: Include float.h.
46690         * tests/test-sprintf-posix.c: Likewise.
46691         * tests/test-vsnprintf-posix.c: Likewise.
46692         * tests/test-vsprintf-posix.c: Likewise.
46693
46694 2007-06-05  Bruno Haible  <bruno@clisp.org>
46695
46696         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
46697         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
46698         non-IEEE numbers on i386, x86_64, ia64.
46699         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
46700         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
46701         * tests/test-isnanl.h: Include float.h.
46702         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
46703
46704 2007-06-05  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
46707         also the %a / %A. Handle the %a / %A code before this extra handling.
46708
46709 2007-06-05  Bruno Haible  <bruno@clisp.org>
46710
46711         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
46712         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
46713
46714 2007-06-05  Bruno Haible  <bruno@clisp.org>
46715
46716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
46717         typo in variable name.
46718
46719 2007-06-05  Eric Blake  <ebb9@byu.net>
46720
46721         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
46722         Reported by Simon Josefsson.
46723
46724 2007-06-04  Bruno Haible  <bruno@clisp.org>
46725
46726         Avoid test failures on some PowerPC platforms.
46727         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
46728         Define differently for PowerPC.
46729         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
46730         Reported by Gary V. Vaughan <gary@gnu.org>.
46731
46732 2007-06-02  Bruno Haible  <bruno@clisp.org>
46733
46734         Fix test-stdint failure on FreeBSD/ia64.
46735         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
46736         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
46737         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
46738         * doc/headers/stdint.texi: Update.
46739
46740 2007-06-01  Bruno Haible  <bruno@clisp.org>
46741
46742         * tests/test-binary-io.c (main): Pass a third argument to open().
46743         Reported by Gary V. Vaughan <gary@gnu.org>.
46744
46745 2007-06-01  Bruno Haible  <bruno@clisp.org>
46746
46747         * doc/functions/frexpl.texi: Update for mingw.
46748
46749 2007-06-01  Bruno Haible  <bruno@clisp.org>
46750
46751         * tests/test-lseek.c (main): Disable test of errno for invalid third
46752         argument.
46753         * doc/functions/lseek.texi: Update.
46754         Reported by Gary V. Vaughan <gary@gnu.org>.
46755
46756 2007-05-28  Bruno Haible  <bruno@clisp.org>
46757
46758         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
46759
46760 2007-05-31  Eric Blake  <ebb9@byu.net>
46761
46762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
46763         cross compiling.
46764
46765 2007-05-30  Eric Blake  <ebb9@byu.net>
46766         and Bruno Haible  <bruno@clisp.org>
46767
46768         Work around mingw test failures exposed by m4-1.4.9b.
46769         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
46770         * tests/test-unistd.c: Disable uid_t and git_t tests for the
46771         moment.
46772
46773 2007-05-30  Bruno Haible  <bruno@clisp.org>
46774
46775         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
46776         assuming that they are closed. Needed on HP-UX 11.
46777
46778 2007-05-29  Bruno Haible  <bruno@clisp.org>
46779
46780         Fix a problem with #include_next.
46781         * lib/dirent_.h: Split the double-inclusion guard.
46782         * lib/fcntl_.h: Likewise.
46783         * lib/float_.h: Likewise.
46784         * lib/iconv_.h: Likewise.
46785         * lib/inttypes_.h: Likewise.
46786         * lib/locale_.h: Likewise.
46787         * lib/math_.h: Likewise.
46788         * lib/netinet_in_.h: Likewise.
46789         * lib/search_.h: Likewise.
46790         * lib/signal_.h: Likewise.
46791         * lib/stdint_.h: Likewise.
46792         * lib/stdio_.h: Likewise.
46793         * lib/stdlib_.h: Likewise.
46794         * lib/string_.h: Likewise.
46795         * lib/sys_select_.h: Likewise.
46796         * lib/sys_socket_.h: Likewise.
46797         * lib/sys_stat_.h: Likewise.
46798         * lib/sys_time_.h: Likewise.
46799         * lib/sysexits_.h: Likewise.
46800         * lib/time_.h: Likewise.
46801         * lib/unistd_.h: Likewise.
46802         * lib/wchar_.h: Likewise.
46803         * lib/wctype_.h: Likewise.
46804
46805 2007-05-29  Bruno Haible  <bruno@clisp.org>
46806
46807         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
46808         for the moment.
46809
46810 2007-05-29  Bruno Haible  <bruno@clisp.org>
46811
46812         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
46813         invocation.
46814         Reported by Eric Blake.
46815
46816 2007-05-29  Bruno Haible  <bruno@clisp.org>
46817
46818         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
46819         compiling case.
46820
46821 2007-05-29  Eric Blake  <ebb9@byu.net>
46822             Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
46825         cross compiles.
46826
46827 2007-05-28  Eric Blake  <ebb9@byu.net>
46828
46829         * modules/closein-tests (test_closein_LDADD): Support test on
46830         cygwin with libtool.
46831
46832 2007-05-28  Bruno Haible  <bruno@clisp.org>
46833
46834         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
46835         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46836         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46837         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46838         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46839         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46840         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46841         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46842         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46843
46844 2007-05-28  Eric Blake  <ebb9@byu.net>
46845
46846         Unconditionally include <config.h> in unit tests.
46847         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
46848         * tests/test-allocsa.c, tests/test-arcfour.c,
46849         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
46850         tests/test-array_list.c, tests/test-array_oset.c,
46851         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
46852         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
46853         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
46854         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
46855         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
46856         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
46857         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
46858         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
46859         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
46860         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
46861         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
46862         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
46863         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
46864         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
46865         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
46866         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
46867         test-md5.c, test-memmem.c, test-printf-posix.c,
46868         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
46869         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
46870         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
46871         test-strcasestr.c, test-striconv.c, test-striconveh.c,
46872         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
46873         test-vasnprintf-posix2.c, test-vasnprintf.c,
46874         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
46875         test-vfprintf-posix.c, test-vprintf-posix.c,
46876         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
46877         test-xvasprintf.c: Likewise.
46878
46879 2007-05-28  Bruno Haible  <bruno@clisp.org>
46880
46881         * gnulib-tool (func_import): Remember the --with-tests command-line
46882         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
46883         Reported by Eric Blake.
46884
46885 2007-05-28  Bruno Haible  <bruno@clisp.org>
46886
46887         * modules/ftell-tests: New file.
46888         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
46889         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
46890
46891         * lib/ftell.c: New file.
46892         * modules/ftell: New file.
46893         * m4/ftell.m4: New file.
46894         * doc/functions/ftell.texi: Update.
46895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
46896         REPLACE_FTELL.
46897         * lib/stdio_.h (rpl_ftell): New declaration.
46898         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
46899         REPLACE_FTELL.
46900
46901 2007-05-28  Eric Blake  <ebb9@byu.net>
46902
46903         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
46904
46905 2007-05-28  Bruno Haible  <bruno@clisp.org>
46906
46907         * modules/fseek-tests: New file.
46908         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
46909         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
46910
46911         * lib/fseek.c: New file.
46912         * modules/fseek: New file.
46913         * m4/fseek.m4: New file.
46914         * doc/functions/fseek.texi: Update.
46915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
46916         REPLACE_FSEEK.
46917         * lib/stdio_.h (rpl_fseek): New declaration.
46918         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
46919         REPLACE_FSEEK.
46920
46921 2007-05-28  Bruno Haible  <bruno@clisp.org>
46922
46923         * lib/stdio_.h (fflush): More comments.
46924
46925 2007-05-28  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
46928         runtime test.
46929
46930 2007-05-28  Eric Blake  <ebb9@byu.net>
46931
46932         Improve lseek module.
46933         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
46934         * lib/unistd_.h (lseek): Scale back link warning message.
46935         * tests/test-lseek.c: Beef up test.
46936         * tests/test-lseek.sh: Exercise more facets of lseek.
46937         Reported by Bruno Haible.
46938
46939 2007-05-28  Bruno Haible  <bruno@clisp.org>
46940
46941         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
46942         to define.
46943
46944 2007-05-27  Bruno Haible  <bruno@clisp.org>
46945
46946         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
46947
46948 2007-05-27  Bruno Haible  <bruno@clisp.org>
46949
46950         * modules/openmp: New file.
46951         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
46952         Noah Misch.
46953
46954 2007-05-26  Bruno Haible  <bruno@clisp.org>
46955
46956         * modules/chdir-long (Depends-on): Add fchdir.
46957         * modules/chdir-safer (Depends-on): Likewise.
46958         * modules/fts (Depends-on): Likewise.
46959         * modules/fts-lgpl (Depends-on): Likewise.
46960         * modules/openat (Depends-on): Likewise.
46961         * modules/savewd (Depends-on): Likewise.
46962
46963 2007-05-24  Eric Blake  <ebb9@byu.net>
46964
46965         Fix lseek on mingw.
46966         * modules/lseek: New module.
46967         * m4/lseek.m4: New file.
46968         * lib/lseek.c: New file.
46969         * modules/lseek-tests: New file.
46970         * tests/test-lseek.c: New file.
46971         * tests/test-lseek.sh: New file.
46972         * MODULES.html.sh: Document lseek module.
46973         * modules/fflush (Depends-on): Add lseek, fseeko.
46974         * modules/fseeko (Depends-on): Likewise.
46975         * modules/ftello (Depends-on): Likewise.
46976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46977         broken.
46978         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46979         broken.
46980         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46981         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46982         * lib/ftello.c (rpl_ftello): Likewise.
46983         * tests/test-fseeko.c (main): Test this.
46984         * tests/test-fseeko.sh: Likewise.
46985         * tests/test-ftello.c (main): Likewise.
46986         * tests/test-ftello.sh: Likewise.
46987         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46988         implies replacing fseek.
46989         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46990         HAVE_FTELLO.
46991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46992         * modules/unistd (Makefile.am): Likewise.
46993         * lib/unistd_.h (lseek): Declare a replacement.
46994         * doc/functions/lseek.texi (lseek): Document this fix.
46995         * doc/functions/fseek.texi (fseek): Likewise.
46996         * doc/functions/ftell.texi (ftell): Likewise.
46997
46998 2007-05-24  Bruno Haible  <bruno@clisp.org>
46999
47000         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47001         in the printed representation of a NaN.
47002         * tests/test-vasprintf-posix.c (test_function): Likewise.
47003         * tests/test-snprintf-posix.h (test_function): Likewise.
47004         * tests/test-sprintf-posix.h (test_function): Likewise.
47005         Reported by Eric Blake.
47006
47007 2007-05-23  Eric Blake  <ebb9@byu.net>
47008
47009         Fix fseeko/ftello on cygwin 1.5.24.
47010         * doc/functions/fseeko.texi (fseeko): Document the fix.
47011         * doc/functions/ftello.texi (ftello): Document the fix.
47012         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47013         * doc/functions/stdout.text (stdout): New file.
47014         * doc/functions/stderr.text (stderr): New file.
47015         * doc/gnulib.texi (Function Substitutes): Use new files.
47016         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47017         prior to 1.7.0.
47018         * tests/test-ftello.c (main): Likewise for ftello.
47019         * tests/test-fseeko.sh: New file.
47020         * tests/test-ftello.sh: New file.
47021         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47022         with seekable stdin.
47023         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47025         (gl_REPLACE_FSEEKO): New macro.
47026         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47027         * modules/fseeko (Files): Distribute fseeko.c.
47028         * modules/ftello (Files): Distribute ftello.c.
47029         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47030         mode.
47031         * lib/ftello.c (rpl_ftello): New file.
47032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47033         fseeko, ftello.
47034         (gl_STDIN_LARGE_OFFSET): New macro.
47035         * modules/stdio (Makefile.am): Perform the replacement.
47036         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47037
47038 2007-05-23  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47041         GNULIB_POSIXCHECK is defined.
47042
47043 2007-05-21  Bruno Haible  <bruno@clisp.org>
47044
47045         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47046         Check also the output for NaN arguments. When cross-compiling, guess
47047         no on IRIX.
47048         * lib/vasnprintf.c: Update comments.
47049         * tests/test-vasnprintf-posix.c (strisnan): New function.
47050         (test_function): Use it.
47051         * tests/test-vasprintf-posix.c (strisnan): New function.
47052         (test_function): Use it.
47053         * tests/test-snprintf-posix.h (strisnan): New function.
47054         (test_function): Use it.
47055         * tests/test-sprintf-posix.h (strisnan): New function.
47056         (test_function): Use it.
47057         Reported by Eric Blake.
47058
47059 2007-05-20  Bruno Haible  <bruno@clisp.org>
47060
47061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47062         numbers that fails on BeOS.
47063         * doc/functions/frexpl.texi: Update.
47064
47065 2007-05-20  Jim Meyering  <jim@meyering.net>
47066
47067         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47068         forced upon us by glibc-2.6.
47069
47070 2007-05-20  Bruno Haible  <bruno@clisp.org>
47071
47072         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47073         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47074         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47075         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47076         NEED_PRINTF_INFINITE.
47077         (is_infinitel): New function.
47078         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47080         gl_PREREQ_VASNPRINTF_INFINITE.
47081         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47083         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47084         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47085         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47086         gl_PREREQ_VASNPRINTF_INFINITE.
47087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47094         * doc/functions/fprintf.texi: Update.
47095         * doc/functions/printf.texi: Update.
47096         * doc/functions/snprintf.texi: Update.
47097         * doc/functions/sprintf.texi: Update.
47098         * doc/functions/vfprintf.texi: Update.
47099         * doc/functions/vprintf.texi: Update.
47100         * doc/functions/vsnprintf.texi: Update.
47101         * doc/functions/vsprintf.texi: Update.
47102
47103 2007-05-20  Bruno Haible  <bruno@clisp.org>
47104
47105         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47106         was not found in libc.
47107         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47108
47109 2007-05-20  Bruno Haible  <bruno@clisp.org>
47110
47111         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47112         printed as "-nan" instead of "nan".
47113         * tests/test-vasprintf-posix.c (test_function): Likewise.
47114         * tests/test-snprintf-posix.h (test_function): Likewise.
47115         * tests/test-sprintf-posix.h (test_function): Likewise.
47116         Needed for HP-UX 11.
47117
47118 2007-05-20  Jim Meyering  <jim@meyering.net>
47119
47120         Fix buggy test for the fchownat-deref bug.
47121         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47122         symlink required for the run-test.  Without it, this test would
47123         always declare that fchownat doesn't work, and client code would
47124         unnecessarily use the replacement function with fixed libc.
47125         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47126         Reported by Greg Schafer.
47127
47128 2007-05-19  Bruno Haible  <bruno@clisp.org>
47129
47130         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47131         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47132         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47133         Needed for IRIX 6.5 and Solaris 2.5.1.
47134
47135 2007-05-19  Bruno Haible  <bruno@clisp.org>
47136
47137         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47138         (test_function): Skip tests involving -0.0 on platforms where
47139         -0.0 = 0.0.
47140         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47141         (test_function): Skip tests involving -0.0 on platforms where
47142         -0.0 = 0.0.
47143         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47144         (test_function): Skip tests involving -0.0 on platforms where
47145         -0.0 = 0.0.
47146         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47147         (test_function): Skip tests involving -0.0 on platforms where
47148         -0.0 = 0.0.
47149         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47150         tests.
47151         * tests/test-printf-posix.h (test_function): Likewise.
47152         * tests/test-printf-posix.output: Remove all -0.0 related results.
47153         Needed for IRIX 6.5.
47154
47155 2007-05-19  Bruno Haible  <bruno@clisp.org>
47156
47157         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47158         printed as "nan0x7fffffff" instead of "nan".
47159         * tests/test-vasprintf-posix.c (test_function): Likewise.
47160         * tests/test-snprintf-posix.h (test_function): Likewise.
47161         * tests/test-sprintf-posix.h (test_function): Likewise.
47162         * tests/test-fprintf-posix.h (NaN): Remove macro.
47163         (test_function): Remove all NaN related tests.
47164         * tests/test-printf-posix.h (NaN): Remove macro.
47165         (test_function): Remove all NaN related tests.
47166         * tests/test-printf-posix.output: Remove all NaN related results.
47167         Needed for IRIX 6.5.
47168
47169 2007-05-19  Bruno Haible  <bruno@clisp.org>
47170
47171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47173
47174 2007-05-19  Bruno Haible  <bruno@clisp.org>
47175
47176         * lib/float_.h: New file.
47177         * m4/float_h.m4: New file.
47178         * modules/float: New file.
47179         * modules/isnanl (Dependencies): Add float.
47180         * modules/isnanl-nolibm (Dependencies): Likewise.
47181         * modules/mathl (Dependencies): Likewise.
47182         * modules/printf-frexpl (Dependencies): Likewise.
47183         * modules/signbit (Dependencies): Likewise.
47184         * modules/vasnprintf (Dependencies): Likewise.
47185         * doc/headers/float.texi: Update.
47186
47187 2007-05-19  Jim Meyering  <jim@meyering.net>
47188
47189         * lib/utimens.c (gl_futimens): Rename from futimens,
47190         now that glibc-2.6 declares futimens.
47191         * lib/utimens.h: Likewise.
47192
47193 2007-05-19  Bruno Haible  <bruno@clisp.org>
47194
47195         Avoid test failures on mingw.
47196         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47197         * tests/test-printf-posix.sh: Likewise.
47198         * tests/test-vfprintf-posix.sh: Likewise.
47199         * tests/test-vprintf-posix.sh: Likewise.
47200
47201 2007-05-19  Bruno Haible  <bruno@clisp.org>
47202
47203         Fix *printf result for NaN, Inf, -0.0 on mingw.
47204         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47205         * lib/vasnprintf.c: Include math.h and isnan.h.
47206         (is_infinite_or_zero): New function.
47207         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47208         values in the %f, %F, %e, %E, %g, %G directives.
47209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47211         gl_PRINTF_INFINITE and test its result. Invoke
47212         gl_PREREQ_VASNPRINTF_INFINITE.
47213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47220         * doc/functions/fprintf.texi: Update.
47221         * doc/functions/printf.texi: Update.
47222         * doc/functions/snprintf.texi: Update.
47223         * doc/functions/sprintf.texi: Update.
47224         * doc/functions/vfprintf.texi: Update.
47225         * doc/functions/vprintf.texi: Update.
47226         * doc/functions/vsnprintf.texi: Update.
47227         * doc/functions/vsprintf.texi: Update.
47228
47229 2007-05-19  Bruno Haible  <bruno@clisp.org>
47230
47231         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47232         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47233         Instead of multiplying with 10^k, set extra_zeroes to k.
47234         (scale10_round_long_double): Remove function.
47235
47236 2007-05-18  Bruno Haible  <bruno@clisp.org>
47237
47238         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47239         introduced on 2007-05-06.
47240
47241 2007-05-18  Bruno Haible  <bruno@clisp.org>
47242
47243         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
47244         %g directives.
47245         * tests/test-vasprintf-posix.c (test_function): Likewise.
47246         * tests/test-snprintf-posix.h (test_function): Likewise.
47247         * tests/test-sprintf-posix.h (test_function): Likewise.
47248
47249 2007-05-18  Bruno Haible  <bruno@clisp.org>
47250
47251         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
47252         (strmatch): New function.
47253         (test_function): Test the %f directive on numbers of various exponents.
47254         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
47255         (strmatch): New function.
47256         (test_function): Test the %f directive on numbers of various exponents.
47257         * tests/test-snprintf-posix.h (strmatch): New function.
47258         (test_function): Test the %f directive on numbers of various exponents.
47259         * tests/test-sprintf-posix.h (strmatch): New function.
47260         (test_function): Test the %f directive on numbers of various exponents.
47261         * tests/test-snprintf-posix.c (SIZEOF): New macro.
47262         * tests/test-sprintf-posix.c (SIZEOF): New macro.
47263         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
47264         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
47265
47266 2007-05-18  Bruno Haible  <bruno@clisp.org>
47267
47268         Add support for 'long double' number output.
47269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
47270         * lib/vasnprintf.c: Include math.h and float+.h.
47271         (mp_limb_t): New type.
47272         (GMP_LIMB_BITS): New macro.
47273         (mp_twolimb_t): New type.
47274         (GMP_TWOLIMB_BITS): New macro.
47275         (mpn_t): New type.
47276         (multiply, divide, convert_to_decimal, decode_long_double,
47277         scale10_round_long_double, scale10_round_decimal_long_double,
47278         floorlog10l): New functions.
47279         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
47280         for the %f, %F, %e, %E, %g, %G directives.
47281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
47282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47283         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
47284         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
47285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47292         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
47293         * modules/snprintf-posix (Depends-on): Likewise.
47294         * modules/sprintf-posix (Depends-on): Likewise.
47295         * modules/vasnprintf-posix (Depends-on): Likewise.
47296         * modules/vasprintf-posix (Depends-on): Likewise.
47297         * modules/vfprintf-posix (Depends-on): Likewise.
47298         * modules/vsnprintf-posix (Depends-on): Likewise.
47299         * modules/vsprintf-posix (Depends-on): Likewise.
47300         * modules/vasnprintf (Files): Add lib/float+.h.
47301         * doc/functions/fprintf.texi: Update.
47302         * doc/functions/printf.texi: Update.
47303         * doc/functions/snprintf.texi: Update.
47304         * doc/functions/sprintf.texi: Update.
47305         * doc/functions/vfprintf.texi: Update.
47306         * doc/functions/vprintf.texi: Update.
47307         * doc/functions/vsnprintf.texi: Update.
47308         * doc/functions/vsprintf.texi: Update.
47309
47310 2007-05-18  Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
47313
47314 2007-05-18  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
47317         for printing 64-bit integers. Needed for mingw.
47318
47319 2007-05-18  Bruno Haible  <bruno@clisp.org>
47320
47321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47322         gl_FUNC_FREXPL_WORKS.
47323         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
47324
47325 2007-05-18  Bruno Haible  <bruno@clisp.org>
47326
47327         * modules/frexpl-nolibm-tests: New file.
47328
47329         * modules/frexpl-nolibm: New file.
47330         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
47331
47332 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
47335         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47336         GCC 4.2, which otherwise issues a lot of warnings.
47337         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
47338         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
47339         Likewise.
47340         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
47341         * modules/iconv_open (iconv.h): Likewise.
47342         * modules/locale (locale.h): Likewise.
47343         * modules/netinet_in (netinet/in.h): Likewise.
47344         * modules/sys_select (sys_select.h): Likewise.
47345         * modules/sys_socket (sys/socket.h): Likewise.
47346         * modules/sys_stat (sys/stat.h): Likewise.
47347         * modules/sysexits (sysexits.h): Likewise.
47348         * modules/unistd (unistd.h): Likewise.
47349
47350 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47351
47352         * modules/closein-tests (Makefile.am): Distribute
47353         `test-closein.sh'.
47354
47355 2007-05-17  Bruno Haible  <bruno@clisp.org>
47356
47357         * tests/test-printf-posix.output: Renamed from
47358         tests/test-fprintf-posix.out.
47359         * modules/fprintf-posix-tests: Update.
47360         * modules/printf-posix-tests: Update.
47361         * modules/vfprintf-posix-tests: Update.
47362         * modules/vprintf-posix-tests: Update.
47363         * tests/test-fprintf-posix.sh: Update.
47364         * tests/test-printf-posix.sh: Update.
47365         * tests/test-vfprintf-posix.sh: Update.
47366         * tests/test-vprintf-posix.sh: Update.
47367         Reported by Ralf Wildenhues.
47368
47369 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
47372         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
47373         GCC 4.2, which otherwise issues a lot of warnings.
47374         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
47375         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
47376         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
47377         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
47378         it should no longer be needed.
47379         * lib/string_.h: Likewise.
47380         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
47381         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
47382         * modules/inttypes (inttypes.h): Likewise.
47383         * modules/math (math.h): Likewise.
47384         * modules/search (search.h): Likewise.
47385         * modules/signal (signal.h): Likewise.
47386         * modules/stdint (stdint.h): Likewise.
47387         * modules/stdio (stdio.h): Likewise.
47388         * modules/stdlib (stdlib.h): Likewise.
47389         * modules/string (string.h): Likewise.
47390         * modules/sys_time (sys/time.h): Likewise.
47391         * modules/time (time.h): Likewise.
47392         * modules/wchar (wchar.h): Likewise.
47393         * modules/wctype (wtype.h): Likewise.
47394
47395 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47396
47397         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
47398
47399 2007-05-13  Bruno Haible  <bruno@clisp.org>
47400
47401         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
47402         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47403         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
47404         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47405         (gl_PREREQ_STRTOK_R): Don't require it here.
47406
47407 2007-05-13  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
47410         when used in C++ mode.
47411
47412 2007-05-12  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/linebuffer.h: Tweak doc.
47415         * lib/linebuffer.c: Likewise.
47416
47417 2007-05-12  James Youngman  <jay@gnu.org>
47418
47419         * lib/linebuffer.c (readlinebuffer_delim): New function,
47420         like readlinebuffer, but use a caller-specified delimiter.
47421         (readlinebuffer): Just call readlinebuffer_delim with '\n'
47422         as the delimiter.
47423         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
47424
47425 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47426
47427         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
47428         * modules/openat (Files): Remove openat-die.c.
47429         (Depends-on): Add openat-die.
47430         * modules/openat-die: New module.
47431
47432 2007-05-06  Bruno Haible  <bruno@clisp.org>
47433
47434         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
47435         Update with info about Cygwin.
47436         * doc/functions/fprintf.texi: Update.
47437         * doc/functions/printf.texi: Update.
47438         * doc/functions/snprintf.texi: Update.
47439         * doc/functions/sprintf.texi: Update.
47440         * doc/functions/vfprintf.texi: Update.
47441         * doc/functions/vprintf.texi: Update.
47442         * doc/functions/vsnprintf.texi: Update.
47443         * doc/functions/vsprintf.texi: Update.
47444         Reported by Eric Blake.
47445
47446 2007-05-06  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
47449         padding ourselves for the floating-point directives.
47450         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
47451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
47452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47453         gl_PRINTF_FLAG_ZERO and test its result. Invoke
47454         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
47455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47462         * tests/test-snprintf-posix.h (test_function): Also check the width
47463         and some flags in the %f directive.
47464         * tests/test-sprintf-posix.h (test_function): Likewise.
47465         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47466         * tests/test-vasprintf-posix.c (test_function): Likewise.
47467         * doc/functions/fprintf.texi: Update.
47468         * doc/functions/printf.texi: Update.
47469         * doc/functions/snprintf.texi: Update.
47470         * doc/functions/sprintf.texi: Update.
47471         * doc/functions/vfprintf.texi: Update.
47472         * doc/functions/vprintf.texi: Update.
47473         * doc/functions/vsnprintf.texi: Update.
47474         * doc/functions/vsprintf.texi: Update.
47475
47476 2007-05-06  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
47479         pass the ' flag character to sprintf or snprintf.
47480         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
47481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
47482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47483         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
47484         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
47485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
47487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47492         * tests/test-snprintf-posix.h (test_function): Also check the grouping
47493         flag.
47494         * tests/test-sprintf-posix.h (test_function): Likewise.
47495         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47496         * tests/test-vasprintf-posix.c (test_function): Likewise.
47497         * doc/functions/fprintf.texi: Update.
47498         * doc/functions/printf.texi: Update.
47499         * doc/functions/snprintf.texi: Update.
47500         * doc/functions/sprintf.texi: Update.
47501         * doc/functions/vfprintf.texi: Update.
47502         * doc/functions/vprintf.texi: Update.
47503         * doc/functions/vsnprintf.texi: Update.
47504         * doc/functions/vsprintf.texi: Update.
47505
47506 2007-05-01  Bruno Haible  <bruno@clisp.org>
47507
47508         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
47509
47510 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
47513         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
47514
47515 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
47518         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
47519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
47520
47521 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
47522
47523         * lib/argp-help.c (struct hol_entry): New member `ord'.
47524         (HOL_ENTRY_PTRCMP): Use ord for comparison
47525         (hol_sort): Initialize ord.
47526
47527 2007-05-01  Bruno Haible  <bruno@clisp.org>
47528
47529         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
47530         Reported by Eric Blake.
47531         * doc/gnulib.texi (Function Substitutes): Update.
47532
47533 2007-05-01  Bruno Haible  <bruno@clisp.org>
47534
47535         * doc/functions.texi: Remove file, now redundant through
47536         doc/functions/*.texi.
47537
47538 2007-05-01  Bruno Haible  <bruno@clisp.org>
47539
47540         * modules/argp (Depends-on): Add sleep.
47541
47542 2007-05-01  Bruno Haible  <bruno@clisp.org>
47543
47544         * modules/sleep-tests: New file.
47545         * tests/test-sleep.c: New file.
47546
47547         * modules/sleep: New file.
47548         * lib/sleep.c: New file.
47549         * m4/sleep.m4: New file.
47550         * lib/unistd_.h (sleep): New declaration.
47551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
47552         HAVE_SLEEP.
47553         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
47554         * doc/functions/sleep.texi: Document the sleep module.
47555
47556 2007-05-01  Bruno Haible  <bruno@clisp.org>
47557
47558         * lib/sigprocmask.h: Remove file.
47559         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
47560         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
47561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
47562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
47563         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47564         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
47565         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
47566         HAVE_SIGSET_T as a shell variable.
47567         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
47568         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
47569         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
47570         (Depends-on): Add signal. Remove verify.
47571         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
47572         (Include): Mention <signal.h> instead of sigprocmask.h.
47573         * NEWS: Mention the change.
47574         * lib/fatal-signal.c: Don't include sigprocmask.h.
47575
47576 2007-05-01  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/signal: New file.
47579         * lib/signal_.h: New file.
47580         * m4/signal_h.m4: New file.
47581
47582 2007-05-01  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
47585         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
47586         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
47587         HAVE_WCTYPE_CTMP_BUG into wctype.h.
47588
47589 2007-05-01  Bruno Haible  <bruno@clisp.org>
47590
47591         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
47592         configure time.
47593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
47594         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
47595         * modules/sys_stat (Makefile.am): Substitute their values into
47596         sys/stat.h.
47597
47598 2007-05-01  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
47601         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
47602         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
47603
47604 2007-05-01  Bruno Haible  <bruno@clisp.org>
47605
47606         * doc/header/assert.texi: Undo last change: don't mention the gnulib
47607         'assert' module here.
47608
47609 2007-05-01  Bruno Haible  <bruno@clisp.org>
47610
47611         * doc/functions/*.texi: New files.
47612         * doc/functions/google-ranking.txt: New file.
47613         * doc/gnulib.texi (Function Substitutes): New chapter.
47614         (ctime, inet_ntoa): Remove sections.
47615         * doc/ctime.texi: Remove file.
47616         * doc/inet_ntoa.texi: Remove file.
47617         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
47618         dependencies.
47619         (%.info): New rule, specifying a --reference-limit.
47620
47621 2007-05-01  Bruno Haible  <bruno@clisp.org>
47622
47623         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
47624
47625 2007-05-01  Bruno Haible  <bruno@clisp.org>
47626
47627         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
47628         the portability of 'mkdir' to mingw systems.
47629
47630 2007-05-01  Bruno Haible  <bruno@clisp.org>
47631
47632         * doc/headers/google-ranking.txt: New file.
47633
47634 2007-04-30  Eric Blake  <ebb9@byu.net>
47635
47636         Prefer fseeko to fseek.
47637         * modules/getpass (Depends-on): Add fseeko.
47638         * lib/getpass.c (getpass): Use fseeko, not fseek.
47639
47640 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
47641
47642         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
47643         assumes the sorting is stable, while most qsort implementations
47644         are not.  Use argument addresses to ensure they never compare as
47645         equal.
47646
47647         * tests/test-argp-2.sh (usage-indent test): Fix output
47648         (func_compare): Restore diff options
47649         * tests/test-argp.c: Restore #include "progname.h"
47650
47651 2007-04-29  Bruno Haible  <bruno@clisp.org>
47652
47653         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
47654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47655         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
47656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47657         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
47658         (configure.ac): Define CHECK_SNPRINTF_POSIX.
47659         (TESTS, check_PROGRAMS): Add test-snprintf.
47660         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
47661         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
47662         (TESTS, check_PROGRAMS): Add test-vsnprintf.
47663         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
47664         assertions that fail on HP-UX, OSF/1, or IRIX.
47665         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
47666
47667 2007-04-29  Bruno Haible  <bruno@clisp.org>
47668
47669         * MODULES.html.sh (posix_functions): Remove 'contents'.
47670
47671 2007-04-29  Karl Berry  <karl@gnu.org>
47672
47673         * config/srclist.txt (gendocs_template_min): new entry.
47674
47675 2007-04-29  Bruno Haible  <bruno@clisp.org>
47676
47677         Work around fpurge bug on BSD systems.
47678         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
47679         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
47680         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
47681         fpurge to rpl_fpurge if the system already has this function.
47682         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
47683         the case where the system already has this function. Correct invariants
47684         on BSD systems.
47685         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
47686         BSD systems.
47687
47688 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47689
47690         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
47691         proposed by Sven Verdoolaege.
47692
47693         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
47694         options.
47695         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
47696         (usage and help tests): Update
47697
47698 2007-04-29  Bruno Haible  <bruno@clisp.org>
47699
47700         * tests/test-fflush.c (main): Use a file of size 17, not 10.
47701         Print more information in case of failure. Disable a test on BeOS.
47702
47703 2007-04-29  Bruno Haible  <bruno@clisp.org>
47704
47705         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
47706         This helps debugging on systems on which no gdb is available.
47707
47708 2007-04-29  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/freading.h: Improve comments.
47711         * lib/fwriting.h: Likewise.
47712         * tests/test-freading.c (main): Don't check freading immediately after
47713         repositioning. Needed for glibc.
47714
47715 2007-04-29  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/freading.c (freading): Trivial simplification.
47718
47719 2007-04-28  Bruno Haible  <bruno@clisp.org>
47720
47721         * tests/test-fwriting.c (main): Also test the interaction between
47722         fflush and fwriting.
47723         * modules/fwriting-tests (Depends-on): Add fflush.
47724
47725         * tests/test-freading.c (main): Also test the interaction between
47726         fflush and freading.
47727         * modules/freading-tests (Depends-on): Add fflush.
47728
47729 2007-04-28  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
47732         fseeko and ftello.
47733         Suggested by Eric Blake.
47734
47735 2007-04-28  Jim Meyering  <jim@meyering.net>
47736
47737         Avoid false-negative in gl_STDINT_H's C99 conformance test.
47738         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
47739         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
47740
47741 2007-04-27  Eric Blake  <ebb9@byu.net>
47742
47743         * doc/headers/assert.texi (assert.h): Document assert module use.
47744
47745 2007-04-27  Bruno Haible  <bruno@clisp.org>
47746
47747         * doc/headers/*.texi: New files.
47748         * doc/gnulib.texi (Header File Substitutes): New chapter.
47749         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
47750         dependencies.
47751         (standards.info ,standards.html, standards.dvi): Update dependencies.
47752         (mostlyclean, clean): New targets.
47753
47754 2007-04-27  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
47757         * modules/sysexits (Files, Makefile.am): Update.
47758
47759         * lib/sys_socket_.h: Renamed from lib/socket_.h.
47760         * modules/sys_socket (Files, Makefile.am): Update.
47761
47762         * lib/sys_stat_.h: Renamed from lib/stat_.h.
47763         * modules/sys_stat (Files, Makefile.am): Update.
47764
47765 2007-04-27  Eric Blake  <ebb9@byu.net>
47766
47767         * lib/freading.h: Improve comments.
47768         * lib/fwriting.h: Likewise.
47769         * lib/fflush.c: Likewise.
47770
47771         Fix closein for mingw.
47772         * modules/closein-tests: Add tests for closein.
47773         * tests/test-closein.c: New file.
47774         * tests/test-closein.sh: Likewise.
47775         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
47776         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
47777
47778 2007-04-27  Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
47781         version is < 6.
47782         * lib/math_.h [__DECC]: Likewise.
47783         * lib/stdio_.h [__DECC]: Likewise.
47784         * lib/stdlib_.h [__DECC]: Likewise.
47785         * lib/string_.h [__DECC]: Likewise.
47786         * lib/time_.h [__DECC]: Likewise.
47787         * lib/wchar_.h [__DECC]: Likewise.
47788         * lib/wctype_.h [__DECC]: Likewise.
47789
47790 2007-04-27  Bruno Haible  <bruno@clisp.org>
47791
47792         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
47793
47794 2007-04-27  Bruno Haible  <bruno@clisp.org>
47795
47796         * lib/fflush.c: Add comments.
47797         * modules/fpurge-tests (Depends-on): Add fflush.
47798         * modules/freadable-tests (Depends-on): Likewise.
47799         * modules/fwritable-tests (Depends-on): Likewise.
47800
47801 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
47802
47803         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
47804         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
47805         Report by Bruno Haible <bruno@clisp.org>.
47806
47807 2007-04-26  Eric Blake  <ebb9@byu.net>
47808
47809         Fix fflush on mingw.
47810         * modules/fflush (Depends-on): Add freading.
47811         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
47812         but unread data.
47813
47814 2007-04-26  Eric Blake  <ebb9@byu.net>
47815         and Bruno Haible  <bruno@clisp.org>
47816
47817         Implement freading and fwriting.
47818         * lib/freading.c: New file.
47819         * lib/freading.h: Likewise.
47820         * m4/freading.m4: Likewise.
47821         * modules/freading: Likewise.
47822         * modules/freading-tests: Likewise.
47823         * tests/test-freading.c: Likewise.
47824         * lib/fwriting.c: New file.
47825         * lib/fwriting.h: Likewise.
47826         * m4/fwriting.m4: Likewise.
47827         * modules/fwriting: Likewise.
47828         * modules/fwriting-tests: Likewise.
47829         * tests/test-fwriting.c: Likewise.
47830         * MODULES.html.sh (File stream based Input/Output): Mention them.
47831
47832 2007-04-26  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
47835         'long' when we assume it.
47836         Suggested by Eric Blake.
47837
47838 2007-04-26  Bruno Haible  <bruno@clisp.org>
47839
47840         Ensure fseeko, ftello are declared on glibc systems.
47841         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
47842         * modules/fseeko (configure.ac-early): Likewise.
47843         * modules/ftello (configure.ac-early): Likewise.
47844         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
47845         AC_FUNC_FSEEKO for this.
47846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
47847         (gl_CHECK_FSEEKO): Remove macro.
47848
47849 2007-04-26  Bruno Haible  <bruno@clisp.org>
47850
47851         * tests/test-fflush.c (main): Also check the ftell result after
47852         fflush and fseek/fseeko.
47853         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
47854         file descriptor position cache in the stream.
47855         * lib/fseeko.c (rpl_fseeko): Likewise.
47856
47857 2007-04-26  Bruno Haible  <bruno@clisp.org>
47858
47859         * modules/fflush-tests (Depends-on): Add fseeko.
47860
47861 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
47862             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47863
47864         * lib/argz_.h: ensure error_t definition is obtained in same
47865         mechanism system argz.h would have.
47866         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
47867         argz facilities are known bad.  Err on the side of caution if
47868         cross-compiling.
47869
47870 2007-04-25  Eric Blake  <ebb9@byu.net>
47871
47872         * lib/fpurge.c (includes): Use stdlib.h for free.
47873         * tests/test-fflush.c (main): Also test fflush-fseeko.
47874
47875 2007-04-25  Bruno Haible  <bruno@clisp.org>
47876
47877         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
47878         * lib/fseeko.c: New file.
47879         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
47880         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
47881         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
47882         gl_FUNC_FSEEKO.
47883         (gl_FUNC_FSEEKO): Invoke it.
47884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
47885         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
47886         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
47887
47888 2007-04-25  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/fflush (Depends-on): Add ftello.
47891
47892 2007-04-25  Bruno Haible  <bruno@clisp.org>
47893
47894         * modules/ftello-tests: New file.
47895         * tests/test-ftello.c: New file.
47896
47897         * modules/ftello: New file.
47898         * m4/ftello.m4: New file.
47899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
47900         HAVE_FTELLO.
47901         * lib/stdio_.h (ftello): New declaration.
47902         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
47903         HAVE_FTELLO.
47904
47905 2007-04-25  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/fseeko-tests: New file.
47908         * tests/test-fseeko.c: New file.
47909
47910         * modules/fseeko: New file.
47911         * m4/fseeko.m4: New file.
47912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
47913         HAVE_FSEEKO.
47914         * lib/stdio_.h (fseeko): New declaration.
47915         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
47916         HAVE_FSEEKO.
47917
47918 2007-04-25  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
47921
47922 2007-04-25  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
47925         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
47926         * tests/test-unistd.c: Likewise.
47927         * tests/test-fcntl.c: Likewise.
47928
47929 2007-04-23  Eric Blake  <ebb9@byu.net>
47930
47931         * lib/fflush.c: Fix missing include.
47932         Reported by Bruno Haible.
47933
47934 2007-04-23  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
47937         Reported by Eric Blake.
47938
47939 2007-04-23  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
47942
47943 2007-04-23  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
47946
47947 2007-04-23  Bruno Haible  <bruno@clisp.org>
47948
47949         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
47950         Needed on HP-UX 11.
47951
47952 2007-04-16  Eric Blake  <ebb9@byu.net>
47953
47954         Make fflush rely on fpurge.
47955         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
47956         open coding all variants.
47957         * modules/fflush (Depends-on): Add fpurge and unistd.
47958         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
47959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
47960
47961         Fix --with-tests compilation on cygwin.
47962         * modules/argmatch-tests (Makefile.am): List gnulib library first
47963         in LDADD.
47964         * modules/argp-tests (Makefile.am): Likewise.
47965         * modules/array-list-tests (Makefile.am): Likewise.
47966         * modules/array-oset-tests (Makefile.am): Likewise.
47967         * modules/avltree-list-tests (Makefile.am): Likewise.
47968         * modules/avltree-oset-tests (Makefile.am): Likewise.
47969         * modules/avltreehash-list-tests (Makefile.am): Likewise.
47970         * modules/carray-list-tests (Makefile.am): Likewise.
47971         * modules/dirname-tests (Makefile.am): Likewise.
47972         * modules/frexp-tests (Makefile.am): Likewise.
47973         * modules/isnanl-tests (Makefile.am): Likewise.
47974         * modules/linked-list-tests (Makefile.am): Likewise.
47975         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47976         * modules/lock-tests (Makefile.am): Likewise.
47977         * modules/rbtree-list-tests (Makefile.am): Likewise.
47978         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47979         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47980         * modules/tls-tests (Makefile.am): Likewise.
47981         * modules/tsearch-tests (Makefile.am): Likewise.
47982         * modules/xvasprintf-tests (Makefile.am): Likewise.
47983
47984         Fix fpurge for cygwin.
47985         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47986         value.
47987         * modules/fpurge-tests (Depends-on): Clean up trash.
47988
47989 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47990
47991         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47992
47993         * m4/autobuild.m4: Re-indent.
47994
47995 2007-04-13  Bruno Haible  <bruno@clisp.org>
47996
47997         * modules/fpurge-tests: New file.
47998         * tests/test-fpurge.c: New file.
47999
48000         * modules/fpurge: New file.
48001         * lib/fpurge.h: New file.
48002         * lib/fpurge.c: New file.
48003         * m4/fpurge.m4: New file.
48004
48005 2007-04-13  Bruno Haible  <bruno@clisp.org>
48006
48007         * modules/fbufmode-tests: New file.
48008         * tests/test-fbufmode.c: New file.
48009
48010         * modules/fbufmode: New file.
48011         * lib/fbufmode.h: New file.
48012         * lib/fbufmode.c: New file.
48013         * m4/fbufmode.m4: New file.
48014
48015 2007-04-13  Bruno Haible  <bruno@clisp.org>
48016
48017         * modules/fwritable-tests: New file.
48018         * tests/test-fwritable.c: New file.
48019
48020         * modules/fwritable: New file.
48021         * lib/fwritable.h: New file.
48022         * lib/fwritable.c: New file.
48023         * m4/fwritable.m4: New file.
48024
48025 2007-04-13  Bruno Haible  <bruno@clisp.org>
48026
48027         * modules/freadable-tests: New file.
48028         * tests/test-freadable.c: New file.
48029
48030         * modules/freadable: New file.
48031         * lib/freadable.h: New file.
48032         * lib/freadable.c: New file.
48033         * m4/freadable.m4: New file.
48034
48035 2007-04-13  Bruno Haible  <bruno@clisp.org>
48036
48037         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48038         MOSTLYCLEANFILES.
48039
48040 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48041
48042         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48043         gzip bootstrap.conf to avoid dragging in i18n machinery.
48044         (gnulib_tool_option): Use it.
48045
48046 2007-04-13  Bruno Haible  <bruno@clisp.org>
48047
48048         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48049         %F directives.
48050         * tests/test-vasprintf-posix.c (test_function): Likewise.
48051         * tests/test-snprintf-posix.h (test_function): Likewise.
48052         * tests/test-sprintf-posix.h (test_function): Likewise.
48053         * tests/test-fprintf-posix.h (test_function): Likewise.
48054         * tests/test-printf-posix.h (test_function): Likewise.
48055         * tests/test-fprintf-posix.out: Likewise.
48056
48057 2007-04-13  Bruno Haible  <bruno@clisp.org>
48058
48059         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48060         * modules/tls-tests (configure.ac): Likewise.
48061         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48062
48063 2007-04-13  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/tls.c (glthread_tls_get): Fix return type.
48066         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48067
48068 2007-04-12  Eric Blake  <ebb9@byu.net>
48069
48070         * modules/gettime (Depends-on): Remove gettime.
48071         Reported by Dmitry V. Levin.
48072
48073 2007-04-12  Bruno Haible  <bruno@clisp.org>
48074
48075         * modules/fflush (Include): Mention <stdio.h>.
48076         * modules/strtoimax (Include): Mention <inttypes.h>.
48077         * modules/strtoumax (Include): Likewise.
48078
48079 2007-04-12  Eric Blake  <ebb9@byu.net>
48080
48081         * .cvsignore: New file.
48082         * .gitignore: Likewise.
48083
48084 2007-04-12  Bruno Haible  <bruno@clisp.org>
48085
48086         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48087         not before, since $(LDADD) often contains libgnu.a.
48088         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48089         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48090         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48091         Needed on Cygwin.
48092
48093 2007-04-12  Eric Blake  <ebb9@byu.net>
48094
48095         Work around glibc's failure to flush stdin on fclose.
48096         * lib/closein.c (close_stdin): Flush stdin before closing.
48097
48098         Work around glibc's failure to reset seekable stdin on exit.
48099         * modules/closein: New module.
48100         * lib/closein.c: New file.
48101         * lib/closein.h: Likewise.
48102         * m4/closein.m4: Likewise.
48103         * MODULES.html.sh (File stream based Input/Output): Document it.
48104
48105 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48106
48107         * gnulib-tool: Rename generated 'autobuild' script to
48108         'do-autobuild' in --create-megatestdir output.
48109
48110         * doc/gnulib.texi (Build robot for gnulib): Fix.
48111
48112 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48113
48114         * modules/sysexits (Depends-on): Add absolute-header.
48115
48116 2007-04-12  Eric Blake  <ebb9@byu.net>
48117
48118         No need to preserve errno on success.
48119         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48120         Reported by Bruno Haible.
48121
48122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48123
48124         * MODULES.html.sh (Support for maintaining and releasing
48125         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48126
48127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48128
48129         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48130
48131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48132
48133         * modules/autobuild: New module.
48134
48135         * m4/autobuild.m4: New file.
48136
48137 2007-04-11  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48140         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48147         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48148         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48167         Reported by Eric Blake.
48168
48169 2007-04-11  Bruno Haible  <bruno@clisp.org>
48170
48171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48172
48173 2007-04-10  Bruno Haible  <bruno@clisp.org>
48174
48175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48176         for NaN and Infinity. Needed on FreeBSD 6.1.
48177         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48178         regarding results for "%010a" of Infinity and NaN.
48179         * tests/test-vasprintf-posix.c (test_function): Likewise.
48180         * tests/test-snprintf-posix.h (test_function): Likewise.
48181         * tests/test-sprintf-posix.h (test_function): Likewise.
48182         * tests/test-fprintf-posix.h (test_function): Likewise.
48183         * tests/test-printf-posix.h (test_function): Likewise.
48184         * tests/test-fprintf-posix.out: Likewise.
48185
48186 2007-04-10  Bruno Haible  <bruno@clisp.org>
48187
48188         * modules/locale-tests: New file.
48189         * tests/test-locale.c: New file.
48190
48191         * modules/locale: New file.
48192         * lib/locale_.h: New file.
48193         * m4/locale_h.m4: New file.
48194
48195 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48196             Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48199         be determined, test for availability of the copysignf, copysign,
48200         copysignl functions.
48201         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48202         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48203         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48204
48205 2007-04-09  Eric Blake  <ebb9@byu.net>
48206
48207         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48208         * modules/stdio (Makefile.am): Support fflush.
48209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48210         * modules/fflush: New file.
48211         * lib/fflush.c: Likewise.
48212         * m4/fflush.m4: Likewise.
48213         * modules/fflush-tests: New test.
48214         * tests/test-fflush.c: Likewise.
48215         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48216
48217 2007-04-06  Bruno Haible  <bruno@clisp.org>
48218
48219         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48220         (VASNPRINTF): Use signbit for faster determination whether to print a
48221         minus sign.
48222         * modules/vasnprintf (Files): Remove lib/float+.h.
48223         * modules/fprintf-posix (Depends-on): Add signbit.
48224         * modules/snprintf-posix (Depends-on): Likewise.
48225         * modules/sprintf-posix (Depends-on): Likewise.
48226         * modules/vasnprintf-posix (Depends-on): Likewise.
48227         * modules/vasprintf-posix (Depends-on): Likewise.
48228         * modules/vfprintf-posix (Depends-on): Likewise.
48229         * modules/vsnprintf-posix (Depends-on): Likewise.
48230         * modules/vsprintf-posix (Depends-on): Likewise.
48231
48232 2007-04-06  Bruno Haible  <bruno@clisp.org>
48233
48234         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48235         * tests/test-frexpl.c (main): Likewise.
48236         * tests/test-ldexpl.c (main): Likewise.
48237         * modules/frexp-tests (Depends-on): Add signbit.
48238         * modules/frexpl-tests (Depdends-on): Likewise.
48239         * modules/ldexpl-tests (Depdends-on): Likewise.
48240
48241 2007-04-06  Bruno Haible  <bruno@clisp.org>
48242
48243         * modules/signbit-tests: New file.
48244         * tests/test-signbit.c: New file.
48245
48246         * modules/signbit: New file.
48247         * lib/signbitf.c: New file.
48248         * lib/signbitd.c: New file.
48249         * lib/signbitl.c: New file.
48250         * m4/signbit.m4: New file.
48251         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
48252         (signbit): New macro.
48253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
48254         REPLACE_SIGNBIT.
48255         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
48256         REPLACE_FREXPL into math.h.
48257
48258 2007-04-06  Bruno Haible  <bruno@clisp.org>
48259
48260         * modules/isnanf-nolibm-tests: New file.
48261         * tests/test-isnanf.c: New file.
48262
48263         * modules/isnanf-nolibm: New file.
48264         * lib/isnanf.h: New file.
48265         * lib/isnanf.c: New file.
48266         * lib/isnan.c: Consider the USE_FLOAT macro.
48267         * m4/isnanf.m4: New file.
48268
48269 2007-04-06  Bruno Haible  <bruno@clisp.org>
48270
48271         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
48272         (Link): New section.
48273
48274         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
48275
48276 2007-04-06  Bruno Haible  <bruno@clisp.org>
48277
48278         Assume the 'long double' type.
48279         * m4/longdouble.m4: Remove file.
48280         * config/srclist.txt: Don't mention longdouble.m4.
48281         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
48282         * lib/float+.h: Likewise.
48283         * lib/frexp.c: Likewise.
48284         * lib/printf-args.h: Likewise.
48285         * lib/printf-args.c: Likewise.
48286         * lib/printf-frexp.c: Likewise.
48287         * lib/printf-parse.c: Likewise.
48288         * lib/vasnprintf.c: Likewise.
48289         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
48290         * m4/intl.m4: Likewise.
48291         * m4/isnanl.m4: Likewise.
48292         * m4/printf.m4: Likewise.
48293         * m4/printf-frexpl.m4: Likewise.
48294         * m4/vasnprintf.m4: Likewise.
48295         * modules/allocsa (Files): Remove m4/longdouble.m4.
48296         * modules/gettext (Files): Likewise.
48297         * modules/relocatable-prog-wrapper (Files): Likewise.
48298         * modules/vasnprintf (Files): Likewise.
48299         * modules/isnanl (Files): Likewise.
48300         (Include): Simplify.
48301         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
48302         (Include): Simplify.
48303         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
48304         (Include): Simplify.
48305         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
48306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48307         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
48308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48309         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48311         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
48312         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48313         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
48314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48315         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
48316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
48317         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
48318         * tests/test-isnanl.c: Likewise.
48319         * tests/test-snprintf-posix.h: Likewise.
48320         * tests/test-sprintf-posix.h: Likewise.
48321         * tests/test-vasnprintf-posix.c: Likewise.
48322         * tests/test-vasnprintf-posix2.c: Likewise.
48323         * tests/test-vasprintf-posix.c: Likewise.
48324
48325 2007-04-06  Bruno Haible  <bruno@clisp.org>
48326
48327         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
48328         * lib/math_.h [__DECC]: Include the overridden include file through
48329         #include_next, outside the double-inclusion guard.
48330         * lib/stdio_.h [__DECC]: Likewise.
48331         * lib/stdlib_.h [__DECC]: Likewise.
48332         * lib/string_.h [__DECC]: Likewise.
48333         * lib/time_.h [__DECC]: Likewise.
48334         * lib/wchar_.h [__DECC]: Likewise.
48335         * lib/wctype_.h [__DECC]: Likewise.
48336         * lib/inttypes_.h [__DECC]: Likewise.
48337         Reported by Albert Chin <china@thewrittenword.com> in
48338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
48339
48340 2007-04-04  Eric Blake  <ebb9@byu.net>
48341
48342         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
48343         1.5.x.
48344
48345 2007-04-04  Bruno Haible  <bruno@clisp.org>
48346
48347         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
48348         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
48349
48350 2007-04-04  Bruno Haible  <bruno@clisp.org>
48351
48352         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
48353         results for "%010a" of Infinity and NaN.
48354         * tests/test-vasprintf-posix.c (test_function): Likewise.
48355         * tests/test-snprintf-posix.h (test_function): Likewise.
48356         * tests/test-sprintf-posix.h (test_function): Likewise.
48357         * tests/test-fprintf-posix.h (test_function): Remove these tests.
48358         * tests/test-printf-posix.h (test_function): Likewise.
48359         * tests/test-fprintf-posix.out: Update.
48360         Needed for FreeBSD 6.1.
48361
48362 2007-04-04  Bruno Haible  <bruno@clisp.org>
48363
48364         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
48365         directly used by the gnulib modules nor by gnulib-tool.
48366
48367 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48368
48369         * DEPENDENCIES: Give overall description of version dependency
48370         desirability.  Use more-typical names for apps.
48371         Add shell, coreutils, diffutils, grep, tar, gzip.
48372
48373 2007-04-04  Simon Josefsson  <simon@josefsson.org>
48374
48375         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
48376
48377 2007-04-04  Karl Berry  <karl@gnu.org>
48378
48379         * MODULES.html.sh (func_module): missing '.
48380
48381 2007-04-03  Bruno Haible  <bruno@clisp.org>
48382
48383         * modules/argmatch-tests (Makefile.am): New variable
48384         test_argmatch_LDADD.
48385         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
48386         * modules/array-list-tests (Makefile.am): New variable
48387         test_array_list_LDADD.
48388         * modules/array-oset-tests (Makefile.am): New variable
48389         test_array_oset_LDADD.
48390         * modules/avltree-list-tests (Makefile.am): New variable
48391         test_avltree_list_LDADD.
48392         * modules/avltree-oset-tests (Makefile.am): New variable
48393         test_avltree_oset_LDADD.
48394         * modules/avltreehash-list-tests (Makefile.am): New variable
48395         test_avltreehash_list_LDADD.
48396         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
48397         test_canonicalize_lgpl_LDADD.
48398         * modules/carray-list-tests (Makefile.am): New variable
48399         test_carray_list_LDADD.
48400         * modules/dirname-tests (Makefile.am): New variable
48401         test_dirname_LDADD.
48402         * modules/linked-list-tests (Makefile.am): New variable
48403         test_linked_list_LDADD.
48404         * modules/linkedhash-list-tests (Makefile.am): New variable
48405         test_linkedhash_list_LDADD.
48406         * modules/rbtree-list-tests (Makefile.am): New variable
48407         test_rbtree_list_LDADD.
48408         * modules/rbtree-oset-tests (Makefile.am): New variable
48409         test_rbtree_oset_LDADD.
48410         * modules/rbtreehash-list-tests (Makefile.am): New variable
48411         test_rbtreehash_list_LDADD.
48412         * modules/xvasprintf-tests (Makefile.am): New variable
48413         test_xvasprintf_LDADD.
48414         Reported by Eric Blake.
48415
48416 2007-04-03  Eric Blake  <ebb9@byu.net>
48417
48418         * DEPENDENCIES: Weaken m4 requirements.
48419
48420 2007-04-03  Bruno Haible  <bruno@clisp.org>
48421
48422         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
48423         * modules/isnanl-tests (configure.ac): Likewise.
48424
48425 2007-04-03  Ben Pfaff  <blp@gnu.org>
48426
48427         * modules/iconv_open: Add $(srcdir)/ to source directory
48428         references in Makefile fragments that call gperf, to fix VPATH
48429         builds.
48430
48431 2007-04-03  Bruno Haible  <bruno@clisp.org>
48432
48433         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
48434         * lib/ldexpl.c: Undo last change.
48435
48436 2007-04-03  Bruno Haible  <bruno@clisp.org>
48437
48438         * modules/printf-frexpl (Depends-on): Undo last change.
48439         (Files): Add m4/ldexpl.m4.
48440
48441 2007-04-03  Bruno Haible  <bruno@clisp.org>
48442
48443         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
48444         * modules/isnanl (Link): New section.
48445
48446         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
48447         * modules/frexp (Link): New section.
48448
48449         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
48450         * modules/frexpl (Link): New section.
48451
48452         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
48453         * modules/ldexpl (Link): New section.
48454
48455 2007-04-03  Bruno Haible  <bruno@clisp.org>
48456
48457         * modules/TEMPLATE-EXTENDED: New file.
48458         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
48459
48460 2007-04-03  Bruno Haible  <bruno@clisp.org>
48461
48462         * DEPENDENCIES: New file.
48463         Suggested by Simon Josefsson.
48464
48465 2007-04-03  Bruno Haible  <bruno@clisp.org>
48466
48467         * doc/gnulib.texi: Escape @.
48468
48469 2007-04-03  James Youngman  <jay@gnu.org>
48470         and Paul Eggert  <eggert@cs.ucla.edu>
48471
48472         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
48473         birthtime on all systems that have birthtime, not just those which
48474         use st_birthtimensec rather than st_birthtim.  Putting zero in
48475         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
48476         that the birth time is not available for files on an NFS mount.
48477
48478 2007-04-03  Simon Josefsson  <simon@josefsson.org>
48479
48480         * modules/memxor: Move back from crypto/, suggested by Bruno.
48481         * modules/crypto/hmac-sha1: Fix memxor dependency.
48482
48483         * modules/crypto/gc: Moved from ../.
48484
48485 2007-04-02  Eric Blake  <ebb9@byu.net>
48486
48487         * lib/ldexpl.c (includes): Avoid libm.
48488
48489         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
48490
48491 2007-04-02  Bruno Haible  <bruno@clisp.org>
48492
48493         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
48494         on IRIX.
48495
48496 2007-04-02  Bruno Haible  <bruno@clisp.org>
48497
48498         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
48499         x86 or x86_64 platforms running MacOS X.
48500         Reported by Ryan Schmidt <@ryandesign.com>.
48501
48502 2007-04-02  Bruno Haible  <bruno@clisp.org>
48503
48504         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
48505         i386.
48506
48507 2007-04-01  Simon Josefsson  <simon@josefsson.org>
48508
48509         * modules/crypto/arcfour: Moved from ../.
48510         * modules/crypto/arcfour-tests: Moved from ../.
48511         * modules/crypto/arctwo: Moved from ../.
48512         * modules/crypto/arctwo-tests: Moved from ../.
48513         * modules/crypto/des: Moved from ../.
48514         * modules/crypto/des-tests: Moved from ../.
48515         * modules/crypto/gc-arcfour: Moved from ../.
48516         * modules/crypto/gc-arcfour-tests: Moved from ../.
48517         * modules/crypto/gc-arctwo: Moved from ../.
48518         * modules/crypto/gc-arctwo-tests: Moved from ../.
48519         * modules/crypto/gc-des: Moved from ../.
48520         * modules/crypto/gc-des-tests: Moved from ../.
48521         * modules/crypto/gc-hmac-md5: Moved from ../.
48522         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
48523         * modules/crypto/gc-hmac-sha1: Moved from ../.
48524         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
48525         * modules/crypto/gc-md2: Moved from ../.
48526         * modules/crypto/gc-md2-tests: Moved from ../.
48527         * modules/crypto/gc-md4: Moved from ../.
48528         * modules/crypto/gc-md4-tests: Moved from ../.
48529         * modules/crypto/gc-md5: Moved from ../.
48530         * modules/crypto/gc-md5-tests: Moved from ../.
48531         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
48532         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
48533         * modules/crypto/gc-random: Moved from ../.
48534         * modules/crypto/gc-rijndael: Moved from ../.
48535         * modules/crypto/gc-rijndael-tests: Moved from ../.
48536         * modules/crypto/gc-sha1: Moved from ../.
48537         * modules/crypto/gc-sha1-tests: Moved from ../.
48538         * modules/crypto/gc-tests: Moved from ../.
48539         * modules/crypto/hmac-md5: Moved from ../.
48540         * modules/crypto/hmac-md5-tests: Moved from ../.
48541         * modules/crypto/hmac-sha1: Moved from ../.
48542         * modules/crypto/hmac-sha1-tests: Moved from ../.
48543         * modules/crypto/md2: Moved from ../.
48544         * modules/crypto/md2-tests: Moved from ../.
48545         * modules/crypto/md4: Moved from ../.
48546         * modules/crypto/md4-tests: Moved from ../.
48547         * modules/crypto/md5: Moved from ../.
48548         * modules/crypto/md5-tests: Moved from ../.
48549         * modules/crypto/memxor: Moved from ../.
48550         * modules/crypto/rijndael: Moved from ../.
48551         * modules/crypto/rijndael-tests: Moved from ../.
48552         * modules/crypto/sha1: Moved from ../.
48553
48554 2007-03-30  James Youngman  <jay@gnu.org>
48555
48556         * tests/test-stat-time.c (prepare_test): use chmod() rather than
48557         rename() to change the ctime of a file (because ctime is unaffected
48558         by rename on jfs2 on AIX 5.1).
48559         (main): Start by doing cleanup, in case a previous run failed leaving
48560         test files behind.
48561
48562 2007-03-31  Bruno Haible  <bruno@clisp.org>
48563
48564         Support old proprietary implementations of iconv.
48565         * modules/iconv_open: New file.
48566         * lib/iconv_.h: New file.
48567         * m4/iconv_h.m4: New file.
48568         * lib/iconv_open.c: New file.
48569         * lib/iconv_open-aix.gperf: New file.
48570         * lib/iconv_open-hpux.gperf: New file.
48571         * lib/iconv_open-irix.gperf: New file.
48572         * lib/iconv_open-osf.gperf: New file.
48573         * m4/iconv_open.m4: New file.
48574         * modules/linebreak (Depends-on): Add iconv_open.
48575         * modules/striconv (Depends-on): Likewise.
48576         * modules/striconveh (Depends-on): Likewise.
48577         * modules/unicodeio (Depends-on): Likewise.
48578         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
48579         (iconv_t)(-1).
48580         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
48581         conversion if cd is (iconv_t)(-1).
48582         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
48583         is not possible.
48584
48585 2007-03-31  Bruno Haible  <bruno@clisp.org>
48586
48587         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48588         work on Solaris either. Protect also second use of "autodetect_jp".
48589
48590 2007-03-31  Bruno Haible  <bruno@clisp.org>
48591
48592         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
48593         the function is not present.
48594
48595 2007-03-31  Bruno Haible  <bruno@clisp.org>
48596
48597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
48598         the function is not present.
48599
48600 2007-03-31  Bruno Haible  <bruno@clisp.org>
48601
48602         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
48603         a bug in HP-UX iconv_open().
48604
48605 2007-03-31  Bruno Haible  <bruno@clisp.org>
48606
48607         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
48608         (Mathematics <math.h>): New section, add fpieee.
48609         (Input/output <stdio.h>): Add fseterr.
48610         (Mathematics <math.h>): New section, add printf-frexp.
48611         (Container data structures): Add sublist.
48612         (Core language properties): Add fpucw, inline.
48613         (Functions for greatest-width integer types <inttypes.h>): Add
48614         imaxabs, imaxdiv, inttypes.
48615         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
48616         isnanl-nolibm, ldexp.
48617         (Mathematics <math.h>): New section, add printf-frexpl.
48618         (Support for systems lacking POSIX:2001): Add fprintf-posix,
48619         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
48620         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
48621         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
48622         (Unicode string functions): Add unistr/u*-mbtoucr.
48623         (Java): Add javacomp-script, javaexec-script.
48624         (C#): Add csharpcomp-script, csharpexec-script.
48625         (Support for building libraries and executables): Add havelib,
48626         relocatable-*.
48627         (Support for maintaining and releasing projects): Renamed from
48628         'Support for maintaining and release projects'. Add announce-gen.
48629
48630 2007-03-31  Bruno Haible  <bruno@clisp.org>
48631
48632         * README: Talk primarily about git.
48633         (git and CVS): Renamed from CVS.
48634         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
48635         gnulib is available through git.
48636         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
48637
48638 2007-03-30  Bruno Haible  <bruno@clisp.org>
48639
48640         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
48641         * lib/poll_.h: Likewise.
48642         * lib/stat_.h: Likewise.
48643         * lib/sys_time_.h: Likewise.
48644         * lib/sysexit_.h: Likewise.
48645         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
48646         * lib/stdbool_.h: Likewise.
48647         * lib/byteswap_.h: Add double-inclusion guard.
48648
48649 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
48650
48651         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
48652
48653 2007-03-30  Karl Berry  <karl@gnu.org>
48654
48655         * config/srclist-update: double space after USA in the license
48656         substitution, since that's how it's usually (?) written.
48657
48658 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48659
48660         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
48661         reported by Bruno Haible.
48662
48663 2007-03-29  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
48666         a bug in AIX iconv().
48667
48668 2007-03-29  Bruno Haible  <bruno@clisp.org>
48669
48670         * modules/ldexpl-tests: New file.
48671         * tests/test-ldexpl.c: New file.
48672
48673 2007-03-29  Bruno Haible  <bruno@clisp.org>
48674
48675         * lib/ldexpl.c: Include fpucw.h.
48676         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
48677         multiplication.
48678         * modules/ldexpl (Depends-on): Add fpucw.
48679
48680 2007-03-29  Bruno Haible  <bruno@clisp.org>
48681
48682         * modules/ldexpl: New file.
48683         * m4/ldexpl.m4: New file.
48684         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
48685         set.
48686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
48687         REPLACE_LDEXPL.
48688         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
48689         REPLACE_LDEXPL.
48690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48691         gl_FUNC_LDEXPL_WORKS.
48692         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
48693         * modules/mathl (Files): Remove lib/ldexpl.c.
48694         (Depends-on): Add ldexpl.
48695
48696 2007-03-29  Bruno Haible  <bruno@clisp.org>
48697
48698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
48699
48700 2007-03-29  Bruno Haible  <bruno@clisp.org>
48701
48702         * tests/test-striconveh.c (main): Don't assume that a direct conversion
48703         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
48704         and possibly also HP-UX.
48705         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
48706         work on AIX, IRIX, HP-UX, OSF/1.
48707         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48708         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48710         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48711         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
48712         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48713
48714 2007-03-29  Bruno Haible  <bruno@clisp.org>
48715
48716         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
48717
48718 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48719
48720         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
48721         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
48722
48723 2007-03-29  Eric Blake  <ebb9@byu.net>
48724
48725         * lib/acl-internal.h: Remove redundant include.
48726         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
48727         Cygwin when a file is locked.
48728
48729 2007-03-29  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
48732         file.
48733         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
48734
48735 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
48738         try to remove a parent directory if the child couldn't be removed
48739         (except for the first rmdir, which could fail because the child
48740         doesn't exist).  Problem reported by Jeff Blaine in
48741         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
48742
48743 2007-03-28  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/striconveh.c (utf8conv_carefully): New function.
48746         (mem_cd_iconveh_internal): Invoke it.
48747
48748 2007-03-28  Bruno Haible  <bruno@clisp.org>
48749
48750         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
48751         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
48752         input.
48753         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
48754         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
48755         unistr/u8-uctomb.
48756
48757 2007-03-28  Bruno Haible  <bruno@clisp.org>
48758
48759         * modules/unistr/u8-mbtoucr: New file.
48760         * lib/unistr/u8-mbtoucr.c: New file.
48761         * modules/unistr/u16-mbtoucr: New file.
48762         * lib/unistr/u16-mbtoucr.c: New file.
48763         * modules/unistr/u16-mbtoucr: New file.
48764         * lib/unistr/u16-mbtoucr.c: New file.
48765         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
48766
48767 2007-03-27  Simon Josefsson  <simon@josefsson.org>
48768             Bruno Haible  <bruno@clisp.org>
48769
48770         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
48771         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
48772         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
48773
48774         * m4/stdio_h.m4: Add stubs for vasprintf too.
48775
48776         * modules/stdio: Support vasprintf in sed command.
48777
48778         * modules/vasprintf: Depend on stdio for prototypes.  Remove
48779         vasprintf.h.  Add stdio module indicator.
48780
48781         * lib/stdio_.h: Declare asprintf and vasprintf, based on
48782         vasprintf.h.
48783
48784         * lib/vasprintf.h: File removed.
48785
48786         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
48787         * lib/vasprintf.c: Ditto.
48788         * lib/xvasprintf.c: Ditto.
48789         * tests/test-vasprintf-posix.c: Ditto.
48790         * tests/test-vasprintf.c: Ditto.
48791
48792 2007-03-27  Bruno Haible  <bruno@clisp.org>
48793
48794         Make vasnprintf multithread-safe.
48795         * lib/vasnprintf.c (decimal_point_char): New function.
48796         (VASNPRINTF): Use it.
48797         Suggested by Simon Josefsson.
48798
48799 2007-03-27  Eric Blake  <ebb9@byu.net>
48800
48801         Support sub-second birthtime on cygwin.
48802         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
48803         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
48804         (get_stat_birthtime): Also work with st_birthtim.
48805
48806 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         * lib/stat-time.h (USE_BIRTHTIME): Remove.
48809         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
48810         (get_stat_birthtime_ns): Do not try to use "spare" fields.
48811         (get_stat_birthtime_ns): Simplify compile-time tests.
48812         (get_stat_birthtime): Change the API to look like
48813         get_stat_mtime etc., except return a negative tv_nsec on error.
48814         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
48815         Don't check for "spare" fields.
48816         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
48817         or for struct stat.st_birthtime, as these tests aren't used.
48818         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
48819
48820 2007-03-27  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/stat-time.h: Include <sys/stat.h>.
48823
48824 2007-03-27  James Youngman  <jay@gnu.org>
48825
48826         * lib/stat-time.h (get_stat_birthtime): New function for
48827           retrieving st_birthtime as provided by UFS2 (hence *BSD).
48828         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
48829           and its variants.
48830         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
48831         * modules/stat-time-test: New file.
48832         * tests/test-stat-time.c: New test, devised by Bruno Haible.
48833
48834 2007-03-26  Bruno Haible  <bruno@clisp.org>
48835
48836         Better support of signalling NaNs.
48837         * lib/atanl.c: Include isnanl.h.
48838         (atanl): Perform test for NaN at the beginning of the function and
48839         through a call to isnanl.
48840         * lib/cosl.c: Include isnanl.h.
48841         (cosl): Perform test for NaN at the beginning of the function and
48842         through a call to isnanl.
48843         * lib/ldexpl.c: Include isnanl.h.
48844         (ldexpl): Perform test for NaN through a call to isnanl.
48845         * lib/logl.c: Include isnanl.h.
48846         (logl): Perform test for NaN at the beginning of the function and
48847         through a call to isnanl.
48848         * lib/sinl.c: Include isnanl.h.
48849         (sinl): Perform test for NaN at the beginning of the function and
48850         through a call to isnanl.
48851         * lib/sqrtl.c: Include isnanl.h.
48852         (sqrtl): Perform test for NaN at the beginning of the function and
48853         through a call to isnanl.
48854         * lib/tanl.c: Include isnanl.h.
48855         (tanl): Perform test for NaN at the beginning of the function and
48856         through a call to isnanl.
48857         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
48858         * modules/mathl (Depends-on): Add isnanl.
48859
48860 2007-03-26  Eric Blake  <ebb9@byu.net>
48861
48862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
48863         regression in logic sense of previous patch.
48864
48865 2007-03-26  Bruno Haible  <bruno@clisp.org>
48866
48867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
48868         unportable shell command "if ! ...".
48869         Reported by Ralf Wildenhues.
48870
48871 2007-03-25  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
48874         <sysexits.h> file, and only add EX_CONFIG.
48875         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
48876         absolute file name and whether it is sufficient. Substitute also
48877         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
48878         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
48879         ABSOLUTE_SYSEXITS_H into sysexits.h.
48880
48881 2007-03-25  Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
48884         hints is NULL.
48885
48886 2007-03-25  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
48889         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
48890
48891 2007-03-25  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/vasnprintf.c: Include langinfo.h.
48894         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
48895         multithread-safe.
48896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
48897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
48898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
48904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48905         Reported by Simon Josefsson.
48906
48907 2007-03-25  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
48910         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
48911         * modules/vasnprintf (Depends-on): Add stdint.
48912
48913 2007-03-25  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/fpieee: New file.
48916         * m4/fpieee.m4: New file.
48917         * modules/isnan-nolibm (Depends-on): Add fpieee.
48918         * modules/isnanl-nolibm (Depends-on): Add fpieee.
48919         * modules/isnanl (Depends-on): Add fpieee.
48920
48921 2007-03-25  Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
48924
48925 2007-03-25  Bruno Haible  <bruno@clisp.org>
48926
48927         Avoid test failures on IRIX 6.5.
48928         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
48929         (main): Use it.
48930         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
48931         macros.
48932         (main): Use them.
48933
48934 2007-03-25  Bruno Haible  <bruno@clisp.org>
48935
48936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
48937         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
48938         exists but doesn't work.
48939         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
48940         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
48941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
48942         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
48943
48944 2007-03-25  Bruno Haible  <bruno@clisp.org>
48945
48946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
48947         returns inf. Needed on IRIX 6.5.
48948
48949 2007-03-25  Bruno Haible  <bruno@clisp.org>
48950
48951         * tests/test-frexpl.c: Include isnanl-nolibm.h.
48952         (main): Use isnanl instead of x != x idiom.
48953         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
48954
48955         * tests/test-frexp.c: Include isnan.h.
48956         (main): Use isnan instead of x != x idiom.
48957         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
48958
48959 2007-03-25  Bruno Haible  <bruno@clisp.org>
48960
48961         * tests/test-frexp.c (NaN): New function/macro.
48962         (main): Use it instead of 0.0 / 0.0.
48963         * tests/test-isnan.c (NaN): New function/macro.
48964         (main): Use it instead of 0.0 / 0.0.
48965         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
48966         (test_function): Use it instead of 0.0 / 0.0.
48967         * tests/test-vasprintf-posix.c (NaN): New function/macro.
48968         (test_function): Use it instead of 0.0 / 0.0.
48969         * tests/test-snprintf-posix.h (NaN): New function/macro.
48970         (test_function): Use it instead of 0.0 / 0.0.
48971         * tests/test-sprintf-posix.h (NaN): New function/macro.
48972         (test_function): Use it instead of 0.0 / 0.0.
48973         * tests/test-fprintf-posix.h (NaN): New function/macro.
48974         (test_function): Use it instead of 0.0 / 0.0.
48975         * tests/test-printf-posix.h (NaN): New function/macro.
48976         (test_function): Use it instead of 0.0 / 0.0.
48977
48978         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48979
48980 2007-03-25  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48983
48984 2007-03-25  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/regexec.c (merge_state_with_log): Make static.
48987
48988 2007-03-25  Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/trigl.c (kernel_rem_pio2): Make static.
48991
48992 2007-03-25  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/sincosl.c (sincosl_table): Make static.
48995
48996 2007-03-25  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48999         if the compiler does not support C99.
49000
49001 2007-03-25  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/time (Makefile.am): Ensure all rule action lines start with a
49004         tab.
49005
49006 2007-03-24  Bruno Haible  <bruno@clisp.org>
49007
49008         * modules/tsearch-tests: New file.
49009         * tests/test-tsearch.sh: New file.
49010         * tests/test-tsearch.c: New file, mostly copied from glibc.
49011
49012         * modules/search-tests: New file.
49013         * tests/test-search.c: New file.
49014
49015         * modules/search: New file.
49016         * lib/search_.h: New file, incorporating lib/tsearch.h.
49017         * m4/search_h.m4: New file.
49018         * lib/tsearch.h: Remove file.
49019         * lib/tsearch.c: Include search.h instead of tsearch.h.
49020         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49021         HAVE_TSEARCH.
49022         * modules/tsearch (Files): Remove lib/tsearch.h.
49023         (Depends-on): Add search.
49024         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49025         (Include): Change tsearch.h into search.h.
49026
49027 2007-03-24  Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/fpucw: New file.
49030         * lib/fpucw.h: New file.
49031         * lib/frexp.c: Include fpucw.h.
49032         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49033         (FUNC): Use them.
49034         * lib/printf-frexp.c: Include fpucw.h.
49035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49036         (FUNC): Use them.
49037         * lib/vasnprintf.c: Include fpucw.h.
49038         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49039         'long double' calculations.
49040         * tests/test-frexpl.c: Include fpucw.h.
49041         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49042         * tests/test-printf-frexpl.c: Include fpucw.h.
49043         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49044         * modules/frexpl (Depends-on): Add fpucw.
49045         * modules/printf-frexpl (Depends-on): Likewise.
49046         * modules/fprintf-posix (Depends-on): Likewise.
49047         * modules/snprintf-posix (Depends-on): Likewise.
49048         * modules/sprintf-posix (Depends-on): Likewise.
49049         * modules/vasnprintf-posix (Depends-on): Likewise.
49050         * modules/vasprintf-posix (Depends-on): Likewise.
49051         * modules/vfprintf-posix (Depends-on): Likewise.
49052         * modules/vsnprintf-posix (Depends-on): Likewise.
49053         * modules/vsprintf-posix (Depends-on): Likewise.
49054         * modules/frexpl-tests (Depends-on): Likewise.
49055         * modules/printf-frexpl-tests (Depends-on): Likewise.
49056
49057 2007-03-24  Bruno Haible  <bruno@clisp.org>
49058
49059         * lib/float+.h: New file.
49060         * lib/isnan.c: Include float+.h.
49061         (SIZE): New macro.
49062         (FUNC): Compare only SIZE bytes of the value.
49063         * lib/vasnprintf.c: Include float+.h.
49064         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49065         SIZEOF_LDBL or SIZEOF_DBL bytes.
49066         * modules/isnan-nolibm (Files): Add lib/float+.h.
49067         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49068         * modules/isnanl (Files): Add lib/float+.h.
49069         * modules/vasnprintf (Files): Add lib/float+.h.
49070
49071 2007-03-24  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49074         include isnanl-nolibm.h.
49075
49076 2007-03-24  Bruno Haible  <bruno@clisp.org>
49077
49078         * tests/test-read-file.c (main): Don't produce spurious output for
49079         expected situations. Make the test fail if it encountered unexpected
49080         results.
49081
49082 2007-03-24  Bruno Haible  <bruno@clisp.org>
49083
49084         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49085         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49086
49087 2007-03-24  Bruno Haible  <bruno@clisp.org>
49088
49089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49090
49091 2007-03-24  Bruno Haible  <bruno@clisp.org>
49092
49093         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49094         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49095
49096         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49097         * modules/utf8-ucs4: Turn into a symbolic link to module
49098         unistr/u8-mbtouc.
49099
49100         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49101         utf8-ucs4-unsafe.
49102         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49103         unistr/u8-mbtouc-unsafe.
49104
49105         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49106         * modules/utf16-ucs4: Turn into a symbolic link to module
49107         unistr/u16-mbtouc.
49108
49109         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49110         utf16-ucs4-unsafe.
49111         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49112         unistr/u16-mbtouc-unsafe.
49113
49114         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49115         * modules/ucs4-utf8: Turn into a symbolic link to module
49116         unistr/u8-ubtomb.
49117
49118         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49119         * modules/ucs4-utf16: Turn into a symbolic link to module
49120         unistr/u16-ubtomb.
49121
49122 2007-03-24  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49125         Enable the function only if HAVE_INLINE.
49126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49127         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49128         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49129         Enable the function only if HAVE_INLINE.
49130         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49131         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49132         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49133         Enable the function only if HAVE_INLINE.
49134         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49135         Enable the function only if HAVE_INLINE.
49136         * modules/utf8-ucs4: Update.
49137         * modules/utf8-ucs4-unsafe: Update.
49138         * modules/utf16-ucs4: Update.
49139         * modules/utf16-ucs4-unsafe: Update.
49140         * modules/ucs4-utf8: Update.
49141         * modules/ucs4-utf16: Update.
49142
49143 2007-03-24  Bruno Haible  <bruno@clisp.org>
49144
49145         * lib/utf8-ucs4.h: Remove file.
49146         * lib/utf8-ucs4-unsafe.h: Remove file.
49147         * lib/utf16-ucs4.h: Remove file.
49148         * lib/utf16-ucs4-unsafe.h: Remove file.
49149         * lib/ucs4-utf8.h: Remove file.
49150         * lib/ucs4-utf16.h: Remove file.
49151         * lib/unistr.h: Include their previous contents.
49152         * m4/utf-ucs4.m4: Remove file.
49153         * m4/ucs4-utf.m4: Remove file.
49154         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49155         (Depends-on): Add unistr/base.
49156         (configure.ac): Remove gl_UTF_UCS4.
49157         (Makefile.am): Update.
49158         (Include): Change to unistr.h.
49159         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49160         (Depends-on): Add unistr/base.
49161         (configure.ac): Remove gl_UTF_UCS4.
49162         (Makefile.am): Update.
49163         (Include): Change to unistr.h.
49164         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49165         (Depends-on): Add unistr/base.
49166         (configure.ac): Remove gl_UTF_UCS4.
49167         (Makefile.am): Update.
49168         (Include): Change to unistr.h.
49169         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49170         (Depends-on): Add unistr/base.
49171         (configure.ac): Remove gl_UTF_UCS4.
49172         (Makefile.am): Update.
49173         (Include): Change to unistr.h.
49174         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49175         (Depends-on): Add unistr/base.
49176         (configure.ac): Remove gl_UCS4_UTF.
49177         (Makefile.am): Update.
49178         (Include): Change to unistr.h.
49179         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49180         (Depends-on): Add unistr/base.
49181         (configure.ac): Remove gl_UCS4_UTF.
49182         (Makefile.am): Update.
49183         (Include): Change to unistr.h.
49184         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49185         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49186         utf8-ucs4-unsafe.h.
49187         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49188         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49189         utf16-ucs4-unsafe.h.
49190         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49191         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49192         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49193         * lib/unistr/u8-strchr.c: Likewise.
49194         * lib/unistr/u8-strrchr.c: Likewise.
49195         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49196         * lib/unistr/u16-strchr.c: Likewise.
49197         * lib/unistr/u16-strrchr.c: Likewise.
49198         * lib/striconveh.c: Update.
49199         * lib/linebreak.c: Update.
49200
49201 2007-03-24  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49204         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49205
49206 2007-03-22  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49209
49210 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49211
49212         * MODULES.html.sh (File system functions): New module write-any-file.
49213         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49214         * m4/write-any-file.m4: New files.
49215
49216 2007-03-23  Eric Blake  <ebb9@byu.net>
49217
49218         * gnulib-tool: Rearrange space-tab sequences, since some editors
49219         like to eat them.
49220
49221 2007-03-23  Eric Blake  <ebb9@byu.net>
49222
49223         * lib/version-etc.c (version_etc_va): Update license wording to
49224         be more concise.  Recommended by Richard Stallman.
49225
49226 2007-03-22  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/poll.c (MSG_PEEK): New fallback definition.
49229
49230 2007-03-22  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49233         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49234         (main): Update.
49235         Fixes a compilation error on BeOS.
49236
49237 2007-03-22  Bruno Haible  <bruno@clisp.org>
49238
49239         * modules/frexpl-tests: New file.
49240         * tests/test-frexpl.c: New file.
49241
49242         * modules/frexpl: New file.
49243         * m4/frexpl.m4: New file.
49244         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
49245         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
49246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
49247         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
49248         (Depends-on): Add frexpl. Remove isnanl-nolibm.
49249         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
49250
49251 2007-03-22  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/frexpl.c: Share code with lib/frexp.c.
49254         * modules/mathl (Files): Add lib/frexp.c.
49255         (Depends-on): Add isnanl-nolibm.
49256
49257 2007-03-22  Bruno Haible  <bruno@clisp.org>
49258
49259         * modules/printf-frexp (Files): Add m4/frexp.m4.
49260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
49261         only if the found frexp function actually works.
49262
49263 2007-03-22  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/frexp.c: Remove older implementation that uses divisions.
49266
49267 2007-03-21  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/frexp-tests: New file.
49270         * tests/test-frexp.c: New file.
49271
49272         * modules/frexp: New file.
49273         * lib/frexp.c: New file.
49274         * m4/frexp.m4: New file.
49275         * lib/math_.h (frexp): New declaration.
49276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
49277         REPLACE_FREXP.
49278         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
49279
49280 2007-03-21  Bruno Haible  <bruno@clisp.org>
49281
49282         * modules/isnanl-tests: New file.
49283         * tests/test-isnanl.c: New file.
49284
49285         * modules/isnanl: New file.
49286         * lib/isnanl.h: New file.
49287         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
49288         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
49289         gl_FUNC_ISNANL_WORKS.
49290         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
49291         New macros.
49292
49293 2007-03-21  Bruno Haible  <bruno@clisp.org>
49294
49295         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
49296         lib/isnanl.h.
49297         (Include): Update.
49298         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
49299         * lib/vasnprintf.c: Update.
49300         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
49301         tests/test-isnanl.h, remove tests/test-isnanl.c.
49302         (Makefile.am): Update.
49303         * tests/test-isnanl-nolibm.c: New file.
49304         * tests/test-isnanl.h: New file.
49305         * tests/test-isnanl.c: Remove file.
49306
49307 2007-03-21  Jim Meyering  <jim@meyering.net>
49308
49309         When trying to open ".", treat ESTALE like EACCES.
49310         * lib/savewd.c (savewd_save): Resort to forking not just upon
49311         failure with EACCES, but also when errno is ESTALE.
49312
49313 2007-03-20  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
49316         Needed on AIX 5.1. Reported by Matthew Woehlke.
49317
49318 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49319
49320         Suggestions by Bruno Haible:
49321         * lib/acl-internal.h: Include "gettext.h" rather than rolling
49322         our own.
49323         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
49324         * modules/acl (Depends-on): Add gettext.
49325
49326 2007-03-19  Bruno Haible  <bruno@clisp.org>
49327
49328         * modules/iconvme: Remove file.
49329         * lib/iconvme.h: Remove file.
49330         * lib/iconvme.c: Remove file.
49331         * m4/iconvme.m4: Remove file.
49332
49333 2007-03-19  Bruno Haible  <bruno@clisp.org>
49334
49335         * doc/relocatable-maint.texi: Break long shell script line.
49336         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49337
49338 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49339
49340         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
49341         handle file_has_acl.
49342         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
49343         * lib/acl.c: Move header inclusions and related macro defns into
49344         lib/acl-internal.h.
49345         (S_ISLNK): Remove defn, since that's now done for us.
49346         (file_has_acl): Move to lib/file-has-acl.c.
49347         Call acl_trivial if available.  This is the crucial part of the fix.
49348         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
49349         shared within the library.  Rewrite a bit, partly to make it compatible
49350         with the GNU coding style.
49351         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
49352         Remove unnecessary double-quotes.
49353         Don't test for acl_to_text; the build will catch that.
49354         Replace acl_entries if it doesn't exist and it is needed.
49355         Check for -lsec and acl_trivial (as used on Solaris 10).
49356         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
49357         lib/file-has-acl.c.
49358         (Depends-on): Add sys_stat, for S_ISLNK.
49359
49360 2007-03-19  Ben Pfaff  <blp@gnu.org>
49361
49362         * doc/gnulib.texi: Fix typos.
49363         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
49364
49365 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
49368         If size is zero here, buf must be zero.
49369
49370 2007-03-19  Simon Josefsson  <simon@josefsson.org>
49371
49372         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
49373         <bruno@clisp.org>.
49374
49375 2007-03-18  Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
49378         Suggested by Eric Blake.
49379
49380 2007-03-18  Ben Pfaff  <blp@gnu.org>
49381
49382         * doc/relocatable.texi: Recommend using as prefix a directory
49383         that does not exist and will never be created.  Based on
49384         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
49385         and others.
49386
49387 2007-03-17  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/fchownat.c: Include lchown.h.
49390
49391 2007-03-17  Bruno Haible  <bruno@clisp.org>
49392
49393         Fix endless loop when the given allocated size was > INT_MAX.
49394         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
49395         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
49396         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
49397         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
49398         * lib/sprintf.c (sprintf): Likewise.
49399
49400 2007-03-17  Bruno Haible  <bruno@clisp.org>
49401
49402         * tests/test-argp-2.sh (func_compare): Output a context diff.
49403
49404 2007-03-17  Bruno Haible  <bruno@clisp.org>
49405
49406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
49407         locale's decimal-point character.
49408
49409 2007-03-17  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
49412         before comparing it. Needed because on some platforms (e.g. x86) a
49413         'long double' occupies less bytes than sizeof (long double).
49414
49415 2007-03-17  Bruno Haible  <bruno@clisp.org>
49416
49417         * tests/test-crc.c (main): Make printf statements 64-bit clean.
49418         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
49419         * tests/test-getaddrinfo.c (simple): Likewise.
49420         * tests/test-read-file.c (main): Likewise.
49421
49422 2007-03-17  Bruno Haible  <bruno@clisp.org>
49423
49424         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
49425
49426 2007-03-17  Bruno Haible  <bruno@clisp.org>
49427
49428         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
49429         unused variable.
49430
49431 2007-03-17  Bruno Haible  <bruno@clisp.org>
49432
49433         * tests/test-c-strcasecmp.c: Include c-strcase.h.
49434         * tests/test-c-strncasecmp.c: Likewise.
49435
49436 2007-03-17  Bruno Haible  <bruno@clisp.org>
49437
49438         * modules/stdlib (Depends-on): Add unistd.
49439         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
49440         Needed for MacOS X 10.3.
49441
49442 2007-03-17  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/unistr/u-strdup.h: Include <stdlib.h>.
49445
49446 2007-03-17  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
49449
49450 2007-03-17  Bruno Haible  <bruno@clisp.org>
49451
49452         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
49453         to reflect files copied from gnulib (with or without modifications).
49454         Suggested by Jim Meyering.
49455
49456 2007-03-17  Eric Blake  <ebb9@byu.net>
49457
49458         * NEWS: Document stdlib change from 2007-02-18.
49459
49460 2007-03-17  Jim Meyering  <jim@meyering.net>
49461
49462         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
49463         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
49464         someone uses a name containing shell meta-characters.
49465         Reported by Alfred M. Szmidt.
49466
49467         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
49468
49469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49470
49471         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
49472         and copy gettext configuration files only if configure.ac contains
49473         a use of AM_GNU_GETTEXT_VERSION.
49474
49475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
49476
49477         * build-aux/bootstrap (gnulib_name): New variable.
49478         (gnulib_tool_options): Use it.
49479
49480 2007-03-13  Simon Josefsson  <simon@josefsson.org>
49481
49482         * tests/test-des.c: Use new namespace.
49483
49484 2007-03-15  Bruno Haible  <bruno@clisp.org>
49485
49486         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
49487         Reported by James Youngman <jay@gnu.org>.
49488
49489 2007-03-15  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
49492         declared prototype. Needed with cc on OSF/1 5.1.
49493
49494 2007-03-15  Bruno Haible  <bruno@clisp.org>
49495
49496         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
49497         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
49498         (struct gl_list_implementation): Add dispose_fn argument to the
49499         'create_empty', 'create' methods.
49500         (struct gl_list_impl_base): Add field 'dispose_fn'.
49501         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
49502         argument.
49503         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
49504         dispose_fn argument.
49505         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
49506         dispose_fn on the dropped values.
49507         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
49508         dispose_fn argument.
49509         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
49510         dropped values.
49511         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
49512         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49513         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
49514         (gl_tree_remove_node): Call dispose_fn on the dropped value.
49515         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
49516         argument.
49517         (gl_tree_list_free): Call dispose_fn on the dropped values.
49518         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
49519         the dropped values.
49520         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49521         Add dispose_fn argument.
49522         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
49523         Call dispose_fn on the dropped values.
49524         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
49525         Add dispose_fn argument.
49526         (gl_sublist_create): Initialize the 'dispose_fn' field.
49527         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
49528         * tests/test-array_list.c (main): Update.
49529         * tests/test-carray_list.c (main): Update.
49530         * tests/test-avltree_list.c (main): Update.
49531         * tests/test-rbtree_list.c (main): Update.
49532         * tests/test-avltreehash_list.c (main): Update.
49533         * tests/test-rbtreehash_list.c (main): Update.
49534         * tests/test-linked_list.c (main): Update.
49535         * tests/test-linkedhash_list.c (main): Update.
49536         * tests/test-array_oset.c (main): Update.
49537
49538 2007-03-15  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
49541         (gl_oset_create_empty): Add dispose_fn argument.
49542         (struct gl_oset_implementation): Add dispose_fn argument to
49543         'create_empty' method.
49544         (struct gl_oset_impl_base): Add dispose_fn field.
49545         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
49546         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
49547         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
49548         values.
49549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
49550         (gl_tree_oset_free): Call dispose_fn on the dropped values.
49551         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49552         dropped value.
49553         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
49554         dropped value.
49555         * tests/test-array_oset.c (main): Update.
49556         * tests/test-avltree_oset.c (main): Update.
49557         * tests/test-rbtree_oset.c (main): Update.
49558         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
49559
49560 2007-03-13  Bruno Haible  <bruno@clisp.org>
49561
49562         * tests/test-stdbool.c (i): Update after last patch.
49563
49564 2007-03-12  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/quotearg.c: Include <wctype.h> early, before the definition of
49567         the iswprint macro. Needed on Solaris 2.5.1.
49568
49569 2007-03-12  Bruno Haible  <bruno@clisp.org>
49570
49571         * tests/test-printf-frexp.c (main): Declare x as volatile.
49572
49573 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49574
49575         * doc/gnulib.texi (Build robot for gnulib): New section.
49576
49577 2007-03-12  Jim Meyering  <jim@meyering.net>
49578
49579         * build-aux/bootstrap: New file.
49580         * build-aux/bootstrap.conf: New file, from coreutils.
49581
49582 2007-03-11  Bruno Haible  <bruno@clisp.org>
49583
49584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
49585
49586 2007-03-12  Simon Josefsson  <simon@josefsson.org>
49587
49588         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
49589         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
49590         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
49591
49592 2007-03-11  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
49595         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
49596
49597 2007-03-11  Bruno Haible  <bruno@clisp.org>
49598
49599         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
49600         formula. Needed for SunPRO C 5.0.
49601
49602 2007-03-11  Bruno Haible  <bruno@clisp.org>
49603
49604         * modules/long-options (Depends-on): Add getopt.
49605
49606 2007-03-11  Bruno Haible  <bruno@clisp.org>
49607
49608         * modules/modechange (Depends-on): Add stdbool.
49609
49610 2007-03-11  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/i-ring (Depends-on): Add stdbool.
49613
49614 2007-03-11  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/gc-des (Depends-on): Add stdbool.
49617
49618 2007-03-11  Bruno Haible  <bruno@clisp.org>
49619
49620         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
49621
49622 2007-03-11  Bruno Haible  <bruno@clisp.org>
49623
49624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
49625
49626 2007-03-11  Bruno Haible  <bruno@clisp.org>
49627
49628         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
49629
49630 2007-03-11  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/vasnprintf.c (sprintf): Undefine.
49633
49634 2007-03-11  Bruno Haible  <bruno@clisp.org>
49635
49636         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
49637         initializers in SunPRO C and Compaq C compilers.
49638
49639 2007-03-11  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
49642         decrementing code ANSI C compliant.
49643
49644 2007-03-11  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
49647         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
49648
49649 2007-03-11  Bruno Haible  <bruno@clisp.org>
49650
49651         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
49652         <stdbool.h> substitute doesn't pass.
49653
49654 2007-03-11  Bruno Haible  <bruno@clisp.org>
49655
49656         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
49657
49658 2007-03-11  Bruno Haible  <bruno@clisp.org>
49659
49660         * gnulib-tool (func_create_megatestdir): Create also an autobuild
49661         script, for submission to autobuild.josefsson.org.
49662
49663 2007-03-10  Bruno Haible  <bruno@clisp.org>
49664
49665         * modules/canonicalize-lgpl-tests: New file.
49666         * tests/test-canonicalize-lgpl.sh: New file.
49667         * tests/test-canonicalize-lgpl.c: New file.
49668
49669         * modules/c-strcase-tests: New file.
49670         * tests/test-c-strcase.sh: New file.
49671         * tests/test-c-strcasecmp.c: New file.
49672         * tests/test-c-strncasecmp.c: New file.
49673
49674         * modules/atexit-tests: New file.
49675         * tests/test-atexit.sh: New file.
49676         * tests/test-atexit.c: New file.
49677
49678 2007-03-10  Bruno Haible  <bruno@clisp.org>
49679
49680         * tests/test-binary-io.sh: Use temporary filenames that are not so
49681         likely to clash with those of other tests (in a parallel make).
49682         * tests/test-binary-io.c: Likewise.
49683
49684 2007-03-10  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
49687         fallback; use #error instead.
49688         Suggested by Simon Josefsson.
49689
49690 2007-03-10  Bruno Haible  <bruno@clisp.org>
49691
49692         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
49693         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
49694         first and the last.
49695
49696 2007-03-10  Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
49699
49700 2007-03-10  Bruno Haible  <bruno@clisp.org>
49701
49702         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
49703         "make distcheck".
49704         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
49705         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
49706         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
49707
49708 2007-03-10  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
49711         variable.
49712         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
49713         variable.
49714
49715 2007-03-09  Eric Blake  <ebb9@byu.net>
49716         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
49717
49718         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
49719         types are not being provided by gnulib.
49720         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
49721         types are supported.
49722
49723 2007-03-10  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/stdio_.h (__attribute__): New macro.
49726         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
49727         vsprintf): Specify __attribute__ __format__ for GCC.
49728         Suggested by Eric Blake.
49729
49730 2007-03-09  Bruno Haible  <bruno@clisp.org>
49731
49732         * modules/printf-posix-tests: New file.
49733         * tests/test-printf-posix.sh: New file.
49734         * tests/test-printf-posix.c: New file.
49735
49736         * modules/printf-posix: New file.
49737         * lib/printf.c: New file.
49738         * m4/printf-posix-rpl.m4: New file.
49739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
49740         REPLACE_PRINTF.
49741         * lib/stdio_.h (printf): New declaration.
49742         (format, __format__, ____printf____, ____scanf____, ____strftime____,
49743         ____strfmon____): New macros.
49744         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
49745         REPLACE_PRINTF.
49746
49747 2007-03-09  Bruno Haible  <bruno@clisp.org>
49748
49749         * tests/test-vasnprintf-posix2.sh: New file.
49750         * tests/test-vasnprintf-posix2.c: New file.
49751         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
49752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49753         (Makefile.am): Activate test-vasnprintf-posix2.sh.
49754
49755         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
49756         a locale dependent decimal point, rather than always '.'.
49757
49758 2007-03-09  Eric Blake  <ebb9@byu.net>
49759
49760         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
49761         spite of platforms like Tandem/NSK that define it to -1.
49762
49763 2007-03-08  Bruno Haible  <bruno@clisp.org>
49764
49765         * modules/vprintf-posix-tests: New file.
49766         * tests/test-vprintf-posix.sh: New file.
49767         * tests/test-vprintf-posix.c: New file.
49768         * tests/test-printf-posix.h: New file.
49769
49770         * modules/vprintf-posix: New file.
49771         * lib/vprintf.c: New file.
49772         * m4/vprintf-posix.m4: New file.
49773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
49774         REPLACE_VPRINTF.
49775         * lib/stdio_.h (vprintf): New declaration.
49776         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
49777         REPLACE_VPRINTF.
49778
49779 2007-03-08  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/fprintf-posix-tests: New file.
49782         * tests/test-fprintf-posix.sh: New file.
49783         * tests/test-fprintf-posix.c: New file.
49784
49785         * modules/fprintf-posix: New file.
49786         * lib/fprintf.c: New file.
49787         * m4/fprintf-posix.m4: New file.
49788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
49789         REPLACE_FPRINTF.
49790         * lib/stdio_.h (fprintf): New declaration.
49791         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
49792         REPLACE_FPRINTF.
49793
49794 2007-03-08  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/vfprintf-posix-tests: New file.
49797         * tests/test-vfprintf-posix.sh: New file.
49798         * tests/test-vfprintf-posix.c: New file.
49799         * tests/test-fprintf-posix.h: New file.
49800         * tests/test-fprintf-posix.out: New file.
49801
49802         * modules/vfprintf-posix: New file.
49803         * lib/vfprintf.c: New file.
49804         * m4/vfprintf-posix.m4: New file.
49805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
49806         REPLACE_VFPRINTF.
49807         * lib/stdio_.h (vfprintf): New declaration.
49808         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
49809         REPLACE_VFPRINTF.
49810
49811 2007-03-08  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
49814
49815 2007-03-08  Bruno Haible  <bruno@clisp.org>
49816
49817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
49818         instead of 'expr' invocations.
49819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49824         Suggested by Paul Eggert.
49825
49826 2007-03-08  Bruno Haible  <bruno@clisp.org>
49827
49828         * modules/fseterr-tests: New file.
49829         * tests/test-fseterr.c: New file.
49830
49831         * modules/fseterr: New file.
49832         * lib/fseterr.h: New file.
49833         * lib/fseterr.c: New file.
49834
49835 2007-03-08  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
49838         * lib/getopt_.h: Likewise.
49839         * lib/mbswidth.h: Likewise.
49840         * lib/setenv.h: Likewise.
49841         * lib/vasnprintf.h: Likewise.
49842         * lib/vasprintf.h: Likewise.
49843         * lib/verror.h: Likewise.
49844         * lib/xsetenv.h: Likewise.
49845         * lib/xvasprintf.h: Likewise.
49846
49847 2007-03-08  Jim Meyering  <jim@meyering.net>
49848
49849         * users.txt: Add parted.
49850
49851         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
49852
49853 2007-03-07  Bruno Haible  <bruno@clisp.org>
49854
49855         * m4/printf.m4: Make the shell script snippets copy&pastable.
49856
49857 2007-03-02  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/netinet_in_.h: New file.
49860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
49861         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
49862         * modules/netinet_in (Files): Add lib/netinet_in_.h.
49863         (Depends-on): Add absolute-header.
49864         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
49865         into netinet/in.h.
49866
49867 2007-03-03  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/sys_select_.h: New file.
49870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
49871         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
49872         * modules/sys_select (Files): Add lib/sys_select_.h.
49873         (Depends-on): Add absolute-header.
49874         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
49875         into sys/select.h.
49876
49877 2007-03-02  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
49880         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
49881         values.
49882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
49883         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
49884         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
49885         * modules/sys_socket (Depends-on): Add absolute-header.
49886         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
49887         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
49888         (Include): Remove requirement of inclusion of <sys/types.h>.
49889
49890 2007-03-02  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/byteswap_.h (bswap_32): Fix formula.
49893
49894 2007-03-06  Bruno Haible  <bruno@clisp.org>
49895
49896         * modules/sprintf-posix-tests: New file.
49897         * tests/test-sprintf-posix.c: New file.
49898
49899         * modules/sprintf-posix: New file.
49900         * lib/sprintf.c: New file.
49901         * m4/sprintf-posix.m4: New file.
49902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
49903         REPLACE_SPRINTF.
49904         * lib/stdio_.h (sprintf): New declaration.
49905         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
49906         REPLACE_SPRINTF.
49907
49908 2007-03-06  Bruno Haible  <bruno@clisp.org>
49909
49910         * modules/vsprintf-posix-tests: New file.
49911         * tests/test-vsprintf-posix.c: New file.
49912         * tests/test-sprintf-posix.h: New file.
49913
49914         * modules/vsprintf-posix: New file.
49915         * lib/vsprintf.c: New file.
49916         * m4/vsprintf-posix.m4: New file.
49917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
49918         REPLACE_VSPRINTF.
49919         * lib/stdio_.h (vsprintf): New declaration.
49920         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
49921         REPLACE_VSPRINTF.
49922
49923 2007-03-06  Bruno Haible  <bruno@clisp.org>
49924
49925         * modules/vsnprintf (Depend-on): Remove minmax.
49926
49927 2007-03-06  Bruno Haible  <bruno@clisp.org>
49928
49929         * modules/snprintf-posix-tests: New file.
49930         * tests/test-snprintf-posix.c: New file.
49931
49932         * modules/snprintf-posix: New file.
49933         * m4/snprintf-posix.m4: New file.
49934         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
49935         gl_FUNC_SNPRINTF.
49936         (gl_FUNC_SNPRINTF): Invoke it.
49937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
49938         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
49939         is set.
49940         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
49941
49942 2007-03-06  Bruno Haible  <bruno@clisp.org>
49943
49944         * modules/vsnprintf-posix-tests: New file.
49945         * tests/test-vsnprintf-posix.c: New file.
49946         * tests/test-snprintf-posix.h: New file.
49947
49948         * modules/vsnprintf-posix: New file.
49949         * m4/vsnprintf-posix.m4: New file.
49950         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
49951         gl_FUNC_VSNPRINTF.
49952         (gl_FUNC_VSNPRINTF): Invoke it.
49953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
49954         * lib/stdio_.h (vsnprintf): Define as a replacement if
49955         REPLACE_VSNPRINTF is set.
49956         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
49957
49958 2007-03-06  Bruno Haible  <bruno@clisp.org>
49959
49960         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
49961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
49962
49963 2007-03-06  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
49966         (asinl): Declare also if HAVE_DECL_ASINL is set.
49967         (atanl): Declare also if HAVE_DECL_ATANL is set.
49968         (ceill): Declare also if HAVE_DECL_CEILL is set.
49969         (cosl): Declare also if HAVE_DECL_COSL is set.
49970         (expl): Declare also if HAVE_DECL_EXPL is set.
49971         (floorl): Declare also if HAVE_DECL_FLOORL is set.
49972         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
49973         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49974         (logl): Declare also if HAVE_DECL_LOGL is set.
49975         (sinl): Declare also if HAVE_DECL_SINL is set.
49976         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49977         (tanl): Declare also if HAVE_DECL_TANL is set.
49978         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49981         declaration of frexpl, ldexpl.
49982         * modules/printf-frexpl (Depends-on): Add math.
49983         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49984
49985 2007-03-05  Bruno Haible  <bruno@clisp.org>
49986
49987         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49988         frexpl and ldexpl are declared.
49989         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49990
49991 2007-03-05  Bruno Haible  <bruno@clisp.org>
49992
49993         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49994         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49995
49996 2007-03-05  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/stdio_.h: Include <stddef.h>.
49999
50000 2007-03-05  Bruno Haible  <bruno@clisp.org>
50001
50002         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50003
50004 2007-03-05  Bruno Haible  <bruno@clisp.org>
50005
50006         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50007         NetBSD 4, from Ralf Wildenhues.
50008
50009 2007-03-04  Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/vasprintf.h: Update #if logic for the case when the functions
50012         exist but are overridden.
50013
50014 2007-03-04  Bruno Haible  <bruno@clisp.org>
50015
50016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50017         implementations: glibc-2.4 and MacOS X 10.3.
50018         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50019         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50020         * tests/test-vasprintf-posix.c (test_function): Likewise.
50021
50022 2007-03-04  Bruno Haible  <bruno@clisp.org>
50023
50024         * modules/vasprintf-posix-tests: New file.
50025         * tests/test-vasprintf-posix.c: New file.
50026
50027         * modules/vasprintf-posix: New file.
50028         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50029         defined.
50030         * m4/vasprintf-posix.m4: New file.
50031         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50032         gl_FUNC_VASPRINTF.
50033         (gl_FUNC_VASPRINTF): Invoke it.
50034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50035         here.
50036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50037
50038 2007-03-04  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50041         REPLACE_GETTIMEOFDAY.
50042         * modules/sys_time (Makefile.am): Likewise.
50043         * m4/sys_time_h.m4: Likewise.
50044         * m4/gettimeofday.m4: Likewise.
50045
50046 2007-03-04  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/vasnprintf-posix-tests: New file.
50049         * tests/test-vasnprintf-posix.c: New file.
50050
50051         * modules/vasnprintf-posix: New file.
50052         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50053         printf-frexpl.h.
50054         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50055         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50056         REPLACE_VASNPRINTF is defined.
50057         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50058         gl_FUNC_VASNPRINTF.
50059         (gl_FUNC_VASNPRINTF): Invoke it.
50060         * m4/vasnprintf-posix.m4: New file.
50061         * m4/printf.m4: New file.
50062
50063 2007-03-04  Bruno Haible  <bruno@clisp.org>
50064
50065         Compile progreloc.c only if --enable-relocatable is specified.
50066         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50067         if --enable-relocatable was specified.
50068         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50069         lib_SOURCES.
50070
50071 2007-03-04  Jim Meyering  <jim@meyering.net>
50072
50073         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50074         Use it consistently, rather than enumerating errno constants.
50075
50076 2007-03-04  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/xvasprintf-tests: New file.
50079         * tests/test-xvasprintf.c: New file.
50080
50081         * modules/vasprintf-tests: New file.
50082         * tests/test-vasprintf.c: New file.
50083
50084         * modules/vasnprintf-tests: New file.
50085         * tests/test-vasnprintf.c: New file.
50086
50087         * modules/vsnprintf-tests: New file.
50088         * tests/test-vsnprintf.c: New file.
50089
50090         * modules/snprintf-tests: New file.
50091         * tests/test-snprintf.c: New file.
50092
50093 2007-03-04  Bruno Haible  <bruno@clisp.org>
50094
50095         Compile relocatable.c only if --enable-relocatable is specified.
50096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50097         gl_RELOCATABLE_LIBRARY.
50098         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50099         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50100         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50101         gl_RELOCATABLE_LIBRARY.
50102         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50103         (Makefile.am): Remove lib_SOURCES.
50104         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50105         gl_RELOCATABLE_LIBRARY.
50106         (Makefile.am): Remove lib_SOURCES.
50107         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50108         always.
50109         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50110         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50111
50112 2007-03-04  Bruno Haible  <bruno@clisp.org>
50113
50114         * modules/argmatch-tests: New file.
50115         * tests/test-argmatch.c: New file.
50116
50117         * tests/test-allocsa.c (main): Halve the number of loop runs.
50118
50119         * modules/alloca-opt-tests: New file.
50120         * tests/test-alloca-opt.c: New file.
50121
50122 2007-03-04  Jim Meyering  <jim@meyering.net>
50123
50124         Work around difference between Linux ACLs and Solaris 10 ZFS.
50125         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50126         for EINVAL.
50127
50128 2007-03-03  Bruno Haible  <bruno@clisp.org>
50129
50130         * modules/relocatable-prog (Depends-on): Add back progreloc's
50131         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50132
50133 2007-03-03  Bruno Haible  <bruno@clisp.org>
50134
50135         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50136         * modules/relocatable-lib: New file.
50137
50138 2007-03-03  Bruno Haible  <bruno@clisp.org>
50139
50140         * modules/relocatable-prog: Renamed from modules/relocatable.
50141         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50142
50143 2007-03-03  Bruno Haible  <bruno@clisp.org>
50144
50145         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50146         m4/relocatable-lib.m4.
50147         (Depends-on): Remove 'relocatable'.
50148         (configure.ac): Add gl_RELOCATABLE_NOP.
50149
50150 2007-03-03  Bruno Haible  <bruno@clisp.org>
50151
50152         * modules/relocatable-prog-wrapper: New file.
50153         * modules/relocatable (Depends-on): Add it. Remove all other
50154         dependencies except progname.
50155         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50156
50157         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50158         (gl_FUNC_STRERROR): Nop.
50159         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50160
50161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50162         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50163
50164         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50165         (gl_FUNC_READLINK): Update.
50166
50167         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50168
50169 2007-03-03  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50172         * modules/xreadlink (Depends-on): Add unistd.
50173         * modules/xreadlink-with-size (Depends-on): Likewise.
50174
50175 2007-03-03  Bruno Haible  <bruno@clisp.org>
50176
50177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50178         extracted from gt_FUNC_SETENV.
50179         (gt_FUNC_SETENV): Remove macro.
50180         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50181         remove gt_FUNC_SETENV.
50182
50183 2007-03-03  Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50186         ENABLE_RELOCATABLE here.
50187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50188
50189 2007-03-03  Bruno Haible  <bruno@clisp.org>
50190
50191         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50192         * tests/test-rbtreehash_list.c: Include progname.h.
50193         (main): Call set_program_name.
50194
50195         * modules/rbtree-oset-tests (Depends-on): Add progname.
50196         * tests/test-rbtree_oset.c: Include progname.h.
50197         (main): Call set_program_name.
50198
50199         * modules/rbtree-list-tests (Depends-on): Add progname.
50200         * tests/test-rbtree_list.c: Include progname.h.
50201         (main): Call set_program_name.
50202
50203         * modules/linked-list-tests (Depends-on): Add progname.
50204         * tests/test-linked_list.c: Include progname.h.
50205         (main): Call set_program_name.
50206
50207 2007-03-03  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50210         All uses of __restrict changed to _Restrict_.
50211         * lib/glob_.h (__restrict): Remove macro.
50212
50213 2007-03-02  Bruno Haible  <bruno@clisp.org>
50214
50215         * modules/gettext (configure.ac): Require gettext infrastructure
50216         from version 0.16.1.
50217
50218 2007-03-02  Bruno Haible  <bruno@clisp.org>
50219
50220         * modules/linkedhash-list-tests (Depends-on): Add progname.
50221         * tests/test-linkedhash_list.c: Include progname.h.
50222         (main): Call set_program_name.
50223
50224         * modules/carray-list-tests (Depends-on): Add progname.
50225         * tests/test-carray_list.c: Include progname.h.
50226         (main): Call set_program_name.
50227
50228         * modules/avltreehash-list-tests (Depends-on): Add progname.
50229         * tests/test-avltreehash_list.c: Include progname.h.
50230         (main): Call set_program_name.
50231
50232         * modules/avltree-oset-tests (Depends-on): Add progname.
50233         * tests/test-avltree_oset.c: Include progname.h.
50234         (main): Call set_program_name.
50235
50236         * modules/avltree-list-tests (Depends-on): Add progname.
50237         * tests/test-avltree_list.c: Include progname.h.
50238         (main): Call set_program_name.
50239
50240         * modules/array-oset-tests (Depends-on): Add progname.
50241         * tests/test-array_oset.c: Include progname.h.
50242         (main): Call set_program_name.
50243
50244         * modules/array-list-tests (Depends-on): Add progname.
50245         * tests/test-array_list.c: Include progname.h.
50246         (main): Call set_program_name.
50247
50248         * modules/argp-tests (Depends-on): Add progname.
50249         * tests/test-argp.c: Include argp.h first. Include progname.h.
50250         (main): Call set_program_name.
50251
50252 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
50253
50254         * doc/gnulib-tool.texi (Initial import): Reword description of
50255         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
50256         limited effect even if defined after the first system include.
50257
50258 2007-03-01  Bruno Haible  <bruno@clisp.org>
50259
50260         * build-aux/config.libpath: Update to libtool-1.5.22.
50261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50262
50263 2007-03-01  Bruno Haible  <bruno@clisp.org>
50264
50265         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
50266         foo_CFLAGS.
50267         Reported by Ralf Wildenhues.
50268
50269 2007-03-01  Bruno Haible  <bruno@clisp.org>
50270
50271         * build-aux/install-reloc: Remove object files left over by some
50272         compilers.
50273         Reported by Ralf Wildenhues.
50274
50275 2007-03-01  Bruno Haible  <bruno@clisp.org>
50276
50277         * build-aux/install-reloc: Break long lines.
50278
50279 2007-03-01  Bruno Haible  <bruno@clisp.org>
50280
50281         * doc/relocatable.texi: Document that it may not work on OpenBSD.
50282         Reported by Ralf Wildenhues.
50283
50284 2007-03-01  Bruno Haible  <bruno@clisp.org>
50285
50286         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
50287         include ordering constraints.
50288
50289 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50290
50291         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
50292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
50293         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
50294         as another example.
50295         * lib/time_.h: Fix misspelling.
50296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50297         Require gl_HEADER_TIME_H_DEFAULTS.
50298         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
50299         * m4/time_r.m4 (gl_TIME_R): Likewise.
50300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
50301
50302 2007-03-01  Bruno Haible  <bruno@clisp.org>
50303
50304         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
50305         * m4/utimens.m4 (gl_UTIMENS): Likewise.
50306
50307 2007-03-01  Jim Meyering  <jim@meyering.net>
50308
50309         * modules/xreadlink (Maintainer): Add my name.
50310         * modules/xreadlink-with-size (Depends-on): Alphabetize.
50311
50312 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
50313             Bruno Haible  <bruno@clisp.org>
50314
50315         * build-aux/install-reloc: Compile also c-ctype.c.
50316         * build-aux/relocatable.sh.in: New file.
50317         * doc/relocatable.texi: New file.
50318         * doc/relocatable-maint.texi: New file.
50319         * doc/gnulib.texi: Include relocatable-maint.texi.
50320         * lib/progreloc.c: Include unistd.h unconditionally.
50321         * lib/relocwrapper.c: Include unistd.h unconditionally.
50322         Include c-ctype.h.
50323         (add_dotbin): Use c_tolower.
50324         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
50325         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
50326         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
50327         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
50328         to m4/relocatable-lib.m4.
50329         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
50330         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
50331         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
50332         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
50333         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
50334         * modules/relocatable: New file.
50335         * modules/relocatable-lib: New file.
50336         * modules/relocatable-script: New file.
50337
50338 2007-02-28  Bruno Haible  <bruno@clisp.org>
50339
50340         Import --enable-relocatable infrastructure.
50341         * build-aux/config.libpath: New file, from GNU gettext.
50342         * build-aux/install-reloc: New file, from GNU gettext.
50343         * build-aux/reloc-ldflags: New file, from GNU gettext.
50344         * lib/relocatable.h: New file, from GNU gettext.
50345         * lib/relocatable.c: New file, from GNU gettext.
50346         * lib/relocwrapper.c: New file, from GNU gettext.
50347         * m4/relocatable.m4: New file, from GNU gettext.
50348
50349 2007-02-28  Bruno Haible  <bruno@clisp.org>
50350
50351         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
50352
50353         * modules/xreadlink: New file, from GNU gettext with modifications.
50354         * lib/xreadlink.c: New file, from GNU gettext.
50355         * lib/xreadlink.h: Add comments.
50356         (xreadlink): New declaration.
50357
50358         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
50359         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
50360         lib/xreadlink-with-size.c.
50361         (configure.ac): Remove gl_XREADLINK invocation.
50362         (Makefile.am): Augment lib_SOURCES.
50363         * m4/xreadlink.m4: Remove file.
50364         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
50365         (xreadlink_with_size): Renamed from xreadink.
50366         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
50367         * modules/canonicalize (Depends-on): Replace xreadlink with
50368         xreadlink-with-size.
50369         * lib/canonicalize.c (canonicalize_filename_mode): Update.
50370
50371 2007-02-25  Jim Meyering  <jim@meyering.net>
50372
50373         * build-aux/announce-gen: When complaining about excess arguments,
50374         list them.
50375
50376 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         * README: Document signed integer overflow situation more
50379         accurately.
50380
50381 2007-02-25  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
50384         'a' or 'A' conversion.
50385
50386 2007-02-25  Bruno Haible  <bruno@clisp.org>
50387
50388         * modules/filename: Renamed from modules/pathname.
50389         (Files): Replace lib/pathname.h with lib/filename.h. Replace
50390         lib/concatpath.c with lib/concat-filename.c.
50391         (Makefile.am): Update.
50392         (Include): Replace pathname.h with filename.h.
50393         * lib/filename.h: Renamed from lib/pathname.h.
50394         (concatenated_filename): Renamed from concatenated_pathname.
50395         * lib/concat-filename.c: Renamed from lib/concatpath.c.
50396         (concatenated_filename): Renamed from concatenated_pathname.
50397         * lib/findprog.c: Include filename.h instead of pathname.h.
50398         (find_in_path): Update.
50399         * lib/javacomp.c: Include filename.h instead of pathname.h.
50400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50403         is_oldgcj_14_13_usable, is_javac_usable): Update.
50404         * lib/javaexec.c: Include filename.h instead of pathname.h.
50405         (execute_java_class): Update.
50406         * modules/findprog: Update.
50407         * modules/javacomp: Update.
50408         * modules/javaexec: Update.
50409         * MODULES.html.sh (File system functions): Add 'filename', remove
50410         'pathname'.
50411
50412 2007-02-25  Bruno Haible  <bruno@clisp.org>
50413
50414         * modules/printf-frexpl-tests: New file.
50415         * tests/test-printf-frexpl.c: New file.
50416
50417         * modules/printf-frexpl: New file.
50418         * lib/printf-frexpl.h: New file.
50419         * lib/printf-frexpl.c: New file.
50420         * m4/printf-frexpl.m4: New file.
50421
50422 2007-02-25  Bruno Haible  <bruno@clisp.org>
50423
50424         * modules/printf-frexp-tests: New file.
50425         * tests/test-printf-frexp.c: New file.
50426
50427         * modules/printf-frexp: New file.
50428         * lib/printf-frexp.h: New file.
50429         * lib/printf-frexp.c: New file.
50430         * m4/printf-frexp.m4: New file.
50431
50432 2007-02-25  Bruno Haible  <bruno@clisp.org>
50433
50434         Assume automake >= 1.10 for the tests.
50435         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
50436         * modules/arctwo-tests: Likewise.
50437         * modules/argp-tests: Likewise.
50438         * modules/avltree-list-tests: Likewise.
50439         * modules/avltree-oset-tests: Likewise.
50440         * modules/avltreehash-list-tests: Likewise.
50441         * modules/carray-list-tests: Likewise.
50442         * modules/crc-tests: Likewise.
50443         * modules/des-tests: Likewise.
50444         * modules/gc-arcfour-tests: Likewise.
50445         * modules/gc-arctwo-tests: Likewise.
50446         * modules/gc-des-tests: Likewise.
50447         * modules/gc-hmac-md5-tests: Likewise.
50448         * modules/gc-hmac-sha1-tests: Likewise.
50449         * modules/gc-md2-tests: Likewise.
50450         * modules/gc-md4-tests: Likewise.
50451         * modules/gc-md5-tests: Likewise.
50452         * modules/gc-pbkdf2-sha1-tests: Likewise.
50453         * modules/gc-rijndael-tests: Likewise.
50454         * modules/gc-sha1-tests: Likewise.
50455         * modules/gc-tests: Likewise.
50456         * modules/getaddrinfo-tests: Likewise.
50457         * modules/hmac-md5-tests: Likewise.
50458         * modules/hmac-sha1-tests: Likewise.
50459         * modules/linked-list-tests: Likewise.
50460         * modules/linkedhash-list-tests: Likewise.
50461         * modules/lock-tests: Likewise.
50462         * modules/md2-tests: Likewise.
50463         * modules/md4-tests: Likewise.
50464         * modules/md5-tests: Likewise.
50465         * modules/rbtree-list-tests: Likewise.
50466         * modules/rbtree-oset-tests: Likewise.
50467         * modules/rbtreehash-list-tests: Likewise.
50468         * modules/read-file-tests: Likewise.
50469         * modules/rijndael-tests: Likewise.
50470         * modules/stdint-tests: Likewise.
50471         * modules/tls-tests: Likewise.
50472
50473 2007-02-24  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
50476         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
50477         function; instead check whether isnan with a double argument links.
50478         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
50479         function; instead check whether isnan with a 'long double' argument
50480         links.
50481         Reported by Eric Blake <ebb9@byu.net>.
50482
50483 2007-02-24  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
50486         defined.
50487         * lib/isnanl.c: Remove all code. Just include isnan.c.
50488         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
50489
50490 2007-02-25  Jim Meyering  <jim@meyering.net>
50491
50492         Avoid conflicting types for 'unsetenv' on FreeBSD.
50493         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
50494         conflicting with FreeBSD's (5.0 and 6.1) function declaration
50495         in stdlib.h.
50496
50497 2007-02-24  Bruno Haible  <bruno@clisp.org>
50498
50499         * modules/isnanl-nolibm-tests: New file.
50500         * tests/test-isnanl.c: New file.
50501
50502         * modules/isnanl-nolibm: New file.
50503         * lib/isnanl.h: New file.
50504         * lib/isnanl.c: New file.
50505         * m4/isnanl.m4: New file.
50506
50507 2007-02-24  Bruno Haible  <bruno@clisp.org>
50508
50509         * modules/isnan-nolibm-tests: New file.
50510         * tests/test-isnan.c: New file.
50511
50512         * modules/isnan-nolibm: New file.
50513         * lib/isnan.h: New file.
50514         * lib/isnan.c: New file.
50515         * m4/isnan.m4: New file.
50516
50517 2007-02-24  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
50520         assume that an exponent fits in 20 bits.
50521
50522 2007-02-24  Jim Meyering  <jim@meyering.net>
50523
50524         * m4/regex.m4: Update the description of the configure-time option,
50525         --without-included-regex, to state accurately what the defaults are,
50526         and perhaps to give people an idea why using this option is risky.
50527
50528 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
50531         loops on small arguments.  This attempts to avoid the problem
50532         Bruno Haible reported for AIX 4.3.2 in
50533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
50534
50535 2007-02-23  Bruno Haible  <bruno@clisp.org>
50536
50537         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
50538         Needed for help2man.
50539
50540 2007-02-23  Karl Berry  <karl@gnu.org>
50541
50542         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
50543         exists, foo.h should be cvs-ignored, not committed.
50544
50545 2007-02-23  Eric Blake  <ebb9@byu.net>
50546
50547         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
50548         * lib/stat-time.h (includes): Likewise.
50549         * lib/utimecmp.c (includes): Likewise.
50550         * lib/utimens.h (includes): Likewise.
50551         * lib/getdate.y (includes): Also include "timespec.h" for use
50552         internal to the module.
50553         * modules/utimens (Depends-on): Revert yesterday's patch.
50554         * modules/nanosleep (Depends-on): Add missing dependency.
50555
50556 2007-02-22  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/glob.c: Don't include getlogin_r.h.
50559
50560 2007-02-22  Jim Meyering  <jim@meyering.net>
50561
50562         * modules/utimens (Depends-on): Add timespec, required for
50563         utimens.h's inclusion of timespec.h.
50564
50565 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
50568         long unreadable paths in GNU/Linux.  Problem reported by Andreas
50569         Schwab in
50570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
50571         I'll try to think of a better way to fix the Solaris problem.
50572
50573         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
50574         like glibc; on Solaris 10, it fails with errno == EINVAL.
50575         POSIX says the behavior is unspecified if the first argument is NULL,
50576         so play it safe and never pass NULL to the system getcwd.
50577
50578 2007-02-21  Jim Meyering  <jim@meyering.net>
50579
50580         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
50581         of gettimeofday.  It would conflict with the one now always
50582         provided via sys_time_.h.  Reported by Matthew Woehlke, as
50583         an IRIX 6.5 build failure.
50584
50585 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50586
50587         Minor fixups to port to Solaris 10 with Sun C 5.8.
50588         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
50589         * modules/getcwd (Depends-on): Add dirfd.
50590         * lib/putenv.c (putenv): #undef it.
50591         (rpl_putenv): New decl.
50592         (malloc, free): Include <stdlib.h> rather than prototyping separately.
50593
50594 2007-02-20  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/stdio-tests: New file.
50597         * tests/test-stdio.c: New file.
50598
50599         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
50600         (Depends-on): Add stdio.
50601         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50602         (Include): Use <stdio.h> instead of vsnprintf.h.
50603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50604         HAVE_DECL_VSNPRINTF.
50605         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
50606
50607         * modules/snprintf (Files): Remove lib/snprintf.h.
50608         (Depends-on): Add stdio.
50609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50610         (Include): Use <stdio.h> instead of snprintf.h.
50611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
50612         HAVE_DECL_SNPRINTF.
50613         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
50614         * lib/getaddrinfo.c: Likewise.
50615
50616         * modules/stdio: New file.
50617         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
50618         * lib/snprintf.h: Remove file.
50619         * lib/vsnprintf.h: Remove file.
50620         * lib/.cppi-disable: Remove snprintf.h.
50621         * m4/stdio_h.m4: New file.
50622         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
50623
50624 2007-02-20  Jim Meyering  <jim@meyering.net>
50625
50626         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
50627         used by e.g., mingw.  From Bruno Haible.
50628
50629 2007-02-19  Bruno Haible  <bruno@clisp.org>
50630
50631         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
50632         warnings.
50633         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50634
50635 2007-02-19  Bruno Haible  <bruno@clisp.org>
50636
50637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
50638         from mingw users.
50639
50640 2007-02-19  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
50643         warnings.
50644         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
50645
50646 2007-02-19  Jim Meyering  <jim@meyering.net>
50647
50648         Don't use FD after a successful "fdopendir (fd)".
50649         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
50650         Reset it by calling dirfd on the just-obtained DIR*.
50651
50652         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
50653         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
50654
50655 2007-02-18  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/readlink.c: Include <unistd.h>.
50658         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
50659         HAVE_READLINK.
50660         * modules/readlink (Depends-on): Add unistd.
50661         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50662         (Include): Add <unistd.h>.
50663
50664         * lib/getlogin_r.h: Remove file.
50665         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
50666         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
50667         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
50668         HAVE_DECL_GETLOGIN_R.
50669         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
50670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50671         (Include): Use <unistd.h> instead of getlogin_r.h.
50672
50673         * lib/getcwd.h: Remove file.
50674         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
50675         * lib/xgetcwd.c: Likewise.
50676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
50677         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
50678         * modules/getcwd (Files): Remove lib/getcwd.h.
50679         (Depends-on): Add unistd.
50680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50681         (Include): Use <unistd.h> instad of getcwd.h.
50682
50683         * lib/ftruncate.c: Include <unistd.h> first.
50684         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
50685         Set HAVE_FTRUNCATE.
50686         * modules/ftruncate (Depends-on): Add unistd.
50687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50688
50689         * lib/fchdir.c: Include <unistd.h> first.
50690         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
50691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
50692         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
50693         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50694         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
50695
50696         * lib/dup2.c: Include <unistd.h> first.
50697         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
50698         HAVE_DUP2.
50699         * modules/dup2 (Depends-on): Add unistd.
50700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50701
50702         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
50703         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
50704         REPLACE_CHOWN. Don't define chown as a macro here.
50705         * modules/chown (Depends-on): Add unistd.
50706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50707
50708         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
50709         Add definition for GL_LINK_WARNING.
50710         (chown, dup2): New declarations.
50711         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
50712         link warning.
50713         (ftruncate): New declaration.
50714         (getcwd): New declaration, taken from old getcwd.h.
50715         (getlogin_r): New declaration, taken from old getlogin_r.h.
50716         (readlink): New declaration.
50717         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
50718         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
50719         (gl_PREREQ_UNISTD): Remove macro.
50720         (gl_UNISTD_MODULE_INDICATOR): New macro.
50721         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
50722         many new variables. Don't set UNISTD_H.
50723         * modules/unistd (Description): Change.
50724         (Depends-on): Add link-warning.
50725         (configure.ac): Update.
50726         (Makefile.am): Create unistd.h always. Substitute many new variables
50727         into it.
50728
50729 2007-02-18  Bruno Haible  <bruno@clisp.org>
50730
50731         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
50732         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
50733         HAVE_GETSUBOPT.
50734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
50735         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
50736         * lib/getsubopt.h: Remove file.
50737         * modules/getsubopt (Files): Remove lib/getsubopt.h.
50738         (Depends-on): Add stdlib.
50739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50740         (Includes): Use <stdlib.h> instead of getsubopt.h.
50741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
50742         Set HAVE_GETSUBOPT.
50743         * lib/getsubopt.c: Don't include getsubopt.h.
50744
50745 2007-02-18  Bruno Haible  <bruno@clisp.org>
50746
50747         * modules/fchdir (Depends-on): Add dup2.
50748
50749 2007-02-18  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/stdlib_.h: Handle glibc's special invocation convention
50752         specially.
50753
50754 2007-02-18  Bruno Haible  <bruno@clisp.org>
50755
50756         * modules/stdlib-tests: New file.
50757         * tests/test-stdlib.c: New file.
50758
50759         * modules/mkstemp (Files): Remove lib/mkstemp.h.
50760         (Depends-on): Add stdlib.
50761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50762         (Includes): Use <stdlib.h> instead of mkstemp.h.
50763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50764         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
50765         * lib/mkstemp.c: Don't include mkstemp.h.
50766         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
50767         * lib/stdlib--.h: Don't include mkstemp.h.
50768
50769         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
50770         (Depends-on): Add stdlib.
50771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50772         (Includes): Use <stdlib.h> instead of mkdtemp.h.
50773         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
50774         HAVE_MKDTEMP.
50775         * lib/mkdtemp.c: Don't include mkdtemp.h.
50776         * lib/clean-temp.c: Don't include mkdtemp.h.
50777
50778         * modules/exit (Files): Remove lib/exit.h.
50779         (Depends-on): Add stdlib.
50780         (Makefile.am): Remove lib_SOURCES.
50781         (Include): Use <stdlib.h> instead of exit.h.
50782         * lib/argmatch.c: Don't include exit.h.
50783         * lib/execute.c: Likewise.
50784         * lib/pagealign_alloc.c: Likewise.
50785         * lib/pipe.c: Likewise.
50786         * lib/wait-process.c: Likewise.
50787         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
50788         * lib/exitfail.c: Likewise.
50789         * lib/savewd.c: Likewise.
50790         * lib/xsetenv.c: Likewise.
50791
50792         * modules/stdlib: New file.
50793         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
50794         and extra comments about mkstemp().
50795         * lib/exit.h: Remove file.
50796         * lib/mkdtemp.h: Remove file.
50797         * lib/mkstemp.h: Remove file.
50798         * m4/stdlib_h.m4: New file.
50799         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
50800
50801 2007-02-18  Bruno Haible  <bruno@clisp.org>
50802
50803         * modules/math-tests: New file.
50804         * tests/test-math.c: New file.
50805
50806         * modules/math: New file.
50807         * modules/mathl (Files): Remove lib/mathl.h.
50808         (Depends-on): Add math.
50809         (Makefile.am): Don't mention mathl.h.
50810         (Include): Use <math.h> instead of mathl.h.
50811         * lib/math_.h: New file.
50812         * lib/mathl.h: Remove file.
50813         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
50814         mathl.h.
50815         * lib/asinl.c: Likewise.
50816         * lib/atanl.c: Likewise.
50817         * lib/ceill.c: Likewise.
50818         * lib/cosl.c: Likewise.
50819         * lib/expl.c: Likewise.
50820         * lib/floorl.c: Likewise.
50821         * lib/frexpl.c: Likewise.
50822         * lib/ldexpl.c: Likewise.
50823         * lib/logl.c: Likewise.
50824         * lib/sincosl.c: Likewise.
50825         * lib/sinl.c: Likewise.
50826         * lib/sqrtl.c: Likewise.
50827         * lib/tanl.c: Likewise.
50828         * lib/trigl.c: Likewise.
50829         * m4/math_h.m4: New file.
50830         * MODULES.html.sh (Mathematics): Add math.
50831
50832 2007-02-17  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/wctype-tests: New file.
50835         * tests/test-wctype.c: New file.
50836
50837         * modules/wchar-tests: New file.
50838         * tests/test-wchar.c: New file.
50839
50840         * modules/unistd-tests: New file.
50841         * tests/test-unistd.c: New file.
50842
50843         * modules/time-tests: New file.
50844         * tests/test-time.c: New file.
50845
50846         * modules/sysexits-tests: New file.
50847         * tests/test-sysexits.c: New file.
50848
50849         * modules/sys_time-tests: New file.
50850         * tests/test-sys_time.c: New file.
50851
50852         * modules/sys_stat-tests: New file.
50853         * tests/test-sys_stat.c: New file.
50854
50855         * modules/sys_socket-tests: New file.
50856         * tests/test-sys_socket.c: New file.
50857
50858         * modules/sys_select-tests: New file.
50859         * tests/test-sys_select.c: New file.
50860
50861         * modules/string-tests: New file.
50862         * tests/test-string.c: New file.
50863
50864         * modules/stdbool-tests: New file.
50865         * tests/test-stdbool.c: New file.
50866
50867         * modules/netinet_in-tests: New file.
50868         * tests/test-netinet_in.c: New file.
50869
50870         * modules/inttypes-tests: New file.
50871         * tests/test-inttypes.c: New file.
50872
50873         * modules/fcntl-tests: New file.
50874         * tests/test-fcntl.c: New file.
50875
50876         * modules/byteswap-tests: New file.
50877         * tests/test-byteswap.c: New file.
50878
50879         * modules/arpa_inet-tests: New file.
50880         * tests/test-arpa_inet.c: New file.
50881
50882 2007-02-17  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
50885         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
50886         if the corresponding module is not enabled. Emit link warnings if
50887         the function is used nevertheless.
50888         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
50889         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
50890         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
50891         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
50892         * modules/inttypes (Depends-on): Add link-warning.
50893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50894         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
50895         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
50896         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
50897         * modules/imaxdiv (configure.ac): Likewise.
50898         * modules/strtoimax (configure.ac): Likewise.
50899         * modules/strtoumax (configure.ac): Likewise.
50900
50901 2007-02-17  Bruno Haible  <bruno@clisp.org>
50902
50903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
50904         gl_STRING_MODULE_INDICATOR_DEFAULTS.
50905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
50906         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
50907
50908 2007-02-17  Bruno Haible  <bruno@clisp.org>
50909
50910         * modules/link-warning: New file.
50911         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
50912         * lib/string_.h (GL_LINK_WARNING): Remove definition.
50913         * modules/string (Depends-on): Add link-warning.
50914         (Makefile.am): Copy the contents of build-aux/link-warning.h into
50915         string.h.
50916         * MODULES.html.sh (Support for building libraries and executables): Add
50917         link-warning.
50918
50919 2007-02-17  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
50922         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
50923         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
50924         long lines.
50925
50926 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
50927             Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/tmpfile: New file.
50930         * lib/tmpfile.c: New file.
50931         * m4/tmpfile.m4: New file.
50932         * MODULES.html.sh (func_all_modules): New section "Input/output".
50933
50934 2007-02-15  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
50937         (supports_delete_on_close): New function.
50938         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
50939
50940 2007-02-14  Bruno Haible  <bruno@clisp.org>
50941
50942         * modules/mbspcasecmp-tests: New file.
50943         * tests/test-mbspcasecmp.sh: New file.
50944         * tests/test-mbspcasecmp.c: New file.
50945
50946         New module mbspcasecmp.
50947         * modules/mbspcasecmp: New file.
50948         * lib/mbspcasecmp.c: New file.
50949         * lib/string_.h (strncasecmp): Change warning message.
50950         (mbspcasecmp): New declaration.
50951         * m4/mbspcasecmp.m4: New file.
50952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50953         GNULIB_MBSPCASECMP.
50954         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
50955         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
50956
50957 2007-02-14  Bruno Haible  <bruno@clisp.org>
50958
50959         * modules/mbsncasecmp-tests: New file.
50960         * tests/test-mbsncasecmp.sh: New file.
50961         * tests/test-mbsncasecmp.c: New file.
50962
50963         New module mbsncasecmp.
50964         * modules/mbsncasecmp: New file.
50965         * lib/mbsncasecmp.c: New file.
50966         * lib/string_.h (mbsncasecmp): New declaration.
50967         * m4/mbsncasecmp.m4: New file.
50968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50969         GNULIB_MBSNCASECMP.
50970         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
50971         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
50972
50973 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50976         Verify that it doesn't overlap with our flags.
50977         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50978         do not have the desired effect in multibyte locales; instead, use
50979         mbscasecmp.
50980         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50981         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50982         we don't require GNU fnmatch ourselves (if our users require it, they
50983         should do so explicitly).
50984
50985         Fix regex code so it doesn't rely on strcasecmp.
50986         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50987         Otherwise, include gnulib's langinfo.h.
50988         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50989         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50990         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50991         * modules/regex (FILES): Remove m4/codeset.m4.
50992         (Depends-on): Add localcharset.  Remove strcase.
50993
50994 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50995
50996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50997         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50998
50999 2007-02-13  Bruno Haible  <bruno@clisp.org>
51000
51001         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51003
51004 2007-02-12  Bruno Haible  <bruno@clisp.org>
51005
51006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51007         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51008         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51009         time warning rather than a link error.
51010
51011 2007-02-12  Bruno Haible  <bruno@clisp.org>
51012
51013         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51016
51017 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51018
51019         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51020         args, not 2.
51021
51022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51023
51024         New module 'time', so that apps can include <time.h> as per
51025         POSIX and GNU instead of separate include files like time_r.h
51026         and timegm.h.  This implementation tries out a simpler approach
51027         for replacing decls in standard include files (as compared to
51028         the string module), somewhat as an experiment.
51029
51030         * config/srclist.txt: Comment out mktime.c for now.
51031         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51032         since it doesn't apply any more.  Use generic wording instead.
51033         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51034         'time'.
51035         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51036         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51037         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51038         Don't include <sys/types.h>; no longer needed since we assume C89.
51039         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51040         * lib/strftime.c: Likewise.
51041         * lib/time_r.c: Likewise.
51042         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51043         * lib/nanosleep.c: Include <time.h> first, to check interface.
51044         * lib/strptime.c: Likewise.
51045         * lib/time_r.c: Likewise.
51046         * lib/timegm.c: Likewise.
51047         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51048         needed.
51049         * lib/timegm.c: Don't include timegm.h; no longer needed.
51050         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51051         time.h now handles any problems in that area.
51052         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51053         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51054         that time.h defines struct timespec.
51055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51056         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51057         handles that.
51058         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51059         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51060         needed.  Set REPLACE_LOCALTIME.
51061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51062         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51063         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51064         nanosleep; time_h.m4 now does that.  Don't require
51065         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51066         module handles this now.
51067         * modules/getdate (Depends-on): Remove timespec.  Add time.
51068         * modules/nanosleep (Depends-on): Likewise.
51069         * modules/stat-time (Depends-on): Likewise.
51070         * modules/nanosleep (Include): Include time.h, not timespec.h.
51071         * modules/strptime (Files): Remove lib/strptime.h.
51072         (Depends-on): Add extensions, time.
51073         (Include): Include time.h, not strptime.h.
51074         * modules/time_r (Files): Remove lib/time_r.h.
51075         (Depends-on): Add time.
51076         (Include): Include time.h, not time_r.h.
51077         * modules/timegm: Likewise.
51078         * modules/timespec (Description): Now does timespec-related decls
51079         of our own, instead of struct timespec itself.
51080         (Depends-on): Add time; remove extensions.
51081         (Maintainer): Add self.
51082         * modules/utimecmp (Depends-on): Add time; remove timespec.
51083         * modules/utimens (Depends-on): Likewise.
51084         * modules/xnanosleep (Depends-on): Likewise.
51085
51086 2007-02-11  Bruno Haible  <bruno@clisp.org>
51087
51088         * lib/c-strstr.c: Include allocsa.h.
51089         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51090         * lib/c-strcasestr.c: Include allocsa.h.
51091         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51092         * lib/strcasestr.c: Include allocsa.h.
51093         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51094         * lib/mbsstr.c: Include allocsa.h.
51095         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51096         allocsa/freesa instead of malloc/free.
51097         * lib/mbscasestr.c: Include allocsa.h.
51098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51099         allocsa/freesa instead of malloc/free.
51100         * modules/c-strstr (Depends-on): Add allocsa.
51101         * modules/c-strcasestr (Depends-on): Likewise.
51102         * modules/strcasestr (Depends-on): Likewise.
51103         * modules/mbsstr (Depends-on): Likewise.
51104         * modules/mbscasestr (Depends-on): Likewise.
51105
51106 2007-02-11  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51109
51110         * modules/mbsspn-tests: New file.
51111         * tests/test-mbsspn.sh: New file.
51112         * tests/test-mbsspn.c: New file.
51113
51114 2007-02-11  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51117
51118         * modules/mbspbrk-tests: New file.
51119         * tests/test-mbspbrk.sh: New file.
51120         * tests/test-mbspbrk.c: New file.
51121
51122 2007-02-11  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51125         unneeded cast.
51126
51127         * modules/mbscspn-tests: New file.
51128         * tests/test-mbscspn.sh: New file.
51129         * tests/test-mbscspn.c: New file.
51130
51131 2007-02-11  Bruno Haible  <bruno@clisp.org>
51132
51133         * modules/mbscasecmp-tests: New file.
51134         * tests/test-mbscasecmp.sh: New file.
51135         * tests/test-mbscasecmp.c: New file.
51136
51137 2007-02-11  Bruno Haible  <bruno@clisp.org>
51138
51139         Ensure O(n) worst-case complexity of mbscasestr.
51140         * lib/mbscasestr.c: Include stdbool.h.
51141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51142         functions.
51143         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51144         the bookkeeping indicates that it's worth it.
51145         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51146
51147         * modules/mbscasestr-tests: New file.
51148         * tests/test-mbscasestr1.c: New file.
51149         * tests/test-mbscasestr2.sh: New file.
51150         * tests/test-mbscasestr2.c: New file.
51151         * tests/test-mbscasestr3.sh: New file.
51152         * tests/test-mbscasestr3.c: New file.
51153         * tests/test-mbscasestr4.sh: New file.
51154         * tests/test-mbscasestr4.c: New file.
51155         * m4/locale-tr.m4: New file.
51156
51157 2007-02-11  Bruno Haible  <bruno@clisp.org>
51158
51159         Ensure O(n) worst-case complexity of mbsstr.
51160         * lib/mbsstr.c: Include stdbool.h.
51161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51162         functions.
51163         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51164         bookkeeping indicates that it's worth it.
51165         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51166
51167         * modules/mbsstr-tests: New file.
51168         * tests/test-mbsstr1.c: New file.
51169         * tests/test-mbsstr2.sh: New file.
51170         * tests/test-mbsstr2.c: New file.
51171         * tests/test-mbsstr3.sh: New file.
51172         * tests/test-mbsstr3.c: New file.
51173         * m4/locale-fr.m4: New file.
51174
51175 2007-02-11  Bruno Haible  <bruno@clisp.org>
51176
51177         * lib/mbsrchr.c (mbsrchr): Fix bug.
51178
51179         * modules/mbsrchr-tests: New file.
51180         * tests/test-mbsrchr.sh: New file.
51181         * tests/test-mbsrchr.c: New file.
51182
51183 2007-02-11  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/mbschr.c (mbschr): Fix bug.
51186
51187         * modules/mbschr-tests: New file.
51188         * tests/test-mbschr.sh: New file.
51189         * tests/test-mbschr.c: New file.
51190         * m4/locale-zh.m4: New file.
51191
51192 2007-02-11  Bruno Haible  <bruno@clisp.org>
51193
51194         Support for copying multibyte string iterators.
51195         * lib/mbiter.h: Include <string.h>.
51196         (mbiter_multi_copy): New function.
51197         (mbi_copy): New macro.
51198         * lib/mbuiter.h: Include <string.h>.
51199         (mbuiter_multi_copy): New function.
51200         (mbui_copy): New macro.
51201
51202 2007-02-11  Bruno Haible  <bruno@clisp.org>
51203
51204         New module mbslen.
51205         * modules/mbslen: New file.
51206         * lib/mbslen.c: New file.
51207         * lib/string_.h (mbslen): New declaration.
51208         * m4/mbslen.m4: New file.
51209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51210         GNULIB_MBSLEN.
51211         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51212         * MODULES.html.sh (Internationalization functions): Add mbslen.
51213
51214 2007-02-11  Bruno Haible  <bruno@clisp.org>
51215
51216         Ensure O(n) worst-case complexity of strcasestr substitute.
51217         * lib/strcasestr.c: Include stdbool.h.
51218         (knuth_morris_pratt): New function.
51219         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51220         bookkeeping indicates that it's worth it.
51221         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51222
51223         * modules/strcasestr-tests: New file.
51224         * tests/test-strcasestr.c: New file.
51225
51226 2007-02-11  Bruno Haible  <bruno@clisp.org>
51227
51228         Ensure O(n) worst-case complexity of c_strcasestr.
51229         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51230         (knuth_morris_pratt): New function.
51231         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51232         the bookkeeping indicates that it's worth it.
51233         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51234
51235         * modules/c-strcasestr-tests: New file.
51236         * tests/test-c-strcasestr.c: New file.
51237
51238 2007-02-11  Bruno Haible  <bruno@clisp.org>
51239
51240         Ensure O(n) worst-case complexity of c_strstr.
51241         * lib/c-strstr.c: Include stdbool.h, string.h.
51242         (knuth_morris_pratt): New function.
51243         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51244         bookkeeping indicates that it's worth it.
51245         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
51246
51247         * lib/c-strstr.c: Complete rewrite for maintainability.
51248
51249         * modules/c-strstr-tests: New file.
51250         * tests/test-c-strstr.c: New file.
51251
51252 2007-02-11  Bruno Haible  <bruno@clisp.org>
51253
51254         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
51255         5.2.1 and earlier, whereby \055 was treated just like the range
51256         delimiter '-'.
51257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51258
51259 2007-02-08  Bruno Haible  <bruno@clisp.org>
51260
51261         * modules/regex (Depends-on): Add stdbool.
51262         Reported by Dalibor Topic <robilad@kaffe.org>.
51263
51264 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
51267         Prefer returning from main to exiting from it.
51268         Remove unnecessary parens after sizeof.
51269
51270 2007-02-05  Bruno Haible  <bruno@clisp.org>
51271
51272         New module mbssep.
51273         * modules/mbssep: New file.
51274         * lib/mbssep.c: New file.
51275         * lib/string_.h (strsep): Add a conditional link warning.
51276         (mbssep): New declaration.
51277         * m4/mbssep.m4: New file.
51278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51279         GNULIB_MBSSEP.
51280         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
51281         * MODULES.html.sh (Internationalization functions): Add mbssep.
51282
51283 2007-02-05  Bruno Haible  <bruno@clisp.org>
51284
51285         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
51286         Optimize search in case of 1 delimiter.
51287
51288 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51289
51290         * lib/acl.h: Include sys/types.h before sys/acl.h.
51291
51292 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
51293
51294         Merge upstream fix for glibc bugzilla #3957:
51295
51296         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
51297
51298         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
51299         bit for RE_HAT_LISTS_NOT_NEWLINE.
51300         (build_charclass_op): Remove bogus comment.
51301
51302 2007-02-05  Simon Josefsson  <simon@josefsson.org>
51303
51304         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
51305
51306 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51309         * lib/memmem.c [!defined _LIBC]: Include config.h.
51310
51311 2007-02-04  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
51314         warning message.
51315
51316 2007-02-04  Bruno Haible  <bruno@clisp.org>
51317
51318         New module mbstok_r.
51319         * modules/mbstok_r: New file.
51320         * lib/mbstok_r.c: New file.
51321         * lib/string_.h (strtok_r): Change argument names to match the
51322         comments. Add a conditional link warning.
51323         (mbstok_r): New declaration.
51324         * m4/mbstok_r.m4: New file.
51325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51326         GNULIB_MBSTOK_R.
51327         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
51328         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
51329
51330 2007-02-04  Bruno Haible  <bruno@clisp.org>
51331
51332         New module mbsspn.
51333         * modules/mbsspn: New file.
51334         * lib/mbsspn.c: New file.
51335         * lib/string_.h (strspn): Add a conditional link warning.
51336         (mbsspn): New declaration.
51337         * m4/mbsspn.m4: New file.
51338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51339         GNULIB_MBSSPN.
51340         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
51341         * MODULES.html.sh (Internationalization functions): Add mbsspn.
51342
51343 2007-02-04  Bruno Haible  <bruno@clisp.org>
51344
51345         New module mbspbrk.
51346         * modules/mbspbrk: New file.
51347         * lib/mbspbrk.c: New file.
51348         * lib/string_.h (strpbrk): Add a conditional link warning.
51349         (mbspbrk): New declaration.
51350         * m4/mbspbrk.m4: New file.
51351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51352         GNULIB_MBSPBRK.
51353         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
51354         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
51355
51356 2007-02-04  Bruno Haible  <bruno@clisp.org>
51357
51358         New module mbscspn.
51359         * modules/mbscspn: New file.
51360         * lib/mbscspn.c: New file.
51361         * lib/string_.h (strcspn): Add a conditional link warning.
51362         (mbscspn): New declaration.
51363         * m4/mbscspn.m4: New file.
51364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51365         GNULIB_MBSCSPN.
51366         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
51367         * MODULES.html.sh (Internationalization functions): Add mbscspn.
51368
51369 2007-02-04  Bruno Haible  <bruno@clisp.org>
51370
51371         New module mbscasestr, reduced goal of strcasestr.
51372         * modules/mbscasestr: New file.
51373         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
51374         (mbscasestr): Renamed from strcasestr.
51375         * lib/strcasestr.c: Don't include mbuiter.h.
51376         (strcasestr): Remove support for multibyte locales.
51377         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
51378         Change the conditional link warning.
51379         (mbscasestr): New declaration.
51380         * m4/mbscasestr.m4: New file.
51381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
51382         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
51383         REPLACE_STRCASESTR.
51384         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
51385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51386         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51387         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
51388         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
51389         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
51390         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
51391         (Depends-on): Remove mbuiter.
51392         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
51393
51394 2007-02-04  Bruno Haible  <bruno@clisp.org>
51395
51396         Simplify handling of strncasecmp.
51397         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
51398         the conditional link warning.
51399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51400         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
51401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
51402         * modules/strcase (configure.ac): Don't invoke
51403         gl_STRING_MODULE_INDICATOR.
51404         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
51405
51406 2007-02-04  Bruno Haible  <bruno@clisp.org>
51407
51408         New module mbscasecmp, reduced goal of strcasecmp.
51409         * modules/mbscasecmp: New file.
51410         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
51411         (mbscasecmp): Renamed from strcasecmp.
51412         * lib/strcasecmp.c: Don't include mbuiter.h.
51413         (strcasecmp): Remove support for multibyte locales.
51414         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
51415         Change the conditional link warning.
51416         (mbscasecmp): New declaration.
51417         * m4/mbscasecmp.m4: New file.
51418         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
51419         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
51420         REPLACE_STRCASECMP.
51421         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
51422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51423         GNULIB_MBSCASECMP.
51424         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
51425         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
51426         * modules/strcase (Files): Remove m4/mbrtowc.m4.
51427         (Depends-on): Remove mbuiter.
51428         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
51429
51430 2007-02-04  Bruno Haible  <bruno@clisp.org>
51431
51432         New module mbsstr. Remove module strstr.
51433         * modules/mbsstr: New file.
51434         * modules/strstr: Remove file.
51435         * lib/mbsstr.c: Renamed from lib/strstr.c.
51436         (mbsstr): Renamed from strstr.
51437         * lib/string_.h (strstr): Remove declaration. Change the conditional
51438         link warning.
51439         (mbsstr): New declaration.
51440         * m4/mbsstr.m4: New file.
51441         * m4/strstr.m4: Remove file.
51442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51443         REPLACE_STRSTR.
51444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
51445         Don't initialize GNULIB_STRSTR.
51446         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51447         substitute GNULIB_STRSTR and REPLACE_STRSTR.
51448         * MODULES.html.sh (Internationalization functions): Add mbsstr.
51449         (Support for systems lacking ANSI C 89): Remove strstr.
51450
51451 2007-02-04  Bruno Haible  <bruno@clisp.org>
51452
51453         New module mbsrchr.
51454         * modules/mbsrchr: New file.
51455         * lib/mbsrchr.c: New file.
51456         * lib/string_.h (strrchr): Add a conditional link warning.
51457         (mbsrchr): New declaration.
51458         * m4/mbsrchr.m4: New file.
51459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51460         GNULIB_MBSRCHR.
51461         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
51462         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
51463
51464 2007-02-04  Bruno Haible  <bruno@clisp.org>
51465
51466         New module mbschr.
51467         * modules/mbschr: New file.
51468         * lib/mbschr.c: New file.
51469         * lib/string_.h (strchr): Add a conditional link warning.
51470         (mbschr): New declaration.
51471         * m4/mbschr.m4: New file.
51472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51473         GNULIB_MBSCHR.
51474         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
51475         * MODULES.html.sh (Internationalization functions): Add mbschr.
51476
51477 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51478
51479         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
51480
51481         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
51482
51483 2007-02-04  Bruno Haible  <bruno@clisp.org>
51484
51485         New module description section 'configure.ac-early'.
51486         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
51487         (func_get_autoconf_early_snippet): New function.
51488         (func_import, func_create_testdir): Use it. Remove special cases for
51489         modules 'extensions' and 'lock'.
51490         * modules/extensions (configure.ac-early): Require
51491         gl_USE_SYSTEM_EXTENSIONS.
51492         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
51493
51494 2007-02-04  Bruno Haible  <bruno@clisp.org>
51495
51496         Make use of gcj-4.3's -fsource and -ftarget option.
51497         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
51498         and if so try the options -fsource and -ftarget.
51499         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
51500         source_version, ftarget_option, target_version arguments.
51501         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
51502         (is_envjavac_oldgcj_14_14_usable): Renamed from
51503         is_envjavac_gcj_14_14_usable.
51504         (is_envjavac_oldgcj_14_13_usable): Renamed from
51505         is_envjavac_gcj_14_13_usable.
51506         (is_gcj_present): Update.
51507         (is_gcj_43, is_gcj43_usable): New functions.
51508         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
51509         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
51510         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
51511         try the options -fsource and -ftarget.
51512
51513 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
51516         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
51517         larger value.
51518
51519 2007-02-03  Jim Meyering  <jim@meyering.net>
51520
51521         Give tools a better chance to allocate space for very large buffers.
51522         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
51523
51524         Make pwd and readlink work also when run with an unreadable parent dir
51525         on systems with openat support.
51526         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
51527         provided getcwd function, even when we have openat support.
51528         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
51529
51530 2007-02-02  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51533         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
51534         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
51535         portability problems if one of these functions is only used on specific
51536         platforms.
51537         Reported by Paul Eggert.
51538
51539 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
51542         is causing more trouble than it's curing.
51543         * lib/regex_internal.h (__mempcpy): Remove.
51544         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
51545         (and make the code a tad smaller to boot).
51546         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
51547
51548 2007-02-02  Jim Meyering  <jim@meyering.net>
51549
51550         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
51551         section, not in the Makefile.am: one.
51552
51553 2007-02-02  Eric Blake  <ebb9@byu.net>
51554
51555         * lib/strchrnul.c: Always include config.h first.
51556
51557         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
51558         gnulib strstr is not necessary here.
51559
51560 2007-02-02  Simon Josefsson  <simon@josefsson.org>
51561
51562         * m4/socklen.m4: Fix typo.
51563
51564 2007-02-02  Eric Blake  <ebb9@byu.net>
51565
51566         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
51567         * modules/netinet_in (Makefile.am): Likewise.
51568
51569 2007-02-01  Bruno Haible  <bruno@clisp.org>
51570
51571         * lib/string_.h (GL_LINK_WARNING): New macro.
51572         (strcasecmp, strstr, strcasestr): If provided by the system,
51573         conditionally define as a macro that leads to a warning instead of to
51574         an error.
51575         (strncasecmp): Conditionally define as a macro that leads to a warning.
51576
51577 2007-02-01  Karl Berry  <karl@gnu.org>
51578
51579         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
51580
51581 2007-02-01  Bruno Haible  <bruno@clisp.org>
51582
51583         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
51584         renamings.
51585
51586 2007-02-01  Eric Blake  <ebb9@byu.net>
51587
51588         * modules/regex (Depends-on): Revert dependence on mempcpy.
51589         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
51590         module's definition of mempcpy.
51591         Reported by Paul Eggert.
51592
51593 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51594
51595         * lib/string_.h: If the gnulib module XYZ is not present, undefine
51596         the symbol XYZ before redefining it.  This fixes a problem with
51597         programs that don't use XYZ, when compiled on systems that define
51598         XYZ to something else.
51599
51600 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
51603         occurs when "mkdir -m foo" creates a setgid directory that is (1)
51604         writeable to group or other and (2) is intended to have a special
51605         mode bit that is set or cleared.  In such a case, the directory
51606         should be neither group- nor other-writeable until the special
51607         mode bits are right.
51608
51609 2007-01-31  Eric Blake  <ebb9@byu.net>
51610
51611         * modules/mountlist (Depends-on): Add strstr.
51612
51613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
51614         bug.
51615         * modules/string (Makefile.am): Remove redundant replacement.
51616         * modules/regex (Depends-on): Add mempcpy.
51617
51618 2007-01-31  Bruno Haible  <bruno@clisp.org>
51619
51620         New module description field 'Link'.
51621         * gnulib-tool (func_usage): Document --extract-link-directive.
51622         (sed_extract_prog): Recognize 'Link' directive.
51623         (func_get_link_directive): New function.
51624         (func_import): Show summary of link directives.
51625         Handle --extract-link-directive option.
51626         * modules/acl (Link): New section.
51627         * modules/clock-time (Link): New section.
51628         * modules/euidaccess (Link): New section.
51629         * modules/gettext (Link): New section.
51630         * modules/iconv (Link): New section.
51631         * modules/lock (Link): New section.
51632         * modules/nanosleep (Link): New section.
51633         * modules/readline (Link): New section.
51634
51635 2007-01-27  Bruno Haible  <bruno@clisp.org>
51636
51637         Enforce the use of gnulib modules for unportable <string.h> functions.
51638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
51639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
51640         (gl_HEADER_STRING_H_BODY): Require it.
51641         * lib/string_.h: If the gnulib module XYZ is not present, redefine
51642         the symbol XYZ to one that gives a link error.
51643         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
51644         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
51645         * modules/mempcpy (configure.ac): Likewise.
51646         * modules/memrchr (configure.ac): Likewise.
51647         * modules/stpcpy (configure.ac): Likewise.
51648         * modules/stpncpy (configure.ac): Likewise.
51649         * modules/strcase (configure.ac): Likewise.
51650         * modules/strcasestr (configure.ac): Likewise.
51651         * modules/strchrnul (configure.ac): Likewise.
51652         * modules/strdup (configure.ac): Likewise.
51653         * modules/strndup (configure.ac): Likewise.
51654         * modules/strnlen (configure.ac): Likewise.
51655         * modules/strpbrk (configure.ac): Likewise.
51656         * modules/strsep (configure.ac): Likewise.
51657         * modules/strstr (configure.ac): Likewise.
51658         * modules/strtok_r (configure.ac): Likewise.
51659
51660 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
51661
51662         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
51663
51664 2007-01-30  Jim Meyering  <jim@meyering.net>
51665
51666         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
51667
51668 2007-01-29  Bruno Haible  <bruno@clisp.org>
51669
51670         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
51671         * lib/execute.c: Likewise.
51672         * lib/pipe.c: Likewise.
51673         * lib/printf-args.h: Likewise.
51674         * lib/printf-args.c: Likewise.
51675         * lib/printf-parse.c: Likewise.
51676         * lib/vasnprintf.c: Likewise.
51677
51678 2007-01-29  Eric Blake  <ebb9@byu.net>
51679
51680         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
51681         declaration.
51682
51683 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * lib/strptime.h (strptime): Use 'restrict' for args where
51686         POSIX requires this.
51687         * lib/strptime.c (strptime): Likewise.
51688         Change license notice from LGPL to GPL, since gnulib-tool will
51689         change this as needed.
51690         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
51691         defined.
51692         Include "strptime.h" first, to check interface.
51693         Do not #undef _LIBC and _NL_CURRENT.
51694         Do not include <stdlib.h>; no longer needed.
51695         Include "time_r.h" and declare ptime_locale_status
51696         only if _LIBC is not defined.
51697         (__P): Remove unused macro.
51698         (match_string): Bring back glibc version, but use it only if _LIBC
51699         is defined.
51700         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
51701         Remove unnecessary assertion and abort() call.
51702         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
51703         * m4/strptime.m4: Fix serial number comment.
51704         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
51705         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
51706         (Depends-on): Add time_r.
51707
51708 2007-01-29  Bruno Haible  <bruno@clisp.org>
51709
51710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51711         strptime.
51712         * modules/strptime (Depends-on): Add stdbool.
51713         * lib/strptime.h: Include <time.h> always. Add comments.
51714
51715 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51716
51717         * modules/strptime: New file.
51718         * lib/strptime.h: New file.
51719         * lib/strptime.c: New file.
51720         * m4/strptime.m4: New file.
51721
51722 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * MODULES.html.sh: New module mpsort.
51725         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
51726
51727         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
51728         a circularity problem with HP-UX ia64 reported by Bob Proulx in
51729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
51730         All uses changed.
51731         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
51732         All uses changed.
51733         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
51734         to _Restrict_.
51735         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
51736         the parameter matches the prototype.
51737
51738 2007-01-28  Jim Meyering  <jim@meyering.net>
51739
51740         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
51741         sys/time.h here, reverting that part of the previous patch:
51742         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
51743
51744 2007-01-28  Bruno Haible  <bruno@clisp.org>
51745
51746         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
51747         value of $(SYS_TIME_H).
51748         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
51749         remove it conditionally, too. [added by Jim Meyering]
51750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
51751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51752         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
51753         GETTIMEOFDAY_REPLACEMENT to 1.
51754
51755 2007-01-28  Bruno Haible  <bruno@clisp.org>
51756
51757         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
51758         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
51759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
51760         Set UNISTD_H instead of UNISTD_H2.
51761         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
51762
51763 2007-01-28  Bruno Haible  <bruno@clisp.org>
51764
51765         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
51766         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
51767
51768 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51769
51770         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
51771         (func_create_testdir): Ensure C locale for `grep' and `tr'
51772         character ranges.
51773         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
51774         ACLOCAL_AMFLAGS parsing state machine.
51775
51776 2007-01-27  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/unistr/base: Update.
51779
51780 2007-01-27  Bruno Haible  <bruno@clisp.org>
51781
51782         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
51783         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
51784         * modules/unistr/u32-mbtouc-unsafe: Renamed from
51785         modules/unistr/u32-mbtouc.
51786         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
51787         * lib/unistr.h: Update.
51788         * lib/linebreak.c: Update.
51789         * modules/unistr/u32-mbtouc: Renamed from
51790         modules/unistr/u32-mbtouc-safe.
51791         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
51792         * lib/unistr.h: Update.
51793         * lib/unistr/u32-to-u8.c: Update.
51794         * lib/unistr/u32-to-u16.c: Update.
51795
51796 2007-01-27  Bruno Haible  <bruno@clisp.org>
51797
51798         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
51799         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
51800         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
51801         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
51802         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
51803         * modules/unistr/u16-mbtouc-unsafe: Renamed from
51804         modules/unistr/u16-mbtouc.
51805         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
51806         * lib/unistr.h: Update.
51807         * lib/linebreak.c: Update.
51808         * modules/linebreak: Update.
51809         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
51810         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
51811         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
51812         * modules/unistr/u16-mbtouc: Renamed from
51813         modules/unistr/u16-mbtouc-safe.
51814         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
51815         * lib/unistr.h: Update.
51816         * lib/unistr/u16-to-u8.c: Update.
51817         * modules/unistr/u16-to-u8: Update.
51818         * lib/unistr/u16-to-u32.c: Update.
51819         * modules/unistr/u16-to-u32: Update.
51820
51821 2007-01-27  Bruno Haible  <bruno@clisp.org>
51822
51823         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
51824         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
51825         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
51826         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
51827         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
51828         * modules/unistr/u8-mbtouc-unsafe: Renamed from
51829         modules/unistr/u8-mbtouc.
51830         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
51831         * lib/unistr.h: Update.
51832         * lib/striconveh.c: Update.
51833         * modules/striconveh: Update.
51834         * lib/linebreak.c: Update.
51835         * modules/linebreak: Update.
51836         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
51837         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
51838         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
51839         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
51840         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
51841         * lib/unistr.h: Update.
51842         * lib/striconveh.c: Update.
51843         * modules/striconveh: Update.
51844         * lib/unistr/u8-to-u16.c: Update.
51845         * modules/unistr/u8-to-u16: Update.
51846         * lib/unistr/u8-to-u32.c: Update.
51847         * modules/unistr/u8-to-u32: Update.
51848
51849 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51850
51851         Sync from Libtool.
51852         * lib/argz.c: Do not include strings.h nor memory.h, include
51853         string.h unconditionally.  Patch by Simon Josefsson.
51854
51855 2007-01-27  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
51858         from gl_HEADER_STRING_H_BODY.
51859         (gl_HEADER_STRING_H_BODY): Require it.
51860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
51861         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51865         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
51866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51867         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51868         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
51869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51871         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
51872         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51873         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51875
51876 2007-01-27  Bruno Haible  <bruno@clisp.org>
51877
51878         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
51879         check_PROGRAMS into noinst_PROGRAMS.
51880         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
51881         check_PROGRAMS in this case.
51882         (func_import): Set for_test to false.
51883         (func_create_testdir): Set for_test to true.
51884
51885 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51886             Bruno Haible  <bruno@clisp.org>
51887
51888         * modules/strcasestr (Files): Remove lib/strcasestr.h.
51889         (Depends-on): Add string.
51890         (Includes): Use <string.h> instead of strcasestr.h.
51891         * modules/string (Makefile.am): Also substitute the value of
51892         REPLACE_STRCASESTR.
51893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
51894         assume strcasestr is declared in <string.h> not <strings.h>. Also
51895         set REPLACE_STRCASESTR.
51896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
51897         REPLACE_STRCASESTR.
51898         * lib/strcasestr.h: Remove file.
51899         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
51900         * lib/string_.h (strcasestr): New declaration.
51901
51902 2007-01-27  Bruno Haible  <bruno@clisp.org>
51903
51904         * lib/string_.h: Use 'extern'.
51905
51906 2007-01-27  Jim Meyering  <jim@meyering.net>
51907
51908         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
51909         of set-but-not-used local, "q".
51910
51911         * lib/mempcpy.c: Include <config.h> before <string.h>.
51912         This fixes a compilation error on HP-UX, due to the system's
51913         "restrict"-using mempcpy prototype.
51914
51915 2007-01-26  Bruno Haible  <bruno@clisp.org>
51916
51917         Small optimization.
51918         * lib/javacomp.c: Include c-strstr.h.
51919          (is_envjavac_gcj): Use c_strstr instead of strstr.
51920         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
51921
51922 2007-01-26  Bruno Haible  <bruno@clisp.org>
51923
51924         * MODULES.html.sh (Unicode string functions): Add the new modules.
51925
51926         * modules/uniconv/u32-strconv-to-locale: New file.
51927         * lib/uniconv/u32-strconv-to-locale.c: New file.
51928
51929         * modules/uniconv/u16-strconv-to-locale: New file.
51930         * lib/uniconv/u16-strconv-to-locale.c: New file.
51931
51932         * modules/uniconv/u8-strconv-to-locale: New file.
51933         * lib/uniconv/u8-strconv-to-locale.c: New file.
51934
51935         * modules/uniconv/u32-strconv-from-locale: New file.
51936         * lib/uniconv/u32-strconv-from-locale.c: New file.
51937
51938         * modules/uniconv/u16-strconv-from-locale: New file.
51939         * lib/uniconv/u16-strconv-from-locale.c: New file.
51940
51941         * modules/uniconv/u8-strconv-from-locale: New file.
51942         * lib/uniconv/u8-strconv-from-locale.c: New file.
51943
51944         * modules/uniconv/u32-strconv-to-enc: New file.
51945         * lib/uniconv/u32-strconv-to-enc.c: New file.
51946         * modules/uniconv/u32-strconv-to-enc-tests: New file.
51947         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
51948
51949         * modules/uniconv/u16-strconv-to-enc: New file.
51950         * lib/uniconv/u16-strconv-to-enc.c: New file.
51951         * lib/uniconv/u-strconv-to-enc.h: New file.
51952         * modules/uniconv/u16-strconv-to-enc-tests: New file.
51953         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
51954
51955         * modules/uniconv/u8-strconv-to-enc: New file.
51956         * lib/uniconv/u8-strconv-to-enc.c: New file.
51957         * modules/uniconv/u8-strconv-to-enc-tests: New file.
51958         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
51959
51960         * modules/uniconv/u32-strconv-from-enc: New file.
51961         * lib/uniconv/u32-strconv-from-enc.c: New file.
51962         * modules/uniconv/u32-strconv-from-enc-tests: New file.
51963         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
51964
51965         * modules/uniconv/u16-strconv-from-enc: New file.
51966         * lib/uniconv/u16-strconv-from-enc.c: New file.
51967         * modules/uniconv/u16-strconv-from-enc-tests: New file.
51968         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
51969
51970         * modules/uniconv/u8-strconv-from-enc: New file.
51971         * lib/uniconv/u8-strconv-from-enc.c: New file.
51972         * lib/uniconv/u-strconv-from-enc.h: New file.
51973         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51974         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51975
51976         * modules/uniconv/u32-conv-from-enc: New file.
51977         * lib/uniconv/u32-conv-from-enc.c: New file.
51978         * modules/uniconv/u32-conv-from-enc-tests: New file.
51979         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51980
51981         * modules/uniconv/u16-conv-from-enc: New file.
51982         * lib/uniconv/u16-conv-from-enc.c: New file.
51983         * lib/uniconv/u-conv-from-enc.h: New file.
51984         * modules/uniconv/u16-conv-from-enc-tests: New file.
51985         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51986
51987         * modules/uniconv/u8-conv-from-enc: New file.
51988         * lib/uniconv/u8-conv-from-enc.c: New file.
51989         * modules/uniconv/u8-conv-from-enc-tests: New file.
51990         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51991
51992         * modules/uniconv/base: New file.
51993         * lib/uniconv.h: New file.
51994
51995 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51996
51997         * doc/gnulib-tool.texi (Initial import): Update to match current
51998         behavior with strdup module.
51999         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52000         * lib/memmem.h: Remove; all uses removed.  This is now done
52001         by <string.h>.
52002         * lib/mempcpy.h: Likewise.
52003         * lib/memrchr.h: Likewise.
52004         * lib/stpcpy.h: Likewise.
52005         * lib/stpncpy.h: Likewise.
52006         * lib/strcase.h: Likewise.
52007         * lib/strchrnul.h: Likewise.
52008         * lib/strdup.h: Likewise.
52009         * lib/strndup.h: Likewise.
52010         * lib/strnlen.h: Likewise.
52011         * lib/strpbrk.h: Likewise.
52012         * lib/strsep.h: Likewise.
52013         * lib/strstr.h: Likewise.
52014         * lib/strtok_r.h: Likewise.
52015         * lib/string_.h: New file.
52016         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52017         Rely on <string.h> instead.
52018         * lib/canon-host.c: Likewise.
52019         * lib/chdir-long.c: Likewise.
52020         * lib/concatpath.c: Likewise.
52021         * lib/exclude.c: Likewise.
52022         * lib/fchdir.c: Likewise.
52023         * lib/getaddrinfo.c: Likewise.
52024         * lib/getcwd.c: Likewise.
52025         * lib/getsubopt.c: Likewise.
52026         * lib/glob.c: Likewise.
52027         * lib/hard-locale.c: Likewise.
52028         * lib/iconvme.c: Likewise.
52029         * lib/javacomp.c: Likewise.
52030         * lib/mempcpy.c: Likewise.
52031         * lib/memrchr.c: Likewise.
52032         * lib/regex_internal.h: Likewise.
52033         * lib/stpncpy.c: Likewise.
52034         * lib/strcasecmp.c: Likewise.
52035         * lib/strchrnul.c: Likewise.
52036         * lib/strdup.c: Likewise.
52037         * lib/striconv.c: Likewise.
52038         * lib/striconveh.c: Likewise.
52039         * lib/striconveha.c: Likewise.
52040         * lib/strncasecmp.c: Likewise.
52041         * lib/strndup.c: Likewise.
52042         * lib/strnlen.c: Likewise.
52043         * lib/strsep.c: Likewise.
52044         * lib/strstr.c: Likewise.
52045         * lib/strtok_r.c: Likewise.
52046         * lib/userspec.c: Likewise.
52047         * lib/w32spawn.h: Likewise.
52048         * lib/xstrndup.c: Likewise.
52049         * lib/mountlist.c (strstr): Remove decl.
52050         * m4/string_h.m4: New file.
52051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52052         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52053         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52054         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52055         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52056         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52057         Set REPLACE_STRCASECMP if necessary.
52058         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52059         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52060         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52062         HAVE_DECL_STRDUP if necessary.
52063         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52064         since gl_FUNC_STRNDUP does that now.
52065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52066         Check for decl here...
52067         (gl_PREREQ_STRNLEN): ... not here.
52068         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52069         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52070         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52072         necessary.
52073         * modules/string: New file.
52074         * modules/memmem (Files): Remove special-purpose include file.
52075         (Depends-on): Add string.
52076         (Include): Include <string.h>, not the removed file.
52077         * modules/mempcpy: Likewise.
52078         * modules/memrchr: Likewise.
52079         * modules/stpcpy: Likewise.
52080         * modules/stpncpy: Likewise.
52081         * modules/strcase: Likewise.
52082         * modules/strchrnul: Likewise.
52083         * modules/strdup: Likewise.
52084         * modules/strndup: Likewise.
52085         * modules/strnlen: Likewise.
52086         * modules/strpbrk: Likewise.
52087         * modules/strsep: Likewise.
52088         * modules/strstr: Likewise.
52089         * modules/strtok_r: Likewise.
52090         * tests/test-dirname.c: Don't include "strdup.h", since
52091         <string.h> now suffices.
52092         * tests/test-memmem.c: Don't include "memmem.h", since
52093         <string.h> now suffices.
52094
52095 2007-01-25  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52098         *resultp is 0.
52099
52100         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52101         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52102         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52103         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52104
52105         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52106         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52107         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52108         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52109         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52110         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52111
52112 2007-01-24  Bruno Haible  <bruno@clisp.org>
52113
52114         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52116         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52117         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52118         gl_FUNC_FTS_CORE.
52119         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52120         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52121         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52122         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52123         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52124         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52125         gl_FUNC_FCHOWNAT.
52126         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52127         gl_FUNC_STRFTIME.
52128         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52129         Reported by Ralf Wildenhues.
52130
52131 2007-01-24  Bruno Haible  <bruno@clisp.org>
52132
52133         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52134         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52135         gl_GETADDRINFO.
52136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52137         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52138         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52139
52140 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52143         Don't use 'exit'; just return from 'main'.
52144         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52145
52146         * lib/fnmatch_.h: Readjust white space and comments to match
52147         glibc, to avoid spurious diffs.
52148
52149 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52152         2004-12-01 change by Jakub Jelinek, since this code won't compile
52153         if !LIBC.  Problem reported by Bob Proulx.
52154
52155 2007-01-23  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/striconveh.c: Include c-strcaseeq.h.
52158         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52159         * modules/striconveh (Depends-on): Add c-strcaseeq.
52160
52161 2007-01-23  Bruno Haible  <bruno@clisp.org>
52162
52163         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52164
52165         * modules/c-strcaseeq: New file.
52166         * lib/c-strcaseeq.h: New file.
52167
52168         * modules/streq: New file.
52169         * lib/streq.h: New file.
52170
52171 2007-01-23  Bruno Haible  <bruno@clisp.org>
52172
52173         * modules/striconveha-tests: New file.
52174         * tests/test-striconveha.c: New file.
52175
52176         * lib/striconveha.h: Include <stdbool.h>.
52177         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52178         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52179         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52180         (mem_iconveha): New function.
52181         (str_iconveha_notranslit): Renamed from str_iconveha.
52182         (str_iconveha): New function.
52183         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52184         c-strcase.
52185
52186 2007-01-23  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52189         encodings without forgiving before trying any encoding with handler.
52190         (str_iconveha): Try all encodings without forgiving before trying any
52191         encoding with handler.
52192
52193 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52194
52195         Import the following changes from libc.
52196
52197         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52198
52199         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52200
52201         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52202
52203         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52204         normal_bracket label.
52205
52206         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52207
52208         [BZ #361]
52209         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52210         to normal_bracket after fetching the next character.
52211
52212 2007-01-22  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52215         argument.
52216         * lib/striconveh.c (iconv_carefully_1): New function.
52217         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52218         argument.
52219         (str_cd_iconveh): Update.
52220         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52221         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52222         * tests/test-striconveh.c (MAGIC): New macro.
52223         (new_offsets): New function.
52224         (main): Test call with and without offsets.
52225
52226 2007-01-22  Bruno Haible  <bruno@clisp.org>
52227
52228         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52229         * modules/sys_select (Makefile.am): Likewise.
52230         * modules/sys_socket (Makefile.am): Likewise.
52231         * modules/sys_time (Makefile.am): Likewise.
52232
52233 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52234
52235         * modules/gettimeofday (License): Change from GPL to LGPL, since
52236         gettimeofday is a library function.
52237
52238 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52239
52240         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
52241
52242 2007-01-21  Bruno Haible  <bruno@clisp.org>
52243
52244         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
52245
52246 2007-01-21  Bruno Haible  <bruno@clisp.org>
52247
52248         * modules/striconveha: New file.
52249         * lib/striconveha.h: New file.
52250         * lib/striconveha.c: New file.
52251         * MODULES.html.sh (Internationalization functions): Add striconveha.
52252         * lib/striconv.c (str_iconv): Optimize the case of an empty input
52253         string.
52254         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
52255
52256 2007-01-21  Bruno Haible  <bruno@clisp.org>
52257
52258         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
52259         * lib/striconveh.c (str_iconveh): Likewise.
52260
52261 2007-01-21  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/striconveh.h (mem_iconveh): New declaration.
52264         * lib/striconveh.c (mem_iconveh): New function.
52265         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
52266
52267 2007-01-21  Bruno Haible  <bruno@clisp.org>
52268
52269         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
52270
52271         * lib/striconveh.h (mem_cd_iconveh): Change specification.
52272         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
52273         original result buffer.
52274         (str_cd_iconveh): Update.
52275         * tests/test-striconveh.c (main): Update.
52276
52277         * lib/striconv.h (mem_cd_iconv): Change specification.
52278         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
52279         result buffer.
52280         (str_cd_iconv): Update.
52281         * tests/test-striconv.c (main): Update.
52282
52283 2007-01-21  Bruno Haible  <bruno@clisp.org>
52284
52285         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
52286
52287 2007-01-20  Jim Meyering  <jim@meyering.net>
52288
52289         * lib/userspec.c (parse_with_separator): If a user or group string
52290         starts with "+", skip the corresponding name-to-ID look-up, since
52291         such a look-up must fail: user and group names may not include "+".
52292
52293 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52294
52295         * lib/poll.c: Include sys/time.h and time.h unconditionally,
52296         since we now assume the sys_time module.
52297         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
52298         check for sys/time.h; no longer needed.
52299         * modules/poll (Depends-on): Depend on sys_time.
52300
52301 2007-01-18  Bruno Haible  <bruno@clisp.org>
52302
52303         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
52304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52305
52306         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
52307         gettimeofday.
52308
52309         * tests/test-gettimeofday.c: Include <time.h>.
52310         (dummy): Remove variable.
52311
52312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
52313         gl_HEADER_SYS_TIME_H.
52314         (gl_HEADER_SYS_TIME_H): New macro.
52315
52316         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
52317         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52319         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
52320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
52322         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
52323         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52324         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
52325         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
52326         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52327
52328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
52329         last change; it caused a compilation error when cross-compiling to
52330         Cygwin.
52331
52332 2007-01-18  Jim Meyering  <jim@meyering.net>
52333
52334         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
52335         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
52336         than the race-prone "test -d sys || mkdir sys".
52337         (configure.ac): Use AC_PROG_MKDIR_P.
52338         * modules/sys_select: Likewise.
52339         * modules/sys_socket: Likewise.
52340         * modules/sys_time: Likewise.
52341
52342 2007-01-18  Eric Blake  <ebb9@byu.net>
52343
52344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
52345         replace gettimeofday.
52346         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
52347         name, to avoid infinite recursion.
52348
52349 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
52352         module sys_time.
52353         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
52354         assume timespec.h defines struct timeval.
52355         * lib/settime.c: Likewise.
52356         * lib/utimens.c: Likewise.
52357         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
52358         since we now assume the gettimeofday module.
52359         * lib/tempname.c (__gen_tempname): Likewise.
52360         * lib/gettimeofday.h: Remove.
52361         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
52362         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
52363         Include <time.h>, for 'time()'.
52364         (localtime_buffer_addr): Also use this workaround if
52365         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
52366         to simplify the uses.  All uses changed.
52367         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
52368         that #undef is inside {}, and 'const' follows type name consistently.
52369         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
52370         (gettimeofday): Do not use the maximum possible value for
52371         tv->tv_usec, since that might break usages other than ls.c.
52372         Instead, we'll leave ls.c alone.  This undoes today's patch
52373         by Bruno.  Add a compile-time warning for 1s-clock resolution;
52374         we've never observed the problem but might as well keep the
52375         canary.
52376         * lib/nanosleep.c: Include timespec.h first, for interface check.
52377         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
52378         now assume the sys_time module.
52379         * lib/tempname.c: Likewise.
52380         * lib/timespec.h: Likewise.
52381         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
52382         needed.
52383         * lib/strftime.c: Likewise.
52384         * lib/timespec.h: Likewise.
52385         * lib/posixtm.c: Include posixtm.h first, for interface check.
52386         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
52387         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
52388         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
52389         * lib/sys_time_.h: New file.
52390         * lib/timespec.h (struct timespec): Use long int, not long.
52391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52392         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
52393         Remove obsolescent call to AC_HEADER_TIME.
52394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
52395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
52397         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
52398         Likewise.
52399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
52400         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
52401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
52402         into the sys_time module.  Check for gettimeofday just once.
52403         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
52404         for gettimeofday signature to just check the signature.  Merely
52405         compile it, since linking doesn't test signature.  Improve test for
52406         whether gettimeofday.o is actually needed.
52407         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
52408         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
52409         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
52410         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52411         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
52412         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
52413         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
52414         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
52415         than worrying about sys/time.h.
52416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52417         Don't bother worrying about TIME_WITH_SYS_TIME.
52418         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
52419         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
52420         * m4/sys_time_h.m4: New file.
52421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
52422         Don't include sys/time.h.  Return from main rather than exiting.
52423         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
52424         all uses changed.
52425         * modules/gethrxtime (Depends-on): Add sys_time.
52426         * modules/gettime (Depends-on): Likewise.
52427         * modules/gettimeofday (Depends-on): Likewise.
52428         * modules/nanosleep (Depends-on): Likewise.
52429         * modules/settime (Depends-on): Likewise.
52430         * modules/tempname (Depends-on): Likewise.
52431         * modules/utimens (Depends-on): Likewise.
52432         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
52433         (Include:) Change back to <sys/time.h>.
52434         (Maintainer:) Add self.
52435         * modules/sys_time: New file.
52436         * modules/tempname (Depends-on): Add gettimeofday.
52437         * tests/test-gettimeofday.c: Include <sys/time.h>
52438         rather than gettimeofday.h.
52439
52440 2007-01-17  Bruno Haible  <bruno@clisp.org>
52441
52442         * gnulib-tool (func_get_license): Revert last patch. Instead, let
52443         the license default to GPL.
52444         (func_create_testdir): Don't complain if a module is LGPL and its
52445         tests module depends on GPLed modules.
52446
52447 2007-01-17  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/gettimeofday.c (gettimeofday): Add code for the case
52450         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
52451         maximum possible value for tv->tv_usec, rather than the minimum one.
52452
52453 2005-10-08  Martin Lambers  <marlam@marlam.de>
52454 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52455 2007-01-16  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
52458         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
52459         gl_FUNC_GETTIMEOFDAY.
52460         (Include): Add gettimeofday.h.
52461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
52462         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
52463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
52464         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
52465         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
52466         * lib/gettimeofday.h: New file.
52467         * lib/gettimeofday.c: Include <sys/timeb.h>.
52468         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
52469         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
52470         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
52471         fall back on time().
52472
52473         * tests/test-gettimeofday.c: New file.
52474         * modules/gettimeofday-tests: New file.
52475
52476 2007-01-16  Eric Blake  <ebb9@byu.net>
52477
52478         * modules/fnmatch (Depends-on): Depend on wchar.
52479         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
52480         * m4/fnmatch.m4: Likewise.
52481         * modules/mbchar (Makefile.am): Assume <wchar.h>.
52482         * m4/mbchar.m4: Likewise.
52483         * modules/mbswidth (Depends-on): Depend on wchar.
52484         * lib/mbswidth.c: Assume <wchar.h>.
52485         * m4/mbswidth.m4: Likewise.
52486         * modules/quotearg (Depends-on): Depend on wchar.
52487         * lib/quotearg.c: Assume <wchar.h>.
52488         * m4/quotearg.m4: Likewise.
52489         * modules/regex (Depends-on): Depend on wchar.
52490         * lib/regex_internal.h: Assume <wchar.h>.
52491         * m4/regex.m4: Likewise.
52492         * modules/stdint (Depends-on): Depend on wchar.
52493         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
52494         * m4/stdint.m4: Likewise.
52495         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
52496         * modules/strftime (Depends-on): Depend on wchar.
52497         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
52498         * modules/strtol (Depends-on): Depend on wchar.
52499         * lib/strtol.c: Assume <wchar.h>.
52500         * modules/wcwidth (Depends-on): Depend on wchar.
52501         * lib/wcwidth.h: Assume <wchar.h>.
52502         * m4/wcwidth.m4: Likewise.
52503
52504 2007-01-16  Bruno Haible  <bruno@clisp.org>
52505
52506         * modules/csharpexec-script: New, created from...
52507         * modules/csharpexec: ... this.
52508
52509 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52510
52511         * modules/javaexec-script: New, created from...
52512         * modules/javaexec: ... this.
52513
52514 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52515
52516         * modules/poll (Dependencies): Add sys_select.
52517
52518 2007-01-15  Jim Meyering  <jim@meyering.net>
52519
52520         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
52521         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
52522         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
52523         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
52524
52525 2007-01-15  Bruno Haible  <bruno@clisp.org>
52526
52527         * modules/striconveh: New file.
52528         * lib/striconveh.h: New file.
52529         * lib/striconveh.c: New file.
52530         * MODULES.html.sh (Internationalization functions): Add striconveh.
52531
52532         * modules/striconveh-tests: New file.
52533         * tests/test-striconveh.c: New file.
52534
52535 2007-01-15  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
52538         not from GNU libiconv or GNU libc.
52539
52540 2007-01-15  Bruno Haible  <bruno@clisp.org>
52541
52542         * doc/gnulib-intro.texi (Copyright): Explain the different license
52543         terms for module descriptions, autoconf macros, tests, documentation.
52544
52545 2007-01-14  Bruno Haible  <bruno@clisp.org>
52546
52547         * modules/striconv-tests: New file.
52548         * tests/test-striconv.c: New file.
52549
52550 2007-01-14  Bruno Haible  <bruno@clisp.org>
52551
52552         * modules/iconv-tests: New file.
52553         * tests/test-iconv.c: New file.
52554
52555 2007-01-14  Bruno Haible  <bruno@clisp.org>
52556
52557         * gnulib-tool (func_get_license): For test modules, use the license of
52558         the main module.
52559
52560 2007-01-14  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/iconv (Include): Clarify that <iconv.h> can only be included
52563         if iconv is found to exist.
52564
52565 2007-01-14  Bruno Haible  <bruno@clisp.org>
52566
52567         * modules/c-ctype-tests: New file.
52568         * tests/test-c-ctype.c: New file.
52569
52570 2007-01-14  Bruno Haible  <bruno@clisp.org>
52571
52572         * modules/binary-io-tests: New file.
52573         * tests/test-binary-io.sh: New file.
52574         * tests/test-binary-io.c: New file.
52575
52576 2007-01-14  Bruno Haible  <bruno@clisp.org>
52577
52578         * modules/array-oset-tests: New file.
52579         * tests/test-array_oset.c: New file.
52580
52581 2007-01-14  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/array-list-tests: New file.
52584         * tests/test-array_list.c: New file.
52585
52586 2007-01-14  Bruno Haible  <bruno@clisp.org>
52587
52588         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
52589         and make.
52590         Reported by Simon Josefsson in
52591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
52592
52593 2007-01-14  Bruno Haible  <bruno@clisp.org>
52594
52595         * modules/allocsa-tests: New file.
52596         * tests/test-allocsa.c: New file.
52597
52598 2007-01-14  Bruno Haible  <bruno@clisp.org>
52599
52600         * modules/fchdir (Depends-on): Add absolute-header.
52601         * modules/unistd (Depends-on): Likewise.
52602
52603 2006-12-30  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/fchdir: New file.
52606         * modules/unistd (Files): Add lib/unistd_.h.
52607         (Makefile.am): Generate unistd.h from unistd_.h.
52608         * lib/fchdir.c: New file.
52609         * lib/dirent_.h: New file.
52610         * lib/unistd_.h: New file.
52611         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
52612         * m4/fchdir.m4: New file.
52613         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
52614         (gl_HEADER_UNISTD): Invoke it.
52615         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
52616         function.
52617         * lib/backupfile.c (opendir, closedir): Undefine.
52618         * lib/chown.c (open, close): Undefine.
52619         * lib/clean-temp.c (open, close): Undefine.
52620         * lib/copy-file.c (open, close): Undefine.
52621         * lib/execute.c (open, close): Undefine.
52622         * lib/fsusage.c (open, close): Undefine.
52623         * lib/gc-gnulib.c (open, close): Undefine.
52624         * lib/getcwd.c (opendir, closedir): Undefine.
52625         * lib/glob.c (opendir, closedir): Undefine.
52626         * lib/javacomp.c (open, close): Undefine.
52627         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
52628         * lib/openat-proc.c (open, close): Undefine.
52629         * lib/pagealign_alloc.c (open, close): Undefine.
52630         * lib/pipe.c (open, close): Undefine.
52631         * lib/progreloc.c (open, close): Undefine.
52632         * lib/savedir.c (opendir, closedir): Undefine.
52633         * lib/utime.c (open, close): Undefine.
52634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
52635
52636 2007-01-10  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
52639
52640 2007-01-12  Eric Blake  <ebb9@byu.net>
52641
52642         Provide a robust <wchar.h>.  Further simplifications are now
52643         possible in other modules, but not included here.
52644         * modules/wchar: New module.
52645         * m4/wchar.m4: New file.
52646         * lib/wchar_.h: Likewise.
52647         * modules/mbchar (Depends-on): Depend on wchar, as the first use
52648         of the new module.
52649         * MODULES.html.sh (Extended multibyte and wide character utilities):
52650         New section.
52651
52652 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
52655         to a reasonable default for memory allocation.
52656         (xreadlink): Don't allocate a huge buffer, to work around a buggy
52657         file system that reports garbage st_size values for symlinks.
52658         Problem reported by Liyang Hu.
52659
52660 2007-01-11  Simon Josefsson  <simon@josefsson.org>
52661
52662         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
52663         Emacs .#* auto-save files).
52664
52665 2007-01-11  Bruno Haible  <bruno@clisp.org>
52666
52667         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
52668         directory.
52669
52670 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
52671
52672         Use @...@ consistently in lib/wctype_.h.
52673         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
52674         on it being set to 1 or 0.
52675         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
52676         go back to AC_SUBSTing it.
52677         * modules/wctype (Makefile.am): Undo previous change.
52678
52679 2007-01-10  Eric Blake  <ebb9@byu.net>
52680
52681         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
52682         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
52683         * modules/wctype (Makefile.am): Likewise.
52684         Reported by Chris McGuire.
52685
52686 2007-01-10  Jim Meyering  <jim@meyering.net>
52687
52688         fts.c: a small readability/maintainability improvement
52689         * lib/fts.c (fts_read): Make this code slightly more readable and
52690         maintainable by hoisting the "sp->fts_cur = p" assignments to
52691         immediately follow the statements that set P.  Derived from
52692         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
52693
52694 2007-01-10  Eric Blake  <ebb9@byu.net>
52695
52696         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
52697         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
52698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52699         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52700         Reported by Chris McGuire.
52701
52702 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52703
52704         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
52705         in sed script.
52706
52707 2007-01-09  Bruno Haible  <bruno@clisp.org>
52708
52709         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
52710         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
52711         variables.
52712         (func_module): Use them.
52713
52714 2007-01-09  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/unistr/base: New file.
52717         * lib/unistr.h: New file.
52718
52719         * modules/unistr/u8-to-u16: New file.
52720         * lib/unistr/u8-to-u16.c: New file.
52721
52722         * modules/unistr/u8-to-u32: New file.
52723         * lib/unistr/u8-to-u32.c: New file.
52724
52725         * modules/unistr/u16-to-u8: New file.
52726         * lib/unistr/u16-to-u8.c: New file.
52727
52728         * modules/unistr/u16-to-u32: New file.
52729         * lib/unistr/u16-to-u32.c: New file.
52730
52731         * modules/unistr/u32-to-u8: New file.
52732         * lib/unistr/u32-to-u8.c: New file.
52733
52734         * modules/unistr/u32-to-u16: New file.
52735         * lib/unistr/u32-to-u16.c: New file.
52736
52737         * modules/unistr/u8-check: New file.
52738         * modules/unistr/u16-check: New file.
52739         * modules/unistr/u32-check: New file.
52740         * lib/unistr/u8-check.c: New file.
52741         * lib/unistr/u16-check.c: New file.
52742         * lib/unistr/u32-check.c: New file.
52743
52744         * modules/unistr/u8-chr: New file.
52745         * modules/unistr/u16-chr: New file.
52746         * modules/unistr/u32-chr: New file.
52747         * lib/unistr/u8-chr.c: New file.
52748         * lib/unistr/u16-chr.c: New file.
52749         * lib/unistr/u32-chr.c: New file.
52750
52751         * modules/unistr/u8-cmp: New file.
52752         * modules/unistr/u16-cmp: New file.
52753         * modules/unistr/u32-cmp: New file.
52754         * lib/unistr/u8-cmp.c: New file.
52755         * lib/unistr/u16-cmp.c: New file.
52756         * lib/unistr/u32-cmp.c: New file.
52757
52758         * modules/unistr/u8-cpy: New file.
52759         * modules/unistr/u16-cpy: New file.
52760         * modules/unistr/u32-cpy: New file.
52761         * lib/unistr/u8-cpy.c: New file.
52762         * lib/unistr/u16-cpy.c: New file.
52763         * lib/unistr/u32-cpy.c: New file.
52764         * lib/unistr/u-cpy.h: New file.
52765
52766         * modules/unistr/u8-cpy-alloc: New file.
52767         * modules/unistr/u16-cpy-alloc: New file.
52768         * modules/unistr/u32-cpy-alloc: New file.
52769         * lib/unistr/u8-cpy-alloc.c: New file.
52770         * lib/unistr/u16-cpy-alloc.c: New file.
52771         * lib/unistr/u32-cpy-alloc.c: New file.
52772         * lib/unistr/u-cpy-alloc.h: New file.
52773
52774         * modules/unistr/u8-endswith: New file.
52775         * modules/unistr/u16-endswith: New file.
52776         * modules/unistr/u32-endswith: New file.
52777         * lib/unistr/u8-endswith.c: New file.
52778         * lib/unistr/u16-endswith.c: New file.
52779         * lib/unistr/u32-endswith.c: New file.
52780         * lib/unistr/u-endswith.h: New file.
52781
52782         * modules/unistr/u8-mblen: New file.
52783         * modules/unistr/u16-mblen: New file.
52784         * modules/unistr/u32-mblen: New file.
52785         * lib/unistr/u8-mblen.c: New file.
52786         * lib/unistr/u16-mblen.c: New file.
52787         * lib/unistr/u32-mblen.c: New file.
52788
52789         * modules/unistr/u8-mbtouc: New file.
52790         * modules/unistr/u16-mbtouc: New file.
52791         * modules/unistr/u32-mbtouc: New file.
52792         * lib/unistr/u8-mbtouc.c: New file.
52793         * lib/unistr/u16-mbtouc.c: New file.
52794         * lib/unistr/u32-mbtouc.c: New file.
52795
52796         * modules/unistr/u8-mbtouc-safe: New file.
52797         * modules/unistr/u16-mbtouc-safe: New file.
52798         * modules/unistr/u32-mbtouc-safe: New file.
52799         * lib/unistr/u8-mbtouc-safe.c: New file.
52800         * lib/unistr/u16-mbtouc-safe.c: New file.
52801         * lib/unistr/u32-mbtouc-safe.c: New file.
52802
52803         * modules/unistr/u8-move: New file.
52804         * modules/unistr/u16-move: New file.
52805         * modules/unistr/u32-move: New file.
52806         * lib/unistr/u8-move.c: New file.
52807         * lib/unistr/u16-move.c: New file.
52808         * lib/unistr/u32-move.c: New file.
52809         * lib/unistr/u-move.h: New file.
52810
52811         * modules/unistr/u8-next: New file.
52812         * modules/unistr/u16-next: New file.
52813         * modules/unistr/u32-next: New file.
52814         * lib/unistr/u8-next.c: New file.
52815         * lib/unistr/u16-next.c: New file.
52816         * lib/unistr/u32-next.c: New file.
52817
52818         * modules/unistr/u8-prev: New file.
52819         * modules/unistr/u16-prev: New file.
52820         * modules/unistr/u32-prev: New file.
52821         * lib/unistr/u8-prev.c: New file.
52822         * lib/unistr/u16-prev.c: New file.
52823         * lib/unistr/u32-prev.c: New file.
52824
52825         * modules/unistr/u8-set: New file.
52826         * modules/unistr/u16-set: New file.
52827         * modules/unistr/u32-set: New file.
52828         * lib/unistr/u8-set.c: New file.
52829         * lib/unistr/u16-set.c: New file.
52830         * lib/unistr/u32-set.c: New file.
52831         * lib/unistr/u-set.h: New file.
52832
52833         * modules/unistr/u8-startswith: New file.
52834         * modules/unistr/u16-startswith: New file.
52835         * modules/unistr/u32-startswith: New file.
52836         * lib/unistr/u8-startswith.c: New file.
52837         * lib/unistr/u16-startswith.c: New file.
52838         * lib/unistr/u32-startswith.c: New file.
52839         * lib/unistr/u-startswith.h: New file.
52840
52841         * modules/unistr/u8-stpcpy: New file.
52842         * modules/unistr/u16-stpcpy: New file.
52843         * modules/unistr/u32-stpcpy: New file.
52844         * lib/unistr/u8-stpcpy.c: New file.
52845         * lib/unistr/u16-stpcpy.c: New file.
52846         * lib/unistr/u32-stpcpy.c: New file.
52847         * lib/unistr/u-stpcpy.h: New file.
52848
52849         * modules/unistr/u8-stpncpy: New file.
52850         * modules/unistr/u16-stpncpy: New file.
52851         * modules/unistr/u32-stpncpy: New file.
52852         * lib/unistr/u8-stpncpy.c: New file.
52853         * lib/unistr/u16-stpncpy.c: New file.
52854         * lib/unistr/u32-stpncpy.c: New file.
52855         * lib/unistr/u-stpncpy.h: New file.
52856
52857         * modules/unistr/u8-strcat: New file.
52858         * modules/unistr/u16-strcat: New file.
52859         * modules/unistr/u32-strcat: New file.
52860         * lib/unistr/u8-strcat.c: New file.
52861         * lib/unistr/u16-strcat.c: New file.
52862         * lib/unistr/u32-strcat.c: New file.
52863         * lib/unistr/u-strcat.h: New file.
52864
52865         * modules/unistr/u8-strchr: New file.
52866         * modules/unistr/u16-strchr: New file.
52867         * modules/unistr/u32-strchr: New file.
52868         * lib/unistr/u8-strchr.c: New file.
52869         * lib/unistr/u16-strchr.c: New file.
52870         * lib/unistr/u32-strchr.c: New file.
52871
52872         * modules/unistr/u8-strcmp: New file.
52873         * modules/unistr/u16-strcmp: New file.
52874         * modules/unistr/u32-strcmp: New file.
52875         * lib/unistr/u8-strcmp.c: New file.
52876         * lib/unistr/u16-strcmp.c: New file.
52877         * lib/unistr/u32-strcmp.c: New file.
52878
52879         * modules/unistr/u8-strcpy: New file.
52880         * modules/unistr/u16-strcpy: New file.
52881         * modules/unistr/u32-strcpy: New file.
52882         * lib/unistr/u8-strcpy.c: New file.
52883         * lib/unistr/u16-strcpy.c: New file.
52884         * lib/unistr/u32-strcpy.c: New file.
52885         * lib/unistr/u-strcpy.h: New file.
52886
52887         * modules/unistr/u8-strcspn: New file.
52888         * modules/unistr/u16-strcspn: New file.
52889         * modules/unistr/u32-strcspn: New file.
52890         * lib/unistr/u8-strcspn.c: New file.
52891         * lib/unistr/u16-strcspn.c: New file.
52892         * lib/unistr/u32-strcspn.c: New file.
52893         * lib/unistr/u-strcspn.h: New file.
52894
52895         * modules/unistr/u8-strdup: New file.
52896         * modules/unistr/u16-strdup: New file.
52897         * modules/unistr/u32-strdup: New file.
52898         * lib/unistr/u8-strdup.c: New file.
52899         * lib/unistr/u16-strdup.c: New file.
52900         * lib/unistr/u32-strdup.c: New file.
52901         * lib/unistr/u-strdup.h: New file.
52902
52903         * modules/unistr/u8-strlen: New file.
52904         * modules/unistr/u16-strlen: New file.
52905         * modules/unistr/u32-strlen: New file.
52906         * lib/unistr/u8-strlen.c: New file.
52907         * lib/unistr/u16-strlen.c: New file.
52908         * lib/unistr/u32-strlen.c: New file.
52909         * lib/unistr/u-strlen.h: New file.
52910
52911         * modules/unistr/u8-strmblen: New file.
52912         * modules/unistr/u16-strmblen: New file.
52913         * modules/unistr/u32-strmblen: New file.
52914         * lib/unistr/u8-strmblen.c: New file.
52915         * lib/unistr/u16-strmblen.c: New file.
52916         * lib/unistr/u32-strmblen.c: New file.
52917
52918         * modules/unistr/u8-strmbtouc: New file.
52919         * modules/unistr/u16-strmbtouc: New file.
52920         * modules/unistr/u32-strmbtouc: New file.
52921         * lib/unistr/u8-strmbtouc.c: New file.
52922         * lib/unistr/u16-strmbtouc.c: New file.
52923         * lib/unistr/u32-strmbtouc.c: New file.
52924
52925         * modules/unistr/u8-strncat: New file.
52926         * modules/unistr/u16-strncat: New file.
52927         * modules/unistr/u32-strncat: New file.
52928         * lib/unistr/u8-strncat.c: New file.
52929         * lib/unistr/u16-strncat.c: New file.
52930         * lib/unistr/u32-strncat.c: New file.
52931         * lib/unistr/u-strncat.h: New file.
52932
52933         * modules/unistr/u8-strncmp: New file.
52934         * modules/unistr/u16-strncmp: New file.
52935         * modules/unistr/u32-strncmp: New file.
52936         * lib/unistr/u8-strncmp.c: New file.
52937         * lib/unistr/u16-strncmp.c: New file.
52938         * lib/unistr/u32-strncmp.c: New file.
52939
52940         * modules/unistr/u8-strncpy: New file.
52941         * modules/unistr/u16-strncpy: New file.
52942         * modules/unistr/u32-strncpy: New file.
52943         * lib/unistr/u8-strncpy.c: New file.
52944         * lib/unistr/u16-strncpy.c: New file.
52945         * lib/unistr/u32-strncpy.c: New file.
52946         * lib/unistr/u-strncpy.h: New file.
52947
52948         * modules/unistr/u8-strnlen: New file.
52949         * modules/unistr/u16-strnlen: New file.
52950         * modules/unistr/u32-strnlen: New file.
52951         * lib/unistr/u8-strnlen.c: New file.
52952         * lib/unistr/u16-strnlen.c: New file.
52953         * lib/unistr/u32-strnlen.c: New file.
52954         * lib/unistr/u-strnlen.h: New file.
52955
52956         * modules/unistr/u8-strpbrk: New file.
52957         * modules/unistr/u16-strpbrk: New file.
52958         * modules/unistr/u32-strpbrk: New file.
52959         * lib/unistr/u8-strpbrk.c: New file.
52960         * lib/unistr/u16-strpbrk.c: New file.
52961         * lib/unistr/u32-strpbrk.c: New file.
52962         * lib/unistr/u-strpbrk.h: New file.
52963
52964         * modules/unistr/u8-strrchr: New file.
52965         * modules/unistr/u16-strrchr: New file.
52966         * modules/unistr/u32-strrchr: New file.
52967         * lib/unistr/u8-strrchr.c: New file.
52968         * lib/unistr/u16-strrchr.c: New file.
52969         * lib/unistr/u32-strrchr.c: New file.
52970
52971         * modules/unistr/u8-strspn: New file.
52972         * modules/unistr/u16-strspn: New file.
52973         * modules/unistr/u32-strspn: New file.
52974         * lib/unistr/u8-strspn.c: New file.
52975         * lib/unistr/u16-strspn.c: New file.
52976         * lib/unistr/u32-strspn.c: New file.
52977         * lib/unistr/u-strspn.h: New file.
52978
52979         * modules/unistr/u8-strstr: New file.
52980         * modules/unistr/u16-strstr: New file.
52981         * modules/unistr/u32-strstr: New file.
52982         * lib/unistr/u8-strstr.c: New file.
52983         * lib/unistr/u16-strstr.c: New file.
52984         * lib/unistr/u32-strstr.c: New file.
52985         * lib/unistr/u-strstr.h: New file.
52986
52987         * modules/unistr/u8-strtok: New file.
52988         * modules/unistr/u16-strtok: New file.
52989         * modules/unistr/u32-strtok: New file.
52990         * lib/unistr/u8-strtok.c: New file.
52991         * lib/unistr/u16-strtok.c: New file.
52992         * lib/unistr/u32-strtok.c: New file.
52993         * lib/unistr/u-strtok.h: New file.
52994
52995         * modules/unistr/u8-uctomb: New file.
52996         * modules/unistr/u16-uctomb: New file.
52997         * modules/unistr/u32-uctomb: New file.
52998         * lib/unistr/u8-uctomb.c: New file.
52999         * lib/unistr/u16-uctomb.c: New file.
53000         * lib/unistr/u32-uctomb.c: New file.
53001
53002         * MODULES.html.sh (Unicode string functions): Add the new modules.
53003
53004 2007-01-08  Bruno Haible  <bruno@clisp.org>
53005
53006         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53007         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53008         subdirectories.
53009
53010 2007-01-08  Karl Berry  <karl@gnu.org>
53011
53012         * doc/error.texi: mention that main() fns must set program_name
53013         when progname is used.
53014
53015 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53018         WCTYPE_H is empty, for the benefit of builds from non-distclean
53019         directories.  Problem reported by Eric Blake in
53020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53021
53022 2007-01-08  Bruno Haible  <bruno@clisp.org>
53023
53024         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53025         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53026         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53027         PROVIDE_CANONICALIZE_FILENAME_MODE.
53028         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53029
53030 2007-01-08  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53033         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53034         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53035         * lib/fts.c: Likewise.
53036         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53037
53038 2006-12-25  Bruno Haible  <bruno@clisp.org>
53039
53040         * modules/utf8-ucs4-safe: New file.
53041         * lib/utf8-ucs4-safe.h: New file.
53042         * lib/unistr/utf8-ucs4-safe.c: New file.
53043
53044         * modules/utf16-ucs4-safe: New file.
53045         * lib/utf16-ucs4-safe.h: New file.
53046         * lib/unistr/utf16-ucs4-safe.c: New file.
53047
53048         * MODULES.html.sh (Unicode string functions): Add the new modules.
53049
53050 2007-01-08  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53053         (Depends-on): Add unitypes.
53054         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53055         (u8_mbtouc_aux): Move out to separate file.
53056         (u8_mbtouc): Use ucs4_t, uint8_t types.
53057         * lib/unistr/utf8-ucs4.c: New file.
53058
53059         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53060         (Depends-on): Add unitypes.
53061         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53062         (u16_mbtouc_aux): Move out to separate file.
53063         (u16_mbtouc): Use ucs4_t, uint16_t types.
53064         * lib/unistr/utf16-ucs4.c: New file.
53065
53066         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53067         (Depends-on): Add unitypes.
53068         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53069         (u8_uctomb_aux): Move out to separate file.
53070         (u8_uctomb): Use ucs4_t, uint8_t types.
53071         * lib/unistr/ucs4-utf8.c: New file.
53072
53073         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53074         (Depends-on): Add unitypes.
53075         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53076         (u16_uctomb_aux): Move out to separate file.
53077         (u16_uctomb): Use ucs4_t, uint16_t types.
53078         * lib/unistr/ucs4-utf16.c: New file.
53079
53080 2006-12-25  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/unitypes: New file.
53083         * lib/unitypes.h: New file.
53084         * MODULES.html.sh (func_all_modules): New section "Unicode string
53085         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53086         this section. Add unitypes.
53087
53088 2007-01-08  Bruno Haible  <bruno@clisp.org>
53089
53090         Avoid variable names that conflict with those from libtool.
53091         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53092         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53093         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53094         library_names_spec to acl_library_names_spec, hardcode_* to
53095         acl_hardcode_*.
53096         Reported by Ralf Wildenhues.
53097
53098 2007-01-08  Bruno Haible  <bruno@clisp.org>
53099
53100         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53101         definition.
53102         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53103         definition.
53104         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53105         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53106         definition.
53107         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53108         definition.
53109         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53110         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53111         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53112         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53113         definition.
53114         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53115         definition.
53116         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53117         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53118         GC_USE_<algorithm>.
53119         * lib/gc-libgcrypt.c: Likewise.
53120         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53121         * modules/gc-arctwo (configure.ac): Likewise.
53122         * modules/gc-des (configure.ac): Likewise.
53123         * modules/gc-hmac-md5 (configure.ac): Likewise.
53124         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53125         * modules/gc-md2 (configure.ac): Likewise.
53126         * modules/gc-md4 (configure.ac): Likewise.
53127         * modules/gc-md5 (configure.ac): Likewise.
53128         * modules/gc-random (configure.ac): Likewise.
53129         * modules/gc-rijndael (configure.ac): Likewise.
53130         * modules/gc-sha1 (configure.ac): Likewise.
53131
53132 2007-01-08  Bruno Haible  <bruno@clisp.org>
53133
53134         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53135         macro definition.
53136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53137         definition.
53138         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53139         definition.
53140         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53141         * modules/fcntl-safer (configure.ac): Likewise.
53142         * modules/fopen-safer (configure.ac): Likewise.
53143         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53144         GNULIB_FWRITEERROR macro definition.
53145
53146 2007-01-08  Bruno Haible  <bruno@clisp.org>
53147
53148         * m4/gnulib-common.m4: New file.
53149         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53150         (func_get_filelist): Add m4/gnulib-common.m4.
53151
53152 2007-01-08  Bruno Haible  <bruno@clisp.org>
53153
53154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53155         command.
53156
53157 2007-01-08  Jim Meyering  <jim@meyering.net>
53158
53159         Use a more robust test for a "can't happen" condition.
53160         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53161         narrowed the st_size value.  Presuming the "can't happen" condition
53162         is true, that narrowing could conceivably convert an invalid st_size
53163         value into a valid one.  Instead, use a change based on Matthew
53164         Woehlke's original patch.
53165
53166         Slight readability improvement: use an assert-like macro
53167         in place of literal "abort ()" uses.
53168         * lib/fts.c (fts_assert): Define.
53169         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53170         Use this macro instead of a bare 'abort'.
53171
53172 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53175         simply work around them.
53176         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53177         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53178         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53179         declaring.
53180         Don't bother to define as macros, since the standard doesn't require it.
53181         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53182         longer worry about IRIX 5.3.
53183         (HAVE_WCTYPE_CTMP_BUG): Remove.
53184
53185 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53186
53187         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53188         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53189         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53190         Problems reported by Georg Schwarz for IRIX 5.3.
53191
53192         * gnulib-tool (autoconf_minversion): Take the maximum version number
53193         found, not the minimum.  Problem reported by James Youngman.
53194
53195 2007-01-03  Karl Berry  <karl@gnu.org>
53196
53197         * doc/error.texi: new file, explaining interaction with progname.
53198         * doc/gnulib.texi: include it.  Update copyright.
53199
53200 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53201
53202         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53203         AC_CANONICAL_HOST, to improve autobuild outputs.
53204
53205 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53206             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53207
53208         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53209         sockets, server sockets, and other file descriptors.  Count errors
53210         to compute the return value.  Reorder the code a bit to be easier
53211         to follow.  Don't set event bits that were not requested (except
53212         POLLERR and POLLHUP).
53213
53214 2007-01-01  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53217
53218 2007-01-03  Jim Meyering  <jim@meyering.net>
53219
53220         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53221
53222 2007-01-02  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/settime (Include): Require timespec.h.
53225         * modules/nanosleep (Include): Likewise.
53226
53227 2007-01-01  Bruno Haible  <bruno@clisp.org>
53228
53229         * gnulib-tool (func_emit_copyright_notice): Bump year.
53230         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53231
53232 2007-01-01  Bruno Haible  <bruno@clisp.org>
53233
53234         Improve support for OpenBSD.
53235         * build-aux/config.rpath (libname_spec): Export.
53236         (library_names_spec): New variable. Export.
53237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53238         library_names_spec from the config.rpath output. Locate shared library
53239         through the name pattern in library_names_spec.
53240
53241 2007-01-01  Eric Blake  <ebb9@byu.net>
53242
53243         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
53244
53245 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
53248         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
53249         assume the C locale, and avoid an "eval" that could cause trouble.
53250         Problem with SORT reported by Bob Proulx.
53251
53252         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
53253         Define.  Trivial patch from Henning Nielsen Lund, originally
53254         sent to bug-grep@gnu.org today.
53255
53256 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
53259         struct stat.  Problem reported by Henning Nielsen Lund.
53260         * lib/acl.c: Include acl.h first, to check interface.  Don't
53261         bother to include sys/types.h and sys/stat.h again.
53262
53263 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         Import the following change from libc; problem reported by
53266         Sven Verdoolaege.
53267
53268         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
53269
53270         [BZ #1373]
53271         * lib/argp.h: Remove __NTH for __argp_usage inline function.
53272
53273 2006-12-28  Jim Meyering  <jim@meyering.net>
53274
53275         * build-aux/announce-gen: Do not assume that the package
53276         builds any of tar.gz, tar.bz2, and .xdelta files.
53277         Suggestion from Simon Josefsson.
53278
53279 2006-12-28  Simon Josefsson  <simon@josefsson.org>
53280
53281         * modules/announce-gen: New file.
53282
53283 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * lib/mbchar.h: Just include <wctype.h>; the wctype module
53286         handles its gotchas now.
53287         * lib/mbswidth.c: Likewise.
53288         * lib/wcwidth.h: Likewise.
53289         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
53290         and iswcntrl; the wctype module does this stuff now.
53291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53293         * modules/mbchar (Depends-on): Add wctype.
53294         * modules/mbswidth (Depends-on): Likewise.
53295         * modules/wcwidth (Depends-on): Likewise.
53296
53297 2006-12-27  Eric Blake  <ebb9@byu.net>
53298
53299         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
53300         module uses more than what <wctype.h> is required to provide.
53301
53302 2006-12-26  Eric Blake  <ebb9@byu.net>
53303
53304         * gnulib-tool (sed_extract_prog): Avoid space-tab.
53305
53306 2006-12-26  Eric Blake  <ebb9@byu.net>
53307
53308         * modules/absolute-header: New module.
53309         * modules/fcntl (Depends-on): Depend on it.
53310         * modules/inttypes (Depends-on): Likewise.
53311         * modules/stdint (Depends-on): Likewise.
53312         * modules/sys_stat (Depends-on): Likewise.
53313         * modules/wctype (Depends-on): Likewise.
53314         * MODULES.html.sh (Support for building libraries and
53315         executables): Document it.
53316
53317 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         * gnulib-tool (SED): Remove, undoing previous change.
53320         The problem was that it broke coreutils on Solaris, because
53321         "sed --posix" leaked into a makefile.
53322         (sed): New alias, if 'alias' and GNU sed.
53323
53324 2006-12-24  Jim Meyering  <jim@meyering.net>
53325
53326         Work around an fchownat bug in glibc-2.4:
53327         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
53328         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
53329         in spite of the -P option.
53330         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
53331         New macros.
53332         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
53333         * modules/openat (Files): Add lib/fchownat.c.
53334         * lib/openat.c (fchownat): Don't define here.  Move to...
53335         * lib/fchownat.c: ...this new file.
53336
53337 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         Fix bug reported by Bruno Haible in
53340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
53341         where quotearg.c didn't compile on Mac OS X 10.2 because it
53342         lacks <wchar.h> and wint_t.
53343         * lib/wctype_.h (__wctype_wint_t): New type.
53344         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
53345         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
53346         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
53347         Arg is now of type __wctype_wint_t, not wint_t.
53348         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
53349         substitute HAVE_WINT_T.
53350         * modules/wctype (Files): Add m4/wint_t.m4.
53351         (wctype.h): Substitute HAVE_WINT_T.
53352
53353 2006-12-23  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
53356
53357 2006-12-23  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
53360         S_ISLNK.
53361         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
53362         mingw.
53363
53364 2006-12-22  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/copy-file.c: Include acl.h.
53367         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
53368         Close the file descriptors only after being done with copy_acl.
53369         * modules/copy-file (Depends-on): Add acl.
53370
53371 2006-12-22  Bruno Haible  <bruno@clisp.org>
53372
53373         * gnulib-tool (SED): New variable.
53374         Use $SED instead of sed everywhere.
53375
53376 2006-12-22  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/no-c++: New file.
53379         * m4/no-c++.m4: New file.
53380         * MODULES.html.sh (Support for building libraries and executables):
53381         Add no-c++.
53382
53383 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53386         Include <limits.h>, and use its INT_MAX to rewrite the
53387         j loop so that it does not overflow 'int'.  Problem reported by
53388         Ralf Wildenhues in
53389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
53390         Play it safe by shifting left by 1 rather than multiplying by 2,
53391         as GCC is less likely to optimize this away when the value
53392         is signed (when it assumes overflow leads to undefined behavior).
53393         Also, don't assume time_t uses two's complement.
53394
53395 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53396
53397         * MODULES.html.sh: New module wctype.
53398         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
53399         * lib/fnmatch.c: Don't bother to include <wchar.h> before
53400         <wctype.h>, since the new wctype module should fix this.
53401         * lib/quotearg.c: Include <wctype.h> unconditionally, since
53402         the wctype module should arrange for it.
53403         * lib/regex_internal.h: Likewise.
53404         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
53405         since the wctype module should handle this now.
53406         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
53407         * modules/fnmatch (Depends-on): Add wctype.
53408         * modules/quotearg (Depends-on): Likewise.
53409         * modules/regex (Depends-on): Likewise.
53410
53411 2006-12-19  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/strdup.h [C++]: Wrap definitions in extern "C".
53414         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
53415
53416 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53417
53418         * modules/savewd (Depends-on): Fix dependency on fcntl.
53419
53420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
53423         conforms to C99, rather than relying on the user's environment
53424         setting of STDINT_H.
53425
53426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53427         and Eric Blake  <ebb9@byu.net>
53428
53429         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
53430         This is more consistent with the other defines here.
53431         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
53432         Port to z/OS.  Problem reported by Paul Gilmartin.
53433         Change local vars to use gl_ prefix rather than ac_.
53434         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
53435         with other defines.
53436         * modules/double-slash-root: New module.
53437         * modules/dirname (Files): Remove m4/double-slash-root.m4.
53438         (Depends-on): Add double-slash-root.
53439         * MODULES.html.sh (File system functions): Mention new module.
53440
53441 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
53442
53443         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
53444         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
53445         This is for the benefit of gzip, which doesn't do i18n.
53446
53447 2006-12-12  Jim Meyering  <jim@meyering.net>
53448
53449         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
53450         Reported by Andreas Schwab <schwab@suse.de>.
53451
53452 2006-12-12  Bruno Haible  <bruno@clisp.org>
53453
53454         Merge these changes.
53455         2006-09-05  Bruno Haible  <bruno@clisp.org>
53456         * lib/iconvme.c (iconv_string): No need to save and restore errno when
53457         iconv_alloc succeeded.
53458         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
53459         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
53460         test for " && dest " at the end - dest is always != NULL there. Call
53461         iconv with 4xNULL arguments initially, to reset the state. Call iconv
53462         with 2xNULL arguments, also to flush the state storage. Handle the
53463         IRIX iconv behaviour. Realloc the final result, to throw away unused
53464         memory.
53465
53466 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
53469         and fchmodat unconditionally, since glibc 2.4 has them.
53470         Problem reported by Arkadiusz Miskiewicz.
53471
53472 2006-12-10  Bruno Haible  <bruno@clisp.org>
53473
53474         * gnulib-tool (func_import): Show the include files only for those
53475         modules that are copied and specified.
53476         Reported by Karl Berry.
53477
53478 2006-12-08  Jim Meyering  <jim@meyering.net>
53479
53480         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
53481         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
53482
53483         * build-aux/announce-gen: Add two new options, both optional:
53484         --bootstrap-tools=TOOL_LIST
53485               a comma-separated list of tools, e.g.,
53486               autoconf,automake,bison,gnulib
53487         --gnulib-snapshot-date=DATE
53488               if gnulib is in the bootstrap tool list,
53489               then report this as the snapshot date.
53490               If not specified, use the current date/time.
53491               If you specify a date here, be sure it's UTC.
53492
53493 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53494
53495         * tests/test-argp-2.sh: Fix test to match actual output.
53496         (func_compare): Fix sed script to be portable.
53497
53498 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
53501         workaround for this case.  It is not autoconfigured now; offhand
53502         it's hard to see how to autoconfigure it.
53503
53504 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
53507         a directory that is about to be chowned.  Such a directory's
53508         initial file permissions should permit the owner only and this
53509         should not be changed until after the chown, since the group and
53510         other bits would be incorrect if they granted permission before
53511         the chown.
53512
53513         Fix porting problem for iswctype reported by Georg Schwarz in:
53514         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
53515         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
53516         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
53517         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
53518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53519
53520 2006-12-03  Jim Meyering  <jim@meyering.net>
53521
53522         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
53523         p->fts_statp may not yet be defined.
53524         (fts_read): Instead, set it in the caller, once p->fts_statp is
53525         sure to be defined, and corresponds to a top-level directory.
53526         This bug made du -x fail.  Here's the coreutils test case:
53527         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
53528         Reported by Mike Frysinger.
53529
53530 2006-12-01  Jim Meyering  <jim@meyering.net>
53531
53532         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
53533         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
53534         Reported by Simon Josefsson.
53535
53536 2006-11-30  Jim Meyering  <jim@meyering.net>
53537
53538         * m4/warning.m4: Use the all-permissive copyright notice
53539         recommended by RMS (rather than LGPL).
53540         * m4/vararrays.m4: Likewise.
53541         * m4/flexmember.m4: Likewise.
53542
53543 2006-11-29  Bruno Haible  <bruno@clisp.org>
53544
53545         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53546         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
53547         using +=.
53548         Reported by Simon Josefsson <simon@josefsson.org>.
53549
53550 2006-11-28  James Youngman <jay@gnu.org>
53551
53552         * README: Advise users that they might find the bug-gnulib@gnu.org
53553         and autotools-announce@gnu.org mailing lists useful.
53554
53555 2006-11-28  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/ptrdiff_max.m4: Remove file.
53558
53559 2006-11-21  Bruno Haible  <bruno@clisp.org>
53560
53561         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
53562         _AC_COMPUTE_INT.
53563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53564         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
53565         _AC_COMPUTE_INT.
53566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53567         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
53568         _AC_COMPUTE_INT.
53569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53570
53571 2006-11-28  Jim Meyering  <jim@meyering.net>
53572
53573         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
53574         warning from "gcc -Wshadow" about shadowing the builtin.
53575
53576 2006-11-27  Bruno Haible  <bruno@clisp.org>
53577
53578         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
53579         _AC_COMPUTE_INT.
53580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
53581
53582 2006-11-27  Bruno Haible  <bruno@clisp.org>
53583             Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
53586
53587 2006-11-26  Bruno Haible  <bruno@clisp.org>
53588
53589         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53590         noinst_LTLIBRARIES.
53591
53592 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53593             Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
53596         if compiling with "gcc -ansi".
53597
53598 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         Fix some incompatibilities with gcc -ansi -pedantic.
53601         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
53602         if compiling pedantically with GCC, unless it's C99 or later.
53603         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
53604         it mishandles gcc -ansi -pedantic as well.
53605         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
53606         if gcc -pedantic.
53607         * lib/regexec.c (check_node_accept_bytes): Don't use auto
53608         initializers for struct if -pedantic, unless it's C99 or later.
53609
53610 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
53611
53612         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
53613         Don't close an fd more than once. Identical atimes indicate
53614         success, not failure.
53615
53616 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
53617
53618         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
53619
53620 2006-11-23  Jim Meyering  <jim@meyering.net>
53621
53622         * build-aux/announce-gen: New file.  From coreutils.
53623
53624 2006-11-22  Jim Meyering  <jim@meyering.net>
53625
53626         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
53627         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
53628         (fts_read): Use a temporary to narrow the overused st_size member
53629         before using it in a switch statement.  Reported by Matthew Woehlke.
53630
53631         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
53632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
53633
53634 2006-11-20  Bruno Haible  <bruno@clisp.org>
53635
53636         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
53637         changequote instead of pairs of brackets.
53638         Reported by Andreas Schwab <schwab@suse.de>.
53639
53640 2006-11-21  Jim Meyering  <jim@meyering.net>
53641
53642         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
53643         so as to remain compatible with older compilers.
53644         Patch from Michael Deutschmann.
53645
53646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * MODULES.html.sh (File system functions): Add openat.
53649
53650         * lib/openat.h (rpl_fstatat): New macro, if
53651         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
53652         (fstatat): Define to rpl_fstatat under the same conditions,
53653         unless COMPILING_FSTATAT.
53654         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
53655         seems to have the bug.
53656         * lib/fstatat.c: New file.
53657         * modules/openat (Files): Add it.
53658
53659 2006-11-20  Bruno Haible  <bruno@clisp.org>
53660
53661         * Makefile: New file.
53662
53663 2006-11-20  Jim Meyering  <jim@meyering.net>
53664
53665         The beginnings of syntax-related checks for gnulib.
53666         * lib/Makefile: New file.
53667         * lib/t-idcache: New script.  Ensure that the two halves of
53668         idcache.c stay in sync.
53669
53670         * lib/idcache.c: Adjust comments in user- and group- portions to
53671         be more accurate, and to be consistent with one another.
53672
53673 2006-11-20  Jim Meyering  <jim@meyering.net>
53674
53675         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
53676         continue using the flexible array member (thus, this module performs
53677         half as many malloc calls), with the addition that...
53678         (getgroup, getuser): Consistently record a non-match via an empty
53679         "name" string, and map an empty string match to a NULL return value.
53680         * modules/idcache (Depends-on): Re-add flexmember.
53681
53682         * lib/idcache.c (getuser): Remove all uses of the register keyword.
53683         (getuidbyname, getgroup, getgidbyname): Likewise.
53684
53685         Use cleaner syntax: NULL rather than 0.
53686         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
53687
53688 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
53691         It mishandled the case where the group was missing.
53692         Problem reported by Greg Schafer.
53693         * modules/idcache: Likewise.
53694
53695 2006-11-18  Jim Meyering  <jim@meyering.net>
53696
53697         * check-module (%exempt_header): Add exception for some
53698         conditionally-included headers.
53699
53700         * modules/i-ring (Depends-on): Add verify.
53701         (License): Change to LGPL.
53702
53703 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53704
53705         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
53706         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
53707         and inttostr.h.  Use snprintf rather than uinttostr, so that
53708         LGPLed code doesn't depend on GPLed.
53709
53710 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         * modules/inline (License): Change from GPL to LGPL.
53713
53714 2006-11-17  Jim Meyering  <jim@meyering.net>
53715
53716         * modules/d-type (License): Switch to LGPL.
53717
53718 2006-11-15  Bruno Haible  <bruno@clisp.org>
53719
53720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
53721
53722 2006-11-15  Eric Blake  <ebb9@byu.net>
53723
53724         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
53725         the module dependency.
53726
53727 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53728             Bruno Haible  <bruno@clisp.org>
53729
53730         * gnulib-tool (func_create_testdir): Add license consistency check.
53731
53732 2006-11-15  Eric Blake  <ebb9@byu.net>
53733
53734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
53735         random "(cached)" in configure output.
53736
53737 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53738
53739         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
53740         test for conforming inttypes.h is both announced and cached.
53741
53742         * MODULES.html.sh (seen_modules, seen_files): New variables.
53743         (func_module): Rewrite to use a few less gnulib-tool and sed
53744         invocations.  Avoid a couple of quadratic algorithms for ...
53745         (missed_modules, missed_files): ... these, with ...
53746         (func_append, func_tmpdir): ... these new functions, from
53747         gnulib-tool.  Analogously, install traps for cleanup.
53748
53749         * tests/test-gc.c (main): Remove unused variables.
53750         * tests/test-read-file.c: Include stdlib.h, for 'free'.
53751
53752 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * modules/inttostr (License): Change to LGPL.
53755
53756 2006-11-14  Eric Blake  <ebb9@byu.net>
53757
53758         * modules/tempname (License): Change to LGPL.
53759
53760 2006-11-14  Eric Blake  <ebb9@byu.net>
53761
53762         * doc/functions.texi (Function Portability): *printf functions on
53763         Cygwin now understand all POSIX size specifiers.
53764
53765 2006-11-14  Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/c-ctype (License): Change to LGPL.
53768
53769 2006-11-12  Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53772         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
53773         for GNOME libraries, for which the include files are installed in
53774         subdirectories of $prefix/include.
53775
53776 2006-11-12  Bruno Haible  <bruno@clisp.org>
53777
53778         * m4/lib-link.m4: Require at least autoconf-2.54.
53779         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
53780         name to underscores for the --with option.
53781
53782 2006-11-13  Bruno Haible  <bruno@clisp.org>
53783
53784         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
53785         the tests directory.
53786         Reported by Ralf Wildenhues.
53787
53788 2006-11-13  Bruno Haible  <bruno@clisp.org>
53789
53790         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
53791         (func_emit_initmacro_end): Undo the override here.
53792         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
53793         Works around the famous automake error in coreutils.
53794
53795 2006-11-13  Eric Blake  <ebb9@byu.net>
53796
53797         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
53798         element, not its node.
53799
53800 2006-11-12  Bruno Haible  <bruno@clisp.org>
53801
53802         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
53803         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
53804
53805 2006-11-12  Bruno Haible  <bruno@clisp.org>
53806
53807         * gnulib-tool: New option --local-symlink.
53808         (func_usage): Document it.
53809         (lsymbolic): New variable.
53810         (func_import, func_create_testdir): If --symlink was not specified,
53811         test whether --local-symlink was specified and the file comes from
53812         the local_gnulib_dir.
53813
53814 2006-11-12  Bruno Haible  <bruno@clisp.org>
53815
53816         * gnulib-tool (func_ln): New function.
53817         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
53818
53819 2006-11-12  Bruno Haible  <bruno@clisp.org>
53820
53821         Finish support for source files in subdirectories.
53822         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
53823         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
53824         AUTOMAKE_OPTIONS.
53825         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
53826
53827 2006-11-12  Bruno Haible  <bruno@clisp.org>
53828
53829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53830         EXTRA_lib_SOURCES augmentation.
53831         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
53832
53833 2006-11-12  Jim Meyering  <jim@meyering.net>
53834
53835         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
53836         file descriptors.  This also averts a failure on systems with
53837         native openat support when a traversed directory lacks "x" access.
53838         * lib/fts_.h: Include "i-ring.h"
53839         (struct FTS) [fts_fd_ring]: New member.
53840         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
53841         (FCHDIR): Add parentheses.
53842         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
53843         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
53844         When descending, rather than simply closing the previous
53845         fts_cwd_fd value, push that file descriptor onto the ring.
53846         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
53847         (fts_open): Initialize the new fd_ring member.
53848         (fts_close): Clear the ring.
53849         (fts_safe_changedir): When possible, use our new fd_ring to skip
53850         the diropen and fstat and dev/ino comparison that would normally
53851         accompany a virtual `chdir ("..")'.
53852
53853         * modules/fts (Depends-on): Add i-ring.
53854         * modules/i-ring: New module.
53855         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
53856         * m4/i-ring.m4: New file.
53857
53858 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53859
53860         * gnulib-tool (func_create_testdir): Fix replacement of
53861         `build-aux' in configure.ac.  Run autotools in gltests
53862         subdirectory.
53863         (func_create_testdir, func_create_megatestdir, test): There is
53864         no need for '--force' in most autotool invocations in a new
53865         tree.  Actually fail the whole test if any of the tools, or the
53866         configure or make stages fail.
53867
53868         Sync from Automake.
53869         * build-aux/gnupload: Revert last change.  Add pointer to upload
53870         instructions of the GNU Maintenance Instructions.
53871         Suggestion by Karl Berry.
53872
53873 2006-11-10  Jim Meyering  <jim@meyering.net>
53874
53875         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
53876
53877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53878
53879         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
53880         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
53881         (bind_textdomain_codeset) [! ENABLE_NLS]:
53882         Evaluate all the arguments.  That way, callers get compatible behavior
53883         if the arguments have side effects.  Also, it avoids some GCC
53884         diagnostics in some cases; Joel E. Denny reported problems when Bison
53885         was configured with --enable-gcc-warnigs.
53886
53887 2006-11-10  Jim Meyering  <jim@meyering.net>
53888
53889         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
53890         relevant options in CFLAGS (like -O, -fno-inline) are taken into
53891         account.
53892
53893 2006-11-10  Jim Meyering  <jim@meyering.net>
53894
53895         * modules/inline: New file/module.
53896         * modules/xalloc (Files): Remove m4/inline.m4.
53897         (Depends-on): Add inline, instead.
53898         * modules/oset: Likewise.
53899         * modules/list: Likewise.
53900
53901 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53902
53903         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
53904         Problem reported by Matthew Woehlke.
53905
53906 2006-11-09  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/tempname.c (gen_tempname): Remove variant that invokes
53909         __gen_tempname.
53910         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
53911         __gen_tempname.
53912
53913 2006-11-08  Bruno Haible  <bruno@clisp.org>
53914
53915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
53916         to 'yes' instead of 'cross-compiling'.
53917
53918 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * lib/quotearg.h (quotearg_free): New decl.
53921         * lib/quotearg.c (quotearg_free): New function.
53922         (slot0, nslots, slotvec0, slotvec):
53923         Now file-scope so that quotearg_free can get at them.
53924
53925 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53926
53927         Sync from Automake.
53928         * build-aux/gnupload: Add missing 'gnu' to example URL.
53929         Report by Karl Berry.
53930
53931 2006-11-08  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
53934         Suggested by Paul Eggert.
53935
53936 2006-11-08  Jim Meyering  <jim@meyering.net>
53937
53938         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
53939         It's already included if !_LIBC.
53940         (fts_safe_changedir): Add a comment.
53941
53942 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
53945         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
53946         Matthew Woehlke.
53947
53948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
53949         definitions up, to avoid colliding with change below.
53950         (static_inline) [HAVE_INLINE]: New macro.
53951         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
53952         Provide extern decls when !HAVE_INLINE.  Do not define unless
53953         static_inline is defined, either by us or by xmalloc.c.  Use
53954         static_inline rather than static inline.
53955         (XCALLOC): Optimize sizeof(T) = 1 case.
53956         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
53957
53958 2006-11-07  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
53961         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
53962         AC_C_INLINE.
53963         * modules/xalloc (Files): Add m4/inline.m4.
53964
53965 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53966
53967         * README: Fix typo.
53968         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
53969         (Miscellanous Notes): ...from this.
53970
53971 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53974         Mention that offsetof should be used instead of sizeof.
53975         From Bruno Haible.
53976
53977 2006-11-07  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53980
53981 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53984         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53985         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53986         (gl_tree_add_before, gl_tree_add_after):
53987         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53988         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53989         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53991         (gl_linked_add_after, gl_linked_add_at): Likewise.
53992         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53994         (gl_tree_add_before, gl_tree_add_after): Likewise.
53995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53997         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53998
53999 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54000
54001         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54002
54003 2006-11-06  Bruno Haible  <bruno@clisp.org>
54004
54005         * m4/inline.m4: New file.
54006         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54007         * modules/list (Files): Add m4/inline.m4.
54008         * modules/oset (Files): Likewise.
54009
54010 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * lib/idcache.c: Include <stddef.h>, for offsetof.
54013         (struct userid.name): Change from char * to a flexible array member.
54014         All uses changed.
54015         * modules/idcache (Depends-on): Add flexmember.
54016
54017         * MODULES.html.sh (Core language properties): New module flexmember.
54018         * modules/flexmember, m4/flexmember.m4: New files.
54019
54020         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54021         inline functions that are identical with the old xnmalloc_inline,
54022         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54023         that we can avoid some unnecessary integer multiplications and
54024         divisions in the common case where the element size is known at
54025         compile time.
54026         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54027         needed.
54028         (xnboundedmalloc): Remove.
54029         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54030         arguments, for consistency with rest of this header.
54031         (xcharalloc): Rewrite using XNMALLOC.
54032         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54033         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54034         versions have been moved to lib/xalloc.h and renamed to be the
54035         non-*_inline versions.
54036         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54037         and xnrealloc functions, since those functions are now inline and
54038         now call us.
54039         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54040         renaming described above.
54041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54042         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54043         captures the dependency in AC_C_INLINE.
54044
54045         New module canonicalize-lgpl, proposed by Charles Wilson in
54046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54047         with a few small changes afterwards.
54048         * MODULES.html.sh (File system functions): New module
54049         canonicalize-lgpl.
54050         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54051         and canonicalize_file_name.
54052         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54053         * modules/canonicalize-lgpl: New files.
54054
54055 2006-11-05  Bruno Haible  <bruno@clisp.org>
54056
54057         * gnulib-tool (func_import, func_create_testdir): Create directories
54058         also for files in subdirectories of lib/.
54059
54060 2006-11-05  Bruno Haible  <bruno@clisp.org>
54061
54062         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54063         ANSI C compliant.
54064
54065 2006-11-03  Bruno Haible  <bruno@clisp.org>
54066
54067         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54068         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54069         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54070         (xnboundedmalloc): New inline function.
54071         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54072         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54073         xmalloc.
54074         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54075         xmalloc.
54076         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54077         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54078         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54079         xmalloc.
54080         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54081         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54082         xmalloc.
54083         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54084         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54085         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54086         xmalloc.
54087         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54088         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54090         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54091         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54092         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54093         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54094
54095 2006-11-03  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/c-ctype.h [C++]: Define functions without name mangling.
54098         * lib/fwriteerror.h [C++]: Likewise.
54099         * lib/gcd.h [C++]: Likewise.
54100         * lib/linebreak.h [C++]: Likewise.
54101
54102 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54103
54104         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54105         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54106         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54108         Check for functions and headers just once.
54109         Check for declaration of canonicalize_file_name.
54110         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54111
54112 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54113
54114         * gnulib-tool (func_import): Fix typo in actioncmd.
54115
54116 2006-11-02  Bruno Haible  <bruno@clisp.org>
54117
54118         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54119         newline sequence in the Makefile.am snippet as a space, like "make"
54120         does.
54121         Reported by Roger Persson <perrog@gmail.com>.
54122
54123 2006-11-01  Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54126         already declared in <string.h>.
54127         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54128
54129 2006-11-01  Bruno Haible  <bruno@clisp.org>
54130
54131         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54132         * lib/strcase.h: Include <string.h>.
54133         (strcasecmp): Define to rpl_strcasecmp here.
54134
54135 2006-11-01  Bruno Haible  <bruno@clisp.org>
54136
54137         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54138
54139 2006-11-01  Eric Blake  <ebb9@byu.net>
54140
54141         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54142
54143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54144
54145 2006-10-29  Bruno Haible  <bruno@clisp.org>
54146
54147         Make it compile in C++ mode.
54148         * lib/full-write.c (full_rw): Add a cast.
54149
54150 2006-11-01  Bruno Haible  <bruno@clisp.org>
54151
54152         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54153         be POSIX compliant.
54154         Reported by Roger Persson <perrog@gmail.com>.
54155
54156 2006-11-01  Eric Blake  <ebb9@byu.net>
54157
54158         * lib/getopt_.h: Fix comments.
54159
54160 2006-10-31  Eric Blake  <ebb9@byu.net>
54161
54162         * modules/tmpdir (Depends-on): Add sys_stat.
54163         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54164         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54165         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54166         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54167         tempname.
54168
54169 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         Avoid some C++ diagnostics reported by Bruno Haible.
54172         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54173         xmalloc.
54174         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54175         (struct slotvec): Move to top level.
54176         (quotearg_n_options): Rewrite to avoid xmalloc.
54177         * lib/xalloc.h (xcharalloc): New function.
54178         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54179         [defined __cplusplus]: Add function template that provides result
54180         type propagation.  This part of the change is from Bruno Haible.
54181
54182 2006-10-29  Bruno Haible  <bruno@clisp.org>
54183
54184         Make it compile in C++ mode.
54185         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54186         * lib/strnlen1.c (strnlen1): Cast memchr result.
54187         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54188         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54189         (create_temp_dir): Rename local variable 'template'.
54190         (compile_csharp_using_sscli): Add cast.
54191         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54192         * lib/findprog.c (find_in_path): Likewise.
54193         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54194         * lib/wait-process.c (register_slave_subprocess): Likewise.
54195
54196 2006-10-22  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/tsearch: New file.
54199         * lib/tsearch.h: New file.
54200         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54201         * m4/tsearch.m4: New file.
54202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54203
54204 2006-10-29  Eric Blake  <ebb9@byu.net>
54205
54206         * lib/arcfour.c: Assume config.h.
54207         * lib/arctwo.c: Likewise.
54208         * lib/base64.c: Likewise.
54209         * lib/check-version.c: Likewise.
54210         * lib/crc.c: Likewise.
54211         * lib/des.c: Likewise.
54212         * lib/gc-gnulib.c: Likewise.
54213         * lib/gc-libgcrypt.c: Likewise.
54214         * lib/gc-pbkdf2-sha1.c: Likewise.
54215         * lib/getaddrinfo.c: Likewise.
54216         * lib/getdelim.c: Likewise.
54217         * lib/getline.c: Likewise.
54218         * lib/hmac-md5.c: Likewise.
54219         * lib/hmac-sha1.c: Likewise.
54220         * lib/iconvme.c: Likewise.
54221         * lib/md2.c: Likewise.
54222         * lib/md4.c: Likewise.
54223         * lib/memxor.c: Likewise.
54224         * lib/read-file.c: Likewise.
54225         * lib/readline.c: Likewise.
54226         * lib/rijndael-alg-fst.c: Likewise.
54227         * lib/rijndael-api-fst.c: Likewise.
54228         * lib/xgetdomainname.c: Likewise.
54229
54230 2006-10-28  Eric Blake  <ebb9@byu.net>
54231
54232         * lib/xstrndup.c: Assume config.h.
54233
54234 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54237         stat-macros.h is now for our own macros, whereas stat_h is for
54238         macros in the <sys/stat.h> name space.
54239         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54240         (STAT_MACROS_H): Remove.
54241         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
54242         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
54243         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
54244         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
54245         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
54246         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
54247         Move these macros to ...
54248         * lib/stat_.h: here.  Don't include stat-macros.h.
54249         * lib/canonicalize.c: Don't include stat-macros.h.
54250         * lib/chown.c: Likewise.
54251         * lib/euidaccess.c: Likewise.
54252         * lib/file-type.c: Likewise.
54253         * lib/filemode.c: Likewise.
54254         * lib/glob.c: Likewise.
54255         * lib/isapipe.c: Likewise.
54256         * lib/lchown.c: Likewise.
54257         * lib/lstat.c: Likewise.
54258         * lib/mkdir-p.c: Likewise.
54259         * lib/rmdir.c: Likewise.
54260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
54261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
54262         unless mkdir isn't declared, to speed up 'configure'.
54263         Always create sys/stat.h, since it's unlikely any real sys/stat.h
54264         would define all the S_* symbols.
54265         * modules/canonicalize (Depends-on):
54266         Depend on sys_stat, not stat-macros.
54267         * modules/chown: Likewise.
54268         * modules/euidaccess: Likewise.
54269         * modules/filemode: Likewise.
54270         * modules/file-type: Likewise.
54271         * modules/glob: Likewise.
54272         * modules/isapipe: Likewise.
54273         * modules/lchown: Likewise.
54274         * modules/lstat: Likewise.
54275         * modules/mkancesdirs: Likewise.
54276         * modules/rmdir: Likewise.
54277         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
54278         * modules/modechange: Likewise.
54279         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
54280         (configure.ac): Remove gl_STAT_MACROS.
54281         * modules/sys_stat (Depends-on): Remove stat-macros.
54282
54283 2006-10-27  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/signed.m4: Remove file.
54286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
54287         invocation.
54288         * modules/vasnprintf (Files): Remove m4/signed.m4.
54289
54290 2006-10-27  Bruno Haible  <bruno@clisp.org>
54291
54292         Update to GNU gettext 0.16.
54293         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
54294         m4/inttypes-h.m4, m4/signed.m4.
54295         * m4/gettext.m4: Update to GNU gettext 0.16.
54296         * m4/intl.m4: New file, from GNU gettext.
54297         * m4/intldir.m4: New file, from GNU gettext.
54298         * config/srclist.txt: Update
54299
54300 2006-10-27  Eric Blake  <ebb9@byu.net>
54301
54302         * MODULES.html.sh: Document tempname.
54303         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
54304         dependencies.
54305         (Files): Move lib/tempname.c...
54306         * modules/tempname: ...to this new module.
54307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
54308         (gl_PREREQ_TEMPNAME): Move...
54309         * m4/tempname.m4: ...to this new file.
54310         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
54311         * modules/sys_stat (Depends-on): Add stat-macros.
54312         * lib/stat_.h (includes): Pick up stat macros.
54313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
54314         if stat macros are broken.
54315         * lib/tempname.c (includes): No need to include "stat-macros.h".
54316         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
54317         (direxists, __path_search) [!_LIBC]: Don't compile these in
54318         gnulib; the tmpdir module covers that.
54319         * lib/tempname.h: New file.
54320
54321 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
54322
54323         * COPYING: Explain how gnulib-tool converts licence headers.
54324         Almost all wording by Eric Blake.
54325
54326 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         * lib/mbchar.h (is_basic_table): Make read-only.
54329         * lib/mbchar.c (is_basic_table): Likewise.
54330         Reported by John Darrington.
54331
54332 2006-10-25  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/progname.h (set_program_name): Undefine before defining.
54335
54336 2006-10-25  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
54339         false for non-gcc C++ compilers.
54340         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54341
54342 2006-10-24  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
54345         iconv implementations like Irix iconv.
54346
54347 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54348
54349         * modules/vararrays: New file.
54350         * m4/vararrays.m4: New file, taken from diffutils.
54351         * MODULES.html.sh: New module vararrays.
54352
54353 2006-10-24  Karl Berry  <karl@gnu.org>
54354
54355         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
54356         Don't call GNU Unix.
54357
54358 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54359
54360         * users.txt: Add Libtool.
54361
54362         Sync from Libtool:
54363
54364         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54365
54366         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
54367         to gnulib's policy of including config.h unconditionally.
54368
54369 2006-10-24  Bruno Haible  <bruno@clisp.org>
54370
54371         * modules/wcwidth (Files): Add m4/wint_t.m4.
54372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
54373         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
54374
54375 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
54378         to pacify GCC with some -W flags enabled.  Problem reported by
54379         Bruno Haible.
54380
54381 2006-10-24  Jim Meyering  <jim@meyering.net>
54382
54383         * MODULES.html.sh: Remove uinttostr.  It's not a module.
54384         Reported by Karl Berry.
54385
54386 2006-10-23  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
54389
54390 2006-10-24  Bruno Haible  <bruno@clisp.org>
54391
54392         * lib/gl_list.h: Use C comment style, not C++ comment style.
54393
54394 2006-10-23  Eric Blake  <ebb9@byu.net>
54395
54396         * lib/getaddrinfo.c (includes): Add missing include.
54397
54398 2006-10-23  Bruno Haible  <bruno@clisp.org>
54399             Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         Ability to rename obstack_free.
54402         * lib/obstack.h (__obstack_free): New macro. Declare instead of
54403         obstack_free.
54404         (obstack_free): Invoke the __obstack_free macro.
54405         * lib/obstack.c (obstack_free): Use __obstack_free macro.
54406
54407 2006-10-23  Bruno Haible  <bruno@clisp.org>
54408             Paul Eggert  <eggert@cs.ucla.edu>
54409
54410         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
54411         __argc, __argv from the declaration. (They are defined as macros on
54412         mingw.)
54413
54414 2006-10-22  Bruno Haible  <bruno@clisp.org>
54415
54416         * doc/gnulib-intro.texi: New file.
54417         * doc/gnulib.texi: Include it.
54418
54419 2006-10-21  Bruno Haible  <bruno@clisp.org>
54420
54421         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
54422         "Introduction", "Miscellanous Notes", "Particular Modules".
54423
54424 2006-10-21  Bruno Haible  <bruno@clisp.org>
54425
54426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54427         Change mostlyclean-local rule to avoid sh syntax error from bash
54428         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
54429
54430 2006-10-23  Jim Meyering  <jim@meyering.net>
54431
54432         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
54433         in place of snprintf.
54434
54435         * modules/inttostr (Files): Add lib/uinttostr.c.
54436         * lib/uinttostr.c (inttostr): New file/function.
54437         * lib/inttostr.h (uinttostr): Declare.
54438         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
54439         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54440         Add uinttostr.
54441         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
54442
54443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * lib/canonicalize.c (ELOOP): Define if not already defined.
54446         Problem reported by Bruno Haible in
54447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
54448
54449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
54452         Problem reported by Perry Smith and Ville Laurikari.
54453
54454         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
54455         uses.
54456
54457 2006-10-19  Bruno Haible  <bruno@clisp.org>
54458
54459         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
54460         for mingw.
54461
54462 2006-10-19  Bruno Haible  <bruno@clisp.org>
54463
54464         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
54465         Needed for mingw.
54466
54467 2006-10-19  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
54470
54471 2006-10-19  Bruno Haible  <bruno@clisp.org>
54472
54473         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
54474         it.
54475
54476 2006-10-19  Bruno Haible  <bruno@clisp.org>
54477
54478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
54479         invocation.
54480
54481 2006-10-19  Bruno Haible  <bruno@clisp.org>
54482
54483         * gnulib-tool (func_create_testdir): Don't include ftruncate and
54484         mountlist by default.
54485
54486 2006-10-16  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/c-strstr.c: Include c-strstr.h.
54489
54490 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54491
54492         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
54493         in a slash.
54494
54495 2006-10-18  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/lock.h [C++]: Wrap definitions in extern "C".
54498
54499 2006-10-18  Bruno Haible  <bruno@clisp.org>
54500
54501         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
54502         gl_LIBOBJS list.
54503
54504 2006-10-18  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
54507
54508 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         * lib/xstrtol.h: Include gettext.h.
54511         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
54512         Problem reported by Eric Blake.
54513         * modules/xstrtol (Depends-on): Add gettext-h.
54514
54515 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
54516
54517         * lib/strftime.c (advance): New macro.
54518         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
54519         incomplete type, so you can't add 0 to it.  Problem and patch
54520         reported by Eelco Dolstra for dietlibc.
54521
54522 2006-10-18  Jim Meyering  <jim@meyering.net>
54523
54524         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
54525         type for a local, and rename it: s/up/user_proc/.
54526
54527 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54528
54529         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
54530         READ_UTMP_USER_PROCESS.
54531         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
54532
54533 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54534
54535         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
54536         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
54537
54538 2006-10-17  Eric Blake  <ebb9@byu.net>
54539
54540         * lib/sigprocmask.c (sigprocmask): Fix typo.
54541
54542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
54543
54544         * modules/clean-temp (Makefile.am): Don't add to make output...
54545         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
54546         config.h.
54547
54548 2006-10-17  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
54551         differently if DEFAULT_TEXT_DOMAIN is set.
54552
54553 2006-10-16  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/clean-temp.c: Include fwriteerror.h.
54556
54557 2006-10-16  Bruno Haible  <bruno@clisp.org>
54558
54559         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
54560
54561 2006-10-16  Bruno Haible  <bruno@clisp.org>
54562
54563         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
54564         * lib/sigprocmask.h: Include <sys/types.h>.
54565         (sigset_t): Use the system's definition if present.
54566
54567 2006-10-17  Eric Blake  <ebb9@byu.net>
54568
54569         * lib/xvasprintf.c (includes): Assume config.h.
54570         * lib/xasprintf.c (includes): Likewise.
54571
54572 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
54575         at least as wide as intmax_t.
54576
54577 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
54578
54579         (Imported from Automake.)
54580         * build-aux/gnupload: Update to version 1.1 of directive file.
54581
54582 2006-10-16  Eric Blake  <ebb9@byu.net>
54583
54584         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
54585         match Automake 1.10a.
54586
54587 2006-10-14  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/sigprocmask: New file.
54590         * lib/sigprocmask.h: New file.
54591         * lib/sigprocmask.c: New file.
54592         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
54593         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
54594         request sigprocmask.o.
54595         (gl_PREREQ_SIGPROCMASK): New macro.
54596         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
54597         (Depends-on): Add sigprocmask.
54598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
54599         gt_SIGNALBLOCKING. Test for 'raise' only once.
54600         * lib/fatal-signal.c: Include sigprocmask.h.
54601         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
54602         unblock_fatal_signals): Define always.
54603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54604         sigprocmask.
54605
54606 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54607
54608         Sync from Automake.
54609         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
54610         which incorrectly sets the mode of an existing destination
54611         directory.  In some cases the unpatched install-sh could do the
54612         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
54613         system.  We hope this is rare in practice, but it's clearly worth
54614         fixing.  Problem reported by Alex Unleashed in
54615         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
54616         Also, don't bother to check for -m bugs unless we're using -m;
54617         suggested by Stepan Kasal.
54618
54619 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54620
54621         Sync from Automake.
54622         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
54623         `-c' flag, so they appear at the same position as in %FASTDEP%
54624         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
54625         which ignores unknown options only after the first non-option.
54626         Bug report against M4 by Nelson H. F. Beebe.
54627
54628 2006-10-13  Jim Meyering  <jim@meyering.net>
54629
54630         Fix a bug in yesterday's change.
54631         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
54632         p->fts_statp->st_dev would be used uninitialized.
54633         Ensures that we always call fts_stat on the very first entry.
54634         Miklos Szeredi reported that find -xdev stopped working.
54635
54636 2006-10-12  Bruno Haible  <bruno@clisp.org>
54637
54638         * gnulib-tool (func_get_automake_snippet): Append an automatically
54639         computed EXTRA_DIST augmentation.
54640         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
54641         * modules/alloca-opt (Makefile.am): Likewise.
54642         * modules/allocsa (Makefile.am): Likewise.
54643         * modules/arcfour (Makefile.am): Likewise.
54644         * modules/arctwo (Makefile.am): Likewise.
54645         * modules/argmatch (Makefile.am): Likewise.
54646         * modules/argz (Makefile.am): Likewise.
54647         * modules/atexit (Makefile.am): Likewise.
54648         * modules/backupfile (Makefile.am): Likewise.
54649         * modules/byteswap (Makefile.am): Likewise.
54650         * modules/c-strtod (Makefile.am): Likewise.
54651         * modules/c-strtold (Makefile.am): Likewise.
54652         * modules/calloc (Makefile.am): Likewise.
54653         * modules/canon-host (Makefile.am): Likewise.
54654         * modules/canonicalize (Makefile.am): Likewise.
54655         * modules/chdir-long (Makefile.am): Likewise.
54656         * modules/chdir-safer (Makefile.am): Likewise.
54657         * modules/check-version (Makefile.am): Likewise.
54658         * modules/chown (Makefile.am): Likewise.
54659         * modules/cloexec (Makefile.am): Likewise.
54660         * modules/close-stream (Makefile.am): Likewise.
54661         * modules/closeout (Makefile.am): Likewise.
54662         * modules/crc (Makefile.am): Likewise.
54663         * modules/csharpexec (Makefile.am): Likewise.
54664         * modules/cycle-check (Makefile.am): Likewise.
54665         * modules/des (Makefile.am): Likewise.
54666         * modules/dev-ino (Makefile.am): Likewise.
54667         * modules/dirfd (Makefile.am): Likewise.
54668         * modules/dirname (Makefile.am): Likewise.
54669         * modules/dup2 (Makefile.am): Likewise.
54670         * modules/eealloc (Makefile.am): Likewise.
54671         * modules/error (Makefile.am): Likewise.
54672         * modules/euidaccess (Makefile.am): Likewise.
54673         * modules/exclude (Makefile.am): Likewise.
54674         * modules/exitfail (Makefile.am): Likewise.
54675         * modules/fcntl-safer (Makefile.am): Likewise.
54676         * modules/fcntl (Makefile.am): Likewise.
54677         * modules/file-type (Makefile.am): Likewise.
54678         * modules/fileblocks (Makefile.am): Likewise.
54679         * modules/filemode (Makefile.am): Likewise.
54680         * modules/filenamecat (Makefile.am): Likewise.
54681         * modules/fnmatch (Makefile.am): Likewise.
54682         * modules/fopen-safer (Makefile.am): Likewise.
54683         * modules/fpending (Makefile.am): Likewise.
54684         * modules/fprintftime (Makefile.am): Likewise.
54685         * modules/free (Makefile.am): Likewise.
54686         * modules/fsusage (Makefile.am): Likewise.
54687         * modules/ftruncate (Makefile.am): Likewise.
54688         * modules/fts (Makefile.am): Likewise.
54689         * modules/gc-arcfour (Makefile.am): Likewise.
54690         * modules/gc-des (Makefile.am): Likewise.
54691         * modules/gc-hmac-md5 (Makefile.am): Likewise.
54692         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
54693         * modules/gc-md4 (Makefile.am): Likewise.
54694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54695         * modules/gc-sha1 (Makefile.am): Likewise.
54696         * modules/gc (Makefile.am): Likewise.
54697         * modules/getaddrinfo (Makefile.am): Likewise.
54698         * modules/getcwd (Makefile.am): Likewise.
54699         * modules/getdelim (Makefile.am): Likewise.
54700         * modules/getdomainname (Makefile.am): Likewise.
54701         * modules/getgroups (Makefile.am): Likewise.
54702         * modules/gethostname (Makefile.am): Likewise.
54703         * modules/gethrxtime (Makefile.am): Likewise.
54704         * modules/getline (Makefile.am): Likewise.
54705         * modules/getloadavg (Makefile.am): Likewise.
54706         * modules/getlogin_r (Makefile.am): Likewise.
54707         * modules/getndelim2 (Makefile.am): Likewise.
54708         * modules/getopt (Makefile.am): Likewise.
54709         * modules/getpagesize (Makefile.am): Likewise.
54710         * modules/getpass-gnu (Makefile.am): Likewise.
54711         * modules/getpass (Makefile.am): Likewise.
54712         * modules/getsubopt (Makefile.am): Likewise.
54713         * modules/gettime (Makefile.am): Likewise.
54714         * modules/gettimeofday (Makefile.am): Likewise.
54715         * modules/getugroups (Makefile.am): Likewise.
54716         * modules/getusershell (Makefile.am): Likewise.
54717         * modules/glob (Makefile.am): Likewise.
54718         * modules/group-member (Makefile.am): Likewise.
54719         * modules/hard-locale (Makefile.am): Likewise.
54720         * modules/hash (Makefile.am): Likewise.
54721         * modules/hmac-md5 (Makefile.am): Likewise.
54722         * modules/hmac-sha1 (Makefile.am): Likewise.
54723         * modules/human (Makefile.am): Likewise.
54724         * modules/idcache (Makefile.am): Likewise.
54725         * modules/imaxabs (Makefile.am): Likewise.
54726         * modules/imaxdiv (Makefile.am): Likewise.
54727         * modules/inet_ntop (Makefile.am): Likewise.
54728         * modules/inet_pton (Makefile.am): Likewise.
54729         * modules/intprops (Makefile.am): Likewise.
54730         * modules/inttostr (Makefile.am): Likewise.
54731         * modules/inttypes (Makefile.am): Likewise.
54732         * modules/isapipe (Makefile.am): Likewise.
54733         * modules/javaversion (Makefile.am): Likewise.
54734         * modules/lchmod (Makefile.am): Likewise.
54735         * modules/lchown (Makefile.am): Likewise.
54736         * modules/localcharset (Makefile.am): Likewise.
54737         * modules/long-options (Makefile.am): Likewise.
54738         * modules/lstat (Makefile.am): Likewise.
54739         * modules/malloc (Makefile.am): Likewise.
54740         * modules/mathl (Makefile.am): Likewise.
54741         * modules/mbchar (Makefile.am): Likewise.
54742         * modules/md2 (Makefile.am): Likewise.
54743         * modules/md4 (Makefile.am): Likewise.
54744         * modules/md5 (Makefile.am): Likewise.
54745         * modules/memcasecmp (Makefile.am): Likewise.
54746         * modules/memchr (Makefile.am): Likewise.
54747         * modules/memcmp (Makefile.am): Likewise.
54748         * modules/memcoll (Makefile.am): Likewise.
54749         * modules/memcpy (Makefile.am): Likewise.
54750         * modules/memmem (Makefile.am): Likewise.
54751         * modules/memmove (Makefile.am): Likewise.
54752         * modules/mempcpy (Makefile.am): Likewise.
54753         * modules/memrchr (Makefile.am): Likewise.
54754         * modules/memset (Makefile.am): Likewise.
54755         * modules/memxor (Makefile.am): Likewise.
54756         * modules/mkancesdirs (Makefile.am): Likewise.
54757         * modules/mkdir-p (Makefile.am): Likewise.
54758         * modules/mkdir (Makefile.am): Likewise.
54759         * modules/mkdtemp (Makefile.am): Likewise.
54760         * modules/mkstemp (Makefile.am): Likewise.
54761         * modules/mktime (Makefile.am): Likewise.
54762         * modules/modechange (Makefile.am): Likewise.
54763         * modules/mountlist (Makefile.am): Likewise.
54764         * modules/nanosleep (Makefile.am): Likewise.
54765         * modules/obstack (Makefile.am): Likewise.
54766         * modules/openat (Makefile.am): Likewise.
54767         * modules/pagealign_alloc (Makefile.am): Likewise.
54768         * modules/pathmax (Makefile.am): Likewise.
54769         * modules/physmem (Makefile.am): Likewise.
54770         * modules/poll (Makefile.am): Likewise.
54771         * modules/posixtm (Makefile.am): Likewise.
54772         * modules/posixver (Makefile.am): Likewise.
54773         * modules/putenv (Makefile.am): Likewise.
54774         * modules/quote (Makefile.am): Likewise.
54775         * modules/quotearg (Makefile.am): Likewise.
54776         * modules/raise (Makefile.am): Likewise.
54777         * modules/read-file (Makefile.am): Likewise.
54778         * modules/readline (Makefile.am): Likewise.
54779         * modules/readlink (Makefile.am): Likewise.
54780         * modules/readtokens (Makefile.am): Likewise.
54781         * modules/readutmp (Makefile.am): Likewise.
54782         * modules/realloc (Makefile.am): Likewise.
54783         * modules/regex (Makefile.am): Likewise.
54784         * modules/rename-dest-slash (Makefile.am): Likewise.
54785         * modules/rename (Makefile.am): Likewise.
54786         * modules/rijndael (Makefile.am): Likewise.
54787         * modules/rmdir (Makefile.am): Likewise.
54788         * modules/rpmatch (Makefile.am): Likewise.
54789         * modules/safe-read (Makefile.am): Likewise.
54790         * modules/safe-write (Makefile.am): Likewise.
54791         * modules/same-inode (Makefile.am): Likewise.
54792         * modules/same (Makefile.am): Likewise.
54793         * modules/save-cwd (Makefile.am): Likewise.
54794         * modules/savedir (Makefile.am): Likewise.
54795         * modules/setenv (Makefile.am): Likewise.
54796         * modules/settime (Makefile.am): Likewise.
54797         * modules/sha1 (Makefile.am): Likewise.
54798         * modules/sig2str (Makefile.am): Likewise.
54799         * modules/snprintf (Makefile.am): Likewise.
54800         * modules/stat-macros (Makefile.am): Likewise.
54801         * modules/stat-time (Makefile.am): Likewise.
54802         * modules/stdbool (Makefile.am): Likewise.
54803         * modules/stdint (Makefile.am): Likewise.
54804         * modules/stdlib-safer (Makefile.am): Likewise.
54805         * modules/stpcpy (Makefile.am): Likewise.
54806         * modules/stpncpy (Makefile.am): Likewise.
54807         * modules/strcase (Makefile.am): Likewise.
54808         * modules/strcasestr (Makefile.am): Likewise.
54809         * modules/strchrnul (Makefile.am): Likewise.
54810         * modules/strcspn (Makefile.am): Likewise.
54811         * modules/strdup (Makefile.am): Likewise.
54812         * modules/strerror (Makefile.am): Likewise.
54813         * modules/strftime (Makefile.am): Likewise.
54814         * modules/strndup (Makefile.am): Likewise.
54815         * modules/strnlen (Makefile.am): Likewise.
54816         * modules/strpbrk (Makefile.am): Likewise.
54817         * modules/strsep (Makefile.am): Likewise.
54818         * modules/strstr (Makefile.am): Likewise.
54819         * modules/strtod (Makefile.am): Likewise.
54820         * modules/strtoimax (Makefile.am): Likewise.
54821         * modules/strtok_r (Makefile.am): Likewise.
54822         * modules/strtol (Makefile.am): Likewise.
54823         * modules/strtoll (Makefile.am): Likewise.
54824         * modules/strtoul (Makefile.am): Likewise.
54825         * modules/strtoull (Makefile.am): Likewise.
54826         * modules/strtoumax (Makefile.am): Likewise.
54827         * modules/strverscmp (Makefile.am): Likewise.
54828         * modules/sys_socket (Makefile.am): Likewise.
54829         * modules/sys_stat (Makefile.am): Likewise.
54830         * modules/sysexits (Makefile.am): Likewise.
54831         * modules/time_r (Makefile.am): Likewise.
54832         * modules/timegm (Makefile.am): Likewise.
54833         * modules/timespec (Makefile.am): Likewise.
54834         * modules/tmpfile-safer (Makefile.am): Likewise.
54835         * modules/trim (Makefile.am): Likewise.
54836         * modules/unistd-safer (Makefile.am): Likewise.
54837         * modules/unlinkdir (Makefile.am): Likewise.
54838         * modules/unlocked-io (Makefile.am): Likewise.
54839         * modules/userspec (Makefile.am): Likewise.
54840         * modules/utime (Makefile.am): Likewise.
54841         * modules/utimecmp (Makefile.am): Likewise.
54842         * modules/utimens (Makefile.am): Likewise.
54843         * modules/vasnprintf (Makefile.am): Likewise.
54844         * modules/vasprintf (Makefile.am): Likewise.
54845         * modules/vsnprintf (Makefile.am): Likewise.
54846         * modules/xalloc (Makefile.am): Likewise.
54847         * modules/xgetcwd (Makefile.am): Likewise.
54848         * modules/xnanosleep (Makefile.am): Likewise.
54849         * modules/xreadlink (Makefile.am): Likewise.
54850         * modules/xstrtod (Makefile.am): Likewise.
54851         * modules/xstrtol (Makefile.am): Likewise.
54852         * modules/xstrtold (Makefile.am): Likewise.
54853         * modules/yesno (Makefile.am): Likewise.
54854         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
54855
54856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * modules/error (Makefile.am): Distribute files through
54859         EXTRA_DIST, not lib_SOURCES.
54860
54861 2006-10-12  Eric Blake  <ebb9@byu.net>
54862
54863         * modules/error (Makefile.am): Distribute files in /lib.
54864         * modules/obstack (Makefile.am): Likewise.
54865
54866 2006-10-12  Bruno Haible  <bruno@clisp.org>
54867
54868         * modules/acl (Makefile.am): Distribute all files in lib/ through
54869         EXTRA_DIST.
54870         * modules/arcfour (Makefile.am): Likewise.
54871         * modules/arctwo (Makefile.am): Likewise.
54872         * modules/argmatch (Makefile.am): Likewise.
54873         * modules/argz (Makefile.am): Likewise.
54874         * modules/atexit (Makefile.am): Likewise.
54875         * modules/backupfile (Makefile.am): Likewise.
54876         * modules/c-strtod (Makefile.am): Likewise.
54877         * modules/c-strtold (Makefile.am): Likewise.
54878         * modules/calloc (Makefile.am): Likewise.
54879         * modules/canon-host (Makefile.am): Likewise.
54880         * modules/canonicalize (Makefile.am): Likewise.
54881         * modules/chdir-long (Makefile.am): Likewise.
54882         * modules/chdir-safer (Makefile.am): Likewise.
54883         * modules/check-version (Makefile.am): Likewise.
54884         * modules/chown (Makefile.am): Likewise.
54885         * modules/cloexec (Makefile.am): Likewise.
54886         * modules/close-stream (Makefile.am): Likewise.
54887         * modules/closeout (Makefile.am): Likewise.
54888         * modules/crc (Makefile.am): Likewise.
54889         * modules/cycle-check (Makefile.am): Likewise.
54890         * modules/des (Makefile.am): Likewise.
54891         * modules/dirfd (Makefile.am): Likewise.
54892         * modules/dirname (Makefile.am): Likewise.
54893         * modules/dup2 (Makefile.am): Likewise.
54894         * modules/euidaccess (Makefile.am): Likewise.
54895         * modules/exclude (Makefile.am): Likewise.
54896         * modules/exitfail (Makefile.am): Likewise.
54897         * modules/fcntl-safer (Makefile.am): Likewise.
54898         * modules/file-type (Makefile.am): Likewise.
54899         * modules/fileblocks (Makefile.am): Likewise.
54900         * modules/filemode (Makefile.am): Likewise.
54901         * modules/filenamecat (Makefile.am): Likewise.
54902         * modules/fnmatch (Makefile.am): Likewise.
54903         * modules/fopen-safer (Makefile.am): Likewise.
54904         * modules/fpending (Makefile.am): Likewise.
54905         * modules/fprintftime (Makefile.am): Likewise.
54906         * modules/free (Makefile.am): Likewise.
54907         * modules/fsusage (Makefile.am): Likewise.
54908         * modules/ftruncate (Makefile.am): Likewise.
54909         * modules/fts (Makefile.am): Likewise.
54910         * modules/gc (Makefile.am): Likewise.
54911         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
54912         * modules/getaddrinfo (Makefile.am): Likewise.
54913         * modules/getcwd (Makefile.am): Likewise.
54914         * modules/getdelim (Makefile.am): Likewise.
54915         * modules/getdomainname (Makefile.am): Likewise.
54916         * modules/getgroups (Makefile.am): Likewise.
54917         * modules/gethostname (Makefile.am): Likewise.
54918         * modules/gethrxtime (Makefile.am): Likewise.
54919         * modules/getline (Makefile.am): Likewise.
54920         * modules/getloadavg (Makefile.am): Likewise.
54921         * modules/getlogin_r (Makefile.am): Likewise.
54922         * modules/getopt (Makefile.am): Likewise.
54923         * modules/getpass (Makefile.am): Likewise.
54924         * modules/getpass-gnu (Makefile.am): Likewise.
54925         * modules/getsubopt (Makefile.am): Likewise.
54926         * modules/gettime (Makefile.am): Likewise.
54927         * modules/gettimeofday (Makefile.am): Likewise.
54928         * modules/getugroups (Makefile.am): Likewise.
54929         * modules/getusershell (Makefile.am): Likewise.
54930         * modules/glob (Makefile.am): Likewise.
54931         * modules/group-member (Makefile.am): Likewise.
54932         * modules/hard-locale (Makefile.am): Likewise.
54933         * modules/hash (Makefile.am): Likewise.
54934         * modules/hmac-md5 (Makefile.am): Likewise.
54935         * modules/hmac-sha1 (Makefile.am): Likewise.
54936         * modules/human (Makefile.am): Likewise.
54937         * modules/idcache (Makefile.am): Likewise.
54938         * modules/imaxabs (Makefile.am): Likewise.
54939         * modules/imaxdiv (Makefile.am): Likewise.
54940         * modules/inet_ntop (Makefile.am): Likewise.
54941         * modules/inet_pton (Makefile.am): Likewise.
54942         * modules/inttostr (Makefile.am): Likewise.
54943         * modules/isapipe (Makefile.am): Likewise.
54944         * modules/lchown (Makefile.am): Likewise.
54945         * modules/long-options (Makefile.am): Likewise.
54946         * modules/lstat (Makefile.am): Likewise.
54947         * modules/malloc (Makefile.am): Likewise.
54948         * modules/mathl (Makefile.am): Likewise.
54949         * modules/mbchar (Makefile.am): Likewise.
54950         * modules/md2 (Makefile.am): Likewise.
54951         * modules/md4 (Makefile.am): Likewise.
54952         * modules/md5 (Makefile.am): Likewise.
54953         * modules/memcasecmp (Makefile.am): Likewise.
54954         * modules/memchr (Makefile.am): Likewise.
54955         * modules/memcmp (Makefile.am): Likewise.
54956         * modules/memcoll (Makefile.am): Likewise.
54957         * modules/memcpy (Makefile.am): Likewise.
54958         * modules/memmem (Makefile.am): Likewise.
54959         * modules/memmove (Makefile.am): Likewise.
54960         * modules/mempcpy (Makefile.am): Likewise.
54961         * modules/memrchr (Makefile.am): Likewise.
54962         * modules/memset (Makefile.am): Likewise.
54963         * modules/memxor (Makefile.am): Likewise.
54964         * modules/mkancesdirs (Makefile.am): Likewise.
54965         * modules/mkdir (Makefile.am): Likewise.
54966         * modules/mkdir-p (Makefile.am): Likewise.
54967         * modules/mkdtemp (Makefile.am): Likewise.
54968         * modules/mkstemp (Makefile.am): Likewise.
54969         * modules/mktime (Makefile.am): Likewise.
54970         * modules/modechange (Makefile.am): Likewise.
54971         * modules/mountlist (Makefile.am): Likewise.
54972         * modules/nanosleep (Makefile.am): Likewise.
54973         * modules/openat (Makefile.am): Likewise.
54974         * modules/pagealign_alloc (Makefile.am): Likewise.
54975         * modules/physmem (Makefile.am): Likewise.
54976         * modules/poll (Makefile.am): Likewise.
54977         * modules/posixtm (Makefile.am): Likewise.
54978         * modules/posixver (Makefile.am): Likewise.
54979         * modules/putenv (Makefile.am): Likewise.
54980         * modules/quote (Makefile.am): Likewise.
54981         * modules/quotearg (Makefile.am): Likewise.
54982         * modules/raise (Makefile.am): Likewise.
54983         * modules/read-file (Makefile.am): Likewise.
54984         * modules/readline (Makefile.am): Likewise.
54985         * modules/readlink (Makefile.am): Likewise.
54986         * modules/readtokens (Makefile.am): Likewise.
54987         * modules/readutmp (Makefile.am): Likewise.
54988         * modules/realloc (Makefile.am): Likewise.
54989         * modules/regex (Makefile.am): Likewise.
54990         * modules/rename (Makefile.am): Likewise.
54991         * modules/rename-dest-slash (Makefile.am): Likewise.
54992         * modules/rijndael (Makefile.am): Likewise.
54993         * modules/rmdir (Makefile.am): Likewise.
54994         * modules/rpmatch (Makefile.am): Likewise.
54995         * modules/safe-read (Makefile.am): Likewise.
54996         * modules/safe-write (Makefile.am): Likewise.
54997         * modules/same (Makefile.am): Likewise.
54998         * modules/save-cwd (Makefile.am): Likewise.
54999         * modules/savedir (Makefile.am): Likewise.
55000         * modules/setenv (Makefile.am): Likewise.
55001         * modules/settime (Makefile.am): Likewise.
55002         * modules/sha1 (Makefile.am): Likewise.
55003         * modules/sig2str (Makefile.am): Likewise.
55004         * modules/snprintf (Makefile.am): Likewise.
55005         * modules/stdlib-safer (Makefile.am): Likewise.
55006         * modules/stpcpy (Makefile.am): Likewise.
55007         * modules/stpncpy (Makefile.am): Likewise.
55008         * modules/strcase (Makefile.am): Likewise.
55009         * modules/strcasestr (Makefile.am): Likewise.
55010         * modules/strchrnul (Makefile.am): Likewise.
55011         * modules/strcspn (Makefile.am): Likewise.
55012         * modules/strdup (Makefile.am): Likewise.
55013         * modules/strerror (Makefile.am): Likewise.
55014         * modules/strftime (Makefile.am): Likewise.
55015         * modules/strndup (Makefile.am): Likewise.
55016         * modules/strnlen (Makefile.am): Likewise.
55017         * modules/strpbrk (Makefile.am): Likewise.
55018         * modules/strsep (Makefile.am): Likewise.
55019         * modules/strstr (Makefile.am): Likewise.
55020         * modules/strtod (Makefile.am): Likewise.
55021         * modules/strtoimax (Makefile.am): Likewise.
55022         * modules/strtok_r (Makefile.am): Likewise.
55023         * modules/strtol (Makefile.am): Likewise.
55024         * modules/strtoll (Makefile.am): Likewise.
55025         * modules/strtoul (Makefile.am): Likewise.
55026         * modules/strtoull (Makefile.am): Likewise.
55027         * modules/strtoumax (Makefile.am): Likewise.
55028         * modules/strverscmp (Makefile.am): Likewise.
55029         * modules/time_r (Makefile.am): Likewise.
55030         * modules/timegm (Makefile.am): Likewise.
55031         * modules/tmpfile-safer (Makefile.am): Likewise.
55032         * modules/unistd-safer (Makefile.am): Likewise.
55033         * modules/unlinkdir (Makefile.am): Likewise.
55034         * modules/userspec (Makefile.am): Likewise.
55035         * modules/utime (Makefile.am): Likewise.
55036         * modules/utimecmp (Makefile.am): Likewise.
55037         * modules/utimens (Makefile.am): Likewise.
55038         * modules/vasnprintf (Makefile.am): Likewise.
55039         * modules/vasprintf (Makefile.am): Likewise.
55040         * modules/vsnprintf (Makefile.am): Likewise.
55041         * modules/xalloc (Makefile.am): Likewise.
55042         * modules/xgetcwd (Makefile.am): Likewise.
55043         * modules/xnanosleep (Makefile.am): Likewise.
55044         * modules/xreadlink (Makefile.am): Likewise.
55045         * modules/xstrtod (Makefile.am): Likewise.
55046         * modules/xstrtol (Makefile.am): Likewise.
55047         * modules/xstrtold (Makefile.am): Likewise.
55048         * modules/yesno (Makefile.am): Likewise.
55049
55050 2006-10-12  Jim Meyering  <jim@meyering.net>
55051
55052         * m4/getloadavg.m4: Revert the change below.
55053
55054         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55055         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55056         fail with a symlink, which is what coreutils' ./bootstrap now
55057         creates by default.
55058
55059 2006-10-12  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55062         mingw.
55063         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55064         MSVC and mingw explicitly.
55065
55066 2006-10-11  Simon Josefsson  <jas@extundo.com>
55067             Bruno Haible  <bruno@clisp.org>
55068
55069         Add support for multiple gnulib-tool invocations in the scope of a
55070         single configure.ac file.
55071         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55072         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55073         with the same contents as the _LIBADD variable.
55074         (func_emit_initmacro_start, func_emit_initmacro_end,
55075         func_emit_initmacro_done): New functions.
55076         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55077         gl_LIBOBJS and gl_LTLIBOBJS.
55078
55079 2006-10-11  Bruno Haible  <bruno@clisp.org>
55080
55081         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55082         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55083         autoreconf. Instead, invoke autopoint explicitly but move back the
55084         *.m4 files from gnulib.
55085
55086 2006-10-11  Bruno Haible  <bruno@clisp.org>
55087
55088         * gnulib-tool (func_usage): Make module names after --create-testdir
55089         optional.
55090         (func_create_testdir): If no module was specified, use nearly all
55091         modules.
55092
55093 2006-10-12  Jim Meyering  <jim@meyering.net>
55094
55095         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55096         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55097         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55098         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55099         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55100         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55101         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55102         (fts_set_stat_required): New function.
55103         (fts_open): Defer the calls to fts_stat, if possible or requested.
55104         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55105         into fts_stat itself.
55106         (fts_read): Perform any required (deferred) fts_stat call.
55107         (fts_build): Likewise, for the directory we're about to open and read.
55108         In the readdir loop, carefully decide whether each entry will require
55109         an eventual call to fts_stat, using dirent.d_type info if available.
55110         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55111         a command line argument into this function.  Update all callers.
55112         Map a return value of FTS_DOT to FTS_D for a command line argument.
55113         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55114         Thanks to Miklos Szeredi for his tenacity and for the initial
55115         bug report about "find" failing on a FUSE-based file system.
55116
55117         * lib/fts.c (fts_open): Use consistent indentation.
55118
55119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55122         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55123         reported by Jim Meyering.  All uses of cache variables renamed
55124         to match Autoconf's.
55125         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55126         the other one.
55127
55128         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55129         Fix misspelling in diagnostic.
55130
55131 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55134         defined.  Problem reported by Matthew Woehlke.
55135
55136         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55137         Add support for Tandem NonStop R series.
55138         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55139         Use new macro.
55140
55141         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55142         (has_trailing_slash): Omit size arg; all callers changed.
55143         Omit 'inline', since it doesn't help performance and we'd
55144         need to configure it.
55145         Don't count //, ///, etc. as having a trailing slash.
55146         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55147         (rpl_rename_dest_slash): On failure, use rename's errno rather
55148         than (in some cases) an incorrect or junk errno.
55149         Simplify code by removing need to compute length; this does
55150         cause it to make two passes instead of one over the file name,
55151         but it's worth it.
55152
55153         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55154         change, since Autoconf's version may no longer be appropriate now
55155         that we are using CVS Autoconf's version.  Add support for Tandem.
55156
55157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55158             Bruno Haible  <bruno@clisp.org>
55159
55160         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55161         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55162         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55163         gl_AC_TYPE_LONG_LONG.
55164
55165         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55166         instead of HAVE_LONG_LONG.
55167         * lib/printf-args.c (printf_fetchargs): Likewise.
55168         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55169         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55171         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55172         gl_AC_TYPE_LONG_LONG.
55173
55174 2006-10-11  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/longlong.m4: Add comments.
55177         * m4/ulonglong.m4: Likewise.
55178
55179 2006-10-10  Bruno Haible  <bruno@clisp.org>
55180
55181         Make it possible to #define stpcpy, strdup to aliases.
55182         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55183         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55184
55185 2006-10-10  Bruno Haible  <bruno@clisp.org>
55186
55187         Make it possible to #define gcd to an alias.
55188         * lib/gcd.c: Include config.h.
55189
55190 2006-10-10  Bruno Haible  <bruno@clisp.org>
55191
55192         Make it possible to #define c_isascii to an alias.
55193         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55194         defined. Undefine the macros before defining them, to avoid gcc
55195         warnings.
55196         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55197         define NO_C_CTYPE_MACROS early.
55198
55199 2006-10-10  Bruno Haible  <bruno@clisp.org>
55200
55201         Make it possible to #define set_program_name to an alias.
55202         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55203         ENABLE_RELOCATABLE early.
55204
55205 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55208         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55209         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55210         More generally, don't assume that 64-bit signed int is available
55211         if unsigned int is, and vice versa.
55212         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55213         unsigned symbols, not on their signed counterparts.
55214         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55215         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55216         (UINT64_C, UINTMAX_C):
55217         Likewise.
55218         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55219         unsigned counterparts.
55220         (Have_long_long, Unsigned): New macros.
55221         (Int): Renamed from INT.
55222         (strtoimax): Use the new macros.
55223         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55224         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55225         * modules/inttypes (inttypes.h): Substitute
55226         HAVE_UNSIGNED_LONG_LONG_INT.
55227         * modules/stdint (stdint.h): Likewise.
55228         (Files): Add m4/ulonglong.m4.
55229
55230 2006-10-10  Bruno Haible  <bruno@clisp.org>
55231
55232         Fix a gcc -Wshadow warning.
55233         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55234         to 'bucket'.
55235         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55236         gl_linked_indexof_from_to): Likewise.
55237         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55238         Likewise.
55239         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55240         Likewise.
55241         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
55242         Reported by Eric Blake.
55243
55244 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
55247         for NetBSD.  Problem reported by Bruno Haible.
55248
55249 2006-10-09  Jim Meyering  <jim@meyering.net>
55250
55251         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
55252         Patch from Bruno Haible.
55253
55254 2006-10-09  Jim Meyering  <jim@meyering.net>
55255
55256         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
55257         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
55258         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
55259
55260 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         Don't include <config.h> twice; this doesn't work in some cases,
55263         e.g., when config.h has "#define intmax_t long long int" and
55264         we include <config.h>, <inttypes.h>, <config.h> in that order.
55265         Problem reported by Matthew Woehlke in:
55266         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
55267         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
55268         * lib/fts-cycle.c: Don't include config.h.
55269         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
55270         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
55271         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
55272         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
55273         inttypes.h.
55274         * lib/xstrtoumax.c: Likewise.
55275         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
55276         __strtol and the like, so that this module is more like its siblings.
55277         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
55278         Remove; no longer needed now that we assume gnulib inttypes.h.
55279
55280 2006-10-08  Bruno Haible  <bruno@clisp.org>
55281
55282         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
55283         option.
55284
55285 2006-10-07  Jim Meyering  <jim@meyering.net>
55286
55287         * modules/inttypes (inttypes.h): Revert what seems to have been
55288         an inadvertent part of today's change: use "|", not "/" in the
55289         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
55290
55291 2006-10-07  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/sublist: New file.
55294
55295 2006-10-07  Bruno Haible  <bruno@clisp.org>
55296
55297         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
55298         * modules/argz (argz.h): Likewise.
55299         * modules/arpa_inet (arpa/inet.h): Likewise.
55300         * modules/byteswap (byteswap.h): Likewise.
55301         * modules/configmake (configmake.h): Likewise.
55302         * modules/fcntl (fcntl.h): Likewise.
55303         * modules/fnmatch (fnmatch.h): Likewise.
55304         * modules/getopt (getopt.h): Likewise.
55305         * modules/glob (glob.h): Likewise.
55306         * modules/inttypes (inttypes.h): Likewise.
55307         * modules/netinet_in (netinet/in.h): Likewise.
55308         * modules/poll (poll.h): Likewise.
55309         * modules/stdbool (stdbool.h): Likewise.
55310         * modules/stdint (stdint.h): Likewise.
55311         * modules/sys_select (sys/select.h): Likewise.
55312         * modules/sys_socket (sys/socket.h): Likewise.
55313         * modules/sys_stat (sys/stat.h): Likewise.
55314         * modules/sysexits (sysexits.h): Likewise.
55315         * modules/unistd (unistd.h): Likewise.
55316         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55317         Add a "DO NOT EDIT" comment to the generated file.
55318         (func_import): Likewise for gnulib-comp.m4.
55319
55320 2006-10-07  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/gl_sublist.h: New file.
55323         * lib/gl_sublist.c: New file.
55324
55325 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55326
55327         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
55328         name (relative to the original working directory) and the file
55329         name component (relative to the temporary working directory).  All
55330         callers changed.
55331         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
55332         * lib/mkdir-p.c (make_dir_parents): Likewise.
55333         * lib/mkdir-p.h (make_dir_parents): Likewise.
55334
55335 2006-10-06  Eric Blake  <ebb9@byu.net>
55336
55337         Define several macros for use by the clean-temp module.
55338         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
55339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
55340         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
55341
55342         * lib/clean-temp.h (close_stream_temp): New declaration.
55343         * lib/clean-temp.c (includes): Pull in headers according to what
55344         other modules are in use.
55345         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
55346
55347 2006-10-06  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
55350         instead of fopen, fwriteerror.
55351
55352 2006-10-06  Bruno Haible  <bruno@clisp.org>
55353
55354         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
55355         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
55356         int.
55357         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
55358         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
55359         Return an error indicator.
55360         Suggested by Eric Blake.
55361
55362 2006-10-06  Bruno Haible  <bruno@clisp.org>
55363
55364         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
55365         Reported by Eric Blake.
55366
55367 2006-10-06  Bruno Haible  <bruno@clisp.org>
55368
55369         * modules/closeout (Description): Mention stderr too.
55370
55371 2006-10-06  Bruno Haible  <bruno@clisp.org>
55372         and Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * lib/closeout.c (close_stdout): Also close stderr.
55375         * lib/closeout.h: Update comment.
55376
55377 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
55380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
55381         * lib/dirchownmod.c: Include lchown.h.
55382         * lib/lchown.c: Don't include files that lchown.h now includes.
55383         Don't declare chown, since lchown.h now does that.
55384         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
55385         (lchown): Define to rpl_chown if lchown is declared but
55386         does not exist.  Declare using a prototype if lchown is not
55387         declared.  Add a copyright notice.
55388         * lib/mkstemp.h: Include <unistd.h>.
55389         * lib/openat.c: Include lchown.h.
55390
55391         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
55392         we now test for that separately.
55393         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
55394         rather than O_NOFOLLOW, when testing whether it's possible to
55395         avoid a race condition reliably.
55396         * lib/savewd.c (savewd_chdir): Likewise.
55397
55398         Remove macros that are no longer needed now that stdint.h is
55399         reliable.
55400         * lib/fsusage.c (UINTMAX_MAX): Remove.
55401         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
55402         * lib/utimecmp.c (SIZE_MAX): Remove.
55403
55404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
55405
55406         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
55407         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
55408         O_NOATIME works.
55409
55410 2006-10-05  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/gl_list.h (gl_sortedlist_search_from_to,
55413         gl_sortedlist_indexof_from_to): New declarations.
55414         (gl_list_implementation): New fields sortedlist_search_from_to,
55415         sortedlist_indexof_from_to.
55416         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
55417         inline functions.
55418         * lib/gl_list.c (gl_sortedlist_search_from_to,
55419         gl_sortedlist_indexof_from_to): New functions.
55420         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
55421         function.
55422         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
55423         (gl_array_sortedlist_search_from_to): New function.
55424         (gl_array_list_implementation): Update.
55425         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
55426         function.
55427         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
55428         (gl_carray_sortedlist_search_from_to): New function.
55429         (gl_carray_list_implementation): Update.
55430         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
55431         gl_linked_sortedlist_indexof_from_to): New functions.
55432         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55433         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55434         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
55435         gl_tree_sortedlist_indexof_from_to): New functions.
55436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55437         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55438         Update.
55439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55440         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
55441         Update.
55442
55443 2006-10-05  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
55446         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
55447         (struct gl_list_implementation): Add fields search_from_to,
55448         indexof_from_to. Remove fields search, indexof.
55449         (gl_list_search): Use the search_from_to method.
55450         (gl_list_search_from, gl_list_search_from_to): New functions.
55451         (gl_list_indexof): Use the indexof_from_to method.
55452         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55453         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
55454         (gl_list_search_from, gl_list_search_from_to): New functions.
55455         (gl_list_indexof): Use the indexof_from_to method.
55456         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
55457         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
55458         gl_array_indexof. Add start_index, end_index arguments.
55459         (gl_array_search_from_to): Renamed from gl_array_search. Add
55460         start_index, end_index arguments.
55461         (gl_array_remove, gl_array_list_implementation): Update.
55462         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
55463         gl_carray_indexof. Add start_index, end_index arguments.
55464         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
55465         start_index, end_index arguments.
55466         (gl_carray_remove, gl_carray_list_implementation): Update.
55467         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
55468         gl_linked_search. Add start_index, end_index arguments.
55469         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
55470         start_index, end_index arguments.
55471         (gl_linked_remove): Update.
55472         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55473         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55474         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
55475         field to 'size_t'.
55476         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
55477         gl_tree_search. Add start_index, end_index arguments.
55478         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55479         start_index, end_index arguments.
55480         (gl_tree_remove): Update.
55481         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55483         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
55484         function.
55485         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
55486         gl_tree_search. Add start_index, end_index arguments.
55487         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
55488         start_index, end_index arguments.
55489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55490         Update.
55491         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55492
55493 2006-10-05  Bruno Haible  <bruno@clisp.org>
55494
55495         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
55496
55497         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
55498         fwriteerror_temp): New declarations.
55499         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
55500         (descriptors): New variable.
55501         (cleanup): First, close the descriptors.
55502         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
55503         fclose_temp, fwriteerror_temp): New functions.
55504
55505 2006-10-04  Jim Meyering  <jim@meyering.net>
55506
55507         * lib/fts.c (fts_open): Tiny comment change.
55508
55509 2006-10-04  Bruno Haible  <bruno@clisp.org>
55510
55511         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
55512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
55513         gl_LOCK_BODY.
55514         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
55515         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
55516         gl_LOCK_EARLY_BODY.
55517         (gl_LOCK): Require gl_LOCK_BODY.
55518
55519 2006-10-04  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
55522         (gl_oset_search_atleast): New declaration.
55523         (struct gl_oset_implementation): Add field 'search_atleast'.
55524         (gl_oset_search_atleast): New inline function.
55525         * lib/gl_oset.c (gl_oset_search_atleast): New function.
55526         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
55527         (gl_array_oset_implementation): Update.
55528         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
55529         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
55530         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
55531
55532 2006-10-04  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
55535
55536 2006-10-03  Bruno Haible  <bruno@clisp.org>
55537
55538         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
55539         from gl_avltreehash_list_implementation.
55540
55541 2006-10-03  Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/gl_oset.c (gl_oset_add): Fix return type.
55544
55545 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
55546
55547         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
55548
55549 2006-10-02  Eric Blake  <ebb9@byu.net>
55550
55551         * modules/strnlen (Depends-on): Add extensions.
55552
55553 2006-10-02  Eric Blake  <ebb9@byu.net>
55554
55555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
55556         definition in 2.60+.
55557
55558 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
55559
55560         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
55561         checks.
55562
55563 2006-10-02  Bruno Haible  <bruno@clisp.org>
55564
55565         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
55566         to the AUTOMAKE_OPTIONS.
55567         Reported by Jim Meyering.
55568
55569 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55570
55571         Work around bug in Solaris 10 /proc file system:
55572         /proc/self/fd/NNN/.. isn't the parent directory of
55573         the directory whose file descriptor is NNN.  This needs to
55574         be worked around at run time, not compile time, since a
55575         program might be built on Solaris 8, where things work, and
55576         run on Solaris 10.
55577         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
55578         to use the following interface instead:
55579         (OPENAT_BUFFER_SIZE): New macro.
55580         (openat_proc_name): New function.
55581         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
55582         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
55583         Likewise.
55584         * lib/openat-proc.c: New file.
55585         * modules/openat (Files): Add lib/openat-proc.c.
55586         (Depends-on): Add same-inode, stdbool.
55587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
55588
55589 2006-09-29  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
55592         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
55593         argument. Set stdout_closed before testing for ferror, not after.
55594         (fwriteerror, fwriteerror_no_ebadf): New functions.
55595
55596 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55597
55598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
55599
55600 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
55601
55602         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
55603         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
55604
55605 2006-09-28  Jim Meyering  <jim@meyering.net>
55606
55607         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
55608         Include <unistd.h>.
55609
55610 2006-09-28  Bruno Haible  <bruno@clisp.org>
55611
55612         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
55613         * modules/linkedhash-list (Depends-on): Likewise.
55614         * modules/rbtreehash-list (Depends-on): Likewise.
55615
55616 2006-09-28  Bruno Haible  <bruno@clisp.org>
55617
55618         * lib/strndup.h: Simplify the redefinition of strndup.
55619         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
55620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
55621
55622 2006-09-28  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
55625         * lib/gl_linkedhash_list.c: Likewise.
55626         * lib/gl_rbtreehash_list.c: Likewise.
55627
55628 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55629
55630         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
55631         getaddrinfo.
55632
55633         * lib/__fpending.h: Don't include <stdio_ext.h> unless
55634         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
55635         it causes <stdio_ext.h> to cause a compile-time error.
55636         Problem reported by Nelson H. F. Beebe.
55637         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
55638         of HAVE_DECL___PENDING.
55639
55640         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
55641         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
55642         declaration.
55643
55644 2006-09-27  Jim Meyering  <jim@meyering.net>
55645
55646         This file could end up with a definition for a function
55647         named __strndup, rather than rpl_strndup on a system with
55648         incomplete weak_alias support.
55649         * lib/strndup.c (strndup): Rename from __strndup.
55650         Remove #defines that used to map __strndup to strndup.
55651         Don't use K&R prototypes.
55652         Remove LIBC-related code, since this file is not sync'd with glibc.
55653         * lib/strndup.h: Revamp, accordingly.
55654         * m4/strndup.m4: Modernize.
55655
55656 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         * modules/savewd (Depends-on): Add 'raise'.
55659         * lib/savewd.c: Include <signal.h>, for 'raise'.
55660
55661 2006-09-26  Jim Meyering  <jim@meyering.net>
55662
55663         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
55664         when we detect Darwin 8.7.0's acl_get_file bug.
55665         Rearrange to perform the new (below) run-test while $LIBS
55666         contains any acl-related library.  Set USE_ACL at the end.
55667         (gl_ACL_GET_FILE): New function.
55668
55669 2006-09-26  Eric Blake  <ebb9@byu.net>
55670
55671         * lib/verror.c: Include <config.h> unconditionally.
55672
55673 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
55674
55675         * modules/clock-time (Maintainer): Add self.
55676         * modules/getlogin_r (Depends-on): Add extensions.
55677
55678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55679
55680         * modules/clock-time: New module.
55681         * modules/nanosleep (Depends-on): Add clock-time.
55682         * modules/gethrxtime (Depends-on): Likewise.
55683         * modules/gettime (Depends-on): Likewise.
55684         * modules/settime (Depends-on): Likewise.
55685
55686         * modules/fts-lgpl: Depend on openat.
55687         * modules/mkancesdirs: Depend on savewd.
55688         * modules/mkdir-p: Likewise.
55689
55690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55691
55692         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
55693
55694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
55695         `gl_have_arbitrary_file_name_length_limit' to
55696         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
55697         actually works between configure runs.
55698
55699 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55700             Bruno Haible  <bruno@clisp.org>
55701
55702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
55703
55704 2006-09-25  Jim Meyering  <jim@meyering.net>
55705
55706         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
55707         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
55708
55709 2006-09-25  Eric Blake  <ebb9@byu.net>
55710
55711         * gnulib-tool (func_import, func_create_testdir): Fix typos in
55712         exec's in 2006-09-18 patch when shuffling fds.
55713
55714 2006-09-25  Bruno Haible  <bruno@clisp.org>
55715
55716         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
55717         Reported by Jim Meyering.
55718
55719 2006-09-24  Jim Meyering  <jim@meyering.net>
55720
55721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
55722         compare a pointer against a literal "0".  That caused failures with
55723         at least HP-UX's hpcc.
55724
55725 2006-09-22  Simon Josefsson  <jas@extundo.com>
55726
55727         * modules/gc-sha1:
55728         * modules/gc-md4:
55729         * modules/gc-hmac-sha1:
55730         * modules/gc-hmac-md5:
55731         * modules/gc-des:
55732         * modules/gc-arcfour: Distribute more files.
55733
55734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55735
55736         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
55737         (gl_linked_iterator_from_to): Initialize struct completely.
55738         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
55739         (gl_tree_iterator_from_to): Likewise
55740         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
55741         * lib/gl_array_list.c [lint] (gl_array_iterator)
55742         (gl_array_iterator_from_to): Likewise.
55743         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
55744         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
55745         (gl_carray_iterator_from_to): Likewise.
55746
55747         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
55748         * lib/md4.c (md4_process_block): Remove unused variable.
55749         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
55750         parentheses for clarity.
55751
55752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55753
55754         * modules/bison-i18n (Depends-on): Add gettext.
55755
55756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55757
55758         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
55759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
55760         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
55761         also add missing comma that caused broken test.
55762         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
55763         stdlib.h, for `abort'.
55764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
55765         variables.
55766         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
55767         include unistd.h if present, for `rmdir'.
55768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
55769         variables.
55770         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
55771         in the process include standard headers for prototypes.
55772         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
55773         gets declared on GNU/Linux.
55774         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
55775         unistd.h, for `rmdir'.
55776         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
55777
55778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
55779         always true.
55780         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
55781
55782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
55783
55784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55785
55786         * gnulib-tool (func_version): Create output all at once.  This
55787         may help avoid triggering unnecessary SIGPIPEs, and at any
55788         rate it doesn't hurt.
55789
55790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55791             Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
55794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55795         * m4/signed.m4 (bh_C_SIGNED): Likewise.
55796
55797         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
55798         (gl_FUNC_VASPRINTF): Invoke it.
55799
55800 2006-09-22  Bruno Haible  <bruno@clisp.org>
55801
55802         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
55803         getloadavg.c as first argument.
55804
55805 2006-09-22  Bruno Haible  <bruno@clisp.org>
55806
55807         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
55808         at the beginning of the gl_INIT macro.
55809         * modules/getloadavg (configure.ac): Pass $gl_source_base to
55810         gl_GETLOADAVG.
55811
55812 2006-09-22  Bruno Haible  <bruno@clisp.org>
55813
55814         * gnulib-tool (func_create_megatestdir): Don't include the config-h
55815         module.
55816         Suggested by Ralf Wildenhues.
55817
55818 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55819
55820         Import this patch from libc:
55821
55822         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
55823
55824         * lib/regex_internal.c (re_string_reconstruct): Handle
55825         offset < pstr->valid_raw_len && pstr->offsets_needed case.
55826         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
55827         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
55828         re_string_context_at.
55829
55830         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
55831         now requires it.
55832         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
55833         gl_REGEX now does it for us.
55834         (gl_REGEX): Add test taken from
55835         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
55836
55837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
55838         Check that large offsets work.  Modernize Autoconf usages.
55839         Prefer "yes" to mean a good thing rather than a bad.
55840         Don't put "#define mkstemp" in config.h, as this might interfere
55841         with standard system headers that "#define mkstemp mkstemp64".
55842
55843         * modules/mkstemp (Depends-on): Add extensions, so that
55844         mkstemp is visible on some platforms.
55845         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
55846         (Include): Change to "mkstemp.h" from <stdlib.h>.
55847         (Files): Add mkstemp.h.
55848
55849         * lib/mkstemp.h: New file, since some standard headers
55850         #define mkstemp.
55851         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
55852         Include "mkstemp.h".
55853         Make the _LIBC code resemble glibc original more,
55854         e.g., use K&R style.
55855         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
55856         (mkstemp): Remove, since mkstemp.h does this for us.
55857         * lib/stdlib--.h: Include mkstemp.h.
55858
55859         Import this patch from libc:
55860
55861         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55862
55863         * lib/tempname.c (__gen_tempname): Change attempts_min
55864         into a macro.  Use preprocessor to decide how to initialize
55865         attempts [Coverity CID 67].
55866
55867 2006-09-20  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/mkdtemp.c: Import from libc.
55870         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
55871                 * sysdeps/posix/tempname.c (__gen_tempname): Change
55872                 attempts_min into a macro.  Use preprocessor to decide how to
55873                 initialize attempts [Coverity CID 67].
55874         2001-11-27  Paul Eggert  <eggert@twinsun.com>
55875                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
55876                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
55877
55878 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55879
55880         * gnulib-tool (func_exit): New function, to allow to pass the
55881         exit status portably through the trap.  Use everywhere.
55882         (--help, --version): Signal a write error.
55883         (trap): catch SIGPIPE, for write errors.
55884         Exit at the end of the trap, with the correct exit status.
55885
55886 2006-09-19  Karl Berry  <karl@gnu.org>
55887
55888         * doc/gnulib.texi: note about the license texinfo files.
55889
55890 2006-09-19  Eric Blake  <ebb9@byu.net>
55891
55892         * gnulib-tool: Avoid space-tab.
55893
55894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
55897         that prevented coreutils 6.1 from building.  Problem reported
55898         by Petter Reinholdtsen.
55899
55900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
55901
55902         * gnulib-tool (avoidlist): Fix typo that broke options like
55903         --avoid=lock that are used by coreutils bootstrap.
55904
55905 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
55906
55907         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
55908         more systematically.
55909
55910 2006-09-18  Jim Meyering  <jim@meyering.net>
55911
55912         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
55913
55914 2006-09-18  Bruno Haible  <bruno@clisp.org>
55915
55916         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
55917
55918 2006-09-18  Bruno Haible  <bruno@clisp.org>
55919
55920         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
55921         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
55922         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
55923         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
55924         * m4/gettext.m4: Require autoconf >= 2.52.
55925         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
55926         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
55927         of gl_cv_header_inttypes_h.
55928
55929 2006-09-18  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/javaversion.c: Include configmake.h.
55932
55933 2006-09-18  Bruno Haible  <bruno@clisp.org>
55934
55935         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
55936         avoid that the while loops be executed in a subshell.
55937
55938 2006-09-18  Bruno Haible  <bruno@clisp.org>
55939
55940         * MODULES.html.sh (func_module): Break long lines.
55941         Suggested by Bruce Korb <bkorb@gnu.org>.
55942
55943 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55944
55945         Speed up by a factor of 1.12.
55946         * gnulib-tool (nl): New variable.
55947         (func_import): Rewrite include directive extraction to only read each
55948         directive once.
55949
55950 2006-09-17  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/javaversion (Makefile.am): Remove DEFS setting.
55953         (Depends-on): Add configmake, for PKGDATADIR definition.
55954
55955 2006-09-17  Bruno Haible  <bruno@clisp.org>
55956
55957         * gnulib-tool (func_create_testdir): Rewrite all files at once.
55958
55959 2006-09-17  Bruno Haible  <bruno@clisp.org>
55960
55961         * gnulib-tool (func_append): New function, stolen from libtool.m4.
55962         (func_modules_transitive_closure, func_modules_add_dummy,
55963         func_modules_to_filelist, func_import, func_create_testdir,
55964         func_create_megatestdir, ...): Use it wherever possible.
55965         Suggested by Ralf Wildenhues.
55966
55967 2006-09-16  Karl Berry  <karl@gnu.org>
55968
55969         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
55970         to avoid sectioning errors.
55971         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
55972         [ifinfo]: blank line after @center-ed titles.
55973         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55974         Spell FSF address consistently with others.
55975         (These changes approved by rms.)
55976
55977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55978
55979         Speed up by a factor of 1.61.
55980         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55981         already checked module names again.
55982
55983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55984
55985         Speed up by a factor of 1.13.
55986         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55987         for new_files, and the input to func_add_or_update.
55988
55989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55990
55991         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55992         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55993
55994 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         * modules/mkancesdirs (Depends-on): Add fcntl.
55997         * modules/savewd: New file.
55998         * MODULES.html.sh (File system functions): Add savewd.
55999
56000         * modules/configmake (Makefile.am): Add support for the
56001         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56002
56003 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56004
56005         * m4/savewd.m4: New file.
56006
56007 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56008
56009         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56010         (dirchownmod): New arg FD.  All callers changed.
56011         Use FD rather than opening the directory ourself, as opening is
56012         now the caller's responsibility.
56013         * lib/dirchownmod.h: Likewise.
56014         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56015         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56016         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56017         (test_dir): Remove.
56018         (mkancesdirs): Return length of prefix of FILE that has already
56019         been made, or -2 if there is a child doing the work.  Redo
56020         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56021         ".", and treat ".." specially since it might stray back into
56022         already-created areas.  Use a subprocess if necessary.  New arg
56023         WD; all users changed.  MAKE_DIR function should now return 1
56024         if it creates a directory that is not readable.  Return -2 if
56025         a child process is spun off.
56026         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56027         Adjust signature to match code.
56028         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56029         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56030         all users changed.
56031         * lib/savewd.c, lib/savewd.h: New files.
56032
56033 2006-09-15  Jim Meyering  <jim@meyering.net>
56034
56035         * modules/rename-dest-slash: New module.
56036         * MODULES.html.sh (posix_compat): Add it here.
56037
56038         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56039
56040 2006-09-15  Jim Meyering  <jim@meyering.net>
56041
56042         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56043         file.
56044
56045         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56046
56047 2006-09-15  Jim Meyering  <jim@meyering.net>
56048
56049         * lib/rename-dest-slash.c (has_trailing_slash): Use
56050         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56051         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56052         test before testing whether SRC is a directory.
56053         Suggestions from Bruno Haible.
56054
56055         Avoid a warning about an unused variable.
56056         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56057         into the #ifdef block where it's used.
56058
56059         * lib/rename-dest-slash.c: New file.
56060
56061 2006-09-14  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/allocsa.c: Include <config.h> unconditionally.
56064         * lib/asnprintf.c: Likewise.
56065         * lib/asprintf.c: Likewise.
56066         * lib/c-strcasecmp.c: Likewise.
56067         * lib/c-strcasestr.c: Likewise.
56068         * lib/c-strncasecmp.c: Likewise.
56069         * lib/c-strstr.c: Likewise.
56070         * lib/classpath.c: Likewise.
56071         * lib/clean-temp.c: Likewise.
56072         * lib/concatpath.c: Likewise.
56073         * lib/copy-file.c: Likewise.
56074         * lib/csharpcomp.c: Likewise.
56075         * lib/csharpexec.c: Likewise.
56076         * lib/execute.c: Likewise.
56077         * lib/fatal-signal.c: Likewise.
56078         * lib/findprog.c: Likewise.
56079         * lib/fwriteerror.c: Likewise.
56080         * lib/gl_array_list.c: Likewise.
56081         * lib/gl_array_oset.c: Likewise.
56082         * lib/gl_avltree_list.c: Likewise.
56083         * lib/gl_avltree_oset.c: Likewise.
56084         * lib/gl_avltreehash_list.c: Likewise.
56085         * lib/gl_carray_list.c: Likewise.
56086         * lib/gl_linked_list.c: Likewise.
56087         * lib/gl_linkedhash_list.c: Likewise.
56088         * lib/gl_list.c: Likewise.
56089         * lib/gl_oset.c: Likewise.
56090         * lib/gl_rbtree_list.c: Likewise.
56091         * lib/gl_rbtree_oset.c: Likewise.
56092         * lib/gl_rbtreehash_list.c: Likewise.
56093         * lib/imaxabs.c: Likewise.
56094         * lib/imaxdiv.c: Likewise.
56095         * lib/javacomp.c: Likewise.
56096         * lib/javaexec.c: Likewise.
56097         * lib/javaversion.c: Likewise.
56098         * lib/linebreak.c: Likewise.
56099         * lib/localcharset.c: Likewise.
56100         * lib/lock.c: Likewise.
56101         * lib/mbchar.c: Likewise.
56102         * lib/mbswidth.c: Likewise.
56103         * lib/mkdtemp.c: Likewise.
56104         * lib/pipe.c: Likewise.
56105         * lib/printf-args.c: Likewise.
56106         * lib/printf-parse.c: Likewise.
56107         * lib/progname.c: Likewise.
56108         * lib/progreloc.c: Likewise.
56109         * lib/readlink.c: Likewise.
56110         * lib/sh-quote.c: Likewise.
56111         * lib/stpcpy.c: Likewise.
56112         * lib/stpncpy.c: Likewise.
56113         * lib/strcasecmp.c: Likewise.
56114         * lib/strcasestr.c: Likewise.
56115         * lib/strcspn.c: Likewise.
56116         * lib/striconv.c: Likewise.
56117         * lib/strncasecmp.c: Likewise.
56118         * lib/strnlen1.c: Likewise.
56119         * lib/strstr.c: Likewise.
56120         * lib/strtok_r.c: Likewise.
56121         * lib/tls.c: Likewise.
56122         * lib/tmpdir.c: Likewise.
56123         * lib/unicodeio.c: Likewise.
56124         * lib/unsetenv.c: Likewise.
56125         * lib/vasnprintf.c: Likewise.
56126         * lib/vasprintf.c: Likewise.
56127         * lib/wait-process.c: Likewise.
56128         * lib/xallocsa.c: Likewise.
56129         * lib/xsetenv.c: Likewise.
56130         * lib/xstriconv.c: Likewise.
56131
56132 2006-09-13  Simon Josefsson  <jas@extundo.com>
56133
56134         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56135         that internally, suggested by Ralf Wildenhues
56136         <Ralf.Wildenhues@gmx.de>.
56137
56138 2006-09-13  Simon Josefsson  <jas@extundo.com>
56139
56140         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56141         @LIBOBJS@.
56142         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56143
56144 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56147         longer worry about uses that don't define HAVE_CONFIG_H.
56148         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56149         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56150         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56151         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56152         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56153         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56154         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56155         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56156         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56157         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56158         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56159         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56160         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56161         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56162         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56163         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56164         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56165         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56166         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56167         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56168         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56169         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56170         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56171         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56172         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56173         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56174         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56175         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56176         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56177         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56178         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56179         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56180         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56181         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56182         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56183         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56184         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56185         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56186         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56187         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56188         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56189         Likewise.
56190
56191 2006-09-13  Eric Blake  <ebb9@byu.net>
56192
56193         * lib/getopt.c: Fix typo in last commit.
56194
56195 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56196
56197         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56198         dgettext.
56199
56200 2006-09-12  Jim Meyering  <jim@meyering.net>
56201
56202         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56203         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56204         Reported by Nelson H. F. Beebe.
56205
56206 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56207
56208         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56209         program_invocation_name and program_invocation_short_name are
56210         initialized.
56211         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56212         and program_invocation_short_name to argp.h, so they are visible
56213         to user programs.
56214         * lib/argp.h: Likewise
56215
56216 2006-09-10  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56219         m4/inttypes_h.m4, m4/uintmax_t.m4.
56220
56221 2006-09-10  Bruno Haible  <bruno@clisp.org>
56222
56223         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56224         gl_AC_TYPE_UINTMAX_T.
56225
56226 2006-09-10  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56229
56230 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56231
56232         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56233         convention.  Text proposed by Bruno Haible.
56234         (struct argp_option): Document the use of N_() wrappers.
56235
56236         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56237         '\v', and translate the two parts separately, instead of feeding
56238         the whole string to gettext.  This allows to exclude
56239         '\v' from the strings visible to the translator by writing doc
56240         strings as N_("..") "\v" N_("..").
56241
56242 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * config/srclist.txt: Undo latest change; the bug was fixed.
56245
56246 2006-09-09  Bruno Haible  <bruno@clisp.org>
56247
56248         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
56249         assignments if building a library without libtool.
56250         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
56251         in func_emit_lib_Makefile_am.
56252         (func_import): When building a static library libfoo.a, arrange to
56253         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
56254         (func_create_testdir): Likewise.
56255         * modules/gc (configure.ac, Makefile.am): If building statically,
56256         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
56257         * modules/iconvme (configure.ac, Makefile.am): Likewise.
56258         * modules/striconv (configure.ac, Makefile.am): Likewise.
56259         Based on a suggestion by Ralf Wildenhues.
56260
56261 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56264         Check for unistd.h too, since Autoconf doesn't assume POSIX.
56265         Also:
56266
56267         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56268         Add year_2050_test to catch glibc bug 2821
56269         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56270
56271         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56272         Prefer #ifdef to #if.
56273
56274         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
56275         Return from 'main' instead of calling 'exit'.
56276
56277 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56278
56279         * lib/mktime.c (guess_time_tm): Fix bug where mktime
56280         returned the maximum time_t value rather than (time_t) -1.
56281         Problem originally reported by William Bardwell
56282         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
56283
56284         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56285         Moved to here ...
56286         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
56287         ... from here.
56288
56289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
56292         2821 is fixed.
56293
56294 2006-09-08  Jim Meyering  <jim@meyering.net>
56295
56296         Don't make generated files read-only.  That would bother too many
56297         people.  However, do retain the ability to work when targets are
56298         read-only: remove the destination and temporary files before writing
56299         them (when generated via sed or echo), or by using the -f option for
56300         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
56301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56302         * modules/byteswap, modules/configmake, modules/fcntl:
56303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56304         * modules/localcharset, modules/netinet_in, modules/poll:
56305         * modules/stdbool, modules/stdint, modules/sys_select:
56306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56307
56308 2006-09-08  Jim Meyering  <jim@meyering.net>
56309
56310         Avoid new build failure on FreeBSD 6.0.
56311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
56312         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
56313         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
56314
56315 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56316
56317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
56318
56319 2006-09-07  Jim Meyering  <jim@meyering.net>
56320
56321         Fix global typo in last change: use chmod u-w, not chmod u-x.
56322         Spotted by Paul Eggert and Bruce Korb.
56323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
56324         * modules/byteswap, modules/configmake, modules/fcntl:
56325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
56326         * modules/localcharset, modules/netinet_in, modules/poll:
56327         * modules/stdbool, modules/stdint, modules/sys_select:
56328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
56329
56330 2006-09-06  Jim Meyering  <jim@meyering.net>
56331
56332         Make generated files be read-only.
56333         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
56334         Ensure that each generated file is now read-only.
56335         * modules/argz: Likewise.
56336         * modules/arpa_inet: Likewise.
56337         * modules/byteswap: Likewise.
56338         * modules/configmake: Likewise.
56339         * modules/fcntl: Likewise.
56340         * modules/fnmatch: Likewise.
56341         * modules/getopt: Likewise.
56342         * modules/glob: Likewise.
56343         * modules/inttypes: Likewise.
56344         * modules/netinet_in: Likewise.
56345         * modules/poll: Likewise.
56346         * modules/stdbool: Likewise.
56347         * modules/stdint: Likewise.
56348         * modules/sys_select: Likewise.
56349         * modules/sys_socket: Likewise.
56350         * modules/sys_stat: Likewise.
56351         * modules/sysexits: Likewise.
56352         * modules/localcharset: Same as above, but continue using temporary
56353         file named "t-$@" (why different?) rather than the "$@-t" used
56354         everywhere else.
56355
56356         * modules/sysexits (Makefile.am): Replace literal occurrences
56357         of "sysexit.h" more readable, and more consistent, "$@".
56358
56359 2006-09-06  Bruno Haible  <bruno@clisp.org>
56360
56361         * modules/striconv: New file.
56362         * modules/xstriconv: New file.
56363         * MODULES.html.sh (Internationalization functions): Add striconv,
56364         xstriconv.
56365
56366 2006-09-06  Bruno Haible  <bruno@clisp.org>
56367
56368         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
56369         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
56370         not using libtool correctly.
56371
56372 2006-09-06  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/striconv.h: New file.
56375         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
56376         iconvstring.c.
56377         * lib/xstriconv.h: New file.
56378         * lib/xstriconv.c: New file.
56379
56380 2006-09-06  Bruno Haible  <bruno@clisp.org>
56381
56382         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56383         lib_..._LDFLAGS.
56384
56385 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56386
56387         * lib/argz_.h: Sync from Libtool.
56388
56389         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
56390                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56391
56392         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
56393
56394 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56395
56396         * modules/trim: New file.
56397
56398 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
56399
56400         * lib/trim.h: New file.
56401         * lib/trim.c: New file.
56402
56403 2006-09-05  Bruno Haible  <bruno@clisp.org>
56404
56405         * MODULES.html.sh (String handling): Add trim.
56406
56407 2006-09-04  Karl Berry  <karl@gnu.org>
56408
56409         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
56410         until next release.
56411
56412 2006-09-03  Bruno Haible  <bruno@clisp.org>
56413
56414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
56415         correctly.
56416
56417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
56420         not gl_GETLOADAVG.  Omit unneeded semicolons.
56421         Problems reported by Ralf Wildenhues in
56422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56423         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
56424         at the end, which is the usual gnulib style.
56425
56426         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
56427         of doing all the work ourselves.
56428         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
56429         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
56430
56431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
56434         Problem reported by Ralf Wildenhues in
56435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
56436
56437         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
56438         HAVE_STRUCT_STATFS_F_FSTYPENAME.
56439
56440 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
56443         yesterday's patch by changing test -n to test -z.
56444
56445 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56446
56447         * modules/getloadavg (Files): Add m4/getloadavg.m4.
56448         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
56449         the former is now obsolescent.
56450
56451         * modules/chdir-long (Depends-on): Add fcntl.
56452
56453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56454
56455         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
56456         obsolescent, and programs should use gnulib instead.
56457         * m4/getloadavg.m4: New file, with contents taken from Autoconf
56458         but with prefixes changed.
56459
56460 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56461
56462         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
56463         or stdbool.h, because they might not exist while configuring.
56464
56465         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
56466         Don't include unistd.h or limits.h; not needed, since chdir-long.h
56467         does that for us.
56468         (O_DIRECTORY): Remove.
56469
56470 2006-08-31  Eric Blake  <ebb9@byu.net>
56471
56472         * gnulib-tool: Don't let emacs change spaces to TAB.
56473
56474 2006-08-31  Bruno Haible  <bruno@clisp.org>
56475
56476         * gnulib-tool: When calling func_import more than once, do it in a
56477         subshell.
56478         Reported by Eric Blake <ebb9@byu.net>.
56479
56480 2006-08-31  Bruno Haible  <bruno@clisp.org>
56481
56482         * gnulib-tool (nl): Remove variable.
56483         (sed_transform_lib_file): Use more robust test for config-h module.
56484         (func_import): Fix typo in 2006-08-25 patch.
56485
56486 2006-08-31  Bruno Haible  <bruno@clisp.org>
56487
56488         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
56489         specified, augment Makefile.am variables instead of assigning them.
56490
56491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56492
56493         Work around a bug in both the Linux and SunOS 64-bit kernels:
56494         nanosleep mishandles sleeps for longer than 2**31 seconds.
56495         Problem reported by Frank v Waveren in
56496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
56498         Check for nanosleep bug.
56499         (LIB_NANOSLEEP): Append clock_gettime library if needed.
56500
56501 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56502
56503         Work around a bug in both the Linux and SunOS 64-bit kernels:
56504         nanosleep mishandles sleeps for longer than 2**31 seconds.
56505         Problem reported by Frank v Waveren in
56506         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
56507         * lib/nanosleep.c (BILLION): New constant.
56508         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
56509         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
56510         implementation.
56511
56512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56513
56514         * modules/nanosleep (Depends-on): Add gettime.
56515
56516 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
56517         and Simon Josefsson  <jas@extundo.com>
56518         and Oskar Liljeblad  <oskar@osk.mine.nu>
56519
56520         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
56521         * gnulib-tool (func_import): New license type 'unmodifiable license
56522         text'.
56523         * modules/fdl: Use it.  Longer description.
56524         * module/gpl, module/lgpl: New files.
56525
56526 2006-08-30  Jim Meyering  <jim@meyering.net>
56527
56528         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
56529         shadowing the parameter.
56530
56531 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56532
56533         Sync from Libtool:
56534
56535         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56536
56537         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
56538         sharing with gnulib.  Report by Eric Blake.
56539
56540 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56541
56542         * modules/isapipe: New file.
56543         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
56544
56545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * modules/configmake (Makefile.am): Add a comment, and omit
56548         the CONFIGMAKE_ prefix from generated macro names.  Suggested
56549         by Bruno Haible.
56550
56551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56552
56553         * m4/isapipe.m4: New file.
56554
56555 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
56556
56557         * lib/isapipe.c, lib/isapipe.h: New files.
56558
56559 2006-08-29  Jim Meyering  <jim@meyering.net>
56560
56561         * modules/configmake (Makefile.am): Make configmake.h depend on
56562         Makefile.  Otherwise, a stale configmake.h could hang around.
56563
56564 2006-08-29  Eric Blake  <ebb9@byu.net>
56565
56566         * lib/error.c (error_at_line, print_errno_message): Match libc, after
56567         resolution of upstream bug 3044.
56568
56569 2006-08-29  Bruno Haible  <bruno@clisp.org>
56570
56571         * modules/localcharset (Depends-on): Add configmake.
56572         (Makefile.am): Remove setting of LIBDIR through DEFS.
56573
56574 2006-08-29  Bruno Haible  <bruno@clisp.org>
56575
56576         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
56577         defined.
56578
56579 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56580
56581         * modules/fcntl: New file.
56582         * modules/chdir-safer (Depends-on): Add fcntl.
56583         * modules/fts: Likewise.
56584         * modules/mkdir-p: Likewise.
56585
56586         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
56587         This undoes the most recent change, since we're now addressing the
56588         problem in a different way.
56589
56590         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
56591         into output, since the output might be called Makefile.am even
56592         if $makefile_name is something different.
56593         (func_import): Use $makefile_am rather than
56594         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
56595         empty.
56596
56597         * modules/inttypes (Files): Add m4/inttypes-h.m4.
56598
56599 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56600
56601         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
56602         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
56603         recent change to stdint.m4, since we're now addressing the problem in a
56604         different way.
56605
56606 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56607
56608         * m4/fcntl_h.m4: New file.
56609
56610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
56611
56612         * lib/fcntl_.h: New file.
56613         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
56614         the fcntl module.
56615         * lib/dirchownmod.c: Likewise.
56616         * lib/fts.c: Likewise.
56617
56618         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
56619         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
56620         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
56621         just before including <inttypes.h>, to avoid circular inclusion.
56622
56623 2006-08-28  Jim Meyering  <jim@meyering.net>
56624
56625         * doc/visibility.texi: Actually read and correct the grammar of the
56626         sentence affected by yesterday's change.
56627
56628 2006-08-28  Eric Blake  <ebb9@byu.net>
56629
56630         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
56631         needs wrapper.
56632
56633 2006-08-28  Eric Blake  <ebb9@byu.net>
56634
56635         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
56636
56637 2006-08-28  Eric Blake  <ebb9@byu.net>
56638
56639         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
56640
56641 2006-08-28  Bruno Haible  <bruno@clisp.org>
56642
56643         * modules/c-strstr: New file, from GNU gettext.
56644         * MODULES.html.sh (String handling): Add c-strstr.
56645
56646 2006-08-28  Bruno Haible  <bruno@clisp.org>
56647
56648         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
56649         macros.
56650         Reported by Eric Blake.
56651
56652 2006-08-28  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
56655         (VASNPRINTF): Return a string of length > INT_MAX without failing.
56656         * lib/vasprintf.c: Include errno.h, limits.h.
56657         (EOVERFLOW): New fallback definition.
56658         (vasprintf): Test here whether the string length is > INT_MAX.
56659         * lib/vsnprintf.c: Include errno.h, limits.h.
56660         (EOVERFLOW): New fallback definition.
56661         (vsnprintf): Fix bug when generated string was too long for the buffer.
56662         Test here whether the string length is > INT_MAX.
56663
56664 2006-08-28  Bruno Haible  <bruno@clisp.org>
56665
56666         * lib/inttypes_.h (SCNX*): Remove definitions.
56667         Reported by Eric Blake.
56668
56669 2006-08-28  Bruno Haible  <bruno@clisp.org>
56670
56671         * lib/c-strstr.h: New file, from GNU gettext.
56672         * lib/c-strstr.c: New file, from GNU gettext.
56673
56674 2006-08-28  Bruno Haible  <bruno@clisp.org>
56675
56676         * gnulib-tool: Reorder some statements.
56677
56678 2006-08-28  Bruno Haible  <bruno@clisp.org>
56679
56680         * gnulib-tool: New option --makefile-name.
56681         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
56682         $makefile_name.
56683         (func_import): Write $makefile_name to the cache file, and read it from
56684         there unless explicitly specified. Use $makefile_name as file name
56685         instead of Makefile.am. Adjust the recommendations accordingly.
56686
56687 2006-08-28  Bruno Haible  <bruno@clisp.org>
56688
56689         * gnulib-tool (func_verify_module): Check against misapplying patch.
56690
56691 2006-08-28  Bruno Haible  <bruno@clisp.org>
56692
56693         * gnulib-tool (func_relativize, func_relconcat): New functions.
56694         Give an error if --local-dir is given with --update.
56695         Remove trailing slashes from $local_gnulib_dir.
56696         (func_import): Store the relativized $local_gnulib_dir in
56697         gnulib-cache.m4, and read it from there if not specified explicitly.
56698
56699 2006-08-28  Bruno Haible  <bruno@clisp.org>
56700
56701         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
56702         is the current directory. Respect also $local_gnulib_dir.
56703
56704 2006-08-28  Bruno Haible  <bruno@clisp.org>
56705             Simon Josefsson  <jas@extundo.com>
56706
56707         BeOS portability.
56708         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
56709
56710 2006-08-27  Jim Meyering  <jim@meyering.net>
56711
56712         * doc/visibility.texi: Remove duplicate word: "pointer".
56713
56714 2006-08-26  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
56717         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
56718         (Makefile.am): Create inttypes.h from inttypes_.h.
56719         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
56720
56721         * modules/imaxabs: New file.
56722
56723         * modules/imaxdiv: New file.
56724
56725 2006-08-26  Bruno Haible  <bruno@clisp.org>
56726
56727         * m4/inttypes.m4: New file.
56728         * m4/_inttypes_h.m4: Remove file.
56729         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
56730         PRI_MACROS_BROKEN.
56731         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
56732
56733         * m4/imaxabs.m4: New file.
56734
56735         * m4/imaxdiv.m4: New file.
56736
56737 2006-08-26  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/inttypes_.h: New file.
56740         * lib/inttypes.h: Remove file.
56741         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
56742
56743         * lib/imaxabs.c: New file.
56744
56745         * lib/imaxdiv.c: New file.
56746
56747 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         New config-h module, so that "make" output needn't be cluttered
56750         by -DHAVE_CONFIG_H.
56751         * MODULES.html.sh (Support for building libraries and executables):
56752         Add config-h.
56753         * modules/config-h: New file.
56754         * gnulib-tool (nl, sed_transform_lib_file): New vars.
56755         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
56756         the config-h module is used.
56757
56758         New configmake module, so that "make" output needn't be cluttered
56759         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
56760         * MODULES.html.sh (Support for building libraries and executables):
56761         Add configmake.
56762         * modules/configmake: New file.
56763
56764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * m4/config-h.m4: New file.
56767
56768 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * config/srclist.txt: Add elisp-comp.
56771
56772 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * MODULES.html.sh (Support for building libraries and executables):
56775         Add elisp-comp.
56776         * build-aux/elisp-comp: New file.
56777         * modules/elisp-comp: New file.
56778
56779 2006-08-24  Bruno Haible  <bruno@clisp.org>
56780
56781         * gnulib-tool (func_create_testdir): Use non-default values of
56782         sourcebase and m4base.
56783
56784 2006-08-24  Bruno Haible  <bruno@clisp.org>
56785
56786         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
56787         HTML structure.
56788
56789 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * modules/openat (Depends-on): Add lchown.
56792
56793 2006-08-23  Bruno Haible  <bruno@clisp.org>
56794
56795         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
56796         of gl_LOCK_EARLY instead of gl_LOCK.
56797
56798 2006-08-23  Bruno Haible  <bruno@clisp.org>
56799
56800         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
56801         on OSF/1 to no.
56802         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
56803
56804 2006-08-23  Bruno Haible  <bruno@clisp.org>
56805
56806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
56807         as unusable.
56808
56809         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
56810         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
56811         (gl_LOCK): New macro.
56812
56813 2006-08-22  Simon Josefsson  <jas@extundo.com>
56814
56815         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
56816         to md5 module.
56817
56818 2006-08-22  Simon Josefsson  <jas@extundo.com>
56819
56820         * MODULES.html.sh: Add "Support for maintaining and release
56821         projects".
56822
56823         * build-aux/gnupload: New file, from coreutils.
56824
56825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         Avoid the need for AC_LIBSOURCES in m4 macros.
56828         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
56829         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
56830         * modules/check-version (EXTRA_DIST): Add check-version.h.
56831         * modules/crc (EXTRA_DIST): Add crc.h.
56832         * modules/des (EXTRA_DIST): Add des.h.
56833         * modules/gc (EXTRA_DIST): Add gc.h.
56834         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
56835         * modules/getline (EXTRA_DIST): Add getline.h.
56836         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
56837         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
56838         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
56839         * modules/md2 (EXTRA_DIST): Add md2.h.
56840         * modules/md4 (EXTRA_DIST): Add md4.h.
56841         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
56842         * modules/read-file (EXTRA_DIST): Add read-file.h.
56843         * modules/readline (EXTRA_DIST): Add readline.h.
56844         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
56845         rijndael-api-fst.h.
56846
56847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         * m4/rijndael.m4 (gl_ARCFOUR):
56850         * m4/arctwo.m4 (gl_ARCTWO):
56851         * m4/check-version.m4 (gl_CHECK_VERSION):
56852         * m4/crc.m4 (gl_CRC):
56853         * m4/des.m4 (gl_DES):
56854         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
56855         * m4/gc.m4 (gl_GC):
56856         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
56857         * m4/getline.m4 (gl_FUNC_GETLINE):
56858         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
56859         * m4/hmac-md5.m4 (gl_HMAC_MD5):
56860         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
56861         * m4/md2.m4 (gl_MD2):
56862         * m4/md4.m4 (gl_MD4):
56863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
56864         * m4/read-file.m4 (gl_FUNC_READ_FILE):
56865         * m4/readline.m4 (gl_FUNC_READLINE):
56866         * m4/rijndael.m4 (gl_RIJNDAEL):
56867         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56868         to get the necessary .h files and whatnot.
56869
56870 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
56871
56872         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
56873         gnulib rather than the other way around.
56874         * config/srclistvars.sh (COREUTILS): Remove.
56875
56876 2006-08-22  Jim Meyering  <jim@meyering.net>
56877
56878         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
56879
56880         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
56881
56882 2006-08-22  Eric Blake  <ebb9@byu.net>
56883
56884         * modules/regexprops-generic: New file.
56885         * MODULES.html.sh (Support for building documentation): List it.
56886
56887 2006-08-22  Eric Blake  <ebb9@byu.net>
56888
56889         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
56890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
56891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
56892         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
56893
56894 2006-08-22  Bruno Haible  <bruno@clisp.org>
56895
56896         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
56897         and lib_LTLIBRARIES like the other lib_* variables.
56898
56899 2006-08-22  Bruno Haible  <bruno@clisp.org>
56900
56901         * build-aux/x-to-1.in: New file, from GNU gettext.
56902
56903 2006-08-22  Bruno Haible  <bruno@clisp.org>
56904
56905         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
56906         <utmpx.h> exists.
56907
56908 2006-08-22  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
56911         <utmpx.h> exists.
56912
56913 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         BeOS portability.
56916         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
56917         exist.
56918         Problem reported by Bruno Haible.
56919
56920 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56921
56922         Avoid the need for AC_LIBSOURCES in m4 macros.
56923         * modules/acl (EXTRA_DIST): Add acl.h.
56924         * modules/argmatch (Files): Add m4/argmatch.m4.
56925         (configure.ac): Add gl_ARGMATCH.
56926         (EXTRA_DIST): Renamed from lib_SOURCES, for
56927         consistency with the other modules.  Remove argmatch.c.
56928         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
56929         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
56930         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
56931         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
56932         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
56933         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
56934         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
56935         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
56936         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
56937         * modules/closeout (EXTRA_DIST): Add closeout.h.
56938         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
56939         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
56940         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
56941         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
56942         dirname.h; remove basename.c and stripslash.c.
56943         * modules/exclude (EXTRA_DIST): Add exclude.h.
56944         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
56945         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
56946         * modules/file-type (EXTRA_DIST): Add file-type.h.
56947         * modules/filemode (EXTRA_DIST): Add filemode.h.
56948         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
56949         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56950         * modules/fpending (EXTRA_DIST): Add __fpending.h.
56951         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
56952         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
56953         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
56954         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
56955         * modules/getdate (EXTRA_DIST): Add getdate.c.
56956         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
56957         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
56958         * modules/getpass (EXTRA_DIST): Add getpass.h.
56959         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
56960         * modules/group-member (EXTRA_DIST): Add group-member.h.
56961         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
56962         * modules/hash (EXTRA_DIST): Add hash.h.
56963         * modules/human (EXTRA_DIST): Add human.h.
56964         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
56965         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
56966         * modules/lchown (EXTRA_DIST): Add lchown.h.
56967         * modules/long-options (EXTRA_DIST): Add long-options.h.
56968         * modules/lstat (EXTRA_DIST): Add lstat.h.
56969         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
56970         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
56971         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
56972         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
56973         * modules/memxor (EXTRA_DIST): Add memxor.h.
56974         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56975         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56976         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56977         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56978         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56979         * modules/physmem (EXTRA_DIST): Add physmem.h.
56980         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56981         * modules/posixver (EXTRA_DIST): Add posixver.h.
56982         * modules/quote (EXTRA_DIST): Add quote.h.
56983         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56984         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56985         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56986         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56987         regex_internal.h regexec.c.
56988         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56989         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56990         * modules/same (EXTRA_DIST): Add same.h.
56991         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56992         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56993         * modules/savedir (EXTRA_DIST): Add savedir.h.
56994         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56995         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56996         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56997         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56998         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56999         * modules/strdup (EXTRA_DIST): Add strdup.h.
57000         * modules/strftime (EXTRA_DIST): Add strftime.h.
57001         * modules/strndup (EXTRA_DIST): Add strndup.h.
57002         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57003         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57004         * modules/time_r (EXTRA_DIST): Add time_r.h.
57005         * modules/timespec (EXTRA_DIST): Add timespec.h.
57006         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57007         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57008         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57009         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57010         * modules/userspec (EXTRA_DIST): Add userspec.h.
57011         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57012         * modules/utimens (EXTRA_DIST): Add utimens.h.
57013         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57014         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57015         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57016         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57017         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57018         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57019         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57020         * modules/yesno (EXTRA_DIST): Add yesno.h.
57021
57022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57023
57024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57025
57026         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57027         * m4/dev-ino.m4, same-inode.m4: Remove.
57028
57029         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57030         * m4/acl.m4 (AC_FUNC_ACL):
57031         * m4/backupfile.m4 (gl_BACKUPFILE):
57032         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57033         * m4/canon-host.m4 (gl_CANON_HOST):
57034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57037         * m4/cloexec.m4 (gl_CLOEXEC):
57038         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57039         * m4/closeout.m4 (gl_CLOSEOUT):
57040         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57041         * m4/dirname.m4 (gl_DIRNAME):
57042         * m4/exclude.m4 (gl_EXCLUDE):
57043         * m4/exitfail.m4 (gl_EXITFAIL):
57044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57045         * m4/file-type.m4 (gl_FILE_TYPE):
57046         * m4/filemode.m4 (gl_FILEMODE):
57047         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57048         * m4/fpending.m4 (gl_FUNC_FPENDING):
57049         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57050         * m4/fts.m4 (gl_FUNC_FTS):
57051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57052         * m4/getdate.m4 (gl_GETDATE):
57053         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57054         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57055         * m4/getpass.m4 (gl_FUNC_GETPASS):
57056         * m4/gettime.m4 (gl_GETTIME):
57057         * m4/getugroups.m4 (gl_GETUGROUPS):
57058         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57060         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57061         * m4/hash.m4 (gl_HASH):
57062         * m4/idcache.m4 (gl_IDCACHE):
57063         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57064         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57065         * m4/long-options.m4 (gl_LONG_OPTIONS):
57066         * m4/lstat.m4 (gl_FUNC_LSTAT):
57067         * m4/md5.m4 (gl_MD5):
57068         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57069         * m4/memcoll.m4 (gl_MEMCOLL):
57070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57072         * m4/memxor.m4 (gl_MEMXOR):
57073         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57075         * m4/modechange.m4 (gl_MODECHANGE):
57076         * m4/mountlist.m4 (gl_MOUNTLIST):
57077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57078         * m4/openat.m4 (gl_FUNC_OPENAT):
57079         * m4/pathmax.m4 (gl_PATHMAX):
57080         * m4/physmem.m4 (gl_PHYSMEM):
57081         * m4/posixtm.m4 (gl_POSIXTM):
57082         * m4/posixver.m4 (gl_POSIXVER):
57083         * m4/quote.m4 (gl_QUOTE):
57084         * m4/quotearg.m4 (gl_QUOTEARG):
57085         * m4/readtokens.m4 (gl_READTOKENS):
57086         * m4/readutmp.m4 (gl_READUTMP):
57087         * m4/regex.m4 (gl_REGEX):
57088         * m4/safe-read.m4 (gl_SAFE_READ):
57089         * m4/safe-write.m4 (gl_SAFE_WRITE):
57090         * m4/same.m4 (gl_SAME):
57091         * m4/save-cwd.m4 (gl_SAVE_CWD):
57092         * m4/savedir.m4 (gl_SAVEDIR):
57093         * m4/settime.m4 (gl_SETTIME):
57094         * m4/sha1.m4 (gl_SHA1):
57095         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57096         * m4/stat-macros.m4 (gl_STAT_MACROS):
57097         * m4/stat-time.m4 (gl_STAT_TIME):
57098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57099         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57100         * m4/strdup.m4 (gl_FUNC_STRDUP):
57101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57102         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57103         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57104         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57105         * m4/time_r.m4 (gl_TIME_R):
57106         * m4/timespec.m4 (gl_TIMESPEC):
57107         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57108         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57109         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57110         * m4/userspec.m4 (gl_USERSPEC):
57111         * m4/utimecmp.m4 (gl_UTIMECMP):
57112         * m4/utimens.m4 (gl_UTIMENS):
57113         * m4/xalloc.m4 (gl_XALLOC):
57114         * m4/xgetcwd.m4 (gl_XGETCWD):
57115         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57116         * m4/xreadlink.m4 (gl_XREADLINK):
57117         * m4/xstrtod.m4 (gl_XSTRTOD):
57118         * m4/yesno.m4 (gl_YESNO):
57119         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57120         to get the necessary .h files and whatnot.
57121
57122 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57123             Bruno Haible  <bruno@clisp.org>
57124
57125         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57126         /bin/sh understanding of '!' conditional negation.
57127
57128 2006-08-21  Jim Meyering  <jim@meyering.net>
57129
57130         * modules/openat (Depends-on): Really alphabetize.
57131
57132         * modules/acl (Depends-on): Add error and quote.
57133
57134         * check-module (find_included_lib_files): Add at-func.c to the
57135         ok-to-include-more-than-once white list.
57136
57137         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57138
57139 2006-08-21  Bruno Haible  <bruno@clisp.org>
57140
57141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57142         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57143         Reported by Martin Lambers <marlam@marlam.de>.
57144
57145 2006-08-21  Bruno Haible  <bruno@clisp.org>
57146
57147         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57148         specify an installation location, don't emit a noinst_LIBRARIES or
57149         noinst_LTLIBRARIES assignment.
57150
57151 2006-08-21  Bruno Haible  <bruno@clisp.org>
57152
57153         BeOS portability.
57154         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57155         BeOS has mbrtowc() but no <wctype.h>.
57156
57157 2006-08-21  Bruno Haible  <bruno@clisp.org>
57158
57159         BeOS portability.
57160         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57161         exist.
57162
57163 2006-08-21  Bruno Haible  <bruno@clisp.org>
57164
57165         BeOS portability.
57166         * lib/mbchar.h: Include <wctype.h> only if it exists.
57167
57168 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57169
57170         Remove files that are no longer needed by their respective modules.
57171         * m4/obstack.m4: Remove.
57172         * m4/strerror_r.m4: Remove.
57173         * m4/uint32_t.m4: Remove.
57174         * m4/uintptr_t.m4: Remove.
57175         * m4/ullong_max.m4: Remove.
57176         * m4/xstrtoimax.m4: Remove.
57177         * m4/xstrtoumax.m4: Remove.
57178
57179         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57180         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57181         dependencies now capture this.
57182
57183         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57184         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57185         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57186         * m4/human.m4 (gl_HUMAN): Likewise.
57187         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57188         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57189
57190         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57191
57192         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57193         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57194         stdint.
57195         * m4/human.m4 (gl_HUMAN): Likewise.
57196         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57197         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57200         * m4/xstrtol (gl_XSTRTOL): Likewise.
57201
57202         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57203         AC_TYPE_LONG_LONG_INT.
57204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57206         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57208
57209         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57210         on stdbool.
57211
57212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57213         (gl_PREREQ_XSTRTOUL): Remove.
57214
57215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57216
57217         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57218         mode.
57219
57220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         Add and change modules to make it easier for coreutils to use
57223         gnulib-tool.
57224         * modules/backupfile (Files): Remove m4/d-ino.m4.
57225         (Depends-on): Add d-ino.
57226         * modules/cycle-check (Depends-on): Add stdint.
57227         (lib_SOURCES): Add cycle-check.h.
57228         * modules/d-ino: New module.
57229         * modules/d-type: New module.
57230         * modules/error (Files): Remove m4/strerror_r.m4.
57231         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57232         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57233         m4/inttypes_h.m4, m4/uintmax_t.m4.
57234         (Depends-on): Add stdint.
57235         (lib_SOURCES): Add fsusage.h.
57236         * modules/getcwd (Files): Remove d-ino.m4.
57237         (Depends-on): Add d-ino.
57238         * modules/getndelim2 (Depends-on): Add stdint.
57239         * modules/glob (Files): Remove m4/d-type.m4.
57240         (Depends-on): Add d-type.
57241         * modules/host-os: New module.
57242         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
57243         m4/inttypes_h.m4, m4/uintmax_t.m4.
57244         * Depends-on: Add stdint.
57245         (lib_SOURCES): Add human.h.
57246         * modules/inttostr (Files): Remove m4/intmax_t.m4,
57247         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
57248         m4/uintmax_t.m4, m4/ulonglong.m4.
57249         (Depends-on): Add stdint.
57250         (EXTRA_DIST): Add inttostr.h.
57251         * modules/lchmod: New module.
57252         * modules/link-follow: New module.
57253         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
57254         (Depends-on): Add lchmod.
57255         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
57256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
57257         (Depends-on): Add stdint.
57258         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
57259         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
57260         (Depends-on): Add stdint.
57261         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
57262         * modules/perl: New module.
57263         * modules/regex (Depends-on): Add stdint.
57264         * modules/rmdir-errno: New module.
57265         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57266         m4/intmax_t.m4.
57267         (Depends-on): Add stdint.
57268         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
57269         m4/uintmax_t.m4.
57270         (Depends-on): Add stdint.
57271         * modules/unlink-busy: New module.
57272         * modules/utimecmp (Depends-on): Add stdint.
57273         * modules/uptime: New module.
57274         * modules/winsz-ioctl: New module.
57275         * modules/winsz-termios: New module.
57276         * modules/xnanosleep (Depends-on): Add nanosleep.
57277         * modules/ullong_max: Remove.
57278         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
57279         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
57280         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
57281         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
57282         (Depends-on): Add inttypes.
57283         (lib_SOURCES): Add xstrtol.h.
57284         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
57285         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
57286         * MODULES.html.sh: Move 'assert' into the assert section.
57287         Move 'dummy' into the linking section.
57288         Remove ullong_max.
57289         Add section for compatibility checks for POSIX:2001 functions,
57290         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
57291         winsz-ioctl, and winsz-termios into it.
57292         Add lchmod.
57293         Add top-level Misc section and put host-os, perl, and uptime
57294         into it.
57295
57296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57297
57298         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
57299         now assume the stdint module.  Do not include inttypes.h.
57300         * lib/fsusage.h: Likewise.
57301         * lib/getndelim2.c: Likewise.
57302         * lib/human.h: Likewise.
57303         * lib/inttostr.h: Likewise.
57304         * lib/obstack.c: Likewise.
57305         * lib/regex_internal.h: Likewise.
57306         * lib/tempname.c: Likewise.
57307         * lib/utimecmp.c: Likewise.
57308         * lib/xstrtol.h: Likewise.
57309
57310         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
57311
57312         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
57313         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
57314         * lib/xtime.h: Likewise.
57315
57316 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * modules/openat (Files): Add lib/fchmodat.c.
57319         Fixes problem reported by Jay Youngman.
57320
57321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57322
57323         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
57324         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
57325
57326 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
57327             Bruno Haible  <bruno@clisp.org>
57328
57329         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
57330         and is a script that invokes bison. Tighten the code. Add comments.
57331
57332 2006-08-18  Jim Meyering  <jim@meyering.net>
57333
57334         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
57335         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
57336         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
57337         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
57338
57339 2006-08-18  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/bison-i18n: New file.
57342         * MODULES.html.sh (Internationalization functions): Add it.
57343
57344 2006-08-18  Bruno Haible  <bruno@clisp.org>
57345
57346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
57347         sys/statvfs.h. When getmntinfo was found, check its declaration and
57348         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
57349
57350 2006-08-18  Bruno Haible  <bruno@clisp.org>
57351
57352         * m4/bison-i18n.m4: New file, from bison.
57353
57354 2006-08-18  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
57357         (ME_DUMMY): Treat "kernfs" as a dummy.
57358         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
57359
57360 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         Update from coreutils.
57363
57364         2006-08-15  Jim Meyering  <jim@meyering.net>
57365
57366         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
57367
57368         2006-01-17  Jim Meyering  <jim@meyering.net>
57369
57370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
57371
57372         2006-01-11  Jim Meyering  <jim@meyering.net>
57373
57374         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
57375         Check for the lchmod function.
57376
57377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57378
57379         Update from coreutils.
57380
57381         * lib/__fpending.h: Add copyright notice.
57382         * lib/fprintftime.h: Likewise.
57383         * lib/savedir.c: Use (C) in copyright notice.
57384         * lib/savedir.h: Likewise.
57385
57386         2006-08-15  Jim Meyering  <jim@meyering.net>
57387
57388         * lib/at-func.c: New file, with the logic of all emulated at-functions.
57389         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
57390         in support of the EXPECTED_ERRNO macro.
57391         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
57392         definitions.  Instead, define the appropriate symbols and include
57393         "at-func.c".
57394         * lib/mkdirat.c (mkdirat): Likewise.
57395         * lib/fchmodat.c (fchmodat): Likewise.
57396         (ENOSYS): Remove definition.
57397         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
57398         it.  Don't include "unistd--.h" -- it wasn't ever used.
57399
57400         2006-01-17  Jim Meyering  <jim@meyering.net>
57401
57402         Rewrite fts.c not to change the current working directory,
57403         by using openat, fstatat, fdopendir, etc..
57404
57405         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
57406         (HAVE_OPENAT_SUPPORT): Define.
57407         [_LIBC] (fchdir): Don't undef or define; no longer used.
57408         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
57409         Now, this `function' always succeeds, and consumes its file descriptor
57410         parameter -- so callers must not close such FDs.  Update callers.
57411         (diropen_fd, opendirat, cwd_advance_fd): New functions.
57412         (diropen): Add parameter, SP.  Adjust all callers.
57413         Implement using diropen_fd, rather than open.
57414         (fts_open): Initialize new member, fts_cwd_fd.
57415         Remove fts_rft-setting code.
57416         (fts_close): Close fts_cwd_fd, if necessary.
57417         (__opendir2): Define in terms of opendir or opendirat,
57418         depending on whether the FST_NOCHDIR flag is set.
57419         (fts_build): Since fts_safe_changedir consumes its FD, and since
57420         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
57421         and close the dup'd file descriptor upon failure.
57422         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
57423         (fts_safe_changedir): Tweak semantics to reflect that this function
57424         now calls cwd_advance_fd and hence consumes its FD argument.
57425         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
57426         [struct FTS] (fts_rft): Remove now-unused member.
57427         [struct FTS] (fts_cycle.state): Improve comment.
57428
57429         * lib/openat.c (openat_needs_fchdir): New function.
57430         * lib/openat.h (openat_needs_fchdir): Declare it.
57431
57432 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
57435         Problem and fix reported by Pádraig Brady in
57436         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
57437
57438 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57439
57440         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
57441
57442 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57443
57444         * lib/memcoll.c (memcoll): Optimize for the common case where the
57445         arguments are bytewise equal.
57446
57447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57448
57449         * doc/regexprops-generic.texi: Add a copyright notice.
57450
57451 2006-08-15  Bruno Haible  <bruno@clisp.org>
57452
57453         * modules/tmpdir (License): Change to LGPL.
57454
57455 2006-08-15  Bruno Haible  <bruno@clisp.org>
57456
57457         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
57458         module.
57459
57460 2006-08-14  Simon Josefsson  <jas@extundo.com>
57461
57462         * config/srclist.txt: Add gnupload.
57463
57464 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57465
57466         Change copyright notice from LGPL 2 to GPL 2, since that's the
57467         standard form used in the gnulib repository.
57468         * tests/test-lock.c: Likewise.
57469         * tests/test-stdint.c: Likewise.
57470         * tests/test-tls.c: Likewise.
57471
57472         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
57473         prelude-manager.  User shorter URLs for GNU projects, without '?'.
57474         Add copyright notice.
57475
57476         * check-module: Add copyright notice.  Output a copyright
57477         notice if "--version" is specified.
57478         * modules/COPYING: New file.
57479         * tests/test-getaddrinfo.c: Add copyright notice.
57480         * tests/test-verify.c: Likewise.
57481
57482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57483
57484         Change copyright notice from LGPL 2 to GPL 2, since that's the
57485         standard form used in the gnulib repository.
57486         * lib/lock.c: LGPL -> GPL.
57487         * lib/lock.h: Likewise.
57488         * lib/strnlen1.c: Likewise.
57489         * lib/strnlen1.h: Likewise.
57490         * lib/tls.c: Likewise.
57491         * lib/tls.h: Likewise.
57492         * lib/tmpdir.c: Likewise.
57493
57494         * lib/TODO: Remove; this belongs only in coreutils.
57495
57496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         Add copyright notices to long-enough files that lack them, since
57499         otherwise the files aren't clearly free.  Use the same notice that
57500         getdate.texi already uses.
57501         * doc/alloca-opt.texi: Add copyright notice.
57502         * doc/alloca.texi: Likewise.
57503         * doc/ctime.texi: Likewise.
57504         * doc/functions.texi: Likewise.
57505         * doc/gcd.texi: Likewise.
57506         * doc/gnulib-tool.texi: Likewise.
57507         * doc/inet_ntoa.texi: Likewise.
57508         * doc/visibility.texi: Likewise.
57509
57510         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
57511         * doc/quote.texi: Add copyright notice.
57512
57513         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
57514         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
57515         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
57516         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
57517         is now obsolete, and give a pointer to the Sun list.
57518         Add copyright notice.
57519
57520 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * config/srclistvars.sh: Add copyright notice.
57523
57524 2006-08-14  Eric Blake  <ebb9@byu.net>
57525
57526         Import the following change from libc:
57527
57528         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
57529
57530         Upstream bug 2997.
57531         * lib/misc/error.c: Add space between program name and message if file
57532         name is missing.
57533
57534 2006-08-12  Karl Berry  <karl@gnu.org>
57535
57536         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
57537         remove, these originate in gnulib now.
57538
57539 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57540
57541         * doc/Makefile (standards.info standards.html standards.dvi):
57542         Also depend on make-stds.texi.
57543
57544 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
57547         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
57548
57549         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
57550         in wchar_t.  Problem reported by Eric Blake.
57551
57552         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
57553         LEN is smaller than SIZE.  Suggested by Bruno Haible.
57554         Also, help the compiler to keep LEN in a register.
57555
57556 2006-08-11  Eric Blake  <ebb9@byu.net>
57557
57558         * users.txt: Sort.  Add tar.
57559
57560 2006-08-11  Bruno Haible  <bruno@clisp.org>
57561
57562         * users.txt: New file.
57563
57564 2006-08-11  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
57567         before <wchar.h>. Needed for OSF/1 and BSD/OS.
57568
57569 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * modules/snprintf (Depends-on): Remove minmax.
57572         (Maintainer): Add self and Bruno.
57573
57574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57575
57576         * lib/.cppi-disable: Add snprintf.h, socket_.h.
57577         * lib/snprintf.c: Include <errno.h> and <limits.h>.
57578         (EOVERFLOW): Define if the system does not.
57579         Do not include "minmax.h"; it wasn't used.
57580         (snprintf): Don't assume size_t promotes to an unsigned type.
57581         Fix bug when generated string was too long for the buffer: the
57582         buffer's contents are supposed to be the initial prefix of the
57583         output.  Don't assume vasnprintf returns EOVERFLOW if the size
57584         exceeds INT_MAX; do the check ourselves.
57585
57586         Import the following changes from libc:
57587
57588         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
57589
57590         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
57591         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
57592         set wc to the byte which couldn't be converted.
57593         (re_string_reconstruct): Don't clear valid_raw_len before calling
57594         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
57595         tip_context using re_string_context_at.
57596
57597         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
57598
57599         * lib/posix/regex.h: g++ still cannot handled [restrict].
57600
57601         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
57602
57603         * lib/posix/regex.h: Remove special handling for VMS.
57604
57605 2006-08-10  Jim Meyering  <jim@meyering.net>
57606
57607         * modules/same-inode: New module.
57608         * modules/dev-ino: New module.
57609         * modules/cycle-check: Depend on these modules, rather than simply
57610         including their .h files.
57611         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
57612         required via m4/cycle-check.m4.
57613         * modules/same: Depend on new same-inode module, rather than
57614         including same-inode.h.
57615         * modules/chdir-safer: New file.
57616
57617         * modules/chown (Depends-on): Add stat-macros.
57618
57619 2006-08-10  Jim Meyering  <jim@meyering.net>
57620
57621         * m4/cycle-check.m4: New file.
57622         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
57623         * m4/dev-ino.m4, m4/same-inode.m4: New files.
57624
57625 2006-08-10  Eric Blake  <ebb9@byu.net>
57626
57627         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
57628         in from original proposal.
57629
57630 2006-08-10  Eric Blake  <ebb9@byu.net>
57631         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57632
57633         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
57634         namespace.
57635
57636 2006-08-10  Bruno Haible  <bruno@clisp.org>
57637
57638         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
57639         as well.
57640
57641 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         Sync from coreutils.
57644
57645         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
57646
57647         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
57648         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
57649
57650 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57651
57652         * modules/restrict: Remove; no longer needed now that we assume
57653         Autoconf 2.59 or later.
57654         * MODULES.html.sh: Remove 'restrict'.
57655         * modules/argp (Depends-on): Remove 'restrict'.
57656         * modules/base64 (Depends-on): Likewise.
57657         * modules/gc (Depends-on): Likewise.
57658         * modules/getaddrinfo (Depends-on): Likewise.
57659         * modules/glob (Depends-on): Likewise.
57660         * modules/inet_ntop (Depends-on): Likewise.
57661         * modules/inet_pton (Depends-on): Likewise.
57662         * modules/memxor (Depends-on): Likewise.
57663         * modules/regex (Depends-on): Likewise.
57664         * modules/strtok_r (Depends-on): Likewise.
57665         * modules/time_r (Depends-on): Likewise.
57666
57667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
57670         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
57671         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57672         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
57673         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57674         * m4/memxor.m4 (gl_MEMXOR): Likewise.
57675         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
57676         gl_C_RESTRICT replaced by AC_C_RESTRICT.
57677
57678         Merge from coreutils.
57679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
57680         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
57681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57682         * m4/time_r.m4 (gl_TIME_R): Likewise.
57683
57684 2006-08-09  Karl Berry  <karl@gnu.org>
57685
57686         * config/srclist.txt: no more gettext-tools, per Bruno.
57687
57688 2006-08-08  Eric Blake  <ebb9@byu.net>
57689
57690         * modules/verror: New module.
57691         * MODULES.html.sh: Document it.
57692
57693 2006-08-08  Eric Blake  <ebb9@byu.net>
57694
57695         * lib/verror.h, lib/verror.c: New files.
57696
57697 2006-08-08  Eric Blake  <ebb9@byu.net>
57698
57699         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
57700         verror_at_line output complies with GNU Coding Standards even when
57701         file is NULL.
57702
57703 2006-08-07  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
57706         versions of AIX.
57707         Reported by Ralf Wildenhues.
57708
57709 2006-08-07  Bruno Haible  <bruno@clisp.org>
57710
57711         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
57712         in an AC_DEFUN. Needed so that the autoconf snippets can use
57713         AC_REQUIRE.
57714
57715 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57716
57717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57718         Initialize pkgdata_DATA.
57719         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
57720         overriding it.
57721
57722 2006-08-06  Eric Blake  <ebb9@byu.net>
57723
57724         * lib/error.h: Fold in some upstream changes from glibc.
57725         * lib/error.c: Likewise.
57726
57727 2006-08-04  Bruno Haible  <bruno@clisp.org>
57728
57729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57730         Make the mostlyclean-local rule depend on mostlyclean-generic.
57731         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
57732
57733 2006-07-31  Bruno Haible  <bruno@clisp.org>
57734
57735         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
57736         <stdlib.h>, <string.h>.
57737
57738 2006-07-30  Bruno Haible  <bruno@clisp.org>
57739
57740         * modules/readlink (License): Change to LGPL.
57741
57742 2006-07-30  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/javaversion (Makefile.am): Distribute javaversion.java and
57745         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
57746         set PKGDATADIR to point to it.
57747
57748 2006-07-30  Bruno Haible  <bruno@clisp.org>
57749
57750         * modules/csharpexec (configure.ac): Comment out macro invocation.
57751         * modules/javaexec (configure.ac): Likewise.
57752         * modules/javacomp-script (configure.ac): Likewise.
57753
57754         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
57755
57756 2006-07-30  Bruno Haible  <bruno@clisp.org>
57757
57758         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
57759         linked-list.
57760
57761 2006-07-30  Bruno Haible  <bruno@clisp.org>
57762
57763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
57764
57765 2006-07-30  Bruno Haible  <bruno@clisp.org>
57766
57767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57768         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
57769         get removed.
57770
57771 2006-07-29  Bruno Haible  <bruno@clisp.org>
57772
57773         Make it possible for gnulib-tool to work with locally modified or
57774         augmented gnulib repositories.
57775         * gnulib-tool (func_usage): Document --local-dir option.
57776         (local_gnulib_dir): New variable.
57777         Handle --local-dir option.
57778         (func_lookup_file): New function.
57779         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
57780         (func_get_description, func_get_filelist, func_get_description,
57781         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
57782         func_get_automake_snippet, func_get_include_directive,
57783         func_get_license, func_get_maintainer): Use func_lookup_file.
57784         (func_import, func_create_testdir): Use func_lookup_file.
57785
57786 2006-07-29  Bruno Haible  <bruno@clisp.org>
57787
57788         * modules/setenv (Depends-on): Add unistd.
57789
57790 2006-07-29  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
57793
57794 2006-07-29  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
57797
57798 2006-07-29  Bruno Haible  <bruno@clisp.org>
57799
57800         * gnulib-tool (import, update): If there is no Makefile.am, look at
57801         aclocal.m4, instead of bailing out.
57802
57803 2006-07-29  Bruno Haible  <bruno@clisp.org>
57804
57805         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
57806         Categorize the options by when they are useful.
57807
57808 2006-07-29  Bruno Haible  <bruno@clisp.org>
57809
57810         * gnulib-tool (func_usage): Document option --no-libtool.
57811         Handle option --no-libtool.
57812         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
57813         for changed semantics of $libtool variable.
57814         (func_import): Likewise. If libtool is not used, show this through
57815         an option --no-libtool.
57816         (func_create_testdir): Update.
57817
57818 2006-07-29  Bruno Haible  <bruno@clisp.org>
57819
57820         * gnulib-tool (func_import): Extend error message about missing
57821         --doc-base.
57822
57823 2006-07-29  Bruno Haible  <bruno@clisp.org>
57824
57825         * gnulib-tool (func_import): Don't create the $docbase directory if
57826         there is no file to store there.
57827
57828 2006-07-29  Bruno Haible  <bruno@clisp.org>
57829
57830         * gnulib-tool (autoconf_minversion): If a --dir option is given and
57831         relevant, look for configure.ac there, not in the current directory.
57832         Also use a simple search for AC_PREREQ, not "autoconf --trace".
57833
57834 2006-07-29  Bruno Haible  <bruno@clisp.org>
57835
57836         * gnulib-tool (SORT): New variable.
57837         (func_usage): Undocument --assume-autoconf option.
57838         Remove --assume-autoconf option handling.
57839         (autoconf_minversion): Determine from the contents of configure.ac.
57840         (func_import): Remove autoconf_minversion handling.
57841         Suggested by Eric Blake.
57842
57843 2006-07-29  Bruno Haible  <bruno@clisp.org>
57844
57845         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
57846
57847 2006-07-29  Bruno Haible  <bruno@clisp.org>
57848
57849         * config/srclist.txt (*setenv.[ch]): Remove rules.
57850
57851 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57852
57853         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
57854
57855 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57856
57857         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
57858         arpa/inet.h.
57859
57860 2006-07-28  Simon Josefsson  <jas@extundo.com>
57861
57862         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
57863         * modules/inet_pton (Depends-on): Likewise.
57864
57865 2006-07-28  Simon Josefsson  <jas@extundo.com>
57866
57867         * m4/netinet_in_h.m4: New file.
57868
57869 2006-07-28  Simon Josefsson  <jas@extundo.com>
57870
57871         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
57872         #include's.
57873
57874 2006-07-28  Simon Josefsson  <jas@extundo.com>
57875
57876         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
57877         #include's.
57878
57879 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
57880
57881         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
57882         setgid on directories only if they set these bits.
57883         * lib/modechange.h: Remove obsolete comment about masks.
57884
57885 2006-07-28  Eric Blake  <ebb9@byu.net>
57886
57887         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
57888         macro expansion.
57889
57890 2006-07-28  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
57893
57894 2006-07-28  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
57897
57898 2006-07-28  Bruno Haible  <bruno@clisp.org>
57899
57900         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57902         Define fallbacks.
57903         Avoids link error on FreeBSD 4.x.
57904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57905
57906         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
57907         encoding.
57908         * lib/mbswidth.c (iswcntrl): Likewise.
57909
57910 2006-07-27  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
57913         test.
57914
57915 2006-07-27  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
57918         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
57919         defined.
57920
57921 2006-07-26  Eric Blake  <ebb9@byu.net>
57922
57923         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
57924
57925 2006-07-26  Eric Blake  <ebb9@byu.net>
57926
57927         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
57928         like mingw that lack mkstemp.
57929         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
57930         avoid compilation warning on mingw.
57931
57932 2006-07-26  Bruno Haible  <bruno@clisp.org>
57933
57934         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
57935         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
57936         INT_FAST*_MIN, INTPTR_MIN.
57937
57938 2006-07-25  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/version-etc (Depends-on): Add stdarg.
57941
57942 2006-07-25  Bruno Haible  <bruno@clisp.org>
57943
57944         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
57945         complex commands.
57946
57947 2006-07-25  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
57950         defined in <stdarg.h> or config.h.
57951
57952 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
57955         (gl_STDIO_SAFER): Remove.
57956
57957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * MODULES.html.sh (File stream based Input/Output):
57960         Add fopen-safer, tmpfile-safer; remove stdio-safer.
57961         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
57962         * modules/fopen-safer, modules/tmpfile-safer: New files.
57963         * modules/stdio-safer: Remove.
57964
57965 2006-07-24  Bruno Haible  <bruno@clisp.org>
57966
57967         * modules/tmpdir: New file.
57968         * MODULES.html.sh (File system functions): Add it.
57969
57970 2006-07-24  Bruno Haible  <bruno@clisp.org>
57971
57972         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
57973         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57974
57975 2006-07-24  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/clean-temp: New file.
57978
57979 2006-07-24  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/tmpdir.m4: New file, from GNU gettext.
57982
57983 2006-07-24  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/tmpdir.h: New file, from GNU gettext.
57986         * lib/tmpdir.c: New file, from GNU gettext.
57987
57988 2006-07-24  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/clean-temp.h: New file, from GNU gettext.
57991         * lib/clean-temp.c: New file, from GNU gettext.
57992
57993 2006-07-23  Eric Blake  <ebb9@byu.net>
57994
57995         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57996         (Depends-on): Add binary-io.
57997
57998 2006-07-23  Eric Blake  <ebb9@byu.net>
57999
58000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58001
58002 2006-07-23  Eric Blake  <ebb9@byu.net>
58003
58004         * lib/tmpfile-safer.c: New file.
58005         * lib/stdio-safer.h (fopen_safer): Add prototype.
58006         * lib/stdio--.h (tmpfile): Make safer.
58007
58008 2006-07-23  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58011         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58012         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58013         gl_linked_remove_at): Use it.
58014
58015 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58016         and Simon Josefsson <jas@extundo.com>
58017
58018         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58019
58020         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58021
58022 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58023
58024         * modules/close-stream: New file.
58025         * modules/closeout (Description): Make it clear that it exits
58026         with a diagnostic on error.
58027         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58028         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58029
58030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         * m4/close-stream.m4: New file.
58033
58034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * lib/close-stream.c, lib/close-stream.h: New files.
58037
58038 2006-07-22  Bruno Haible  <bruno@clisp.org>
58039
58040         Merge from GNU gettext 0.15.
58041
58042         2006-05-01  Bruno Haible  <bruno@clisp.org>
58043
58044                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58045
58046         2006-07-22  Bruno Haible  <bruno@clisp.org>
58047
58048                 * modules/javaversion: New file.
58049                 * MODULES.html.sh (Java): Add javaversion.
58050
58051         2006-03-12  Bruno Haible  <bruno@clisp.org>
58052
58053                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58054
58055         2005-12-04  Bruno Haible  <bruno@clisp.org>
58056
58057                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58058                 (untested).
58059
58060         2006-06-21  Bruno Haible  <bruno@clisp.org>
58061
58062                 Avoid warnings from recent versions of mcs.
58063                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58064                 -o, -L, -r any more. Use options documented since mcs-1.0
58065                 instead. Similarly for -g.
58066
58067         2005-12-04  Bruno Haible  <bruno@clisp.org>
58068
58069                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58070                 .resources, not .resource.
58071
58072         2005-07-09  Bruno Haible  <bruno@clisp.org>
58073
58074                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58075                 add a .dll suffix.
58076                 Reported by Mark Junker <mjscod@gmx.de>.
58077
58078         2006-07-22  Bruno Haible  <bruno@clisp.org>
58079
58080                 * modules/gettext: Upgrade to gettext-0.15.
58081                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58082                 m4/visibility.m4.
58083                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58084
58085 2006-07-22  Bruno Haible  <bruno@clisp.org>
58086
58087         Merge from GNU gettext 0.15.
58088
58089         2006-03-25  Bruno Haible  <bruno@clisp.org>
58090
58091                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58092
58093         2006-07-21  Bruno Haible  <bruno@clisp.org>
58094
58095                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58096                 "1.1".
58097
58098         2006-05-09  Bruno Haible  <bruno@clisp.org>
58099
58100                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58101                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58102                 for the conftestver execution.
58103
58104         2006-05-01  Bruno Haible  <bruno@clisp.org>
58105
58106                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58107                 optional target-version argument. Verify that the compiler
58108                 groks source of the specified source-version, or add -source
58109                 option as necessary. Verify that the compiler produces
58110                 bytecode in the specified target-version, or add -target and
58111                 -source options as necessary. Make the result of the test
58112                 available as variable CONF_JAVAC. Also log error output in
58113                 config.log.
58114
58115         2006-03-11  Bruno Haible  <bruno@clisp.org>
58116
58117                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58118
58119         2006-05-09  Bruno Haible  <bruno@clisp.org>
58120
58121                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58122                 CLASSPATH_SEPARATOR to a semicolon.
58123
58124         2006-03-12  Bruno Haible  <bruno@clisp.org>
58125
58126                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58127                 available as variable CONF_JAVA, for subsequent autoconf
58128                 tests. Also log error output in config.log.
58129
58130         2006-07-19  Bruno Haible  <bruno@clisp.org>
58131
58132                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58133                 that getline works on glibc2 systems. Needed to avoid trouble
58134                 in relocatable.c.
58135                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58136
58137         2005-12-04  Bruno Haible  <bruno@clisp.org>
58138
58139                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58140                 launcher (untested).
58141
58142         2005-12-04  Bruno Haible  <bruno@clisp.org>
58143
58144                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58145
58146         2006-07-22  Bruno Haible  <bruno@clisp.org>
58147
58148                 * gettext.m4: Update from GNU gettext-0.15.
58149                 * nls.m4: Likewise.
58150                 * po.m4: Likewise.
58151                 * inttypes-pri.m4: Likewise.
58152                 * inttypes-h.m4: Renamed from inttypes.m4.
58153                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58154
58155 2006-07-22  Bruno Haible  <bruno@clisp.org>
58156
58157         Merge from GNU gettext 0.15.
58158
58159         2005-07-05  Bruno Haible  <bruno@clisp.org>
58160
58161                 * printf-args.c (printf_fetchargs): Work around broken
58162                 definition of wint_t on mingw.
58163
58164         2005-02-12  Bruno Haible  <bruno@clisp.org>
58165
58166                 * xallocsa.h: Add extern "C" for C++.
58167
58168         2006-05-17  Bruno Haible  <bruno@clisp.org>
58169
58170                 Cygwin portability.
58171                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58172
58173         2006-04-30  Bruno Haible  <bruno@clisp.org>
58174
58175                 * progreloc.c: Include <mach-o/dyld.h> if available.
58176                 (find_executable): Use _NSGetExecutablePath when possible.
58177
58178         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58179
58180                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58181                 function.
58182
58183         2005-12-29  Bruno Haible  <bruno@clisp.org>
58184
58185                 * progreloc.c (set_program_name_and_installdir): Fix
58186                 compilation error.
58187
58188         2005-12-04  Bruno Haible  <bruno@clisp.org>
58189
58190                 Cygwin portability.
58191                 * progreloc.c: Include <windows.h> also on Cygwin.
58192                 (find_executable): Add support for Cygwin.
58193                 (set_program_name_and_installdir): Handle also platforms with
58194                 nonempty EXEEXT.
58195
58196         2006-07-11  Bruno Haible  <bruno@clisp.org>
58197
58198                 * javacomp.c: Fix a comment.
58199                 Reported by Jim Meyering.
58200
58201         2006-04-30  Bruno Haible  <bruno@clisp.org>
58202
58203                 * javacomp.h (compile_java_class): Add source_version,
58204                 target_version arguments.
58205                 * javacomp.c: Rewritten to choose only a compiler that
58206                 respects the specified source_version and target_version.
58207
58208         2006-06-27  Bruno Haible  <bruno@clisp.org>
58209
58210                 Assume correct S_ISDIR macro.
58211                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58212
58213         2006-07-22  Bruno Haible  <bruno@clisp.org>
58214
58215                 * javaversion.h: New file, from GNU gettext.
58216                 * javaversion.c: New file, from GNU gettext.
58217                 * javaversion.java: New file, from GNU gettext.
58218                 * javaversion.class: New file, from GNU gettext.
58219
58220         2006-05-17  Bruno Haible  <bruno@clisp.org>
58221
58222                 Cygwin portability.
58223                 * javaexec.c (execute_java_class): Test for jview program
58224                 also on Cygwin.
58225
58226         2006-04-09  Bruno Haible  <bruno@clisp.org>
58227
58228                 * fatal-signal.c: Don't include string.h.
58229                 (at_fatal_signal): Use a copying loop instead of memcpy.
58230
58231         2005-12-04  Bruno Haible  <bruno@clisp.org>
58232
58233                 * csharpexec.c: Add support for 'clix' launcher (untested).
58234                 (execute_csharp_using_sscli): New function.
58235                 (execute_csharp_program): Call it.
58236
58237         2006-06-21  Bruno Haible  <bruno@clisp.org>
58238
58239                 Avoid warnings from recent versions of mcs.
58240                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
58241                 -o, -L, -r any more. Use options documented since mcs-1.0
58242                 instead. Similarly for -g.
58243
58244         2005-07-09  Bruno Haible  <bruno@clisp.org>
58245
58246                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
58247                 add a .dll suffix.
58248                 Reported by Mark Junker <mjscod@gmx.de>.
58249
58250         2006-06-17  Bruno Haible  <bruno@clisp.org>
58251
58252                 * config.charset: Update for NetBSD 3.0.
58253
58254         2006-05-17  Bruno Haible  <bruno@clisp.org>
58255
58256                 Cygwin portability.
58257                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
58258
58259         2006-05-16  Bruno Haible  <bruno@clisp.org>
58260
58261                 * localcharset.c [CYGWIN]: Include <windows.h>.
58262                 (get_charset_aliases): For Cygwin, return the same CPxxx
58263                 aliases list as under WIN32.
58264                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
58265                 the environment variables. Fall back to GetACP().
58266
58267         2006-04-05  Bruno Haible  <bruno@clisp.org>
58268
58269                 * config.charset: Update Juan Manuel Guerrero's address.
58270
58271         2005-02-12  Bruno Haible  <bruno@clisp.org>
58272
58273                 * allocsa.h: Add extern "C" for C++.
58274
58275         2005-02-10  Bruno Haible  <bruno@clisp.org>
58276
58277                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
58278                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
58279
58280         2006-07-22  Bruno Haible  <bruno@clisp.org>
58281
58282                 * gettext.h: Update to GNU gettext-0.15.
58283
58284 2006-07-22  Bruno Haible  <bruno@clisp.org>
58285
58286         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
58287         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
58288         lib-prefix.m4, longdouble.m4, ssize_t.m4.
58289
58290 2006-07-21  Eric Blake  <ebb9@byu.net>
58291
58292         * modules/stdlib-safer: New file.
58293         * MODULES.html.sh (File stream based Input/Output): Add
58294         stdlib-safer.
58295
58296 2006-07-21  Eric Blake  <ebb9@byu.net>
58297
58298         * lib/stdlib-safer.h: New file from coreutils, required by
58299         stdlib--.h.
58300
58301 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
58302
58303         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
58304
58305 2006-07-20  Bruno Haible  <bruno@clisp.org>
58306
58307         * gnulib-tool: Recognize new option --assume-autoconf.
58308         (autoconf_minversion): New variable.
58309         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
58310
58311 2006-07-20  Bruno Haible  <bruno@clisp.org>
58312
58313         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
58314
58315 2006-07-19  Derek R. Price  <derek@ximbiot.com>
58316
58317         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
58318         Reindent and repaginate.
58319
58320 2006-07-19  Derek Price  <derek@ximbiot.com>
58321
58322         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
58323         Correct grammar.
58324
58325 2006-07-17  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/list: New file.
58328         * modules/array-list: New file.
58329         * modules/carray-list, modules/carray-list-tests: New files.
58330         * modules/linked-list, modules/linked-list-tests: New files.
58331         * modules/avltree-list, modules/avltree-list-tests: New files.
58332         * modules/rbtree-list, modules/rbtree-list-tests: New files.
58333         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
58334         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
58335         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
58336         * modules/oset: New file.
58337         * modules/array-oset: New file.
58338         * modules/avltree-oset, modules/avltree-oset-tests: New files.
58339         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
58340         * tests/test-carray_list.c: New file.
58341         * tests/test-linked_list.c: New file.
58342         * tests/test-avltree_list.c: New file.
58343         * tests/test-rbtree_list.c: New file.
58344         * tests/test-linkedhash_list.c: New file.
58345         * tests/test-avltreehash_list.c: New file.
58346         * tests/test-rbtreehash_list.c: New file.
58347         * tests/test-avltree_oset.c: New file.
58348         * tests/test-rbtree_oset.c: New file.
58349         * MODULES.html.sh (Container data structures): New section.
58350
58351 2006-07-17  Bruno Haible  <bruno@clisp.org>
58352
58353         * m4/gl_list.m4: New file.
58354
58355 2006-07-17  Bruno Haible  <bruno@clisp.org>
58356
58357         * lib/gl_list.h: New file.
58358         * lib/gl_list.c: New file.
58359         * lib/gl_array_list.h: New file.
58360         * lib/gl_array_list.c: New file.
58361         * lib/gl_carray_list.h: New file.
58362         * lib/gl_carray_list.c: New file.
58363         * lib/gl_linked_list.h: New file.
58364         * lib/gl_linked_list.c: New file.
58365         * lib/gl_anylinked_list1.h: New file.
58366         * lib/gl_anylinked_list2.h: New file.
58367         * lib/gl_avltree_list.h: New file.
58368         * lib/gl_avltree_list.c: New file.
58369         * lib/gl_anyavltree_list1.h: New file.
58370         * lib/gl_anyavltree_list2.h: New file.
58371         * lib/gl_rbtree_list.h: New file.
58372         * lib/gl_rbtree_list.c: New file.
58373         * lib/gl_anyrbtree_list1.h: New file.
58374         * lib/gl_anyrbtree_list2.h: New file.
58375         * lib/gl_anytree_list1.h: New file.
58376         * lib/gl_anytree_list2.h: New file.
58377         * lib/gl_linkedhash_list.h: New file.
58378         * lib/gl_linkedhash_list.c: New file.
58379         * lib/gl_anyhash_list1.h: New file.
58380         * lib/gl_anyhash_list2.h: New file.
58381         * lib/gl_avltreehash_list.h: New file.
58382         * lib/gl_avltreehash_list.c: New file.
58383         * lib/gl_rbtreehash_list.h: New file.
58384         * lib/gl_rbtreehash_list.c: New file.
58385         * lib/gl_anytreehash_list1.h: New file.
58386         * lib/gl_anytreehash_list2.h: New file.
58387
58388         * lib/gl_oset.h: New file.
58389         * lib/gl_oset.c: New file.
58390         * lib/gl_array_oset.h: New file.
58391         * lib/gl_array_oset.c: New file.
58392         * lib/gl_avltree_oset.h: New file.
58393         * lib/gl_avltree_oset.c: New file.
58394         * lib/gl_rbtree_oset.h: New file.
58395         * lib/gl_rbtree_oset.c: New file.
58396         * lib/gl_anytree_oset.h: New file.
58397
58398 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58399
58400         * m4/mkancesdirs.m4: New file.
58401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
58402         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
58403         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
58404         it.
58405
58406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
58409         * lib/mkancesdirs.h: New files.
58410         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
58411         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
58412         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
58413         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
58414         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
58415         callers changed.  Revamp internals significantly, by not
58416         attempting to create directories that are temporarily more
58417         permissive than the final results.  Do not attempt to use
58418         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
58419         This removes some race conditions, fixes some bugs, and simplifies
58420         things.  Use new dirchownmod function to do owner and mode changes.
58421         * lib/mkdir-p.h: Likewise.
58422         * lib/modechange.c (octal_to_mode): New function.
58423         (struct mode_change): New member mentioned.
58424         (make_node_op_equals): New arg mentioned.  All callers changed.
58425         (mode_compile): Keep track of which mode bits the user has explicitly
58426         mentioned.
58427         (mode_adjust): New arg DIR, so that we implement the X op correctly.
58428         New arg PMODE_BITS, to keep track of which mode bits the user
58429         mentioned; it treats S_ISUID and S_ISGID speciall.
58430         All callers changed.
58431         * lib/modechange.h: Likewise.
58432
58433 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * MODULES.html.sh: Add mkancestors.
58436         * modules/mkancesdirs: New module.
58437         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
58438         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
58439         The chdir-safer and afs files are now orphans; I'll remove them
58440         unless someone speaks up.
58441         Add lib/dirchownmod.c, lib/dirchownmod.h.
58442         (Depends-on): Remove alloca, chown, save-cwd, dirname.
58443         Add lchown, mkancesdirs.
58444         (Maintainer): Add self.
58445
58446 2006-07-15  Karl Berry  <karl@gnu.org>
58447
58448         * gnulib-tool: help message wording/arrangement.
58449
58450 2006-07-14  Simon Josefsson  <jas@extundo.com>
58451
58452         * doc/gnulib.texi (Libtool and Windows): New section.
58453
58454 2006-07-12  Simon Josefsson  <jas@extundo.com>
58455
58456         * modules/gendocs (License): Fix license, approved by Karl.
58457
58458 2006-07-12  Eric Blake  <ebb9@byu.net>
58459
58460         * MODULES.html.sh: Add gendocs.
58461
58462 2006-07-11  Eric Blake  <ebb9@byu.net>
58463
58464         * modules/fdl: New module, to install doc/fdl.texi.
58465         * MODULES.html.sh: Add new section for documentation modules.
58466         * gnulib-tool: Avoid space-tab.
58467         (--doc-base): New option, to manage files from doc.
58468
58469 2006-07-11  Eric Blake  <ebb9@byu.net>
58470
58471         * m4/absolute-header.m4: Fix comments to match recent change.
58472
58473 2006-07-11  Eric Blake  <ebb9@byu.net>
58474
58475         * gnulib-tool: List --doc-base before --tests-base.
58476
58477 2006-07-11  Derek R. Price  <derek@ximbiot.com>
58478
58479         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
58480
58481 2006-07-11  Bruno Haible  <bruno@clisp.org>
58482
58483         * README: Mention where to put documentation.
58484
58485 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58486
58487         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
58488
58489 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
58492         to stdint.m4.
58493
58494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
58497         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
58498         "no/such/file/stdint.h" when there is no such file, so that
58499         the resulting C code can be parsed by dodgy compilers.
58500         Problems reported by Bob Proulx.
58501
58502 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58503
58504         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
58505         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58506         macros into the GNU _D_EXACT_NAMLEN.
58507         * lib/savedir.c:  Likewise.
58508         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
58509
58510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
58511         and Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
58514         * m4/savedir.m4:
58515         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
58516         macros into the GNU _D_EXACT_NAMLEN.
58517
58518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
58521         around the absolute name, to work around a problem with the HP-UX
58522         11.23 native C compiler, reported by Bob Proulx.
58523
58524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         * doc/maintain.texi, make-stds.texi: Sync from
58527         <http://savannah.gnu.org/projects/gnustandards>.
58528
58529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
58532
58533 2006-07-09  Jim Meyering  <jim@meyering.net>
58534
58535         * m4/glob.m4: Remove a doubled word in a comment.
58536
58537 2006-07-09  Jim Meyering  <jim@meyering.net>
58538
58539         * lib/argp-pv.c: Remove a doubled word in a comment.
58540         * lib/check-version.c (check_version): Likewise.
58541         * lib/javacomp.c (compile_java_class): Likewise.
58542
58543 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
58546         for the benefit of people using Autoconf 2.60.  If you want to
58547         support older Autoconf versions you can copy m4/onceonly_2_57.m4
58548         (or m4/onceonly.m4, if pre-2.57) manually.
58549
58550 2006-07-08  Jim Meyering  <jim@meyering.net>
58551
58552         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
58553         comment.
58554         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
58555         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
58556         comment.
58557
58558 2006-07-08  Jim Meyering  <jim@meyering.net>
58559
58560         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
58561
58562 2006-07-07  Simon Josefsson  <jas@extundo.com>
58563
58564         * tests/test-crc.c: Change expected crc value, the test vector
58565         were probably computed using the old broken crc.c?
58566
58567 2006-07-06  Simon Josefsson  <jas@extundo.com>
58568
58569         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
58570         now the canonical place for the M4 file).
58571
58572         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
58573         from the sys_socket dependency now.
58574
58575         * modules/inet_pton (Files): Ditto.
58576
58577         * modules/inet_ntop (Files): Ditto.
58578
58579 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58580
58581         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
58582         not gl_PREREQ_GETUSERSHELL.
58583
58584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58585
58586         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
58587         with only one argument, for Autoconf 2.60.
58588         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
58589         expand to nothing, so add a shell command to avoid syntax error.
58590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58591
58592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58593
58594         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
58595
58596 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
58599         no longer needed.  Check for isblank decl.
58600         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
58601         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
58602         of existence.
58603
58604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         * lib/getloadavg.c: Use __VMS, not VMS.
58607         * lib/getopt.c: Likewise.
58608         * lib/getpagesize.h: Likewise.
58609         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
58610         and probably does not work.
58611
58612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/.cppi-disable: Add wcwidth.
58615         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
58616         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
58617         (ISGRAPH): Remove.  All uses changed to isgraph.
58618         (FOLD) [!defined _LIBC]: Remove special case.
58619         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
58620         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
58621         HAVE_ISBLANK.
58622         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
58623         case.
58624
58625 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58626
58627         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
58628         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
58629         brackets.  Other minor changes to suppress some compiler
58630         warnings.
58631
58632 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58633         and Paul Eggert  <eggert@cs.ucla.edu>
58634
58635         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
58636         of invoking obsolescent AC_HEADER_DIRENT macro.
58637         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58638         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
58639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
58640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58641         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
58642         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58643         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
58644         * m4/readdir.m4: Remove; no longer needed.
58645
58646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
58647         and Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
58650         Don't worry about this obsolete case any more.
58651         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
58652         directories.
58653         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
58654         worry about this obsolete case any more.
58655         * lib/fts.c: Likewise.
58656         * lib/getcwd.c: Likewise.
58657         * lib/glob.h: Likewise.
58658         * lib/savedir.c: Likewise.
58659
58660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
58663         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
58664         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
58665         needed.
58666         All uses removed.
58667         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58668         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58669         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
58670         needed.
58671         * m4/getdate.m4 (gl_GETDATE): Likewise.
58672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58673         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58674         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
58677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58678         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
58679         needed.
58680
58681 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         * lib/memcasecmp.c: Include <limits.h>.
58684         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
58685         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
58686         Don't assume isdigit succeeds only on '0' through '9'.
58687
58688 2006-07-05  Eric Blake  <ebb9@byu.net>
58689
58690         * modules/getaddrinfo (Depends-on): Add snprintf.
58691
58692 2006-07-05  Eric Blake  <ebb9@byu.net>
58693
58694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
58695         to avoid 'header present but could not be compiled' on cygwin.
58696
58697 2006-07-05  Eric Blake  <ebb9@byu.net>
58698
58699         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
58700         missing from netdb.h.
58701         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
58702
58703 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58704
58705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
58706         no longer needed.
58707         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
58708         * m4/getdate.m4 (gl_GETDATE): Likewise.
58709         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
58710         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
58711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58712         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
58713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58714
58715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
58716
58717         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
58718         All uses of is_space replaced by isspace.
58719         * lib/exit.h: Don't talk about STDC_HEADERS.
58720         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
58721         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
58722         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
58723         replaced by isprint etc.
58724         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
58725         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58726         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
58727         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
58728         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
58729         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
58730
58731 2006-07-05  Bruno Haible  <bruno@clisp.org>
58732
58733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
58734         the function exists, before testing against AIX.
58735         Reported by Martin Lambers <marlam@marlam.de>.
58736
58737 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
58740         From Mark D. Baushke.
58741
58742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
58745         to the absolute name, not just one, to bypass Sun C 5.8's
58746         "warning: #include of /usr/include/... may be non-portable".
58747
58748 2006-07-04  Eric Blake  <ebb9@byu.net>
58749
58750         * modules/dirname-tests: New test module.
58751         * tests/test-dirname.c: New file, replacing dirname.c
58752         TEST_DIRNAME section that was recently deleted.
58753
58754 2006-07-04  Bruno Haible  <bruno@clisp.org>
58755
58756         Assume ANSI C header files and <ctype.h> functions.
58757         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
58758         (mbsnwidth): Use isprint, iscntrl instead.
58759
58760 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         Merge from coreutils.
58763         * MODULES.html.sh: Add xstrtold.
58764         * modules/xstrtold: New file.
58765         * modules/cycle-check (Files): Add lib/same-inode.h.
58766         * modules/dirname (Files): Add m4/double-slash-root.m4.
58767         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
58768         * modules/mkdir-p (Files): Add lib/same-inode.h.
58769         * modules/same (Files): Add lib/same-inode.h.
58770
58771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         * m4/absolute-header.m4: Renamed from full-header-path.m4.
58774         This is to keep the terminology clean; POSIX talks about
58775         "absolute pathnames", not "full pathnames", but the GNU
58776         Coding Standards say to use "path" for something else;
58777         so use "absolute" to keep both sides happy.
58778         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
58779         Set gl_absolute_header, not gl_full_header_path.
58780         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
58781         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
58782         All uses changed.
58783
58784         Merge from coreutils.
58785
58786         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58787
58788         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
58789         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
58790         want to require the building of c-strtod.o.
58791         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
58792         needs -lm directly.
58793         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
58794
58795         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
58798         --as-needed option if available.  Problem reported by Albert Chin in
58799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
58800         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
58801         cc merely issues a bunch of annoying warnings for --as-needed
58802         (this problem was reported by Bob Proulx).  Also, try linking with
58803         -lm to detect a bug in binutils 2.16 (this problem was reported
58804         by Ralf Wildenhues).
58805
58806         2006-06-18  Jim Meyering  <jim@meyering.net>
58807
58808         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
58809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
58810         macro.
58811         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
58812         also check for glibc-2.4's abort-inducing bug.
58813
58814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
58815         Low-probability clean-up should be to use rmdir to get rid of
58816         the just-created directory, not unlink.
58817
58818         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
58819         configure fail, and request a bug report to inform us about it.
58820         Add a comment that, barring reports to the contrary, in 2007 we'll
58821         assume ftruncate is universally available.
58822
58823         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58824
58825         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
58826
58827         2006-03-12  Jim Meyering  <jim@meyering.net>
58828
58829         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
58830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
58831         * m4/same.m4 (gl_SAME): Likewise.
58832         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
58833
58834         2006-03-11  Eric Blake  <ebb9@byu.net>
58835
58836         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
58837         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
58838         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
58839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
58840
58841 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
58844         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
58845         reported by Mark D. Baushke, one in
58846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
58847
58848         Merge from coreutils.
58849
58850         * lib/.cppi-disable: Add stdint_.h.
58851         * lib/.cvsignore: Add stdint.h.
58852
58853         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
58854
58855         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
58856         both double and long double versions.
58857         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
58858         * lib/xstrtold.c: New file.
58859         * lib/xstrtod.h (xstrtold): New decl.
58860
58861         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * lib/filemode.c (setst): Remove.
58864         (strmode): Rewrite to avoid setst.  This makes the code shorter,
58865         (arguably) clearer, and the generated code is a bit smaller on my
58866         Debian GNU/Linux stable x86 host.
58867
58868         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
58869
58870         * lib/filemode.c: Include "filemode.h" first, to test the interface.
58871         Assume that filemode.h includes sys/types.h and sys/stat.h.
58872         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
58873         (ftypelet): Reorder to put common cases first, for efficiency.
58874         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
58875         to do 'M'.
58876         (strmode): Renamed from mode_string, and now stores 12 bytes instead
58877         of 10, for compatibility with FreeBSD.  All callers changed.
58878         (filemodestring): Now stores 12 bytes instead of 10, and sets file
58879         types that can't be deduced solely from st_mode.  First arg is now a
58880         const pointer.
58881         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
58882         (strmode): Renamed from mode_string.
58883         (filemodestring): New decl.
58884         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
58885         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
58886         needed.
58887         (S_ISPORT, S_ISWHT): New macros, if not already defined.
58888
58889         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
58892         fsusage.h now does that.  Include fsusage.h first, to test interface.
58893         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
58894         at most one method (the old code could have generated decls that
58895         didn't conform to C89, not that this was ever exercised).
58896         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
58897
58898         2006-03-19  Jim Meyering  <jim@meyering.net>
58899
58900         Work even in a chroot where d_ino values for entries in "/"
58901         don't match the stat.st_ino values for the same names.
58902         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
58903         number, iterate through all entries again, using lstat instead.
58904         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
58905         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
58906
58907         * lib/getcwd.c (__getcwd): Clarify a comment.
58908         Use memcpy in place of a call to strcpy.
58909
58910         2006-03-12  Jim Meyering  <jim@meyering.net>
58911
58912         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
58913         matches that of the current directory (which we're about to chdir ".."
58914         out of), then save the dev-ino of the parent, instead.
58915
58916         * lib/same-inode.h (SAME_INODE): New file/macro.
58917         * lib/chdir-safer.c (SAME_INODE): Remove definition.
58918         Include "same-inode.h", instead.
58919         * lib/same.c: Likewise.
58920         * lib/cycle-check.h: Include "same-inode.h".
58921         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
58922         * lib/cycle-check.c (SAME_INODE): Remove definition.
58923         * lib/root-dev-ino.h: Include "same-inode.h".
58924
58925         2006-03-11  Eric Blake  <ebb9@byu.net>
58926
58927         * lib/same.c (same_name): s/base_name/last_component/
58928         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
58929         * lib/filenamecat.c (file_name_concat): Likewise.
58930
58931         2006-03-11  Eric Blake  <ebb9@byu.net>,
58932                     Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
58935         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
58936         drive prefix.
58937         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
58938         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
58939         (last_component): New method.
58940         * lib/dirname.c (dir_len): Determine when drive letters need a
58941         subsequent slash.  Preserve // when it is special.
58942         (dir_name): Don't append dot when drive letter is absolute.
58943         [TEST_DIRNAME]: Move into a full-blown gnulib test.
58944         * lib/basename.c (base_name): New semantics - malloc the result.
58945         Preserve // when it is special.  Preserve relative files that look
58946         like drive letters.
58947         (base_len): Preserve // when it is special.
58948         (last_component): New method, similar to old base_name semantics.
58949         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
58950         base_name.  Strip redundant slashes from ///.
58951
58952 2006-07-03  Jim Meyering  <jim@meyering.net>
58953
58954         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
58955         macro is used before the first cycle_check call.
58956
58957 2006-07-03  Eric Blake  <ebb9@byu.net>
58958
58959         * modules/dirname (Depends-on): Add xstrndup.
58960
58961 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58962
58963         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
58964         test cases, so that config.log is a bit easier to follow.
58965
58966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58967
58968         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
58969         both are 64 bits, since this seems to be the tradition, and this
58970         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
58971         we ever run into a host that prefers long long to long in this
58972         case, we'll need another configure-time test.  Problem reported by
58973         Jim Meyering.
58974
58975 2006-07-02  Eric Blake  <ebb9@byu.net>
58976
58977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58978
58979 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * modules/inttypes (Depends-on): No longer depends on stdint.
58982         * modules/stdint (Description): Say more about assumptions.
58983         Say that the fast types might differ.  Say macros are used.
58984         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58985         (Makefile.am): Revise list of substituted symbols to match
58986         new stdint.m4.
58987         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58988         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58989         * tests/test-stdint.c (verify_same_types)
58990         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58991         the code conforms to C99/C89.
58992         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58993         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58994
58995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58998         but fix a bug, by requiring at least 64 bits.
58999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59000         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59001         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59002         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59003
59004         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59005         changes.  Make 2.59 a prerequisite.  Check and substitute for
59006         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59007         inttypes.h.  Do not use special include files; just use the
59008         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59009         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59010         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59011         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59012         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59013         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59014         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59015         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59016         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59017         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59018         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59019         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59020         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59021         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59022         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59023         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59024         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59025         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59026         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59027         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59028         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59029         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59030         not check for things that C99 does not require, e.g., int8_t.  If
59031         a test isn't needed unless <stdint.h> isn't working, and is
59032         unlikely to be needed for any other reason, then don't do it
59033         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59034         size_t, since we assume C89 freestanding at least.  Do not check
59035         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59036         the right thing even if the types are not defined.  Instead use:
59037         (gl_STDINT_TYPE_PROPERTIES): New macro.
59038         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59039         testing whether <sys/types.h> clashes, as Autoconf does this for
59040         us now.  All uses removed.
59041         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59042         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59043         (gl_CHECK_TYPE_SAME):
59044         Remove; no longer needed.
59045         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59046         exists, since we'll return 0 anyway in that case.
59047         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59048
59049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59050
59051         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59052         possible collision with system files.
59053         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59054         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59055         WCHAR_MIN and WCHAR_MAX in this case.
59056         (<stddef.h>): Do not include; no longer needed.
59057         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59058         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59059         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59060         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59061         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59062         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59063         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59064         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59065         !defined(__c99))]: Include in this case too, since it's harmless
59066         now.
59067         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59068         dangerous to do so.
59069         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59070         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59071         (_STDINT_MIN, _STDINT_MAX): New macros.
59072         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59073         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59074         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59075         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59076         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59077         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59078         macros, not typedefs; this simplifies things quite a bit.
59079         Use long int for all types narrower than int64_t.
59080         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59081         Define in terms of long long int or int64_t or long int,
59082         not int64_t or int32_t.  This saves some compile-time testing.
59083         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59084         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59085         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59086         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59087         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59088         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59089         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59090         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59091         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59092         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59093         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59094         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59095         undef any previous version and define our own version, for
59096         simplicity and consistency with the new macros for types.
59097         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59098         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59099         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59100         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59101         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59102         @WINT_T_SUFFIX@ to keep things simple here.
59103         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59104         Simplify by assuming typical 8/16/32/64 host, since we're
59105         already doing that elsewhere anyway.
59106         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59107         and assume long long int is 64 bits if available.  This
59108         speeds up 'configure'.
59109
59110 2006-07-01  Eric Blake  <ebb9@byu.net>
59111
59112         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59113         Reported by Andreas Buening.
59114
59115 2006-07-01  Eric Blake  <ebb9@byu.net>
59116
59117         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59118
59119 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59120
59121         * lib/getaddrinfo.c: fixed typo
59122
59123 2006-06-29  Jim Meyering  <jim@meyering.net>
59124
59125         * modules/strftime (Maintainer): Add my name, since with the
59126         FPRINTFTIME changes strftime.c has forked from glibc.
59127
59128 2006-06-29  Eric Blake  <ebb9@byu.net>
59129
59130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59131
59132 2006-06-29  Eric Blake  <ebb9@byu.net>
59133
59134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59135
59136 2006-06-29  Eric Blake  <ebb9@byu.net>
59137
59138         * lib/stat_.h: New file.
59139
59140 2006-06-29  Eric Blake  <ebb9@byu.net>
59141
59142         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59143         unused static function.
59144
59145 2006-06-29  Eric Blake  <ebb9@byu.net>
59146
59147         * doc/functions.texi (Function Portability): Document missing lstat
59148         on mingw.
59149
59150 2006-06-29  Eric Blake  <ebb9@byu.net>
59151
59152         * MODULES.html.sh: Add sys_stat.
59153         * modules/sys_stat: New module.
59154         * modules/mkstemp (Depends-on): Add sys_stat.
59155
59156 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59157
59158         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59159
59160 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59161
59162         * m4/c-bs-a.m4: Removed.
59163
59164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59165
59166         * lib/strftime.c: Assume strftime() exists.
59167
59168 2006-06-29  Derek Price  <derek@ximbiot.com>
59169
59170         * modules/c-bs-a: Removed - \a is C89.
59171         * MODULES.html.sh: Remove c-bs-a.
59172
59173 2006-06-29  Bruno Haible  <bruno@clisp.org>
59174
59175         * modules/wcwidth (License): Change to LGPL.
59176
59177 2006-06-28  Simon Josefsson  <jas@extundo.com>
59178
59179         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59180         on _WIN32.
59181
59182         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59183         getnameinfo.
59184
59185 2006-06-28  Simon Josefsson  <jas@extundo.com>
59186
59187         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59188
59189 2006-06-28  Simon Josefsson  <jas@extundo.com>
59190
59191         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59192         functions there.  It will succeed on Windows XP, but on Windows
59193         2000 and (presumably) earlier, it will fail, and use the internal
59194         re-implementation.
59195         (use_win32_p): New function.
59196         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59197         Support AI_NUMERICSERV to disable getservbyname.
59198         (getnameinfo): New function, only supports
59199         NI_NUMERICHOST|NI_NUMERICSERV for now.
59200
59201         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59202         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59203         getnameinfo.
59204
59205 2006-06-28  Eric Blake  <ebb9@byu.net>
59206
59207         * modules/wcwidth: New file.
59208         * modules/mbchar (Depends-on): Add wcwidth.
59209         * modules/mbswidth (Depends-on): Add wcwidth.
59210         * MODULES.html.sh: Add wcwidth.
59211
59212 2006-06-28  Eric Blake  <ebb9@byu.net>
59213
59214         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59216
59217 2006-06-28  Eric Blake  <ebb9@byu.net>
59218
59219         * lib/xvasprintf.h: Fix comments.
59220
59221 2006-06-28  Eric Blake  <ebb9@byu.net>
59222
59223         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59224         * lib/mbswidth.c (wcwidth): Move from here...
59225         * lib/wcwidth.h: ...to this new file.
59226
59227 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59228
59229         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59230
59231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59232         it's obsolete.
59233         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59234
59235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59236
59237         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59238         Autoconf 2.60 says this stuff was obsolete.
59239
59240 2006-06-28  Bruno Haible  <bruno@clisp.org>
59241
59242         * modules/wcwidth (Files): Add m4/wchar_t.m4.
59243
59244 2006-06-28  Bruno Haible  <bruno@clisp.org>
59245
59246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
59247         gt_TYPE_WCHAR_T.
59248
59249 2006-06-28  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
59252         declaration for wcwidth.
59253         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
59254
59255 2006-06-28  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/mkdtemp.c [MINGW]: Include <io.h>.
59258         (mkdir): Define using _mkdir.
59259
59260 2006-06-28  Bruno Haible  <bruno@clisp.org>
59261
59262         * lib/getaddrinfo.h: Fix POSIX URL.
59263         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
59264         _WIN32.
59265         (use_win32_p): Make static.
59266         (getaddrinfo): Reject service name if it is empty or does not consist
59267         solely of decimal digits, or if its value is > 65535.
59268         (getnameinfo): Remove useless casts.
59269
59270 2006-06-27  Simon Josefsson  <jas@extundo.com>
59271
59272         * modules/sys_select: New file, suggested by Bruno Haible, Paul
59273         Eggert and Martin Lambers.
59274
59275 2006-06-27  Simon Josefsson  <jas@extundo.com>
59276
59277         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
59278         Eggert and Martin Lambers.
59279
59280 2006-06-27  Bruno Haible  <bruno@clisp.org>
59281
59282         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
59283         result to 0, not to empty.
59284         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
59285
59286 2006-06-27  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
59289
59290 2006-06-26  Simon Josefsson  <jas@extundo.com>
59291
59292         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
59293         present.
59294
59295 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
59298         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
59299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
59300
59301 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
59302
59303         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
59304
59305 2006-06-26  Bruno Haible  <bruno@clisp.org>
59306
59307         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
59308
59309 2006-06-26  Bruno Haible  <bruno@clisp.org>
59310
59311         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
59312
59313 2006-06-26  Bruno Haible  <bruno@clisp.org>
59314
59315         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
59316         SGI C compiler in pre-C99 mode.
59317         Suggested by Mark D. Baushke and Larry Jones.
59318
59319 2006-06-26  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
59322         WCHAR_MAX.
59323         Reported by Mark D. Baushke and Larry Jones.
59324
59325 2006-06-26  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
59328         in pre-C99 mode.
59329         Suggested by Mark D. Baushke and Larry Jones.
59330
59331 2006-06-23  Simon Josefsson  <jas@extundo.com>
59332             Bruno Haible  <bruno@clisp.org>
59333
59334         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
59335         Emit mostlyclean-local rule.
59336         (func_emit_tests_Makefile_am): Likewise.
59337         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
59338
59339 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
59340
59341         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
59342
59343 2006-06-23  Bruno Haible  <bruno@clisp.org>
59344
59345         * tests/test-stdint.c: Update to match ISO C 99 Technical
59346         Corrigendum 1.
59347
59348 2006-06-23  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
59351
59352 2006-06-23  Bruno Haible  <bruno@clisp.org>
59353
59354         * lib/stdint_.h: Treat IRIX like OpenBSD.
59355
59356 2006-06-23  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
59359         ISO C 99 Technical Corrigendum 1.
59360
59361 2006-06-22  Simon Josefsson  <jas@extundo.com>
59362
59363         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
59364         MinGW.
59365
59366 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
59369         needed.  Some compiler complained about some of them.  Problem reported
59370         by Larry Jones in
59371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
59372
59373 2006-06-21  Simon Josefsson  <jas@extundo.com>
59374
59375         * tests/test-getaddrinfo.c: New file.
59376
59377         * modules/getaddrinfo-tests: New file.
59378
59379         * MODULES.html.sh: Add inet_pton.
59380
59381         * modules/inet_pton: New file.
59382
59383 2006-06-21  Simon Josefsson  <jas@extundo.com>
59384
59385         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
59386         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
59387         of using the (limited) gnulib implementation on Windows XP.
59388
59389         * m4/inet_pton.m4: New file.
59390
59391 2006-06-21  Simon Josefsson  <jas@extundo.com>
59392
59393         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
59394         variable.
59395
59396         * lib/socket_.h: Don't define WINVER.
59397
59398         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
59399         slightly modified to work in gnulib.
59400
59401 2006-06-21  Simon Josefsson  <jas@extundo.com>
59402
59403         * doc/gnulib.texi (Windows sockets): Add.
59404
59405 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59406
59407         * lib/read-file.c (fread_file): Start with buffer allocation of
59408         0 bytes rather than 1 byte; this simplifies the code.
59409         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
59410         code to free buffer and save/restore errno.
59411         (internal_read_file): Remove unused local.
59412
59413 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
59416         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
59417         Problem reported by Denis Excoffier in
59418         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
59419
59420 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59421
59422         * modules/sys_socket, modules/socklen: Include sys/types since
59423         FreeBSD 4.x's sys/socket.h needs it.
59424
59425 2006-06-19  Simon Josefsson  <jas@extundo.com>
59426
59427         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
59428
59429 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59430
59431         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
59432
59433 2006-06-19  Bruno Haible  <bruno@clisp.org>
59434
59435         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
59436         and FULL_PATH_INTTYPES_H in angle brackets.
59437         Reported by Mark D. Baushke <mdb@gnu.org>.
59438
59439 2006-06-17  Eric Blake  <ebb9@byu.net>
59440
59441         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
59442         errno.
59443
59444 2006-06-17  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
59447         <sys/inttypes.h>.
59448
59449 2006-06-17  Bruno Haible  <bruno@clisp.org>
59450
59451         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
59452         whether errno is declared. Assume <errno.h> declares errno.
59453
59454 2006-06-17  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
59457
59458 2006-06-17  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
59461         problem on Solaris 2.5.1.
59462
59463 2006-06-16  Eric Blake  <ebb9@byu.net>
59464
59465         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
59466         * lib/unicodeio.c [!defined errno]: Likewise.
59467         * lib/strtol.c [!defined errno]: Likewise.
59468         * lib/strtod.c [!defined errno]: Likewise.
59469
59470 2006-06-15  Eric Blake  <ebb9@byu.net>
59471
59472         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
59473
59474 2006-06-15  Eric Blake  <ebb9@byu.net>
59475
59476         * config/srclist.txt (ssize_t.m4): Lose sync.
59477
59478 2006-06-15  Bruno Haible  <bruno@clisp.org>
59479
59480         * modules/stdint (Files): Include m4/full-header-path.m4,
59481         m4/size_max.m4, m4/wchar_t.m4.
59482         (Makefile.am): Many more substitutions.
59483         * modules/stdint-tests: New file.
59484         * tests/test-stdint.c: New file.
59485
59486 2006-06-15  Bruno Haible  <bruno@clisp.org>
59487
59488         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
59489         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
59490         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
59491         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
59492         gl_CHECK_TYPE_SAME): New macros.
59493
59494 2006-06-15  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
59497
59498 2006-06-15  Bruno Haible  <bruno@clisp.org>
59499
59500         * lib/stdint_.h: Rewritten to be fully auto-configured.
59501         Fixes bug on HP-UX/IA64.
59502
59503 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
59504
59505         * lib/getdate.y (__attribute__): Don't define if already defined.
59506         Problem reported by Larry Jones.
59507         * lib/utimens.c (__attribute__): Likewise.
59508
59509 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
59512         reported by Andreas Schwab.
59513
59514 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59515             Bruno Haible  <bruno@clisp.org>
59516
59517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
59518         check for the declaration of strnlen and a run test that exposes the
59519         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
59520         rpl_strndup.
59521
59522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59523             Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
59526
59527 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59528
59529         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
59530         compile test, for Tru64 4.0D.
59531
59532 2006-05-28  Karl Berry  <karl@gnu.org>
59533
59534         * config/srclist.txt (printf-args.c): lose sync.
59535
59536 2006-05-26  Martin Lambers  <marlam@marlam.de>
59537
59538         * lib/getpass.c: Updates the test for the native W32 API, and adds
59539         missing includes, thus fixing compilation warnings.
59540
59541 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59542
59543         * lib/exclude.c (exclude_fnmatch): New function.
59544         (excluded_file_name): Call exclude_fnmatch.
59545         * lib/exclude.h (excluded_file_name): New prototype
59546
59547 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
59548
59549         * lib/tempname.c (small_open, large_open): New macros.
59550         (__open, __open64) [!_LIBC]: Remove.
59551         (__gen_tempname): Use small_open and large_open instead of __open
59552         and __open64.  This fixes a portability bug on HP-UX 11.11i
59553         reported by Simon Wing-Tang in
59554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
59555
59556 2006-05-24  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
59559         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
59560         Reported by Thorsten Maerz <torte@netztorte.de> via
59561         Aaron Stone <aaron@serendipity.cx>.
59562
59563 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
59566         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
59567         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
59568         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
59569         not really conditional on the cache.
59570         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
59571
59572 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
59575         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
59576         (my_usleep): Don't mishandle maximum value.
59577
59578 2006-05-19  Jim Meyering  <jim@meyering.net>
59579
59580         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
59581
59582 2006-05-17  Bruno Haible  <bruno@clisp.org>
59583
59584         Cygwin portability.
59585         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
59586
59587 2006-05-17  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/stdint_.h: Fix recognition of Cygwin.
59590
59591 2006-05-15  Bruno Haible  <bruno@clisp.org>
59592
59593         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
59594         on libtool patch by Ralf Wildenhues.
59595
59596 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
59599         test for C99 conformance; (bool) 0.5 is an integer constant
59600         expression, but (bool) -0.5 is not.  Problem reported by Fedor
59601         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
59602
59603 2006-05-11  Simon Josefsson  <jas@extundo.com>
59604
59605         * m4/xvasprintf.m4: Fix obvious typo.
59606
59607 2006-05-11  Jim Meyering  <jim@meyering.net>
59608
59609         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
59610         James Lemley.
59611
59612 2006-05-10  Simon Josefsson  <jas@extundo.com>
59613
59614         * lib/md4.c: Typo fix, update copyright years.
59615         (K1, K2): Don't use L because it turn computations into 64-bit on
59616         64-bit platforms.
59617
59618 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
59621         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
59622         unwanted sign propagation, e.g., on hosts with 64-bit int.
59623         There still are some problems with reeelly weird theoretical hosts
59624         (e.g., 33-bit int) but it's not worth worrying about now.
59625         * lib/sha1.c (rol): Likewise.
59626         (K1, K2, K3, K4): Remove unnecessary L suffix.
59627
59628 2006-05-10  Bruno Haible  <bruno@clisp.org>
59629
59630         * lib/des.c: Cast to avoid warnings.
59631
59632 2006-05-09  Bruno Haible  <bruno@clisp.org>
59633
59634         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
59635         (Depends-on): Depend also on xsize, stdarg.
59636         (configure.ac): Add gl_XVASPRINTF.
59637
59638 2006-05-09  Bruno Haible  <bruno@clisp.org>
59639
59640         * m4/xvasprintf.m4: New file.
59641
59642 2006-05-09  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
59645         (EOVERFLOW): Define fallback value.
59646         (xstrcat): New function.
59647         (xvasprintf): Recognize the special case of a string concatenation.
59648
59649 2006-05-08  Eric Blake  <ebb9@byu.net>
59650
59651         * gnulib-tool (func_version): Base copyright year on CVS date.
59652         (func_emit_copyright_notice): New function.
59653         (func_emit_lib_Makefile_am): Use it.
59654         (func_emit_tests_Makefile_am): Likewise.
59655         (func_import): Likewise.
59656
59657 2006-05-08  Bruno Haible  <bruno@clisp.org>
59658
59659         * modules/stdarg: New file.
59660         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
59661
59662 2006-05-08  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/stdarg.m4: New file, from GNU gettext.
59665
59666 2006-05-08  Bruno Haible  <bruno@clisp.org>
59667
59668         * config/srclist.txt (build-aux/config.rpath): different from latest
59669         release.
59670
59671 2006-05-08  Bruno Haible  <bruno@clisp.org>
59672
59673         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
59674
59675 2006-05-05  Jim Meyering  <jim@meyering.net>
59676
59677         * m4/warning.m4: New file, derived from bison's file by the same name.
59678
59679 2006-05-03  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/stdint_.h: Shorter URL.
59682         * lib/inttypes.h: Likewise.
59683
59684 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59685
59686         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
59687
59688 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * lib/verify.h: Document the internals better.  Most of this change
59691         was written by Bruno Haible.
59692
59693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59694
59695         * doc/verify.texi: New file, partly based on a proposal by
59696         Bruno Haible.
59697
59698 2006-05-02  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
59701         test from here...
59702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
59703
59704 2006-04-29  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
59707         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
59708
59709 2006-04-29  Bruno Haible  <bruno@clisp.org>
59710
59711         * gnulib-tool: Make --update option actually work.
59712
59713 2006-04-29  Bruno Haible  <bruno@clisp.org>
59714
59715         * doc/gcd.texi: New file.
59716         * doc/gnulib.texi: Include it.
59717
59718 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         * lib/getdate.y (get_date): When adding relative date, start with the
59721         initial time, not with the result of the first mktime call.
59722
59723 2006-04-25  Bruno Haible  <bruno@clisp.org>
59724
59725         * gnulib-tool (func_import): Output the include directives in three
59726         blocks, sorted separately.
59727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59728
59729 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
59732         to define main with arguments, for C++.  Reported by Eric Blake.
59733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
59734         Prefer 'int main ()' to 'int main (void)', for C++.
59735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59736         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
59737         for 'main', for C99 and C++.
59738
59739 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
59742         Don't assume that exit status -1 is valid.
59743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59744         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59746         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
59747         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
59748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
59749         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
59750         functions can be used without declaring them, or that you can
59751         exit with status -1.
59752         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59753
59754 2006-04-24  Karl Berry  <karl@gnu.org>
59755
59756         * config/srclist.txt (longdouble.m4): sync lost.
59757
59758 2006-04-24  Eric Blake  <ebb9@byu.net>
59759
59760         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
59761
59762 2006-04-24  Bruno Haible  <bruno@clisp.org>
59763
59764         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
59765         poll() implementation in AIX.
59766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59767
59768 2006-04-24  Bruno Haible  <bruno@clisp.org>
59769
59770         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
59771         assigned exactly once.
59772
59773 2006-04-23  Claudio Fontana  <claudio@gnu.org>
59774             Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
59777         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
59778         for AM_CPPFLAGS.
59779
59780 2006-04-23  Bruno Haible  <bruno@clisp.org>
59781
59782         * modules/copy-file: Depend on unistd.
59783         * modules/execute: Likewise.
59784         * modules/fatal-signal: Likewise.
59785         * modules/findprog: Likewise.
59786         * modules/mkdtemp : Likewise.
59787         * modules/pipe: Likewise.
59788         * modules/wait-process: Likewise.
59789
59790 2006-04-23  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
59793         condition was already detected.
59794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59795
59796 2006-04-23  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/copy-file.c: Include <unistd.h> unconditionally.
59799         * lib/execute.c: Likewise.
59800         * lib/fatal-signal.c: Likewise.
59801         * lib/findprog.c: Likewise.
59802         * lib/mkdtemp.c: Likewise.
59803         * lib/pipe.h: Likewise.
59804         * lib/pipe.c: Likewise.
59805         * lib/wait-process.h: Likewise.
59806
59807 2006-04-23  Bruno Haible  <bruno@clisp.org>
59808
59809         * gnulib-tool (func_usage): Fix --import description. Document
59810         --update.
59811         (func_import): Create temporary file in a temporary directory, if
59812         --dry-run is specified. Silence errors from 'grep' when there are no
59813         m4 files in $m4dir.
59814         (func_create_testdir): Silence errors from 'grep' when there are no
59815         m4 files in $m4dir.
59816         Reported by Karl Berry <karl@freefriends.org>.
59817
59818 2006-04-20  Bruno Haible  <bruno@clisp.org>
59819
59820         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
59821         one argument, so that the code will be portable to Autoconf 2.60.
59822         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
59823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59824         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
59825
59826 2006-04-19  Derek Price  <derek@ximbiot.com>
59827             Eric Blake  <ebb9@byu.net>
59828
59829         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
59830         rather than "/full/path.h".  Update comment to match.  Shorten &
59831         generalize m4_translit call via AS_TR_CPP.
59832
59833 2006-04-19  Derek Price  <derek@ximbiot.com>
59834             Eric Blake  <ebb9@byu.net>
59835
59836         * lib/inttypes.h: Correct grammar in comment.
59837
59838 2006-04-18  Derek Price  <derek@ximbiot.com>
59839             Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * modules/inttypes: New file.
59842         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
59843
59844 2006-04-18  Derek Price  <derek@ximbiot.com>
59845             Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
59848         New files.
59849
59850 2006-04-18  Derek Price  <derek@ximbiot.com>
59851             Paul Eggert  <eggert@cs.ucla.edu>
59852
59853         * lib/inttypes.h: New file.
59854         * lib/strtoimax.c: Assume <inttypes.h>.
59855
59856 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
59859         isn't mounted.  Problem reported by Kir Kolyshkin.
59860
59861 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59862
59863         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
59864         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
59865         Derek R. Price.
59866         * lib/regex.h (RE_DUP_MAX): Update comment to match current
59867         implementation.
59868
59869 2006-04-12  Eric Blake  <ebb9@byu.net>
59870
59871         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
59872         is now done automatically by the corresponding Autoconf macro.
59873
59874 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
59877         time_r.h.
59878
59879 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         Merge regex changes from libc, removing some of our
59882         POSIX-conformance changes that were rejected and redoing them in a
59883         less-intrusive way.
59884
59885         * lib/regcomp.c (re_compile_internal, init_dfa):
59886         Length arg is now size_t, not Idx.  All uses changed.
59887         (peek_token): Forward decl now says internal_function.
59888         (__re_error_msgid, __re_error_msgid_idx):
59889         Now static rather than extern with attribute_hidden.
59890         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
59891         For some reason libc prefers K&R style defns for external functions.
59892         (regerror) [!defined _LIBC]: Likewise.
59893         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
59894         (seek_collating_symbol_entry, lookup_collation_sequence_value):
59895         (build_range_exp, build_collating_symbol):
59896         Use K&R-style defn.
59897         (re_compile_fastmap): Use '\0' to memset, not 0.
59898         (utf8_sb_map): Make the calculations more obvious.
59899         (init_dfa, parse_bracket_exp, build_charclass_op):
59900         Call calloc and cast result, as glibc does.
59901         (init_word_char, fetch_token, peek_token, peek_token_bracket):
59902         (build_range_exp, build_collating_symbol):
59903         Now internal functions.
59904
59905         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
59906
59907         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
59908         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
59909         Don't depend on VMS; depend on __VMS instead, for POSIX
59910         namespace cleanness.
59911         (regoff_t): Define to ssize_t, not long int.
59912
59913         Remove the REG_ macros named below.  Instead, make the old names
59914         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
59915         __USE_GNU_REGEX.
59916         (REG_BACKSLASH_ESCAPE_IN_LISTS):
59917         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
59918         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
59919         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
59920         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
59921         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
59922         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
59923         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
59924         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
59925         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
59926         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
59927         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
59928         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
59929         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
59930         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
59931         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
59932         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
59933         (REG_NREGS):
59934         Remove.  All uses replaced by the old RE_* names.
59935         (RE_BACKSLASH_ESCAPE_IN_LISTS):
59936         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
59937         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
59938         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
59939         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
59940         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
59941         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
59942         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
59943         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
59944         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
59945         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
59946         Don't bother having these macros be independent of each others'
59947         values, since they no longer exist in the POSIX name space.
59948
59949         Rename the following member names back to their old names,
59950         unless !__USE_GNU_REGEX.  All uses changed back.
59951         (buffer): Renamed from re_buffer.
59952         (allocated): Renamed from re_allocated.
59953         (used): Renamed from re_used.
59954         (syntax): Renamed from re_syntax.
59955         (fastmap): Renamed from re_fastmap.
59956         (translate): Renamed from re_translate.
59957         (can_be_null): Renamed from re_can_be_null.
59958         (regs_allocated): Renamed from re_regs_allocated.
59959         (fastmap_accurate): Renamed from re_fastmap_accurate.
59960         (no_sub): Renamed from re_no_sub.
59961         (not_bol): Renamed from re_not_bol.
59962         (not_eol): Renamed from re_not_eol.
59963         (newline_anchor): Renamed from re_newline_anchor.
59964         (num_regs): Renamed from rm_num_regs.
59965         (start): Renamed from rm_start.
59966         (end): Renamed from rm_end.
59967
59968         (free_state): Move up a bit.
59969
59970         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
59971         #define to be empty.
59972         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
59973         when that is what is intended.
59974         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59975         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59976         (MAX): New macro.
59977         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59978         All uses changed back to re_malloc, etc.  It's now the caller's
59979         responsibility to check for overflow; all callers changed.
59980         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59981         (re_x2nrealloc): Remove.
59982         (free_state): Remove decl.
59983
59984         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59985         (re_set_registers, re_exec):
59986         Use K&R-style defn.
59987
59988         2006-01-31  Roland McGrath  <roland@redhat.com>
59989
59990         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59991         Reported by Mike Frysinger <vapier@gentoo.org>.
59992
59993         2006-01-15  Andreas Jaeger  <aj@suse.de>
59994
59995         [BZ #1950]
59996         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59997         build_wcs_upper_buffer change.
59998         (build_wcs_upper_buffer): Change return type.
59999
60000         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60001
60002         * lib/regex_internal.h: Include <stdint.h> if available.
60003
60004         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60005
60006         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60007
60008         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60009
60010         * lib/regcomp.c: Adjust for changed secondary hash function.
60011
60012         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60013
60014         * lib/regex.h: Pretty printing.
60015         Clean up namespace a bit.
60016
60017         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60018
60019         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60020         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60021
60022         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60023                     Ulrich Drepper  <drepper@redhat.com>
60024
60025         [BZ #1302]
60026         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60027         changed.
60028         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60029
60030         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60031
60032         [BZ #281]
60033         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60034         * lib/regcomp.c: Remove unnecessary uses of
60035         unsigned RE_TRANSLATE_TYPE.
60036         * lib/regex_internal.h: Likewise.
60037         * lib/regex_internal.c: Likewise.
60038         * lib/regexec.c: Likewise.
60039         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60040
60041         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60042
60043         * lib/regexec.c (find_recover_state): Remove unnecessary
60044         initialization.
60045         (transit_state_bkref): Make DFA a const pointer.
60046         (get_subexp): Likewise.
60047         (check_arrival): Likewise.
60048         (update_cur_sifted_state): Likewise.
60049         (re_search_internal): Likewise.
60050         (prune_impossible_nodes): Likewise.
60051         (acquire_init_state_context): Likewise.
60052         (proceed_next_node): Likewise.
60053         (set_regs): Likewise.
60054         (free_fail_stack_return): Likewise.
60055         (check_arrival_expand_ecl): Mark DFA parameter as const.
60056         (check_arrival_expand_ecl_sub): Likewise.
60057         (check_subexp_limits): Likewise.
60058         (sub_epsilon_src_nodes):  Likewise.
60059         (add_epsilon_src_nodes):  Likewise.
60060         (merge_state_array): Likewise.
60061         (update_regs): Likewise.
60062         (build_trtable): Likewise.
60063         (sift_states_backward): Mark MCTX parameter as const.
60064         (build_sifted_states): Likewise.
60065         (update_cur_sifted_state): Likewise.
60066         (sift_states_mkref): Likewise.
60067         (check_arrival_expand_ecl): Mark eclosure as const.
60068         (check_dst_limits_calc_pos_1): Likewise.
60069         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60070         pointer.
60071
60072         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60073
60074         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60075         (transit_state_sb): Likewise.
60076         (transit_state_mb): Likewise.
60077         (sift_states_iter_mb): Likewise.
60078         (check_arrival_add_next_nodes): Likewise.
60079         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60080         [_LIBC] (re_search_2_stub): Use mempcpy.
60081
60082         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60083         mbrtowc for very simple UTF-8 case.
60084
60085         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60086         a pointer-to-const.
60087         (re_acquire_state_context): Likewise.
60088         * lib/regex_internal.h: Adjust prototypes.
60089
60090         * lib/regex.c: Prevent using C++ compilers.
60091
60092         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60093         (re_acquire_state_context): Likewise.
60094
60095 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60096
60097         * modules/regex (Depends-on): Add ssize_t.
60098
60099 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60100
60101         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60102         translation table.
60103
60104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60105
60106         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60107
60108 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60109             Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60112         <sys/types.h> and <inttypes.h>.
60113
60114 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60115
60116         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60117         `__error_t_defined', so argp.h will not typedef the former.
60118
60119 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60120
60121         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60122         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60123         glibc names.  Even if glibc is changed to conform to POSIX, the
60124         traditional names will be available anyway, since regex depends on
60125         the extensions module.  Also, fix a longstanding typo in the
60126         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60127         reported by Emanuele Giaquinta.  Also, change sense of cached
60128         variable, so that the message makes sense.
60129
60130 2006-03-24  Simon Josefsson  <jas@extundo.com>
60131
60132         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60133         including some doc fixes.
60134         (base64_encode_alloc): Fix +1 bug on allocation failures.
60135
60136 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60137
60138         * lib/base64.c (base64_encode): Do not read past end of array with
60139         unsanitized input on systems with CHAR_BIT > 8.
60140
60141 2006-03-24  Eric Blake  <ebb9@byu.net>
60142
60143         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60144
60145 2006-03-22  Karl Berry  <karl@gnu.org>
60146
60147         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60148         * config/srclistvars.sh (COREUTILS): new var.
60149
60150 2006-03-17  Jim Meyering  <jim@meyering.net>
60151
60152         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60153         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60154
60155 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60158         no longer needs it.  Instead, check that regoff_t is as least
60159         as wide as ptrdiff_t.
60160
60161         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60162         so that our regex.h stays compatible with the installed regex.
60163         This is helpful for installers who configure --without-included-regex.
60164         Problem reported by Emanuele Giaquinta.
60165
60166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60167
60168         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60169         Typedef to long int, not to off_, as POSIX will likely change
60170         in that direction.
60171
60172 2006-03-15  Eric Blake  <ebb9@byu.net>
60173
60174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60175
60176 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60177
60178         * lib/argp-help.c (validate_uparams): Fix typo
60179         * lib/argp-parse.c (argp_default_options): Consistently begin help
60180         messages with a lowercase letter.
60181
60182 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60183
60184         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60185         overrun buffers and shouldn't be used (much as gets shouldn't be
60186         used).
60187         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60188
60189 2006-03-08  Simon Josefsson  <jas@extundo.com>
60190
60191         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60192         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60193
60194 2006-03-08  Simon Josefsson  <jas@extundo.com>
60195
60196         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60197         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60198
60199 2006-03-08  Simon Josefsson  <jas@extundo.com>
60200
60201         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60202         signal that configure disabled the device.
60203
60204 2006-03-08  Simon Josefsson  <jas@extundo.com>
60205
60206         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60207         languages.
60208
60209 2006-03-07  Simon Josefsson  <jas@extundo.com>
60210
60211         * modules/getopt (Depends-on): Add unistd.
60212
60213         * modules/unistd: New file.
60214
60215 2006-03-07  Simon Josefsson  <jas@extundo.com>
60216
60217         * modules/gc-random: New file.
60218
60219 2006-03-07  Simon Josefsson  <jas@extundo.com>
60220
60221         * m4/unistd_h.m4: New file.
60222
60223 2006-03-07  Simon Josefsson  <jas@extundo.com>
60224
60225         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60226         test to be side-effect free by storing the result in the cache
60227         variable gl_cv_lib_readline, and moving the assignment of
60228         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60229         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60230
60231 2006-03-07  Simon Josefsson  <jas@extundo.com>
60232
60233         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60234         error on missing devices (the functions will return an error).
60235
60236         * m4/gc.m4: Move random stuff to gc-random.m4
60237
60238 2006-03-07  Simon Josefsson  <jas@extundo.com>
60239
60240         * lib/unistd_.h: New file.
60241
60242 2006-03-07  Simon Josefsson  <jas@extundo.com>
60243
60244         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
60245
60246 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
60249         Problem reported by Juan Manuel Guerrero.
60250
60251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
60254         the unistd module.
60255         * lib/getlogin_r.c: Likewise.
60256         * lib/getlogin_r.h: Likewise.
60257         * lib/glob.c: Likewise.
60258         * lib/pagealign_alloc.c: Likewise.
60259         * lib/unistd_.h: Remove; no longer needed.
60260
60261 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
60262
60263         * MODULES.html.sh (Support for systems lacking POSIX:2001):
60264         Add unistd.
60265         * modules/c-stack (Depends-on): Add unistd.
60266         * modules/getlogin_r: Likewise.
60267         * modules/glob: Likewise.
60268         * modules/pagealign_alloc: Likewise.
60269         * modules/unistd (Files): Remove lib/unistd_.h.
60270         (EXTRA_DIST): Remove.
60271         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
60272         need unistd_.h.
60273         (MOSTLYCLEANFILES): Remove unistd.h-t.
60274
60275 2006-03-03  Simon Josefsson  <jas@extundo.com>
60276
60277         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
60278
60279 2006-03-03  Simon Josefsson  <jas@extundo.com>
60280
60281         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
60282         libidn and bison.
60283
60284 2006-03-03  Simon Josefsson  <jas@extundo.com>
60285
60286         * build-aux/maint.mk: Add indent target.
60287
60288 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
60289
60290         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
60291         our replacement poll.h in any case, to avoid a differing
60292         declaration from a system header.  Seen on AIX.
60293
60294 2006-03-01  Simon Josefsson  <jas@extundo.com>
60295
60296         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
60297         <kasal@ucw.cz>.
60298
60299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * modules/gettime (Depends-on): Add extensions module.
60302         * modules/nanosleep (Depends-on): Likewise.
60303         * modules/settime (Depends-on): Likewise.
60304
60305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60306
60307         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
60308         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
60309         pedantically.
60310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60311         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
60312
60313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
60314         not "==".  Reported by Ralf Wildenhues.
60315
60316 2006-03-01  Karl Berry  <karl@gnu.org>
60317
60318         * doc/Copyright/request-*: new files, synced from gnuorg.
60319
60320 2006-03-01  Karl Berry  <karl@gnu.org>
60321
60322         * config/srclist.txt (Copyright/*): new entries.
60323
60324 2006-02-28  Simon Josefsson  <jas@extundo.com>
60325
60326         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
60327
60328 2006-02-27  Simon Josefsson  <jas@extundo.com>
60329
60330         * lib/base64.h: Indent #define's.  From Jim Meyering
60331         <jim@meyering.net>.
60332
60333 2006-02-27  Jim Meyering  <jim@meyering.net>
60334
60335         Revert the change of 2006-02-24, so these files can continue
60336         to be sync'd from gettext.
60337         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
60338         of `config.h'.
60339
60340 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * modules/intprops: New file.
60343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60344         Add intprops.
60345         * modules/getloadavg (Files): Remove lib/intprops.h.
60346         (Depends-on): Add intprops.
60347         * modules/human: Likewise.
60348         * modules/inttostr: Likewise.
60349         * modules/openat: Likewise.
60350         * modules/sig2str: Likewise.
60351         * modules/userspec: Likewise.
60352         * modules/utimecmp: Likewise.
60353         * modules/xnanosleep: Likewise.
60354         * modules/xstrtol: Likewise.
60355
60356 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
60357
60358         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
60359         * modules/lock-tests (TESTS): Use $(EXEEXT).
60360         * modules/tls-tests: Likewise.
60361         * modules/argp-tests: Likewise.
60362         (check_PROGRAMS): New var, replacing...
60363         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
60364
60365 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60366
60367         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
60368         `config.h'.
60369
60370 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
60373
60374 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60375
60376         Sync from coreutils.
60377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
60378         gl_CHDIR_SAFER.
60379
60380 2006-02-22  Jim Meyering  <jim@meyering.net>
60381
60382         Sync from coreutils.
60383         * m4/chdir-safer.m4: New file.
60384
60385 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
60388         AT_FDCWD exceeds INT_MAX.
60389         * lib/openat.h (AT_FDCWD): Likewise.
60390
60391 2006-02-17  Eric Blake  <address@hidden>
60392
60393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
60394
60395 2006-02-16  Simon Josefsson  <jas@extundo.com>
60396
60397         * modules/getaddrinfo (Depends-on): Add sys_socket.
60398
60399 2006-02-15  Simon Josefsson  <jas@extundo.com>
60400
60401         * build-aux/maint.mk: Add dsyntax-check rule.
60402
60403 2006-02-15  Eric Blake  <ebb9@byu.net>
60404
60405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
60406         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
60407         'present but cannot compile' warnings on cygwin.
60408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
60409         use ws2tcpip.h if sys/socket.h works.
60410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
60411         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
60412
60413 2006-02-14  Simon Josefsson  <jas@extundo.com>
60414
60415         * modules/maintainer-makefile (Files): Rename.
60416
60417         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
60418         and (the local) Makefile.cfg to maint-cfg.mk.
60419
60420         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
60421         to the latter.
60422
60423         * modules/maintainer-makefile: New module.
60424
60425         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
60426         severaly stripped to make it possible to build it up from scratch
60427         with reliable tests.
60428
60429         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
60430         fixes to permit overriding the default actions when configure and
60431         makefile are not available.
60432
60433 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         Sync from coreutils.
60436         * modules/lstat (Depends-on): Don't depend on xalloc.
60437         (License): Change from GPL to LGPL, since this is now simply a
60438         replacement for a libc function.
60439
60440 2006-02-14  Jim Meyering  <jim@meyering.net>
60441
60442         Sync from coreutils.
60443
60444         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
60445         failure on deficient systems, and simplify gnulib lgpl dependencies.
60446         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
60447         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
60448
60449         * lib/xalloc-die.c: Remove unused definition of N_.
60450
60451 2006-02-14  Jim Meyering  <jim@meyering.net>
60452
60453         Sync from coreutils.
60454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
60455         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
60456         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
60457         double-quote uses of that variable, to accommodate the rare case in
60458         which getmntent is available in none of the libraries checked.  This
60459         happens at least on FreeBSD 5.0.
60460
60461 2006-02-13  Simon Josefsson  <jas@extundo.com>
60462
60463         * gnulib-tool (Usage): Fix --import, from
60464         karl@freefriends.org (Karl Berry).
60465
60466 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60467
60468         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
60469
60470 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
60471
60472         * lib/argp-namefrob.h: Restore changes accidentally lost during the
60473         "autoupdate" on 2005-12-12.
60474
60475 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60476
60477         * modules/closeout (Depends-on): Remove atexit.
60478
60479 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
60482         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
60483
60484 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
60487         __EXTENSIONS__ if this causes compilation to fail.  Problem
60488         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
60489         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
60490
60491 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
60492
60493         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
60494         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
60495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
60496         All uses changed.
60497
60498 2006-01-26  Simon Josefsson  <jas@extundo.com>
60499
60500         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
60501         prototype is visible on mingw32.
60502
60503         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
60504         for mingw32.
60505
60506         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
60507         mingw32).
60508
60509 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
60512         attempt to open for write; this always fails, at least on POSIX
60513         hosts.  This reinstates the 2006-01-09 change, which was
60514         inadvertently removed.
60515
60516 2006-01-26  Bruno Haible  <bruno@clisp.org>
60517
60518         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
60519         Reported by Paul Eggert.
60520
60521 2006-01-26  Bruno Haible  <bruno@clisp.org>
60522             Paul Eggert  <eggert@cs.ucla.edu>
60523
60524         * lib/stdbool_.h (_Bool)
60525         [(! (defined __cplusplus || defined __BEOS__)
60526           && !defined __GNUC__
60527           && !(defined __HP_cc || defined __xlc__
60528                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
60529                || defined __sgi))]:
60530         #define to signed char in these cases too; this simplifies
60531         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
60532         etc., separately) and makes it more conservative.
60533
60534 2006-01-25  Simon Josefsson  <jas@extundo.com>
60535
60536         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
60537         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
60538         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
60539
60540 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60541
60542         * lib/argp-namefrob.h: Bugfix. Remove stray #
60543
60544 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60545
60546         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
60547         so that we test the test.
60548         Check for yet another HP-UX cc bug involving *bool |= bool.
60549
60550 2006-01-25  Karl Berry  <karl@gnu.org>
60551
60552         * config/srclist.txt (vasnprintf.c): sync lost.
60553
60554 2006-01-25  Jim Meyering  <jim@meyering.net>
60555
60556         Sync from the stable (b5) branch of coreutils:
60557
60558         * lib/fts.c (fts_children): Don't let close() clobber errno from
60559         failed fchdir().
60560
60561         * lib/fts.c (fts_stat): When following a symlink-to-directory,
60562         don't necessarily interpret stat-fails+lstat-succeeds as indicating
60563         a dangling symlink.  That can also happen at least for ELOOP.
60564         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
60565         FYI, this bug predates the inclusion of fts.c in coreutils.
60566
60567         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
60568         in their own block, so pre-c99 compilers don't object.
60569
60570         Avoid the double-free (first in fts_read, second in fts_close) that
60571         would occur when an `active' directory is made inaccessible (e.g.,
60572         via chmod a-x) during a traversal.
60573         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60574         before returning.  Reproduce this failure by
60575         mkdir -p a/b; cd a; chmod a-x . b
60576         Reported by Stavros Passas.
60577
60578 2006-01-25  Jim Meyering  <jim@meyering.net>
60579
60580         * lib/fileblocks.c: Remove more useless parentheses.
60581         * lib/readutmp.h: Likewise.
60582
60583 2006-01-25  Bruno Haible  <bruno@clisp.org>
60584
60585         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
60586         warnings.
60587         Reported by Paul Eggert.
60588
60589 2006-01-25  Bruno Haible  <bruno@clisp.org>
60590
60591         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
60592         rid of a trap command. For Solaris sh.
60593         Reported by Mark D. Baushke <mdb@gnu.org>.
60594
60595 2006-01-24  Simon Josefsson  <jas@extundo.com>
60596
60597         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
60598         Bruno.
60599
60600 2006-01-24  Karl Berry  <karl@gnu.org>
60601
60602         * config/srclist.txt (argp-namefrob.h): sync lost.
60603
60604 2006-01-24  Jim Meyering  <jim@meyering.net>
60605
60606         * modules/openat (Files): Add lib/intprops.h.
60607         From Mark D. Baushke.
60608
60609 2006-01-24  Jim Meyering  <jim@meyering.net>
60610
60611         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
60612         Reported by Mark D. Baushke.
60613
60614 2006-01-24  Jim Meyering  <jim@meyering.net>
60615
60616         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
60617
60618 2006-01-24  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/strnlen (Maintainer): Change from glibc to all.
60621
60622 2006-01-24  Bruno Haible  <bruno@clisp.org>
60623
60624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
60625         Patch by Paul Eggert.
60626
60627 2006-01-24  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
60630         already has it.
60631         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
60632         2005-11-26.
60633
60634         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
60635         'signed char' to avoid problems with the built-in _Bool type.
60636         Reported by Paul Eggert on 2005-11-26.
60637
60638 2006-01-24  Bruno Haible  <bruno@clisp.org>
60639
60640         * gnulib-tool (func_import): Avoid constructing complicated sed
60641         expressions inside backquote.
60642         Report and solution by Mark D. Baushke <mdb@gnu.org>.
60643
60644 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
60645
60646         These changes imported from libc.
60647         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
60648         test and two separate function calls.
60649         * lib/strndup.c (__strndup): Add libc_hidden_def.
60650
60651 2006-01-23  Simon Josefsson  <jas@extundo.com>
60652
60653         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
60654         Remove the test_*_SOURCES variable: automake infers it by default.
60655         * modules/tls-tests: Likewise.
60656
60657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         Work around porting bugs reported by Dieter in
60660         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
60661         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
60662         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
60663         Include "getopt.h" first, to check interface.
60664         (getenv): Declare only if defined HAVE_DECL_GETENV &&
60665         !HAVE_DECL_GETENV.
60666         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
60667         (__strndup): Revert to K&R-style function dfns, the glibc style.
60668         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
60669         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
60670         Include strnlen.h first, to get prototype properly.
60671         (strnlen): Renamed from __strnlen.
60672         Remove weak alias.
60673
60674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
60677
60678 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         * config/srclist.txt: Adjust to reflect glibc reorganization.
60681         This affects only comments.
60682
60683 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60684
60685          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
60686          Reported by Bruce Korb <bkorb@gnu.org>.
60687
60688 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
60691         to pacify gcc -Wswitch-default.
60692
60693 2006-01-22  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
60696         temporary buffer for sprintf, take into account the precision also
60697         for 'd', 'i', 'u', 'o', 'x', 'X'.
60698
60699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60700
60701         * modules/argp-tests: New module
60702         * tests/test-argp.c: New file
60703         * tests/test-argp-2.sh: New file
60704
60705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
60706
60707         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
60708         (__argp_base_name): Removed
60709         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
60710         typo.
60711         (__argp_base_name): Provide macro definition or extern declaration
60712         depending on the configuration
60713
60714 2006-01-20  Simon Josefsson  <jas@extundo.com>
60715
60716         * modules/inet_ntop (Depends-on): Depend on sys_socket.
60717
60718 2006-01-20  Simon Josefsson  <jas@extundo.com>
60719
60720         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
60721
60722 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
60725         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
60726         Suggested by Bruno Haible.
60727
60728 2006-01-20  Karl Berry  <karl@gnu.org>
60729
60730         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
60731         until changes propagate, I guess.
60732
60733 2006-01-19  Simon Josefsson  <jas@extundo.com>
60734
60735         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
60736
60737 2006-01-19  Simon Josefsson  <jas@extundo.com>
60738
60739         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
60740
60741 2006-01-19  Simon Josefsson  <jas@extundo.com>
60742
60743         * gnulib-tool: Set check_PROGRAMS.
60744
60745         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60746         modules/des-tests, modules/gc-arcfour-tests,
60747         modules/gc-arctwo-tests, modules/gc-des-tests,
60748         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60749         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60750         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60751         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60752         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60753         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
60754         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
60755         test_*_SOURCES.
60756
60757 2006-01-18  Simon Josefsson  <jas@extundo.com>
60758
60759         * modules/socklen (Depends-on): Depend on sys_socket.
60760
60761 2006-01-18  Simon Josefsson  <jas@extundo.com>
60762
60763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
60764         modules/des-tests, modules/gc-arcfour-tests,
60765         modules/gc-arctwo-tests, modules/gc-des-tests,
60766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
60767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
60768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
60769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
60770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
60771         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
60772         $(EXEEXT) to automake TESTS variable, for mingw32.
60773
60774 2006-01-17  Simon Josefsson  <jas@extundo.com>
60775
60776         * modules/socklen (Include): Need sys/socket.h.
60777
60778 2006-01-17  Bruno Haible  <bruno@clisp.org>
60779
60780         * modules/ssize_t (Include): Add <sys/types.h>.
60781
60782 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
60785         it's not portable and it doesn't work with cross-compiles.
60786         Problem reported by Bruno Haible.  Fix missing-$ typo in
60787         'test "gl_cv_ignore_unused_libraries" ...' that prevented
60788         -zignore from being used with Sun's C compiler.
60789
60790 2006-01-12  Simon Josefsson  <jas@extundo.com>
60791
60792         * lib/base64.c: Fix warning, reported by Bruno Haible
60793         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
60794
60795 2006-01-12  Bruno Haible  <bruno@clisp.org>
60796
60797         * modules/ldd: New file.
60798         * build-aux/ldd.sh.in: New file.
60799         * MODULES.html.sh (Support for building libraries and executables): Add
60800         ldd.
60801
60802 2006-01-12  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/ldd.m4: New file.
60805
60806 2006-01-12  Bruno Haible  <bruno@clisp.org>
60807
60808         * gnulib-tool (func_import, func_create_testdir): Don't go into an
60809         endless loop while replacing $auxdir with build-aux.
60810
60811 2006-01-11  Simon Josefsson  <jas@extundo.com>
60812
60813         * lib/stdint_.h (SIZE_MAX): Add missing (.
60814
60815 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60816
60817         Sync from coreutils.
60818         * lib/md5.c: Fix commentary typos.
60819         (alignof, UNALIGNED_P): No need for a GCC-specific version.
60820         * lib/md5.h (__attribute__): Remove; unused.
60821         * lib/sha1.c: Fix commentary to match md5 better.
60822         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
60823         so that we don't need to worry about alignment.  All uses changed.
60824         This merges the 2005-10-28 md5 change into sha1.
60825
60826 2006-01-11  Jim Meyering  <jim@meyering.net>
60827
60828         Sync from coreutils.
60829         * lib/md5.c (OP): Fix spacing.
60830
60831 2006-01-11  Bruno Haible  <bruno@clisp.org>
60832
60833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60834         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
60835         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
60836
60837 2006-01-11  Bruno Haible  <bruno@clisp.org>
60838
60839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
60840         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
60841         the "early" section as well.
60842
60843 2006-01-11  Bruno Haible  <bruno@clisp.org>
60844
60845         Avoid "ar: no archive members specified" error on MacOS X.
60846         * gnulib-tool (func_modules_add_dummy): New function.
60847         (func_import, func_create_testdir): Invoke it.
60848
60849 2006-01-11  Bruno Haible  <bruno@clisp.org>
60850
60851         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
60852         with $auxdir in AC_CONFIG_FILES statements.
60853
60854 2006-01-11  Bruno Haible  <bruno@clisp.org>
60855
60856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60857         Initialize also noinst_HEADERS to empty.
60858
60859 2006-01-11  Bruno Haible  <bruno@clisp.org>
60860
60861         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
60862         variables.
60863         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
60864         autoreconf.
60865
60866 2006-01-11  Bruno Haible  <bruno@clisp.org>
60867
60868         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
60869         overridable by the user.
60870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60871
60872 2006-01-10  Simon Josefsson  <jas@extundo.com>
60873
60874         * modules/sys_socket: New file.
60875
60876 2006-01-10  Simon Josefsson  <jas@extundo.com>
60877
60878         * m4/sys_socket_h.m4: New file.
60879
60880 2006-01-10  Simon Josefsson  <jas@extundo.com>
60881
60882         * lib/socket_.h: New file.
60883
60884 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60885
60886         * modules/readutmp (Maintainer): Add myself.
60887
60888 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60889
60890         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
60891         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
60892         People who are still concerned with buggy memcmp implementations
60893         can invoke gl_FUNC_MEMCMP themselves.
60894
60895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60896
60897         * lib/regex_internal.h (BITSET_WORD_BITS):
60898         Work around a bug in 64-bit PGC (before version 6.1-2), where the
60899         preprocessor mishandles large unsigned values as if they were signed.
60900         Problem reported by Claudio Fontana in
60901         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
60902
60903 2006-01-10  Jim Meyering  <jim@meyering.net>
60904
60905         Avoid the double-free (first in fts_read, second in fts_close) that
60906         would occur when an `active' directory is made inaccessible (e.g.,
60907         via chmod a-x) during a traversal.
60908         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
60909         before returning.  Reproduce this failure by
60910         mkdir -p a/b; cd a; chmod a-x . b
60911         Reported by Stavros Passas.
60912
60913         Sync from coreutils.
60914         * lib/sha1.c: Tweak grammar in a comment.
60915
60916 2006-01-10  Jim Meyering  <jim@meyering.net>
60917
60918         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
60919         Patch by Joerg Sonnenberger.
60920
60921 2006-01-10  Bruno Haible  <bruno@clisp.org>
60922
60923         * modules/readutmp: Depend on module free.
60924         * modules/strtok_r: Depend on module restrict.
60925
60926 2006-01-10  Bruno Haible  <bruno@clisp.org>
60927
60928         * modules/gettext (configure.ac): Add an invocation of
60929         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
60930
60931 2006-01-10  Bruno Haible  <bruno@clisp.org>
60932
60933         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
60934         Reported by Werner Lemberg <wl@gnu.org>.
60935
60936 2006-01-10  Bruno Haible  <bruno@clisp.org>
60937
60938         * lib/localcharset.c: Update from GNU gettext.
60939
60940 2006-01-10  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/argp.h (__const): Remove macro. Use const instead.
60943         * lib/argp-fmtstream.h (__const): Likewise.
60944         * lib/glob_.h (__const): Remove macro.
60945         * lib/glob-libc.h: Use const instead of __const.
60946
60947 2006-01-10  Bruno Haible  <bruno@clisp.org>
60948
60949         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
60950         variable.
60951         Needed to avoid an automake error regarding the 'gettext' module.
60952
60953 2006-01-09  Simon Josefsson  <jas@extundo.com>
60954
60955         * modules/inet_ntop (Depends-on): Add restrict.
60956
60957 2006-01-09  Simon Josefsson  <jas@extundo.com>
60958
60959         * modules/gc-rijndael-tests (License): Put under LGPL.
60960
60961         * modules/gc-des-tests (License): Likewise.
60962
60963         * modules/gc-arcfour-tests (License): Likewise.
60964
60965         * modules/gc-arctwo-tests (License): Likewise.
60966
60967         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
60968
60969         * modules/gc-hmac-sha1-tests (Files): Likewise.
60970
60971         * modules/gc-hmac-md5-tests (License): Likewise.
60972
60973         * modules/gc-sha1-tests (License): Likewise.
60974
60975         * modules/gc-md5-tests (License): Likewise.
60976
60977         * modules/gc-md4-tests (License): Likewise.
60978
60979         * modules/gc-md2-tests (License): Likewise.
60980
60981         * modules/gc-tests (License): Likewise.
60982
60983         * modules/des-tests (License): Likewise.
60984
60985         * modules/md4-tests (License): Likewise.
60986
60987         * modules/md2-tests (License): Likewise.
60988
60989 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         Sync from coreutils:
60992
60993         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60994         * modules/lib-ignore: New file.
60995         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60996         chdir-safer.m4, lchmod.m4.
60997         * modules/openat: Add mkdirat.c, openat-priv.h.
60998
60999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         Sync from coreutils.
61002         * m4/lib-ignore.m4: New file.
61003         * m4/lchmod.m4: New file.
61004
61005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         Sync from coreutils.
61008         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61009         for write access: POSIX says that must fail.
61010         * lib/fts.c (diropen): Likewise.
61011         * lib/save-cwd.c (save_cwd): Likewise.
61012         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61013         well, for minor improvements on hosts that lack O_DIRECTORY.
61014         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61015         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61016         Fall back on chown if open failed with EACCES.
61017
61018         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61019         Report an error at compile-time if only a 1-second nominal clock
61020         resolution is found.
61021
61022         * lib/lchmod.h: New file.
61023         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61024         (make_dir_parents): Use lchown rather than chown, and
61025         lchmod rather than chmod.
61026
61027         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61028         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61029         "proc" reported by n0dalus.
61030
61031         * lib/mountlist.c: Include <limits.h>.
61032         (dev_from_mount_options)
61033         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61034         New function.  It no longer assumes "dev=" has the System V meaning
61035         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61036         (read_file_system_list)
61037         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61038         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61039         dev= in that case.
61040
61041         * lib/posixtm.h (PDS_PRE_2000): New macro.
61042         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61043         allow_century.  All usages changed.  Reject dates outside the range
61044         1969-1999 if PDS_PRE_2000 is used.
61045
61046 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         Sync from coreutils.
61049         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61050         (Time of day items): Mention the possibility of leap seconds.
61051         Problem reported by Dr. David Alan Gilbert.
61052
61053 2006-01-09  Jim Meyering  <jim@meyering.net>
61054
61055         Sync from coreutils.
61056
61057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61058
61059         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61060
61061         * lib/modechange.c (mode_compile): Reject an invalid mode string
61062         that starts with an octal digit.  From Andreas Gruenbacher.
61063
61064         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61065         and dup to open_safer and dup_safer, respectively.
61066         (openat_permissive): Fix typo in comment.
61067
61068         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61069         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61070         (_): Remove; no longer needed.
61071         (openat): Renamed from rpl_openat; no need for rpl_openat
61072         since openat.h renames openat for us.
61073         Replace most of the body with a call to openat_permissive,
61074         to avoid duplicate code.
61075         Port to (probably hypothetical) environments were mode_t is
61076         wider than int.
61077         (openat_permissive): Require mode arg, so that we can check
61078         types better.  Put it just after flags.  Change cwd failure
61079         indicator from pointer-to-bool to pointer-to-errno-value.
61080         All callers changed.
61081         Invoke openat_save_fail and/or openat_restore_fail if
61082         cwd_errno is null, so that openat can call us.
61083         (openat_permissive, fdopendir, fstatat, unlinkat):
61084         Simplify errno handling to avoid some duplicate code,
61085         as it's OK to set errno on success.
61086         * lib/openat.h: Revamp code so that function macros depend on
61087         __OPENAT_PREFIX only, not also on AT_FDCWD.
61088         (openat_ro): Remove.  Caller changed to use openat_permissive.
61089         (openat_permissive): Now a macro, if not a function.
61090         (openat_restore_fail, openat_save_fail): Now always functions,
61091         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61092
61093         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61094         and openat.c.
61095         * lib/mkdirat.c: Include openat-priv.h.
61096         Remove definitions of macros defined therein.
61097         * lib/openat.c: Likewise.
61098
61099         * lib/mkdirat.c (mkdirat): New file and function.
61100         * lib/openat.h (mkdirat): Declare.
61101
61102         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61103
61104         * lib/openat.h (openat_permissive): Declare.
61105         (openat_ro): Define.
61106
61107         * lib/openat.c (EXPECTED_ERRNO): New macro.
61108         (openat_permissive): New function -- used in remove.c rewrite.
61109         (all functions): Set errno just before returning, only if there
61110         was an actual failure.
61111         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61112
61113         Emulate openat-family functions using Linux's procfs, if possible.
61114         Idea and some code based on Ulrich Drepper's glibc changes.
61115
61116         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61117         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61118         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61119         before falling back on save_cwd and restore_cwd.
61120         (fdopendir, fstatat, unlinkat): Likewise.
61121
61122         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61123         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61124
61125         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61126         as second argument to va_arg.  Otherwise, some versions of gcc
61127         warn that `if this code is reached, the program will abort'.
61128
61129 2006-01-09  Jim Meyering  <jim@meyering.net>
61130
61131         Sync from coreutils.
61132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61133         Require openat-priv.h.
61134
61135 2006-01-09  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/strnlen (Include): Use strnlen.h.
61138
61139 2006-01-09  Bruno Haible  <bruno@clisp.org>
61140
61141         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61142
61143 2006-01-09  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/sysexit_.h (EX_OK): New macro.
61146         Suggested by Martin Lambers <marlam@marlam.de>.
61147
61148 2006-01-09  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61151         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61152
61153 2006-01-09  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61156         numbers.
61157
61158 2006-01-09  Bruno Haible  <bruno@clisp.org>
61159
61160         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61161         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61162         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61163         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61164
61165 2006-01-09  Bruno Haible  <bruno@clisp.org>
61166
61167         * build-aux/javacomp.sh.in: New file, moved from lib/.
61168         * modules/javacomp-script (Files): Update.
61169         (configure.ac): Add AC_CONFIG_FILES invocation.
61170         (EXTRA_DIST): Remove variable.
61171
61172         * build-aux/javaexec.sh.in: New file, moved from lib/.
61173         * modules/javaexec (Files): Update.
61174         (configure.ac): Add AC_CONFIG_FILES invocation.
61175         (EXTRA_DIST): Remove javaexec.sh.in.
61176
61177         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61178         * modules/csharpcomp-script (Files): Update.
61179         (configure.ac): Add AC_CONFIG_FILES invocation.
61180         (EXTRA_DIST): Remove variable.
61181
61182         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61183         * modules/csharpexec (Files): Update.
61184         (configure.ac): Add AC_CONFIG_FILES invocation.
61185         (EXTRA_DIST): Remove csharpexec.sh.in.
61186
61187 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61188
61189         Sync from coreutils.
61190
61191         Add POSIX ACL support
61192         * lib/acl.h (copy_acl, set_acl): Add declarations.
61193         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61194         systems other than Linux.
61195         (chmod_or_fchmod): New function: use fchmod when possible,
61196         and chmod otherwise.
61197         (file_has_acl): Add a POSIX ACL implementation, with a
61198         Linux-specific subcase.
61199         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61200         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61201         acls are unsupported.
61202         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61203         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61204         are unsupported.
61205
61206 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61207
61208         Sync from coreutils.
61209         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61210
61211 2006-01-07  Bruno Haible  <bruno@clisp.org>
61212
61213         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61214         gl_EARLY.
61215
61216 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61217
61218         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61219         Problem reported for Mingw by Mark Junker.
61220
61221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61222
61223         * README: Gnulib normally doesn't generate a tarball.
61224
61225 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61226
61227         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61228         long int, not int, for nanosecond counts, so that people who are
61229         used to POSIX struct timespec won't be surprised.  Reported by Jim
61230         Meyering.
61231
61232 2005-12-28  Bruno Haible  <bruno@clisp.org>
61233
61234         * build-aux/config.rpath: Update from GNU gettext.
61235
61236 2005-12-16  Jim Meyering  <jim@meyering.net>
61237
61238         * modules/fprintftime: New module.
61239         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61240
61241 2005-12-16  Jim Meyering  <jim@meyering.net>
61242
61243         * m4/fprintftime.m4: New file.
61244
61245 2005-12-16  Jim Meyering  <jim@meyering.net>
61246
61247         * lib/fprintftime.c, lib/fprintftime.h: New files.
61248
61249 2005-12-15  Simon Josefsson  <jas@extundo.com>
61250
61251         * modules/socklen (configure.ac): Fix M4 macro name, to align with
61252         new m4/socklen.m4.
61253
61254 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61255
61256         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
61257         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
61258
61259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61260
61261         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
61262         * lib/argp-help.c (fill_in_uparams): Check if the constructed
61263         struct uparams is valid. Fall back to the default values if it is
61264         not.
61265
61266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61267
61268         * modules/argp (Files): Add argp-pin.c
61269         (Depends-on): dirname
61270         (lib_SOURCES): Add argp-pin.c
61271
61272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61273
61274         * m4/argp.m4:  Check if program_invocation_name and
61275         program_invocation_short_name are declared and define appropriate
61276         macros if they are not.
61277
61278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61279
61280         * lib/argp-help.c (__argp_base_name): New function
61281         (__argp_short_program_name): Rewrite using __argp_base_name
61282         * lib/argp-namefrob.h: Define program_invocation_name and
61283         program_invocation_short_name if requested
61284         (__argp_base_name): Add prototype
61285         * lib/argp-parse.c (argp_def): Use gettext wrappers
61286         (argp_default_parser): Use __argp_base_name
61287         * lib/argp-pin.c: New file. Defines program_invocation_name and
61288         program_invocation_short_name on systems that lack them.
61289
61290 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
61293         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61294         porting problem reported by Georg Schwarz in
61295         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61296
61297 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
61300         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
61301         porting problem reported by Georg Schwarz in
61302         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
61303
61304 2005-12-05  Bruno Haible  <bruno@clisp.org>
61305
61306         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
61307         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
61308         Reported by Mark Junker <mjscod@gmx.de>.
61309
61310 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
61311
61312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
61313         Use implementation from Albert Chin, with some
61314         comments/corrections by Stepan Kasal and myself.
61315
61316 2005-12-02  Bruno Haible  <bruno@clisp.org>
61317
61318         * gnulib-tool (func_import): Accept GPLed build tool modules when
61319         --lgpl is given.
61320         * modules/csharpcomp-script: New file.
61321         * modules/csharpcomp: Depend on it.
61322         * modules/javacomp-script: New file.
61323         * modules/javacomp: Depend on it.
61324         Suggested by Simon Josefsson.
61325
61326 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61327
61328         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
61329         statement, to work around an HP-UX 10.20 compiler bug reported by
61330         Peter O'Gorman.
61331
61332 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * modules/savedir (Depends-on): Add openat.
61335
61336 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
61337
61338         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
61339         (uintmax_t) [defined uintmax_t]: Do not declare.
61340         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
61341         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
61342         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
61343         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
61344         sake of portability to weird hosts that C allows (though we don't
61345         know of any practical examples).
61346
61347         * lib/savedir.h (fdsavedir): New decl.
61348         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
61349         contains most of the former guts of savedir.
61350         (savedir): Use savedirstream.
61351         Include "openat.h".
61352
61353 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         * modules/obstack (Files): Add m4/ulonglong.m4.
61356         Problem reported by Davide Angelocola.
61357
61358 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61359
61360         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
61361         coreutils no longer futzes with rounding modes.
61362
61363 2005-11-14  Jim Meyering  <jim@meyering.net>
61364
61365         * lib/mkstemp-safer.c: Include <config.h>, required for possible
61366         replacement of mkstemp.
61367
61368 2005-11-10  Simon Josefsson  <jas@extundo.com>
61369
61370         * lib/readline.c: Remove EOL.
61371
61372 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61373
61374         * modules/gethrxtime (Depends-on): Add gettime.
61375
61376 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61377
61378         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
61379         or gettimeofday; no longer needed.
61380
61381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
61384         time business.
61385         (gethrxtime) [! (HAVE_NANOUPTIME
61386         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
61387         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
61388         our own approximation.
61389
61390 2005-11-08  Eric Blake  <ebb9@byu.net>
61391
61392         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61393
61394 2005-11-08  Eric Blake  <ebb9@byu.net>
61395
61396         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
61397
61398 2005-11-04  Bruno Haible  <bruno@clisp.org>
61399
61400         * gnulib-tool: Implement --update mode.
61401
61402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         Fix porting problem reported by Theodoros V. Kalamatianos.
61405         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
61406         Don't assume that futimes failing means we must fail.
61407
61408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
61411         variables to suggest the intended function of the PATH_MAX check.
61412
61413 2005-10-30  Kean Johnston  <jkj@sco.com>
61414
61415         Trivial changes to support SCO systems.
61416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
61417         as PATH_MAX.
61418         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
61419         where __ptr is null when no I/O is pending.
61420
61421 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
61424         leave errno alone.  Problem reported by Dmitry V. Levin.
61425
61426 2005-10-28  Simon Josefsson  <jas@extundo.com>
61427
61428         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
61429         Test more.
61430
61431         * tests/test-gc-md2.c, tests/test-md2.c: New files.
61432
61433         * modules/md2, modules/md2-tests: New files.
61434
61435 2005-10-28  Simon Josefsson  <jas@extundo.com>
61436
61437         * m4/inet_ntop.m4: More tests.
61438
61439         * m4/gc-md2.m4, md2.m4: New file.
61440
61441 2005-10-28  Simon Josefsson  <jas@extundo.com>
61442
61443         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
61444         "restrict" keywords, as per POSIX.  Protect the function
61445         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
61446         Don't use K&R prototypes.  Check the sprintf return values.
61447         Re-define EAFNOSUPPORT if not present.  Indent.
61448
61449         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
61450         suggested by Bruno Haible <bruno@clisp.org>.
61451
61452         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
61453
61454         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
61455
61456         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
61457         libgcrypt).
61458
61459         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
61460
61461         * lib/md2.h, lib/md2.c: New files.
61462
61463 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
61466         errno alone.  Problem reported by Frederic Jolliton.
61467
61468 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * modules/verify (License): Change from GPL to LGPL.  This is a
61471         tiny module and there are apparently near-equivalents that are
61472         under the BSD license.
61473
61474 2005-10-24  Simon Josefsson  <jas@extundo.com>
61475
61476         * modules/sha1: Relicense to LGPL.
61477
61478 2005-10-24  Simon Josefsson  <jas@extundo.com>
61479
61480         * lib/md4.h: Shrink buffer size, now that we changed the type.
61481
61482 2005-10-23  Simon Josefsson  <jas@extundo.com>
61483
61484         * gnulib-tool (func_import): Fix --tests-base.
61485
61486 2005-10-22  Simon Josefsson  <jas@extundo.com>
61487
61488         * modules/arcfour (Depends-on): Need stdint.
61489
61490 2005-10-22  Simon Josefsson  <jas@extundo.com>
61491
61492         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
61493         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
61494
61495 2005-10-22  Simon Josefsson  <jas@extundo.com>
61496
61497         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
61498         suggested by Bruno Haible <bruno@clisp.org>.
61499
61500 2005-10-22  Simon Josefsson  <jas@extundo.com>
61501
61502         * lib/crc.h: Include stddef.h, for size_t.
61503
61504 2005-10-22  Simon Josefsson  <jas@extundo.com>
61505
61506         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
61507         arcfour_context struct (simplify test vector testing in GNU
61508         Shishi).
61509
61510 2005-10-21  Simon Josefsson  <jas@extundo.com>
61511
61512         * modules/des, modules/des-tests: New files.
61513
61514         * modules/gc-des, modules/gc-des-tests: New files.
61515
61516         * tests/test-des.c, tests/test-gc-des.c: New file.
61517
61518 2005-10-21  Simon Josefsson  <jas@extundo.com>
61519
61520         * modules/arctwo, modules/arctwo-tests: New files.
61521
61522         * tests/test-arctwo.c: New file.
61523
61524         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
61525
61526         * tests/test-gc-arctwo.c: New file.
61527
61528 2005-10-21  Simon Josefsson  <jas@extundo.com>
61529
61530         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
61531         Bruno Haible <bruno@clisp.org>.
61532
61533         * m4/gc-des.m4: New file.
61534
61535 2005-10-21  Simon Josefsson  <jas@extundo.com>
61536
61537         * m4/arctwo.m4: New file.
61538
61539         * m4/gc-arctwo.m4: New file.
61540
61541 2005-10-21  Simon Josefsson  <jas@extundo.com>
61542
61543         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
61544         block.
61545
61546 2005-10-21  Simon Josefsson  <jas@extundo.com>
61547
61548         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
61549         <bruno@clisp.org>.
61550
61551         * lib/hmac-sha1.c (hmac_sha1): Likewise.
61552
61553         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
61554         Bruno Haible <bruno@clisp.org>.
61555
61556         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
61557         <bruno@clisp.org>.
61558
61559 2005-10-21  Simon Josefsson  <jas@extundo.com>
61560
61561         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
61562
61563 2005-10-21  Simon Josefsson  <jas@extundo.com>
61564
61565         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
61566
61567 2005-10-21  Simon Josefsson  <jas@extundo.com>
61568
61569         * lib/des.h, lib/des.c: New files.
61570
61571         * lib/gc-gnulib.c: Support DES.c
61572
61573 2005-10-21  Simon Josefsson  <jas@extundo.com>
61574
61575         * lib/arctwo.h, lib/arctwo.c: New files.
61576
61577         * lib/gc-gnulib.c: Support ARCTWO.
61578
61579 2005-10-21  Simon Josefsson  <jas@extundo.com>
61580
61581         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
61582         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61583
61584 2005-10-21  Simon Josefsson  <jas@extundo.com>
61585
61586         * gnulib-tool (func_import, func_create_testdir): Define automake
61587         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
61588         Makefile.am snippet),
61589         suggested by Bruno Haible <bruno@clisp.org>.
61590
61591         * modules/gc (Makefile.am): Use it.
61592
61593 2005-10-21  Bruno Haible  <bruno@clisp.org>
61594
61595         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
61596         patch.
61597
61598 2005-10-19  Simon Josefsson  <jas@extundo.com>
61599
61600         * tests/test-gc-rijndael.c: New file.
61601
61602         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
61603
61604 2005-10-19  Simon Josefsson  <jas@extundo.com>
61605
61606         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
61607         interface too.
61608
61609 2005-10-19  Simon Josefsson  <jas@extundo.com>
61610
61611         * tests/test-gc-arcfour.c: New file.
61612
61613         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
61614
61615 2005-10-19  Simon Josefsson  <jas@extundo.com>
61616
61617         * modules/gc-md4, modules/gc-md4-tests: New file.
61618
61619         * tests/test-gc-md4.c: New file.
61620
61621 2005-10-19  Simon Josefsson  <jas@extundo.com>
61622
61623         * m4/gc-md4.m4: New file.
61624
61625 2005-10-19  Simon Josefsson  <jas@extundo.com>
61626
61627         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
61628         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
61629         <kasal@ucw.cz>.
61630
61631 2005-10-19  Simon Josefsson  <jas@extundo.com>
61632
61633         * m4/gc-arcfour.m4: New file.
61634
61635         * m4/gc-rijndael.m4: New file.
61636
61637 2005-10-19  Simon Josefsson  <jas@extundo.com>
61638
61639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
61640
61641 2005-10-19  Simon Josefsson  <jas@extundo.com>
61642
61643         * lib/gc-gnulib.c: Support ARCFOUR.
61644
61645 2005-10-19  Simon Josefsson  <jas@extundo.com>
61646
61647         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
61648         support.
61649
61650         * lib/gc.h: Add ECB enum type.
61651
61652         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
61653
61654 2005-10-18  Simon Josefsson  <jas@extundo.com>
61655
61656         * tests/test-md5.c: New file.
61657
61658         * modules/md5-tests: New file.
61659
61660 2005-10-18  Simon Josefsson  <jas@extundo.com>
61661
61662         * tests/test-md4.c: New file.
61663
61664         * modules/md4, modules/md4-tests: New files.
61665
61666 2005-10-18  Simon Josefsson  <jas@extundo.com>
61667
61668         * m4/md4.m4: New file.
61669
61670 2005-10-18  Simon Josefsson  <jas@extundo.com>
61671
61672         * lib/md4.h, lib/md4.c: New files, based on md5.?.
61673
61674 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
61675
61676         * gnulib-tool (func_create_testdir): Omit the second check whether
61677         BUILT_SOURCES in nonempty.
61678
61679 2005-10-17  Simon Josefsson  <jas@extundo.com>
61680
61681         * tests/test-rijndael.c: New file.
61682
61683 2005-10-17  Simon Josefsson  <jas@extundo.com>
61684
61685         * modules/sha1: Depend on stdint instead of md5.
61686
61687         * modules/md5: Depend on stdint, remove uint32_t.
61688
61689 2005-10-17  Simon Josefsson  <jas@extundo.com>
61690
61691         * modules/gc-sha1-tests: New file.
61692
61693         * tests/test-gc-sha1.c: New file.
61694
61695 2005-10-17  Simon Josefsson  <jas@extundo.com>
61696
61697         * m4/md5.m4: Remove call to uint32_t.m4.
61698
61699 2005-10-17  Simon Josefsson  <jas@extundo.com>
61700
61701         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
61702
61703         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
61704         md5.h.
61705
61706         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
61707
61708         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
61709
61710 2005-10-17  Simon Josefsson  <jas@extundo.com>
61711
61712         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
61713
61714 2005-10-17  Simon Josefsson  <jas@extundo.com>
61715
61716         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
61717
61718 2005-10-17  Simon Josefsson  <jas@extundo.com>
61719
61720         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
61721
61722         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
61723
61724 2005-10-17  Bruno Haible  <bruno@clisp.org>
61725
61726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
61727         that it can also be used in a test.
61728
61729 2005-10-16  Bruno Haible  <bruno@clisp.org>
61730
61731         * gnulib-tool (func_emit_tests_Makefile_am): Also define
61732         TESTS_ENVIRONMENT, so that individual tests can augment it.
61733
61734         * gnulib-tool (func_create_testdir): Use an intermediate target for
61735         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
61736         macros, like $(ALLOCA_H), which cannot be passed through the command
61737         line.
61738
61739 2005-10-15  Simon Josefsson  <jas@extundo.com>
61740
61741         * modules/rijndael-tests: New file.
61742
61743         * modules/rijndael: New file.
61744
61745 2005-10-15  Simon Josefsson  <jas@extundo.com>
61746
61747         * m4/rijndael.m4: New file.
61748
61749 2005-10-15  Simon Josefsson  <jas@extundo.com>
61750
61751         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
61752
61753         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
61754
61755 2005-10-14  Simon Josefsson  <jas@extundo.com>
61756
61757         * tests/test-arcfour.c: New file.
61758
61759         * modules/arcfour, modules/arcfour-tests: New files.
61760
61761 2005-10-14  Simon Josefsson  <jas@extundo.com>
61762
61763         * m4/arcfour.m4: New file.
61764
61765 2005-10-14  Simon Josefsson  <jas@extundo.com>
61766
61767         * lib/arcfour.h, lib/arcfour.c: New files.
61768
61769 2005-10-14  Roland McGrath  <roland@redhat.com>
61770
61771         Import from libc.  [BZ #1331]
61772         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
61773         macro argument.
61774         Reported by Matej Vela <vela@debian.org>.
61775
61776 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
61779         include <wchar.h>; no longer needed.
61780
61781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
61784
61785 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
61786         and  Ulrich Drepper  <drepper@redhat.com>
61787
61788         Import from libc.
61789         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
61790         instead of inline stream orientation test and two separate
61791         function calls.  Pay no attention to USE_IN_LIBIO.
61792
61793 2005-10-13  Simon Josefsson  <jas@extundo.com>
61794
61795         * modules/gc-hmac-md5-tests: New file.
61796
61797         * tests/test-gc-hmac-sha1.c: New file.
61798
61799         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
61800
61801         * modules/gc-hmac-md5-tests: New file.
61802
61803         * tests/test-gc-md5.c: New file.
61804
61805         * modules/gc-md5-tests: New file.
61806
61807 2005-10-13  Simon Josefsson  <jas@extundo.com>
61808
61809         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
61810         Move memory allocation outside of loop.
61811
61812 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61813
61814         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
61815         intermediate directory is in a read-only file system.  Problem
61816         reported by Eric Blake.
61817
61818 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
61819
61820         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
61821
61822 2005-10-12  Simon Josefsson  <jas@extundo.com>
61823
61824         * tests/test-hmac-sha1.c: New file.
61825
61826         * modules/hmac-sha1-tests: New file.
61827
61828         * modules/hmac-sha1: New file.
61829
61830 2005-10-12  Simon Josefsson  <jas@extundo.com>
61831
61832         * modules/gc-sha1: New file.
61833
61834 2005-10-12  Simon Josefsson  <jas@extundo.com>
61835
61836         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
61837
61838         * tests/test-gc-pbkdf2-sha1.c: New file.
61839
61840 2005-10-12  Simon Josefsson  <jas@extundo.com>
61841
61842         * modules/gc-md5, modules/gc-hmac-md5: New files.
61843
61844         * modules/gc (Files): Remove md5, memxor and hmac files.
61845
61846 2005-10-12  Simon Josefsson  <jas@extundo.com>
61847
61848         * m4/gc-pbkdf2-sha1.m4: New file.
61849
61850         * m4/gc-hmac-sha1.m4: New file.
61851
61852         * m4/gc-sha1: New file.
61853
61854         * m4/hmac-sha1.m4: New file.
61855
61856 2005-10-12  Simon Josefsson  <jas@extundo.com>
61857
61858         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
61859
61860         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
61861
61862 2005-10-12  Simon Josefsson  <jas@extundo.com>
61863
61864         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
61865         suggested by Bruno Haible <bruno@clisp.org>.
61866
61867 2005-10-12  Simon Josefsson  <jas@extundo.com>
61868
61869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
61870
61871 2005-10-12  Simon Josefsson  <jas@extundo.com>
61872
61873         * lib/gc-pbkdf2-sha1.c: New file.
61874
61875         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
61876
61877 2005-10-12  Simon Josefsson  <jas@extundo.com>
61878
61879         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
61880
61881         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
61882
61883 2005-10-12  Simon Josefsson  <jas@extundo.com>
61884
61885         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
61886         GC_USE_HMAC_MD5, respectively.
61887
61888         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
61889         (gc_md5): Fix typo.
61890
61891         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
61892
61893         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
61894
61895         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
61896
61897 2005-10-12  Bruno Haible  <bruno@clisp.org>
61898
61899         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
61900         Reported by Stepan Kasal <kasal@ucw.cz>.
61901
61902 2005-10-11  Simon Josefsson  <jas@extundo.com>
61903
61904         * tests/test-crc.c: New file.
61905
61906         * modules/crc, modules/crc-tests: New files.
61907
61908 2005-10-11  Simon Josefsson  <jas@extundo.com>
61909
61910         * m4/crc.m4: New file.
61911
61912 2005-10-11  Simon Josefsson  <jas@extundo.com>
61913
61914         * lib/gc.h: Add gc_hash and gc_hash_buffer.
61915
61916         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
61917
61918         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
61919
61920 2005-10-11  Simon Josefsson  <jas@extundo.com>
61921
61922         * lib/crc.h, lib/crc.c: New files.
61923
61924         * lib/gc.h (gc_hash_buffer): Add doc.
61925
61926 2005-10-11  Bruno Haible  <bruno@clisp.org>
61927
61928         * modules/c-strcasestr: New file.
61929         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
61930
61931 2005-10-11  Bruno Haible  <bruno@clisp.org>
61932
61933         * modules/c-strcase: New file.
61934         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
61935
61936 2005-10-11  Bruno Haible  <bruno@clisp.org>
61937
61938         * lib/strcasecmp.c: Include limits.h.
61939         (strcasecmp): Avoid integer overflow on exotic platforms.
61940         * lib/strncasecmp.c: Include limits.h.
61941         (strncasecmp): Avoid integer overflow on exotic platforms.
61942         Reported by Paul Eggert.
61943
61944 2005-10-11  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/c-strcasestr.h: New file, from GNU gettext.
61947         * lib/c-strcasestr.c: New file, from GNU gettext.
61948
61949 2005-10-11  Bruno Haible  <bruno@clisp.org>
61950
61951         * lib/c-strcase.h: New file, from GNU gettext.
61952         * lib/c-strcasecmp.c: New file, from GNU gettext.
61953         * lib/c-strncasecmp.c: New file, from GNU gettext.
61954
61955 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * modules/mempcpy (License): GPL -> LGPL.
61958         * modules/strchrnul (License): Likewise.
61959         * modules/sysexits (License): Likewise.
61960
61961 2005-10-08  Simon Josefsson  <jas@extundo.com>
61962
61963         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
61964
61965 2005-10-07  Simon Josefsson  <jas@extundo.com>
61966
61967         * m4/memxor.m4: Remove gl_C_RESTRICT call.
61968
61969 2005-10-06  Simon Josefsson  <jas@extundo.com>
61970
61971         * tests/test-hmac-md5.c: New file.
61972
61973         * modules/hmac-md5-tests: New file.
61974
61975         * modules/hmac-md5: New file.
61976
61977 2005-10-06  Simon Josefsson  <jas@extundo.com>
61978
61979         * m4/hmac-md5.m4: New file.
61980
61981         * m4/memxor.m4: Require gl_C_RESTRICT.
61982
61983 2005-10-06  Simon Josefsson  <jas@extundo.com>
61984
61985         * lib/memxor.c (memxor): Avoid casts and warnings.
61986
61987 2005-10-06  Simon Josefsson  <jas@extundo.com>
61988
61989         * lib/hmac-md5.c: New file.
61990
61991         * lib/hmac.h: New file.
61992
61993 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61996         promotes to int, not unsigned int, to catch the AIX 5.3
61997         compiler bug.
61998
61999 2005-10-05  Simon Josefsson  <jas@extundo.com>
62000
62001         * modules/memxor: New file.
62002
62003         * modules/iconv (Files): Move config.rpath to havelib, it is used
62004         there.
62005
62006         * modules/havelib (Files): Add config.rpath.
62007
62008 2005-10-05  Simon Josefsson  <jas@extundo.com>
62009
62010         * m4/memxor.m4: New file.
62011
62012 2005-10-05  Simon Josefsson  <jas@extundo.com>
62013
62014         * lib/memxor.c (memxor): Fix compiler error.
62015
62016         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62017         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62018
62019         * lib/memxor.h, lib/memxor.c: New files.
62020
62021         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62022         we assume all systems have it, suggested by Jim Meyering
62023         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62024         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62025         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62026         same reasons.
62027
62028 2005-10-05  Simon Josefsson  <jas@extundo.com>
62029
62030         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62031
62032 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62033
62034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62035         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62036         needed, since the source code now assumes these .h files.
62037
62038 2005-10-05  Derek Price  <derek@ximbiot.com>
62039
62040         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62041
62042 2005-10-05  Bruno Haible  <bruno@clisp.org>
62043
62044         * modules/stdint (License): Change to LGPL.
62045
62046 2005-10-04  Simon Josefsson  <jas@extundo.com>
62047
62048         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62049         D. Baushke" <mdb@gnu.org>.
62050
62051 2005-10-04  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/verify.h (verify_true): Provide alternative definition for C++.
62054
62055 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62058         (SSIZE_MAX): New macro, if not already defined.
62059         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62060         than 2 GiB.
62061
62062 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         Sync from coreutils.
62065         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62066         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62067         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62068         ULLONG_MAX doesn't work with 2.7.2.1.
62069
62070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62073         From Ben Pfaff.
62074
62075         * modules/exclude (Depends-on): Depend on verify.
62076         * modules/strtoimax (Depends-on): Likewise.
62077         * modules/utimecmp (Depends-on): Likewise.
62078
62079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * lib/exclude.c: Include verify.h.
62082         (verify): Remove.  All callers changed to use verify.h's version.
62083         * lib/strtoimax.c: Likewise.
62084         * lib/utimecmp.c: Likewis.e
62085
62086         Sync from coreutils.
62087         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62088         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62089         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62090         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62091         bother returning ENOSYS if settimeofday or stime fails; just let
62092         them return whatever errno they want to return.
62093         * lib/utimens.c: Include unistd.h, for dup2.
62094         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62095         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62096
62097 2005-10-02  Jim Meyering  <jim@meyering.net>
62098
62099         Sync from coreutils.
62100         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62101         from glibc-2.2.5 that fails for read-only files.
62102
62103 2005-10-02  Jim Meyering  <jim@meyering.net>
62104
62105         Sync from coreutils.
62106         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62107         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62108         `#if HAVE_CONFIG_H'.
62109         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62110         Remove AT_FDCWD test.
62111         Do not consume the fd unless successful.
62112         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62113         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62114         block, so that we don't even try to compile it if settimeofday is
62115         available.  This works around a compilation failure on OSF1 V5.1,
62116         due to stime requiring a `long int*' while tv_sec is `int'.
62117
62118 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62119
62120         Sync from coreutils.
62121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62122         against `yes', rather than just testing for nonempty.
62123
62124 2005-10-01  Simon Josefsson  <jas@extundo.com>
62125
62126         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62127         and Darwin.
62128
62129         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62130         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62131         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62132         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62133         Check if struct addrinfo is declared.
62134
62135 2005-10-01  Simon Josefsson  <jas@extundo.com>
62136
62137         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62138         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62139         AI_* and EAI_* definitions.  Protect function declarations.
62140
62141 2005-10-01  Jim Meyering  <jim@meyering.net>
62142
62143         Sync from coreutils.
62144
62145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62146         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62147         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62149         in the inet and nsl libraries.  Required on Solaris 5.7.
62150
62151 2005-10-01  Jim Meyering  <jim@meyering.net>
62152
62153         Sync from coreutils.
62154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62155         in the inet and nsl libraries.  Required on Solaris 5.7.
62156
62157 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62158
62159         * lib/getdelim.c (getdelim): Remove unused variables.
62160
62161 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62164         so that the code works even with ancient cpp.  Portability problem
62165         with GCC 2.7.2.1 reported by Thomas M.Ott.
62166
62167 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * modules/regex (Depends-on): Add strcase.
62170
62171         * modules/gethostname (Licence): Change from GPL to LGPL, since
62172         gethostname.c is a trivial implementation of a standard library
62173         function.
62174         * modules/poll (License): Change from GPL to LGPL, since it's
62175         derived from LGPL code.
62176
62177 2005-09-27  Jim Meyering  <jim@meyering.net>
62178
62179         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62180         HAVE_CONFIG_H.
62181
62182         * lib/intprops.h (signed_type_or_expr__): Define.
62183         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62184         for unsigned types.
62185
62186 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62187
62188         * lib/verify.h (verify_expr): Remove, replacing with:
62189         (verify_true): New macro that returns true instead of void.
62190         (verify_type__): Remove.
62191         (verify): Use verify_true rather than verify_type__.
62192
62193 2005-09-26  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62196         is necessary.
62197         (lib_SOURCES): Remove mbchar.c.
62198         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62199         (Files): Add m4/mbrtowc.m4.
62200         * modules/mbiter: Likewise.
62201         * modules/mbuiter: Likewise.
62202
62203 2005-09-26  Bruno Haible  <bruno@clisp.org>
62204
62205         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62206         compile mbchar.c if they are not both present.
62207         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62208         * m4/mbiter.m4 (gl_MBITER): Likewise.
62209         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62210         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62211         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62212
62213 2005-09-25  Jim Meyering  <jim@meyering.net>
62214
62215         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62216         also uses socklen_t.
62217
62218 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         * lib/utimens.c (ENOSYS): Define if not already defined.
62221         (futimens): Support having a null PATH if the file descriptor
62222         is nonnegative.
62223
62224         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62225         Remove.
62226         (__attribute): Define to empty unless GCC 3.1 or later.
62227         This works around a core dump on OpenBSD 3.4, which has GCC
62228         2.95.3, which dumps core when given __attribute__(()).  It also
62229         simplifies other tests, since we really don't want to bother with
62230         worrying about which ancient version of GCC supported what.
62231         Original problem reported by Yoann Vandoorselaere, with part of
62232         the fix suggested by Derek Price.
62233
62234 2005-09-24  Jim Meyering  <jim@meyering.net>
62235
62236         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62237         so we can once again use a positive bitfield width of 1 -- now we
62238         don't have to explain why we were using a bitfield width of 2.
62239
62240 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
62243         and similarly for the other external symbols.  Problem reported
62244         by James Gallager.
62245
62246         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
62247         bug reported by Jim Meyering.
62248
62249         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
62250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
62251         not needed, since socklen is a prerequisite module.
62252
62253 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
62254
62255         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
62256         Problem reported by Eric Blake.
62257         (getaddrinfo): Initialize se so that it's not garbage.
62258         Redo internal storage allocation so that it doesn't make unportable
62259         assumptions about alignment.
62260         Fix a memory leak.
62261
62262         * lib/utimens.c (futimens): Use futimesat if available.
62263         Prefer it to futimes since it doesn't have the futimes bug.
62264
62265         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
62266         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
62267         Instead, declare a function that returns a pointer to an array,
62268         and use verify_type__ to declare the size of the array.
62269         Problem and germ of a solution reported by Bruno Haible.
62270         (verify_type__): Use 2, not 1, for bitfield size, to avoid
62271         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
62272
62273 2005-09-23  Jim Meyering  <jim@meyering.net>
62274
62275         Sync from coreutils.
62276         Correct build failure (socklen_t not defined) on at least
62277         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
62278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
62279
62280 2005-09-23  Jim Meyering  <jim@meyering.net>
62281
62282         * modules/getaddrinfo (Depends-on): Add socklen.
62283
62284 2005-09-23  Bruno Haible  <bruno@clisp.org>
62285
62286         * tests/test-verify.c: New file.
62287
62288 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         Sync from coreutils.
62291
62292         * modules/argmatch (Depends-on): Add verify.
62293         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
62294         unistd-safer.
62295         * modules/save-cwd (Depends-on): Likewise.
62296
62297         * modules/openat (Files): Add lib/openat-die.c.
62298         (Depends-on): Remove error, exitfail.
62299         Add dirname.
62300
62301         * modules/verify: New file.
62302         * MODULES.html.sh (Diagnostics <assert.h>): New section,
62303         with "verify" module.
62304
62305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62306
62307         Sync from coreutils.
62308
62309         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
62310         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
62311         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
62312         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
62313         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
62314         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
62315         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
62316         Don't bother checking for string.h, stdlib.h, unistd.h.
62317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
62318         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
62319         module's job.
62320         * m4/jm-macros.m4 (gl_MACROS): Likewise.
62321         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
62322
62323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
62324         (gl_GETDATE): Use it.
62325
62326         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
62327
62328 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62329
62330         Sync from coreutils.
62331
62332         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
62333         stat-time.h.
62334         * lib/argmatch.h: Include verify.h
62335         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
62336         (ARGMATCH_ASSERT): Remove; unused.
62337         * lib/canonicalize.c: Assume STDC_HEADERS.
62338         * lib/exclude.c: Include "strcase.h".
62339         * lib/regex_internal.h [!defined _LIBC]: Likewise.
62340         * lib/getusershell.c: Include stdio--.h rather than stdio.h
62341         and stdio-safer.h.
62342         (getusershell): Call fopen, not fopen_safer.
62343         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
62344         Do not include unistd-safer.h.
62345         (save_cwd): Don't call fd_safer; no longer needed
62346         now that we include fcntl--.h.
62347
62348         * lib/getdate.y (relative_time): New type.
62349         (RELATIVE_TIME_0): New constant.
62350         (parser_control): Use relative_time instead of doing it ourselves.
62351         (%union): Add new relative_time rel member.
62352         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
62353         Now typeless.
62354         (relunit, relunit_snumber): Now of type rel.
62355         (zone, rel, relunit, get_date): Adjust to above changes.
62356
62357         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
62358         Do not include unistd-safer.h.
62359         (getloadavg): Don't call fd_safer; no longer needed
62360         now that we include fcntl--.h.
62361
62362         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
62363         (make_dir_parents): Treat ENOSYS like EEXIST.
62364
62365         Improve quality of diagnostics on restore_cwd failure.
62366         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
62367         (make_dir_parents): Last arg is now int * (for errno), not bool *.
62368         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
62369         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
62370         each time through the loop.  Do not diagnose restore_cwd failure;
62371         that is the caller's job (and perhaps the caller does not care).
62372
62373         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
62374         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
62375         If the file already exists but is not a directory, don't bother
62376         to try to make its parents.
62377         Close potential file descriptor leak if we can't chdir("/") (!).
62378         Don't always return true if chdir($PWD) fails; return true only
62379         if the requested action was done successfully (except for the
62380         chdir($PWD)).
62381         Don't log final directory unless we actually made it.
62382         Refactor to avoid duplicate code to fix up permissions.
62383         Don't attempt to fix up parent permissions if chdir($PWD) fails.
62384
62385         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
62386         to make it a bit faster and (I hope) clearer.
62387         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
62388         Fix bug in formats like %2N.
62389
62390         * lib/verify.h: New file.
62391
62392 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         Sync from coreutils.
62395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
62396
62397 2005-09-22  Jim Meyering  <jim@meyering.net>
62398
62399         Sync from coreutils.
62400
62401         * m4/lstat.m4 (gl_FUNC_LSTAT):
62402         Use AC_LIBSOURCES to require lstat.c and lstat.h.
62403         Remove obsolete comment.
62404         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
62405         * m4/xstrtod.m4: Likewise.
62406
62407         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
62408
62409 2005-09-22  Jim Meyering  <jim@meyering.net>
62410
62411         Sync from coreutils.
62412
62413         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
62414
62415         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
62416         the .tm_year member, since otherwise gcc-4.0 would now warn about
62417         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
62418
62419         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
62420         order to avoid an unsuppressible warning from gcc on 64-bit systems.
62421
62422         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
62423         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
62424         when run in a time zone for which daylight savings time is in effect
62425         for the starting date.
62426
62427         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
62428         stop us from restricting permissions of just-created absolute-named
62429         directories.
62430         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
62431         to restore initial working directory.
62432         * lib/mkdir-p.c (make_dir_parents): New parameter:
62433         different_working_dir, to tell caller if/when we change the working
62434         directory and are unable to return to the initial one.
62435         * lib/mkdir-p.h (make_dir_parents): Update prototype.
62436         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
62437         `return false'.  This fixes a bug introduced on 2004-07-30.
62438
62439         * lib/openat.c (fdopendir): Be sure to close the supplied
62440         file descriptor before returning.  This makes our replacement
62441         implementation a little closer to Solaris's, where fdopendir
62442         ties the file descriptor to the returned DIR* pointer.
62443         * lib/openat.c (unlinkat): New function.
62444         * lib/openat.h (unlinkat): Add prototype.
62445         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
62446         (openat_restore_fail): Rename from openat_restore_die.
62447         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
62448
62449         Provide an alternative to exiting immediately upon save_cwd or
62450         restore_cwd failure.  Now, an application can arrange e.g.,
62451         to perform a longjump in that case.
62452         * lib/openat.c: Include dirname.h.
62453         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
62454         (rpl_openat, fdopendir, fstatat): Call openat_save_die
62455         and openat_restore_die rather than calling error directly.
62456         Don't include "error.h" or "exitfail.h"; they're no longer needed.
62457
62458         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
62459         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
62460         define.
62461
62462         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
62463         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
62464                             int utc, int nanoseconds);
62465         Background:
62466         date should not have to allocate a megabyte of virtual memory to
62467         handle a format argument like +%1048575T.  When implemented with
62468         strftime, it must allocate such a buffer, use strftime to fill it
62469         in, print it, then free it.
62470         With fprintftime, it simply prints everything and exits.
62471         With no need for memory allocation, that's one fewer way to fail.
62472         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
62473         optional field width, not before, so we accept %9:z, not %:9z.
62474         (my_strftime): Be sure to use L_('x') for literals.
62475
62476         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
62477         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
62478         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
62479         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
62480         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
62481         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
62482         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
62483         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
62484         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
62485         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
62486         * lib/xgethostname.c, lib/xreadlink.c:
62487         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
62488
62489         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
62490         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
62491         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
62492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62493         and don't include <sys/file.h>).
62494
62495 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
62496
62497         Sync from coreutils.
62498
62499         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
62500         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
62501         [!LDAV_DONE]: Avoid unused variable warning.
62502
62503 2005-09-21  Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/unicodeio.h (unicode_to_mb): New declaration.
62506
62507 2005-09-20  Derek Price  <derek@ximbiot.com>
62508
62509         * lib/getaddrinfo.c: Don't include <netdb.h> included from
62510         getaddrinfo.h.
62511
62512 2005-09-20  Bruno Haible  <bruno@clisp.org>
62513
62514         * gnulib-tool: Remove trailing slashes from the values specified for
62515         --source-base, --m4-base, --tests-base, --aux-dir.
62516         Suggested by Simon Josefsson <jas@extundo.com>.
62517
62518 2005-09-20  Bruno Haible  <bruno@clisp.org>
62519
62520         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
62521         func_modules_to_filelist, func_import, func_create_testdir): Make all
62522         sorting results locale-independent, so that gnulib-cache.m4 doesn't
62523         change when gnulib-tool is invoked in a different locale.
62524
62525 2005-09-19  Simon Josefsson  <jas@extundo.com>
62526
62527         * m4/socklen.m4: Fix typo.
62528
62529 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62530
62531         Use a consistent style for including <config.h>.
62532         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
62533         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
62534         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
62535         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
62536         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
62537         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
62538         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
62539         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
62540         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
62541         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
62542         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
62543         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
62544         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
62545         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
62546         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
62547         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
62548         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
62549         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
62550         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
62551         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
62552         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
62553         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
62554         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
62555         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
62556         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
62557         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
62558         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
62559         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
62560         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
62561         lib/xstrtoumax.c, lib/yesno.c:
62562         Standardize inclusion of config.h.
62563         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
62564         lib/inttostr.h:  Removed inclusion of config.h from header files.
62565         * lib/inttostr.c:  Adjusted in-tree users.
62566         * lib/timespec.h: Remove superfluous warning to include config.h.
62567         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
62568         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
62569         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
62570         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
62571         config.h with HAVE_CONFIG_H.
62572
62573 2005-09-19  Jim Meyering  <jim@meyering.net>
62574
62575         * modules/pathmax (License): Change to LGPL.
62576
62577 2005-09-19  Derek Price  <derek@ximbiot.com>
62578
62579         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
62580
62581 2005-09-19  Bruno Haible  <bruno@clisp.org>
62582
62583         * gnulib-tool (import): Provide default for --tests-base.
62584
62585 2005-09-19  Bruno Haible  <bruno@clisp.org>
62586
62587         * doc/quote.texi: New file, extracted from gnulib.texi.
62588         * doc/ctime.texi: New file, extracted from gnulib.texi.
62589         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
62590         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
62591         * doc/gnulib.texi: Include them.
62592
62593 2005-09-18  Bruno Haible  <bruno@clisp.org>
62594
62595         Portability fix.
62596         * gnulib-tool (func_readlink): New function.
62597         (func_ln_if_changed): Use it.
62598
62599 2005-09-18  Bruno Haible  <bruno@clisp.org>
62600
62601         * gnulib-tool: Support --with-tests also with --import.
62602         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
62603         (func_import): Use variables $testsbase and $inctests. Emit a
62604         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
62605         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
62606         SUBDIRS += $testsdir.
62607         (func_create_testdir): Update.
62608
62609 2005-09-18  Bruno Haible  <bruno@clisp.org>
62610
62611         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
62612         instead of $dry_run.
62613         (func_cp_if_changed, func_mv_if_changed): Remove functions.
62614         (func_ln_if_changed): Don't handle dry-run here.
62615         (func_import): In dry-run mode, detect more precisely which actions
62616         would be performed, and don't use "...ing" verbs.
62617
62618 2005-09-18  Bruno Haible  <bruno@clisp.org>
62619
62620         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
62621         (func_import): Use join on two temporary files instead of three nested
62622         loops, in order to determine which files are new or old.
62623
62624 2005-09-18  Bruno Haible  <bruno@clisp.org>
62625
62626         * gnulib-tool (func_import): Comment out code that spits out the
62627         new files with --dry-run.
62628
62629 2005-09-18  Bruno Haible  <bruno@clisp.org>
62630
62631         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
62632
62633 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * lib/stat-time.h: New file.
62636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
62637         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
62638         in a different way.
62639         (timespec_cmp): New function.
62640         * lib/utimecmp.c: Include stat-time.h.
62641         (SYSCALL_RESOLUTION): Depend on whether various struct stat
62642         members exist, not on the obsolescent ST_MTIM_NSEC.
62643         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
62644
62645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
62648
62649 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         * MODULES.html.sh (File system functions): Add stat-time.
62652         * modules/stat-time: New file.
62653         * modules/timespec (Files): Remove m4/st_mtim.m4; this
62654         is now done in a different way, by the stat-time module.
62655         * modules/utimecmp (Depends-on): Add stat-time.
62656
62657 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * m4/st_mtim.m4: Remove.  Superseded by...
62660         * m4/stat-time.m4: New file.
62661         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
62662         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
62663
62664 2005-09-15  Derek Price  <derek@ximbiot.com>
62665
62666         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
62667
62668 2005-09-15  Derek Price  <derek@ximbiot.com>
62669
62670         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
62671         * lib/regex_internal.c: Ditto, using this...
62672         (__GNUC_PREREQ): ...new macro.
62673         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
62674         using...
62675         (__GNUC_PREREQ): ...this new macro.
62676
62677         * lib/strstr.h: Include string.h. Define strstr as a macro here.
62678
62679 2005-09-15  Derek Price  <derek@ximbiot.com>
62680             Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
62683         changes, consolidating in...
62684         * lib/regex_internal.h: ...this file.
62685
62686 2005-09-13  Jim Meyering  <jim@meyering.net>
62687
62688         * lib/canon-host.c: Filter through gnu indent and reword comments
62689         slightly.
62690         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
62691
62692 2005-09-13  Derek Price  <derek@ximbiot.com>
62693
62694         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
62695         failure.
62696         Reported by Jim Meyering  <jim@meyering.net>.
62697
62698 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62699
62700         * lib/base64.c: Typo.
62701         (base64_encode): Put b64str in initialized data section.
62702
62703 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         Merge glibc and coreutils changes into gnulib, plus a few
62706         extra fixes.
62707         * lib/md5.c: Use #error rather than a string.
62708         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
62709         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
62710         (__attribute__): Define to empty for non recent-GCC.
62711         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
62712         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
62713         Renamed from their non-__ counterparts, with new macros replacing
62714         them if not _LIBC.  Add __THROW attribute.
62715         (rol): Remove.
62716         (struct md5_ctx): Align buffer if using GCC.
62717         * lib/sha1.h (struct sha1_ctx): Likewise.
62718         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
62719         The old name was backwards.
62720         (NOTSWAP): Remove; not used.
62721         (rol): New macro, moved here from md5.h.
62722         (sha1_process_block): Remove a FIXME that doesn't make sense.
62723
62724 2005-09-12  Derek Price  <derek@ximbiot.com>
62725
62726         Return usable errors from canon-host.
62727         * lib/canon-host.h: New file.
62728         * lib/canon-host.c (canon_host): Wrap...
62729         (canon_host_r): ...this new function, which now relies exclusively on
62730         getaddrinfo.
62731         (ch_strerror): New function.
62732         (last_cherror): New global.
62733         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
62734         interface.
62735         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
62736         void *.
62737         (freeaddrinfo): Free ai->ai_canonname when set.
62738
62739 2005-09-12  Derek Price  <derek@ximbiot.com>
62740
62741         Make canon-host require getaddrinfo.
62742         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
62743         AC_LIBSOURCE canon-host.h.  Call...
62744         (gl_PREREQ_CANON_HOST): ...this new function, which requires
62745         gl_GETADDRINFO.
62746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
62747
62748 2005-09-12  Derek Price  <derek@ximbiot.com>
62749
62750         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
62751         LGPL.
62752         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
62753
62754 2005-09-12  Derek Price  <derek@ximbiot.com>
62755
62756         * lib/gai_strerror.c: Include config.h when available.  Include
62757         getaddrinfo.h before other headers to test interface.
62758         Reported by Larry Jones <lawrence.jones@ugs.com>.
62759
62760 2005-09-12  Derek Price  <derek@ximbiot.com>
62761             Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * modules/glob (Files): Add glob-libc.h.
62764
62765 2005-09-12  Derek Price  <derek@ximbiot.com>
62766             Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
62769         glob_.h, glob-libc.h.
62770         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
62771
62772 2005-09-12  Derek Price  <derek@ximbiot.com>
62773             Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
62776         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
62777         protecting things that should be done only in gnulib contexts.
62778         * lib/glob_.h: New file, containing only the glob things needed for
62779         gnulib.
62780         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
62781         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
62782         (glob, globfree, glob_pattern_p): Now defined simply in terms of
62783         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
62784         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
62785         and to respect the namespace rules better.
62786
62787 2005-09-08  Simon Josefsson  <jas@extundo.com>
62788
62789         * modules/socklen: New file.
62790
62791 2005-09-08  Simon Josefsson  <jas@extundo.com>
62792
62793         * m4/socklen.m4: New file.
62794
62795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * modules/utimens (Files): Add m4/utimbuf.m4, since
62798         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
62799         Reported by Sergey Poznyakoff.
62800
62801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62802
62803         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
62804         definitions, since that's the preferred style in glibc.
62805         Fix a minor spacing issue, and update copyright notice to match
62806         glibc's.
62807
62808 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
62811
62812 2005-09-06  Simon Josefsson  <jas@extundo.com>
62813
62814         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
62815         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
62816
62817 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
62820         warning.
62821
62822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         * config/srclist.txt: Add glibc bug 1302.
62825
62826 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         Change bitset word type from unsigned int to unsigned long int,
62829         as this has better performance on typical 64-bit hosts.
62830         Port bitset code to hosts with unusual word sizes.
62831         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
62832         (build_collating_symbol):
62833         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
62834         argument is a bitset.  This is merely a style issue, but it makes
62835         it clearer that an entire array is expected.
62836         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
62837         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
62838         Port to the case where bitset_word is not the same as unsigned int.
62839         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62840         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
62841         Likewise.
62842         * lib/regexec.c (check_dst_limits_calc_pos_1,
62843         check_subexp_matching_top):
62844         (build_trtable, group_nodes_into_DFAstates):
62845         Likewise.
62846         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
62847         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
62848         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
62849         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
62850         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
62851         * lib/regcomp.c (optimize_subexps, lower_subexp):
62852         Work even if bitset_word has holes in its bitwise representation.
62853         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
62854         * lib/regexec.c (check_dst_limits_calc_pos_1,
62855         check_subexp_matching_top):
62856         Likewise.
62857         * lib/regex_internal.c (re_string_reconstruct):
62858         Don't assume UCHAR_MAX == 255.
62859         * lib/regex_internal.h (bitset_set_all): Likewise.
62860         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
62861         All uses changed.
62862         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
62863         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
62864         All uses changed.
62865         (BITSET_WORD_MAX): New macro.
62866         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
62867         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
62868         (bitset_empty, bitset_copy):
62869         Prefer sizeof (bitset) to multiplying it out ourselves.
62870         (bitset_not_merge): Remove; unused.
62871         (bitset_contain): Return bool, not unsigned int with one bit on.
62872         All callers changed.
62873         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
62874         alignment than re_node_set; do this by defining a new internal
62875         type struct dests_alloc and using it to allocate memory.
62876
62877 2005-09-05  Bruno Haible  <bruno@clisp.org>
62878
62879         * gnulib-tool (func_import): Fix comparison in handling of symbolic
62880         links.
62881
62882 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
62883
62884         * modules/size_max (Makefile.am): Add size_max.h
62885
62886 2005-09-04  Derek Price  <derek@ximbiot.com>
62887
62888         * gnulib-tool (func_import): Fix reversed $symbolic logic.
62889
62890 2005-09-03  Simon Josefsson  <jas@extundo.com>
62891
62892         * gnulib-tool: Fix typo.
62893
62894 2005-09-03  Simon Josefsson  <jas@extundo.com>
62895
62896         * config/srclist.txt: Add glibc bug 1293.
62897
62898 2005-09-03  Derek Price  <derek@ximbiot.com>
62899
62900         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
62901         From Larry Jones <lawrence.jones@ugs.com>.
62902
62903 2005-09-02  Simon Josefsson  <jas@extundo.com>
62904
62905         * modules/socklen: New file.
62906
62907 2005-09-02  Simon Josefsson  <jas@extundo.com>
62908
62909         * modules/havelib: New module.
62910
62911         * modules/gettext, modules/iconv, modules/lock, modules/readline:
62912         Use havelib.
62913
62914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62915
62916         Check for arithmetic overflow when calculating sizes, to prevent
62917         some buffer-overflow issues.  These patches are conservative, in the
62918         sense that when I couldn't determine whether an overflow was possible,
62919         I inserted a run-time check.
62920         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
62921         macros.
62922         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
62923         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
62924         (re_xnrealloc, re_x2nrealloc): New inline functions.
62925         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
62926         parse_bracket_exp):
62927         (build_equiv_class, build_charclass): Check for arithmetic overflow
62928         in size expression calculations.
62929         * lib/regex_internal.c (re_string_realloc_buffers):
62930         (build_wcs_upper_buffer, re_node_set_add_intersect):
62931         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
62932         (re_dfa_add_node, register_state): Likewise.
62933         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
62934         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
62935         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
62936         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
62937
62938 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62939
62940         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62941         m4/ulonglong.m4.  Problem reported by Martin Lambers.
62942
62943 2005-09-02  Bruno Haible  <bruno@clisp.org>
62944
62945         Support for lib vs. lib64 distinction on biarch platforms.
62946         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
62947         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
62948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
62949
62950 2005-09-02  Bruno Haible  <bruno@clisp.org>
62951
62952         * gnulib-tool (import): In the other first-use case, provide defaults
62953         as well.
62954
62955 2005-09-02  Bruno Haible  <bruno@clisp.org>
62956
62957         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
62958         patches not yet found in the latest gettext release.
62959
62960 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
62963         to avoid a collision with bits/local_lim.h in glibc.
62964         All uses changed.  Problem reported by Dmitry V. Levin in
62965         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
62966
62967         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
62968         bugs in int versus size_t comparisons.
62969         (re_string_context_at): Fix bug where the code assumed that
62970         Idx is signed.
62971
62972         Use bool where appropriate.
62973         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62974         All callers changed.
62975         (calc_eclosure_iter): Likewise, for ROOT arg.
62976         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62977         (build_charclass_op): Likewise, for NON_MATCH arg.
62978         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62979         (re_string_construct_common): Likewise, for ICASE arg.
62980         * lib/regexec.c (re_search_2_stub, re_search_stub):
62981         Likewise, for RET_LEN arg.
62982         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62983         (set_regs): Likewise, for FL_BACKTRACK arg.
62984         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62985         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62986         (calc_eclosure_iter, parse_bracket_exp):
62987         Use bool for internal variables that are booleans.
62988         * lib/regexec.c (re_search_internal, check_matching,
62989         proceed_next_node):
62990         (set_regs, build_sifted_states, sift_states_bkref):
62991         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62992         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62993         (find_collation_sequence_value):
62994         Likewise.
62995         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62996         (re_node_set_compare):
62997         Return bool, not int. All callers changed.
62998         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62999         (build_trtable, check_node_accept): Likewise.
63000         * lib/regex_internal.h: Include stdbool.h.
63001
63002         Fix bugs uncovered when converting to bool.
63003         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63004         failure instead of charging ahead blindly.
63005         * lib/regex_internal.c (register_state): Likewise.
63006         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63007         for freeing internal storage.
63008         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63009         bitset pieces used as boolean, to avoid undefined behavior
63010         on hosts that do int overflow checking.
63011
63012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         * config/srclist.txt: Add glibc bugs 1285-1287.
63015
63016 2005-09-01  Jim Meyering  <jim@meyering.net>
63017
63018         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63019         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63020         Require gl_STAT_MACROS, too.
63021
63022 2005-09-01  Bruno Haible  <bruno@clisp.org>
63023
63024         * gnulib-tool (import): In the first-use case, provide defaults.
63025
63026 2005-09-01  Bruno Haible  <bruno@clisp.org>
63027
63028         * gnulib-tool (func_import): Remove the .tmp files.
63029
63030 2005-09-01  Bruno Haible  <bruno@clisp.org>
63031
63032         * gnulib-tool (func_import): Fix handling of symbolic links.
63033
63034 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63035
63036         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63037         old glibc regex code mishandles strings longer than 2**31 bytes.
63038         This patch fixes this when the regex code is used in gnulib
63039         (i.e., outside glibc).
63040
63041         This patch should not affect the use of the regex code inside
63042         glibc.  No doubt this problem also needs to be handled for glibc
63043         as well, but the result will be an incompatible change to the
63044         glibc ABI, and the old ABI will have to be supported too.  That
63045         can be the the subject for another patch.
63046
63047         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63048         governing whether the rest of this patch is active.  By default,
63049         the macro is disabled and the patch has no effect.
63050         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63051         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63052         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63053         (re_match_2, re_set_registers): Use the new types.
63054         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63055         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63056         New macros.
63057         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63058         (re_string_context_at, bin_tree_t, re_dfastate_t):
63059         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63060         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63061         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63062         (re_string_char_size_at, re_string_wchar_at):
63063         (re_string_elem_size_at):
63064         Use the new types and macros to port to 64-bit hosts.
63065         Use unsigned types for internal values, so that the code
63066         mostly works even for arrays larger than SSIZE_MAX.
63067         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63068         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63069         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63070         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63071         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63072         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63073         (calc_inveclosure, parse_dup_op, build_range_exp):
63074         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63075         (fetch_number, create_token_tree, mark_opt_subexp):
63076         Likewise.
63077         * lib/regex_internal.c (re_string_construct_common,
63078         create_ci_newstate):
63079         (create_cd_newstate, re_string_allocate, re_string_construct):
63080         (re_string_realloc_buffers, build_wcs_upper_buffer):
63081         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63082         (re_string_reconstruct, re_string_peek_byte_case):
63083         (re_string_fetch_byte_case, re_string_context_at):
63084         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63085         (re_node_set_init_copy, re_node_set_add_intersect):
63086         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63087         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63088         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63089         (re_acquire_state, re_acquire_state_context, register_state):
63090         Likewise.
63091         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63092         search_cur_bkref_entry):
63093         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63094         (re_search_internal, re_search_2_stub, re_search_stub)
63095         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63096         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63097         (update_cur_sifted_state, check_dst_limits):
63098         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63099         (check_subexp_limits, sift_states_bkref, merge_state_array):
63100         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63101         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63102         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63103         (expand_bkref_cache, check_node_accept_bytes):
63104         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63105         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63106         (acquire_init_state_context, check_halt_node_context):
63107         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63108         (sift_states_backward, clean_state_log_if_needed):
63109         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63110         (find_recover_state, transit_state_sb, transit_state_mb):
63111         (transit_state_bkref, build_trtable, match_ctx_clean):
63112         Likewise.
63113         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63114         to work around an assumption that REG_MISSING is negative.
63115
63116         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63117         (seek_collating_symbol_entry) [defined _LIBC]:
63118         (lookup_collation_sequence_value) [defined _LIBC]:
63119         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63120         Use prototypes rather than old-style function definitions.
63121         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63122         (transit_state_sb) [0]:
63123         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63124
63125         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63126         rm_eo.
63127
63128         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63129         (optimize_subexps, lower_subexp):
63130         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63131         since the signed shift might overflow.  Use 1u<<31 instead.
63132         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63133         Likewise.
63134         * lib/regexec.c (check_dst_limits_calc_pos_1,
63135         check_subexp_matching_top): Likewise.
63136
63137         * lib/regcomp.c (optimize_subexps, lower_subexp):
63138         Use CHAR_BIT rather than 8, for clarity.
63139         * lib/regexec.c (check_dst_limits_calc_pos_1):
63140         (check_subexp_matching_top): Likewise.
63141         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63142         have to worry about portability issues when shifting it left.
63143         Remove no-longer-needed test for table_size > 0.
63144         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63145         in a word, as the resulting behavior is undefined.
63146         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63147         in one case, a <= should have been an <, and in another case the
63148         whole test was missing.
63149         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63150         the standard name CHAR_BIT.
63151         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63152         this is not true on one's complement and signed-magnitude hosts.
63153
63154         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63155         next_last_offset.
63156         (struct re_dfa_t): Remove unused member states_alloc.
63157         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63158
63159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63162         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63163         and large-file glibc and in 32-bit large-file Solaris.
63164
63165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63168         lengths fit in regoff_t; this isn't true if regoff_t is the same
63169         width as size_t.
63170         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63171         (= START + RANGE) instead of RANGE.  This avoids overflow
63172         problems when regoff_t is the same width as size_t.
63173         All callers changed.
63174         (re_search_2_stub): Check for overflow when adding the
63175         sizes of the two strings.
63176         (re_search_stub): Check for overflow when adding START
63177         to RANGE; if it occurs, substitute the extreme value.
63178
63179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63182
63183 2005-08-31  Jim Meyering  <jim@meyering.net>
63184
63185         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63186         a pointer-to-const.
63187         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63188         (register_state): Likewise.
63189         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63191         (group_nodes_into_DFAstates): Likewise.
63192
63193 2005-08-31  Jim Meyering  <jim@meyering.net>
63194
63195         * check-module: Add a FIXME comment.
63196
63197 2005-08-31  Eric Blake  <ebb9@byu.net>
63198
63199         * modules/unistd-safer (Files): Add unistd--.h.
63200         * modules/stdio-safer (Files): Add stdio--.h.
63201
63202 2005-08-31  Derek Price  <derek@ximbiot.com>
63203
63204         * lib/getdelim.c (getdelim): Return EOF on EOF.
63205         Reported by Larry Jones <lawrence.jones@ugs.com>.
63206
63207 2005-08-31  Bruno Haible  <bruno@clisp.org>
63208
63209         Avoid unnecessary diffs in the generated lib/Makefile.am.
63210         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63211         the generated files.
63212         (func_import): Don't set cmd.
63213
63214 2005-08-31  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/strstr.c: Include <stddef.h>, for NULL.
63217         * lib/strcasestr.c: Likewise.
63218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63219
63220 2005-08-31  Bruno Haible  <bruno@clisp.org>
63221
63222         * gnulib-tool: New option --macro-prefix.
63223         (func_import): Use macro_prefix.
63224         (import): Handle option --macro-prefix.
63225
63226 2005-08-31  Bruno Haible  <bruno@clisp.org>
63227
63228         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63229         Also use new variables cached_lgpl, cached_libtool.
63230
63231 2005-08-31  Bruno Haible  <bruno@clisp.org>
63232
63233         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63234         always instantiating them.
63235
63236 2005-08-31  Bruno Haible  <bruno@clisp.org>
63237
63238         * gnulib-tool (func_import): Read the previous cached settings
63239         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63240         earlier added by gnulib but are now dropped. Warn when a gnulib file
63241         overwrites a non-gnulib file.
63242
63243 2005-08-31  Bruno Haible  <bruno@clisp.org>
63244
63245         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
63246         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
63247         projects that don't keep autogenerated files in CVS. Put into
63248         actioncmd only the specified modules, not the transitive closure.
63249
63250 2005-08-31  Bruno Haible  <bruno@clisp.org>
63251
63252         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
63253         Create directories that shall be filled.
63254         (import): Don't look for gl_* macros in configure.ac. Recurse across
63255         all directories containing a gnulib-cache.m4 files, if meaningful.
63256
63257 2005-08-31  Bruno Haible  <bruno@clisp.org>
63258
63259         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
63260         (import): Set seen_libtool when we see gl_LIBTOOL.
63261
63262 2005-08-31  Bruno Haible  <bruno@clisp.org>
63263
63264         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
63265         declaration macro definitions from generated gnulib.m4.
63266
63267 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
63268
63269         * lib/iconvme.h: Add prototype for iconv_alloc.
63270
63271 2005-08-29  Simon Josefsson  <jas@extundo.com>
63272
63273         * lib/iconvme.c: Fix errno.
63274
63275 2005-08-29  Bruno Haible  <bruno@clisp.org>
63276
63277         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
63278         that it works when the directory contains spaces.
63279
63280 2005-08-29  Bruno Haible  <bruno@clisp.org>
63281
63282         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
63283
63284 2005-08-29  Bruno Haible  <bruno@clisp.org>
63285
63286         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
63287         Emit more advice.
63288
63289 2005-08-29  Bruno Haible  <bruno@clisp.org>
63290         and Stepan Kasal  <kasal@ucw.cz>
63291
63292         * check-module: If more parameters are given, check each of them
63293         separately; add more exceptions, as noted by Jim Meyering.
63294         (check_module): New procedure.
63295         (%exempt_header): Now contains all exceptions.
63296
63297 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
63298
63299         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
63300
63301 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63302
63303         * lib/iconvme.c: Split iconv_string into iconv_alloc.
63304
63305 2005-08-28  Bruno Haible  <bruno@clisp.org>
63306
63307         * m4/gnulib-tool.m4: New file.
63308
63309 2005-08-27  Jim Meyering  <jim@meyering.net>
63310
63311         * modules/unistd-safer (Files): Add pipe-safer.c.
63312         * modules/fcntl-safer (Files): Add creat-safer.c.
63313
63314 2005-08-27  Jim Meyering  <jim@meyering.net>
63315
63316         * m4/stdlib-safer.m4: New file.  From coreutils.
63317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
63318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
63319         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
63320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
63321         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
63322
63323 2005-08-27  Jim Meyering  <jim@meyering.net>
63324
63325         * lib/fopen-safer.c: Merge minor changes from coreutils.
63326         * lib/dup-safer.c: Likewise.
63327         * lib/fd-safer.c: Likewise.
63328
63329         Merge from coreutils.
63330         * lib/stdio--.h: New file.
63331         * lib/stdlib--.h: New file.
63332         * lib/mkstemp-safer.c: New file.
63333
63334         GNU tar needs these.
63335         * lib/pipe-safer.c: New file.
63336         * lib/creat-safer.c: New file.
63337         * lib/fcntl--.h (creat): Define to creat_safer.
63338         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
63339         * lib/unistd--.h (pipe): Define to pipe_safer.
63340         * lib/unistd-safer.h: Declare pipe_safer.
63341
63342 2005-08-26  Simon Josefsson  <jas@extundo.com>
63343
63344         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
63345         Haible <bruno@clisp.org>.
63346
63347 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/regex_internal.h: Remove all references to
63350         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
63351         or better.
63352         (bitset_not, bitset_merge, bitset_not_merge):
63353         (bitset_mask, re_string_allocate, re_string_construct):
63354         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
63355         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
63356         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
63357         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
63358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63360         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
63361         (re_acquire_state_context):
63362         Remove unnecessary forward decls.
63363         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
63364         Put __attribute at function definition,
63365         now that the function decl has been removed.
63366         * lib/regex_internal.c (re_string_peek_byte_case):
63367         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
63368         Likewise.
63369
63370 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
63371
63372         * m4/regex.m4: Add AC_PREREQ(2.50).
63373         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
63374
63375 2005-08-25  Simon Josefsson  <jas@extundo.com>
63376
63377         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
63378         __fsetlocking.
63379
63380 2005-08-25  Simon Josefsson  <jas@extundo.com>
63381
63382         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
63383         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
63384         GLIBC specific code.
63385
63386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         Make regex safe for g++.  This fixes one real bug (an "err"
63389         that should have been "*err").  g++ problem reported by
63390         Sam Steingold.
63391         * lib/regex_internal.h (re_calloc): New macro, consistent with
63392         re_malloc etc.  All callers of calloc changed to use re_calloc.
63393         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
63394         not int.  All callers changed.
63395         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
63396         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
63397         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
63398         (find_recover_state): Change "err" to "*err"; this fixes what
63399         appears to be a real bug.
63400         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
63401         versus int.
63402
63403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63404
63405         * modules/regex (Depends-on): Add malloc, since the code
63406         assumes that !malloc(0) means failure.
63407
63408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
63411
63412         alloca modernization/simplification for regex.
63413         * lib/regex.c: Remove portability cruft for alloca.  This no longer
63414         needs to be at the start of the file, and can be moved into
63415         regex_internal.h and simplified.
63416         * lib/regex_internal.h: Include <alloca.h>.
63417         (__libc_use_alloca) [!defined _LIBC]: New macro.
63418         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
63419         now works outside glibc.
63420
63421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63422
63423         * config/srclist.txt: Add glibc bugs 1241, 1245.
63424
63425 2005-08-25  Jim Meyering  <jim@meyering.net>
63426
63427         * lib/open-safer.c: Include <config.h>.
63428         Otherwise, we'd lose LARGEFILE support in any file using
63429         e.g. "fcntl--.h"
63430
63431 2005-08-25  Bruno Haible  <bruno@clisp.org>
63432
63433         * m4/minmax.m4: Require autoconf 2.52.
63434         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
63435         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
63436         alternatives of translit over the alphabet.
63437         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
63438
63439 2005-08-24  Simon Josefsson  <jas@extundo.com>
63440
63441         * tests/test-getpass.c: New file.
63442
63443 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
63446         for GNU regex features.
63447
63448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
63451         * lib/regex.h (regerror): Likewise.
63452
63453         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
63454         requires this.  (The code never needed it.)
63455
63456         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
63457         All uses of recently-renamed identifiers changed to use the new,
63458         POSIX-compliant names.  The code will build and run just fine
63459         without these changes, but it's better to eat our own dog food
63460         and use the standard-conforming names.
63461
63462         * lib/regex.h: Fix a multitude of POSIX name space violations.
63463         These changes have an effect only for programs that define
63464         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
63465         do not change anything for programs compiled in the normal way.
63466         Also, there is no effect on the ABI.
63467
63468         (_REGEX_SOURCE): New macro.
63469         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
63470         defined and _GNU_SOURCE is not; this fixes a name space violation.
63471
63472         Rename the following macros to obey POSIX requirements.
63473         The old names are still visible as macros if _REGEX_SOURCE is defined.
63474         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
63475         RE_BACKSLASH_ESCAPE_IN_LISTS.
63476         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
63477         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
63478         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
63479         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
63480         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
63481         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
63482         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
63483         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
63484         (REG_INTERVALS): renamed from RE_INTERVALS.
63485         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
63486         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
63487         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
63488         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
63489         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
63490         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
63491         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
63492         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
63493         RE_UNMATCHED_RIGHT_PAREN_ORD.
63494         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
63495         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
63496         (REG_DEBUG): renamed from RE_DEBUG.
63497         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
63498         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
63499         unusual, since we can't clash with the POSIX REG_ICASE.
63500         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
63501         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
63502         (REG_NO_SUB): renamed from RE_NO_SUB.
63503         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
63504         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
63505         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
63506         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
63507         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
63508         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
63509         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
63510         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
63511         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
63512         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
63513         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
63514         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
63515         RE_SYNTAX_POSIX_MINIMAL_BASIC.
63516         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
63517         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
63518         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
63519         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
63520         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
63521         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
63522         (REG_FIXED): Renamed from REGS_FIXED.
63523         (REG_NREGS): Renamed from RE_NREGS.
63524
63525         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
63526         of other REG_* macros, since POSIX says the user is allowed to
63527         #undef these macros selectively.
63528
63529         (reg_errcode_t): Update comment stating what other tables need
63530         to be consistent.
63531
63532         Rename the following enum values to obey POSIX requirements.
63533         The old names are still visible as macros.
63534         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
63535         is not defined, since GNU is supposed to be a superset of POSIX as
63536         much as possible, and since we want reg_errcode_t to be a signed
63537         type for implementation consistency.
63538         (_REG_NOERROR): Renamed from REG_NOERROR.
63539         (_REG_NOMATCH): Renamed from REG_NOMATCH.
63540         (_REG_BADPAT): Renamed from REG_BADPAT.
63541         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
63542         (_REG_ECTYPE): Renamed from REG_ECTYPE.
63543         (_REG_EESCAPE): Renamed from REG_EESCAPE.
63544         (_REG_ESUBREG): Renamed from REG_ESUBREG.
63545         (_REG_EBRACK): Renamed from REG_EBRACK.
63546         (_REG_EPAREN): Renamed from REG_EPAREN.
63547         (_REG_EBRACE): Renamed from REG_EBRACE.
63548         (_REG_BADBR): Renamed from REG_BADBR.
63549         (_REG_ERANGE): Renamed from REG_ERANGE.
63550         (_REG_ESPACE): Renamed from REG_ESPACE.
63551         (_REG_BADRPT): Renamed from REG_BADRPT.
63552         (_REG_EEND): Renamed from REG_EEND.
63553         (_REG_ESIZE): Renamed from REG_ESIZE.
63554         (_REG_ERPAREN): Renamed from REG_ERPAREN.
63555         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
63556         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
63557         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
63558         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
63559
63560         (_REG_RE_NAME, _REG_RM_NAME): New macros.
63561         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
63562         changed.  But support the old name if the new one is not defined
63563         and if _REGEX_SOURCE.
63564
63565         Change the following member names in struct re_pattern_buffer.
63566         The old names are still supported if !_REGEX_SOURCE.
63567         The new names are always supported, regardless of _REGEX_SOURCE.
63568         (re_buffer): Renamed from buffer.
63569         (re_allocated): Renamed from allocated.
63570         (re_used): Renamed from used.
63571         (re_syntax): Renamed from syntax.
63572         (re_fastmap): Renamed from fastmap.
63573         (re_translate): Renamed from translate.
63574         (re_can_be_null): Renamed from can_be_null.
63575         (re_regs_allocated): Renamed from regs_allocated.
63576         (re_fastmap_accurate): Renamed from fastmap_accurate.
63577         (re_no_sub): Renamed from no_sub.
63578         (re_not_bol): Renamed from not_bol.
63579         (re_not_eol): Renamed from not_eol.
63580         (re_newline_anchor): Renamed from newline_anchor.
63581
63582         Change the following member names in struct re_registers.
63583         The old names are still supported if !_REGEX_SOURCE.
63584         The new names are always supported, regardless of _REGEX_SOURCE.
63585         (rm_num_regs): Renamed from num_regs.
63586         (rm_start): Renamed from start.
63587         (rm_end): Renamed from end.
63588
63589         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
63590         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
63591         Prepend __ to parameter names.
63592
63593         Undo yesterday's changes.
63594
63595 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63596
63597         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
63598         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
63599         lib/regex.c.
63600
63601 2005-08-24  Jim Meyering  <jim@meyering.net>
63602
63603         Sync from coreutils.
63604         * m4/fcntl-safer.m4: New file.
63605
63606         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
63607         and object files for this module.
63608
63609 2005-08-24  Jim Meyering  <jim@meyering.net>
63610
63611         Sync from coreutils.
63612         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
63613
63614 2005-08-24  Jim Meyering  <jim@meyering.net>
63615
63616         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
63617         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
63618
63619 2005-08-24  Jim Meyering  <jim@meyering.net>
63620
63621         * modules/fcntl-safer: New module.
63622         * modules/fts (Depends-on): Add fcntl-safer.
63623         * MODULES.html.sh (File descriptor based Input/Output):
63624         Add fcntl-safer.
63625
63626 2005-08-24  Bruno Haible  <bruno@clisp.org>
63627
63628         Support for unit test modules.
63629         * modules/README: Mention tests modules.
63630         * modules/TEMPLATE-TESTS: New file.
63631         * gnulib-tool: New options --extract-tests-module, --with-tests and
63632         --tests-base (unused for the moment).
63633         (testsbase, inctests): New variables.
63634         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
63635         (func_verify_module): Exclude TEMPLATE-TESTS.
63636         (func_verify_nontests_module, func_verify_tests_module): New functions.
63637         (func_get_dependencies): Add implicit dependency for tests modules.
63638         (func_get_tests_module): New function.
63639         (func_modules_transitive_closure): When --with-tests was specified,
63640         include the unit tests as well, unless explicitly avoided.
63641         (func_emit_lib_Makefile_am): Ignore the tests modules here.
63642         (func_emit_tests_Makefile_am): New function.
63643         (func_create_testdir): When --with-tests was specified, emit a
63644         tests/ directory.
63645         * MODULES.html.sh (Future developments): Update.
63646
63647 2005-08-24  Bruno Haible  <bruno@clisp.org>
63648
63649         * modules/tls-tests: New file.
63650         * tests/test-tls.c: New file, from GNU gettext.
63651
63652 2005-08-24  Bruno Haible  <bruno@clisp.org>
63653
63654         * modules/lock-tests: New file.
63655         * tests/test-lock.c: New file, from GNU gettext.
63656
63657 2005-08-24  Bruno Haible  <bruno@clisp.org>
63658
63659         * lib/lock.h: Add multiple inclusion guard.
63660         * lib/tls.h: Add multiple inclusion guard.
63661
63662 2005-08-24  Bruno Haible  <bruno@clisp.org>
63663
63664         * gnulib-tool: Add support for the --aux-dir option to
63665         --create-testdir, --create-megatestdir, --test, --megatest.
63666         (func_create_testdir, func_create_megatestdir): Optionally emit a
63667         AC_CONFIG_AUX_DIR directive.
63668         (create-testdir, create-megatestdir, test, megatest): Provide a
63669         default value for $auxdir.
63670
63671 2005-08-24  Bruno Haible  <bruno@clisp.org>
63672
63673         * gnulib-tool (import): Use compound statement instead of subshell
63674         where possible.
63675
63676 2005-08-24  Bruno Haible  <bruno@clisp.org>
63677
63678         * gnulib-tool (import): Change --aux-dir default to "build-aux".
63679
63680 2005-08-24  Bruno Haible  <bruno@clisp.org>
63681
63682         * gnulib-tool (func_version): Update.
63683
63684 2005-08-24  Bruno Haible  <bruno@clisp.org>
63685
63686         * gnulib-tool (func_import, func_create_testdir,
63687         func_create_megatestdir): Quote all autoconf macro arguments.
63688
63689 2005-08-24  Bruno Haible  <bruno@clisp.org>
63690
63691         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
63692         option --force, because --force causes the aclocal.m4 of each
63693         subdirectory to be newer than the corresponding config.h.in.
63694
63695 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
63698         All contents moved to gl_REGEX.
63699         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
63700         assume that it does.
63701
63702 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         * lib/regex.h (REG_NOSYS)
63705         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
63706         Define, since POSIX requires it as of 2001.
63707         (_REG_ENOSYS)
63708         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
63709         New private symbol, used to keep the enum signed in all cases.
63710         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
63711         Youngman in
63712         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
63713
63714         * lib/regex_internal.c (re_string_skip_chars, register_state):
63715         (calc_state_hash):
63716         Remove forward decls; no longer needed now that we use prototypes.
63717         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
63718         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
63719         (clean_state_log_if_needed): Likewise.
63720
63721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63722
63723         * config/srclist.txt: Add glibc bugs 1231-1233.
63724
63725 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         Fix problems reported by Sam Steingold in
63728         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
63729         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
63730         assumed that reg_errcode_t is a signed type, which is not
63731         necessarily true if _XOPEN_SOURCE is not defined.
63732         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
63733         since some compilers warn about it otherwise.
63734
63735 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
63738         (init_word_char, create_initial_state, duplicate_node_closure):
63739         (fetch_token, peek_token_bracket, build_range_exp):
63740         (build_collating_symbol): Remove forward decls; no longer needed
63741         now that we use prototypes.
63742
63743         * lib/regcomp.c:
63744         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
63745         (re_compile_fastmap_iter, regcomp, regerror, regfree):
63746         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
63747         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
63748         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
63749         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
63750         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
63751         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
63752         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
63753         (build_range_exp, build_collating_symbol, parse_bracket_exp):
63754         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
63755         (build_charclass, build_charclass_op, fetch_number, create_tree):
63756         (create_token_tree, mark_opt_subexp, duplicate_tree):
63757         Use prototypes rather than old-style definitions.
63758
63759         * lib/regex_internal.c:
63760         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
63761         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
63762         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63763         (re_string_reconstruct, re_string_peek_byte_case):
63764         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
63765         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63766         (re_node_set_init_copy, re_node_set_add_intersect):
63767         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63768         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63769         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63770         (re_acquire_state, re_acquire_state_context, register_state):
63771         (create_ci_newstate, create_cd_newstate, free_state):
63772         Likewise.
63773         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
63774         re_search_2):
63775         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
63776         (re_search_internal, prune_impossible_nodes):
63777         (acquire_init_state_context, check_matching, static):
63778         (check_halt_node_context, check_halt_state_context, proceed_next_node):
63779         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
63780         (update_regs, sift_states_backward, build_sifted_states):
63781         (clean_state_log_if_needed, merge_state_array):
63782         (update_cur_sifted_state, add_epsilon_src_nodes):
63783         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
63784         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
63785         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
63786         (find_recover_state, check_subexp_matching_top, transit_state_mb):
63787         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
63788         (check_arrival, check_arrival_add_next_nodes):
63789         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63790         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63791         (check_node_accept_bytes, check_node_accept, extend_buffers):
63792         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
63793         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
63794         (sift_ctx_init):
63795         Likewise.
63796
63797         * lib/regex_internal.h:
63798         (re_string_allocate, re_string_construct, re_string_reconstruct):
63799         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
63800         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
63801         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
63802         (re_string_context_at, re_string_peek_byte_case):
63803         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
63804         is defined, since we now use prototypes always.
63805
63806         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
63807         C89 or better.  All uses removed.
63808
63809 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * config/srclist.txt: Add glibc bugs 1220-1227.
63812
63813 2005-08-20  Jim Meyering  <jim@meyering.net>
63814
63815         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
63816         of unused local, dfa.
63817
63818 2005-08-20  Bruno Haible  <bruno@clisp.org>
63819
63820         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
63821
63822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63823
63824         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
63825         (re_node_set_insert_last, re_dfa_add_node):
63826         Rename local variables to avoid GCC shadowing warnings.
63827
63828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63829
63830         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
63831         [defined lint]: Suppress bogus uninitialized-variable warnings.
63832
63833         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
63834         and let the caller return REG_ESPACE if out of space.  This
63835         removes an uninitialied-variable warning with GCC 4.0.1, and also
63836         avoids taking the address of a local variable.  All callers
63837         changed.
63838
63839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
63842         $LIBCSRC/posix/regexec.c.
63843         Add glibc bug 1217 for regcomp.c.
63844
63845 2005-08-19  Jim Meyering  <jim@meyering.net>
63846
63847         * lib/regexec.c (proceed_next_node): Redo local variables to
63848         avoid GCC shadowing warnings.
63849
63850 2005-08-18  Bruno Haible  <bruno@clisp.org>
63851
63852         * lib/strstr.c (strstr): Fix return value in multibyte case.
63853         * lib/strcasestr.c (strcasestr): Likewise.
63854
63855 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
63858
63859 2005-08-17  Jim Meyering  <jim@meyering.net>
63860
63861         Make the %s format (seconds since the epoch) work for a negative
63862         number and when used with a zero-padded field width, e.g. %015s.
63863
63864         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
63865         label so that it precedes the code to set `digits'.  Otherwise,
63866         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
63867         print `00-22'.  Now, it prints `-0022', as it should.
63868
63869 2005-08-17  Bruno Haible  <bruno@clisp.org>
63870
63871         * modules/strstr (Files): Add m4/mbrtowc.m4.
63872         (Depends-on): Add mbuiter.
63873
63874 2005-08-17  Bruno Haible  <bruno@clisp.org>
63875
63876         * modules/strcasestr: New file.
63877         * MODULES.html.sh (String handling, based on ANSI C 89): Add
63878         strcasestr.
63879
63880 2005-08-17  Bruno Haible  <bruno@clisp.org>
63881
63882         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
63883
63884 2005-08-17  Bruno Haible  <bruno@clisp.org>
63885
63886         * modules/mbuiter: New file.
63887         * MODULES.html.sh (Extended multibyte and wide character utilities):
63888         Add mbuiter.
63889
63890 2005-08-17  Bruno Haible  <bruno@clisp.org>
63891
63892         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
63893         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
63894
63895 2005-08-17  Bruno Haible  <bruno@clisp.org>
63896
63897         * m4/strcasestr.m4: New file.
63898
63899 2005-08-17  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
63902         * lib/strstr.c: Completely rewritten, with multibyte locale support.
63903
63904 2005-08-17  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/strcasestr.h: New file.
63907         * lib/strcasestr.c: New file.
63908
63909 2005-08-17  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/strcasecmp.c: Use mbuiter.h.
63912
63913 2005-08-17  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/mbuiter.h: New file.
63916
63917 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
63920         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
63921         and gl_GETOPT are both invoked via different paths (as happens
63922         with GNU tar CVS because it uses both argp and getopt), the former
63923         wins.
63924
63925 2005-08-16  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/tls: New file.
63928         * MODULES.html.sh (Multithreading): Add tls.
63929
63930 2005-08-16  Bruno Haible  <bruno@clisp.org>
63931
63932         * modules/strnlen1: New file.
63933         * MODULES.html.sh (String handling): Add strnlen1.
63934
63935 2005-08-16  Bruno Haible  <bruno@clisp.org>
63936
63937         * modules/strcase (Files): Add m4/mbrtowc.m4.
63938         (Depends-on): Add strnlen1, mbchar.
63939
63940 2005-08-16  Bruno Haible  <bruno@clisp.org>
63941
63942         * modules/mbiter: New file.
63943         * MODULES.html.sh (Extended multibyte and wide character utilities):
63944         Add mbiter.
63945
63946 2005-08-16  Bruno Haible  <bruno@clisp.org>
63947
63948         * modules/mbfile: New file.
63949         * MODULES.html.sh (Extended multibyte and wide character utilities):
63950         Add mbfile.
63951
63952 2005-08-16  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/mbchar: New file.
63955         * MODULES.html.sh (Extended multibyte and wide character utilities):
63956         New section.
63957
63958 2005-08-16  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/tls.m4: New file, from GNU gettext.
63961
63962 2005-08-16  Bruno Haible  <bruno@clisp.org>
63963
63964         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
63965         always.
63966         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
63967
63968 2005-08-16  Bruno Haible  <bruno@clisp.org>
63969
63970         * m4/mbiter.m4: New file.
63971
63972 2005-08-16  Bruno Haible  <bruno@clisp.org>
63973
63974         * m4/mbfile.m4: New file.
63975
63976 2005-08-16  Bruno Haible  <bruno@clisp.org>
63977
63978         * m4/mbchar.m4: New file.
63979
63980 2005-08-16  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/tls.h: New file, from GNU gettext.
63983         * lib/tls.c: New file, from GNU gettext.
63984
63985 2005-08-16  Bruno Haible  <bruno@clisp.org>
63986
63987         * lib/strnlen1.h: New file.
63988         * lib/strnlen1.c: New file.
63989
63990 2005-08-16  Bruno Haible  <bruno@clisp.org>
63991
63992         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63993         (mbi_init): Update.
63994         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63995         NUL byte, not after it.
63996
63997 2005-08-16  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/strcase.h (strcasecmp): Add note in comments.
64000         * lib/strncasecmp.c: Use code from strcasecmp.c.
64001         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64002         (strcasecmp): Work correctly in multibyte locales.
64003
64004 2005-08-16  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/mbiter.h: New file.
64007
64008 2005-08-16  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/mbfile.h: New file.
64011
64012 2005-08-16  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/mbchar.h: New file.
64015         * lib/mbchar.c: New file.
64016
64017 2005-08-16  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64020         the valid ones. Makes the comparison operations transitive:
64021         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64022         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64023
64024 2005-08-15  Simon Josefsson  <jas@extundo.com>
64025
64026         * modules/ssize_t (License): Change to 'unlimited'.
64027
64028         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64029
64030 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64033         Add comments for each pending glibc patch.
64034
64035 2005-08-15  Bruno Haible  <bruno@clisp.org>
64036
64037         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64038         __cplusplus is defined.
64039
64040 2005-08-14  Jim Meyering  <jim@meyering.net>
64041
64042         Sync from coreutils.
64043
64044         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64045         Use the hash-table-based cycle-detection code not just when
64046         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64047         Reported by James Youngman in
64048         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64049         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64050         FTS_TIGHT_CYCLE_CHECK.
64051         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64052         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64053         once again.
64054         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64055         * lib/fts.c (fd_safer): Remove decl.
64056         Include fcntl--.h rather than unistd-safer.h
64057         (fts_safe_changedir): Don't call fd_safer; no longer needed
64058         now that we include fcntl--.h.
64059
64060 2005-08-12  Simon Josefsson  <jas@extundo.com>
64061
64062         * modules/getndelim2: Use ssize_t module.
64063         * modules/getnline: Likewise.
64064         * modules/safe-read: Likewise.
64065         * modules/xreadlink: Likewise.
64066
64067         * modules/ssize_t: New file.
64068
64069 2005-08-12  Simon Josefsson  <jas@extundo.com>
64070
64071         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64072
64073 2005-08-12  Simon Josefsson  <jas@extundo.com>
64074
64075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64076         ssize_t.
64077
64078 2005-08-12  Simon Josefsson  <jas@extundo.com>
64079
64080         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64081         readline, getdelim and check_version.
64082         (Support for systems lacking ISO C 99: Sizes of integer types):
64083         Add size_max.
64084
64085 2005-08-12  Bruno Haible  <bruno@clisp.org>
64086
64087         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64088
64089 2005-08-11  Simon Josefsson  <jas@extundo.com>
64090
64091         * modules/readline: New file.
64092
64093         * modules/strnlen (Files): Add strnlen.h.
64094
64095 2005-08-11  Simon Josefsson  <jas@extundo.com>
64096
64097         * m4/readline.m4: New file.
64098
64099 2005-08-11  Simon Josefsson  <jas@extundo.com>
64100
64101         * lib/readline.h, readline.c: New file.
64102
64103 2005-08-11  Simon Josefsson  <jas@extundo.com>
64104
64105         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64106         gl_AVOID.
64107
64108 2005-08-11  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64111
64112 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64113
64114         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64115
64116 2005-08-10  Simon Josefsson  <jas@extundo.com>
64117
64118         * tests/test-iconvme.c: New file.
64119
64120 2005-08-10  Simon Josefsson  <jas@extundo.com>
64121
64122         * m4/strnlen.m4: New file.
64123
64124         * m4/strndup.m4: Don't check for strnlen declaration, done in
64125         strnlen.m4.
64126
64127 2005-08-10  Simon Josefsson  <jas@extundo.com>
64128
64129         * lib/strndup.c: Use strnlen.h.
64130
64131         * lib/strnlen.h: New file.
64132
64133 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64134
64135         * README: Typos.
64136
64137 2005-08-02  Simon Josefsson  <jas@extundo.com>
64138
64139         * modules/readline: New file.
64140
64141 2005-08-02  Simon Josefsson  <jas@extundo.com>
64142
64143         * modules/getdelim: New file.
64144
64145         * modules/getline: Rewrite, don't use getndelim2.
64146
64147 2005-08-02  Simon Josefsson  <jas@extundo.com>
64148
64149         * m4/getline.m4: Separate out getdelim stuff into separate module.
64150
64151         * m4/getdelim.m4: New file.
64152
64153 2005-08-02  Simon Josefsson  <jas@extundo.com>
64154
64155         * lib/getline.h, getline.c: Rewrite.
64156
64157         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64158
64159 2005-07-31  Bruno Haible  <bruno@clisp.org>
64160
64161         * lib/lock.h (gl_lock_initializer): New macro.
64162         (gl_lock_define_initialized): Use it.
64163         (gl_rwlock_initializer): New macro.
64164         (gl_rwlock_define_initialized): Use it.
64165         (gl_recursive_lock_initializer): New macro.
64166         (gl_recursive_lock_define_initialized): Use it.
64167
64168 2005-07-30  Karl Berry  <karl@gnu.org>
64169
64170         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64171         Report from Ben Pfaff, regarding getopt.
64172
64173 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64174
64175         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64176         normal way.
64177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64178         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64179         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64180         (gl_GETOPT): Use the new macros.  Most of the implementation
64181         is moved to the new macros.  This is for programs like Emacs
64182         that don't want all the functionality of gl_GETOPT.
64183
64184 2005-07-26  Bruno Haible  <bruno@clisp.org>
64185
64186         * m4/lock.m4: Update from GNU gettext.
64187
64188 2005-07-26  Bruno Haible  <bruno@clisp.org>
64189
64190         * lib/lock.h: Update from GNU gettext.
64191         * lib/lock.c: Update from GNU gettext.
64192
64193 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64196         obsolescent AC_TRY_RUN.  Include the default includes files, for
64197         'exit'.
64198
64199 2005-07-24  Bruno Haible  <bruno@clisp.org>
64200
64201         * modules/visibility: New file.
64202         * MODULES.html.sh (Misc): Add visibility.
64203
64204 2005-07-24  Bruno Haible  <bruno@clisp.org>
64205
64206         * m4/visibility.m4: New file.
64207
64208 2005-07-24  Bruno Haible  <bruno@clisp.org>
64209
64210         * doc/visibility.texi: New file.
64211
64212 2005-07-22  Bruno Haible  <bruno@clisp.org>
64213
64214         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64215         $(ALLOCA_H), redundant through BUILT_SOURCES.
64216         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64217         redundant through BUILT_SOURCES.
64218         * modules/byteswap (Makefile.am): Remove explicit dependency on
64219         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64220         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64221         $(FNMATCH_H), redundant through BUILT_SOURCES.
64222         * modules/getopt (Makefile.am): Remove explicit dependency on
64223         $(GETOPT_H), redundant through BUILT_SOURCES.
64224         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64225         redundant through BUILT_SOURCES.
64226         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64227         redundant through BUILT_SOURCES.
64228         * modules/stdbool (Makefile.am): Remove explicit dependency on
64229         $(STDBOOL_H), redundant through BUILT_SOURCES.
64230         * modules/stdint (Makefile.am): Remove explicit dependency on
64231         $(STDINT_H), redundant through BUILT_SOURCES.
64232         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64233         Remove explicit dependency on $(SYSEXITS_H).
64234         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64235
64236 2005-07-18  Simon Josefsson  <jas@extundo.com>
64237
64238         * lib/check-version.c (check_version): Accept identical versions too.
64239
64240 2005-07-18  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/lock: New file.
64243         * MODULES.html.sh (Multithreading): New section.
64244
64245 2005-07-18  Bruno Haible  <bruno@clisp.org>
64246
64247         * m4/lock.m4: New file, from GNU gettext.
64248
64249 2005-07-18  Bruno Haible  <bruno@clisp.org>
64250
64251         * lib/lock.h: New file, from GNU gettext.
64252         * lib/lock.c: New file, from GNU gettext.
64253
64254 2005-07-18  Bruno Haible  <bruno@clisp.org>
64255
64256         * lib/lock.h (gl_once_t): New type.
64257         (gl_once_define, gl_once): New macros.
64258         * lib/lock.c (fresh_once): New variable.
64259         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
64260         functions.
64261
64262 2005-07-16  Simon Josefsson  <jas@extundo.com>
64263
64264         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
64265         workaround, suggested by Bruno.
64266
64267 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * modules/xalloc (Depends-on): Add xalloc-die.
64270         * modules/xvasprintf (Depends-on): Add xalloc-die.
64271
64272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
64273
64274         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
64275         with a minor change.
64276
64277 2005-07-15  Bruno Haible  <bruno@clisp.org>
64278
64279         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
64280         When using lib/poll.c, define poll as rpl_poll.
64281
64282 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * modules/argp (Depends-on): Remove unlocked-io.
64285
64286 2005-07-14  Derek Price  <derek@ximbiot.com>
64287
64288         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
64289         for glob symlink bug.
64290
64291 2005-07-14  Bruno Haible  <bruno@clisp.org>
64292
64293         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
64294         Instead, test for *_unlocked function declarations directly.
64295
64296 2005-07-11  Simon Josefsson  <jas@extundo.com>
64297
64298         * modules/size_max: New file.
64299
64300         * modules/xsize: Depend on size_max module for size_max.m4.
64301
64302 2005-07-11  Simon Josefsson  <jas@extundo.com>
64303
64304         * lib/size_max.h: New file.
64305
64306 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
64309         copyright symbol and the year.
64310         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
64311         (version_etc_va): Use parameterized copyright notice.
64312         Reword to conform to the current GNU coding standards.
64313
64314 2005-07-11  Karl Berry  <karl@gnu.org>
64315
64316         * doc/gnulib.texi (Quoting): new node.
64317         (Initial import): more info, from Patrice.
64318
64319 2005-07-11  Bruno Haible  <bruno@clisp.org>
64320
64321         * gnulib-tool (func_usage): Document option --avoid.
64322         (Command line options): Handle --avoid.
64323         (func_acceptable): New function.
64324         (func_modules_transitive_closure): Use it.
64325
64326 2005-07-11  Bruno Haible  <bruno@clisp.org>
64327
64328         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
64329         Reported by Jim Meyering.
64330
64331 2005-07-10  Bruno Haible  <bruno@clisp.org>
64332
64333         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
64334         Needed when size_t is smaller than 'unsigned int'.
64335         Reported by Paul Eggert.
64336
64337 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64338
64339         * modules/argp (Depends-on): Add unlocked-io
64340
64341 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64342
64343         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
64344         block of defines.
64345
64346 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64347
64348         * config/srclist.txt: Comment out regcomp.c, since we have a porting
64349         fix now.
64350
64351 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
64352         and Paul Eggert  <eggert@cs.ucla.edu>
64353
64354         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
64355         in wint_t, not wchar_t.  Remove now-unnecessary cast.
64356
64357 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * modules/regex (Files): Add lib/regex_internal.c,
64360         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
64361         (Depends-on): Add extensions.
64362         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
64363
64364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
64367         pathconf.
64368         * m4/same.m4 (gl_SAME): Likewise.
64369         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
64370
64371         * m4/regex.m4: Adjust to new libc regex implementation.
64372         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
64373         all the .c and .h parts of (the new) regex.
64374         Quote the m4 stuff better.
64375         Check for RE_ICASE bug of old gnulib.
64376         Check for REG_STARTEND of recent libc.
64377         Rename local variables from jm_* to gl_*.
64378         Quote operand of "test -f".
64379         Say "recent enough" version of libc, not "version 2".
64380         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
64381         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
64382         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
64383         Remove check for btowc, isascii.
64384         Require AM_LANGINFO_CODESET.
64385
64386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         * lib/regex.c, regex.h: Sync from libc.
64389         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
64390         * lib/regexec.c:
64391         New files, synced from libc, except that regex_internal.h
64392         currently has a small porting fix.
64393
64394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
64397         regex_internal.c, regexec.c.
64398         Add regex_internal.h too, but as a comment, since the libc version
64399         is currently broken in gnulib mode.
64400
64401 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         Support programs like Emacs that use gnulib but not gettext.
64404         * MODULES.html.sh (Internationalization functions): Add gettext-h.
64405         * modules/gettext-h: New file.
64406         * modules/gettext (Files): Remove lib/gettext.h.
64407         (Depends-on): Add gettext-h.
64408         (Makefile.am): Remove lib_SOURCES.
64409         * modules/argmatch, modules/c-stack, modules/closeout:
64410         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
64411         * modules/execute, modules/file-type, modules/getaddrinfo:
64412         * modules/getopt, modules/human, modules/javacomp:
64413         * modules/javaexec, modules/mkdir-p, modules/obstack:
64414         * modules/openat, modules/pagealign_alloc, modules/pipe:
64415         * modules/quotearg, modules/regex, modules/rpmatch:
64416         * modules/unicodeio, modules/userspec, modules/version-etc:
64417         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
64418         * modules/xsetenv:
64419         Depend on gettext-h, not gettext.
64420
64421 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * gnulib-tool (func_import): Add support for 'public domain' license.
64424         * modules/alloca, modules/atexit, modules/memmove:
64425         Now public domain, not GPL.
64426         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
64427         * modules/realloc, modules/strerror, modules/strtod:
64428         Now LGPL, not GPL.
64429
64430 2005-07-05  Bruno Haible  <bruno@clisp.org>
64431
64432         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
64433         autoconf CVS. Needed for mingw.
64434
64435 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         Remove the dependency of the strftime module on the tzset module.
64438         * modules/strftime (Depends-on): Remove dependency on tzset.
64439
64440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64441
64442         Remove the dependency of the strftime module on the tzset module.
64443         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
64444         gl_FUNC_TZSET_CLOBBER.
64445
64446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64447
64448         Remove the dependency of the strftime module on the tzset module.
64449         * lib/strftime.c (my_strftime)
64450         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
64451         Copy the input structure, to work around some of the bug with
64452         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
64453         Solaris releases, you should also use the tzset module, but we won't
64454         require it as a dependency any more since we don't want LGPLed code
64455         to depend on GPLed code.
64456
64457 2005-07-02  Jim Meyering  <jim@meyering.net>
64458
64459         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
64460         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
64461         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
64462         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
64463
64464 2005-07-02  Jim Meyering  <jim@meyering.net>
64465
64466         * lib/backupfile.c (backup_args): Change a `0' to NULL.
64467
64468 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64469
64470         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
64471         declares only 'struct timespec;' (!).
64472
64473 2005-07-01  Jim Meyering  <jim@meyering.net>
64474
64475         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
64476         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
64477         * lib/save-cwd.c, tempname.c:
64478         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64479         and don't include <sys/file.h>).
64480
64481 2005-06-29  Jim Meyering  <jim@meyering.net>
64482
64483         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
64484         type name.  Use the variable name instead.
64485         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
64486         Likewise.
64487
64488 2005-06-28  Simon Josefsson  <jas@extundo.com>
64489
64490         * modules/check-version (Files): Add check-version.m4.
64491
64492 2005-06-28  Simon Josefsson  <jas@extundo.com>
64493
64494         * m4/check-version.m4: New file, suggested by Jim Meyering
64495         <jim@meyering.net>.
64496
64497 2005-06-28  Simon Josefsson  <jas@extundo.com>
64498
64499         * lib/check-version.h, lib/check-version.c: New files.
64500
64501 2005-06-28  Simon Josefsson  <jas@extundo.com>
64502
64503         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
64504         collision with global variable.  Better indentation.  Don't
64505         increment buffer pointer beyond buffer end.  Based on comments
64506         from Paul Eggert <eggert@cs.ucla.edu>.
64507
64508         * lib/base64.h: Indent.
64509
64510 2005-06-28  Simon Josefsson  <jas@extundo.com>
64511
64512         * doc/gnulib.texi (Library version handling): New section.
64513
64514 2005-06-28  Jim Meyering  <jim@meyering.net>
64515
64516         * check-module (find_included_lib_files): Hard-code another
64517         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
64518         but modules/fts-lgpl (correctly) does not list those files.
64519
64520         * modules/canonicalize (Files): Add lib/pathmax.h.
64521
64522 2005-06-25  Simon Josefsson  <jas@extundo.com>
64523
64524         * modules/check-version: New file.
64525
64526 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
64527
64528         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
64529         initializer of struct addrinfo, as an indication that we don't
64530         care how many members the structure has.
64531
64532 2005-06-24  Derek Price  <derek@ximbiot.com>
64533         and Bruno Haible  <bruno@clisp.org>
64534
64535         Remove stat module & update lstat.
64536         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
64537         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64538         * m4/stat.m4: Remove this file.
64539
64540 2005-06-24  Derek Price  <derek@ximbiot.com>
64541         and Bruno Haible  <bruno@clisp.org>
64542
64543         Remove stat module & update lstat.
64544         * lib/stat.c: Remove this file...
64545         (slash_aware_lstat): ...moving this content and its support...
64546         * lib/lstat.c (rpl_lstat): ...into here.
64547         * lib/lstat.h: New file.
64548
64549 2005-06-24  Derek Price  <derek@ximbiot.com>
64550         and Bruno Haible  <bruno@clisp.org>
64551
64552         Remove stat module & update lstat.
64553         * config/srclist.txt (libc sources): Remove stat.
64554
64555 2005-06-24  Derek Price  <derek@ximbiot.com>
64556         and Bruno Haible  <bruno@clisp.org>
64557
64558         Remove stat module & update lstat.
64559         * MODULES.html.sh (stat): Remove.
64560         * MODULES.html: Regenerated.
64561         * modules/lstat (Description): Correct function name.
64562         (Files): Add "lstat.h".
64563         (Depends-on): Remove stat, add xalloc, stat-macros.
64564         * modules/stat: Remove this file.
64565         (Include): Add "lstat.h", remove <sys/stat.h>.
64566
64567 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
64570         (ranged_convert): Don't save conversion in a temporary struct.
64571         This causes a warning with GCC 4.0.0, and anyway in the typical
64572         case it's not worth the extra 100 bytes or so of code.
64573         (ranged_convert, __mktime_internal): When calling a function via a
64574         pointer P, use P () rather than (*P) (), as we now assume C89 or
64575         better.
64576
64577 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
64580         "who -r" failed to give output.  Problem reported by Tim Waugh.
64581
64582         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
64583         (xcalloc): Use it to avoid needless tests.
64584         Problem reported by Jim Meyering.
64585
64586 2005-06-20  Derek Price  <derek@ximbiot.com>
64587
64588         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
64589         unnecessary for Autoconfs > 2.59c.
64590
64591 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64592
64593         * lib/argp.h (__option_is_short): Check upper limit of
64594         __key. Isprint() requires its argument to have the value
64595         of an unsigned char or EOF.
64596
64597 2005-06-16  Jim Meyering  <jim@meyering.net>
64598
64599         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
64600         when either N or S is zero.
64601
64602 2005-06-16  Derek Price  <derek@ximbiot.com>
64603
64604         * m4/bison.m4: Declare YACC & YFLAGS precious.
64605
64606 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
64609         multibyte string or pattern, fall back on unibyte matching.
64610         Problem reported by James Youngman.
64611
64612 2005-06-08  Bruno Haible  <bruno@clisp.org>
64613
64614         * modules/csharpcomp: New file.
64615         * MODULES.html.sh (C#): Add csharpcomp.
64616
64617 2005-06-08  Bruno Haible  <bruno@clisp.org>
64618
64619         * m4/csharpcomp.m4: New file, from GNU gettext.
64620
64621 2005-06-08  Bruno Haible  <bruno@clisp.org>
64622
64623         * lib/csharpcomp.h: New file, from GNU gettext.
64624         * lib/csharpcomp.c: New file, from GNU gettext.
64625         * lib/csharpcomp.sh.in: New file, from GNU gettext.
64626
64627 2005-06-08  Bruno Haible  <bruno@clisp.org>
64628
64629         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
64630         warning on mingw.
64631
64632 2005-06-07  Derek Price  <derek@ximbiot.com>
64633
64634         Sync from CVS.
64635         * lib/glob_.h: Indent nested #ifdef.
64636
64637 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         Sync from coreutils.
64640         Use "file name" when talking about file names, instead of "filename"
64641         or "path", as per the GNU coding standards.
64642         * lib/mkdir-p.c: Renamed from makepath.c.
64643         (make_dir_parents): Renamed from make_path.  All callers changed.
64644         * lib/mkdir-p.h: Likewise.  All includers changed.
64645         * lib/filenamecat.c: Renamed from path-concat.c.
64646         (file_name_concat): Renamed from path_concat.  All callers changed.
64647         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
64648         * lib/filenamecat.h: Likewise.  All includers changed.
64649         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
64650         in comments or local variable names.
64651         * lib/basename.c: Likewise.
64652         * lib/canonicalize.c, canonicalize.h: Likewise.
64653         * lib/dirname.c, dirname.h: Likewise.
64654         * lib/euidaccess.c: Likewise.
64655         * lib/exclude.c: Likewise
64656         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
64657         * lib/fsusage.c, fsuage.h: Likewise.
64658         * lib/fts.c, fts_.h: Likewise.
64659         * lib/getcwd.c: Likewise.
64660         * lib/getloadavg.c: Likewise.
64661         * lib/mkstemp.c: Likewise.
64662         * lib/mountlist.c, mountlist.h: Likewise.
64663         * lib/openat.c, openat.h: Likewise.
64664         * lib/readlink-stub.c: Likewise.
64665         * lib/readutmp.c, readutmp.h: Likewise.
64666         * lib/rename.c: Likewise.
64667         * lib/rmdir.c: Likewise.
64668         * lib/same.c: Likewise.
64669         * lib/savedir.c: Likewise.
64670         * lib/stripslash.c: Likewise.
64671         * lib/tempname.c: Likewise.
64672         * lib/xreadlink.c: Likewise.
64673         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
64674         All uses changed.
64675         * lib/exclude.h: Likewise.
64676
64677         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
64678         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64679         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
64680         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64681         * lib/pathmax.h: Include <limits.h> unconditionally, since other
64682         files have been getting away with it for years (MORE/BSD 4.3
64683         is extinct now).
64684         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
64685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
64686
64687         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
64688         Define to 256, not 255, as per modern POSIX.
64689
64690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         Sync from coreutils.
64693         Use "file name" when talking about file names, instead of "filename"
64694         or "path", as per the GNU coding standards.
64695         * MODULES.html.sh: mkdir-p renamed from makepath.
64696         filenamecat renamed from path-concat.
64697         * modules/filenamecat: Renamed from modules/path-concat.
64698         (Files): filenamecat.h and filenamecat.c renamed from
64699         path-concat.h and path-concat.c.
64700         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
64701         (Include): filenamecat.h, not path-concat.h.
64702         * modules/mkdir-p: Renamed from modules/makepath.
64703         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
64704         makepath.c.
64705         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
64706         (Include): mkdir-p.h, not makepath.h.
64707
64708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         Sync from coreutils.
64711         * m4/mkdir-p.m4: Renamed from makepath.m4.
64712         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
64713         Rename files from makepath.c to mkdir-p.c, and from
64714         makepath.h to mkdir-p.h.
64715         * m4/filenamecat.m4: Renamed from path-concat.m4.
64716         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
64717         Rename files from path-concat.c to filenamecat.c,
64718         and from path-concat.h to filenamecat.h.
64719         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
64720         "file name" in local variables or comments.
64721         * m4/rename.m4: Likewise.
64722
64723 2005-06-01  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/csharpexec: New file.
64726         * MODULES.html.sh (C#): New section.
64727
64728 2005-06-01  Bruno Haible  <bruno@clisp.org>
64729
64730         * m4/csharp.m4: New file, from GNU gettext.
64731         * m4/csharpexec.m4: New file, from GNU gettext.
64732
64733 2005-06-01  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/csharpexec.h: New file, from GNU gettext.
64736         * lib/csharpexec.c: New file, from GNU gettext.
64737         * lib/csharpexec.sh.in: New file, from GNU gettext.
64738
64739 2005-05-31  Derek Price  <derek@ximbiot.com>
64740             Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         Sync from cvs.
64743         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64744
64745 2005-05-31  Derek Price  <derek@ximbiot.com>
64746             Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         Sync from cvs.
64749         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
64750
64751 2005-05-29  Derek Price  <derek@ximbiot.com>
64752
64753         * config/srclist.txt (glob_.h, glob.c): Add these files.
64754
64755 2005-05-29  Derek Price  <derek@ximbiot.com>
64756
64757         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
64758         * modules/glob: New file.
64759         * modules/getlogin_r: Add link to POSIX spec in description.
64760
64761 2005-05-29  Derek Price  <derek@ximbiot.com>
64762             Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * m4/glob.m4: New file.
64765
64766 2005-05-29  Derek Price  <derek@ximbiot.com>
64767             Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * lib/glob_.h, lib/glob.c: New files.
64770
64771 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64772
64773         * modules/fts (Files): Remove m4/inttypes-pri.m4.
64774         * modules/fts-lgpl (Depends-on): Remove gettext.
64775
64776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
64779         and don't require gt_INTTYPES_PRI.
64780
64781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
64782
64783         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
64784
64785         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
64786         the configuration hassle isn't worth it.
64787         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
64788         (LONGEST_MODIFIER, PRIuMAX): Remove.
64789
64790 2005-05-27  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/getlogin_r.h: Remove second include of <stddef.h>.
64793
64794 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
64795
64796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
64797         _POSIX_PTHREAD_SEMANTICS for Solaris.
64798
64799 2005-05-25  Derek Price  <derek@ximbiot.com>
64800
64801         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
64802
64803 2005-05-25  Derek Price  <derek@ximbiot.com>
64804             Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * modules/getlogin_r, m4/getlogin_r.m4: New files.
64807         * lib/getlogin_r.c, getlogin_r.h: New files.
64808
64809 2005-05-25  Bruno Haible  <bruno@clisp.org>
64810             Derek Price  <derek@ximbiot.com>
64811
64812         * lib/getlogin_r.h: Simplify API documentation.
64813
64814 2005-05-23  Derek Price  <derek@ximbiot.com>
64815
64816         * modules/minmax (Files): Add m4/minmax.m4.
64817         (configure.ac): Add gl_MINMAX.
64818
64819 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
64822         so that unistd-safer.h (GPL'ed code) need not be included.
64823
64824 2005-05-22  Bruno Haible  <bruno@clisp.org>
64825
64826         * m4/minmax.m4: New file.
64827         Based on a patch by Derek Price <derek@ximbiot.com>.
64828
64829 2005-05-22  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
64832         (INT64_MIN): Fix definition.
64833         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
64834
64835         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
64836         NEED_SIGNED_INT_TYPES.
64837
64838         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
64839         HAVE_SYSTEM_INTTYPES.
64840
64841 2005-05-22  Bruno Haible  <bruno@clisp.org>
64842
64843         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
64844         Also include <sys/param.h> if it defines MIN, MAX.
64845         Based on a patch by Derek Price <derek@ximbiot.com>.
64846
64847 2005-05-21  Jim Meyering  <jim@meyering.net>
64848
64849         * modules/fts (Files): Add m4/inttypes-pri.m4.
64850         (Depends-on): Add lstat and remove gettext.  Alphabetize.
64851
64852 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         New fts module.
64855         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
64856         (setup_dir, free_dir): New functions.
64857         (enter_dir, leave_dir): Define trivial
64858         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
64859         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
64860         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
64861         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
64862         Move to fts-cycle.c.
64863         (fts_open): Use setup_dir.
64864         (fts_close): Use free_dir.
64865         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
64866         This adds a label and some gotos, but the alternatives were messier.
64867         Check for memory allocation failure when entering a dir.
64868         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
64869         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
64870         (FTS): New member fts_cycle, that is a union that contains the
64871         old active_dir_ht and cycle_state.  All uses changed to mention
64872         fts_cycle.ht and fts_cycle.state.
64873         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
64874         fts.c, with the following changes:
64875         (setup_dir, free_dir): New functions.
64876         (enter_dir): Now returns bool.  Return true if successful, false
64877         if memory exhausted.  All callers changed.
64878         Do not bother partly cleaning up on
64879         memory allocation failure; that is free_dir's job.
64880         However, free ad if hash_insert fails, to avoid memory leak.
64881         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
64882         fts->fts_options to see which union member to use.
64883
64884 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
64887         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
64888
64889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64890
64891         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
64892
64893 2005-05-20  Jim Meyering  <jim@meyering.net>
64894
64895         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
64896         Now a macro, to pacify GCC.
64897
64898 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64899
64900         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
64901         of -1.
64902
64903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
64904
64905         * lib/chown.c (rpl_chown): Return -1 on failure.
64906
64907 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
64910         Don't check for stddef.h.
64911         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
64912         don't use its results.
64913         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
64914         since we include them unconditionally.  Don't require
64915         AM_STDBOOL_H, since stdbool is a prerequisite.
64916         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
64917         since we assume C89 or better.
64918         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
64919         as we don't use their results.
64920         Don't check for fchdir, memmove, memset, strrchr, as we use
64921         them unconditionally.
64922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
64923         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
64924
64925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
64928         Include <stddef.h> unconditionally, since we assume C89 now.
64929         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
64930         * lib/fts.c: Include fts_.h first, to check interface.
64931         Do not include intprops.h; no longer needed.
64932         Include cycle-check.h and hash.h, since fts_.h no longer does.
64933         Remove unnecessary casts of closedir to void.
64934         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
64935         decide whether to decrement nlinks.
64936         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
64937         (FTS): Use struct hash_table * instead of Hash_table, so that
64938         we no longer need to include hash.h here.
64939
64940 2005-05-18  Jim Meyering  <jim@meyering.net>
64941
64942         * modules/dirfd (License): Change to LGPL.  Most of the code
64943         is already in the public domain.
64944
64945 2005-05-18  Jim Meyering  <jim@meyering.net>
64946
64947         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
64948         Reported by Yoann Vandoorselaere.
64949
64950 2005-05-17  Jim Meyering  <jim@meyering.net>
64951
64952         * m4/fts.m4: New file, from coreutils.
64953
64954 2005-05-17  Jim Meyering  <jim@meyering.net>
64955
64956         * lib/fts.c, lib/fts_.h: New files, from coreutils.
64957
64958 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         Sync from coreutils.
64961         * m4/unlinkdir.m4: New file.
64962
64963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         Sync from coreutils.
64966         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
64967         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
64968         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
64969         White space changes only.
64970         * lib/makepath.c (make_path): Port to hosts where leading "//" is
64971         special.
64972         * lib/yesno.c: Include getline.h, not ctype.h.
64973         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64974         Use getline to remove arbitrary restriction on response length.
64975
64976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * config/srclist-update: Spell out "Street" in FSF postal
64979         mail address; this is the style the FSF seems to prefer.
64980
64981         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64982         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64983         this updates FSF postal mail address.
64984
64985         Sync from coreutils.
64986         * modules/unlinkdir: New file.
64987         * modules/yesno (Depends-on): Add getline.
64988         * MODULES.html.sh (File system functions): Add unlinkdir.
64989
64990 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64991
64992         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64993         lib/strsep.h:
64994         Change the initial comment to refer to GPL, not LGPL.
64995         gnulib-tool will change it to LGPL as needed.
64996
64997         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64998         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64999         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65000         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65001         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65002         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65003         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65004         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65005         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65006         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65007         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65008         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65009         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65010         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65011         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65012         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65013         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65014         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65015         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65016         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65017         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65018         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65019         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65020         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65021         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65022         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65023         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65024         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65025         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65026         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65027         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65028         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65029         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65030         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65031         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65032         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65033         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65034         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65035         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65036         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65037         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65038         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65039         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65040         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65041         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65042         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65043         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65044         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65045         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65046         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65047         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65048         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65049         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65050         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65051         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65052         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65053         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65054         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65055         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65056         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65057         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65058         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65059         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65060         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65061         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65062         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65063         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65064         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65065         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65066         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65067         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65068         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65069         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65070         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65071         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65072         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65073         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65074         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65075         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65076         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65077         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65078         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65079         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65080         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65081         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65082         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65083         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65084         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65085         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65086         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65087         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65088         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65089         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65090         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65091         lib/yesno.c, lib/yesno.h:
65092         Update FSF postal mail address.
65093
65094 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65097         tests/test-memmem.c, tests/test-stpncpy.c:
65098         Update FSF postal mail address.
65099
65100 2005-05-13  Bruno Haible  <bruno@clisp.org>
65101
65102         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65103         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65104         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65105         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65106         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65107         Add support for 64-bit integers in the MSVC compiler.
65108
65109 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65110
65111         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65112
65113 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65114
65115         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65116
65117 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         * doc/getdate.texi (General date syntax): Don't say that date
65120         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65121         Problem reported by Nic Ferrier.
65122
65123 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65124
65125         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65126         specified in ai_socktype. Fix invalid ai_protocol
65127         check. ai_protocol is usually set to 0 or depending on
65128         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65129         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65130         ai_socktype / ai_protocol in the returned addrinfo structure.
65131
65132 2005-05-10  Simon Josefsson  <jas@extundo.com>
65133
65134         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65135         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65136
65137 2005-05-10  Karl Berry  <karl@gnu.org>
65138
65139         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65140         (from http://www.gnu.org/licenses).
65141         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65142         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65143         fdl.texi suffices.
65144
65145 2005-05-10  Karl Berry  <karl@gnu.org>
65146
65147         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65148         (COPYING.DOC): remove.
65149
65150         * config/srclist-update: new FSF address.
65151
65152 2005-05-10  Derek Price  <derek@ximbiot.com>
65153
65154         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65155         possible.
65156
65157 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65158             Bruno Haible  <bruno@clisp.org>
65159
65160         * modules/inet_ntop: New file.
65161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65162         inet_ntop.
65163
65164 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65165             Bruno Haible  <bruno@clisp.org>
65166
65167         * m4/inet_ntop.m4: New file.
65168
65169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65170             Bruno Haible  <bruno@clisp.org>
65171
65172         * lib/inet_ntop.h: New file.
65173         * lib/inet_ntop.c: New file, from glibc with modifications.
65174
65175 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         * modules/time_r (License): Change to LGPL.
65178         * modules/extensions (License): Change to LGPL.  Actually,
65179         the license is more permissive than that, but currently gnulib-tool
65180         doesn't know how to handle more-permissive licenses.
65181
65182         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65183         Problem reported by Dave Love.
65184
65185 2005-05-08  Jim Meyering  <jim@meyering.net>
65186
65187         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65188         blank.
65189
65190 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * modules/argmatch (Depends-on): Add stdbool.
65193         * modules/backupfile (Depends-on): Likewise.
65194         * modules/chdir-long (Depends-on): Likewise.
65195         * modules/closeout (Depends-on): Likewise.
65196         * modules/cycle-check (Depends-on): Likewise.
65197         * modules/dirname (Depends-on): Likewise.
65198         * modules/fnmatch (Depends-on): Likewise.
65199         * modules/fsusage (Depends-on): Likewise.
65200         * modules/fwriteerror (Depends-on): Likewise.
65201         * modules/getcwd (Depends-on): Likewise.
65202         * modules/getloadavg (Depends-on): Likewise.
65203         * modules/hard-locale (Depends-on): Likewise.
65204         * modules/makepath (Depends-on): Likewise.
65205         * modules/mountlist (Depends-on): Likewise.
65206         * modules/nanosleep (Depends-on): Likewise.
65207         * modules/posixtm (Depends-on): Likewise.
65208         * modules/quotearg (Depends-on): Likewise.
65209         * modules/readtokens (Depends-on): Likewise.
65210         * modules/readtokens0 (Depends-on): Likewise.
65211         * modules/readutmp (Depends-on): Likewise.
65212         * modules/save-cwd (Depends-on): Likewise.
65213         * modules/strftime (Depends-on): Likewise.
65214         * modules/userspec (Depends-on): Likewise.
65215         * modules/utimecmp (Depends-on): Likewise.
65216         * modules/xgetcwd (Depends-on): Likewise.
65217         * modules/xnanosleep (Depends-on): Likewise.
65218         * modules/xstrtod (Depends-on): Likewise.
65219         * modules/yesno (Depends-on): Likewise.
65220
65221 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65222
65223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65224         needless checks.
65225
65226 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         Merge from coreutils.  Among other things,
65229         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65230         * lib/fd-safer.c: New file.
65231         * lib/fcntl-safer.h, open-safer.c: Remove.
65232         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65233         * lib/dup-safer.c: Include unistd-safer.h first.
65234         Don't include errno.h.
65235         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65236         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65237         * lib/file-type.c: Rely on file-type.h change.
65238         * lib/getloadavg.c: Include unistd-safer.h.
65239         (getloadavg): Use safer open.
65240         * lib/getusershell.c: Include "stdio-safer.h".
65241         (getusershell): Use safer fopen.
65242         * lib/long-options.c (long_options): Use NULL rather than 0.
65243         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
65244         'free'.
65245         * lib/modechange.c: Likewise.
65246         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
65247         (MODE_DONE): New constant.
65248         (struct mode_change): Remove 'next' member.
65249         (make_node_op_equals): New function; like the old one of the
65250         same name, except it allocates an array.
65251         (mode_compile, mode_create_from_ref): Use it.
65252         (mode_compile): Allocate result as an array, not a linked list.
65253         Parse octal string ourself, so that we catch mistakes like "+0".
65254         (mode_adjust): Arg is an array, not a linked list.
65255         * lib/modechange.c: Include stat-macros.h, xalloc.h.
65256         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
65257         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
65258         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
65259         Remove.  This is now stat-macros.h's job.
65260         (talloc): Remove.  All callers replaced by xalloc, so that
65261         our invokers don't have to worry about reporting memory failures.
65262         (make_node_op_equals): Remove.
65263         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65264         New constants.
65265         (struct mode_change): Moved here from modechange.h.
65266         (mode_append_entry): Remove.
65267         (mode_compile): Remove MASKED_OPS arg, since it encouraged
65268         apps to have incorrect behavior.  Use simpler algorithm for head
65269         and tail.  Don't futz with umask; that's now the job of mode_adjust.
65270         Detect more invalid usages rather than having somewhat-random behavior.
65271         Don't insert an "a=" action, as that leads to incorrect behavior.
65272         (mode_compile, mode_create_from_ref): Return NULL on error instead
65273         of an enum, since now there's only one way to have an error.  All
65274         callers changed.
65275         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
65276         at the correct time.  Simplify calculation of "+u" and its ilk.
65277         Don't mishandle "+X".
65278         (mode_free): Remove "register" and localize decls.
65279         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
65280         (struct mode_change): Move to modechange.c; callers don't
65281         need to see this stuff.
65282         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
65283         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
65284         (mode_change, mode_adjust): Reflect the new signatures noted above.
65285         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
65286         that might redefine system include files.
65287         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
65288         (my_usleep): Use NULL rather than (void *) 0.
65289         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
65290         Use siginterrupt to specify that system calls should be interrupted.
65291         (rpl_nanosleep): Move initialization of suspended closer to call of
65292         my_usleep.
65293         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
65294         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
65295         (desirable_utmp_entry): New function.
65296         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
65297         using x2nrealloc, to simplify logic.
65298         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
65299         size calculation.  Do not assume utmp file is a regular file.
65300         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
65301         (READ_UTMP_CHECK_PIDS): New constant.
65302         * lib/save-cwd.c: Include unistd-safer.h.
65303         (save_cwd): Use fd_safer.
65304         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
65305         [!_LIBC] Include "stat-macros.h" instead.
65306         * lib/unistd-safer.h (fd_safer): New decl.
65307
65308 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * modules/getloadavg (Depends-on): Add unistd-safer.
65311         * modules/getusershell (Depends-on): Add stdio-safer.
65312         * modules/lstat (Depends-on): Remove xalloc.
65313         * modules/mkstemp (Depends-on): Add stat-macros.
65314         * modules/modechange (Depends-on): Remove xstrtol.
65315         Add stat-macros, xalloc.
65316         * modules/save-cwd (Depends-on): Add unistd-safer.
65317         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
65318         * modules/unistd-safer (Files): Add lib/fd-safer.c
65319         (Makefile.am): Remove lib_SOURCES.
65320
65321         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
65322         Remove fcntl-safer; unistd-safer supersedes it.
65323
65324 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65325
65326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
65327         AC_HEADER_STAT.
65328         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
65329         (gl_PREREQ_CHOWN): Remove.
65330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
65331         it.  Don't require AC_HEADER_STAT.
65332         (gl_PREREQ_LSTAT): Remove.
65333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
65334         Don't require AC_HEADER_STAT.
65335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
65336         (gl_PREREQ_RMDIR): Remove.
65337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
65338         mention stat-macros.h or AC_HEADER_STAT, since we'll make
65339         the stat-macros module a prerequisite.
65340         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
65341         * m4/filemode.m4 (gl_FILEMODE): Likewise.
65342         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
65343         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
65344         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
65345         variable names.
65346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
65347         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
65348         variable prefixes.
65349         * m4/fcntl-safer.m4: Remove.
65350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
65351         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
65352         Invoke gl_PREREQ_FD_SAFER.
65353         (gl_PREREQ_FD_SAFER): New macro.
65354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
65355         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
65356         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
65357         Remove duplicate call to AC_LIBOBJ(readutmp).
65358         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
65359
65360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
65361         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
65362
65363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * MODULES.html.sh (Misc): Add byteswap.
65366
65367 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65368
65369         * modules/getcwd (Depends-on): Add extensions.
65370         * modules/openat (Depends-on): Likewise.
65371
65372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65373
65374         * modules/byteswap: New file.
65375
65376 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65377
65378         * m4/byteswap.m4: New file.
65379
65380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
65381
65382         * lib/byteswap_.h: New file.
65383
65384 2005-04-25  Karl Berry  <karl@gnu.org>
65385
65386         * m4/gettext.m4: Update from GNU gettext 0.14.4.
65387
65388 2005-04-25  Albert Chin  <china@thewrittenword.com>
65389
65390         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
65391         Toolkit C bug.
65392
65393 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
65394
65395         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
65396         (func_ln_if_changed) Remove forcibly for no error message
65397         in case file does not exist.
65398
65399 2005-04-19  Simon Josefsson  <jas@extundo.com>
65400
65401         * gnulib-tool (Options): Make --symlink mean --symbolic.
65402
65403 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
65404
65405         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
65406
65407 2005-04-16  Simon Josefsson  <jas@extundo.com>
65408
65409         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
65410
65411 2005-04-15  Simon Josefsson  <jas@extundo.com>
65412
65413         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
65414
65415 2005-04-15  Simon Josefsson  <jas@extundo.com>
65416
65417         * gnulib-tool: Rename --symlink to --symbolic.
65418
65419 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
65420
65421         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
65422         symbolic links to files instead of copying/moving.  Add --aux-dir,
65423         specifying directory relative --dir where auxiliary build tools
65424         are placed.
65425
65426 2005-04-14  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/allocsa (License): Change to LGPL.
65429         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
65430
65431 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
65434         that "UTC +1 second" continues to work.  Problem reported
65435         by Dmitry V. Levin.
65436         (relunit_snumber): New rule.
65437         (relunit): Use it.
65438
65439 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * lib/getdate.y (universal_time_zone_table): New constant.
65442         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
65443         universal_time_zone_table.
65444         (lookup_zone): Prefer universal_time_zone_table to
65445         local_time_zone_table, so that "GMT" time stamps are allowed in
65446         London during the summer.  Problem reported by Ian Abbott.
65447
65448 2005-04-12  Jim Meyering  <jim@meyering.net>
65449
65450         * lib/human.c (humblock): Set *options even when returning due to
65451         xstrtoumax conversion failure.  Thanks to a used-uninitialized
65452         warning from gcc-4.
65453
65454 2005-04-09  Jim Meyering  <jim@meyering.net>
65455
65456         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
65457         -Wuninitialized: initialize tm0.tm_year.
65458
65459 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
65462         count, since there's no maximum.  All uses changed.
65463         Add member dsts_seen.
65464         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
65465         not being INT_MAX.
65466         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
65467         Use pc_rels_seen to decide whther a date is absolute.
65468
65469         * lib/getdate.y (number): Don't overwrite year.
65470         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
65471         check.
65472
65473 2005-04-02  Simon Josefsson  <jas@extundo.com>
65474
65475         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
65476         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
65477
65478 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
65479
65480         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
65481         where no absolute path name can be longer than PATH_MAX.
65482
65483 2005-03-27  Jim Meyering  <jim@meyering.net>
65484
65485         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
65486
65487 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
65490         "one's complement" -> "ones' complement" in comment, as per Knuth.
65491         "value of type" -> "type or expression" in comment.
65492         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
65493
65494 2005-03-26  Jim Meyering  <jim@meyering.net>
65495
65496         Comment nits.
65497         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
65498         Correct typos: s/or/of/.
65499
65500 2005-03-26  Jim Meyering  <jim@meyering.net>
65501
65502         * modules/check-include-files: Move to ../ and rename to...
65503         * check-module: ...this.
65504
65505 2005-03-25  Jim Meyering  <jim@meyering.net>
65506
65507         * modules/xvasprintf (Files): Add xalloc.h.
65508
65509 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * modules/gettext (Files): config/config.rpath ->
65512         build-aux/config.rpath
65513         * modules/iconv (Files): Likewise.
65514         Problem reported by Oskar Liljeblad.
65515
65516 2005-03-23  Jim Meyering  <jim@meyering.net>
65517
65518         * modules/check-include-files: New script to check for
65519         missing dependencies, multiple includes, etc.
65520
65521         * modules/c-strtold (Depends-on): Add xalloc.
65522         * modules/c-strtod (Depends-on): Add xalloc.
65523         * modules/hash (Depends-on): Add xalloc.
65524         (Files): Remove lib/xalloc.h.
65525
65526         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
65527         * modules/userspec (Files): Add lib/inttostr.h.
65528
65529 2005-03-23  Jim Meyering  <jim@meyering.net>
65530
65531         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
65532
65533 2005-03-22  Jim Meyering  <jim@meyering.net>
65534
65535         * modules/stat-macros: New module.
65536         * modules/canonicalize, modules/euidaccess, modules/file-type,
65537         * modules/filemode, modules/lchown, modules/makepath,
65538         * modules/rmdir, modules/stat: Depend on new stat-macros module
65539         rather than listing lib/stat-macros.h manually.
65540         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
65541
65542 2005-03-22  Jim Meyering  <jim@meyering.net>
65543
65544         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
65545
65546 2005-03-22  Bruno Haible  <bruno@clisp.org>
65547
65548         * config/srclist.txt: Replace target directory 'config' with
65549         'build-aux'.
65550         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
65551         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
65552         ../build-aux/.
65553
65554 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * modules/chdir-long (Depends-on): Add mempcpy.
65557
65558         * modules/acl, modules/backupfile, modules/c-strtod,
65559         modules/c-strtold, modules/canon-host, modules/canonicalize,
65560         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
65561         modules/exclude, modules/exitfail, modules/file-type,
65562         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
65563         modules/getdate, modules/getline, modules/getpagesize,
65564         modules/getpass, modules/getugroups, modules/group-member,
65565         modules/hard-locale, modules/hash, modules/human, modules/idcache,
65566         modules/inttostr, modules/long-options, modules/makepath,
65567         modules/md5, modules/memcasecmp, modules/memcoll,
65568         modules/modechange, modules/mountlist, modules/path-concat,
65569         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
65570         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
65571         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
65572         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
65573         modules/strftime, modules/strndup, modules/strverscmp,
65574         modules/timespec, modules/unlocked-io, modules/userspec,
65575         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
65576         modules/yesno:
65577         Remove lib_SOURCES line from Makefile.am section, as this is now
65578         done automatically by the corresponding Autoconf macro.
65579
65580 2005-03-21  Jim Meyering  <jim@meyering.net>
65581
65582         Changes imported from coreutils.
65583
65584         * lib/cycle-check.c: Don't include xalloc.h.
65585
65586         * lib/path-concat.c: Don't include assert.h.
65587         (path_concat): Remove assertion that would have triggered
65588         for ABASE starting with more than one slash.
65589         Reported by Andreas Schwab.
65590
65591         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
65592         properly when ABASE is an absolute file name.
65593         Correct the description of this function.
65594         Include <assert.h>.
65595         Add an assertion and a test driver.
65596         This fixes a bug introduced on 2004-07-02.
65597         Andreas Schwab reported the resulting failure of cp --parents:
65598         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
65599
65600 2005-03-21  Jim Meyering  <jim@meyering.net>
65601
65602         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
65603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
65604
65605 2005-03-21  Jim Meyering  <jim@meyering.net>
65606         and  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
65609         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
65610         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
65611         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
65612         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
65613         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
65614         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
65615         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
65616         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
65617         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
65618         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
65619         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
65620         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
65621         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
65622         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
65623         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
65624         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
65625         for these modules.
65626
65627 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
65630         (which shouldn't happen), generate nothing instead of returning 0
65631         immediately, so that nstrftime (NULL, ...) doesn't return 0.
65632
65633 2005-03-16  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
65636         HAVE_LONGLONG_64BIT.
65637
65638 2005-03-16  Bruno Haible  <bruno@clisp.org>
65639
65640         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
65641         HAVE_LONGLONG_64BIT.
65642
65643 2005-03-16  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
65646         HAVE_LONGLONG_64BIT.
65647
65648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65649
65650         * lib/strftime.c (my_strftime): Prepend space to format so that we can
65651         reliably distinguish strftime failure from empty output on POSIX
65652         hosts.
65653
65654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
65655
65656         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
65657         (iconv_string): Don't guess a size-zero buffer, as that might cause
65658         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
65659         result would be 'too large', where 'too large' is (heuristically)
65660         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
65661         overflow concerns.  This will prevent some unwanted malloc failures
65662         when the inputs are very large.
65663
65664 2005-03-15  Karl Berry  <karl@gnu.org>
65665
65666         * config/srclist.txt (config.rpath): from gettext.
65667         * config/config.rpath: update.
65668
65669 2005-03-15  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
65672         to 'negate'.
65673
65674         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
65675         variable.
65676
65677         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
65678         results.
65679
65680 2005-03-14  Simon Josefsson  <jas@extundo.com>
65681
65682         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
65683         <fx@gnu.org>.
65684
65685 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
65688         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
65689         intprops.h.
65690         * lib/strtol.c: Likewise.
65691
65692 2005-03-14  Jim Meyering  <jim@meyering.net>
65693
65694         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
65695         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
65696         to be nonzero so that we (and caller) can detect the difference
65697         between a valid zero-length expansion and an error return, even
65698         when the underlying strftime fails before writing anything into
65699         that location.
65700
65701 2005-03-14  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
65704         Update from GNU gettext 0.14.3.
65705
65706 2005-03-10  Jim Meyering  <jim@meyering.net>
65707
65708         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
65709
65710 2005-03-10  Jim Meyering  <jim@meyering.net>
65711
65712         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
65713         so that this module works on systems without fchdir.
65714
65715 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         Factor int-properties macros into a single file, except for
65718         glibc-related files.
65719         * lib/intprops.h: New file.
65720         * lib/getloadavg.c: Include it instead of limits.h.
65721         (INT_STRLEN_BOUND): Remove.
65722         * lib/human.c: Include intprops.h.
65723         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
65724         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
65725         302/1000.
65726         * lib/inttostr.h: Include intprops.h instead of limits.h.
65727         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
65728         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
65729         for consistency with intprops.h.
65730         (time_t_is_integer, twos_complement_arithmetic): Use them.
65731         * lib/sig2str.h: Include <signal.h>, intprops.h.
65732         (INT_STRLEN_BOUND): Remove.
65733         * lib/strftime.c (TYPE_SIGNED): Remove.
65734         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
65735         * lib/strtol.c: Adjust comments to match intprops.h.
65736         * lib/userspec.c: Include intprops.h.
65737         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
65738         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
65739         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
65740         instead of rolling our own expressions.
65741         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
65742
65743         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
65744         instead of int.
65745         (my_strftime): Do not mishandle years close to INT_MAX, by doing
65746         the right thing even if adding 1900 would overflow.  Similarly
65747         for tm_mon + 1 and tm_yday + 1.
65748         Make %Y always equivalent to %C%y, and similarly for %G and %g.
65749         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
65750         (DO_SIGNED_NUMBER): New macro.
65751         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
65752
65753 2005-03-07  Bruno Haible  <bruno@clisp.org>
65754
65755         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
65756
65757 2005-03-07  Bruno Haible  <bruno@clisp.org>
65758
65759         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
65760
65761 2005-03-04  Derek R. Price  <derek@ximbiot.com>
65762
65763         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
65764         (func_import): Only replace files via --import when they have actually
65765         changed.
65766
65767 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65768
65769         * m4/mmap-anon.m4: New file.
65770         * m4/pagealign_alloc.m4: New file.
65771
65772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65773             Bruno Haible  <bruno@clisp.org>
65774
65775         * modules/pagealign_alloc: New file.
65776         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
65777
65778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
65779             Bruno Haible  <bruno@clisp.org>
65780
65781         * lib/pagealign_alloc.h: New file.
65782         * lib/pagealign_alloc.c: New file.
65783
65784 2005-03-03  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
65787         Use an all-permissive copyright notice, recommended by RMS.
65788
65789 2005-03-02  Bruno Haible  <bruno@clisp.org>
65790
65791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
65792         of AIX, the replacement has to be done only after <string.h> is
65793         included, therefore not in config.h. stpncpy.h does the replacement,
65794         and stpncpy.c uses it.
65795
65796 2005-03-02  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
65799         stpncpy.c uses it.
65800
65801 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
65804         The workaround isn't strictly needed for POSIX conformance, and
65805         it's too much of a pain to configure and maintain.  We'll ask
65806         people to fix their kernels instead.
65807         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
65808         (NANOSLEEP_BUG_WORKAROUND): Remove.
65809         (xnanosleep): Remove the workaround.
65810
65811 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
65814         Reported by Derek Price.
65815         (Include): Add "timespec.h".
65816
65817         * modules/xnanosleep (Depends-on): Remove gethrxtime.
65818
65819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
65822         to detect nanosleep bug.
65823
65824 2005-03-01  Bruno Haible  <bruno@clisp.org>
65825
65826         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
65827
65828 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * modules/gethrxtime: New file.
65831         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
65832         (Depends-on): Add gethrxtime.
65833         (configure.ac): Add gl_XNANOSLEEP.
65834         (Makefile.am): Remove lib_SOURCES line.
65835
65836 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
65839         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
65840
65841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
65844         * lib/timespec.h (gettime): Return void, since it always
65845         succeeds now.  All uses changed.
65846         * lib/gettime.c (gettime) Likewise.
65847         [HAVE_NANOTIME]: Prefer nanotime.
65848         Assume gettimeofday succeeds, as POSIX requires.
65849         Assime time () succeeds, since other code already does.
65850         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
65851         (timespec_subtract): Remove.
65852         (NANOSLEEP_BUG_WORKAROUND): New constant.
65853         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
65854         things considerably.  Use it only on GNU/Linux hosts, since the
65855         workaround shouldn't be needed elsewhere.
65856
65857 2005-02-24  Bruno Haible  <bruno@clisp.org>
65858
65859         * modules/gettext (Files): Add m4/glibc2.m4.
65860
65861 2005-02-24  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
65864         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
65865         * m4/progtest.m4:
65866         Update from GNU gettext 0.14.2.
65867         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
65868
65869 2005-02-24  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/localcharset.c: Update from GNU gettext 0.14.2.
65872         * lib/config.charset: Update from GNU gettext 0.14.2.
65873
65874 2005-02-24  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/gettext.h: Update from GNU gettext 0.14.2.
65877
65878 2005-02-23  Simon Josefsson  <jas@extundo.com>
65879
65880         * m4/iconvme.m4: New file.
65881
65882 2005-02-23  Jim Meyering  <jim@meyering.net>
65883
65884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
65885         change.
65886         Thanks to Bruno Haible for catching it.
65887
65888 2005-02-22  Simon Josefsson  <jas@extundo.com>
65889
65890         * modules/iconvme: New file.
65891
65892         * MODULES.html.sh: Add iconvme.
65893
65894 2005-02-22  Simon Josefsson  <jas@extundo.com>
65895
65896         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
65897
65898 2005-02-22  Simon Josefsson  <jas@extundo.com>
65899
65900         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
65901
65902 2005-02-22  Jim Meyering  <jim@meyering.net>
65903
65904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
65905         s/ifndef/ifdef/.
65906
65907 2005-02-20  Neil Conway  <neilc@samurai.com>
65908
65909         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
65910         returned by OSX/Darwin if the specified buffer is not large
65911         enough for the hostname.
65912
65913 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65914
65915         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
65916         pass it to _help, otherwise the latter coredumps trying to
65917         dereference state.root_argp.
65918
65919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * modules/chdir-long (Depends-on): Add memrchr.
65922         * modules/memrchr (Files): Add lib/memrchr.h.
65923         (Include): "memrchr.h".
65924
65925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65926
65927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
65928
65929 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * lib/memrchr.h: New file.
65932         * lib/chdir-long.c: Include it.
65933         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
65934         Don't bother including stddef.h.
65935
65936 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
65939         inclusion.
65940         Include <sys/types.h>, for dev_t.
65941         (ME_DUMMY, ME_REMOTE): Move from here....
65942         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
65943         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
65944         Dmitry V. Levin.
65945         Include mountlist.h first, to test the interface.
65946
65947 2005-01-29  Bruno Haible  <bruno@clisp.org>
65948
65949         * lib/progname.c (program_name): Initialize.
65950         Needed when linking statically on MacOS X.
65951
65952 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         Sync from coreutils.
65955         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
65956         (Depends-on): Add c-strtod.
65957         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
65958
65959 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65960
65961         Sync from coreutils.
65962         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
65963
65964         Remove files that are specific to coreutils.
65965         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
65966
65967 2005-01-28  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/javacomp: New file.
65970         * MODULES.html.sh (Java): Add javacomp.
65971
65972 2005-01-28  Bruno Haible  <bruno@clisp.org>
65973
65974         * m4/javacomp.m4: New file, from GNU gettext.
65975
65976 2005-01-28  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/javacomp.sh.in: New file, from GNU gettext.
65979         * lib/javacomp.h: New file, from GNU gettext.
65980         * lib/javacomp.c: New file, from GNU gettext.
65981
65982 2005-01-26  Simon Josefsson  <jas@extundo.com>
65983
65984         * lib/gai_strerror.c: Use GPL in header.
65985
65986 2005-01-26  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/javaexec: New file.
65989         * MODULES.html.sh (Java): Add javaexec.
65990
65991 2005-01-26  Bruno Haible  <bruno@clisp.org>
65992
65993         * m4/javaexec.m4: New file, from GNU gettext.
65994
65995 2005-01-26  Bruno Haible  <bruno@clisp.org>
65996
65997         * lib/javaexec.sh.in: New file, from GNU gettext.
65998         * lib/javaexec.h: New file, from GNU gettext.
65999         * lib/javaexec.c: New file, from GNU gettext.
66000
66001 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66002
66003         * modules/lchown (Depends-on): Remove lchown.h
66004
66005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66006
66007         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66008         must be defined if the header file was not found, in order
66009         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66010
66011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66012
66013         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66014         initializers for struct pentry_state.
66015         (__argp_error): Check return value of __asprintf
66016         (__argp_failure): Translate error message
66017
66018         * lib/argp-parse.c: Removed braces around the expansion of N_()
66019
66020 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66021
66022         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66023         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66024         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66025         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66026         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66027         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66028         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66029         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66030         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66031         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66032         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66033         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66034         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66035         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66036         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66037         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66038         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66039         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66040         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66041         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66042         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66043         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66044         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66045         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66046         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66047         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66048         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66049         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66050         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66051         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66052         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66053         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66054         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66055         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66056         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66057         Use an all-permissive copyright notice, recommended by RMS.
66058
66059 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * modules/chdir-long (Depends-on): Remove mempcpy.
66062
66063 2005-01-21  Jim Meyering  <jim@meyering.net>
66064
66065         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66066         same value as for Solaris 9.
66067
66068         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66069         component length.  This included changing the parameter to be
66070         of type `char *' rather than `char const *'.
66071         * lib/chdir-long.h (chdir_long): Update prototype.
66072
66073         * lib/openat.c (fdopendir, fstatat): New functions.
66074         * lib/openat.h: Include headers required for use of DIR and struct
66075         stat.
66076         [AT_SYMLINK_NOFOLLOW]: Define.
66077         (fdopendir, fstatat): Add prototypes.
66078
66079 2005-01-21  Bruno Haible  <bruno@clisp.org>
66080
66081         * modules/classpath: New file.
66082         * MODULES.html.sh (Java): Add classpath.
66083
66084 2005-01-21  Bruno Haible  <bruno@clisp.org>
66085
66086         * lib/classpath.h: New file, from GNU gettext.
66087         * lib/classpath.c: New file, from GNU gettext.
66088
66089 2005-01-20  Simon Josefsson  <jas@extundo.com>
66090
66091         * modules/version-etc-fsf: New file.
66092
66093 2005-01-20  Simon Josefsson  <jas@extundo.com>
66094
66095         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66096         * lib/version-etc.c: Remove version_etc_copyright.
66097         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66098         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66099
66100 2005-01-20  Simon Josefsson  <jas@extundo.com>
66101
66102         * lib/base64.h (isbase64): Add.
66103
66104         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66105         using a unsigned prototype, don't inline.
66106         (base64_decode): Use it.
66107
66108 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66109
66110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66111         it.
66112
66113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * lib/save-cwd.c (save_cwd): Remove code to support the case
66116         where fchdir is missing or flaky.
66117
66118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66121
66122 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66125         AC_LIBSOURCES now does this.
66126         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66127         with new ullong_max module.
66128
66129 2005-01-19  Bruno Haible  <bruno@clisp.org>
66130
66131         * modules/sh-quote: New file.
66132         * MODULES.html.sh (Executing programs): Add sh-quote.
66133
66134 2005-01-19  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/sh-quote.h: New file, from GNU gettext.
66137         * lib/sh-quote.c: New file, from GNU gettext.
66138
66139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         Merge from coreutils.
66142         * m4/ullong_max.m4: New file.
66143         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66144         (gl_MACROS): Assume localeconv exists.
66145
66146 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         Merge changes from coreutils, as described below in several
66149         changelogs dated today.
66150
66151         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66152         (O_DIRECTORY): Remove; not needed here, since "." must be
66153         a directory.  All uses removed.
66154         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66155         universal on Suns, and we also need to test for IRIX.
66156         Revamp code to use 'if' rather than '#if'.
66157         Avoid unnecessary comparison of cwd->desc to 0.
66158
66159         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66160         for known valid error numbers rather than observed invalid ones.
66161
66162 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66163
66164         * modules/ullong_max: New file.
66165
66166         * modules/chdir-long, modules/openat: New files.
66167         * modules/save-cwd (Depends-on): Depend on chdir-long.
66168         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66169
66170 2005-01-18  Jim Meyering  <jim@meyering.net>
66171
66172         Merge from coreutils.
66173         * m4/chdir-long.m4, m4/openat.m4: New files.
66174         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66175         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66176         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66177         is sane and DOES follow symlinks.  Besides, testing 20 different
66178         systems found no broken chown implementations.
66179         Prompted by a change in rsync's copy of this macro.
66180         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66181
66182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66183
66184         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66185         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66186         NULL-means-set-to-current-time semantics.
66187         Remove temporary file immediately, rather than waiting
66188         for configure's at-exit trap code to do it.
66189
66190 2005-01-18  Jim Meyering  <jim@meyering.net>
66191
66192         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66193
66194         * lib/utimens.c (futimens): Account for the fact that futimes
66195         can also fail with errno == ENOSYS or errno == ENOENT.
66196         Patch from Dmitry V. Levin.
66197
66198         Change the name of the robust chdir function from chdir to chdir_long.
66199         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66200         (restore_cwd): Use chdir_long, not chdir.
66201         * lib/chdir-long.c: Renamed from chdir.c.
66202         * lib/chdir-long.h: Renamed from chdir.h.
66203         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66204         Hurd.
66205
66206 2005-01-18  Bruno Haible  <bruno@clisp.org>
66207
66208         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66209         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66210         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66211         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66212         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66213         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66214         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66215         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66216         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66217         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66218         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66219         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66220         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66221         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66222         Use an all-permissive copyright notice, recommended by RMS.
66223
66224 2005-01-18  Bob Proulx  <bob@proulx.com>
66225
66226         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66227         simplify offsetof() macro construct to avoid compile failure with
66228         native HP-UX 11.0 ANSI C compiler.
66229
66230 2005-01-17  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66233         redundant because stpncpy.m4 takes care of it.
66234
66235 2005-01-17  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66238
66239 2005-01-17  Bruno Haible  <bruno@clisp.org>
66240
66241         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
66242         used.
66243
66244 2005-01-17  Bruno Haible  <bruno@clisp.org>
66245
66246         * lib/fwriteerror.h (fwriteerror): Change specification to include
66247         fclose.
66248         * lib/fwriteerror.c: Include <stdbool.h>.
66249         (fwriteerror): At the end, close the file stream. Record whether
66250         stdout was already closed.
66251
66252 2005-01-17  Bruno Haible  <bruno@clisp.org>
66253
66254         * lib/execute.c (environ): Declare if needed.
66255         * lib/pipe.c (environ): Likewise.
66256         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
66257
66258 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66259
66260         * modules/argp: Depend on vsnprintf
66261
66262 2005-01-10  Jim Meyering  <jim@meyering.net>
66263
66264         * modules/closeout (Depends-on): Add atexit.
66265
66266 2005-01-06  Bruno Haible  <bruno@clisp.org>
66267
66268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
66269
66270 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66271
66272         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
66273         definitions to be after all include files, to avoid collisions.
66274         Problem reported by Bob Proulx.
66275
66276 2005-01-04  Jim Meyering  <jim@meyering.net>
66277
66278         Changes imported from coreutils.
66279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
66280         as the mkstemp template, use a temporary directory and an
66281         8.3-friendly template to avoid trouble on systems like DJGPP.
66282         Reported by Juan M. Guerrero via Stepan Kasal.
66283         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
66284         close. Remove the temporary directory right away, rather than waiting
66285         for configure's at-exit trap code to do it.
66286         Suggestion from Stepan Kasal.
66287
66288 2005-01-01  Simon Josefsson  <jas@extundo.com>
66289
66290         * gnulib-tool: Print #include directives when --import'ing.
66291
66292 2004-12-28  Simon Josefsson  <jas@extundo.com>
66293
66294         * tests/test-base64.c: Include required header files.  Remove
66295         unused variables.
66296
66297 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * modules/error (Depends-on): Remove gettext.
66300
66301 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
66304         not needed.  This removes a dependency on the gettext module.
66305         [defined _LIBC]: Do not include <libintl.h>; not needed.
66306
66307 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
66310         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
66311
66312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
66315         HAVE_DECL_STRTOLD.
66316
66317 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * modules/getdate (Depends-on): Remove alloca-opt.
66320
66321 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
66324
66325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         * lib/argp-parse.c: Include <stddef.h>.
66328         (alignof, alignto): New macros.
66329         (parser_init): Don't assume that void * is aligned sufficiently
66330         for struct option.
66331
66332         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
66333         need to extend the stack.
66334         (YYINITDEPTH): New macro, so that the initial stack isn't overly
66335         large.
66336
66337 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66338
66339         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
66340
66341 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
66344         (2004-10-24) change.  Apparently this was a false alarm.
66345
66346         * modules/getdate: Depend on alloca-opt, not alloca.
66347
66348 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
66351         Remove now-obsolete comment about AIX.
66352         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
66353         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
66354         (YYMAXDEPTH): New macro.
66355
66356 2004-12-18  Simon Josefsson  <jas@extundo.com>
66357
66358         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
66359
66360 2004-12-18  Bruno Haible  <bruno@clisp.org>
66361
66362         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
66363
66364 2004-12-18  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/fatal-signal.c (fatal_signals): Make non-const.
66367         (init_fatal_signals): New function.
66368         (uninstall_handlers, install_handlers): Ignore signals that were set to
66369         SIG_IGN.
66370         (at_fatal_signal): Call init_fatal_signals.
66371         (init_fatal_signal_set): Likewise. Ignore signals that were set to
66372         SIG_IGN.
66373         Reported by Paul Eggert.
66374
66375 2004-12-18  Bruno Haible  <bruno@clisp.org>
66376
66377         * doc/alloca.texi: New file.
66378         * doc/alloca-opt.texi: New file.
66379
66380 2004-12-17  Jim Meyering  <jim@meyering.net>
66381
66382         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
66383         Otherwise, install-sh could exit with improper exit status when
66384         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
66385
66386 2004-12-16  Simon Josefsson  <jas@extundo.com>
66387
66388         * tests/test-base64.c: Add license.
66389
66390 2004-12-15  Stepan Kasal  <address@hidden>
66391
66392         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
66393
66394 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
66395
66396         * modules/getcwd (Files): Add m4/d-ino.m4.
66397         Suggested by Mark D. Baushke.
66398
66399 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         * lib/getdate.y (textint): New member "negative".
66402         (time_zone_hhmm): New function.
66403         Expect 14 shift-reduce conflicts, not 13.
66404         (o_colon_minutes): New rule.
66405         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
66406         (yylex): Set the "negative" member of signed numbers.
66407
66408 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         * doc/getdate.texi (Time of day items, Time zone items):
66411         Describe new formats +00:00, UTC+00:00.
66412
66413 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
66416         spurious "-l"s.  Problem reported by Stepan Kasal.
66417
66418 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
66421         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
66422
66423 2004-12-04  Simon Josefsson  <jas@extundo.com>
66424
66425         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
66426         Vandoorselaere <yoann@prelude-ids.org>.
66427
66428 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66429
66430         Changes imported from coreutils.
66431         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
66432         exist.
66433         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
66434
66435 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         Changes imported from coreutils.
66438         * lib/hard-locale.c: Assume <locale.h> exists.
66439         Include "strdup.h".
66440         (GLIBC_VERSION): New macro.
66441         (hard_locale): Assume setlocale exists.
66442         Rewrite to avoid #ifdef.
66443         Use strdup rather than malloc + strcpy.
66444         * lib/human.c: Assume <locale.h> exists.
66445         (human_readable): Assume localeconv exists.
66446
66447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * modules/hard-locale (Depends-on): Add strdup.
66450
66451 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66452
66453         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
66454         convert T2, not T.  (Imported from libc.)
66455
66456 2004-11-30  Simon Josefsson  <jas@extundo.com>
66457
66458         * modules/restrict (License): Change to LGPL.
66459
66460 2004-11-30  Simon Josefsson  <jas@extundo.com>
66461
66462         * m4/restrict.m4: Add copyright and copying conditions.
66463
66464 2004-11-30  Simon Josefsson  <jas@extundo.com>
66465
66466         * m4/base64.m4: New file.
66467
66468 2004-11-30  Simon Josefsson  <jas@extundo.com>
66469
66470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
66471         base64.
66472
66473         * tests/test-base64.c: New file.
66474
66475         * modules/base64: New file.
66476
66477 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
66480         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
66481
66482         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
66483
66484 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
66487         (__getcwd.c): Don't restore errno; glibc doesn't.
66488         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
66489         first, falling back to our code only if its results look suspicious.
66490         Ensure that the resulting buffer is only as large as necessary.
66491
66492         * lib/readutmp.c: Include readutmp.h first.
66493         Include <errno.h>, since readutmp.h no longer does that.
66494         * lib/readutmp.h: Don't include <errno.h>,
66495         <sys/param.h>, <time.h>; not needed to establish interface.
66496         (errno): Remove decl.
66497         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
66498         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
66499         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
66500
66501 2004-11-28  Simon Josefsson  <jas@extundo.com>
66502
66503         * lib/base64.h, base64.c: New file.
66504
66505 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
66508
66509 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
66512         (Depends-on): Remove pathmax, same.  Add mempcpy.
66513         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
66514         (Makefile.am): Append getcwd.h to lib_SOURCES.
66515         (Include): Add getcwd.h.
66516         (Maintainer): Change from Jim Meyering to "all, glibc",
66517         since getdate now uses intended-for-glibc code.
66518         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
66519         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
66520
66521 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
66524         HP's ANSI C compiler.
66525         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
66526         Declaring int functions causes warnings on some modern systems and
66527         shouldn't be needed to compile on ancient ones.
66528         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
66529         defined.
66530
66531         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
66532         with the following changes.
66533         (__set_errno): Parenthesize properly.
66534         Include <stdbool.h>.
66535         (MIN, MAX, MATCHING_INO): New macros.
66536         (__getcwd): Define with prototype, not K&R form.
66537         Use heuristics to allocate default buffer on stack if possible.
66538         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
66539         behavior, and to avoid the PATH_MAX limit when computing
66540         ../../../../...
66541         Use MATCHING_INO to compare inode number to file.
66542         Check for arithmetic overflow in size calculations.
66543         Fix bug in reallocation of dot array that caused getcwd to fail
66544         on directories nested deeper than 75.
66545         Be more careful about saving errno on error.
66546         Do not use realloc; use only free+malloc, as this is a bit
66547         more flexible and avoids a needless copy operation.
66548         Do not inspect st_dev and st_ino for symbolic links; POSIX
66549         doesn't specify the latter.
66550         Check for closedir errors.
66551         Avoid needless casts.
66552         Use "#ifdef weak_alias" around weak_alias, to be like other
66553         glibc code.
66554         The following changes to getcwd.c have effect only when used in
66555         gnulib; they have no effect inside glibc proper.
66556         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
66557         as alloca isn't used.
66558         (alloca, __alloca): Likewise.
66559         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
66560         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66561         unconditionally, as gnulib assumes C89 or better.
66562         Do not include <sys/param.h>.
66563         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
66564         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
66565         better.
66566         (NULL) [!defined NULL]: Remove; we assume C89 or better.
66567         Include <dirent.h> in a way that is compatible with modern Autoconf.
66568         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
66569         New macros, if not already defined.
66570         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
66571         Use "_LIBC", not "defined _LIBC", for consistency.
66572         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
66573         a mempcpy module.
66574         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
66575         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
66576         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
66577         credit only to Jim Meyering and adjust the copyright dates.
66578         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
66579         <stdlib.h>, <unistd.h>, "pathmax.h".
66580         Instead, include "xgetcwd.h" (first) and "getcwd.h".
66581         (INITIAL_BUFFER_SIZE): Remove.
66582         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
66583
66584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66585
66586         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
66587         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
66588         Use the _ONCE methods, for efficiency.
66589         Check for fcntl.h.  In test program, include <errno.h>
66590         and <fcntl.h> if available.  Remove old K&R cruft from
66591         test program.  Check for common errors in GNU/Linux,
66592         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
66593         don't do AC_LIBOBJ, as that's getcwd.m4's job.
66594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
66595         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
66596         name accordingly.
66597         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
66598         accommodate new getcwd.c.
66599         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
66600         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
66601         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
66602         that's all we need now.
66603
66604 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66605
66606         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
66607         argp-parse.c depends on getopt internals, that means we should
66608         always use our getopt, to be on the safe side.
66609         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
66610         order not to spoil the result of an eventual previous invocation
66611         of gl_GETOPT_SUBSTITUTE.
66612
66613 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66614
66615         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
66616         redefinition warnings. To avoid them, include the defines
66617         in `#if !defined __need_getopt ... #endif'. The only place
66618         where __getopt_argv_const is used is in definitions
66619         of getopt_long and getopt_long_only below, which are as well
66620         protected by `#ifndef __need_getopt'.
66621         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
66622         __need_getopt after including <stdio.h> and <unistd.h> These
66623         headers might have defined it.
66624
66625 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
66628
66629 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
66632         (futimens): New function, which uses futimes if available.
66633         (futimens, utimens): Support timespec==NULL, with same semantics
66634         as utime and utimens.
66635         * lib/utimens.h (futimens): New decl.
66636
66637 2004-11-23  Jim Meyering  <jim@meyering.net>
66638
66639         * lib/getopt_.h: Remove trailing blanks.
66640
66641 2004-11-23  Jim Meyering  <jim@meyering.net>
66642
66643         * lib/__fpending.c: Add comment.
66644
66645 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
66646
66647         * modules/canonicalize (Depends-on): Add xreadlink.
66648         Problem reported by James Youngman.
66649
66650 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
66653         New macros.
66654         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
66655         optopt): Use them instead of invoking ## directly; otherwise, the
66656         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
66657
66658 2004-11-19  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/strtok_r.c: Move comments from here...
66661         * lib/strtok_r.h: ... to here.
66662
66663 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
66666         implementations that mishandle size_t overflow.
66667
66668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
66671         might fail.  Problem reported by Yoann Vandoorselaere.
66672         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
66673         implementations that mishandle size_t overflow.
66674
66675 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * modules/canon-host (Depends-on): Add strdup.
66678
66679 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66680
66681         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
66682
66683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66684
66685         * lib/canon-host.c: Include "strdup.h".
66686         (canon_host): Use getaddrinfo if available, so that IPv6 works.
66687         Use strdup instead of malloc/strcpy to duplicate strings.
66688
66689         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
66690         (human_space_before_unit): New constant.
66691         * lib/human.c (human_readable): Support it.
66692
66693         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
66694         (xgetcwd): Set errno correctly when failing.
66695         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
66696         the failure is actually due to a PATH_MAX problem.
66697
66698         Further getopt changes to make it more likely that glibc will
66699         buy the changes back.
66700         * lib/getopt.c (POSIXLY_CORRECT): New constant.
66701         (getopt): Use it, so to preserve glibc semantic
66702         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
66703         when compiling for libc.
66704         * lib/getopt_.h (__getopt_argv_const): Bring it back.
66705         (getopt_long, getopt_long_only): Use it.
66706
66707         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66708         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
66709         (getopt): Argv is now char * const *, as per standard.
66710         (_getopt_internal_r, _getopt_internal): Argv is now char **,
66711         not char *__getopt_argv_const *.
66712         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66713         _getopt_long_only_r): Likewise.
66714         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
66715         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66716         _getopt_long_r, _getopt_long_only_r): Likewise.
66717         * lib/getopt_.h (__getopt_argv_const): Remove.
66718         (getopt): Argv is now char * const *, as per standard.
66719
66720         * lib/getdate.y (tORDINAL): New token.
66721         (day, relunit): Allow it for relative times.
66722         (relative_time_table): Use tORDINAL for ordinals.
66723
66724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66725
66726         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
66727         Document that "second" isn't allowed as an ordinal number.
66728
66729 2004-11-16  Jim Meyering  <jim@meyering.net>
66730
66731         * modules/closeout (Depends-on): Add fpending.
66732
66733 2004-11-15  Jim Meyering  <jim@meyering.net>
66734
66735         * lib/closeout.c: Include "__fpending.h" once again.
66736         Include <stdbool.h>.
66737         (close_stdout): Don't fail just because stdout was closed initially,
66738         since some programs don't write to stdout in the normal course of
66739         operation (other than --version and --help), and we don't want this
66740         function to make e.g. `touch file >&-' fail.
66741         But do fail if it was closed and someone has tried to write to it.
66742         E.g., `printf foo >&-' must fail.
66743
66744 2004-11-13  Jim Meyering  <jim@meyering.net>
66745
66746         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
66747
66748 2004-11-12  Simon Josefsson  <jas@extundo.com>
66749
66750         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
66751         small doc fix is still pending.
66752
66753 2004-11-11  Simon Josefsson  <jas@extundo.com>
66754
66755         * modules/strtok_r: New file.
66756
66757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66758         strtok_r.
66759
66760 2004-11-11  Simon Josefsson  <jas@extundo.com>
66761
66762         * m4/strtok_r.m4: New file.
66763
66764         * m4/getopt.m4: Replace opterr.
66765
66766 2004-11-11  Simon Josefsson  <jas@extundo.com>
66767
66768         * lib/strtok_r.h, strtok_r.c: New file.
66769
66770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
66773         of replacing opterr, getopt, etc.  This should handle the
66774         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
66775
66776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
66779         we can stop lying to compilers about the constness of argv when we
66780         are compiled outside glibc.
66781         (getopt, getopt_long, getopt_long_only): Use it.
66782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
66783         _getopt_internal, getopt): Likewise.
66784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
66785         _getopt_long_only_r): Likewise.
66786         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
66787         _getopt_long_r, _getopt_long_only_r): Likewise.
66788
66789         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
66790         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
66791         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
66792         the other external symbols.
66793         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
66794         declaration, since the above renaming now works around collisions.
66795
66796 2004-11-11  Jim Meyering  <jim@meyering.net>
66797
66798         * lib/linebreak.c: Remove trailing blanks.
66799         * lib/alloca_.h: Likewise.
66800         * lib/acosl.c: Likewise.
66801         * lib/euidaccess.c: Likewise.
66802         * lib/allocsa.h: Likewise.
66803
66804 2004-11-10  Simon Josefsson  <jas@extundo.com>
66805
66806         * m4/getaddrinfo.m4: New file.
66807
66808 2004-11-10  Simon Josefsson  <jas@extundo.com>
66809
66810         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
66811
66812 2004-11-10  Simon Josefsson  <jas@extundo.com>
66813
66814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66815         getaddrinfo.
66816
66817         * modules/getaddrinfo: New file.
66818
66819 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
66822
66823 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * lib/mktime.c (SHR): New macro, which is a portable
66826         substitute for >> that should work even on Crays.
66827         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
66828         Problem reported by Mark D. Baushke in
66829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
66830         * lib/getdate.y (SHR): Likewise.
66831         (tm_diff): Use it.
66832         * lib/strftime.c (SHR): Likewise.
66833         (tm_diff): Use it.
66834         * lib/quotearg.c (struct quoting_options): Use unsigned int for
66835         quote_these_too, so that right shifts are well defined.  All uses
66836         changed.
66837
66838 2004-11-10  Jim Meyering  <jim@meyering.net>
66839
66840         Ensure that no close failure goes unreported.
66841         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
66842         return early when it seems there's nothing to flush.
66843         Don't include __fpending.h.
66844
66845 2004-11-10  Jim Meyering  <jim@meyering.net>
66846
66847         * modules/closeout (Depends-on): Remove fpending.
66848
66849 2004-11-10  Jim Meyering  <jim@meyering.net>
66850
66851         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
66852
66853 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
66856         gl_FUNC_STRFTIME.
66857         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
66858         and AC_REQUIRE when possible, to avoid duplicate checks.
66859         Check for <wchar.h>.
66860
66861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
66864
66865 2004-11-09  Bruno Haible  <bruno@clisp.org>
66866
66867         * m4/sockpfaf.m4: New file.
66868
66869 2004-11-05  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
66872         Reported by Mark D. Baushke <mdb@cvshome.org>.
66873
66874 2004-11-04  Bruno Haible  <bruno@clisp.org>
66875
66876         2004-09-11  Bruno Haible  <bruno@clisp.org>
66877                 * allocsa.valgrind: New file.
66878         2004-02-06  Bruno Haible  <bruno@clisp.org>
66879                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
66880                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
66881                 Reported by Christopher Seip <chris.seip@hp.com>.
66882
66883 2004-11-04  Bruno Haible  <bruno@clisp.org>
66884
66885         * modules/allocsa (Files): Add lib/allocsa.valgrind.
66886         (Makefile.am): Distribute it.
66887
66888 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
66891         with errno == ERANGE if the buffer is too small.
66892         Problem reported by Mark D. Baushke.
66893
66894 2004-11-03  Albert Chin  <china@thewrittenword.com>
66895             Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
66898         equivalent, substitute $ac_type for equivalent type rather than
66899         blindly using uint32_t *always* which won't work if uint32_t is not
66900         available.  Define _UINT32_T to work around typedef of uint32_t if
66901         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
66902         2.5.1.
66903
66904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * m4/jm-macros.m4: Sync from coreutils.
66907         (gl_MACROS): Check for mbrlen, for pathchk.
66908         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
66909
66910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66911
66912         * lib/xreadlink.c (MAXSIZE): New macro.
66913         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
66914         size does not exceed MAXSIZE.  Avoid cast.
66915         As suggested by Mark D. Baushke in
66916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
66917         if readlink fails with buffer size just under MAXSIZE, try again
66918         with MAXSIZE.
66919
66920 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
66923
66924 2004-11-02  Derek R. Price  <derek@ximbiot.com>
66925         and  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
66928         (get_date): Overparenthesize to avoid GCC warning.
66929
66930 2004-11-02  Bruno Haible  <bruno@clisp.org>
66931
66932         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
66933         returns void.
66934
66935 2004-11-02  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
66938         function returns void.
66939
66940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
66943         fflush_unlocked, flockfile, funlockfile, funlockfile,
66944         fputs_unlocked, putc_unlocked.
66945
66946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
66947
66948         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66949         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
66950         already declared.
66951
66952 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * modules/getdate (Files): Add doc/getdate.texi.
66955         (Depends-on): Add setenv, xalloc.
66956
66957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * lib/getdate.y: Add support for TZ="foo" within a date string.
66960         Fix some bugs near time_t boundaries.  Reject dates with
66961         out-of-range components, e.g., "Sept 31".
66962         Include <stdlib.h>, "setenv.h", "xalloc.h".
66963         (ISDIGIT_LOCALE): Remove; unused.
66964         Note that the TZ and time functions used here are not reentrant.
66965         (mktime_ok, get_tz): New functions.
66966         (TZBUFSIZE): New constant.
66967         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
66968         This requires that we sometimes generate our own TZ="XXX..." setting.
66969
66970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * doc/getdate.texi: New file, from coreutils with modifications for
66973         the new TZ parsing.
66974
66975 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66976
66977         * lib/mktime.c (not_equal_tm): Remove redundant check.
66978
66979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * modules/regex (lib_SOURCES): Add regex.c.
66982         Reported by James Youngman in
66983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66984
66985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/getdate.y: Use Bison 1.875 features, and some minor
66988         code cleanups.  This change does not affect semantics.
66989         Don't include <stdlib.h>; no longer needed.
66990         Don't include unlocked-io.h; only the "#if TEST" code uses
66991         stdio, and performance isn't crucial there.
66992         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66993         Bison 1.875 features as described below.
66994         All uses of "PC." replaced by "pc->".
66995         (YYSTYPE): Add a forward declaration.
66996         (yylex, yyerror): Use full prototypes in forward decls.
66997         Use "%pure-parser" rather than obsolescent "%pure_parser".
66998         Use %parse-param and %lex-param instead of obsolescent
66999         YYPARSE_PARAM and YYLEX_PARAM.
67000         (meridian_table, month_and_day_table, time_units_table,
67001         relative_time_table, time_zone_table, military_table,
67002         lookup_zone, lookup_word, get_date):
67003         Use NULL instead of 0 where appropriate.
67004         (to_hour): Avoid abort (), to avoid a dependency on
67005         stdlib.h.
67006         (yyerror, yylex): Now accepts parser_control * arg.
67007         (main) [TEST]: Use '\0' rather than 0 for char.
67008
67009 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67010
67011         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67012
67013 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67016         It's now the caller's responsibility to handle the case where
67017         !HAVE_GETPAGESIZE && !defined getpagesize.
67018
67019         * lib/mktime.c (leapyear): Arg is long int, not int.
67020
67021 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67024
67025 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67028         missing.  Problem reported by James Youngman.
67029
67030 2004-10-16  Simon Josefsson  <jas@extundo.com>
67031
67032         * gnulib-tool: Fix comments.  Fix parse problem.
67033         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67034
67035 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67038         implementation of getopt_long.  Problem reported by Alexander Taler in:
67039         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67040
67041 2004-10-15  Bruno Haible  <bruno@clisp.org>
67042
67043         * gnulib-tool: Untabify. Initialize supplied_libname.
67044         (func_usage): More homogenous output.
67045         (func_modules_transitive_closure, func_modules_to_filelist,
67046         func_emit_lib_Makefile_am): New functions.
67047         (func_import): New function, extracted from big case statement. Use
67048         func_get_license, func_modules_transitive_closure,
67049         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67050         opt_lgpl. Don't use test -a, as it's not portable.
67051         (func_create_testdir): Use func_modules_transitive_closure,
67052         func_modules_to_filelist, func_emit_lib_Makefile_am.
67053
67054 2004-10-15  Bruno Haible  <bruno@clisp.org>
67055
67056         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67057
67058 2004-10-15  Bruno Haible  <bruno@clisp.org>
67059
67060         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67061         the portions belonging to each module.
67062         Suggested by Derek Robert Price <derek@ximbiot.com>.
67063
67064 2004-10-12  Simon Josefsson  <jas@extundo.com>
67065
67066         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67067         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67068         to real functions.
67069
67070 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67071
67072         * modules/vsnprintf: New file.
67073
67074 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67075
67076         * m4/vsnprintf.m4: New file.
67077
67078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67079
67080         * lib/vsnprintf.h: New file.
67081         * lib/vsnprintf.c: New file.
67082
67083 2004-10-11  Bruno Haible  <bruno@clisp.org>
67084
67085         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67086         vsnprintf.
67087
67088 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67091
67092 2004-10-07  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67095         fits into the provided buffer.
67096
67097 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         * lib/diacrit.c, diacrit.h: Add GPL notice.
67100
67101         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67102         notice.
67103         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67104         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67105         This avoids a potential constant-folding bug.
67106
67107 2004-10-05  Bruno Haible  <bruno@clisp.org>
67108
67109         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67110         for the declaration of strsep.
67111
67112 2004-10-05  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67115
67116 2004-10-04  Simon Josefsson  <jas@extundo.com>
67117
67118         * modules/memmem: New file.
67119         * tests/test-memmem.c: New file.
67120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67121
67122 2004-10-04  Simon Josefsson  <jas@extundo.com>
67123
67124         * m4/memmem.m4: New file.
67125
67126 2004-10-04  Simon Josefsson  <jas@extundo.com>
67127
67128         * lib/memmem.h: New file.
67129         * lib/memmem.c: New file, taken from glibc.
67130
67131 2004-10-04  Simon Josefsson  <jas@extundo.com>
67132
67133         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67134         '#ifdef USE_UNLOCKED_IO'.
67135
67136 2004-10-04  Simon Josefsson  <jas@extundo.com>
67137
67138         * config/srclist.txt: Add memmem from glibc.
67139
67140 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67143
67144         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67145         modules/exclude, modules/getdate, modules/getline,
67146         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67147         modules/getusershell, modules/linebuffer, modules/md5,
67148         modules/mountlist, modules/posixtm, modules/readtokens,
67149         modules/readutmp, modules/regex, modules/sha1,
67150         modules/version-etc, modules/yesno:
67151         Remove dependency on unlocked-io.
67152
67153 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67154
67155         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67156
67157         * m4/unlocked-io.m4: Add copyright notice.
67158         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67159
67160 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67163         * lib/xmalloc.c (xmemdup): Likewise.
67164         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67165         XFREE): Remove these long-obsolescent macros.
67166         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67167         * lib/xstrdup.c: Remove.
67168
67169         * lib/regex.c (re_comp): Cast gettext return value to char *,
67170         Problem reported by Martin Neitzel via Mark D. Baushke.
67171
67172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67175         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67176         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67177         regex.c, sha1.c, version-etc.c, yesno.c:
67178         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67179         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67180         the includer's responsibility.
67181
67182         Sync from coreutils.
67183
67184         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67185         points to the start of a string, as the C Standard says the
67186         resulting behavior is undefined.
67187
67188         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67189         simple -> simple_backups, numbered_existing ->
67190         numbered_existing_backups, numbered -> numbered_backups
67191         to avoid shadowing problems.  All uses changed.
67192         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67193         * lib/backupfile.c (check_extension, numbered_backup):
67194         Rename locals to avoid shadowing 'basename'.
67195         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67196         once.
67197
67198         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67199         * lib/.cvsignore: Add getopt.h.
67200
67201 2004-10-04  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/README: New file.
67204         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67205         not a module.
67206
67207 2004-10-02  Jim Meyering  <jim@meyering.net>
67208
67209         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67210
67211 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67212
67213         * modules/strsep: New file.
67214
67215 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67216
67217         * m4/strsep.m4: New file.
67218
67219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67220
67221         * lib/strsep.h: New file.
67222         * lib/strsep.c: New file.
67223
67224 2004-10-01  Simon Josefsson  <jas@extundo.com>
67225
67226         * lib/snprintf.c (snprintf): Handle size==0.
67227
67228 2004-10-01  Simon Josefsson  <jas@extundo.com>
67229             Bruno Haible  <bruno@clisp.org>
67230
67231         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67232         (snprintf): Declare 'args'.
67233
67234 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * lib/snprintf.c: Remove comments as to why each header is needed.
67237
67238 2004-10-01  Bruno Haible  <bruno@clisp.org>
67239
67240         * MODULES.html.sh: Add strsep.
67241
67242 2004-09-30  Simon Josefsson  <jas@extundo.com>
67243
67244         * modules/snprintf: New file.
67245
67246 2004-09-30  Simon Josefsson  <jas@extundo.com>
67247
67248         * m4/snprintf.m4: New file.
67249
67250 2004-09-30  Simon Josefsson  <jas@extundo.com>
67251
67252         * lib/snprintf.h, lib/snprintf.c: New files.
67253
67254 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67255
67256         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
67257         (hol_entry_help): Never translate an empty string.
67258         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
67259         * lib/argp.h (OPTION_NO_TRANS): New option.
67260
67261 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * modules/argp (Maintainer): Replace Simon Josefsson
67264         by Sergey Poznyakoff.
67265
67266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
67269         changes merged back into glibc.
67270
67271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
67272
67273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
67274
67275 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67276
67277         * lib/xvasprintf.c: Include xalloc.h.
67278         (xvasprintf): Use xalloc_die, not xmalloc_die.
67279
67280 2004-09-29  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/alloca-opt: New file, derived from modules/alloca.
67283         * modules/allocsa: Depend on alloca-opt instead of alloca.
67284         * modules/setenv: Likewise.
67285         * modules/vasnprintf: Likewise.
67286         * MODULES.html.sh: Add alloca-opt.
67287
67288 2004-09-28  Simon Josefsson  <jas@extundo.com>
67289
67290         * gnulib-tool: New parameter --lgpl, to asseert that modules are
67291         LGPL, and to replace license template from GPL to LGPL.
67292
67293 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * modules/dummy: Change license to LGPL.
67296
67297 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
67298
67299         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
67300
67301 2004-09-24  Simon Josefsson  <jas@extundo.com>
67302
67303         * modules/minmax (License): Change from GPL to LGPL.
67304
67305 2004-09-23  Simon Josefsson  <jas@extundo.com>
67306
67307         * gnulib-tool (--import): Typo.
67308
67309 2004-09-23  Simon Josefsson  <jas@extundo.com>
67310
67311         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
67312
67313 2004-09-22  Bruno Haible  <bruno@clisp.org>
67314
67315         * modules/*: Add 'License' field.
67316         * gnulib-tool: Accept --extract-license option.
67317         (func_get_license): New function.
67318
67319 2004-09-21  Bruno Haible  <bruno@clisp.org>
67320
67321         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
67322         Reported by Simon Josefsson.
67323
67324 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67325
67326         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
67327         gl_AC_TYPE_LONG_LONG.
67328
67329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
67332
67333 2004-09-18  Simon Josefsson  <jas@extundo.com>
67334         and  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
67337         calls with autoreconf.  Define GL_LIB.
67338
67339 2004-09-14  Karl Berry  <karl@gnu.org>
67340
67341         * config/srclist.txt: unsync setenv.c, sigh.
67342
67343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
67346         Problem reported by Bruno Haible in:
67347         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
67348
67349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * config/srclist.txt: Comment out argp-pvh.c.
67352
67353 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
67356         in case some system header has #define'd it.  Problem reported by
67357         Soeren D. Schulze in
67358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
67359
67360 2004-09-09  Karl Berry  <karl@gnu.org>
67361
67362         * regex.[ch]: delete from the root.  These were supposed to be
67363                 synced with emacs cvs, but this has not happened for about
67364                 a year, and anyway nothing else uses emacs regex.[ch].
67365                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
67366                 lib/regex[.ch] is untouched.
67367
67368 2004-09-09  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
67371
67372 2004-09-09  Bruno Haible  <bruno@clisp.org>
67373
67374         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
67375         modifications.
67376         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
67377
67378 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67379
67380         * modules/xvasprintf: New file.
67381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
67382
67383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
67384
67385         * lib/xvasprintf.h: New file.
67386         * lib/xvasprintf.c: New file.
67387         * lib/xasprintf.c: New file.
67388
67389 2004-09-08  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
67392
67393 2004-09-08  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
67396         length is > INT_MAX.
67397         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
67398         more.
67399
67400 2004-09-08  Bruno Haible  <bruno@clisp.org>
67401
67402         * lib/stdint_.h: New file, taken from GNU clisp.
67403
67404 2004-09-08  Bruno Haible  <bruno@clisp.org>
67405             Oskar Liljeblad  <oskar@osk.mine.nu>
67406
67407         * modules/stdint: New file.
67408         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
67409
67410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         Import from coreutils.
67413         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
67414         strings on unbounded length.  alloca's performance benefits aren't
67415         that important here.
67416         (V_STRDUP): Remove.
67417         (parse_with_separator): New function, with most of the internals
67418         of the old parse_user_spec.  Allow user to omit both user and group,
67419         for compatibility with FreeBSD.
67420         Clone only the user name, not the entire spec.
67421         Do not set *uid, *gid unless entirely successful.
67422         Avoid memory leak in some failing cases.
67423         Fix regression for USER.GROUP reported by Dmitry V. Levin in
67424         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
67425         (parse_user_spec): Rewrite to use parse_with_separator.
67426
67427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * modules/userspec: Don't depend on alloca.
67430
67431 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67432
67433         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
67434
67435 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
67438         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
67439         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
67440
67441 2004-08-16  Simon Josefsson  <jas@extundo.com>
67442
67443         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
67444         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
67445         Add --dry-run for --import.
67446         Let user provided command line parameters override configure.ac
67447         settings.
67448
67449 2004-08-12  Simon Josefsson  <jas@extundo.com>
67450
67451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
67452         as discussed with Paul Eggert in threads rooted at
67453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
67454         and
67455         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
67456         Before, the test was empty, and relied on ELIDE_CODE in source
67457         code.)
67458         (gl_PREREQ_GETOPT): New macro.
67459         (gl_GETOPT): Use them.
67460
67461 2004-08-12  Simon Josefsson  <jas@extundo.com>
67462
67463         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
67464         * lib/getopt_.h: Renamed from getopt.h.
67465
67466 2004-08-12  Simon Josefsson  <jas@extundo.com>
67467
67468         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
67469         Change default library name from libfoo to libgnu.
67470         Now, if you have a configure.ac that says:
67471                 gl_SOURCE_BASE(gl)
67472                 gl_M4_BASE(gl/m4)
67473                 gl_MODULES(error getopt etcetera)
67474                 gl_INIT
67475         you can import all you need by running:
67476                 ../gnulib/gnulib-tool --import
67477
67478         * modules/getopt (Files): Rename getopt.h to getopt_.h.
67479         (Makefile.am): Rewrite, use logic from argz.
67480         (Include): Use <getopt.h> instead of "getopt.h".
67481
67482 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67483
67484         * modules/argp (Files): Add m4/unlocked-io.m4.
67485         (Depends-on): Add extensions.
67486
67487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
67490         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
67491         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
67492         Check for program_invocation_name, program_invocation_short_name,
67493         flockfile, funlockfile, features.h, _getopt_long_only_r.
67494
67495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
67498         its complicated substitute.
67499         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
67500         and program_invocation_name.
67501         (__argp_basename) [!_LIBC]: Remove; the only use was
67502         replaced by its body.
67503         (__argp_short_program_name): Change condition from
67504         !defined __argp_short_program_name to
67505         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
67506         to match argp-namefrob.h.
67507         (__argp_failure): Don't assume strerror_r returns char *.
67508         * lib/argp-parse.c (N_): Define unconditionally.
67509         (argp_default_options): Fill out initializers with 0 to avoid
67510         gcc warnings.
67511
67512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
67515         getopt1.c.
67516
67517 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         Merge from coreutils.
67520
67521         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
67522
67523         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
67524         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
67525
67526 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         Merge from coreutils.
67529
67530         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
67531         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
67532         for Reliant Unix 5.43.
67533
67534         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
67535         (union fooround): Use uintmax_t, not long int.
67536         The rest is a merge from libc:
67537         [defined _LIBC]: Include <shlib-compat.h>.
67538         (_obstack) [defined _LIBC]: Remove after 2.3.4.
67539
67540         * lib/settime.c (settime): Recode to avoid warning with
67541         Sun Forte C 6U2.
67542
67543         * lib/strverscmp.c: Convert to UTF-8.
67544
67545 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67548         m4/uintmax_t.m4.
67549
67550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * modules/xalloc-die: New file.
67553         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
67554
67555         * modules/md5 (Files): Add m4/uint32_t.m4.
67556         * modules/sha1: Renamed from modules/sha.
67557         (Files):
67558         Rename lib/sha.h to lib/sha1.h.
67559         Rename lib/sha.c to lib/sha1.c.
67560         Rename m4/sha.m4 to m4/sha1.m4.
67561         (lib_SOURCES): Likewise.
67562         (configure.ac): Rename gl_SHA to gl_SHA1.
67563         (Include): sha.h -> sha1.h.
67564
67565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
67568         * m4/sha1.m4: Renamed from sha.m4.
67569         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
67570
67571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * lib/obstack.h (obstack_empty_p):
67574         Don't assume that chunk->contents is suitably aligned.
67575         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
67576         Likewise. Problem reported by Benno in
67577         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
67578
67579         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
67580         readable.  This could be improved further but it'd take some work.
67581
67582 2004-08-08  Simon Josefsson  <jas@extundo.com>
67583
67584         * modules/xgethostname (Depends-on): Remove exit and error (not
67585         used).
67586
67587         * modules/getpass-gnu: Add getpass.h.
67588         (Depends-on): Add stdbool.
67589         * modules/getpass: Add getpass.h.
67590
67591 2004-08-08  Simon Josefsson  <jas@extundo.com>
67592
67593         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
67594         Check getpass declaration.
67595
67596 2004-08-08  Simon Josefsson  <jas@extundo.com>
67597
67598         * lib/xgethostname.c: Don't include error.h (not used).
67599
67600         * lib/getpass.h: Add.
67601         * lib/getpass.c: Include getpass.h first.
67602
67603 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         * lib/xalloc-die.c: New file.
67606         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
67607         All uses removed.
67608         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
67609         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
67610         xalloc-die.c.
67611         (_, N_, xalloc_die): Move to xalloc-die.c.
67612         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
67613         so that we needn't mess with xalloc_msg_memory_exhausted.
67614
67615         * lib/sha1.h: Renamed from sha.h.
67616         (SHA1_H): Renamed from _SHA_H.
67617         (sha1_ctx): Renamed from sha_ctx.
67618         (sha1_init_ctx): Renamed from sha_init_ctx.
67619         (sha1_process_block): Renamed from sha_process_block.
67620         (sha1_process_bytes): Renamed from sha_process_bytes.
67621         (sha1_finish_ctx): Renamed from sha_finish_ctx.
67622         (sha1_read_ctx): Renamed from sha_read_ctx.
67623         (sha1_stream): Renamed from sha_stream.
67624         (sha1_buffer): Renamed from sha_buffer.
67625         * lib/sha1.c: Likewise; renamed from sha.c.
67626         Do not include <sys/types.h>.
67627         Include <stddef.h> rather than <stdlib.h>.
67628
67629 2004-08-08  Bruno Haible  <bruno@clisp.org>
67630
67631         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
67632         FILESYSTEM_PREFIX_LEN.
67633         * lib/progreloc.c: Likewise.
67634         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
67635
67636 2004-08-06  Simon Josefsson  <jas@extundo.com>
67637
67638         * modules/progname (Depends-on): Don't depend on stdbool.
67639
67640 2004-08-06  Simon Josefsson  <jas@extundo.com>
67641
67642         * modules/getsubopt: New file.
67643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67644         getsubopt.
67645
67646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67647
67648         More merge from coreutils.
67649
67650         * m4/utimens.m4, m4/utimecmp.m4: New files.
67651         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
67652         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
67653         prereq.m4, sha.m4: Import changes from coreutils.
67654
67655 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         More merge from coreutils.
67658         * modules/raise, modules/readtokens0, modules/utimens:
67659         * modules/utimecmp, module/xnanosleep: New files.
67660         * modules/strftime: Add lib/strftime.h.
67661         Change include from <time.h> to "strftime.h".
67662         * modules/yesno: Add lib/yesno.h.
67663         * modules/backupfile: Remove lib/addext.c.
67664         * modules/euidaccess: Add stat-macros.h.
67665         * modules/canonicalize, modules/euidaccess,
67666         modules/filemode, modules/lchown, modules/makepath,
67667         modules/rmdir, modules/stat: Likewise.
67668
67669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         Merge from tar.
67672         * lib/argp-help.c (make_hol, hol_append): Don't assume that
67673         SIZE_MAX is a valid preprocessor constant.
67674         (__argp_basename): Change from "#ifndef _LIBC"
67675         to "#ifndef __argp_short_program_name", so that
67676         we don't compile these functions for tar.
67677
67678         More merges from coreutils.
67679         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
67680         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
67681         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
67682         * lib/addext.c: Remove; no longer needed.
67683         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
67684         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
67685         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
67686         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
67687         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
67688         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
67689         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
67690         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
67691         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
67692         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67693         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
67694         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
67695         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
67696         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
67697         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
67698         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
67699         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
67700         Import changes from coreutils.
67701
67702 2004-08-05  Simon Josefsson  <jas@extundo.com>
67703
67704         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
67705
67706 2004-08-05  Simon Josefsson  <jas@extundo.com>
67707
67708         * m4/getsubopt.m4: New file.
67709
67710 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         Merge from coreutils.
67713
67714         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
67715         * m4/getcwd-path-max.m4: New files.
67716
67717         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
67718         FILESYSTEM_PREFIX_LEN ->
67719         FILE_SYSTEM_PREFIX_LEN.
67720         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
67721         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
67722         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
67723         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
67724
67725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
67726         prerequisite modules now handle the DOS stuff.
67727         Don't check for unistd.h.
67728
67729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         Merge from coreutils.
67732
67733         * lib/.gdb-history: Remove; this doesn't belong here.
67734
67735         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
67736         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
67737         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
67738         * lib/getcwd.c: New files.
67739
67740         * lib/dirname.h: Include <stdbool.h>.
67741         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
67742         for consistency with POSIX terminology.  All uses changed.
67743         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
67744         (strip_trailing_slashes): Use bool for booleans.
67745         * lib/stripslash.c (strip_trailing_slashes): Likewise.
67746
67747         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
67748         sometimes returns a positive errno value even when it succeeds.
67749         (print_errno_message) [!LIBC]: Fall back on strerror if
67750         __strerror_r fails.
67751
67752         * lib/path-concat.c (mempcpy): Don't define if a system header defines
67753         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
67754         (longest_relative_suffix): New function.
67755         (path_concat): Use it.  Assume first argument is not NULL.
67756         Port to DOS.  Omit redundant separators.
67757         Report an error instead of returning NULL.
67758         Use mempcpy instead of memcpy.
67759         (xpath_concat): Remove: not declared or used.
67760
67761         * lib/same.h: Include <stdbool.h>
67762         (same_name): Return bool, not int.
67763         * lib/same.c (same_name): Likewise.
67764         (errno): Don't declare; we assume C89 or better now.
67765
67766         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
67767         if not already defined.
67768
67769         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
67770         * lib/dup-safer.c (errno): Likewise.
67771
67772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
67773
67774         Merge from coreutils.
67775         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
67776         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
67777         * modules/path-concat: Don't depend on strdup.
67778
67779 2004-08-03  Simon Josefsson  <jas@extundo.com>
67780
67781         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
67782         * lib/progname.h: Don't include stdbool.h.
67783
67784 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
67787         * MODULES.html.sh (func_all_modules): Remove fatal.
67788
67789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
67792
67793 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
67794
67795         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
67796         working.
67797
67798 2004-08-02  Simon Josefsson  <jas@extundo.com>
67799
67800         * lib/getsubopt.h: New file, with comments from Bruno Haible.
67801         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
67802         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
67803
67804 2004-08-01  Simon Josefsson  <jas@extundo.com>
67805
67806         * lib/xgetdomainname.c: Include stdlib.h, for free().
67807
67808 2004-07-19  Bruno Haible  <bruno@clisp.org>
67809
67810         * MODULES.html.sh (func_all_modules): Add dummy.
67811
67812 2004-07-16  Simon Josefsson  <jas@extundo.com>
67813
67814         * modules/dummy: New file.
67815
67816 2004-07-16  Simon Josefsson  <jas@extundo.com>
67817
67818         * lib/dummy.c: New file.
67819
67820 2004-07-16  Bruno Haible  <bruno@clisp.org>
67821
67822         * lib/backupfile.h: Add extern "C" for C++.
67823         * lib/closeout.h: Likewise.
67824         * lib/copy-file.h: Likewise.
67825         * lib/findprog.h: Likewise.
67826         * lib/full-write.h: Likewise.
67827         * lib/pathname.h: Likewise.
67828         * lib/progname.h: Likewise.
67829         * lib/stpcpy.h: Likewise.
67830         * lib/stpncpy.h: Likewise.
67831         * lib/strcase.h: Likewise.
67832         * lib/strstr.h: Likewise.
67833         * lib/xalloc.h: Likewise.
67834
67835         * lib/mbswidth.h: Add extern "C" for C++.
67836         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
67837
67838 2004-07-13  Robert Millan  <robertmh@gnu.org>
67839
67840         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
67841
67842 2004-07-09  Simon Josefsson  <jas@extundo.com>
67843
67844         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
67845         failed without this.)
67846
67847 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * modules/chown (Files): Add lib/fchown-stub.c, since
67850         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
67851
67852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * lib/fchown-stub.c: New file.
67855
67856 2004-06-24  Jim Meyering  <jim@meyering.net>
67857
67858         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
67859
67860 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67861
67862         * modules/argz: Omit "#include".
67863
67864         * MODULES.html.sh (func_all_modules): Add calloc, to match
67865         2004-06-01 addition of calloc module.
67866
67867 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * m4/argz.m4: New file, which is autoupdated from libtool.
67870
67871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67872
67873         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
67874         libtool.
67875
67876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * config/srclist-update: Don't insist on "USA." before the
67879         close-comment, as libtool omits the period and puts the */ on a
67880         separate line.
67881         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
67882         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
67883
67884 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
67885
67886         * modules/argz: New file.
67887         * MODULES.html.sh (func_all_modules): Add argz.
67888
67889 2004-06-12  Jim Meyering  <jim@meyering.net>
67890         and  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         * modules/hash (Files): Add lib/xalloc.h.
67893         * modules/pipe (Depends-on): Add wait-process.
67894         * modules/stat (Depends-on): Add xalloc.
67895         * modules/userspec (Files): Add lib/userspec.h.
67896         * modules/xstrto
67897
67898         Upgrade from gettext-0.13.
67899         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
67900         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
67901         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
67902
67903 2004-06-10  Jim Meyering  <jim@meyering.net>
67904
67905         * lib/calloc.c: New file.
67906
67907 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * lib/getdate.y (yylex): Allow space between sign and number.
67910         Problem reported by Dan Jacobson.
67911
67912 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         Merge from coreutils CVS.
67915
67916         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
67917         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
67918         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
67919         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
67920         xstrtol.m4: Fix copyright date and/or serial number.
67921
67922         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
67923         See if we need an fchown replacement.
67924         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
67925         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
67926         and use the replacement function if we detect either defect.
67927
67928         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
67929         gl_UTIMECMP.
67930
67931 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
67932         and  Jim Meyering  <jim@meyering.net>
67933
67934         Merge from coreutils CVS.
67935
67936         * lib/stat-macros.h: New file, with contents from file-type.h
67937         and coreutils' system.h.
67938         * lib/file-type.c: Include "stat-macros.h".
67939         * lib/file-type.h (file_type): Move all macro definitions to new file,
67940         stat-macros.h.
67941
67942         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
67943         Wrap old code with this conditional.
67944         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
67945         function that does not dereference symlinks.
67946         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
67947
67948         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
67949         dependency problems.
67950         (xreadlink): Accept new arg SIZE, for efficiency.
67951         All decls and uses changed.
67952         * lib/xreadlink.h: Include <stddef.h>, for size_t.
67953
67954         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
67955         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
67956
67957         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
67958         sysexits.h.
67959
67960 2004-06-01  Jim Meyering  <jim@meyering.net>
67961
67962         * m4/calloc.m4: New file.
67963
67964 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
67967         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
67968         Also, fix a typo in a diagnostic.
67969
67970 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
67973         or AC_FUNC_REALLOC.
67974
67975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67978         macros to be defined.
67979         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67980         the allocator returns NULL because the requested size is zero.
67981
67982 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67985         var.  Add comment explaining why libc still defines it.  This
67986         merges the following patch from glibc:
67987         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67988
67989 2004-05-20  Andreas Schwab  <schwab@suse.de>
67990
67991         * m4/free.m4: Replace free if it not known to work, not the other
67992         way round.
67993
67994 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67997         present in glibc since revision 1.1 of this file.
67998         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67999         obstack_alignment_mask, obstack_alloc, obstack_base,
68000         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68001         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68002         obstack_grow0, obstack_init, obstack_int_grow,
68003         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68004         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68005         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68006         nonexistent functions.
68007
68008 2004-05-18  Karl Berry  <karl@gnu.org>
68009
68010         * config/srclist.txt: break link for vasnprintf.c.
68011
68012 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         Port obstack to the AS/400, where pointers are 16 bytes wide and
68015         you cannot cast an integer to a valid pointer.  This patch is
68016         currently waiting to be integrated into glibc; see
68017         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68018
68019         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68020         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68021         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68022         (struct obstack): temp member is now a union of a pointer and
68023         an integer, instead of an integer.  All integer uses changed.
68024         This does not affect the physical layout of struct obstack,
68025         except on hosts (like the AS/400) where the size or alignment of
68026         void * is greater than that of ptrdiff_t.
68027         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68028         __STDC__)]: Store temporary in pointer member of union, not
68029         integer member.
68030         * lib/obstack.c: Include <stddef.h>, for offsetof.
68031         (struct fooalign): Remove; it doesn't need a name.
68032         (union fooround): Change double to long double, and add void *.
68033         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68034         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68035         not a macro.  Hence the values are always int; so remove all
68036         casts-to-int in uses.
68037
68038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68039
68040         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68041         we can get this patch merged into glibc.
68042
68043 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68044             Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * m4/argp: Depend on alloca.
68047
68048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68049             Paul Eggert  <eggert@cs.ucla.edu>
68050
68051         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68052         freecoding.
68053
68054 2004-05-17  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68057         precision that consists of a '.' followed by an empty digit string.
68058         Patch by Tor Lillqvist <tml@iki.fi>.
68059
68060 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68061
68062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68063         for backward compatibility with older code.  We need our own
68064         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68065         it under some other name, and our alloca.h will define it.
68066
68067 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68068             Derek Price  <derek@ximbiot.com>
68069
68070         * lib/alloca.c: Include <alloca.h>, to get our interface.
68071         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68072         include <alloca.h> first.  Use C89 prototype for alloca; this
68073         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68074         Use #elif for simplicity, since we can assume C89 now.
68075         Don't try to source the system alloca.h since it will not be found
68076         and to prevent recursively including its replacement.
68077         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68078         * lib/regex.c: Likewise.
68079
68080 2004-05-16  Derek Price  <derek@ximbiot.com>
68081             Paul Eggert  <eggert@cs.ucla.edu>
68082
68083         getline cleanup.  This changes the getndelim2 API: both order of
68084         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68085         no delimiter).
68086
68087         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68088         interface does that.
68089         (getline): Always use getdelim, so that we don't have two
68090         copies of this code.
68091         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68092         if available.
68093         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68094         (GETNDELIM2_MAXIMUM): New macro.
68095         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68096         instead of the old practice of delim2==0.  All callers changed.
68097         Return -1 on overflow, instead of returning junk.
68098         Do not set *linesize unless allocation succeeds.
68099         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68100         that we include sys/types.h.
68101         * lib/getnline.h: Likewise.
68102         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68103         (getndelim2): Reorder arguments.
68104         * lib/getnline.c (getnline, getndelim):
68105         Don't discard the NMAX argument.
68106         (getnline): Invoke getndelim, to avoid code duplication.
68107         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68108         of (size_t) -1 by callers of the getnline family.
68109
68110 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68113         Check for gettimeofday.
68114         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68115         Check for settimeofday, stime.
68116
68117 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * lib/nanosleep.c (suspended): Change its type from int to
68120         sig_atomic_t volatile.
68121         (first_call): Make it private to rpl_nanosleep, and have it
68122         be zero initially as that's a bit faster.
68123         (my_usleep): Round up fractional times instead of truncating them,
68124         as this is the usual meaning for 'sleep'.
68125
68126         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68127         doesn't work.
68128         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68129         (ENOSYS): Define if not defined.
68130         (settime): Fall back on stime if it exists and settimeofday fails.
68131         But don't bother with fallbacks if a method fails with errno == EPERM.
68132
68133 2004-05-11  Jim Meyering  <jim@meyering.net>
68134
68135         Prior to this change, the save_cwd caller required read access to the
68136         current directory on most systems (ones with the fchdir function).
68137
68138         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68139         fails, try write-only, and finally, resort to using xgetcwd.
68140
68141 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68142
68143         * lib/obstack.c, obstack.h: Import changes from libc.
68144
68145 2004-04-28  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68148         also implicitly appends .exe to executables.
68149         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68150         accepts Windows pathnames.
68151         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68152         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68153         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68154         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68155         Reported by Derek Robert Price <derek@ximbiot.com>.
68156
68157 2004-04-21  Karl Berry  <karl@gnu.org>
68158
68159         * config/srclist.txt (localcharset.c): break sync.
68160
68161 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68162
68163         * m4/host-os.m4: Add a copyright notice.
68164
68165 2004-04-20  Jim Meyering  <jim@meyering.net>
68166
68167         Change UTILS_ to gl_ in AC_DEFINE'd names.
68168         Change utils_- and jm_-prefixed variables, too.
68169         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68170         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68172
68173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68174         Don't emit trailing blanks.
68175         Also rename jm_-prefixed variables to have gl_ prefix.
68176
68177         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68178         Also rename jm_-prefixed variables to have gl_ prefix.
68179
68180         * m4/jm-macros.m4: Reflect the renamings.
68181         * m4/prereq.m4: Likewise.
68182
68183 2004-04-20  Jim Meyering  <jim@meyering.net>
68184
68185         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68186         memory.
68187
68188 2004-04-20  Jim Meyering  <jim@meyering.net>
68189             Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68192         memory when realloc fails.
68193
68194 2004-04-19  Jim Meyering  <jim@meyering.net>
68195
68196         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68197         now that readutmp.c may call `free (0)'.
68198
68199 2004-04-19  Bruno Haible  <bruno@clisp.org>
68200
68201         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68202         * m4/inttypes_h.m4: Likewise.
68203         * m4/stdint_h.m4: Likewise.
68204         * m4/intmax_t.m4: Likewise.
68205         * m4/uintmax_t.m4: Likewise.
68206
68207 2004-04-18  Jim Meyering  <jim@meyering.net>
68208
68209         * m4/prereq.m4: Don't forbid jm_ prefix.
68210
68211         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68212         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68213         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68214         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68215         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68216         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68217         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68218         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68219         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68220         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68221         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68222         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68223         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68224         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68225         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68226         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68227         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68228         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68229         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68230
68231 2004-04-18  Jim Meyering  <jim@meyering.net>
68232
68233         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68234         failure, don't leak memory and do call END_UTMP_ENT.
68235
68236 2004-04-16  Jim Meyering  <jim@meyering.net>
68237
68238         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68239         coreutils' stat program.
68240         (gl_PREREQ): Don't require jm_PREREQ_STAT.
68241
68242 2004-04-11  Paul Eggert  <eggert@twinsun.com>
68243
68244         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
68245         C89.
68246         (CHAR_BIT): Remove, since we assume C89.
68247         Include <stdint.h> if available, as per current Autoconf CVS advice.
68248
68249 2004-03-31  Jim Meyering  <jim@meyering.net>
68250
68251         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
68252         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
68253         * m4/xalloc.m4: Likewise.
68254
68255 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68256
68257         Merge from coreutils.
68258
68259         * m4/inttostr.m4: New file.
68260         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
68261         Require AM_STDBOOL_H and gl_TIMESPEC instead.
68262         Require gl_CLOCK_TIME.
68263         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
68264
68265 2004-03-30  Paul Eggert  <eggert@twinsun.com>
68266
68267         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
68268         not bool, to be more consistent with Unix conventions.
68269         Suggested by Bruno Haible.
68270
68271         Merge from coreutils.
68272
68273         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
68274         * lib/umaxtostr.c: New files.
68275
68276         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
68277         the usual <time.h> dance.
68278         (get_date): Change signature to support fractional time stamps.
68279         All callers changed.
68280         * lib/getdate.y: Include "getdate.h" first, as we can now
68281         assume C89 and don't need to worry about 'const'.
68282         Similarly, include "unlocked-io.h" near start, not in middle.
68283         Include <limits.h>.
68284         (textint.value): Use long int rather than int.
68285         (textint.digits): Use size_t rather than int.
68286         (BILLION, LOG10_BILLION): New constants.
68287         (parser_control): New member rel_ns.  Members day_ordinal,
68288         time_zone, month, day, hour, minutes, rel_year, rel_month,
68289         rel_day, rel_hour, rel_minutes, rel_seconds
68290         are now long int, not int.  Member seconds is now struct timespec,
68291         not int.  New member timespec_seen.  Members dates_seen, days_seen,
68292         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
68293         not int.
68294         (%union.intval): Now long int, not int.
68295         New member timespec.
68296         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
68297         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
68298         (spec): Now is a timespec or an item list.
68299         (timespec, items): New nonterminals.
68300         (time, rel, relunit, number, get_date):
68301         Add support for fractional seconds.
68302         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
68303         (gmtime, localtime, mktime): Remove decls; not needed with C89.
68304         (to_hour): First arg is now long int, not int.
68305         (to_year): Returns long int, not int.
68306         Don't treat year -70 like 70.
68307         (tm_diff): Returns long int, not int.
68308         (lookup_word): Use bool instead of int when appropriate.
68309         (yylex): Use size_t for count, not int.
68310         Detect overflow when parsing large integer constants.
68311         Add support for fractions.
68312         (get_date): Make pointers 'const' if possible.
68313         Use more-portable code to detect integer overflow.
68314         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
68315         Don't use ctime; it's not reliable if the year has >4 digits.
68316
68317         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
68318         This is for compatibility with BSD.
68319
68320         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
68321         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
68322         From coreutils' system.h.
68323
68324         * lib/userspec.c: Don't include "posixver.h".
68325         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
68326         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
68327         compatible extension.  Simplify code by removing a boolean int
68328         that was always nonzero if a string was nonnull.
68329
68330 2004-03-30  Jim Meyering  <jim@meyering.net>
68331
68332         Merge from coreutils.
68333
68334         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
68335         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
68336         on some systems one must include <grp.h> before it.
68337         Reported by Christian Krackowizer.
68338
68339 2004-03-30  Jim Meyering  <jim@meyering.net>
68340
68341         Merge from coreutils.
68342
68343         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
68344
68345         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
68346         an empty input stream.
68347
68348         * lib/readtokens.c: Include <stdbool.h>.
68349         (readtoken): Use `size_t' rather than int/long.
68350         All callers adjusted.
68351         Use `bool' rather than `int' where appropriate.
68352         Use memset rather than an explicit loop.
68353         Use x2nrealloc rather than xrealloc.
68354         Allow the use of `\0' as a delimiter.
68355         (readtokens): Likewise.
68356         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
68357
68358 2004-03-30  Jim Meyering  <jim@meyering.net>
68359
68360         * m4/realloc.m4: Remove file, since now it does no more than
68361         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
68362         the `configure.ac' section of module/realloc.
68363         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
68364
68365 2004-03-30  Bruno Haible  <bruno@clisp.org>
68366
68367         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
68368         nonnull.
68369
68370 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68371
68372         Merge changes to getloadavg.c from coreutils and Emacs.
68373
68374         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
68375         Define to an expression, not to the empty string.
68376         Include cloexec.h and xalloc.h.
68377         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
68378         Use set_cloexec_flag rather than rolling our own.
68379         * lib/cloexec.c, lib/cloexec.h: New files.
68380
68381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
68382
68383         * m4/cloexec.m4: New file.
68384
68385 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68386
68387         * lib/getopt.h: Sync with libc CVS.
68388
68389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68390             Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
68393         mbswidth.
68394
68395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
68396             Bruno Haible  <bruno@clisp.org>
68397
68398         * lib/mbswidth.h: Include <wchar.h> only if
68399         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
68400         <wchar.h>.
68401         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
68402
68403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68404
68405         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
68406         Sync with libc CVS.
68407         * lib/getopt_int.h: New file, also synced from libc.
68408
68409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
68410
68411         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
68412         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
68413         Bring back getopt.c, getopt.h, getopt1.c.
68414
68415 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68416
68417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
68418         All uses changed.  Check for sa_sigaction member; this fixes
68419         a bug first reported by Jason Andrade in
68420         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68421
68422 2004-03-07  Paul Eggert  <eggert@twinsun.com>
68423
68424         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
68425         '#if' expressions.  Unlike the code it replaces, it does not
68426         depend on (defined _SC_PAGESIZE).  However, it does depend on
68427         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
68428         first reported by Jason Andrade in
68429         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
68430
68431 2004-02-25  Simon Josefsson  <jas@extundo.com>
68432
68433         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
68434
68435 2004-02-25  Simon Josefsson  <jas@extundo.com>
68436
68437         * lib/strdup.h: New file.
68438         * lib/strdup.c: Include it.
68439         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
68440         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
68441
68442 2004-02-23  Karl Berry  <karl@gnu.org>
68443
68444         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
68445         (from fencepost.gnu.org:/gd/gnuorg).
68446
68447 2004-02-23  Karl Berry  <karl@gnu.org>
68448
68449         * config/srclistvars.sh (GNUORG) [karl]: redefine.
68450         * config/srclist.txt: add maintain/standards documents.
68451
68452 2004-02-18  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
68455         Reported by Derek Robert Price <derek@ximbiot.com>.
68456
68457 2004-02-16  Karl Berry  <karl@gnu.org>
68458
68459         * config/mkinstalldirs, install-sh: update from automake.
68460
68461 2004-02-06  Karl Berry  <karl@gnu.org>
68462
68463         * m4/po.m4: update from gettext 0.14.1.
68464
68465 2004-02-06  Karl Berry  <karl@gnu.org>
68466
68467         * lib/config.charset: update from gettext 0.14.1.
68468
68469 2004-02-05  Paul Eggert  <eggert@twinsun.com>
68470
68471         Add comments and code, prompted by suggestions from Bruno Haible
68472         for sh-quote.
68473         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
68474         describing the enum quoting_style values.
68475         * lib/quotearg.c (quotearg_alloc): New function.
68476         (quotearg_buffer_restyled): Treat lone { and } as special.
68477         Treat = as special.  Work around bug with older shells
68478         that "see" a '\' that is really the 2nd byte of a multibyte char.
68479         Quote empty string with shell_quoting_style.
68480
68481 2004-02-03  Bruno Haible  <bruno@clisp.org>
68482
68483         * m4/pipe.m4: New file, from GNU gettext.
68484
68485 2004-02-03  Bruno Haible  <bruno@clisp.org>
68486
68487         * lib/pipe.h: New file, from GNU gettext.
68488         * lib/pipe.c: New file, from GNU gettext.
68489
68490 2004-01-27  Bruno Haible  <bruno@clisp.org>
68491
68492         * m4/execute.m4: New file, from GNU gettext.
68493
68494 2004-01-27  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/execute.h: New file, from GNU gettext.
68497         * lib/execute.c: New file, from GNU gettext.
68498         * lib/w32spawn.h: New file, from GNU gettext.
68499
68500 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68501
68502         Merge from diffutils.
68503
68504         * lib/file-type.c (file_type): Add typed memory objects.
68505         * lib/file-type.h (S_TYPEISTMO): New macro.
68506
68507         * lib/c-stack.h (c_stack_action): Remove argv argument.
68508         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
68509         (die): Don't calculate message unless segv_action returns.
68510         (get_stack_location, min_address_from_argv, max_address_from_argv,
68511         volatile stack_base, volatile_stack_size): Remove.
68512         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
68513         that every segmentation violation is a stack overflow.  (Ouch!)
68514         See Debian bug 136249 (still outstanding) for more info about why
68515         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
68516
68517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
68518
68519         Exit-status fix from coreutils.
68520
68521         Use exit_failure consistently in place of EXIT_FAILURE,
68522         so that program exit statuses are consistent on failure.
68523
68524         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
68525         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
68526         * lib/argmatch.h: Comment fix to match the above.
68527         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
68528         Now a macro referring to exit_failure, instead of a separate
68529         variable.  Include "exitfail.h" to get it.
68530         * lib/xstrtol.h: Include "exitfail.h".
68531         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
68532
68533         * lib/long-options.c (parse_long_options): Use prototype
68534         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
68535         for clarity.
68536
68537 2004-01-21  Jim Meyering  <jim@meyering.net>
68538
68539         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
68540         so as not to conflict with a different-sized __mktime_internal
68541         function in GNU libc.
68542         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
68543         Problem building statically-linked `ls' reported by Michael Brunnbauer.
68544
68545 2004-01-20  Karl Berry  <karl@gnu.org>
68546
68547         * config/config.guess: update from config.
68548
68549         * config/srclistvars.sh: GNUWWWLICENSES for karl.
68550
68551 2004-01-20  Bruno Haible  <bruno@clisp.org>
68552
68553         Safer stack allocation.
68554         * lib/setenv.c: Include allocsa.h.
68555         (alloca): Remove fallback definition.
68556         (freea): Remove macro.
68557         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
68558         instead of freea.
68559
68560 2004-01-20  Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/eealloc.m4: New file, from GNU gettext.
68563
68564 2004-01-20  Bruno Haible  <bruno@clisp.org>
68565
68566         * m4/allocsa.m4: New file, from GNU gettext.
68567
68568 2004-01-20  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/xallocsa.h: New file, from GNU gettext.
68571         * lib/xallocsa.c: New file, from GNU gettext.
68572
68573 2004-01-20  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
68576
68577 2004-01-20  Bruno Haible  <bruno@clisp.org>
68578
68579         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
68580         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
68581         specially.
68582
68583 2004-01-20  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
68586         patch.
68587
68588 2004-01-20  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
68591
68592 2004-01-20  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/eealloc.h: New file.
68595
68596 2004-01-20  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/binary-io.h: Avoid warnings on Cygwin.
68599
68600 2004-01-20  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/allocsa.h: New file, from GNU gettext.
68603         * lib/allocsa.c: New file, from GNU gettext.
68604
68605 2004-01-18  Karl Berry  <karl@gnu.org>
68606
68607         * doc/gpl.texi, doc/lgpl.texi: new files.
68608
68609 2004-01-18  Karl Berry  <karl@gnu.org>
68610
68611         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
68612         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
68613
68614 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68615
68616         Merge from coreutils.
68617
68618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
68619         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
68620         (gl_DEFAULT_POSIX2_VERSION): Move
68621         the documentation from 'configure' into 'config.hin',
68622         so that 'configure --help' isn't burdened by it and
68623         we don't have to worry about its formatting there.
68624         Reword the documentation so that it's more succinct
68625         and can be run together into a single paragraph.
68626         * m4/same.m4 (gl_SAME): Check for pathconf.
68627
68628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
68629
68630         Merge from coreutils.
68631
68632         * lib/posixver.c: Include posixver.h.
68633
68634         * lib/same.c: Include <stdbool.h>, <limits.h>.
68635         (_POSIX_NAME_MAX): Define if not defined.
68636         (MIN): New macro.
68637         (same_name): If file names are silently truncated, report
68638         that the file names are the same if they are the same after
68639         the silent truncation.
68640
68641         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
68642         conversion function.
68643         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
68644         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
68645         longer needed.
68646
68647 2004-01-15  Jim Meyering  <jim@meyering.net>
68648
68649         Merge from coreutils.
68650
68651         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
68652         if no library is required.
68653         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
68654         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
68655         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
68656         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
68657         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
68658         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
68659         value, $ac_cv_search_crypt, if it's "none required".
68660         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
68661         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
68662         not gl_FUNC_GETLOADAVG.
68663         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
68664         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
68665
68666 2004-01-15  Jim Meyering  <jim@meyering.net>
68667
68668         Merge from coreutils.
68669
68670         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
68671         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
68672         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
68673
68674         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
68675         optional configure-time default.
68676
68677         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68678
68679         * lib/xreadlink.c (xreadlink): Correct outdated comment.
68680
68681 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
68682
68683         Merge from coreutils.
68684
68685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
68686         value, $ac_cv_search_nanosleep, if it's "none required".
68687
68688 2004-01-14  Paul Eggert  <eggert@twinsun.com>
68689
68690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
68691         with like-named macro in fnmatch.c.
68692         (EXT): Use an internal constant instead.
68693
68694         Merge fnmatch patches from glibc.
68695         * lib/fnmatch.c (mbsinit): Remove define.
68696         Add libc_hidden_ver (__fnmatch, fnmatch).
68697         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
68698         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
68699
68700 2004-01-14  Karl Berry  <karl@gnu.org>
68701
68702         * config/install-sh: update from automake.
68703
68704 2004-01-13  Karl Berry  <karl@gnu.org>
68705
68706         * config/install-sh: update from automake.
68707
68708 2004-01-09  Karl Berry  <karl@gnu.org>
68709
68710         * config/install-sh: update from automake.
68711
68712 2004-01-05  Karl Berry  <karl@gnu.org>
68713
68714         * config/config.{sub,guess}: update from config.
68715
68716 2003-12-31  Karl Berry  <karl@gnu.org>
68717
68718         * config/depcomp: update from automake.
68719
68720 2003-12-14  Karl Berry  <karl@gnu.org>
68721
68722         * lib/config.charset: update from gettext-runtime.
68723
68724 2003-12-03  Paul Eggert  <eggert@twinsun.com>
68725
68726         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
68727         Bug reported by Alfred M. Szmidt.
68728
68729 2003-12-03  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/gettext.m4: Upgrade from gettext-0.13.
68732         * m4/po.m4: Upgrade from gettext-0.13.
68733         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
68734         * m4/intmax.m4: New file, from gettext-0.13.
68735         * m4/printf-posix.m4: New file, from gettext-0.13.
68736
68737 2003-11-29  Karl Berry  <karl@gnu.org>
68738
68739         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
68740
68741 2003-11-25  Paul Eggert  <eggert@twinsun.com>
68742             Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/printf-parse.h: Don't include sys/types.h.
68745         (ARG_NONE): New macro.
68746         (char_directive): Change type of *arg_index fields to size_t.
68747         * lib/printf-parse.c: Don't include sys/types.h.
68748         (SSIZE_MAX): Remove macro.
68749         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
68750         Remove unnecessary overflow check.
68751         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
68752         fields.
68753
68754 2003-11-25  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
68757
68758 2003-11-25  Bruno Haible  <bruno@clisp.org>
68759
68760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
68761         gt_TYPE_SSIZE_T.
68762
68763 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68764
68765         * modules/alloca: Remove dependency on xalloc.
68766
68767 2003-11-24  Paul Eggert  <eggert@twinsun.com>
68768
68769         * lib/alloca.c: Remove dependency on xalloc module.
68770         (xalloc_die): Remove.
68771         (memory_full) [!defined emacs]: New macro.
68772         [!defined emacs]: Don't include xalloc.h.
68773         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
68774         address arithmetic overflows.  Change datatypes a bit to avoid
68775         unnecessary casts.
68776
68777 2003-11-22  Jim Meyering  <jim@meyering.net>
68778
68779         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
68780         s/size/size_t/.
68781
68782 2003-11-21  Karl Berry  <karl@gnu.org>
68783
68784         * config/config.{sub,guess}: update from config.
68785
68786 2003-11-18  Karl Berry  <karl@gnu.org>
68787
68788         * config/config.{sub,guess}: update from config.
68789
68790         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
68791
68792 2003-11-17  Paul Eggert  <eggert@twinsun.com>
68793
68794         * README: Mention that S+T cannot overflow if S is the size of
68795         an existing object and T is sufficiently small.
68796
68797 2003-11-17  Jim Meyering  <jim@meyering.net>
68798
68799         On systems without utime and without a utimes function capable of
68800         dealing with a NULL struct utimbuf* argument, this utime replacement
68801         could -- in unusual circumstances -- leak a file descriptor.
68802         * lib/utime.c: Include <unistd.h> and <errno.h>.
68803         (utime_null): Be sure to close `fd' and to preserve errno.
68804         Reported by Geoff Collyer via Arnold Robbins.
68805
68806 2003-11-17  Bruno Haible  <bruno@clisp.org>
68807
68808         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
68809         (Depends-on): Add xsize.
68810
68811 2003-11-17  Bruno Haible  <bruno@clisp.org>
68812
68813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
68814
68815 2003-11-17  Bruno Haible  <bruno@clisp.org>
68816
68817         * lib/vasnprintf.c (alloca): Remove fallback definition.
68818         (freea): Remove definition.
68819         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
68820         Reported by Paul Eggert.
68821
68822 2003-11-16  Paul Eggert  <eggert@twinsun.com>
68823             Bruno Haible  <bruno@clisp.org>
68824
68825         Protect against address arithmetic overflow.
68826         * lib/printf-args.h: Include stddef.h.
68827         (arguments): Change type of field 'count' to size_t.
68828         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
68829         'unsigned int' where appropriate.
68830         * lib/printf-parse.h: Include sys/types.h.
68831         (char_directive): Change type of *arg_index fields to ssize_t.
68832         (char_directives): Change type of fields 'count', max_*_length to
68833         size_t.
68834         * lib/printf-parse.c: Include sys/types.h and xsize.h.
68835         (SSIZE_MAX): Define fallback value.
68836         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
68837         instead of 'int' where appropriate. Check a_allocated, d_allocated
68838         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
68839         * lib/vasnprintf.c: Include xsize.h.
68840         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
68841         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
68842         overflow. Avoid wraparound when converting a width or precision from
68843         decimal to binary.
68844
68845 2003-11-16  Bruno Haible  <bruno@clisp.org>
68846
68847         Update from GNU gettext.
68848         * lib/printf-parse.c: Generalize to it can be compiled for wide
68849         strings.
68850         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
68851         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
68852         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
68853         SNPRINTF): New macros.
68854         Don't include <alloca.h> if the file is used inside libintl.
68855         (local_wcslen): New function, for Solaris 2.5.1.
68856         (VASNPRINTF): Use it instead of wcslen.
68857
68858 2003-11-16  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/xsize.h (xmax): New function.
68861         (xsum, xsum3, xsum4): Declare as "pure" functions.
68862
68863 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68864
68865         * modules/xalloc (Files): Undo latest change, since xalloc.h
68866         no longer needs SIZE_MAX or PTRDIFF_MAX.
68867
68868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68869
68870         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
68871         gl_PTRDIFF_MAX.
68872
68873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68874
68875         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
68876         "return", to pacify some unknown compiler.  Problem reported
68877         by Joerg Schilling.
68878
68879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
68880
68881         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
68882         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
68883         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
68884         heuristic is just as accurate as far as we know, and it removes a
68885         dependency on size_max.m4 and ptrdiff_max.m4.
68886
68887 2003-11-11  Bruno Haible  <bruno@clisp.org>
68888
68889         * modules/xsize (Files): Add m4/size_max.m4.
68890         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
68891
68892 2003-11-11  Bruno Haible  <bruno@clisp.org>
68893
68894         * m4/size_max.m4: New file.
68895         * m4/ptrdiff_max.m4: New file.
68896         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
68897         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
68898         (gl_XALLOC): Invoke it.
68899
68900 2003-11-11  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
68903         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
68904         defined.
68905
68906 2003-11-10  Paul Eggert  <eggert@twinsun.com>
68907
68908         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
68909         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
68910         rejected some allocations of exactly SIZE_MAX - 2 bytes.
68911         From Bruno Haible.
68912         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
68913         not (size_t) -1, since it's defined here.
68914
68915 2003-11-09  Karl Berry  <karl@gnu.org>
68916
68917         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
68918
68919 2003-11-06  Paul Eggert  <eggert@twinsun.com>
68920
68921         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
68922         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
68923         Reject sizes of exactly SIZE_MAX bytes.
68924         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
68925         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
68926
68927 2003-11-05  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/xsize.h: Include limits.h, to avoid a possible collision with
68930         SIZE_MAX defined in <limits.h> on Solaris.
68931
68932 2003-11-04  Jim Meyering  <jim@meyering.net>
68933
68934         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
68935         variable names, rather than @VAR@.
68936         * modules/poll: Likewise.
68937
68938 2003-11-04  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/xsize: New file.
68941         * modules/linebreak: Depend on xsize.
68942         * MODULES.html.sh (func_all_modules): Add xsize.
68943
68944 2003-11-04  Bruno Haible  <bruno@clisp.org>
68945
68946         * m4/xsize.m4: New file.
68947
68948 2003-11-04  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/xsize.h: New file.
68951         * lib/linebreak.c: Include xsize.h.
68952         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
68953         argument for overflow.
68954         Suggested by Paul Eggert.
68955
68956 2003-11-03  Karl Berry  <karl@gnu.org>
68957
68958         * config/config.{guess,sub}: update from config.
68959
68960 2003-11-03  Jim Meyering  <jim@meyering.net>
68961
68962         * modules/userspec (lib_SOURCES): Add userspec.h.
68963         (Include): Add "userspec.h".
68964         Improve description.
68965
68966 2003-11-03  Jim Meyering  <jim@meyering.net>
68967
68968         * lib/userspec.c: Include "userspec.h".
68969         * lib/userspec.h: New file.
68970
68971 2003-11-03  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68974
68975 2003-11-03  Bruno Haible  <bruno@clisp.org>
68976
68977         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68978         available, to avoid (extremely rare) race condition.
68979         Suggested by Paul Eggert.
68980
68981 2003-11-02  Karl Berry  <karl@gnu.org>
68982
68983         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68984
68985 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68986
68987         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68988         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68989         (read_filesystem_list): Set and use me_type_malloced.
68990         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68991         whatever the type happens to be), for brevity and consistency.
68992         Check for size calculation overflow on Alphas running OSF/1.
68993
68994 2003-10-31  Jim Meyering  <jim@meyering.net>
68995
68996         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68997
68998         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68999
69000 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69001             Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69004         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69005
69006 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69009         netbsd*-gnu*.  Suggested by Robert Millan.
69010
69011 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69012
69013         * modules/group-member: Depend on stdbool.
69014
69015 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69016
69017         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69018
69019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69020
69021         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69022         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69023         after the 'gnu' in these cases.  This fixes some bugs in the
69024         previous change, and is based on suggestions by Robert Millan.
69025
69026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69027
69028         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69029         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69030         no longer needed.
69031         * lib/quotearg.c (quotearg_n_options): Use it.
69032         * lib/group-member.c: Include <stdbool.h>.
69033         (free_group_info): Arg is now const *; don't free arg.
69034         (get_group_info): Now returns bool and accepts struct group_info *,
69035         rather than returning a malloc'ed struct group_info *.
69036         All uses changed.  Check for overflow in internal size calculation.
69037
69038         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69039         rather than xmalloc/xrealloc.
69040         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69041         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69042         conformance bug: the old code used a pointer after freeing the
69043         storage that it addressed.
69044         * lib/hash.c (hash_initialize): Simplify the code by using
69045         xalloc_oversized rather than doing it by hand.
69046         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69047         the buffer preserved.  Use free and xmalloc instead.
69048         * lib/quotearg.c (quotearg_n_options): Likewise.
69049         Use a simpler test for size overflow.  Don't use xalloc_oversized
69050         because unsigned int might be wider than size_t (!); this suggests
69051         that we should switch from unsigned int to size_t for slot numbers.
69052
69053 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69054
69055         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69056         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69057         NetBSD kernels.  Requested by Richard Stallman.
69058
69059 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69060
69061         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69062         to allocate the returned structure.  Do not allocate a subarray,
69063         as x2nrealloc will do that.
69064         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69065         instead of xnrealloc.
69066         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69067
69068 2003-10-27  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/stdbool_.h: Better support for BeOS.
69071
69072 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69073
69074         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69075         now uses inline.
69076
69077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69078
69079         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69080         callers that want to do their own size-overflow checking.  Include
69081         <stdbool.h>, since xalloc_oversized returns bool.
69082         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69083         to use xalloc_oversized.
69084
69085         Add two functions x2realloc, x2nrealloc, for programs that grow
69086         arrays dynamically by doubling their sizes.
69087         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69088         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69089         New functions.
69090
69091         Port to C99 semantics for 'inline' of external functions.
69092         Bug reported by Bruno Haible.
69093         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69094         with the old contents of xnmalloc.
69095         (xnmalloc, xmalloc): Use it.
69096         (xnrealloc_inline): New static inline function,
69097         with the old contents of xnrealloc.
69098         (xnrealloc, xrealloc): Use it.
69099
69100         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69101         that.
69102
69103 2003-10-26  Karl Berry  <karl@gnu.org>
69104
69105         * config/srclist.txt (COPYING.DOC): no longer available from
69106         /gd/gnuorg; don't know where the ultimate source is.
69107
69108 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69109
69110         Fix several address-calculation bugs in the hash modules,
69111         plus some minor code cleanup.
69112
69113         * lib/hash.h: Include <stdbool.h>, for bool.
69114         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69115         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69116         hash_get_n_entries, hash_get_max_bucket_length,
69117         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69118         hash_rehash): Use size_t rather than unsigned.
69119         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69120         hash_get_n_buckets_used, hash_get_n_entries,
69121         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69122         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69123         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69124         Likewise.
69125         (SIZE_MAX): Define if not defined.
69126         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69127         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69128         hash_print):
69129         Use const * when possible.
69130         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69131         (check_tuning): Fix bug: if tuning parameters were very close to
69132         0 or 1, rounding errors could have caused subscript violations.
69133         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69134         (hash_initialize): Add 'fail:' label
69135         to free table and return NULL, and use it to simplify code.
69136         Use calloc rather than clearing the storage ourself.
69137         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69138         buffer size calculations.
69139         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69140         Include <stddef.h>, for size_t.
69141         * lib/hash-pjw.c (hash_pjw): Likewise.
69142         Switch to method described by Bruno Haible.
69143         Include <limits.h>, for CHAR_BIT.
69144         (SIZE_BITS): New macro.
69145
69146 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69147
69148         * m4/getline.m4 (AM_FUNC_GETLINE):
69149         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69150         hosts.  Problem reported by Derek Robert Price in
69151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69152         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69153         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69154
69155 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69156
69157         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69158         ceiling the allocation at NMAX bytes rather than silently
69159         discarding input bytes before NMAX is reached.  This makes
69160         a difference only if NMAX exceeds SIZE_MAX / 2.
69161
69162         * lib/obstack.c: Merge from glibc.
69163         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69164         Add libc_hidden_def (_obstack_newchunk).
69165         (_obstack_free) [! defined _LIBC]: Remove.
69166         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69167         a clone of the function body.
69168         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69169         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69170
69171         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69172         glibc.
69173         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69174         arg to memcpy.
69175
69176         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69177         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69178         Don't use lvalue casts, as GCC plans to remove support for them
69179         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69180         was also present in the non-GCC version, indicating that this
69181         code had always been buggy and had never been widely used.
69182         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69183         Use the fast variant of each macro, rather than copying the
69184         definiens of the fast variant; that way, we'll be more likely to
69185         catch future bugs in the fast variants.
69186
69187 2003-10-20  Bruno Haible  <bruno@clisp.org>
69188
69189         * modules/wait-process: New file.
69190         * MODULES.html.sh (func_all_modules): Add wait-process.
69191
69192 2003-10-20  Bruno Haible  <bruno@clisp.org>
69193
69194         * m4/wait-process.m4: New file.
69195
69196 2003-10-20  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/wait-process.h: New file, from GNU gettext.
69199         * lib/wait-process.c: New file, from GNU gettext.
69200
69201 2003-10-19  Jim Meyering  <jim@meyering.net>
69202
69203         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69204         HPUX 10.20.
69205
69206 2003-10-18  Karl Berry  <karl@gnu.org>
69207
69208         * config/config.guess: update from config.
69209
69210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69211
69212         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69213         (getgroups): First arg is int, not size_t.
69214         Don't let 'free' mangle errno.
69215
69216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69217
69218         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69219
69220 2003-10-16  Karl Berry  <karl@gnu.org>
69221
69222         * config/config.{guess,sub}: update from config.
69223
69224 2003-10-16  Jim Meyering  <jim@meyering.net>
69225
69226         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69227         memcpy.
69228
69229 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69230
69231         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69232         (SIZE_MAX): Remove.
69233         (new_exclude, add_exclude_file): Initial size no longer needs to
69234         be a power of 2.
69235         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69236         our own address arithmetic overflow checking.
69237
69238         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69239         (fnmatch): Do not alloca more than 2000 wide characters;
69240         instead, use malloc for large buffers.
69241         Check for address arithmetic overflow, and return -1
69242         with errno set to ENOMEM in that case.
69243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
69244         (NEW_PATTERN): Do not alloca more than 8000 bytes;
69245         instead, return -1.  Check for address arithmetic overflow.
69246
69247 2003-10-14  Paul Eggert  <eggert@twinsun.com>
69248
69249         Handle invalid suffixes and overflow independently, so that
69250         callers can treat them independently as needed.  Fix some bugs in
69251         suffix handling, e.g., "100k@" was not diagnosed as an invalid
69252         suffix for a human-readable blocksize.  The major caller-visible
69253         change is the addition of a new
69254         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
69255         that both overflow and suffix chars were found.
69256
69257         * lib/human.c (humblock): Don't check separately for invalid suffix
69258         char; that is xstrtoumax's job (now that its bug is fixed).
69259         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
69260         INTMAX_MAX]: New macros.
69261         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
69262         TYPE_MAXIMUM): New macros.
69263         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
69264         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
69265         if overflow occurs, as it's what __strtol does and it's more useful
69266         in practice.
69267         (__xstrtol): If __strtol reports some error other than ERANGE,
69268         reflect it to the caller as LONGINT_INVALID.  If it reports
69269         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
69270         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
69271         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
69272         value.
69273         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
69274         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
69275         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
69276         [defined UINTMAX_MAX]: New macros.
69277
69278 2003-10-14  Bruno Haible  <bruno@clisp.org>
69279
69280         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
69281
69282 2003-10-14  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/sig_atomic_t: New file, from GNU gettext.
69285         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
69286
69287 2003-10-14  Bruno Haible  <bruno@clisp.org>
69288
69289         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
69290         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
69291         Also use volatile where needed.
69292
69293 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69294
69295         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
69296         Change maintainer from Bruno Haible to 'all'.
69297
69298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69299
69300         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
69301
69302 2003-10-12  Paul Eggert  <eggert@twinsun.com>
69303
69304         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
69305         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
69306         and define in terms of the other primitives.
69307         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
69308         (SIZE_MAX): Define if not already defined.
69309         (array_size_overflow): New function.
69310         (xalloc_die): Abort instead of exiting if 'error' returns.
69311         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
69312         (xmalloc, xrealloc): Use them.
69313         (xcalloc): Check for address arithmetic overflow.
69314         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
69315         a bit faster than strcpy.
69316
69317 2003-10-10  Simon Josefsson  <jas@extundo.com>
69318
69319         * modules/argp (Depends-on): Add restrict and strcase.
69320
69321 2003-10-10  Simon Josefsson  <jas@extundo.com>
69322
69323         * m4/argp.m4: Add AC_C_INLINE.
69324
69325 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69326
69327         Merge getpass from libc, plus a few fixes.
69328
69329         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
69330         Include <stdbool.h>.
69331         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
69332         __fsetlocking to empty.
69333         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
69334         do include <bits/libc-lock.h>.
69335         Do not include <fcntl.h>; not needed.
69336         [_LIBC]: Include <wchar.h>.
69337         (NOTCANCEL_MODE): New macro.
69338         (flockfile, funlockfile) [_LIBC]: New macros.
69339         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
69340         [!_LIBC]: New macros.
69341         (call_fclose): New function.
69342         (getpass): Use it.  Save tty stream separately; this simplifies the
69343         code and makes it more reliable if stdin happens to equal stdout.
69344         Invoke __fsetlocking on tty.
69345         Handle thread cancellation if needed.
69346         Namespace cleanup (use __tcgetattr, __getline).
69347         Use bool for Booleans.
69348         [USE_IN_LIBIO]: Handle wide streams.
69349         [!_LIBC]: Unconditionally do the fseek, since we don't know what
69350         stream might go where.
69351
69352         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
69353         doesn't have to include <stdio.h> before us.
69354         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
69355         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
69356         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
69357         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
69358         if not declared, so that we can use getpass.c code from libc without
69359         rewriting it.
69360         (flockfile, ftrylockfile, funlockfile): New macros.
69361
69362 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69363
69364         * modules/getpass: Depend on stdbool.
69365
69366 2003-10-08  Paul Eggert  <eggert@twinsun.com>
69367
69368         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
69369
69370 2003-10-07  Karl Berry  <karl@gnu.org>
69371
69372         * config/config.{guess,sub}: update from config.
69373
69374 2003-10-06  Jim Meyering  <jim@meyering.net>
69375             Bruno Haible  <bruno@clisp.org>
69376
69377         This lets translators provide better translations for the
69378         "Written by ..." part of --version output.
69379         * lib/version-etc.h: Include stdarg.h.
69380         (version_etc_copyright): Declare as readonly.
69381         (version_etc): Make this function variadic with a NULL-terminated list
69382         of author name strings.
69383         (version_etc_va): New declaration.
69384         * lib/version-etc.c: Include stdarg.h, stdlib.h.
69385         (version_etc_copyright): Declare as readonly.
69386         (version_etc_va): New function. Provide a different translatable string
69387         for each possible number of authors < 10. Abbreviate when there are 10
69388         authors or more.
69389         (version_etc): Make this function variadic. Call version_etc_va.
69390         Suggestion from Gary V. Vaughan.
69391
69392         * lib/long-options.h (parse_long_options): Change prototype: the
69393         authors string is moved to the end and becomes variadic.
69394         * lib/long-options.c: Include stdarg.h.
69395         (parse_long_options): Make this function variadic, too.
69396         Call version_etc_va, not version_etc.
69397
69398 2003-10-06  Bruno Haible  <bruno@clisp.org>
69399
69400         * modules/version-etc-2: Remove file.
69401         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
69402
69403 2003-10-06  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/fatal-signal: New file.
69406         * MODULES.html.sh (func_all_modules): Add fatal-signal.
69407
69408 2003-10-06  Bruno Haible  <bruno@clisp.org>
69409
69410         * m4/fatal-signal.m4: New file.
69411         * m4/signalblocking.m4: New file, from GNU gettext.
69412
69413 2003-10-06  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/version-etc-2.h: Remove file.
69416         * lib/version-etc-2.c: Remove file.
69417
69418 2003-10-06  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/fatal-signal.h: New file, from GNU gettext.
69421         * lib/fatal-signal.c: New file, from GNU gettext.
69422
69423 2003-10-05  Paul Eggert  <eggert@twinsun.com>
69424
69425         * README: Rework advice for preventing empty .o files.
69426         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
69427         not <sys/types.h>.
69428
69429 2003-10-04  Karl Berry  <karl@gnu.org>
69430
69431         * lib/argp*: update from libc.
69432
69433 2003-10-04  Karl Berry  <karl@gnu.org>
69434
69435         * config/config.{guess,sub}: update from config.
69436
69437 2003-10-02  Bruno Haible  <bruno@clisp.org>
69438
69439         * modules/lchown (Include): Add lchown.h.
69440         * modules/time_r (Include): Use "..." syntax.
69441         * modules/xgetdomainname (Include): Add xgetdomainname.h.
69442
69443 2003-10-01  Simon Josefsson  <jas@extundo.com>
69444
69445         * MODULES.html.sh (func_all_modules): Move gethostname from section
69446         'based on' to section 'lacking' POSIX:2001.
69447
69448 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
69449
69450         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
69451         to output mode on the same stream.
69452
69453 2003-09-29  Paul Eggert  <eggert@twinsun.com>
69454
69455         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
69456         Fix arg typo in previous patch.
69457
69458 2003-09-28  Jim Meyering  <jim@meyering.net>
69459
69460         * lib/error.c: Correct cpp indentation.
69461
69462 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69463
69464         * modules/free: New file.
69465
69466 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69467
69468         * m4/free.m4: New file.
69469
69470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
69471
69472         * lib/minmax.h (MIN, MAX)
69473         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
69474         Omit the special code that used __typeof__, since we worry that
69475         it could be more trouble than it's worth.  See:
69476         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
69477         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
69478
69479         * lib/free.c: New file.
69480
69481 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
69482
69483         Trivial fixes to Makefile.am parts of module listings.
69484         * modules/strstr: Append strstr.h to lib_SOURCES.
69485         * modules/strcase: Likewise, for strcase.h.
69486
69487 2003-09-27  Karl Berry  <karl@gnu.org>
69488
69489         * config/mkinstalldirs: update from automake.
69490
69491 2003-09-26  Paul Eggert  <eggert@twinsun.com>
69492
69493         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
69494         (error_tail): Do not loop, reallocating temporary buffer, since
69495         the output cannot contain more wide characters than the input
69496         contains bytes, the size must be big enough already.  This avoids
69497         one potential size overflow calculation.  Check for size overflow
69498         when calculating temporary buffer size.  Free temporary buffer
69499         when done, if it was allocated with malloc; this plugs a memory
69500         leak.  Remove casts from void * to pointers, that are no longer
69501         needed now that we're assuming C89 or better.
69502
69503         Merge error changes from glibc.
69504
69505         * lib/error.c, error.h: Update copyright notice header to match glibc.
69506         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
69507         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
69508         Disable cancellation while printing error.
69509         * lib/error.h: Prepend __ to parameter names.
69510
69511 2003-09-26  Jim Meyering  <jim@meyering.net>
69512
69513         * lib/error.c (error_tail): Move some declarations
69514         into inner scope where the local variables are used.
69515
69516 2003-09-26  Bruno Haible  <bruno@clisp.org>
69517
69518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
69519         stpncpy().
69520         Don't define stpncpy through config.h; it's now done through stpncpy.h.
69521
69522 2003-09-26  Bruno Haible  <bruno@clisp.org>
69523
69524         * lib/stpncpy.h (gnu_stpncpy): New declaration.
69525         (stpncpy): Define as alias for gnu_stpncpy.
69526         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
69527
69528 2003-09-25  Simon Josefsson  <jas@extundo.com>
69529
69530         * lib/xgetdomainname.h: New file.
69531         * lib/xgetdomainname.c: New file.
69532
69533 2003-09-25  Simon Josefsson  <jas@extundo.com>
69534             Bruno Haible  <bruno@clisp.org>
69535
69536         * modules/getdomainname: New file.
69537         * modules/xgetdomainname: New file.
69538         * MODULES.html.sh (func_all_modules): Add getdomainname,
69539         xgetdomainname.
69540
69541 2003-09-25  Simon Josefsson  <jas@extundo.com>
69542             Bruno Haible  <bruno@clisp.org>
69543
69544         * m4/getdomainname.m4: New file.
69545
69546 2003-09-25  Simon Josefsson  <jas@extundo.com>
69547             Bruno Haible  <bruno@clisp.org>
69548
69549         * lib/getdomainname.h: New file.
69550         * lib/getdomainname.c: New file.
69551
69552 2003-09-25  Karl Berry  <karl@gnu.org>
69553
69554         * lib/argp-fmtstream.c, argp-help.c: update from libc.
69555
69556 2003-09-25  Karl Berry  <karl@gnu.org>
69557
69558         * config/install-sh: update from automake.
69559
69560 2003-09-25  Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/version-etc-2: New file, from modules/version-etc with
69563         modifications.
69564         * MODULES.html.sh (func_all_modules): Add version-etc-2.
69565
69566 2003-09-25  Bruno Haible  <bruno@clisp.org>
69567
69568         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
69569         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
69570
69571 2003-09-24  Simon Josefsson  <jas@extundo.com>
69572
69573         * modules/xgethostname: Add xgethostname.h.
69574
69575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69576
69577         * lib/linebuffer.c (freebuffer): Don't free the argument, just
69578         the buffer associated with the argument.  Bug reported by
69579         Simon Josefsson.
69580
69581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
69582
69583         * README: Document assumptions that 'int' is at least 32 bits
69584         wide, that integer arithmetic is 2's complement without overflow,
69585         that there are no holes in integer values, that adding sizes of
69586         two nonoverlapping objects can't overflow, and that all-bits-zero
69587         yields scalar zero.  Fix spelling and capitalization typos.
69588
69589 2003-09-19  Karl Berry  <karl@gnu.org>
69590
69591         * lib/argp.h: update from libc.
69592
69593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69594
69595         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
69596         to avoid spurious warnings like "AC_RUN_IFELSE was called before
69597         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
69598
69599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
69600
69601         * gnulib-tool: Use "test -h", not "test -L", for portability
69602         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
69603         (tags_regexp): Remove, since \| doesn't conform to POSIX.
69604         (sed_extract_prog): Issue s commands one-by-one, rather than
69605         using \| in one s command.
69606
69607 2003-09-16  Paul Eggert  <eggert@twinsun.com>
69608
69609         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
69610         input error, instead of returning NULL the next time we are called
69611         (and therefore losing track of errno).
69612
69613 2003-09-16  Bruno Haible  <bruno@clisp.org>
69614
69615         * gnulib-tool (func_create_testdir): Warn about duplicated
69616         dependencies.
69617
69618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69619
69620         * modules/argmatch, modules/fatal, modules/obstack,
69621         modules/xalloc, modules/xgethostname: Sort dependencies by
69622         importance, not alphabetically.
69623
69624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
69625
69626         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
69627         fails, so that the caller gets the proper errno.
69628
69629         * lib/readutmp.c (read_utmp): Likewise.
69630         Check for fstat error.  Close stream and free storage
69631         when failing.
69632
69633 2003-09-14  Karl Berry  <karl@gnu.org>
69634
69635         * config/srclist.txt (strdup.c): disable for c89 changes.
69636
69637 2003-09-14  Jim Meyering  <jim@meyering.net>
69638
69639         * lib/getloadavg.c: Correct cpp indentation.
69640         * lib/strdup.c: Likewise.
69641         * lib/vasnprintf.c: Likewise.
69642
69643 2003-09-14  Bruno Haible  <bruno@clisp.org>
69644
69645         * modules/fwriteerror: New file.
69646         * MODULES.html.sh (func_all_modules): Add fwriteerror.
69647
69648 2003-09-14  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/fwriteerror.h: New file.
69651         * lib/fwriteerror.c: New file.
69652
69653 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69654
69655         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
69656         modules/xgethostname, modules/xalloc: Depend on exit.
69657
69658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69659
69660         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
69661
69662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
69663         and AC_MINIX, too, so that their extensions are available.
69664
69665         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
69666         This macro has been superseded by gl_BACKUPFILE.
69667
69668         More patches to assume C89 or better.
69669
69670         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
69671
69672         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
69673         unconditionally.
69674         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
69675         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
69676         Include <string.h>, <stdlib.h> unconditionally.
69677         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
69678         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
69679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
69680         headers or for string.h.
69681         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
69682         or strtoul.
69683
69684         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
69685         headers.
69686         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
69687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
69689         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
69690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69691         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
69692         memcpy, memset.
69693         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
69694         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
69695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
69696         strtol.
69697         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
69698         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
69699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
69700         strtoul.
69701
69702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
69703
69704         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
69705         * lib/obstack.c [!defined _LIBC]: Likewise.
69706         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
69707         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
69708         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
69709
69710         More changes to assume C89 or better.
69711
69712         * lib/error.c (error_tail): Assume vprintf.
69713
69714         * lib/argmatch.c (getenv): Remove decl.
69715         * lib/progreloc.c (get_full_program_name): Define via prototype.
69716         * lib/setenv.c (clearenv): Likewise.
69717         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
69718         needed.
69719         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
69720         (malloc, memcpy): Remove decls.
69721         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
69722         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
69723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69724         (memcpy): Remove macro.
69725         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
69726         (__P): Remove.  All uses removed.
69727         (PTR): Remove.  All uses changed to void *.
69728         (CHAR_BIT, NULL): Remove.
69729         (spaces, zeros, memset_space, memset_zero)
69730         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
69731         Remove.
69732         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
69733         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
69734         Define with prototype.
69735         Remove now-unnecessary prototype decl.
69736         (extra_args_spec): Assume ANSI C.  All uses changed.
69737         (extra_args_spec_iso): Remove.
69738         (my_strftime, emacs_strftimeu): Define via prototype.
69739         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
69740         unconditionally.
69741         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
69742         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
69743         (strtoul, strtol): Remove decls.
69744         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
69745         LONG_MAX): Remove.
69746         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
69747         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
69748         (LOCALE_PARAM_PROTO): New macro.
69749         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
69750         (INTERNAL (strtol), strtol): Define with a prototype.
69751         (PARAMS): Remove.  All uses removed.
69752         * lib/tempname.c: Include <string.h> unconditionally.
69753         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
69754         * lib/xgethostname.c (main): Define with a prototype.
69755         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
69756         Include <stdlib.h> unconditionally.
69757         (calloc, malloc, realloc, free): Remove decls.
69758         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
69759         Include <stdlib.h> unconditionally.  Sort include file names.
69760         (strtod): Remove.
69761         (xstrtod): Define with a prototype.
69762         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
69763         (strtol, strtoul): Remove decls.
69764
69765 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69766
69767         More patches to assume C89 or better.
69768         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
69769         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
69770         string.h, memchr, STDC_HEADERS.
69771
69772 2003-09-11  Paul Eggert  <eggert@twinsun.com>
69773
69774         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
69775         Include <stdlib.h>, <string.h> unconditionally.
69776         Remove now-unnecessary cast to char *.
69777         * lib/strnlen.c: Include <string.h> unconditionally.
69778         * lib/yesno.c (yesno): Define with a prototype.
69779
69780 2003-09-11  Bruno Haible  <bruno@clisp.org>
69781
69782         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
69783
69784 2003-09-10  Jim Meyering  <jim@meyering.net>
69785
69786         * lib/error.c: Correct indentation of cpp directives.
69787
69788 2003-09-10  Bruno Haible  <bruno@clisp.org>
69789
69790         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
69791         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
69792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
69793         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
69794         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
69795         <stdlib.h> and <string.h> checks.
69796         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
69797         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
69798
69799 2003-09-10  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/strcspn.c: Include <string.h> unconditionally.
69802         * lib/strpbrk.c: Include <string.h> unconditionally.
69803         * lib/strstr.c: Include <string.h> unconditionally.
69804         * lib/unicodeio.c: Include <string.h> unconditionally.
69805         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
69806         * lib/unsetenv.c: Likewise.
69807         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
69808         * lib/yesno.c: Include <stdlib.h> unconditionally.
69809         (rpmatch): Add prototype.
69810
69811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69812
69813         More patches to assume C89 or better.
69814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
69815         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
69816         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
69817         or for string.h.
69818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
69819         stdlib.h.
69820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
69821         C headers.
69822         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
69823         string.h.
69824         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
69825         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
69826         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
69827         or for string.h.
69828         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
69829         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
69830         C headers.
69831         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
69832         memcpy.
69833         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
69834         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
69835         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
69836         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
69837         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
69838         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
69839         string.h, free.
69840         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
69841         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
69842         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
69843         C headers, or for string.h.
69844         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
69845         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
69846         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
69847         headers, memory.h, stdlib.h, string.h, strings.h.
69848         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
69849         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
69850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
69851         strchr.
69852         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
69853         headers, memory.h, string.h.
69854         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
69855         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
69856         free.
69857         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
69858         headers.
69859         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
69860         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
69861         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
69862         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
69863         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
69864
69865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69866
69867         More K&R removal.
69868
69869         * lib/acosl.c (main): Use a prototype.
69870         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
69871         tanl.c: Likewise.
69872
69873         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
69874
69875         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
69876         (getopt, etopt_long, getopt_long_only, _getopt_internal)
69877         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
69878         with a prototype.
69879         * lib/getopt.c (const): Remove macro.
69880         Include <string.h> unconditionally.
69881         (my_index): Remove; all uses changed to strchr.
69882         (strlen): Remove decl.
69883         (exchange): Remove forward decl; no longer needed.
69884         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
69885         Define with prototype.
69886         * lib/getopt1.c (const): Remove macro.
69887         (getopt_long, getopt_long_only, main): Define with prototype.
69888
69889         * lib/getugroups.c: Include <string.h> unconditionally.
69890
69891         * lib/getusershell.c: Include <stdlib.h> unconditionally.
69892         (getusershell, setusershell, endusershell, readname, main):
69893         Define with prototypes.
69894
69895         * lib/group-member.c: Include group-member.h first.
69896         Include <stdlib.h> unconditionally.
69897
69898         * lib/hard-locale.c: Include hard-locale.h first.
69899         Include <stdlib.h>, <string.h> unconditionally.
69900
69901         * lib/hash.c (free, malloc): Remove decls.
69902         Include <stdlib.h> unconditionally.
69903
69904         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
69905         (getenv): Do not declare.
69906
69907         * lib/idcache.c: Include <string.h> unconditionally.
69908
69909         * lib/long-options.c: Include long-options.h first, to test interface.
69910         Include <stdlib.h> unconditionally.
69911
69912         * lib/makepath.c: Include makepath.h first, to test interface.
69913         Include <stdlib.h> and <string.h> unconditionally.
69914
69915         * lib/linebuffer.c: Include <stdlib.h>.
69916         (free): Remove decl.
69917
69918         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
69919         stddef.h. rpl_malloc returns void *, not char *.
69920         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
69921         prototype.
69922
69923         * lib/md5.h: Include <limits.h> unconditionally.
69924         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
69925         (__P): Remove; all uses removed.
69926         * lib/md5.c: Include "md5.h" first.
69927         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
69928         md5_buffer, md5_process_bytes, md5_process_block):
69929         Define with prototypes.
69930         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
69931         * lib/sha.c: Include "sha.h" first.
69932         Include <stdlib.h>, <string.h> unconditionally.
69933
69934         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
69935         * lib/memcmp.c (__ptr_t): Likewise.
69936         * lib/memrchr.c (__ptr_t): Likewise.
69937         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
69938         Include <string.h> unconditionally.
69939         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
69940         * lib/memchr.c: Include <stdlib.h> unconditionally.
69941         * lib/memchr.c (LONG_MAX): Remove.
69942         * lib/memrchr.c (LONG_MAX): Likewise.
69943         * lib/memchr.c (__memchr): Define via a prototype.
69944         * lib/memrchr.c (__memrchr): Likewise.
69945         * lib/memcmp.c (__P): Remove, and remove all uses.
69946         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
69947         Remove forward decls; no longer needed.
69948         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
69949         Use types required by C89 in prototype.
69950
69951         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
69952         * lib/savedir.c: Likewise.
69953         * lib/mkdir.c (free): Remove decl.
69954         * lib/rmdir.c (rmdir): Define with a prototype.
69955         * lib/savedir.c: Include savedir.h first, to test interface.
69956
69957         * lib/mktime.c (STDC_HEADERS): Remove.
69958         Include <stdlib.h>, <string.h> unconditionally.
69959
69960         * lib/modechange.c: Include <stdlib.h> unconditionally.
69961         (malloc): Remove decl.
69962
69963         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
69964         (free): Remove decl.
69965
69966         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
69967         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
69968         (This type really should be intptr_t, but that's a C99ism.)
69969         (_obstack_memcpy): Remove: all uses changed to memcpy.
69970         Include <string.h> unconditionally.
69971         (struct obstack): Assume __STDC__ for types of members
69972         chunkfun, freefun, extra_arg.
69973         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69974         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69975         obstack_begin, obstack_specify_allocation,
69976         obstack_specify_allocation_with_arg, obstack_chunkfun,
69977         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69978         Remove unprototyped decls and the macros that use them.
69979         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69980         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69981         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69982         (defined __STDC__ && __STDC__)]:
69983         Remove nonprototyped code.
69984         Include <stdlib.h> unconditionally.
69985         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69986         _obstack_allocated_p, _obstack_free, obstack_free,
69987         _obstack_memory_used, print_and_abort):
69988         Define using prototypes.
69989         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69990         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69991         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69992         obstack_next_free, obstack_object_size, obstack_room) [0]:
69993         Remove unused, unprototyped code.
69994
69995         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69996
69997         * lib/physmem.c (physmem_total, physmem_available, main): Define
69998         with prototypes.
69999
70000         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70001         (main): Define with a prototype.
70002
70003         * lib/posixver.c (getenv): Remove decl.
70004
70005         * lib/putenv.c (malloc): Returns void *, not char *.
70006         Include <string.h> unconditionally.
70007         (strchr, memcpy, NULL): Do not define.
70008
70009         * lib/readtokens.c: Include readtokens.h first, to test interface.
70010         Include <stdlib.h>, <string.h> unconditionally.
70011         (init_tokenbuffer): Define with a prototype.
70012
70013         * lib/regex.c (PARAMS): Remove.  All uses removed.
70014         All uses of _RE_ARGS removed, too.
70015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70016         unconditionally.
70017         (bzero): Assume memset exists.
70018         (memcmp, memcpy, NULL): Remove.
70019         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70020         char, or assignments to local vars of type signed char.
70021         (init_syntax_once, PREFIX(extract_number_and_incr),
70022         PREFIX(print_partial_compiled_pattern),
70023         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70024         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70025         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70026         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70027         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70028         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70029         wcs_compile_range, byte_compile_range, truncate_wchar,
70030         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70031         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70032         count_mbs_length, wcs_re_match_2_internal,
70033         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70034         PREFIX(alt_match_null_string_p),
70035         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70036         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70037         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70038         now-unnecessary declaration, if any.
70039         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70040         regcomp, regexec):
70041         Remove now-unnecessary casts among pointer types.
70042         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70043
70044         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70045         (free): Remove decl.
70046
70047         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70048
70049         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70050         (free): Remove decl.
70051
70052         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70053         * lib/xgetcwd.c: Likewise.
70054
70055         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70056         (free): Remove decl.
70057
70058         * lib/strchrnul.c (strchrnul): Define with a prototype.
70059         Fix bug: c_in was not converted to char before searching.
70060
70061         The following changes are not K&R related:
70062
70063         * lib/group-member.h: Include <sys/types.h>, so that this file is
70064         self-contained.
70065         * lib/makepath.h: Likewise.
70066
70067         * lib/getusershell.c (readname, default_index, line_size, readname):
70068         Use size_t, not int, for sizes.
70069         (readname): If the size overflows, report an error instead of
70070         looping forever.
70071
70072 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70073
70074         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70075         libc.
70076
70077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70078
70079         * README: New section: portability guidelines.
70080
70081 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70082
70083         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70084         C89 spec.
70085
70086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70087
70088         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70089
70090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70091
70092         Assume C89 or better; remove K&R cruft.
70093         A few of these changes were first proposed by Derek Robert Price
70094         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70095
70096         * lib/addext.c: Include <string.h> unconditionally.
70097         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70098         Don't declare getenv or malloc.
70099
70100         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70101         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70102         (NULL): Remove.
70103         (find_stack_direction, alloca): Use prototypes.
70104
70105         * lib/atexit.c (atexit): Define using a prototype.
70106
70107         * lib/basename.c, dirname.c, stripslash.c:
70108         Include <string.h> unconditionally.
70109
70110         * lib/bcopy.c: Include <stddef.h>.
70111         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70112
70113         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70114
70115         * lib/error.h (error, error_at_line, error_print_progname)
70116         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70117         * lib/error.c: Include error.h first, to check interface.
70118         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70119         (VA_START): Remove; all uses changeed to va_start.
70120         (exit, strerror): Remove decls.
70121         (error_print_progname): Prototype uncondionally.
70122         Don't include <errno.h>; no longer needed.
70123         (private_strerror): Remove.
70124         (error_tail): Always define.
70125         (error, error_at_line): Assume C89 or better; always use prototypes.
70126         * lib/fatal.c: Include "fatal.h" first, to test interface.
70127         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70128         (VA_START): Remove; all uses changed to va_start.
70129         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70130         this case.
70131         (exit): Remove decl.
70132         (fatal): Prototype unconditionally.  Assume va_start works.
70133         Abort at end, to pacify gcc.
70134
70135         * lib/euidaccess.c (main): Define with a prototype.
70136
70137         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70138
70139         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70140
70141         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70142         prototypes.
70143         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70144         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70145         (getenv): Remove decl.
70146         (fnmatch): Define using a prototype.
70147         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70148         (FCT): Define using a prototype.
70149
70150         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70151
70152         * lib/gethostname.c: Include <stddef.h>.
70153         (gethostname): Define with prototype.  Length is size_t, not int.
70154
70155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70156
70157         Assume C89 or better; remove K&R cruft.
70158         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70159         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70160         string.h, getenv, malloc.
70161         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70162         headers.
70163         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70164         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70165         do not check for strerror.
70166         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70167         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70168         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70169         do not check for doprnt or vprintf.
70170         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70171         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70172
70173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70174
70175         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70176         getversion.c should have been removed then, but was accidentally
70177         preserved.
70178
70179         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70180         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70181
70182 2003-09-08  Karl Berry  <karl@gnu.org>
70183
70184         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70185                 config, forget about prep.
70186
70187         * config/depcomp, missing: update from automake.
70188
70189 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70190
70191         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70193
70194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70195
70196         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70197         copy_tm_result.  Bug reported by Simon Josefsson in
70198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70199
70200 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70201
70202         * m4/time_r.m4: New file.
70203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70205         is. Check for timegm declaration.
70206         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70207         Do not check for gmtime_r.
70208         Replace mktime if __mktime_internal does not exist and if mktime
70209         hasn't been replaced already.
70210
70211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70212
70213         * lib/time_r.c, lib/time_r.h: New files.
70214
70215         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70216         __localtime_r.
70217         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70218         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70219
70220         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70221         __gmtime_r.
70222         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70223         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70224         Include <time_r.h>.
70225
70226         * lib/timegm.c: Switch to glibc implementation, with the following
70227         changes:
70228         [defined HAVE_CONFIG_H]: Include <config.h>.
70229         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70230         (__mktime_internal) [!defined _LIBC]: New decl.
70231         (__gmtime_r) [!defined _LIBC]: New macro and function.
70232         (timegm): Use a prototype, since gnulib assumes C89.
70233         Do not bother declaring tmp to be const, as it's not really usefu.
70234         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70235         (timegm): Declare only if HAVE_DECL_TIMEGM.
70236
70237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70238
70239         * MODULES.html.sh (func_all_modules): Add time_r.
70240         * modules/time_r: New file.
70241         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
70242         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
70243
70244 2003-09-03  Paul Eggert  <eggert@twinsun.com>
70245
70246         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
70247         Bug reported by Lute Kamstra in
70248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
70249
70250         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
70251         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
70252         course with correspondingly smaller numbers for tomorrow and
70253         yesterday.  From Tadayoshi Funaba.  Originally installed into
70254         sh-utils on 1999-08-07, but the patch got lost (I guess during the
70255         coreutils merge?).
70256
70257 2003-08-31  Simon Josefsson  <jas@extundo.com>
70258
70259         * modules/timegm: New file.
70260         * MODULES.html.sh (func_all_modules): Add timegm.
70261
70262 2003-08-31  Simon Josefsson  <jas@extundo.com>
70263
70264         * m4/timegm.m4: New file.
70265
70266 2003-08-31  Simon Josefsson  <jas@extundo.com>
70267
70268         * lib/timegm.h: New file.
70269         * lib/timegm.c: New file.  Based on
70270         wget-1.8.2/src/http.c:mktime_from_utc.
70271
70272 2003-08-31  Karl Berry  <karl@gnu.org>
70273
70274         * lib/argp.h: update from libc.
70275
70276 2003-08-28  Bruno Haible  <bruno@clisp.org>
70277
70278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
70279         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
70280         followed by '#define fnmatch fnmatch_posix' gives an error.
70281
70282 2003-08-28  Bruno Haible  <bruno@clisp.org>
70283
70284         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
70285         warning on QNX, which defines O_BINARY to 000000.
70286
70287 2003-08-27  Jim Meyering  <jim@meyering.net>
70288
70289         * m4/mkstemp.m4: Require that the system mkstemp be able to create
70290         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
70291         would fail after 32.  Reported by Danny Levinson.  Details here:
70292         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
70293
70294 2003-08-24  Bruno Haible  <bruno@clisp.org>
70295
70296         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
70297         MSVC7 <stdio.h> is included later.
70298
70299 2003-08-22  Simon Josefsson  <jas@extundo.com>
70300
70301         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
70302
70303 2003-08-20  Karl Berry  <karl@gnu.org>
70304
70305         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
70306
70307 2003-08-20  Bruno Haible  <bruno@clisp.org>
70308
70309         * modules/progname: New file.
70310         * MODULES.html.sh (func_all_modules): Add progname.
70311
70312 2003-08-20  Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/progname.h: New file, from GNU gettext.
70315         * lib/progname.c: New file, from GNU gettext.
70316         * lib/progreloc.c: New file, from GNU gettext.
70317
70318 2003-08-19  Jim Meyering  <jim@meyering.net>
70319
70320         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
70321         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
70322
70323 2003-08-19  Bruno Haible  <bruno@clisp.org>
70324
70325         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
70326         more.
70327
70328 2003-08-19  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/xstrdup.c: Assume <string.h> exists.
70331
70332 2003-08-18  Paul Eggert  <eggert@twinsun.com>
70333
70334         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
70335         in makefile rules.
70336
70337 2003-08-18  Jim Meyering  <jim@meyering.net>
70338
70339         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
70340         * m4/lib-ld.m4: Likewise.
70341
70342 2003-08-18  Jim Meyering  <jim@meyering.net>
70343
70344         * lib/setenv.h: Indent nested cpp directive.
70345         * lib/vasnprintf.c: Remove trailing blanks.
70346
70347 2003-08-17  Simon Josefsson  <jas@extundo.com>
70348
70349         * modules/xstrndup: New file.
70350         * MODULES.html.sh (func_all_modules): Add xstrndup.
70351
70352 2003-08-17  Simon Josefsson  <jas@extundo.com>
70353
70354         * modules/argp: Fix autoconf macro name. Add more dependencies.
70355
70356 2003-08-17  Simon Josefsson  <jas@extundo.com>
70357
70358         * m4/xstrndup.m4: New file.
70359
70360 2003-08-17  Simon Josefsson  <jas@extundo.com>
70361
70362         * m4/argp.m4: New file.
70363
70364 2003-08-17  Simon Josefsson  <jas@extundo.com>
70365             Bruno Haible  <bruno@clisp.org>
70366
70367         * lib/xstrndup.h: New file.
70368         * lib/xstrndup.c: New file.
70369
70370 2003-08-17  Bruno Haible  <bruno@clisp.org>
70371
70372         * modules/strndup (Files, Include): Add lib/strndup.h.
70373
70374 2003-08-17  Bruno Haible  <bruno@clisp.org>
70375
70376         * modules/euidaccess (Files): Add lib/euidaccess.h.
70377
70378 2003-08-17  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/strndup.h: New file.
70381
70382 2003-08-17  Bruno Haible  <bruno@clisp.org>
70383
70384         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
70385         like AC_GNU_SOURCE.
70386         * modules/extensions (configure.ac): Comment out the invocation of
70387         gl_USE_SYSTEM_EXTENSIONS.
70388
70389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70390
70391         Merges from coreutils, etc.
70392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
70393         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
70394         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
70395         fixing a typo.
70396         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
70397         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
70398
70399 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70400
70401         Document merge from coreutils.
70402         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
70403         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
70404         * modules/utime: Add m4/utimes-null.m4.
70405
70406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70407
70408         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
70409         space, undoing this 2003-08-12 change:
70410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70411
70412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
70413
70414         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
70415         strtoul.c from libc, undoing this 2003-08-12 change:
70416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
70417
70418 2003-08-16  Jim Meyering  <jim@meyering.net>
70419
70420         Merges from coreutils.
70421         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
70422         prefix.  Adjust cache variables similarly.  Create 500 rather than
70423         just 300 files, to exercise bug on Darwin6.5, too.
70424         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
70425         $missing_dir.
70426         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
70427         AM_SYS_POSIX_TERMIOS.
70428         Reported by mkc@mathdogs.com.
70429         Also change use of $am_cv_sys_posix_termios
70430         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
70431         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
70432         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
70433         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
70434         in /proc/mounts until it finds one with matching device number.  This
70435         is unnecessary when the FILE argument *is* a mount point.  No stat call
70436         is necessary in that case.  So, disable the statvfs-testing code on
70437         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
70438         as RedHat bug# 84846.
70439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70440         to 1MB, so as not to render systems with no stack size limit (e.g.,
70441         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70442         Include <unistd.h>.  On some systems,
70443         it is required for the definition of _SC_PAGESIZE.
70444
70445 2003-08-16  Jim Meyering  <jim@meyering.net>
70446
70447         Merge from coreutils.
70448         * lib/xstrtoimax.c: #else #if -> #elif.
70449         * lib/xstrtoumax.c: Likewise.
70450
70451 2003-08-16  Jim Meyering  <jim@meyering.net>
70452
70453         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
70454         * m4/utimes.m4: Removed.
70455         * m4/utimes-null.m4: Renamed from utimes.m4.
70456
70457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
70458         to 1MB, so as not to render systems with no stack size limit (e.g.,
70459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
70460         Include <unistd.h>.  On some systems,
70461         it is required for the definition of _SC_PAGESIZE.
70462
70463 2003-08-16  Jim Meyering  <jim@meyering.net>
70464         and Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         Merges from coreutils, etc.
70467
70468         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
70469         using the latest version from cvs.  This avoids problems with #line
70470         directives using a vendor (Sun) compiler.
70471         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
70472         Don't set GETGROUPS_LIB here; now it's
70473         done via getgroups.m4's wrapper function.
70474         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
70475         rather than just in sh-util/configure.in, so that the
70476         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
70477         same.
70478         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
70479         AC_FUNC_GETLOADAVG where to find getloadavg.c.
70480         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
70481         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
70482         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
70483         Remove code that is now done by the newly-required macros.
70484         Append $(EXEEXT) to DF_PROG.
70485         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
70486         Do not invoke or require the following here,
70487         since prereq.m4 or some gnulib .m4 now does this for us:
70488         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
70489         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
70490         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
70491         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
70492         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
70493         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
70494         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
70495         AC_FUNC_OBSTACK.
70496         Do not replace the following functions, as this is now the job
70497         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
70498         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
70499         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
70500         atexit getpass, strdup, getpagesize.
70501         Replace 'raise'.
70502         Do not check for the following functions, as this is now the job
70503         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
70504         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
70505         setregid.
70506         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
70507         Check for sys/sysctl.h.
70508         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
70509         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
70510         of checking for ssize_t ourselves.
70511
70512         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
70513         Require every macro that gnulib/modules/* suggests for us.
70514         (jm_PREREQ_ADDEXT): New macro.
70515         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
70516         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
70517
70518         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
70519         (gl_PHYSMEM): Use it.
70520         Also check for `table' function.
70521         Check for new headers and functions.
70522         Add check for sys/sysmp.h.
70523         With suggestions from Kaveh Ghazi.
70524         Ignore headers that are present but cannot be compiled.  This
70525         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
70526         C 5.4.
70527
70528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70529
70530         Document merge from coreutils.
70531         * modules/userspec: Depend on posixver.
70532         * modules/strftime: Depend on tzset.
70533
70534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70535
70536         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
70537         rather than tab, after '#' in shell-script copyright notices.
70538         Suggested by Bruno Haible.
70539
70540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
70541
70542         * config/srclist-update: Use three spaces, rather than tab, after '#'
70543         in shell-script copyright notices.  Suggested by Bruno Haible.
70544         Remove unnecessary parenthesization in regular expression.
70545
70546 2003-08-15  Jim Meyering  <jim@meyering.net>
70547
70548         Merge from coreutils.
70549         * lib/xgethostname.c: Include <stdlib.h>.
70550         (xghostname): Don't exit for anything other than memory-related
70551         failure; just return NULL.
70552         * lib/userspec.c: Include "posixver.h".
70553         (parse_user_spec): Accept `.' as a separator only
70554         in pre-POSIX-200112 mode.
70555         * lib/strtoimax.c: Use #elif rather than #else #if.
70556         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
70557         Remove function, now that we can rely on a working tzset function.
70558         [!_LIBC]: Ensure that the required autoconf test has been run.
70559         [!defined _NL_CURRENT && HAVE_STRFTIME]:
70560         Use underlying_strftime for %r.
70561         * lib/sha.c: Merge in some clean-up and optimization changes from
70562         glibc.
70563         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
70564         Ensure that it is a multiple of 64.
70565         Rearrange loop exit tests so as to avoid performing an
70566         additional fread after encountering an error or EOF.
70567         * lib/realloc.c: Update copyright date.
70568
70569 2003-08-15  Jim Meyering  <jim@meyering.net>
70570         and Paul Eggert  <eggert@twinsun.com>
70571
70572         Merge from coreutils.
70573         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
70574         member but strut utmpx does not.  Needed for AIX 4.3.3.
70575         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
70576
70577 2003-08-15  Jim Meyering  <jim@meyering.net>
70578         and Paul Eggert  <eggert@cs.ucla.edu>
70579
70580         Merges from coreutils, etc.
70581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
70582         Require gl_FUNC_TZSET_CLOBBER.
70583         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
70584         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
70585         members.
70586
70587 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70588
70589         Help the merge from coreutils.
70590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
70591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
70592         * m4/tzset.m4: Use it too.
70593
70594 2003-08-14  Paul Eggert  <eggert@twinsun.com>
70595
70596         * modules/tzset: New file.
70597
70598 2003-08-14  Jim Meyering  <jim@meyering.net>
70599
70600         Merges from coreutils.
70601         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
70602         variable names, rather than @FNMATCH_H@.
70603         * modules/alloca: Likewise for $(ALLOCA_H).
70604
70605         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
70606         the three copies of the literal target, `fnmatch.h'.
70607         * modules/alloca (alloca.h): Likewise.
70608
70609 2003-08-14  Jim Meyering  <jim@meyering.net>
70610
70611         Merge from coreutils.
70612         * m4/tzset.m4: New file.
70613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
70614         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
70615         otherwise, AIX 5.1 systems would end up using the latter.
70616         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
70617         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
70618         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
70619         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
70620
70621 2003-08-14  Jim Meyering  <jim@meyering.net>
70622
70623         Merge from coreutils.
70624         * lib/obstack.h: Whitespace changes.
70625         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
70626         and xcalloc return values.
70627         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
70628         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
70629         hang on OSF/1 5.1 for DIR on both local and remote file systems.
70630         Reported by (and fix confirmed by) Nelson H. F. Beebe.
70631         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70632         error from mntctl.
70633         Use mntctl's return value to drive the entry-processing loop, since
70634         we can't rely on the value of the vmt_length member in the last
70635         entry.  On some systems doing so could result in exhausting
70636         virtual memory.  Based in part on a patch from Mike Jetzer.
70637
70638 2003-08-14  Jim Meyering  <jim@meyering.net>
70639         and Paul Eggert  <eggert@twinsun.com>
70640
70641         Merges from coreutils, plus other fixes.
70642         * lib/physmem.c: Merge in portability changes from gcc/libiberty
70643         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
70644         for credits and details.  Thanks to Kaveh Ghazi for helping
70645         to keep these files in sync.
70646         (ARRAY_SIZE): Define it.
70647         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
70648         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
70649         (memcasecmp): Don't assume size_t fits in unsigned int.
70650         Remove casts and duplicate code.
70651         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
70652         (memcpy): Remove definition.
70653         Merge in some clean-up and optimization changes from glibc.
70654         [BLOCKSIZE]: Move definition to top of file.
70655         Ensure that it is a multiple of 64.
70656         Rearrange loop exit tests so as to avoid performing an
70657         additional fread after encountering an error or EOF.
70658         * lib/md5.h (md5_uintptr): Define.
70659         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
70660         return to the initial working directory.  Preserve errno
70661         for caller.
70662         * lib/idcache.c: Include "xalloc.h".
70663         (xmalloc, xrealloc): Remove decls.
70664         (getuser): Remove casts no longer required in C89.
70665         * lib/human.c: Include stdio.h, for sprintf.
70666         * lib/group-member.c: Include "xalloc.h".
70667         (xmalloc, xrealloc): Remove decls.
70668         (get_group_info): Remove casts no longer required in C89.
70669         * lib/getusershell.c (readname): Remove casts no longer required in
70670         C89.
70671         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
70672         * lib/getline.c: Whitespace fix, from coreutils.
70673
70674 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70675
70676         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
70677         Check for isascii.
70678
70679         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70680         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70681         Undo previous (whitespace-only) change.
70682
70683 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70684
70685         * lib/exclude.c: Include <ctype.h>
70686         (IN_CTYPE_DOMAIN): New macro.
70687         (is_space): New fn.
70688         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
70689         and empty lines.
70690
70691         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70692         Undo previous (whitespace-only) change.
70693
70694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
70695
70696         * config/srclist-update: Change update back to the old behavior,
70697         leaving whitespace alone.  Use one 'sed' command rather than a
70698         pipeline.
70699         (fixlicense): Now a variable, not a function.
70700         (remove_trailing_blanks): Remove.
70701         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
70702         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70703         Undo previous (whitespace-only) change.
70704
70705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70706
70707         Merge from coreutils.
70708         * modules/euidaccess: Add lib_SOURCES, include for new
70709         file euidaccess.h
70710
70711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70712
70713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
70714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
70715         Normalize leading white space and remove trailing white space.
70716
70717         Merge from coreutils
70718         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
70719
70720         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
70721         0.12.1.  These files are now being upgraded automatically by
70722         ../config/srclist-update.
70723
70724 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70725
70726         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
70727         Normalize leading white space and remove trailing white space.
70728         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
70729         notice, as per ../config/srclist-update.
70730
70731         Merge from coreutils.
70732         * lib/euidaccess.h: New file.
70733         * lib/euidaccess.c: Include it.
70734         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
70735         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
70736         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
70737
70738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
70739
70740         * config/srclist-update: Add copyright notice.
70741         (remove_id_lines, remove_trailing_blanks): New constants.
70742         (fixfile): Use them to normalize spacing a bit in copied files.
70743         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
70744         Normalize leading white space and remove trailing white space.
70745
70746         * config/texinfo.tex: Sync with texinfo.
70747
70748         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
70749         strtoul.c from libc, to merge coreutils whitespace changes.
70750
70751         * config/srclist.txt: Get the following m4 files from gettext:
70752         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
70753         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
70754         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
70755         wint_t.m4.
70756
70757 2003-08-12  Karl Berry  <karl@gnu.org>
70758
70759         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
70760         been made.
70761
70762 2003-08-11  Paul Eggert  <eggert@twinsun.com>
70763
70764         * modules/gnu-source, m4/gnu-source.m4:
70765         Remove; we're assuming Autoconf 2.54 or later now.
70766         Suggested by Bruno Haible.
70767         * MODULES.html.sh (func_all_modules): Remove gnu-source.
70768
70769 2003-08-11  Bruno Haible  <bruno@clisp.org>
70770
70771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
70772
70773 2003-08-11  Bruno Haible  <bruno@clisp.org>
70774
70775         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
70776         (vasnprintf): Use it instead of wcslen.
70777
70778 2003-08-11  Bruno Haible  <bruno@clisp.org>
70779
70780         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
70781         value to ensure that _Bool promotes to int. Use #define for _Bool when
70782         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
70783
70784 2003-08-10  Karl Berry  <karl@gnu.org>
70785
70786         * lib/regex.h: update from libc (whitespace fix).
70787
70788 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70789
70790         Merge some files from coreutils.  These changes were
70791         originally made by Jim Meyering.
70792         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
70793         many older Unixes require this.
70794         * lib/alloca.c (alloca): Remove cast to argument of free;
70795         no longer needed in C89.
70796         * lib/alloca_.h, regex.h: Fix white space to match
70797         what GNU indent does.
70798
70799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
70800
70801         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
70802         apparently Emacs's Unicode mode got confused before my 2003-08-05
70803         checkin.
70804
70805 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70806
70807         * m4/extensions.m4: New file.
70808         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
70809         Require gl_USE_SYSTEM_EXTENSIONS.
70810         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
70811         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
70812
70813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
70814
70815         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
70816         * modules/extensions, modules/gnu-source: New files.
70817         * modules/timespec, modules/unlocked-io: Depend on extensions.
70818
70819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70820
70821         * modules/restrict: New file.
70822         * MODULES.html.sh (func_all_modules): Add restrict.
70823         * modules/regex: Depend on restrict.
70824
70825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
70826
70827         * m4/restrict.m4: New file.
70828         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
70829
70830 2003-08-07  Bruno Haible  <bruno@clisp.org>
70831
70832         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
70833         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
70834
70835 2003-08-07  Bruno Haible  <bruno@clisp.org>
70836
70837         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
70838         makes the module 'getndelim2' compatible with the module 'getline'.
70839
70840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70841
70842         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
70843         byte with "\201" to avoid glitches when editing that source file
70844         with multi-gnome-terminal.
70845
70846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70847
70848         * lib/bumpalloc.h: Remove.
70849
70850 2003-08-05  Paul Eggert  <eggert@twinsun.com>
70851
70852         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
70853         * modules/bumpalloc: Remove.
70854
70855 2003-08-04  Paul Eggert  <eggert@twinsun.com>
70856
70857         * lib/getloadavg.c: Change copyright notice and spacing to conform to
70858         GNU coding style.
70859
70860         Merge from coreutils.
70861         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
70862         1. From glibc.
70863         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
70864         from Karl Berry, implemented by Jim Meyering.
70865         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
70866         from Dmitry V. Levin.
70867         Remove anachronistic cast of xrealloc.
70868         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
70869         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
70870         type. Otherwise, it wouldn't compile with at least /bin/cc on
70871         ymp-cray-unicos9.0.2.X.
70872         Combine two mostly-identical uses of alloca into one.
70873         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
70874
70875 2003-08-04  Dave Love  <d.love@dl.ac.uk>
70876
70877         [From Emacs.]
70878
70879         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
70880         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
70881         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
70882         obsolete NLIST_NAME_UNION.
70883         [__GNU__]: Undef BSD and FSCALE.
70884         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
70885
70886 2003-08-03  Paul Eggert  <eggert@twinsun.com>
70887
70888         * lib/stdbool_.h (_Bool): Make it signed char, instead of
70889         an enum type, so that it's guaranteed to promote to int.  See:
70890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
70891
70892 2003-08-03  Karl Berry  <karl@gnu.org>
70893
70894         * config/depcomp: update from automake.
70895
70896 2003-07-31  Paul Eggert  <eggert@twinsun.com>
70897
70898         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
70899         (strerror): Don't assume that a printable int fits in 14 bytes.
70900
70901 2003-07-31  Bruno Haible  <bruno@clisp.org>
70902
70903         * modules/getpass-gnu: New file.
70904         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
70905
70906 2003-07-31  Bruno Haible  <bruno@clisp.org>
70907
70908         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
70909
70910 2003-07-24  Karl Berry  <karl@gnu.org>
70911
70912         * config/missing: update from automake.
70913
70914 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
70915             Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
70918         * lib/getline.c (getline, getdelim): Likewise.
70919         Remove _GNU_SOURCE define; now it's defined in config.h through
70920         m4/getline.m4.
70921
70922 2003-07-23  Karl Berry  <karl@gnu.org>
70923
70924         * config/config.sub: update from prep.
70925
70926 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70927
70928         * modules/xalloc (Depends-on): Add exitfail.
70929         * modules/xmemcoll: Likewise.
70930
70931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
70932
70933         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
70934         over-parenthesization in macros.
70935
70936         Sync with coreutils.
70937
70938         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
70939         required by C99.
70940
70941         Use `exit_failure' for xalloc and xmemcoll instead of their own
70942         private exit-failure variables.
70943         * lib/xalloc.h (xalloc_exit_failure): Remove.
70944         * lib/xmalloc.c: Likewise.  Include exitfail.h.
70945         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
70946         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
70947         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
70948         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
70949
70950 2003-07-20  Jim Meyering  <jim@meyering.net>
70951
70952         * modules/closeout (Depends-on): Add exitfail.
70953         Suggestion from Bruno Haible.
70954
70955 2003-07-19  Karl Berry  <karl@gnu.org>
70956
70957         * config/config.sub: update from prep.
70958
70959 2003-07-18  Paul Eggert  <eggert@twinsun.com>
70960
70961         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
70962         Remove.
70963         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
70964         to test that it can stand by itself.  Include "exitfail.h".
70965         Clients should set exit_failure instead.
70966         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
70967
70968 2003-07-18  Bruno Haible  <bruno@clisp.org>
70969
70970         * modules/getndelim2: New file.
70971         * modules/getline: Share files with module getndelim2.
70972         * modules/getnline: Depend on getndelim2 instead of sharing files with
70973         it. Add getnline.c to lib_SOURCES.
70974         * MODULES.html.sh (func_all_modules): Add getndelim2.
70975
70976 2003-07-18  Bruno Haible  <bruno@clisp.org>
70977
70978         * m4/getndelim2.m4: New file.
70979         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70980         invoke gl_PREREQ_GETNDELIM2.
70981         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70982         gl_PREREQ_GETNDELIM2.
70983         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70984         gl_GETNDELIM2.
70985
70986 2003-07-18  Bruno Haible  <bruno@clisp.org>
70987
70988         * lib/getndelim2.h: New file.
70989         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70990         getndelim2.h.
70991         (getndelim2): Make non-static. Change return type to ssize_t.
70992         * lib/getline.h: Change argument names.
70993         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70994         * lib/getnline.c: Include getndelim2.h.
70995
70996 2003-07-18  Andreas Schwab  <schwab@suse.de>
70997
70998         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70999
71000 2003-07-17  Karl Berry  <karl@gnu.org>
71001
71002         * config/config.sub: update from prep.
71003
71004 2003-07-17  Bruno Haible  <bruno@clisp.org>
71005
71006         * modules/getnline: New file.
71007         * modules/getline: Add lib/getndelim2.c to source file list.
71008         * MODULES.html.sh (func_all_modules): Add getnline.
71009
71010 2003-07-17  Bruno Haible  <bruno@clisp.org>
71011
71012         * m4/getnline.m4: New file.
71013
71014 2003-07-17  Bruno Haible  <bruno@clisp.org>
71015
71016         * m4/Makefile.am.in: Remove file.
71017         * m4/Makefile.am: Remove file.
71018         * m4/Makefile.in: Remove file.
71019
71020 2003-07-17  Bruno Haible  <bruno@clisp.org>
71021
71022         * lib/getnline.h: New file.
71023         * lib/getnline.c: New file.
71024         * lib/getndelim2.c: New file, extracted from getline.c.
71025         (getndelim2): Renamed from getdelim2, with added nmax argument.
71026         * lib/getline.c: Include getndelim2.c.
71027         (getdelim2): Moved out to getndelim2.c.
71028         (getline, getdelim): Update.
71029
71030 2003-07-17  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/Makefile.am: Remove file.
71033         * lib/Makefile.in: Remove file.
71034
71035 2003-07-17  Bruno Haible  <bruno@clisp.org>
71036
71037         * configure.in: Remove file.
71038         * Makefile.in: Remove file.
71039
71040 2003-07-17  Bruno Haible  <bruno@clisp.org>
71041
71042         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71043
71044 2003-07-16  Karl Berry  <karl@gnu.org>
71045
71046         * config/srclist-update: was running fixlicense twice, which caused
71047                 texinfo.tex to be nullified for some reason.  Simplify,
71048                 $gplsrc is no longer needed as far as I can see?
71049
71050 2003-07-16  Jim Meyering  <jim@meyering.net>
71051
71052         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71053
71054 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71055
71056         * config/srclist.txt: Get the following files from gettext-runtime/intl
71057         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71058         ref-del.sin.  From Bruno Haible.
71059         * config/srclist-update (fixfile): Change grep pattern again, since the
71060         previous fix didn't work (there was another trailing $).  Use
71061         '[$]' to escape the $s.
71062
71063 2003-07-15  Karl Berry  <karl@gnu.org>
71064
71065         * lib/vasnprintf.c: update from gettext.
71066
71067 2003-07-15  Karl Berry  <karl@gnu.org>
71068
71069         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71070         gets expanded when surrounded by '$'.
71071
71072 2003-07-15  Jim Meyering  <jim@meyering.net>
71073
71074         * modules/save-cwd: Don't depend on error.  From Derek Price.
71075
71076 2003-07-15  Jim Meyering  <jim@meyering.net>
71077
71078         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71079
71080 2003-07-14  Simon Josefsson  <jas@extundo.com>
71081
71082         * modules/mempcpy: New file.
71083         * MODULES.html.sh (func_all_modules): Add mempcpy.
71084
71085 2003-07-14  Simon Josefsson  <jas@extundo.com>
71086
71087         * m4/mempcpy.m4: New file.
71088
71089 2003-07-14  Simon Josefsson  <jas@extundo.com>
71090
71091         * lib/mempcpy.h: New file.
71092         * lib/mempcpy.c: New file.
71093
71094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71095
71096         * modules/getdate, modules/posixtm: Depend on mktime.
71097
71098 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71099
71100         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71101         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71102         unicodeio.c, unicodeio.h, unlocked-io.h:
71103         Switch from LGPL to GPL.
71104
71105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71106
71107         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71108         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71109         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71110         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71111         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71112         updated automatically by ../config/srclist-update.  This changes
71113         their license from LPGL to GPL.
71114
71115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71116
71117         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71118         assumed to refer to the root of the most recent stable gettext version.
71119         * config/srclistvars.sh: Add defaults for eggert.
71120         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71121         Match "This program" as well as "The program".  This is needed
71122         for gettext.
71123
71124 2003-07-14  Jim Meyering  <jim@meyering.net>
71125
71126         Don't emit diagnostics.  Let callers do that.
71127         * lib/save-cwd.c: Don't include "error.h".
71128         (save_cwd): Don't call error.  Ensure that errno is valid
71129         when returning nonzero.
71130
71131         * lib/save-cwd.h (restore_cwd): Update prototype.
71132         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71133         Simplify.  Don't call error upon failure.  Let callers do that.
71134         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71135         when auditing is enabled.  But don't bother updating the #if.
71136
71137 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71138
71139         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71140         it breaks C++ compilation.
71141         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71142
71143 2003-07-10  Simon Josefsson  <jas@extundo.com>
71144
71145         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71146
71147 2003-07-10  Jim Meyering  <jim@meyering.net>
71148
71149         * m4/clock_time.m4: Remove trailing blank.
71150         * m4/intmax_t.m4: Likewise.
71151
71152 2003-07-10  Jim Meyering  <jim@meyering.net>
71153
71154         * lib/vasnprintf.c: Remove trailing blanks.
71155         Make cpp indentation consistent.
71156
71157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71158
71159         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71160         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71161         Switch from LGPL to GPL.
71162
71163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71164
71165         * config/srclist.txt: Sort sublists.  Add
71166         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71167         that differ from gnulib for one reason or another; we'd like this list
71168         to be smaller but for now let's document what we have.
71169
71170 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71171
71172         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71173         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71174         and sweeter "eval x=$x".
71175         * config/srclist.txt: Get lib/argp* from glibc.
71176
71177 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71178
71179         * lib/mktime.c: Fix some boundary cases and remove need for floating
71180         point.
71181
71182         Issue a compile-time diagnostic if time_t is floating point, or if
71183         two's complement arithmetic is not in effect, or if arithmetic
71184         right shift does not propagate the sign.  These assumptions were
71185         all in the original code but they weren't checked.
71186
71187         (TIME_T_MIDPOINT, verify): New macros.
71188         (__isleap): Remove; it has integer overflow problems.
71189         (leapyear): New function, without those problems.
71190         (ydhms_tm_diff): Remove; splitting into two parts.
71191         (ydhms_diff): New function, containing the arithmetic part of
71192         the old ydhms_tm_diff function.  Issue a compile-time
71193         diagnostic if we are not using C99 integer division.
71194         Avoid casts when possible.
71195         (guess_time_tm): New function, containing the checking part of
71196         the old ydhms_tm_diff function.  Return the new value, rather than
71197         the difference between it and the old.  Accept a new argument T
71198         so that *T specifies the old value.  Check for overflow in the result.
71199
71200         (__mktime_internal): Use a time_t offset, not a long int offset.
71201         This undoes the 2003-06-04 change, which is no longer needed now
71202         that we have better overflow checking.
71203         (localtime_offset): Likewise.
71204
71205         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71206         and long are 64-bit but int is only 32-bit.
71207         (ydhms_diff): Use long int to store year1 and yday1.
71208         Issue a compile-time diagnostic if long int is not wide enough.
71209
71210         (__mktime_internal): Use long int to store adjusted year and yday.
71211         Use plain C rather than preprocessor commands, if that doesn't
71212         affect efficiency.
71213         Check for overflow (and try to repair) after each probe
71214         rather than checking only at the very end.  This avoids some bugs
71215         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71216         does not equal GMT offset at maximum time).
71217         Use integer to check for overflow rather than floating point; this
71218         is more portable to non-IEEE hosts, and is a tad faster.
71219         When we detect that we are oscillating between two values,
71220         don't check whether tm_isdst has the requested value, since
71221         we already know the answer.  When tm_isdst has the wrong value,
71222         use a different heuristic to find the right one, based on the
71223         extreme values actually observed in practice in tz2003a,
71224         rather than the (overly optimistic) "previous 3 calendar quarters".
71225
71226         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71227         "T const" to accommodate glibc style.
71228         (check_result): Use less-confusing report format.  "long" -> "long int.
71229         (main): Likewise.
71230         Don't loop if the iteration overflows time_t.
71231         Allow a negative step in the iteration.
71232
71233 2003-07-06  Karl Berry  <karl@gnu.org>
71234
71235         * config/depcomp: update from automake.
71236         * config/config.sub: update from prep.
71237
71238 2003-07-03  Karl Berry  <karl@gnu.org>
71239
71240         * config/config.guess: update from prep.
71241
71242 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71243
71244         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
71245         xreadlink.c now includes it unconditionally.
71246
71247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
71248
71249         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
71250         having it depend on HAVE_SYS_TYPES_H.
71251
71252 2003-07-01  Bruno Haible  <bruno@clisp.org>
71253
71254         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
71255         <sys/types.h> should be sufficient.
71256         Reported by Paul Eggert.
71257
71258 2003-06-26  Karl Berry  <karl@gnu.org>
71259
71260         * config/depcomp: update from automake.
71261
71262 2003-06-26  Bruno Haible  <bruno@clisp.org>
71263
71264         * modules/human: Depend on module stdbool.
71265
71266 2003-06-25  Bruno Haible  <bruno@clisp.org>
71267
71268         * modules/readlink: New file.
71269         * modules/xreadlink: Depend on it.
71270         * MODULES.html.sh (func_all_modules): Add readlink.
71271
71272 2003-06-25  Bruno Haible  <bruno@clisp.org>
71273
71274         * m4/readlink.m4: New file.
71275
71276 2003-06-25  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/readlink.c: New file.
71279
71280 2003-06-22  Karl Berry  <karl@gnu.org>
71281
71282         * config/srclist.txt: update mkinstalldirs from automake.
71283         * config/mkinstalldirs: update.
71284
71285 2003-06-22  Bruno Haible  <bruno@clisp.org>
71286
71287         Portability to mingw32.
71288         * m4/ssize_t.m4: New file, from GNU gettext.
71289         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
71290         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
71291
71292 2003-06-22  Bruno Haible  <bruno@clisp.org>
71293
71294         * modules/safe-read: Add m4/ssize_t.m4.
71295         * modules/xreadlink: Add m4/ssize_t.m4.
71296
71297 2003-06-20  Bruno Haible  <bruno@clisp.org>
71298
71299         Assume C89, so PARAMS isn't needed.
71300         * lib/unicodeio.h (PARAMS): Remove.
71301         * lib/unicodeio.c: Don't use PARAMS.
71302
71303 2003-06-18  Karl Berry  <karl@gnu.org>
71304
71305         * config/config.{guess,sub}: update from prep.
71306
71307 2003-06-18  Jim Meyering  <jim@meyering.net>
71308
71309         Merge changes from coreutils.
71310         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
71311         Remove explicit declarations of xmalloc and realloc.
71312         Include xalloc.h.
71313         (read_utmp): Remove anachronistic cast of xmalloc.
71314
71315 2003-06-17  Paul Eggert  <eggert@twinsun.com>
71316
71317         Assume C89, so PARAMS isn't needed.
71318         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
71319         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
71320         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
71321         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
71322         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
71323         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
71324         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
71325         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
71326         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
71327         lib/xstrtod.h, lib/xstrtol.h: Likewise.
71328         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
71329         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
71330         no longer needed. Anyway, config.h should always be included before any
71331         other file.
71332
71333 2003-06-11  Simon Josefsson  <jas@extundo.com>
71334
71335         * modules/sysexits: New file.
71336         * MODULES.html.sh (func_all_modules): Add sysexits.
71337
71338 2003-06-11  Simon Josefsson  <jas@extundo.com>
71339
71340         * lib/sysexit_.h: New file.
71341
71342 2003-06-11  Derek Price  <derek@ximbiot.com>
71343
71344         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
71345         necessary.
71346
71347 2003-06-11  Bruno Haible  <bruno@clisp.org>
71348
71349         * m4/sysexits.m4: New file.
71350
71351 2003-06-10  Simon Josefsson  <jas@extundo.com>
71352
71353         * lib/argp.h: New file, from glibc.
71354         * lib/argp-ba.c: New file, from glibc.
71355         * lib/argp-eexst.c: New file, from glibc.
71356         * lib/argp-fmtstream.c: New file, from glibc.
71357         * lib/argp-fmtstream.h: New file, from glibc.
71358         * lib/argp-fs-xinl.c: New file, from glibc.
71359         * lib/argp-help.c: New file, from glibc.
71360         * lib/argp-namefrob.h: New file, from glibc.
71361         * lib/argp-parse.c: New file, from glibc.
71362         * lib/argp-pv.c: New file, from glibc.
71363         * lib/argp-pvh.c: New file, from glibc.
71364         * lib/argp-xinl.c: New file, from glibc.
71365
71366 2003-06-10  Simon Josefsson  <jas@extundo.com>
71367
71368         * modules/strchrnul: New file.
71369
71370 2003-06-10  Simon Josefsson  <jas@extundo.com>
71371
71372         * modules/argp: New file.
71373
71374 2003-06-10  Simon Josefsson  <jas@extundo.com>
71375
71376         * m4/strchrnul.m4: New file.
71377
71378 2003-06-10  Simon Josefsson  <jas@extundo.com>
71379
71380         * lib/strchrnul.h: New file.
71381         * lib/strchrnul.c: New file.
71382
71383 2003-06-10  Bruno Haible  <bruno@clisp.org>
71384
71385         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
71386
71387 2003-06-07  Karl Berry  <karl@gnu.org>
71388
71389         * config/config.{guess,sub}: update from prep.
71390
71391 2003-06-07  Jim Meyering  <jim@meyering.net>
71392
71393         * modules/strtod: Use $(...) notation, not @...@ for
71394         AC_REPLACE'd variables.
71395         * modules/localcharset: Likewise.
71396
71397 2003-06-07  Jim Meyering  <jim@meyering.net>
71398
71399         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
71400         in place of my name in the copyright comment.
71401         Remove definition and uses of __P.
71402
71403         From coreutils.
71404         * lib/stat.c: Don't declare xmalloc explicitly.
71405         Instead, include "xalloc.h".
71406         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
71407         xrealloc, and xcalloc return values.
71408         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
71409         Improve comment.
71410         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
71411
71412 2003-06-07  Bruno Haible  <bruno@clisp.org>
71413
71414         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
71415         avoid AC_CONFIG_LINKS.
71416         * modules/fnmatch (Makefile.am): Use explicit creation rule for
71417         fnmatch.h, to avoid AC_CONFIG_LINKS.
71418         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
71419
71420 2003-06-07  Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
71423         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
71424         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71425         directory.
71426         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
71427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
71428         directory.
71429
71430 2003-06-06  Jim Meyering  <jim@meyering.net>
71431
71432         Merge from coreutils.
71433         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
71434         Consolidate declarations and initializations of *_base* locals.
71435
71436         Merge from coreutils.
71437         This avoids a core dump on systems without GNU putenv,
71438         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
71439         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
71440         (unsetenv): New static function, from GNU libc.
71441         (rpl_putenv): Use it.
71442
71443         * lib/modechange.c: Remove trailing blanks.
71444
71445         Merge from coreutils.
71446         * lib/fsusage.c: Remove declaration of statfs.
71447         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
71448
71449         * lib/posixtm.c: Include <stdbool.h> unconditionally.
71450
71451 2003-06-06  Jim Meyering  <jim@meyering.net>
71452
71453         * lib/stdbool_.h: Renamed from stdbool.h.in.
71454
71455 2003-06-06  Jim Meyering  <jim@meyering.net>
71456             Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
71459         Adjust Makefile.am snippet not to redirect directly to target.
71460         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
71461
71462 2003-06-05  Paul Eggert  <eggert@twinsun.com>
71463
71464         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
71465         mismatch, look in future quarters as well as past.  This fixes a
71466         bug when processing fall-backwards gaps immediately after a long
71467         period of daylight-saving time.
71468
71469         * lib/mktime.c: Assume freestanding C89 or better.
71470         (HAVE_LIMITS_H): Remove.  Assume it's 1.
71471         (__P): Remove; not used.
71472         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
71473         (mktime, not_equal_tm, print_tm, check_result,
71474         main): Use prototypes.  Use const * where appropriate.
71475         (main): Fix typo in testing code that uncovered by above changes.
71476         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
71477
71478 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71479
71480         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
71481         locale.h, localeconv.  This merges changes from coreutils.
71482
71483         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
71484         It can be removed after the next Autoconf is released.
71485         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
71486         needed.
71487
71488 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71489
71490         * lib/mktime.c: Fix Debian bug 177940
71491         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
71492         (localtime_offset): Now long int, not time_t, because we want it
71493         to be guaranteed to be signed.  All uses changed.
71494         (__mktime_internal): If overflow would occur when adding offset,
71495         don't add it.
71496
71497         Merge 'human' changes from coreutils.  Rewrite to support
71498         locale-specific notations like thousands separators.
71499         * lib/human.c: Simplify authorship notice.
71500         Include human.h immediately after config.h.
71501         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
71502         <limits.h>: Do not include, since human.h does.
71503         (SIZE_MAX, UINTMAX_MAX): New macros.
71504         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
71505         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
71506         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
71507         (power_letter): Renamed from suffixes.
71508         (generate_suffix_backwards): Remove.
71509         (adjust_value): Now takes int style (because of human.h changes)
71510         and long double value (for greater precision on some platforms).
71511         (group_number): New function.
71512         (human_readable): Use it.  Use integer options, not enum.
71513         Put the options before the sizes in the arg list.
71514         Support all the new options.
71515         The old human_readable function has been removed;
71516         use inttostr.h instead.
71517         (human_readable, default_block_size, humblock):
71518         Use uintmax_t, not int, for block sizes.
71519         (human_readable_inexact, block_size_types): Remove.
71520         (block_size_opts): New constant.
71521         (human_options): Renamed from human_block_size, with new signature
71522         that allows block sizes up to UINTMAX_MAX.  All callers changed.
71523         * lib/human.h: Add copyright and authorship notice.
71524         Include <limits.h> and <stdbool.h> unconditionally.
71525         (PARAMS): Remove.  All uses removed.
71526         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
71527         (enum human_inexact_style): Remove tag; now a nameless enum.
71528         (human_floor, human_ceiling, human_round_to_even): Now have
71529         values 2, 0, 1 rather than -1, 1, 0.
71530         (human_group_digits, human_suppress_point_zero, human_autoscale,
71531         human_base_1024, human_SI, human_B): New constants.
71532         (human_readable_inexact, human_block_size): Remove.
71533         (human_readable): Size args are now uintmax_t, not int.
71534         (human_options): New decl.
71535
71536         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
71537         unnecessary now that we assume C89 or better.  This change
71538         imported from coreutils.
71539
71540         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71541         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
71542         in the 2003-05-30 sync from glibc.
71543
71544         .h files should stand alone, but we shouldn't include <sys/types.h>
71545         if we can get away with just <stddef.h>.
71546
71547         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
71548         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
71549         rather than <sys/types.h>, as we merely need size_t.
71550         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
71551         to get size_t.
71552         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
71553         Include <stdio.h>, to get FILE.
71554         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
71555         memcasecmp.h has included <stddef.h> and all we need is size_t.
71556         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
71557         our interface, instead of including <sys/types.h>
71558
71559 2003-06-04  Paul Eggert  <eggert@twinsun.com>
71560
71561         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
71562         now, as glibc mktime is buggy on non-glibc systems.
71563
71564 2003-06-03  Karl Berry  <karl@gnu.org>
71565
71566         * config/config.sub: update from prep.
71567
71568 2003-06-02  Paul Eggert  <eggert@twinsun.com>
71569
71570         [from coreutils]
71571         Fix some minor time-related bugs with POSIX time arguments.
71572         Some valid time stamps were being rejected (notably -1, and
71573         time stamps before 1900 on 64-bit hosts).  And some invalid
71574         time stamps were being accepted, e.g. September 31.
71575
71576         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
71577         that we can return (time_t) -1 successfully.
71578         * lib/posixtm.c: Likewise.
71579         [HAVE_STDBOOL_H]: Include <stdbool.h>.
71580         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
71581         (t): Remove static var.
71582         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
71583         of static var.  All uses changed.
71584         (year): Do not reject years before 1900; they can occur with
71585         64-bit time_t.
71586         (posix_time_parse): Do not check for out-of-range components;
71587         that is now the caller's responsibility, since our checks were
71588         only approximations.
71589         (posixtime): Use mktime to check for out-of-range components,
71590         since it knows them exactly.
71591         If mktime returns (time_t) -1, check whether an error actually occurred
71592         by invoking localtime on -1.
71593         (main) [TEST_POSIXTIME]: Check for input data errors, and report
71594         posixtime failures better.
71595         Improve the test data (in comments only).
71596
71597 2003-06-02  Karl Berry  <karl@gnu.org>
71598
71599         * config/mkinstalldirs (version): new variable.
71600         (--version): new option.
71601         (usage): improve message.
71602
71603 2003-05-30  Karl Berry  <karl@gnu.org>
71604
71605         * lib/mktime.c: update from libc.
71606
71607 2003-05-30  Bruno Haible  <bruno@clisp.org>
71608
71609         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
71610         * config/config.rpath: Upgrade to gettext-0.12.1.
71611
71612 2003-05-30  Bruno Haible  <bruno@clisp.org>
71613
71614         * m4/gettext.m4: Upgrade to gettext-0.12.1.
71615         * m4/nls.m4: New file, from gettext-0.12.1.
71616         * m4/po.m4: New file, from gettext-0.12.1.
71617         * m4/progtest.m4: Upgrade to gettext-0.12.1.
71618
71619 2003-05-30  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
71622         * lib/localcharset.h: Likewise.
71623         * lib/localcharset.c: Likewise.
71624
71625 2003-05-29  Karl Berry  <karl@gnu.org>
71626
71627         * config/config.rpath: update from gettext.
71628
71629 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71630
71631         Assume the headers required for C89 freestanding compilers.
71632         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
71633         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
71634         * m4/human.m4 (gl_HUMAN): Likewise.
71635         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
71636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
71637         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71638         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
71639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71640         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
71641
71642 2003-05-28  Paul Eggert  <eggert@twinsun.com>
71643
71644         Assume the headers required for C89 freestanding compilers.
71645         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
71646         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
71647         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
71648         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
71649         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
71650         define, since <limits.h> is guaranteed to do that.
71651         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
71652         * lib/exclude.c: Include <stdbool.h> unconditionally.
71653         * lib/tempname.c: Include <stddef.h> unconditionally.
71654         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
71655         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
71656         <stddef.h> does that.
71657         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
71658         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
71659         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
71660         needed.
71661         * lib/xstrtol.c: Likewise.
71662         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
71663         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
71664
71665         * lib/addext.c (addext): Use assignment rather than cast, to avoid
71666         warnings on some platforms.
71667
71668         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
71669         arbitrarily.
71670
71671 2003-05-26  Jim Meyering  <jim@meyering.net>
71672
71673         Merge in a change from coreutils:
71674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
71675         that is guaranteed to be `no'.  Use `no_such_member' to indicate
71676         that condition, rather than `-1' which is slightly misleading.
71677         Change the name of the cache variable to have the gl_ prefix.
71678         Prompted by a patch from Richard Dawe for DJGPP.
71679
71680 2003-05-24  Karl Berry  <karl@gnu.org>
71681
71682         * config/config.guess: update from prep.
71683
71684 2003-05-22  Karl Berry  <karl@gnu.org>
71685
71686         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
71687
71688 2003-05-20  Karl Berry  <karl@gnu.org>
71689
71690         * config/config.guess: update from prep.
71691
71692 2003-05-18  Karl Berry  <karl@gnu.org>
71693
71694         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
71695         might actually be set by the user.
71696
71697         * config/depcomp, install-sh, mdate-sh: update from automake.
71698
71699 2003-05-17  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
71702         invalid expansion for AC_EGREP_CPP.
71703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
71704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
71705         Suggested by Akim Demaille <akim@epita.fr> in
71706         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
71707
71708 2003-05-12  Jim Meyering  <jim@meyering.net>
71709
71710         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
71711         the space-padded-by-default conversion specifiers, %e, %k, %l.
71712
71713 2003-05-12  Bruno Haible  <bruno@clisp.org>
71714
71715         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
71716         the string is longer than 4 KB.
71717
71718 2003-05-11  Karl Berry  <karl@gnu.org>
71719
71720         * config/config.{guess,sub}: update from prep.
71721
71722 2003-05-09  Bruno Haible  <bruno@clisp.org>
71723
71724         * modules/error: Add m4/strerror_r.m4 to file list.
71725
71726 2003-05-03  Bruno Haible  <bruno@clisp.org>
71727
71728         Upgrade to Unicode-4.0.
71729         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
71730         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
71731         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
71732         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
71733         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
71734         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
71735         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
71736         Change width of U+E0100..U+E01EF from 1 to 0.
71737
71738 2003-04-25  Jim Meyering  <jim@meyering.net>
71739
71740         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
71741         of type size_t, not int.
71742
71743 2003-04-25  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/copy-file.c: Include <stddef.h>, for size_t.
71746
71747 2003-04-21  Paul Eggert  <eggert@twinsun.com>
71748
71749         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
71750         code which expansion is under static control.  Patch imported from
71751         Akim Demaille's patch to Bison; see
71752         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
71753
71754 2003-04-14  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
71757
71758 2003-04-11  Jim Meyering  <jim@meyering.net>
71759
71760         Merge changes from Coreutils.
71761
71762         2003-03-22  Jim Meyering  <jim@meyering.net>
71763
71764         * lib/strftime.c (widen): Cast alloca return value to proper type.
71765
71766         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
71767
71768         From GNU libc.
71769         * lib/strftime.c (my_strftime): Handle very large width
71770         specifications for numeric values correctly.  Improve checks for
71771         overflow.
71772
71773         2003-01-19  Jim Meyering  <jim@meyering.net>
71774
71775         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
71776         definitions.
71777         (nl_get_alt_digit) [! defined my_strftime]: Define.
71778         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
71779         _nl_get_alt_digit and _nl_get_walt_digit.
71780
71781         * lib/strftime.c (my_strftime): Merge in locale-related changes from
71782         libc. These changes have no effect outside of _LIBC.
71783
71784 2003-04-10  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/findprog: New file.
71787         * MODULES.html.sh (func_all_modules): Add it.
71788
71789 2003-04-10  Bruno Haible  <bruno@clisp.org>
71790
71791         * m4/findprog.m4: New file.
71792         * m4/eaccess.m4: New file.
71793
71794 2003-04-10  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/findprog.h: New file, from GNU gettext.
71797         * lib/findprog.c: New file, from GNU gettext.
71798
71799 2003-04-05  Jim Meyering  <jim@meyering.net>
71800
71801         Merge changes from Coreutils.
71802
71803         * lib/exclude.h (PARAMS): Remove definition and uses.
71804         * lib/exclude.c: Remove uses of `PARAMS'.
71805
71806         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
71807         Add test-cases for DOS filenames. Declare program_name.
71808         (main): Set up program_name.  Patch by Rich Dawe.
71809
71810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71811         error from mntctl.
71812         Use mntctl's return value to drive the entry-processing loop, since
71813         we can't rely on the value of the vmt_length member in the last
71814         entry.  On some systems doing so could result in exhausting
71815         virtual memory.  Based in part on a patch from Mike Jetzer.
71816
71817 2003-04-04  Bruno Haible  <bruno@clisp.org>
71818
71819         * modules/linebreak: New file.
71820         * MODULES.html.sh (func_all_modules): Add it.
71821
71822 2003-04-04  Bruno Haible  <bruno@clisp.org>
71823
71824         * m4/linebreak.m4: New file.
71825
71826 2003-04-04  Bruno Haible  <bruno@clisp.org>
71827
71828         * lib/linebreak.h: New file, from GNU gettext.
71829         * lib/linebreak.c: New file, from GNU gettext with slight
71830         modifications.
71831         * lib/lbrkprop.h: New file, from GNU gettext.
71832
71833 2003-04-03  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/utf8-ucs4: New file.
71836         * modules/utf16-ucs4: New file.
71837         * modules/ucs4-utf8: New file.
71838         * modules/ucs4-utf16: New file.
71839         * MODULES.html.sh (func_all_modules): Add them.
71840
71841 2003-04-03  Bruno Haible  <bruno@clisp.org>
71842
71843         * m4/utf-ucs4.m4: New file.
71844         * m4/ucs4-utf.m4: New file.
71845
71846 2003-04-03  Bruno Haible  <bruno@clisp.org>
71847
71848         * lib/utf8-ucs4.h: New file, from GNU gettext.
71849         * lib/utf16-ucs4.h: New file, from GNU gettext.
71850         * lib/ucs4-utf8.h: New file, from GNU gettext.
71851         * lib/ucs4-utf16.h: New file, from GNU gettext.
71852
71853 2003-04-02  Bruno Haible  <bruno@clisp.org>
71854
71855         * modules/binary-io: New file.
71856         * MODULES.html.sh (func_all_modules): Add it.
71857
71858 2003-04-02  Bruno Haible  <bruno@clisp.org>
71859
71860         * lib/binary-io.h: New file, from GNU gettext.
71861
71862 2003-04-01  Bruno Haible  <bruno@clisp.org>
71863
71864         * modules/pathname: New file.
71865         * MODULES.html.sh (func_all_modules): Add it.
71866
71867 2003-04-01  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/pathname.h: New file, from GNU gettext.
71870         * lib/concatpath.c: New file, from GNU gettext.
71871
71872 2003-03-30  Bruno Haible  <bruno@clisp.org>
71873
71874         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
71875
71876 2003-03-30  Bruno Haible  <bruno@clisp.org>
71877
71878         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
71879         function chown() doesn't exist.
71880
71881 2003-03-28  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/copy-file: New file.
71884         * MODULES.html.sh (func_all_modules): Add it.
71885
71886 2003-03-28  Bruno Haible  <bruno@clisp.org>
71887
71888         * m4/copy-file.m4: New file.
71889
71890 2003-03-28  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/copy-file.h: New file, from GNU gettext.
71893         * lib/copy-file.c: New file, from GNU gettext.
71894
71895 2003-03-18  Jim Meyering  <jim@meyering.net>
71896
71897         * lib/quote.c (quote_n): Fix typo in comment.
71898
71899 2003-03-18  Bruno Haible  <bruno@clisp.org>
71900
71901         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
71902         checking.
71903         * m4/onceonly_2_57.m4: Likewise.
71904
71905 2003-03-17  Bruno Haible  <bruno@clisp.org>
71906
71907         * m4/onceonly.m4: Require autoconf 2.54 or newer.
71908         (m4_quote): Remove macro.
71909         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
71910
71911 2003-03-14  Jim Meyering  <jim@meyering.net>
71912
71913         Merge changes from Coreutils.
71914         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
71915         to be const, in order to avoid warnings.
71916         (obstack_room): Likewise.
71917         (obstack_empty_p): Likewise.
71918
71919 2003-03-14  Bruno Haible  <bruno@clisp.org>
71920
71921         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
71922         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
71923
71924 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71925
71926         Merge changes from Bison.
71927         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
71928         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
71929         when compiling Bison 1.875's `bitset bset = obstack_alloc
71930         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
71931         * lib/hash.c: Include <stdbool.h> unconditionally.
71932
71933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71934
71935         * m4/onceonly.m4 (m4_quote): New macro.
71936         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
71937         Quote AC_FOREACH variable-expansions properly.
71938
71939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
71940
71941         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
71942
71943 2003-03-09  Paul Eggert  <eggert@twinsun.com>
71944
71945         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
71946         Reported by Bruce Becker; see:
71947         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
71948
71949 2003-03-03  Paul Eggert  <eggert@twinsun.com>
71950             Bruno Haible  <bruno@clisp.org>
71951
71952         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
71953         Reported by John Hughes, see
71954         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
71955
71956 2003-02-20  Bruno Haible  <bruno@clisp.org>
71957
71958         * MODULES.html.sh (func_all_modules): Add poll.
71959
71960 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71961
71962         * modules/poll: New file.
71963
71964 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71965
71966         * lib/poll_.h: New file.
71967         * lib/poll.c: New file.
71968
71969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
71970
71971         * m4/poll.m4: New file.
71972
71973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71974
71975         * modules/mathl: New file.
71976
71977 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71978
71979         * lib/mathl.h: New file.
71980         * lib/acosl.c: New file.
71981         * lib/asinl.c: New file.
71982         * lib/atanl.c: New file.
71983         * lib/ceill.c: New file.
71984         * lib/cosl.c: New file.
71985         * lib/expl.c: New file.
71986         * lib/floorl.c: New file.
71987         * lib/frexpl.c: New file.
71988         * lib/ldexpl.c: New file.
71989         * lib/logl.c: New file.
71990         * lib/sincosl.c: New file.
71991         * lib/sinl.c: New file.
71992         * lib/sqrtl.c: New file.
71993         * lib/tanl.c: New file.
71994         * lib/trigl.c: New file.
71995         * lib/trigl.h: New file.
71996
71997 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71998
71999         * m4/mathl.m4: New file.
72000
72001 2003-02-18  Bruno Haible  <bruno@clisp.org>
72002
72003         * MODULES.html.sh (func_all_modules): Add mathl.
72004
72005 2003-02-17  Bruno Haible  <bruno@clisp.org>
72006
72007         * modules/mkdtemp: New module.
72008         * MODULES.html.sh (func_all_modules): Add it.
72009
72010 2003-02-17  Bruno Haible  <bruno@clisp.org>
72011
72012         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72013
72014 2003-02-17  Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/mkdtemp.h: New file, from GNU gettext.
72017         * lib/mkdtemp.c: New file, from GNU gettext.
72018
72019 2003-02-02  Jim Meyering  <jim@meyering.net>
72020
72021         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72022         e.g. glibc-2.2.93.
72023
72024 2003-01-31  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72027         'rpl_rename'.
72028         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72029         'rpl_strnlen'.
72030         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72031         'rpl_strtod'.
72032         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72033         'rpl_utime'.
72034
72035 2003-01-31  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/rename.c: #undef rename before defining rpl_rename.
72038         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72039
72040 2003-01-30  Bruno Haible  <bruno@clisp.org>
72041
72042         * modules/vasnprintf, modules/vasprintf: New modules.
72043         * MODULES.html.sh (func_all_modules): Add them.
72044
72045 2003-01-30  Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/signed.m4: New file, from GNU gettext.
72048         * m4/longdouble.m4: New file, from GNU gettext.
72049         * m4/wchar_t.m4: New file, from GNU gettext.
72050         * m4/wint_t.m4: New file, from GNU gettext.
72051         * m4/vasnprintf.m4: New file.
72052         * m4/vasprintf.m4: New file.
72053
72054 2003-01-30  Bruno Haible  <bruno@clisp.org>
72055
72056         * lib/printf-args.h: New file, from GNU gettext.
72057         * lib/printf-args.c: New file, from GNU gettext.
72058         * lib/printf-parse.h: New file, from GNU gettext.
72059         * lib/printf-parse.c: New file, from GNU gettext.
72060         * lib/vasnprintf.h: New file, from GNU gettext.
72061         * lib/vasnprintf.c: New file, from GNU gettext.
72062         * lib/asnprintf.c: New file, from GNU gettext.
72063         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72064         * lib/vasprintf.c: New file, from GNU gettext.
72065         * lib/asprintf.c: New file, from GNU gettext.
72066
72067 2003-01-29  Bruno Haible  <bruno@clisp.org>
72068
72069         * modules/stpncpy: New module.
72070         * MODULES.html.sh (func_all_modules): Add it.
72071
72072 2003-01-29  Bruno Haible  <bruno@clisp.org>
72073
72074         * m4/stpncpy.m4: New file.
72075
72076 2003-01-29  Bruno Haible  <bruno@clisp.org>
72077
72078         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72079         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72080
72081 2003-01-28  Bruno Haible  <bruno@clisp.org>
72082
72083         * modules/c-ctype: New module.
72084         * MODULES.html.sh (func_all_modules): Add it.
72085
72086 2003-01-28  Bruno Haible  <bruno@clisp.org>
72087
72088         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72089         Paul Eggert.
72090         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72091         Paul Eggert.
72092
72093 2003-01-27  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/xsetenv: New module.
72096         * MODULES.html.sh (func_all_modules): Add it.
72097
72098 2003-01-27  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/xsetenv.h: New file, from GNU gettext.
72101         * lib/xsetenv.c: New file, from GNU gettext.
72102
72103 2003-01-23  Jim Meyering  <jim@meyering.net>
72104
72105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72106         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72107
72108 2003-01-23  Bruno Haible  <bruno@clisp.org>
72109
72110         * modules/minmax: New module.
72111         * MODULES.html.sh (func_all_modules): Add it.
72112
72113 2003-01-23  Bruno Haible  <bruno@clisp.org>
72114
72115         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72116         Eggert.
72117
72118 2003-01-22  Bruno Haible  <bruno@clisp.org>
72119
72120         * modules/exit: New module.
72121         * MODULES.html.sh (func_all_modules): Add it.
72122
72123 2003-01-22  Bruno Haible  <bruno@clisp.org>
72124
72125         * lib/exit.h: New file, from GNU gettext.
72126
72127 2003-01-19  Bruno Haible  <bruno@clisp.org>
72128
72129         * gnulib-tool: Recognize option --extract-maintainer.
72130         (func_get_maintainer): New function.
72131         * modules/*: Add Maintainer entry.
72132
72133 2003-01-16  Jim Meyering  <jim@meyering.net>
72134
72135         * m4/regex.m4: The `regex' struct is both input and output.
72136         Initialize it before each use.  Patch by Tim Waugh.
72137
72138 2003-01-16  Bruno Haible  <bruno@clisp.org>
72139
72140         * MODULES.html.sh: Add a table of contents. Add the module name as
72141         leftmost column. Add hyperlinks.
72142
72143 2003-01-15  Bruno Haible  <bruno@clisp.org>
72144
72145         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72146
72147 2003-01-15  Bruno Haible  <bruno@clisp.org>
72148
72149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72151         suffix.
72152
72153 2003-01-15  Bruno Haible  <bruno@clisp.org>
72154
72155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72156
72157 2003-01-15  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72160         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72161
72162 2003-01-14  Jim Meyering  <jim@meyering.net>
72163
72164         * lib/same.c (same_name): Tweak a comment.
72165
72166 2003-01-14  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72169         when a string comparison is sufficient.
72170
72171 2003-01-14  Bruno Haible  <bruno@clisp.org>
72172
72173         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72174         'unsigned int'.
72175
72176 2003-01-14  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/hash-pjw.c: Add comment about low quality of this function.
72179
72180 2003-01-13  Bruno Haible  <bruno@clisp.org>
72181
72182         * modules/stpcpy: Distribute lib/stpcpy.h.
72183         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72184
72185 2003-01-13  Bruno Haible  <bruno@clisp.org>
72186
72187         * modules/*: Add a description.
72188         * modules/strpbrk: Fix Makefile.am snippet.
72189         * modules/strtoimax: Fix dependencies.
72190         * modules/strtoumax: Likewise.
72191
72192 2003-01-13  Bruno Haible  <bruno@clisp.org>
72193
72194         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72195         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72196         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72197
72198 2003-01-13  Bruno Haible  <bruno@clisp.org>
72199
72200         * gnulib-tool (func_create_testdir): Store config/* files in the main
72201         directory.
72202         * config.rpath: Move to ...
72203         * config/config.rpath: ... here.
72204         * modules/gettext: Contains config/config.rpath, not config.rpath.
72205         * modules/iconv: Likewise.
72206
72207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72208
72209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72210         to avoid collisions with libcurses and libreadline.
72211
72212         * m4/getstr.m4: Remove.
72213         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72214
72215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72216
72217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72218         to avoid collisions with libcurses and libreadline.
72219
72220         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72221         * lib/getstr.h, getstr.c: Remove.
72222         * lib/getline.c: Include "getline.h", to check interface.
72223         Move body of old getstr.c here: this defines MIN_CHUNK and
72224         declares getdelim2, which is renamed from getstr.
72225         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72226
72227         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72228         All uses changed.
72229         * lib/linebuffer.h: Likewise.
72230         (readline): Remove backward-compatibility macro.
72231
72232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72233
72234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72235         to avoid collisions with libcurses and libreadline.
72236         * getstr: Remove.
72237         * MODULES.html.sh: Remove getstr.
72238         * modules/getline: Depend on unlocked-io, not getstr.
72239
72240 2003-01-12  Jim Meyering  <jim@meyering.net>
72241
72242         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
72243
72244 2003-01-10  Bruno Haible  <bruno@clisp.org>
72245
72246         * modules/alloca: Change Makefile.am requirements. Simplify Include
72247         requirements. Add lib/alloca_.h to file list.
72248
72249 2003-01-10  Bruno Haible  <bruno@clisp.org>
72250
72251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
72252
72253 2003-01-10  Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/alloca_.h: New file.
72256         * lib/getdate.y: Unconditionally include alloca.h.
72257         * lib/makepath.c: Likewise.
72258         * lib/setenv.c: Likewise.
72259         * lib/userspec.c: Likewise.
72260
72261 2003-01-09  Karl Berry  <karl@gnu.org>
72262
72263         * MODULES.html.sh: include `dirname $0` in PATH, to find
72264         gnulib-tool.
72265
72266 2003-01-09  Bruno Haible  <bruno@clisp.org>
72267
72268         * modules/stdbool: Change configure.ac, Makefile.am requirements.
72269         Simplify Include requirements. Add lib/stdbool.h.in to file list.
72270
72271 2003-01-09  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
72274
72275 2003-01-09  Bruno Haible  <bruno@clisp.org>
72276
72277         * lib/stdbool.h.in: New file.
72278
72279 2003-01-09  Bruno Haible  <bruno@clisp.org>
72280
72281         * gnulib-tool (func_all_modules): Ignore files ending in ~.
72282         * MODULES.html.sh: Likewise.
72283
72284 2003-01-08  Jim Meyering  <jim@meyering.net>
72285
72286         * lib/full-write.c: Undefine and define-away `const' after inclusion
72287         of errno.h, not before.  Suggestion from Bruno Haible.
72288
72289 2003-01-08  Bruno Haible  <bruno@clisp.org>
72290
72291         * modules/full-read: Depend on full-write.
72292
72293 2003-01-08  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/safe-read.c: Include specification header first, to ensure its
72296         selfcontainedness.
72297         * lib/full-write.c: Likewise.
72298
72299 2003-01-07  Jim Meyering  <jim@meyering.net>
72300
72301         * lib/full-write.c: Rework so that it may serve to define full_read,
72302         too.
72303         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
72304
72305 2003-01-07  Bruno Haible  <bruno@clisp.org>
72306
72307         * lib/strtoimax.c: Include <stdint.h> as an alternative to
72308         <inttypes.h>.
72309         * lib/xstrtol.h: Likewise.
72310         * lib/xstrtoimax.c: Likewise.
72311         * lib/xstrtoumax.c: Likewise.
72312         * lib/human.h: Likewise.
72313
72314         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
72315         on systems that have <inttypes.h> but not <stdint.h>.
72316
72317 2003-01-07  Bruno Haible  <bruno@clisp.org>
72318
72319         * MODULES.html.sh: Add copyright notice.
72320         (missed_files): Omit CVS directory entries.
72321         (func_module): Make it work with sed-3.02.
72322         * MODULES.txt: Remove file.
72323
72324 2003-01-06  Jim Meyering  <jim@meyering.net>
72325
72326         * lib/version-etc.c: Update year in translatable copyright string.
72327
72328 2003-01-03  Karl Berry  <karl@gnu.org>
72329
72330         * config/config.{guess,sub}: update from prep.
72331
72332 2003-01-02  Karl Berry  <karl@gnu.org>
72333
72334         * doc/COPYING.DOC: belatedly updated to 1.2.
72335
72336 2003-01-01  Karl Berry  <karl@gnu.org>
72337
72338         * gnulib-tool (func_verify_module): report module name $module in
72339         error message, not $1.
72340         * gnulib-tool (create-testdir): don't complain if destdir couldn't
72341         be created, only if it doesn't exist.
72342         * gnulib-tool (last_checkin_date): don't expand the $Date here.
72343
72344 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72345
72346         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
72347
72348 2002-12-31  Paul Eggert  <eggert@twinsun.com>
72349
72350         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
72351         memcmp if strcoll doesn't work.
72352
72353 2002-12-31  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/utime.c (utime_null): No need to call ftruncate if the file was
72356         nonempty.
72357
72358 2002-12-31  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/memcoll.c (STRCOLL): New macro.
72361         (memcoll): Use it.
72362
72363 2002-12-31  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/localcharset.h: New file.
72366         * lib/localcharset.c: Include it.
72367         * lib/unicodeio.c: Likewise.
72368
72369 2002-12-31  Bruno Haible  <bruno@clisp.org>
72370
72371         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
72372         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
72373
72374 2002-12-31  Bruno Haible  <bruno@clisp.org>
72375
72376         * lib/getline.h: Include <stddef.h>, for size_t.
72377
72378         * lib/unicodeio.h: Include <stddef.h>, for size_t.
72379         * lib/unicodeio.c: Don't include <stddef.h>.
72380
72381 2002-12-31  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
72384         HAVE_TM_ZONE.
72385
72386 2002-12-24  Karl Berry  <karl@gnu.org>
72387
72388         * config/config.guess: update from prep.
72389
72390 2002-12-24  Bruno Haible  <bruno@clisp.org>
72391
72392         General infrasructure.
72393         * m4/README: Rewritten.
72394         * m4/onceonly.m4: New file.
72395         * m4/onceonly_2_57.m4: New file.
72396
72397         Module atexit.
72398         * m4/atexit.m4: New file.
72399
72400         Module strtod.
72401         * m4/strtod.m4: New file.
72402
72403         Module strtol.
72404         * m4/strtol.m4: New file.
72405
72406         Module strtoul.
72407         * m4/strtoul.m4: New file.
72408
72409         Module memchr.
72410         * m4/memchr.m4: New file.
72411
72412         Module memcmp.
72413         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
72414         (jm_FUNC_MEMCMP): Invoke it.
72415
72416         Module memcpy.
72417         * m4/memcpy.m4: New file.
72418
72419         Module memmove.
72420         * m4/memmove.m4: New file.
72421
72422         Module memset.
72423         * m4/memset.m4: New file.
72424
72425         Module strcspn.
72426         * m4/strcspn.m4: New file.
72427
72428         Module strpbrk.
72429         * m4/strpbrk.m4: New file.
72430
72431         Module strstr.
72432         * m4/strstr.m4: New file.
72433
72434         Module strerror.
72435         * m4/strerror.m4: New file.
72436
72437         Module mktime.
72438         * m4/mktime.m4: Renamed from jm-mktime.m4.
72439         (gl_PREREQ_MKTIME): New macro.
72440         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
72441
72442         Module malloc.
72443         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
72444         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
72445         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
72446
72447         Module realloc.
72448         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
72449         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
72450         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
72451
72452         Module strftime.
72453         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
72454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
72455         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
72456         gl_TM_GMTOFF.
72457         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
72458
72459         Module xalloc.
72460         * m4/xalloc.m4: New file.
72461
72462         Module alloca.
72463         * m4/alloca.m4: New file.
72464
72465         Module putenv.
72466         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
72467         (jm_FUNC_PUTENV): Invoke it.
72468
72469         Module setenv.
72470         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
72471         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
72472         when invoked twice.
72473         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
72474         gt_FUNC_SETENV.
72475
72476         Module memrchr.
72477         * m4/memrchr.m4: New file.
72478
72479         Module stpcpy.
72480         * m4/stpcpy.m4: New file.
72481
72482         Module strcase.
72483         * m4/strcase.m4: New file.
72484
72485         Module strdup.
72486         * m4/strdup.m4: New file.
72487
72488         Module strnlen.
72489         * m4/strnlen.m4: New file.
72490
72491         Module strndup.
72492         * m4/strndup.m4: New file.
72493
72494         Module xstrtod.
72495         * m4/xstrtod.m4: New file.
72496
72497         Module xstrtol.
72498         * m4/xstrtol.m4: New file.
72499
72500         Module getdate.
72501         * m4/getdate.m4: New file.
72502
72503         Module unlocked-io.
72504         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
72505         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
72506         * m4/jm-glibc-io.m4n: Remove file.
72507
72508         Module long-options.
72509         * m4/long-options.m4: New file.
72510
72511         Module md5.
72512         * m4/md5.m4: New file.
72513
72514         Module sha.
72515         * m4/sha.m4: New file.
72516
72517         Module getstr.
72518         * m4/getstr.m4: New file.
72519
72520         Module getline.
72521         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
72522         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
72523         <sys/types.h>, for size_t. Use the function name gnu_getline, not
72524         simply getline. Infoke gl_PREREQ_GETLINE.
72525
72526         Module obstack.
72527         * m4/obstack.m4: New file.
72528
72529         Module hash.
72530         * m4/hash.m4: New file.
72531
72532         Module readtokens.
72533         * m4/readtokens.m4: New file.
72534
72535         Module strverscmp.
72536         * m4/strverscmp.m4: New file.
72537
72538         Module stdbool.
72539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
72540         OSF/1.
72541
72542         Module strtoll.
72543         * m4/strtoll.m4: New file.
72544
72545         Module strtoull.
72546         * m4/strtoull.m4: New file.
72547
72548         Module strtoimax.
72549         * m4/strtoimax.m4: New file.
72550
72551         Module strtoumax.
72552         * m4/strtoumax.m4: New file.
72553
72554         Module xstrtoimax.
72555         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
72556         jm_AC_PREREQ_XSTRTOIMAX.
72557         Moved the strtol prerequisites to strtol.m4.
72558         Moved the strtoll prerequisites to strtoll.m4.
72559         Moved the strtoimax prerequisites to strtoimax.m4.
72560
72561         Module xstrtoumax.
72562         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
72563         jm_AC_PREREQ_XSTRTOUMAX.
72564         Moved the strtoul prerequisites to strtoul.m4.
72565         Moved the strtoull prerequisites to strtoull.m4.
72566         Moved the strtoumax prerequisites to strtoumax.m4.
72567
72568         Module chown.
72569         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
72570         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
72571
72572         Module dup2.
72573         * m4/dup2.m4: New file.
72574
72575         Module ftruncate.
72576         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
72577         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
72578
72579         Module getgroups.
72580         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
72581         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
72582
72583         Module gettimeofday.
72584         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
72585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
72586         gl_PREREQ_GETTIMEOFDAY.
72587
72588         Module mkdir.
72589         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
72590         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
72591
72592         Module mkstemp.
72593         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
72594         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
72595         jm_AC_TYPE_UINTMAX_T.
72596         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
72597
72598         Module stat.
72599         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
72600         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
72601
72602         Module lstat.
72603         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
72604         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
72605
72606         Module timespec.
72607         * m4/timespec.m4 (gl_TIMESPEC): New macro.
72608         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
72609         * m4/st_mtim.m4: Indentation.
72610
72611         Module nanosleep.
72612         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
72613         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
72614         gl_PREREQ_NANOSLEEP.
72615
72616         Module regex.
72617         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
72618         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
72619         (gl_REGEX): New macro.
72620
72621         Module rename.
72622         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
72623         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
72624
72625         Module rmdir.
72626         * m4/rmdir.m4: New file.
72627
72628         Module utime.
72629         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
72630         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
72631         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
72632
72633         Module dirname.
72634         * m4/dirname.m4: New file.
72635
72636         Module getopt.
72637         * m4/getopt.m4: New file.
72638
72639         Module unistd-safer.
72640         * m4/unistd-safer.m4: New file.
72641
72642         Module fnmatch.
72643         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
72644         declaration.
72645         (gl_PREREQ_FNMATCH_EXTRA): New macro.
72646         (gl_FUNC_FNMATCH_POSIX): New macro.
72647         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
72648         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
72649         simply fnmatch.
72650
72651         Module exclude.
72652         * m4/exclude.m4: New file.
72653
72654         Module human.
72655         * m4/human.m4: New file.
72656
72657         Module acl.
72658         * m4/acl.m4: Nop.
72659
72660         Module backupfile.
72661         * m4/backupfile.m4: New file.
72662         * m4/d-ino.m4: Indentation.
72663
72664         Module fsusage.
72665         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
72666         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
72667         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
72668
72669         Module dirfd.
72670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
72671         requirements.
72672
72673         Module euidaccess.
72674         * m4/euidaccess.m4: New file.
72675
72676         Module file-type.
72677         * m4/file-type.m4: New file.
72678
72679         Module fileblocks.
72680         * m4/fileblocks.m4: New file.
72681
72682         Module filemode.
72683         * m4/filemode.m4: New file.
72684
72685         Module isdir.
72686         * m4/isdir.m4: New file.
72687
72688         Module lchown.
72689         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
72690         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
72691
72692         Module makepath.
72693         * m4/makepath.m4: New file.
72694
72695         Module modechange.
72696         * m4/modechange.m4: New file.
72697
72698         Module mountlist.
72699         * m4/mountlist.m4: New file.
72700         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
72701         Indentation.
72702
72703         Module path-concat.
72704         * m4/path-concat.m4: New file.
72705
72706         Module pathmax.
72707         * m4/pathmax.m4: New file.
72708
72709         Module same.
72710         * m4/same.m4: New file.
72711
72712         Module save-cwd.
72713         * m4/save-cwd.m4: New file.
72714
72715         Module savedir.
72716         * m4/savedir.m4: New file.
72717
72718         Module xgetcwd.
72719         * m4/xgetcwd.m4: New file.
72720         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
72721
72722         Module xreadlink.
72723         * m4/xreadlink.m4: New file.
72724
72725         Module safe-read.
72726         * m4/safe-read.m4: New file.
72727
72728         Module safe-write.
72729         * m4/safe-write.m4: New file.
72730
72731         Module closeout.
72732         * m4/closeout.m4: New file.
72733
72734         Module stdio-safer.
72735         * m4/stdio-safer.m4: New file.
72736
72737         Module getpass.
72738         * m4/getpass.m4: New file.
72739
72740         Module getugroups.
72741         * m4/getugroups.m4: New file.
72742
72743         Module group-member.
72744         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
72745         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
72746
72747         Module idcache.
72748         * m4/idcache.m4: New file.
72749
72750         Module userspec.
72751         * m4/userspec.m4: New file.
72752
72753         Module gettime.
72754         * m4/clock_time.m4: New file.
72755         * m4/gettime.m4: New file.
72756
72757         Module settime.
72758         * m4/settime.m4: New file.
72759
72760         Module posixtm.
72761         * m4/posixtm.m4: New file.
72762
72763         Module gethostname.
72764         * m4/gethostname.m4: New file.
72765
72766         Module canon-host.
72767         * m4/canon-host.m4: New file.
72768
72769         Module gettext.
72770         * m4/codeset.m4: New file, from gettext-0.11.5.
72771         * m4/gettext.m4: New file, from gettext-0.11.5.
72772         * m4/glibc21.m4: New file, from gettext-0.11.5.
72773         * m4/iconv.m4: New file, from gettext-0.11.5.
72774         * m4/intdiv0.m4: New file, from gettext-0.11.5.
72775         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
72776         * m4/inttypes.m4: New file, from gettext-0.11.5.
72777         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
72778         * m4/isc-posix.m4: New file, from gettext-0.11.5.
72779         * m4/lcmessage.m4: New file, from gettext-0.11.5.
72780         * m4/lib-ld.m4: New file, from gettext-0.11.5.
72781         * m4/lib-link.m4: New file, from gettext-0.11.5.
72782         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
72783         * m4/progtest.m4: New file, from gettext-0.11.5.
72784         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
72785         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
72786         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
72787
72788         Module localcharset.
72789         * m4/localcharset.m4: New file.
72790
72791         Module hard-locale.
72792         * m4/hard-locale.m4: New file.
72793
72794         Module mbswidth.
72795         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
72796         onceonly macros.
72797         * m4/mbrtowc.m4: Add comment.
72798
72799         Module memcasecmp.
72800         * m4/memcasecmp.m4: New file.
72801
72802         Module memcoll.
72803         * m4/memcoll.m4: New file.
72804
72805         Module unicodeio.
72806         * m4/unicodeio.m4: New file.
72807
72808         Module rpmatch.
72809         * m4/rpmatch.m4: New file.
72810
72811         Module yesno.
72812         * m4/yesno.m4: New file.
72813
72814         Module exitfail.
72815         * m4/exitfail.m4: New file.
72816
72817         Module c-stack.
72818         * m4/c-stack.m4 (gl_C_STACK): New macro.
72819         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
72820
72821         Module error.
72822         * m4/error.m4 (gl_ERROR): New macro.
72823         (jm_PREREQ_ERROR): Use onceonly macros.
72824
72825         Module fatal.
72826         * m4/fatal.m4: New file.
72827
72828         Module getloadavg.
72829         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
72830         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
72831
72832         Module getpagesize.
72833         * m4/getpagesize.m4: New file.
72834
72835         Module getusershell.
72836         * m4/getusershell.m4: New file.
72837
72838         Module physmem.
72839         * m4/physmem.m4: New file.
72840
72841         Module posixver.
72842         * m4/posixver.m4: New file.
72843
72844         Module quotearg.
72845         * m4/quotearg.m4: New file.
72846
72847         Module quote.
72848         * m4/quote.m4: New file.
72849
72850         Module readutmp.
72851         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
72852
72853         Module sig2str.
72854         * m4/sig2str.m4: New file.
72855
72856         Other.
72857         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
72858         ulonglong.m4.
72859         * m4/intmax_t.m4: New file.
72860         * m4/d-type.m4: Indentation.
72861         * m4/jm-macros.m4: Update.
72862         * m4/prereq.m4 (jm_PREREQ): Update.
72863         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
72864         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
72865         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
72866         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
72867         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
72868         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
72869         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
72870         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
72871         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
72872         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
72873         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
72874         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
72875         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
72876         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
72877         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
72878         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
72879         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
72880         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
72881         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
72882
72883 2002-12-24  Bruno Haible  <bruno@clisp.org>
72884
72885         * MODULES.txt: Update according to m4/ changes.
72886
72887         Module gettext.
72888         * config.rpath: New file, from gettext-0.11.5.
72889
72890         * modules/*: New module descriptions.
72891         * gnulib-tool: New file.
72892         * MODULES.html.sh: New file.
72893
72894 2002-12-21  Karl Berry  <karl@gnu.org>
72895
72896         * doc/fdl.texi: update to version 1.2.
72897
72898 2002-12-19  Karl Berry  <karl@gnu.org>
72899
72900         * config/config.guess: update from prep.
72901
72902 2002-12-18  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
72905         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
72906
72907 2002-12-17  Bruno Haible  <bruno@clisp.org>
72908
72909         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
72910         stdlib.h, string.h.
72911
72912 2002-12-17  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/canon-host.c (strdup): Remove unused declaration.
72915
72916         * lib/fsusage.c: Include full_read.h.
72917         (get_fs_usage): Use full_read instead of safe_read.
72918
72919         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
72920
72921 2002-12-12  Karl Berry  <karl@gnu.org>
72922
72923         * config/config.guess: update from prep.
72924
72925 2002-12-11  Bruno Haible  <bruno@clisp.org>
72926
72927         * m4/setenv.m4: New file, from gettext-0.11.5.
72928
72929 2002-12-11  Bruno Haible  <bruno@clisp.org>
72930
72931         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
72932         not unsetenv().
72933         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
72934         modifications:
72935
72936         2002-12-11  Bruno Haible  <bruno@clisp.org>
72937
72938                 * setenv.c (alloca): Fall back to malloc.
72939                 (freea): New macro.
72940                 (setenv): Use freea() to free memory allocated with alloca().
72941
72942         2002-11-13  Bruno Haible  <bruno@clisp.org>
72943
72944                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
72945                 function declarations.
72946                 * unsetenv.c (unsetenv): Likewise.
72947
72948         2002-03-04  Bruno Haible  <bruno@clisp.org>
72949
72950                 Portability to AIX 4.3.3.
72951                 * unsetenv.c: New file, extracted from setenv.c.
72952                 * setenv.c: Move the unsetenv() function to unsetenv.c.
72953
72954         2001-12-20  Bruno Haible  <bruno@clisp.org>
72955
72956                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
72957                 use malloc instead. For SunOS 4.
72958
72959         2001-12-11  Bruno Haible  <bruno@clisp.org>
72960
72961                 * setenv.c: Declare alloca.
72962                 (compar_fn_t): New typedef.
72963                 (KNOWN_VALUE, STORE_VALUE): Use it.
72964
72965         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
72966         setenv.h.
72967
72968 2002-12-10  Paul Eggert  <eggert@twinsun.com>
72969
72970         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
72971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
72972         Choose values that are less likely to collide with system fnmatch
72973         options.
72974         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72975         defined (e.g., a pure POSIX system).
72976         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72977         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72978
72979 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72980
72981         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72982         a pain in practice to deal with generated m4 files.  This change
72983         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72984
72985         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72986         and jm-glibc-io.m4, as they are no longer a special case.
72987         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72988         kludge and the auto-generation stuff.  Check only whether the
72989         functions are declared, not whether they exist, since older hosts
72990         that don't declare the functions can't use the optimization anyway.
72991
72992 2002-12-06  Jim Meyering  <jim@meyering.net>
72993
72994         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72995
72996         Merge in changes from libc's misc/error.c, in preparation
72997         for the merge of gnulib's changes back into libc.
72998
72999         * lib/error.c (_): Define only if not already defined.
73000         Move definition to follow all #include directives.
73001         Include unlocked-io.h only if !_LIBC.
73002         [_LIBC]: Include <libio/libioP.h>.
73003         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73004         (fflush): Tweak definition to use INTUSE.
73005         (putc): Define.
73006
73007 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73008
73009         * lib/alloca.c [defined emacs]: Include "lisp.h".
73010         (xalloc_die) [defined emacs]: New macro.
73011         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73012         [! defined emacs]: Include <xalloc.h>.
73013         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73014         (pointer): Typedef to POINTER_TYPE *.
73015         (malloc): Remove decl; we now always use xmalloc.
73016         (alloca): Use old-style definition, since Emacs needs this.
73017         Check for arithmetic overflow when computing combined size.
73018
73019 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73020
73021         Do not generate unlocked-io.h automatically, since it's easier to
73022         maintain it by hand.
73023
73024         * lib/unlocked-io.h: New file, from GNU diffutils,
73025         but with proper copyright notice and attribution.
73026         * lib/gen-uio: Remove.
73027         * lib/Makefile.am: Add copyright notice.
73028         (libfetish_a_SOURCES): Add unlocked-io.h.
73029         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73030         (DISTCLEANFILES, io_functions): Remove macros.
73031         (EXTRA_DIST): Remove gen_uio.
73032         (unlocked-io.h): Remove rule.
73033
73034 2002-12-04  Jim Meyering  <jim@meyering.net>
73035
73036         Reflect the fact that stat.c and lstat.c are no longer generated.
73037         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73038         (DISTCLEANFILES): Likewise.
73039         (EXTRA_DIST): Likewise.
73040         (all_local): Don't depend on stat.c or lstat.c.
73041         (stat.c, lstat.c): Remove rules.
73042         (EXTRA_DIST): Remove xstat.in.
73043
73044         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73045         * lib/stat.c: New file.  Contents mostly from xstat.in.
73046         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73047         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73048
73049         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73050         too.
73051         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73052
73053 2002-12-03  Jim Meyering  <jim@meyering.net>
73054
73055         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73056         but not semantics, to minimize the differences between these two files.
73057         (safe_read): Change comment to mention SAFE_READ_ERROR.
73058
73059         * lib/safe-read.c (IS_EINTR): Define.
73060         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73061
73062 2002-12-02  Jim Meyering  <jim@meyering.net>
73063
73064         * lib/safe-read.c (EINTR): Define.
73065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73066         (INT_MAX): Provide fallback.
73067         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73068
73069         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73070
73071 2002-12-02  Bruno Haible  <bruno@clisp.org>
73072
73073         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73074         Define, taken from safe-read.c.
73075         (INT_MAX): Provide fallback.
73076         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73077         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73078
73079         * lib/safe-read.c (EINTR): Remove definition.
73080         (safe_read): Don't use EINTR if it is absent.
73081
73082 2002-12-01  Jim Meyering  <jim@meyering.net>
73083
73084         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73085         zero.
73086         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73087
73088 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73089
73090         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73091         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73092         with `if (! (value < limit)) abort ();', for readability.
73093
73094 2002-11-26  Karl Berry  <karl@gnu.org>
73095
73096         * lib/strdup.c: copy from libc again, with jim's ok.
73097         * lib/.cppi-disable: re-add strdup.c
73098
73099 2002-11-25  Karl Berry  <karl@gnu.org>
73100
73101         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73102         instead of "strtol.c".
73103
73104 2002-11-25  Karl Berry  <karl@gnu.org>
73105
73106         * config/install-sh: update from automake for variable quoting, $0 in
73107         error msgs, etc.
73108
73109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73110         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73111         entry.
73112
73113 2002-11-25  Jim Meyering  <jim@meyering.net>
73114
73115         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73116
73117 2002-11-24  Karl Berry  <karl@gnu.org>
73118
73119         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73120         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73121
73122 2002-11-24  Jim Meyering  <jim@meyering.net>
73123
73124         Update from coreutils:
73125
73126         * lib/mktime.c: Merge in changes from libc.
73127
73128         Avoid a link-time failure on some Linux systems.
73129         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73130         (otherwise).
73131         (__mon_yday): Declare with the STATIC attribute.
73132         (__mktime_internal): Likewise.
73133         Based on a report from Greg Schafer.
73134
73135 2002-11-23  Jim Meyering  <jim@meyering.net>
73136
73137         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73138         Use `unsigned', not `int', as type of index.
73139
73140         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73141
73142         * lib/fsusage.c: Remove unneeded parentheses around operands of
73143         `defined'.
73144
73145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73146
73147         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73148         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73149         so that we can be included first.
73150         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73151         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73152         No need to include stddef.h or sys/types.h any more.
73153         Surround local include files with "", not "<>".
73154         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73155         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73156         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73157         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73158         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73159         (ISPRINT): Remove; no longer needed now that we assume C89.
73160
73161         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73162         Preserve errno.
73163
73164         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73165         quotearg_char): Use SIZE_MAX rather than
73166         (size_t) -1 when we are talking about "infinity".
73167
73168         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73169
73170 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73171
73172         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73173         hint that one should use `if (! x) abort ();' rather than `assert
73174         (x);', and anyway it's one less thing to worry about configuring.
73175         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73176         hash_rehash, hash_insert): Use abort rather than assert.
73177
73178 2002-11-22  Bruno Haible  <bruno@clisp.org>
73179
73180         * lib/safe-read.h: Assume C89. Add comments.
73181         (safe_read): Change return type to size_t.
73182         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73183         byte counts > SSIZE_MAX correctly.
73184         * lib/safe-write.h: New file.
73185         * lib/safe-write.c: New file.
73186         * lib/full-read.h: New file.
73187         * lib/full-read.c: New file.
73188         * lib/full-write.h: Assume C89. Add comments.
73189         * lib/full-write.c: Include safe-write.h.
73190         (full_write): Rewritten to use safe_write.
73191         Suggested by Jim Meyering and Paul Eggert.
73192
73193 2002-11-21  Jim Meyering  <jim@meyering.net>
73194
73195         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73196
73197         Merge in changes from the coreutils.
73198
73199         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73200         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73201         <stdint.h>.
73202         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73203         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73204         int.  Work more efficiently if X is the same width as uintmax_t.
73205         Do not compare X to -1, to avoid bogus compiler warning.
73206         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73207         Don't assume that f_frsize and f_bsize are the same type.
73208
73209         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73210         warning on FreeBSD.
73211
73212         * lib/makepath.c (make_path): Restore umask *before* creating the final
73213         component.
73214         (make_path): Minor reformatting.
73215
73216         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73217         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73218         HAVE_MALLOC/HAVE_REALLOC.
73219
73220         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73221         dummy ones.  At least on GNU/Linux systems, `auto' means something
73222         else.
73223         From Michael Stone.
73224
73225 2002-11-21  Bruno Haible  <bruno@clisp.org>
73226
73227         Remove case insensitive option matching.
73228         * lib/argmatch.h (argcasematch): Remove declaration.
73229         (ARGCASEMATCH): Remove macro.
73230         (__xargmatch_internal): Remove case_sensitive argument.
73231         (XARGMATCH): Update.
73232         (XARGCASEMATCH): Remove macro.
73233         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73234         case_sensitive argument.
73235         (argcasematch): Remove function.
73236         (__xargmatch_internal): Remove case_sensitive argument.
73237         (main): Use XARGMATCH instead of XARGCASEMATCH.
73238
73239         * lib/xmalloc.c: Change compile-time error message. Add comment about
73240         required autoconf version.
73241
73242 2002-11-20  Paul Eggert  <eggert@twinsun.com>
73243
73244         Merge argmatch cleanups from Bison.  Assume C89.
73245
73246         * lib/argmatch.c: Include config.h here, not in argmatch.h.
73247         Include stdlib.h, for EXIT_FAILURE.
73248         Always include <string.h>, since we assume C89.
73249         (EXIT_FAILURE): Remove pre-C89 bug workaround.
73250         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
73251         Include <stddef.h> instead, since it's all we need for size_t.
73252         (PARAMS): Remove.  All uses removed.
73253         (ARRAY_CARDINALITY): Do not bother to #undef.
73254         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
73255         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73256         Remove unnecessary parentheses.
73257         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
73258         Insert necessary parentheses.
73259         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
73260         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
73261
73262 2002-11-19  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
73265         * lib/mbswidth.h: Include <stddef.h>, for size_t.
73266
73267         * lib/mbswidth.h (PARAMS): Remove macro.
73268         (mbswidth, mbsnwidth): Use ANSI C function declarations.
73269         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
73270
73271         * lib/gcd.h (PARAMS): Remove macro.
73272         (gcd): Use ANSI C function declarations.
73273         * lib/gcd.c (gcd): Likewise.
73274
73275 2002-11-15  Bruno Haible  <bruno@clisp.org>
73276
73277         * lib/strcspn.c: Include <stddef.h>.
73278         (strcspn): Use ANSI C function declaration. Change return type to
73279         size_t. Use NULL.
73280         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
73281         (strpbrk): Use NULL.
73282         * lib/strpbrk.h (PARAMS): Remove macro.
73283         (strpbrk): Use ANSI C function declaration.
73284         * lib/strstr.c: Don't include <sys/types.h>.
73285         * lib/strstr.h (PARAMS): Remove macro.
73286         (strstr): Use ANSI C function declarations.
73287
73288 2002-11-14  Karl Berry  <karl@gnu.org>
73289
73290         * config/mkinstalldirs: `do' on separate line, instead of
73291         `for var; do'.
73292
73293 2002-11-06  Bruno Haible  <bruno@clisp.org>
73294
73295         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
73296         * lib/gcd.c (gcd): Likewise.
73297
73298 2002-11-05  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/gcd.h: New file, from gettext-0.11.5.
73301         * lib/gcd.c: New file, from gettext-0.11.5.
73302
73303 2002-11-05  Bruno Haible  <bruno@clisp.org>
73304
73305         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73306         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73307         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73308         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
73309
73310         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
73311         <libintl.h>.
73312         * lib/makepath.c: Include gettext.h instead of <locale.h> and
73313         <libintl.h>.
73314
73315         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
73316         * lib/human.c: Include gettext.h instead of <libintl.h>.
73317         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
73318         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
73319         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
73320         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
73321         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
73322         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
73323         (textdomain): Remove definition.
73324         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
73325
73326         * lib/long-options.c: Remove include of <libintl.h> and definition of
73327         _.
73328         * lib/same.c: Remove include of <libintl.h> and definition of _.
73329
73330 2002-11-04  Owen Taylor  <otaylor@redhat.com>
73331
73332         * lib/config.charset: A few additions for Solaris.
73333
73334 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73335
73336         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
73337         * lib/localcharset.c (locale_charset): Declare as extern "C".
73338
73339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
73340
73341         * lib/config.charset: msdos in uk_UA uses CP1125.
73342
73343 2002-11-04  Bruno Haible  <bruno@clisp.org>
73344
73345         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
73346         * lib/strcase.h: New file, from GNU gettext-0.11.5.
73347         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
73348         * lib/strstr.h: New file, from GNU gettext-0.11.5.
73349         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
73350
73351 2002-11-04  Bruno Haible  <bruno@clisp.org>
73352
73353         * lib/localcharset.c (locale_charset): Don't return an empty string.
73354
73355 2002-11-04  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
73358         aliases.
73359
73360 2002-11-04  Bruno Haible  <bruno@clisp.org>
73361
73362         * lib/config.charset: Update for newest glibc. Add canonical names
73363         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
73364
73365 2002-11-04  Bruno Haible  <bruno@clisp.org>
73366
73367         * lib/config.charset: Add support for NetBSD.
73368
73369 2002-11-04  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
73372
73373 2002-11-01  Bruno Haible  <bruno@clisp.org>
73374
73375         * configure.in: Add AC_CONFIG_AUX_DIR call.
73376         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
73377         test/Makefile.
73378         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
73379
73380 2002-09-28  Karl Berry  <karl@gnu.org>
73381
73382         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
73383         installed automake until the next release, since changes have been
73384         made.
73385
73386 2002-09-25  Karl Berry  <karl@gnu.org>
73387
73388         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
73389         * lib/getopt*: copy from libc/posix.
73390         * lib/gettext.h: copy from gettext.
73391         * lib/.cppi-disable: add strdup.c, gettext.h.
73392
73393 2002-09-25  Karl Berry  <karl@gnu.org>
73394
73395         * config/srclist.txt: enable gettext.h check.
73396         * config/config.{guess,sub}: update from prep.
73397         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
73398                 from automake 1.6.3.
73399         See srclist*.
73400
73401 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
73402
73403         * regex.c (PATFETCH): Remove the translating fetch.
73404         (PATFETCH_RAW): Rename to PATFETCH.
73405         (set_image_of_range): New fun.
73406         (SET_RANGE_TABLE_WORK_AREA): Use it.
73407         (regex_compile): Don't translate the pattern chars so eagerly.
73408         Only do it when inserting an `exactn' bytecode or when handling
73409         a char-range.
73410         (mutually_exclusive_p): Avoid empty statement.
73411
73412 2002-07-06  Jim Meyering  <meyering@lucent.com>
73413
73414         * m4/README: Don't mention Makefile.am.in.
73415         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
73416
73417 2002-07-01  Jim Meyering  <meyering@lucent.com>
73418
73419         * lib/c-stack.c: Include sys/time.h.
73420         From Volker Borchert.
73421
73422 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73423
73424         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
73425
73426 2002-06-26  Paul Eggert  <eggert@twinsun.com>
73427
73428         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
73429         New macro.  Use it uniformly instead of
73430         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
73431         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
73432         reported by Vin Shelton.
73433
73434 2002-06-22  Paul Eggert  <eggert@twinsun.com>
73435
73436         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
73437         Do not assume SA_SIGINFO behavior.
73438         Bug reported by Jim Meyering on NetBSD 1.5.2.
73439
73440 2002-06-22  Jim Meyering  <meyering@lucent.com>
73441
73442         * m4/c-stack.m4: New file, from diffutils-2.8.2.
73443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
73444
73445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
73446         now that configure.ac uses AC_GNU_SOURCE.
73447         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
73448         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
73449
73450         Update to latest tools.  Suggestions from Paul Eggert.
73451         * m4/stdbool.m4: New file, from diffutils-2.8.2.
73452         * m4/gnu-source.m4: Update from diffutils-2.8.2.
73453         * m4/fnmatch.m4: Likewise.
73454         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
73455         to AC_HEADER_STDBOOL
73456
73457 2002-06-22  Jim Meyering  <meyering@lucent.com>
73458
73459         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
73460         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
73461
73462 2002-06-22  Jim Meyering  <meyering@lucent.com>
73463
73464         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
73465
73466         * lib/exitfail.c, exitfail.h: Likewise.
73467         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
73468
73469         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
73470         of fnmatch.h.
73471         (EXTRA_DIST): Add fnmatch_loop.c.
73472         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
73473
73474         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
73475         * lib/fnmatch.c: Update from diffutils-2.8.2.
73476         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
73477         * lib/fnmatch.h: Remove file.
73478
73479 2002-06-21  Jim Meyering  <meyering@lucent.com>
73480
73481         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
73482         * m4/mbrtowc.m4: Likewise.
73483
73484         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
73485         * m4/mbswidth.m4: Reflect name change:
73486         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
73487         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73488
73489         * m4/lib-link.m4: Update from gettext-0.11.2.
73490         * m4/gettext.m4: Likewise.
73491
73492         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
73493         From Alfred M. Szmidt.
73494
73495 2002-06-18  Paul Eggert  <eggert@twinsun.com>
73496
73497         * lib/file-type.h: Report an error if neither S_ISREG nor
73498         S_IFREG is defined, instead of using a test specific to glibc
73499         2.2.  This should be safe, since POSIX requires S_ISREG and
73500         Unix Version 7 had S_IFREG.  We don't need to check for
73501         <sys/types.h> since we don't use any symbols that it defines.
73502
73503 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
73504
73505         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
73506         $@-t, so that each temporary file name is unique and valid in the first
73507         8 characters, for operation under DOS.
73508
73509 2002-06-15  Paul Eggert  <eggert@twinsun.com>
73510
73511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
73512
73513 2002-06-15  Jim Meyering  <meyering@lucent.com>
73514
73515         Work even with DJGPP 2.03, which lacks support for symlinks.
73516         From Richard Dawe.
73517         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
73518         is defined.
73519         * lib/lchown.c (S_ISLNK): Likewise.
73520
73521 2002-06-15  Jim Meyering  <meyering@lucent.com>
73522
73523         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
73524         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
73525         have been included before this file.
73526
73527 2002-06-14  Jim Meyering  <meyering@lucent.com>
73528
73529         * lib/file-type.h: Use the version from diffutils-2.8.2.
73530         * lib/file-type.c: Likewise.
73531
73532 2002-06-07  Jim Meyering  <meyering@lucent.com>
73533
73534         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
73535         They're needed at least for NetBSD 1.5.2.
73536         ($statxfs_includes): Include those same headers.
73537         ($statxfs_includes): Include sys/vfs.h if available.
73538         ($statxfs_includes): Likewise for sys/statvfs.h.
73539         Check for the following members in both structs statfs and statvfs:
73540         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
73541
73542 2002-06-01  Jim Meyering  <meyering@lucent.com>
73543
73544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
73545         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
73546
73547 2002-05-28  Jim Meyering  <meyering@lucent.com>
73548
73549         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
73550         Reported by Volker Borchert.
73551
73552 2002-05-27  Jim Meyering  <meyering@lucent.com>
73553
73554         Fix a problem seen only on nonconforming systems whereby ls.c's
73555         use of localtime, and then of gettimeofday would cause trouble:
73556         the localtime call used to initialize rpl_gettimeofday's save
73557         mechanism would clobber ls's current local time information so
73558         that in any long listing the first file would always be listed
73559         with date 1970-01-01.  Analysis by Volker Borchert.
73560
73561         * lib/gettimeofday.c (localtime): Undefine.
73562         (rpl_localtime): New function.
73563
73564 2002-05-27  Jim Meyering  <meyering@lucent.com>
73565
73566         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
73567         localtime.
73568
73569         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
73570         use the replacement function; it wouldn't resolve at link time.
73571         Reported by Volker Borchert.
73572
73573 2002-05-22  Jim Meyering  <meyering@lucent.com>
73574
73575         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
73576         file-type.h.
73577         * lib/file-type.h: New file.
73578         * lib/file-type.c (file_type): New file/function.  Extracted from
73579         diffutils.
73580
73581 2002-04-30  Jim Meyering  <meyering@lucent.com>
73582
73583         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
73584
73585 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73586
73587         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
73588
73589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73590
73591         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
73592         Do not check for alloca.h (no longer used) or stdbool.h (was never
73593         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
73594
73595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
73596
73597         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
73598
73599 2002-04-29  Jim Meyering  <meyering@lucent.com>
73600
73601         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
73602         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
73603         Use AC_FUNC_STRNLEN here instead.
73604
73605         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
73606         With autoconf-2.53a, it's part of AC_PROG_CC.
73607
73608 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73609
73610         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
73611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
73612
73613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73614
73615         * lib/sig2str.h, lib/sig2str.c: New files.
73616         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
73617
73618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
73619
73620         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
73621         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
73622         of 127, since 64 is the largest conceivable number for ancient
73623         nonstandard hosts.
73624         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
73625
73626 2002-04-28  Jim Meyering  <meyering@lucent.com>
73627
73628         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
73629
73630 2002-04-24  Jim Meyering  <meyering@lucent.com>
73631
73632         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
73633         (jm_PREREQ): Use it.
73634
73635         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
73636         mach/mach.h fcntl.h.
73637         Check for this function: setlocale.
73638
73639 2002-04-24  Jim Meyering  <meyering@lucent.com>
73640
73641         * lib/gettext.h: New file, from Gettext.
73642         * lib/Makefile.am (INCLUDES): Remove -I../intl.
73643         (libfetish_a_SOURCES): Add gettext.h.
73644
73645 2002-04-16  Jim Meyering  <meyering@lucent.com>
73646
73647         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
73648         ut_pid, ut_id, ut_exit.
73649
73650 2002-04-16  Jim Meyering  <meyering@lucent.com>
73651
73652         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
73653         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
73654         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
73655
73656 2002-04-12  Jim Meyering  <meyering@lucent.com>
73657
73658         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
73659         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
73660         existence of the getmntinfo function.  Needed for Darwin 5.3.
73661
73662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
73663         This is necessary at least on Darwin 5.3.
73664
73665         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
73666         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
73667         strnlen.o in the library, and that makes some versions of ranlib
73668         object.
73669
73670 2002-04-12  Jim Meyering  <meyering@lucent.com>
73671
73672         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
73673
73674 2002-04-09  Jim Meyering  <meyering@lucent.com>
73675
73676         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
73677         to be more precise.  Rather than saying we're checking whether the
73678         function `works', say what we're testing.
73679         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
73680         Reported by Bruno Haible.
73681
73682 2002-03-10  Jim Meyering  <meyering@lucent.com>
73683
73684         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
73685         Suggestion from Santiago Vila.
73686
73687 2002-03-08  Jim Meyering  <meyering@lucent.com>
73688
73689         * lib/rename.c: Mention that this wrapper is needed also on
73690         mips-dec-ultrix4.4 systems.
73691
73692 2002-03-02  Jim Meyering  <meyering@lucent.com>
73693
73694         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
73695         not HAVE_CLOCK_SETTIME.
73696
73697 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73698
73699         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
73700         Check for clock_settime.
73701
73702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
73703
73704         * lib/nanosleep.h: Rename to....
73705         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
73706
73707         * lib/gettime.c: New file.
73708         * lib/settime.c: New file.
73709         * lib/stime.c: Remove.
73710
73711         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
73712         timespec.h.  Remove nanosleep.h.
73713
73714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73715
73716         * m4/acl.m4: New file.
73717         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
73718         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
73719
73720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
73721
73722         * lib/acl.c, lib/acl.h: New files.
73723         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
73724
73725 2002-02-24  Jim Meyering  <meyering@lucent.com>
73726
73727         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
73728         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
73729         cause trouble.  Reported by Nelson Beebe.
73730
73731 2002-02-23  Paul Eggert  <eggert@twinsun.com>
73732
73733         * lib/path-concat.c (xpath_concat): Reorder code to pacify
73734         compilers that don't know that xalloc_die never returns.
73735
73736 2002-02-20  Jim Meyering  <meyering@lucent.com>
73737
73738         * lib/getdate.c: Regenerate using bison-1.33.
73739
73740 2002-02-17  Jim Meyering  <meyering@lucent.com>
73741
73742         * config/config.guess (main): Don't use `head -1'; it's no longer
73743         portable. Use `sed 1q' instead.
73744
73745 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
73746
73747         * m4/codeset.m4: Upgrade to gettext-0.11.
73748         * m4/gettext.m4: Upgrade to gettext-0.11.
73749         * m4/glibc21.m4: Upgrade to gettext-0.11.
73750         * m4/iconv.m4: Upgrade to gettext-0.11.
73751         * m4/isc-posix.m4: Upgrade to gettext-0.11.
73752         * m4/lcmessage.m4: Upgrade to gettext-0.11.
73753         * m4/lib-ld.m4: New file, from gettext-0.11.
73754         * m4/lib-link.m4: New file, from gettext-0.11.
73755         * m4/lib-prefix.m4: New file, from gettext-0.11.
73756         * m4/progtest.m4: Upgrade to gettext-0.11.
73757
73758 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73759
73760         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
73761         (jm_PREREQ): Use it.
73762
73763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
73764
73765         * lib/posixver.c, lib/posixver.h: New files.
73766         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73767
73768 2002-02-02  Paul Eggert  <eggert@twinsun.com>
73769             Bruno Haible  <bruno@clisp.org>
73770
73771         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
73772         (fwrite_success_callback): New declaration.
73773         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
73774         print_unicode_char. Call failure callback instead of error.
73775         (fwrite_success_callback): New function.
73776         (exit_failure_callback): New function.
73777         (fallback_failure_callback): New function.
73778         (print_unicode_char): Call unicode_to_mb.
73779
73780 2002-01-26  Jim Meyering  <meyering@lucent.com>
73781
73782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
73783         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
73784
73785 2002-01-26  Jim Meyering  <meyering@lucent.com>
73786
73787         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
73788
73789 2002-01-22  Paul Eggert  <eggert@twinsun.com>
73790
73791         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
73792
73793 2002-01-22  Jim Meyering  <meyering@lucent.com>
73794
73795         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
73796         Otherwise, some versions of automake would omit the rule that makes
73797         Makefile from Makefile.in.
73798
73799 2002-01-21  Paul Eggert  <eggert@twinsun.com>
73800
73801         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
73802         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
73803         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
73804         (memcoll): Set errno to zero if there is no error.
73805
73806         * lib/quotearg.c (quotearg_buffer_restyled):
73807         Fix bug with quoting buffers containing NUL when backslashing escapes.
73808         This bug was exposed by the other changes in this patch.
73809         (quotearg_n_options): New arg ARGSIZE.
73810         All callers changed.
73811         (quoting_options_from_style): New function.
73812         (quotearg_n_style): Use it.
73813         (quotearg_n_style_mem): New function.
73814
73815         * lib/quotearg.h (quotearg_n_style_mem): New function.
73816
73817 2002-01-19  Jim Meyering  <meyering@lucent.com>
73818
73819         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
73820         Remove useless quotes: DF_PROG="df".
73821         * m4/strnlen.m4: New file.
73822
73823 2002-01-16  Paul Eggert  <eggert@twinsun.com>
73824
73825         * lib/backupfile.c (ISDIGIT): Comment fix.
73826         * lib/getdate.y (ISDIGIT): Likewise.
73827         * lib/posixtm.c (ISDIGIT, year): Likewise.
73828         * lib/strverscmp.c (ISDIGIT): Likewise.
73829         * lib/userspec.c (ISDIGIT): Likewise.
73830
73831 2002-01-16  Jim Meyering  <meyering@lucent.com>
73832
73833         * lib/getdate.y: Add three semicolons, each just before a closing
73834         brace. Bison (as of version 1.31) no longer papers over that mistake.
73835
73836 2002-01-05  Jim Meyering  <meyering@lucent.com>
73837
73838         * lib/version-etc.c (version_etc_copyright): Update copyright year.
73839
73840 2001-12-19  Paul Eggert  <eggert@twinsun.com>
73841
73842         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
73843         not silently exit merely because the output buffer happens to
73844         have nothing pending.
73845
73846 2001-12-18  Paul Eggert  <eggert@twinsun.com>
73847
73848         See the big note in ../ChangeLog.
73849         * lib/human.c (suffixes): Prefer K to k for 1024.
73850         (generate_suffix_backwards): New function.
73851         (human_readable_inexact): Use it.
73852         * lib/xstrtol.c (__xstrtol): If there is no number but there
73853         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
73854         Accept 'K' as well as 'k'.
73855
73856 2001-12-15  Jim Meyering  <meyering@lucent.com>
73857
73858         * lib/regex.h (__restrict_arr): Update from libc.
73859
73860         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
73861         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
73862         (STREQ): Define.
73863
73864 2001-12-14  Jim Meyering  <meyering@lucent.com>
73865
73866         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
73867         Suggestion from Bruno Haible.
73868
73869 2001-12-10  Jim Meyering  <meyering@lucent.com>
73870
73871         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
73872         xrealloc, Instead, include "xalloc.h".
73873         (initbuffer): Don't cast xmalloc return value to char*.
73874         (readline): Reword comment.
73875         Don't cast xrealloc return value to char*
73876         Return NULL, not 0.
73877
73878 2001-12-09  Jim Meyering  <meyering@lucent.com>
73879
73880         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
73881         about `signed and unsigned type in conditional expression'.
73882         * lib/posixtm.c (posix_time_parse): Likewise.
73883
73884         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
73885
73886         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
73887         to avoid a pedantic warning.
73888
73889         * lib/getstr.c: Don't include assert.h.
73890         (getstr): Remove warning-evoking assertions.
73891         Return -1 if offset parameter is out of bounds.
73892         Change the type of a local from int to size_t.
73893
73894         * lib/strftime.c (my_strftime_localtime_r): Include this function
73895         definition in the `#if ! HAVE_TM_GMTOFF' block.
73896
73897         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
73898         Include xalloc.h instead.
73899
73900 2001-12-02  Jim Meyering  <meyering@lucent.com>
73901
73902         * lib/tempname.c: Don't declare getenv, thus reverting the change of
73903         2001-11-18.  It's no longer necessary, now that stdlib.h is always
73904         included.
73905
73906         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
73907         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
73908
73909 2001-11-30  Akim Demaille  <akim@epita.fr>
73910
73911         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
73912         before being defined.
73913
73914 2001-11-27  Paul Eggert  <eggert@twinsun.com>
73915
73916         * lib/quotearg.h (quotearg_n, quotearg_n_style):
73917         First arg is int, not unsigned.
73918         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
73919         (SIZE_MAX, UINT_MAX): New macros.
73920         (quotearg_n_options): Abort if N is negative.
73921         Avoid overflow check on hosts where size_t is 64 bits and int
73922         is 32 bits, as overflow is impossible there.
73923         Fix off-by-one typo that caused unnecessary reallocation.
73924
73925 2001-11-27  Jim Meyering  <meyering@lucent.com>
73926
73927         * lib/tempname.c: Merge with version from libc.
73928         * lib/regex.c: Likewise.
73929
73930         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
73931         systems for which STDC_HEADERS is 0, it was not included, resulting in
73932         a warning about an integer-to-pointer conversion problem with getenv.
73933         Reported by Volker Borchert.
73934
73935 2001-11-26  Jim Meyering  <meyering@lucent.com>
73936
73937         * lib/gtod.h: Remove file.
73938         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
73939         * lib/gettimeofday.c: Don't include gtod.h.
73940         (GTOD_init): Remove function.
73941         (rpl_gettimeofday): Do its job here instead, rather than aborting.
73942         Suggestion from Volker Borchert.
73943
73944 2001-11-23  Jim Meyering  <meyering@lucent.com>
73945
73946         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
73947         it.
73948         * lib/hash.c (struct hash_table): Define it here instead.
73949
73950 2001-11-22  Jim Meyering  <meyering@lucent.com>
73951
73952         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
73953
73954 2001-11-20  Jim Meyering  <meyering@lucent.com>
73955
73956         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
73957         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
73958
73959 2001-11-19  Jim Meyering  <meyering@lucent.com>
73960
73961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
73962         directory.  Use "conftestXXXXXX" as the template.
73963         Suggestion from Paul Eggert.
73964
73965         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
73966         immediately, so the test doesn't mistakenly hit the max-open-files
73967         limit.
73968
73969 2001-11-18  Paul Eggert  <eggert@twinsun.com>
73970
73971         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
73972         (TEMPORARIES): New macro.
73973         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73974         removes an artificial limitation (e.g. HP-UX 10.20, where
73975         TMP_MAX is 17576).
73976
73977 2001-11-18  Jim Meyering  <meyering@lucent.com>
73978
73979         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73980
73981 2001-11-18  Jim Meyering  <meyering@lucent.com>
73982
73983         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73984         on SunOS 4.
73985
73986         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73987         files will be created before anything else.
73988
73989 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73990
73991         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73992         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73993
73994 2001-11-17  Jim Meyering  <meyering@lucent.com>
73995
73996         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73997         Prompted by a report from Bob Proulx.
73998
73999         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74000         Instead, require UTILS_FUNC_MKSTEMP.
74001
74002 2001-11-17  Jim Meyering  <meyering@lucent.com>
74003
74004         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74005         Now, that's done as part of AC_FUNC_STRTOD.
74006
74007 2001-11-17  Jim Meyering  <meyering@lucent.com>
74008
74009         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74010         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74011         rather than group writable.  Patch by Juan F. Codagnone.
74012
74013         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74014         xrealloc, Instead, include "xalloc.h".
74015
74016         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74017         Remove explicit declarations of xmalloc, xrealloc,
74018         and xstrdup.  Instead, include "xalloc.h".
74019
74020         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74021         unlocked-io.h.
74022         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74023         Likewise.
74024         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74025
74026         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74027         Reported by Padraig Brady.
74028
74029         * lib/mkstemp.c: #undef mkstemp.
74030         Include config.h.
74031         (rpl_mkstemp): Rename from mkstemp.
74032         Protoize.
74033
74034 2001-11-16  Jim Meyering  <meyering@lucent.com>
74035
74036         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74037         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74038         determine the amount of total physical memory, use pstat_getstatic.
74039         HPUX-11 doesn't define _SC_PHYS_PAGES.
74040         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74041         If sysconf couldn't be used to determine the amount of available
74042         physical memory, use both pstat_getstatic and pstat_getdynamic.
74043         Based on a patch from Bob Proulx.
74044
74045 2001-11-10  Jim Meyering  <meyering@lucent.com>
74046
74047         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74048         (jm_PREREQ): Use it.
74049
74050 2001-11-09  Jim Meyering  <meyering@lucent.com>
74051
74052         * m4/jm-macros.m4: Require autoconf-2.52f.
74053         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74054         Use these AC_-prefixed names, not the AM_-prefixed ones.
74055
74056         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74057
74058 2001-11-05  Jim Meyering  <meyering@lucent.com>
74059
74060         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74061
74062 2001-11-04  Jim Meyering  <meyering@lucent.com>
74063
74064         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74065         $DEFS.
74066
74067 2001-11-03  Jim Meyering  <meyering@lucent.com>
74068
74069         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74070         of AC_DEFUN.
74071
74072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74073         know the name of the variable in the macro definition.
74074
74075 2001-11-03  Jim Meyering  <meyering@lucent.com>
74076
74077         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74078         in argmatch_to_argument call.
74079
74080         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74081         argument.
74082
74083         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74084         e.g., a fault due to an attempt to free a NULL pointer.
74085
74086 2001-11-01  Jim Meyering  <meyering@lucent.com>
74087
74088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74089         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74090
74091 2001-11-01  Jim Meyering  <meyering@lucent.com>
74092
74093         * lib/dirfd.c, lib/dirfd.h: New files.
74094         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74095
74096         * lib/hash.c (hash_print) [TESTING]: Clean up.
74097
74098 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74099
74100         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74101         to avoid a warning if -Wall.
74102
74103 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74104
74105         * README: New file
74106         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74107         (per RMS's instructions, this is now the canonical source)
74108         * lgpl/, gpl/: New directories.
74109
74110 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74111
74112         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74113
74114 2001-10-21  Jim Meyering  <meyering@lucent.com>
74115
74116         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74117         this code would end up calling gettext even in packages built
74118         with --disable-nls.
74119         * lib/getopt.c (_): Likewise.
74120         * lib/regex.c (_): Likewise.
74121
74122 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74123
74124         * m4/error.m4 (jm_PREREQ_ERROR):
74125         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74126         AC_FUNC_STRERROR_R does that.
74127         Check for strerror declaration.
74128
74129         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74130         are supposed to have them these days.
74131         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74132         Merge changes from latest Autoconf CVS.
74133         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74134         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74135         POSIX decided to standardize on the int flavor of strerror_r.
74136
74137 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74138
74139         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74140         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74141         Use strerror_r that is only a macro, even if it is not a function.
74142         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74143         (private_strerror): Use prototypes, not old-style function definition.
74144         (print_errno_message): New function.
74145         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74146         char*-flavored one.
74147         (error_tail, error, error_at_line): Use it.
74148
74149 2001-10-11  Jim Meyering  <meyering@lucent.com>
74150
74151         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74152         and quote_n (1, ... to avoid clobbering a buffer.
74153
74154 2001-10-05  Jim Meyering  <meyering@lucent.com>
74155
74156         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74157         hash-pjw.h.
74158         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74159         * lib/hash-pjw.h: New file.
74160
74161 2001-09-30  Jim Meyering  <meyering@lucent.com>
74162
74163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74164         `struct fsstat' has the `f_fstypename' member.
74165         Use that to define FS_TYPE, which is now used to make
74166         the getfsstat link test tighter.
74167
74168 2001-09-30  Jim Meyering  <meyering@lucent.com>
74169
74170         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74171         Include <sys/ucred.h>, for Apple Darwin.
74172         Include sys/mount.h and sys/fs_types.h only if available.
74173         (FS_TYPE): Define.
74174         (read_filesystem_list): Use FS_TYPE.
74175
74176 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74177
74178         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74179         a boolean context.
74180
74181 2001-09-29  Jim Meyering  <meyering@lucent.com>
74182
74183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74184         [one-argument getmntent function]): Include stdio.h before mntent.h.
74185         SunOS 4.1.x needs it for the declaration of `FILE'.
74186         Patch by Volker Borchert.
74187
74188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74189         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74190         sys/fs_types.h, and make the link-test for getfsstat guard #include
74191         directives with appropriate #if HAVE_*_H tests so that we can
74192         detect getfsstat on Apple Darwin1.3.7 systems.
74193         Reported by Nelson Beebe.
74194         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74195
74196 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74197
74198         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74199         #defines strtoimax.  Also treat the other strto* functions
74200         like strtoimax.
74201
74202         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74203         Check for strtoul and strtoumax,
74204         as those declarations are made even in the signed case.
74205         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74206         Likewise, for strtol and strtoimax.
74207
74208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74209
74210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74211         #defines strtoimax.  Also treat the other strto* functions
74212         like strtoimax.
74213
74214         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74215         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74216         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74217
74218 2001-09-26  Jim Meyering  <meyering@lucent.com>
74219
74220         Most macros in unlocked-io.h had the wrong number of arguments.
74221         * lib/gen-uio: New script.
74222         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74223         * lib/unlocked-io.hin: Remove file.
74224         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74225         rather than trying to embed it here.
74226         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74227         Reported by Padraig Brady.
74228
74229 2001-09-25  Volker Borchert  <bt@teknon.de>
74230
74231         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74232         `result'.
74233
74234 2001-09-24  Jim Meyering  <meyering@lucent.com>
74235
74236         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74237
74238 2001-09-23  Jim Meyering  <meyering@lucent.com>
74239
74240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
74241         instead of the mere test for existence of mntent.h.  The latter
74242         would get a false-positive on AIX 3.4 systems.
74243         In the outer getmntent if-block, don't die if neither of the getmntent
74244         tests succeeds.  Instead, just fall through and continue with the
74245         remaining tests.
74246
74247 2001-09-23  Jim Meyering  <meyering@lucent.com>
74248
74249         * lib/mountlist.c: Remove useless parentheses in #if directives.
74250         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
74251         the deprecated MOUNTED symbol is no longer defined in mntent.h.
74252
74253 2001-09-22  Jim Meyering  <meyering@lucent.com>
74254
74255         * m4/gettext.m4: New file.  From gettext.
74256         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
74257         * m4/progtest.m4: Likewise
74258         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
74259         * m4/glibc21.m4: Likewise.
74260
74261         * m4/libintl.m4: Remove.  No longer used.
74262
74263 2001-09-22  Jim Meyering  <meyering@lucent.com>
74264
74265         * lib/localcharset.c: Update from latest gettext.
74266         * lib/config.charset: Likewise.
74267
74268 2001-09-20  Jim Meyering  <meyering@lucent.com>
74269
74270         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
74271         strtoimax.
74272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
74273         strtoumax.
74274
74275 2001-09-20  Jim Meyering  <meyering@lucent.com>
74276
74277         * lib/xstrtol.c (strtoimax): Guard declaration with
74278         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
74279         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
74280         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
74281         (strtoumax): Likewise, for completeness (it wasn't necessary).
74282
74283 2001-09-17  Paul Eggert  <eggert@twinsun.com>
74284
74285         * lib/strtoimax.c (HAVE_LONG_LONG):
74286         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
74287         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
74288         to work around bug in IBM C compiler.
74289
74290 2001-09-17  Jim Meyering  <meyering@lucent.com>
74291
74292         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
74293         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
74294         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
74295         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
74296         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
74297         whenever the right hand side need not be expanded by the shell.
74298
74299 2001-09-16  Paul Eggert  <eggert@twinsun.com>
74300
74301         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
74302         library.  It's not correct, as some older glibcs are buggy.
74303         fnmatch wasn't fixed until glibc 2.2.
74304
74305         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
74306         special shell magic here.
74307
74308 2001-09-16  Jim Meyering  <meyering@lucent.com>
74309
74310         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
74311         * m4/jm-macros.m4: Require it.
74312
74313 2001-09-16  Jim Meyering  <meyering@lucent.com>
74314
74315         * lib/mkdir.c: New file.
74316
74317 2001-09-15  Jim Meyering  <meyering@lucent.com>
74318
74319         * m4/jm-macros.m4: Check for help2man.
74320
74321 2001-09-11  Jim Meyering  <meyering@lucent.com>
74322
74323         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
74324         The body, by Paul Eggert, was moved here from configure.in.
74325         * m4/jm-macros.m4: Require UTILS_HOST_OS.
74326
74327 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74328
74329         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
74330         (jm_PREREQ): Use it.
74331
74332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74333
74334         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
74335         Use ssize_t, not int, to store result of readlink.
74336         Check for ssize_t overflow as well as size_t overflow,
74337         as POSIX says the result of readlink is implementation-defined
74338         when ssize_t overflows.
74339         Remove unnecessary cast to char*.
74340         Use free+malloc instead of realloc, as the storage doesn't need
74341         to be preserved and it's clearer and can be more efficient that way.
74342         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
74343         * lib/xreadlink.h (xreadlink): Update prototype.
74344
74345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
74346
74347         * lib/xgetcwd.c: Revert some of the previous change; intead,
74348         fix the HAVE_GETCWD_NULL code to behave more like the
74349         !HAVE_GETCWD_NULL code used to.
74350
74351         Include "xalloc.h".
74352         (xgetcwd): Do not return NULL when memory is exhausted; instead,
74353         invoke xalloc_die.
74354
74355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74356
74357         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
74358         sys/param.h, as pathmax.h includes them.
74359
74360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74361
74362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
74363         (jm_PREREQ_XGETCWD): New macro.
74364
74365         * m4/getcwd.m4: New file.
74366
74367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74368
74369         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
74370         like the HAVE_GETCWD_NULL code.
74371         Include pathmax.h if not HAVE_GETCWD.
74372         Do not include xalloc.h.
74373         (INITIAL_BUFFER_SIZE): New symbol.
74374         Do not use xmalloc / xrealloc, since the caller is responsible for
74375         handling errors.  Preserve errno around `free' during failure.
74376         Do not overrun buffer when using getwd.
74377
74378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74379
74380         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
74381         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
74382         getcwd (NULL, 0).
74383
74384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
74385
74386         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
74387         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
74388         spotted by Jim Meyering.
74389
74390 2001-09-03  Jim Meyering  <meyering@lucent.com>
74391
74392         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
74393         failure.
74394
74395 2001-09-02  Jim Meyering  <meyering@lucent.com>
74396
74397         * lib/error.c: Update from GNU libc.
74398
74399 2001-09-01  Jim Meyering  <meyering@lucent.com>
74400
74401         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
74402         Used by df.
74403
74404 2001-09-01  Jim Meyering  <meyering@lucent.com>
74405
74406         * lib/xreadlink.c: New file.
74407         * lib/xreadlink.h: New file.
74408         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
74409         xreadlink.h.
74410
74411         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
74412         doesn't conflict with sparc Solaris 7's definition in
74413         /usr/include/sys/int_types.h.
74414
74415         * lib/exclude.c: Use `""', not `<>' to #include non-system header
74416         files.
74417         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
74418         and strncasecmp as r-values.  Unixware didn't have declarations.
74419
74420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74421
74422         * lib/xstrtol.h: Add copyright notice.
74423         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
74424         LONGINT_INVALID_SUFFIX_CHAR.
74425
74426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74427
74428         * lib/xstrtol.c (strtoimax): New decl.
74429
74430 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74431
74432         * lib/xgetcwd.c: Don't include pathmax.h.
74433         Include stdlib.h and unistd.h if available.
74434         Include xalloc.h.
74435         (xmalloc, xstrdup, free): Remove decls.
74436         (xgetcwd): Don't assume sizes fit in unsigned.
74437         Check for overflow when computing sizes.
74438         Simplify reallocation code.
74439
74440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74441
74442         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
74443         a directory's st_size can have an arbitrary value, so the old
74444         usage could waste an arbitrary amount of memory.  All uses
74445         changed.
74446         * lib/savedir.h: Update prototype.
74447
74448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
74449
74450         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
74451
74452         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
74453         old strtoimax.c.
74454
74455         Also, make the following further changes to make this file's
74456         configuration more similar to that of strtol.c:
74457         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
74458         (strtoumax, uintmax_t, strtoull, strtol): Remove.
74459         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
74460         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
74461         changed to signed values.
74462
74463         And make the following changes as well:
74464         Fix copyright notice, as 1999 was missing.
74465         (verify): New macro.
74466         (strtoimax): Check sizes at compile-time, not run-time.
74467         Prefer strtol to strtoll if both work.
74468         (main): Remove; it was not that useful and was a pain to maintain.
74469
74470         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
74471
74472 2001-08-31  Jim Meyering  <meyering@lucent.com>
74473
74474         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
74475         Use an initial, malloc'd, buffer of length 128 rather than
74476         a statically allocated one of length 1024.
74477
74478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74479
74480         Simplify code, partly by assuming autoconf 2.52 semantics.
74481
74482         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
74483
74484         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
74485         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
74486         All uses removed.
74487         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
74488         Move AC_REQUIRE to next-to-top level, to avoid confusion.
74489         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
74490         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
74491         jm_AC_HEADER_INTTYPES_H.
74492         * m4/jm-macros.m4 (jm_MACROS): Likewise.
74493
74494         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
74495
74496         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74497         Quote first arg of AC_DEFUN.
74498         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
74499         since they are needed to parse the include file even if we need
74500         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
74501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
74502         but with opposite signedness.
74503
74504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74505
74506         Merge 'exclude' changes from tar 1.13.22.
74507         This fixes one or two unlikely storage allocation overflow bugs,
74508         but doesn't change user-visible behavior otherwise.
74509
74510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74511
74512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
74513         (jm_PREREQ_EXCLUDE): New macro.
74514
74515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74516
74517         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
74518         tm to be declared.
74519
74520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74521
74522         * lib/hash.c: Remove '2001' from copyright notice.
74523
74524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74525
74526         * lib/full-write.h: New file.
74527         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
74528         * lib/full-write.c: Correct credits, as cccp.c no longer
74529         exists and anyway it was so heavily changed from the old cccp
74530         code as to be unrecognizable.  Include full-write.h.
74531         (full_write) Return size_t, with short writes meaning failure.
74532         All callers changed.  This fixes a bug with large buffers
74533         on 64-bit hosts.
74534         * lib/utime.c: Include full-write.h.
74535
74536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74537
74538         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
74539         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
74540         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
74541         Include if available.
74542         (<xalloc.h>): Include
74543         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
74544         (verify): New macro.  Use it to verify that EXCLUDE macros do not
74545         collide with FNM macros.
74546         (struct patopts): New struct.
74547         (struct exclude): Use it, as exclude patterns now come with options.
74548         (new_exclude): Support above changes.
74549         (new_exclude, add_exclude_file):
74550         Initial size must now be a power of two to simplify overflow checking.
74551         (free_exclude, fnmatch_no_wildcards): New function.
74552         (excluded_filename): No longer requires options arg, as the options
74553         are determined by add_exclude.  Now returns bool, not int.
74554         (excluded_filename, add_exclude):
74555         Add support for the fancy new exclusion options.
74556         (add_exclude, add_exclude_file): Now takes int options arg.
74557         Check for arithmetic overflow when computing sizes.
74558         (add_exclude_file): xrealloc might modify errno, so don't
74559         realloc until after errno might be used.
74560
74561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
74562         New macros.
74563         (free_exclude): New decl.
74564         (add_exclude, add_exclude_file): Now takes int options arg.
74565         (excluded_filename): No longer requires options arg, as the options
74566         are determined by add_exclude.  Now returns bool, not int.
74567
74568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
74569
74570         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
74571
74572 2001-08-27  Jim Meyering  <meyering@lucent.com>
74573
74574         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
74575
74576         * lib/version-etc.c (N_): Remove definition.
74577         Revert most of last change.
74578         Instead, simply don't mark the `Copyright...' string for translation.
74579         Based on advice from Paul Eggert.
74580
74581         * lib/strtoxmax.c: Tweak comment.
74582
74583 2001-08-26  Jim Meyering  <meyering@lucent.com>
74584
74585         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
74586
74587         * m4/xstrtoimax.m4: New file.
74588         * m4/xstrtoumax.m4: Add comments explaining why we
74589         AC_REPLACE_FUNCS(strtol).
74590
74591 2001-08-26  Jim Meyering  <meyering@lucent.com>
74592
74593         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
74594         of copyright with `%s' so translators don't get an untranslated
74595         message in 2002.
74596         (COPYRIGHT_YEAR): Define.
74597         (version_etc): Use fprintf rather than fputs.
74598         Suggestion from Ulrich Drepper.
74599
74600         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
74601
74602         * lib/strtoll.c: New file, from GNU libc.
74603         * lib/xstrtoimax.c: New file.
74604
74605         * lib/xstrtol.h: Add xstrtoimax.
74606         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
74607         * lib/strtoimax.c: New file.  Likewise, but first define
74608         STRTOUXMAX_SIGNED.
74609
74610         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
74611         ...
74612         * lib/strtoxmax.c: ... then renamed to this.
74613
74614 2001-08-18  Paul Eggert  <eggert@twinsun.com>
74615
74616         * m4/inttypes.m4: Add AC_PREREQ(2.13).
74617         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
74618         (jm_AC_TYPE_INTMAX_T): New macro.
74619         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
74620
74621         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
74622
74623         * m4/longlong.m4: Renamed from ulonglong.m4.
74624         * m4/inttypes.m4: Renamed from inttypes_h.m4.
74625         * m4/uintmax_t.m4: Removed.
74626
74627 2001-08-13  Paul Eggert  <eggert@twinsun.com>
74628
74629         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
74630         Port to Solaris 8, where 'sed' requires a space after the 'r'
74631         command, and where sh dislikes "$/".  Clean up the spacing a bit.
74632         Redirect output to $tmp just once.
74633
74634 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
74635
74636         * lib/addext.c (<errno.h>): Include.
74637         (errno): Declare if not defined.
74638         (addext): Work correctly when pathconf returns -1 and leaves
74639         errno alone because there is no limit.  Also, work even if
74640         pathconf returns a value greater than SIZE_MAX.
74641
74642 2001-08-12  Jim Meyering  <meyering@lucent.com>
74643
74644         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
74645         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
74646         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
74647         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
74648         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
74649         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
74650         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
74651         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
74652         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
74653         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
74654         utime.m4, utimes.m4, xstrtoumax.m4:
74655         Quote the first argument in each use of AC_DEFUN.
74656
74657 2001-08-12  Jim Meyering  <meyering@lucent.com>
74658
74659         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
74660         Simply `return getcwd (NULL, 0);'.
74661         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
74662         Use 1300 as initial value for length, not PATH_MAX.
74663
74664         * lib/pathmax.h: Clean up cpp syntax.
74665
74666 2001-08-12  Jim Meyering  <meyering@lucent.com>
74667
74668         * lib/gettimeofday.c: New file.
74669         * lib/gtod.h: New file.
74670         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
74671
74672 2001-08-05  Jim Meyering  <meyering@lucent.com>
74673
74674         * m4/jm-macros.m4: Require autoconf-2.52.
74675
74676 2001-08-04  Jim Meyering  <meyering@lucent.com>
74677
74678         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
74679         stmt, to get in sync with glibc.
74680
74681 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74682
74683         The following changes are from gettext 0.10.39 as maintained by
74684         Bruno Haible.
74685
74686         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
74687         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
74688         with inverted sense.  All uses changed.
74689
74690         * lib/mbswidth.c: Don't include <limits.h>.
74691         Include <stdlib.h> and <string.h> unconditionally.
74692         (iswcntrl, mbsinit, ISCNTRL): New macros.
74693         (mbsnwidth): Use K&R style function declarations.
74694         Don't bother checking for MB_LEN_MAX == 1, since the compiler
74695         can optimize it when MB_CUR_MAX == 1.
74696         The width of control characters is zero, not 1.
74697
74698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
74699
74700         The following changes are from gettext 0.10.39 as maintained by
74701         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
74702
74703         * m4/codeset.m4: Upgrade to serial AM1.
74704         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
74705         all uses changed.  Quote first arg of AC_DEFUN.
74706         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
74707
74708         * m4/iconv.m4: Upgrade to serial AM2.
74709         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
74710         Add --with-libconv-prefix.
74711         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
74712         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
74713         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
74714         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
74715         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
74716
74717         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
74718         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
74719         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
74720         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
74721         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
74722         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
74723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
74724         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
74725         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74726
74727         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
74728         string.h any more.
74729
74730         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
74731         not the default value.
74732
74733         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
74734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
74735         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
74736         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
74737         Also check for iswcntrl, used for wcwidth fallback.
74738         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
74739         to Autoconf 2.13.
74740
74741 2001-08-03  Jim Meyering  <meyering@lucent.com>
74742
74743         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
74744         as it was in the original.  Reported by Paul Eggert.
74745
74746 2001-07-16  Jim Meyering  <meyering@lucent.com>
74747
74748         * m4/gettimeofday.m4: New file.
74749         Prompted by a report from Bernhard Baehr.
74750
74751 2001-07-15  Jim Meyering  <meyering@lucent.com>
74752
74753         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
74754         stuff. Now it's in ../Makefile.cfg.
74755
74756 2001-07-15  Jim Meyering  <meyering@lucent.com>
74757
74758         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
74759         (BUILT_SOURCES): Add unlocked-io.h.
74760         (io_functions): Define.
74761         (unlocked-io.h): New rule.
74762         (DISTCLEANFILES): Add unlocked-io.h.
74763         (all-local): Depend on unlocked-io.h, to ensure it is created.
74764
74765         * lib/unlocked-io.hin: New file
74766
74767         * lib/regex.c: Update from glibc.
74768
74769 2001-07-05  Jim Meyering  <meyering@lucent.com>
74770
74771         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
74772         recommendation.
74773         (libfetish_a_SOURCES): Put all .h files here instead.
74774         Remove a thus-exposed (better checks in automake) duplicate and
74775         two unnecessary .h files.
74776
74777 2001-07-04  Jim Meyering  <meyering@lucent.com>
74778
74779         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
74780         that generates jm-glibc-io.m4 so that it doesn't trigger any make
74781         distcheck failure.
74782
74783 2001-07-02  Jim Meyering  <meyering@lucent.com>
74784
74785         The following changes were prompted by suggestions from Bruno Haible.
74786
74787         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
74788         is now generated.
74789         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
74790         definition of EXTRA_DIST.
74791         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
74792         ensure that the generated file is created/updated whenever the list
74793         of $(unlocked_functions) is changed.
74794         (jm-glibc-io.m4): New rule.
74795         (unlocked-io.h): New rule -- currently unused.
74796
74797 2001-06-24  Jim Meyering  <meyering@lucent.com>
74798
74799         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
74800         unmatched right bracket, rather than kludging it with an extra,
74801         falsely-matching quote in a comment.  Patch by Akim Demaille.
74802
74803 2001-06-11  Jim Meyering  <meyering@lucent.com>
74804
74805         * lib/regex.c: Update from GNU libc.
74806
74807 2001-05-27  Jim Meyering  <meyering@lucent.com>
74808
74809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
74810         Check for ut_type in struct utmp.
74811
74812 2001-05-27  Jim Meyering  <meyering@lucent.com>
74813
74814         * lib/readutmp.h (UT_TYPE): Define.
74815
74816 2001-05-24  Jim Meyering  <meyering@lucent.com>
74817
74818         * lib/argmatch.c: Include "quote.h".
74819         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
74820         quote function.  Reported by Göran Uddeborg.
74821
74822 2001-05-22  Jim Meyering  <meyering@lucent.com>
74823
74824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
74825         now that we use the package-supplied version unconditionally.
74826         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
74827
74828 2001-05-21  Jim Meyering  <meyering@lucent.com>
74829
74830         * m4/regex.m4: Change a couple backticks to single quotes to avoid
74831         shell syntax errors.
74832
74833 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74834
74835         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
74836
74837 2001-05-20  Paul Eggert  <eggert@twinsun.com>
74838
74839         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
74840         Don't bother to check library strftime, since
74841         we'll be using our own my_strftime function anyway.
74842         Define my_strftime instead of strftime.
74843
74844 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
74845
74846         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
74847         which is not yet declared.
74848
74849 2001-05-15  Jim Meyering  <meyering@lucent.com>
74850
74851         * m4/regex.m4: Use proper quoting so brackets appear in the test
74852         program.
74853         Reported by, and with help from, Bruno Haible.
74854
74855 2001-05-13  Jim Meyering  <meyering@lucent.com>
74856
74857         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
74858         undefined.
74859
74860 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74861
74862         dirname code cleanup.  base_name now behaves more compatibly
74863         with POSIX basename when given file names that have trailing
74864         slashes, and similarly for dir_name.  Add new primitives
74865         base_len and dir_len.  Put the directory-name-related decls
74866         into dirname.h.
74867
74868         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
74869         * lib/backupfile.c (base_name): Likewise.
74870         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
74871         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
74872         * lib/makepath.c (strip_trailing_slashes): Likewise.
74873         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
74874         ISSLASH): Likewise.
74875         * lib/rename.c (strip_trailing_slashes): Likewise.
74876         * lib/same.c (base_name): Likewise.
74877         * lib/stripslash.c (ISSLASH): Likewise.
74878
74879         * lib/addext.c: Include <dirname.h> after size_t is defined.
74880         * lib/backupfile.c: Likewise.
74881
74882         * lib/addext.c (addext): Use base_len to trim redundant
74883         trailing slashes instead of doing it ourselves.
74884         But do not trim the last slash if it is not redundant.
74885
74886         * lib/backupfile.c (find_backup_file_name,
74887         max_backup_version): Use base_len instead of rolling it ourselves.
74888         Handle the case of "" and (on DOS) "C:" correctly.
74889
74890         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
74891         needed. Include <string.h>, <dirname.h>.
74892         (base_name): Allow file names ending in slashes, other than names
74893         that are all slashes.  In this case, return the basename followed
74894         by the slashes.  This is more general, and can be used in places
74895         where the original base_name purposely had an assertion failure.
74896         (base_len): New function.
74897
74898         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
74899         Do not include <assert.h>; no longer needed.
74900         Include xalloc.h.
74901         (memrchr): Remove decl.
74902         (dir_name_r): Remove.
74903         (dir_len): Renamed from dirlen.  All callers changed.
74904         Rewrite in terms of base_name, for simplicity and consistency.
74905         (dir_name): Never return NULL.  All callers changed.
74906         Do not include <stdlib.h> in test program; no longer needed.
74907         return 0; is fine for test program.
74908
74909         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
74910         New macros.
74911         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
74912
74913         * lib/path-concat.c (path_concat): Use base_len to compute
74914         base length, not strlen; this means we cannot rely on memcpy
74915         to null-terminate.
74916
74917         * lib/same.c (STREQ): Remove.
74918         (same_name): Handle the case where the basename ends in trailing '/'.
74919
74920         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
74921         a slash was stripped.  Do not strip the last slash after a
74922         file system prefix.
74923
74924 2001-05-11  Paul Eggert  <eggert@twinsun.com>
74925
74926         * lib/Makefile.am (libfetish_a_SOURCES):
74927         Add strftime.c, since we now compile it on all hosts.
74928
74929         * lib/strftime.c (my_strftime):
74930         Define to nstrftime if emacs, but only if my_strftime is not defined.
74931         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
74932         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
74933         Add one more extra argument: a nanoseconds value.
74934         All uses changed.
74935         (ns): New macro.
74936         (my_strftime function): Add %N format.
74937         (emacs_strftimeu): Renamed from emacs_strftime,
74938         with extra ut argument.
74939
74940 2001-05-09  Paul Eggert  <eggert@twinsun.com>
74941
74942         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
74943
74944 2001-04-21  Jim Meyering  <meyering@lucent.com>
74945
74946         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
74947         doesn't interfere.
74948
74949 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
74950
74951         * m4/ftruncate.m4: Check for chsize.
74952         Link with ftruncate.o unconditionally if ftruncate is missing.
74953         This was required when cross-compiling to i586-mingw32msvc.
74954
74955 2001-04-08  Jim Meyering  <meyering@lucent.com>
74956
74957         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
74958         recomputed; that's necessary when the offset spans a DST transition.
74959         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
74960
74961 2001-04-02  Jim Meyering  <meyering@lucent.com>
74962
74963         * lib/regex.h, regex.c: Update from GNU libc.
74964
74965 2001-03-24  Jim Meyering  <meyering@lucent.com>
74966
74967         * m4/jm-macros.m4: Require autoconf-2.49d.
74968
74969 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
74970
74971         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
74972
74973 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74974
74975         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74976
74977 2001-03-17  Jim Meyering  <meyering@lucent.com>
74978
74979         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74980         now that the version in autoconf is equivalent.
74981         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74982
74983         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74984         Suggestion from Akim Demaille.
74985
74986         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74987         (jm_PREREQ_TEMPNAME): New function.
74988
74989 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74990
74991         * lib/tempname.c (uint64_t): Define to uintmax_t if
74992         not defined, and if UINT64_MAX is not defined.
74993         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74994         Reported by John David Anglin.
74995
74996 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74997
74998         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74999         resolve alias if codeset is empty.
75000         * lib/config.charset (BeOS): Use wildcard syntax.
75001
75002 2001-03-13  Jim Meyering  <meyering@lucent.com>
75003
75004         * lib/path-concat.c (path_concat)
75005         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75006         concatenating e.g., `C:' and `foo'.
75007         From Bruno Haible.
75008
75009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75010
75011         * lib/localcharset.c (locale_charset): Don't use
75012         setlocale(LC_CTYPE,NULL). Don't return NULL.
75013         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75014
75015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75016
75017         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75018         support for DOS/DJGPP.
75019
75020 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75021
75022         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75023         lacks mkstemp.  Compile our own tempname.c if we compile our own
75024         mkstemp.c, as mkstemp relies on tempname.
75025
75026 2001-03-01  Jim Meyering  <meyering@lucent.com>
75027
75028         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75029         AH_VERBATIM really does output its argument verbatim.
75030
75031 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75032
75033         * lib/Makefile.am (libfetish_a_SOURCES):
75034         Add dup-safer.c, fopen-safer.c.
75035         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75036
75037         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75038         * lib/unistd-safer.h: New files.
75039
75040 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75041
75042         The mkstemp replacement is taken from glibc 2.2.2, with some
75043         portability fixes for use outside glibc, as follows:
75044
75045         * lib/tempname.c (struct_stat64): New macro.
75046         (direxists, __gen_tempname): Use it.
75047         This avoids a portability problem with Solaris 8.
75048
75049         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75050         (<stddef.h>, <stdint.h>, <string.h>):
75051         Include only if STDC_HEADERS || _LIBC.
75052         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75053         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75054         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75055         (__set_errno): Define this macro if <errno.h> doesn't.
75056         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75057         Define these macros if <stdio.h> doesn't.
75058         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75059         Define these macros if <sys/stat.h>
75060         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75061         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75062         __xstat64): Define if not _LIBC.
75063         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75064         (__gen_tempname): Invoke gettimeofday only if
75065         HAVE_GETTIMEOFDAY || _LIBC;
75066         otherwise, fall back on plain "time".
75067         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75068
75069         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75070
75071         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75072
75073 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75074
75075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75076
75077 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75078
75079         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75080         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75081         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75083
75084 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75085
75086         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75087         Remove workaround macros for hosts that have mbrtowc but not
75088         mbstate_t, as we now insist on proper declarations for both
75089         before using mbrtowc.
75090
75091 2001-02-17  Jim Meyering  <meyering@lucent.com>
75092
75093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75094         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75095         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75096         UnixWare 7.1.1.
75097
75098         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75099         rather than AC_CACHE_VAL.
75100
75101 2001-02-17  Jim Meyering  <meyering@lucent.com>
75102
75103         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75104         around included file name.
75105
75106         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75107
75108         * lib/strftime.c: Update from GNU libc (the only changes were to
75109         comments).
75110
75111 2001-02-17  Jim Meyering  <meyering@lucent.com>
75112
75113         * lib/regex.c: Update from libc.
75114
75115 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75116
75117         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75118         clash.
75119
75120 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75121
75122         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75123         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75124         Reported by Mark Hounschell via Paul Eggert.
75125
75126 2001-02-07  Jim Meyering  <meyering@lucent.com>
75127
75128         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75129
75130 2001-02-05  Jim Meyering  <meyering@lucent.com>
75131
75132         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75133         it includes the patch required for `large file' support with at least
75134         HP-UX's 10.20 /bin/cc.
75135
75136 2001-02-03  Jim Meyering  <meyering@lucent.com>
75137
75138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75139         AS_IF, now that it works once again (mysteriously).
75140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75141
75142 2001-01-30  Jim Meyering  <meyering@lucent.com>
75143
75144         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75145         * m4/chown.m4: Rename conftestchown to conftest.chown.
75146         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75147         s/conftestdir2/conftest.d2/.
75148         * m4/utimes.m4: s/conftestdata/conftest.data/
75149         Inspired by Pavel Roskin's change in autoconf.
75150
75151 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75152
75153         * lib/config.charset: Update for FreeBSD 4.2.
75154
75155 2001-01-27  Jim Meyering  <meyering@lucent.com>
75156
75157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75158         a use of AS_IF.
75159         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75160
75161 2001-01-26  Jim Meyering  <meyering@lucent.com>
75162
75163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75164         quotearg.c includes it.
75165
75166 2001-01-26  Jim Meyering  <meyering@lucent.com>
75167
75168         * lib/quotearg.c: Include stddef.h.
75169         * lib/quote.c: Include stddef.h.
75170         Reported by Axel Kittenberger.
75171
75172         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75173         line in double quotes so that it evokes a better diagnostic.
75174         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75175         Reported by Axel Kittenberger.
75176
75177 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75178
75179         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75180         as if it was a `charset'.
75181
75182 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75183
75184         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75185         has const.
75186
75187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75188
75189         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75190         to avoid a warning.  Add back 'const' to inptr.
75191
75192 2001-01-20  Jim Meyering  <meyering@lucent.com>
75193
75194         Be sure that headers are checked before used in code compiled
75195         for the type checks.
75196         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75197         In place of that, invoke jm_CHECK_ALL_TYPES.
75198         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75199         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75200         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75201         The check for ssize_t was mistakenly run before the test for unistd.h.
75202
75203         The configure-time check for stdbool.h was missing.
75204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75205         (jm_PREREQ_HASH): New function.
75206
75207 2001-01-17  Jim Meyering  <meyering@lucent.com>
75208
75209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75210         for autoconf-2.49c.
75211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75212
75213 2001-01-16  Jim Meyering  <meyering@lucent.com>
75214
75215         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75216         From Bruno Haible.
75217
75218 2001-01-14  Jim Meyering  <meyering@lucent.com>
75219
75220         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75221         foo and bar.  Create conftestdir/ in the script, not in the C code.
75222         Remove directories in the script, not in the C code.
75223         Remove conftestdir{,2} before trying to create the directory.
75224         Make the entire configure script fail if the mkdir fails.
75225
75226 2001-01-14  Jim Meyering  <meyering@lucent.com>
75227
75228         * lib/rename.c: New file.  From Volker Borchert.
75229         Include stdlib.h, string.h or strings.h, and xalloc.h.
75230         Use strip_trailing_slashes rather than open-coding it.
75231
75232 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75233
75234         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75235
75236 2001-01-03  Jim Meyering  <meyering@lucent.com>
75237
75238         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75239         of local `inptr' to avoid warning with some system declarations of
75240         iconv.
75241
75242 2001-01-02  Volker Borchert  <bt@teknon.de>
75243
75244         * m4/rename.m4: New file.
75245         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
75246
75247 2001-01-01  Jim Meyering  <meyering@lucent.com>
75248
75249         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
75250         even on systems with utmpx.h.  It's necessary for the declaration of
75251         utmp's ut_user member.  Reported by Andreas Jaeger.
75252
75253         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
75254         available. They are required for the declarations of getgrgid and
75255         getpwuid resp.
75256         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
75257         Reported by Andreas Jaeger.
75258
75259 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
75260
75261         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
75262         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
75263         so `make install' also works in VPATH builds.
75264
75265 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
75266
75267         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
75268         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
75269         can be used in subdirectories.
75270
75271 2000-12-29  Paul Eggert  <eggert@twinsun.com>
75272
75273         * lib/modechange.c: Do not assume that mode_t uses the
75274         traditional octal encoding.  E.g. "chmod 1 FOO" should set
75275         the other-execute bit of FOO even if S_IXOTH != 1.
75276
75277         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
75278         WOTH, XOTH, ALLM): New macros.
75279         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
75280          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
75281         Use them.
75282         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
75283         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
75284         (mode_compile):
75285         No need to use uintmax_t; unsigned long is long enough.
75286         Don't bother to get suffix since we don't use it.
75287
75288 2000-12-26  Jim Meyering  <meyering@lucent.com>
75289
75290         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
75291         better with autoheader.
75292
75293 2000-12-24  Jim Meyering  <meyering@lucent.com>
75294
75295         * lib/hash.c (is_prime): Return explicit boolean values.
75296         (hash_get_first): Return NULL to appease Irix5.6's 89.
75297         Reported by Nelson Beebe.
75298
75299 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
75300
75301         * lib/localcharset.c (locale_charset): Add support for Win32.
75302
75303 2000-12-18  Paul Eggert  <eggert@twinsun.com>
75304
75305         * lib/physmem.h, lib/physmem.c: New files.
75306
75307         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
75308         (noinst_HEADERS): Add physmem.h.
75309
75310         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
75311         't' for compatibility with Solaris 8 sort.
75312
75313 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
75314
75315         * lib/config.charset: Add support for BeOS.
75316
75317 2000-12-17  Jim Meyering  <meyering@lucent.com>
75318
75319         * m4/dos.m4 (jm_AC_DOS): New file and macro.
75320         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
75321
75322 2000-12-16  Jim Meyering  <meyering@lucent.com>
75323
75324         This bug had a serious impact on chown: `chown N:M FILE' (for integer
75325         N and M) would have treated it like `chown N:N FILE'.
75326
75327         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
75328
75329 2000-12-16  Jim Meyering  <meyering@lucent.com>
75330
75331         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
75332         SHELLS_FILE to a file name that's useful on djgpp systems.
75333         Include stdlib.h.
75334         (ADDITIONAL_DEFAULT_SHELLS): Define.
75335         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
75336         Based mostly on a patch from Prashant TR.
75337
75338 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
75339
75340         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
75341         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
75342         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
75343
75344 2000-12-08  Andreas Schwab  <schwab@suse.de>
75345
75346         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
75347         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
75348
75349 2000-12-07  Jim Meyering  <meyering@lucent.com>
75350
75351         * lib/stripslash.c (ISSLASH): Define.
75352         (strip_trailing_slashes): Use ISSLASH rather than comparing against
75353         `/'.
75354         From Prashant TR.
75355
75356         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
75357         (dir_name_r): Declare this function as static.
75358         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
75359         manifest itself on a name containing a mix of slashes and
75360         backslashes.
75361         Make this function work with names starting with a DOS-style
75362         drive letter and colon prefix.
75363         (dir_name): Append `.' if necessary.
75364         Based mostly on patches from Prashant TR and Eli Zaretskii.
75365
75366         * lib/dirname.h (dir_name_r): Remove prototype.
75367
75368 2000-12-06  Paul Eggert  <eggert@twinsun.com>
75369
75370         * m4/off_t-format.m4: Remove this file.
75371         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
75372
75373 2000-12-06  Jim Meyering  <meyering@lucent.com>
75374
75375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
75376         replacement strtoull, we may well need the replacement strtoul, too.
75377         Check for declarations of strtoul and strtoull.
75378         Check for strtol.  Mainly as a cue to cause automake to include
75379         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
75380         Check for limits.h -- strtol.c needs it.
75381
75382 2000-12-05  Jim Meyering  <meyering@lucent.com>
75383
75384         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
75385
75386 2000-12-04  Jim Meyering  <meyering@lucent.com>
75387
75388         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
75389         Also include memory.h, stdlib.h, unistd.h if appropriate.
75390         Reported by Andreas Jaeger (conflicting declaration of malloc).
75391
75392 2000-12-02  Jim Meyering  <meyering@lucent.com>
75393
75394         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
75395         * m4/jm-macros.m4 (jm_MACROS): require it.
75396
75397 2000-12-02  Jim Meyering  <meyering@lucent.com>
75398
75399         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
75400
75401 2000-12-01  Paul Eggert  <eggert@twinsun.com>
75402
75403         * lib/memrchr.c: Include <config.h> before any system include file.
75404
75405 2000-11-30  Jim Meyering  <meyering@lucent.com>
75406
75407         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
75408
75409 2000-11-30  Jim Meyering  <meyering@lucent.com>
75410
75411         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
75412
75413 2000-11-29  Paul Eggert  <eggert@twinsun.com>
75414
75415         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
75416
75417 2000-11-26  Jim Meyering  <meyering@lucent.com>
75418
75419         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
75420
75421 2000-11-22  Paul Eggert  <eggert@twinsun.com>
75422
75423         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
75424         size of (size_t) -1; it's not portable.
75425
75426 2000-11-17  Jim Meyering  <meyering@lucent.com>
75427
75428         * lib/strstr.c: Update from GNU libc.
75429
75430 2000-11-17  Akim Demaille  <akim@epita.fr>
75431
75432         * lib/obstack.h: Formatting changes.
75433         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
75434         prevent type checking.
75435         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
75436         cast the value to (void *): assigning a `foo *' to a `void *'
75437         variable is valid.
75438         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
75439
75440 2000-11-16  Jim Meyering  <meyering@lucent.com>
75441
75442         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
75443
75444 2000-11-11  Jim Meyering  <meyering@lucent.com>
75445
75446         * lib/error.c: Add a couple #includes, merging from GNU libc version.
75447
75448 2000-11-10  Jim Meyering  <meyering@lucent.com>
75449
75450         * lib/obstack.h: Update from GNU libc.
75451         * lib/obstack.c: Likewise.
75452
75453 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
75454
75455         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
75456
75457 2000-11-06  Paul Eggert  <eggert@twinsun.com>
75458
75459         * lib/getusershell.c (setusershell): Use rewind rather than
75460         fseek/fseeko, to avoid configuration hassles with fseeko.
75461         Don't bother opening SHELLS_FILE if shellstream is NULL;
75462         it's not necessary.
75463
75464 2000-11-05  Jim Meyering  <meyering@lucent.com>
75465
75466         * lib/makepath.h (make_dir): Declare.
75467         * lib/makepath.c (make_dir): Remove `static' attribute.
75468         Tweak a comment.
75469
75470 2000-11-04  Jim Meyering  <meyering@lucent.com>
75471
75472         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
75473
75474 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
75475
75476         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
75477         last one in a bucket, advance to the next bucket.
75478
75479 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
75480
75481         * lib/fnmatch.c: Do not comment out all the code if we are using
75482         the GNU C library, because in some cases we are replacing buggy
75483         code in the GNU C library itself.
75484
75485 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
75486
75487         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
75488         (regex_compile): Catch bogus \(\1\).
75489
75490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
75493         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
75494         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
75495
75496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
75497
75498         * lib/error.h, getline.h, modechange.h:
75499         Remove "2000" from Copyright line, as the file hasn't been
75500         changed this year other than in the copyright notice.
75501
75502         * lib/xalloc.h: Add "2000" to Copyright line, as this file
75503         was changed this year.
75504
75505 2000-10-29  Jim Meyering  <meyering@lucent.com>
75506
75507         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
75508         renaming.
75509         * m4/ls-mntd-fs.m4: Likewise
75510
75511 2000-10-29  Jim Meyering  <meyering@lucent.com>
75512
75513         * lib/xstat.in: Fix grammar in comment.
75514
75515 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
75516
75517         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
75518         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
75519         doesn't define __restrict_arr.
75520
75521 2000-10-28  Jim Meyering  <meyering@lucent.com>
75522
75523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
75524         (jm_PREREQ_MEMCHR): New function.
75525
75526 2000-10-28  Jim Meyering  <meyering@lucent.com>
75527
75528         * lib/memchr.c: Update from libc.
75529         Adjust for portability:
75530         [HAVE_STDLIB_H]: Include stdlib.h.
75531         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
75532         Undef __memchr, too.
75533         [!weak_alias]: Define __memchr to memchr.
75534
75535         * lib/regex.c: Update from libc.
75536         * lib/regex.h: Likewise.
75537         * lib/getopt1.c: Likewise.
75538         * lib/memcmp.c: Likewise.
75539
75540         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
75541         Avoid using fseek, when possible -- it's broken by design.
75542         Patch by Ulrich Drepper.
75543
75544 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
75545
75546         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
75547         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
75548         Giving in to popular pressure to shut up the compiler with casts.
75549
75550 2000-10-26  Jim Meyering  <meyering@lucent.com>
75551
75552         * lib/strftime.c: Update from libc.
75553
75554 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
75555
75556         * regex.c: More `unsigned char' -> `re_char' changes.
75557         Also change several `int' into `re_wchar_t'.
75558         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
75559         (PUSH_FAILURE_POINTER): Don't cast any more.
75560         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
75561         We want GCC to complain, since this piece of code makes
75562         re_match non-reentrant, which *should* be fixed.
75563         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
75564         (EXTEND_BUFFER): Use RETALLOC.
75565         (SET_LIST_BIT): Don't cast.
75566         (re_wchar_t): New type.
75567         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
75568         that those two functions will always properly return.
75569         (IMMEDIATE_QUIT_CHECK): Cast to void.
75570         (analyse_first): Use recursion rather than an explicit stack.
75571         (re_compile_fastmap): Can't fail anymore.
75572         (re_search_2): Don't check re_compile_fastmap for failure.
75573         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
75574         Now also sets the new value (passed in a new argument).
75575         (re_match_2_internal): Use it.
75576         Also, use a new var `reg' of type size_t when looping through regs
75577         rather than reuse the inappropriate `mcnt'.
75578
75579 2000-10-25  Jim Meyering  <meyering@lucent.com>
75580
75581         * lib/obstack.c: Update from libc.
75582
75583 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
75584
75585         * regex.c (regex_compile): Change the way of handling a range from
75586         a char less than 256 to a char not less than 256.
75587
75588 2000-10-24  Andrew Innes  <andrewi@gnu.org>
75589
75590         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
75591         NT-Emacs only.
75592         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
75593         so that re_search functions only quit when callers expect them to.
75594
75595 2000-10-23  Jim Meyering  <meyering@lucent.com>
75596
75597         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
75598         wrong.  That set_locale call must not have any side effects.
75599         From Paul Eggert.
75600
75601 2000-10-22  Jim Meyering  <meyering@lucent.com>
75602
75603         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
75604         [CYCLIC]: Remove now-unused definition.
75605
75606         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
75607         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
75608         Suggestion from Ulrich Drepper.
75609
75610 2000-10-21  Jim Meyering  <meyering@lucent.com>
75611
75612         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
75613         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
75614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
75615
75616 2000-10-21  Jim Meyering  <meyering@lucent.com>
75617
75618         * lib/dirname.c (memrchr): Declare if necessary.
75619         (dir_name): Remove the restriction that there be no
75620         trailing slashes.  Now, this code skips past them, effectively
75621         ignoring them.
75622         [TEST_DIRNAME] (main): New unit tests.
75623
75624         * lib/memrchr.c: New file from GNU libc.
75625         Undef __memrchr, too.
75626         [!weak_alias]: Define __memrchr to memrchr.
75627         Guard weak_alias use with `#ifdef weak_alias'.
75628
75629 2000-10-21  Jim Meyering  <meyering@lucent.com>
75630
75631         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
75632         (dir_name): Use dir_name_r.
75633         * lib/dirname.h (dir_name_r): Declare it.
75634
75635 2000-10-17  Jim Meyering  <meyering@lucent.com>
75636
75637         * lib/quote.h (PARAMS): Define and use.
75638         Reported by Akim Demaille.
75639
75640         * lib/getopt.c: Update from libc.
75641
75642 2000-10-16  Jim Meyering  <meyering@lucent.com>
75643
75644         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
75645         setlocale.
75646         From Jan Fedak.
75647
75648 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
75649
75650         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
75651
75652 2000-09-25  Jim Meyering  <meyering@lucent.com>
75653
75654         * lib/md5.h (rol): Define (from GnuPG).
75655
75656         * lib/sha.c: Give credit (GnuPG) where due.
75657         (M): Use rol rather than open-coding it.
75658         Add a FIXME comment.
75659
75660 2000-09-21  Jim Meyering  <meyering@lucent.com>
75661
75662         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
75663         Reported by Michael Stone.
75664
75665 2000-09-20  Jim Meyering  <meyering@lucent.com>
75666
75667         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
75668         (noinst_HEADERS): Add sha.h.
75669         Based on code from Scott G. Miller and from GnuPG.
75670
75671 2000-09-18  Jim Meyering  <meyering@lucent.com>
75672
75673         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
75674         LIBS. Otherwise, everyone ends up linking with -lelf for some
75675         configurations.
75676         Reported by Mike Stone.
75677
75678 2000-09-15  Jim Meyering  <meyering@lucent.com>
75679
75680         * lib/regex.c: Update from libc.
75681
75682 2000-09-10  Jim Meyering  <meyering@lucent.com>
75683
75684         * lib/getopt.c (_getopt_internal): Update from glibc.
75685
75686 2000-09-09  Jim Meyering  <meyering@lucent.com>
75687
75688         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
75689         think it should be used as a general replacement for isascii.
75690         * lib/fnmatch.c: Likewise.
75691         * lib/mbswidth.c: Likewise
75692         * lib/regex.c: Likewise.
75693
75694         Don't use atoi.
75695         * lib/userspec.c: Include sys/param.h and limits.h.
75696         Include xstrtol.h.
75697         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75698         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
75699         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
75700         UID, GID.  Check range.
75701
75702 2000-09-06  Jim Meyering  <meyering@lucent.com>
75703
75704         * lib/getopt.c (_getopt_internal): Update from glibc.
75705
75706 2000-08-30  Jim Meyering  <meyering@lucent.com>
75707
75708         * lib/strftime.c: Merge in changes from GNU libc.
75709
75710 2000-08-26  Jim Meyering  <meyering@lucent.com>
75711
75712         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
75713         * m4/fpending.m4: New file.
75714
75715 2000-08-26  Jim Meyering  <meyering@lucent.com>
75716
75717         * lib/closeout.c: Include "__fpending.h".
75718         (close_stdout_status): Return right away if there's nothing to flush.
75719
75720         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
75721         * lib/__fpending.c: New file.
75722         * lib/__fpending.h: New file.
75723
75724 2000-08-20  Jim Meyering  <meyering@lucent.com>
75725
75726         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
75727         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
75728         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
75729
75730 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
75731
75732         Improve fileutils installation on systems where running
75733         programs (like install) can't be unlinked.
75734         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
75735         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
75736
75737 2000-08-07  Paul Eggert  <eggert@twinsun.com>
75738
75739         Standardize on "memory exhausted" instead of "Memory exhausted"
75740         or "virtual memory exhausted".
75741         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
75742         "virtual memory exhausted".
75743         * lib/same.c (same_name): Invoke xalloc_die instead of printing
75744         our own message.
75745         * lib/userspec.c (parse_user_spec): Likewise.
75746         * lib/bumpalloc.h: comment fix
75747         * lib/same.c, userspec.c: Include xalloc.h.
75748
75749         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
75750         not char *const and pointing to a constant array.
75751         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
75752         (xrealloc): Comment fix.
75753
75754         * lib/userspec.c (parse_user_spec):
75755         Don't translate a message until just before returning,
75756         to avoid unnecessary translation.
75757
75758 2000-08-07  Jim Meyering  <meyering@lucent.com>
75759
75760         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
75761         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
75762         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
75763         getgroups.c, gethostname.c, getopt.h, group-member.c,
75764         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
75765         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
75766         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
75767         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
75768         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
75769         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
75770         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
75771         yesno.c: Back out Copyright date changes for each file with no change
75772         this year.  This eases coordination with other programs using the same
75773         source code modules.  From Paul Eggert.
75774
75775 2000-08-06  Paul Eggert  <eggert@twinsun.com>
75776
75777         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
75778         not char, for compatibility with glibc 2.1.3 strftime.c.
75779
75780 2000-08-03  Greg McGary  <greg@mcgary.org>
75781
75782         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
75783         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
75784         (EXTEND_BUFFER): Use them.
75785
75786 2000-08-01  Jim Meyering  <meyering@lucent.com>
75787
75788         * lib/dirname.c (ISSLASH): Define.
75789         (BACKSLASH_IS_PATH_SEPARATOR): Define.
75790         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
75791         both `\' and `/' may be use as path separators.
75792         Based on a patch from Prashant TR.
75793
75794 2000-07-31  Paul Eggert  <eggert@twinsun.com>
75795
75796         * lib/quotearg.c (quotearg_n_options): Don't make the initial
75797         slot vector a constant, since it might get modified.
75798
75799 2000-07-31  Jim Meyering  <meyering@lucent.com>
75800
75801         * lib/xmalloc.c: Use `virtual memory exhausted', not
75802         `Memory exhausted'.
75803         * lib/obstack.c (print_and_abort): Likewise.
75804
75805 2000-07-30  Paul Eggert  <eggert@twinsun.com>
75806
75807         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
75808         buffer, so that the caller can always quote one small
75809         component of a "memory exhausted" message in slot 0.
75810         From a suggestion by Jim Meyering.
75811
75812 2000-07-30  Jim Meyering  <meyering@lucent.com>
75813
75814         * lib/makepath.c (make_path): Quote the other instance, too.
75815
75816         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
75817         (STATIC_BUF_SIZE): Define.
75818         (quotearg_n_options): Use only statically allocated storage when
75819         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
75820         than STATIC_BUF_SIZE.
75821
75822 2000-07-29  Jim Meyering  <meyering@lucent.com>
75823
75824         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
75825         * lib/dirname.c (dir_name): Likewise.
75826
75827         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
75828         `/'.
75829
75830         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
75831         (dir_name): Assert that there are no trailing slashes.
75832
75833 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
75834
75835         * lib/mbswidth.h (mbswidth): Add a flags argument.
75836         (mbswidth): New declaration.
75837         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
75838         * lib/mbswidth.c (mbswidth): Add a flags argument.
75839         (mbsnwidth): New function.
75840
75841 2000-07-24  Jim Meyering  <meyering@lucent.com>
75842
75843         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
75844
75845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75846
75847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
75848
75849 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75850
75851         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
75852         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
75853         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
75854         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
75855         invoke multibyte primitives.
75856
75857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75858
75859         * lib/quotearg.c:
75860         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
75861         so that mbstate_t is always defined.
75862
75863         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
75864         be 1 in at least one GCC installation, and this configuration
75865         error is likely to be common.  Ignoring MB_LEN_MAX hurts
75866         performance on hosts that have mbrtowc but have only unibyte
75867         locales, but I assume these hosts are rare.
75868
75869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
75870
75871         * lib/mbswidth.c (_XOPEN_SOURCE):
75872         Don't define; this causes problems on Solaris 7.
75873         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
75874
75875 2000-07-23  Jim Meyering  <meyering@lucent.com>
75876
75877         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
75878         too: getgrgid, getpwuid, getuid.
75879
75880 2000-07-23  Jim Meyering  <meyering@lucent.com>
75881
75882         * lib/basename.c (base_name): Add an assertion.
75883
75884 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
75885
75886         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
75887         shadow its mbsinit function.
75888
75889 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75890
75891         * lib/mbswidth.h: New file.
75892         * lib/mbswidth.c: New file.
75893         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
75894         (noinst_HEADERS): Add mbswidth.h.
75895
75896 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
75897
75898         * lib/config.charset: Add support for FreeBSD. Improve support for
75899         HP-UX and IRIX 6.
75900
75901 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
75902
75903         * m4/mbswidth.m4: New file.
75904         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
75905
75906 2000-07-15  Jim Meyering  <meyering@lucent.com>
75907
75908         * lib/makepath.c: Include quote.h.
75909         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
75910         corresponding argument in a `quote (...)' call.
75911         Give better diagnostics.
75912
75913         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
75914         (noinst_HEADERS): Add quote.h.
75915
75916         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
75917         from tar's src/misc.c.
75918         * lib/quote.h: New file.  Prototypes for same.
75919
75920 2000-07-14  Paul Eggert  <eggert@twinsun.com>
75921
75922         From a suggestion by Bruno Haible.
75923         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
75924         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
75925         to decide whether to define the BeOS workaround macro;
75926         this adjusts to the change to AC_MBSTATE_T.
75927
75928 2000-07-14  Jim Meyering  <meyering@lucent.com>
75929
75930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
75931         jm_AC_TYPE_UINTMAX_T.
75932
75933 2000-07-13  Paul Eggert  <eggert@twinsun.com>
75934
75935         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
75936
75937         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
75938         quotearg_buffer_restyled): Add support for
75939         clocale_quoting_style.  Undo previous change to
75940         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
75941         and "{RIGHT QUOTATION MARK}" msgids.
75942
75943 2000-07-10  Paul Eggert  <eggert@twinsun.com>
75944
75945         From a suggestion by Bruno Haible.
75946         * m4/mbstate_t.m4 (AC_MBSTATE_T):
75947         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
75948         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
75949         and mbstate_t, to a single-part test that simply defines mbstate_t.
75950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
75951         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
75952
75953 2000-07-10  Jim Meyering  <meyering@lucent.com>
75954
75955         * m4/strerror_r.m4: Mirror the correction made in autoconf.
75956
75957         * m4/gnu-source.m4: Output to confdefs.h directly.
75958         Suggestion from Akim Demaille.
75959
75960 2000-07-09  Paul Eggert  <eggert@twinsun.com>
75961
75962         The old behavior of quoting `like this' doesn't look good with
75963         newer, ISO-style fonts.  See:
75964         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
75965
75966         Instead, quote "like this" by default.  Let the translator
75967         tailor the locale-specific quoting behavior by providing
75968         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
75969
75970         * lib/quotearg.c (N_): New macro.
75971         (gettext_default): New function.
75972         (quotearg_buffer_restyled): Use
75973         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75974         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75975
75976 2000-07-09  Jim Meyering  <meyering@lucent.com>
75977
75978         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75979         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75980
75981         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75983
75984 2000-07-09  Jim Meyering  <meyering@lucent.com>
75985
75986         * lib/Most files: Update copyright dates to include 2000.
75987
75988 2000-07-08  Jim Meyering  <meyering@lucent.com>
75989
75990         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75991         if not defined.
75992         (xgethostname): Remove now-unnecessary #ifdef.
75993         Move declaration of `err' into loop where it's used.
75994
75995 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75996         and Bruno Haible  <haible@clisp.cons.org>
75997
75998         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75999         only if the test for an object-type mbstate_t fails.  This
76000         prevents us from mistakenly reporting that mbstate_t is a
76001         system object type after we "#define mbstate_t int" to work
76002         around its lack.
76003
76004 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76005         and Bruno Haible  <haible@clisp.cons.org>
76006
76007         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76008
76009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76010
76011         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76012         to strerror_r.
76013         Include <ctype.h> for use of isalpha.
76014
76015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76016
76017         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76018         by allocating a larger buffer. Test the gethostname return value for
76019         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76020         returns an error and ENAMETOOLONG isn't defined.
76021
76022 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76023
76024         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76025         dimension.
76026
76027 2000-07-04  Jim Meyering  <meyering@lucent.com>
76028
76029         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76030         of the deprecated AC_CHECKING.
76031
76032 2000-07-04  Jim Meyering  <meyering@lucent.com>
76033
76034         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76035         Reported by Bruno Haible.
76036
76037 2000-07-04  Jim Meyering  <meyering@lucent.com>
76038
76039         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76040         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76041         lacks mbrtowc.
76042
76043 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76044
76045         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76046         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76047
76048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76049         and Bruno Haible  <haible@clisp.cons.org>
76050
76051         * lib/quotearg.c (mbrtowc):
76052         Assign to *pwc, and return 1 only if result is nonzero.
76053         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76054
76055 2000-07-03  Jim Meyering  <meyering@lucent.com>
76056
76057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76058
76059 2000-07-03  Jim Meyering  <meyering@lucent.com>
76060
76061         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76062         This is necessary to get a definition of e.g., UTMP_FILE on
76063         HP-UX 10.20.
76064         From Bob Proulx.
76065
76066 2000-07-02  Jim Meyering  <meyering@lucent.com>
76067
76068         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76069
76070         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76071         AC_LIBOBJ(function_name).
76072         * m4/chown.m4: Likewise.
76073         * m4/fnmatch.m4: Likewise.
76074         * m4/ftruncate.m4: Likewise.
76075         * m4/getgroups.m4: Likewise.
76076         * m4/getline.m4: Likewise.
76077         * m4/group-member.m4: Likewise.
76078         * m4/jm-macros.m4: Likewise.
76079         * m4/lstat.m4: Likewise.
76080         * m4/malloc.m4: Likewise.
76081         * m4/memcmp.m4: Likewise.
76082         * m4/nanosleep.m4: Likewise.
76083         * m4/putenv.m4: Likewise.
76084         * m4/realloc.m4: Likewise.
76085         * m4/regex.m4: Likewise.
76086         * m4/stat.m4: Likewise.
76087         * m4/strftime.m4: Likewise.
76088
76089 2000-07-02  Jim Meyering  <meyering@lucent.com>
76090
76091         * lib/quotearg.c (mbstate_t): Don't define here.
76092
76093 2000-07-02  Jim Meyering  <meyering@lucent.com>
76094
76095         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76096
76097 2000-07-01  Jim Meyering  <meyering@lucent.com>
76098
76099         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76100
76101 2000-07-01  Jim Meyering  <meyering@lucent.com>
76102
76103         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76104         problem.
76105
76106 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76107
76108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76109         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76110
76111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76112
76113         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76114         per change in ../m4/ls-mntd-fs.m4.
76115         (read_filesystem_list): Ignore symbolic links.
76116
76117 2000-06-29  Jim Meyering  <meyering@lucent.com>
76118
76119         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76120         for declaration of strcmp.
76121
76122         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76123
76124         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76125         Avoid warning by casting result to `char *' to remove `const'.
76126
76127 2000-06-28  Jim Meyering  <meyering@lucent.com>
76128
76129         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76130         included by quotearg.c, for which we perform this test.  From
76131         Bruno Haible.
76132
76133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76134
76135         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76137         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76138
76139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76140
76141         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76142
76143 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76144
76145         savedir now sets errno on failure and invokes xmalloc to get memory.
76146         Fix a couple of other minor bugs while we're at it.
76147
76148         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76149         (NAMLEN): Remove macro.
76150         (malloc, realloc): Remove decls.
76151         (stpcpy): Likewise.
76152         ("xalloc.h"): Include.
76153         (NAME_SIZE_DEFAULT): New macro.
76154         (savedir): Use xmalloc / xrealloc to allocate memory.
76155         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76156         Skip "" directory entries.
76157         Use strlen to calculate directory entry length, since the old method
76158         is rarely used these days and isn't worth supporting.
76159         Don't use a pointer after freeing it.
76160         Check for integer overflow when calculating allocation size.
76161         Use memcpy to copy entries, instead of stpcpy.
76162         Set errno properly when returning NULL.
76163         Check for readdir error.
76164
76165 2000-06-26  Jim Meyering  <meyering@lucent.com>
76166
76167         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76168
76169 2000-06-25  Jim Meyering  <meyering@lucent.com>
76170
76171         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76172         Linux header bug when _XOPEN_SOURCE is defined to 500.
76173
76174 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76175
76176         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76177         deficiency.
76178
76179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76180
76181         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76182         Include xalloc.h.
76183         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76184
76185 2000-06-24  Jim Meyering  <meyering@lucent.com>
76186
76187         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76188         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76189         for which strerror does return char*, but which lacks a conveniently
76190         accessible declaration of the function.  If the compile-test says
76191         strerror_r doesn't work, then resort to a `run'-test that works on
76192         BeOS and segfaults on DEC Unix.
76193
76194 2000-06-24  Jim Meyering  <meyering@lucent.com>
76195
76196         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76197
76198 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76199
76200         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76202
76203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76204
76205         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76206         (mbrtowc, mbstate_t): Define substitutes if
76207         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76208         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76209         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76210
76211 2000-06-23  Jim Meyering  <meyering@lucent.com>
76212
76213         * m4/afs.m4: Add missing AC_MSG_RESULT.
76214         Reported by Bruno Haible.
76215
76216         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76217         Suggestion from Bruno Haible.
76218
76219 2000-06-23  Jim Meyering  <meyering@lucent.com>
76220
76221         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76222
76223 2000-06-21  Jim Meyering  <meyering@lucent.com>
76224
76225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76226
76227 2000-06-21  Jim Meyering  <meyering@lucent.com>
76228
76229         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76230         (noinst_HEADERS): Add getstr.h.
76231
76232         * lib/getline.c (getstr): Move into a separate file.
76233         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76234         the following changes: new parameter, delim2; both delim[12]
76235         parameters have type `int', not `char'.  The latter would lose
76236         with 8-bit delimiters.
76237         * lib/getstr.h: New file.
76238
76239 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76240
76241         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
76242         than 1024, return a memory chunk of least possible size, instead
76243         of size PATH_MAX + 2. In the loop, increment the size proportionally.
76244         Use free/xmalloc instead of xrealloc to avoid copying for very long
76245         paths.
76246
76247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76248
76249         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
76250         the empty string.
76251
76252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76253
76254         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
76255         address, not strdup.  Include <stdlib.h> and don't declare free().
76256
76257 2000-06-19  Jim Meyering  <meyering@lucent.com>
76258
76259         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
76260
76261 2000-06-18  Jim Meyering  <meyering@lucent.com>
76262
76263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
76264
76265         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
76266         `checking whether...' message to be consistent with that of the
76267         lstat test.
76268
76269 2000-06-18  Jim Meyering  <meyering@lucent.com>
76270
76271         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
76272         Besides, these days every porting target provides a mkdir function.
76273
76274         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
76275         needed. (this snippet comes from src/system.h).
76276
76277 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
76278
76279         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
76280
76281 2000-06-15  Paul Eggert  <eggert@twinsun.com>
76282
76283         * lib/human.c (adjust_value): New function.
76284         (human_readable_inexact): Apply rounding style even when
76285         printing approximate values.
76286
76287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76288
76289         * lib/human.c (human_readable_inexact): Allow an input block
76290         size that is not a multiple of the output block size, and vice versa.
76291         Reported by Piergiorgio Sartor.
76292
76293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
76294
76295         * lib/getdate.y (get_date): Apply relative times after time
76296         zone indicator, not before.  Reported by Todd A. Jacobs.
76297
76298 2000-06-13  Jim Meyering  <meyering@lucent.com>
76299
76300         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
76301
76302         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
76303
76304 2000-06-12  Paul Eggert  <eggert@twinsun.com>
76305
76306         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
76307
76308 2000-06-12  Jim Meyering  <meyering@lucent.com>
76309
76310         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
76311         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
76312         optional argument.
76313         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
76314         the optional argument, `lib'.
76315
76316 2000-06-08  Jim Meyering  <meyering@lucent.com>
76317
76318         * m4/largefile.m4: Remove file (now that it's part of autoconf).
76319
76320 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76321
76322         Rewrite largefile configuration so that we don't need to run
76323         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
76324         AC_CANONICAL_HOST in configure.in -- jmm]
76325
76326         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
76327         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
76328         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
76329         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
76330         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
76331         All uses changed.
76332         Instead of inspecting the output of getconf, try to compile the
76333         test program without and with the macro definition.
76334         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
76335         for getconf.  Instead, check for the needed flags by compiling
76336         test programs.
76337
76338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
76339
76340         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
76341
76342 2000-06-04  Jim Meyering  <meyering@lucent.com>
76343
76344         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
76345         SunOS 4.1.4 for which gid_t is an unsigned type.
76346
76347 2000-06-03  Jim Meyering  <meyering@lucent.com>
76348
76349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
76350         now that autoconf requires that.
76351
76352         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
76353         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
76354         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
76355
76356 2000-06-03  Jim Meyering  <meyering@lucent.com>
76357
76358         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
76359
76360 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76361
76362         * m4/glibc21.m4: New file.
76363         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
76364
76365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
76366
76367         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
76368         newer, don't install charset.alias.
76369         * lib/config.charset: Change the Linux/glibc rules so they become empty
76370         on glibc-2.1 or newer.
76371
76372 2000-06-02  Jim Meyering  <meyering@lucent.com>
76373
76374         * lib/mountlist.c: Back out last change.  Instead, do this...
76375         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
76376         me_dummy member using the same `ignore'-testing code.
76377         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
76378         fs_type strings.
76379         From Mark D. Roth.
76380
76381 2000-05-29  Jim Meyering  <meyering@lucent.com>
76382
76383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
76384         mounts with the `ignore' attribute.  Based on a patch from
76385         Mark D. Roth.
76386
76387 2000-05-28  Jim Meyering  <meyering@lucent.com>
76388
76389         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
76390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76391         * m4/stat.m4: Likewise.
76392         * m4/lstat.m4: Likewise.
76393         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
76394
76395         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
76396         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
76397
76398 2000-05-26  Jim Meyering  <meyering@lucent.com>
76399
76400         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
76401
76402 2000-05-24  Jim Meyering  <meyering@lucent.com>
76403
76404         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
76405         autoconf requires that.
76406         * m4/lib-check.m4: Likewise.
76407         * m4/jm-macros.m4: Likewise.
76408         * m4/strftime.m4: Likewise.
76409
76410         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
76411         AC_CHECK_DECLS, now that autoconf requires that.
76412
76413 2000-05-22  Jim Meyering  <meyering@lucent.com>
76414
76415         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76416         * m4/lstat.m4: Likewise.
76417
76418 2000-05-22  Jim Meyering  <meyering@lucent.com>
76419
76420         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
76421
76422 2000-05-20  Jim Meyering  <meyering@lucent.com>
76423
76424         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
76425         (jm_PREREQ): Use it.
76426
76427 2000-05-18  Jim Meyering  <meyering@lucent.com>
76428
76429         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
76430         back, too, since it may have been modified by allocate_entry.
76431         (hash_delete): Rewrite to use neither the assignment operator
76432         nor the comma operator in an if-expression.
76433
76434 2000-05-15  Paul Eggert  <eggert@twinsun.com>
76435
76436         * lib/closeout.c:
76437         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
76438         Remove; no longer needed.
76439         "quotearg.h": Add include.
76440         (file_name): Do not bother to explicitly initialize to NULL; it's less
76441         efficient on some hosts.
76442         (close_stdout_status): Remove test as to whether stdout was already
76443         closed; it breaks for the case "echo x | sort >&-".
76444         Quote file name colons.
76445         Do not assume that _("write error") lacks format strings.
76446
76447 2000-05-15  Jim Meyering  <meyering@lucent.com>
76448
76449         * lib/version-etc.c (version_etc_copyright): Update the copyright
76450         string used in all --version output.
76451
76452 2000-05-14  Jim Meyering  <meyering@lucent.com>
76453
76454         * lib/closeout.c (close_stdout_set_file_name): New function.
76455         (close_stdout_status): Use new file-scoped global.
76456         Return right away if fstat says the stdout file descriptor is invalid.
76457         * lib/closeout.h (close_stdout_set_file_name): Declare.
76458
76459 2000-05-10  Jim Meyering  <meyering@lucent.com>
76460
76461         * lib/closeout.c [default_exit_status]: New file-scoped variable.
76462         (close_stdout_set_status): New function.
76463         * lib/closeout.h (close_stdout_set_status): Declare.
76464
76465 2000-05-09  Jim Meyering  <meyering@lucent.com>
76466
76467         * m4/gettext.m4: Rename this...
76468         * m4/libintl.m4: ...to this.
76469
76470 2000-05-08  Jim Meyering  <meyering@lucent.com>
76471
76472         * lib/long-options.c: Don't include closeout.h.
76473         (parse_long_options): Don't call close_stdout for --version.
76474
76475 2000-05-06  Paul Eggert  <eggert@twinsun.com>
76476
76477         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
76478         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
76479         2.1.3 bug.  This avoids a clash when files like regex.c define
76480         _GNU_SOURCE.
76481
76482 2000-05-06  Jim Meyering  <meyering@lucent.com>
76483
76484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
76485         (AC_REPLACE_FUNCS): Add strnlen.
76486
76487         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
76488         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
76489
76490         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
76491         AC_SEARCH_LIBS call for nanosleep.
76492         (LIB_NANOSLEEP): Set and AC_SUBST.
76493
76494 2000-05-06  Jim Meyering  <meyering@lucent.com>
76495
76496         * lib/strnlen.c: Undefine __strnlen and strnlen.
76497         [!weak_alias]: Define __strnlen to strnlen.
76498
76499         * lib/atexit.c: New file, from libiberty.
76500
76501 2000-05-06  Jim Meyering  <meyering@lucent.com>
76502
76503         * lib/closeout.c (close_stdout_status): Also check for errors on the
76504         stderr stream.
76505
76506 2000-05-05  Jim Meyering  <meyering@lucent.com>
76507
76508         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
76509         AC_SEARCH_LIBS call for clock_gettime.
76510         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
76511
76512         * m4/search-libs.m4: Update from autoconf.
76513
76514         su doesn't work on Solaris 2.6.
76515         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
76516         <shadow.h>.  Reported by Dragos Harabor.
76517
76518 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
76519
76520         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
76521         memcpy instead of xmalloc, xrealloc, path_concat.
76522         (locale_charset): Treat empty environment variables as absent.
76523         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
76524
76525 2000-05-04  Jim Meyering  <meyering@lucent.com>
76526
76527         * lib/getopt.c: Update from glibc.
76528         * lib/obstack.c: Likewise.
76529         * lib/obstack.h: Likewise.
76530         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
76531         file
76532
76533         * lib/regex.h: Likewise.
76534         * lib/strndup.c: Likewise.
76535         * lib/strnlen.c: New file, from glibc.
76536
76537 2000-05-03  Jim Meyering  <meyering@lucent.com>
76538
76539         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
76540
76541 2000-05-02  Paul Eggert  <eggert@twinsun.com>
76542
76543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
76544         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
76545         compile-time test, rather than inspecting host and OS, to
76546         decide whether to define _LARGEFILE_SOURCE.
76547
76548 2000-05-01  Jim Meyering  <meyering@lucent.com>
76549
76550         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
76551
76552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
76553         Based on a patch from Bruno Haible.
76554
76555 2000-05-01  Jim Meyering  <meyering@lucent.com>
76556
76557         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
76558
76559 2000-04-29  Jim Meyering  <meyering@lucent.com>
76560
76561         * lib/path-concat.c: Declare strdup only if it's not defined.
76562         * lib/canon-host.c: Likewise.
76563
76564 2000-04-28  Jim Meyering  <meyering@lucent.com>
76565
76566         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
76567         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
76568         is included first, then limits.h is included by locale.h by libintl.h.
76569         From John David Anglin.
76570
76571 2000-04-25  Jim Meyering  <meyering@lucent.com>
76572
76573         * lib/makepath.c (S_IRWXUGO): Define.
76574         (make_path): Always perform explicit chmod if MODE specifies any
76575         of the `special' permission bits.  Prompted by a bug report against
76576         install from Mate Wierdl and Joost van Baal.
76577
76578 2000-04-18  Jim Meyering  <meyering@lucent.com>
76579
76580         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
76581         (jm_PREREQ): Use it.
76582
76583 2000-04-18  Jim Meyering  <meyering@lucent.com>
76584
76585         * lib/README: New file.
76586
76587         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
76588         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
76589
76590 2000-04-17  Jim Meyering  <meyering@lucent.com>
76591
76592         Get it right :-)
76593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
76594         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
76595         Suggestion from Akim Demaille.
76596
76597 2000-04-17  Jim Meyering  <meyering@lucent.com>
76598
76599         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
76600         the definition of it to rpl_strftime also defined-away the system's
76601         declaration.
76602
76603 2000-04-15  Jim Meyering  <meyering@lucent.com>
76604
76605         Use `C' to denote so-called `contiguous' files, the same way
76606         that tar does.
76607         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
76608         (ftypelet): Use S_ISCTG.
76609         From Michael Deutschmann.
76610
76611 2000-04-14  Jim Meyering  <meyering@lucent.com>
76612
76613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
76614         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
76615         clobbered.
76616
76617 2000-04-14  Jim Meyering  <meyering@lucent.com>
76618
76619         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
76620
76621 2000-04-13  Jim Meyering  <meyering@lucent.com>
76622
76623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
76624         AH_VERBATIM to insert required #ifndef into config.h.in.
76625         Suggestion from Akim Demaille.
76626
76627 2000-04-12  Jim Meyering  <meyering@lucent.com>
76628
76629         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
76630         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
76631         Christian Krackowizer.
76632
76633         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
76634         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
76635         (AC_SYS_LARGEFILE): Require.
76636         (AM_C_PROTOTYPES): Require.
76637
76638 2000-04-08  Jim Meyering  <meyering@lucent.com>
76639
76640         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
76641         names don't conflict.  Reported by Eli Zaretskii.
76642
76643 2000-04-07  Jim Meyering  <meyering@lucent.com>
76644
76645         * lib/putenv.c: Move inclusion of errno.h so it follows that of
76646         sys/types.h, to work around system header problems on AIX 3.2.5.
76647         From Bruno Haible.
76648
76649 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
76650
76651         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
76652         bug.  Deal with the different error behavior of Irix iconv.
76653
76654 2000-04-05  Paul Eggert  <eggert@twinsun.com>
76655
76656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
76657         IRIX if the installer said otherwise.
76658
76659 2000-04-05  Jim Meyering  <meyering@lucent.com>
76660
76661         Portability tweaks required for ultrix4.3.
76662         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
76663         (jm_CHECK_DECLS): Add getutent to the list of functions.
76664         (_jm_DECL_HEADERS): Add utmpx.h.
76665         From John David Anglin.
76666
76667         * m4/strftime.m4: Back out the 2000-04-02 change.
76668         Instead of that change, simply undefine putenv in the test program.
76669
76670 2000-04-05  Jim Meyering  <meyering@lucent.com>
76671
76672         Portability tweaks required for ultrix4.3.
76673         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
76674         getutent.
76675         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
76676         * lib/canon-host.c: Declare strdup.
76677         * lib/path-concat.c: Likewise.
76678         From John David Anglin.
76679
76680 2000-04-04  Jim Meyering  <meyering@lucent.com>
76681
76682         Be more DOS 8.3-friendly.
76683         * lib/ref-add.sin: Renamed from ref-add.sed.in.
76684         * lib/ref-del.sin: Renamed from ref-del.sed.in.
76685         * lib/Makefile.am: Reflect renaming.
76686         Reported by Eli Zaretskii.
76687
76688         Use a temporary file name that won't clash with `charset.alias'
76689         in the DOS 8.3 name space.
76690         * lib/Makefile.am (charset_tmp): Define.
76691         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
76692         (uninstall-local): Likewise.
76693         Reported by Eli Zaretskii.
76694
76695 2000-04-03  Jim Meyering  <meyering@lucent.com>
76696
76697         * m4/gettext.m4: Fix typo in comment.
76698
76699         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
76700         textutils/configure.in).  Suggestion from Paul Eggert.
76701         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
76702
76703 2000-04-02  Paul Eggert  <eggert@twinsun.com>
76704
76705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
76706         variable in the shell rather than using putenv, which isn't
76707         portable.  This avoids the configure-time inter-test dependency
76708         on the potentially-renamed putenv function.
76709
76710 2000-03-30  Paul Eggert  <eggert@twinsun.com>
76711
76712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
76713         before checking struct stat.st_blksize, so that
76714         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
76715
76716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76717
76718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
76719         since strftime.c uses HAVE_STRFTIME to decide whether to use
76720         the underlying strftime.
76721
76722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
76723
76724         * lib/time/strftime.c (my_strftime): Make sure we call the system
76725         strftime, not ourselves, when invoking the underlying strftime.
76726
76727 2000-03-24  Jim Meyering  <meyering@lucent.com>
76728
76729         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
76730         (charset_alias): Define.
76731         (install-exec-local): Factor out common code.
76732         (uninstall-local): Split lines longer than 80.
76733         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
76734         (SUFFIXES): Define.
76735         (.sed.in.sed): New rule.  Don't redirect directly to $@.
76736         (CLEANFILES): Add ref-add.sed and ref-del.sed.
76737
76738 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
76739
76740         * lib/config.charset: Output a line containing "Packages using this
76741         file".
76742         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
76743         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
76744         ref-del.sed): New rules.
76745
76746 2000-03-17  Jim Meyering  <meyering@lucent.com>
76747
76748         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
76749         Otherwise, include <strings.h>
76750
76751 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
76752
76753         * lib/unicodeio.c (utf8_wctomb): New function.
76754         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
76755         format instead of in UCS-4 with platform dependent endianness.
76756
76757 2000-03-10  Jim Meyering  <meyering@lucent.com>
76758
76759         * m4/lib-check.m4: Look for getspnam in -lgen, too.
76760         From Marco Franzen.
76761
76762 2000-03-07  Paul Eggert  <eggert@twinsun.com>
76763
76764         * lib/savedir.c (savedir): Work even if directory size is
76765         negative; this can happen with some screwy NFS configurations.
76766
76767 2000-03-06  Jim Meyering  <meyering@lucent.com>
76768
76769         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
76770         if it's NULL (because we ran out of memory).  From Bruno Haible.
76771
76772 2000-03-05  Jim Meyering  <meyering@lucent.com>
76773
76774         * lib/localcharset.c ("path-concat.h"): Include.
76775         (get_charset_aliases): Use path_concat instead of ANSI string
76776         concatenation.
76777
76778         * lib/unicodeio.h (PARAMS): Define.
76779         Use it to guard prototype.
76780
76781 2000-03-04  Jim Meyering  <meyering@lucent.com>
76782
76783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
76784         for lib/localcharset.c.
76785
76786 2000-03-04  Jim Meyering  <meyering@lucent.com>
76787
76788         * lib/Makefile.am (install-exec-local): Create $(libdir) before
76789         installing into it.
76790         (uninstall-local): Uncomment this rule so `make distcheck' works
76791         once again.
76792
76793         * lib/unicodeio.c (<errno.h>): Include it.
76794         (errno): Declare if not defined.
76795
76796         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
76797
76798         * lib/config.charset: New version, incorporating remarks from a linux
76799         i18n mailing list.  From Bruno Haible.
76800
76801 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
76802
76803         * m4/codeset.m4: New file.
76804         * m4/iconv.m4: New file.
76805         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
76806
76807 2000-03-03  Jim Meyering  <meyering@lucent.com>
76808
76809         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
76810
76811 2000-03-02  Jim Meyering  <meyering@lucent.com>
76812
76813         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
76814         the messages come out on separate lines.
76815
76816         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
76817         rather than jm_CHECK_DECLARATIONS.
76818         * m4/decl.m4: Remove now-unused file.
76819
76820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
76821         geteuid.
76822
76823 2000-03-02  Jim Meyering  <meyering@lucent.com>
76824
76825         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
76826
76827 2000-03-01  Jim Meyering  <meyering@lucent.com>
76828
76829         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
76830         * lib/unicodeio.c: Likewise.
76831
76832 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
76833
76834         * lib/config.charset: New file.
76835         * lib/localcharset.c: New file.
76836         * lib/unicodeio.h, lib/unicodeio.c: New files.
76837         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
76838         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
76839         (noinst_HEADERS): Add unicodeio.h.
76840         (all-local, install-exec-local, charset.alias): New targets.
76841
76842 2000-02-28  Paul Eggert  <eggert@twinsun.com>
76843
76844         * lib/quotearg.c (ALERT_CHAR): New macro.
76845         (quotearg_buffer_restyled): Use it.
76846
76847 2000-02-27  Jim Meyering  <meyering@lucent.com>
76848
76849         * m4/check-decl.m4: Add getenv to the list.
76850
76851 2000-02-27  Jim Meyering  <meyering@lucent.com>
76852
76853         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
76854         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
76855
76856         * lib/backupfile.c: Guard inclusion of stdlib.h with
76857         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
76858         Declare malloc if needed.
76859
76860         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
76861         `#ifndef HAVE_DECL..'
76862         now that autoconf always defines the HAVE_DECL_ symbols.
76863         * lib/human.c: Likewise.
76864         * lib/same.c: Likewise.
76865         * lib/strtoumax.c: Likewise.
76866
76867         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
76868         declaration check was not run.
76869         * lib/hash.c: Likewise.
76870         * lib/human.c: Likewise.
76871         * lib/same.c: Likewise.
76872         * lib/strtoumax.c: Likewise.
76873
76874         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
76875         `.', then first look up the entire `.'-containing string as a login
76876         name.
76877
76878 2000-02-23  Jim Meyering  <meyering@lucent.com>
76879
76880         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
76881         in place of my hack.
76882
76883 2000-02-18  Paul Eggert  <eggert@twinsun.com>
76884
76885         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
76886         (textint): New typedef.
76887         (parser_control): Member year changed from int to textint.
76888         All uses changed.
76889         (YYSTYPE): Removed; replaced by %union with int and textint members.
76890         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
76891         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
76892         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
76893         (tSNUMBER, tUNUMBER): Now of type <textintval>.
76894         (date, number, to_year): Use width of number in digits, not its value,
76895         to determine whether it's a 2-digit year, or a 2-digit time.
76896         (yylex): Store number of digits of numeric tokens.
76897         Reported by John Kendall.
76898
76899         (parser_control): Changed from struct parser_control to typedef (for
76900         consistency).  All uses changed.
76901
76902         (tID): Removed; not used.
76903         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
76904
76905 2000-02-14  Paul Eggert  <eggert@twinsun.com>
76906
76907         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
76908         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
76909
76910 2000-02-12  Jim Meyering  <meyering@lucent.com>
76911
76912         * lib/userspec.c (ISDIGIT): Define it.
76913         (isdigit): Remove definition.
76914         (is_number): Use ISDIGIT, not isdigit.
76915         <libintl.h>: Include.
76916         (_ and N_): Define.
76917         (parse_user_spec): Mark translatable strings.
76918
76919 2000-02-10  Jim Meyering  <meyering@lucent.com>
76920
76921         With these changes, nanosleep.[ch] are finally enough like the other
76922         lib/* replacement files to compile on a few more losing systems.
76923
76924         * lib/nanosleep.h: Don't include config.h.
76925         Remove prototype from declaration of nanosleep.
76926         (PARAMS): Remove now-unneeded definition.
76927         * lib/nanosleep.c: #undef nanosleep.
76928         (rpl_nanosleep): Rename from nanosleep.
76929
76930 2000-02-10  Jim Meyering  <meyering@lucent.com>
76931
76932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
76933         gnu_nanosleep to rpl_nanosleep.
76934
76935 2000-02-09  Jim Meyering  <meyering@lucent.com>
76936
76937         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
76938         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
76939
76940 2000-02-08  Akim Demaille  <akim@epita.fr>
76941
76942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
76943         `[' and `]' and remove uses of `changequote'.
76944         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
76945         (AC_SYS_LARGEFILE): Likewise.
76946         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
76947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
76948         of changequote.
76949         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
76950         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
76951         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
76952         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
76953
76954 2000-02-05  Jim Meyering  <meyering@lucent.com>
76955
76956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
76957         Remove explicit use of AC_HEADER_TIME.  It is required by
76958         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
76959         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
76960         in autoconf whereby the expansion of the latter ended up preceding
76961         the expansion of its prerequisite, AC_HEADER_TIME.
76962         Reported by Volker Borchert.
76963
76964 2000-02-03  Jim Meyering  <meyering@lucent.com>
76965
76966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
76967
76968 2000-02-03  Jim Meyering  <meyering@lucent.com>
76969
76970         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
76971         rather than with `#if HAVE_UTMPNAME'.
76972
76973 2000-02-02  Jim Meyering  <meyering@lucent.com>
76974
76975         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76976         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76977         Reported by Eli Zaretskii.
76978
76979 2000-02-01  Jim Meyering  <meyering@lucent.com>
76980
76981         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76982
76983 2000-01-31  Jim Meyering  <meyering@lucent.com>
76984
76985         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76986         functions.  Add the time.h and sys/time.h headers along with the
76987         AC_REQUIRE'ment of AC_HEADER_TIME.
76988
76989 2000-01-31  Jim Meyering  <meyering@lucent.com>
76990
76991         * lib/nanosleep.h (nanosleep): Guard declaration with
76992         `#if ! HAVE_DECL_NANOSLEEP'.
76993         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76994         the declaration in that vendor's sys/timers.h.
76995         Reported by Christian Krackowizer.
76996
76997         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76998         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76999         (ISPRINT): Likewise.
77000         Reported by Tom Tromey.
77001
77002 2000-01-30  Jim Meyering  <meyering@lucent.com>
77003
77004         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77005
77006         * m4/prereq.m4 (utmp_includes): Define.
77007         Check for ut_user and ut_name members in both struct utmpx
77008         and struct utmp.
77009
77010 2000-01-30  Jim Meyering  <meyering@lucent.com>
77011
77012         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77013         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77014         header files where only utmpx.ut_user is declared.
77015
77016         * lib/readutmp.h (UT_USER): Define.
77017
77018 2000-01-29  Jim Meyering  <meyering@lucent.com>
77019
77020         * m4/lib-check.m4: New file containing library-related checks from
77021         fileutils and sh-utils (textutils had none).
77022
77023 2000-01-28  Jim Meyering  <meyering@lucent.com>
77024
77025         * m4/perl.m4: Change format of warning message to look more like that
77026         from the missing script.  Suggestion from François Pinard.
77027
77028 2000-01-25  Jim Meyering  <meyering@lucent.com>
77029
77030         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77031         well as time.h in the compile check.
77032         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77033         Fix typo in cross-compiling case: s/yes/no/.
77034
77035 2000-01-23  Jim Meyering  <meyering@lucent.com>
77036
77037         * m4/jm-macros.m4: Move df-related tests here from
77038         fileutils/configure.in
77039
77040         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77041         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77042
77043         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77044         s/space/ac_fsusage_space/.
77045         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77046
77047         * m4/ftruncate.m4: New file (derived from part of
77048         fileutils/configure.in).
77049         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77050         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77051
77052         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77053         AC_SUBST these here, rather than just in sh-util/configure.in, so
77054         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77055         all the same.
77056         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77057         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77058         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77059         (AC_SUBST(POW_LIBM)): Likewise.
77060         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77061
77062 2000-01-23  Jim Meyering  <meyering@lucent.com>
77063
77064         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77065         obstack.c.
77066
77067 2000-01-22  Jim Meyering  <meyering@lucent.com>
77068
77069         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77070
77071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77072
77073         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77074         configure.in
77075         (AC_CHECK_HEADERS): Likewise for sh-utils.
77076         (AC_CHECK_HEADERS): Likewise for textutils.
77077         Merge the three lists of headers.
77078
77079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77080         from fileutils' configure.in.
77081
77082         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77083         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77084         check-decl.m4.
77085
77086         * m4/check-decl.m4: Use #if rather than #ifdef.
77087         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77088         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77089         (_jm_DECL_HEADERS): Define new function.
77090         (jm_CHECK_DECLARATIONS): Require it.
77091
77092 2000-01-22  Jim Meyering  <meyering@lucent.com>
77093
77094         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77095         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77096         Required for some AIX systems.  Reported by Christian Krackowizer.
77097         [TESTING] (main): New function.
77098
77099         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77100         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77101         letters.
77102
77103         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77104         iswprint.
77105
77106         * lib/strverscmp.c (ISDIGIT): Define.
77107         (strverscmp): Use ISDIGIT, not isdigit.
77108
77109 2000-01-19  Jim Meyering  <meyering@lucent.com>
77110
77111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77112         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77113         defines `struct timespec' in <sys/time.h>
77114
77115         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77116         Thanks to Akim for explaining.
77117
77118 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77119
77120         * lib/nanosleep.c (nanosleep):
77121         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77122         POSIX.1 doesn't require SA_INTERRUPT and some systems
77123         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77124         it's been part of POSIX.1 since day 1 (in 1988).
77125
77126 2000-01-17  Jim Meyering  <meyering@lucent.com>
77127
77128         * lib/interlock: Remove unused file.  Reported by François Pinard.
77129
77130 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77131
77132         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77133         alert, backslash, formfeed, and vertical tab unnecessarily in
77134         shell quoting style.
77135
77136 2000-01-16  Jim Meyering  <meyering@lucent.com>
77137
77138         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77139         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77140         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77141         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77142
77143 2000-01-16  Jim Meyering  <meyering@lucent.com>
77144
77145         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77146         because the latter didn't work.
77147
77148 2000-01-15  Jim Meyering  <meyering@lucent.com>
77149
77150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77151         (AC_REPLACE_FUNCS): Add memcpy and memset.
77152         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77153         Add strpbrk.
77154         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77155
77156 2000-01-12  Jim Meyering  <meyering@lucent.com>
77157
77158         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77159         (jm_PREREQ): Use it.
77160         (jm_PREREQ_READUTMP): New macro.
77161         (jm_PREREQ): Use it.
77162
77163 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77164
77165         Quote multibyte characters correctly.
77166         * m4/c-bs-a.m4: New file.
77167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77168         (jm_PREREQ): Use it.
77169
77170 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77171
77172         * m4/uintmax_t.m4: Port to autoconf 2.13.
77173
77174 2000-01-08  Jim Meyering  <meyering@ascend.com>
77175
77176         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77177         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77178
77179 2000-01-04  Jim Meyering  <meyering@ascend.com>
77180
77181         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77182         jm_STRUCT_DIRENT_D_TYPE.
77183         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77184         jm_STRUCT_DIRENT_D_INO.
77185         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77186         jm_STRUCT_UTIMBUF.
77187         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77188         renamings.
77189         * m4/utime.m4: Likewise.
77190
77191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77192         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77193
77194 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77195
77196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77197         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77198
77199 2000-01-02  Jim Meyering  <meyering@ascend.com>
77200
77201         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77202         remember if this is necessary.
77203
77204 1999-12-26  Jim Meyering  <meyering@ascend.com>
77205
77206         * m4/jm-macros.m4: Use it here.
77207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77208
77209 1999-12-23  Jim Meyering  <meyering@ascend.com>
77210
77211         * m4/jm-macros.m4: Check for clock_gettime (moved from
77212         fileutils/configure.in)
77213         Check for gettimeofday.
77214
77215 1999-12-20  Jim Meyering  <meyering@ascend.com>
77216
77217         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77218         autoconf-2.14a-1999-12-20.
77219
77220 1999-12-19  Jim Meyering  <meyering@ascend.com>
77221
77222         * m4/lstat-slash.m4: New file.
77223         * m4/jm-macros.m4: Use the new macro:
77224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77225
77226 1999-12-07  Jim Meyering  <meyering@ascend.com>
77227
77228         * m4/perl.m4: Require that File::Compare be available, too.
77229         Too many systems seem to lack it.
77230
77231         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77232         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77233
77234 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77235
77236         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77237         problem with the QNX 4.25 shell, which doesn't propagate exit
77238         status of failed commands inside shell assignments.
77239
77240 1999-11-17  Jim Meyering  <meyering@ascend.com>
77241
77242         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
77243
77244 1999-11-07  Jim Meyering  <meyering@ascend.com>
77245
77246         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
77247
77248 1999-11-06  Jim Meyering  <meyering@ascend.com>
77249
77250         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
77251         * m4/jm-macros.m4 (jm_MACROS): Use it here.
77252
77253 1999-11-05  Jim Meyering  <meyering@ascend.com>
77254
77255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
77256         configure.in of textutils, fileutils, and sh-utils into this one
77257         (shared between those packages) file.
77258         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
77259         AC_STRUCT_ST_BLKSIZE.
77260
77261 1999-11-03  Jim Meyering  <meyering@ascend.com>
77262
77263         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
77264         of AC_CHECK_TYPE checks includes unistd.h.
77265         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
77266         Suggestion from Akim Demaille.
77267
77268 1999-10-30  Jim Meyering  <meyering@ascend.com>
77269
77270         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
77271         m4-quoted string.
77272         * m4/ls-mntd-fs.m4: Likewise.
77273         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
77274         * m4/jm-winsz1.m4: Likewise.
77275
77276         * m4/const.m4: Remove file, since the fix made it into the experimental
77277         version of autoconf.
77278         * m4/mktime.m4: Likewise.
77279
77280         * m4/check-type.m4: Remove file, now that the latest version of
77281         AC_CHECK_TYPE takes a third arg to specify additional #includes.
77282
77283         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
77284         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
77285         AC_CHECK_TYPE.
77286
77287 1999-10-04  Jim Meyering  <meyering@ascend.com>
77288
77289         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
77290
77291 1999-09-22  Paul Eggert  <eggert@twinsun.com>
77292
77293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
77294         2.95.1 bug with HP-UX 10.20.
77295
77296 1999-09-17  Jim Meyering  <meyering@ascend.com>
77297
77298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
77299         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
77300         due to missing strdup (against sh-utils-2.0).
77301
77302 1999-08-29  Jim Meyering  <meyering@ascend.com>
77303
77304         * m4/jm-macros.m4: Require jm_BISON.
77305         * m4/bison.m4: New file.
77306
77307 1999-08-17  Paul Eggert  <eggert@twinsun.com>
77308
77309         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
77310         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
77311
77312 1999-08-05  Jim Meyering  <meyering@ascend.com>
77313
77314         * m4/getline.m4: Rename test file from conftestdata to conftest.data
77315         to avoid conflicts with `conftest' on 8+3 filesystems.
77316         Suggestion from Eli Zaretskii.
77317
77318 1999-08-04  Jim Meyering  <meyering@ascend.com>
77319
77320         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
77321         fileutils and sh-utils (textutils's getline test was inadequate).
77322         (AM_FUNC_GETLINE): Run this test.
77323         (AC_CHECK_FUNCS): Check for getdelim.
77324         Reported by Bob Proulx.
77325
77326 1999-08-02  Jim Meyering  <meyering@ascend.com>
77327
77328         * m4/jm-macros.m4: Add a comment.
77329
77330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77331
77332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
77333         <inttypes.h> defines strtoumax as a macro (and not as a
77334         function).
77335
77336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77337
77338         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
77339         that we can shift, multiply and divide unsigned long long
77340         values; Ultrix cc can't do it.
77341
77342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77343
77344         * m4/mktime.m4: New file, which is a preview of what should appear
77345         in the next public autoconf release.
77346
77347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77348
77349         * m4/lfs.m4: Remove this file.
77350         * m4/largefile.m4: New file.  It contains the old contents of
77351         lfs.m4, except that all names with prefix AC_LFS have been
77352         changed to use the prefix AC_SYS_LARGEFILE instead, to be
77353         compatible with future autoconf versions.  Also, some minor m4
77354         quoting problems have been fixed.
77355
77356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
77357
77358         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
77359         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
77360         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
77361         and simplify the shell code.
77362
77363 1999-08-01  Jim Meyering  <meyering@ascend.com>
77364
77365         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
77366         m4.
77367
77368 1999-07-20  Jim Meyering  <meyering@ascend.com>
77369
77370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
77371
77372 1999-07-15  Jim Meyering  <meyering@ascend.com>
77373
77374         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
77375
77376 1999-05-22  Jim Meyering  <meyering@ascend.com>
77377
77378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
77379
77380 1999-05-20  Jim Meyering  <meyering@ascend.com>
77381
77382         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
77383         Add a colon after each `then' in case $4 is empty.
77384
77385 1999-05-16  Jim Meyering  <meyering@ascend.com>
77386
77387         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
77388
77389 1999-05-10  Jim Meyering  <meyering@ascend.com>
77390
77391         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
77392
77393         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
77394         AC_FUNC_MKTIME.
77395
77396 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
77397
77398         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
77399
77400 1999-05-04  Paul Eggert  <eggert@twinsun.com>
77401
77402         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
77403         not CPPFLAGS, so that linking works correctly in IRIX.
77404
77405 1999-04-30  Paul Eggert  <eggert@twinsun.com>
77406
77407         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
77408
77409 1999-04-20  Paul Eggert  <eggert@twinsun.com>
77410
77411         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
77412         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
77413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
77414         jm_AC_TYPE_UNSIGNED_LONG_LONG.
77415         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
77416
77417         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
77418
77419 1999-04-20  Jim Meyering  <meyering@ascend.com>
77420
77421         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
77422         AC_REPLACE xstroull if necessary.  From Paul Eggert.
77423         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
77424
77425 1999-04-18  Jim Meyering  <meyering@ascend.com>
77426
77427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
77428         * m4/jm-macros.m4: Use it.
77429
77430 1999-04-06  Jim Meyering  <meyering@ascend.com>
77431
77432         * m4/strftime.m4: Remove test for %f.
77433
77434 1999-03-29  Jim Meyering  <meyering@ascend.com>
77435
77436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
77437         superset of the AC_TYPE_* checks in the textutils, fileutils,
77438         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
77439         AC_TYPE_PID_T.
77440
77441 1999-03-28  Jim Meyering  <meyering@ascend.com>
77442
77443         * m4/jm-macros.m4: Define GNU_PACKAGE here.
77444         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
77445         replaced e.g., in the *.sh files of the sh-utils.
77446
77447 1999-03-20  Jim Meyering  <meyering@ascend.com>
77448
77449         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
77450         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
77451         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
77452
77453 1999-03-19  Jim Meyering  <meyering@ascend.com>
77454
77455         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
77456
77457 1999-03-12  Jim Meyering  <meyering@ascend.com>
77458
77459         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
77460
77461 1999-03-07  Jim Meyering  <meyering@ascend.com>
77462
77463         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
77464         declared.
77465
77466 1999-02-17  Jim Meyering  <meyering@ascend.com>
77467
77468         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
77469         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
77470
77471 1999-02-07  Jim Meyering  <meyering@ascend.com>
77472
77473         * m4/group-member.m4: New file -- extracted from sh-utils'
77474         configure.in.
77475
77476         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
77477         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
77478
77479 1999-02-06  Jim Meyering  <meyering@ascend.com>
77480
77481         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
77482         * m4/fnmatch.m4: Likewise.
77483         * m4/getgroups.m4: Likewise.
77484         * m4/lstat.m4: Likewise.
77485         * m4/malloc.m4: Likewise.
77486         * m4/putenv.m4: Likewise.
77487         * m4/realloc.m4: Likewise.
77488         * m4/regex.m4: Likewise.
77489         * m4/stat.m4: Likewise.
77490         * m4/strftime.m4: Likewise.
77491         Suggestion from Alain Magloire.
77492
77493         * m4/chown.m4: Use `.$ac_objext', not `.o'.
77494         * m4/fnmatch.m4: Likewise.
77495         * m4/getgroups.m4: Likewise.
77496         * m4/getline.m4: Likewise.
77497         * m4/lstat.m4: Likewise.
77498         * m4/malloc.m4: Likewise.
77499         * m4/memcmp.m4: Likewise.
77500         * m4/putenv.m4: Likewise.
77501         * m4/realloc.m4: Likewise.
77502         * m4/regex.m4: Likewise.
77503         * m4/stat.m4: Likewise.
77504         * m4/strftime.m4: Likewise.
77505         Suggestion from Alain Magloire.
77506
77507         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
77508         an argument.
77509
77510         * m4/regex.m4: Add a run-time Test for proper operation of
77511         re_compile_pattern.
77512
77513 1999-01-31  Jim Meyering  <meyering@ascend.com>
77514
77515         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
77516
77517 1999-01-30  Jim Meyering  <meyering@ascend.com>
77518
77519         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
77520
77521         * m4/jm-mktime.m4: Make this a wrapper around the official
77522         AM_FUNC_MKTIME rather than my private copy, now that the official one
77523         is up to date.
77524         * m4/mktime.m4: Remove file.
77525
77526         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
77527         * m4/uptime.m4: Likewise.
77528         * m4/uintmax_t.m4: Likewise.
77529
77530 1999-01-28  Jim Meyering  <meyering@ascend.com>
77531
77532         * m4/jm-macros.m4: Use jm_AFS.
77533         * m4/afs.m4: New file (from fileutils' configure.in).
77534
77535         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
77536         * m4/chown.m4: Likewise.
77537         * m4/d-ino.m4: Likewise.
77538         * m4/d-type.m4: Likewise.
77539         * m4/fnmatch.m4: Likewise.
77540         * m4/getgroups.m4: Likewise.
77541         * m4/gettext.m4: Likewise.
77542         * m4/jm-mktime.m4: Likewise.
77543         * m4/jm-winsz2.m4: Likewise.
77544         * m4/lcmessage.m4: Likewise.
77545         * m4/ls-mntd-fs.m4: Likewise.
77546         * m4/malloc.m4: Likewise.
77547         * m4/memcmp.m4: Likewise.
77548         * m4/putenv.m4: Likewise.
77549         * m4/realloc.m4: Likewise.
77550         * m4/st_mtim.m4: Likewise.
77551         * m4/strftime.m4: Likewise.
77552
77553 1999-01-16  Jim Meyering  <meyering@ascend.com>
77554
77555         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
77556         (ARGMATCH_DIE_DECL): Define.
77557
77558 1999-01-12  Jim Meyering  <meyering@ascend.com>
77559
77560         * m4/Makefile.am.in: Rewrite to avoid using fmt.
77561         Reported by Lars Hecking.
77562
77563 1999-01-10  Jim Meyering  <meyering@ascend.com>
77564
77565         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
77566         gross kludge.
77567         * m4/inttypes_h.m4: Likewise.
77568         * m4/lstat.m4: Likewise.
77569         * m4/malloc.m4: Likewise.
77570         * m4/readdir.m4: Likewise.
77571         * m4/realloc.m4: Likewise.
77572         * m4/st_dm_mode.m4: Likewise.
77573         * m4/stat.m4: Likewise.
77574         * m4/utimbuf.m4: Likewise.
77575         * m4/utimes.m4: Likewise.
77576
77577         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
77578         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
77579         comments in config.h.in are meaningful.
77580
77581         * m4/jm-macros.m4: Require autoconf-2.13 here.
77582
77583         * m4/regex.m4: By default, don't use the included regex.c on systems
77584         with glibc 2.  Suggestion from Uli Drepper.
77585
77586 1999-01-02  Jim Meyering  <meyering@ascend.com>
77587
77588         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
77589
77590 1998-12-18  Jim Meyering  <meyering@ascend.com>
77591
77592         * m4/Makefile.am.in (Makefile.am): Simplify rule.
77593         Based on a suggestion from Lars Hecking.
77594
77595 1998-11-16  Paul Eggert  <eggert@twinsun.com>
77596
77597         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
77598
77599 1998-11-16  Jim Meyering  <meyering@ascend.com>
77600
77601         * m4/lfs.m4: Double-quote the `uname...` expression.
77602
77603 1998-11-14  Jim Meyering  <meyering@ascend.com>
77604
77605         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
77606         * m4/stat.m4: Likewise.
77607
77608 1998-11-03  Jim Meyering  <meyering@ascend.com>
77609
77610         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
77611         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
77612
77613 1998-10-18  Jim Meyering  <meyering@ascend.com>
77614
77615         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
77616
77617 1998-10-17  Jim Meyering  <meyering@ascend.com>
77618
77619         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
77620         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
77621         calls for those previously hard-coded headers.  Instead, take a new
77622         parameter.
77623         (jm_CHECK_DECLARATIONS): Reflect interface change.
77624         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
77625         (jm_CHECK_DECL_LOCALTIME_R): New macro.
77626
77627         * m4/mktime.m4: Test for spring-forward gap before long-running test.
77628
77629 1998-10-14  Jim Meyering  <meyering@ascend.com>
77630
77631         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
77632         instead of "TZ=America/Vancouver".  From Paul Eggert.
77633
77634 1998-10-11  Jim Meyering  <meyering@ascend.com>
77635
77636         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
77637         This adds a test for a recently added compatibility fix for mktime.c.
77638         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
77639
77640 1998-09-27  Jim Meyering  <meyering@ascend.com>
77641
77642         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
77643
77644         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
77645         ../configure.in, including a change from Gordon Matzigkeit to allow
77646         cross-compiling for the Hurd.
77647
77648         * m4/glibc.m4: New file/macro to test for the GNU C Library
77649         versions 1 and 2.  From Gordon Matzigkeit.
77650         Indent.
77651
77652 1998-09-21  Jim Meyering  <meyering@ascend.com>
77653
77654         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
77655
77656 1998-08-18  Paul Eggert  <eggert@twinsun.com>
77657
77658         Port nanosecond-resolution times to UnixWare 2.1.2 and
77659         pedantic Solaris 2.6.
77660
77661         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
77662         AC_STRUCT_ST_MTIM.
77663         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
77664         Generate name of ns member, instead of just 1 or undef.
77665         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
77666
77667 1998-08-15  Jim Meyering  <meyering@ascend.com>
77668
77669         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
77670         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
77671         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
77672         instead of jm_TYPE_SSIZE_T.
77673
77674 1998-08-12  Jim Meyering  <meyering@ascend.com>
77675
77676         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
77677
77678 1998-08-02  Jim Meyering  <meyering@ascend.com>
77679
77680         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
77681         in acconfig.h manually.
77682
77683 1998-07-31  Paul Eggert  <eggert@twinsun.com>
77684
77685         * m4/st_mtim.m4: New file.
77686
77687 1998-07-28  Jim Meyering  <meyering@ascend.com>
77688
77689         * m4/utimes.m4: Undef stat.
77690
77691 1998-07-25  Jim Meyering  <meyering@ascend.com>
77692
77693         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
77694         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
77695
77696 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
77697
77698         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
77699         uid and gid actually remain unchanged.
77700
77701 1998-07-07  Jim Meyering  <meyering@ascend.com>
77702
77703         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
77704
77705 1998-07-04  Jim Meyering  <meyering@ascend.com>
77706
77707         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
77708         to prove that this macro can be used in packages without regex.c.
77709
77710 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
77711
77712         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
77713         is to be used.
77714
77715 1998-07-03  Jim Meyering  <meyering@ascend.com>
77716
77717         * m4/gettext.m4: Add -lintl if it's found to be necessary.
77718
77719         * m4/gettext.m4: New file -- from gettext-0.10.35.
77720         * m4/lcmessage.m4: Likewise.
77721         * m4/progtest.m4: Likewise.
77722
77723         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
77724         * m4/jm-macros.m4: Require the new macro.
77725
77726 1998-06-29  Jim Meyering  <meyering@ascend.com>
77727
77728         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
77729         for the definition of NGROUPS (used in a system header included
77730         by sys/mount.h).
77731
77732 1998-06-28  Jim Meyering  <meyering@ascend.com>
77733
77734         * m4/ls-mntd-fs.m4: New file.
77735         * m4/fstypename.m4: New file.
77736
77737         * m4/jm-macros.m4: Require the new macro.
77738         * m4/jm-glibc-io.m4: New file.
77739
77740 1998-05-19  Jim Meyering  <meyering@ascend.com>
77741
77742         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
77743         * m4/lchown.m4: New file.
77744
77745         * m4/Makefile.am.in: New file.
77746         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
77747
77748 1998-05-14  Jim Meyering  <meyering@ascend.com>
77749
77750         * m4/Makefile.am (EXTRA_DIST): Add them.
77751         * m4/jm-macros.m4: New file.
77752         * m4/utimbuf.m4: New file.
77753
77754 1998-05-12  Jim Meyering  <meyering@ascend.com>
77755
77756         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
77757
77758 1998-05-11  Jim Meyering  <meyering@ascend.com>
77759
77760         * m4/isc-posix.m4: New file.
77761
77762 1998-05-10  Jim Meyering  <meyering@ascend.com>
77763
77764         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
77765
77766 1998-05-09  Jim Meyering  <meyering@ascend.com>
77767
77768         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
77769         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
77770         with automake.
77771
77772         * m4/ssize_t.m4: New file.
77773         * m4/mktime.m4: Remove file -- the new automake has this now.
77774
77775 1998-04-26  Jim Meyering  <meyering@ascend.com>
77776
77777         * m4/assert.m4: New file.
77778         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
77779
77780 1998-04-05  Jim Meyering  <meyering@ascend.com>
77781
77782         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
77783         (jm_PREREQ): Use it here.
77784
77785 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
77786
77787         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
77788         in acconfig.h.
77789
77790 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
77791
77792         * m4/prereq.m4: New file.
77793         * m4/error.m4: New file.
77794         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
77795
77796 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
77797
77798         * m4/getline.m4: Don't set am_cv_func_working_getline before the
77799         cache-check for the same variable -- that defeated the purpose of
77800         the test; the test program was never run.  This was a problem only
77801         on systems with losing getline functions -- HP-UX 10.20 is one.
77802         Reported by Bjorn Helgaas.
77803
77804 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
77805
77806         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
77807
77808 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
77809
77810         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
77811
77812         * m4/const.m4: New file.  Use an initializer in this declaration
77813         typedef int charset[2]; const charset x;
77814         Reported by Bob Glickstein.
77815
77816 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
77817
77818         * m4/chown.m4: Fix reversed types on -1 args to chown.
77819         From Kaveh Ghazi.
77820
77821 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
77822
77823         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
77824         Add lseek and memchr.
77825
77826         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
77827         T.E.Dickey <dickey@clark.net> said that some older preprocessors
77828         have a 20-character limit on names.
77829
77830 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
77831
77832         * m4/inttypes_h.m4: New file.
77833         * m4/uintmax_t.m4: New file.
77834         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
77835
77836
77837         -----
77838
77839         Local Variables:
77840         coding: utf-8
77841         End:
77842
77843         Copyright (C) 1997-2011 Free Software Foundation, Inc.
77844
77845         Copying and distribution of this file, with or without
77846         modification, are permitted provided the copyright notice
77847         and this notice are preserved.